diff --git a/CHANGELOG.md b/CHANGELOG.md index 40751b51b..337a6d77d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +17.0.0 +====== +- Added support for version v14.1 of the Google Ads API. +- Removed support for v12 of the Google Ads API. +- Moved the ResourceNames utility to the Google.Ads.GoogleAds.V14.Resources namespace. + 16.1.0 ====== - Added support for version 14.0 of the Google Ads API. diff --git a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAd.cs b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAd.cs index 75ebf8ef8..4c80a5ef0 100644 --- a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAd.cs +++ b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAd.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAdGroup.cs b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAdGroup.cs index baf8b28ef..306de134c 100644 --- a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAdGroup.cs +++ b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveAdGroup.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveCampaign.cs b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveCampaign.cs index e26759dd7..da75f9690 100644 --- a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveCampaign.cs +++ b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveCampaign.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveKeyword.cs b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveKeyword.cs index 4ff5931db..edc7d83f2 100644 --- a/Google.Ads.GoogleAds/examples/BasicOperations/RemoveKeyword.cs +++ b/Google.Ads.GoogleAds/examples/BasicOperations/RemoveKeyword.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Billing/RemoveBillingSetup.cs b/Google.Ads.GoogleAds/examples/Billing/RemoveBillingSetup.cs index 1d553f6de..097c90459 100644 --- a/Google.Ads.GoogleAds/examples/Billing/RemoveBillingSetup.cs +++ b/Google.Ads.GoogleAds/examples/Billing/RemoveBillingSetup.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Feeds/GetFeedItemsOfFeedItemSet.cs b/Google.Ads.GoogleAds/examples/Feeds/GetFeedItemsOfFeedItemSet.cs index ffc502b94..8d451c977 100644 --- a/Google.Ads.GoogleAds/examples/Feeds/GetFeedItemsOfFeedItemSet.cs +++ b/Google.Ads.GoogleAds/examples/Feeds/GetFeedItemsOfFeedItemSet.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Feeds/RemoveFeedItems.cs b/Google.Ads.GoogleAds/examples/Feeds/RemoveFeedItems.cs index 0820e12fe..16177a24a 100644 --- a/Google.Ads.GoogleAds/examples/Feeds/RemoveFeedItems.cs +++ b/Google.Ads.GoogleAds/examples/Feeds/RemoveFeedItems.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj b/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj index b26c3acf2..dd28b08a7 100644 --- a/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj +++ b/Google.Ads.GoogleAds/examples/Google.Ads.GoogleAds.Examples.csproj @@ -34,7 +34,7 @@ - + diff --git a/Google.Ads.GoogleAds/examples/Misc/CampaignReportToCsv.cs b/Google.Ads.GoogleAds/examples/Misc/CampaignReportToCsv.cs index b7437d32e..770972bbf 100644 --- a/Google.Ads.GoogleAds/examples/Misc/CampaignReportToCsv.cs +++ b/Google.Ads.GoogleAds/examples/Misc/CampaignReportToCsv.cs @@ -15,14 +15,14 @@ using CommandLine; using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Services; using Google.Api.Ads.Common.Util; using System; using System.Collections.Generic; using System.IO; using System.Linq; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example illustrates how to use Google Ads API to get metrics about a campaign and @@ -83,7 +83,7 @@ public static void Main(string[] args) public void Run(GoogleAdsClient client, long customerId, string outputFilePath) { GoogleAdsServiceClient googleAdsServiceClient = - client.GetService(Services.V13.GoogleAdsService); + client.GetService(Services.V14.GoogleAdsService); // Create a query that retrieves campaigns. string query = @" diff --git a/Google.Ads.GoogleAds/examples/Misc/GetAllImageAssets.cs b/Google.Ads.GoogleAds/examples/Misc/GetAllImageAssets.cs index 04f46d174..557278172 100644 --- a/Google.Ads.GoogleAds/examples/Misc/GetAllImageAssets.cs +++ b/Google.Ads.GoogleAds/examples/Misc/GetAllImageAssets.cs @@ -15,16 +15,16 @@ using CommandLine; using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; -using Google.Ads.GoogleAds.V13.Common; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Resources; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Common; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; using Google.Api.Gax; using System; using System.Collections.Generic; using System.Linq; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example gets all image assets. @@ -72,7 +72,7 @@ public void Run(GoogleAdsClient client, long customerId) { // Get the GoogleAdsServiceClient. GoogleAdsServiceClient googleAdsService = - client.GetService(Services.V13.GoogleAdsService); + client.GetService(Services.V14.GoogleAdsService); // Creates the search query. string searchQuery = "SELECT asset.name, asset.image_asset.file_size, " + diff --git a/Google.Ads.GoogleAds/examples/Misc/GetAllVideosAndImages.cs b/Google.Ads.GoogleAds/examples/Misc/GetAllVideosAndImages.cs index 450d7e37c..8ddb5191e 100644 --- a/Google.Ads.GoogleAds/examples/Misc/GetAllVideosAndImages.cs +++ b/Google.Ads.GoogleAds/examples/Misc/GetAllVideosAndImages.cs @@ -15,13 +15,13 @@ using CommandLine; using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Resources; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example gets all video and image files. @@ -68,7 +68,7 @@ public void Run(GoogleAdsClient client, long customerId) { // Get the GoogleAdsServiceClient. GoogleAdsServiceClient googleAdsService = - client.GetService(Services.V13.GoogleAdsService); + client.GetService(Services.V14.GoogleAdsService); // Creates a request that will retrieve all video and image files. SearchGoogleAdsRequest request = new SearchGoogleAdsRequest() diff --git a/Google.Ads.GoogleAds/examples/Misc/NavigateSearchResultPagesCachingTokens.cs b/Google.Ads.GoogleAds/examples/Misc/NavigateSearchResultPagesCachingTokens.cs index 9d01aaab0..3b04b59cc 100644 --- a/Google.Ads.GoogleAds/examples/Misc/NavigateSearchResultPagesCachingTokens.cs +++ b/Google.Ads.GoogleAds/examples/Misc/NavigateSearchResultPagesCachingTokens.cs @@ -15,14 +15,14 @@ using CommandLine; using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Resources; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; using System.Linq; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// GoogleAdsService.Search results are paginated but they can only be retrieved in sequence @@ -96,7 +96,7 @@ public void Run(GoogleAdsClient client, long customerId) { // Get the GoogleAdsServiceClient. GoogleAdsServiceClient googleAdsService = - client.GetService(Services.V13.GoogleAdsService); + client.GetService(Services.V14.GoogleAdsService); // The cache of page tokens. The first page's token is always an empty string. Dictionary pageTokens = new Dictionary(); diff --git a/Google.Ads.GoogleAds/examples/Misc/SetCustomClientTimeouts.cs b/Google.Ads.GoogleAds/examples/Misc/SetCustomClientTimeouts.cs index d6ae96958..b2688b369 100644 --- a/Google.Ads.GoogleAds/examples/Misc/SetCustomClientTimeouts.cs +++ b/Google.Ads.GoogleAds/examples/Misc/SetCustomClientTimeouts.cs @@ -15,15 +15,15 @@ using CommandLine; using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Services; using Google.Api.Gax; using Google.Api.Gax.Grpc; using Grpc.Core; using System; using System.IO; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example illustrates the use of custom client timeouts in the context @@ -118,7 +118,7 @@ private void MakeServerStreamingCall(GoogleAdsClient client, long customerId) { // Get the GoogleAdsService. GoogleAdsServiceClient googleAdsService = client.GetService( - Services.V13.GoogleAdsService); + Services.V14.GoogleAdsService); string query = "SELECT campaign.id FROM campaign"; SearchGoogleAdsStreamRequest request = new SearchGoogleAdsStreamRequest() @@ -180,7 +180,7 @@ private void MakeUnaryCall(GoogleAdsClient client, long customerId) { // Get the GoogleAdsService. GoogleAdsServiceClient googleAdsService = client.GetService( - Services.V13.GoogleAdsService); + Services.V14.GoogleAdsService); string query = "SELECT campaign.id FROM campaign"; SearchGoogleAdsRequest request = new SearchGoogleAdsRequest() diff --git a/Google.Ads.GoogleAds/examples/Misc/UploadImage.cs b/Google.Ads.GoogleAds/examples/Misc/UploadImage.cs index 150725c08..8f1f71518 100644 --- a/Google.Ads.GoogleAds/examples/Misc/UploadImage.cs +++ b/Google.Ads.GoogleAds/examples/Misc/UploadImage.cs @@ -17,15 +17,15 @@ using Google.Ads.Gax.Util; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.Util; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Resources; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; using Google.Protobuf; using System; using System.Collections.Generic; -using static Google.Ads.GoogleAds.V13.Enums.MediaTypeEnum.Types; +using static Google.Ads.GoogleAds.V14.Enums.MediaTypeEnum.Types; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example uploads an image. @@ -72,7 +72,7 @@ public void Run(GoogleAdsClient client, long customerId) { // Get the MediaFileServiceClient. MediaFileServiceClient mediaFileService = - client.GetService(Services.V13.MediaFileService); + client.GetService(Services.V14.MediaFileService); const string URL = "https://gaagl.page.link/Eit5"; diff --git a/Google.Ads.GoogleAds/examples/Misc/UploadImageAsset.cs b/Google.Ads.GoogleAds/examples/Misc/UploadImageAsset.cs index 2dc51dbb8..cd705f1d7 100644 --- a/Google.Ads.GoogleAds/examples/Misc/UploadImageAsset.cs +++ b/Google.Ads.GoogleAds/examples/Misc/UploadImageAsset.cs @@ -17,18 +17,18 @@ using Google.Ads.Gax.Util; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.Util; -using Google.Ads.GoogleAds.V13.Common; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Resources; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Common; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; using Google.Protobuf; using System; using System.Collections.Generic; using System.Linq; -using static Google.Ads.GoogleAds.V13.Enums.AssetTypeEnum.Types; -using static Google.Ads.GoogleAds.V13.Enums.MimeTypeEnum.Types; +using static Google.Ads.GoogleAds.V14.Enums.AssetTypeEnum.Types; +using static Google.Ads.GoogleAds.V14.Enums.MimeTypeEnum.Types; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example uploads an image asset. To get image assets, run GetAllImageAssets.cs. @@ -83,7 +83,7 @@ public void Run(GoogleAdsClient client, long customerId) { // Get the AssetServiceClient. AssetServiceClient assetService = - client.GetService(Services.V13.AssetService); + client.GetService(Services.V14.AssetService); // Creates an image content. byte[] imageContent = MediaUtilities.GetAssetDataFromUrl(IMAGE_URL, client.Config); diff --git a/Google.Ads.GoogleAds/examples/Misc/UploadMediaBundle.cs b/Google.Ads.GoogleAds/examples/Misc/UploadMediaBundle.cs index d5b76ad8f..817a7cfb6 100644 --- a/Google.Ads.GoogleAds/examples/Misc/UploadMediaBundle.cs +++ b/Google.Ads.GoogleAds/examples/Misc/UploadMediaBundle.cs @@ -17,16 +17,16 @@ using Google.Ads.Gax.Util; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.Util; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Resources; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; using Google.Protobuf; using System; using System.Collections.Generic; using System.Linq; -using static Google.Ads.GoogleAds.V13.Enums.MediaTypeEnum.Types; +using static Google.Ads.GoogleAds.V14.Enums.MediaTypeEnum.Types; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example uploads an HTML5 zip file as a media bundle. @@ -79,7 +79,7 @@ public void Run(GoogleAdsClient client, long customerId) { // Get the MediaFileServiceClient. MediaFileServiceClient mediaFileService = client.GetService( - Services.V13.MediaFileService); + Services.V14.MediaFileService); // Creates an HTML5 zip file media bundle content. byte[] bundleContent = MediaUtilities.GetAssetDataFromUrl(BUNDLE_URL, client.Config); diff --git a/Google.Ads.GoogleAds/examples/Planning/AddKeywordPlan.cs b/Google.Ads.GoogleAds/examples/Planning/AddKeywordPlan.cs deleted file mode 100644 index a758b10ef..000000000 --- a/Google.Ads.GoogleAds/examples/Planning/AddKeywordPlan.cs +++ /dev/null @@ -1,334 +0,0 @@ -// Copyright 2019 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 -// -// http://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. - -using CommandLine; -using Google.Ads.Gax.Examples; -using Google.Ads.GoogleAds.Lib; -using Google.Ads.GoogleAds.V14.Errors; -using Google.Ads.GoogleAds.V14.Resources; -using Google.Ads.GoogleAds.V14.Services; -using System; -using System.Collections.Generic; -using static Google.Ads.GoogleAds.V14.Enums.KeywordMatchTypeEnum.Types; -using static Google.Ads.GoogleAds.V14.Enums.KeywordPlanForecastIntervalEnum.Types; -using static Google.Ads.GoogleAds.V14.Enums.KeywordPlanNetworkEnum.Types; - -namespace Google.Ads.GoogleAds.Examples.V14 -{ - /// - /// This code example creates a keyword plan, which can be reused for retrieving forecast - /// metrics and historic metrics. - /// - public class AddKeywordPlan : ExampleBase - { - /// - /// Command line options for running the example. - /// - public class Options : OptionsBase - { - /// - /// The customer ID for which the call is made. - /// - [Option("customerId", Required = true, HelpText = - "The customer ID for which the call is made.")] - public long CustomerId { get; set; } - } - - /// - /// Main method, to run this code example as a standalone application. - /// - /// The command line arguments. - public static void Main(string[] args) - { - Options options = ExampleUtilities.ParseCommandLine(args); - - AddKeywordPlan codeExample = new AddKeywordPlan(); - Console.WriteLine(codeExample.Description); - codeExample.Run(new GoogleAdsClient(), options.CustomerId); - } - - /// - /// Returns a description about the code example. - /// - public override string Description => - "This code example creates a keyword plan, which can be reused for retrieving " + - "forecast metrics and historic metrics."; - - /// - /// Runs the code example. - /// - /// The Google Ads client. - /// The customer ID for which the call is made. - // [START add_keyword_plan] - public void Run(GoogleAdsClient client, long customerId) - { - try - { - string keywordPlanResource = CreateKeywordPlan(client, customerId); - string planCampaignResource = CreateKeywordPlanCampaign(client, customerId, - keywordPlanResource); - string planAdGroupResource = CreateKeywordPlanAdGroup(client, customerId, - planCampaignResource); - CreateKeywordPlanAdGroupKeywords(client, customerId, planAdGroupResource); - CreateKeywordPlanCampaignNegativeKeywords(client, customerId, planCampaignResource); - } - catch (GoogleAdsException e) - { - Console.WriteLine("Failure:"); - Console.WriteLine($"Message: {e.Message}"); - Console.WriteLine($"Failure: {e.Failure}"); - Console.WriteLine($"Request ID: {e.RequestId}"); - throw; - } - } - - /// - /// Creates the keyword plan. - /// - /// The Google Ads client. - /// The Google Ads customer ID for which the call is made. - /// The newly created keyword plan resource. - private string CreateKeywordPlan(GoogleAdsClient client, long customerId) - { - // Get the KeywordPlanService. - KeywordPlanServiceClient serviceClient = client.GetService( - Services.V14.KeywordPlanService); - - // Create a keyword plan for next quarter forecast. - KeywordPlan keywordPlan = new KeywordPlan() - { - Name = "Keyword plan for traffic estimate #" + ExampleUtilities.GetRandomString(), - ForecastPeriod = new KeywordPlanForecastPeriod() - { - DateInterval = KeywordPlanForecastInterval.NextQuarter - } - }; - - KeywordPlanOperation operation = new KeywordPlanOperation() - { - Create = keywordPlan - }; - - // Add the keyword plan. - MutateKeywordPlansResponse response = serviceClient.MutateKeywordPlans( - customerId.ToString(), new KeywordPlanOperation[] { operation }); - - // Display the results. - String planResource = response.Results[0].ResourceName; - Console.WriteLine($"Created keyword plan: {planResource}."); - return planResource; - } - - /// - /// Creates the campaign for the keyword plan. - /// - /// The Google Ads client. - /// The Google Ads customer ID for which the call is made. - /// The keyword plan resource. - /// The newly created campaign resource. - private string CreateKeywordPlanCampaign(GoogleAdsClient client, long customerId, - String keywordPlanResource) - { - // Get the KeywordPlanCampaignService. - KeywordPlanCampaignServiceClient serviceClient = client.GetService( - Services.V14.KeywordPlanCampaignService); - - // Create a keyword plan campaign. - KeywordPlanCampaign campaign = new KeywordPlanCampaign() - { - Name = "Keyword plan campaign #" + ExampleUtilities.GetRandomString(), - CpcBidMicros = 1_000_000L, - KeywordPlanNetwork = KeywordPlanNetwork.GoogleSearch, - KeywordPlan = keywordPlanResource - }; - - // See https://developers.google.com/google-ads/api/reference/data/geotargets - // for the list of geo target IDs. - campaign.GeoTargets.Add(new KeywordPlanGeoTarget() - { - GeoTargetConstant = ResourceNames.GeoTargetConstant(2840) /* USA */ - }); - - // See https://developers.google.com/google-ads/api/reference/data/codes-formats#languages - // for the list of language criteria IDs. - campaign.LanguageConstants.Add(ResourceNames.LanguageConstant(1000)); /* English */ - - KeywordPlanCampaignOperation operation = new KeywordPlanCampaignOperation() - { - Create = campaign - }; - - // Add the campaign. - MutateKeywordPlanCampaignsResponse response = - serviceClient.MutateKeywordPlanCampaigns(customerId.ToString(), - new KeywordPlanCampaignOperation[] { operation }); - - // Display the result. - String planCampaignResource = response.Results[0].ResourceName; - Console.WriteLine($"Created campaign for keyword plan: {planCampaignResource}."); - return planCampaignResource; - } - - /// - /// Creates the ad group for the keyword plan. - /// - /// The Google Ads client. - /// The Google Ads customer ID for which the call is made. - /// The resource name of the campaign under which the - /// ad group is created. - /// The newly created ad group resource. - private string CreateKeywordPlanAdGroup(GoogleAdsClient client, long customerId, - string planCampaignResource) - { - // Get the KeywordPlanAdGroupService. - KeywordPlanAdGroupServiceClient serviceClient = client.GetService( - Services.V14.KeywordPlanAdGroupService); - - // Create the keyword plan ad group. - KeywordPlanAdGroup adGroup = new KeywordPlanAdGroup() - { - KeywordPlanCampaign = planCampaignResource, - Name = "Keyword plan ad group #" + ExampleUtilities.GetRandomString(), - CpcBidMicros = 2_500_000L - }; - - KeywordPlanAdGroupOperation operation = new KeywordPlanAdGroupOperation() - { - Create = adGroup - }; - - // Add the ad group. - MutateKeywordPlanAdGroupsResponse response = - serviceClient.MutateKeywordPlanAdGroups( - customerId.ToString(), new KeywordPlanAdGroupOperation[] { operation }); - - // Display the result. - String planAdGroupResource = response.Results[0].ResourceName; - Console.WriteLine($"Created ad group for keyword plan: {planAdGroupResource}."); - return planAdGroupResource; - } - - /// - /// Creates keywords for the keyword plan. - /// - /// The Google Ads client. - /// The Google Ads customer ID for which the call is made. - /// The resource name of the ad group under which the - /// keyword is created. - private static void CreateKeywordPlanAdGroupKeywords(GoogleAdsClient client, - long customerId, string planAdGroupResource) - { - // Get the KeywordPlanAdGroupKeywordService. - KeywordPlanAdGroupKeywordServiceClient serviceClient = client.GetService( - Services.V14.KeywordPlanAdGroupKeywordService); - - // Create the adgroup level keywords for keyword plan. - KeywordPlanAdGroupKeyword kpAdGroupKeyword1 = new KeywordPlanAdGroupKeyword() - { - KeywordPlanAdGroup = planAdGroupResource, - CpcBidMicros = 2_000_000L, - MatchType = KeywordMatchType.Broad, - Text = "mars cruise" - }; - - KeywordPlanAdGroupKeyword kpAdGroupKeyword2 = new KeywordPlanAdGroupKeyword() - { - KeywordPlanAdGroup = planAdGroupResource, - CpcBidMicros = 1_500_000L, - MatchType = KeywordMatchType.Phrase, - Text = "cheap cruise" - }; - - KeywordPlanAdGroupKeyword kpAdGroupKeyword3 = new KeywordPlanAdGroupKeyword() - { - KeywordPlanAdGroup = planAdGroupResource, - CpcBidMicros = 1_990_000L, - MatchType = KeywordMatchType.Exact, - Text = "jupiter cruise" - }; - - KeywordPlanAdGroupKeyword[] kpAdGroupKeywords = new KeywordPlanAdGroupKeyword[] - { - kpAdGroupKeyword1, - kpAdGroupKeyword2, - kpAdGroupKeyword3 - }; - - // Create an operation for each plan keyword. - List operations = - new List(); - - foreach (KeywordPlanAdGroupKeyword kpAdGroupKeyword in kpAdGroupKeywords) - { - operations.Add(new KeywordPlanAdGroupKeywordOperation - { - Create = kpAdGroupKeyword - }); - } - - // Add the keywords. - MutateKeywordPlanAdGroupKeywordsResponse response = - serviceClient.MutateKeywordPlanAdGroupKeywords(customerId.ToString(), operations); - - // Display the results. - foreach (MutateKeywordPlanAdGroupKeywordResult result in response.Results) - { - Console.WriteLine( - $"Created ad group keyword for keyword plan: {result.ResourceName}."); - } - return; - } - - /// - /// Creates campaign negative keywords for the keyword plan. - /// - /// he Google Ads client. - /// The Google Ads customer ID for which the call is made. - /// The resource name of the campaign under which the - /// negative keyword is created. - private static void CreateKeywordPlanCampaignNegativeKeywords(GoogleAdsClient client, - long customerId, string planCampaignResource) - { - // Get the KeywordPlanCampaignKeywordService. - KeywordPlanCampaignKeywordServiceClient service = client.GetService( - Services.V14.KeywordPlanCampaignKeywordService); - - // Create the campaign negative keyword for the keyword plan. - KeywordPlanCampaignKeyword kpCampaignNegativeKeyword = new KeywordPlanCampaignKeyword() - { - KeywordPlanCampaign = planCampaignResource, - MatchType = KeywordMatchType.Broad, - Text = "moon walk", - Negative = true - }; - - KeywordPlanCampaignKeywordOperation operation = new KeywordPlanCampaignKeywordOperation - { - Create = kpCampaignNegativeKeyword - }; - - // Add the campaign negative keyword. - MutateKeywordPlanCampaignKeywordsResponse response = - service.MutateKeywordPlanCampaignKeywords(customerId.ToString(), - new KeywordPlanCampaignKeywordOperation[] { operation }); - - // Display the result. - MutateKeywordPlanCampaignKeywordResult result = response.Results[0]; - Console.WriteLine("Created campaign negative keyword for keyword plan: " + - $"{result.ResourceName}."); - return; - } - } - // [END add_keyword_plan] -} diff --git a/Google.Ads.GoogleAds/examples/Planning/GenerateForecastMetrics.cs b/Google.Ads.GoogleAds/examples/Planning/GenerateForecastMetrics.cs new file mode 100644 index 000000000..3eb10d9ea --- /dev/null +++ b/Google.Ads.GoogleAds/examples/Planning/GenerateForecastMetrics.cs @@ -0,0 +1,193 @@ +// Copyright 2023 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 +// +// http://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. + +using CommandLine; +using Google.Ads.Gax.Examples; +using Google.Ads.GoogleAds.Lib; +using Google.Ads.GoogleAds.V14.Common; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; +using System; +using static Google.Ads.GoogleAds.V14.Enums.KeywordMatchTypeEnum.Types; +using static Google.Ads.GoogleAds.V14.Enums.KeywordPlanNetworkEnum.Types; + +namespace Google.Ads.GoogleAds.Examples.V14; + +/// +/// This code example generates forecast metrics for keyword planning. +/// Guide: https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics +/// +public class GenerateForecastMetrics : ExampleBase +{ + /// + /// Command line options for running the example. + /// + public class Options : OptionsBase + { + /// + /// The customer ID for which the call is made. + /// + [Option("customerId", Required = true, HelpText = + "The customer ID for which the call is made.")] + public long CustomerId { get; set; } + } + + /// + /// Main method, to run this code example as a standalone application. + /// + /// The command line arguments. + public static void Main(string[] args) + { + Options options = ExampleUtilities.ParseCommandLine(args); + + GenerateForecastMetrics codeExample = new GenerateForecastMetrics(); + Console.WriteLine(codeExample.Description); + codeExample.Run(new GoogleAdsClient(), options.CustomerId); + } + + /// + /// Returns a description about the code example. + /// + public override string Description => + "This code example generates forecast metrics for keyword planning."; + + /// + /// Runs the code example. + /// + /// The Google Ads client. + /// The customer ID for which the call is made. + // [START generate_forecast_metrics] + public void Run(GoogleAdsClient client, long customerId) + { + CampaignToForecast campaignToForecast = CreateCampaignToForecast(); + + KeywordPlanIdeaServiceClient keywordPlanIdeaService = + client.GetService(Services.V14.KeywordPlanIdeaService); + + GenerateKeywordForecastMetricsRequest request = new GenerateKeywordForecastMetricsRequest() + { + CustomerId = customerId.ToString(), + Campaign = campaignToForecast, + ForecastPeriod = new DateRange() + { + // Set the forecast start date to tomorrow. + StartDate = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd"), + // Set the forecast end date to 30 days from today. + EndDate = DateTime.Now.AddDays(30).ToString("yyyy-MM-dd"), + } + }; + + try + { + GenerateKeywordForecastMetricsResponse response = + keywordPlanIdeaService.GenerateKeywordForecastMetrics(request); + + KeywordForecastMetrics metrics = response.CampaignForecastMetrics; + + Console.WriteLine($"Estimated daily clicks: {metrics.Clicks}."); + Console.WriteLine($"Estimated daily impressions: {metrics.Impressions}."); + Console.WriteLine($"Estimated average cpc (micros): {metrics.AverageCpcMicros}."); + } + catch (GoogleAdsException e) + { + Console.WriteLine("Failure:"); + Console.WriteLine($"Message: {e.Message}"); + Console.WriteLine($"Failure: {e.Failure}"); + Console.WriteLine($"Request ID: {e.RequestId}"); + throw; + } + } + + /// + /// Creates the campaign to forecast. A campaign to forecast lets you try out + /// various configuration and keywords to find the best optimization for your + /// future campaigns. Once you've found the best campaign configuration, + /// create a serving campaign in your Google Ads account with similar values + /// and keywords. For more details, see: + /// https://support.google.com/google-ads/answer/3022575 + /// + private CampaignToForecast CreateCampaignToForecast() + { + CampaignToForecast campaignToForecast = new CampaignToForecast() + { + KeywordPlanNetwork = KeywordPlanNetwork.GoogleSearch, + BiddingStrategy = new CampaignToForecast.Types.CampaignBiddingStrategy() + { + ManualCpcBiddingStrategy = new ManualCpcBiddingStrategy() + { + MaxCpcBidMicros = 1_000_000 + } + } + }; + + // See https://developers.google.com/google-ads/api/reference/data/geotargets + // for the list of geo target IDs. + campaignToForecast.GeoModifiers.Add(new CriterionBidModifier() + { + // Geo target constant 2840 is for USA. + GeoTargetConstant = ResourceNames.GeoTargetConstant(2840) + }); + + // See https://developers.google.com/google-ads/api/reference/data/codes-formats#languages + // for the list of language criteria IDs. + // Language constant 1000 is for English. + campaignToForecast.LanguageConstants.Add(ResourceNames.LanguageConstant(1000)); + + // Create forecast ad group based on themes such as creative relevance, product category, + // or cost per click. + ForecastAdGroup forecastAdGroup = new ForecastAdGroup(); + + forecastAdGroup.BiddableKeywords.Add(new BiddableKeyword() + { + MaxCpcBidMicros = 2_500_000, + Keyword = new KeywordInfo() + { + Text = "mars cruise", + MatchType = KeywordMatchType.Broad + } + }); + + forecastAdGroup.BiddableKeywords.Add(new BiddableKeyword() + { + MaxCpcBidMicros = 1_500_000, + Keyword = new KeywordInfo() + { + Text = "cheap cruise", + MatchType = KeywordMatchType.Phrase + } + }); + + forecastAdGroup.BiddableKeywords.Add(new BiddableKeyword() + { + MaxCpcBidMicros = 1_990_000, + Keyword = new KeywordInfo() + { + Text = "jupiter cruise", + MatchType = KeywordMatchType.Broad + } + }); + + forecastAdGroup.NegativeKeywords.Add(new KeywordInfo() + { + Text = "moon walk", + MatchType = KeywordMatchType.Broad + }); + + campaignToForecast.AdGroups.Add(forecastAdGroup); + + return campaignToForecast; + } + // [END generate_forecast_metrics] +} \ No newline at end of file diff --git a/Google.Ads.GoogleAds/examples/Planning/GenerateHistoricalMetrics.cs b/Google.Ads.GoogleAds/examples/Planning/GenerateHistoricalMetrics.cs new file mode 100644 index 000000000..0d7abe0c8 --- /dev/null +++ b/Google.Ads.GoogleAds/examples/Planning/GenerateHistoricalMetrics.cs @@ -0,0 +1,144 @@ +// Copyright 2023 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 +// +// http://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. + +using CommandLine; +using Google.Ads.Gax.Examples; +using Google.Ads.GoogleAds.Lib; +using Google.Ads.GoogleAds.V14.Common; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; +using Google.Ads.GoogleAds.V14.Services; +using System; +using static Google.Ads.GoogleAds.V14.Enums.KeywordPlanNetworkEnum.Types; + +namespace Google.Ads.GoogleAds.Examples.V14; + +/// +/// This code example generates historical metrics for keyword planning. +/// Guide: https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics +/// +public class GenerateHistoricalMetrics : ExampleBase +{ + /// + /// Command line options for running the example. + /// + public class Options : OptionsBase + { + /// + /// The customer ID for which the call is made. + /// + [Option("customerId", Required = true, HelpText = + "The customer ID for which the call is made.")] + public long CustomerId { get; set; } + } + + /// + /// Main method, to run this code example as a standalone application. + /// + /// The command line arguments. + public static void Main(string[] args) + { + Options options = ExampleUtilities.ParseCommandLine(args); + + GenerateHistoricalMetrics codeExample = new GenerateHistoricalMetrics(); + Console.WriteLine(codeExample.Description); + codeExample.Run(new GoogleAdsClient(), options.CustomerId); + } + + /// + /// Returns a description about the code example. + /// + public override string Description => + "This code example generates historical metrics for keyword planning."; + + /// + /// Runs the code example. + /// + /// The Google Ads client. + /// The customer ID for which the call is made. + // [START generate_historical_metrics] + public void Run(GoogleAdsClient client, long customerId) + { + KeywordPlanIdeaServiceClient keywordPlanIdeaService = + client.GetService(Services.V14.KeywordPlanIdeaService); + + GenerateKeywordHistoricalMetricsRequest request = + new GenerateKeywordHistoricalMetricsRequest() + { + CustomerId = customerId.ToString(), + Keywords = { "mars cruise", "cheap cruise", "jupiter cruise" }, + // See https://developers.google.com/google-ads/api/reference/data/geotargets + // for the list of geo target IDs. + // Geo target constant 2840 is for USA. + GeoTargetConstants = { ResourceNames.GeoTargetConstant(2840) }, + KeywordPlanNetwork = KeywordPlanNetwork.GoogleSearch, + // See https://developers.google.com/google-ads/api/reference/data/codes-formats#languages + // for the list of language constant IDs. + // Language constant 1000 is for English. + Language = ResourceNames.LanguageConstant(1000) + }; + + try + { + GenerateKeywordHistoricalMetricsResponse response = + keywordPlanIdeaService.GenerateKeywordHistoricalMetrics(request); + + foreach (GenerateKeywordHistoricalMetricsResult result in response.Results) + { + KeywordPlanHistoricalMetrics metrics = result.KeywordMetrics; + + Console.WriteLine($"The search query {result.Text}"); + Console.WriteLine("and the following variants: " + + $"{String.Join(",", result.CloseVariants)}"); + Console.WriteLine("Generated the following historical metrics:"); + + // Approximate number of monthly searches on this query averaged for the past 12 + // months. + Console.WriteLine($"Approximate monthly searches: {metrics.AvgMonthlySearches}"); + + // The competition level for this search query. + Console.WriteLine($"Competition level: {metrics.Competition}"); + + // The competition index for the query in the range [0,100]. This shows how + // competitive ad placement is for a keyword. The level of competition from 0-100 is + // determined by the number of ad slots filled divided by the total number of slots + // available. If not enough data is available, null will be returned. + Console.WriteLine($"Competition index: {metrics.CompetitionIndex}"); + + // Top of page bid low range (20th percentile) in micros for the keyword. + Console.WriteLine($"Top of page bid low range: {metrics.LowTopOfPageBidMicros}"); + + // Top of page bid high range (80th percentile) in micros for the keyword. + Console.WriteLine($"Top of page bid high range: {metrics.HighTopOfPageBidMicros}"); + + // Approximate number of searches on this query for the past twelve months. + foreach (MonthlySearchVolume month in metrics.MonthlySearchVolumes) + { + Console.WriteLine($"Approximately {month.MonthlySearches} searches in " + + $"{month.Month}, {month.Year}"); + } + } + + } + catch (GoogleAdsException e) + { + Console.WriteLine("Failure:"); + Console.WriteLine($"Message: {e.Message}"); + Console.WriteLine($"Failure: {e.Failure}"); + Console.WriteLine($"Request ID: {e.RequestId}"); + throw; + } + } + // [END generate_historical_metrics] +} \ No newline at end of file diff --git a/Google.Ads.GoogleAds/examples/Planning/GenerateKeywordIdeas.cs b/Google.Ads.GoogleAds/examples/Planning/GenerateKeywordIdeas.cs index 2b9f382f1..44cb39cfa 100644 --- a/Google.Ads.GoogleAds/examples/Planning/GenerateKeywordIdeas.cs +++ b/Google.Ads.GoogleAds/examples/Planning/GenerateKeywordIdeas.cs @@ -17,6 +17,7 @@ using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Common; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Recommendations/ApplyRecommendation.cs b/Google.Ads.GoogleAds/examples/Recommendations/ApplyRecommendation.cs index a1e214325..2b61d8ea0 100644 --- a/Google.Ads.GoogleAds/examples/Recommendations/ApplyRecommendation.cs +++ b/Google.Ads.GoogleAds/examples/Recommendations/ApplyRecommendation.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Recommendations/DismissRecommendation.cs b/Google.Ads.GoogleAds/examples/Recommendations/DismissRecommendation.cs index d75239731..3a1aadcce 100644 --- a/Google.Ads.GoogleAds/examples/Recommendations/DismissRecommendation.cs +++ b/Google.Ads.GoogleAds/examples/Recommendations/DismissRecommendation.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Remarketing/UploadCallConversion.cs b/Google.Ads.GoogleAds/examples/Remarketing/UploadCallConversion.cs index 61cee4914..1d928aa4d 100644 --- a/Google.Ads.GoogleAds/examples/Remarketing/UploadCallConversion.cs +++ b/Google.Ads.GoogleAds/examples/Remarketing/UploadCallConversion.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionAdjustment.cs b/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionAdjustment.cs index 0d57d0df9..ce9ab2ee6 100644 --- a/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionAdjustment.cs +++ b/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionAdjustment.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionEnhancement.cs b/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionEnhancement.cs index 9161a250f..ece8ae15c 100644 --- a/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionEnhancement.cs +++ b/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionEnhancement.cs @@ -17,6 +17,7 @@ using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Common; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionWithIdentifiers.cs b/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionWithIdentifiers.cs index 7826b88aa..5f839e48c 100644 --- a/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionWithIdentifiers.cs +++ b/Google.Ads.GoogleAds/examples/Remarketing/UploadConversionWithIdentifiers.cs @@ -17,6 +17,7 @@ using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Common; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Remarketing/UploadOfflineConversion.cs b/Google.Ads.GoogleAds/examples/Remarketing/UploadOfflineConversion.cs index 045a9377f..eb7cce8f3 100644 --- a/Google.Ads.GoogleAds/examples/Remarketing/UploadOfflineConversion.cs +++ b/Google.Ads.GoogleAds/examples/Remarketing/UploadOfflineConversion.cs @@ -16,6 +16,7 @@ using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Resources; using Google.Ads.GoogleAds.V14.Services; using System; using System.Collections.Generic; diff --git a/Google.Ads.GoogleAds/examples/Reporting/GetHotelAdsPerformance.cs b/Google.Ads.GoogleAds/examples/Reporting/GetHotelAdsPerformance.cs index 038b9f602..6bc99b065 100644 --- a/Google.Ads.GoogleAds/examples/Reporting/GetHotelAdsPerformance.cs +++ b/Google.Ads.GoogleAds/examples/Reporting/GetHotelAdsPerformance.cs @@ -15,13 +15,13 @@ using CommandLine; using Google.Ads.Gax.Examples; using Google.Ads.GoogleAds.Lib; -using Google.Ads.GoogleAds.V13.Errors; -using Google.Ads.GoogleAds.V13.Services; +using Google.Ads.GoogleAds.V14.Errors; +using Google.Ads.GoogleAds.V14.Services; using Google.Api.Gax; using System; using System.Collections.Generic; -namespace Google.Ads.GoogleAds.Examples.V13 +namespace Google.Ads.GoogleAds.Examples.V14 { /// /// This code example gets Hotel-ads performance statistics for the 50 Hotel ad groups with @@ -71,7 +71,7 @@ public void Run(GoogleAdsClient client, long customerId) { // Get the GoogleAdsService. GoogleAdsServiceClient googleAdsService = client.GetService( - Services.V13.GoogleAdsService); + Services.V14.GoogleAdsService); // Creates a query that retrieves hotel-ads statistics for each campaign and ad group. // Returned statistics will be segmented by the check-in day of week and length of diff --git a/Google.Ads.GoogleAds/src/Google.Ads.GoogleAds.csproj b/Google.Ads.GoogleAds/src/Google.Ads.GoogleAds.csproj index 1cf176436..171d29ada 100644 --- a/Google.Ads.GoogleAds/src/Google.Ads.GoogleAds.csproj +++ b/Google.Ads.GoogleAds/src/Google.Ads.GoogleAds.csproj @@ -3,7 +3,7 @@ Google Ads API Dotnet Client Library Google.Ads.GoogleAds - 16.1.0 + 17.0.0 This library provides you with functionality to access the Google Ads API. The Google Ads API is the modern programmatic interface to Google Ads and the next generation of the AdWords API. See https://developers.google.com/google-ads/api to learn more about Google Ads API. https://github.com/googleads/google-ads-dotnet/blob/master/ChangeLog GoogleAds Google diff --git a/Google.Ads.GoogleAds/src/V12/AccessInvitationError.g.cs b/Google.Ads.GoogleAds/src/V12/AccessInvitationError.g.cs deleted file mode 100755 index 084d05066..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccessInvitationError.g.cs +++ /dev/null @@ -1,268 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/access_invitation_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/access_invitation_error.proto - public static partial class AccessInvitationErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/access_invitation_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccessInvitationErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FjY2Vzc19pbnZp", - "dGF0aW9uX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzIvMCChlBY2Nlc3NJbnZpdGF0aW9uRXJyb3JFbnVtItUCChVBY2Nl", - "c3NJbnZpdGF0aW9uRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESGQoVSU5WQUxJRF9FTUFJTF9BRERSRVNTEAISJAogRU1BSUxfQUREUkVT", - "U19BTFJFQURZX0hBU19BQ0NFU1MQAxIdChlJTlZBTElEX0lOVklUQVRJT05f", - "U1RBVFVTEAQSJwojR09PR0xFX0NPTlNVTUVSX0FDQ09VTlRfTk9UX0FMTE9X", - "RUQQBRIZChVJTlZBTElEX0lOVklUQVRJT05fSUQQBhIwCixFTUFJTF9BRERS", - "RVNTX0FMUkVBRFlfSEFTX1BFTkRJTkdfSU5WSVRBVElPThAHEiYKIlBFTkRJ", - "TkdfSU5WSVRBVElPTlNfTElNSVRfRVhDRUVERUQQCBIgChxFTUFJTF9ET01B", - "SU5fUE9MSUNZX1ZJT0xBVEVEEAlC+gEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzQhpBY2Nlc3NJbnZpdGF0aW9uRXJyb3JQcm90b1AB", - "WkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJy", - "b3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorEnum.Types.AccessInvitationError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible AccessInvitation errors. - /// - public sealed partial class AccessInvitationErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessInvitationErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessInvitationErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessInvitationErrorEnum(AccessInvitationErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessInvitationErrorEnum Clone() { - return new AccessInvitationErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccessInvitationErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccessInvitationErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccessInvitationErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccessInvitationErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible AccessInvitation errors. - /// - public enum AccessInvitationError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The email address is invalid for sending an invitation. - /// - [pbr::OriginalName("INVALID_EMAIL_ADDRESS")] InvalidEmailAddress = 2, - /// - /// Email address already has access to this customer. - /// - [pbr::OriginalName("EMAIL_ADDRESS_ALREADY_HAS_ACCESS")] EmailAddressAlreadyHasAccess = 3, - /// - /// Invalid invitation status for the operation. - /// - [pbr::OriginalName("INVALID_INVITATION_STATUS")] InvalidInvitationStatus = 4, - /// - /// Email address cannot be like abc+foo@google.com. - /// - [pbr::OriginalName("GOOGLE_CONSUMER_ACCOUNT_NOT_ALLOWED")] GoogleConsumerAccountNotAllowed = 5, - /// - /// Invalid invitation ID. - /// - [pbr::OriginalName("INVALID_INVITATION_ID")] InvalidInvitationId = 6, - /// - /// Email address already has a pending invitation. - /// - [pbr::OriginalName("EMAIL_ADDRESS_ALREADY_HAS_PENDING_INVITATION")] EmailAddressAlreadyHasPendingInvitation = 7, - /// - /// Pending invitation limit exceeded for the customer. - /// - [pbr::OriginalName("PENDING_INVITATIONS_LIMIT_EXCEEDED")] PendingInvitationsLimitExceeded = 8, - /// - /// Email address doesn't conform to the email domain policy. See - /// https://support.google.com/google-ads/answer/2375456 - /// - [pbr::OriginalName("EMAIL_DOMAIN_POLICY_VIOLATED")] EmailDomainPolicyViolated = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccessInvitationStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AccessInvitationStatus.g.cs deleted file mode 100755 index 23f817087..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccessInvitationStatus.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/access_invitation_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/access_invitation_status.proto - public static partial class AccessInvitationStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/access_invitation_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccessInvitationStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjZXNzX2ludml0", - "YXRpb25fc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMifAoaQWNjZXNzSW52aXRhdGlvblN0YXR1c0VudW0iXgoWQWNjZXNz", - "SW52aXRhdGlvblN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q", - "ARILCgdQRU5ESU5HEAISDAoIREVDTElORUQQAxILCgdFWFBJUkVEEARC9QEK", - "ImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCG0FjY2Vzc0lu", - "dml0YXRpb25TdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1z", - "ogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum for identifying the status of access invitation - /// - public sealed partial class AccessInvitationStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessInvitationStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessInvitationStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessInvitationStatusEnum(AccessInvitationStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessInvitationStatusEnum Clone() { - return new AccessInvitationStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccessInvitationStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccessInvitationStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccessInvitationStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccessInvitationStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible access invitation status of a user - /// - public enum AccessInvitationStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The initial state of an invitation, before being acted upon by anyone. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// Invitation process was terminated by the email recipient. No new user was - /// created. - /// - [pbr::OriginalName("DECLINED")] Declined = 3, - /// - /// Invitation URLs expired without being acted upon. No new user can be - /// created. Invitations expire 20 days after creation. - /// - [pbr::OriginalName("EXPIRED")] Expired = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccessReason.g.cs b/Google.Ads.GoogleAds/src/V12/AccessReason.g.cs deleted file mode 100755 index a14a0d5a4..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccessReason.g.cs +++ /dev/null @@ -1,249 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/access_reason.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/access_reason.proto - public static partial class AccessReasonReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/access_reason.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccessReasonReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjZXNzX3JlYXNv", - "bi5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIoUBChBB", - "Y2Nlc3NSZWFzb25FbnVtInEKDEFjY2Vzc1JlYXNvbhIPCgtVTlNQRUNJRklF", - "RBAAEgsKB1VOS05PV04QARIJCgVPV05FRBACEgoKBlNIQVJFRBADEgwKCExJ", - "Q0VOU0VEEAQSDgoKU1VCU0NSSUJFRBAFEg4KCkFGRklMSUFURUQQBkLrAQoi", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IRQWNjZXNzUmVh", - "c29uUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AccessReasonEnum), global::Google.Ads.GoogleAds.V12.Enums.AccessReasonEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AccessReasonEnum.Types.AccessReason) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Indicates the way the resource such as user list is related to a user. - /// - public sealed partial class AccessReasonEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessReasonEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AccessReasonReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessReasonEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessReasonEnum(AccessReasonEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessReasonEnum Clone() { - return new AccessReasonEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccessReasonEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccessReasonEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccessReasonEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccessReasonEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible access reasons. - /// - public enum AccessReason { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The resource is owned by the user. - /// - [pbr::OriginalName("OWNED")] Owned = 2, - /// - /// The resource is shared to the user. - /// - [pbr::OriginalName("SHARED")] Shared = 3, - /// - /// The resource is licensed to the user. - /// - [pbr::OriginalName("LICENSED")] Licensed = 4, - /// - /// The user subscribed to the resource. - /// - [pbr::OriginalName("SUBSCRIBED")] Subscribed = 5, - /// - /// The resource is accessible to the user. - /// - [pbr::OriginalName("AFFILIATED")] Affiliated = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccessRole.g.cs b/Google.Ads.GoogleAds/src/V12/AccessRole.g.cs deleted file mode 100755 index 229102999..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccessRole.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/access_role.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/access_role.proto - public static partial class AccessRoleReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/access_role.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccessRoleReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjZXNzX3JvbGUu", - "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyJ0Cg5BY2Nl", - "c3NSb2xlRW51bSJiCgpBY2Nlc3NSb2xlEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEgkKBUFETUlOEAISDAoIU1RBTkRBUkQQAxINCglSRUFEX09O", - "TFkQBBIOCgpFTUFJTF9PTkxZEAVC6QEKImNvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXNCD0FjY2Vzc1JvbGVQcm90b1ABWkNnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum), global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible access role for user. - /// - public sealed partial class AccessRoleEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessRoleEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AccessRoleReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessRoleEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessRoleEnum(AccessRoleEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessRoleEnum Clone() { - return new AccessRoleEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccessRoleEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccessRoleEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccessRoleEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccessRoleEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible access role of a user. - /// - public enum AccessRole { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Owns its account and can control the addition of other users. - /// - [pbr::OriginalName("ADMIN")] Admin = 2, - /// - /// Can modify campaigns, but can't affect other users. - /// - [pbr::OriginalName("STANDARD")] Standard = 3, - /// - /// Can view campaigns and account changes, but cannot make edits. - /// - [pbr::OriginalName("READ_ONLY")] ReadOnly = 4, - /// - /// Role for \"email only\" access. Represents an email recipient rather than - /// a true User entity. - /// - [pbr::OriginalName("EMAIL_ONLY")] EmailOnly = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccessibleBiddingStrategy.g.cs b/Google.Ads.GoogleAds/src/V12/AccessibleBiddingStrategy.g.cs deleted file mode 100755 index e3285981d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccessibleBiddingStrategy.g.cs +++ /dev/null @@ -1,2283 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/accessible_bidding_strategy.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/accessible_bidding_strategy.proto - public static partial class AccessibleBiddingStrategyReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/accessible_bidding_strategy.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccessibleBiddingStrategyReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FjY2Vzc2li", - "bGVfYmlkZGluZ19zdHJhdGVneS5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL2JpZGRpbmdfc3RyYXRlZ3lfdHlwZS5wcm90bxpFZ29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL2VudW1zL3RhcmdldF9pbXByZXNzaW9uX3NoYXJlX2xv", - "Y2F0aW9uLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", - "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIpAOChlBY2Nlc3NpYmxlQmlk", - "ZGluZ1N0cmF0ZWd5ElEKDXJlc291cmNlX25hbWUYASABKAlCOuBBA/pBNAoy", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY2Vzc2libGVCaWRkaW5nU3Ry", - "YXRlZ3kSDwoCaWQYAiABKANCA+BBAxIRCgRuYW1lGAMgASgJQgPgQQMSXgoE", - "dHlwZRgEIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5C", - "aWRkaW5nU3RyYXRlZ3lUeXBlRW51bS5CaWRkaW5nU3RyYXRlZ3lUeXBlQgPg", - "QQMSHgoRb3duZXJfY3VzdG9tZXJfaWQYBSABKANCA+BBAxIjChZvd25lcl9k", - "ZXNjcmlwdGl2ZV9uYW1lGAYgASgJQgPgQQMSfwoZbWF4aW1pemVfY29udmVy", - "c2lvbl92YWx1ZRgHIAEoCzJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQWNjZXNzaWJsZUJpZGRpbmdTdHJhdGVneS5NYXhpbWl6ZUNv", - "bnZlcnNpb25WYWx1ZUID4EEDSAASdgoUbWF4aW1pemVfY29udmVyc2lvbnMY", - "CCABKAsyUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFj", - "Y2Vzc2libGVCaWRkaW5nU3RyYXRlZ3kuTWF4aW1pemVDb252ZXJzaW9uc0ID", - "4EEDSAASYgoKdGFyZ2V0X2NwYRgJIAEoCzJHLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQWNjZXNzaWJsZUJpZGRpbmdTdHJhdGVneS5U", - "YXJnZXRDcGFCA+BBA0gAEnsKF3RhcmdldF9pbXByZXNzaW9uX3NoYXJlGAog", - "ASgLMlMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BY2Nl", - "c3NpYmxlQmlkZGluZ1N0cmF0ZWd5LlRhcmdldEltcHJlc3Npb25TaGFyZUID", - "4EEDSAASZAoLdGFyZ2V0X3JvYXMYCyABKAsySC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzLkFjY2Vzc2libGVCaWRkaW5nU3RyYXRlZ3ku", - "VGFyZ2V0Um9hc0ID4EEDSAASZgoMdGFyZ2V0X3NwZW5kGAwgASgLMkkuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BY2Nlc3NpYmxlQmlk", - "ZGluZ1N0cmF0ZWd5LlRhcmdldFNwZW5kQgPgQQNIABozChdNYXhpbWl6ZUNv", - "bnZlcnNpb25WYWx1ZRIYCgt0YXJnZXRfcm9hcxgBIAEoAUID4EEDGjUKE01h", - "eGltaXplQ29udmVyc2lvbnMSHgoRdGFyZ2V0X2NwYV9taWNyb3MYAiABKANC", - "A+BBAxpGCglUYXJnZXRDcGESIwoRdGFyZ2V0X2NwYV9taWNyb3MYASABKANC", - "A+BBA0gAiAEBQhQKEl90YXJnZXRfY3BhX21pY3JvcxqYAgoVVGFyZ2V0SW1w", - "cmVzc2lvblNoYXJlEnYKCGxvY2F0aW9uGAEgASgOMl8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLlRhcmdldEltcHJlc3Npb25TaGFyZUxvY2F0", - "aW9uRW51bS5UYXJnZXRJbXByZXNzaW9uU2hhcmVMb2NhdGlvbkID4EEDEiUK", - "GGxvY2F0aW9uX2ZyYWN0aW9uX21pY3JvcxgCIAEoA0gAiAEBEigKFmNwY19i", - "aWRfY2VpbGluZ19taWNyb3MYAyABKANCA+BBA0gBiAEBQhsKGV9sb2NhdGlv", - "bl9mcmFjdGlvbl9taWNyb3NCGQoXX2NwY19iaWRfY2VpbGluZ19taWNyb3Ma", - "OwoKVGFyZ2V0Um9hcxIdCgt0YXJnZXRfcm9hcxgBIAEoAUID4EEDSACIAQFC", - "DgoMX3RhcmdldF9yb2FzGpMBCgtUYXJnZXRTcGVuZBInChN0YXJnZXRfc3Bl", - "bmRfbWljcm9zGAEgASgDQgUYAeBBA0gAiAEBEigKFmNwY19iaWRfY2VpbGlu", - "Z19taWNyb3MYAiABKANCA+BBA0gBiAEBQhYKFF90YXJnZXRfc3BlbmRfbWlj", - "cm9zQhkKF19jcGNfYmlkX2NlaWxpbmdfbWljcm9zOoIB6kF/CjJnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQWNjZXNzaWJsZUJpZGRpbmdTdHJhdGVneRJJ", - "Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYWNjZXNzaWJsZUJpZGRpbmdTdHJh", - "dGVnaWVzL3tiaWRkaW5nX3N0cmF0ZWd5X2lkfUIICgZzY2hlbWVCkAIKJmNv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQh5BY2Nlc3Np", - "YmxlQmlkZGluZ1N0cmF0ZWd5UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJj", - "ZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJj", - "ZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy), global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Parser, new[]{ "ResourceName", "Id", "Name", "Type", "OwnerCustomerId", "OwnerDescriptiveName", "MaximizeConversionValue", "MaximizeConversions", "TargetCpa", "TargetImpressionShare", "TargetRoas", "TargetSpend" }, new[]{ "Scheme" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue), global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue.Parser, new[]{ "TargetRoas" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions), global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions.Parser, new[]{ "TargetCpaMicros" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa), global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa.Parser, new[]{ "TargetCpaMicros" }, new[]{ "TargetCpaMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare), global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare.Parser, new[]{ "Location", "LocationFractionMicros", "CpcBidCeilingMicros" }, new[]{ "LocationFractionMicros", "CpcBidCeilingMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas), global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas.Parser, new[]{ "TargetRoas_" }, new[]{ "TargetRoas" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend), global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend.Parser, new[]{ "TargetSpendMicros", "CpcBidCeilingMicros" }, new[]{ "TargetSpendMicros", "CpcBidCeilingMicros" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a view of BiddingStrategies owned by and shared with the customer. - /// - /// In contrast to BiddingStrategy, this resource includes strategies owned by - /// managers of the customer and shared with this customer - in addition to - /// strategies owned by this customer. This resource does not provide metrics and - /// only exposes a limited subset of the BiddingStrategy attributes. - /// - public sealed partial class AccessibleBiddingStrategy : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccessibleBiddingStrategy()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategyReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessibleBiddingStrategy() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessibleBiddingStrategy(AccessibleBiddingStrategy other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - type_ = other.type_; - ownerCustomerId_ = other.ownerCustomerId_; - ownerDescriptiveName_ = other.ownerDescriptiveName_; - switch (other.SchemeCase) { - case SchemeOneofCase.MaximizeConversionValue: - MaximizeConversionValue = other.MaximizeConversionValue.Clone(); - break; - case SchemeOneofCase.MaximizeConversions: - MaximizeConversions = other.MaximizeConversions.Clone(); - break; - case SchemeOneofCase.TargetCpa: - TargetCpa = other.TargetCpa.Clone(); - break; - case SchemeOneofCase.TargetImpressionShare: - TargetImpressionShare = other.TargetImpressionShare.Clone(); - break; - case SchemeOneofCase.TargetRoas: - TargetRoas = other.TargetRoas.Clone(); - break; - case SchemeOneofCase.TargetSpend: - TargetSpend = other.TargetSpend.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccessibleBiddingStrategy Clone() { - return new AccessibleBiddingStrategy(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the accessible bidding strategy. - /// AccessibleBiddingStrategy resource names have the form: - /// - /// `customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. The ID of the bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Output only. The name of the bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType type_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified; - /// - /// Output only. The type of the bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "owner_customer_id" field. - public const int OwnerCustomerIdFieldNumber = 5; - private long ownerCustomerId_; - /// - /// Output only. The ID of the Customer which owns the bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long OwnerCustomerId { - get { return ownerCustomerId_; } - set { - ownerCustomerId_ = value; - } - } - - /// Field number for the "owner_descriptive_name" field. - public const int OwnerDescriptiveNameFieldNumber = 6; - private string ownerDescriptiveName_ = ""; - /// - /// Output only. descriptive_name of the Customer which owns the bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OwnerDescriptiveName { - get { return ownerDescriptiveName_; } - set { - ownerDescriptiveName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "maximize_conversion_value" field. - public const int MaximizeConversionValueFieldNumber = 7; - /// - /// Output only. An automated bidding strategy to help get the most conversion value for - /// your campaigns while spending your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue MaximizeConversionValue { - get { return schemeCase_ == SchemeOneofCase.MaximizeConversionValue ? (global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.MaximizeConversionValue; - } - } - - /// Field number for the "maximize_conversions" field. - public const int MaximizeConversionsFieldNumber = 8; - /// - /// Output only. An automated bidding strategy to help get the most conversions for your - /// campaigns while spending your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions MaximizeConversions { - get { return schemeCase_ == SchemeOneofCase.MaximizeConversions ? (global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.MaximizeConversions; - } - } - - /// Field number for the "target_cpa" field. - public const int TargetCpaFieldNumber = 9; - /// - /// Output only. A bidding strategy that sets bids to help get as many conversions as - /// possible at the target cost-per-acquisition (CPA) you set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa TargetCpa { - get { return schemeCase_ == SchemeOneofCase.TargetCpa ? (global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetCpa; - } - } - - /// Field number for the "target_impression_share" field. - public const int TargetImpressionShareFieldNumber = 10; - /// - /// Output only. A bidding strategy that automatically optimizes towards a chosen - /// percentage of impressions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare TargetImpressionShare { - get { return schemeCase_ == SchemeOneofCase.TargetImpressionShare ? (global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetImpressionShare; - } - } - - /// Field number for the "target_roas" field. - public const int TargetRoasFieldNumber = 11; - /// - /// Output only. A bidding strategy that helps you maximize revenue while averaging a - /// specific target Return On Ad Spend (ROAS). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas TargetRoas { - get { return schemeCase_ == SchemeOneofCase.TargetRoas ? (global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetRoas; - } - } - - /// Field number for the "target_spend" field. - public const int TargetSpendFieldNumber = 12; - /// - /// Output only. A bid strategy that sets your bids to help get as many clicks as - /// possible within your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend TargetSpend { - get { return schemeCase_ == SchemeOneofCase.TargetSpend ? (global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetSpend; - } - } - - private object scheme_; - /// Enum of possible cases for the "scheme" oneof. - public enum SchemeOneofCase { - None = 0, - MaximizeConversionValue = 7, - MaximizeConversions = 8, - TargetCpa = 9, - TargetImpressionShare = 10, - TargetRoas = 11, - TargetSpend = 12, - } - private SchemeOneofCase schemeCase_ = SchemeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SchemeOneofCase SchemeCase { - get { return schemeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearScheme() { - schemeCase_ = SchemeOneofCase.None; - scheme_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccessibleBiddingStrategy); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccessibleBiddingStrategy other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Type != other.Type) return false; - if (OwnerCustomerId != other.OwnerCustomerId) return false; - if (OwnerDescriptiveName != other.OwnerDescriptiveName) return false; - if (!object.Equals(MaximizeConversionValue, other.MaximizeConversionValue)) return false; - if (!object.Equals(MaximizeConversions, other.MaximizeConversions)) return false; - if (!object.Equals(TargetCpa, other.TargetCpa)) return false; - if (!object.Equals(TargetImpressionShare, other.TargetImpressionShare)) return false; - if (!object.Equals(TargetRoas, other.TargetRoas)) return false; - if (!object.Equals(TargetSpend, other.TargetSpend)) return false; - if (SchemeCase != other.SchemeCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) hash ^= Type.GetHashCode(); - if (OwnerCustomerId != 0L) hash ^= OwnerCustomerId.GetHashCode(); - if (OwnerDescriptiveName.Length != 0) hash ^= OwnerDescriptiveName.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) hash ^= MaximizeConversionValue.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) hash ^= MaximizeConversions.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetCpa) hash ^= TargetCpa.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) hash ^= TargetImpressionShare.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetRoas) hash ^= TargetRoas.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetSpend) hash ^= TargetSpend.GetHashCode(); - hash ^= (int) schemeCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (OwnerCustomerId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(OwnerCustomerId); - } - if (OwnerDescriptiveName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OwnerDescriptiveName); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - output.WriteRawTag(58); - output.WriteMessage(MaximizeConversionValue); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - output.WriteRawTag(66); - output.WriteMessage(MaximizeConversions); - } - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - output.WriteRawTag(74); - output.WriteMessage(TargetCpa); - } - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - output.WriteRawTag(82); - output.WriteMessage(TargetImpressionShare); - } - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - output.WriteRawTag(90); - output.WriteMessage(TargetRoas); - } - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - output.WriteRawTag(98); - output.WriteMessage(TargetSpend); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (OwnerCustomerId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(OwnerCustomerId); - } - if (OwnerDescriptiveName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OwnerDescriptiveName); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - output.WriteRawTag(58); - output.WriteMessage(MaximizeConversionValue); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - output.WriteRawTag(66); - output.WriteMessage(MaximizeConversions); - } - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - output.WriteRawTag(74); - output.WriteMessage(TargetCpa); - } - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - output.WriteRawTag(82); - output.WriteMessage(TargetImpressionShare); - } - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - output.WriteRawTag(90); - output.WriteMessage(TargetRoas); - } - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - output.WriteRawTag(98); - output.WriteMessage(TargetSpend); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (OwnerCustomerId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(OwnerCustomerId); - } - if (OwnerDescriptiveName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerDescriptiveName); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversionValue); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversions); - } - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpa); - } - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetImpressionShare); - } - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoas); - } - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetSpend); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccessibleBiddingStrategy other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - Type = other.Type; - } - if (other.OwnerCustomerId != 0L) { - OwnerCustomerId = other.OwnerCustomerId; - } - if (other.OwnerDescriptiveName.Length != 0) { - OwnerDescriptiveName = other.OwnerDescriptiveName; - } - switch (other.SchemeCase) { - case SchemeOneofCase.MaximizeConversionValue: - if (MaximizeConversionValue == null) { - MaximizeConversionValue = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue(); - } - MaximizeConversionValue.MergeFrom(other.MaximizeConversionValue); - break; - case SchemeOneofCase.MaximizeConversions: - if (MaximizeConversions == null) { - MaximizeConversions = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions(); - } - MaximizeConversions.MergeFrom(other.MaximizeConversions); - break; - case SchemeOneofCase.TargetCpa: - if (TargetCpa == null) { - TargetCpa = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa(); - } - TargetCpa.MergeFrom(other.TargetCpa); - break; - case SchemeOneofCase.TargetImpressionShare: - if (TargetImpressionShare == null) { - TargetImpressionShare = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare(); - } - TargetImpressionShare.MergeFrom(other.TargetImpressionShare); - break; - case SchemeOneofCase.TargetRoas: - if (TargetRoas == null) { - TargetRoas = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas(); - } - TargetRoas.MergeFrom(other.TargetRoas); - break; - case SchemeOneofCase.TargetSpend: - if (TargetSpend == null) { - TargetSpend = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend(); - } - TargetSpend.MergeFrom(other.TargetSpend); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType) input.ReadEnum(); - break; - } - case 40: { - OwnerCustomerId = input.ReadInt64(); - break; - } - case 50: { - OwnerDescriptiveName = input.ReadString(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - subBuilder.MergeFrom(MaximizeConversionValue); - } - input.ReadMessage(subBuilder); - MaximizeConversionValue = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - subBuilder.MergeFrom(MaximizeConversions); - } - input.ReadMessage(subBuilder); - MaximizeConversions = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa(); - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - subBuilder.MergeFrom(TargetCpa); - } - input.ReadMessage(subBuilder); - TargetCpa = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare(); - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - subBuilder.MergeFrom(TargetImpressionShare); - } - input.ReadMessage(subBuilder); - TargetImpressionShare = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas(); - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - subBuilder.MergeFrom(TargetRoas); - } - input.ReadMessage(subBuilder); - TargetRoas = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend(); - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - subBuilder.MergeFrom(TargetSpend); - } - input.ReadMessage(subBuilder); - TargetSpend = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType) input.ReadEnum(); - break; - } - case 40: { - OwnerCustomerId = input.ReadInt64(); - break; - } - case 50: { - OwnerDescriptiveName = input.ReadString(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversionValue(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - subBuilder.MergeFrom(MaximizeConversionValue); - } - input.ReadMessage(subBuilder); - MaximizeConversionValue = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.MaximizeConversions(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - subBuilder.MergeFrom(MaximizeConversions); - } - input.ReadMessage(subBuilder); - MaximizeConversions = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetCpa(); - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - subBuilder.MergeFrom(TargetCpa); - } - input.ReadMessage(subBuilder); - TargetCpa = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetImpressionShare(); - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - subBuilder.MergeFrom(TargetImpressionShare); - } - input.ReadMessage(subBuilder); - TargetImpressionShare = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetRoas(); - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - subBuilder.MergeFrom(TargetRoas); - } - input.ReadMessage(subBuilder); - TargetRoas = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Types.TargetSpend(); - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - subBuilder.MergeFrom(TargetSpend); - } - input.ReadMessage(subBuilder); - TargetSpend = subBuilder; - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccessibleBiddingStrategy message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// An automated bidding strategy to help get the most conversion value for - /// your campaigns while spending your budget. - /// - public sealed partial class MaximizeConversionValue : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaximizeConversionValue()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversionValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversionValue(MaximizeConversionValue other) : this() { - targetRoas_ = other.targetRoas_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversionValue Clone() { - return new MaximizeConversionValue(this); - } - - /// Field number for the "target_roas" field. - public const int TargetRoasFieldNumber = 1; - private double targetRoas_; - /// - /// Output only. The target return on ad spend (ROAS) option. If set, the bid strategy - /// will maximize revenue while averaging the target return on ad spend. If - /// the target ROAS is high, the bid strategy may not be able to spend the - /// full budget. If the target ROAS is not set, the bid strategy will aim to - /// achieve the highest possible ROAS for the budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double TargetRoas { - get { return targetRoas_; } - set { - targetRoas_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MaximizeConversionValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MaximizeConversionValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetRoas, other.TargetRoas)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TargetRoas != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetRoas); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TargetRoas != 0D) { - output.WriteRawTag(9); - output.WriteDouble(TargetRoas); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TargetRoas != 0D) { - output.WriteRawTag(9); - output.WriteDouble(TargetRoas); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TargetRoas != 0D) { - size += 1 + 8; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MaximizeConversionValue other) { - if (other == null) { - return; - } - if (other.TargetRoas != 0D) { - TargetRoas = other.TargetRoas; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 9: { - TargetRoas = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 9: { - TargetRoas = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bidding strategy to help get the most conversions for your - /// campaigns while spending your budget. - /// - public sealed partial class MaximizeConversions : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaximizeConversions()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversions() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversions(MaximizeConversions other) : this() { - targetCpaMicros_ = other.targetCpaMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversions Clone() { - return new MaximizeConversions(this); - } - - /// Field number for the "target_cpa_micros" field. - public const int TargetCpaMicrosFieldNumber = 2; - private long targetCpaMicros_; - /// - /// Output only. The target cost per acquisition (CPA) option. This is the average amount - /// that you would like to spend per acquisition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetCpaMicros { - get { return targetCpaMicros_; } - set { - targetCpaMicros_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MaximizeConversions); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MaximizeConversions other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TargetCpaMicros != other.TargetCpaMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TargetCpaMicros != 0L) hash ^= TargetCpaMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TargetCpaMicros != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TargetCpaMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TargetCpaMicros != 0L) { - output.WriteRawTag(16); - output.WriteInt64(TargetCpaMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TargetCpaMicros != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TargetCpaMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MaximizeConversions other) { - if (other == null) { - return; - } - if (other.TargetCpaMicros != 0L) { - TargetCpaMicros = other.TargetCpaMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - TargetCpaMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - TargetCpaMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bid strategy that sets bids to help get as many conversions as - /// possible at the target cost-per-acquisition (CPA) you set. - /// - public sealed partial class TargetCpa : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetCpa()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpa() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpa(TargetCpa other) : this() { - _hasBits0 = other._hasBits0; - targetCpaMicros_ = other.targetCpaMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpa Clone() { - return new TargetCpa(this); - } - - /// Field number for the "target_cpa_micros" field. - public const int TargetCpaMicrosFieldNumber = 1; - private long targetCpaMicros_; - /// - /// Output only. Average CPA target. - /// This target should be greater than or equal to minimum billable unit - /// based on the currency for the account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetCpaMicros { - get { if ((_hasBits0 & 1) != 0) { return targetCpaMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - targetCpaMicros_ = value; - } - } - /// Gets whether the "target_cpa_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetCpaMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "target_cpa_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetCpaMicros() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetCpa); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetCpa other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TargetCpaMicros != other.TargetCpaMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTargetCpaMicros) hash ^= TargetCpaMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTargetCpaMicros) { - output.WriteRawTag(8); - output.WriteInt64(TargetCpaMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTargetCpaMicros) { - output.WriteRawTag(8); - output.WriteInt64(TargetCpaMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTargetCpaMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TargetCpaMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetCpa other) { - if (other == null) { - return; - } - if (other.HasTargetCpaMicros) { - TargetCpaMicros = other.TargetCpaMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TargetCpaMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TargetCpaMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bidding strategy that sets bids so that a certain percentage - /// of search ads are shown at the top of the first page (or other targeted - /// location). - /// - public sealed partial class TargetImpressionShare : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetImpressionShare()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetImpressionShare() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetImpressionShare(TargetImpressionShare other) : this() { - _hasBits0 = other._hasBits0; - location_ = other.location_; - locationFractionMicros_ = other.locationFractionMicros_; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetImpressionShare Clone() { - return new TargetImpressionShare(this); - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation location_ = global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified; - /// - /// Output only. The targeted location on the search results page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "location_fraction_micros" field. - public const int LocationFractionMicrosFieldNumber = 2; - private long locationFractionMicros_; - /// - /// The chosen fraction of ads to be shown in the targeted location in - /// micros. For example, 1% equals 10,000. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long LocationFractionMicros { - get { if ((_hasBits0 & 1) != 0) { return locationFractionMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - locationFractionMicros_ = value; - } - } - /// Gets whether the "location_fraction_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLocationFractionMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "location_fraction_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLocationFractionMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 3; - private long cpcBidCeilingMicros_; - /// - /// Output only. The highest CPC bid the automated bidding system is permitted to specify. - /// This is a required field entered by the advertiser that sets the ceiling - /// and specified in local micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidCeilingMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidCeilingMicros_ = value; - } - } - /// Gets whether the "cpc_bid_ceiling_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidCeilingMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_ceiling_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidCeilingMicros() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetImpressionShare); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetImpressionShare other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Location != other.Location) return false; - if (LocationFractionMicros != other.LocationFractionMicros) return false; - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) hash ^= Location.GetHashCode(); - if (HasLocationFractionMicros) hash ^= LocationFractionMicros.GetHashCode(); - if (HasCpcBidCeilingMicros) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Location); - } - if (HasLocationFractionMicros) { - output.WriteRawTag(16); - output.WriteInt64(LocationFractionMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Location); - } - if (HasLocationFractionMicros) { - output.WriteRawTag(16); - output.WriteInt64(LocationFractionMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Location); - } - if (HasLocationFractionMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(LocationFractionMicros); - } - if (HasCpcBidCeilingMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetImpressionShare other) { - if (other == null) { - return; - } - if (other.Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - Location = other.Location; - } - if (other.HasLocationFractionMicros) { - LocationFractionMicros = other.LocationFractionMicros; - } - if (other.HasCpcBidCeilingMicros) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Location = (global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation) input.ReadEnum(); - break; - } - case 16: { - LocationFractionMicros = input.ReadInt64(); - break; - } - case 24: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Location = (global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation) input.ReadEnum(); - break; - } - case 16: { - LocationFractionMicros = input.ReadInt64(); - break; - } - case 24: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bidding strategy that helps you maximize revenue while - /// averaging a specific target return on ad spend (ROAS). - /// - public sealed partial class TargetRoas : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetRoas()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetRoas() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetRoas(TargetRoas other) : this() { - _hasBits0 = other._hasBits0; - targetRoas_ = other.targetRoas_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetRoas Clone() { - return new TargetRoas(this); - } - - /// Field number for the "target_roas" field. - public const int TargetRoas_FieldNumber = 1; - private double targetRoas_; - /// - /// Output only. The chosen revenue (based on conversion data) per unit of spend. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double TargetRoas_ { - get { if ((_hasBits0 & 1) != 0) { return targetRoas_; } else { return 0D; } } - set { - _hasBits0 |= 1; - targetRoas_ = value; - } - } - /// Gets whether the "target_roas" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetRoas_ { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "target_roas" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetRoas_() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetRoas); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetRoas other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetRoas_, other.TargetRoas_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTargetRoas_) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetRoas_); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTargetRoas_) { - output.WriteRawTag(9); - output.WriteDouble(TargetRoas_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTargetRoas_) { - output.WriteRawTag(9); - output.WriteDouble(TargetRoas_); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTargetRoas_) { - size += 1 + 8; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetRoas other) { - if (other == null) { - return; - } - if (other.HasTargetRoas_) { - TargetRoas_ = other.TargetRoas_; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 9: { - TargetRoas_ = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 9: { - TargetRoas_ = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bid strategy that sets your bids to help get as many clicks - /// as possible within your budget. - /// - public sealed partial class TargetSpend : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetSpend()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy.Descriptor.NestedTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetSpend() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetSpend(TargetSpend other) : this() { - _hasBits0 = other._hasBits0; - targetSpendMicros_ = other.targetSpendMicros_; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetSpend Clone() { - return new TargetSpend(this); - } - - /// Field number for the "target_spend_micros" field. - public const int TargetSpendMicrosFieldNumber = 1; - private long targetSpendMicros_; - /// - /// Output only. The spend target under which to maximize clicks. - /// A TargetSpend bidder will attempt to spend the smaller of this value - /// or the natural throttling spend amount. - /// If not specified, the budget is used as the spend target. - /// This field is deprecated and should no longer be used. See - /// https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html - /// for details. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetSpendMicros { - get { if ((_hasBits0 & 1) != 0) { return targetSpendMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - targetSpendMicros_ = value; - } - } - /// Gets whether the "target_spend_micros" field is set - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetSpendMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "target_spend_micros" field - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetSpendMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 2; - private long cpcBidCeilingMicros_; - /// - /// Output only. Maximum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidCeilingMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidCeilingMicros_ = value; - } - } - /// Gets whether the "cpc_bid_ceiling_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidCeilingMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_ceiling_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidCeilingMicros() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetSpend); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetSpend other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TargetSpendMicros != other.TargetSpendMicros) return false; - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTargetSpendMicros) hash ^= TargetSpendMicros.GetHashCode(); - if (HasCpcBidCeilingMicros) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTargetSpendMicros) { - output.WriteRawTag(8); - output.WriteInt64(TargetSpendMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(16); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTargetSpendMicros) { - output.WriteRawTag(8); - output.WriteInt64(TargetSpendMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(16); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTargetSpendMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TargetSpendMicros); - } - if (HasCpcBidCeilingMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetSpend other) { - if (other == null) { - return; - } - if (other.HasTargetSpendMicros) { - TargetSpendMicros = other.TargetSpendMicros; - } - if (other.HasCpcBidCeilingMicros) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TargetSpendMicros = input.ReadInt64(); - break; - } - case 16: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TargetSpendMicros = input.ReadInt64(); - break; - } - case 16: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccessibleBiddingStrategyResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AccessibleBiddingStrategyResourceNames.g.cs deleted file mode 100755 index fcb7a5fa1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccessibleBiddingStrategyResourceNames.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AccessibleBiddingStrategy resource. - public sealed partial class AccessibleBiddingStrategyName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}. - /// - CustomerBiddingStrategy = 1, - } - - private static gax::PathTemplate s_customerBiddingStrategy = new gax::PathTemplate("customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AccessibleBiddingStrategyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AccessibleBiddingStrategyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static AccessibleBiddingStrategyName FromCustomerBiddingStrategy(string customerId, string biddingStrategyId) => - new AccessibleBiddingStrategyName(ResourceNameType.CustomerBiddingStrategy, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), biddingStrategyId: gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}. - /// - public static string Format(string customerId, string biddingStrategyId) => - FormatCustomerBiddingStrategy(customerId, biddingStrategyId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}. - /// - public static string FormatCustomerBiddingStrategy(string customerId, string biddingStrategyId) => - s_customerBiddingStrategy.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static AccessibleBiddingStrategyName Parse(string accessibleBiddingStrategyName) => - Parse(accessibleBiddingStrategyName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AccessibleBiddingStrategyName Parse(string accessibleBiddingStrategyName, bool allowUnparsed) => - TryParse(accessibleBiddingStrategyName, allowUnparsed, out AccessibleBiddingStrategyName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accessibleBiddingStrategyName, out AccessibleBiddingStrategyName result) => - TryParse(accessibleBiddingStrategyName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accessibleBiddingStrategyName, bool allowUnparsed, out AccessibleBiddingStrategyName result) - { - gax::GaxPreconditions.CheckNotNull(accessibleBiddingStrategyName, nameof(accessibleBiddingStrategyName)); - gax::TemplatedResourceName resourceName; - if (s_customerBiddingStrategy.TryParseName(accessibleBiddingStrategyName, out resourceName)) - { - result = FromCustomerBiddingStrategy(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(accessibleBiddingStrategyName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AccessibleBiddingStrategyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string biddingStrategyId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - BiddingStrategyId = biddingStrategyId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id} - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - public AccessibleBiddingStrategyName(string customerId, string biddingStrategyId) : this(ResourceNameType.CustomerBiddingStrategy, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), biddingStrategyId: gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The BiddingStrategy ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string BiddingStrategyId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerBiddingStrategy: return s_customerBiddingStrategy.Expand(CustomerId, BiddingStrategyId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AccessibleBiddingStrategyName); - - /// - public bool Equals(AccessibleBiddingStrategyName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AccessibleBiddingStrategyName a, AccessibleBiddingStrategyName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AccessibleBiddingStrategyName a, AccessibleBiddingStrategyName b) => !(a == b); - } - - public partial class AccessibleBiddingStrategy - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::AccessibleBiddingStrategyName ResourceNameAsAccessibleBiddingStrategyName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AccessibleBiddingStrategyName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AccessibleBiddingStrategyName AccessibleBiddingStrategyName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AccessibleBiddingStrategyName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudget.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudget.g.cs deleted file mode 100755 index a3dc4c4c0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudget.g.cs +++ /dev/null @@ -1,2226 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/account_budget.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/account_budget.proto - public static partial class AccountBudgetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/account_budget.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountBudgetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FjY291bnRf", - "YnVkZ2V0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjb3VudF9i", - "dWRnZXRfcHJvcG9zYWxfdHlwZS5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2FjY291bnRfYnVkZ2V0X3N0YXR1cy5wcm90bxo4Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3NwZW5kaW5nX2xpbWl0X3R5", - "cGUucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy90aW1l", - "X3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8ikBQKDUFjY291bnRCdWRnZXQS", - "RQoNcmVzb3VyY2VfbmFtZRgBIAEoCUIu4EED+kEoCiZnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQWNjb3VudEJ1ZGdldBIUCgJpZBgXIAEoA0ID4EEDSAWI", - "AQESSQoNYmlsbGluZ19zZXR1cBgYIAEoCUIt4EED+kEnCiVnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQmlsbGluZ1NldHVwSAaIAQESYAoGc3RhdHVzGAQg", - "ASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFjY291bnRC", - "dWRnZXRTdGF0dXNFbnVtLkFjY291bnRCdWRnZXRTdGF0dXNCA+BBAxIWCgRu", - "YW1lGBkgASgJQgPgQQNIB4gBARIqChhwcm9wb3NlZF9zdGFydF9kYXRlX3Rp", - "bWUYGiABKAlCA+BBA0gIiAEBEioKGGFwcHJvdmVkX3N0YXJ0X2RhdGVfdGlt", - "ZRgbIAEoCUID4EEDSAmIAQESJQoYdG90YWxfYWRqdXN0bWVudHNfbWljcm9z", - "GCEgASgDQgPgQQMSIQoUYW1vdW50X3NlcnZlZF9taWNyb3MYIiABKANCA+BB", - "AxInChVwdXJjaGFzZV9vcmRlcl9udW1iZXIYIyABKAlCA+BBA0gKiAEBEhcK", - "BW5vdGVzGCQgASgJQgPgQQNIC4gBARJtChBwZW5kaW5nX3Byb3Bvc2FsGBYg", - "ASgLMk4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BY2Nv", - "dW50QnVkZ2V0LlBlbmRpbmdBY2NvdW50QnVkZ2V0UHJvcG9zYWxCA+BBAxIl", - "ChZwcm9wb3NlZF9lbmRfZGF0ZV90aW1lGBwgASgJQgPgQQNIABJcChZwcm9w", - "b3NlZF9lbmRfdGltZV90eXBlGAkgASgOMjUuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLlRpbWVUeXBlRW51bS5UaW1lVHlwZUID4EEDSAASJQoW", - "YXBwcm92ZWRfZW5kX2RhdGVfdGltZRgdIAEoCUID4EEDSAESXAoWYXBwcm92", - "ZWRfZW5kX3RpbWVfdHlwZRgLIAEoDjI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5UaW1lVHlwZUVudW0uVGltZVR5cGVCA+BBA0gBEi0KHnBy", - "b3Bvc2VkX3NwZW5kaW5nX2xpbWl0X21pY3JvcxgeIAEoA0ID4EEDSAISdAoc", - "cHJvcG9zZWRfc3BlbmRpbmdfbGltaXRfdHlwZRgNIAEoDjJHLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TcGVuZGluZ0xpbWl0VHlwZUVudW0u", - "U3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gCEi0KHmFwcHJvdmVkX3NwZW5kaW5n", - "X2xpbWl0X21pY3JvcxgfIAEoA0ID4EEDSAMSdAocYXBwcm92ZWRfc3BlbmRp", - "bmdfbGltaXRfdHlwZRgPIAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5TcGVuZGluZ0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5", - "cGVCA+BBA0gDEi0KHmFkanVzdGVkX3NwZW5kaW5nX2xpbWl0X21pY3Jvcxgg", - "IAEoA0ID4EEDSAQSdAocYWRqdXN0ZWRfc3BlbmRpbmdfbGltaXRfdHlwZRgR", - "IAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TcGVuZGlu", - "Z0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gEGqwGChxQ", - "ZW5kaW5nQWNjb3VudEJ1ZGdldFByb3Bvc2FsElwKF2FjY291bnRfYnVkZ2V0", - "X3Byb3Bvc2FsGAwgASgJQjbgQQP6QTAKLmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9BY2NvdW50QnVkZ2V0UHJvcG9zYWxIAogBARJzCg1wcm9wb3NhbF90", - "eXBlGAIgASgOMlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFj", - "Y291bnRCdWRnZXRQcm9wb3NhbFR5cGVFbnVtLkFjY291bnRCdWRnZXRQcm9w", - "b3NhbFR5cGVCA+BBAxIWCgRuYW1lGA0gASgJQgPgQQNIA4gBARIhCg9zdGFy", - "dF9kYXRlX3RpbWUYDiABKAlCA+BBA0gEiAEBEicKFXB1cmNoYXNlX29yZGVy", - "X251bWJlchgRIAEoCUID4EEDSAWIAQESFwoFbm90ZXMYEiABKAlCA+BBA0gG", - "iAEBEiQKEmNyZWF0aW9uX2RhdGVfdGltZRgTIAEoCUID4EEDSAeIAQESHAoN", - "ZW5kX2RhdGVfdGltZRgPIAEoCUID4EEDSAASUwoNZW5kX3RpbWVfdHlwZRgG", - "IAEoDjI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5UaW1lVHlw", - "ZUVudW0uVGltZVR5cGVCA+BBA0gAEiQKFXNwZW5kaW5nX2xpbWl0X21pY3Jv", - "cxgQIAEoA0ID4EEDSAESawoTc3BlbmRpbmdfbGltaXRfdHlwZRgIIAEoDjJH", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TcGVuZGluZ0xpbWl0", - "VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gBQgoKCGVuZF90aW1l", - "QhAKDnNwZW5kaW5nX2xpbWl0QhoKGF9hY2NvdW50X2J1ZGdldF9wcm9wb3Nh", - "bEIHCgVfbmFtZUISChBfc3RhcnRfZGF0ZV90aW1lQhgKFl9wdXJjaGFzZV9v", - "cmRlcl9udW1iZXJCCAoGX25vdGVzQhUKE19jcmVhdGlvbl9kYXRlX3RpbWU6", - "Z+pBZAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRCdWRnZXQS", - "OmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2FjY291bnRCdWRnZXRzL3thY2Nv", - "dW50X2J1ZGdldF9pZH1CEwoRcHJvcG9zZWRfZW5kX3RpbWVCEwoRYXBwcm92", - "ZWRfZW5kX3RpbWVCGQoXcHJvcG9zZWRfc3BlbmRpbmdfbGltaXRCGQoXYXBw", - "cm92ZWRfc3BlbmRpbmdfbGltaXRCGQoXYWRqdXN0ZWRfc3BlbmRpbmdfbGlt", - "aXRCBQoDX2lkQhAKDl9iaWxsaW5nX3NldHVwQgcKBV9uYW1lQhsKGV9wcm9w", - "b3NlZF9zdGFydF9kYXRlX3RpbWVCGwoZX2FwcHJvdmVkX3N0YXJ0X2RhdGVf", - "dGltZUIYChZfcHVyY2hhc2Vfb3JkZXJfbnVtYmVyQggKBl9ub3Rlc0KEAgom", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCEkFjY291", - "bnRCdWRnZXRQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJj", - "ZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2Vz", - "ygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.TimeTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccountBudget), global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Parser, new[]{ "ResourceName", "Id", "BillingSetup", "Status", "Name", "ProposedStartDateTime", "ApprovedStartDateTime", "TotalAdjustmentsMicros", "AmountServedMicros", "PurchaseOrderNumber", "Notes", "PendingProposal", "ProposedEndDateTime", "ProposedEndTimeType", "ApprovedEndDateTime", "ApprovedEndTimeType", "ProposedSpendingLimitMicros", "ProposedSpendingLimitType", "ApprovedSpendingLimitMicros", "ApprovedSpendingLimitType", "AdjustedSpendingLimitMicros", "AdjustedSpendingLimitType" }, new[]{ "ProposedEndTime", "ApprovedEndTime", "ProposedSpendingLimit", "ApprovedSpendingLimit", "AdjustedSpendingLimit", "Id", "BillingSetup", "Name", "ProposedStartDateTime", "ApprovedStartDateTime", "PurchaseOrderNumber", "Notes" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Types.PendingAccountBudgetProposal), global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Types.PendingAccountBudgetProposal.Parser, new[]{ "AccountBudgetProposal", "ProposalType", "Name", "StartDateTime", "PurchaseOrderNumber", "Notes", "CreationDateTime", "EndDateTime", "EndTimeType", "SpendingLimitMicros", "SpendingLimitType" }, new[]{ "EndTime", "SpendingLimit", "AccountBudgetProposal", "Name", "StartDateTime", "PurchaseOrderNumber", "Notes", "CreationDateTime" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// An account-level budget. It contains information about the budget itself, - /// as well as the most recently approved changes to the budget and proposed - /// changes that are pending approval. The proposed changes that are pending - /// approval, if any, are found in 'pending_proposal'. Effective details about - /// the budget are found in fields prefixed 'approved_', 'adjusted_' and those - /// without a prefix. Since some effective details may differ from what the user - /// had originally requested (for example, spending limit), these differences are - /// juxtaposed through 'proposed_', 'approved_', and possibly 'adjusted_' fields. - /// - /// This resource is mutated using AccountBudgetProposal and cannot be mutated - /// directly. A budget may have at most one pending proposal at any given time. - /// It is read through pending_proposal. - /// - /// Once approved, a budget may be subject to adjustments, such as credit - /// adjustments. Adjustments create differences between the 'approved' and - /// 'adjusted' fields, which would otherwise be identical. - /// - public sealed partial class AccountBudget : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudget()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudget() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudget(AccountBudget other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - billingSetup_ = other.billingSetup_; - status_ = other.status_; - name_ = other.name_; - proposedStartDateTime_ = other.proposedStartDateTime_; - approvedStartDateTime_ = other.approvedStartDateTime_; - totalAdjustmentsMicros_ = other.totalAdjustmentsMicros_; - amountServedMicros_ = other.amountServedMicros_; - purchaseOrderNumber_ = other.purchaseOrderNumber_; - notes_ = other.notes_; - pendingProposal_ = other.pendingProposal_ != null ? other.pendingProposal_.Clone() : null; - switch (other.ProposedEndTimeCase) { - case ProposedEndTimeOneofCase.ProposedEndDateTime: - ProposedEndDateTime = other.ProposedEndDateTime; - break; - case ProposedEndTimeOneofCase.ProposedEndTimeType: - ProposedEndTimeType = other.ProposedEndTimeType; - break; - } - - switch (other.ApprovedEndTimeCase) { - case ApprovedEndTimeOneofCase.ApprovedEndDateTime: - ApprovedEndDateTime = other.ApprovedEndDateTime; - break; - case ApprovedEndTimeOneofCase.ApprovedEndTimeType: - ApprovedEndTimeType = other.ApprovedEndTimeType; - break; - } - - switch (other.ProposedSpendingLimitCase) { - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros: - ProposedSpendingLimitMicros = other.ProposedSpendingLimitMicros; - break; - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitType: - ProposedSpendingLimitType = other.ProposedSpendingLimitType; - break; - } - - switch (other.ApprovedSpendingLimitCase) { - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros: - ApprovedSpendingLimitMicros = other.ApprovedSpendingLimitMicros; - break; - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType: - ApprovedSpendingLimitType = other.ApprovedSpendingLimitType; - break; - } - - switch (other.AdjustedSpendingLimitCase) { - case AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros: - AdjustedSpendingLimitMicros = other.AdjustedSpendingLimitMicros; - break; - case AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType: - AdjustedSpendingLimitType = other.AdjustedSpendingLimitType; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudget Clone() { - return new AccountBudget(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the account-level budget. - /// AccountBudget resource names have the form: - /// - /// `customers/{customer_id}/accountBudgets/{account_budget_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 23; - private long id_; - /// - /// Output only. The ID of the account-level budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "billing_setup" field. - public const int BillingSetupFieldNumber = 24; - private string billingSetup_; - /// - /// Output only. The resource name of the billing setup associated with this account-level - /// budget. BillingSetup resource names have the form: - /// - /// `customers/{customer_id}/billingSetups/{billing_setup_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BillingSetup { - get { return billingSetup_ ?? ""; } - set { - billingSetup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "billing_setup" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBillingSetup { - get { return billingSetup_ != null; } - } - /// Clears the value of the "billing_setup" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBillingSetup() { - billingSetup_ = null; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified; - /// - /// Output only. The status of this account-level budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 25; - private string name_; - /// - /// Output only. The name of the account-level budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "proposed_start_date_time" field. - public const int ProposedStartDateTimeFieldNumber = 26; - private string proposedStartDateTime_; - /// - /// Output only. The proposed start time of the account-level budget in - /// yyyy-MM-dd HH:mm:ss format. If a start time type of NOW was proposed, - /// this is the time of request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProposedStartDateTime { - get { return proposedStartDateTime_ ?? ""; } - set { - proposedStartDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "proposed_start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProposedStartDateTime { - get { return proposedStartDateTime_ != null; } - } - /// Clears the value of the "proposed_start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedStartDateTime() { - proposedStartDateTime_ = null; - } - - /// Field number for the "approved_start_date_time" field. - public const int ApprovedStartDateTimeFieldNumber = 27; - private string approvedStartDateTime_; - /// - /// Output only. The approved start time of the account-level budget in yyyy-MM-dd HH:mm:ss - /// format. - /// - /// For example, if a new budget is approved after the proposed start time, - /// the approved start time is the time of approval. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApprovedStartDateTime { - get { return approvedStartDateTime_ ?? ""; } - set { - approvedStartDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "approved_start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasApprovedStartDateTime { - get { return approvedStartDateTime_ != null; } - } - /// Clears the value of the "approved_start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearApprovedStartDateTime() { - approvedStartDateTime_ = null; - } - - /// Field number for the "total_adjustments_micros" field. - public const int TotalAdjustmentsMicrosFieldNumber = 33; - private long totalAdjustmentsMicros_; - /// - /// Output only. The total adjustments amount. - /// - /// An example of an adjustment is courtesy credits. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalAdjustmentsMicros { - get { return totalAdjustmentsMicros_; } - set { - totalAdjustmentsMicros_ = value; - } - } - - /// Field number for the "amount_served_micros" field. - public const int AmountServedMicrosFieldNumber = 34; - private long amountServedMicros_; - /// - /// Output only. The value of Ads that have been served, in micros. - /// - /// This includes overdelivery costs, in which case a credit might be - /// automatically applied to the budget (see total_adjustments_micros). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AmountServedMicros { - get { return amountServedMicros_; } - set { - amountServedMicros_ = value; - } - } - - /// Field number for the "purchase_order_number" field. - public const int PurchaseOrderNumberFieldNumber = 35; - private string purchaseOrderNumber_; - /// - /// Output only. A purchase order number is a value that helps users reference this budget - /// in their monthly invoices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PurchaseOrderNumber { - get { return purchaseOrderNumber_ ?? ""; } - set { - purchaseOrderNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "purchase_order_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPurchaseOrderNumber { - get { return purchaseOrderNumber_ != null; } - } - /// Clears the value of the "purchase_order_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPurchaseOrderNumber() { - purchaseOrderNumber_ = null; - } - - /// Field number for the "notes" field. - public const int NotesFieldNumber = 36; - private string notes_; - /// - /// Output only. Notes associated with the budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Notes { - get { return notes_ ?? ""; } - set { - notes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "notes" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNotes { - get { return notes_ != null; } - } - /// Clears the value of the "notes" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNotes() { - notes_ = null; - } - - /// Field number for the "pending_proposal" field. - public const int PendingProposalFieldNumber = 22; - private global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Types.PendingAccountBudgetProposal pendingProposal_; - /// - /// Output only. The pending proposal to modify this budget, if applicable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Types.PendingAccountBudgetProposal PendingProposal { - get { return pendingProposal_; } - set { - pendingProposal_ = value; - } - } - - /// Field number for the "proposed_end_date_time" field. - public const int ProposedEndDateTimeFieldNumber = 28; - /// - /// Output only. The proposed end time in yyyy-MM-dd HH:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProposedEndDateTime { - get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime ? (string) proposedEndTime_ : ""; } - set { - proposedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndDateTime; - } - } - - /// Field number for the "proposed_end_time_type" field. - public const int ProposedEndTimeTypeFieldNumber = 9; - /// - /// Output only. The proposed end time as a well-defined type, for example, FOREVER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType ProposedEndTimeType { - get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) proposedEndTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - proposedEndTime_ = value; - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType; - } - } - - /// Field number for the "approved_end_date_time" field. - public const int ApprovedEndDateTimeFieldNumber = 29; - /// - /// Output only. The approved end time in yyyy-MM-dd HH:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApprovedEndDateTime { - get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime ? (string) approvedEndTime_ : ""; } - set { - approvedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndDateTime; - } - } - - /// Field number for the "approved_end_time_type" field. - public const int ApprovedEndTimeTypeFieldNumber = 11; - /// - /// Output only. The approved end time as a well-defined type, for example, FOREVER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType ApprovedEndTimeType { - get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) approvedEndTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - approvedEndTime_ = value; - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType; - } - } - - /// Field number for the "proposed_spending_limit_micros" field. - public const int ProposedSpendingLimitMicrosFieldNumber = 30; - /// - /// Output only. The proposed spending limit in micros. One million is equivalent to - /// one unit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ProposedSpendingLimitMicros { - get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros ? (long) proposedSpendingLimit_ : 0L; } - set { - proposedSpendingLimit_ = value; - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros; - } - } - - /// Field number for the "proposed_spending_limit_type" field. - public const int ProposedSpendingLimitTypeFieldNumber = 13; - /// - /// Output only. The proposed spending limit as a well-defined type, for example, - /// INFINITE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ProposedSpendingLimitType { - get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType ? (global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) proposedSpendingLimit_ : global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; } - set { - proposedSpendingLimit_ = value; - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; - } - } - - /// Field number for the "approved_spending_limit_micros" field. - public const int ApprovedSpendingLimitMicrosFieldNumber = 31; - /// - /// Output only. The approved spending limit in micros. One million is equivalent to - /// one unit. This will only be populated if the proposed spending limit - /// is finite, and will always be greater than or equal to the - /// proposed spending limit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ApprovedSpendingLimitMicros { - get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros ? (long) approvedSpendingLimit_ : 0L; } - set { - approvedSpendingLimit_ = value; - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros; - } - } - - /// Field number for the "approved_spending_limit_type" field. - public const int ApprovedSpendingLimitTypeFieldNumber = 15; - /// - /// Output only. The approved spending limit as a well-defined type, for example, - /// INFINITE. This will only be populated if the approved spending limit is - /// INFINITE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ApprovedSpendingLimitType { - get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType ? (global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) approvedSpendingLimit_ : global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; } - set { - approvedSpendingLimit_ = value; - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; - } - } - - /// Field number for the "adjusted_spending_limit_micros" field. - public const int AdjustedSpendingLimitMicrosFieldNumber = 32; - /// - /// Output only. The adjusted spending limit in micros. One million is equivalent to - /// one unit. - /// - /// If the approved spending limit is finite, the adjusted - /// spending limit may vary depending on the types of adjustments applied - /// to this budget, if applicable. - /// - /// The different kinds of adjustments are described here: - /// https://support.google.com/google-ads/answer/1704323 - /// - /// For example, a debit adjustment reduces how much the account is - /// allowed to spend. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AdjustedSpendingLimitMicros { - get { return adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros ? (long) adjustedSpendingLimit_ : 0L; } - set { - adjustedSpendingLimit_ = value; - adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros; - } - } - - /// Field number for the "adjusted_spending_limit_type" field. - public const int AdjustedSpendingLimitTypeFieldNumber = 17; - /// - /// Output only. The adjusted spending limit as a well-defined type, for example, - /// INFINITE. This will only be populated if the adjusted spending limit is - /// INFINITE, which is guaranteed to be true if the approved spending limit - /// is INFINITE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType AdjustedSpendingLimitType { - get { return adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType ? (global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) adjustedSpendingLimit_ : global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; } - set { - adjustedSpendingLimit_ = value; - adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType; - } - } - - private object proposedEndTime_; - /// Enum of possible cases for the "proposed_end_time" oneof. - public enum ProposedEndTimeOneofCase { - None = 0, - ProposedEndDateTime = 28, - ProposedEndTimeType = 9, - } - private ProposedEndTimeOneofCase proposedEndTimeCase_ = ProposedEndTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProposedEndTimeOneofCase ProposedEndTimeCase { - get { return proposedEndTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedEndTime() { - proposedEndTimeCase_ = ProposedEndTimeOneofCase.None; - proposedEndTime_ = null; - } - - private object approvedEndTime_; - /// Enum of possible cases for the "approved_end_time" oneof. - public enum ApprovedEndTimeOneofCase { - None = 0, - ApprovedEndDateTime = 29, - ApprovedEndTimeType = 11, - } - private ApprovedEndTimeOneofCase approvedEndTimeCase_ = ApprovedEndTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApprovedEndTimeOneofCase ApprovedEndTimeCase { - get { return approvedEndTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearApprovedEndTime() { - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.None; - approvedEndTime_ = null; - } - - private object proposedSpendingLimit_; - /// Enum of possible cases for the "proposed_spending_limit" oneof. - public enum ProposedSpendingLimitOneofCase { - None = 0, - ProposedSpendingLimitMicros = 30, - ProposedSpendingLimitType = 13, - } - private ProposedSpendingLimitOneofCase proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProposedSpendingLimitOneofCase ProposedSpendingLimitCase { - get { return proposedSpendingLimitCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedSpendingLimit() { - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.None; - proposedSpendingLimit_ = null; - } - - private object approvedSpendingLimit_; - /// Enum of possible cases for the "approved_spending_limit" oneof. - public enum ApprovedSpendingLimitOneofCase { - None = 0, - ApprovedSpendingLimitMicros = 31, - ApprovedSpendingLimitType = 15, - } - private ApprovedSpendingLimitOneofCase approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApprovedSpendingLimitOneofCase ApprovedSpendingLimitCase { - get { return approvedSpendingLimitCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearApprovedSpendingLimit() { - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.None; - approvedSpendingLimit_ = null; - } - - private object adjustedSpendingLimit_; - /// Enum of possible cases for the "adjusted_spending_limit" oneof. - public enum AdjustedSpendingLimitOneofCase { - None = 0, - AdjustedSpendingLimitMicros = 32, - AdjustedSpendingLimitType = 17, - } - private AdjustedSpendingLimitOneofCase adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdjustedSpendingLimitOneofCase AdjustedSpendingLimitCase { - get { return adjustedSpendingLimitCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdjustedSpendingLimit() { - adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.None; - adjustedSpendingLimit_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudget); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudget other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (BillingSetup != other.BillingSetup) return false; - if (Status != other.Status) return false; - if (Name != other.Name) return false; - if (ProposedStartDateTime != other.ProposedStartDateTime) return false; - if (ApprovedStartDateTime != other.ApprovedStartDateTime) return false; - if (TotalAdjustmentsMicros != other.TotalAdjustmentsMicros) return false; - if (AmountServedMicros != other.AmountServedMicros) return false; - if (PurchaseOrderNumber != other.PurchaseOrderNumber) return false; - if (Notes != other.Notes) return false; - if (!object.Equals(PendingProposal, other.PendingProposal)) return false; - if (ProposedEndDateTime != other.ProposedEndDateTime) return false; - if (ProposedEndTimeType != other.ProposedEndTimeType) return false; - if (ApprovedEndDateTime != other.ApprovedEndDateTime) return false; - if (ApprovedEndTimeType != other.ApprovedEndTimeType) return false; - if (ProposedSpendingLimitMicros != other.ProposedSpendingLimitMicros) return false; - if (ProposedSpendingLimitType != other.ProposedSpendingLimitType) return false; - if (ApprovedSpendingLimitMicros != other.ApprovedSpendingLimitMicros) return false; - if (ApprovedSpendingLimitType != other.ApprovedSpendingLimitType) return false; - if (AdjustedSpendingLimitMicros != other.AdjustedSpendingLimitMicros) return false; - if (AdjustedSpendingLimitType != other.AdjustedSpendingLimitType) return false; - if (ProposedEndTimeCase != other.ProposedEndTimeCase) return false; - if (ApprovedEndTimeCase != other.ApprovedEndTimeCase) return false; - if (ProposedSpendingLimitCase != other.ProposedSpendingLimitCase) return false; - if (ApprovedSpendingLimitCase != other.ApprovedSpendingLimitCase) return false; - if (AdjustedSpendingLimitCase != other.AdjustedSpendingLimitCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasBillingSetup) hash ^= BillingSetup.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasProposedStartDateTime) hash ^= ProposedStartDateTime.GetHashCode(); - if (HasApprovedStartDateTime) hash ^= ApprovedStartDateTime.GetHashCode(); - if (TotalAdjustmentsMicros != 0L) hash ^= TotalAdjustmentsMicros.GetHashCode(); - if (AmountServedMicros != 0L) hash ^= AmountServedMicros.GetHashCode(); - if (HasPurchaseOrderNumber) hash ^= PurchaseOrderNumber.GetHashCode(); - if (HasNotes) hash ^= Notes.GetHashCode(); - if (pendingProposal_ != null) hash ^= PendingProposal.GetHashCode(); - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) hash ^= ProposedEndDateTime.GetHashCode(); - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) hash ^= ProposedEndTimeType.GetHashCode(); - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) hash ^= ApprovedEndDateTime.GetHashCode(); - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) hash ^= ApprovedEndTimeType.GetHashCode(); - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) hash ^= ProposedSpendingLimitMicros.GetHashCode(); - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) hash ^= ProposedSpendingLimitType.GetHashCode(); - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) hash ^= ApprovedSpendingLimitMicros.GetHashCode(); - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) hash ^= ApprovedSpendingLimitType.GetHashCode(); - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros) hash ^= AdjustedSpendingLimitMicros.GetHashCode(); - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType) hash ^= AdjustedSpendingLimitType.GetHashCode(); - hash ^= (int) proposedEndTimeCase_; - hash ^= (int) approvedEndTimeCase_; - hash ^= (int) proposedSpendingLimitCase_; - hash ^= (int) approvedSpendingLimitCase_; - hash ^= (int) adjustedSpendingLimitCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) { - output.WriteRawTag(72); - output.WriteEnum((int) ProposedEndTimeType); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) { - output.WriteRawTag(88); - output.WriteEnum((int) ApprovedEndTimeType); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) { - output.WriteRawTag(104); - output.WriteEnum((int) ProposedSpendingLimitType); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) { - output.WriteRawTag(120); - output.WriteEnum((int) ApprovedSpendingLimitType); - } - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) AdjustedSpendingLimitType); - } - if (pendingProposal_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(PendingProposal); - } - if (HasId) { - output.WriteRawTag(184, 1); - output.WriteInt64(Id); - } - if (HasBillingSetup) { - output.WriteRawTag(194, 1); - output.WriteString(BillingSetup); - } - if (HasName) { - output.WriteRawTag(202, 1); - output.WriteString(Name); - } - if (HasProposedStartDateTime) { - output.WriteRawTag(210, 1); - output.WriteString(ProposedStartDateTime); - } - if (HasApprovedStartDateTime) { - output.WriteRawTag(218, 1); - output.WriteString(ApprovedStartDateTime); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) { - output.WriteRawTag(226, 1); - output.WriteString(ProposedEndDateTime); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) { - output.WriteRawTag(234, 1); - output.WriteString(ApprovedEndDateTime); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) { - output.WriteRawTag(240, 1); - output.WriteInt64(ProposedSpendingLimitMicros); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) { - output.WriteRawTag(248, 1); - output.WriteInt64(ApprovedSpendingLimitMicros); - } - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros) { - output.WriteRawTag(128, 2); - output.WriteInt64(AdjustedSpendingLimitMicros); - } - if (TotalAdjustmentsMicros != 0L) { - output.WriteRawTag(136, 2); - output.WriteInt64(TotalAdjustmentsMicros); - } - if (AmountServedMicros != 0L) { - output.WriteRawTag(144, 2); - output.WriteInt64(AmountServedMicros); - } - if (HasPurchaseOrderNumber) { - output.WriteRawTag(154, 2); - output.WriteString(PurchaseOrderNumber); - } - if (HasNotes) { - output.WriteRawTag(162, 2); - output.WriteString(Notes); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) { - output.WriteRawTag(72); - output.WriteEnum((int) ProposedEndTimeType); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) { - output.WriteRawTag(88); - output.WriteEnum((int) ApprovedEndTimeType); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) { - output.WriteRawTag(104); - output.WriteEnum((int) ProposedSpendingLimitType); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) { - output.WriteRawTag(120); - output.WriteEnum((int) ApprovedSpendingLimitType); - } - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) AdjustedSpendingLimitType); - } - if (pendingProposal_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(PendingProposal); - } - if (HasId) { - output.WriteRawTag(184, 1); - output.WriteInt64(Id); - } - if (HasBillingSetup) { - output.WriteRawTag(194, 1); - output.WriteString(BillingSetup); - } - if (HasName) { - output.WriteRawTag(202, 1); - output.WriteString(Name); - } - if (HasProposedStartDateTime) { - output.WriteRawTag(210, 1); - output.WriteString(ProposedStartDateTime); - } - if (HasApprovedStartDateTime) { - output.WriteRawTag(218, 1); - output.WriteString(ApprovedStartDateTime); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) { - output.WriteRawTag(226, 1); - output.WriteString(ProposedEndDateTime); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) { - output.WriteRawTag(234, 1); - output.WriteString(ApprovedEndDateTime); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) { - output.WriteRawTag(240, 1); - output.WriteInt64(ProposedSpendingLimitMicros); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) { - output.WriteRawTag(248, 1); - output.WriteInt64(ApprovedSpendingLimitMicros); - } - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros) { - output.WriteRawTag(128, 2); - output.WriteInt64(AdjustedSpendingLimitMicros); - } - if (TotalAdjustmentsMicros != 0L) { - output.WriteRawTag(136, 2); - output.WriteInt64(TotalAdjustmentsMicros); - } - if (AmountServedMicros != 0L) { - output.WriteRawTag(144, 2); - output.WriteInt64(AmountServedMicros); - } - if (HasPurchaseOrderNumber) { - output.WriteRawTag(154, 2); - output.WriteString(PurchaseOrderNumber); - } - if (HasNotes) { - output.WriteRawTag(162, 2); - output.WriteString(Notes); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasBillingSetup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BillingSetup); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasProposedStartDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedStartDateTime); - } - if (HasApprovedStartDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ApprovedStartDateTime); - } - if (TotalAdjustmentsMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TotalAdjustmentsMicros); - } - if (AmountServedMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AmountServedMicros); - } - if (HasPurchaseOrderNumber) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PurchaseOrderNumber); - } - if (HasNotes) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Notes); - } - if (pendingProposal_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PendingProposal); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedEndDateTime); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedEndTimeType); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ApprovedEndDateTime); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovedEndTimeType); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ProposedSpendingLimitMicros); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedSpendingLimitType); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ApprovedSpendingLimitMicros); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovedSpendingLimitType); - } - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AdjustedSpendingLimitMicros); - } - if (adjustedSpendingLimitCase_ == AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdjustedSpendingLimitType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudget other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasBillingSetup) { - BillingSetup = other.BillingSetup; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus.Unspecified) { - Status = other.Status; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasProposedStartDateTime) { - ProposedStartDateTime = other.ProposedStartDateTime; - } - if (other.HasApprovedStartDateTime) { - ApprovedStartDateTime = other.ApprovedStartDateTime; - } - if (other.TotalAdjustmentsMicros != 0L) { - TotalAdjustmentsMicros = other.TotalAdjustmentsMicros; - } - if (other.AmountServedMicros != 0L) { - AmountServedMicros = other.AmountServedMicros; - } - if (other.HasPurchaseOrderNumber) { - PurchaseOrderNumber = other.PurchaseOrderNumber; - } - if (other.HasNotes) { - Notes = other.Notes; - } - if (other.pendingProposal_ != null) { - if (pendingProposal_ == null) { - PendingProposal = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Types.PendingAccountBudgetProposal(); - } - PendingProposal.MergeFrom(other.PendingProposal); - } - switch (other.ProposedEndTimeCase) { - case ProposedEndTimeOneofCase.ProposedEndDateTime: - ProposedEndDateTime = other.ProposedEndDateTime; - break; - case ProposedEndTimeOneofCase.ProposedEndTimeType: - ProposedEndTimeType = other.ProposedEndTimeType; - break; - } - - switch (other.ApprovedEndTimeCase) { - case ApprovedEndTimeOneofCase.ApprovedEndDateTime: - ApprovedEndDateTime = other.ApprovedEndDateTime; - break; - case ApprovedEndTimeOneofCase.ApprovedEndTimeType: - ApprovedEndTimeType = other.ApprovedEndTimeType; - break; - } - - switch (other.ProposedSpendingLimitCase) { - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros: - ProposedSpendingLimitMicros = other.ProposedSpendingLimitMicros; - break; - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitType: - ProposedSpendingLimitType = other.ProposedSpendingLimitType; - break; - } - - switch (other.ApprovedSpendingLimitCase) { - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros: - ApprovedSpendingLimitMicros = other.ApprovedSpendingLimitMicros; - break; - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType: - ApprovedSpendingLimitType = other.ApprovedSpendingLimitType; - break; - } - - switch (other.AdjustedSpendingLimitCase) { - case AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitMicros: - AdjustedSpendingLimitMicros = other.AdjustedSpendingLimitMicros; - break; - case AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType: - AdjustedSpendingLimitType = other.AdjustedSpendingLimitType; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus) input.ReadEnum(); - break; - } - case 72: { - proposedEndTime_ = input.ReadEnum(); - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType; - break; - } - case 88: { - approvedEndTime_ = input.ReadEnum(); - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType; - break; - } - case 104: { - proposedSpendingLimit_ = input.ReadEnum(); - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; - break; - } - case 120: { - approvedSpendingLimit_ = input.ReadEnum(); - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; - break; - } - case 136: { - adjustedSpendingLimit_ = input.ReadEnum(); - adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType; - break; - } - case 178: { - if (pendingProposal_ == null) { - PendingProposal = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Types.PendingAccountBudgetProposal(); - } - input.ReadMessage(PendingProposal); - break; - } - case 184: { - Id = input.ReadInt64(); - break; - } - case 194: { - BillingSetup = input.ReadString(); - break; - } - case 202: { - Name = input.ReadString(); - break; - } - case 210: { - ProposedStartDateTime = input.ReadString(); - break; - } - case 218: { - ApprovedStartDateTime = input.ReadString(); - break; - } - case 226: { - ProposedEndDateTime = input.ReadString(); - break; - } - case 234: { - ApprovedEndDateTime = input.ReadString(); - break; - } - case 240: { - ProposedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 248: { - ApprovedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 256: { - AdjustedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 264: { - TotalAdjustmentsMicros = input.ReadInt64(); - break; - } - case 272: { - AmountServedMicros = input.ReadInt64(); - break; - } - case 282: { - PurchaseOrderNumber = input.ReadString(); - break; - } - case 290: { - Notes = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus) input.ReadEnum(); - break; - } - case 72: { - proposedEndTime_ = input.ReadEnum(); - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType; - break; - } - case 88: { - approvedEndTime_ = input.ReadEnum(); - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType; - break; - } - case 104: { - proposedSpendingLimit_ = input.ReadEnum(); - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; - break; - } - case 120: { - approvedSpendingLimit_ = input.ReadEnum(); - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; - break; - } - case 136: { - adjustedSpendingLimit_ = input.ReadEnum(); - adjustedSpendingLimitCase_ = AdjustedSpendingLimitOneofCase.AdjustedSpendingLimitType; - break; - } - case 178: { - if (pendingProposal_ == null) { - PendingProposal = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Types.PendingAccountBudgetProposal(); - } - input.ReadMessage(PendingProposal); - break; - } - case 184: { - Id = input.ReadInt64(); - break; - } - case 194: { - BillingSetup = input.ReadString(); - break; - } - case 202: { - Name = input.ReadString(); - break; - } - case 210: { - ProposedStartDateTime = input.ReadString(); - break; - } - case 218: { - ApprovedStartDateTime = input.ReadString(); - break; - } - case 226: { - ProposedEndDateTime = input.ReadString(); - break; - } - case 234: { - ApprovedEndDateTime = input.ReadString(); - break; - } - case 240: { - ProposedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 248: { - ApprovedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 256: { - AdjustedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 264: { - TotalAdjustmentsMicros = input.ReadInt64(); - break; - } - case 272: { - AmountServedMicros = input.ReadInt64(); - break; - } - case 282: { - PurchaseOrderNumber = input.ReadString(); - break; - } - case 290: { - Notes = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccountBudget message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// A pending proposal associated with the enclosing account-level budget, - /// if applicable. - /// - public sealed partial class PendingAccountBudgetProposal : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PendingAccountBudgetProposal()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountBudget.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PendingAccountBudgetProposal() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PendingAccountBudgetProposal(PendingAccountBudgetProposal other) : this() { - accountBudgetProposal_ = other.accountBudgetProposal_; - proposalType_ = other.proposalType_; - name_ = other.name_; - startDateTime_ = other.startDateTime_; - purchaseOrderNumber_ = other.purchaseOrderNumber_; - notes_ = other.notes_; - creationDateTime_ = other.creationDateTime_; - switch (other.EndTimeCase) { - case EndTimeOneofCase.EndDateTime: - EndDateTime = other.EndDateTime; - break; - case EndTimeOneofCase.EndTimeType: - EndTimeType = other.EndTimeType; - break; - } - - switch (other.SpendingLimitCase) { - case SpendingLimitOneofCase.SpendingLimitMicros: - SpendingLimitMicros = other.SpendingLimitMicros; - break; - case SpendingLimitOneofCase.SpendingLimitType: - SpendingLimitType = other.SpendingLimitType; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PendingAccountBudgetProposal Clone() { - return new PendingAccountBudgetProposal(this); - } - - /// Field number for the "account_budget_proposal" field. - public const int AccountBudgetProposalFieldNumber = 12; - private string accountBudgetProposal_; - /// - /// Output only. The resource name of the proposal. - /// AccountBudgetProposal resource names have the form: - /// - /// `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccountBudgetProposal { - get { return accountBudgetProposal_ ?? ""; } - set { - accountBudgetProposal_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "account_budget_proposal" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccountBudgetProposal { - get { return accountBudgetProposal_ != null; } - } - /// Clears the value of the "account_budget_proposal" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccountBudgetProposal() { - accountBudgetProposal_ = null; - } - - /// Field number for the "proposal_type" field. - public const int ProposalTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType proposalType_ = global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified; - /// - /// Output only. The type of this proposal, for example, END to end the budget associated - /// with this proposal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType ProposalType { - get { return proposalType_; } - set { - proposalType_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 13; - private string name_; - /// - /// Output only. The name to assign to the account-level budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "start_date_time" field. - public const int StartDateTimeFieldNumber = 14; - private string startDateTime_; - /// - /// Output only. The start time in yyyy-MM-dd HH:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDateTime { - get { return startDateTime_ ?? ""; } - set { - startDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDateTime { - get { return startDateTime_ != null; } - } - /// Clears the value of the "start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDateTime() { - startDateTime_ = null; - } - - /// Field number for the "purchase_order_number" field. - public const int PurchaseOrderNumberFieldNumber = 17; - private string purchaseOrderNumber_; - /// - /// Output only. A purchase order number is a value that helps users reference this budget - /// in their monthly invoices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PurchaseOrderNumber { - get { return purchaseOrderNumber_ ?? ""; } - set { - purchaseOrderNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "purchase_order_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPurchaseOrderNumber { - get { return purchaseOrderNumber_ != null; } - } - /// Clears the value of the "purchase_order_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPurchaseOrderNumber() { - purchaseOrderNumber_ = null; - } - - /// Field number for the "notes" field. - public const int NotesFieldNumber = 18; - private string notes_; - /// - /// Output only. Notes associated with this budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Notes { - get { return notes_ ?? ""; } - set { - notes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "notes" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNotes { - get { return notes_ != null; } - } - /// Clears the value of the "notes" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNotes() { - notes_ = null; - } - - /// Field number for the "creation_date_time" field. - public const int CreationDateTimeFieldNumber = 19; - private string creationDateTime_; - /// - /// Output only. The time when this account-level budget proposal was created. - /// Formatted as yyyy-MM-dd HH:mm:ss. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CreationDateTime { - get { return creationDateTime_ ?? ""; } - set { - creationDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "creation_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCreationDateTime { - get { return creationDateTime_ != null; } - } - /// Clears the value of the "creation_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCreationDateTime() { - creationDateTime_ = null; - } - - /// Field number for the "end_date_time" field. - public const int EndDateTimeFieldNumber = 15; - /// - /// Output only. The end time in yyyy-MM-dd HH:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDateTime { - get { return endTimeCase_ == EndTimeOneofCase.EndDateTime ? (string) endTime_ : ""; } - set { - endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - endTimeCase_ = EndTimeOneofCase.EndDateTime; - } - } - - /// Field number for the "end_time_type" field. - public const int EndTimeTypeFieldNumber = 6; - /// - /// Output only. The end time as a well-defined type, for example, FOREVER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType EndTimeType { - get { return endTimeCase_ == EndTimeOneofCase.EndTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) endTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - endTime_ = value; - endTimeCase_ = EndTimeOneofCase.EndTimeType; - } - } - - /// Field number for the "spending_limit_micros" field. - public const int SpendingLimitMicrosFieldNumber = 16; - /// - /// Output only. The spending limit in micros. One million is equivalent to - /// one unit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SpendingLimitMicros { - get { return spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitMicros ? (long) spendingLimit_ : 0L; } - set { - spendingLimit_ = value; - spendingLimitCase_ = SpendingLimitOneofCase.SpendingLimitMicros; - } - } - - /// Field number for the "spending_limit_type" field. - public const int SpendingLimitTypeFieldNumber = 8; - /// - /// Output only. The spending limit as a well-defined type, for example, INFINITE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType SpendingLimitType { - get { return spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitType ? (global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) spendingLimit_ : global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; } - set { - spendingLimit_ = value; - spendingLimitCase_ = SpendingLimitOneofCase.SpendingLimitType; - } - } - - private object endTime_; - /// Enum of possible cases for the "end_time" oneof. - public enum EndTimeOneofCase { - None = 0, - EndDateTime = 15, - EndTimeType = 6, - } - private EndTimeOneofCase endTimeCase_ = EndTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EndTimeOneofCase EndTimeCase { - get { return endTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndTime() { - endTimeCase_ = EndTimeOneofCase.None; - endTime_ = null; - } - - private object spendingLimit_; - /// Enum of possible cases for the "spending_limit" oneof. - public enum SpendingLimitOneofCase { - None = 0, - SpendingLimitMicros = 16, - SpendingLimitType = 8, - } - private SpendingLimitOneofCase spendingLimitCase_ = SpendingLimitOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpendingLimitOneofCase SpendingLimitCase { - get { return spendingLimitCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSpendingLimit() { - spendingLimitCase_ = SpendingLimitOneofCase.None; - spendingLimit_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PendingAccountBudgetProposal); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PendingAccountBudgetProposal other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AccountBudgetProposal != other.AccountBudgetProposal) return false; - if (ProposalType != other.ProposalType) return false; - if (Name != other.Name) return false; - if (StartDateTime != other.StartDateTime) return false; - if (PurchaseOrderNumber != other.PurchaseOrderNumber) return false; - if (Notes != other.Notes) return false; - if (CreationDateTime != other.CreationDateTime) return false; - if (EndDateTime != other.EndDateTime) return false; - if (EndTimeType != other.EndTimeType) return false; - if (SpendingLimitMicros != other.SpendingLimitMicros) return false; - if (SpendingLimitType != other.SpendingLimitType) return false; - if (EndTimeCase != other.EndTimeCase) return false; - if (SpendingLimitCase != other.SpendingLimitCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAccountBudgetProposal) hash ^= AccountBudgetProposal.GetHashCode(); - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) hash ^= ProposalType.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasStartDateTime) hash ^= StartDateTime.GetHashCode(); - if (HasPurchaseOrderNumber) hash ^= PurchaseOrderNumber.GetHashCode(); - if (HasNotes) hash ^= Notes.GetHashCode(); - if (HasCreationDateTime) hash ^= CreationDateTime.GetHashCode(); - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) hash ^= EndDateTime.GetHashCode(); - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) hash ^= EndTimeType.GetHashCode(); - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitMicros) hash ^= SpendingLimitMicros.GetHashCode(); - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitType) hash ^= SpendingLimitType.GetHashCode(); - hash ^= (int) endTimeCase_; - hash ^= (int) spendingLimitCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ProposalType); - } - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) { - output.WriteRawTag(48); - output.WriteEnum((int) EndTimeType); - } - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitType) { - output.WriteRawTag(64); - output.WriteEnum((int) SpendingLimitType); - } - if (HasAccountBudgetProposal) { - output.WriteRawTag(98); - output.WriteString(AccountBudgetProposal); - } - if (HasName) { - output.WriteRawTag(106); - output.WriteString(Name); - } - if (HasStartDateTime) { - output.WriteRawTag(114); - output.WriteString(StartDateTime); - } - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) { - output.WriteRawTag(122); - output.WriteString(EndDateTime); - } - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitMicros) { - output.WriteRawTag(128, 1); - output.WriteInt64(SpendingLimitMicros); - } - if (HasPurchaseOrderNumber) { - output.WriteRawTag(138, 1); - output.WriteString(PurchaseOrderNumber); - } - if (HasNotes) { - output.WriteRawTag(146, 1); - output.WriteString(Notes); - } - if (HasCreationDateTime) { - output.WriteRawTag(154, 1); - output.WriteString(CreationDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ProposalType); - } - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) { - output.WriteRawTag(48); - output.WriteEnum((int) EndTimeType); - } - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitType) { - output.WriteRawTag(64); - output.WriteEnum((int) SpendingLimitType); - } - if (HasAccountBudgetProposal) { - output.WriteRawTag(98); - output.WriteString(AccountBudgetProposal); - } - if (HasName) { - output.WriteRawTag(106); - output.WriteString(Name); - } - if (HasStartDateTime) { - output.WriteRawTag(114); - output.WriteString(StartDateTime); - } - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) { - output.WriteRawTag(122); - output.WriteString(EndDateTime); - } - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitMicros) { - output.WriteRawTag(128, 1); - output.WriteInt64(SpendingLimitMicros); - } - if (HasPurchaseOrderNumber) { - output.WriteRawTag(138, 1); - output.WriteString(PurchaseOrderNumber); - } - if (HasNotes) { - output.WriteRawTag(146, 1); - output.WriteString(Notes); - } - if (HasCreationDateTime) { - output.WriteRawTag(154, 1); - output.WriteString(CreationDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAccountBudgetProposal) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AccountBudgetProposal); - } - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposalType); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasStartDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDateTime); - } - if (HasPurchaseOrderNumber) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PurchaseOrderNumber); - } - if (HasNotes) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Notes); - } - if (HasCreationDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CreationDateTime); - } - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDateTime); - } - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndTimeType); - } - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(SpendingLimitMicros); - } - if (spendingLimitCase_ == SpendingLimitOneofCase.SpendingLimitType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SpendingLimitType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PendingAccountBudgetProposal other) { - if (other == null) { - return; - } - if (other.HasAccountBudgetProposal) { - AccountBudgetProposal = other.AccountBudgetProposal; - } - if (other.ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - ProposalType = other.ProposalType; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasStartDateTime) { - StartDateTime = other.StartDateTime; - } - if (other.HasPurchaseOrderNumber) { - PurchaseOrderNumber = other.PurchaseOrderNumber; - } - if (other.HasNotes) { - Notes = other.Notes; - } - if (other.HasCreationDateTime) { - CreationDateTime = other.CreationDateTime; - } - switch (other.EndTimeCase) { - case EndTimeOneofCase.EndDateTime: - EndDateTime = other.EndDateTime; - break; - case EndTimeOneofCase.EndTimeType: - EndTimeType = other.EndTimeType; - break; - } - - switch (other.SpendingLimitCase) { - case SpendingLimitOneofCase.SpendingLimitMicros: - SpendingLimitMicros = other.SpendingLimitMicros; - break; - case SpendingLimitOneofCase.SpendingLimitType: - SpendingLimitType = other.SpendingLimitType; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - ProposalType = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType) input.ReadEnum(); - break; - } - case 48: { - endTime_ = input.ReadEnum(); - endTimeCase_ = EndTimeOneofCase.EndTimeType; - break; - } - case 64: { - spendingLimit_ = input.ReadEnum(); - spendingLimitCase_ = SpendingLimitOneofCase.SpendingLimitType; - break; - } - case 98: { - AccountBudgetProposal = input.ReadString(); - break; - } - case 106: { - Name = input.ReadString(); - break; - } - case 114: { - StartDateTime = input.ReadString(); - break; - } - case 122: { - EndDateTime = input.ReadString(); - break; - } - case 128: { - SpendingLimitMicros = input.ReadInt64(); - break; - } - case 138: { - PurchaseOrderNumber = input.ReadString(); - break; - } - case 146: { - Notes = input.ReadString(); - break; - } - case 154: { - CreationDateTime = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - ProposalType = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType) input.ReadEnum(); - break; - } - case 48: { - endTime_ = input.ReadEnum(); - endTimeCase_ = EndTimeOneofCase.EndTimeType; - break; - } - case 64: { - spendingLimit_ = input.ReadEnum(); - spendingLimitCase_ = SpendingLimitOneofCase.SpendingLimitType; - break; - } - case 98: { - AccountBudgetProposal = input.ReadString(); - break; - } - case 106: { - Name = input.ReadString(); - break; - } - case 114: { - StartDateTime = input.ReadString(); - break; - } - case 122: { - EndDateTime = input.ReadString(); - break; - } - case 128: { - SpendingLimitMicros = input.ReadInt64(); - break; - } - case 138: { - PurchaseOrderNumber = input.ReadString(); - break; - } - case 146: { - Notes = input.ReadString(); - break; - } - case 154: { - CreationDateTime = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposal.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposal.g.cs deleted file mode 100755 index 9fc10804d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposal.g.cs +++ /dev/null @@ -1,1440 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/account_budget_proposal.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/account_budget_proposal.proto - public static partial class AccountBudgetProposalReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/account_budget_proposal.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountBudgetProposalReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FjY291bnRf", - "YnVkZ2V0X3Byb3Bvc2FsLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "YWNjb3VudF9idWRnZXRfcHJvcG9zYWxfc3RhdHVzLnByb3RvGkFnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjb3VudF9idWRnZXRfcHJvcG9z", - "YWxfdHlwZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3NwZW5kaW5nX2xpbWl0X3R5cGUucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcy90aW1lX3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmll", - "bGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i", - "/g4KFUFjY291bnRCdWRnZXRQcm9wb3NhbBJNCg1yZXNvdXJjZV9uYW1lGAEg", - "ASgJQjbgQQX6QTAKLmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BY2NvdW50", - "QnVkZ2V0UHJvcG9zYWwSFAoCaWQYGSABKANCA+BBA0gFiAEBEkkKDWJpbGxp", - "bmdfc2V0dXAYGiABKAlCLeBBBfpBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0JpbGxpbmdTZXR1cEgGiAEBEksKDmFjY291bnRfYnVkZ2V0GBsgASgJ", - "Qi7gQQX6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BY2NvdW50QnVk", - "Z2V0SAeIAQEScwoNcHJvcG9zYWxfdHlwZRgEIAEoDjJXLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lbnVtcy5BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBl", - "RW51bS5BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlQgPgQQUScAoGc3RhdHVz", - "GA8gASgOMlsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFjY291", - "bnRCdWRnZXRQcm9wb3NhbFN0YXR1c0VudW0uQWNjb3VudEJ1ZGdldFByb3Bv", - "c2FsU3RhdHVzQgPgQQMSHwoNcHJvcG9zZWRfbmFtZRgcIAEoCUID4EEFSAiI", - "AQESKgoYYXBwcm92ZWRfc3RhcnRfZGF0ZV90aW1lGB4gASgJQgPgQQNICYgB", - "ARIwCh5wcm9wb3NlZF9wdXJjaGFzZV9vcmRlcl9udW1iZXIYIyABKAlCA+BB", - "BUgKiAEBEiAKDnByb3Bvc2VkX25vdGVzGCQgASgJQgPgQQVIC4gBARIkChJj", - "cmVhdGlvbl9kYXRlX3RpbWUYJSABKAlCA+BBA0gMiAEBEiQKEmFwcHJvdmFs", - "X2RhdGVfdGltZRgmIAEoCUID4EEDSA2IAQESJwoYcHJvcG9zZWRfc3RhcnRf", - "ZGF0ZV90aW1lGB0gASgJQgPgQQVIABJeChhwcm9wb3NlZF9zdGFydF90aW1l", - "X3R5cGUYByABKA4yNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "VGltZVR5cGVFbnVtLlRpbWVUeXBlQgPgQQVIABIlChZwcm9wb3NlZF9lbmRf", - "ZGF0ZV90aW1lGB8gASgJQgPgQQVIARJcChZwcm9wb3NlZF9lbmRfdGltZV90", - "eXBlGAkgASgOMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlRp", - "bWVUeXBlRW51bS5UaW1lVHlwZUID4EEFSAESJQoWYXBwcm92ZWRfZW5kX2Rh", - "dGVfdGltZRggIAEoCUID4EEDSAISXAoWYXBwcm92ZWRfZW5kX3RpbWVfdHlw", - "ZRgWIAEoDjI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5UaW1l", - "VHlwZUVudW0uVGltZVR5cGVCA+BBA0gCEi0KHnByb3Bvc2VkX3NwZW5kaW5n", - "X2xpbWl0X21pY3JvcxghIAEoA0ID4EEFSAMSdAoccHJvcG9zZWRfc3BlbmRp", - "bmdfbGltaXRfdHlwZRgLIAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5TcGVuZGluZ0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5", - "cGVCA+BBBUgDEi0KHmFwcHJvdmVkX3NwZW5kaW5nX2xpbWl0X21pY3Jvcxgi", - "IAEoA0ID4EEDSAQSdAocYXBwcm92ZWRfc3BlbmRpbmdfbGltaXRfdHlwZRgY", - "IAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TcGVuZGlu", - "Z0xpbWl0VHlwZUVudW0uU3BlbmRpbmdMaW1pdFR5cGVCA+BBA0gEOoAB6kF9", - "Ci5nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWNjb3VudEJ1ZGdldFByb3Bv", - "c2FsEktjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9hY2NvdW50QnVkZ2V0UHJv", - "cG9zYWxzL3thY2NvdW50X2J1ZGdldF9wcm9wb3NhbF9pZH1CFQoTcHJvcG9z", - "ZWRfc3RhcnRfdGltZUITChFwcm9wb3NlZF9lbmRfdGltZUITChFhcHByb3Zl", - "ZF9lbmRfdGltZUIZChdwcm9wb3NlZF9zcGVuZGluZ19saW1pdEIZChdhcHBy", - "b3ZlZF9zcGVuZGluZ19saW1pdEIFCgNfaWRCEAoOX2JpbGxpbmdfc2V0dXBC", - "EQoPX2FjY291bnRfYnVkZ2V0QhAKDl9wcm9wb3NlZF9uYW1lQhsKGV9hcHBy", - "b3ZlZF9zdGFydF9kYXRlX3RpbWVCIQofX3Byb3Bvc2VkX3B1cmNoYXNlX29y", - "ZGVyX251bWJlckIRCg9fcHJvcG9zZWRfbm90ZXNCFQoTX2NyZWF0aW9uX2Rh", - "dGVfdGltZUIVChNfYXBwcm92YWxfZGF0ZV90aW1lQowCCiZjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0IaQWNjb3VudEJ1ZGdldFBy", - "b3Bvc2FsUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2Vz", - "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oC", - "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.TimeTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal), global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal.Parser, new[]{ "ResourceName", "Id", "BillingSetup", "AccountBudget", "ProposalType", "Status", "ProposedName", "ApprovedStartDateTime", "ProposedPurchaseOrderNumber", "ProposedNotes", "CreationDateTime", "ApprovalDateTime", "ProposedStartDateTime", "ProposedStartTimeType", "ProposedEndDateTime", "ProposedEndTimeType", "ApprovedEndDateTime", "ApprovedEndTimeType", "ProposedSpendingLimitMicros", "ProposedSpendingLimitType", "ApprovedSpendingLimitMicros", "ApprovedSpendingLimitType" }, new[]{ "ProposedStartTime", "ProposedEndTime", "ApprovedEndTime", "ProposedSpendingLimit", "ApprovedSpendingLimit", "Id", "BillingSetup", "AccountBudget", "ProposedName", "ApprovedStartDateTime", "ProposedPurchaseOrderNumber", "ProposedNotes", "CreationDateTime", "ApprovalDateTime" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An account-level budget proposal. - /// - /// All fields prefixed with 'proposed' may not necessarily be applied directly. - /// For example, proposed spending limits may be adjusted before their - /// application. This is true if the 'proposed' field has an 'approved' - /// counterpart, for example, spending limits. - /// - /// Note that the proposal type (proposal_type) changes which fields are - /// required and which must remain empty. - /// - public sealed partial class AccountBudgetProposal : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudgetProposal()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposalReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposal() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposal(AccountBudgetProposal other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - billingSetup_ = other.billingSetup_; - accountBudget_ = other.accountBudget_; - proposalType_ = other.proposalType_; - status_ = other.status_; - proposedName_ = other.proposedName_; - approvedStartDateTime_ = other.approvedStartDateTime_; - proposedPurchaseOrderNumber_ = other.proposedPurchaseOrderNumber_; - proposedNotes_ = other.proposedNotes_; - creationDateTime_ = other.creationDateTime_; - approvalDateTime_ = other.approvalDateTime_; - switch (other.ProposedStartTimeCase) { - case ProposedStartTimeOneofCase.ProposedStartDateTime: - ProposedStartDateTime = other.ProposedStartDateTime; - break; - case ProposedStartTimeOneofCase.ProposedStartTimeType: - ProposedStartTimeType = other.ProposedStartTimeType; - break; - } - - switch (other.ProposedEndTimeCase) { - case ProposedEndTimeOneofCase.ProposedEndDateTime: - ProposedEndDateTime = other.ProposedEndDateTime; - break; - case ProposedEndTimeOneofCase.ProposedEndTimeType: - ProposedEndTimeType = other.ProposedEndTimeType; - break; - } - - switch (other.ApprovedEndTimeCase) { - case ApprovedEndTimeOneofCase.ApprovedEndDateTime: - ApprovedEndDateTime = other.ApprovedEndDateTime; - break; - case ApprovedEndTimeOneofCase.ApprovedEndTimeType: - ApprovedEndTimeType = other.ApprovedEndTimeType; - break; - } - - switch (other.ProposedSpendingLimitCase) { - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros: - ProposedSpendingLimitMicros = other.ProposedSpendingLimitMicros; - break; - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitType: - ProposedSpendingLimitType = other.ProposedSpendingLimitType; - break; - } - - switch (other.ApprovedSpendingLimitCase) { - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros: - ApprovedSpendingLimitMicros = other.ApprovedSpendingLimitMicros; - break; - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType: - ApprovedSpendingLimitType = other.ApprovedSpendingLimitType; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposal Clone() { - return new AccountBudgetProposal(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the proposal. - /// AccountBudgetProposal resource names have the form: - /// - /// `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 25; - private long id_; - /// - /// Output only. The ID of the proposal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "billing_setup" field. - public const int BillingSetupFieldNumber = 26; - private string billingSetup_; - /// - /// Immutable. The resource name of the billing setup associated with this proposal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BillingSetup { - get { return billingSetup_ ?? ""; } - set { - billingSetup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "billing_setup" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBillingSetup { - get { return billingSetup_ != null; } - } - /// Clears the value of the "billing_setup" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBillingSetup() { - billingSetup_ = null; - } - - /// Field number for the "account_budget" field. - public const int AccountBudgetFieldNumber = 27; - private string accountBudget_; - /// - /// Immutable. The resource name of the account-level budget associated with this - /// proposal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccountBudget { - get { return accountBudget_ ?? ""; } - set { - accountBudget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "account_budget" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccountBudget { - get { return accountBudget_ != null; } - } - /// Clears the value of the "account_budget" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccountBudget() { - accountBudget_ = null; - } - - /// Field number for the "proposal_type" field. - public const int ProposalTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType proposalType_ = global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified; - /// - /// Immutable. The type of this proposal, for example, END to end the budget associated - /// with this proposal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType ProposalType { - get { return proposalType_; } - set { - proposalType_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 15; - private global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified; - /// - /// Output only. The status of this proposal. - /// When a new proposal is created, the status defaults to PENDING. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "proposed_name" field. - public const int ProposedNameFieldNumber = 28; - private string proposedName_; - /// - /// Immutable. The name to assign to the account-level budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProposedName { - get { return proposedName_ ?? ""; } - set { - proposedName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "proposed_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProposedName { - get { return proposedName_ != null; } - } - /// Clears the value of the "proposed_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedName() { - proposedName_ = null; - } - - /// Field number for the "approved_start_date_time" field. - public const int ApprovedStartDateTimeFieldNumber = 30; - private string approvedStartDateTime_; - /// - /// Output only. The approved start date time in yyyy-mm-dd hh:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApprovedStartDateTime { - get { return approvedStartDateTime_ ?? ""; } - set { - approvedStartDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "approved_start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasApprovedStartDateTime { - get { return approvedStartDateTime_ != null; } - } - /// Clears the value of the "approved_start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearApprovedStartDateTime() { - approvedStartDateTime_ = null; - } - - /// Field number for the "proposed_purchase_order_number" field. - public const int ProposedPurchaseOrderNumberFieldNumber = 35; - private string proposedPurchaseOrderNumber_; - /// - /// Immutable. A purchase order number is a value that enables the user to help them - /// reference this budget in their monthly invoices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProposedPurchaseOrderNumber { - get { return proposedPurchaseOrderNumber_ ?? ""; } - set { - proposedPurchaseOrderNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "proposed_purchase_order_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProposedPurchaseOrderNumber { - get { return proposedPurchaseOrderNumber_ != null; } - } - /// Clears the value of the "proposed_purchase_order_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedPurchaseOrderNumber() { - proposedPurchaseOrderNumber_ = null; - } - - /// Field number for the "proposed_notes" field. - public const int ProposedNotesFieldNumber = 36; - private string proposedNotes_; - /// - /// Immutable. Notes associated with this budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProposedNotes { - get { return proposedNotes_ ?? ""; } - set { - proposedNotes_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "proposed_notes" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProposedNotes { - get { return proposedNotes_ != null; } - } - /// Clears the value of the "proposed_notes" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedNotes() { - proposedNotes_ = null; - } - - /// Field number for the "creation_date_time" field. - public const int CreationDateTimeFieldNumber = 37; - private string creationDateTime_; - /// - /// Output only. The date time when this account-level budget proposal was created, which is - /// not the same as its approval date time, if applicable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CreationDateTime { - get { return creationDateTime_ ?? ""; } - set { - creationDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "creation_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCreationDateTime { - get { return creationDateTime_ != null; } - } - /// Clears the value of the "creation_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCreationDateTime() { - creationDateTime_ = null; - } - - /// Field number for the "approval_date_time" field. - public const int ApprovalDateTimeFieldNumber = 38; - private string approvalDateTime_; - /// - /// Output only. The date time when this account-level budget was approved, if applicable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApprovalDateTime { - get { return approvalDateTime_ ?? ""; } - set { - approvalDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "approval_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasApprovalDateTime { - get { return approvalDateTime_ != null; } - } - /// Clears the value of the "approval_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearApprovalDateTime() { - approvalDateTime_ = null; - } - - /// Field number for the "proposed_start_date_time" field. - public const int ProposedStartDateTimeFieldNumber = 29; - /// - /// Immutable. The proposed start date time in yyyy-mm-dd hh:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProposedStartDateTime { - get { return proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartDateTime ? (string) proposedStartTime_ : ""; } - set { - proposedStartTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - proposedStartTimeCase_ = ProposedStartTimeOneofCase.ProposedStartDateTime; - } - } - - /// Field number for the "proposed_start_time_type" field. - public const int ProposedStartTimeTypeFieldNumber = 7; - /// - /// Immutable. The proposed start date time as a well-defined type, for example, NOW. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType ProposedStartTimeType { - get { return proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) proposedStartTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - proposedStartTime_ = value; - proposedStartTimeCase_ = ProposedStartTimeOneofCase.ProposedStartTimeType; - } - } - - /// Field number for the "proposed_end_date_time" field. - public const int ProposedEndDateTimeFieldNumber = 31; - /// - /// Immutable. The proposed end date time in yyyy-mm-dd hh:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProposedEndDateTime { - get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime ? (string) proposedEndTime_ : ""; } - set { - proposedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndDateTime; - } - } - - /// Field number for the "proposed_end_time_type" field. - public const int ProposedEndTimeTypeFieldNumber = 9; - /// - /// Immutable. The proposed end date time as a well-defined type, for example, FOREVER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType ProposedEndTimeType { - get { return proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) proposedEndTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - proposedEndTime_ = value; - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType; - } - } - - /// Field number for the "approved_end_date_time" field. - public const int ApprovedEndDateTimeFieldNumber = 32; - /// - /// Output only. The approved end date time in yyyy-mm-dd hh:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ApprovedEndDateTime { - get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime ? (string) approvedEndTime_ : ""; } - set { - approvedEndTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndDateTime; - } - } - - /// Field number for the "approved_end_time_type" field. - public const int ApprovedEndTimeTypeFieldNumber = 22; - /// - /// Output only. The approved end date time as a well-defined type, for example, FOREVER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType ApprovedEndTimeType { - get { return approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) approvedEndTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - approvedEndTime_ = value; - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType; - } - } - - /// Field number for the "proposed_spending_limit_micros" field. - public const int ProposedSpendingLimitMicrosFieldNumber = 33; - /// - /// Immutable. The proposed spending limit in micros. One million is equivalent to - /// one unit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ProposedSpendingLimitMicros { - get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros ? (long) proposedSpendingLimit_ : 0L; } - set { - proposedSpendingLimit_ = value; - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros; - } - } - - /// Field number for the "proposed_spending_limit_type" field. - public const int ProposedSpendingLimitTypeFieldNumber = 11; - /// - /// Immutable. The proposed spending limit as a well-defined type, for example, - /// INFINITE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ProposedSpendingLimitType { - get { return proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType ? (global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) proposedSpendingLimit_ : global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; } - set { - proposedSpendingLimit_ = value; - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; - } - } - - /// Field number for the "approved_spending_limit_micros" field. - public const int ApprovedSpendingLimitMicrosFieldNumber = 34; - /// - /// Output only. The approved spending limit in micros. One million is equivalent to - /// one unit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ApprovedSpendingLimitMicros { - get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros ? (long) approvedSpendingLimit_ : 0L; } - set { - approvedSpendingLimit_ = value; - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros; - } - } - - /// Field number for the "approved_spending_limit_type" field. - public const int ApprovedSpendingLimitTypeFieldNumber = 24; - /// - /// Output only. The approved spending limit as a well-defined type, for example, - /// INFINITE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType ApprovedSpendingLimitType { - get { return approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType ? (global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType) approvedSpendingLimit_ : global::Google.Ads.GoogleAds.V12.Enums.SpendingLimitTypeEnum.Types.SpendingLimitType.Unspecified; } - set { - approvedSpendingLimit_ = value; - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; - } - } - - private object proposedStartTime_; - /// Enum of possible cases for the "proposed_start_time" oneof. - public enum ProposedStartTimeOneofCase { - None = 0, - ProposedStartDateTime = 29, - ProposedStartTimeType = 7, - } - private ProposedStartTimeOneofCase proposedStartTimeCase_ = ProposedStartTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProposedStartTimeOneofCase ProposedStartTimeCase { - get { return proposedStartTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedStartTime() { - proposedStartTimeCase_ = ProposedStartTimeOneofCase.None; - proposedStartTime_ = null; - } - - private object proposedEndTime_; - /// Enum of possible cases for the "proposed_end_time" oneof. - public enum ProposedEndTimeOneofCase { - None = 0, - ProposedEndDateTime = 31, - ProposedEndTimeType = 9, - } - private ProposedEndTimeOneofCase proposedEndTimeCase_ = ProposedEndTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProposedEndTimeOneofCase ProposedEndTimeCase { - get { return proposedEndTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedEndTime() { - proposedEndTimeCase_ = ProposedEndTimeOneofCase.None; - proposedEndTime_ = null; - } - - private object approvedEndTime_; - /// Enum of possible cases for the "approved_end_time" oneof. - public enum ApprovedEndTimeOneofCase { - None = 0, - ApprovedEndDateTime = 32, - ApprovedEndTimeType = 22, - } - private ApprovedEndTimeOneofCase approvedEndTimeCase_ = ApprovedEndTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApprovedEndTimeOneofCase ApprovedEndTimeCase { - get { return approvedEndTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearApprovedEndTime() { - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.None; - approvedEndTime_ = null; - } - - private object proposedSpendingLimit_; - /// Enum of possible cases for the "proposed_spending_limit" oneof. - public enum ProposedSpendingLimitOneofCase { - None = 0, - ProposedSpendingLimitMicros = 33, - ProposedSpendingLimitType = 11, - } - private ProposedSpendingLimitOneofCase proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProposedSpendingLimitOneofCase ProposedSpendingLimitCase { - get { return proposedSpendingLimitCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProposedSpendingLimit() { - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.None; - proposedSpendingLimit_ = null; - } - - private object approvedSpendingLimit_; - /// Enum of possible cases for the "approved_spending_limit" oneof. - public enum ApprovedSpendingLimitOneofCase { - None = 0, - ApprovedSpendingLimitMicros = 34, - ApprovedSpendingLimitType = 24, - } - private ApprovedSpendingLimitOneofCase approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ApprovedSpendingLimitOneofCase ApprovedSpendingLimitCase { - get { return approvedSpendingLimitCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearApprovedSpendingLimit() { - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.None; - approvedSpendingLimit_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudgetProposal); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudgetProposal other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (BillingSetup != other.BillingSetup) return false; - if (AccountBudget != other.AccountBudget) return false; - if (ProposalType != other.ProposalType) return false; - if (Status != other.Status) return false; - if (ProposedName != other.ProposedName) return false; - if (ApprovedStartDateTime != other.ApprovedStartDateTime) return false; - if (ProposedPurchaseOrderNumber != other.ProposedPurchaseOrderNumber) return false; - if (ProposedNotes != other.ProposedNotes) return false; - if (CreationDateTime != other.CreationDateTime) return false; - if (ApprovalDateTime != other.ApprovalDateTime) return false; - if (ProposedStartDateTime != other.ProposedStartDateTime) return false; - if (ProposedStartTimeType != other.ProposedStartTimeType) return false; - if (ProposedEndDateTime != other.ProposedEndDateTime) return false; - if (ProposedEndTimeType != other.ProposedEndTimeType) return false; - if (ApprovedEndDateTime != other.ApprovedEndDateTime) return false; - if (ApprovedEndTimeType != other.ApprovedEndTimeType) return false; - if (ProposedSpendingLimitMicros != other.ProposedSpendingLimitMicros) return false; - if (ProposedSpendingLimitType != other.ProposedSpendingLimitType) return false; - if (ApprovedSpendingLimitMicros != other.ApprovedSpendingLimitMicros) return false; - if (ApprovedSpendingLimitType != other.ApprovedSpendingLimitType) return false; - if (ProposedStartTimeCase != other.ProposedStartTimeCase) return false; - if (ProposedEndTimeCase != other.ProposedEndTimeCase) return false; - if (ApprovedEndTimeCase != other.ApprovedEndTimeCase) return false; - if (ProposedSpendingLimitCase != other.ProposedSpendingLimitCase) return false; - if (ApprovedSpendingLimitCase != other.ApprovedSpendingLimitCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasBillingSetup) hash ^= BillingSetup.GetHashCode(); - if (HasAccountBudget) hash ^= AccountBudget.GetHashCode(); - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) hash ^= ProposalType.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasProposedName) hash ^= ProposedName.GetHashCode(); - if (HasApprovedStartDateTime) hash ^= ApprovedStartDateTime.GetHashCode(); - if (HasProposedPurchaseOrderNumber) hash ^= ProposedPurchaseOrderNumber.GetHashCode(); - if (HasProposedNotes) hash ^= ProposedNotes.GetHashCode(); - if (HasCreationDateTime) hash ^= CreationDateTime.GetHashCode(); - if (HasApprovalDateTime) hash ^= ApprovalDateTime.GetHashCode(); - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartDateTime) hash ^= ProposedStartDateTime.GetHashCode(); - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartTimeType) hash ^= ProposedStartTimeType.GetHashCode(); - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) hash ^= ProposedEndDateTime.GetHashCode(); - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) hash ^= ProposedEndTimeType.GetHashCode(); - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) hash ^= ApprovedEndDateTime.GetHashCode(); - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) hash ^= ApprovedEndTimeType.GetHashCode(); - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) hash ^= ProposedSpendingLimitMicros.GetHashCode(); - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) hash ^= ProposedSpendingLimitType.GetHashCode(); - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) hash ^= ApprovedSpendingLimitMicros.GetHashCode(); - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) hash ^= ApprovedSpendingLimitType.GetHashCode(); - hash ^= (int) proposedStartTimeCase_; - hash ^= (int) proposedEndTimeCase_; - hash ^= (int) approvedEndTimeCase_; - hash ^= (int) proposedSpendingLimitCase_; - hash ^= (int) approvedSpendingLimitCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ProposalType); - } - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartTimeType) { - output.WriteRawTag(56); - output.WriteEnum((int) ProposedStartTimeType); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) { - output.WriteRawTag(72); - output.WriteEnum((int) ProposedEndTimeType); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) { - output.WriteRawTag(88); - output.WriteEnum((int) ProposedSpendingLimitType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified) { - output.WriteRawTag(120); - output.WriteEnum((int) Status); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) ApprovedEndTimeType); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) { - output.WriteRawTag(192, 1); - output.WriteEnum((int) ApprovedSpendingLimitType); - } - if (HasId) { - output.WriteRawTag(200, 1); - output.WriteInt64(Id); - } - if (HasBillingSetup) { - output.WriteRawTag(210, 1); - output.WriteString(BillingSetup); - } - if (HasAccountBudget) { - output.WriteRawTag(218, 1); - output.WriteString(AccountBudget); - } - if (HasProposedName) { - output.WriteRawTag(226, 1); - output.WriteString(ProposedName); - } - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartDateTime) { - output.WriteRawTag(234, 1); - output.WriteString(ProposedStartDateTime); - } - if (HasApprovedStartDateTime) { - output.WriteRawTag(242, 1); - output.WriteString(ApprovedStartDateTime); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) { - output.WriteRawTag(250, 1); - output.WriteString(ProposedEndDateTime); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) { - output.WriteRawTag(130, 2); - output.WriteString(ApprovedEndDateTime); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) { - output.WriteRawTag(136, 2); - output.WriteInt64(ProposedSpendingLimitMicros); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) { - output.WriteRawTag(144, 2); - output.WriteInt64(ApprovedSpendingLimitMicros); - } - if (HasProposedPurchaseOrderNumber) { - output.WriteRawTag(154, 2); - output.WriteString(ProposedPurchaseOrderNumber); - } - if (HasProposedNotes) { - output.WriteRawTag(162, 2); - output.WriteString(ProposedNotes); - } - if (HasCreationDateTime) { - output.WriteRawTag(170, 2); - output.WriteString(CreationDateTime); - } - if (HasApprovalDateTime) { - output.WriteRawTag(178, 2); - output.WriteString(ApprovalDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ProposalType); - } - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartTimeType) { - output.WriteRawTag(56); - output.WriteEnum((int) ProposedStartTimeType); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) { - output.WriteRawTag(72); - output.WriteEnum((int) ProposedEndTimeType); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) { - output.WriteRawTag(88); - output.WriteEnum((int) ProposedSpendingLimitType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified) { - output.WriteRawTag(120); - output.WriteEnum((int) Status); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) ApprovedEndTimeType); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) { - output.WriteRawTag(192, 1); - output.WriteEnum((int) ApprovedSpendingLimitType); - } - if (HasId) { - output.WriteRawTag(200, 1); - output.WriteInt64(Id); - } - if (HasBillingSetup) { - output.WriteRawTag(210, 1); - output.WriteString(BillingSetup); - } - if (HasAccountBudget) { - output.WriteRawTag(218, 1); - output.WriteString(AccountBudget); - } - if (HasProposedName) { - output.WriteRawTag(226, 1); - output.WriteString(ProposedName); - } - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartDateTime) { - output.WriteRawTag(234, 1); - output.WriteString(ProposedStartDateTime); - } - if (HasApprovedStartDateTime) { - output.WriteRawTag(242, 1); - output.WriteString(ApprovedStartDateTime); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) { - output.WriteRawTag(250, 1); - output.WriteString(ProposedEndDateTime); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) { - output.WriteRawTag(130, 2); - output.WriteString(ApprovedEndDateTime); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) { - output.WriteRawTag(136, 2); - output.WriteInt64(ProposedSpendingLimitMicros); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) { - output.WriteRawTag(144, 2); - output.WriteInt64(ApprovedSpendingLimitMicros); - } - if (HasProposedPurchaseOrderNumber) { - output.WriteRawTag(154, 2); - output.WriteString(ProposedPurchaseOrderNumber); - } - if (HasProposedNotes) { - output.WriteRawTag(162, 2); - output.WriteString(ProposedNotes); - } - if (HasCreationDateTime) { - output.WriteRawTag(170, 2); - output.WriteString(CreationDateTime); - } - if (HasApprovalDateTime) { - output.WriteRawTag(178, 2); - output.WriteString(ApprovalDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasBillingSetup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BillingSetup); - } - if (HasAccountBudget) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AccountBudget); - } - if (ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposalType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasProposedName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedName); - } - if (HasApprovedStartDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ApprovedStartDateTime); - } - if (HasProposedPurchaseOrderNumber) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedPurchaseOrderNumber); - } - if (HasProposedNotes) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedNotes); - } - if (HasCreationDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CreationDateTime); - } - if (HasApprovalDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ApprovalDateTime); - } - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedStartDateTime); - } - if (proposedStartTimeCase_ == ProposedStartTimeOneofCase.ProposedStartTimeType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedStartTimeType); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ProposedEndDateTime); - } - if (proposedEndTimeCase_ == ProposedEndTimeOneofCase.ProposedEndTimeType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedEndTimeType); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ApprovedEndDateTime); - } - if (approvedEndTimeCase_ == ApprovedEndTimeOneofCase.ApprovedEndTimeType) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovedEndTimeType); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ProposedSpendingLimitMicros); - } - if (proposedSpendingLimitCase_ == ProposedSpendingLimitOneofCase.ProposedSpendingLimitType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProposedSpendingLimitType); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ApprovedSpendingLimitMicros); - } - if (approvedSpendingLimitCase_ == ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovedSpendingLimitType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudgetProposal other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasBillingSetup) { - BillingSetup = other.BillingSetup; - } - if (other.HasAccountBudget) { - AccountBudget = other.AccountBudget; - } - if (other.ProposalType != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType.Unspecified) { - ProposalType = other.ProposalType; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus.Unspecified) { - Status = other.Status; - } - if (other.HasProposedName) { - ProposedName = other.ProposedName; - } - if (other.HasApprovedStartDateTime) { - ApprovedStartDateTime = other.ApprovedStartDateTime; - } - if (other.HasProposedPurchaseOrderNumber) { - ProposedPurchaseOrderNumber = other.ProposedPurchaseOrderNumber; - } - if (other.HasProposedNotes) { - ProposedNotes = other.ProposedNotes; - } - if (other.HasCreationDateTime) { - CreationDateTime = other.CreationDateTime; - } - if (other.HasApprovalDateTime) { - ApprovalDateTime = other.ApprovalDateTime; - } - switch (other.ProposedStartTimeCase) { - case ProposedStartTimeOneofCase.ProposedStartDateTime: - ProposedStartDateTime = other.ProposedStartDateTime; - break; - case ProposedStartTimeOneofCase.ProposedStartTimeType: - ProposedStartTimeType = other.ProposedStartTimeType; - break; - } - - switch (other.ProposedEndTimeCase) { - case ProposedEndTimeOneofCase.ProposedEndDateTime: - ProposedEndDateTime = other.ProposedEndDateTime; - break; - case ProposedEndTimeOneofCase.ProposedEndTimeType: - ProposedEndTimeType = other.ProposedEndTimeType; - break; - } - - switch (other.ApprovedEndTimeCase) { - case ApprovedEndTimeOneofCase.ApprovedEndDateTime: - ApprovedEndDateTime = other.ApprovedEndDateTime; - break; - case ApprovedEndTimeOneofCase.ApprovedEndTimeType: - ApprovedEndTimeType = other.ApprovedEndTimeType; - break; - } - - switch (other.ProposedSpendingLimitCase) { - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitMicros: - ProposedSpendingLimitMicros = other.ProposedSpendingLimitMicros; - break; - case ProposedSpendingLimitOneofCase.ProposedSpendingLimitType: - ProposedSpendingLimitType = other.ProposedSpendingLimitType; - break; - } - - switch (other.ApprovedSpendingLimitCase) { - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitMicros: - ApprovedSpendingLimitMicros = other.ApprovedSpendingLimitMicros; - break; - case ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType: - ApprovedSpendingLimitType = other.ApprovedSpendingLimitType; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - ProposalType = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType) input.ReadEnum(); - break; - } - case 56: { - proposedStartTime_ = input.ReadEnum(); - proposedStartTimeCase_ = ProposedStartTimeOneofCase.ProposedStartTimeType; - break; - } - case 72: { - proposedEndTime_ = input.ReadEnum(); - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType; - break; - } - case 88: { - proposedSpendingLimit_ = input.ReadEnum(); - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; - break; - } - case 120: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus) input.ReadEnum(); - break; - } - case 176: { - approvedEndTime_ = input.ReadEnum(); - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType; - break; - } - case 192: { - approvedSpendingLimit_ = input.ReadEnum(); - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; - break; - } - case 200: { - Id = input.ReadInt64(); - break; - } - case 210: { - BillingSetup = input.ReadString(); - break; - } - case 218: { - AccountBudget = input.ReadString(); - break; - } - case 226: { - ProposedName = input.ReadString(); - break; - } - case 234: { - ProposedStartDateTime = input.ReadString(); - break; - } - case 242: { - ApprovedStartDateTime = input.ReadString(); - break; - } - case 250: { - ProposedEndDateTime = input.ReadString(); - break; - } - case 258: { - ApprovedEndDateTime = input.ReadString(); - break; - } - case 264: { - ProposedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 272: { - ApprovedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 282: { - ProposedPurchaseOrderNumber = input.ReadString(); - break; - } - case 290: { - ProposedNotes = input.ReadString(); - break; - } - case 298: { - CreationDateTime = input.ReadString(); - break; - } - case 306: { - ApprovalDateTime = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - ProposalType = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType) input.ReadEnum(); - break; - } - case 56: { - proposedStartTime_ = input.ReadEnum(); - proposedStartTimeCase_ = ProposedStartTimeOneofCase.ProposedStartTimeType; - break; - } - case 72: { - proposedEndTime_ = input.ReadEnum(); - proposedEndTimeCase_ = ProposedEndTimeOneofCase.ProposedEndTimeType; - break; - } - case 88: { - proposedSpendingLimit_ = input.ReadEnum(); - proposedSpendingLimitCase_ = ProposedSpendingLimitOneofCase.ProposedSpendingLimitType; - break; - } - case 120: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus) input.ReadEnum(); - break; - } - case 176: { - approvedEndTime_ = input.ReadEnum(); - approvedEndTimeCase_ = ApprovedEndTimeOneofCase.ApprovedEndTimeType; - break; - } - case 192: { - approvedSpendingLimit_ = input.ReadEnum(); - approvedSpendingLimitCase_ = ApprovedSpendingLimitOneofCase.ApprovedSpendingLimitType; - break; - } - case 200: { - Id = input.ReadInt64(); - break; - } - case 210: { - BillingSetup = input.ReadString(); - break; - } - case 218: { - AccountBudget = input.ReadString(); - break; - } - case 226: { - ProposedName = input.ReadString(); - break; - } - case 234: { - ProposedStartDateTime = input.ReadString(); - break; - } - case 242: { - ApprovedStartDateTime = input.ReadString(); - break; - } - case 250: { - ProposedEndDateTime = input.ReadString(); - break; - } - case 258: { - ApprovedEndDateTime = input.ReadString(); - break; - } - case 264: { - ProposedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 272: { - ApprovedSpendingLimitMicros = input.ReadInt64(); - break; - } - case 282: { - ProposedPurchaseOrderNumber = input.ReadString(); - break; - } - case 290: { - ProposedNotes = input.ReadString(); - break; - } - case 298: { - CreationDateTime = input.ReadString(); - break; - } - case 306: { - ApprovalDateTime = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalError.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalError.g.cs deleted file mode 100755 index 2872e3365..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalError.g.cs +++ /dev/null @@ -1,355 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/account_budget_proposal_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/account_budget_proposal_error.proto - public static partial class AccountBudgetProposalErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/account_budget_proposal_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountBudgetProposalErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FjY291bnRfYnVk", - "Z2V0X3Byb3Bvc2FsX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzIr4HCh5BY2NvdW50QnVkZ2V0UHJvcG9zYWxFcnJvckVu", - "dW0imwcKGkFjY291bnRCdWRnZXRQcm9wb3NhbEVycm9yEg8KC1VOU1BFQ0lG", - "SUVEEAASCwoHVU5LTk9XThABEhoKFkZJRUxEX01BU0tfTk9UX0FMTE9XRUQQ", - "AhITCg9JTU1VVEFCTEVfRklFTEQQAxIaChZSRVFVSVJFRF9GSUVMRF9NSVNT", - "SU5HEAQSIwofQ0FOTk9UX0NBTkNFTF9BUFBST1ZFRF9QUk9QT1NBTBAFEiMK", - "H0NBTk5PVF9SRU1PVkVfVU5BUFBST1ZFRF9CVURHRVQQBhIgChxDQU5OT1Rf", - "UkVNT1ZFX1JVTk5JTkdfQlVER0VUEAcSIAocQ0FOTk9UX0VORF9VTkFQUFJP", - "VkVEX0JVREdFVBAIEh4KGkNBTk5PVF9FTkRfSU5BQ1RJVkVfQlVER0VUEAkS", - "GAoUQlVER0VUX05BTUVfUkVRVUlSRUQQChIcChhDQU5OT1RfVVBEQVRFX09M", - "RF9CVURHRVQQCxIWChJDQU5OT1RfRU5EX0lOX1BBU1QQDBIaChZDQU5OT1Rf", - "RVhURU5EX0VORF9USU1FEA0SIgoeUFVSQ0hBU0VfT1JERVJfTlVNQkVSX1JF", - "UVVJUkVEEA4SIgoeUEVORElOR19VUERBVEVfUFJPUE9TQUxfRVhJU1RTEA8S", - "PQo5TVVMVElQTEVfQlVER0VUU19OT1RfQUxMT1dFRF9GT1JfVU5BUFBST1ZF", - "RF9CSUxMSU5HX1NFVFVQEBASLworQ0FOTk9UX1VQREFURV9TVEFSVF9USU1F", - "X0ZPUl9TVEFSVEVEX0JVREdFVBAREjYKMlNQRU5ESU5HX0xJTUlUX0xPV0VS", - "X1RIQU5fQUNDUlVFRF9DT1NUX05PVF9BTExPV0VEEBISEwoPVVBEQVRFX0lT", - "X05PX09QEBMSIwofRU5EX1RJTUVfTVVTVF9GT0xMT1dfU1RBUlRfVElNRRAU", - "EjUKMUJVREdFVF9EQVRFX1JBTkdFX0lOQ09NUEFUSUJMRV9XSVRIX0JJTExJ", - "TkdfU0VUVVAQFRISCg5OT1RfQVVUSE9SSVpFRBAWEhkKFUlOVkFMSURfQklM", - "TElOR19TRVRVUBAXEhwKGE9WRVJMQVBTX0VYSVNUSU5HX0JVREdFVBAYEiQK", - "IENBTk5PVF9DUkVBVEVfQlVER0VUX1RIUk9VR0hfQVBJEBkSJAogSU5WQUxJ", - "RF9NQVNURVJfU0VSVklDRV9BR1JFRU1FTlQQGkL/AQojY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCH0FjY291bnRCdWRnZXRQcm9wb3Nh", - "bEVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FB", - "qgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorEnum.Types.AccountBudgetProposalError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible account budget proposal errors. - /// - public sealed partial class AccountBudgetProposalErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudgetProposalErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalErrorEnum(AccountBudgetProposalErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalErrorEnum Clone() { - return new AccountBudgetProposalErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudgetProposalErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudgetProposalErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudgetProposalErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccountBudgetProposalErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible account budget proposal errors. - /// - public enum AccountBudgetProposalError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The field mask must be empty for create/end/remove proposals. - /// - [pbr::OriginalName("FIELD_MASK_NOT_ALLOWED")] FieldMaskNotAllowed = 2, - /// - /// The field cannot be set because of the proposal type. - /// - [pbr::OriginalName("IMMUTABLE_FIELD")] ImmutableField = 3, - /// - /// The field is required because of the proposal type. - /// - [pbr::OriginalName("REQUIRED_FIELD_MISSING")] RequiredFieldMissing = 4, - /// - /// Proposals that have been approved cannot be cancelled. - /// - [pbr::OriginalName("CANNOT_CANCEL_APPROVED_PROPOSAL")] CannotCancelApprovedProposal = 5, - /// - /// Budgets that haven't been approved cannot be removed. - /// - [pbr::OriginalName("CANNOT_REMOVE_UNAPPROVED_BUDGET")] CannotRemoveUnapprovedBudget = 6, - /// - /// Budgets that are currently running cannot be removed. - /// - [pbr::OriginalName("CANNOT_REMOVE_RUNNING_BUDGET")] CannotRemoveRunningBudget = 7, - /// - /// Budgets that haven't been approved cannot be truncated. - /// - [pbr::OriginalName("CANNOT_END_UNAPPROVED_BUDGET")] CannotEndUnapprovedBudget = 8, - /// - /// Only budgets that are currently running can be truncated. - /// - [pbr::OriginalName("CANNOT_END_INACTIVE_BUDGET")] CannotEndInactiveBudget = 9, - /// - /// All budgets must have names. - /// - [pbr::OriginalName("BUDGET_NAME_REQUIRED")] BudgetNameRequired = 10, - /// - /// Expired budgets cannot be edited after a sufficient amount of time has - /// passed. - /// - [pbr::OriginalName("CANNOT_UPDATE_OLD_BUDGET")] CannotUpdateOldBudget = 11, - /// - /// It is not permissible a propose a new budget that ends in the past. - /// - [pbr::OriginalName("CANNOT_END_IN_PAST")] CannotEndInPast = 12, - /// - /// An expired budget cannot be extended to overlap with the running budget. - /// - [pbr::OriginalName("CANNOT_EXTEND_END_TIME")] CannotExtendEndTime = 13, - /// - /// A purchase order number is required. - /// - [pbr::OriginalName("PURCHASE_ORDER_NUMBER_REQUIRED")] PurchaseOrderNumberRequired = 14, - /// - /// Budgets that have a pending update cannot be updated. - /// - [pbr::OriginalName("PENDING_UPDATE_PROPOSAL_EXISTS")] PendingUpdateProposalExists = 15, - /// - /// Cannot propose more than one budget when the corresponding billing setup - /// hasn't been approved. - /// - [pbr::OriginalName("MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP")] MultipleBudgetsNotAllowedForUnapprovedBillingSetup = 16, - /// - /// Cannot update the start time of a budget that has already started. - /// - [pbr::OriginalName("CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET")] CannotUpdateStartTimeForStartedBudget = 17, - /// - /// Cannot update the spending limit of a budget with an amount lower than - /// what has already been spent. - /// - [pbr::OriginalName("SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED")] SpendingLimitLowerThanAccruedCostNotAllowed = 18, - /// - /// Cannot propose a budget update without actually changing any fields. - /// - [pbr::OriginalName("UPDATE_IS_NO_OP")] UpdateIsNoOp = 19, - /// - /// The end time must come after the start time. - /// - [pbr::OriginalName("END_TIME_MUST_FOLLOW_START_TIME")] EndTimeMustFollowStartTime = 20, - /// - /// The budget's date range must fall within the date range of its billing - /// setup. - /// - [pbr::OriginalName("BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP")] BudgetDateRangeIncompatibleWithBillingSetup = 21, - /// - /// The user is not authorized to mutate budgets for the given billing setup. - /// - [pbr::OriginalName("NOT_AUTHORIZED")] NotAuthorized = 22, - /// - /// Mutates are not allowed for the given billing setup. - /// - [pbr::OriginalName("INVALID_BILLING_SETUP")] InvalidBillingSetup = 23, - /// - /// Budget creation failed as it overlaps with a pending budget proposal - /// or an approved budget. - /// - [pbr::OriginalName("OVERLAPS_EXISTING_BUDGET")] OverlapsExistingBudget = 24, - /// - /// The control setting in user's payments profile doesn't allow budget - /// creation through API. Log in to Google Ads to create budget. - /// - [pbr::OriginalName("CANNOT_CREATE_BUDGET_THROUGH_API")] CannotCreateBudgetThroughApi = 25, - /// - /// Master service agreement has not been signed yet for the Payments - /// Profile. - /// - [pbr::OriginalName("INVALID_MASTER_SERVICE_AGREEMENT")] InvalidMasterServiceAgreement = 26, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalResourceNames.g.cs deleted file mode 100755 index 7266d2a4e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalResourceNames.g.cs +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AccountBudgetProposal resource. - public sealed partial class AccountBudgetProposalName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}. - /// - CustomerAccountBudgetProposal = 1, - } - - private static gax::PathTemplate s_customerAccountBudgetProposal = new gax::PathTemplate("customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AccountBudgetProposalName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AccountBudgetProposalName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The AccountBudgetProposal ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static AccountBudgetProposalName FromCustomerAccountBudgetProposal(string customerId, string accountBudgetProposalId) => - new AccountBudgetProposalName(ResourceNameType.CustomerAccountBudgetProposal, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), accountBudgetProposalId: gax::GaxPreconditions.CheckNotNullOrEmpty(accountBudgetProposalId, nameof(accountBudgetProposalId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The AccountBudgetProposal ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}. - /// - public static string Format(string customerId, string accountBudgetProposalId) => - FormatCustomerAccountBudgetProposal(customerId, accountBudgetProposalId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The AccountBudgetProposal ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}. - /// - public static string FormatCustomerAccountBudgetProposal(string customerId, string accountBudgetProposalId) => - s_customerAccountBudgetProposal.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(accountBudgetProposalId, nameof(accountBudgetProposalId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AccountBudgetProposalName Parse(string accountBudgetProposalName) => - Parse(accountBudgetProposalName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AccountBudgetProposalName Parse(string accountBudgetProposalName, bool allowUnparsed) => - TryParse(accountBudgetProposalName, allowUnparsed, out AccountBudgetProposalName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accountBudgetProposalName, out AccountBudgetProposalName result) => - TryParse(accountBudgetProposalName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accountBudgetProposalName, bool allowUnparsed, out AccountBudgetProposalName result) - { - gax::GaxPreconditions.CheckNotNull(accountBudgetProposalName, nameof(accountBudgetProposalName)); - gax::TemplatedResourceName resourceName; - if (s_customerAccountBudgetProposal.TryParseName(accountBudgetProposalName, out resourceName)) - { - result = FromCustomerAccountBudgetProposal(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(accountBudgetProposalName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AccountBudgetProposalName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string accountBudgetProposalId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AccountBudgetProposalId = accountBudgetProposalId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The AccountBudgetProposal ID. Must not be null or empty. - /// - public AccountBudgetProposalName(string customerId, string accountBudgetProposalId) : this(ResourceNameType.CustomerAccountBudgetProposal, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), accountBudgetProposalId: gax::GaxPreconditions.CheckNotNullOrEmpty(accountBudgetProposalId, nameof(accountBudgetProposalId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AccountBudgetProposal ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string AccountBudgetProposalId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAccountBudgetProposal: return s_customerAccountBudgetProposal.Expand(CustomerId, AccountBudgetProposalId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AccountBudgetProposalName); - - /// - public bool Equals(AccountBudgetProposalName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AccountBudgetProposalName a, AccountBudgetProposalName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AccountBudgetProposalName a, AccountBudgetProposalName b) => !(a == b); - } - - public partial class AccountBudgetProposal - { - /// - /// -typed view over the resource name - /// property. - /// - internal AccountBudgetProposalName ResourceNameAsAccountBudgetProposalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AccountBudgetProposalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal BillingSetupName BillingSetupAsBillingSetupName - { - get => string.IsNullOrEmpty(BillingSetup) ? null : BillingSetupName.Parse(BillingSetup, allowUnparsed: true); - set => BillingSetup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AccountBudgetName AccountBudgetAsAccountBudgetName - { - get => string.IsNullOrEmpty(AccountBudget) ? null : AccountBudgetName.Parse(AccountBudget, allowUnparsed: true); - set => AccountBudget = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalService.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalService.g.cs deleted file mode 100755 index f2a682d22..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalService.g.cs +++ /dev/null @@ -1,1109 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/account_budget_proposal_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/account_budget_proposal_service.proto - public static partial class AccountBudgetProposalServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/account_budget_proposal_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountBudgetProposalServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWNjb3VudF9i", - "dWRnZXRfcHJvcG9zYWxfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzGkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL2FjY291bnRfYnVkZ2V0X3Byb3Bvc2FsLnByb3RvGhxnb29n", - "bGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5w", - "cm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl", - "L2FwaS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21h", - "c2sucHJvdG8isAEKIk11dGF0ZUFjY291bnRCdWRnZXRQcm9wb3NhbFJlcXVl", - "c3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJZCglvcGVyYXRpb24YAiAB", - "KAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQWNjb3Vu", - "dEJ1ZGdldFByb3Bvc2FsT3BlcmF0aW9uQgPgQQISFQoNdmFsaWRhdGVfb25s", - "eRgDIAEoCCLyAQoeQWNjb3VudEJ1ZGdldFByb3Bvc2FsT3BlcmF0aW9uEi8K", - "C3VwZGF0ZV9tYXNrGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFz", - "axJLCgZjcmVhdGUYAiABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkFjY291bnRCdWRnZXRQcm9wb3NhbEgAEkUKBnJlbW92ZRgB", - "IAEoCUIz+kEwCi5nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWNjb3VudEJ1", - "ZGdldFByb3Bvc2FsSABCCwoJb3BlcmF0aW9uInsKI011dGF0ZUFjY291bnRC", - "dWRnZXRQcm9wb3NhbFJlc3BvbnNlElQKBnJlc3VsdBgCIAEoCzJELmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBY2NvdW50QnVk", - "Z2V0UHJvcG9zYWxSZXN1bHQibwohTXV0YXRlQWNjb3VudEJ1ZGdldFByb3Bv", - "c2FsUmVzdWx0EkoKDXJlc291cmNlX25hbWUYASABKAlCM/pBMAouZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRCdWRnZXRQcm9wb3NhbDL1Agoc", - "QWNjb3VudEJ1ZGdldFByb3Bvc2FsU2VydmljZRKNAgobTXV0YXRlQWNjb3Vu", - "dEJ1ZGdldFByb3Bvc2FsEkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUFjY291bnRCdWRnZXRQcm9wb3NhbFJlcXVlc3QaRi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWNjb3Vu", - "dEJ1ZGdldFByb3Bvc2FsUmVzcG9uc2UiX4LT5JMCQSI8L3YxMi9jdXN0b21l", - "cnMve2N1c3RvbWVyX2lkPSp9L2FjY291bnRCdWRnZXRQcm9wb3NhbHM6bXV0", - "YXRlOgEq2kEVY3VzdG9tZXJfaWQsb3BlcmF0aW9uGkXKQRhnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9h", - "dXRoL2Fkd29yZHNCjQIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXNCIUFjY291bnRCdWRnZXRQcm9wb3NhbFNlcnZpY2VQcm90b1AB", - "Wklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposalReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest.Parser, new[]{ "CustomerId", "Operation", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalOperation), global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalOperation.Parser, new[]{ "UpdateMask", "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResult), global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v12.services.AccountBudgetProposalService.MutateAccountBudgetProposal]. - /// - public sealed partial class MutateAccountBudgetProposalRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAccountBudgetProposalRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalRequest(MutateAccountBudgetProposalRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalRequest Clone() { - return new MutateAccountBudgetProposalRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalOperation operation_; - /// - /// Required. The operation to perform on an individual account-level budget proposal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAccountBudgetProposalRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAccountBudgetProposalRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAccountBudgetProposalRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalOperation(); - } - Operation.MergeFrom(other.Operation); - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalOperation(); - } - input.ReadMessage(Operation); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalOperation(); - } - input.ReadMessage(Operation); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation to propose the creation of a new account-level budget or - /// edit/end/remove an existing one. - /// - public sealed partial class AccountBudgetProposalOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudgetProposalOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalOperation(AccountBudgetProposalOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalOperation Clone() { - return new AccountBudgetProposalOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which budget fields are modified. While budgets - /// may be modified, proposals that propose such modifications are final. - /// Therefore, update operations are not supported for proposals. - /// - /// Proposals that modify budgets have the 'update' proposal type. Specifying - /// a mask for any other proposal type is considered an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 2; - /// - /// Create operation: A new proposal to create a new budget, edit an - /// existing budget, end an actively running budget, or remove an approved - /// budget scheduled to start in the future. - /// No resource name is expected for the new proposal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 1; - /// - /// Remove operation: A resource name for the removed proposal is expected, - /// in this format: - /// - /// `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - /// A request may be cancelled iff it is pending. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 2, - Remove = 1, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudgetProposalOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudgetProposalOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(10); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(18); - output.WriteMessage(Create); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(10); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(18); - output.WriteMessage(Create); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudgetProposalOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Remove = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Remove = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for account-level budget mutate operations. - /// - public sealed partial class MutateAccountBudgetProposalResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAccountBudgetProposalResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalResponse(MutateAccountBudgetProposalResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalResponse Clone() { - return new MutateAccountBudgetProposalResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResult result_; - /// - /// The result of the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResult Result { - get { return result_; } - set { - result_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAccountBudgetProposalResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAccountBudgetProposalResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAccountBudgetProposalResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResult(); - } - Result.MergeFrom(other.Result); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResult(); - } - input.ReadMessage(Result); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResult(); - } - input.ReadMessage(Result); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the account budget proposal mutate. - /// - public sealed partial class MutateAccountBudgetProposalResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAccountBudgetProposalResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalResult(MutateAccountBudgetProposalResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountBudgetProposalResult Clone() { - return new MutateAccountBudgetProposalResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAccountBudgetProposalResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAccountBudgetProposalResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAccountBudgetProposalResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceClient.g.cs deleted file mode 100755 index 5bc464e9a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceClient.g.cs +++ /dev/null @@ -1,504 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AccountBudgetProposalServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AccountBudgetProposalServiceSettings GetDefault() => new AccountBudgetProposalServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AccountBudgetProposalServiceSettings() - { - } - - private AccountBudgetProposalServiceSettings(AccountBudgetProposalServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAccountBudgetProposalSettings = existing.MutateAccountBudgetProposalSettings; - OnCopy(existing); - } - - partial void OnCopy(AccountBudgetProposalServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AccountBudgetProposalServiceClient.MutateAccountBudgetProposal and - /// AccountBudgetProposalServiceClient.MutateAccountBudgetProposalAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAccountBudgetProposalSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AccountBudgetProposalServiceSettings Clone() => new AccountBudgetProposalServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class AccountBudgetProposalServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AccountBudgetProposalServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AccountBudgetProposalServiceClientBuilder() : base(AccountBudgetProposalServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AccountBudgetProposalServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AccountBudgetProposalServiceClient Build() - { - AccountBudgetProposalServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AccountBudgetProposalServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AccountBudgetProposalServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AccountBudgetProposalServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AccountBudgetProposalServiceClient.ChannelPool; - } - - /// AccountBudgetProposalService client wrapper, for convenient use. - /// - /// A service for managing account-level budgets through proposals. - /// - /// A proposal is a request to create a new budget or make changes to an - /// existing one. - /// - /// Mutates: - /// The CREATE operation creates a new proposal. - /// UPDATE operations aren't supported. - /// The REMOVE operation cancels a pending proposal. - /// - public abstract partial class AccountBudgetProposalServiceClient - { - /// - /// The default endpoint for the AccountBudgetProposalService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AccountBudgetProposalService scopes. - /// - /// The default AccountBudgetProposalService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AccountBudgetProposalService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AccountBudgetProposalServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AccountBudgetProposalServiceClient Create() => new AccountBudgetProposalServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AccountBudgetProposalServiceClient Create(grpccore::CallInvoker callInvoker, AccountBudgetProposalServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AccountBudgetProposalService.AccountBudgetProposalServiceClient grpcClient = new AccountBudgetProposalService.AccountBudgetProposalServiceClient(callInvoker); - return new AccountBudgetProposalServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AccountBudgetProposalService client - public virtual AccountBudgetProposalService.AccountBudgetProposalServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAccountBudgetProposalResponse MutateAccountBudgetProposal(MutateAccountBudgetProposalRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountBudgetProposalAsync(MutateAccountBudgetProposalRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountBudgetProposalAsync(MutateAccountBudgetProposalRequest request, st::CancellationToken cancellationToken) => - MutateAccountBudgetProposalAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The operation to perform on an individual account-level budget proposal. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAccountBudgetProposalResponse MutateAccountBudgetProposal(string customerId, AccountBudgetProposalOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateAccountBudgetProposal(new MutateAccountBudgetProposalRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The operation to perform on an individual account-level budget proposal. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountBudgetProposalAsync(string customerId, AccountBudgetProposalOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateAccountBudgetProposalAsync(new MutateAccountBudgetProposalRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The operation to perform on an individual account-level budget proposal. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountBudgetProposalAsync(string customerId, AccountBudgetProposalOperation operation, st::CancellationToken cancellationToken) => - MutateAccountBudgetProposalAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AccountBudgetProposalService client wrapper implementation, for convenient use. - /// - /// A service for managing account-level budgets through proposals. - /// - /// A proposal is a request to create a new budget or make changes to an - /// existing one. - /// - /// Mutates: - /// The CREATE operation creates a new proposal. - /// UPDATE operations aren't supported. - /// The REMOVE operation cancels a pending proposal. - /// - public sealed partial class AccountBudgetProposalServiceClientImpl : AccountBudgetProposalServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAccountBudgetProposal; - - /// - /// Constructs a client wrapper for the AccountBudgetProposalService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AccountBudgetProposalServiceClientImpl(AccountBudgetProposalService.AccountBudgetProposalServiceClient grpcClient, AccountBudgetProposalServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AccountBudgetProposalServiceSettings effectiveSettings = settings ?? AccountBudgetProposalServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAccountBudgetProposal = clientHelper.BuildApiCall("MutateAccountBudgetProposal", grpcClient.MutateAccountBudgetProposalAsync, grpcClient.MutateAccountBudgetProposal, effectiveSettings.MutateAccountBudgetProposalSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAccountBudgetProposal); - Modify_MutateAccountBudgetProposalApiCall(ref _callMutateAccountBudgetProposal); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAccountBudgetProposalApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AccountBudgetProposalService.AccountBudgetProposalServiceClient grpcClient, AccountBudgetProposalServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AccountBudgetProposalService client - public override AccountBudgetProposalService.AccountBudgetProposalServiceClient GrpcClient { get; } - - partial void Modify_MutateAccountBudgetProposalRequest(ref MutateAccountBudgetProposalRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAccountBudgetProposalResponse MutateAccountBudgetProposal(MutateAccountBudgetProposalRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAccountBudgetProposalRequest(ref request, ref callSettings); - return _callMutateAccountBudgetProposal.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAccountBudgetProposalAsync(MutateAccountBudgetProposalRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAccountBudgetProposalRequest(ref request, ref callSettings); - return _callMutateAccountBudgetProposal.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceGrpc.g.cs deleted file mode 100755 index 1a165bb80..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceGrpc.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/account_budget_proposal_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// A service for managing account-level budgets through proposals. - /// - /// A proposal is a request to create a new budget or make changes to an - /// existing one. - /// - /// Mutates: - /// The CREATE operation creates a new proposal. - /// UPDATE operations aren't supported. - /// The REMOVE operation cancels a pending proposal. - /// - public static partial class AccountBudgetProposalService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AccountBudgetProposalService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAccountBudgetProposalRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAccountBudgetProposalResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAccountBudgetProposal = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAccountBudgetProposal", - __Marshaller_google_ads_googleads_v12_services_MutateAccountBudgetProposalRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAccountBudgetProposalResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountBudgetProposalServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AccountBudgetProposalService - [grpc::BindServiceMethod(typeof(AccountBudgetProposalService), "BindService")] - public abstract partial class AccountBudgetProposalServiceBase - { - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAccountBudgetProposal(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AccountBudgetProposalService - public partial class AccountBudgetProposalServiceClient : grpc::ClientBase - { - /// Creates a new client for AccountBudgetProposalService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AccountBudgetProposalServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AccountBudgetProposalService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AccountBudgetProposalServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AccountBudgetProposalServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AccountBudgetProposalServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResponse MutateAccountBudgetProposal(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAccountBudgetProposal(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalResponse MutateAccountBudgetProposal(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAccountBudgetProposal, null, options, request); - } - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAccountBudgetProposalAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAccountBudgetProposalAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes account budget proposals. Operation statuses - /// are returned. - /// - /// List of thrown errors: - /// [AccountBudgetProposalError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DateError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAccountBudgetProposalAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAccountBudgetProposalRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAccountBudgetProposal, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AccountBudgetProposalServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AccountBudgetProposalServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AccountBudgetProposalServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAccountBudgetProposal, serviceImpl.MutateAccountBudgetProposal).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AccountBudgetProposalServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAccountBudgetProposal, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAccountBudgetProposal)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceResourceNames.g.cs deleted file mode 100755 index f396a4e28..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AccountBudgetProposalOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AccountBudgetProposalName RemoveAsAccountBudgetProposalName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AccountBudgetProposalName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAccountBudgetProposalResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AccountBudgetProposalName ResourceNameAsAccountBudgetProposalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AccountBudgetProposalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalStatus.g.cs deleted file mode 100755 index 83147629c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalStatus.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/account_budget_proposal_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/account_budget_proposal_status.proto - public static partial class AccountBudgetProposalStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/account_budget_proposal_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountBudgetProposalStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjb3VudF9idWRn", - "ZXRfcHJvcG9zYWxfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMiqgEKH0FjY291bnRCdWRnZXRQcm9wb3NhbFN0YXR1c0Vu", - "dW0ihgEKG0FjY291bnRCdWRnZXRQcm9wb3NhbFN0YXR1cxIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARILCgdQRU5ESU5HEAISEQoNQVBQUk9WRURf", - "SEVMRBADEgwKCEFQUFJPVkVEEAQSDQoJQ0FOQ0VMTEVEEAUSDAoIUkVKRUNU", - "RUQQBkL6AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0Ig", - "QWNjb3VudEJ1ZGdldFByb3Bvc2FsU3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusEnum.Types.AccountBudgetProposalStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing AccountBudgetProposal statuses. - /// - public sealed partial class AccountBudgetProposalStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudgetProposalStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalStatusEnum(AccountBudgetProposalStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalStatusEnum Clone() { - return new AccountBudgetProposalStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudgetProposalStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudgetProposalStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudgetProposalStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccountBudgetProposalStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an AccountBudgetProposal. - /// - public enum AccountBudgetProposalStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The proposal is pending approval. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// The proposal has been approved but the corresponding billing setup - /// has not. This can occur for proposals that set up the first budget - /// when signing up for billing or when performing a change of bill-to - /// operation. - /// - [pbr::OriginalName("APPROVED_HELD")] ApprovedHeld = 3, - /// - /// The proposal has been approved. - /// - [pbr::OriginalName("APPROVED")] Approved = 4, - /// - /// The proposal has been cancelled by the user. - /// - [pbr::OriginalName("CANCELLED")] Cancelled = 5, - /// - /// The proposal has been rejected by the user, for example, by rejecting an - /// acceptance email. - /// - [pbr::OriginalName("REJECTED")] Rejected = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalType.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalType.g.cs deleted file mode 100755 index 1440aee89..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetProposalType.g.cs +++ /dev/null @@ -1,246 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/account_budget_proposal_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/account_budget_proposal_type.proto - public static partial class AccountBudgetProposalTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/account_budget_proposal_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountBudgetProposalTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjb3VudF9idWRn", - "ZXRfcHJvcG9zYWxfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zIocBCh1BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlRW51bSJm", - "ChlBY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEgoKBkNSRUFURRACEgoKBlVQREFURRADEgcKA0VORBAE", - "EgoKBlJFTU9WRRAFQvgBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQh5BY2NvdW50QnVkZ2V0UHJvcG9zYWxUeXBlUHJvdG9QAVpDZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVt", - "c+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeEnum.Types.AccountBudgetProposalType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing AccountBudgetProposal types. - /// - public sealed partial class AccountBudgetProposalTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudgetProposalTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetProposalTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalTypeEnum(AccountBudgetProposalTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetProposalTypeEnum Clone() { - return new AccountBudgetProposalTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudgetProposalTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudgetProposalTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudgetProposalTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccountBudgetProposalTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible types of an AccountBudgetProposal. - /// - public enum AccountBudgetProposalType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Identifies a request to create a new budget. - /// - [pbr::OriginalName("CREATE")] Create = 2, - /// - /// Identifies a request to edit an existing budget. - /// - [pbr::OriginalName("UPDATE")] Update = 3, - /// - /// Identifies a request to end a budget that has already started. - /// - [pbr::OriginalName("END")] End = 4, - /// - /// Identifies a request to remove a budget that hasn't started yet. - /// - [pbr::OriginalName("REMOVE")] Remove = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetResourceNames.g.cs deleted file mode 100755 index b8251e11e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetResourceNames.g.cs +++ /dev/null @@ -1,278 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AccountBudget resource. - public sealed partial class AccountBudgetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/accountBudgets/{account_budget_id}. - /// - CustomerAccountBudget = 1, - } - - private static gax::PathTemplate s_customerAccountBudget = new gax::PathTemplate("customers/{customer_id}/accountBudgets/{account_budget_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AccountBudgetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AccountBudgetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/accountBudgets/{account_budget_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AccountBudget ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AccountBudgetName FromCustomerAccountBudget(string customerId, string accountBudgetId) => - new AccountBudgetName(ResourceNameType.CustomerAccountBudget, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), accountBudgetId: gax::GaxPreconditions.CheckNotNullOrEmpty(accountBudgetId, nameof(accountBudgetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/accountBudgets/{account_budget_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AccountBudget ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accountBudgets/{account_budget_id}. - /// - public static string Format(string customerId, string accountBudgetId) => - FormatCustomerAccountBudget(customerId, accountBudgetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/accountBudgets/{account_budget_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AccountBudget ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accountBudgets/{account_budget_id}. - /// - public static string FormatCustomerAccountBudget(string customerId, string accountBudgetId) => - s_customerAccountBudget.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(accountBudgetId, nameof(accountBudgetId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountBudgets/{account_budget_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AccountBudgetName Parse(string accountBudgetName) => Parse(accountBudgetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountBudgets/{account_budget_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AccountBudgetName Parse(string accountBudgetName, bool allowUnparsed) => - TryParse(accountBudgetName, allowUnparsed, out AccountBudgetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountBudgets/{account_budget_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accountBudgetName, out AccountBudgetName result) => - TryParse(accountBudgetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountBudgets/{account_budget_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accountBudgetName, bool allowUnparsed, out AccountBudgetName result) - { - gax::GaxPreconditions.CheckNotNull(accountBudgetName, nameof(accountBudgetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAccountBudget.TryParseName(accountBudgetName, out resourceName)) - { - result = FromCustomerAccountBudget(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(accountBudgetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AccountBudgetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string accountBudgetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AccountBudgetId = accountBudgetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/accountBudgets/{account_budget_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AccountBudget ID. Must not be null or empty. - public AccountBudgetName(string customerId, string accountBudgetId) : this(ResourceNameType.CustomerAccountBudget, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), accountBudgetId: gax::GaxPreconditions.CheckNotNullOrEmpty(accountBudgetId, nameof(accountBudgetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AccountBudget ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string AccountBudgetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAccountBudget: return s_customerAccountBudget.Expand(CustomerId, AccountBudgetId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AccountBudgetName); - - /// - public bool Equals(AccountBudgetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AccountBudgetName a, AccountBudgetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AccountBudgetName a, AccountBudgetName b) => !(a == b); - } - - public partial class AccountBudget - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AccountBudgetName ResourceNameAsAccountBudgetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AccountBudgetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal BillingSetupName BillingSetupAsBillingSetupName - { - get => string.IsNullOrEmpty(BillingSetup) ? null : BillingSetupName.Parse(BillingSetup, allowUnparsed: true); - set => BillingSetup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AccountBudgetName AccountBudgetName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AccountBudgetName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountBudgetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AccountBudgetStatus.g.cs deleted file mode 100755 index 51ed17c45..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountBudgetStatus.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/account_budget_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/account_budget_status.proto - public static partial class AccountBudgetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/account_budget_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountBudgetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjb3VudF9idWRn", - "ZXRfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMieAoXQWNjb3VudEJ1ZGdldFN0YXR1c0VudW0iXQoTQWNjb3VudEJ1ZGdl", - "dFN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdQRU5E", - "SU5HEAISDAoIQVBQUk9WRUQQAxINCglDQU5DRUxMRUQQBELyAQoiY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IYQWNjb3VudEJ1ZGdldFN0", - "YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusEnum.Types.AccountBudgetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing AccountBudget statuses. - /// - public sealed partial class AccountBudgetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudgetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AccountBudgetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetStatusEnum(AccountBudgetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetStatusEnum Clone() { - return new AccountBudgetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudgetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudgetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudgetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccountBudgetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an AccountBudget. - /// - public enum AccountBudgetStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The account budget is pending approval. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// The account budget has been approved. - /// - [pbr::OriginalName("APPROVED")] Approved = 3, - /// - /// The account budget has been cancelled by the user. - /// - [pbr::OriginalName("CANCELLED")] Cancelled = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountLink.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLink.g.cs deleted file mode 100755 index 54dc7dbf8..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLink.g.cs +++ /dev/null @@ -1,1881 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/account_link.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/account_link.proto - public static partial class AccountLinkReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/account_link.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountLinkReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FjY291bnRf", - "bGluay5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2FjY291bnRfbGlu", - "a19zdGF0dXMucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9saW5rZWRfYWNjb3VudF90eXBlLnByb3RvGjZnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvbW9iaWxlX2FwcF92ZW5kb3IucHJvdG8aH2dvb2ds", - "ZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3Vy", - "Y2UucHJvdG8ioQcKC0FjY291bnRMaW5rEkMKDXJlc291cmNlX25hbWUYASAB", - "KAlCLOBBBfpBJgokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRM", - "aW5rEiEKD2FjY291bnRfbGlua19pZBgIIAEoA0ID4EEDSAGIAQESVwoGc3Rh", - "dHVzGAMgASgOMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFj", - "Y291bnRMaW5rU3RhdHVzRW51bS5BY2NvdW50TGlua1N0YXR1cxJaCgR0eXBl", - "GAQgASgOMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkxpbmtl", - "ZEFjY291bnRUeXBlRW51bS5MaW5rZWRBY2NvdW50VHlwZUID4EEDEnIKGXRo", - "aXJkX3BhcnR5X2FwcF9hbmFseXRpY3MYBSABKAsySC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLlRoaXJkUGFydHlBcHBBbmFseXRpY3NM", - "aW5rSWRlbnRpZmllckID4EEFSAASWgoMZGF0YV9wYXJ0bmVyGAYgASgLMj0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5EYXRhUGFydG5l", - "ckxpbmtJZGVudGlmaWVyQgPgQQNIABJWCgpnb29nbGVfYWRzGAcgASgLMjsu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Hb29nbGVBZHNM", - "aW5rSWRlbnRpZmllckID4EEDSAASWgoMaG90ZWxfY2VudGVyGAkgASgLMj0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Ib3RlbENlbnRl", - "ckxpbmtJZGVudGlmaWVyQgPgQQNIABJoChNhZHZlcnRpc2luZ19wYXJ0bmVy", - "GAogASgLMkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5B", - "ZHZlcnRpc2luZ1BhcnRuZXJMaW5rSWRlbnRpZmllckID4EEDSAA6YepBXgok", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRMaW5rEjZjdXN0b21l", - "cnMve2N1c3RvbWVyX2lkfS9hY2NvdW50TGlua3Mve2FjY291bnRfbGlua19p", - "ZH1CEAoObGlua2VkX2FjY291bnRCEgoQX2FjY291bnRfbGlua19pZCL0AQok", - "VGhpcmRQYXJ0eUFwcEFuYWx5dGljc0xpbmtJZGVudGlmaWVyEisKGWFwcF9h", - "bmFseXRpY3NfcHJvdmlkZXJfaWQYBCABKANCA+BBBUgAiAEBEhgKBmFwcF9p", - "ZBgFIAEoCUID4EEFSAGIAQESXAoKYXBwX3ZlbmRvchgDIAEoDjJDLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Nb2JpbGVBcHBWZW5kb3JFbnVt", - "Lk1vYmlsZUFwcFZlbmRvckID4EEFQhwKGl9hcHBfYW5hbHl0aWNzX3Byb3Zp", - "ZGVyX2lkQgkKB19hcHBfaWQiUgoZRGF0YVBhcnRuZXJMaW5rSWRlbnRpZmll", - "chIhCg9kYXRhX3BhcnRuZXJfaWQYASABKANCA+BBBUgAiAEBQhIKEF9kYXRh", - "X3BhcnRuZXJfaWQiOQoZSG90ZWxDZW50ZXJMaW5rSWRlbnRpZmllchIcCg9o", - "b3RlbF9jZW50ZXJfaWQYASABKANCA+BBAyJoChdHb29nbGVBZHNMaW5rSWRl", - "bnRpZmllchJACghjdXN0b21lchgDIAEoCUIp4EEF+kEjCiFnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJIAIgBAUILCglfY3VzdG9tZXIicQog", - "QWR2ZXJ0aXNpbmdQYXJ0bmVyTGlua0lkZW50aWZpZXISQAoIY3VzdG9tZXIY", - "ASABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3Rv", - "bWVySACIAQFCCwoJX2N1c3RvbWVyQoICCiZjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlc0IQQWNjb3VudExpbmtQcm90b1ABWktnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AccountLink), global::Google.Ads.GoogleAds.V12.Resources.AccountLink.Parser, new[]{ "ResourceName", "AccountLinkId", "Status", "Type", "ThirdPartyAppAnalytics", "DataPartner", "GoogleAds", "HotelCenter", "AdvertisingPartner" }, new[]{ "LinkedAccount", "AccountLinkId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier), global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier.Parser, new[]{ "AppAnalyticsProviderId", "AppId", "AppVendor" }, new[]{ "AppAnalyticsProviderId", "AppId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier), global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier.Parser, new[]{ "DataPartnerId" }, new[]{ "DataPartnerId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier), global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier.Parser, new[]{ "HotelCenterId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier), global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier.Parser, new[]{ "Customer" }, new[]{ "Customer" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier), global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier.Parser, new[]{ "Customer" }, new[]{ "Customer" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents the data sharing connection between a Google Ads account and - /// another account - /// - public sealed partial class AccountLink : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLink()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLink() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLink(AccountLink other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - accountLinkId_ = other.accountLinkId_; - status_ = other.status_; - type_ = other.type_; - switch (other.LinkedAccountCase) { - case LinkedAccountOneofCase.ThirdPartyAppAnalytics: - ThirdPartyAppAnalytics = other.ThirdPartyAppAnalytics.Clone(); - break; - case LinkedAccountOneofCase.DataPartner: - DataPartner = other.DataPartner.Clone(); - break; - case LinkedAccountOneofCase.GoogleAds: - GoogleAds = other.GoogleAds.Clone(); - break; - case LinkedAccountOneofCase.HotelCenter: - HotelCenter = other.HotelCenter.Clone(); - break; - case LinkedAccountOneofCase.AdvertisingPartner: - AdvertisingPartner = other.AdvertisingPartner.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLink Clone() { - return new AccountLink(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. Resource name of the account link. - /// AccountLink resource names have the form: - /// `customers/{customer_id}/accountLinks/{account_link_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "account_link_id" field. - public const int AccountLinkIdFieldNumber = 8; - private long accountLinkId_; - /// - /// Output only. The ID of the link. - /// This field is read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AccountLinkId { - get { if ((_hasBits0 & 1) != 0) { return accountLinkId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - accountLinkId_ = value; - } - } - /// Gets whether the "account_link_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccountLinkId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "account_link_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccountLinkId() { - _hasBits0 &= ~1; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified; - /// - /// The status of the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType type_ = global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified; - /// - /// Output only. The type of the linked account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "third_party_app_analytics" field. - public const int ThirdPartyAppAnalyticsFieldNumber = 5; - /// - /// Immutable. A third party app analytics link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier ThirdPartyAppAnalytics { - get { return linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics ? (global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier) linkedAccount_ : null; } - set { - linkedAccount_ = value; - linkedAccountCase_ = value == null ? LinkedAccountOneofCase.None : LinkedAccountOneofCase.ThirdPartyAppAnalytics; - } - } - - /// Field number for the "data_partner" field. - public const int DataPartnerFieldNumber = 6; - /// - /// Output only. Data partner link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier DataPartner { - get { return linkedAccountCase_ == LinkedAccountOneofCase.DataPartner ? (global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier) linkedAccount_ : null; } - set { - linkedAccount_ = value; - linkedAccountCase_ = value == null ? LinkedAccountOneofCase.None : LinkedAccountOneofCase.DataPartner; - } - } - - /// Field number for the "google_ads" field. - public const int GoogleAdsFieldNumber = 7; - /// - /// Output only. Google Ads link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier GoogleAds { - get { return linkedAccountCase_ == LinkedAccountOneofCase.GoogleAds ? (global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier) linkedAccount_ : null; } - set { - linkedAccount_ = value; - linkedAccountCase_ = value == null ? LinkedAccountOneofCase.None : LinkedAccountOneofCase.GoogleAds; - } - } - - /// Field number for the "hotel_center" field. - public const int HotelCenterFieldNumber = 9; - /// - /// Output only. Hotel link - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier HotelCenter { - get { return linkedAccountCase_ == LinkedAccountOneofCase.HotelCenter ? (global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier) linkedAccount_ : null; } - set { - linkedAccount_ = value; - linkedAccountCase_ = value == null ? LinkedAccountOneofCase.None : LinkedAccountOneofCase.HotelCenter; - } - } - - /// Field number for the "advertising_partner" field. - public const int AdvertisingPartnerFieldNumber = 10; - /// - /// Output only. Advertising Partner link - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier AdvertisingPartner { - get { return linkedAccountCase_ == LinkedAccountOneofCase.AdvertisingPartner ? (global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier) linkedAccount_ : null; } - set { - linkedAccount_ = value; - linkedAccountCase_ = value == null ? LinkedAccountOneofCase.None : LinkedAccountOneofCase.AdvertisingPartner; - } - } - - private object linkedAccount_; - /// Enum of possible cases for the "linked_account" oneof. - public enum LinkedAccountOneofCase { - None = 0, - ThirdPartyAppAnalytics = 5, - DataPartner = 6, - GoogleAds = 7, - HotelCenter = 9, - AdvertisingPartner = 10, - } - private LinkedAccountOneofCase linkedAccountCase_ = LinkedAccountOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LinkedAccountOneofCase LinkedAccountCase { - get { return linkedAccountCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLinkedAccount() { - linkedAccountCase_ = LinkedAccountOneofCase.None; - linkedAccount_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountLink); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountLink other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AccountLinkId != other.AccountLinkId) return false; - if (Status != other.Status) return false; - if (Type != other.Type) return false; - if (!object.Equals(ThirdPartyAppAnalytics, other.ThirdPartyAppAnalytics)) return false; - if (!object.Equals(DataPartner, other.DataPartner)) return false; - if (!object.Equals(GoogleAds, other.GoogleAds)) return false; - if (!object.Equals(HotelCenter, other.HotelCenter)) return false; - if (!object.Equals(AdvertisingPartner, other.AdvertisingPartner)) return false; - if (LinkedAccountCase != other.LinkedAccountCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAccountLinkId) hash ^= AccountLinkId.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) hash ^= Type.GetHashCode(); - if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) hash ^= ThirdPartyAppAnalytics.GetHashCode(); - if (linkedAccountCase_ == LinkedAccountOneofCase.DataPartner) hash ^= DataPartner.GetHashCode(); - if (linkedAccountCase_ == LinkedAccountOneofCase.GoogleAds) hash ^= GoogleAds.GetHashCode(); - if (linkedAccountCase_ == LinkedAccountOneofCase.HotelCenter) hash ^= HotelCenter.GetHashCode(); - if (linkedAccountCase_ == LinkedAccountOneofCase.AdvertisingPartner) hash ^= AdvertisingPartner.GetHashCode(); - hash ^= (int) linkedAccountCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) { - output.WriteRawTag(42); - output.WriteMessage(ThirdPartyAppAnalytics); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.DataPartner) { - output.WriteRawTag(50); - output.WriteMessage(DataPartner); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.GoogleAds) { - output.WriteRawTag(58); - output.WriteMessage(GoogleAds); - } - if (HasAccountLinkId) { - output.WriteRawTag(64); - output.WriteInt64(AccountLinkId); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.HotelCenter) { - output.WriteRawTag(74); - output.WriteMessage(HotelCenter); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.AdvertisingPartner) { - output.WriteRawTag(82); - output.WriteMessage(AdvertisingPartner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) { - output.WriteRawTag(42); - output.WriteMessage(ThirdPartyAppAnalytics); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.DataPartner) { - output.WriteRawTag(50); - output.WriteMessage(DataPartner); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.GoogleAds) { - output.WriteRawTag(58); - output.WriteMessage(GoogleAds); - } - if (HasAccountLinkId) { - output.WriteRawTag(64); - output.WriteInt64(AccountLinkId); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.HotelCenter) { - output.WriteRawTag(74); - output.WriteMessage(HotelCenter); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.AdvertisingPartner) { - output.WriteRawTag(82); - output.WriteMessage(AdvertisingPartner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAccountLinkId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AccountLinkId); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ThirdPartyAppAnalytics); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.DataPartner) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DataPartner); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.GoogleAds) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GoogleAds); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.HotelCenter) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelCenter); - } - if (linkedAccountCase_ == LinkedAccountOneofCase.AdvertisingPartner) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdvertisingPartner); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountLink other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAccountLinkId) { - AccountLinkId = other.AccountLinkId; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) { - Status = other.Status; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) { - Type = other.Type; - } - switch (other.LinkedAccountCase) { - case LinkedAccountOneofCase.ThirdPartyAppAnalytics: - if (ThirdPartyAppAnalytics == null) { - ThirdPartyAppAnalytics = new global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier(); - } - ThirdPartyAppAnalytics.MergeFrom(other.ThirdPartyAppAnalytics); - break; - case LinkedAccountOneofCase.DataPartner: - if (DataPartner == null) { - DataPartner = new global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier(); - } - DataPartner.MergeFrom(other.DataPartner); - break; - case LinkedAccountOneofCase.GoogleAds: - if (GoogleAds == null) { - GoogleAds = new global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier(); - } - GoogleAds.MergeFrom(other.GoogleAds); - break; - case LinkedAccountOneofCase.HotelCenter: - if (HotelCenter == null) { - HotelCenter = new global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier(); - } - HotelCenter.MergeFrom(other.HotelCenter); - break; - case LinkedAccountOneofCase.AdvertisingPartner: - if (AdvertisingPartner == null) { - AdvertisingPartner = new global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier(); - } - AdvertisingPartner.MergeFrom(other.AdvertisingPartner); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus) input.ReadEnum(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType) input.ReadEnum(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) { - subBuilder.MergeFrom(ThirdPartyAppAnalytics); - } - input.ReadMessage(subBuilder); - ThirdPartyAppAnalytics = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.DataPartner) { - subBuilder.MergeFrom(DataPartner); - } - input.ReadMessage(subBuilder); - DataPartner = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.GoogleAds) { - subBuilder.MergeFrom(GoogleAds); - } - input.ReadMessage(subBuilder); - GoogleAds = subBuilder; - break; - } - case 64: { - AccountLinkId = input.ReadInt64(); - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.HotelCenter) { - subBuilder.MergeFrom(HotelCenter); - } - input.ReadMessage(subBuilder); - HotelCenter = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.AdvertisingPartner) { - subBuilder.MergeFrom(AdvertisingPartner); - } - input.ReadMessage(subBuilder); - AdvertisingPartner = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus) input.ReadEnum(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType) input.ReadEnum(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) { - subBuilder.MergeFrom(ThirdPartyAppAnalytics); - } - input.ReadMessage(subBuilder); - ThirdPartyAppAnalytics = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.DataPartnerLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.DataPartner) { - subBuilder.MergeFrom(DataPartner); - } - input.ReadMessage(subBuilder); - DataPartner = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.GoogleAds) { - subBuilder.MergeFrom(GoogleAds); - } - input.ReadMessage(subBuilder); - GoogleAds = subBuilder; - break; - } - case 64: { - AccountLinkId = input.ReadInt64(); - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.HotelCenterLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.HotelCenter) { - subBuilder.MergeFrom(HotelCenter); - } - input.ReadMessage(subBuilder); - HotelCenter = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdvertisingPartnerLinkIdentifier(); - if (linkedAccountCase_ == LinkedAccountOneofCase.AdvertisingPartner) { - subBuilder.MergeFrom(AdvertisingPartner); - } - input.ReadMessage(subBuilder); - AdvertisingPartner = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// The identifiers of a Third Party App Analytics Link. - /// - public sealed partial class ThirdPartyAppAnalyticsLinkIdentifier : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThirdPartyAppAnalyticsLinkIdentifier()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThirdPartyAppAnalyticsLinkIdentifier() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThirdPartyAppAnalyticsLinkIdentifier(ThirdPartyAppAnalyticsLinkIdentifier other) : this() { - _hasBits0 = other._hasBits0; - appAnalyticsProviderId_ = other.appAnalyticsProviderId_; - appId_ = other.appId_; - appVendor_ = other.appVendor_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThirdPartyAppAnalyticsLinkIdentifier Clone() { - return new ThirdPartyAppAnalyticsLinkIdentifier(this); - } - - /// Field number for the "app_analytics_provider_id" field. - public const int AppAnalyticsProviderIdFieldNumber = 4; - private long appAnalyticsProviderId_; - /// - /// Immutable. The ID of the app analytics provider. - /// This field should not be empty when creating a new third - /// party app analytics link. It is unable to be modified after the creation of - /// the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AppAnalyticsProviderId { - get { if ((_hasBits0 & 1) != 0) { return appAnalyticsProviderId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - appAnalyticsProviderId_ = value; - } - } - /// Gets whether the "app_analytics_provider_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppAnalyticsProviderId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "app_analytics_provider_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppAnalyticsProviderId() { - _hasBits0 &= ~1; - } - - /// Field number for the "app_id" field. - public const int AppIdFieldNumber = 5; - private string appId_; - /// - /// Immutable. A string that uniquely identifies a mobile application from which the data - /// was collected to the Google Ads API. For iOS, the ID string is the 9 digit - /// string that appears at the end of an App Store URL (for example, - /// "422689480" for "Gmail" whose App Store link is - /// https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For - /// Android, the ID string is the application's package name (for example, - /// "com.google.android.gm" for "Gmail" given Google Play link - /// https://play.google.com/store/apps/details?id=com.google.android.gm) - /// This field should not be empty when creating a new third - /// party app analytics link. It is unable to be modified after the creation of - /// the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppId { - get { return appId_ ?? ""; } - set { - appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "app_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppId { - get { return appId_ != null; } - } - /// Clears the value of the "app_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppId() { - appId_ = null; - } - - /// Field number for the "app_vendor" field. - public const int AppVendorFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor appVendor_ = global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified; - /// - /// Immutable. The vendor of the app. - /// This field should not be empty when creating a new third - /// party app analytics link. It is unable to be modified after the creation of - /// the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor AppVendor { - get { return appVendor_; } - set { - appVendor_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ThirdPartyAppAnalyticsLinkIdentifier); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ThirdPartyAppAnalyticsLinkIdentifier other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AppAnalyticsProviderId != other.AppAnalyticsProviderId) return false; - if (AppId != other.AppId) return false; - if (AppVendor != other.AppVendor) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAppAnalyticsProviderId) hash ^= AppAnalyticsProviderId.GetHashCode(); - if (HasAppId) hash ^= AppId.GetHashCode(); - if (AppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) hash ^= AppVendor.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AppVendor); - } - if (HasAppAnalyticsProviderId) { - output.WriteRawTag(32); - output.WriteInt64(AppAnalyticsProviderId); - } - if (HasAppId) { - output.WriteRawTag(42); - output.WriteString(AppId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AppVendor); - } - if (HasAppAnalyticsProviderId) { - output.WriteRawTag(32); - output.WriteInt64(AppAnalyticsProviderId); - } - if (HasAppId) { - output.WriteRawTag(42); - output.WriteString(AppId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAppAnalyticsProviderId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AppAnalyticsProviderId); - } - if (HasAppId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); - } - if (AppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppVendor); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ThirdPartyAppAnalyticsLinkIdentifier other) { - if (other == null) { - return; - } - if (other.HasAppAnalyticsProviderId) { - AppAnalyticsProviderId = other.AppAnalyticsProviderId; - } - if (other.HasAppId) { - AppId = other.AppId; - } - if (other.AppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - AppVendor = other.AppVendor; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - AppVendor = (global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor) input.ReadEnum(); - break; - } - case 32: { - AppAnalyticsProviderId = input.ReadInt64(); - break; - } - case 42: { - AppId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - AppVendor = (global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor) input.ReadEnum(); - break; - } - case 32: { - AppAnalyticsProviderId = input.ReadInt64(); - break; - } - case 42: { - AppId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The identifier for Data Partner account. - /// - public sealed partial class DataPartnerLinkIdentifier : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataPartnerLinkIdentifier()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataPartnerLinkIdentifier() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataPartnerLinkIdentifier(DataPartnerLinkIdentifier other) : this() { - _hasBits0 = other._hasBits0; - dataPartnerId_ = other.dataPartnerId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataPartnerLinkIdentifier Clone() { - return new DataPartnerLinkIdentifier(this); - } - - /// Field number for the "data_partner_id" field. - public const int DataPartnerIdFieldNumber = 1; - private long dataPartnerId_; - /// - /// Immutable. The customer ID of the Data partner account. - /// This field is required and should not be empty when creating a new - /// data partner link. It is unable to be modified after the creation of - /// the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long DataPartnerId { - get { if ((_hasBits0 & 1) != 0) { return dataPartnerId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - dataPartnerId_ = value; - } - } - /// Gets whether the "data_partner_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDataPartnerId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "data_partner_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDataPartnerId() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DataPartnerLinkIdentifier); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DataPartnerLinkIdentifier other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DataPartnerId != other.DataPartnerId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasDataPartnerId) hash ^= DataPartnerId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasDataPartnerId) { - output.WriteRawTag(8); - output.WriteInt64(DataPartnerId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasDataPartnerId) { - output.WriteRawTag(8); - output.WriteInt64(DataPartnerId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasDataPartnerId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(DataPartnerId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DataPartnerLinkIdentifier other) { - if (other == null) { - return; - } - if (other.HasDataPartnerId) { - DataPartnerId = other.DataPartnerId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - DataPartnerId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - DataPartnerId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// The identifier for Hotel account. - /// - public sealed partial class HotelCenterLinkIdentifier : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelCenterLinkIdentifier()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCenterLinkIdentifier() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCenterLinkIdentifier(HotelCenterLinkIdentifier other) : this() { - hotelCenterId_ = other.hotelCenterId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCenterLinkIdentifier Clone() { - return new HotelCenterLinkIdentifier(this); - } - - /// Field number for the "hotel_center_id" field. - public const int HotelCenterIdFieldNumber = 1; - private long hotelCenterId_; - /// - /// Output only. The hotel center id of the hotel account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long HotelCenterId { - get { return hotelCenterId_; } - set { - hotelCenterId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelCenterLinkIdentifier); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelCenterLinkIdentifier other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (HotelCenterId != other.HotelCenterId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HotelCenterId != 0L) hash ^= HotelCenterId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HotelCenterId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(HotelCenterId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HotelCenterId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(HotelCenterId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HotelCenterId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(HotelCenterId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelCenterLinkIdentifier other) { - if (other == null) { - return; - } - if (other.HotelCenterId != 0L) { - HotelCenterId = other.HotelCenterId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - HotelCenterId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - HotelCenterId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// The identifier for Google Ads account. - /// - public sealed partial class GoogleAdsLinkIdentifier : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleAdsLinkIdentifier()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsLinkIdentifier() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsLinkIdentifier(GoogleAdsLinkIdentifier other) : this() { - customer_ = other.customer_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsLinkIdentifier Clone() { - return new GoogleAdsLinkIdentifier(this); - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 3; - private string customer_; - /// - /// Immutable. The resource name of the Google Ads account. - /// This field is required and should not be empty when creating a new - /// Google Ads link. It is unable to be modified after the creation of - /// the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Customer { - get { return customer_ ?? ""; } - set { - customer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomer { - get { return customer_ != null; } - } - /// Clears the value of the "customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomer() { - customer_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleAdsLinkIdentifier); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleAdsLinkIdentifier other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Customer != other.Customer) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCustomer) hash ^= Customer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCustomer) { - output.WriteRawTag(26); - output.WriteString(Customer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCustomer) { - output.WriteRawTag(26); - output.WriteString(Customer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Customer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleAdsLinkIdentifier other) { - if (other == null) { - return; - } - if (other.HasCustomer) { - Customer = other.Customer; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Customer = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Customer = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The identifier for the Advertising Partner Google Ads account. - /// - public sealed partial class AdvertisingPartnerLinkIdentifier : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvertisingPartnerLinkIdentifier()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingPartnerLinkIdentifier() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingPartnerLinkIdentifier(AdvertisingPartnerLinkIdentifier other) : this() { - customer_ = other.customer_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingPartnerLinkIdentifier Clone() { - return new AdvertisingPartnerLinkIdentifier(this); - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 1; - private string customer_; - /// - /// Immutable. The resource name of the advertising partner Google Ads account. - /// This field is required and should not be empty when creating a new - /// Advertising Partner link. It is unable to be modified after the creation of - /// the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Customer { - get { return customer_ ?? ""; } - set { - customer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomer { - get { return customer_ != null; } - } - /// Clears the value of the "customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomer() { - customer_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdvertisingPartnerLinkIdentifier); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdvertisingPartnerLinkIdentifier other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Customer != other.Customer) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCustomer) hash ^= Customer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCustomer) { - output.WriteRawTag(10); - output.WriteString(Customer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCustomer) { - output.WriteRawTag(10); - output.WriteString(Customer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Customer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdvertisingPartnerLinkIdentifier other) { - if (other == null) { - return; - } - if (other.HasCustomer) { - Customer = other.Customer; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Customer = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Customer = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountLinkError.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLinkError.g.cs deleted file mode 100755 index 76ca39eb5..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLinkError.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/account_link_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/account_link_error.proto - public static partial class AccountLinkErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/account_link_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountLinkErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FjY291bnRfbGlu", - "a19lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cyJzChRBY2NvdW50TGlua0Vycm9yRW51bSJbChBBY2NvdW50TGlua0Vycm9y", - "Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhIKDklOVkFMSURfU1RB", - "VFVTEAISFQoRUEVSTUlTU0lPTl9ERU5JRUQQA0L1AQojY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCFUFjY291bnRMaW5rRXJyb3JQcm90", - "b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUu", - "QWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorEnum.Types.AccountLinkError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible account link errors. - /// - public sealed partial class AccountLinkErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLinkErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkErrorEnum(AccountLinkErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkErrorEnum Clone() { - return new AccountLinkErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountLinkErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountLinkErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountLinkErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccountLinkErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible account link errors. - /// - public enum AccountLinkError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The new link status is invalid. - /// - [pbr::OriginalName("INVALID_STATUS")] InvalidStatus = 2, - /// - /// The authenticated user doesn't have the permission to do the change. - /// - [pbr::OriginalName("PERMISSION_DENIED")] PermissionDenied = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountLinkResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLinkResourceNames.g.cs deleted file mode 100755 index 75c596547..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLinkResourceNames.g.cs +++ /dev/null @@ -1,279 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AccountLink resource. - public sealed partial class AccountLinkName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/accountLinks/{account_link_id}. - /// - CustomerAccountLink = 1, - } - - private static gax::PathTemplate s_customerAccountLink = new gax::PathTemplate("customers/{customer_id}/accountLinks/{account_link_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AccountLinkName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AccountLinkName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/accountLinks/{account_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AccountLink ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AccountLinkName FromCustomerAccountLink(string customerId, string accountLinkId) => - new AccountLinkName(ResourceNameType.CustomerAccountLink, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), accountLinkId: gax::GaxPreconditions.CheckNotNullOrEmpty(accountLinkId, nameof(accountLinkId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/accountLinks/{account_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AccountLink ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accountLinks/{account_link_id}. - /// - public static string Format(string customerId, string accountLinkId) => - FormatCustomerAccountLink(customerId, accountLinkId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/accountLinks/{account_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AccountLink ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/accountLinks/{account_link_id}. - /// - public static string FormatCustomerAccountLink(string customerId, string accountLinkId) => - s_customerAccountLink.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(accountLinkId, nameof(accountLinkId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountLinks/{account_link_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AccountLinkName Parse(string accountLinkName) => Parse(accountLinkName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountLinks/{account_link_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AccountLinkName Parse(string accountLinkName, bool allowUnparsed) => - TryParse(accountLinkName, allowUnparsed, out AccountLinkName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountLinks/{account_link_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accountLinkName, out AccountLinkName result) => - TryParse(accountLinkName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/accountLinks/{account_link_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string accountLinkName, bool allowUnparsed, out AccountLinkName result) - { - gax::GaxPreconditions.CheckNotNull(accountLinkName, nameof(accountLinkName)); - gax::TemplatedResourceName resourceName; - if (s_customerAccountLink.TryParseName(accountLinkName, out resourceName)) - { - result = FromCustomerAccountLink(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(accountLinkName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AccountLinkName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string accountLinkId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AccountLinkId = accountLinkId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/accountLinks/{account_link_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AccountLink ID. Must not be null or empty. - public AccountLinkName(string customerId, string accountLinkId) : this(ResourceNameType.CustomerAccountLink, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), accountLinkId: gax::GaxPreconditions.CheckNotNullOrEmpty(accountLinkId, nameof(accountLinkId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AccountLink ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AccountLinkId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAccountLink: return s_customerAccountLink.Expand(CustomerId, AccountLinkId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AccountLinkName); - - /// - public bool Equals(AccountLinkName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AccountLinkName a, AccountLinkName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AccountLinkName a, AccountLinkName b) => !(a == b); - } - - public partial class AccountLink - { - /// - /// -typed view over the resource name property. - /// - internal AccountLinkName ResourceNameAsAccountLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AccountLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class GoogleAdsLinkIdentifier - { - /// - /// -typed view over the resource name property. - /// - internal CustomerName CustomerAsCustomerName - { - get => string.IsNullOrEmpty(Customer) ? null : CustomerName.Parse(Customer, allowUnparsed: true); - set => Customer = value?.ToString() ?? ""; - } - } - - public partial class AdvertisingPartnerLinkIdentifier - { - /// - /// -typed view over the resource name property. - /// - internal CustomerName CustomerAsCustomerName - { - get => string.IsNullOrEmpty(Customer) ? null : CustomerName.Parse(Customer, allowUnparsed: true); - set => Customer = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountLinkService.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLinkService.g.cs deleted file mode 100755 index 4ec6b3ffb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLinkService.g.cs +++ /dev/null @@ -1,1646 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/account_link_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/account_link_service.proto - public static partial class AccountLinkServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/account_link_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountLinkServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWNjb3VudF9s", - "aW5rX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9h", - "Y2NvdW50X2xpbmsucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJv", - "dG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxk", - "X2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiBn", - "b29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxoXZ29vZ2xlL3JwYy9z", - "dGF0dXMucHJvdG8igAEKGENyZWF0ZUFjY291bnRMaW5rUmVxdWVzdBIYCgtj", - "dXN0b21lcl9pZBgBIAEoCUID4EECEkoKDGFjY291bnRfbGluaxgCIAEoCzIv", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWNjb3VudExp", - "bmtCA+BBAiJdChlDcmVhdGVBY2NvdW50TGlua1Jlc3BvbnNlEkAKDXJlc291", - "cmNlX25hbWUYASABKAlCKfpBJgokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0FjY291bnRMaW5rIrUBChhNdXRhdGVBY2NvdW50TGlua1JlcXVlc3QSGAoL", - "Y3VzdG9tZXJfaWQYASABKAlCA+BBAhJPCglvcGVyYXRpb24YAiABKAsyNy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQWNjb3VudExpbmtP", - "cGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFs", - "aWRhdGVfb25seRgEIAEoCCLUAQoUQWNjb3VudExpbmtPcGVyYXRpb24SLwoL", - "dXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNr", - "EkEKBnVwZGF0ZRgCIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQWNjb3VudExpbmtIABI7CgZyZW1vdmUYAyABKAlCKfpBJgok", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FjY291bnRMaW5rSABCCwoJb3Bl", - "cmF0aW9uIpoBChlNdXRhdGVBY2NvdW50TGlua1Jlc3BvbnNlEkoKBnJlc3Vs", - "dBgBIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5N", - "dXRhdGVBY2NvdW50TGlua1Jlc3VsdBIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJy", - "b3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1cyJbChdNdXRhdGVBY2NvdW50", - "TGlua1Jlc3VsdBJACg1yZXNvdXJjZV9uYW1lGAEgASgJQin6QSYKJGdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9BY2NvdW50TGluazKuBAoSQWNjb3VudExp", - "bmtTZXJ2aWNlEugBChFDcmVhdGVBY2NvdW50TGluaxI7Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DcmVhdGVBY2NvdW50TGlua1JlcXVl", - "c3QaPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3JlYXRl", - "QWNjb3VudExpbmtSZXNwb25zZSJYgtPkkwI3IjIvdjEyL2N1c3RvbWVycy97", - "Y3VzdG9tZXJfaWQ9Kn0vYWNjb3VudExpbmtzOmNyZWF0ZToBKtpBGGN1c3Rv", - "bWVyX2lkLGFjY291bnRfbGluaxLlAQoRTXV0YXRlQWNjb3VudExpbmsSOy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWNjb3Vu", - "dExpbmtSZXF1ZXN0GjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLk11dGF0ZUFjY291bnRMaW5rUmVzcG9uc2UiVYLT5JMCNyIyL3YxMi9j", - "dXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2FjY291bnRMaW5rczptdXRhdGU6", - "ASraQRVjdXN0b21lcl9pZCxvcGVyYXRpb24aRcpBGGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgv", - "YWR3b3Jkc0KDAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlc0IXQWNjb3VudExpbmtTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9z", - "ZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2", - "aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest), global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest.Parser, new[]{ "CustomerId", "AccountLink" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkResponse), global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkResponse.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest.Parser, new[]{ "CustomerId", "Operation", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AccountLinkOperation), global::Google.Ads.GoogleAds.V12.Services.AccountLinkOperation.Parser, new[]{ "UpdateMask", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResponse.Parser, new[]{ "Result", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResult), global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AccountLinkService.CreateAccountLink][google.ads.googleads.v12.services.AccountLinkService.CreateAccountLink]. - /// - public sealed partial class CreateAccountLinkRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAccountLinkRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountLinkServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAccountLinkRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAccountLinkRequest(CreateAccountLinkRequest other) : this() { - customerId_ = other.customerId_; - accountLink_ = other.accountLink_ != null ? other.accountLink_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAccountLinkRequest Clone() { - return new CreateAccountLinkRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer for which the account link is created. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "account_link" field. - public const int AccountLinkFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AccountLink accountLink_; - /// - /// Required. The account link to be created. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccountLink AccountLink { - get { return accountLink_; } - set { - accountLink_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateAccountLinkRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateAccountLinkRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(AccountLink, other.AccountLink)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (accountLink_ != null) hash ^= AccountLink.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (accountLink_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AccountLink); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (accountLink_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AccountLink); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (accountLink_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountLink); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateAccountLinkRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.accountLink_ != null) { - if (accountLink_ == null) { - AccountLink = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - } - AccountLink.MergeFrom(other.AccountLink); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (accountLink_ == null) { - AccountLink = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - } - input.ReadMessage(AccountLink); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (accountLink_ == null) { - AccountLink = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - } - input.ReadMessage(AccountLink); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [AccountLinkService.CreateAccountLink][google.ads.googleads.v12.services.AccountLinkService.CreateAccountLink]. - /// - public sealed partial class CreateAccountLinkResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateAccountLinkResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountLinkServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAccountLinkResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAccountLinkResponse(CreateAccountLinkResponse other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateAccountLinkResponse Clone() { - return new CreateAccountLinkResponse(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. Resource name of the account link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateAccountLinkResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateAccountLinkResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateAccountLinkResponse other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [AccountLinkService.MutateAccountLink][google.ads.googleads.v12.services.AccountLinkService.MutateAccountLink]. - /// - public sealed partial class MutateAccountLinkRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAccountLinkRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountLinkServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkRequest(MutateAccountLinkRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkRequest Clone() { - return new MutateAccountLinkRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.AccountLinkOperation operation_; - /// - /// Required. The operation to perform on the link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AccountLinkOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAccountLinkRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAccountLinkRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAccountLinkRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.AccountLinkOperation(); - } - Operation.MergeFrom(other.Operation); - } - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.AccountLinkOperation(); - } - input.ReadMessage(Operation); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.AccountLinkOperation(); - } - input.ReadMessage(Operation); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single update on an account link. - /// - public sealed partial class AccountLinkOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLinkOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountLinkServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkOperation(AccountLinkOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkOperation Clone() { - return new AccountLinkOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The account link is expected to have - /// a valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccountLink Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AccountLink) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the account link to remove is - /// expected, in this format: - /// - /// `customers/{customer_id}/accountLinks/{account_link_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountLinkOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountLinkOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountLinkOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AccountLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AccountLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for account link mutate. - /// - public sealed partial class MutateAccountLinkResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAccountLinkResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountLinkServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkResponse(MutateAccountLinkResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkResponse Clone() { - return new MutateAccountLinkResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResult result_; - /// - /// Result for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResult Result { - get { return result_; } - set { - result_ = value; - } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAccountLinkResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAccountLinkResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAccountLinkResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResult(); - } - Result.MergeFrom(other.Result); - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResult(); - } - input.ReadMessage(Result); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResult(); - } - input.ReadMessage(Result); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the account link mutate. - /// - public sealed partial class MutateAccountLinkResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAccountLinkResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountLinkServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkResult(MutateAccountLinkResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAccountLinkResult Clone() { - return new MutateAccountLinkResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAccountLinkResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAccountLinkResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAccountLinkResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AccountLinkServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLinkServiceClient.g.cs deleted file mode 100755 index df5b47ebc..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLinkServiceClient.g.cs +++ /dev/null @@ -1,699 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AccountLinkServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AccountLinkServiceSettings GetDefault() => new AccountLinkServiceSettings(); - - /// Constructs a new object with default settings. - public AccountLinkServiceSettings() - { - } - - private AccountLinkServiceSettings(AccountLinkServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - CreateAccountLinkSettings = existing.CreateAccountLinkSettings; - MutateAccountLinkSettings = existing.MutateAccountLinkSettings; - OnCopy(existing); - } - - partial void OnCopy(AccountLinkServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AccountLinkServiceClient.CreateAccountLink and AccountLinkServiceClient.CreateAccountLinkAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings CreateAccountLinkSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// AccountLinkServiceClient.MutateAccountLink and AccountLinkServiceClient.MutateAccountLinkAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAccountLinkSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AccountLinkServiceSettings Clone() => new AccountLinkServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AccountLinkServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AccountLinkServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AccountLinkServiceClientBuilder() : base(AccountLinkServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AccountLinkServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AccountLinkServiceClient Build() - { - AccountLinkServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AccountLinkServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AccountLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AccountLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AccountLinkServiceClient.ChannelPool; - } - - /// AccountLinkService client wrapper, for convenient use. - /// - /// This service allows management of links between Google Ads accounts and other - /// accounts. - /// - public abstract partial class AccountLinkServiceClient - { - /// - /// The default endpoint for the AccountLinkService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AccountLinkService scopes. - /// - /// The default AccountLinkService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AccountLinkService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AccountLinkServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AccountLinkServiceClient Create() => new AccountLinkServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AccountLinkServiceClient Create(grpccore::CallInvoker callInvoker, AccountLinkServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AccountLinkService.AccountLinkServiceClient grpcClient = new AccountLinkService.AccountLinkServiceClient(callInvoker); - return new AccountLinkServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AccountLinkService client - public virtual AccountLinkService.AccountLinkServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual CreateAccountLinkResponse CreateAccountLink(CreateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateAccountLinkAsync(CreateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateAccountLinkAsync(CreateAccountLinkRequest request, st::CancellationToken cancellationToken) => - CreateAccountLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// - /// Required. The ID of the customer for which the account link is created. - /// - /// - /// Required. The account link to be created. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual CreateAccountLinkResponse CreateAccountLink(string customerId, gagvr::AccountLink accountLink, gaxgrpc::CallSettings callSettings = null) => - CreateAccountLink(new CreateAccountLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - AccountLink = gax::GaxPreconditions.CheckNotNull(accountLink, nameof(accountLink)), - }, callSettings); - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// - /// Required. The ID of the customer for which the account link is created. - /// - /// - /// Required. The account link to be created. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateAccountLinkAsync(string customerId, gagvr::AccountLink accountLink, gaxgrpc::CallSettings callSettings = null) => - CreateAccountLinkAsync(new CreateAccountLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - AccountLink = gax::GaxPreconditions.CheckNotNull(accountLink, nameof(accountLink)), - }, callSettings); - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// - /// Required. The ID of the customer for which the account link is created. - /// - /// - /// Required. The account link to be created. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateAccountLinkAsync(string customerId, gagvr::AccountLink accountLink, st::CancellationToken cancellationToken) => - CreateAccountLinkAsync(customerId, accountLink, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAccountLinkResponse MutateAccountLink(MutateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountLinkAsync(MutateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountLinkAsync(MutateAccountLinkRequest request, st::CancellationToken cancellationToken) => - MutateAccountLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the link. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAccountLinkResponse MutateAccountLink(string customerId, AccountLinkOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateAccountLink(new MutateAccountLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the link. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountLinkAsync(string customerId, AccountLinkOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateAccountLinkAsync(new MutateAccountLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the link. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAccountLinkAsync(string customerId, AccountLinkOperation operation, st::CancellationToken cancellationToken) => - MutateAccountLinkAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AccountLinkService client wrapper implementation, for convenient use. - /// - /// This service allows management of links between Google Ads accounts and other - /// accounts. - /// - public sealed partial class AccountLinkServiceClientImpl : AccountLinkServiceClient - { - private readonly gaxgrpc::ApiCall _callCreateAccountLink; - - private readonly gaxgrpc::ApiCall _callMutateAccountLink; - - /// - /// Constructs a client wrapper for the AccountLinkService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AccountLinkServiceClientImpl(AccountLinkService.AccountLinkServiceClient grpcClient, AccountLinkServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AccountLinkServiceSettings effectiveSettings = settings ?? AccountLinkServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callCreateAccountLink = clientHelper.BuildApiCall("CreateAccountLink", grpcClient.CreateAccountLinkAsync, grpcClient.CreateAccountLink, effectiveSettings.CreateAccountLinkSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callCreateAccountLink); - Modify_CreateAccountLinkApiCall(ref _callCreateAccountLink); - _callMutateAccountLink = clientHelper.BuildApiCall("MutateAccountLink", grpcClient.MutateAccountLinkAsync, grpcClient.MutateAccountLink, effectiveSettings.MutateAccountLinkSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAccountLink); - Modify_MutateAccountLinkApiCall(ref _callMutateAccountLink); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_CreateAccountLinkApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_MutateAccountLinkApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AccountLinkService.AccountLinkServiceClient grpcClient, AccountLinkServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AccountLinkService client - public override AccountLinkService.AccountLinkServiceClient GrpcClient { get; } - - partial void Modify_CreateAccountLinkRequest(ref CreateAccountLinkRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_MutateAccountLinkRequest(ref MutateAccountLinkRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override CreateAccountLinkResponse CreateAccountLink(CreateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateAccountLinkRequest(ref request, ref callSettings); - return _callCreateAccountLink.Sync(request, callSettings); - } - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task CreateAccountLinkAsync(CreateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateAccountLinkRequest(ref request, ref callSettings); - return _callCreateAccountLink.Async(request, callSettings); - } - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAccountLinkResponse MutateAccountLink(MutateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAccountLinkRequest(ref request, ref callSettings); - return _callMutateAccountLink.Sync(request, callSettings); - } - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAccountLinkAsync(MutateAccountLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAccountLinkRequest(ref request, ref callSettings); - return _callMutateAccountLink.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountLinkServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLinkServiceGrpc.g.cs deleted file mode 100755 index ba6a8b37b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLinkServiceGrpc.g.cs +++ /dev/null @@ -1,412 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/account_link_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// This service allows management of links between Google Ads accounts and other - /// accounts. - /// - public static partial class AccountLinkService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AccountLinkService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_CreateAccountLinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_CreateAccountLinkResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAccountLinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAccountLinkResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateAccountLink = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateAccountLink", - __Marshaller_google_ads_googleads_v12_services_CreateAccountLinkRequest, - __Marshaller_google_ads_googleads_v12_services_CreateAccountLinkResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAccountLink = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAccountLink", - __Marshaller_google_ads_googleads_v12_services_MutateAccountLinkRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAccountLinkResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AccountLinkServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AccountLinkService - [grpc::BindServiceMethod(typeof(AccountLinkService), "BindService")] - public abstract partial class AccountLinkServiceBase - { - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateAccountLink(global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAccountLink(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AccountLinkService - public partial class AccountLinkServiceClient : grpc::ClientBase - { - /// Creates a new client for AccountLinkService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AccountLinkServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AccountLinkService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AccountLinkServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AccountLinkServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AccountLinkServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkResponse CreateAccountLink(global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAccountLink(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkResponse CreateAccountLink(global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateAccountLink, null, options, request); - } - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAccountLinkAsync(global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateAccountLinkAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates an account link. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ThirdPartyAppAnalyticsLinkError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateAccountLinkAsync(global::Google.Ads.GoogleAds.V12.Services.CreateAccountLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateAccountLink, null, options, request); - } - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResponse MutateAccountLink(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAccountLink(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkResponse MutateAccountLink(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAccountLink, null, options, request); - } - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAccountLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAccountLinkAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes an account link. - /// From V5, create is not supported through - /// AccountLinkService.MutateAccountLink. Use - /// AccountLinkService.CreateAccountLink instead. - /// - /// List of thrown errors: - /// [AccountLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAccountLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAccountLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAccountLink, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AccountLinkServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AccountLinkServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AccountLinkServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_CreateAccountLink, serviceImpl.CreateAccountLink) - .AddMethod(__Method_MutateAccountLink, serviceImpl.MutateAccountLink).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AccountLinkServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_CreateAccountLink, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateAccountLink)); - serviceBinder.AddMethod(__Method_MutateAccountLink, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAccountLink)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AccountLinkServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLinkServiceResourceNames.g.cs deleted file mode 100755 index e1d9771a1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLinkServiceResourceNames.g.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CreateAccountLinkResponse - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AccountLinkName ResourceNameAsAccountLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AccountLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class AccountLinkOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AccountLinkName RemoveAsAccountLinkName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AccountLinkName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAccountLinkResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AccountLinkName ResourceNameAsAccountLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AccountLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AccountLinkStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AccountLinkStatus.g.cs deleted file mode 100755 index 6083b45de..000000000 --- a/Google.Ads.GoogleAds/src/V12/AccountLinkStatus.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/account_link_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/account_link_status.proto - public static partial class AccountLinkStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/account_link_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AccountLinkStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjb3VudF9saW5r", - "X3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "IqUBChVBY2NvdW50TGlua1N0YXR1c0VudW0iiwEKEUFjY291bnRMaW5rU3Rh", - "dHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0VOQUJMRUQQ", - "AhILCgdSRU1PVkVEEAMSDQoJUkVRVUVTVEVEEAQSFAoQUEVORElOR19BUFBS", - "T1ZBTBAFEgwKCFJFSkVDVEVEEAYSCwoHUkVWT0tFRBAHQvABCiJjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhZBY2NvdW50TGlua1N0YXR1", - "c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of an account link. - /// - public sealed partial class AccountLinkStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountLinkStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AccountLinkStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkStatusEnum(AccountLinkStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountLinkStatusEnum Clone() { - return new AccountLinkStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountLinkStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountLinkStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountLinkStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AccountLinkStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Describes the possible statuses for a link between a Google Ads customer - /// and another account. - /// - public enum AccountLinkStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The link is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The link is removed/disabled. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - /// - /// The link to the other account has been requested. A user on the other - /// account may now approve the link by setting the status to ENABLED. - /// - [pbr::OriginalName("REQUESTED")] Requested = 4, - /// - /// This link has been requested by a user on the other account. It may be - /// approved by a user on this account by setting the status to ENABLED. - /// - [pbr::OriginalName("PENDING_APPROVAL")] PendingApproval = 5, - /// - /// The link is rejected by the approver. - /// - [pbr::OriginalName("REJECTED")] Rejected = 6, - /// - /// The link is revoked by the user who requested the link. - /// - [pbr::OriginalName("REVOKED")] Revoked = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Ad.g.cs b/Google.Ads.GoogleAds/src/V12/Ad.g.cs deleted file mode 100755 index 1eac1a0aa..000000000 --- a/Google.Ads.GoogleAds/src/V12/Ad.g.cs +++ /dev/null @@ -1,2239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad.proto - public static partial class AdReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Citnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkLnByb3Rv", - "EiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGjNnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2FkX3R5cGVfaW5mb3MucHJvdG8a", - "Nmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3VzdG9tX3BhcmFt", - "ZXRlci5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9m", - "aW5hbF9hcHBfdXJsLnByb3RvGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "Y29tbW9uL3VybF9jb2xsZWN0aW9uLnByb3RvGixnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvYWRfdHlwZS5wcm90bxorZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zL2RldmljZS5wcm90bxpBZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zL3N5c3RlbV9tYW5hZ2VkX2VudGl0eV9zb3VyY2Uu", - "cHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8i3RYKAkFkEjoKDXJlc291cmNlX25hbWUY", - "JSABKAlCI+BBBfpBHQobZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkEhQK", - "AmlkGCggASgDQgPgQQNIAYgBARISCgpmaW5hbF91cmxzGCkgAygJEkQKDmZp", - "bmFsX2FwcF91cmxzGCMgAygLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5GaW5hbEFwcFVybBIZChFmaW5hbF9tb2JpbGVfdXJscxgqIAMo", - "CRIiChV0cmFja2luZ191cmxfdGVtcGxhdGUYKyABKAlIAogBARIdChBmaW5h", - "bF91cmxfc3VmZml4GCwgASgJSAOIAQESTwoVdXJsX2N1c3RvbV9wYXJhbWV0", - "ZXJzGAogAygLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5D", - "dXN0b21QYXJhbWV0ZXISGAoLZGlzcGxheV91cmwYLSABKAlIBIgBARJECgR0", - "eXBlGAUgASgOMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFk", - "VHlwZUVudW0uQWRUeXBlQgPgQQMSJQoTYWRkZWRfYnlfZ29vZ2xlX2Fkcxgu", - "IAEoCEID4EEDSAWIAQESTAoRZGV2aWNlX3ByZWZlcmVuY2UYFCABKA4yMS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRGV2aWNlRW51bS5EZXZp", - "Y2USRwoPdXJsX2NvbGxlY3Rpb25zGBogAygLMi4uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5VcmxDb2xsZWN0aW9uEhYKBG5hbWUYLyABKAlC", - "A+BBBUgGiAEBEogBCh5zeXN0ZW1fbWFuYWdlZF9yZXNvdXJjZV9zb3VyY2UY", - "GyABKA4yWy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuU3lzdGVt", - "TWFuYWdlZFJlc291cmNlU291cmNlRW51bS5TeXN0ZW1NYW5hZ2VkUmVzb3Vy", - "Y2VTb3VyY2VCA+BBAxJDCgd0ZXh0X2FkGAYgASgLMisuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmNvbW1vbi5UZXh0QWRJbmZvQgPgQQVIABJPChBleHBh", - "bmRlZF90ZXh0X2FkGAcgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5FeHBhbmRlZFRleHRBZEluZm9IABI+CgdjYWxsX2FkGDEgASgL", - "MisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DYWxsQWRJbmZv", - "SAASZwoaZXhwYW5kZWRfZHluYW1pY19zZWFyY2hfYWQYDiABKAsyPC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkV4cGFuZGVkRHluYW1pY1Nl", - "YXJjaEFkSW5mb0ID4EEFSAASQAoIaG90ZWxfYWQYDyABKAsyLC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkhvdGVsQWRJbmZvSAASUQoRc2hv", - "cHBpbmdfc21hcnRfYWQYESABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLlNob3BwaW5nU21hcnRBZEluZm9IABJVChNzaG9wcGluZ19w", - "cm9kdWN0X2FkGBIgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5TaG9wcGluZ1Byb2R1Y3RBZEluZm9IABJFCghpbWFnZV9hZBgWIAEo", - "CzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uSW1hZ2VBZElu", - "Zm9CA+BBBUgAEkAKCHZpZGVvX2FkGBggASgLMiwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5WaWRlb0FkSW5mb0gAElUKE3ZpZGVvX3Jlc3Bv", - "bnNpdmVfYWQYJyABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLlZpZGVvUmVzcG9uc2l2ZUFkSW5mb0gAElcKFHJlc3BvbnNpdmVfc2Vh", - "cmNoX2FkGBkgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5SZXNwb25zaXZlU2VhcmNoQWRJbmZvSAASZgocbGVnYWN5X3Jlc3BvbnNp", - "dmVfZGlzcGxheV9hZBgcIAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uTGVnYWN5UmVzcG9uc2l2ZURpc3BsYXlBZEluZm9IABI8CgZh", - "cHBfYWQYHSABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LkFwcEFkSW5mb0gAEl0KFWxlZ2FjeV9hcHBfaW5zdGFsbF9hZBgeIAEoCzI3", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uTGVnYWN5QXBwSW5z", - "dGFsbEFkSW5mb0ID4EEFSAASWQoVcmVzcG9uc2l2ZV9kaXNwbGF5X2FkGB8g", - "ASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5SZXNwb25z", - "aXZlRGlzcGxheUFkSW5mb0gAEkAKCGxvY2FsX2FkGCAgASgLMiwuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Mb2NhbEFkSW5mb0gAElEKEWRp", - "c3BsYXlfdXBsb2FkX2FkGCEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5EaXNwbGF5VXBsb2FkQWRJbmZvSAASUQoRYXBwX2VuZ2Fn", - "ZW1lbnRfYWQYIiABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLkFwcEVuZ2FnZW1lbnRBZEluZm9IABJqCh5zaG9wcGluZ19jb21wYXJp", - "c29uX2xpc3RpbmdfYWQYJCABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLlNob3BwaW5nQ29tcGFyaXNvbkxpc3RpbmdBZEluZm9IABJR", - "ChFzbWFydF9jYW1wYWlnbl9hZBgwIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24uU21hcnRDYW1wYWlnbkFkSW5mb0gAElwKF2FwcF9w", - "cmVfcmVnaXN0cmF0aW9uX2FkGDIgASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmNvbW1vbi5BcHBQcmVSZWdpc3RyYXRpb25BZEluZm9IABJeChhk", - "aXNjb3ZlcnlfbXVsdGlfYXNzZXRfYWQYMyABKAsyOi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLkRpc2NvdmVyeU11bHRpQXNzZXRBZEluZm9I", - "ABJZChVkaXNjb3ZlcnlfY2Fyb3VzZWxfYWQYNCABKAsyOC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLkRpc2NvdmVyeUNhcm91c2VsQWRJbmZv", - "SAA6RepBQgobZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkEiNjdXN0b21l", - "cnMve2N1c3RvbWVyX2lkfS9hZHMve2FkX2lkfUIJCgdhZF9kYXRhQgUKA19p", - "ZEIYChZfdHJhY2tpbmdfdXJsX3RlbXBsYXRlQhMKEV9maW5hbF91cmxfc3Vm", - "Zml4Qg4KDF9kaXNwbGF5X3VybEIWChRfYWRkZWRfYnlfZ29vZ2xlX2Fkc0IH", - "CgVfbmFtZUL5AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXNCB0FkUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3Vy", - "Y2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNl", - "c8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.FinalAppUrlReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.UrlCollectionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SystemManagedEntitySourceReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Ad), global::Google.Ads.GoogleAds.V12.Resources.Ad.Parser, new[]{ "ResourceName", "Id", "FinalUrls", "FinalAppUrls", "FinalMobileUrls", "TrackingUrlTemplate", "FinalUrlSuffix", "UrlCustomParameters", "DisplayUrl", "Type", "AddedByGoogleAds", "DevicePreference", "UrlCollections", "Name", "SystemManagedResourceSource", "TextAd", "ExpandedTextAd", "CallAd", "ExpandedDynamicSearchAd", "HotelAd", "ShoppingSmartAd", "ShoppingProductAd", "ImageAd", "VideoAd", "VideoResponsiveAd", "ResponsiveSearchAd", "LegacyResponsiveDisplayAd", "AppAd", "LegacyAppInstallAd", "ResponsiveDisplayAd", "LocalAd", "DisplayUploadAd", "AppEngagementAd", "ShoppingComparisonListingAd", "SmartCampaignAd", "AppPreRegistrationAd", "DiscoveryMultiAssetAd", "DiscoveryCarouselAd" }, new[]{ "AdData", "Id", "TrackingUrlTemplate", "FinalUrlSuffix", "DisplayUrl", "AddedByGoogleAds", "Name" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad. - /// - public sealed partial class Ad : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Ad()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Ad() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Ad(Ad other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - finalUrls_ = other.finalUrls_.Clone(); - finalAppUrls_ = other.finalAppUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - trackingUrlTemplate_ = other.trackingUrlTemplate_; - finalUrlSuffix_ = other.finalUrlSuffix_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - displayUrl_ = other.displayUrl_; - type_ = other.type_; - addedByGoogleAds_ = other.addedByGoogleAds_; - devicePreference_ = other.devicePreference_; - urlCollections_ = other.urlCollections_.Clone(); - name_ = other.name_; - systemManagedResourceSource_ = other.systemManagedResourceSource_; - switch (other.AdDataCase) { - case AdDataOneofCase.TextAd: - TextAd = other.TextAd.Clone(); - break; - case AdDataOneofCase.ExpandedTextAd: - ExpandedTextAd = other.ExpandedTextAd.Clone(); - break; - case AdDataOneofCase.CallAd: - CallAd = other.CallAd.Clone(); - break; - case AdDataOneofCase.ExpandedDynamicSearchAd: - ExpandedDynamicSearchAd = other.ExpandedDynamicSearchAd.Clone(); - break; - case AdDataOneofCase.HotelAd: - HotelAd = other.HotelAd.Clone(); - break; - case AdDataOneofCase.ShoppingSmartAd: - ShoppingSmartAd = other.ShoppingSmartAd.Clone(); - break; - case AdDataOneofCase.ShoppingProductAd: - ShoppingProductAd = other.ShoppingProductAd.Clone(); - break; - case AdDataOneofCase.ImageAd: - ImageAd = other.ImageAd.Clone(); - break; - case AdDataOneofCase.VideoAd: - VideoAd = other.VideoAd.Clone(); - break; - case AdDataOneofCase.VideoResponsiveAd: - VideoResponsiveAd = other.VideoResponsiveAd.Clone(); - break; - case AdDataOneofCase.ResponsiveSearchAd: - ResponsiveSearchAd = other.ResponsiveSearchAd.Clone(); - break; - case AdDataOneofCase.LegacyResponsiveDisplayAd: - LegacyResponsiveDisplayAd = other.LegacyResponsiveDisplayAd.Clone(); - break; - case AdDataOneofCase.AppAd: - AppAd = other.AppAd.Clone(); - break; - case AdDataOneofCase.LegacyAppInstallAd: - LegacyAppInstallAd = other.LegacyAppInstallAd.Clone(); - break; - case AdDataOneofCase.ResponsiveDisplayAd: - ResponsiveDisplayAd = other.ResponsiveDisplayAd.Clone(); - break; - case AdDataOneofCase.LocalAd: - LocalAd = other.LocalAd.Clone(); - break; - case AdDataOneofCase.DisplayUploadAd: - DisplayUploadAd = other.DisplayUploadAd.Clone(); - break; - case AdDataOneofCase.AppEngagementAd: - AppEngagementAd = other.AppEngagementAd.Clone(); - break; - case AdDataOneofCase.ShoppingComparisonListingAd: - ShoppingComparisonListingAd = other.ShoppingComparisonListingAd.Clone(); - break; - case AdDataOneofCase.SmartCampaignAd: - SmartCampaignAd = other.SmartCampaignAd.Clone(); - break; - case AdDataOneofCase.AppPreRegistrationAd: - AppPreRegistrationAd = other.AppPreRegistrationAd.Clone(); - break; - case AdDataOneofCase.DiscoveryMultiAssetAd: - DiscoveryMultiAssetAd = other.DiscoveryMultiAssetAd.Clone(); - break; - case AdDataOneofCase.DiscoveryCarouselAd: - DiscoveryCarouselAd = other.DiscoveryCarouselAd.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Ad Clone() { - return new Ad(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 37; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad. - /// Ad resource names have the form: - /// - /// `customers/{customer_id}/ads/{ad_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 40; - private long id_; - /// - /// Output only. The ID of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 41; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(330); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// The list of possible final URLs after all cross-domain redirects for the - /// ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_app_urls" field. - public const int FinalAppUrlsFieldNumber = 35; - private static readonly pb::FieldCodec _repeated_finalAppUrls_codec - = pb::FieldCodec.ForMessage(282, global::Google.Ads.GoogleAds.V12.Common.FinalAppUrl.Parser); - private readonly pbc::RepeatedField finalAppUrls_ = new pbc::RepeatedField(); - /// - /// A list of final app URLs that will be used on mobile if the user has the - /// specific app installed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalAppUrls { - get { return finalAppUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 42; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(338); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// The list of possible final mobile URLs after all cross-domain redirects - /// for the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 43; - private string trackingUrlTemplate_; - /// - /// The URL template for constructing a tracking URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 44; - private string finalUrlSuffix_; - /// - /// The suffix to use when constructing a final URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(82, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// The list of mappings that can be used to substitute custom parameter tags - /// in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - /// For mutates, use url custom parameter operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "display_url" field. - public const int DisplayUrlFieldNumber = 45; - private string displayUrl_; - /// - /// The URL that appears in the ad description for some ad formats. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayUrl { - get { return displayUrl_ ?? ""; } - set { - displayUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "display_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDisplayUrl { - get { return displayUrl_ != null; } - } - /// Clears the value of the "display_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDisplayUrl() { - displayUrl_ = null; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType type_ = global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType.Unspecified; - /// - /// Output only. The type of ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "added_by_google_ads" field. - public const int AddedByGoogleAdsFieldNumber = 46; - private bool addedByGoogleAds_; - /// - /// Output only. Indicates if this ad was automatically added by Google Ads and not by a - /// user. For example, this could happen when ads are automatically created as - /// suggestions for new ads based on knowledge of how existing ads are - /// performing. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AddedByGoogleAds { - get { if ((_hasBits0 & 2) != 0) { return addedByGoogleAds_; } else { return false; } } - set { - _hasBits0 |= 2; - addedByGoogleAds_ = value; - } - } - /// Gets whether the "added_by_google_ads" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAddedByGoogleAds { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "added_by_google_ads" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAddedByGoogleAds() { - _hasBits0 &= ~2; - } - - /// Field number for the "device_preference" field. - public const int DevicePreferenceFieldNumber = 20; - private global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device devicePreference_ = global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified; - /// - /// The device preference for the ad. You can only specify a preference for - /// mobile devices. When this preference is set the ad will be preferred over - /// other ads when being displayed on a mobile device. The ad can still be - /// displayed on other device types, for example, if no other ads are - /// available. If unspecified (no device preference), all devices are targeted. - /// This is only supported by some ad types. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device DevicePreference { - get { return devicePreference_; } - set { - devicePreference_ = value; - } - } - - /// Field number for the "url_collections" field. - public const int UrlCollectionsFieldNumber = 26; - private static readonly pb::FieldCodec _repeated_urlCollections_codec - = pb::FieldCodec.ForMessage(210, global::Google.Ads.GoogleAds.V12.Common.UrlCollection.Parser); - private readonly pbc::RepeatedField urlCollections_ = new pbc::RepeatedField(); - /// - /// Additional URLs for the ad that are tagged with a unique identifier that - /// can be referenced from other fields in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCollections { - get { return urlCollections_; } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 47; - private string name_; - /// - /// Immutable. The name of the ad. This is only used to be able to identify the ad. It - /// does not need to be unique and does not affect the served ad. The name - /// field is currently only supported for DisplayUploadAd, ImageAd, - /// ShoppingComparisonListingAd and VideoAd. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "system_managed_resource_source" field. - public const int SystemManagedResourceSourceFieldNumber = 27; - private global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource systemManagedResourceSource_ = global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.Unspecified; - /// - /// Output only. If this ad is system managed, then this field will indicate the source. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource SystemManagedResourceSource { - get { return systemManagedResourceSource_; } - set { - systemManagedResourceSource_ = value; - } - } - - /// Field number for the "text_ad" field. - public const int TextAdFieldNumber = 6; - /// - /// Immutable. Details pertaining to a text ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TextAdInfo TextAd { - get { return adDataCase_ == AdDataOneofCase.TextAd ? (global::Google.Ads.GoogleAds.V12.Common.TextAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.TextAd; - } - } - - /// Field number for the "expanded_text_ad" field. - public const int ExpandedTextAdFieldNumber = 7; - /// - /// Details pertaining to an expanded text ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo ExpandedTextAd { - get { return adDataCase_ == AdDataOneofCase.ExpandedTextAd ? (global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ExpandedTextAd; - } - } - - /// Field number for the "call_ad" field. - public const int CallAdFieldNumber = 49; - /// - /// Details pertaining to a call ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CallAdInfo CallAd { - get { return adDataCase_ == AdDataOneofCase.CallAd ? (global::Google.Ads.GoogleAds.V12.Common.CallAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.CallAd; - } - } - - /// Field number for the "expanded_dynamic_search_ad" field. - public const int ExpandedDynamicSearchAdFieldNumber = 14; - /// - /// Immutable. Details pertaining to an Expanded Dynamic Search Ad. - /// This type of ad has its headline, final URLs, and display URL - /// auto-generated at serving time according to domain name specific - /// information provided by `dynamic_search_ads_setting` linked at the - /// campaign level. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo ExpandedDynamicSearchAd { - get { return adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd ? (global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ExpandedDynamicSearchAd; - } - } - - /// Field number for the "hotel_ad" field. - public const int HotelAdFieldNumber = 15; - /// - /// Details pertaining to a hotel ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo HotelAd { - get { return adDataCase_ == AdDataOneofCase.HotelAd ? (global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.HotelAd; - } - } - - /// Field number for the "shopping_smart_ad" field. - public const int ShoppingSmartAdFieldNumber = 17; - /// - /// Details pertaining to a Smart Shopping ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo ShoppingSmartAd { - get { return adDataCase_ == AdDataOneofCase.ShoppingSmartAd ? (global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ShoppingSmartAd; - } - } - - /// Field number for the "shopping_product_ad" field. - public const int ShoppingProductAdFieldNumber = 18; - /// - /// Details pertaining to a Shopping product ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo ShoppingProductAd { - get { return adDataCase_ == AdDataOneofCase.ShoppingProductAd ? (global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ShoppingProductAd; - } - } - - /// Field number for the "image_ad" field. - public const int ImageAdFieldNumber = 22; - /// - /// Immutable. Details pertaining to an Image ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo ImageAd { - get { return adDataCase_ == AdDataOneofCase.ImageAd ? (global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ImageAd; - } - } - - /// Field number for the "video_ad" field. - public const int VideoAdFieldNumber = 24; - /// - /// Details pertaining to a Video ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo VideoAd { - get { return adDataCase_ == AdDataOneofCase.VideoAd ? (global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.VideoAd; - } - } - - /// Field number for the "video_responsive_ad" field. - public const int VideoResponsiveAdFieldNumber = 39; - /// - /// Details pertaining to a Video responsive ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo VideoResponsiveAd { - get { return adDataCase_ == AdDataOneofCase.VideoResponsiveAd ? (global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.VideoResponsiveAd; - } - } - - /// Field number for the "responsive_search_ad" field. - public const int ResponsiveSearchAdFieldNumber = 25; - /// - /// Details pertaining to a responsive search ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo ResponsiveSearchAd { - get { return adDataCase_ == AdDataOneofCase.ResponsiveSearchAd ? (global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ResponsiveSearchAd; - } - } - - /// Field number for the "legacy_responsive_display_ad" field. - public const int LegacyResponsiveDisplayAdFieldNumber = 28; - /// - /// Details pertaining to a legacy responsive display ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo LegacyResponsiveDisplayAd { - get { return adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd ? (global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.LegacyResponsiveDisplayAd; - } - } - - /// Field number for the "app_ad" field. - public const int AppAdFieldNumber = 29; - /// - /// Details pertaining to an app ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AppAdInfo AppAd { - get { return adDataCase_ == AdDataOneofCase.AppAd ? (global::Google.Ads.GoogleAds.V12.Common.AppAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.AppAd; - } - } - - /// Field number for the "legacy_app_install_ad" field. - public const int LegacyAppInstallAdFieldNumber = 30; - /// - /// Immutable. Details pertaining to a legacy app install ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo LegacyAppInstallAd { - get { return adDataCase_ == AdDataOneofCase.LegacyAppInstallAd ? (global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.LegacyAppInstallAd; - } - } - - /// Field number for the "responsive_display_ad" field. - public const int ResponsiveDisplayAdFieldNumber = 31; - /// - /// Details pertaining to a responsive display ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo ResponsiveDisplayAd { - get { return adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd ? (global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ResponsiveDisplayAd; - } - } - - /// Field number for the "local_ad" field. - public const int LocalAdFieldNumber = 32; - /// - /// Details pertaining to a local ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo LocalAd { - get { return adDataCase_ == AdDataOneofCase.LocalAd ? (global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.LocalAd; - } - } - - /// Field number for the "display_upload_ad" field. - public const int DisplayUploadAdFieldNumber = 33; - /// - /// Details pertaining to a display upload ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo DisplayUploadAd { - get { return adDataCase_ == AdDataOneofCase.DisplayUploadAd ? (global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.DisplayUploadAd; - } - } - - /// Field number for the "app_engagement_ad" field. - public const int AppEngagementAdFieldNumber = 34; - /// - /// Details pertaining to an app engagement ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo AppEngagementAd { - get { return adDataCase_ == AdDataOneofCase.AppEngagementAd ? (global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.AppEngagementAd; - } - } - - /// Field number for the "shopping_comparison_listing_ad" field. - public const int ShoppingComparisonListingAdFieldNumber = 36; - /// - /// Details pertaining to a Shopping Comparison Listing ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo ShoppingComparisonListingAd { - get { return adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd ? (global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.ShoppingComparisonListingAd; - } - } - - /// Field number for the "smart_campaign_ad" field. - public const int SmartCampaignAdFieldNumber = 48; - /// - /// Details pertaining to a Smart campaign ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo SmartCampaignAd { - get { return adDataCase_ == AdDataOneofCase.SmartCampaignAd ? (global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.SmartCampaignAd; - } - } - - /// Field number for the "app_pre_registration_ad" field. - public const int AppPreRegistrationAdFieldNumber = 50; - /// - /// Details pertaining to an app pre-registration ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo AppPreRegistrationAd { - get { return adDataCase_ == AdDataOneofCase.AppPreRegistrationAd ? (global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.AppPreRegistrationAd; - } - } - - /// Field number for the "discovery_multi_asset_ad" field. - public const int DiscoveryMultiAssetAdFieldNumber = 51; - /// - /// Details pertaining to a discovery multi asset ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo DiscoveryMultiAssetAd { - get { return adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd ? (global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.DiscoveryMultiAssetAd; - } - } - - /// Field number for the "discovery_carousel_ad" field. - public const int DiscoveryCarouselAdFieldNumber = 52; - /// - /// Details pertaining to a discovery carousel ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo DiscoveryCarouselAd { - get { return adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd ? (global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo) adData_ : null; } - set { - adData_ = value; - adDataCase_ = value == null ? AdDataOneofCase.None : AdDataOneofCase.DiscoveryCarouselAd; - } - } - - private object adData_; - /// Enum of possible cases for the "ad_data" oneof. - public enum AdDataOneofCase { - None = 0, - TextAd = 6, - ExpandedTextAd = 7, - CallAd = 49, - ExpandedDynamicSearchAd = 14, - HotelAd = 15, - ShoppingSmartAd = 17, - ShoppingProductAd = 18, - ImageAd = 22, - VideoAd = 24, - VideoResponsiveAd = 39, - ResponsiveSearchAd = 25, - LegacyResponsiveDisplayAd = 28, - AppAd = 29, - LegacyAppInstallAd = 30, - ResponsiveDisplayAd = 31, - LocalAd = 32, - DisplayUploadAd = 33, - AppEngagementAd = 34, - ShoppingComparisonListingAd = 36, - SmartCampaignAd = 48, - AppPreRegistrationAd = 50, - DiscoveryMultiAssetAd = 51, - DiscoveryCarouselAd = 52, - } - private AdDataOneofCase adDataCase_ = AdDataOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdDataOneofCase AdDataCase { - get { return adDataCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdData() { - adDataCase_ = AdDataOneofCase.None; - adData_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Ad); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Ad other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalAppUrls_.Equals(other.finalAppUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (DisplayUrl != other.DisplayUrl) return false; - if (Type != other.Type) return false; - if (AddedByGoogleAds != other.AddedByGoogleAds) return false; - if (DevicePreference != other.DevicePreference) return false; - if(!urlCollections_.Equals(other.urlCollections_)) return false; - if (Name != other.Name) return false; - if (SystemManagedResourceSource != other.SystemManagedResourceSource) return false; - if (!object.Equals(TextAd, other.TextAd)) return false; - if (!object.Equals(ExpandedTextAd, other.ExpandedTextAd)) return false; - if (!object.Equals(CallAd, other.CallAd)) return false; - if (!object.Equals(ExpandedDynamicSearchAd, other.ExpandedDynamicSearchAd)) return false; - if (!object.Equals(HotelAd, other.HotelAd)) return false; - if (!object.Equals(ShoppingSmartAd, other.ShoppingSmartAd)) return false; - if (!object.Equals(ShoppingProductAd, other.ShoppingProductAd)) return false; - if (!object.Equals(ImageAd, other.ImageAd)) return false; - if (!object.Equals(VideoAd, other.VideoAd)) return false; - if (!object.Equals(VideoResponsiveAd, other.VideoResponsiveAd)) return false; - if (!object.Equals(ResponsiveSearchAd, other.ResponsiveSearchAd)) return false; - if (!object.Equals(LegacyResponsiveDisplayAd, other.LegacyResponsiveDisplayAd)) return false; - if (!object.Equals(AppAd, other.AppAd)) return false; - if (!object.Equals(LegacyAppInstallAd, other.LegacyAppInstallAd)) return false; - if (!object.Equals(ResponsiveDisplayAd, other.ResponsiveDisplayAd)) return false; - if (!object.Equals(LocalAd, other.LocalAd)) return false; - if (!object.Equals(DisplayUploadAd, other.DisplayUploadAd)) return false; - if (!object.Equals(AppEngagementAd, other.AppEngagementAd)) return false; - if (!object.Equals(ShoppingComparisonListingAd, other.ShoppingComparisonListingAd)) return false; - if (!object.Equals(SmartCampaignAd, other.SmartCampaignAd)) return false; - if (!object.Equals(AppPreRegistrationAd, other.AppPreRegistrationAd)) return false; - if (!object.Equals(DiscoveryMultiAssetAd, other.DiscoveryMultiAssetAd)) return false; - if (!object.Equals(DiscoveryCarouselAd, other.DiscoveryCarouselAd)) return false; - if (AdDataCase != other.AdDataCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalAppUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (HasDisplayUrl) hash ^= DisplayUrl.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType.Unspecified) hash ^= Type.GetHashCode(); - if (HasAddedByGoogleAds) hash ^= AddedByGoogleAds.GetHashCode(); - if (DevicePreference != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) hash ^= DevicePreference.GetHashCode(); - hash ^= urlCollections_.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (SystemManagedResourceSource != global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.Unspecified) hash ^= SystemManagedResourceSource.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.TextAd) hash ^= TextAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ExpandedTextAd) hash ^= ExpandedTextAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.CallAd) hash ^= CallAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) hash ^= ExpandedDynamicSearchAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.HotelAd) hash ^= HotelAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) hash ^= ShoppingSmartAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) hash ^= ShoppingProductAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ImageAd) hash ^= ImageAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.VideoAd) hash ^= VideoAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.VideoResponsiveAd) hash ^= VideoResponsiveAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ResponsiveSearchAd) hash ^= ResponsiveSearchAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) hash ^= LegacyResponsiveDisplayAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.AppAd) hash ^= AppAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) hash ^= LegacyAppInstallAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) hash ^= ResponsiveDisplayAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.LocalAd) hash ^= LocalAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) hash ^= DisplayUploadAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.AppEngagementAd) hash ^= AppEngagementAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd) hash ^= ShoppingComparisonListingAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) hash ^= SmartCampaignAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) hash ^= AppPreRegistrationAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) hash ^= DiscoveryMultiAssetAd.GetHashCode(); - if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) hash ^= DiscoveryCarouselAd.GetHashCode(); - hash ^= (int) adDataCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (adDataCase_ == AdDataOneofCase.TextAd) { - output.WriteRawTag(50); - output.WriteMessage(TextAd); - } - if (adDataCase_ == AdDataOneofCase.ExpandedTextAd) { - output.WriteRawTag(58); - output.WriteMessage(ExpandedTextAd); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) { - output.WriteRawTag(114); - output.WriteMessage(ExpandedDynamicSearchAd); - } - if (adDataCase_ == AdDataOneofCase.HotelAd) { - output.WriteRawTag(122); - output.WriteMessage(HotelAd); - } - if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) { - output.WriteRawTag(138, 1); - output.WriteMessage(ShoppingSmartAd); - } - if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) { - output.WriteRawTag(146, 1); - output.WriteMessage(ShoppingProductAd); - } - if (DevicePreference != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) DevicePreference); - } - if (adDataCase_ == AdDataOneofCase.ImageAd) { - output.WriteRawTag(178, 1); - output.WriteMessage(ImageAd); - } - if (adDataCase_ == AdDataOneofCase.VideoAd) { - output.WriteRawTag(194, 1); - output.WriteMessage(VideoAd); - } - if (adDataCase_ == AdDataOneofCase.ResponsiveSearchAd) { - output.WriteRawTag(202, 1); - output.WriteMessage(ResponsiveSearchAd); - } - urlCollections_.WriteTo(output, _repeated_urlCollections_codec); - if (SystemManagedResourceSource != global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.Unspecified) { - output.WriteRawTag(216, 1); - output.WriteEnum((int) SystemManagedResourceSource); - } - if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) { - output.WriteRawTag(226, 1); - output.WriteMessage(LegacyResponsiveDisplayAd); - } - if (adDataCase_ == AdDataOneofCase.AppAd) { - output.WriteRawTag(234, 1); - output.WriteMessage(AppAd); - } - if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) { - output.WriteRawTag(242, 1); - output.WriteMessage(LegacyAppInstallAd); - } - if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) { - output.WriteRawTag(250, 1); - output.WriteMessage(ResponsiveDisplayAd); - } - if (adDataCase_ == AdDataOneofCase.LocalAd) { - output.WriteRawTag(130, 2); - output.WriteMessage(LocalAd); - } - if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) { - output.WriteRawTag(138, 2); - output.WriteMessage(DisplayUploadAd); - } - if (adDataCase_ == AdDataOneofCase.AppEngagementAd) { - output.WriteRawTag(146, 2); - output.WriteMessage(AppEngagementAd); - } - finalAppUrls_.WriteTo(output, _repeated_finalAppUrls_codec); - if (adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd) { - output.WriteRawTag(162, 2); - output.WriteMessage(ShoppingComparisonListingAd); - } - if (ResourceName.Length != 0) { - output.WriteRawTag(170, 2); - output.WriteString(ResourceName); - } - if (adDataCase_ == AdDataOneofCase.VideoResponsiveAd) { - output.WriteRawTag(186, 2); - output.WriteMessage(VideoResponsiveAd); - } - if (HasId) { - output.WriteRawTag(192, 2); - output.WriteInt64(Id); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(218, 2); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(226, 2); - output.WriteString(FinalUrlSuffix); - } - if (HasDisplayUrl) { - output.WriteRawTag(234, 2); - output.WriteString(DisplayUrl); - } - if (HasAddedByGoogleAds) { - output.WriteRawTag(240, 2); - output.WriteBool(AddedByGoogleAds); - } - if (HasName) { - output.WriteRawTag(250, 2); - output.WriteString(Name); - } - if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) { - output.WriteRawTag(130, 3); - output.WriteMessage(SmartCampaignAd); - } - if (adDataCase_ == AdDataOneofCase.CallAd) { - output.WriteRawTag(138, 3); - output.WriteMessage(CallAd); - } - if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) { - output.WriteRawTag(146, 3); - output.WriteMessage(AppPreRegistrationAd); - } - if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) { - output.WriteRawTag(154, 3); - output.WriteMessage(DiscoveryMultiAssetAd); - } - if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) { - output.WriteRawTag(162, 3); - output.WriteMessage(DiscoveryCarouselAd); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (adDataCase_ == AdDataOneofCase.TextAd) { - output.WriteRawTag(50); - output.WriteMessage(TextAd); - } - if (adDataCase_ == AdDataOneofCase.ExpandedTextAd) { - output.WriteRawTag(58); - output.WriteMessage(ExpandedTextAd); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) { - output.WriteRawTag(114); - output.WriteMessage(ExpandedDynamicSearchAd); - } - if (adDataCase_ == AdDataOneofCase.HotelAd) { - output.WriteRawTag(122); - output.WriteMessage(HotelAd); - } - if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) { - output.WriteRawTag(138, 1); - output.WriteMessage(ShoppingSmartAd); - } - if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) { - output.WriteRawTag(146, 1); - output.WriteMessage(ShoppingProductAd); - } - if (DevicePreference != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) DevicePreference); - } - if (adDataCase_ == AdDataOneofCase.ImageAd) { - output.WriteRawTag(178, 1); - output.WriteMessage(ImageAd); - } - if (adDataCase_ == AdDataOneofCase.VideoAd) { - output.WriteRawTag(194, 1); - output.WriteMessage(VideoAd); - } - if (adDataCase_ == AdDataOneofCase.ResponsiveSearchAd) { - output.WriteRawTag(202, 1); - output.WriteMessage(ResponsiveSearchAd); - } - urlCollections_.WriteTo(ref output, _repeated_urlCollections_codec); - if (SystemManagedResourceSource != global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.Unspecified) { - output.WriteRawTag(216, 1); - output.WriteEnum((int) SystemManagedResourceSource); - } - if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) { - output.WriteRawTag(226, 1); - output.WriteMessage(LegacyResponsiveDisplayAd); - } - if (adDataCase_ == AdDataOneofCase.AppAd) { - output.WriteRawTag(234, 1); - output.WriteMessage(AppAd); - } - if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) { - output.WriteRawTag(242, 1); - output.WriteMessage(LegacyAppInstallAd); - } - if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) { - output.WriteRawTag(250, 1); - output.WriteMessage(ResponsiveDisplayAd); - } - if (adDataCase_ == AdDataOneofCase.LocalAd) { - output.WriteRawTag(130, 2); - output.WriteMessage(LocalAd); - } - if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) { - output.WriteRawTag(138, 2); - output.WriteMessage(DisplayUploadAd); - } - if (adDataCase_ == AdDataOneofCase.AppEngagementAd) { - output.WriteRawTag(146, 2); - output.WriteMessage(AppEngagementAd); - } - finalAppUrls_.WriteTo(ref output, _repeated_finalAppUrls_codec); - if (adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd) { - output.WriteRawTag(162, 2); - output.WriteMessage(ShoppingComparisonListingAd); - } - if (ResourceName.Length != 0) { - output.WriteRawTag(170, 2); - output.WriteString(ResourceName); - } - if (adDataCase_ == AdDataOneofCase.VideoResponsiveAd) { - output.WriteRawTag(186, 2); - output.WriteMessage(VideoResponsiveAd); - } - if (HasId) { - output.WriteRawTag(192, 2); - output.WriteInt64(Id); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(218, 2); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(226, 2); - output.WriteString(FinalUrlSuffix); - } - if (HasDisplayUrl) { - output.WriteRawTag(234, 2); - output.WriteString(DisplayUrl); - } - if (HasAddedByGoogleAds) { - output.WriteRawTag(240, 2); - output.WriteBool(AddedByGoogleAds); - } - if (HasName) { - output.WriteRawTag(250, 2); - output.WriteString(Name); - } - if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) { - output.WriteRawTag(130, 3); - output.WriteMessage(SmartCampaignAd); - } - if (adDataCase_ == AdDataOneofCase.CallAd) { - output.WriteRawTag(138, 3); - output.WriteMessage(CallAd); - } - if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) { - output.WriteRawTag(146, 3); - output.WriteMessage(AppPreRegistrationAd); - } - if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) { - output.WriteRawTag(154, 3); - output.WriteMessage(DiscoveryMultiAssetAd); - } - if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) { - output.WriteRawTag(162, 3); - output.WriteMessage(DiscoveryCarouselAd); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalAppUrls_.CalculateSize(_repeated_finalAppUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (HasDisplayUrl) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(DisplayUrl); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (HasAddedByGoogleAds) { - size += 2 + 1; - } - if (DevicePreference != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DevicePreference); - } - size += urlCollections_.CalculateSize(_repeated_urlCollections_codec); - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (SystemManagedResourceSource != global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SystemManagedResourceSource); - } - if (adDataCase_ == AdDataOneofCase.TextAd) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextAd); - } - if (adDataCase_ == AdDataOneofCase.ExpandedTextAd) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpandedTextAd); - } - if (adDataCase_ == AdDataOneofCase.CallAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CallAd); - } - if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpandedDynamicSearchAd); - } - if (adDataCase_ == AdDataOneofCase.HotelAd) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelAd); - } - if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShoppingSmartAd); - } - if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShoppingProductAd); - } - if (adDataCase_ == AdDataOneofCase.ImageAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ImageAd); - } - if (adDataCase_ == AdDataOneofCase.VideoAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(VideoAd); - } - if (adDataCase_ == AdDataOneofCase.VideoResponsiveAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(VideoResponsiveAd); - } - if (adDataCase_ == AdDataOneofCase.ResponsiveSearchAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ResponsiveSearchAd); - } - if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LegacyResponsiveDisplayAd); - } - if (adDataCase_ == AdDataOneofCase.AppAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AppAd); - } - if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LegacyAppInstallAd); - } - if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ResponsiveDisplayAd); - } - if (adDataCase_ == AdDataOneofCase.LocalAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocalAd); - } - if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DisplayUploadAd); - } - if (adDataCase_ == AdDataOneofCase.AppEngagementAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AppEngagementAd); - } - if (adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShoppingComparisonListingAd); - } - if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SmartCampaignAd); - } - if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AppPreRegistrationAd); - } - if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DiscoveryMultiAssetAd); - } - if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DiscoveryCarouselAd); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Ad other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - finalUrls_.Add(other.finalUrls_); - finalAppUrls_.Add(other.finalAppUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.HasDisplayUrl) { - DisplayUrl = other.DisplayUrl; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType.Unspecified) { - Type = other.Type; - } - if (other.HasAddedByGoogleAds) { - AddedByGoogleAds = other.AddedByGoogleAds; - } - if (other.DevicePreference != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - DevicePreference = other.DevicePreference; - } - urlCollections_.Add(other.urlCollections_); - if (other.HasName) { - Name = other.Name; - } - if (other.SystemManagedResourceSource != global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.Unspecified) { - SystemManagedResourceSource = other.SystemManagedResourceSource; - } - switch (other.AdDataCase) { - case AdDataOneofCase.TextAd: - if (TextAd == null) { - TextAd = new global::Google.Ads.GoogleAds.V12.Common.TextAdInfo(); - } - TextAd.MergeFrom(other.TextAd); - break; - case AdDataOneofCase.ExpandedTextAd: - if (ExpandedTextAd == null) { - ExpandedTextAd = new global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo(); - } - ExpandedTextAd.MergeFrom(other.ExpandedTextAd); - break; - case AdDataOneofCase.CallAd: - if (CallAd == null) { - CallAd = new global::Google.Ads.GoogleAds.V12.Common.CallAdInfo(); - } - CallAd.MergeFrom(other.CallAd); - break; - case AdDataOneofCase.ExpandedDynamicSearchAd: - if (ExpandedDynamicSearchAd == null) { - ExpandedDynamicSearchAd = new global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo(); - } - ExpandedDynamicSearchAd.MergeFrom(other.ExpandedDynamicSearchAd); - break; - case AdDataOneofCase.HotelAd: - if (HotelAd == null) { - HotelAd = new global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo(); - } - HotelAd.MergeFrom(other.HotelAd); - break; - case AdDataOneofCase.ShoppingSmartAd: - if (ShoppingSmartAd == null) { - ShoppingSmartAd = new global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo(); - } - ShoppingSmartAd.MergeFrom(other.ShoppingSmartAd); - break; - case AdDataOneofCase.ShoppingProductAd: - if (ShoppingProductAd == null) { - ShoppingProductAd = new global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo(); - } - ShoppingProductAd.MergeFrom(other.ShoppingProductAd); - break; - case AdDataOneofCase.ImageAd: - if (ImageAd == null) { - ImageAd = new global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo(); - } - ImageAd.MergeFrom(other.ImageAd); - break; - case AdDataOneofCase.VideoAd: - if (VideoAd == null) { - VideoAd = new global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo(); - } - VideoAd.MergeFrom(other.VideoAd); - break; - case AdDataOneofCase.VideoResponsiveAd: - if (VideoResponsiveAd == null) { - VideoResponsiveAd = new global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo(); - } - VideoResponsiveAd.MergeFrom(other.VideoResponsiveAd); - break; - case AdDataOneofCase.ResponsiveSearchAd: - if (ResponsiveSearchAd == null) { - ResponsiveSearchAd = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo(); - } - ResponsiveSearchAd.MergeFrom(other.ResponsiveSearchAd); - break; - case AdDataOneofCase.LegacyResponsiveDisplayAd: - if (LegacyResponsiveDisplayAd == null) { - LegacyResponsiveDisplayAd = new global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo(); - } - LegacyResponsiveDisplayAd.MergeFrom(other.LegacyResponsiveDisplayAd); - break; - case AdDataOneofCase.AppAd: - if (AppAd == null) { - AppAd = new global::Google.Ads.GoogleAds.V12.Common.AppAdInfo(); - } - AppAd.MergeFrom(other.AppAd); - break; - case AdDataOneofCase.LegacyAppInstallAd: - if (LegacyAppInstallAd == null) { - LegacyAppInstallAd = new global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo(); - } - LegacyAppInstallAd.MergeFrom(other.LegacyAppInstallAd); - break; - case AdDataOneofCase.ResponsiveDisplayAd: - if (ResponsiveDisplayAd == null) { - ResponsiveDisplayAd = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo(); - } - ResponsiveDisplayAd.MergeFrom(other.ResponsiveDisplayAd); - break; - case AdDataOneofCase.LocalAd: - if (LocalAd == null) { - LocalAd = new global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo(); - } - LocalAd.MergeFrom(other.LocalAd); - break; - case AdDataOneofCase.DisplayUploadAd: - if (DisplayUploadAd == null) { - DisplayUploadAd = new global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo(); - } - DisplayUploadAd.MergeFrom(other.DisplayUploadAd); - break; - case AdDataOneofCase.AppEngagementAd: - if (AppEngagementAd == null) { - AppEngagementAd = new global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo(); - } - AppEngagementAd.MergeFrom(other.AppEngagementAd); - break; - case AdDataOneofCase.ShoppingComparisonListingAd: - if (ShoppingComparisonListingAd == null) { - ShoppingComparisonListingAd = new global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo(); - } - ShoppingComparisonListingAd.MergeFrom(other.ShoppingComparisonListingAd); - break; - case AdDataOneofCase.SmartCampaignAd: - if (SmartCampaignAd == null) { - SmartCampaignAd = new global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo(); - } - SmartCampaignAd.MergeFrom(other.SmartCampaignAd); - break; - case AdDataOneofCase.AppPreRegistrationAd: - if (AppPreRegistrationAd == null) { - AppPreRegistrationAd = new global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo(); - } - AppPreRegistrationAd.MergeFrom(other.AppPreRegistrationAd); - break; - case AdDataOneofCase.DiscoveryMultiAssetAd: - if (DiscoveryMultiAssetAd == null) { - DiscoveryMultiAssetAd = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo(); - } - DiscoveryMultiAssetAd.MergeFrom(other.DiscoveryMultiAssetAd); - break; - case AdDataOneofCase.DiscoveryCarouselAd: - if (DiscoveryCarouselAd == null) { - DiscoveryCarouselAd = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo(); - } - DiscoveryCarouselAd.MergeFrom(other.DiscoveryCarouselAd); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType) input.ReadEnum(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.TextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TextAdInfo(); - if (adDataCase_ == AdDataOneofCase.TextAd) { - subBuilder.MergeFrom(TextAd); - } - input.ReadMessage(subBuilder); - TextAd = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo(); - if (adDataCase_ == AdDataOneofCase.ExpandedTextAd) { - subBuilder.MergeFrom(ExpandedTextAd); - } - input.ReadMessage(subBuilder); - ExpandedTextAd = subBuilder; - break; - } - case 82: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo(); - if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) { - subBuilder.MergeFrom(ExpandedDynamicSearchAd); - } - input.ReadMessage(subBuilder); - ExpandedDynamicSearchAd = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo(); - if (adDataCase_ == AdDataOneofCase.HotelAd) { - subBuilder.MergeFrom(HotelAd); - } - input.ReadMessage(subBuilder); - HotelAd = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo(); - if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) { - subBuilder.MergeFrom(ShoppingSmartAd); - } - input.ReadMessage(subBuilder); - ShoppingSmartAd = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo(); - if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) { - subBuilder.MergeFrom(ShoppingProductAd); - } - input.ReadMessage(subBuilder); - ShoppingProductAd = subBuilder; - break; - } - case 160: { - DevicePreference = (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) input.ReadEnum(); - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo(); - if (adDataCase_ == AdDataOneofCase.ImageAd) { - subBuilder.MergeFrom(ImageAd); - } - input.ReadMessage(subBuilder); - ImageAd = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo(); - if (adDataCase_ == AdDataOneofCase.VideoAd) { - subBuilder.MergeFrom(VideoAd); - } - input.ReadMessage(subBuilder); - VideoAd = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo(); - if (adDataCase_ == AdDataOneofCase.ResponsiveSearchAd) { - subBuilder.MergeFrom(ResponsiveSearchAd); - } - input.ReadMessage(subBuilder); - ResponsiveSearchAd = subBuilder; - break; - } - case 210: { - urlCollections_.AddEntriesFrom(input, _repeated_urlCollections_codec); - break; - } - case 216: { - SystemManagedResourceSource = (global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource) input.ReadEnum(); - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo(); - if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) { - subBuilder.MergeFrom(LegacyResponsiveDisplayAd); - } - input.ReadMessage(subBuilder); - LegacyResponsiveDisplayAd = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.AppAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppAdInfo(); - if (adDataCase_ == AdDataOneofCase.AppAd) { - subBuilder.MergeFrom(AppAd); - } - input.ReadMessage(subBuilder); - AppAd = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo(); - if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) { - subBuilder.MergeFrom(LegacyAppInstallAd); - } - input.ReadMessage(subBuilder); - LegacyAppInstallAd = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo(); - if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) { - subBuilder.MergeFrom(ResponsiveDisplayAd); - } - input.ReadMessage(subBuilder); - ResponsiveDisplayAd = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo(); - if (adDataCase_ == AdDataOneofCase.LocalAd) { - subBuilder.MergeFrom(LocalAd); - } - input.ReadMessage(subBuilder); - LocalAd = subBuilder; - break; - } - case 266: { - global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo(); - if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) { - subBuilder.MergeFrom(DisplayUploadAd); - } - input.ReadMessage(subBuilder); - DisplayUploadAd = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo(); - if (adDataCase_ == AdDataOneofCase.AppEngagementAd) { - subBuilder.MergeFrom(AppEngagementAd); - } - input.ReadMessage(subBuilder); - AppEngagementAd = subBuilder; - break; - } - case 282: { - finalAppUrls_.AddEntriesFrom(input, _repeated_finalAppUrls_codec); - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo(); - if (adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd) { - subBuilder.MergeFrom(ShoppingComparisonListingAd); - } - input.ReadMessage(subBuilder); - ShoppingComparisonListingAd = subBuilder; - break; - } - case 298: { - ResourceName = input.ReadString(); - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo(); - if (adDataCase_ == AdDataOneofCase.VideoResponsiveAd) { - subBuilder.MergeFrom(VideoResponsiveAd); - } - input.ReadMessage(subBuilder); - VideoResponsiveAd = subBuilder; - break; - } - case 320: { - Id = input.ReadInt64(); - break; - } - case 330: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 338: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - case 346: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 354: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 362: { - DisplayUrl = input.ReadString(); - break; - } - case 368: { - AddedByGoogleAds = input.ReadBool(); - break; - } - case 378: { - Name = input.ReadString(); - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo(); - if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) { - subBuilder.MergeFrom(SmartCampaignAd); - } - input.ReadMessage(subBuilder); - SmartCampaignAd = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Common.CallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallAdInfo(); - if (adDataCase_ == AdDataOneofCase.CallAd) { - subBuilder.MergeFrom(CallAd); - } - input.ReadMessage(subBuilder); - CallAd = subBuilder; - break; - } - case 402: { - global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo(); - if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) { - subBuilder.MergeFrom(AppPreRegistrationAd); - } - input.ReadMessage(subBuilder); - AppPreRegistrationAd = subBuilder; - break; - } - case 410: { - global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo(); - if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) { - subBuilder.MergeFrom(DiscoveryMultiAssetAd); - } - input.ReadMessage(subBuilder); - DiscoveryMultiAssetAd = subBuilder; - break; - } - case 418: { - global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo(); - if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) { - subBuilder.MergeFrom(DiscoveryCarouselAd); - } - input.ReadMessage(subBuilder); - DiscoveryCarouselAd = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType) input.ReadEnum(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.TextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TextAdInfo(); - if (adDataCase_ == AdDataOneofCase.TextAd) { - subBuilder.MergeFrom(TextAd); - } - input.ReadMessage(subBuilder); - TextAd = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo(); - if (adDataCase_ == AdDataOneofCase.ExpandedTextAd) { - subBuilder.MergeFrom(ExpandedTextAd); - } - input.ReadMessage(subBuilder); - ExpandedTextAd = subBuilder; - break; - } - case 82: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo(); - if (adDataCase_ == AdDataOneofCase.ExpandedDynamicSearchAd) { - subBuilder.MergeFrom(ExpandedDynamicSearchAd); - } - input.ReadMessage(subBuilder); - ExpandedDynamicSearchAd = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo(); - if (adDataCase_ == AdDataOneofCase.HotelAd) { - subBuilder.MergeFrom(HotelAd); - } - input.ReadMessage(subBuilder); - HotelAd = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo(); - if (adDataCase_ == AdDataOneofCase.ShoppingSmartAd) { - subBuilder.MergeFrom(ShoppingSmartAd); - } - input.ReadMessage(subBuilder); - ShoppingSmartAd = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo(); - if (adDataCase_ == AdDataOneofCase.ShoppingProductAd) { - subBuilder.MergeFrom(ShoppingProductAd); - } - input.ReadMessage(subBuilder); - ShoppingProductAd = subBuilder; - break; - } - case 160: { - DevicePreference = (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) input.ReadEnum(); - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo(); - if (adDataCase_ == AdDataOneofCase.ImageAd) { - subBuilder.MergeFrom(ImageAd); - } - input.ReadMessage(subBuilder); - ImageAd = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo(); - if (adDataCase_ == AdDataOneofCase.VideoAd) { - subBuilder.MergeFrom(VideoAd); - } - input.ReadMessage(subBuilder); - VideoAd = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo(); - if (adDataCase_ == AdDataOneofCase.ResponsiveSearchAd) { - subBuilder.MergeFrom(ResponsiveSearchAd); - } - input.ReadMessage(subBuilder); - ResponsiveSearchAd = subBuilder; - break; - } - case 210: { - urlCollections_.AddEntriesFrom(ref input, _repeated_urlCollections_codec); - break; - } - case 216: { - SystemManagedResourceSource = (global::Google.Ads.GoogleAds.V12.Enums.SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource) input.ReadEnum(); - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo(); - if (adDataCase_ == AdDataOneofCase.LegacyResponsiveDisplayAd) { - subBuilder.MergeFrom(LegacyResponsiveDisplayAd); - } - input.ReadMessage(subBuilder); - LegacyResponsiveDisplayAd = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.AppAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppAdInfo(); - if (adDataCase_ == AdDataOneofCase.AppAd) { - subBuilder.MergeFrom(AppAd); - } - input.ReadMessage(subBuilder); - AppAd = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo(); - if (adDataCase_ == AdDataOneofCase.LegacyAppInstallAd) { - subBuilder.MergeFrom(LegacyAppInstallAd); - } - input.ReadMessage(subBuilder); - LegacyAppInstallAd = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo(); - if (adDataCase_ == AdDataOneofCase.ResponsiveDisplayAd) { - subBuilder.MergeFrom(ResponsiveDisplayAd); - } - input.ReadMessage(subBuilder); - ResponsiveDisplayAd = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo(); - if (adDataCase_ == AdDataOneofCase.LocalAd) { - subBuilder.MergeFrom(LocalAd); - } - input.ReadMessage(subBuilder); - LocalAd = subBuilder; - break; - } - case 266: { - global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo(); - if (adDataCase_ == AdDataOneofCase.DisplayUploadAd) { - subBuilder.MergeFrom(DisplayUploadAd); - } - input.ReadMessage(subBuilder); - DisplayUploadAd = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo(); - if (adDataCase_ == AdDataOneofCase.AppEngagementAd) { - subBuilder.MergeFrom(AppEngagementAd); - } - input.ReadMessage(subBuilder); - AppEngagementAd = subBuilder; - break; - } - case 282: { - finalAppUrls_.AddEntriesFrom(ref input, _repeated_finalAppUrls_codec); - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo(); - if (adDataCase_ == AdDataOneofCase.ShoppingComparisonListingAd) { - subBuilder.MergeFrom(ShoppingComparisonListingAd); - } - input.ReadMessage(subBuilder); - ShoppingComparisonListingAd = subBuilder; - break; - } - case 298: { - ResourceName = input.ReadString(); - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo(); - if (adDataCase_ == AdDataOneofCase.VideoResponsiveAd) { - subBuilder.MergeFrom(VideoResponsiveAd); - } - input.ReadMessage(subBuilder); - VideoResponsiveAd = subBuilder; - break; - } - case 320: { - Id = input.ReadInt64(); - break; - } - case 330: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 338: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - case 346: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 354: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 362: { - DisplayUrl = input.ReadString(); - break; - } - case 368: { - AddedByGoogleAds = input.ReadBool(); - break; - } - case 378: { - Name = input.ReadString(); - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo(); - if (adDataCase_ == AdDataOneofCase.SmartCampaignAd) { - subBuilder.MergeFrom(SmartCampaignAd); - } - input.ReadMessage(subBuilder); - SmartCampaignAd = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Common.CallAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallAdInfo(); - if (adDataCase_ == AdDataOneofCase.CallAd) { - subBuilder.MergeFrom(CallAd); - } - input.ReadMessage(subBuilder); - CallAd = subBuilder; - break; - } - case 402: { - global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo(); - if (adDataCase_ == AdDataOneofCase.AppPreRegistrationAd) { - subBuilder.MergeFrom(AppPreRegistrationAd); - } - input.ReadMessage(subBuilder); - AppPreRegistrationAd = subBuilder; - break; - } - case 410: { - global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo(); - if (adDataCase_ == AdDataOneofCase.DiscoveryMultiAssetAd) { - subBuilder.MergeFrom(DiscoveryMultiAssetAd); - } - input.ReadMessage(subBuilder); - DiscoveryMultiAssetAd = subBuilder; - break; - } - case 418: { - global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo(); - if (adDataCase_ == AdDataOneofCase.DiscoveryCarouselAd) { - subBuilder.MergeFrom(DiscoveryCarouselAd); - } - input.ReadMessage(subBuilder); - DiscoveryCarouselAd = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdAsset.g.cs b/Google.Ads.GoogleAds/src/V12/AdAsset.g.cs deleted file mode 100755 index dda7609ce..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdAsset.g.cs +++ /dev/null @@ -1,1236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/ad_asset.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/ad_asset.proto - public static partial class AdAssetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/ad_asset.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdAssetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2FkX2Fzc2V0LnBy", - "b3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uGjJnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Fzc2V0X3BvbGljeS5wcm90bxo8", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fzc2V0X3BlcmZvcm1h", - "bmNlX2xhYmVsLnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvc2VydmVkX2Fzc2V0X2ZpZWxkX3R5cGUucHJvdG8i1AIKC0FkVGV4dEFz", - "c2V0EhEKBHRleHQYBCABKAlIAIgBARJjCgxwaW5uZWRfZmllbGQYAiABKA4y", - "TS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuU2VydmVkQXNzZXRG", - "aWVsZFR5cGVFbnVtLlNlcnZlZEFzc2V0RmllbGRUeXBlEnAKF2Fzc2V0X3Bl", - "cmZvcm1hbmNlX2xhYmVsGAUgASgOMk8uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLkFzc2V0UGVyZm9ybWFuY2VMYWJlbEVudW0uQXNzZXRQZXJm", - "b3JtYW5jZUxhYmVsElIKE3BvbGljeV9zdW1tYXJ5X2luZm8YBiABKAsyNS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkQXNzZXRQb2xpY3lT", - "dW1tYXJ5QgcKBV90ZXh0IiwKDEFkSW1hZ2VBc3NldBISCgVhc3NldBgCIAEo", - "CUgAiAEBQggKBl9hc3NldCIsCgxBZFZpZGVvQXNzZXQSEgoFYXNzZXQYAiAB", - "KAlIAIgBAUIICgZfYXNzZXQiMgoSQWRNZWRpYUJ1bmRsZUFzc2V0EhIKBWFz", - "c2V0GAIgASgJSACIAQFCCAoGX2Fzc2V0IjwKHEFkRGlzY292ZXJ5Q2Fyb3Vz", - "ZWxDYXJkQXNzZXQSEgoFYXNzZXQYASABKAlIAIgBAUIICgZfYXNzZXRC7AEK", - "I2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uQgxBZEFzc2V0", - "UHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb247Y29tbW9uogIDR0FBqgIfR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLkNvbW1vbsoCH0dvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxDb21tb27qAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OkNvbW1vbmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.AssetPolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AdTextAsset), global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser, new[]{ "Text", "PinnedField", "AssetPerformanceLabel", "PolicySummaryInfo" }, new[]{ "Text" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AdImageAsset), global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset), global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset), global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AdDiscoveryCarouselCardAsset), global::Google.Ads.GoogleAds.V12.Common.AdDiscoveryCarouselCardAsset.Parser, new[]{ "Asset" }, new[]{ "Asset" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A text asset used inside an ad. - /// - public sealed partial class AdTextAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdTextAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdAssetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdTextAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdTextAsset(AdTextAsset other) : this() { - text_ = other.text_; - pinnedField_ = other.pinnedField_; - assetPerformanceLabel_ = other.assetPerformanceLabel_; - policySummaryInfo_ = other.policySummaryInfo_ != null ? other.policySummaryInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdTextAsset Clone() { - return new AdTextAsset(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 4; - private string text_; - /// - /// Asset text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "pinned_field" field. - public const int PinnedFieldFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType pinnedField_ = global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified; - /// - /// The pinned field of the asset. This restricts the asset to only serve - /// within this field. Multiple assets can be pinned to the same field. An - /// asset that is unpinned or pinned to a different field will not serve in a - /// field where some other asset has been pinned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType PinnedField { - get { return pinnedField_; } - set { - pinnedField_ = value; - } - } - - /// Field number for the "asset_performance_label" field. - public const int AssetPerformanceLabelFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel assetPerformanceLabel_ = global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified; - /// - /// The performance label of this text asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel AssetPerformanceLabel { - get { return assetPerformanceLabel_; } - set { - assetPerformanceLabel_ = value; - } - } - - /// Field number for the "policy_summary_info" field. - public const int PolicySummaryInfoFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Common.AdAssetPolicySummary policySummaryInfo_; - /// - /// The policy summary of this text asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdAssetPolicySummary PolicySummaryInfo { - get { return policySummaryInfo_; } - set { - policySummaryInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdTextAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdTextAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) return false; - if (PinnedField != other.PinnedField) return false; - if (AssetPerformanceLabel != other.AssetPerformanceLabel) return false; - if (!object.Equals(PolicySummaryInfo, other.PolicySummaryInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasText) hash ^= Text.GetHashCode(); - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) hash ^= PinnedField.GetHashCode(); - if (AssetPerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) hash ^= AssetPerformanceLabel.GetHashCode(); - if (policySummaryInfo_ != null) hash ^= PolicySummaryInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PinnedField); - } - if (HasText) { - output.WriteRawTag(34); - output.WriteString(Text); - } - if (AssetPerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) AssetPerformanceLabel); - } - if (policySummaryInfo_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PolicySummaryInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PinnedField); - } - if (HasText) { - output.WriteRawTag(34); - output.WriteString(Text); - } - if (AssetPerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) AssetPerformanceLabel); - } - if (policySummaryInfo_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PolicySummaryInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PinnedField); - } - if (AssetPerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AssetPerformanceLabel); - } - if (policySummaryInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummaryInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdTextAsset other) { - if (other == null) { - return; - } - if (other.HasText) { - Text = other.Text; - } - if (other.PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - PinnedField = other.PinnedField; - } - if (other.AssetPerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - AssetPerformanceLabel = other.AssetPerformanceLabel; - } - if (other.policySummaryInfo_ != null) { - if (policySummaryInfo_ == null) { - PolicySummaryInfo = new global::Google.Ads.GoogleAds.V12.Common.AdAssetPolicySummary(); - } - PolicySummaryInfo.MergeFrom(other.PolicySummaryInfo); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - PinnedField = (global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum(); - break; - } - case 34: { - Text = input.ReadString(); - break; - } - case 40: { - AssetPerformanceLabel = (global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum(); - break; - } - case 50: { - if (policySummaryInfo_ == null) { - PolicySummaryInfo = new global::Google.Ads.GoogleAds.V12.Common.AdAssetPolicySummary(); - } - input.ReadMessage(PolicySummaryInfo); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - PinnedField = (global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum(); - break; - } - case 34: { - Text = input.ReadString(); - break; - } - case 40: { - AssetPerformanceLabel = (global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum(); - break; - } - case 50: { - if (policySummaryInfo_ == null) { - PolicySummaryInfo = new global::Google.Ads.GoogleAds.V12.Common.AdAssetPolicySummary(); - } - input.ReadMessage(PolicySummaryInfo); - break; - } - } - } - } - #endif - - } - - /// - /// An image asset used inside an ad. - /// - public sealed partial class AdImageAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdImageAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdAssetReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdImageAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdImageAsset(AdImageAsset other) : this() { - asset_ = other.asset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdImageAsset Clone() { - return new AdImageAsset(this); - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 2; - private string asset_; - /// - /// The Asset resource name of this image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_ ?? ""; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "asset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAsset { - get { return asset_ != null; } - } - /// Clears the value of the "asset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAsset() { - asset_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdImageAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdImageAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Asset != other.Asset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAsset) hash ^= Asset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasAsset) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasAsset) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAsset) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdImageAsset other) { - if (other == null) { - return; - } - if (other.HasAsset) { - Asset = other.Asset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Asset = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Asset = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A video asset used inside an ad. - /// - public sealed partial class AdVideoAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdVideoAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdAssetReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdVideoAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdVideoAsset(AdVideoAsset other) : this() { - asset_ = other.asset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdVideoAsset Clone() { - return new AdVideoAsset(this); - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 2; - private string asset_; - /// - /// The Asset resource name of this video. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_ ?? ""; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "asset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAsset { - get { return asset_ != null; } - } - /// Clears the value of the "asset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAsset() { - asset_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdVideoAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdVideoAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Asset != other.Asset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAsset) hash ^= Asset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasAsset) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasAsset) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAsset) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdVideoAsset other) { - if (other == null) { - return; - } - if (other.HasAsset) { - Asset = other.Asset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Asset = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Asset = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A media bundle asset used inside an ad. - /// - public sealed partial class AdMediaBundleAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdMediaBundleAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdAssetReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdMediaBundleAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdMediaBundleAsset(AdMediaBundleAsset other) : this() { - asset_ = other.asset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdMediaBundleAsset Clone() { - return new AdMediaBundleAsset(this); - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 2; - private string asset_; - /// - /// The Asset resource name of this media bundle. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_ ?? ""; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "asset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAsset { - get { return asset_ != null; } - } - /// Clears the value of the "asset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAsset() { - asset_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdMediaBundleAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdMediaBundleAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Asset != other.Asset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAsset) hash ^= Asset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasAsset) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasAsset) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAsset) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdMediaBundleAsset other) { - if (other == null) { - return; - } - if (other.HasAsset) { - Asset = other.Asset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Asset = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Asset = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A discovery carousel card asset used inside an ad. - /// - public sealed partial class AdDiscoveryCarouselCardAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdDiscoveryCarouselCardAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdAssetReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdDiscoveryCarouselCardAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdDiscoveryCarouselCardAsset(AdDiscoveryCarouselCardAsset other) : this() { - asset_ = other.asset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdDiscoveryCarouselCardAsset Clone() { - return new AdDiscoveryCarouselCardAsset(this); - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 1; - private string asset_; - /// - /// The Asset resource name of this discovery carousel card. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_ ?? ""; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "asset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAsset { - get { return asset_ != null; } - } - /// Clears the value of the "asset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAsset() { - asset_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdDiscoveryCarouselCardAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdDiscoveryCarouselCardAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Asset != other.Asset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAsset) hash ^= Asset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasAsset) { - output.WriteRawTag(10); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasAsset) { - output.WriteRawTag(10); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAsset) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdDiscoveryCarouselCardAsset other) { - if (other == null) { - return; - } - if (other.HasAsset) { - Asset = other.Asset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Asset = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Asset = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdCustomizerError.g.cs b/Google.Ads.GoogleAds/src/V12/AdCustomizerError.g.cs deleted file mode 100755 index 4a8abc7fb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdCustomizerError.g.cs +++ /dev/null @@ -1,251 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_customizer_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_customizer_error.proto - public static partial class AdCustomizerErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_customizer_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdCustomizerErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2N1c3RvbWl6", - "ZXJfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMi6AEKFUFkQ3VzdG9taXplckVycm9yRW51bSLOAQoRQWRDdXN0b21pemVy", - "RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESIQodQ09VTlRE", - "T1dOX0lOVkFMSURfREFURV9GT1JNQVQQAhIaChZDT1VOVERPV05fREFURV9J", - "Tl9QQVNUEAMSHAoYQ09VTlRET1dOX0lOVkFMSURfTE9DQUxFEAQSJwojQ09V", - "TlRET1dOX0lOVkFMSURfU1RBUlRfREFZU19CRUZPUkUQBRIVChFVTktOT1dO", - "X1VTRVJfTElTVBAGQvYBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9yc0IWQWRDdXN0b21pemVyRXJyb3JQcm90b1ABWkVnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oC", - "I0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorEnum.Types.AdCustomizerError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad customizer errors. - /// - public sealed partial class AdCustomizerErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdCustomizerErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdCustomizerErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdCustomizerErrorEnum(AdCustomizerErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdCustomizerErrorEnum Clone() { - return new AdCustomizerErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdCustomizerErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdCustomizerErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdCustomizerErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdCustomizerErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad customizer errors. - /// - public enum AdCustomizerError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Invalid date argument in countdown function. - /// - [pbr::OriginalName("COUNTDOWN_INVALID_DATE_FORMAT")] CountdownInvalidDateFormat = 2, - /// - /// Countdown end date is in the past. - /// - [pbr::OriginalName("COUNTDOWN_DATE_IN_PAST")] CountdownDateInPast = 3, - /// - /// Invalid locale string in countdown function. - /// - [pbr::OriginalName("COUNTDOWN_INVALID_LOCALE")] CountdownInvalidLocale = 4, - /// - /// Days-before argument to countdown function is not positive. - /// - [pbr::OriginalName("COUNTDOWN_INVALID_START_DAYS_BEFORE")] CountdownInvalidStartDaysBefore = 5, - /// - /// A user list referenced in an IF function does not exist. - /// - [pbr::OriginalName("UNKNOWN_USER_LIST")] UnknownUserList = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdCustomizerPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/AdCustomizerPlaceholderField.g.cs deleted file mode 100755 index 4a21a8645..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdCustomizerPlaceholderField.g.cs +++ /dev/null @@ -1,246 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_customizer_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_customizer_placeholder_field.proto - public static partial class AdCustomizerPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_customizer_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdCustomizerPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfY3VzdG9taXpl", - "cl9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zIo4BCiBBZEN1c3RvbWl6ZXJQbGFjZWhvbGRlckZpZWxk", - "RW51bSJqChxBZEN1c3RvbWl6ZXJQbGFjZWhvbGRlckZpZWxkEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0lOVEVHRVIQAhIJCgVQUklDRRAD", - "EggKBERBVEUQBBIKCgZTVFJJTkcQBUL7AQoiY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtc0IhQWRDdXN0b21pemVyUGxhY2Vob2xkZXJGaWVs", - "ZFByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldEnum.Types.AdCustomizerPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Ad Customizer placeholder fields. - /// - public sealed partial class AdCustomizerPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdCustomizerPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdCustomizerPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdCustomizerPlaceholderFieldEnum(AdCustomizerPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdCustomizerPlaceholderFieldEnum Clone() { - return new AdCustomizerPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdCustomizerPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdCustomizerPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdCustomizerPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdCustomizerPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Ad Customizers placeholder fields. - /// - public enum AdCustomizerPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: INT64. Integer value to be inserted. - /// - [pbr::OriginalName("INTEGER")] Integer = 2, - /// - /// Data Type: STRING. Price value to be inserted. - /// - [pbr::OriginalName("PRICE")] Price = 3, - /// - /// Data Type: DATE_TIME. Date value to be inserted. - /// - [pbr::OriginalName("DATE")] Date = 4, - /// - /// Data Type: STRING. String value to be inserted. - /// - [pbr::OriginalName("STRING")] String = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdDestinationType.g.cs b/Google.Ads.GoogleAds/src/V12/AdDestinationType.g.cs deleted file mode 100755 index 354405d67..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdDestinationType.g.cs +++ /dev/null @@ -1,276 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_destination_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_destination_type.proto - public static partial class AdDestinationTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_destination_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdDestinationTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfZGVzdGluYXRp", - "b25fdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "IpACChVBZERlc3RpbmF0aW9uVHlwZUVudW0i9gEKEUFkRGVzdGluYXRpb25U", - "eXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhIKDk5PVF9BUFBM", - "SUNBQkxFEAISCwoHV0VCU0lURRADEhEKDUFQUF9ERUVQX0xJTksQBBINCglB", - "UFBfU1RPUkUQBRIOCgpQSE9ORV9DQUxMEAYSEgoOTUFQX0RJUkVDVElPTlMQ", - "BxIUChBMT0NBVElPTl9MSVNUSU5HEAgSCwoHTUVTU0FHRRAJEg0KCUxFQURf", - "Rk9STRAKEgsKB1lPVVRVQkUQCxIdChlVTk1PREVMRURfRk9SX0NPTlZFUlNJ", - "T05TEAxC8AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNC", - "FkFkRGVzdGluYXRpb25UeXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztl", - "bnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oC", - "Hkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdDestinationTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AdDestinationTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdDestinationTypeEnum.Types.AdDestinationType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of Google Ads destination types. - /// - public sealed partial class AdDestinationTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdDestinationTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdDestinationTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdDestinationTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdDestinationTypeEnum(AdDestinationTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdDestinationTypeEnum Clone() { - return new AdDestinationTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdDestinationTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdDestinationTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdDestinationTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdDestinationTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates Google Ads destination types - /// - public enum AdDestinationType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Ads that don't intend to drive users off from ads to other destinations - /// - [pbr::OriginalName("NOT_APPLICABLE")] NotApplicable = 2, - /// - /// Website - /// - [pbr::OriginalName("WEBSITE")] Website = 3, - /// - /// App Deep Link - /// - [pbr::OriginalName("APP_DEEP_LINK")] AppDeepLink = 4, - /// - /// iOS App Store or Play Store - /// - [pbr::OriginalName("APP_STORE")] AppStore = 5, - /// - /// Call Dialer - /// - [pbr::OriginalName("PHONE_CALL")] PhoneCall = 6, - /// - /// Map App - /// - [pbr::OriginalName("MAP_DIRECTIONS")] MapDirections = 7, - /// - /// Location Dedicated Page - /// - [pbr::OriginalName("LOCATION_LISTING")] LocationListing = 8, - /// - /// Text Message - /// - [pbr::OriginalName("MESSAGE")] Message = 9, - /// - /// Lead Generation Form - /// - [pbr::OriginalName("LEAD_FORM")] LeadForm = 10, - /// - /// YouTube - /// - [pbr::OriginalName("YOUTUBE")] Youtube = 11, - /// - /// Ad Destination for Conversions with keys unknown - /// - [pbr::OriginalName("UNMODELED_FOR_CONVERSIONS")] UnmodeledForConversions = 12, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdError.g.cs b/Google.Ads.GoogleAds/src/V12/AdError.g.cs deleted file mode 100755 index aa6f95a58..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdError.g.cs +++ /dev/null @@ -1,979 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_error.proto - public static partial class AdErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2Vycm9yLnBy", - "b3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIs4oCgtBZEVy", - "cm9yRW51bSK+KAoHQWRFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QARIsCihBRF9DVVNUT01JWkVSU19OT1RfU1VQUE9SVEVEX0ZPUl9BRF9U", - "WVBFEAISGgoWQVBQUk9YSU1BVEVMWV9UT09fTE9ORxADEhsKF0FQUFJPWElN", - "QVRFTFlfVE9PX1NIT1JUEAQSDwoLQkFEX1NOSVBQRVQQBRIUChBDQU5OT1Rf", - "TU9ESUZZX0FEEAYSJwojQ0FOTk9UX1NFVF9CVVNJTkVTU19OQU1FX0lGX1VS", - "TF9TRVQQBxIUChBDQU5OT1RfU0VUX0ZJRUxEEAgSKgomQ0FOTk9UX1NFVF9G", - "SUVMRF9XSVRIX09SSUdJTl9BRF9JRF9TRVQQCRIvCitDQU5OT1RfU0VUX0ZJ", - "RUxEX1dJVEhfQURfSURfU0VUX0ZPUl9TSEFSSU5HEAoSKQolQ0FOTk9UX1NF", - "VF9BTExPV19GTEVYSUJMRV9DT0xPUl9GQUxTRRALEjcKM0NBTk5PVF9TRVRf", - "Q09MT1JfQ09OVFJPTF9XSEVOX05BVElWRV9GT1JNQVRfU0VUVElORxAMEhIK", - "DkNBTk5PVF9TRVRfVVJMEA0SIQodQ0FOTk9UX1NFVF9XSVRIT1VUX0ZJTkFM", - "X1VSTFMQDhIeChpDQU5OT1RfU0VUX1dJVEhfRklOQUxfVVJMUxAPEhwKGENB", - "Tk5PVF9TRVRfV0lUSF9VUkxfREFUQRAREicKI0NBTk5PVF9VU0VfQURfU1VC", - "Q0xBU1NfRk9SX09QRVJBVE9SEBISIwofQ1VTVE9NRVJfTk9UX0FQUFJPVkVE", - "X01PQklMRUFEUxATEigKJENVU1RPTUVSX05PVF9BUFBST1ZFRF9USElSRFBB", - "UlRZX0FEUxAUEjEKLUNVU1RPTUVSX05PVF9BUFBST1ZFRF9USElSRFBBUlRZ", - "X1JFRElSRUNUX0FEUxAVEhkKFUNVU1RPTUVSX05PVF9FTElHSUJMRRAWEjEK", - "LUNVU1RPTUVSX05PVF9FTElHSUJMRV9GT1JfVVBEQVRJTkdfQkVBQ09OX1VS", - "TBAXEh4KGkRJTUVOU0lPTl9BTFJFQURZX0lOX1VOSU9OEBgSGQoVRElNRU5T", - "SU9OX01VU1RfQkVfU0VUEBkSGgoWRElNRU5TSU9OX05PVF9JTl9VTklPThAa", - "EiMKH0RJU1BMQVlfVVJMX0NBTk5PVF9CRV9TUEVDSUZJRUQQGxIgChxET01F", - "U1RJQ19QSE9ORV9OVU1CRVJfRk9STUFUEBwSGgoWRU1FUkdFTkNZX1BIT05F", - "X05VTUJFUhAdEg8KC0VNUFRZX0ZJRUxEEB4SMAosRkVFRF9BVFRSSUJVVEVf", - "TVVTVF9IQVZFX01BUFBJTkdfRk9SX1RZUEVfSUQQHxIoCiRGRUVEX0FUVFJJ", - "QlVURV9NQVBQSU5HX1RZUEVfTUlTTUFUQ0gQIBIhCh1JTExFR0FMX0FEX0NV", - "U1RPTUlaRVJfVEFHX1VTRRAhEhMKD0lMTEVHQUxfVEFHX1VTRRAiEhsKF0lO", - "Q09OU0lTVEVOVF9ESU1FTlNJT05TECMSKQolSU5DT05TSVNURU5UX1NUQVRV", - "U19JTl9URU1QTEFURV9VTklPThAkEhQKEElOQ09SUkVDVF9MRU5HVEgQJRIa", - "ChZJTkVMSUdJQkxFX0ZPUl9VUEdSQURFECYSJgoiSU5WQUxJRF9BRF9BRERS", - "RVNTX0NBTVBBSUdOX1RBUkdFVBAnEhMKD0lOVkFMSURfQURfVFlQRRAoEicK", - "I0lOVkFMSURfQVRUUklCVVRFU19GT1JfTU9CSUxFX0lNQUdFECkSJgoiSU5W", - "QUxJRF9BVFRSSUJVVEVTX0ZPUl9NT0JJTEVfVEVYVBAqEh8KG0lOVkFMSURf", - "Q0FMTF9UT19BQ1RJT05fVEVYVBArEh0KGUlOVkFMSURfQ0hBUkFDVEVSX0ZP", - "Ul9VUkwQLBIYChRJTlZBTElEX0NPVU5UUllfQ09ERRAtEioKJklOVkFMSURf", - "RVhQQU5ERURfRFlOQU1JQ19TRUFSQ0hfQURfVEFHEC8SEQoNSU5WQUxJRF9J", - "TlBVVBAwEhsKF0lOVkFMSURfTUFSS1VQX0xBTkdVQUdFEDESGgoWSU5WQUxJ", - "RF9NT0JJTEVfQ0FSUklFUhAyEiEKHUlOVkFMSURfTU9CSUxFX0NBUlJJRVJf", - "VEFSR0VUEDMSHgoaSU5WQUxJRF9OVU1CRVJfT0ZfRUxFTUVOVFMQNBIfChtJ", - "TlZBTElEX1BIT05FX05VTUJFUl9GT1JNQVQQNRIxCi1JTlZBTElEX1JJQ0hf", - "TUVESUFfQ0VSVElGSUVEX1ZFTkRPUl9GT1JNQVRfSUQQNhIZChVJTlZBTElE", - "X1RFTVBMQVRFX0RBVEEQNxInCiNJTlZBTElEX1RFTVBMQVRFX0VMRU1FTlRf", - "RklFTERfVFlQRRA4EhcKE0lOVkFMSURfVEVNUExBVEVfSUQQORIRCg1MSU5F", - "X1RPT19XSURFEDoSIQodTUlTU0lOR19BRF9DVVNUT01JWkVSX01BUFBJTkcQ", - "OxIdChlNSVNTSU5HX0FERFJFU1NfQ09NUE9ORU5UEDwSHgoaTUlTU0lOR19B", - "RFZFUlRJU0VNRU5UX05BTUUQPRIZChVNSVNTSU5HX0JVU0lORVNTX05BTUUQ", - "PhIYChRNSVNTSU5HX0RFU0NSSVBUSU9OMRA/EhgKFE1JU1NJTkdfREVTQ1JJ", - "UFRJT04yEEASHwobTUlTU0lOR19ERVNUSU5BVElPTl9VUkxfVEFHEEESIAoc", - "TUlTU0lOR19MQU5ESU5HX1BBR0VfVVJMX1RBRxBCEhUKEU1JU1NJTkdfRElN", - "RU5TSU9OEEMSFwoTTUlTU0lOR19ESVNQTEFZX1VSTBBEEhQKEE1JU1NJTkdf", - "SEVBRExJTkUQRRISCg5NSVNTSU5HX0hFSUdIVBBGEhEKDU1JU1NJTkdfSU1B", - "R0UQRxItCilNSVNTSU5HX01BUktFVElOR19JTUFHRV9PUl9QUk9EVUNUX1ZJ", - "REVPUxBIEhwKGE1JU1NJTkdfTUFSS1VQX0xBTkdVQUdFUxBJEhoKFk1JU1NJ", - "TkdfTU9CSUxFX0NBUlJJRVIQShIRCg1NSVNTSU5HX1BIT05FEEsSJAogTUlT", - "U0lOR19SRVFVSVJFRF9URU1QTEFURV9GSUVMRFMQTBIgChxNSVNTSU5HX1RF", - "TVBMQVRFX0ZJRUxEX1ZBTFVFEE0SEAoMTUlTU0lOR19URVhUEE4SFwoTTUlT", - "U0lOR19WSVNJQkxFX1VSTBBPEhEKDU1JU1NJTkdfV0lEVEgQUBInCiNNVUxU", - "SVBMRV9ESVNUSU5DVF9GRUVEU19VTlNVUFBPUlRFRBBREiQKIE1VU1RfVVNF", - "X1RFTVBfQURfVU5JT05fSURfT05fQUREEFISDAoIVE9PX0xPTkcQUxINCglU", - "T09fU0hPUlQQVBIiCh5VTklPTl9ESU1FTlNJT05TX0NBTk5PVF9DSEFOR0UQ", - "VRIdChlVTktOT1dOX0FERFJFU1NfQ09NUE9ORU5UEFYSFgoSVU5LTk9XTl9G", - "SUVMRF9OQU1FEFcSFwoTVU5LTk9XTl9VTklRVUVfTkFNRRBYEhoKFlVOU1VQ", - "UE9SVEVEX0RJTUVOU0lPTlMQWRIWChJVUkxfSU5WQUxJRF9TQ0hFTUUQWhIg", - "ChxVUkxfSU5WQUxJRF9UT1BfTEVWRUxfRE9NQUlOEFsSEQoNVVJMX01BTEZP", - "Uk1FRBBcEg8KC1VSTF9OT19IT1NUEF0SFgoSVVJMX05PVF9FUVVJVkFMRU5U", - "EF4SGgoWVVJMX0hPU1RfTkFNRV9UT09fTE9ORxBfEhEKDVVSTF9OT19TQ0hF", - "TUUQYBIbChdVUkxfTk9fVE9QX0xFVkVMX0RPTUFJThBhEhgKFFVSTF9QQVRI", - "X05PVF9BTExPV0VEEGISGAoUVVJMX1BPUlRfTk9UX0FMTE9XRUQQYxIZChVV", - "UkxfUVVFUllfTk9UX0FMTE9XRUQQZBI0CjBVUkxfU0NIRU1FX0JFRk9SRV9F", - "WFBBTkRFRF9EWU5BTUlDX1NFQVJDSF9BRF9UQUcQZhIpCiVVU0VSX0RPRVNf", - "Tk9UX0hBVkVfQUNDRVNTX1RPX1RFTVBMQVRFEGcSJAogSU5DT05TSVNURU5U", - "X0VYUEFOREFCTEVfU0VUVElOR1MQaBISCg5JTlZBTElEX0ZPUk1BVBBpEhYK", - "EklOVkFMSURfRklFTERfVEVYVBBqEhcKE0VMRU1FTlRfTk9UX1BSRVNFTlQQ", - "axIPCgtJTUFHRV9FUlJPUhBsEhYKElZBTFVFX05PVF9JTl9SQU5HRRBtEhUK", - "EUZJRUxEX05PVF9QUkVTRU5UEG4SGAoUQUREUkVTU19OT1RfQ09NUExFVEUQ", - "bxITCg9BRERSRVNTX0lOVkFMSUQQcBIZChVWSURFT19SRVRSSUVWQUxfRVJS", - "T1IQcRIPCgtBVURJT19FUlJPUhByEh8KG0lOVkFMSURfWU9VVFVCRV9ESVNQ", - "TEFZX1VSTBBzEhsKF1RPT19NQU5ZX1BST0RVQ1RfSU1BR0VTEHQSGwoXVE9P", - "X01BTllfUFJPRFVDVF9WSURFT1MQdRIuCipJTkNPTVBBVElCTEVfQURfVFlQ", - "RV9BTkRfREVWSUNFX1BSRUZFUkVOQ0UQdhIqCiZDQUxMVFJBQ0tJTkdfTk9U", - "X1NVUFBPUlRFRF9GT1JfQ09VTlRSWRB3Ei0KKUNBUlJJRVJfU1BFQ0lGSUNf", - "U0hPUlRfTlVNQkVSX05PVF9BTExPV0VEEHgSGgoWRElTQUxMT1dFRF9OVU1C", - "RVJfVFlQRRB5EioKJlBIT05FX05VTUJFUl9OT1RfU1VQUE9SVEVEX0ZPUl9D", - "T1VOVFJZEHoSPAo4UEhPTkVfTlVNQkVSX05PVF9TVVBQT1JURURfV0lUSF9D", - "QUxMVFJBQ0tJTkdfRk9SX0NPVU5UUlkQexIjCh9QUkVNSVVNX1JBVEVfTlVN", - "QkVSX05PVF9BTExPV0VEEHwSIwofVkFOSVRZX1BIT05FX05VTUJFUl9OT1Rf", - "QUxMT1dFRBB9EiMKH0lOVkFMSURfQ0FMTF9DT05WRVJTSU9OX1RZUEVfSUQQ", - "fhI9CjlDQU5OT1RfRElTQUJMRV9DQUxMX0NPTlZFUlNJT05fQU5EX1NFVF9D", - "T05WRVJTSU9OX1RZUEVfSUQQfxIjCh5DQU5OT1RfU0VUX1BBVEgyX1dJVEhP", - "VVRfUEFUSDEQgAESMwouTUlTU0lOR19EWU5BTUlDX1NFQVJDSF9BRFNfU0VU", - "VElOR19ET01BSU5fTkFNRRCBARInCiJJTkNPTVBBVElCTEVfV0lUSF9SRVNU", - "UklDVElPTl9UWVBFEIIBEjEKLENVU1RPTUVSX0NPTlNFTlRfRk9SX0NBTExf", - "UkVDT1JESU5HX1JFUVVJUkVEEIMBEiIKHU1JU1NJTkdfSU1BR0VfT1JfTUVE", - "SUFfQlVORExFEIQBEjAKK1BST0RVQ1RfVFlQRV9OT1RfU1VQUE9SVEVEX0lO", - "X1RISVNfQ0FNUEFJR04QhQESMAorUExBQ0VIT0xERVJfQ0FOTk9UX0hBVkVf", - "RU1QVFlfREVGQVVMVF9WQUxVRRCGARI9CjhQTEFDRUhPTERFUl9DT1VOVERP", - "V05fRlVOQ1RJT05fQ0FOTk9UX0hBVkVfREVGQVVMVF9WQUxVRRCHARImCiFQ", - "TEFDRUhPTERFUl9ERUZBVUxUX1ZBTFVFX01JU1NJTkcQiAESKQokVU5FWFBF", - "Q1RFRF9QTEFDRUhPTERFUl9ERUZBVUxUX1ZBTFVFEIkBEicKIkFEX0NVU1RP", - "TUlaRVJTX01BWV9OT1RfQkVfQURKQUNFTlQQigESLAonVVBEQVRJTkdfQURf", - "V0lUSF9OT19FTkFCTEVEX0FTU09DSUFUSU9OEIsBEkEKPENBTExfQURfVkVS", - "SUZJQ0FUSU9OX1VSTF9GSU5BTF9VUkxfRE9FU19OT1RfSEFWRV9TQU1FX0RP", - "TUFJThCMARJACjtDQUxMX0FEX0ZJTkFMX1VSTF9BTkRfVkVSSUZJQ0FUSU9O", - "X1VSTF9DQU5OT1RfQk9USF9CRV9FTVBUWRCaARIcChdUT09fTUFOWV9BRF9D", - "VVNUT01JWkVSUxCNARIhChxJTlZBTElEX0FEX0NVU1RPTUlaRVJfRk9STUFU", - "EI4BEiAKG05FU1RFRF9BRF9DVVNUT01JWkVSX1NZTlRBWBCPARIlCiBVTlNV", - "UFBPUlRFRF9BRF9DVVNUT01JWkVSX1NZTlRBWBCQARIoCiNVTlBBSVJFRF9C", - "UkFDRV9JTl9BRF9DVVNUT01JWkVSX1RBRxCRARIsCidNT1JFX1RIQU5fT05F", - "X0NPVU5URE9XTl9UQUdfVFlQRV9FWElTVFMQkgESKgolREFURV9USU1FX0lO", - "X0NPVU5URE9XTl9UQUdfSVNfSU5WQUxJRBCTARInCiJEQVRFX1RJTUVfSU5f", - "Q09VTlRET1dOX1RBR19JU19QQVNUEJQBEikKJFVOUkVDT0dOSVpFRF9BRF9D", - "VVNUT01JWkVSX1RBR19GT1VORBCVARIoCiNDVVNUT01JWkVSX1RZUEVfRk9S", - "QklEREVOX0ZPUl9GSUVMRBCWARImCiFJTlZBTElEX0NVU1RPTUlaRVJfQVRU", - "UklCVVRFX05BTUUQlwESEwoOU1RPUkVfTUlTTUFUQ0gQmAESKAojTUlTU0lO", - "R19SRVFVSVJFRF9JTUFHRV9BU1BFQ1RfUkFUSU8QmQESHQoYTUlTTUFUQ0hF", - "RF9BU1BFQ1RfUkFUSU9TEJsBEioKJURVUExJQ0FURV9JTUFHRV9BQ1JPU1Nf", - "Q0FST1VTRUxfQ0FSRFMQnAFC7AEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzQgxBZEVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJv", - "cnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVy", - "cm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdErrorEnum.Types.AdError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad errors. - /// - public sealed partial class AdErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdErrorEnum(AdErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdErrorEnum Clone() { - return new AdErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad errors. - /// - public enum AdError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Ad customizers are not supported for ad type. - /// - [pbr::OriginalName("AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE")] AdCustomizersNotSupportedForAdType = 2, - /// - /// Estimating character sizes the string is too long. - /// - [pbr::OriginalName("APPROXIMATELY_TOO_LONG")] ApproximatelyTooLong = 3, - /// - /// Estimating character sizes the string is too short. - /// - [pbr::OriginalName("APPROXIMATELY_TOO_SHORT")] ApproximatelyTooShort = 4, - /// - /// There is a problem with the snippet. - /// - [pbr::OriginalName("BAD_SNIPPET")] BadSnippet = 5, - /// - /// Cannot modify an ad. - /// - [pbr::OriginalName("CANNOT_MODIFY_AD")] CannotModifyAd = 6, - /// - /// business name and url cannot be set at the same time - /// - [pbr::OriginalName("CANNOT_SET_BUSINESS_NAME_IF_URL_SET")] CannotSetBusinessNameIfUrlSet = 7, - /// - /// The specified field is incompatible with this ad's type or settings. - /// - [pbr::OriginalName("CANNOT_SET_FIELD")] CannotSetField = 8, - /// - /// Cannot set field when originAdId is set. - /// - [pbr::OriginalName("CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET")] CannotSetFieldWithOriginAdIdSet = 9, - /// - /// Cannot set field when an existing ad id is set for sharing. - /// - [pbr::OriginalName("CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING")] CannotSetFieldWithAdIdSetForSharing = 10, - /// - /// Cannot set allowFlexibleColor false if no color is provided by user. - /// - [pbr::OriginalName("CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE")] CannotSetAllowFlexibleColorFalse = 11, - /// - /// When user select native, no color control is allowed because we will - /// always respect publisher color for native format serving. - /// - [pbr::OriginalName("CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING")] CannotSetColorControlWhenNativeFormatSetting = 12, - /// - /// Cannot specify a url for the ad type - /// - [pbr::OriginalName("CANNOT_SET_URL")] CannotSetUrl = 13, - /// - /// Cannot specify a tracking or mobile url without also setting final urls - /// - [pbr::OriginalName("CANNOT_SET_WITHOUT_FINAL_URLS")] CannotSetWithoutFinalUrls = 14, - /// - /// Cannot specify a legacy url and a final url simultaneously - /// - [pbr::OriginalName("CANNOT_SET_WITH_FINAL_URLS")] CannotSetWithFinalUrls = 15, - /// - /// Cannot specify a urls in UrlData and in template fields simultaneously. - /// - [pbr::OriginalName("CANNOT_SET_WITH_URL_DATA")] CannotSetWithUrlData = 17, - /// - /// This operator cannot be used with a subclass of Ad. - /// - [pbr::OriginalName("CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR")] CannotUseAdSubclassForOperator = 18, - /// - /// Customer is not approved for mobile ads. - /// - [pbr::OriginalName("CUSTOMER_NOT_APPROVED_MOBILEADS")] CustomerNotApprovedMobileads = 19, - /// - /// Customer is not approved for 3PAS richmedia ads. - /// - [pbr::OriginalName("CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS")] CustomerNotApprovedThirdpartyAds = 20, - /// - /// Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads. - /// - [pbr::OriginalName("CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS")] CustomerNotApprovedThirdpartyRedirectAds = 21, - /// - /// Not an eligible customer - /// - [pbr::OriginalName("CUSTOMER_NOT_ELIGIBLE")] CustomerNotEligible = 22, - /// - /// Customer is not eligible for updating beacon url - /// - [pbr::OriginalName("CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL")] CustomerNotEligibleForUpdatingBeaconUrl = 23, - /// - /// There already exists an ad with the same dimensions in the union. - /// - [pbr::OriginalName("DIMENSION_ALREADY_IN_UNION")] DimensionAlreadyInUnion = 24, - /// - /// Ad's dimension must be set before setting union dimension. - /// - [pbr::OriginalName("DIMENSION_MUST_BE_SET")] DimensionMustBeSet = 25, - /// - /// Ad's dimension must be included in the union dimensions. - /// - [pbr::OriginalName("DIMENSION_NOT_IN_UNION")] DimensionNotInUnion = 26, - /// - /// Display Url cannot be specified (applies to Ad Exchange Ads) - /// - [pbr::OriginalName("DISPLAY_URL_CANNOT_BE_SPECIFIED")] DisplayUrlCannotBeSpecified = 27, - /// - /// Telephone number contains invalid characters or invalid format. - /// Re-enter your number using digits (0-9), dashes (-), and parentheses - /// only. - /// - [pbr::OriginalName("DOMESTIC_PHONE_NUMBER_FORMAT")] DomesticPhoneNumberFormat = 28, - /// - /// Emergency telephone numbers are not allowed. Enter a valid - /// domestic phone number to connect customers to your business. - /// - [pbr::OriginalName("EMERGENCY_PHONE_NUMBER")] EmergencyPhoneNumber = 29, - /// - /// A required field was not specified or is an empty string. - /// - [pbr::OriginalName("EMPTY_FIELD")] EmptyField = 30, - /// - /// A feed attribute referenced in an ad customizer tag is not in the ad - /// customizer mapping for the feed. - /// - [pbr::OriginalName("FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID")] FeedAttributeMustHaveMappingForTypeId = 31, - /// - /// The ad customizer field mapping for the feed attribute does not match the - /// expected field type. - /// - [pbr::OriginalName("FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH")] FeedAttributeMappingTypeMismatch = 32, - /// - /// The use of ad customizer tags in the ad text is disallowed. Details in - /// trigger. - /// - [pbr::OriginalName("ILLEGAL_AD_CUSTOMIZER_TAG_USE")] IllegalAdCustomizerTagUse = 33, - /// - /// Tags of the form {PH_x}, where x is a number, are disallowed in ad text. - /// - [pbr::OriginalName("ILLEGAL_TAG_USE")] IllegalTagUse = 34, - /// - /// The dimensions of the ad are specified or derived in multiple ways and - /// are not consistent. - /// - [pbr::OriginalName("INCONSISTENT_DIMENSIONS")] InconsistentDimensions = 35, - /// - /// The status cannot differ among template ads of the same union. - /// - [pbr::OriginalName("INCONSISTENT_STATUS_IN_TEMPLATE_UNION")] InconsistentStatusInTemplateUnion = 36, - /// - /// The length of the string is not valid. - /// - [pbr::OriginalName("INCORRECT_LENGTH")] IncorrectLength = 37, - /// - /// The ad is ineligible for upgrade. - /// - [pbr::OriginalName("INELIGIBLE_FOR_UPGRADE")] IneligibleForUpgrade = 38, - /// - /// User cannot create mobile ad for countries targeted in specified - /// campaign. - /// - [pbr::OriginalName("INVALID_AD_ADDRESS_CAMPAIGN_TARGET")] InvalidAdAddressCampaignTarget = 39, - /// - /// Invalid Ad type. A specific type of Ad is required. - /// - [pbr::OriginalName("INVALID_AD_TYPE")] InvalidAdType = 40, - /// - /// Headline, description or phone cannot be present when creating mobile - /// image ad. - /// - [pbr::OriginalName("INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE")] InvalidAttributesForMobileImage = 41, - /// - /// Image cannot be present when creating mobile text ad. - /// - [pbr::OriginalName("INVALID_ATTRIBUTES_FOR_MOBILE_TEXT")] InvalidAttributesForMobileText = 42, - /// - /// Invalid call to action text. - /// - [pbr::OriginalName("INVALID_CALL_TO_ACTION_TEXT")] InvalidCallToActionText = 43, - /// - /// Invalid character in URL. - /// - [pbr::OriginalName("INVALID_CHARACTER_FOR_URL")] InvalidCharacterForUrl = 44, - /// - /// Creative's country code is not valid. - /// - [pbr::OriginalName("INVALID_COUNTRY_CODE")] InvalidCountryCode = 45, - /// - /// Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.) - /// - [pbr::OriginalName("INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG")] InvalidExpandedDynamicSearchAdTag = 47, - /// - /// An input error whose real reason was not properly mapped (should not - /// happen). - /// - [pbr::OriginalName("INVALID_INPUT")] InvalidInput = 48, - /// - /// An invalid markup language was entered. - /// - [pbr::OriginalName("INVALID_MARKUP_LANGUAGE")] InvalidMarkupLanguage = 49, - /// - /// An invalid mobile carrier was entered. - /// - [pbr::OriginalName("INVALID_MOBILE_CARRIER")] InvalidMobileCarrier = 50, - /// - /// Specified mobile carriers target a country not targeted by the campaign. - /// - [pbr::OriginalName("INVALID_MOBILE_CARRIER_TARGET")] InvalidMobileCarrierTarget = 51, - /// - /// Wrong number of elements for given element type - /// - [pbr::OriginalName("INVALID_NUMBER_OF_ELEMENTS")] InvalidNumberOfElements = 52, - /// - /// The format of the telephone number is incorrect. Re-enter the - /// number using the correct format. - /// - [pbr::OriginalName("INVALID_PHONE_NUMBER_FORMAT")] InvalidPhoneNumberFormat = 53, - /// - /// The certified vendor format id is incorrect. - /// - [pbr::OriginalName("INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID")] InvalidRichMediaCertifiedVendorFormatId = 54, - /// - /// The template ad data contains validation errors. - /// - [pbr::OriginalName("INVALID_TEMPLATE_DATA")] InvalidTemplateData = 55, - /// - /// The template field doesn't have have the correct type. - /// - [pbr::OriginalName("INVALID_TEMPLATE_ELEMENT_FIELD_TYPE")] InvalidTemplateElementFieldType = 56, - /// - /// Invalid template id. - /// - [pbr::OriginalName("INVALID_TEMPLATE_ID")] InvalidTemplateId = 57, - /// - /// After substituting replacement strings, the line is too wide. - /// - [pbr::OriginalName("LINE_TOO_WIDE")] LineTooWide = 58, - /// - /// The feed referenced must have ad customizer mapping to be used in a - /// customizer tag. - /// - [pbr::OriginalName("MISSING_AD_CUSTOMIZER_MAPPING")] MissingAdCustomizerMapping = 59, - /// - /// Missing address component in template element address field. - /// - [pbr::OriginalName("MISSING_ADDRESS_COMPONENT")] MissingAddressComponent = 60, - /// - /// An ad name must be entered. - /// - [pbr::OriginalName("MISSING_ADVERTISEMENT_NAME")] MissingAdvertisementName = 61, - /// - /// Business name must be entered. - /// - [pbr::OriginalName("MISSING_BUSINESS_NAME")] MissingBusinessName = 62, - /// - /// Description (line 2) must be entered. - /// - [pbr::OriginalName("MISSING_DESCRIPTION1")] MissingDescription1 = 63, - /// - /// Description (line 3) must be entered. - /// - [pbr::OriginalName("MISSING_DESCRIPTION2")] MissingDescription2 = 64, - /// - /// The destination url must contain at least one tag (for example, {lpurl}) - /// - [pbr::OriginalName("MISSING_DESTINATION_URL_TAG")] MissingDestinationUrlTag = 65, - /// - /// The tracking url template of ExpandedDynamicSearchAd must contain at - /// least one tag. (for example, {lpurl}) - /// - [pbr::OriginalName("MISSING_LANDING_PAGE_URL_TAG")] MissingLandingPageUrlTag = 66, - /// - /// A valid dimension must be specified for this ad. - /// - [pbr::OriginalName("MISSING_DIMENSION")] MissingDimension = 67, - /// - /// A display URL must be entered. - /// - [pbr::OriginalName("MISSING_DISPLAY_URL")] MissingDisplayUrl = 68, - /// - /// Headline must be entered. - /// - [pbr::OriginalName("MISSING_HEADLINE")] MissingHeadline = 69, - /// - /// A height must be entered. - /// - [pbr::OriginalName("MISSING_HEIGHT")] MissingHeight = 70, - /// - /// An image must be entered. - /// - [pbr::OriginalName("MISSING_IMAGE")] MissingImage = 71, - /// - /// Marketing image or product videos are required. - /// - [pbr::OriginalName("MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS")] MissingMarketingImageOrProductVideos = 72, - /// - /// The markup language in which your site is written must be entered. - /// - [pbr::OriginalName("MISSING_MARKUP_LANGUAGES")] MissingMarkupLanguages = 73, - /// - /// A mobile carrier must be entered. - /// - [pbr::OriginalName("MISSING_MOBILE_CARRIER")] MissingMobileCarrier = 74, - /// - /// Phone number must be entered. - /// - [pbr::OriginalName("MISSING_PHONE")] MissingPhone = 75, - /// - /// Missing required template fields - /// - [pbr::OriginalName("MISSING_REQUIRED_TEMPLATE_FIELDS")] MissingRequiredTemplateFields = 76, - /// - /// Missing a required field value - /// - [pbr::OriginalName("MISSING_TEMPLATE_FIELD_VALUE")] MissingTemplateFieldValue = 77, - /// - /// The ad must have text. - /// - [pbr::OriginalName("MISSING_TEXT")] MissingText = 78, - /// - /// A visible URL must be entered. - /// - [pbr::OriginalName("MISSING_VISIBLE_URL")] MissingVisibleUrl = 79, - /// - /// A width must be entered. - /// - [pbr::OriginalName("MISSING_WIDTH")] MissingWidth = 80, - /// - /// Only 1 feed can be used as the source of ad customizer substitutions in a - /// single ad. - /// - [pbr::OriginalName("MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED")] MultipleDistinctFeedsUnsupported = 81, - /// - /// TempAdUnionId must be use when adding template ads. - /// - [pbr::OriginalName("MUST_USE_TEMP_AD_UNION_ID_ON_ADD")] MustUseTempAdUnionIdOnAdd = 82, - /// - /// The string has too many characters. - /// - [pbr::OriginalName("TOO_LONG")] TooLong = 83, - /// - /// The string has too few characters. - /// - [pbr::OriginalName("TOO_SHORT")] TooShort = 84, - /// - /// Ad union dimensions cannot change for saved ads. - /// - [pbr::OriginalName("UNION_DIMENSIONS_CANNOT_CHANGE")] UnionDimensionsCannotChange = 85, - /// - /// Address component is not {country, lat, lng}. - /// - [pbr::OriginalName("UNKNOWN_ADDRESS_COMPONENT")] UnknownAddressComponent = 86, - /// - /// Unknown unique field name - /// - [pbr::OriginalName("UNKNOWN_FIELD_NAME")] UnknownFieldName = 87, - /// - /// Unknown unique name (template element type specifier) - /// - [pbr::OriginalName("UNKNOWN_UNIQUE_NAME")] UnknownUniqueName = 88, - /// - /// Unsupported ad dimension - /// - [pbr::OriginalName("UNSUPPORTED_DIMENSIONS")] UnsupportedDimensions = 89, - /// - /// URL starts with an invalid scheme. - /// - [pbr::OriginalName("URL_INVALID_SCHEME")] UrlInvalidScheme = 90, - /// - /// URL ends with an invalid top-level domain name. - /// - [pbr::OriginalName("URL_INVALID_TOP_LEVEL_DOMAIN")] UrlInvalidTopLevelDomain = 91, - /// - /// URL contains illegal characters. - /// - [pbr::OriginalName("URL_MALFORMED")] UrlMalformed = 92, - /// - /// URL must contain a host name. - /// - [pbr::OriginalName("URL_NO_HOST")] UrlNoHost = 93, - /// - /// URL not equivalent during upgrade. - /// - [pbr::OriginalName("URL_NOT_EQUIVALENT")] UrlNotEquivalent = 94, - /// - /// URL host name too long to be stored as visible URL (applies to Ad - /// Exchange ads) - /// - [pbr::OriginalName("URL_HOST_NAME_TOO_LONG")] UrlHostNameTooLong = 95, - /// - /// URL must start with a scheme. - /// - [pbr::OriginalName("URL_NO_SCHEME")] UrlNoScheme = 96, - /// - /// URL should end in a valid domain extension, such as .com or .net. - /// - [pbr::OriginalName("URL_NO_TOP_LEVEL_DOMAIN")] UrlNoTopLevelDomain = 97, - /// - /// URL must not end with a path. - /// - [pbr::OriginalName("URL_PATH_NOT_ALLOWED")] UrlPathNotAllowed = 98, - /// - /// URL must not specify a port. - /// - [pbr::OriginalName("URL_PORT_NOT_ALLOWED")] UrlPortNotAllowed = 99, - /// - /// URL must not contain a query. - /// - [pbr::OriginalName("URL_QUERY_NOT_ALLOWED")] UrlQueryNotAllowed = 100, - /// - /// A url scheme is not allowed in front of tag in tracking url template - /// (for example, http://{lpurl}) - /// - [pbr::OriginalName("URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG")] UrlSchemeBeforeExpandedDynamicSearchAdTag = 102, - /// - /// The user does not have permissions to create a template ad for the given - /// template. - /// - [pbr::OriginalName("USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE")] UserDoesNotHaveAccessToTemplate = 103, - /// - /// Expandable setting is inconsistent/wrong. For example, an AdX ad is - /// invalid if it has a expandable vendor format but no expanding directions - /// specified, or expanding directions is specified, but the vendor format is - /// not expandable. - /// - [pbr::OriginalName("INCONSISTENT_EXPANDABLE_SETTINGS")] InconsistentExpandableSettings = 104, - /// - /// Format is invalid - /// - [pbr::OriginalName("INVALID_FORMAT")] InvalidFormat = 105, - /// - /// The text of this field did not match a pattern of allowed values. - /// - [pbr::OriginalName("INVALID_FIELD_TEXT")] InvalidFieldText = 106, - /// - /// Template element is mising - /// - [pbr::OriginalName("ELEMENT_NOT_PRESENT")] ElementNotPresent = 107, - /// - /// Error occurred during image processing - /// - [pbr::OriginalName("IMAGE_ERROR")] ImageError = 108, - /// - /// The value is not within the valid range - /// - [pbr::OriginalName("VALUE_NOT_IN_RANGE")] ValueNotInRange = 109, - /// - /// Template element field is not present - /// - [pbr::OriginalName("FIELD_NOT_PRESENT")] FieldNotPresent = 110, - /// - /// Address is incomplete - /// - [pbr::OriginalName("ADDRESS_NOT_COMPLETE")] AddressNotComplete = 111, - /// - /// Invalid address - /// - [pbr::OriginalName("ADDRESS_INVALID")] AddressInvalid = 112, - /// - /// Error retrieving specified video - /// - [pbr::OriginalName("VIDEO_RETRIEVAL_ERROR")] VideoRetrievalError = 113, - /// - /// Error processing audio - /// - [pbr::OriginalName("AUDIO_ERROR")] AudioError = 114, - /// - /// Display URL is incorrect for YouTube PYV ads - /// - [pbr::OriginalName("INVALID_YOUTUBE_DISPLAY_URL")] InvalidYoutubeDisplayUrl = 115, - /// - /// Too many product Images in GmailAd - /// - [pbr::OriginalName("TOO_MANY_PRODUCT_IMAGES")] TooManyProductImages = 116, - /// - /// Too many product Videos in GmailAd - /// - [pbr::OriginalName("TOO_MANY_PRODUCT_VIDEOS")] TooManyProductVideos = 117, - /// - /// The device preference is not compatible with the ad type - /// - [pbr::OriginalName("INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE")] IncompatibleAdTypeAndDevicePreference = 118, - /// - /// Call tracking is not supported for specified country. - /// - [pbr::OriginalName("CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY")] CalltrackingNotSupportedForCountry = 119, - /// - /// Carrier specific short number is not allowed. - /// - [pbr::OriginalName("CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED")] CarrierSpecificShortNumberNotAllowed = 120, - /// - /// Specified phone number type is disallowed. - /// - [pbr::OriginalName("DISALLOWED_NUMBER_TYPE")] DisallowedNumberType = 121, - /// - /// Phone number not supported for country. - /// - [pbr::OriginalName("PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY")] PhoneNumberNotSupportedForCountry = 122, - /// - /// Phone number not supported with call tracking enabled for country. - /// - [pbr::OriginalName("PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY")] PhoneNumberNotSupportedWithCalltrackingForCountry = 123, - /// - /// Premium rate phone number is not allowed. - /// - [pbr::OriginalName("PREMIUM_RATE_NUMBER_NOT_ALLOWED")] PremiumRateNumberNotAllowed = 124, - /// - /// Vanity phone number is not allowed. - /// - [pbr::OriginalName("VANITY_PHONE_NUMBER_NOT_ALLOWED")] VanityPhoneNumberNotAllowed = 125, - /// - /// Invalid call conversion type id. - /// - [pbr::OriginalName("INVALID_CALL_CONVERSION_TYPE_ID")] InvalidCallConversionTypeId = 126, - /// - /// Cannot disable call conversion and set conversion type id. - /// - [pbr::OriginalName("CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID")] CannotDisableCallConversionAndSetConversionTypeId = 127, - /// - /// Cannot set path2 without path1. - /// - [pbr::OriginalName("CANNOT_SET_PATH2_WITHOUT_PATH1")] CannotSetPath2WithoutPath1 = 128, - /// - /// Missing domain name in campaign setting when adding expanded dynamic - /// search ad. - /// - [pbr::OriginalName("MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME")] MissingDynamicSearchAdsSettingDomainName = 129, - /// - /// The associated ad is not compatible with restriction type. - /// - [pbr::OriginalName("INCOMPATIBLE_WITH_RESTRICTION_TYPE")] IncompatibleWithRestrictionType = 130, - /// - /// Consent for call recording is required for creating/updating call only - /// ads. See https://support.google.com/google-ads/answer/7412639. - /// - [pbr::OriginalName("CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED")] CustomerConsentForCallRecordingRequired = 131, - /// - /// Either an image or a media bundle is required in a display upload ad. - /// - [pbr::OriginalName("MISSING_IMAGE_OR_MEDIA_BUNDLE")] MissingImageOrMediaBundle = 132, - /// - /// The display upload product type is not supported in this campaign. - /// - [pbr::OriginalName("PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN")] ProductTypeNotSupportedInThisCampaign = 133, - /// - /// The default value of an ad placeholder can not be the empty string. - /// - [pbr::OriginalName("PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE")] PlaceholderCannotHaveEmptyDefaultValue = 134, - /// - /// Ad placeholders with countdown functions must not have a default value. - /// - [pbr::OriginalName("PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE")] PlaceholderCountdownFunctionCannotHaveDefaultValue = 135, - /// - /// A previous ad placeholder that had a default value was found which means - /// that all (non-countdown) placeholders must have a default value. This - /// ad placeholder does not have a default value. - /// - [pbr::OriginalName("PLACEHOLDER_DEFAULT_VALUE_MISSING")] PlaceholderDefaultValueMissing = 136, - /// - /// A previous ad placeholder that did not have a default value was found - /// which means that no placeholders may have a default value. This - /// ad placeholder does have a default value. - /// - [pbr::OriginalName("UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE")] UnexpectedPlaceholderDefaultValue = 137, - /// - /// Two ad customizers may not be directly adjacent in an ad text. They must - /// be separated by at least one character. - /// - [pbr::OriginalName("AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT")] AdCustomizersMayNotBeAdjacent = 138, - /// - /// The ad is not associated with any enabled AdGroupAd, and cannot be - /// updated. - /// - [pbr::OriginalName("UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION")] UpdatingAdWithNoEnabledAssociation = 139, - /// - /// Call Ad verification url and final url don't have same domain. - /// - [pbr::OriginalName("CALL_AD_VERIFICATION_URL_FINAL_URL_DOES_NOT_HAVE_SAME_DOMAIN")] CallAdVerificationUrlFinalUrlDoesNotHaveSameDomain = 140, - /// - /// Final url and verification url cannot both be empty for call ads. - /// - [pbr::OriginalName("CALL_AD_FINAL_URL_AND_VERIFICATION_URL_CANNOT_BOTH_BE_EMPTY")] CallAdFinalUrlAndVerificationUrlCannotBothBeEmpty = 154, - /// - /// Too many ad customizers in one asset. - /// - [pbr::OriginalName("TOO_MANY_AD_CUSTOMIZERS")] TooManyAdCustomizers = 141, - /// - /// The ad customizer tag is recognized, but the format is invalid. - /// - [pbr::OriginalName("INVALID_AD_CUSTOMIZER_FORMAT")] InvalidAdCustomizerFormat = 142, - /// - /// Customizer tags cannot be nested. - /// - [pbr::OriginalName("NESTED_AD_CUSTOMIZER_SYNTAX")] NestedAdCustomizerSyntax = 143, - /// - /// The ad customizer syntax used in the ad is not supported. - /// - [pbr::OriginalName("UNSUPPORTED_AD_CUSTOMIZER_SYNTAX")] UnsupportedAdCustomizerSyntax = 144, - /// - /// There exists unpaired brace in the ad customizer tag. - /// - [pbr::OriginalName("UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG")] UnpairedBraceInAdCustomizerTag = 145, - /// - /// More than one type of countdown tag exists among all text lines. - /// - [pbr::OriginalName("MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS")] MoreThanOneCountdownTagTypeExists = 146, - /// - /// Date time in the countdown tag is invalid. - /// - [pbr::OriginalName("DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID")] DateTimeInCountdownTagIsInvalid = 147, - /// - /// Date time in the countdown tag is in the past. - /// - [pbr::OriginalName("DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST")] DateTimeInCountdownTagIsPast = 148, - /// - /// Cannot recognize the ad customizer tag. - /// - [pbr::OriginalName("UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND")] UnrecognizedAdCustomizerTagFound = 149, - /// - /// Customizer type forbidden for this field. - /// - [pbr::OriginalName("CUSTOMIZER_TYPE_FORBIDDEN_FOR_FIELD")] CustomizerTypeForbiddenForField = 150, - /// - /// Customizer attribute name is invalid. - /// - [pbr::OriginalName("INVALID_CUSTOMIZER_ATTRIBUTE_NAME")] InvalidCustomizerAttributeName = 151, - /// - /// App store value does not match the value of the app store in the app - /// specified in the campaign. - /// - [pbr::OriginalName("STORE_MISMATCH")] StoreMismatch = 152, - /// - /// Missing required image aspect ratio. - /// - [pbr::OriginalName("MISSING_REQUIRED_IMAGE_ASPECT_RATIO")] MissingRequiredImageAspectRatio = 153, - /// - /// Aspect ratios mismatch between different assets. - /// - [pbr::OriginalName("MISMATCHED_ASPECT_RATIOS")] MismatchedAspectRatios = 155, - /// - /// Images must be unique between different carousel card assets. - /// - [pbr::OriginalName("DUPLICATE_IMAGE_ACROSS_CAROUSEL_CARDS")] DuplicateImageAcrossCarouselCards = 156, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroup.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroup.g.cs deleted file mode 100755 index 45588063a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroup.g.cs +++ /dev/null @@ -1,1915 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group.proto - public static partial class AdGroupReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGjZn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2N1c3RvbV9wYXJhbWV0", - "ZXIucHJvdG8aRWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vZXhw", - "bG9yZXJfYXV0b19vcHRpbWl6ZXJfc2V0dGluZy5wcm90bxo3Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2NvbW1vbi90YXJnZXRpbmdfc2V0dGluZy5wcm90", - "bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2FkX2dyb3VwX2Fk", - "X3JvdGF0aW9uX21vZGUucHJvdG8aNGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcy9hZF9ncm91cF9zdGF0dXMucHJvdG8aMmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9hZF9ncm91cF90eXBlLnByb3RvGjVnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfZmllbGRfdHlwZS5wcm90", - "bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fzc2V0X3NldF90", - "eXBlLnByb3RvGjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmlk", - "ZGluZ19zb3VyY2UucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcy90YXJnZXRpbmdfZGltZW5zaW9uLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "IrYSCgdBZEdyb3VwEj8KDXJlc291cmNlX25hbWUYASABKAlCKOBBBfpBIgog", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXASFAoCaWQYIiABKANC", - "A+BBA0gAiAEBEhEKBG5hbWUYIyABKAlIAYgBARJPCgZzdGF0dXMYBSABKA4y", - "Py5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQWRHcm91cFN0YXR1", - "c0VudW0uQWRHcm91cFN0YXR1cxJOCgR0eXBlGAwgASgOMjsuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLkFkR3JvdXBUeXBlRW51bS5BZEdyb3Vw", - "VHlwZUID4EEFEmkKEGFkX3JvdGF0aW9uX21vZGUYFiABKA4yTy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQWRHcm91cEFkUm90YXRpb25Nb2Rl", - "RW51bS5BZEdyb3VwQWRSb3RhdGlvbk1vZGUSRAoNYmFzZV9hZF9ncm91cBgk", - "IAEoCUIo4EED+kEiCiBnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91", - "cEgCiAEBEiIKFXRyYWNraW5nX3VybF90ZW1wbGF0ZRglIAEoCUgDiAEBEk8K", - "FXVybF9jdXN0b21fcGFyYW1ldGVycxgGIAMoCzIwLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5jb21tb24uQ3VzdG9tUGFyYW1ldGVyEkAKCGNhbXBhaWdu", - "GCYgASgJQingQQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1w", - "YWlnbkgEiAEBEhsKDmNwY19iaWRfbWljcm9zGCcgASgDSAWIAQESKgoYZWZm", - "ZWN0aXZlX2NwY19iaWRfbWljcm9zGDkgASgDQgPgQQNIBogBARIbCg5jcG1f", - "YmlkX21pY3JvcxgoIAEoA0gHiAEBEh4KEXRhcmdldF9jcGFfbWljcm9zGCkg", - "ASgDSAiIAQESGwoOY3B2X2JpZF9taWNyb3MYKiABKANICYgBARIeChF0YXJn", - "ZXRfY3BtX21pY3JvcxgrIAEoA0gKiAEBEhgKC3RhcmdldF9yb2FzGCwgASgB", - "SAuIAQESIwoWcGVyY2VudF9jcGNfYmlkX21pY3JvcxgtIAEoA0gMiAEBEmYK", - "H2V4cGxvcmVyX2F1dG9fb3B0aW1pemVyX3NldHRpbmcYFSABKAsyPS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkV4cGxvcmVyQXV0b09wdGlt", - "aXplclNldHRpbmcSbwocZGlzcGxheV9jdXN0b21fYmlkX2RpbWVuc2lvbhgX", - "IAEoDjJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5UYXJnZXRp", - "bmdEaW1lbnNpb25FbnVtLlRhcmdldGluZ0RpbWVuc2lvbhIdChBmaW5hbF91", - "cmxfc3VmZml4GC4gASgJSA2IAQESTAoRdGFyZ2V0aW5nX3NldHRpbmcYGSAB", - "KAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlRhcmdldGlu", - "Z1NldHRpbmcSWgoQYXVkaWVuY2Vfc2V0dGluZxg4IAEoCzI7Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cC5BdWRpZW5jZVNl", - "dHRpbmdCA+BBBRItChtlZmZlY3RpdmVfdGFyZ2V0X2NwYV9taWNyb3MYLyAB", - "KANCA+BBA0gOiAEBEmkKG2VmZmVjdGl2ZV90YXJnZXRfY3BhX3NvdXJjZRgd", - "IAEoDjI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5CaWRkaW5n", - "U291cmNlRW51bS5CaWRkaW5nU291cmNlQgPgQQMSJwoVZWZmZWN0aXZlX3Rh", - "cmdldF9yb2FzGDAgASgBQgPgQQNID4gBARJqChxlZmZlY3RpdmVfdGFyZ2V0", - "X3JvYXNfc291cmNlGCAgASgOMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkJpZGRpbmdTb3VyY2VFbnVtLkJpZGRpbmdTb3VyY2VCA+BBAxI9", - "CgZsYWJlbHMYMSADKAlCLeBBA/pBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0FkR3JvdXBMYWJlbBJsCiFleGNsdWRlZF9wYXJlbnRfYXNzZXRfZmll", - "bGRfdHlwZXMYNiADKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuQXNzZXRGaWVsZFR5cGVFbnVtLkFzc2V0RmllbGRUeXBlEmYKH2V4Y2x1", - "ZGVkX3BhcmVudF9hc3NldF9zZXRfdHlwZXMYOiADKA4yPS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRTZXRUeXBlRW51bS5Bc3NldFNl", - "dFR5cGUaNAoPQXVkaWVuY2VTZXR0aW5nEiEKFHVzZV9hdWRpZW5jZV9ncm91", - "cGVkGAEgASgIQgPgQQU6VepBUgogZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0FkR3JvdXASLmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2FkR3JvdXBzL3th", - "ZF9ncm91cF9pZH1CBQoDX2lkQgcKBV9uYW1lQhAKDl9iYXNlX2FkX2dyb3Vw", - "QhgKFl90cmFja2luZ191cmxfdGVtcGxhdGVCCwoJX2NhbXBhaWduQhEKD19j", - "cGNfYmlkX21pY3Jvc0IbChlfZWZmZWN0aXZlX2NwY19iaWRfbWljcm9zQhEK", - "D19jcG1fYmlkX21pY3Jvc0IUChJfdGFyZ2V0X2NwYV9taWNyb3NCEQoPX2Nw", - "dl9iaWRfbWljcm9zQhQKEl90YXJnZXRfY3BtX21pY3Jvc0IOCgxfdGFyZ2V0", - "X3JvYXNCGQoXX3BlcmNlbnRfY3BjX2JpZF9taWNyb3NCEwoRX2ZpbmFsX3Vy", - "bF9zdWZmaXhCHgocX2VmZmVjdGl2ZV90YXJnZXRfY3BhX21pY3Jvc0IYChZf", - "ZWZmZWN0aXZlX3RhcmdldF9yb2FzQv4BCiZjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlc0IMQWRHcm91cFByb3RvUAFaS2dvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpS", - "ZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.TargetingSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroup), global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Parser, new[]{ "ResourceName", "Id", "Name", "Status", "Type", "AdRotationMode", "BaseAdGroup", "TrackingUrlTemplate", "UrlCustomParameters", "Campaign", "CpcBidMicros", "EffectiveCpcBidMicros", "CpmBidMicros", "TargetCpaMicros", "CpvBidMicros", "TargetCpmMicros", "TargetRoas", "PercentCpcBidMicros", "ExplorerAutoOptimizerSetting", "DisplayCustomBidDimension", "FinalUrlSuffix", "TargetingSetting", "AudienceSetting", "EffectiveTargetCpaMicros", "EffectiveTargetCpaSource", "EffectiveTargetRoas", "EffectiveTargetRoasSource", "Labels", "ExcludedParentAssetFieldTypes", "ExcludedParentAssetSetTypes" }, new[]{ "Id", "Name", "BaseAdGroup", "TrackingUrlTemplate", "Campaign", "CpcBidMicros", "EffectiveCpcBidMicros", "CpmBidMicros", "TargetCpaMicros", "CpvBidMicros", "TargetCpmMicros", "TargetRoas", "PercentCpcBidMicros", "FinalUrlSuffix", "EffectiveTargetCpaMicros", "EffectiveTargetRoas" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Types.AudienceSetting), global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Types.AudienceSetting.Parser, new[]{ "UseAudienceGrouped" }, null, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group. - /// - public sealed partial class AdGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroup()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroup(AdGroup other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - status_ = other.status_; - type_ = other.type_; - adRotationMode_ = other.adRotationMode_; - baseAdGroup_ = other.baseAdGroup_; - trackingUrlTemplate_ = other.trackingUrlTemplate_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - campaign_ = other.campaign_; - cpcBidMicros_ = other.cpcBidMicros_; - effectiveCpcBidMicros_ = other.effectiveCpcBidMicros_; - cpmBidMicros_ = other.cpmBidMicros_; - targetCpaMicros_ = other.targetCpaMicros_; - cpvBidMicros_ = other.cpvBidMicros_; - targetCpmMicros_ = other.targetCpmMicros_; - targetRoas_ = other.targetRoas_; - percentCpcBidMicros_ = other.percentCpcBidMicros_; - explorerAutoOptimizerSetting_ = other.explorerAutoOptimizerSetting_ != null ? other.explorerAutoOptimizerSetting_.Clone() : null; - displayCustomBidDimension_ = other.displayCustomBidDimension_; - finalUrlSuffix_ = other.finalUrlSuffix_; - targetingSetting_ = other.targetingSetting_ != null ? other.targetingSetting_.Clone() : null; - audienceSetting_ = other.audienceSetting_ != null ? other.audienceSetting_.Clone() : null; - effectiveTargetCpaMicros_ = other.effectiveTargetCpaMicros_; - effectiveTargetCpaSource_ = other.effectiveTargetCpaSource_; - effectiveTargetRoas_ = other.effectiveTargetRoas_; - effectiveTargetRoasSource_ = other.effectiveTargetRoasSource_; - labels_ = other.labels_.Clone(); - excludedParentAssetFieldTypes_ = other.excludedParentAssetFieldTypes_.Clone(); - excludedParentAssetSetTypes_ = other.excludedParentAssetSetTypes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroup Clone() { - return new AdGroup(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group. - /// Ad group resource names have the form: - /// - /// `customers/{customer_id}/adGroups/{ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 34; - private long id_; - /// - /// Output only. The ID of the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 35; - private string name_; - /// - /// The name of the ad group. - /// - /// This field is required and should not be empty when creating new ad - /// groups. - /// - /// It must contain fewer than 255 UTF-8 full-width characters. - /// - /// It must not contain any null (code point 0x0), NL line feed - /// (code point 0xA) or carriage return (code point 0xD) characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus.Unspecified; - /// - /// The status of the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 12; - private global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType type_ = global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType.Unspecified; - /// - /// Immutable. The type of the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "ad_rotation_mode" field. - public const int AdRotationModeFieldNumber = 22; - private global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode adRotationMode_ = global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode.Unspecified; - /// - /// The ad rotation mode of the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode AdRotationMode { - get { return adRotationMode_; } - set { - adRotationMode_ = value; - } - } - - /// Field number for the "base_ad_group" field. - public const int BaseAdGroupFieldNumber = 36; - private string baseAdGroup_; - /// - /// Output only. For draft or experiment ad groups, this field is the resource name of the - /// base ad group from which this ad group was created. If a draft or - /// experiment ad group does not have a base ad group, then this field is null. - /// - /// For base ad groups, this field equals the ad group resource name. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BaseAdGroup { - get { return baseAdGroup_ ?? ""; } - set { - baseAdGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "base_ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBaseAdGroup { - get { return baseAdGroup_ != null; } - } - /// Clears the value of the "base_ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBaseAdGroup() { - baseAdGroup_ = null; - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 37; - private string trackingUrlTemplate_; - /// - /// The URL template for constructing a tracking URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// The list of mappings used to substitute custom parameter tags in a - /// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 38; - private string campaign_; - /// - /// Immutable. The campaign to which the ad group belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "cpc_bid_micros" field. - public const int CpcBidMicrosFieldNumber = 39; - private long cpcBidMicros_; - /// - /// The maximum CPC (cost-per-click) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidMicros_ = value; - } - } - /// Gets whether the "cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "effective_cpc_bid_micros" field. - public const int EffectiveCpcBidMicrosFieldNumber = 57; - private long effectiveCpcBidMicros_; - /// - /// Output only. Value will be same as that of the CPC (cost-per-click) bid value when the - /// bidding strategy is one of manual cpc, enhanced cpc, page one promoted or - /// target outrank share, otherwise the value will be null. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EffectiveCpcBidMicros { - get { if ((_hasBits0 & 1024) != 0) { return effectiveCpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1024; - effectiveCpcBidMicros_ = value; - } - } - /// Gets whether the "effective_cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectiveCpcBidMicros { - get { return (_hasBits0 & 1024) != 0; } - } - /// Clears the value of the "effective_cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectiveCpcBidMicros() { - _hasBits0 &= ~1024; - } - - /// Field number for the "cpm_bid_micros" field. - public const int CpmBidMicrosFieldNumber = 40; - private long cpmBidMicros_; - /// - /// The maximum CPM (cost-per-thousand viewable impressions) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpmBidMicros { - get { if ((_hasBits0 & 4) != 0) { return cpmBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - cpmBidMicros_ = value; - } - } - /// Gets whether the "cpm_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpmBidMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "cpm_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpmBidMicros() { - _hasBits0 &= ~4; - } - - /// Field number for the "target_cpa_micros" field. - public const int TargetCpaMicrosFieldNumber = 41; - private long targetCpaMicros_; - /// - /// The target CPA (cost-per-acquisition). If the ad group's campaign - /// bidding strategy is TargetCpa or MaximizeConversions (with its target_cpa - /// field set), then this field overrides the target CPA specified in the - /// campaign's bidding strategy. - /// Otherwise, this value is ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetCpaMicros { - get { if ((_hasBits0 & 8) != 0) { return targetCpaMicros_; } else { return 0L; } } - set { - _hasBits0 |= 8; - targetCpaMicros_ = value; - } - } - /// Gets whether the "target_cpa_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetCpaMicros { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "target_cpa_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetCpaMicros() { - _hasBits0 &= ~8; - } - - /// Field number for the "cpv_bid_micros" field. - public const int CpvBidMicrosFieldNumber = 42; - private long cpvBidMicros_; - /// - /// The CPV (cost-per-view) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpvBidMicros { - get { if ((_hasBits0 & 16) != 0) { return cpvBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 16; - cpvBidMicros_ = value; - } - } - /// Gets whether the "cpv_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpvBidMicros { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "cpv_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpvBidMicros() { - _hasBits0 &= ~16; - } - - /// Field number for the "target_cpm_micros" field. - public const int TargetCpmMicrosFieldNumber = 43; - private long targetCpmMicros_; - /// - /// Average amount in micros that the advertiser is willing to pay for every - /// thousand times the ad is shown. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetCpmMicros { - get { if ((_hasBits0 & 32) != 0) { return targetCpmMicros_; } else { return 0L; } } - set { - _hasBits0 |= 32; - targetCpmMicros_ = value; - } - } - /// Gets whether the "target_cpm_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetCpmMicros { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "target_cpm_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetCpmMicros() { - _hasBits0 &= ~32; - } - - /// Field number for the "target_roas" field. - public const int TargetRoasFieldNumber = 44; - private double targetRoas_; - /// - /// The target ROAS (return-on-ad-spend) override. If the ad group's campaign - /// bidding strategy is TargetRoas or MaximizeConversionValue (with its - /// target_roas field set), then this field overrides the target ROAS specified - /// in the campaign's bidding strategy. - /// Otherwise, this value is ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double TargetRoas { - get { if ((_hasBits0 & 64) != 0) { return targetRoas_; } else { return 0D; } } - set { - _hasBits0 |= 64; - targetRoas_ = value; - } - } - /// Gets whether the "target_roas" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetRoas { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "target_roas" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetRoas() { - _hasBits0 &= ~64; - } - - /// Field number for the "percent_cpc_bid_micros" field. - public const int PercentCpcBidMicrosFieldNumber = 45; - private long percentCpcBidMicros_; - /// - /// The percent cpc bid amount, expressed as a fraction of the advertised price - /// for some good or service. The valid range for the fraction is [0,1) and the - /// value stored here is 1,000,000 * [fraction]. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PercentCpcBidMicros { - get { if ((_hasBits0 & 128) != 0) { return percentCpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 128; - percentCpcBidMicros_ = value; - } - } - /// Gets whether the "percent_cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPercentCpcBidMicros { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "percent_cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPercentCpcBidMicros() { - _hasBits0 &= ~128; - } - - /// Field number for the "explorer_auto_optimizer_setting" field. - public const int ExplorerAutoOptimizerSettingFieldNumber = 21; - private global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSetting explorerAutoOptimizerSetting_; - /// - /// Settings for the Display Campaign Optimizer, initially termed "Explorer". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSetting ExplorerAutoOptimizerSetting { - get { return explorerAutoOptimizerSetting_; } - set { - explorerAutoOptimizerSetting_ = value; - } - } - - /// Field number for the "display_custom_bid_dimension" field. - public const int DisplayCustomBidDimensionFieldNumber = 23; - private global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension displayCustomBidDimension_ = global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension.Unspecified; - /// - /// Allows advertisers to specify a targeting dimension on which to place - /// absolute bids. This is only applicable for campaigns that target only the - /// display network and not search. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension DisplayCustomBidDimension { - get { return displayCustomBidDimension_; } - set { - displayCustomBidDimension_ = value; - } - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 46; - private string finalUrlSuffix_; - /// - /// URL template for appending params to Final URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - /// Field number for the "targeting_setting" field. - public const int TargetingSettingFieldNumber = 25; - private global::Google.Ads.GoogleAds.V12.Common.TargetingSetting targetingSetting_; - /// - /// Setting for targeting related features. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetingSetting TargetingSetting { - get { return targetingSetting_; } - set { - targetingSetting_ = value; - } - } - - /// Field number for the "audience_setting" field. - public const int AudienceSettingFieldNumber = 56; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Types.AudienceSetting audienceSetting_; - /// - /// Immutable. Setting for audience related features. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Types.AudienceSetting AudienceSetting { - get { return audienceSetting_; } - set { - audienceSetting_ = value; - } - } - - /// Field number for the "effective_target_cpa_micros" field. - public const int EffectiveTargetCpaMicrosFieldNumber = 47; - private long effectiveTargetCpaMicros_; - /// - /// Output only. The effective target CPA (cost-per-acquisition). - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EffectiveTargetCpaMicros { - get { if ((_hasBits0 & 256) != 0) { return effectiveTargetCpaMicros_; } else { return 0L; } } - set { - _hasBits0 |= 256; - effectiveTargetCpaMicros_ = value; - } - } - /// Gets whether the "effective_target_cpa_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectiveTargetCpaMicros { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "effective_target_cpa_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectiveTargetCpaMicros() { - _hasBits0 &= ~256; - } - - /// Field number for the "effective_target_cpa_source" field. - public const int EffectiveTargetCpaSourceFieldNumber = 29; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource effectiveTargetCpaSource_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified; - /// - /// Output only. Source of the effective target CPA. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource EffectiveTargetCpaSource { - get { return effectiveTargetCpaSource_; } - set { - effectiveTargetCpaSource_ = value; - } - } - - /// Field number for the "effective_target_roas" field. - public const int EffectiveTargetRoasFieldNumber = 48; - private double effectiveTargetRoas_; - /// - /// Output only. The effective target ROAS (return-on-ad-spend). - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double EffectiveTargetRoas { - get { if ((_hasBits0 & 512) != 0) { return effectiveTargetRoas_; } else { return 0D; } } - set { - _hasBits0 |= 512; - effectiveTargetRoas_ = value; - } - } - /// Gets whether the "effective_target_roas" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectiveTargetRoas { - get { return (_hasBits0 & 512) != 0; } - } - /// Clears the value of the "effective_target_roas" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectiveTargetRoas() { - _hasBits0 &= ~512; - } - - /// Field number for the "effective_target_roas_source" field. - public const int EffectiveTargetRoasSourceFieldNumber = 32; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource effectiveTargetRoasSource_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified; - /// - /// Output only. Source of the effective target ROAS. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource EffectiveTargetRoasSource { - get { return effectiveTargetRoasSource_; } - set { - effectiveTargetRoasSource_ = value; - } - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 49; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForString(394); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); - /// - /// Output only. The resource names of labels attached to this ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } - } - - /// Field number for the "excluded_parent_asset_field_types" field. - public const int ExcludedParentAssetFieldTypesFieldNumber = 54; - private static readonly pb::FieldCodec _repeated_excludedParentAssetFieldTypes_codec - = pb::FieldCodec.ForEnum(434, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) x); - private readonly pbc::RepeatedField excludedParentAssetFieldTypes_ = new pbc::RepeatedField(); - /// - /// The asset field types that should be excluded from this ad group. Asset - /// links with these field types will not be inherited by this ad group from - /// the upper levels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExcludedParentAssetFieldTypes { - get { return excludedParentAssetFieldTypes_; } - } - - /// Field number for the "excluded_parent_asset_set_types" field. - public const int ExcludedParentAssetSetTypesFieldNumber = 58; - private static readonly pb::FieldCodec _repeated_excludedParentAssetSetTypes_codec - = pb::FieldCodec.ForEnum(466, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType) x); - private readonly pbc::RepeatedField excludedParentAssetSetTypes_ = new pbc::RepeatedField(); - /// - /// The asset set types that should be excluded from this ad group. Asset set - /// links with these types will not be inherited by this ad group from the - /// upper levels. - /// Location group types (GMB_DYNAMIC_LOCATION_GROUP, - /// CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of - /// LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all - /// location group asset sets are not allowed to be linked to this ad group, - /// and all Location Extension (LE) and Affiliate Location Extensions (ALE) - /// will not be served under this ad group. - /// Only LOCATION_SYNC is currently supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExcludedParentAssetSetTypes { - get { return excludedParentAssetSetTypes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Status != other.Status) return false; - if (Type != other.Type) return false; - if (AdRotationMode != other.AdRotationMode) return false; - if (BaseAdGroup != other.BaseAdGroup) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (Campaign != other.Campaign) return false; - if (CpcBidMicros != other.CpcBidMicros) return false; - if (EffectiveCpcBidMicros != other.EffectiveCpcBidMicros) return false; - if (CpmBidMicros != other.CpmBidMicros) return false; - if (TargetCpaMicros != other.TargetCpaMicros) return false; - if (CpvBidMicros != other.CpvBidMicros) return false; - if (TargetCpmMicros != other.TargetCpmMicros) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetRoas, other.TargetRoas)) return false; - if (PercentCpcBidMicros != other.PercentCpcBidMicros) return false; - if (!object.Equals(ExplorerAutoOptimizerSetting, other.ExplorerAutoOptimizerSetting)) return false; - if (DisplayCustomBidDimension != other.DisplayCustomBidDimension) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - if (!object.Equals(TargetingSetting, other.TargetingSetting)) return false; - if (!object.Equals(AudienceSetting, other.AudienceSetting)) return false; - if (EffectiveTargetCpaMicros != other.EffectiveTargetCpaMicros) return false; - if (EffectiveTargetCpaSource != other.EffectiveTargetCpaSource) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EffectiveTargetRoas, other.EffectiveTargetRoas)) return false; - if (EffectiveTargetRoasSource != other.EffectiveTargetRoasSource) return false; - if(!labels_.Equals(other.labels_)) return false; - if(!excludedParentAssetFieldTypes_.Equals(other.excludedParentAssetFieldTypes_)) return false; - if(!excludedParentAssetSetTypes_.Equals(other.excludedParentAssetSetTypes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType.Unspecified) hash ^= Type.GetHashCode(); - if (AdRotationMode != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode.Unspecified) hash ^= AdRotationMode.GetHashCode(); - if (HasBaseAdGroup) hash ^= BaseAdGroup.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasCpcBidMicros) hash ^= CpcBidMicros.GetHashCode(); - if (HasEffectiveCpcBidMicros) hash ^= EffectiveCpcBidMicros.GetHashCode(); - if (HasCpmBidMicros) hash ^= CpmBidMicros.GetHashCode(); - if (HasTargetCpaMicros) hash ^= TargetCpaMicros.GetHashCode(); - if (HasCpvBidMicros) hash ^= CpvBidMicros.GetHashCode(); - if (HasTargetCpmMicros) hash ^= TargetCpmMicros.GetHashCode(); - if (HasTargetRoas) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetRoas); - if (HasPercentCpcBidMicros) hash ^= PercentCpcBidMicros.GetHashCode(); - if (explorerAutoOptimizerSetting_ != null) hash ^= ExplorerAutoOptimizerSetting.GetHashCode(); - if (DisplayCustomBidDimension != global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension.Unspecified) hash ^= DisplayCustomBidDimension.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (targetingSetting_ != null) hash ^= TargetingSetting.GetHashCode(); - if (audienceSetting_ != null) hash ^= AudienceSetting.GetHashCode(); - if (HasEffectiveTargetCpaMicros) hash ^= EffectiveTargetCpaMicros.GetHashCode(); - if (EffectiveTargetCpaSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) hash ^= EffectiveTargetCpaSource.GetHashCode(); - if (HasEffectiveTargetRoas) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EffectiveTargetRoas); - if (EffectiveTargetRoasSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) hash ^= EffectiveTargetRoasSource.GetHashCode(); - hash ^= labels_.GetHashCode(); - hash ^= excludedParentAssetFieldTypes_.GetHashCode(); - hash ^= excludedParentAssetSetTypes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType.Unspecified) { - output.WriteRawTag(96); - output.WriteEnum((int) Type); - } - if (explorerAutoOptimizerSetting_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(ExplorerAutoOptimizerSetting); - } - if (AdRotationMode != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) AdRotationMode); - } - if (DisplayCustomBidDimension != global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension.Unspecified) { - output.WriteRawTag(184, 1); - output.WriteEnum((int) DisplayCustomBidDimension); - } - if (targetingSetting_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(TargetingSetting); - } - if (EffectiveTargetCpaSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(232, 1); - output.WriteEnum((int) EffectiveTargetCpaSource); - } - if (EffectiveTargetRoasSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(128, 2); - output.WriteEnum((int) EffectiveTargetRoasSource); - } - if (HasId) { - output.WriteRawTag(144, 2); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(154, 2); - output.WriteString(Name); - } - if (HasBaseAdGroup) { - output.WriteRawTag(162, 2); - output.WriteString(BaseAdGroup); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(170, 2); - output.WriteString(TrackingUrlTemplate); - } - if (HasCampaign) { - output.WriteRawTag(178, 2); - output.WriteString(Campaign); - } - if (HasCpcBidMicros) { - output.WriteRawTag(184, 2); - output.WriteInt64(CpcBidMicros); - } - if (HasCpmBidMicros) { - output.WriteRawTag(192, 2); - output.WriteInt64(CpmBidMicros); - } - if (HasTargetCpaMicros) { - output.WriteRawTag(200, 2); - output.WriteInt64(TargetCpaMicros); - } - if (HasCpvBidMicros) { - output.WriteRawTag(208, 2); - output.WriteInt64(CpvBidMicros); - } - if (HasTargetCpmMicros) { - output.WriteRawTag(216, 2); - output.WriteInt64(TargetCpmMicros); - } - if (HasTargetRoas) { - output.WriteRawTag(225, 2); - output.WriteDouble(TargetRoas); - } - if (HasPercentCpcBidMicros) { - output.WriteRawTag(232, 2); - output.WriteInt64(PercentCpcBidMicros); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(242, 2); - output.WriteString(FinalUrlSuffix); - } - if (HasEffectiveTargetCpaMicros) { - output.WriteRawTag(248, 2); - output.WriteInt64(EffectiveTargetCpaMicros); - } - if (HasEffectiveTargetRoas) { - output.WriteRawTag(129, 3); - output.WriteDouble(EffectiveTargetRoas); - } - labels_.WriteTo(output, _repeated_labels_codec); - excludedParentAssetFieldTypes_.WriteTo(output, _repeated_excludedParentAssetFieldTypes_codec); - if (audienceSetting_ != null) { - output.WriteRawTag(194, 3); - output.WriteMessage(AudienceSetting); - } - if (HasEffectiveCpcBidMicros) { - output.WriteRawTag(200, 3); - output.WriteInt64(EffectiveCpcBidMicros); - } - excludedParentAssetSetTypes_.WriteTo(output, _repeated_excludedParentAssetSetTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType.Unspecified) { - output.WriteRawTag(96); - output.WriteEnum((int) Type); - } - if (explorerAutoOptimizerSetting_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(ExplorerAutoOptimizerSetting); - } - if (AdRotationMode != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) AdRotationMode); - } - if (DisplayCustomBidDimension != global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension.Unspecified) { - output.WriteRawTag(184, 1); - output.WriteEnum((int) DisplayCustomBidDimension); - } - if (targetingSetting_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(TargetingSetting); - } - if (EffectiveTargetCpaSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(232, 1); - output.WriteEnum((int) EffectiveTargetCpaSource); - } - if (EffectiveTargetRoasSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(128, 2); - output.WriteEnum((int) EffectiveTargetRoasSource); - } - if (HasId) { - output.WriteRawTag(144, 2); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(154, 2); - output.WriteString(Name); - } - if (HasBaseAdGroup) { - output.WriteRawTag(162, 2); - output.WriteString(BaseAdGroup); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(170, 2); - output.WriteString(TrackingUrlTemplate); - } - if (HasCampaign) { - output.WriteRawTag(178, 2); - output.WriteString(Campaign); - } - if (HasCpcBidMicros) { - output.WriteRawTag(184, 2); - output.WriteInt64(CpcBidMicros); - } - if (HasCpmBidMicros) { - output.WriteRawTag(192, 2); - output.WriteInt64(CpmBidMicros); - } - if (HasTargetCpaMicros) { - output.WriteRawTag(200, 2); - output.WriteInt64(TargetCpaMicros); - } - if (HasCpvBidMicros) { - output.WriteRawTag(208, 2); - output.WriteInt64(CpvBidMicros); - } - if (HasTargetCpmMicros) { - output.WriteRawTag(216, 2); - output.WriteInt64(TargetCpmMicros); - } - if (HasTargetRoas) { - output.WriteRawTag(225, 2); - output.WriteDouble(TargetRoas); - } - if (HasPercentCpcBidMicros) { - output.WriteRawTag(232, 2); - output.WriteInt64(PercentCpcBidMicros); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(242, 2); - output.WriteString(FinalUrlSuffix); - } - if (HasEffectiveTargetCpaMicros) { - output.WriteRawTag(248, 2); - output.WriteInt64(EffectiveTargetCpaMicros); - } - if (HasEffectiveTargetRoas) { - output.WriteRawTag(129, 3); - output.WriteDouble(EffectiveTargetRoas); - } - labels_.WriteTo(ref output, _repeated_labels_codec); - excludedParentAssetFieldTypes_.WriteTo(ref output, _repeated_excludedParentAssetFieldTypes_codec); - if (audienceSetting_ != null) { - output.WriteRawTag(194, 3); - output.WriteMessage(AudienceSetting); - } - if (HasEffectiveCpcBidMicros) { - output.WriteRawTag(200, 3); - output.WriteInt64(EffectiveCpcBidMicros); - } - excludedParentAssetSetTypes_.WriteTo(ref output, _repeated_excludedParentAssetSetTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (AdRotationMode != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdRotationMode); - } - if (HasBaseAdGroup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseAdGroup); - } - if (HasTrackingUrlTemplate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (HasCampaign) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CpcBidMicros); - } - if (HasEffectiveCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(EffectiveCpcBidMicros); - } - if (HasCpmBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CpmBidMicros); - } - if (HasTargetCpaMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TargetCpaMicros); - } - if (HasCpvBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CpvBidMicros); - } - if (HasTargetCpmMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TargetCpmMicros); - } - if (HasTargetRoas) { - size += 2 + 8; - } - if (HasPercentCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(PercentCpcBidMicros); - } - if (explorerAutoOptimizerSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExplorerAutoOptimizerSetting); - } - if (DisplayCustomBidDimension != global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DisplayCustomBidDimension); - } - if (HasFinalUrlSuffix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (targetingSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetingSetting); - } - if (audienceSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AudienceSetting); - } - if (HasEffectiveTargetCpaMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(EffectiveTargetCpaMicros); - } - if (EffectiveTargetCpaSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EffectiveTargetCpaSource); - } - if (HasEffectiveTargetRoas) { - size += 2 + 8; - } - if (EffectiveTargetRoasSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EffectiveTargetRoasSource); - } - size += labels_.CalculateSize(_repeated_labels_codec); - size += excludedParentAssetFieldTypes_.CalculateSize(_repeated_excludedParentAssetFieldTypes_codec); - size += excludedParentAssetSetTypes_.CalculateSize(_repeated_excludedParentAssetSetTypes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroup other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus.Unspecified) { - Status = other.Status; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType.Unspecified) { - Type = other.Type; - } - if (other.AdRotationMode != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode.Unspecified) { - AdRotationMode = other.AdRotationMode; - } - if (other.HasBaseAdGroup) { - BaseAdGroup = other.BaseAdGroup; - } - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasCpcBidMicros) { - CpcBidMicros = other.CpcBidMicros; - } - if (other.HasEffectiveCpcBidMicros) { - EffectiveCpcBidMicros = other.EffectiveCpcBidMicros; - } - if (other.HasCpmBidMicros) { - CpmBidMicros = other.CpmBidMicros; - } - if (other.HasTargetCpaMicros) { - TargetCpaMicros = other.TargetCpaMicros; - } - if (other.HasCpvBidMicros) { - CpvBidMicros = other.CpvBidMicros; - } - if (other.HasTargetCpmMicros) { - TargetCpmMicros = other.TargetCpmMicros; - } - if (other.HasTargetRoas) { - TargetRoas = other.TargetRoas; - } - if (other.HasPercentCpcBidMicros) { - PercentCpcBidMicros = other.PercentCpcBidMicros; - } - if (other.explorerAutoOptimizerSetting_ != null) { - if (explorerAutoOptimizerSetting_ == null) { - ExplorerAutoOptimizerSetting = new global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSetting(); - } - ExplorerAutoOptimizerSetting.MergeFrom(other.ExplorerAutoOptimizerSetting); - } - if (other.DisplayCustomBidDimension != global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension.Unspecified) { - DisplayCustomBidDimension = other.DisplayCustomBidDimension; - } - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - if (other.targetingSetting_ != null) { - if (targetingSetting_ == null) { - TargetingSetting = new global::Google.Ads.GoogleAds.V12.Common.TargetingSetting(); - } - TargetingSetting.MergeFrom(other.TargetingSetting); - } - if (other.audienceSetting_ != null) { - if (audienceSetting_ == null) { - AudienceSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Types.AudienceSetting(); - } - AudienceSetting.MergeFrom(other.AudienceSetting); - } - if (other.HasEffectiveTargetCpaMicros) { - EffectiveTargetCpaMicros = other.EffectiveTargetCpaMicros; - } - if (other.EffectiveTargetCpaSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - EffectiveTargetCpaSource = other.EffectiveTargetCpaSource; - } - if (other.HasEffectiveTargetRoas) { - EffectiveTargetRoas = other.EffectiveTargetRoas; - } - if (other.EffectiveTargetRoasSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - EffectiveTargetRoasSource = other.EffectiveTargetRoasSource; - } - labels_.Add(other.labels_); - excludedParentAssetFieldTypes_.Add(other.excludedParentAssetFieldTypes_); - excludedParentAssetSetTypes_.Add(other.excludedParentAssetSetTypes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus) input.ReadEnum(); - break; - } - case 50: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 96: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType) input.ReadEnum(); - break; - } - case 170: { - if (explorerAutoOptimizerSetting_ == null) { - ExplorerAutoOptimizerSetting = new global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSetting(); - } - input.ReadMessage(ExplorerAutoOptimizerSetting); - break; - } - case 176: { - AdRotationMode = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode) input.ReadEnum(); - break; - } - case 184: { - DisplayCustomBidDimension = (global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension) input.ReadEnum(); - break; - } - case 202: { - if (targetingSetting_ == null) { - TargetingSetting = new global::Google.Ads.GoogleAds.V12.Common.TargetingSetting(); - } - input.ReadMessage(TargetingSetting); - break; - } - case 232: { - EffectiveTargetCpaSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 256: { - EffectiveTargetRoasSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 272: { - Id = input.ReadInt64(); - break; - } - case 282: { - Name = input.ReadString(); - break; - } - case 290: { - BaseAdGroup = input.ReadString(); - break; - } - case 298: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 306: { - Campaign = input.ReadString(); - break; - } - case 312: { - CpcBidMicros = input.ReadInt64(); - break; - } - case 320: { - CpmBidMicros = input.ReadInt64(); - break; - } - case 328: { - TargetCpaMicros = input.ReadInt64(); - break; - } - case 336: { - CpvBidMicros = input.ReadInt64(); - break; - } - case 344: { - TargetCpmMicros = input.ReadInt64(); - break; - } - case 353: { - TargetRoas = input.ReadDouble(); - break; - } - case 360: { - PercentCpcBidMicros = input.ReadInt64(); - break; - } - case 370: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 376: { - EffectiveTargetCpaMicros = input.ReadInt64(); - break; - } - case 385: { - EffectiveTargetRoas = input.ReadDouble(); - break; - } - case 394: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); - break; - } - case 434: - case 432: { - excludedParentAssetFieldTypes_.AddEntriesFrom(input, _repeated_excludedParentAssetFieldTypes_codec); - break; - } - case 450: { - if (audienceSetting_ == null) { - AudienceSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Types.AudienceSetting(); - } - input.ReadMessage(AudienceSetting); - break; - } - case 456: { - EffectiveCpcBidMicros = input.ReadInt64(); - break; - } - case 466: - case 464: { - excludedParentAssetSetTypes_.AddEntriesFrom(input, _repeated_excludedParentAssetSetTypes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus) input.ReadEnum(); - break; - } - case 50: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 96: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType) input.ReadEnum(); - break; - } - case 170: { - if (explorerAutoOptimizerSetting_ == null) { - ExplorerAutoOptimizerSetting = new global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSetting(); - } - input.ReadMessage(ExplorerAutoOptimizerSetting); - break; - } - case 176: { - AdRotationMode = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode) input.ReadEnum(); - break; - } - case 184: { - DisplayCustomBidDimension = (global::Google.Ads.GoogleAds.V12.Enums.TargetingDimensionEnum.Types.TargetingDimension) input.ReadEnum(); - break; - } - case 202: { - if (targetingSetting_ == null) { - TargetingSetting = new global::Google.Ads.GoogleAds.V12.Common.TargetingSetting(); - } - input.ReadMessage(TargetingSetting); - break; - } - case 232: { - EffectiveTargetCpaSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 256: { - EffectiveTargetRoasSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 272: { - Id = input.ReadInt64(); - break; - } - case 282: { - Name = input.ReadString(); - break; - } - case 290: { - BaseAdGroup = input.ReadString(); - break; - } - case 298: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 306: { - Campaign = input.ReadString(); - break; - } - case 312: { - CpcBidMicros = input.ReadInt64(); - break; - } - case 320: { - CpmBidMicros = input.ReadInt64(); - break; - } - case 328: { - TargetCpaMicros = input.ReadInt64(); - break; - } - case 336: { - CpvBidMicros = input.ReadInt64(); - break; - } - case 344: { - TargetCpmMicros = input.ReadInt64(); - break; - } - case 353: { - TargetRoas = input.ReadDouble(); - break; - } - case 360: { - PercentCpcBidMicros = input.ReadInt64(); - break; - } - case 370: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 376: { - EffectiveTargetCpaMicros = input.ReadInt64(); - break; - } - case 385: { - EffectiveTargetRoas = input.ReadDouble(); - break; - } - case 394: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); - break; - } - case 434: - case 432: { - excludedParentAssetFieldTypes_.AddEntriesFrom(ref input, _repeated_excludedParentAssetFieldTypes_codec); - break; - } - case 450: { - if (audienceSetting_ == null) { - AudienceSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Types.AudienceSetting(); - } - input.ReadMessage(AudienceSetting); - break; - } - case 456: { - EffectiveCpcBidMicros = input.ReadInt64(); - break; - } - case 466: - case 464: { - excludedParentAssetSetTypes_.AddEntriesFrom(ref input, _repeated_excludedParentAssetSetTypes_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroup message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Settings for the audience targeting. - /// - public sealed partial class AudienceSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroup.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSetting(AudienceSetting other) : this() { - useAudienceGrouped_ = other.useAudienceGrouped_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSetting Clone() { - return new AudienceSetting(this); - } - - /// Field number for the "use_audience_grouped" field. - public const int UseAudienceGroupedFieldNumber = 1; - private bool useAudienceGrouped_; - /// - /// Immutable. If true, this ad group uses an Audience resource for audience targeting. - /// If false, this ad group may use audience segment criteria instead. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool UseAudienceGrouped { - get { return useAudienceGrouped_; } - set { - useAudienceGrouped_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UseAudienceGrouped != other.UseAudienceGrouped) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (UseAudienceGrouped != false) hash ^= UseAudienceGrouped.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (UseAudienceGrouped != false) { - output.WriteRawTag(8); - output.WriteBool(UseAudienceGrouped); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UseAudienceGrouped != false) { - output.WriteRawTag(8); - output.WriteBool(UseAudienceGrouped); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (UseAudienceGrouped != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceSetting other) { - if (other == null) { - return; - } - if (other.UseAudienceGrouped != false) { - UseAudienceGrouped = other.UseAudienceGrouped; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - UseAudienceGrouped = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - UseAudienceGrouped = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAd.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAd.g.cs deleted file mode 100755 index 986fcfac9..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAd.g.cs +++ /dev/null @@ -1,834 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_ad.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_ad.proto - public static partial class AdGroupAdReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_ad.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2FkLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "Gixnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL3BvbGljeS5wcm90", - "bxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2FkX2dyb3VwX2Fk", - "X3N0YXR1cy5wcm90bxowZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2FkX3N0cmVuZ3RoLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMvcG9saWN5X2FwcHJvdmFsX3N0YXR1cy5wcm90bxo5Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL3BvbGljeV9yZXZpZXdfc3RhdHVzLnBy", - "b3RvGitnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkLnBy", - "b3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvIpcFCglBZEdyb3VwQWQSQQoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIq4EEF+kEkCiJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "QWRHcm91cEFkElMKBnN0YXR1cxgDIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5BZEdyb3VwQWRTdGF0dXNFbnVtLkFkR3JvdXBBZFN0", - "YXR1cxI/CghhZF9ncm91cBgJIAEoCUIo4EEF+kEiCiBnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQWRHcm91cEgAiAEBEjcKAmFkGAUgASgLMiYuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEID4EEFElcKDnBvbGlj", - "eV9zdW1tYXJ5GAYgASgLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5BZEdyb3VwQWRQb2xpY3lTdW1tYXJ5QgPgQQMSUwoLYWRfc3Ry", - "ZW5ndGgYByABKA4yOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "QWRTdHJlbmd0aEVudW0uQWRTdHJlbmd0aEID4EEDEhkKDGFjdGlvbl9pdGVt", - "cxgNIAMoCUID4EEDEj8KBmxhYmVscxgKIAMoCUIv4EED+kEpCidnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEFkTGFiZWw6YepBXgoiZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBBZBI4Y3VzdG9tZXJzL3tjdXN0", - "b21lcl9pZH0vYWRHcm91cEFkcy97YWRfZ3JvdXBfaWR9fnthZF9pZH1CCwoJ", - "X2FkX2dyb3VwIsICChZBZEdyb3VwQWRQb2xpY3lTdW1tYXJ5ElQKFHBvbGlj", - "eV90b3BpY19lbnRyaWVzGAEgAygLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5Qb2xpY3lUb3BpY0VudHJ5QgPgQQMSZQoNcmV2aWV3X3N0", - "YXR1cxgCIAEoDjJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Q", - "b2xpY3lSZXZpZXdTdGF0dXNFbnVtLlBvbGljeVJldmlld1N0YXR1c0ID4EED", - "EmsKD2FwcHJvdmFsX3N0YXR1cxgDIAEoDjJNLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5Qb2xpY3lBcHByb3ZhbFN0YXR1c0VudW0uUG9saWN5", - "QXBwcm92YWxTdGF0dXNCA+BBA0KAAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXNCDkFkR3JvdXBBZFByb3RvUAFaS2dvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpS", - "ZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdStrengthReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd.Parser, new[]{ "ResourceName", "Status", "AdGroup", "Ad", "PolicySummary", "AdStrength", "ActionItems", "Labels" }, new[]{ "AdGroup" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdPolicySummary), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdPolicySummary.Parser, new[]{ "PolicyTopicEntries", "ReviewStatus", "ApprovalStatus" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group ad. - /// - public sealed partial class AdGroupAd : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAd()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAd() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAd(AdGroupAd other) : this() { - resourceName_ = other.resourceName_; - status_ = other.status_; - adGroup_ = other.adGroup_; - ad_ = other.ad_ != null ? other.ad_.Clone() : null; - policySummary_ = other.policySummary_ != null ? other.policySummary_.Clone() : null; - adStrength_ = other.adStrength_; - actionItems_ = other.actionItems_.Clone(); - labels_ = other.labels_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAd Clone() { - return new AdGroupAd(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad. - /// Ad group ad resource names have the form: - /// - /// `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified; - /// - /// The status of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 9; - private string adGroup_; - /// - /// Immutable. The ad group to which the ad belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_ ?? ""; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroup { - get { return adGroup_ != null; } - } - /// Clears the value of the "ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroup() { - adGroup_ = null; - } - - /// Field number for the "ad" field. - public const int AdFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Resources.Ad ad_; - /// - /// Immutable. The ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Ad Ad { - get { return ad_; } - set { - ad_ = value; - } - } - - /// Field number for the "policy_summary" field. - public const int PolicySummaryFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdPolicySummary policySummary_; - /// - /// Output only. Policy information for the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdPolicySummary PolicySummary { - get { return policySummary_; } - set { - policySummary_ = value; - } - } - - /// Field number for the "ad_strength" field. - public const int AdStrengthFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength adStrength_ = global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified; - /// - /// Output only. Overall ad strength for this ad group ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength AdStrength { - get { return adStrength_; } - set { - adStrength_ = value; - } - } - - /// Field number for the "action_items" field. - public const int ActionItemsFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_actionItems_codec - = pb::FieldCodec.ForString(106); - private readonly pbc::RepeatedField actionItems_ = new pbc::RepeatedField(); - /// - /// Output only. A list of recommendations to improve the ad strength. For example, a - /// recommendation could be "Your headlines are a little too similar. - /// Try adding more distinct headlines.". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ActionItems { - get { return actionItems_; } - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); - /// - /// Output only. The resource names of labels attached to this ad group ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAd); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAd other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Status != other.Status) return false; - if (AdGroup != other.AdGroup) return false; - if (!object.Equals(Ad, other.Ad)) return false; - if (!object.Equals(PolicySummary, other.PolicySummary)) return false; - if (AdStrength != other.AdStrength) return false; - if(!actionItems_.Equals(other.actionItems_)) return false; - if(!labels_.Equals(other.labels_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasAdGroup) hash ^= AdGroup.GetHashCode(); - if (ad_ != null) hash ^= Ad.GetHashCode(); - if (policySummary_ != null) hash ^= PolicySummary.GetHashCode(); - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) hash ^= AdStrength.GetHashCode(); - hash ^= actionItems_.GetHashCode(); - hash ^= labels_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (ad_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Ad); - } - if (policySummary_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PolicySummary); - } - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) AdStrength); - } - if (HasAdGroup) { - output.WriteRawTag(74); - output.WriteString(AdGroup); - } - labels_.WriteTo(output, _repeated_labels_codec); - actionItems_.WriteTo(output, _repeated_actionItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (ad_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Ad); - } - if (policySummary_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PolicySummary); - } - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) AdStrength); - } - if (HasAdGroup) { - output.WriteRawTag(74); - output.WriteString(AdGroup); - } - labels_.WriteTo(ref output, _repeated_labels_codec); - actionItems_.WriteTo(ref output, _repeated_actionItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasAdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (ad_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ad); - } - if (policySummary_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummary); - } - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdStrength); - } - size += actionItems_.CalculateSize(_repeated_actionItems_codec); - size += labels_.CalculateSize(_repeated_labels_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAd other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) { - Status = other.Status; - } - if (other.HasAdGroup) { - AdGroup = other.AdGroup; - } - if (other.ad_ != null) { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - Ad.MergeFrom(other.Ad); - } - if (other.policySummary_ != null) { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdPolicySummary(); - } - PolicySummary.MergeFrom(other.PolicySummary); - } - if (other.AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - AdStrength = other.AdStrength; - } - actionItems_.Add(other.actionItems_); - labels_.Add(other.labels_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus) input.ReadEnum(); - break; - } - case 42: { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - input.ReadMessage(Ad); - break; - } - case 50: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdPolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - case 56: { - AdStrength = (global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength) input.ReadEnum(); - break; - } - case 74: { - AdGroup = input.ReadString(); - break; - } - case 82: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); - break; - } - case 106: { - actionItems_.AddEntriesFrom(input, _repeated_actionItems_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus) input.ReadEnum(); - break; - } - case 42: { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - input.ReadMessage(Ad); - break; - } - case 50: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdPolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - case 56: { - AdStrength = (global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength) input.ReadEnum(); - break; - } - case 74: { - AdGroup = input.ReadString(); - break; - } - case 82: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); - break; - } - case 106: { - actionItems_.AddEntriesFrom(ref input, _repeated_actionItems_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Contains policy information for an ad. - /// - public sealed partial class AdGroupAdPolicySummary : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdPolicySummary()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdPolicySummary() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdPolicySummary(AdGroupAdPolicySummary other) : this() { - policyTopicEntries_ = other.policyTopicEntries_.Clone(); - reviewStatus_ = other.reviewStatus_; - approvalStatus_ = other.approvalStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdPolicySummary Clone() { - return new AdGroupAdPolicySummary(this); - } - - /// Field number for the "policy_topic_entries" field. - public const int PolicyTopicEntriesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_policyTopicEntries_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.PolicyTopicEntry.Parser); - private readonly pbc::RepeatedField policyTopicEntries_ = new pbc::RepeatedField(); - /// - /// Output only. The list of policy findings for this ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PolicyTopicEntries { - get { return policyTopicEntries_; } - } - - /// Field number for the "review_status" field. - public const int ReviewStatusFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus reviewStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified; - /// - /// Output only. Where in the review process this ad is. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus ReviewStatus { - get { return reviewStatus_; } - set { - reviewStatus_ = value; - } - } - - /// Field number for the "approval_status" field. - public const int ApprovalStatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus approvalStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified; - /// - /// Output only. The overall approval status of this ad, calculated based on the status of - /// its individual policy topic entries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus ApprovalStatus { - get { return approvalStatus_; } - set { - approvalStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdPolicySummary); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdPolicySummary other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!policyTopicEntries_.Equals(other.policyTopicEntries_)) return false; - if (ReviewStatus != other.ReviewStatus) return false; - if (ApprovalStatus != other.ApprovalStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= policyTopicEntries_.GetHashCode(); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) hash ^= ReviewStatus.GetHashCode(); - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) hash ^= ApprovalStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - policyTopicEntries_.WriteTo(output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - policyTopicEntries_.WriteTo(ref output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += policyTopicEntries_.CalculateSize(_repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovalStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdPolicySummary other) { - if (other == null) { - return; - } - policyTopicEntries_.Add(other.policyTopicEntries_); - if (other.ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - ReviewStatus = other.ReviewStatus; - } - if (other.ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - ApprovalStatus = other.ApprovalStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(ref input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetCombinationView.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetCombinationView.g.cs deleted file mode 100755 index 35ab56f2e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetCombinationView.g.cs +++ /dev/null @@ -1,351 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_ad_asset_combination_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_ad_asset_combination_view.proto - public static partial class AdGroupAdAssetCombinationViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_ad_asset_combination_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdAssetCombinationViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cktnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2FkX2Fzc2V0X2NvbWJpbmF0aW9uX3ZpZXcucHJvdG8SImdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMaMWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9jb21tb24vYXNzZXRfdXNhZ2UucHJvdG8aH2dvb2dsZS9hcGkvZmll", - "bGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i", - "qwMKHUFkR3JvdXBBZEFzc2V0Q29tYmluYXRpb25WaWV3ElUKDXJlc291cmNl", - "X25hbWUYASABKAlCPuBBA/pBOAo2Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0FkR3JvdXBBZEFzc2V0Q29tYmluYXRpb25WaWV3EkcKDXNlcnZlZF9hc3Nl", - "dHMYAiADKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFz", - "c2V0VXNhZ2VCA+BBAxIZCgdlbmFibGVkGAMgASgIQgPgQQNIAIgBATrCAepB", - "vgEKNmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwQWRBc3NldENv", - "bWJpbmF0aW9uVmlldxKDAWN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2FkR3Jv", - "dXBBZEFzc2V0Q29tYmluYXRpb25WaWV3cy97YWRfZ3JvdXBfaWR9fnthZF9p", - "ZH1+e2Fzc2V0X2NvbWJpbmF0aW9uX2lkX2xvd31+e2Fzc2V0X2NvbWJpbmF0", - "aW9uX2lkX2hpZ2h9QgoKCF9lbmFibGVkQpQCCiZjb20uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlc0IiQWRHcm91cEFkQXNzZXRDb21iaW5h", - "dGlvblZpZXdQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJj", - "ZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2Vz", - "ygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.AssetUsageReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationView), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationView.Parser, new[]{ "ResourceName", "ServedAssets", "Enabled" }, new[]{ "Enabled" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A view on the usage of ad group ad asset combination. - /// Now we only support AdGroupAdAssetCombinationView for Responsive Search Ads, - /// with more ad types planned for the future. - /// - public sealed partial class AdGroupAdAssetCombinationView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdAssetCombinationView()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetCombinationView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetCombinationView(AdGroupAdAssetCombinationView other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - servedAssets_ = other.servedAssets_.Clone(); - enabled_ = other.enabled_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetCombinationView Clone() { - return new AdGroupAdAssetCombinationView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the ad group ad asset combination view. The - /// combination ID is 128 bits long, where the upper 64 bits are stored in - /// asset_combination_id_high, and the lower 64 bits are stored in - /// asset_combination_id_low. - /// AdGroupAd Asset Combination view resource names have the form: - /// `customers/{customer_id}/adGroupAdAssetCombinationViews/{AdGroupAd.ad_group_id}~{AdGroupAd.ad.ad_id}~{AssetCombination.asset_combination_id_low}~{AssetCombination.asset_combination_id_high}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "served_assets" field. - public const int ServedAssetsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_servedAssets_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AssetUsage.Parser); - private readonly pbc::RepeatedField servedAssets_ = new pbc::RepeatedField(); - /// - /// Output only. Served assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ServedAssets { - get { return servedAssets_; } - } - - /// Field number for the "enabled" field. - public const int EnabledFieldNumber = 3; - private bool enabled_; - /// - /// Output only. The status between the asset combination and the latest version of the ad. - /// If true, the asset combination is linked to the latest version of the ad. - /// If false, it means the link once existed but has been removed and is no - /// longer present in the latest version of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Enabled { - get { if ((_hasBits0 & 1) != 0) { return enabled_; } else { return false; } } - set { - _hasBits0 |= 1; - enabled_ = value; - } - } - /// Gets whether the "enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEnabled { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEnabled() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdAssetCombinationView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdAssetCombinationView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if(!servedAssets_.Equals(other.servedAssets_)) return false; - if (Enabled != other.Enabled) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - hash ^= servedAssets_.GetHashCode(); - if (HasEnabled) hash ^= Enabled.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - servedAssets_.WriteTo(output, _repeated_servedAssets_codec); - if (HasEnabled) { - output.WriteRawTag(24); - output.WriteBool(Enabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - servedAssets_.WriteTo(ref output, _repeated_servedAssets_codec); - if (HasEnabled) { - output.WriteRawTag(24); - output.WriteBool(Enabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - size += servedAssets_.CalculateSize(_repeated_servedAssets_codec); - if (HasEnabled) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdAssetCombinationView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - servedAssets_.Add(other.servedAssets_); - if (other.HasEnabled) { - Enabled = other.Enabled; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - servedAssets_.AddEntriesFrom(input, _repeated_servedAssets_codec); - break; - } - case 24: { - Enabled = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - servedAssets_.AddEntriesFrom(ref input, _repeated_servedAssets_codec); - break; - } - case 24: { - Enabled = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetCombinationViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetCombinationViewResourceNames.g.cs deleted file mode 100755 index 215e45019..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetCombinationViewResourceNames.g.cs +++ /dev/null @@ -1,382 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupAdAssetCombinationView resource. - public sealed partial class AdGroupAdAssetCombinationViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// . - /// - CustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh = 1, - } - - private static gax::PathTemplate s_customerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh = new gax::PathTemplate("customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id_ad_id_asset_combination_id_low_asset_combination_id_high}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupAdAssetCombinationViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupAdAssetCombinationViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The AssetCombinationIdLow ID. Must not be null or empty. - /// - /// - /// The AssetCombinationIdHigh ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static AdGroupAdAssetCombinationViewName FromCustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh(string customerId, string adGroupId, string adId, string assetCombinationIdLowId, string assetCombinationIdHighId) => - new AdGroupAdAssetCombinationViewName(ResourceNameType.CustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)), assetCombinationIdLowId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetCombinationIdLowId, nameof(assetCombinationIdLowId)), assetCombinationIdHighId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetCombinationIdHighId, nameof(assetCombinationIdHighId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The AssetCombinationIdLow ID. Must not be null or empty. - /// - /// - /// The AssetCombinationIdHigh ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// . - /// - public static string Format(string customerId, string adGroupId, string adId, string assetCombinationIdLowId, string assetCombinationIdHighId) => - FormatCustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh(customerId, adGroupId, adId, assetCombinationIdLowId, assetCombinationIdHighId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The AssetCombinationIdLow ID. Must not be null or empty. - /// - /// - /// The AssetCombinationIdHigh ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// . - /// - public static string FormatCustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh(string customerId, string adGroupId, string adId, string assetCombinationIdLowId, string assetCombinationIdHighId) => - s_customerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetCombinationIdLowId, nameof(assetCombinationIdLowId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetCombinationIdHighId, nameof(assetCombinationIdHighId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static AdGroupAdAssetCombinationViewName Parse(string adGroupAdAssetCombinationViewName) => - Parse(adGroupAdAssetCombinationViewName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupAdAssetCombinationViewName Parse(string adGroupAdAssetCombinationViewName, bool allowUnparsed) => - TryParse(adGroupAdAssetCombinationViewName, allowUnparsed, out AdGroupAdAssetCombinationViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdAssetCombinationViewName, out AdGroupAdAssetCombinationViewName result) => - TryParse(adGroupAdAssetCombinationViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdAssetCombinationViewName, bool allowUnparsed, out AdGroupAdAssetCombinationViewName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupAdAssetCombinationViewName, nameof(adGroupAdAssetCombinationViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh.TryParseName(adGroupAdAssetCombinationViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh(resourceName[0], split1[0], split1[1], split1[2], split1[3]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupAdAssetCombinationViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupAdAssetCombinationViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adId = null, string adGroupId = null, string assetCombinationIdHighId = null, string assetCombinationIdLowId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdId = adId; - AdGroupId = adGroupId; - AssetCombinationIdHighId = assetCombinationIdHighId; - AssetCombinationIdLowId = assetCombinationIdLowId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component - /// parts of pattern - /// - /// customers/{customer_id}/adGroupAdAssetCombinationViews/{ad_group_id}~{ad_id}~{asset_combination_id_low}~{asset_combination_id_high} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The AssetCombinationIdLow ID. Must not be null or empty. - /// - /// - /// The AssetCombinationIdHigh ID. Must not be null or empty. - /// - public AdGroupAdAssetCombinationViewName(string customerId, string adGroupId, string adId, string assetCombinationIdLowId, string assetCombinationIdHighId) : this(ResourceNameType.CustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)), assetCombinationIdLowId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetCombinationIdLowId, nameof(assetCombinationIdLowId)), assetCombinationIdHighId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetCombinationIdHighId, nameof(assetCombinationIdHighId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Ad ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdId { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The AssetCombinationIdHigh ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string AssetCombinationIdHighId { get; } - - /// - /// The AssetCombinationIdLow ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string AssetCombinationIdLowId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh: return s_customerAdGroupAdAssetCombinationIdLowAssetCombinationIdHigh.Expand(CustomerId, $"{AdGroupId}~{AdId}~{AssetCombinationIdLowId}~{AssetCombinationIdHighId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupAdAssetCombinationViewName); - - /// - public bool Equals(AdGroupAdAssetCombinationViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupAdAssetCombinationViewName a, AdGroupAdAssetCombinationViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupAdAssetCombinationViewName a, AdGroupAdAssetCombinationViewName b) => !(a == b); - } - - public partial class AdGroupAdAssetCombinationView - { - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupAdAssetCombinationViewName ResourceNameAsAdGroupAdAssetCombinationViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupAdAssetCombinationViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetView.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetView.g.cs deleted file mode 100755 index 30b98f84e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetView.g.cs +++ /dev/null @@ -1,886 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_ad_asset_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_ad_asset_view.proto - public static partial class AdGroupAdAssetViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_ad_asset_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdAssetViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2FkX2Fzc2V0X3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMaLGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24v", - "cG9saWN5LnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "YXNzZXRfZmllbGRfdHlwZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL2Fzc2V0X3BlcmZvcm1hbmNlX2xhYmVsLnByb3RvGjtnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcG9saWN5X2FwcHJvdmFsX3N0", - "YXR1cy5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Bv", - "bGljeV9yZXZpZXdfc3RhdHVzLnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvc2VydmVkX2Fzc2V0X2ZpZWxkX3R5cGUucHJvdG8aH2dv", - "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", - "b3VyY2UucHJvdG8ixwYKEkFkR3JvdXBBZEFzc2V0VmlldxJKCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQjPgQQP6QS0KK2dvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9BZEdyb3VwQWRBc3NldFZpZXcSRAoLYWRfZ3JvdXBfYWQYCSABKAlCKuBB", - "A/pBJAoiZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBBZEgAiAEB", - "EjoKBWFzc2V0GAogASgJQibgQQP6QSAKHmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9Bc3NldEgBiAEBEloKCmZpZWxkX3R5cGUYAiABKA4yQS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRGaWVsZFR5cGVFbnVtLkFz", - "c2V0RmllbGRUeXBlQgPgQQMSGQoHZW5hYmxlZBgIIAEoCEID4EEDSAKIAQES", - "XAoOcG9saWN5X3N1bW1hcnkYAyABKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzLkFkR3JvdXBBZEFzc2V0UG9saWN5U3VtbWFyeUID", - "4EEDEm8KEXBlcmZvcm1hbmNlX2xhYmVsGAQgASgOMk8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLkFzc2V0UGVyZm9ybWFuY2VMYWJlbEVudW0u", - "QXNzZXRQZXJmb3JtYW5jZUxhYmVsQgPgQQMSaAoMcGlubmVkX2ZpZWxkGAsg", - "ASgOMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlNlcnZlZEFz", - "c2V0RmllbGRUeXBlRW51bS5TZXJ2ZWRBc3NldEZpZWxkVHlwZUID4EEDOowB", - "6kGIAQorZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBBZEFzc2V0", - "VmlldxJZY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYWRHcm91cEFkQXNzZXRW", - "aWV3cy97YWRfZ3JvdXBfaWR9fnthZF9pZH1+e2Fzc2V0X2lkfX57ZmllbGRf", - "dHlwZX1CDgoMX2FkX2dyb3VwX2FkQggKBl9hc3NldEIKCghfZW5hYmxlZCLH", - "AgobQWRHcm91cEFkQXNzZXRQb2xpY3lTdW1tYXJ5ElQKFHBvbGljeV90b3Bp", - "Y19lbnRyaWVzGAEgAygLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5Qb2xpY3lUb3BpY0VudHJ5QgPgQQMSZQoNcmV2aWV3X3N0YXR1cxgC", - "IAEoDjJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Qb2xpY3lS", - "ZXZpZXdTdGF0dXNFbnVtLlBvbGljeVJldmlld1N0YXR1c0ID4EEDEmsKD2Fw", - "cHJvdmFsX3N0YXR1cxgDIAEoDjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5Qb2xpY3lBcHByb3ZhbFN0YXR1c0VudW0uUG9saWN5QXBwcm92", - "YWxTdGF0dXNCA+BBA0KJAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXNCF0FkR3JvdXBBZEFzc2V0Vmlld1Byb3RvUAFaS2dvb2ds", - "ZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetView), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetView.Parser, new[]{ "ResourceName", "AdGroupAd", "Asset", "FieldType", "Enabled", "PolicySummary", "PerformanceLabel", "PinnedField" }, new[]{ "AdGroupAd", "Asset", "Enabled" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetPolicySummary), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetPolicySummary.Parser, new[]{ "PolicyTopicEntries", "ReviewStatus", "ApprovalStatus" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A link between an AdGroupAd and an Asset. - /// Currently we only support AdGroupAdAssetView for AppAds and Responsive Search - /// Ads. - /// - public sealed partial class AdGroupAdAssetView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdAssetView()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetView(AdGroupAdAssetView other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - adGroupAd_ = other.adGroupAd_; - asset_ = other.asset_; - fieldType_ = other.fieldType_; - enabled_ = other.enabled_; - policySummary_ = other.policySummary_ != null ? other.policySummary_.Clone() : null; - performanceLabel_ = other.performanceLabel_; - pinnedField_ = other.pinnedField_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetView Clone() { - return new AdGroupAdAssetView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the ad group ad asset view. - /// Ad group ad asset view resource names have the form (Before V4): - /// - /// `customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` - /// - /// Ad group ad asset view resource names have the form (Beginning from V4): - /// - /// `customers/{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_ad" field. - public const int AdGroupAdFieldNumber = 9; - private string adGroupAd_; - /// - /// Output only. The ad group ad to which the asset is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupAd { - get { return adGroupAd_ ?? ""; } - set { - adGroupAd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_ad" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupAd { - get { return adGroupAd_ != null; } - } - /// Clears the value of the "ad_group_ad" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupAd() { - adGroupAd_ = null; - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 10; - private string asset_; - /// - /// Output only. The asset which is linked to the ad group ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_ ?? ""; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "asset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAsset { - get { return asset_ != null; } - } - /// Clears the value of the "asset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAsset() { - asset_ = null; - } - - /// Field number for the "field_type" field. - public const int FieldTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType fieldType_ = global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified; - /// - /// Output only. Role that the asset takes in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType FieldType { - get { return fieldType_; } - set { - fieldType_ = value; - } - } - - /// Field number for the "enabled" field. - public const int EnabledFieldNumber = 8; - private bool enabled_; - /// - /// Output only. The status between the asset and the latest version of the ad. If true, the - /// asset is linked to the latest version of the ad. If false, it means the - /// link once existed but has been removed and is no longer present in the - /// latest version of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Enabled { - get { if ((_hasBits0 & 1) != 0) { return enabled_; } else { return false; } } - set { - _hasBits0 |= 1; - enabled_ = value; - } - } - /// Gets whether the "enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEnabled { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEnabled() { - _hasBits0 &= ~1; - } - - /// Field number for the "policy_summary" field. - public const int PolicySummaryFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetPolicySummary policySummary_; - /// - /// Output only. Policy information for the ad group ad asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetPolicySummary PolicySummary { - get { return policySummary_; } - set { - policySummary_ = value; - } - } - - /// Field number for the "performance_label" field. - public const int PerformanceLabelFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel performanceLabel_ = global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified; - /// - /// Output only. Performance of an asset linkage. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel PerformanceLabel { - get { return performanceLabel_; } - set { - performanceLabel_ = value; - } - } - - /// Field number for the "pinned_field" field. - public const int PinnedFieldFieldNumber = 11; - private global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType pinnedField_ = global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified; - /// - /// Output only. Pinned field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType PinnedField { - get { return pinnedField_; } - set { - pinnedField_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdAssetView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdAssetView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroupAd != other.AdGroupAd) return false; - if (Asset != other.Asset) return false; - if (FieldType != other.FieldType) return false; - if (Enabled != other.Enabled) return false; - if (!object.Equals(PolicySummary, other.PolicySummary)) return false; - if (PerformanceLabel != other.PerformanceLabel) return false; - if (PinnedField != other.PinnedField) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroupAd) hash ^= AdGroupAd.GetHashCode(); - if (HasAsset) hash ^= Asset.GetHashCode(); - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) hash ^= FieldType.GetHashCode(); - if (HasEnabled) hash ^= Enabled.GetHashCode(); - if (policySummary_ != null) hash ^= PolicySummary.GetHashCode(); - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) hash ^= PerformanceLabel.GetHashCode(); - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) hash ^= PinnedField.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) FieldType); - } - if (policySummary_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PolicySummary); - } - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) PerformanceLabel); - } - if (HasEnabled) { - output.WriteRawTag(64); - output.WriteBool(Enabled); - } - if (HasAdGroupAd) { - output.WriteRawTag(74); - output.WriteString(AdGroupAd); - } - if (HasAsset) { - output.WriteRawTag(82); - output.WriteString(Asset); - } - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - output.WriteRawTag(88); - output.WriteEnum((int) PinnedField); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) FieldType); - } - if (policySummary_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PolicySummary); - } - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) PerformanceLabel); - } - if (HasEnabled) { - output.WriteRawTag(64); - output.WriteBool(Enabled); - } - if (HasAdGroupAd) { - output.WriteRawTag(74); - output.WriteString(AdGroupAd); - } - if (HasAsset) { - output.WriteRawTag(82); - output.WriteString(Asset); - } - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - output.WriteRawTag(88); - output.WriteEnum((int) PinnedField); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroupAd) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupAd); - } - if (HasAsset) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType); - } - if (HasEnabled) { - size += 1 + 1; - } - if (policySummary_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummary); - } - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PerformanceLabel); - } - if (PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PinnedField); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdAssetView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroupAd) { - AdGroupAd = other.AdGroupAd; - } - if (other.HasAsset) { - Asset = other.Asset; - } - if (other.FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - FieldType = other.FieldType; - } - if (other.HasEnabled) { - Enabled = other.Enabled; - } - if (other.policySummary_ != null) { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetPolicySummary(); - } - PolicySummary.MergeFrom(other.PolicySummary); - } - if (other.PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - PerformanceLabel = other.PerformanceLabel; - } - if (other.PinnedField != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - PinnedField = other.PinnedField; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 26: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetPolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - case 32: { - PerformanceLabel = (global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum(); - break; - } - case 64: { - Enabled = input.ReadBool(); - break; - } - case 74: { - AdGroupAd = input.ReadString(); - break; - } - case 82: { - Asset = input.ReadString(); - break; - } - case 88: { - PinnedField = (global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 26: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetPolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - case 32: { - PerformanceLabel = (global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum(); - break; - } - case 64: { - Enabled = input.ReadBool(); - break; - } - case 74: { - AdGroupAd = input.ReadString(); - break; - } - case 82: { - Asset = input.ReadString(); - break; - } - case 88: { - PinnedField = (global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Contains policy information for an ad group ad asset. - /// - public sealed partial class AdGroupAdAssetPolicySummary : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdAssetPolicySummary()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetViewReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetPolicySummary() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetPolicySummary(AdGroupAdAssetPolicySummary other) : this() { - policyTopicEntries_ = other.policyTopicEntries_.Clone(); - reviewStatus_ = other.reviewStatus_; - approvalStatus_ = other.approvalStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdAssetPolicySummary Clone() { - return new AdGroupAdAssetPolicySummary(this); - } - - /// Field number for the "policy_topic_entries" field. - public const int PolicyTopicEntriesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_policyTopicEntries_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.PolicyTopicEntry.Parser); - private readonly pbc::RepeatedField policyTopicEntries_ = new pbc::RepeatedField(); - /// - /// Output only. The list of policy findings for the ad group ad asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PolicyTopicEntries { - get { return policyTopicEntries_; } - } - - /// Field number for the "review_status" field. - public const int ReviewStatusFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus reviewStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified; - /// - /// Output only. Where in the review process this ad group ad asset is. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus ReviewStatus { - get { return reviewStatus_; } - set { - reviewStatus_ = value; - } - } - - /// Field number for the "approval_status" field. - public const int ApprovalStatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus approvalStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified; - /// - /// Output only. The overall approval status of this ad group ad asset, calculated based on - /// the status of its individual policy topic entries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus ApprovalStatus { - get { return approvalStatus_; } - set { - approvalStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdAssetPolicySummary); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdAssetPolicySummary other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!policyTopicEntries_.Equals(other.policyTopicEntries_)) return false; - if (ReviewStatus != other.ReviewStatus) return false; - if (ApprovalStatus != other.ApprovalStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= policyTopicEntries_.GetHashCode(); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) hash ^= ReviewStatus.GetHashCode(); - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) hash ^= ApprovalStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - policyTopicEntries_.WriteTo(output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - policyTopicEntries_.WriteTo(ref output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += policyTopicEntries_.CalculateSize(_repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovalStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdAssetPolicySummary other) { - if (other == null) { - return; - } - policyTopicEntries_.Add(other.policyTopicEntries_); - if (other.ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - ReviewStatus = other.ReviewStatus; - } - if (other.ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - ApprovalStatus = other.ApprovalStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(ref input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetViewResourceNames.g.cs deleted file mode 100755 index e73e1b877..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdAssetViewResourceNames.g.cs +++ /dev/null @@ -1,343 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupAdAssetView resource. - public sealed partial class AdGroupAdAssetViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}. - /// - CustomerAdGroupAdAssetFieldType = 1, - } - - private static gax::PathTemplate s_customerAdGroupAdAssetFieldType = new gax::PathTemplate("customers/{customer_id}/adGroupAdAssetViews/{ad_group_id_ad_id_asset_id_field_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupAdAssetViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupAdAssetViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupAdAssetViewName FromCustomerAdGroupAdAssetFieldType(string customerId, string adGroupId, string adId, string assetId, string fieldTypeId) => - new AdGroupAdAssetViewName(ResourceNameType.CustomerAdGroupAdAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}. - /// - public static string Format(string customerId, string adGroupId, string adId, string assetId, string fieldTypeId) => - FormatCustomerAdGroupAdAssetFieldType(customerId, adGroupId, adId, assetId, fieldTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}. - /// - public static string FormatCustomerAdGroupAdAssetFieldType(string customerId, string adGroupId, string adId, string assetId, string fieldTypeId) => - s_customerAdGroupAdAssetFieldType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupAdAssetViewName Parse(string adGroupAdAssetViewName) => Parse(adGroupAdAssetViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupAdAssetViewName Parse(string adGroupAdAssetViewName, bool allowUnparsed) => - TryParse(adGroupAdAssetViewName, allowUnparsed, out AdGroupAdAssetViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdAssetViewName, out AdGroupAdAssetViewName result) => - TryParse(adGroupAdAssetViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdAssetViewName, bool allowUnparsed, out AdGroupAdAssetViewName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupAdAssetViewName, nameof(adGroupAdAssetViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupAdAssetFieldType.TryParseName(adGroupAdAssetViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupAdAssetFieldType(resourceName[0], split1[0], split1[1], split1[2], split1[3]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupAdAssetViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupAdAssetViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adId = null, string adGroupId = null, string assetId = null, string customerId = null, string fieldTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdId = adId; - AdGroupId = adGroupId; - AssetId = assetId; - CustomerId = customerId; - FieldTypeId = fieldTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - public AdGroupAdAssetViewName(string customerId, string adGroupId, string adId, string assetId, string fieldTypeId) : this(ResourceNameType.CustomerAdGroupAdAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Ad ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdId { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Asset ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The FieldType ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FieldTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupAdAssetFieldType: return s_customerAdGroupAdAssetFieldType.Expand(CustomerId, $"{AdGroupId}~{AdId}~{AssetId}~{FieldTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupAdAssetViewName); - - /// - public bool Equals(AdGroupAdAssetViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupAdAssetViewName a, AdGroupAdAssetViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupAdAssetViewName a, AdGroupAdAssetViewName b) => !(a == b); - } - - public partial class AdGroupAdAssetView - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupAdAssetViewName ResourceNameAsAdGroupAdAssetViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupAdAssetViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupAdName AdGroupAdAsAdGroupAdName - { - get => string.IsNullOrEmpty(AdGroupAd) ? null : AdGroupAdName.Parse(AdGroupAd, allowUnparsed: true); - set => AdGroupAd = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdError.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdError.g.cs deleted file mode 100755 index aad6f478a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdError.g.cs +++ /dev/null @@ -1,283 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_group_ad_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_group_ad_error.proto - public static partial class AdGroupAdErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_group_ad_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2Fk", - "X2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3Jz", - "IqsDChJBZEdyb3VwQWRFcnJvckVudW0ilAMKDkFkR3JvdXBBZEVycm9yEg8K", - "C1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEiQKIEFEX0dST1VQX0FEX0xB", - "QkVMX0RPRVNfTk9UX0VYSVNUEAISJAogQURfR1JPVVBfQURfTEFCRUxfQUxS", - "RUFEWV9FWElTVFMQAxIYChRBRF9OT1RfVU5ERVJfQURHUk9VUBAEEicKI0NB", - "Tk5PVF9PUEVSQVRFX09OX1JFTU9WRURfQURHUk9VUEFEEAUSIAocQ0FOTk9U", - "X0NSRUFURV9ERVBSRUNBVEVEX0FEUxAGEhoKFkNBTk5PVF9DUkVBVEVfVEVY", - "VF9BRFMQBxIPCgtFTVBUWV9GSUVMRBAIEicKI1JFU09VUkNFX1JFRkVSRU5D", - "RURfSU5fTVVMVElQTEVfT1BTEAkSHAoYQURfVFlQRV9DQU5OT1RfQkVfUEFV", - "U0VEEAoSHQoZQURfVFlQRV9DQU5OT1RfQkVfUkVNT1ZFRBALEiAKHENBTk5P", - "VF9VUERBVEVfREVQUkVDQVRFRF9BRFMQDELzAQojY29tLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lcnJvcnNCE0FkR3JvdXBBZEVycm9yUHJvdG9QAVpF", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9y", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorEnum.Types.AdGroupAdError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad group ad errors. - /// - public sealed partial class AdGroupAdErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdErrorEnum(AdGroupAdErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdErrorEnum Clone() { - return new AdGroupAdErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupAdErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad group ad errors. - /// - public enum AdGroupAdError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// No link found between the adgroup ad and the label. - /// - [pbr::OriginalName("AD_GROUP_AD_LABEL_DOES_NOT_EXIST")] AdGroupAdLabelDoesNotExist = 2, - /// - /// The label has already been attached to the adgroup ad. - /// - [pbr::OriginalName("AD_GROUP_AD_LABEL_ALREADY_EXISTS")] AdGroupAdLabelAlreadyExists = 3, - /// - /// The specified ad was not found in the adgroup - /// - [pbr::OriginalName("AD_NOT_UNDER_ADGROUP")] AdNotUnderAdgroup = 4, - /// - /// Removed ads may not be modified - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_REMOVED_ADGROUPAD")] CannotOperateOnRemovedAdgroupad = 5, - /// - /// An ad of this type is deprecated and cannot be created. Only deletions - /// are permitted. - /// - [pbr::OriginalName("CANNOT_CREATE_DEPRECATED_ADS")] CannotCreateDeprecatedAds = 6, - /// - /// Text ads are deprecated and cannot be created. Use expanded text ads - /// instead. - /// - [pbr::OriginalName("CANNOT_CREATE_TEXT_ADS")] CannotCreateTextAds = 7, - /// - /// A required field was not specified or is an empty string. - /// - [pbr::OriginalName("EMPTY_FIELD")] EmptyField = 8, - /// - /// An ad may only be modified once per call - /// - [pbr::OriginalName("RESOURCE_REFERENCED_IN_MULTIPLE_OPS")] ResourceReferencedInMultipleOps = 9, - /// - /// AdGroupAds with the given ad type cannot be paused. - /// - [pbr::OriginalName("AD_TYPE_CANNOT_BE_PAUSED")] AdTypeCannotBePaused = 10, - /// - /// AdGroupAds with the given ad type cannot be removed. - /// - [pbr::OriginalName("AD_TYPE_CANNOT_BE_REMOVED")] AdTypeCannotBeRemoved = 11, - /// - /// An ad of this type is deprecated and cannot be updated. Only removals - /// are permitted. - /// - [pbr::OriginalName("CANNOT_UPDATE_DEPRECATED_ADS")] CannotUpdateDeprecatedAds = 12, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabel.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdLabel.g.cs deleted file mode 100755 index 2b13c1470..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabel.g.cs +++ /dev/null @@ -1,360 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_ad_label.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_ad_label.proto - public static partial class AdGroupAdLabelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_ad_label.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdLabelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2FkX2xhYmVsLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvIuwCCg5BZEdyb3VwQWRMYWJlbBJGCg1y", - "ZXNvdXJjZV9uYW1lGAEgASgJQi/gQQX6QSkKJ2dvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9BZEdyb3VwQWRMYWJlbBJECgthZF9ncm91cF9hZBgEIAEoCUIq", - "4EEF+kEkCiJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEFkSACI", - "AQESOgoFbGFiZWwYBSABKAlCJuBBBfpBIAoeZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0xhYmVsSAGIAQE6dupBcwonZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0FkR3JvdXBBZExhYmVsEkhjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9h", - "ZEdyb3VwQWRMYWJlbHMve2FkX2dyb3VwX2lkfX57YWRfaWR9fntsYWJlbF9p", - "ZH1CDgoMX2FkX2dyb3VwX2FkQggKBl9sYWJlbEKFAgomY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCE0FkR3JvdXBBZExhYmVsUHJv", - "dG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIi", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel.Parser, new[]{ "ResourceName", "AdGroupAd", "Label" }, new[]{ "AdGroupAd", "Label" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A relationship between an ad group ad and a label. - /// - public sealed partial class AdGroupAdLabel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdLabel()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdLabel() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdLabel(AdGroupAdLabel other) : this() { - resourceName_ = other.resourceName_; - adGroupAd_ = other.adGroupAd_; - label_ = other.label_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdLabel Clone() { - return new AdGroupAdLabel(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group ad label. - /// Ad group ad label resource names have the form: - /// `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_ad" field. - public const int AdGroupAdFieldNumber = 4; - private string adGroupAd_; - /// - /// Immutable. The ad group ad to which the label is attached. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupAd { - get { return adGroupAd_ ?? ""; } - set { - adGroupAd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_ad" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupAd { - get { return adGroupAd_ != null; } - } - /// Clears the value of the "ad_group_ad" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupAd() { - adGroupAd_ = null; - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 5; - private string label_; - /// - /// Immutable. The label assigned to the ad group ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Label { - get { return label_ ?? ""; } - set { - label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "label" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLabel { - get { return label_ != null; } - } - /// Clears the value of the "label" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLabel() { - label_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdLabel); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdLabel other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroupAd != other.AdGroupAd) return false; - if (Label != other.Label) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroupAd) hash ^= AdGroupAd.GetHashCode(); - if (HasLabel) hash ^= Label.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupAd) { - output.WriteRawTag(34); - output.WriteString(AdGroupAd); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupAd) { - output.WriteRawTag(34); - output.WriteString(AdGroupAd); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroupAd) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupAd); - } - if (HasLabel) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdLabel other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroupAd) { - AdGroupAd = other.AdGroupAd; - } - if (other.HasLabel) { - Label = other.Label; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - AdGroupAd = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - AdGroupAd = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelResourceNames.g.cs deleted file mode 100755 index e641b0664..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelResourceNames.g.cs +++ /dev/null @@ -1,325 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupAdLabel resource. - public sealed partial class AdGroupAdLabelName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id} - /// . - /// - CustomerAdGroupAdLabel = 1, - } - - private static gax::PathTemplate s_customerAdGroupAdLabel = new gax::PathTemplate("customers/{customer_id}/adGroupAdLabels/{ad_group_id_ad_id_label_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupAdLabelName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupAdLabelName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupAdLabelName FromCustomerAdGroupAdLabel(string customerId, string adGroupId, string adId, string labelId) => - new AdGroupAdLabelName(ResourceNameType.CustomerAdGroupAdLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}. - /// - public static string Format(string customerId, string adGroupId, string adId, string labelId) => - FormatCustomerAdGroupAdLabel(customerId, adGroupId, adId, labelId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}. - /// - public static string FormatCustomerAdGroupAdLabel(string customerId, string adGroupId, string adId, string labelId) => - s_customerAdGroupAdLabel.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupAdLabelName Parse(string adGroupAdLabelName) => Parse(adGroupAdLabelName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupAdLabelName Parse(string adGroupAdLabelName, bool allowUnparsed) => - TryParse(adGroupAdLabelName, allowUnparsed, out AdGroupAdLabelName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdLabelName, out AdGroupAdLabelName result) => - TryParse(adGroupAdLabelName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdLabelName, bool allowUnparsed, out AdGroupAdLabelName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupAdLabelName, nameof(adGroupAdLabelName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupAdLabel.TryParseName(adGroupAdLabelName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupAdLabel(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupAdLabelName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupAdLabelName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adId = null, string adGroupId = null, string customerId = null, string labelId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdId = adId; - AdGroupId = adGroupId; - CustomerId = customerId; - LabelId = labelId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - public AdGroupAdLabelName(string customerId, string adGroupId, string adId, string labelId) : this(ResourceNameType.CustomerAdGroupAdLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Ad ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdId { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Label ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string LabelId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupAdLabel: return s_customerAdGroupAdLabel.Expand(CustomerId, $"{AdGroupId}~{AdId}~{LabelId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupAdLabelName); - - /// - public bool Equals(AdGroupAdLabelName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupAdLabelName a, AdGroupAdLabelName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupAdLabelName a, AdGroupAdLabelName b) => !(a == b); - } - - public partial class AdGroupAdLabel - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupAdLabelName ResourceNameAsAdGroupAdLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupAdLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupAdName AdGroupAdAsAdGroupAdName - { - get => string.IsNullOrEmpty(AdGroupAd) ? null : AdGroupAdName.Parse(AdGroupAd, allowUnparsed: true); - set => AdGroupAd = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal LabelName LabelAsLabelName - { - get => string.IsNullOrEmpty(Label) ? null : LabelName.Parse(Label, allowUnparsed: true); - set => Label = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelService.g.cs deleted file mode 100755 index e67db17c1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelService.g.cs +++ /dev/null @@ -1,1103 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_ad_label_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_ad_label_service.proto - public static partial class AdGroupAdLabelServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_ad_label_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdLabelServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "YWRfbGFiZWxfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3Vy", - "Y2VzL2FkX2dyb3VwX2FkX2xhYmVsLnByb3RvGhxnb29nbGUvYXBpL2Fubm90", - "YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xl", - "L2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJj", - "ZS5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8ivQEKHE11dGF0ZUFk", - "R3JvdXBBZExhYmVsc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BB", - "AhJTCgpvcGVyYXRpb25zGAIgAygLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLkFkR3JvdXBBZExhYmVsT3BlcmF0aW9uQgPgQQISFwoP", - "cGFydGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgi", - "rAEKF0FkR3JvdXBBZExhYmVsT3BlcmF0aW9uEkQKBmNyZWF0ZRgBIAEoCzIy", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cEFk", - "TGFiZWxIABI+CgZyZW1vdmUYAiABKAlCLPpBKQonZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0FkR3JvdXBBZExhYmVsSABCCwoJb3BlcmF0aW9uIqIBCh1N", - "dXRhdGVBZEdyb3VwQWRMYWJlbHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1", - "cmVfZXJyb3IYAyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJOCgdyZXN1bHRz", - "GAIgAygLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUFkR3JvdXBBZExhYmVsUmVzdWx0ImEKGk11dGF0ZUFkR3JvdXBBZExh", - "YmVsUmVzdWx0EkMKDXJlc291cmNlX25hbWUYASABKAlCLPpBKQonZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBBZExhYmVsMtYCChVBZEdyb3Vw", - "QWRMYWJlbFNlcnZpY2US9QEKFU11dGF0ZUFkR3JvdXBBZExhYmVscxI/Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBZEdyb3Vw", - "QWRMYWJlbHNSZXF1ZXN0GkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUFkR3JvdXBBZExhYmVsc1Jlc3BvbnNlIlmC0+STAjoi", - "NS92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9hZEdyb3VwQWRMYWJl", - "bHM6bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBp", - "cy5jb20vYXV0aC9hZHdvcmRzQoYCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzQhpBZEdyb3VwQWRMYWJlbFNlcnZpY2VQcm90b1AB", - "Wklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabelReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupAdLabelService.MutateAdGroupAdLabels][google.ads.googleads.v12.services.AdGroupAdLabelService.MutateAdGroupAdLabels]. - /// - public sealed partial class MutateAdGroupAdLabelsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAdLabelsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelsRequest(MutateAdGroupAdLabelsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelsRequest Clone() { - return new MutateAdGroupAdLabelsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose ad group ad labels are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on ad group ad labels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAdLabelsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAdLabelsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAdLabelsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an ad group ad label. - /// - public sealed partial class AdGroupAdLabelOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdLabelOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdLabelOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdLabelOperation(AdGroupAdLabelOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdLabelOperation Clone() { - return new AdGroupAdLabelOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group ad - /// label. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the ad group ad label - /// being removed, in this format: - /// - /// `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdLabelOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdLabelOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdLabelOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group ad labels mutate. - /// - public sealed partial class MutateAdGroupAdLabelsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAdLabelsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelsResponse(MutateAdGroupAdLabelsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelsResponse Clone() { - return new MutateAdGroupAdLabelsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAdLabelsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAdLabelsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAdLabelsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for an ad group ad label mutate. - /// - public sealed partial class MutateAdGroupAdLabelResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAdLabelResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelResult(MutateAdGroupAdLabelResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdLabelResult Clone() { - return new MutateAdGroupAdLabelResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAdLabelResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAdLabelResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAdLabelResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceClient.g.cs deleted file mode 100755 index 23e687446..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceClient.g.cs +++ /dev/null @@ -1,468 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupAdLabelServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupAdLabelServiceSettings GetDefault() => new AdGroupAdLabelServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupAdLabelServiceSettings() - { - } - - private AdGroupAdLabelServiceSettings(AdGroupAdLabelServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupAdLabelsSettings = existing.MutateAdGroupAdLabelsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupAdLabelServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupAdLabelServiceClient.MutateAdGroupAdLabels and - /// AdGroupAdLabelServiceClient.MutateAdGroupAdLabelsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupAdLabelsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupAdLabelServiceSettings Clone() => new AdGroupAdLabelServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupAdLabelServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupAdLabelServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupAdLabelServiceClientBuilder() : base(AdGroupAdLabelServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupAdLabelServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupAdLabelServiceClient Build() - { - AdGroupAdLabelServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupAdLabelServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupAdLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupAdLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupAdLabelServiceClient.ChannelPool; - } - - /// AdGroupAdLabelService client wrapper, for convenient use. - /// - /// Service to manage labels on ad group ads. - /// - public abstract partial class AdGroupAdLabelServiceClient - { - /// - /// The default endpoint for the AdGroupAdLabelService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupAdLabelService scopes. - /// - /// The default AdGroupAdLabelService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupAdLabelService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupAdLabelServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupAdLabelServiceClient Create() => new AdGroupAdLabelServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupAdLabelServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupAdLabelServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupAdLabelService.AdGroupAdLabelServiceClient grpcClient = new AdGroupAdLabelService.AdGroupAdLabelServiceClient(callInvoker); - return new AdGroupAdLabelServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupAdLabelService client - public virtual AdGroupAdLabelService.AdGroupAdLabelServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAdLabelsResponse MutateAdGroupAdLabels(MutateAdGroupAdLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdLabelsAsync(MutateAdGroupAdLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdLabelsAsync(MutateAdGroupAdLabelsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupAdLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group ad labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group ad labels. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAdLabelsResponse MutateAdGroupAdLabels(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAdLabels(new MutateAdGroupAdLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group ad labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group ad labels. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdLabelsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAdLabelsAsync(new MutateAdGroupAdLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group ad labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group ad labels. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdLabelsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupAdLabelsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupAdLabelService client wrapper implementation, for convenient use. - /// - /// Service to manage labels on ad group ads. - /// - public sealed partial class AdGroupAdLabelServiceClientImpl : AdGroupAdLabelServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupAdLabels; - - /// - /// Constructs a client wrapper for the AdGroupAdLabelService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdGroupAdLabelServiceClientImpl(AdGroupAdLabelService.AdGroupAdLabelServiceClient grpcClient, AdGroupAdLabelServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupAdLabelServiceSettings effectiveSettings = settings ?? AdGroupAdLabelServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupAdLabels = clientHelper.BuildApiCall("MutateAdGroupAdLabels", grpcClient.MutateAdGroupAdLabelsAsync, grpcClient.MutateAdGroupAdLabels, effectiveSettings.MutateAdGroupAdLabelsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupAdLabels); - Modify_MutateAdGroupAdLabelsApiCall(ref _callMutateAdGroupAdLabels); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupAdLabelsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupAdLabelService.AdGroupAdLabelServiceClient grpcClient, AdGroupAdLabelServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupAdLabelService client - public override AdGroupAdLabelService.AdGroupAdLabelServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupAdLabelsRequest(ref MutateAdGroupAdLabelsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupAdLabelsResponse MutateAdGroupAdLabels(MutateAdGroupAdLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAdLabelsRequest(ref request, ref callSettings); - return _callMutateAdGroupAdLabels.Sync(request, callSettings); - } - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupAdLabelsAsync(MutateAdGroupAdLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAdLabelsRequest(ref request, ref callSettings); - return _callMutateAdGroupAdLabels.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceGrpc.g.cs deleted file mode 100755 index 6129601c8..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceGrpc.g.cs +++ /dev/null @@ -1,272 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_ad_label_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage labels on ad group ads. - /// - public static partial class AdGroupAdLabelService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupAdLabelService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdLabelsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdLabelsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupAdLabels = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupAdLabels", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdLabelsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdLabelsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupAdLabelService - [grpc::BindServiceMethod(typeof(AdGroupAdLabelService), "BindService")] - public abstract partial class AdGroupAdLabelServiceBase - { - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupAdLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupAdLabelService - public partial class AdGroupAdLabelServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupAdLabelService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAdLabelServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupAdLabelService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAdLabelServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAdLabelServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAdLabelServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsResponse MutateAdGroupAdLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAdLabels(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsResponse MutateAdGroupAdLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupAdLabels, null, options, request); - } - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAdLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAdLabelsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes ad group ad labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAdLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupAdLabels, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupAdLabelServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupAdLabelServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupAdLabelServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupAdLabels, serviceImpl.MutateAdGroupAdLabels).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupAdLabelServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupAdLabels, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupAdLabels)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceResourceNames.g.cs deleted file mode 100755 index 77a6a92bb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdLabelServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupAdLabelOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupAdLabelName RemoveAsAdGroupAdLabelName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupAdLabelName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupAdLabelResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupAdLabelName ResourceNameAsAdGroupAdLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupAdLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdResourceNames.g.cs deleted file mode 100755 index 176866ba7..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdResourceNames.g.cs +++ /dev/null @@ -1,304 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupAd resource. - public sealed partial class AdGroupAdName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}. - /// - CustomerAdGroupAd = 1, - } - - private static gax::PathTemplate s_customerAdGroupAd = new gax::PathTemplate("customers/{customer_id}/adGroupAds/{ad_group_id_ad_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupAdName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupAdName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupAdName FromCustomerAdGroupAd(string customerId, string adGroupId, string adId) => - new AdGroupAdName(ResourceNameType.CustomerAdGroupAd, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}. - /// - public static string Format(string customerId, string adGroupId, string adId) => - FormatCustomerAdGroupAd(customerId, adGroupId, adId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}. - /// - public static string FormatCustomerAdGroupAd(string customerId, string adGroupId, string adId) => - s_customerAdGroupAd.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupAdName Parse(string adGroupAdName) => Parse(adGroupAdName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupAdName Parse(string adGroupAdName, bool allowUnparsed) => - TryParse(adGroupAdName, allowUnparsed, out AdGroupAdName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdName, out AdGroupAdName result) => TryParse(adGroupAdName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAdName, bool allowUnparsed, out AdGroupAdName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupAdName, nameof(adGroupAdName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupAd.TryParseName(adGroupAdName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupAd(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupAdName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupAdName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adId = null, string adGroupId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdId = adId; - AdGroupId = adGroupId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - public AdGroupAdName(string customerId, string adGroupId, string adId) : this(ResourceNameType.CustomerAdGroupAd, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Ad ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdId { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupAd: return s_customerAdGroupAd.Expand(CustomerId, $"{AdGroupId}~{AdId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupAdName); - - /// - public bool Equals(AdGroupAdName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupAdName a, AdGroupAdName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupAdName a, AdGroupAdName b) => !(a == b); - } - - public partial class AdGroupAd - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupAdName ResourceNameAsAdGroupAdName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupAdName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList LabelsAsAdGroupAdLabelNames - { - get => new gax::ResourceNameList(Labels, s => string.IsNullOrEmpty(s) ? null : AdGroupAdLabelName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdRotationMode.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdRotationMode.g.cs deleted file mode 100755 index e736173b2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdRotationMode.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_group_ad_rotation_mode.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_group_ad_rotation_mode.proto - public static partial class AdGroupAdRotationModeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_group_ad_rotation_mode.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdRotationModeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfZ3JvdXBfYWRf", - "cm90YXRpb25fbW9kZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zInQKGUFkR3JvdXBBZFJvdGF0aW9uTW9kZUVudW0iVwoVQWRHcm91", - "cEFkUm90YXRpb25Nb2RlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThAB", - "EgwKCE9QVElNSVpFEAISEgoOUk9UQVRFX0ZPUkVWRVIQA0L0AQoiY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IaQWRHcm91cEFkUm90YXRp", - "b25Nb2RlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoC", - "Hkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum), global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeEnum.Types.AdGroupAdRotationMode) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad rotation modes of ads within an - /// ad group. - /// - public sealed partial class AdGroupAdRotationModeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdRotationModeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdRotationModeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdRotationModeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdRotationModeEnum(AdGroupAdRotationModeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdRotationModeEnum Clone() { - return new AdGroupAdRotationModeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdRotationModeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdRotationModeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdRotationModeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupAdRotationModeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible ad rotation modes of an ad group. - /// - public enum AdGroupAdRotationMode { - /// - /// The ad rotation mode has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Optimize ad group ads based on clicks or conversions. - /// - [pbr::OriginalName("OPTIMIZE")] Optimize = 2, - /// - /// Rotate evenly forever. - /// - [pbr::OriginalName("ROTATE_FOREVER")] RotateForever = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdService.g.cs deleted file mode 100755 index 44b24b6d9..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdService.g.cs +++ /dev/null @@ -1,1358 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_ad_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_ad_service.proto - public static partial class AdGroupAdServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_ad_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "YWRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzGixnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL3BvbGlj", - "eS5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jlc3Bv", - "bnNlX2NvbnRlbnRfdHlwZS5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3Jlc291cmNlcy9hZF9ncm91cF9hZC5wcm90bxocZ29vZ2xlL2FwaS9h", - "bm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dv", - "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", - "b3VyY2UucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3Rv", - "Ghdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKfAgoXTXV0YXRlQWRHcm91cEFk", - "c1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJOCgpvcGVyYXRp", - "b25zGAIgAygLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "LkFkR3JvdXBBZE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgD", - "IAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRl", - "bnRfdHlwZRgFIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5SZXNwb25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBl", - "IvACChJBZEdyb3VwQWRPcGVyYXRpb24SLwoLdXBkYXRlX21hc2sYBCABKAsy", - "Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEl8KG3BvbGljeV92YWxpZGF0", - "aW9uX3BhcmFtZXRlchgFIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uUG9saWN5VmFsaWRhdGlvblBhcmFtZXRlchI/CgZjcmVhdGUY", - "ASABKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFk", - "R3JvdXBBZEgAEj8KBnVwZGF0ZRgCIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cEFkSAASOQoGcmVtb3ZlGAMgASgJ", - "Qif6QSQKImdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwQWRIAEIL", - "CglvcGVyYXRpb24imAEKGE11dGF0ZUFkR3JvdXBBZHNSZXNwb25zZRIxChVw", - "YXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAyABKAsyEi5nb29nbGUucnBjLlN0YXR1", - "cxJJCgdyZXN1bHRzGAIgAygLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBBZFJlc3VsdCKbAQoVTXV0YXRlQWRH", - "cm91cEFkUmVzdWx0Ej4KDXJlc291cmNlX25hbWUYASABKAlCJ/pBJAoiZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBBZBJCCgthZF9ncm91cF9h", - "ZBgCIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "QWRHcm91cEFkMr0CChBBZEdyb3VwQWRTZXJ2aWNlEuEBChBNdXRhdGVBZEdy", - "b3VwQWRzEjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUFkR3JvdXBBZHNSZXF1ZXN0GjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBBZHNSZXNwb25zZSJUgtPkkwI1", - "IjAvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vYWRHcm91cEFkczpt", - "dXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNv", - "bS9hdXRoL2Fkd29yZHNCgQIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXNCFUFkR3JvdXBBZFNlcnZpY2VQcm90b1ABWklnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2", - "aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation.Parser, new[]{ "UpdateMask", "PolicyValidationParameter", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult.Parser, new[]{ "ResourceName", "AdGroupAd" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupAdService.MutateAdGroupAds][google.ads.googleads.v12.services.AdGroupAdService.MutateAdGroupAds]. - /// - public sealed partial class MutateAdGroupAdsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAdsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdsRequest(MutateAdGroupAdsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdsRequest Clone() { - return new MutateAdGroupAdsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ads are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ads. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAdsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAdsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAdsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an ad group ad. - /// - public sealed partial class AdGroupAdOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdOperation(AdGroupAdOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - policyValidationParameter_ = other.policyValidationParameter_ != null ? other.policyValidationParameter_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdOperation Clone() { - return new AdGroupAdOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "policy_validation_parameter" field. - public const int PolicyValidationParameterFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter policyValidationParameter_; - /// - /// Configuration for how policies are validated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter PolicyValidationParameter { - get { return policyValidationParameter_; } - set { - policyValidationParameter_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The ad is expected to have a valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed ad is expected, - /// in this format: - /// - /// `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(PolicyValidationParameter, other.PolicyValidationParameter)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (policyValidationParameter_ != null) hash ^= PolicyValidationParameter.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (policyValidationParameter_ != null) { - output.WriteRawTag(42); - output.WriteMessage(PolicyValidationParameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (policyValidationParameter_ != null) { - output.WriteRawTag(42); - output.WriteMessage(PolicyValidationParameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (policyValidationParameter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicyValidationParameter); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - if (other.policyValidationParameter_ != null) { - if (policyValidationParameter_ == null) { - PolicyValidationParameter = new global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter(); - } - PolicyValidationParameter.MergeFrom(other.PolicyValidationParameter); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 42: { - if (policyValidationParameter_ == null) { - PolicyValidationParameter = new global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter(); - } - input.ReadMessage(PolicyValidationParameter); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 42: { - if (policyValidationParameter_ == null) { - PolicyValidationParameter = new global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter(); - } - input.ReadMessage(PolicyValidationParameter); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group ad mutate. - /// - public sealed partial class MutateAdGroupAdsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAdsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdsResponse(MutateAdGroupAdsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdsResponse Clone() { - return new MutateAdGroupAdsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAdsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAdsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAdsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad mutate. - /// - public sealed partial class MutateAdGroupAdResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAdResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdResult(MutateAdGroupAdResult other) : this() { - resourceName_ = other.resourceName_; - adGroupAd_ = other.adGroupAd_ != null ? other.adGroupAd_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAdResult Clone() { - return new MutateAdGroupAdResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// The resource name returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_ad" field. - public const int AdGroupAdFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd adGroupAd_; - /// - /// The mutated ad group ad with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd AdGroupAd { - get { return adGroupAd_; } - set { - adGroupAd_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAdResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAdResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupAd, other.AdGroupAd)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupAd_ != null) hash ^= AdGroupAd.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupAd_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupAd); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupAd_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupAd); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupAd_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAd); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAdResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupAd_ != null) { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - AdGroupAd.MergeFrom(other.AdGroupAd); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - input.ReadMessage(AdGroupAd); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - input.ReadMessage(AdGroupAd); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceClient.g.cs deleted file mode 100755 index c1acd340d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceClient.g.cs +++ /dev/null @@ -1,717 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupAdServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupAdServiceSettings GetDefault() => new AdGroupAdServiceSettings(); - - /// Constructs a new object with default settings. - public AdGroupAdServiceSettings() - { - } - - private AdGroupAdServiceSettings(AdGroupAdServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupAdsSettings = existing.MutateAdGroupAdsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupAdServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupAdServiceClient.MutateAdGroupAds and AdGroupAdServiceClient.MutateAdGroupAdsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupAdsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupAdServiceSettings Clone() => new AdGroupAdServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class AdGroupAdServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupAdServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupAdServiceClientBuilder() : base(AdGroupAdServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupAdServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupAdServiceClient Build() - { - AdGroupAdServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupAdServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupAdServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupAdServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupAdServiceClient.ChannelPool; - } - - /// AdGroupAdService client wrapper, for convenient use. - /// - /// Service to manage ads in an ad group. - /// - public abstract partial class AdGroupAdServiceClient - { - /// - /// The default endpoint for the AdGroupAdService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupAdService scopes. - /// - /// The default AdGroupAdService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupAdService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupAdServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static AdGroupAdServiceClient Create() => new AdGroupAdServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupAdServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupAdServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupAdService.AdGroupAdServiceClient grpcClient = new AdGroupAdService.AdGroupAdServiceClient(callInvoker); - return new AdGroupAdServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupAdService client - public virtual AdGroupAdService.AdGroupAdServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAdsResponse MutateAdGroupAds(MutateAdGroupAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdsAsync(MutateAdGroupAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdsAsync(MutateAdGroupAdsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupAdsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ads are being modified. - /// - /// - /// Required. The list of operations to perform on individual ads. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAdsResponse MutateAdGroupAds(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAds(new MutateAdGroupAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ads are being modified. - /// - /// - /// Required. The list of operations to perform on individual ads. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAdsAsync(new MutateAdGroupAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ads are being modified. - /// - /// - /// Required. The list of operations to perform on individual ads. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAdsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupAdsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupAdService client wrapper implementation, for convenient use. - /// - /// Service to manage ads in an ad group. - /// - public sealed partial class AdGroupAdServiceClientImpl : AdGroupAdServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupAds; - - /// - /// Constructs a client wrapper for the AdGroupAdService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdGroupAdServiceClientImpl(AdGroupAdService.AdGroupAdServiceClient grpcClient, AdGroupAdServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupAdServiceSettings effectiveSettings = settings ?? AdGroupAdServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupAds = clientHelper.BuildApiCall("MutateAdGroupAds", grpcClient.MutateAdGroupAdsAsync, grpcClient.MutateAdGroupAds, effectiveSettings.MutateAdGroupAdsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupAds); - Modify_MutateAdGroupAdsApiCall(ref _callMutateAdGroupAds); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupAdsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupAdService.AdGroupAdServiceClient grpcClient, AdGroupAdServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupAdService client - public override AdGroupAdService.AdGroupAdServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupAdsRequest(ref MutateAdGroupAdsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupAdsResponse MutateAdGroupAds(MutateAdGroupAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAdsRequest(ref request, ref callSettings); - return _callMutateAdGroupAds.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupAdsAsync(MutateAdGroupAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAdsRequest(ref request, ref callSettings); - return _callMutateAdGroupAds.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceGrpc.g.cs deleted file mode 100755 index 9234ddcfb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceGrpc.g.cs +++ /dev/null @@ -1,432 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_ad_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ads in an ad group. - /// - public static partial class AdGroupAdService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupAdService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupAds = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupAds", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAdsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAdServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupAdService - [grpc::BindServiceMethod(typeof(AdGroupAdService), "BindService")] - public abstract partial class AdGroupAdServiceBase - { - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupAds(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupAdService - public partial class AdGroupAdServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupAdService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAdServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupAdService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAdServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAdServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAdServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsResponse MutateAdGroupAds(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAds(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsResponse MutateAdGroupAds(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupAds, null, options, request); - } - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAdsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAdsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ads. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyValidationParameterError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAdsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupAds, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupAdServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupAdServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupAdServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupAds, serviceImpl.MutateAdGroupAds).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupAdServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupAds, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupAds)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceResourceNames.g.cs deleted file mode 100755 index f87b50c21..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupAdOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupAdName RemoveAsAdGroupAdName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupAdName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupAdResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupAdName ResourceNameAsAdGroupAdName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupAdName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAdStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAdStatus.g.cs deleted file mode 100755 index a5346e4d3..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAdStatus.g.cs +++ /dev/null @@ -1,242 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_group_ad_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_group_ad_status.proto - public static partial class AdGroupAdStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_group_ad_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAdStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfZ3JvdXBfYWRf", - "c3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi", - "bAoTQWRHcm91cEFkU3RhdHVzRW51bSJVCg9BZEdyb3VwQWRTdGF0dXMSDwoL", - "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHRU5BQkxFRBACEgoKBlBB", - "VVNFRBADEgsKB1JFTU9WRUQQBELuAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtc0IUQWRHcm91cEFkU3RhdHVzUHJvdG9QAVpDZ29vZ2xl", - "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oC", - "Ikdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of an AdGroupAd. - /// - public sealed partial class AdGroupAdStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAdStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdGroupAdStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdStatusEnum(AdGroupAdStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAdStatusEnum Clone() { - return new AdGroupAdStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAdStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAdStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAdStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupAdStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an AdGroupAd. - /// - public enum AdGroupAdStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The ad group ad is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The ad group ad is paused. - /// - [pbr::OriginalName("PAUSED")] Paused = 3, - /// - /// The ad group ad is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAsset.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAsset.g.cs deleted file mode 100755 index 0a2c5ab73..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAsset.g.cs +++ /dev/null @@ -1,466 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_asset.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_asset.proto - public static partial class AdGroupAssetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_asset.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAssetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2Fzc2V0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfZmll", - "bGRfdHlwZS5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2Fzc2V0X2xpbmtfc3RhdHVzLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvYXNzZXRfc291cmNlLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "IswECgxBZEdyb3VwQXNzZXQSRAoNcmVzb3VyY2VfbmFtZRgBIAEoCUIt4EEF", - "+kEnCiVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEFzc2V0Ej0K", - "CGFkX2dyb3VwGAIgASgJQivgQQLgQQX6QSIKIGdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9BZEdyb3VwEjgKBWFzc2V0GAMgASgJQingQQLgQQX6QSAKHmdv", - "b2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldBJdCgpmaWVsZF90eXBlGAQg", - "ASgOMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFzc2V0Rmll", - "bGRUeXBlRW51bS5Bc3NldEZpZWxkVHlwZUIG4EEC4EEFElAKBnNvdXJjZRgG", - "IAEoDjI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Bc3NldFNv", - "dXJjZUVudW0uQXNzZXRTb3VyY2VCA+BBAxJTCgZzdGF0dXMYBSABKA4yQy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRMaW5rU3RhdHVz", - "RW51bS5Bc3NldExpbmtTdGF0dXM6d+pBdAolZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0FkR3JvdXBBc3NldBJLY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0v", - "YWRHcm91cEFzc2V0cy97YWRfZ3JvdXBfaWR9fnthc3NldF9pZH1+e2ZpZWxk", - "X3R5cGV9QoMCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlc0IRQWRHcm91cEFzc2V0UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJj", - "ZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJj", - "ZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSourceReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset.Parser, new[]{ "ResourceName", "AdGroup", "Asset", "FieldType", "Source", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A link between an ad group and an asset. - /// - public sealed partial class AdGroupAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAsset(AdGroupAsset other) : this() { - resourceName_ = other.resourceName_; - adGroup_ = other.adGroup_; - asset_ = other.asset_; - fieldType_ = other.fieldType_; - source_ = other.source_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAsset Clone() { - return new AdGroupAsset(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group asset. - /// AdGroupAsset resource names have the form: - /// - /// `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 2; - private string adGroup_ = ""; - /// - /// Required. Immutable. The ad group to which the asset is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 3; - private string asset_ = ""; - /// - /// Required. Immutable. The asset which is linked to the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "field_type" field. - public const int FieldTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType fieldType_ = global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified; - /// - /// Required. Immutable. Role that the asset takes under the linked ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType FieldType { - get { return fieldType_; } - set { - fieldType_ = value; - } - } - - /// Field number for the "source" field. - public const int SourceFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource source_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified; - /// - /// Output only. Source of the adgroup asset link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource Source { - get { return source_; } - set { - source_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified; - /// - /// Status of the ad group asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroup != other.AdGroup) return false; - if (Asset != other.Asset) return false; - if (FieldType != other.FieldType) return false; - if (Source != other.Source) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AdGroup.Length != 0) hash ^= AdGroup.GetHashCode(); - if (Asset.Length != 0) hash ^= Asset.GetHashCode(); - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) hash ^= FieldType.GetHashCode(); - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) hash ^= Source.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AdGroup); - } - if (Asset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Source); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AdGroup); - } - if (Asset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Source); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AdGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (Asset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAsset other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AdGroup.Length != 0) { - AdGroup = other.AdGroup; - } - if (other.Asset.Length != 0) { - Asset = other.Asset; - } - if (other.FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - FieldType = other.FieldType; - } - if (other.Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - Source = other.Source; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroup = input.ReadString(); - break; - } - case 26: { - Asset = input.ReadString(); - break; - } - case 32: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 48: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroup = input.ReadString(); - break; - } - case 26: { - Asset = input.ReadString(); - break; - } - case 32: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 48: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetResourceNames.g.cs deleted file mode 100755 index 7d3d5b32a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetResourceNames.g.cs +++ /dev/null @@ -1,331 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupAsset resource. - public sealed partial class AdGroupAssetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}. - /// - CustomerAdGroupAssetFieldType = 1, - } - - private static gax::PathTemplate s_customerAdGroupAssetFieldType = new gax::PathTemplate("customers/{customer_id}/adGroupAssets/{ad_group_id_asset_id_field_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupAssetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupAssetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupAssetName FromCustomerAdGroupAssetFieldType(string customerId, string adGroupId, string assetId, string fieldTypeId) => - new AdGroupAssetName(ResourceNameType.CustomerAdGroupAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}. - /// - public static string Format(string customerId, string adGroupId, string assetId, string fieldTypeId) => - FormatCustomerAdGroupAssetFieldType(customerId, adGroupId, assetId, fieldTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}. - /// - public static string FormatCustomerAdGroupAssetFieldType(string customerId, string adGroupId, string assetId, string fieldTypeId) => - s_customerAdGroupAssetFieldType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupAssetName Parse(string adGroupAssetName) => Parse(adGroupAssetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupAssetName Parse(string adGroupAssetName, bool allowUnparsed) => - TryParse(adGroupAssetName, allowUnparsed, out AdGroupAssetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAssetName, out AdGroupAssetName result) => - TryParse(adGroupAssetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAssetName, bool allowUnparsed, out AdGroupAssetName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupAssetName, nameof(adGroupAssetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupAssetFieldType.TryParseName(adGroupAssetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupAssetFieldType(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupAssetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupAssetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string assetId = null, string customerId = null, string fieldTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - AssetId = assetId; - CustomerId = customerId; - FieldTypeId = fieldTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - public AdGroupAssetName(string customerId, string adGroupId, string assetId, string fieldTypeId) : this(ResourceNameType.CustomerAdGroupAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Asset ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The FieldType ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FieldTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupAssetFieldType: return s_customerAdGroupAssetFieldType.Expand(CustomerId, $"{AdGroupId}~{AssetId}~{FieldTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupAssetName); - - /// - public bool Equals(AdGroupAssetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupAssetName a, AdGroupAssetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupAssetName a, AdGroupAssetName b) => !(a == b); - } - - public partial class AdGroupAsset - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupAssetName ResourceNameAsAdGroupAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetService.g.cs deleted file mode 100755 index a33f1ff4e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetService.g.cs +++ /dev/null @@ -1,1309 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_asset_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_asset_service.proto - public static partial class AdGroupAssetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_asset_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAssetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "YXNzZXRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVz", - "cG9uc2VfY29udGVudF90eXBlLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2FkX2dyb3VwX2Fzc2V0LnByb3RvGhxnb29nbGUv", - "YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", - "cHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIqUCChpNdXRhdGVBZEdy", - "b3VwQXNzZXRzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECElEK", - "Cm9wZXJhdGlvbnMYAiADKAsyOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuQWRHcm91cEFzc2V0T3BlcmF0aW9uQgPgQQISFwoPcGFydGlh", - "bF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVz", - "cG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNl", - "Q29udGVudFR5cGUimwIKFUFkR3JvdXBBc3NldE9wZXJhdGlvbhIvCgt1cGRh", - "dGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSQgoG", - "Y3JlYXRlGAEgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5BZEdyb3VwQXNzZXRIABJCCgZ1cGRhdGUYAyABKAsyMC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBBc3NldEgAEjwK", - "BnJlbW92ZRgCIAEoCUIq+kEnCiVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "QWRHcm91cEFzc2V0SABCCwoJb3BlcmF0aW9uIp4BChtNdXRhdGVBZEdyb3Vw", - "QXNzZXRzUmVzcG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAEgASgL", - "MhIuZ29vZ2xlLnJwYy5TdGF0dXMSTAoHcmVzdWx0cxgCIAMoCzI7Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQXNz", - "ZXRSZXN1bHQipwEKGE11dGF0ZUFkR3JvdXBBc3NldFJlc3VsdBJBCg1yZXNv", - "dXJjZV9uYW1lGAEgASgJQir6QScKJWdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9BZEdyb3VwQXNzZXQSSAoOYWRfZ3JvdXBfYXNzZXQYAiABKAsyMC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBBc3NldDLM", - "AgoTQWRHcm91cEFzc2V0U2VydmljZRLtAQoTTXV0YXRlQWRHcm91cEFzc2V0", - "cxI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVB", - "ZEdyb3VwQXNzZXRzUmVxdWVzdBo+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQXNzZXRzUmVzcG9uc2UiV4LT5JMC", - "OCIzL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2FkR3JvdXBBc3Nl", - "dHM6bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBp", - "cy5jb20vYXV0aC9hZHdvcmRzQoQCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzQhhBZEdyb3VwQXNzZXRTZXJ2aWNlUHJvdG9QAVpJ", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult.Parser, new[]{ "ResourceName", "AdGroupAsset" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupAssetService.MutateAdGroupAssets][google.ads.googleads.v12.services.AdGroupAssetService.MutateAdGroupAssets]. - /// - public sealed partial class MutateAdGroupAssetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAssetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetsRequest(MutateAdGroupAssetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetsRequest Clone() { - return new MutateAdGroupAssetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad group assets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad group assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAssetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAssetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAssetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an ad group asset. - /// - public sealed partial class AdGroupAssetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAssetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetOperation(AdGroupAssetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetOperation Clone() { - return new AdGroupAssetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group - /// asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 3; - /// - /// Update operation: The ad group asset is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed ad group asset is - /// expected, in this format: - /// - /// `customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 3, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAssetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAssetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(26); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(26); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAssetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group asset mutate. - /// - public sealed partial class MutateAdGroupAssetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAssetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetsResponse(MutateAdGroupAssetsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetsResponse Clone() { - return new MutateAdGroupAssetsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAssetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAssetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAssetsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad group asset mutate. - /// - public sealed partial class MutateAdGroupAssetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAssetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetResult(MutateAdGroupAssetResult other) : this() { - resourceName_ = other.resourceName_; - adGroupAsset_ = other.adGroupAsset_ != null ? other.adGroupAsset_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetResult Clone() { - return new MutateAdGroupAssetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_asset" field. - public const int AdGroupAssetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset adGroupAsset_; - /// - /// The mutated ad group asset with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset AdGroupAsset { - get { return adGroupAsset_; } - set { - adGroupAsset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAssetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAssetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupAsset, other.AdGroupAsset)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupAsset_ != null) hash ^= AdGroupAsset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupAsset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAsset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAssetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupAsset_ != null) { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - AdGroupAsset.MergeFrom(other.AdGroupAsset); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - input.ReadMessage(AdGroupAsset); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - input.ReadMessage(AdGroupAsset); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceClient.g.cs deleted file mode 100755 index 733fb0725..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceClient.g.cs +++ /dev/null @@ -1,474 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupAssetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupAssetServiceSettings GetDefault() => new AdGroupAssetServiceSettings(); - - /// Constructs a new object with default settings. - public AdGroupAssetServiceSettings() - { - } - - private AdGroupAssetServiceSettings(AdGroupAssetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupAssetsSettings = existing.MutateAdGroupAssetsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupAssetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupAssetServiceClient.MutateAdGroupAssets and - /// AdGroupAssetServiceClient.MutateAdGroupAssetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupAssetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupAssetServiceSettings Clone() => new AdGroupAssetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupAssetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupAssetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupAssetServiceClientBuilder() : base(AdGroupAssetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupAssetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupAssetServiceClient Build() - { - AdGroupAssetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupAssetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupAssetServiceClient.ChannelPool; - } - - /// AdGroupAssetService client wrapper, for convenient use. - /// - /// Service to manage ad group assets. - /// - public abstract partial class AdGroupAssetServiceClient - { - /// - /// The default endpoint for the AdGroupAssetService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupAssetService scopes. - /// - /// The default AdGroupAssetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupAssetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupAssetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupAssetServiceClient Create() => new AdGroupAssetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupAssetServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupAssetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupAssetService.AdGroupAssetServiceClient grpcClient = new AdGroupAssetService.AdGroupAssetServiceClient(callInvoker); - return new AdGroupAssetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupAssetService client - public virtual AdGroupAssetService.AdGroupAssetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAssetsResponse MutateAdGroupAssets(MutateAdGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetsAsync(MutateAdGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetsAsync(MutateAdGroupAssetsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose ad group assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group assets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAssetsResponse MutateAdGroupAssets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAssets(new MutateAdGroupAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose ad group assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group assets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAssetsAsync(new MutateAdGroupAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose ad group assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group assets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupAssetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupAssetService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group assets. - /// - public sealed partial class AdGroupAssetServiceClientImpl : AdGroupAssetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupAssets; - - /// - /// Constructs a client wrapper for the AdGroupAssetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdGroupAssetServiceClientImpl(AdGroupAssetService.AdGroupAssetServiceClient grpcClient, AdGroupAssetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupAssetServiceSettings effectiveSettings = settings ?? AdGroupAssetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupAssets = clientHelper.BuildApiCall("MutateAdGroupAssets", grpcClient.MutateAdGroupAssetsAsync, grpcClient.MutateAdGroupAssets, effectiveSettings.MutateAdGroupAssetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupAssets); - Modify_MutateAdGroupAssetsApiCall(ref _callMutateAdGroupAssets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupAssetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupAssetService.AdGroupAssetServiceClient grpcClient, AdGroupAssetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupAssetService client - public override AdGroupAssetService.AdGroupAssetServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupAssetsRequest(ref MutateAdGroupAssetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupAssetsResponse MutateAdGroupAssets(MutateAdGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAssetsRequest(ref request, ref callSettings); - return _callMutateAdGroupAssets.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupAssetsAsync(MutateAdGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAssetsRequest(ref request, ref callSettings); - return _callMutateAdGroupAssets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceGrpc.g.cs deleted file mode 100755 index 3dcfd0fe2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceGrpc.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_asset_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group assets. - /// - public static partial class AdGroupAssetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupAssetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupAssets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupAssets", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupAssetService - [grpc::BindServiceMethod(typeof(AdGroupAssetService), "BindService")] - public abstract partial class AdGroupAssetServiceBase - { - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupAssetService - public partial class AdGroupAssetServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupAssetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAssetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupAssetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAssetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAssetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAssetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsResponse MutateAdGroupAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAssets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsResponse MutateAdGroupAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupAssets, null, options, request); - } - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAssetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupAssets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupAssetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupAssetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupAssetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupAssets, serviceImpl.MutateAdGroupAssets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupAssetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupAssets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceResourceNames.g.cs deleted file mode 100755 index 39c2d3ea9..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupAssetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupAssetName RemoveAsAdGroupAssetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupAssetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupAssetResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupAssetName ResourceNameAsAdGroupAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSet.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetSet.g.cs deleted file mode 100755 index 86d12ca39..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSet.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_asset_set.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_asset_set.proto - public static partial class AdGroupAssetSetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_asset_set.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAssetSetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2Fzc2V0X3NldC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fzc2V0", - "X3NldF9saW5rX3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhh", - "dmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKqAwoPQWRH", - "cm91cEFzc2V0U2V0EkcKDXJlc291cmNlX25hbWUYASABKAlCMOBBBfpBKgoo", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBBc3NldFNldBI6Cghh", - "ZF9ncm91cBgCIAEoCUIo4EEF+kEiCiBnb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b20vQWRHcm91cBI8Cglhc3NldF9zZXQYAyABKAlCKeBBBfpBIwohZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0U2V0El4KBnN0YXR1cxgEIAEoDjJJ", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Bc3NldFNldExpbmtT", - "dGF0dXNFbnVtLkFzc2V0U2V0TGlua1N0YXR1c0ID4EEDOnTqQXEKKGdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwQXNzZXRTZXQSRWN1c3RvbWVy", - "cy97Y3VzdG9tZXJfaWR9L2FkR3JvdXBBc3NldFNldHMve2FkX2dyb3VwX2lk", - "fX57YXNzZXRfc2V0X2lkfUKGAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXNCFEFkR3JvdXBBc3NldFNldFByb3RvUAFaS2dvb2ds", - "ZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet.Parser, new[]{ "ResourceName", "AdGroup", "AssetSet", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// AdGroupAssetSet is the linkage between an ad group and an asset set. - /// Creating an AdGroupAssetSet links an asset set with an ad group. - /// - public sealed partial class AdGroupAssetSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAssetSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetSet(AdGroupAssetSet other) : this() { - resourceName_ = other.resourceName_; - adGroup_ = other.adGroup_; - assetSet_ = other.assetSet_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetSet Clone() { - return new AdGroupAssetSet(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group asset set. - /// Ad group asset set resource names have the form: - /// - /// `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 2; - private string adGroup_ = ""; - /// - /// Immutable. The ad group to which this asset set is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_set" field. - public const int AssetSetFieldNumber = 3; - private string assetSet_ = ""; - /// - /// Immutable. The asset set which is linked to the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetSet { - get { return assetSet_; } - set { - assetSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified; - /// - /// Output only. The status of the ad group asset set. Read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAssetSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAssetSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroup != other.AdGroup) return false; - if (AssetSet != other.AssetSet) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AdGroup.Length != 0) hash ^= AdGroup.GetHashCode(); - if (AssetSet.Length != 0) hash ^= AssetSet.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AdGroup); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AssetSet); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AdGroup); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AssetSet); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AdGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (AssetSet.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetSet); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAssetSet other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AdGroup.Length != 0) { - AdGroup = other.AdGroup; - } - if (other.AssetSet.Length != 0) { - AssetSet = other.AssetSet; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroup = input.ReadString(); - break; - } - case 26: { - AssetSet = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroup = input.ReadString(); - break; - } - case 26: { - AssetSet = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetResourceNames.g.cs deleted file mode 100755 index 61328533b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetResourceNames.g.cs +++ /dev/null @@ -1,317 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupAssetSet resource. - public sealed partial class AdGroupAssetSetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id} - /// . - /// - CustomerAdGroupAssetSet = 1, - } - - private static gax::PathTemplate s_customerAdGroupAssetSet = new gax::PathTemplate("customers/{customer_id}/adGroupAssetSets/{ad_group_id_asset_set_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupAssetSetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupAssetSetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupAssetSetName FromCustomerAdGroupAssetSet(string customerId, string adGroupId, string assetSetId) => - new AdGroupAssetSetName(ResourceNameType.CustomerAdGroupAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}. - /// - public static string Format(string customerId, string adGroupId, string assetSetId) => - FormatCustomerAdGroupAssetSet(customerId, adGroupId, assetSetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}. - /// - public static string FormatCustomerAdGroupAssetSet(string customerId, string adGroupId, string assetSetId) => - s_customerAdGroupAssetSet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupAssetSetName Parse(string adGroupAssetSetName) => Parse(adGroupAssetSetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupAssetSetName Parse(string adGroupAssetSetName, bool allowUnparsed) => - TryParse(adGroupAssetSetName, allowUnparsed, out AdGroupAssetSetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAssetSetName, out AdGroupAssetSetName result) => - TryParse(adGroupAssetSetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAssetSetName, bool allowUnparsed, out AdGroupAssetSetName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupAssetSetName, nameof(adGroupAssetSetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupAssetSet.TryParseName(adGroupAssetSetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupAssetSet(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupAssetSetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupAssetSetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string assetSetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - AssetSetId = assetSetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - public AdGroupAssetSetName(string customerId, string adGroupId, string assetSetId) : this(ResourceNameType.CustomerAdGroupAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The AssetSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetSetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupAssetSet: return s_customerAdGroupAssetSet.Expand(CustomerId, $"{AdGroupId}~{AssetSetId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupAssetSetName); - - /// - public bool Equals(AdGroupAssetSetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupAssetSetName a, AdGroupAssetSetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupAssetSetName a, AdGroupAssetSetName b) => !(a == b); - } - - public partial class AdGroupAssetSet - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupAssetSetName ResourceNameAsAdGroupAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupAssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetSetName AssetSetAsAssetSetName - { - get => string.IsNullOrEmpty(AssetSet) ? null : AssetSetName.Parse(AssetSet, allowUnparsed: true); - set => AssetSet = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetService.g.cs deleted file mode 100755 index c6b28fb5b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetService.g.cs +++ /dev/null @@ -1,1200 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_asset_set_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_asset_set_service.proto - public static partial class AdGroupAssetSetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_asset_set_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAssetSetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "YXNzZXRfc2V0X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9hZF9ncm91cF9hc3NldF9zZXQucHJvdG8a", - "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xp", - "ZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5w", - "cm90byKrAgodTXV0YXRlQWRHcm91cEFzc2V0U2V0c1JlcXVlc3QSGAoLY3Vz", - "dG9tZXJfaWQYASABKAlCA+BBAhJUCgpvcGVyYXRpb25zGAIgAygLMjsuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkR3JvdXBBc3NldFNl", - "dE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12", - "YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgF", - "IAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25z", - "ZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIq8BChhBZEdy", - "b3VwQXNzZXRTZXRPcGVyYXRpb24SRQoGY3JlYXRlGAEgASgLMjMuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwQXNzZXRTZXRI", - "ABI/CgZyZW1vdmUYAiABKAlCLfpBKgooZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0FkR3JvdXBBc3NldFNldEgAQgsKCW9wZXJhdGlvbiKkAQoeTXV0YXRl", - "QWRHcm91cEFzc2V0U2V0c1Jlc3BvbnNlEk8KB3Jlc3VsdHMYASADKAsyPi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRHcm91", - "cEFzc2V0U2V0UmVzdWx0EjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgCIAEo", - "CzISLmdvb2dsZS5ycGMuU3RhdHVzIrQBChtNdXRhdGVBZEdyb3VwQXNzZXRT", - "ZXRSZXN1bHQSRAoNcmVzb3VyY2VfbmFtZRgBIAEoCUIt+kEqCihnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEFzc2V0U2V0Ek8KEmFkX2dyb3Vw", - "X2Fzc2V0X3NldBgCIAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQWRHcm91cEFzc2V0U2V0MtsCChZBZEdyb3VwQXNzZXRTZXRT", - "ZXJ2aWNlEvkBChZNdXRhdGVBZEdyb3VwQXNzZXRTZXRzEkAuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBBc3NldFNl", - "dHNSZXF1ZXN0GkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "Lk11dGF0ZUFkR3JvdXBBc3NldFNldHNSZXNwb25zZSJagtPkkwI7IjYvdjEy", - "L2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vYWRHcm91cEFzc2V0U2V0czpt", - "dXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNv", - "bS9hdXRoL2Fkd29yZHNChwIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXNCG0FkR3JvdXBBc3NldFNldFNlcnZpY2VQcm90b1ABWkln", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetResult.Parser, new[]{ "ResourceName", "AdGroupAssetSet" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupAssetSetService.MutateAdGroupAssetSets][google.ads.googleads.v12.services.AdGroupAssetSetService.MutateAdGroupAssetSets]. - /// - public sealed partial class MutateAdGroupAssetSetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAssetSetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetsRequest(MutateAdGroupAssetSetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetsRequest Clone() { - return new MutateAdGroupAssetSetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad group asset sets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad group asset sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAssetSetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAssetSetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAssetSetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an ad group asset set. - /// - public sealed partial class AdGroupAssetSetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAssetSetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetSetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetSetOperation(AdGroupAssetSetOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAssetSetOperation Clone() { - return new AdGroupAssetSetOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group asset - /// set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed ad group asset set is - /// expected, in this format: - /// `customers/{customer_id}/adGroupAssetSets/{ad_group_id}~{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAssetSetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAssetSetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAssetSetOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group asset set mutate. - /// - public sealed partial class MutateAdGroupAssetSetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAssetSetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetsResponse(MutateAdGroupAssetSetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetsResponse Clone() { - return new MutateAdGroupAssetSetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (e.g. auth errors), - /// we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAssetSetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAssetSetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAssetSetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad group asset set mutate. - /// - public sealed partial class MutateAdGroupAssetSetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupAssetSetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetResult(MutateAdGroupAssetSetResult other) : this() { - resourceName_ = other.resourceName_; - adGroupAssetSet_ = other.adGroupAssetSet_ != null ? other.adGroupAssetSet_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupAssetSetResult Clone() { - return new MutateAdGroupAssetSetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_asset_set" field. - public const int AdGroupAssetSetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet adGroupAssetSet_; - /// - /// The mutated ad group asset set with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet AdGroupAssetSet { - get { return adGroupAssetSet_; } - set { - adGroupAssetSet_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupAssetSetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupAssetSetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupAssetSet, other.AdGroupAssetSet)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupAssetSet_ != null) hash ^= AdGroupAssetSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupAssetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupAssetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupAssetSet_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAssetSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupAssetSetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupAssetSet_ != null) { - if (adGroupAssetSet_ == null) { - AdGroupAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - } - AdGroupAssetSet.MergeFrom(other.AdGroupAssetSet); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupAssetSet_ == null) { - AdGroupAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - } - input.ReadMessage(AdGroupAssetSet); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupAssetSet_ == null) { - AdGroupAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - } - input.ReadMessage(AdGroupAssetSet); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceClient.g.cs deleted file mode 100755 index a815603dc..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupAssetSetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupAssetSetServiceSettings GetDefault() => new AdGroupAssetSetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupAssetSetServiceSettings() - { - } - - private AdGroupAssetSetServiceSettings(AdGroupAssetSetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupAssetSetsSettings = existing.MutateAdGroupAssetSetsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupAssetSetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupAssetSetServiceClient.MutateAdGroupAssetSets and - /// AdGroupAssetSetServiceClient.MutateAdGroupAssetSetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupAssetSetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupAssetSetServiceSettings Clone() => new AdGroupAssetSetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupAssetSetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupAssetSetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupAssetSetServiceClientBuilder() : base(AdGroupAssetSetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupAssetSetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupAssetSetServiceClient Build() - { - AdGroupAssetSetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupAssetSetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupAssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupAssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupAssetSetServiceClient.ChannelPool; - } - - /// AdGroupAssetSetService client wrapper, for convenient use. - /// - /// Service to manage ad group asset set - /// - public abstract partial class AdGroupAssetSetServiceClient - { - /// - /// The default endpoint for the AdGroupAssetSetService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupAssetSetService scopes. - /// - /// The default AdGroupAssetSetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupAssetSetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupAssetSetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupAssetSetServiceClient Create() => new AdGroupAssetSetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupAssetSetServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupAssetSetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupAssetSetService.AdGroupAssetSetServiceClient grpcClient = new AdGroupAssetSetService.AdGroupAssetSetServiceClient(callInvoker); - return new AdGroupAssetSetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupAssetSetService client - public virtual AdGroupAssetSetService.AdGroupAssetSetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAssetSetsResponse MutateAdGroupAssetSets(MutateAdGroupAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetSetsAsync(MutateAdGroupAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetSetsAsync(MutateAdGroupAssetSetsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose ad group asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupAssetSetsResponse MutateAdGroupAssetSets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAssetSets(new MutateAdGroupAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose ad group asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetSetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupAssetSetsAsync(new MutateAdGroupAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose ad group asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group asset sets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupAssetSetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupAssetSetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupAssetSetService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group asset set - /// - public sealed partial class AdGroupAssetSetServiceClientImpl : AdGroupAssetSetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupAssetSets; - - /// - /// Constructs a client wrapper for the AdGroupAssetSetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AdGroupAssetSetServiceClientImpl(AdGroupAssetSetService.AdGroupAssetSetServiceClient grpcClient, AdGroupAssetSetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupAssetSetServiceSettings effectiveSettings = settings ?? AdGroupAssetSetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupAssetSets = clientHelper.BuildApiCall("MutateAdGroupAssetSets", grpcClient.MutateAdGroupAssetSetsAsync, grpcClient.MutateAdGroupAssetSets, effectiveSettings.MutateAdGroupAssetSetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupAssetSets); - Modify_MutateAdGroupAssetSetsApiCall(ref _callMutateAdGroupAssetSets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupAssetSetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupAssetSetService.AdGroupAssetSetServiceClient grpcClient, AdGroupAssetSetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupAssetSetService client - public override AdGroupAssetSetService.AdGroupAssetSetServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupAssetSetsRequest(ref MutateAdGroupAssetSetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupAssetSetsResponse MutateAdGroupAssetSets(MutateAdGroupAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAssetSetsRequest(ref request, ref callSettings); - return _callMutateAdGroupAssetSets.Sync(request, callSettings); - } - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupAssetSetsAsync(MutateAdGroupAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupAssetSetsRequest(ref request, ref callSettings); - return _callMutateAdGroupAssetSets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceGrpc.g.cs deleted file mode 100755 index ca75622c0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_asset_set_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group asset set - /// - public static partial class AdGroupAssetSetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupAssetSetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetSetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetSetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupAssetSets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupAssetSets", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetSetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupAssetSetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetSetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupAssetSetService - [grpc::BindServiceMethod(typeof(AdGroupAssetSetService), "BindService")] - public abstract partial class AdGroupAssetSetServiceBase - { - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupAssetSetService - public partial class AdGroupAssetSetServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupAssetSetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAssetSetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupAssetSetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupAssetSetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAssetSetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupAssetSetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsResponse MutateAdGroupAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAssetSets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsResponse MutateAdGroupAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupAssetSets, null, options, request); - } - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupAssetSetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, or removes ad group asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupAssetSets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupAssetSetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupAssetSetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupAssetSetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupAssetSets, serviceImpl.MutateAdGroupAssetSets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupAssetSetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupAssetSets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupAssetSets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceResourceNames.g.cs deleted file mode 100755 index 35869cfba..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAssetSetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupAssetSetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupAssetSetName RemoveAsAdGroupAssetSetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupAssetSetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupAssetSetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupAssetSetName ResourceNameAsAdGroupAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupAssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAudienceView.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAudienceView.g.cs deleted file mode 100755 index bc16289d2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAudienceView.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_audience_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_audience_view.proto - public static partial class AdGroupAudienceViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_audience_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupAudienceViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2F1ZGllbmNlX3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i4AEKE0FkR3JvdXBBdWRpZW5j", - "ZVZpZXcSSwoNcmVzb3VyY2VfbmFtZRgBIAEoCUI04EED+kEuCixnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEF1ZGllbmNlVmlldzp86kF5Cixn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEF1ZGllbmNlVmlldxJJ", - "Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYWRHcm91cEF1ZGllbmNlVmlld3Mv", - "e2FkX2dyb3VwX2lkfX57Y3JpdGVyaW9uX2lkfUKKAgomY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCGEFkR3JvdXBBdWRpZW5jZVZp", - "ZXdQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNH", - "QUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceView), global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group audience view. - /// Includes performance data from interests and remarketing lists for Display - /// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), - /// aggregated at the audience level. - /// - public sealed partial class AdGroupAudienceView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupAudienceView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAudienceView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAudienceView(AdGroupAudienceView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupAudienceView Clone() { - return new AdGroupAudienceView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the ad group audience view. - /// Ad group audience view resource names have the form: - /// - /// `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupAudienceView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupAudienceView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupAudienceView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupAudienceViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupAudienceViewResourceNames.g.cs deleted file mode 100755 index 98d15aecb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupAudienceViewResourceNames.g.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupAudienceView resource. - public sealed partial class AdGroupAudienceViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}. - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/adGroupAudienceViews/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupAudienceViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupAudienceViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static AdGroupAudienceViewName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new AdGroupAudienceViewName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupAudienceViewName Parse(string adGroupAudienceViewName) => Parse(adGroupAudienceViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupAudienceViewName Parse(string adGroupAudienceViewName, bool allowUnparsed) => - TryParse(adGroupAudienceViewName, allowUnparsed, out AdGroupAudienceViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAudienceViewName, out AdGroupAudienceViewName result) => - TryParse(adGroupAudienceViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupAudienceViewName, bool allowUnparsed, out AdGroupAudienceViewName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupAudienceViewName, nameof(adGroupAudienceViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(adGroupAudienceViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupAudienceViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupAudienceViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public AdGroupAudienceViewName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupAudienceViewName); - - /// - public bool Equals(AdGroupAudienceViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupAudienceViewName a, AdGroupAudienceViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupAudienceViewName a, AdGroupAudienceViewName b) => !(a == b); - } - - public partial class AdGroupAudienceView - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupAudienceViewName ResourceNameAsAdGroupAudienceViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupAudienceViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifier.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupBidModifier.g.cs deleted file mode 100755 index dc19829a3..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifier.g.cs +++ /dev/null @@ -1,958 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_bid_modifier.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_bid_modifier.proto - public static partial class AdGroupBidModifierReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_bid_modifier.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupBidModifierReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2JpZF9tb2RpZmllci5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9j", - "cml0ZXJpYS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2JpZF9tb2RpZmllcl9zb3VyY2UucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRf", - "YmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i5AkK", - "EkFkR3JvdXBCaWRNb2RpZmllchJKCg1yZXNvdXJjZV9uYW1lGAEgASgJQjPg", - "QQX6QS0KK2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwQmlkTW9k", - "aWZpZXISPwoIYWRfZ3JvdXAYDSABKAlCKOBBBfpBIgogZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0FkR3JvdXBIAYgBARIeCgxjcml0ZXJpb25faWQYDiAB", - "KANCA+BBA0gCiAEBEhkKDGJpZF9tb2RpZmllchgPIAEoAUgDiAEBEkQKDWJh", - "c2VfYWRfZ3JvdXAYECABKAlCKOBBA/pBIgogZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0FkR3JvdXBIBIgBARJpChNiaWRfbW9kaWZpZXJfc291cmNlGAog", - "ASgOMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkJpZE1vZGlm", - "aWVyU291cmNlRW51bS5CaWRNb2RpZmllclNvdXJjZUID4EEDEmUKGWhvdGVs", - "X2RhdGVfc2VsZWN0aW9uX3R5cGUYBSABKAsyOy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uLkhvdGVsRGF0ZVNlbGVjdGlvblR5cGVJbmZvQgPg", - "QQVIABJrChxob3RlbF9hZHZhbmNlX2Jvb2tpbmdfd2luZG93GAYgASgLMj4u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Ib3RlbEFkdmFuY2VC", - "b29raW5nV2luZG93SW5mb0ID4EEFSAASWwoUaG90ZWxfbGVuZ3RoX29mX3N0", - "YXkYByABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkhv", - "dGVsTGVuZ3RoT2ZTdGF5SW5mb0ID4EEFSAASVwoSaG90ZWxfY2hlY2tfaW5f", - "ZGF5GAggASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5I", - "b3RlbENoZWNrSW5EYXlJbmZvQgPgQQVIABJCCgZkZXZpY2UYCyABKAsyKy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkRldmljZUluZm9CA+BB", - "BUgAElcKEXByZWZlcnJlZF9jb250ZW50GAwgASgLMjUuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmNvbW1vbi5QcmVmZXJyZWRDb250ZW50SW5mb0ID4EEF", - "SAASZAoZaG90ZWxfY2hlY2tfaW5fZGF0ZV9yYW5nZRgRIAEoCzI6Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uSG90ZWxDaGVja0luRGF0ZVJh", - "bmdlSW5mb0ID4EEFSAA6eupBdworZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0FkR3JvdXBCaWRNb2RpZmllchJIY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0v", - "YWRHcm91cEJpZE1vZGlmaWVycy97YWRfZ3JvdXBfaWR9fntjcml0ZXJpb25f", - "aWR9QgsKCWNyaXRlcmlvbkILCglfYWRfZ3JvdXBCDwoNX2NyaXRlcmlvbl9p", - "ZEIPCg1fYmlkX21vZGlmaWVyQhAKDl9iYXNlX2FkX2dyb3VwQokCCiZjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0IXQWRHcm91cEJp", - "ZE1vZGlmaWVyUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3Vy", - "Y2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNl", - "c8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier), global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier.Parser, new[]{ "ResourceName", "AdGroup", "CriterionId", "BidModifier", "BaseAdGroup", "BidModifierSource", "HotelDateSelectionType", "HotelAdvanceBookingWindow", "HotelLengthOfStay", "HotelCheckInDay", "Device", "PreferredContent", "HotelCheckInDateRange" }, new[]{ "Criterion", "AdGroup", "CriterionId", "BidModifier", "BaseAdGroup" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents an ad group bid modifier. - /// - public sealed partial class AdGroupBidModifier : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupBidModifier()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifierReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifier() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifier(AdGroupBidModifier other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - adGroup_ = other.adGroup_; - criterionId_ = other.criterionId_; - bidModifier_ = other.bidModifier_; - baseAdGroup_ = other.baseAdGroup_; - bidModifierSource_ = other.bidModifierSource_; - switch (other.CriterionCase) { - case CriterionOneofCase.HotelDateSelectionType: - HotelDateSelectionType = other.HotelDateSelectionType.Clone(); - break; - case CriterionOneofCase.HotelAdvanceBookingWindow: - HotelAdvanceBookingWindow = other.HotelAdvanceBookingWindow.Clone(); - break; - case CriterionOneofCase.HotelLengthOfStay: - HotelLengthOfStay = other.HotelLengthOfStay.Clone(); - break; - case CriterionOneofCase.HotelCheckInDay: - HotelCheckInDay = other.HotelCheckInDay.Clone(); - break; - case CriterionOneofCase.Device: - Device = other.Device.Clone(); - break; - case CriterionOneofCase.PreferredContent: - PreferredContent = other.PreferredContent.Clone(); - break; - case CriterionOneofCase.HotelCheckInDateRange: - HotelCheckInDateRange = other.HotelCheckInDateRange.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifier Clone() { - return new AdGroupBidModifier(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group bid modifier. - /// Ad group bid modifier resource names have the form: - /// - /// `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 13; - private string adGroup_; - /// - /// Immutable. The ad group to which this criterion belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_ ?? ""; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroup { - get { return adGroup_ != null; } - } - /// Clears the value of the "ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroup() { - adGroup_ = null; - } - - /// Field number for the "criterion_id" field. - public const int CriterionIdFieldNumber = 14; - private long criterionId_; - /// - /// Output only. The ID of the criterion to bid modify. - /// - /// This field is ignored for mutates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CriterionId { - get { if ((_hasBits0 & 1) != 0) { return criterionId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - criterionId_ = value; - } - } - /// Gets whether the "criterion_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCriterionId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "criterion_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterionId() { - _hasBits0 &= ~1; - } - - /// Field number for the "bid_modifier" field. - public const int BidModifierFieldNumber = 15; - private double bidModifier_; - /// - /// The modifier for the bid when the criterion matches. The modifier must be - /// in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent. - /// Use 0 to opt out of a Device type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double BidModifier { - get { if ((_hasBits0 & 2) != 0) { return bidModifier_; } else { return 0D; } } - set { - _hasBits0 |= 2; - bidModifier_ = value; - } - } - /// Gets whether the "bid_modifier" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBidModifier { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "bid_modifier" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBidModifier() { - _hasBits0 &= ~2; - } - - /// Field number for the "base_ad_group" field. - public const int BaseAdGroupFieldNumber = 16; - private string baseAdGroup_; - /// - /// Output only. The base ad group from which this draft/trial adgroup bid modifier was - /// created. If ad_group is a base ad group then this field will be equal to - /// ad_group. If the ad group was created in the draft or trial and has no - /// corresponding base ad group, then this field will be null. - /// This field is readonly. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BaseAdGroup { - get { return baseAdGroup_ ?? ""; } - set { - baseAdGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "base_ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBaseAdGroup { - get { return baseAdGroup_ != null; } - } - /// Clears the value of the "base_ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBaseAdGroup() { - baseAdGroup_ = null; - } - - /// Field number for the "bid_modifier_source" field. - public const int BidModifierSourceFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource bidModifierSource_ = global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified; - /// - /// Output only. Bid modifier source. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource BidModifierSource { - get { return bidModifierSource_; } - set { - bidModifierSource_ = value; - } - } - - /// Field number for the "hotel_date_selection_type" field. - public const int HotelDateSelectionTypeFieldNumber = 5; - /// - /// Immutable. Criterion for hotel date selection (default dates versus user selected). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo HotelDateSelectionType { - get { return criterionCase_ == CriterionOneofCase.HotelDateSelectionType ? (global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.HotelDateSelectionType; - } - } - - /// Field number for the "hotel_advance_booking_window" field. - public const int HotelAdvanceBookingWindowFieldNumber = 6; - /// - /// Immutable. Criterion for number of days prior to the stay the booking is being made. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo HotelAdvanceBookingWindow { - get { return criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow ? (global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.HotelAdvanceBookingWindow; - } - } - - /// Field number for the "hotel_length_of_stay" field. - public const int HotelLengthOfStayFieldNumber = 7; - /// - /// Immutable. Criterion for length of hotel stay in nights. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo HotelLengthOfStay { - get { return criterionCase_ == CriterionOneofCase.HotelLengthOfStay ? (global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.HotelLengthOfStay; - } - } - - /// Field number for the "hotel_check_in_day" field. - public const int HotelCheckInDayFieldNumber = 8; - /// - /// Immutable. Criterion for day of the week the booking is for. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo HotelCheckInDay { - get { return criterionCase_ == CriterionOneofCase.HotelCheckInDay ? (global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.HotelCheckInDay; - } - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 11; - /// - /// Immutable. A device criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DeviceInfo Device { - get { return criterionCase_ == CriterionOneofCase.Device ? (global::Google.Ads.GoogleAds.V12.Common.DeviceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Device; - } - } - - /// Field number for the "preferred_content" field. - public const int PreferredContentFieldNumber = 12; - /// - /// Immutable. A preferred content criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo PreferredContent { - get { return criterionCase_ == CriterionOneofCase.PreferredContent ? (global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.PreferredContent; - } - } - - /// Field number for the "hotel_check_in_date_range" field. - public const int HotelCheckInDateRangeFieldNumber = 17; - /// - /// Immutable. Criterion for a hotel check-in date range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo HotelCheckInDateRange { - get { return criterionCase_ == CriterionOneofCase.HotelCheckInDateRange ? (global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.HotelCheckInDateRange; - } - } - - private object criterion_; - /// Enum of possible cases for the "criterion" oneof. - public enum CriterionOneofCase { - None = 0, - HotelDateSelectionType = 5, - HotelAdvanceBookingWindow = 6, - HotelLengthOfStay = 7, - HotelCheckInDay = 8, - Device = 11, - PreferredContent = 12, - HotelCheckInDateRange = 17, - } - private CriterionOneofCase criterionCase_ = CriterionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionOneofCase CriterionCase { - get { return criterionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterion() { - criterionCase_ = CriterionOneofCase.None; - criterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupBidModifier); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupBidModifier other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroup != other.AdGroup) return false; - if (CriterionId != other.CriterionId) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BidModifier, other.BidModifier)) return false; - if (BaseAdGroup != other.BaseAdGroup) return false; - if (BidModifierSource != other.BidModifierSource) return false; - if (!object.Equals(HotelDateSelectionType, other.HotelDateSelectionType)) return false; - if (!object.Equals(HotelAdvanceBookingWindow, other.HotelAdvanceBookingWindow)) return false; - if (!object.Equals(HotelLengthOfStay, other.HotelLengthOfStay)) return false; - if (!object.Equals(HotelCheckInDay, other.HotelCheckInDay)) return false; - if (!object.Equals(Device, other.Device)) return false; - if (!object.Equals(PreferredContent, other.PreferredContent)) return false; - if (!object.Equals(HotelCheckInDateRange, other.HotelCheckInDateRange)) return false; - if (CriterionCase != other.CriterionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroup) hash ^= AdGroup.GetHashCode(); - if (HasCriterionId) hash ^= CriterionId.GetHashCode(); - if (HasBidModifier) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BidModifier); - if (HasBaseAdGroup) hash ^= BaseAdGroup.GetHashCode(); - if (BidModifierSource != global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified) hash ^= BidModifierSource.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) hash ^= HotelDateSelectionType.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) hash ^= HotelAdvanceBookingWindow.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) hash ^= HotelLengthOfStay.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) hash ^= HotelCheckInDay.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Device) hash ^= Device.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.PreferredContent) hash ^= PreferredContent.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.HotelCheckInDateRange) hash ^= HotelCheckInDateRange.GetHashCode(); - hash ^= (int) criterionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { - output.WriteRawTag(42); - output.WriteMessage(HotelDateSelectionType); - } - if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { - output.WriteRawTag(50); - output.WriteMessage(HotelAdvanceBookingWindow); - } - if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { - output.WriteRawTag(58); - output.WriteMessage(HotelLengthOfStay); - } - if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { - output.WriteRawTag(66); - output.WriteMessage(HotelCheckInDay); - } - if (BidModifierSource != global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) BidModifierSource); - } - if (criterionCase_ == CriterionOneofCase.Device) { - output.WriteRawTag(90); - output.WriteMessage(Device); - } - if (criterionCase_ == CriterionOneofCase.PreferredContent) { - output.WriteRawTag(98); - output.WriteMessage(PreferredContent); - } - if (HasAdGroup) { - output.WriteRawTag(106); - output.WriteString(AdGroup); - } - if (HasCriterionId) { - output.WriteRawTag(112); - output.WriteInt64(CriterionId); - } - if (HasBidModifier) { - output.WriteRawTag(121); - output.WriteDouble(BidModifier); - } - if (HasBaseAdGroup) { - output.WriteRawTag(130, 1); - output.WriteString(BaseAdGroup); - } - if (criterionCase_ == CriterionOneofCase.HotelCheckInDateRange) { - output.WriteRawTag(138, 1); - output.WriteMessage(HotelCheckInDateRange); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { - output.WriteRawTag(42); - output.WriteMessage(HotelDateSelectionType); - } - if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { - output.WriteRawTag(50); - output.WriteMessage(HotelAdvanceBookingWindow); - } - if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { - output.WriteRawTag(58); - output.WriteMessage(HotelLengthOfStay); - } - if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { - output.WriteRawTag(66); - output.WriteMessage(HotelCheckInDay); - } - if (BidModifierSource != global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) BidModifierSource); - } - if (criterionCase_ == CriterionOneofCase.Device) { - output.WriteRawTag(90); - output.WriteMessage(Device); - } - if (criterionCase_ == CriterionOneofCase.PreferredContent) { - output.WriteRawTag(98); - output.WriteMessage(PreferredContent); - } - if (HasAdGroup) { - output.WriteRawTag(106); - output.WriteString(AdGroup); - } - if (HasCriterionId) { - output.WriteRawTag(112); - output.WriteInt64(CriterionId); - } - if (HasBidModifier) { - output.WriteRawTag(121); - output.WriteDouble(BidModifier); - } - if (HasBaseAdGroup) { - output.WriteRawTag(130, 1); - output.WriteString(BaseAdGroup); - } - if (criterionCase_ == CriterionOneofCase.HotelCheckInDateRange) { - output.WriteRawTag(138, 1); - output.WriteMessage(HotelCheckInDateRange); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (HasCriterionId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId); - } - if (HasBidModifier) { - size += 1 + 8; - } - if (HasBaseAdGroup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseAdGroup); - } - if (BidModifierSource != global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BidModifierSource); - } - if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelDateSelectionType); - } - if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelAdvanceBookingWindow); - } - if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelLengthOfStay); - } - if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelCheckInDay); - } - if (criterionCase_ == CriterionOneofCase.Device) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); - } - if (criterionCase_ == CriterionOneofCase.PreferredContent) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PreferredContent); - } - if (criterionCase_ == CriterionOneofCase.HotelCheckInDateRange) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelCheckInDateRange); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupBidModifier other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroup) { - AdGroup = other.AdGroup; - } - if (other.HasCriterionId) { - CriterionId = other.CriterionId; - } - if (other.HasBidModifier) { - BidModifier = other.BidModifier; - } - if (other.HasBaseAdGroup) { - BaseAdGroup = other.BaseAdGroup; - } - if (other.BidModifierSource != global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource.Unspecified) { - BidModifierSource = other.BidModifierSource; - } - switch (other.CriterionCase) { - case CriterionOneofCase.HotelDateSelectionType: - if (HotelDateSelectionType == null) { - HotelDateSelectionType = new global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo(); - } - HotelDateSelectionType.MergeFrom(other.HotelDateSelectionType); - break; - case CriterionOneofCase.HotelAdvanceBookingWindow: - if (HotelAdvanceBookingWindow == null) { - HotelAdvanceBookingWindow = new global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo(); - } - HotelAdvanceBookingWindow.MergeFrom(other.HotelAdvanceBookingWindow); - break; - case CriterionOneofCase.HotelLengthOfStay: - if (HotelLengthOfStay == null) { - HotelLengthOfStay = new global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo(); - } - HotelLengthOfStay.MergeFrom(other.HotelLengthOfStay); - break; - case CriterionOneofCase.HotelCheckInDay: - if (HotelCheckInDay == null) { - HotelCheckInDay = new global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo(); - } - HotelCheckInDay.MergeFrom(other.HotelCheckInDay); - break; - case CriterionOneofCase.Device: - if (Device == null) { - Device = new global::Google.Ads.GoogleAds.V12.Common.DeviceInfo(); - } - Device.MergeFrom(other.Device); - break; - case CriterionOneofCase.PreferredContent: - if (PreferredContent == null) { - PreferredContent = new global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo(); - } - PreferredContent.MergeFrom(other.PreferredContent); - break; - case CriterionOneofCase.HotelCheckInDateRange: - if (HotelCheckInDateRange == null) { - HotelCheckInDateRange = new global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo(); - } - HotelCheckInDateRange.MergeFrom(other.HotelCheckInDateRange); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo(); - if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { - subBuilder.MergeFrom(HotelDateSelectionType); - } - input.ReadMessage(subBuilder); - HotelDateSelectionType = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo(); - if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { - subBuilder.MergeFrom(HotelAdvanceBookingWindow); - } - input.ReadMessage(subBuilder); - HotelAdvanceBookingWindow = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo(); - if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { - subBuilder.MergeFrom(HotelLengthOfStay); - } - input.ReadMessage(subBuilder); - HotelLengthOfStay = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo(); - if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { - subBuilder.MergeFrom(HotelCheckInDay); - } - input.ReadMessage(subBuilder); - HotelCheckInDay = subBuilder; - break; - } - case 80: { - BidModifierSource = (global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource) input.ReadEnum(); - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.DeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DeviceInfo(); - if (criterionCase_ == CriterionOneofCase.Device) { - subBuilder.MergeFrom(Device); - } - input.ReadMessage(subBuilder); - Device = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo(); - if (criterionCase_ == CriterionOneofCase.PreferredContent) { - subBuilder.MergeFrom(PreferredContent); - } - input.ReadMessage(subBuilder); - PreferredContent = subBuilder; - break; - } - case 106: { - AdGroup = input.ReadString(); - break; - } - case 112: { - CriterionId = input.ReadInt64(); - break; - } - case 121: { - BidModifier = input.ReadDouble(); - break; - } - case 130: { - BaseAdGroup = input.ReadString(); - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo(); - if (criterionCase_ == CriterionOneofCase.HotelCheckInDateRange) { - subBuilder.MergeFrom(HotelCheckInDateRange); - } - input.ReadMessage(subBuilder); - HotelCheckInDateRange = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo(); - if (criterionCase_ == CriterionOneofCase.HotelDateSelectionType) { - subBuilder.MergeFrom(HotelDateSelectionType); - } - input.ReadMessage(subBuilder); - HotelDateSelectionType = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo(); - if (criterionCase_ == CriterionOneofCase.HotelAdvanceBookingWindow) { - subBuilder.MergeFrom(HotelAdvanceBookingWindow); - } - input.ReadMessage(subBuilder); - HotelAdvanceBookingWindow = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo(); - if (criterionCase_ == CriterionOneofCase.HotelLengthOfStay) { - subBuilder.MergeFrom(HotelLengthOfStay); - } - input.ReadMessage(subBuilder); - HotelLengthOfStay = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo(); - if (criterionCase_ == CriterionOneofCase.HotelCheckInDay) { - subBuilder.MergeFrom(HotelCheckInDay); - } - input.ReadMessage(subBuilder); - HotelCheckInDay = subBuilder; - break; - } - case 80: { - BidModifierSource = (global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource) input.ReadEnum(); - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.DeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DeviceInfo(); - if (criterionCase_ == CriterionOneofCase.Device) { - subBuilder.MergeFrom(Device); - } - input.ReadMessage(subBuilder); - Device = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo(); - if (criterionCase_ == CriterionOneofCase.PreferredContent) { - subBuilder.MergeFrom(PreferredContent); - } - input.ReadMessage(subBuilder); - PreferredContent = subBuilder; - break; - } - case 106: { - AdGroup = input.ReadString(); - break; - } - case 112: { - CriterionId = input.ReadInt64(); - break; - } - case 121: { - BidModifier = input.ReadDouble(); - break; - } - case 130: { - BaseAdGroup = input.ReadString(); - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo(); - if (criterionCase_ == CriterionOneofCase.HotelCheckInDateRange) { - subBuilder.MergeFrom(HotelCheckInDateRange); - } - input.ReadMessage(subBuilder); - HotelCheckInDateRange = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierError.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierError.g.cs deleted file mode 100755 index a5b416a2d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierError.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_group_bid_modifier_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_group_bid_modifier_error.proto - public static partial class AdGroupBidModifierErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_group_bid_modifier_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupBidModifierErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2Jp", - "ZF9tb2RpZmllcl9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycyK2AQobQWRHcm91cEJpZE1vZGlmaWVyRXJyb3JFbnVtIpYB", - "ChdBZEdyb3VwQmlkTW9kaWZpZXJFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARIeChpDUklURVJJT05fSURfTk9UX1NVUFBPUlRFRBACEj0K", - "OUNBTk5PVF9PVkVSUklERV9PUFRFRF9PVVRfQ0FNUEFJR05fQ1JJVEVSSU9O", - "X0JJRF9NT0RJRklFUhADQvwBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9yc0IcQWRHcm91cEJpZE1vZGlmaWVyRXJyb3JQcm90b1ABWkVn", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3Jz", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorEnum.Types.AdGroupBidModifierError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad group bid modifier errors. - /// - public sealed partial class AdGroupBidModifierErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupBidModifierErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifierErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifierErrorEnum(AdGroupBidModifierErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifierErrorEnum Clone() { - return new AdGroupBidModifierErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupBidModifierErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupBidModifierErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupBidModifierErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupBidModifierErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad group bid modifier errors. - /// - public enum AdGroupBidModifierError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The criterion ID does not support bid modification. - /// - [pbr::OriginalName("CRITERION_ID_NOT_SUPPORTED")] CriterionIdNotSupported = 2, - /// - /// Cannot override the bid modifier for the given criterion ID if the parent - /// campaign is opted out of the same criterion. - /// - [pbr::OriginalName("CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER")] CannotOverrideOptedOutCampaignCriterionBidModifier = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierResourceNames.g.cs deleted file mode 100755 index fc4e0995f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierResourceNames.g.cs +++ /dev/null @@ -1,317 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupBidModifier resource. - public sealed partial class AdGroupBidModifierName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id} - /// . - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/adGroupBidModifiers/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupBidModifierName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupBidModifierName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupBidModifierName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new AdGroupBidModifierName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupBidModifierName Parse(string adGroupBidModifierName) => Parse(adGroupBidModifierName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupBidModifierName Parse(string adGroupBidModifierName, bool allowUnparsed) => - TryParse(adGroupBidModifierName, allowUnparsed, out AdGroupBidModifierName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupBidModifierName, out AdGroupBidModifierName result) => - TryParse(adGroupBidModifierName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupBidModifierName, bool allowUnparsed, out AdGroupBidModifierName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupBidModifierName, nameof(adGroupBidModifierName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(adGroupBidModifierName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupBidModifierName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupBidModifierName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public AdGroupBidModifierName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupBidModifierName); - - /// - public bool Equals(AdGroupBidModifierName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupBidModifierName a, AdGroupBidModifierName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupBidModifierName a, AdGroupBidModifierName b) => !(a == b); - } - - public partial class AdGroupBidModifier - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupBidModifierName ResourceNameAsAdGroupBidModifierName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupBidModifierName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName BaseAdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(BaseAdGroup) ? null : AdGroupName.Parse(BaseAdGroup, allowUnparsed: true); - set => BaseAdGroup = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierService.g.cs deleted file mode 100755 index da84ce844..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierService.g.cs +++ /dev/null @@ -1,1312 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_bid_modifier_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_bid_modifier_service.proto - public static partial class AdGroupBidModifierServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_bid_modifier_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupBidModifierServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "YmlkX21vZGlmaWVyX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo+Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL3Jlc291cmNlcy9hZF9ncm91cF9iaWRfbW9kaWZpZXIu", - "cHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9h", - "cGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", - "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9i", - "dWYvZmllbGRfbWFzay5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8i", - "sQIKIE11dGF0ZUFkR3JvdXBCaWRNb2RpZmllcnNSZXF1ZXN0EhgKC2N1c3Rv", - "bWVyX2lkGAEgASgJQgPgQQISVwoKb3BlcmF0aW9ucxgCIAMoCzI+Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BZEdyb3VwQmlkTW9kaWZp", - "ZXJPcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoN", - "dmFsaWRhdGVfb25seRgEIAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5cGUY", - "BSABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVzcG9u", - "c2VDb250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSKzAgobQWRH", - "cm91cEJpZE1vZGlmaWVyT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQgASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJICgZjcmVhdGUYASABKAsy", - "Ni5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBC", - "aWRNb2RpZmllckgAEkgKBnVwZGF0ZRgCIAEoCzI2Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cEJpZE1vZGlmaWVySAASQgoG", - "cmVtb3ZlGAMgASgJQjD6QS0KK2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9B", - "ZEdyb3VwQmlkTW9kaWZpZXJIAEILCglvcGVyYXRpb24iqgEKIU11dGF0ZUFk", - "R3JvdXBCaWRNb2RpZmllcnNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVf", - "ZXJyb3IYAyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJSCgdyZXN1bHRzGAIg", - "AygLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUFkR3JvdXBCaWRNb2RpZmllclJlc3VsdCLAAQoeTXV0YXRlQWRHcm91cEJp", - "ZE1vZGlmaWVyUmVzdWx0EkcKDXJlc291cmNlX25hbWUYASABKAlCMPpBLQor", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBCaWRNb2RpZmllchJV", - "ChVhZF9ncm91cF9iaWRfbW9kaWZpZXIYAiABKAsyNi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBCaWRNb2RpZmllcjLqAgoZ", - "QWRHcm91cEJpZE1vZGlmaWVyU2VydmljZRKFAgoZTXV0YXRlQWRHcm91cEJp", - "ZE1vZGlmaWVycxJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVBZEdyb3VwQmlkTW9kaWZpZXJzUmVxdWVzdBpELmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQmlkTW9k", - "aWZpZXJzUmVzcG9uc2UiXYLT5JMCPiI5L3YxMi9jdXN0b21lcnMve2N1c3Rv", - "bWVyX2lkPSp9L2FkR3JvdXBCaWRNb2RpZmllcnM6bXV0YXRlOgEq2kEWY3Vz", - "dG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRz", - "QooCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQh5B", - "ZEdyb3VwQmlkTW9kaWZpZXJTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9z", - "ZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2", - "aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifierReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult.Parser, new[]{ "ResourceName", "AdGroupBidModifier" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupBidModifierService.MutateAdGroupBidModifiers][google.ads.googleads.v12.services.AdGroupBidModifierService.MutateAdGroupBidModifiers]. - /// - public sealed partial class MutateAdGroupBidModifiersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupBidModifiersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifiersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifiersRequest(MutateAdGroupBidModifiersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifiersRequest Clone() { - return new MutateAdGroupBidModifiersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose ad group bid modifiers are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad group bid modifiers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupBidModifiersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupBidModifiersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupBidModifiersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove, update) on an ad group bid modifier. - /// - public sealed partial class AdGroupBidModifierOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupBidModifierOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifierOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifierOperation(AdGroupBidModifierOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupBidModifierOperation Clone() { - return new AdGroupBidModifierOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group bid - /// modifier. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The ad group bid modifier is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed ad group bid modifier - /// is expected, in this format: - /// - /// `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupBidModifierOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupBidModifierOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupBidModifierOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for ad group bid modifiers mutate. - /// - public sealed partial class MutateAdGroupBidModifiersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupBidModifiersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifiersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifiersResponse(MutateAdGroupBidModifiersResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifiersResponse Clone() { - return new MutateAdGroupBidModifiersResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupBidModifiersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupBidModifiersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupBidModifiersResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the criterion mutate. - /// - public sealed partial class MutateAdGroupBidModifierResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupBidModifierResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifierResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifierResult(MutateAdGroupBidModifierResult other) : this() { - resourceName_ = other.resourceName_; - adGroupBidModifier_ = other.adGroupBidModifier_ != null ? other.adGroupBidModifier_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupBidModifierResult Clone() { - return new MutateAdGroupBidModifierResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_bid_modifier" field. - public const int AdGroupBidModifierFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier adGroupBidModifier_; - /// - /// The mutated ad group bid modifier with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier AdGroupBidModifier { - get { return adGroupBidModifier_; } - set { - adGroupBidModifier_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupBidModifierResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupBidModifierResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupBidModifier, other.AdGroupBidModifier)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupBidModifier_ != null) hash ^= AdGroupBidModifier.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupBidModifier_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupBidModifier); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupBidModifier_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupBidModifier); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupBidModifier_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupBidModifier); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupBidModifierResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupBidModifier_ != null) { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - AdGroupBidModifier.MergeFrom(other.AdGroupBidModifier); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - input.ReadMessage(AdGroupBidModifier); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - input.ReadMessage(AdGroupBidModifier); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceClient.g.cs deleted file mode 100755 index c308d124d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceClient.g.cs +++ /dev/null @@ -1,574 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupBidModifierServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupBidModifierServiceSettings GetDefault() => new AdGroupBidModifierServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupBidModifierServiceSettings() - { - } - - private AdGroupBidModifierServiceSettings(AdGroupBidModifierServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupBidModifiersSettings = existing.MutateAdGroupBidModifiersSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupBidModifierServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupBidModifierServiceClient.MutateAdGroupBidModifiers and - /// AdGroupBidModifierServiceClient.MutateAdGroupBidModifiersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupBidModifiersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupBidModifierServiceSettings Clone() => new AdGroupBidModifierServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupBidModifierServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupBidModifierServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupBidModifierServiceClientBuilder() : base(AdGroupBidModifierServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupBidModifierServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupBidModifierServiceClient Build() - { - AdGroupBidModifierServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupBidModifierServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupBidModifierServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupBidModifierServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupBidModifierServiceClient.ChannelPool; - } - - /// AdGroupBidModifierService client wrapper, for convenient use. - /// - /// Service to manage ad group bid modifiers. - /// - public abstract partial class AdGroupBidModifierServiceClient - { - /// - /// The default endpoint for the AdGroupBidModifierService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupBidModifierService scopes. - /// - /// The default AdGroupBidModifierService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupBidModifierService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupBidModifierServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupBidModifierServiceClient Create() => new AdGroupBidModifierServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupBidModifierServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupBidModifierServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupBidModifierService.AdGroupBidModifierServiceClient grpcClient = new AdGroupBidModifierService.AdGroupBidModifierServiceClient(callInvoker); - return new AdGroupBidModifierServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupBidModifierService client - public virtual AdGroupBidModifierService.AdGroupBidModifierServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupBidModifiersResponse MutateAdGroupBidModifiers(MutateAdGroupBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupBidModifiersAsync(MutateAdGroupBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupBidModifiersAsync(MutateAdGroupBidModifiersRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupBidModifiersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. ID of the customer whose ad group bid modifiers are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group bid modifiers. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupBidModifiersResponse MutateAdGroupBidModifiers(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupBidModifiers(new MutateAdGroupBidModifiersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. ID of the customer whose ad group bid modifiers are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group bid modifiers. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupBidModifiersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupBidModifiersAsync(new MutateAdGroupBidModifiersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. ID of the customer whose ad group bid modifiers are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group bid modifiers. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupBidModifiersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupBidModifiersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupBidModifierService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group bid modifiers. - /// - public sealed partial class AdGroupBidModifierServiceClientImpl : AdGroupBidModifierServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupBidModifiers; - - /// - /// Constructs a client wrapper for the AdGroupBidModifierService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AdGroupBidModifierServiceClientImpl(AdGroupBidModifierService.AdGroupBidModifierServiceClient grpcClient, AdGroupBidModifierServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupBidModifierServiceSettings effectiveSettings = settings ?? AdGroupBidModifierServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupBidModifiers = clientHelper.BuildApiCall("MutateAdGroupBidModifiers", grpcClient.MutateAdGroupBidModifiersAsync, grpcClient.MutateAdGroupBidModifiers, effectiveSettings.MutateAdGroupBidModifiersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupBidModifiers); - Modify_MutateAdGroupBidModifiersApiCall(ref _callMutateAdGroupBidModifiers); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupBidModifiersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupBidModifierService.AdGroupBidModifierServiceClient grpcClient, AdGroupBidModifierServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupBidModifierService client - public override AdGroupBidModifierService.AdGroupBidModifierServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupBidModifiersRequest(ref MutateAdGroupBidModifiersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupBidModifiersResponse MutateAdGroupBidModifiers(MutateAdGroupBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupBidModifiersRequest(ref request, ref callSettings); - return _callMutateAdGroupBidModifiers.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupBidModifiersAsync(MutateAdGroupBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupBidModifiersRequest(ref request, ref callSettings); - return _callMutateAdGroupBidModifiers.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceGrpc.g.cs deleted file mode 100755 index 640e4fbb3..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceGrpc.g.cs +++ /dev/null @@ -1,337 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_bid_modifier_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group bid modifiers. - /// - public static partial class AdGroupBidModifierService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupBidModifierService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupBidModifiersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupBidModifiersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupBidModifiers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupBidModifiers", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupBidModifiersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupBidModifiersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupBidModifierService - [grpc::BindServiceMethod(typeof(AdGroupBidModifierService), "BindService")] - public abstract partial class AdGroupBidModifierServiceBase - { - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupBidModifiers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupBidModifierService - public partial class AdGroupBidModifierServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupBidModifierService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupBidModifierServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupBidModifierService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupBidModifierServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupBidModifierServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupBidModifierServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersResponse MutateAdGroupBidModifiers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupBidModifiers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersResponse MutateAdGroupBidModifiers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupBidModifiers, null, options, request); - } - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupBidModifiersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupBidModifiersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupBidModifierError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupBidModifiersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifiersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupBidModifiers, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupBidModifierServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupBidModifierServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupBidModifierServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupBidModifiers, serviceImpl.MutateAdGroupBidModifiers).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupBidModifierServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupBidModifiers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupBidModifiers)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceResourceNames.g.cs deleted file mode 100755 index 79f4a44e3..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupBidModifierServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupBidModifierOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupBidModifierName RemoveAsAdGroupBidModifierName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupBidModifierName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupBidModifierResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupBidModifierName ResourceNameAsAdGroupBidModifierName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupBidModifierName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterion.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterion.g.cs deleted file mode 100755 index 724e753b7..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterion.g.cs +++ /dev/null @@ -1,3711 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_criterion.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_criterion.proto - public static partial class AdGroupCriterionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_criterion.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2NyaXRlcmlvbi5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9jcml0", - "ZXJpYS5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9j", - "dXN0b21fcGFyYW1ldGVyLnByb3RvGkdnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXMvYWRfZ3JvdXBfY3JpdGVyaW9uX2FwcHJvdmFsX3N0YXR1cy5w", - "cm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2FkX2dyb3Vw", - "X2NyaXRlcmlvbl9zdGF0dXMucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcy9iaWRkaW5nX3NvdXJjZS5wcm90bxpEZ29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL2VudW1zL2NyaXRlcmlvbl9zeXN0ZW1fc2VydmluZ19z", - "dGF0dXMucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9j", - "cml0ZXJpb25fdHlwZS5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL3F1YWxpdHlfc2NvcmVfYnVja2V0LnByb3RvGh9nb29nbGUvYXBp", - "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", - "b3RvIq8mChBBZEdyb3VwQ3JpdGVyaW9uEkgKDXJlc291cmNlX25hbWUYASAB", - "KAlCMeBBBfpBKwopZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBD", - "cml0ZXJpb24SHgoMY3JpdGVyaW9uX2lkGDggASgDQgPgQQNIAYgBARIZCgxk", - "aXNwbGF5X25hbWUYTSABKAlCA+BBAxJhCgZzdGF0dXMYAyABKA4yUS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQWRHcm91cENyaXRlcmlvblN0", - "YXR1c0VudW0uQWRHcm91cENyaXRlcmlvblN0YXR1cxJbCgxxdWFsaXR5X2lu", - "Zm8YBCABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "LkFkR3JvdXBDcml0ZXJpb24uUXVhbGl0eUluZm9CA+BBAxI/CghhZF9ncm91", - "cBg5IAEoCUIo4EEF+kEiCiBnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRH", - "cm91cEgCiAEBElIKBHR5cGUYGSABKA4yPy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuQ3JpdGVyaW9uVHlwZUVudW0uQ3JpdGVyaW9uVHlwZUID", - "4EEDEhoKCG5lZ2F0aXZlGDogASgIQgPgQQVIA4gBARKBAQoVc3lzdGVtX3Nl", - "cnZpbmdfc3RhdHVzGDQgASgOMl0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkNyaXRlcmlvblN5c3RlbVNlcnZpbmdTdGF0dXNFbnVtLkNyaXRl", - "cmlvblN5c3RlbVNlcnZpbmdTdGF0dXNCA+BBAxJ/Cg9hcHByb3ZhbF9zdGF0", - "dXMYNSABKA4yYS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQWRH", - "cm91cENyaXRlcmlvbkFwcHJvdmFsU3RhdHVzRW51bS5BZEdyb3VwQ3JpdGVy", - "aW9uQXBwcm92YWxTdGF0dXNCA+BBAxIgChNkaXNhcHByb3ZhbF9yZWFzb25z", - "GDsgAygJQgPgQQMSRgoGbGFiZWxzGDwgAygJQjbgQQP6QTAKLmdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwQ3JpdGVyaW9uTGFiZWwSGQoMYmlk", - "X21vZGlmaWVyGD0gASgBSASIAQESGwoOY3BjX2JpZF9taWNyb3MYPiABKANI", - "BYgBARIbCg5jcG1fYmlkX21pY3Jvcxg/IAEoA0gGiAEBEhsKDmNwdl9iaWRf", - "bWljcm9zGEAgASgDSAeIAQESIwoWcGVyY2VudF9jcGNfYmlkX21pY3JvcxhB", - "IAEoA0gIiAEBEioKGGVmZmVjdGl2ZV9jcGNfYmlkX21pY3JvcxhCIAEoA0ID", - "4EEDSAmIAQESKgoYZWZmZWN0aXZlX2NwbV9iaWRfbWljcm9zGEMgASgDQgPg", - "QQNICogBARIqChhlZmZlY3RpdmVfY3B2X2JpZF9taWNyb3MYRCABKANCA+BB", - "A0gLiAEBEjIKIGVmZmVjdGl2ZV9wZXJjZW50X2NwY19iaWRfbWljcm9zGEUg", - "ASgDQgPgQQNIDIgBARJmChhlZmZlY3RpdmVfY3BjX2JpZF9zb3VyY2UYFSAB", - "KA4yPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQmlkZGluZ1Nv", - "dXJjZUVudW0uQmlkZGluZ1NvdXJjZUID4EEDEmYKGGVmZmVjdGl2ZV9jcG1f", - "YmlkX3NvdXJjZRgWIAEoDjI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5CaWRkaW5nU291cmNlRW51bS5CaWRkaW5nU291cmNlQgPgQQMSZgoY", - "ZWZmZWN0aXZlX2Nwdl9iaWRfc291cmNlGBcgASgOMj8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLkJpZGRpbmdTb3VyY2VFbnVtLkJpZGRpbmdT", - "b3VyY2VCA+BBAxJuCiBlZmZlY3RpdmVfcGVyY2VudF9jcGNfYmlkX3NvdXJj", - "ZRgjIAEoDjI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5CaWRk", - "aW5nU291cmNlRW51bS5CaWRkaW5nU291cmNlQgPgQQMSZwoScG9zaXRpb25f", - "ZXN0aW1hdGVzGAogASgLMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5BZEdyb3VwQ3JpdGVyaW9uLlBvc2l0aW9uRXN0aW1hdGVzQgPg", - "QQMSEgoKZmluYWxfdXJscxhGIAMoCRIZChFmaW5hbF9tb2JpbGVfdXJscxhH", - "IAMoCRIdChBmaW5hbF91cmxfc3VmZml4GEggASgJSA2IAQESIgoVdHJhY2tp", - "bmdfdXJsX3RlbXBsYXRlGEkgASgJSA6IAQESTwoVdXJsX2N1c3RvbV9wYXJh", - "bWV0ZXJzGA4gAygLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5DdXN0b21QYXJhbWV0ZXISRAoHa2V5d29yZBgbIAEoCzIsLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uS2V5d29yZEluZm9CA+BBBUgAEkgK", - "CXBsYWNlbWVudBgcIAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uUGxhY2VtZW50SW5mb0ID4EEFSAASWgoTbW9iaWxlX2FwcF9jYXRl", - "Z29yeRgdIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "TW9iaWxlQXBwQ2F0ZWdvcnlJbmZvQgPgQQVIABJZChJtb2JpbGVfYXBwbGlj", - "YXRpb24YHiABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "Lk1vYmlsZUFwcGxpY2F0aW9uSW5mb0ID4EEFSAASTwoNbGlzdGluZ19ncm91", - "cBggIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uTGlz", - "dGluZ0dyb3VwSW5mb0ID4EEFSAASRwoJYWdlX3JhbmdlGCQgASgLMi0uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZ2VSYW5nZUluZm9CA+BB", - "BUgAEkIKBmdlbmRlchglIAEoCzIrLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uR2VuZGVySW5mb0ID4EEFSAASTQoMaW5jb21lX3JhbmdlGCYg", - "ASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5JbmNvbWVS", - "YW5nZUluZm9CA+BBBUgAElMKD3BhcmVudGFsX3N0YXR1cxgnIAEoCzIzLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUGFyZW50YWxTdGF0dXNJ", - "bmZvQgPgQQVIABJHCgl1c2VyX2xpc3QYKiABKAsyLS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLlVzZXJMaXN0SW5mb0ID4EEFSAASTwoNeW91", - "dHViZV92aWRlbxgoIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uWW91VHViZVZpZGVvSW5mb0ID4EEFSAASUwoPeW91dHViZV9jaGFu", - "bmVsGCkgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Z", - "b3VUdWJlQ2hhbm5lbEluZm9CA+BBBUgAEkAKBXRvcGljGCsgASgLMiouZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Ub3BpY0luZm9CA+BBBUgA", - "Ek8KDXVzZXJfaW50ZXJlc3QYLSABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLlVzZXJJbnRlcmVzdEluZm9CA+BBBUgAEkQKB3dlYnBh", - "Z2UYLiABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLldl", - "YnBhZ2VJbmZvQgPgQQVIABJWChFhcHBfcGF5bWVudF9tb2RlbBgvIAEoCzI0", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQXBwUGF5bWVudE1v", - "ZGVsSW5mb0ID4EEFSAASUwoPY3VzdG9tX2FmZmluaXR5GDAgASgLMjMuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DdXN0b21BZmZpbml0eUlu", - "Zm9CA+BBBUgAEk8KDWN1c3RvbV9pbnRlbnQYMSABKAsyMS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLkN1c3RvbUludGVudEluZm9CA+BBBUgA", - "ElMKD2N1c3RvbV9hdWRpZW5jZRhKIAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24uQ3VzdG9tQXVkaWVuY2VJbmZvQgPgQQVIABJXChFj", - "b21iaW5lZF9hdWRpZW5jZRhLIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5jb21tb24uQ29tYmluZWRBdWRpZW5jZUluZm9CA+BBBUgAEkYKCGF1", - "ZGllbmNlGE8gASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5BdWRpZW5jZUluZm9CA+BBBUgAGpADCgtRdWFsaXR5SW5mbxIfCg1xdWFs", - "aXR5X3Njb3JlGAUgASgFQgPgQQNIAIgBARJuChZjcmVhdGl2ZV9xdWFsaXR5", - "X3Njb3JlGAIgASgOMkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LlF1YWxpdHlTY29yZUJ1Y2tldEVudW0uUXVhbGl0eVNjb3JlQnVja2V0QgPg", - "QQMScAoYcG9zdF9jbGlja19xdWFsaXR5X3Njb3JlGAMgASgOMkkuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlF1YWxpdHlTY29yZUJ1Y2tldEVu", - "dW0uUXVhbGl0eVNjb3JlQnVja2V0QgPgQQMSbAoUc2VhcmNoX3ByZWRpY3Rl", - "ZF9jdHIYBCABKA4ySS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "UXVhbGl0eVNjb3JlQnVja2V0RW51bS5RdWFsaXR5U2NvcmVCdWNrZXRCA+BB", - "A0IQCg5fcXVhbGl0eV9zY29yZRq8AwoRUG9zaXRpb25Fc3RpbWF0ZXMSJwoV", - "Zmlyc3RfcGFnZV9jcGNfbWljcm9zGAYgASgDQgPgQQNIAIgBARIrChlmaXJz", - "dF9wb3NpdGlvbl9jcGNfbWljcm9zGAcgASgDQgPgQQNIAYgBARIoChZ0b3Bf", - "b2ZfcGFnZV9jcGNfbWljcm9zGAggASgDQgPgQQNIAogBARI8Ciplc3RpbWF0", - "ZWRfYWRkX2NsaWNrc19hdF9maXJzdF9wb3NpdGlvbl9jcGMYCSABKANCA+BB", - "A0gDiAEBEjoKKGVzdGltYXRlZF9hZGRfY29zdF9hdF9maXJzdF9wb3NpdGlv", - "bl9jcGMYCiABKANCA+BBA0gEiAEBQhgKFl9maXJzdF9wYWdlX2NwY19taWNy", - "b3NCHAoaX2ZpcnN0X3Bvc2l0aW9uX2NwY19taWNyb3NCGQoXX3RvcF9vZl9w", - "YWdlX2NwY19taWNyb3NCLQorX2VzdGltYXRlZF9hZGRfY2xpY2tzX2F0X2Zp", - "cnN0X3Bvc2l0aW9uX2NwY0IrCilfZXN0aW1hdGVkX2FkZF9jb3N0X2F0X2Zp", - "cnN0X3Bvc2l0aW9uX2NwYzp06kFxCilnb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b20vQWRHcm91cENyaXRlcmlvbhJEY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0v", - "YWRHcm91cENyaXRlcmlhL3thZF9ncm91cF9pZH1+e2NyaXRlcmlvbl9pZH1C", - "CwoJY3JpdGVyaW9uQg8KDV9jcml0ZXJpb25faWRCCwoJX2FkX2dyb3VwQgsK", - "CV9uZWdhdGl2ZUIPCg1fYmlkX21vZGlmaWVyQhEKD19jcGNfYmlkX21pY3Jv", - "c0IRCg9fY3BtX2JpZF9taWNyb3NCEQoPX2Nwdl9iaWRfbWljcm9zQhkKF19w", - "ZXJjZW50X2NwY19iaWRfbWljcm9zQhsKGV9lZmZlY3RpdmVfY3BjX2JpZF9t", - "aWNyb3NCGwoZX2VmZmVjdGl2ZV9jcG1fYmlkX21pY3Jvc0IbChlfZWZmZWN0", - "aXZlX2Nwdl9iaWRfbWljcm9zQiMKIV9lZmZlY3RpdmVfcGVyY2VudF9jcGNf", - "YmlkX21pY3Jvc0ITChFfZmluYWxfdXJsX3N1ZmZpeEIYChZfdHJhY2tpbmdf", - "dXJsX3RlbXBsYXRlQocCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlc0IVQWRHcm91cENyaXRlcmlvblByb3RvUAFaS2dvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpS", - "ZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion), global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Parser, new[]{ "ResourceName", "CriterionId", "DisplayName", "Status", "QualityInfo", "AdGroup", "Type", "Negative", "SystemServingStatus", "ApprovalStatus", "DisapprovalReasons", "Labels", "BidModifier", "CpcBidMicros", "CpmBidMicros", "CpvBidMicros", "PercentCpcBidMicros", "EffectiveCpcBidMicros", "EffectiveCpmBidMicros", "EffectiveCpvBidMicros", "EffectivePercentCpcBidMicros", "EffectiveCpcBidSource", "EffectiveCpmBidSource", "EffectiveCpvBidSource", "EffectivePercentCpcBidSource", "PositionEstimates", "FinalUrls", "FinalMobileUrls", "FinalUrlSuffix", "TrackingUrlTemplate", "UrlCustomParameters", "Keyword", "Placement", "MobileAppCategory", "MobileApplication", "ListingGroup", "AgeRange", "Gender", "IncomeRange", "ParentalStatus", "UserList", "YoutubeVideo", "YoutubeChannel", "Topic", "UserInterest", "Webpage", "AppPaymentModel", "CustomAffinity", "CustomIntent", "CustomAudience", "CombinedAudience", "Audience" }, new[]{ "Criterion", "CriterionId", "AdGroup", "Negative", "BidModifier", "CpcBidMicros", "CpmBidMicros", "CpvBidMicros", "PercentCpcBidMicros", "EffectiveCpcBidMicros", "EffectiveCpmBidMicros", "EffectiveCpvBidMicros", "EffectivePercentCpcBidMicros", "FinalUrlSuffix", "TrackingUrlTemplate" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.QualityInfo), global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.QualityInfo.Parser, new[]{ "QualityScore", "CreativeQualityScore", "PostClickQualityScore", "SearchPredictedCtr" }, new[]{ "QualityScore" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.PositionEstimates), global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.PositionEstimates.Parser, new[]{ "FirstPageCpcMicros", "FirstPositionCpcMicros", "TopOfPageCpcMicros", "EstimatedAddClicksAtFirstPositionCpc", "EstimatedAddCostAtFirstPositionCpc" }, new[]{ "FirstPageCpcMicros", "FirstPositionCpcMicros", "TopOfPageCpcMicros", "EstimatedAddClicksAtFirstPositionCpc", "EstimatedAddCostAtFirstPositionCpc" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group criterion. - /// - public sealed partial class AdGroupCriterion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterion()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterion(AdGroupCriterion other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - criterionId_ = other.criterionId_; - displayName_ = other.displayName_; - status_ = other.status_; - qualityInfo_ = other.qualityInfo_ != null ? other.qualityInfo_.Clone() : null; - adGroup_ = other.adGroup_; - type_ = other.type_; - negative_ = other.negative_; - systemServingStatus_ = other.systemServingStatus_; - approvalStatus_ = other.approvalStatus_; - disapprovalReasons_ = other.disapprovalReasons_.Clone(); - labels_ = other.labels_.Clone(); - bidModifier_ = other.bidModifier_; - cpcBidMicros_ = other.cpcBidMicros_; - cpmBidMicros_ = other.cpmBidMicros_; - cpvBidMicros_ = other.cpvBidMicros_; - percentCpcBidMicros_ = other.percentCpcBidMicros_; - effectiveCpcBidMicros_ = other.effectiveCpcBidMicros_; - effectiveCpmBidMicros_ = other.effectiveCpmBidMicros_; - effectiveCpvBidMicros_ = other.effectiveCpvBidMicros_; - effectivePercentCpcBidMicros_ = other.effectivePercentCpcBidMicros_; - effectiveCpcBidSource_ = other.effectiveCpcBidSource_; - effectiveCpmBidSource_ = other.effectiveCpmBidSource_; - effectiveCpvBidSource_ = other.effectiveCpvBidSource_; - effectivePercentCpcBidSource_ = other.effectivePercentCpcBidSource_; - positionEstimates_ = other.positionEstimates_ != null ? other.positionEstimates_.Clone() : null; - finalUrls_ = other.finalUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - finalUrlSuffix_ = other.finalUrlSuffix_; - trackingUrlTemplate_ = other.trackingUrlTemplate_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - switch (other.CriterionCase) { - case CriterionOneofCase.Keyword: - Keyword = other.Keyword.Clone(); - break; - case CriterionOneofCase.Placement: - Placement = other.Placement.Clone(); - break; - case CriterionOneofCase.MobileAppCategory: - MobileAppCategory = other.MobileAppCategory.Clone(); - break; - case CriterionOneofCase.MobileApplication: - MobileApplication = other.MobileApplication.Clone(); - break; - case CriterionOneofCase.ListingGroup: - ListingGroup = other.ListingGroup.Clone(); - break; - case CriterionOneofCase.AgeRange: - AgeRange = other.AgeRange.Clone(); - break; - case CriterionOneofCase.Gender: - Gender = other.Gender.Clone(); - break; - case CriterionOneofCase.IncomeRange: - IncomeRange = other.IncomeRange.Clone(); - break; - case CriterionOneofCase.ParentalStatus: - ParentalStatus = other.ParentalStatus.Clone(); - break; - case CriterionOneofCase.UserList: - UserList = other.UserList.Clone(); - break; - case CriterionOneofCase.YoutubeVideo: - YoutubeVideo = other.YoutubeVideo.Clone(); - break; - case CriterionOneofCase.YoutubeChannel: - YoutubeChannel = other.YoutubeChannel.Clone(); - break; - case CriterionOneofCase.Topic: - Topic = other.Topic.Clone(); - break; - case CriterionOneofCase.UserInterest: - UserInterest = other.UserInterest.Clone(); - break; - case CriterionOneofCase.Webpage: - Webpage = other.Webpage.Clone(); - break; - case CriterionOneofCase.AppPaymentModel: - AppPaymentModel = other.AppPaymentModel.Clone(); - break; - case CriterionOneofCase.CustomAffinity: - CustomAffinity = other.CustomAffinity.Clone(); - break; - case CriterionOneofCase.CustomIntent: - CustomIntent = other.CustomIntent.Clone(); - break; - case CriterionOneofCase.CustomAudience: - CustomAudience = other.CustomAudience.Clone(); - break; - case CriterionOneofCase.CombinedAudience: - CombinedAudience = other.CombinedAudience.Clone(); - break; - case CriterionOneofCase.Audience: - Audience = other.Audience.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterion Clone() { - return new AdGroupCriterion(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group criterion. - /// Ad group criterion resource names have the form: - /// - /// `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "criterion_id" field. - public const int CriterionIdFieldNumber = 56; - private long criterionId_; - /// - /// Output only. The ID of the criterion. - /// - /// This field is ignored for mutates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CriterionId { - get { if ((_hasBits0 & 1) != 0) { return criterionId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - criterionId_ = value; - } - } - /// Gets whether the "criterion_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCriterionId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "criterion_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterionId() { - _hasBits0 &= ~1; - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 77; - private string displayName_ = ""; - /// - /// Output only. The display name of the criterion. - /// - /// This field is ignored for mutates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_; } - set { - displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus.Unspecified; - /// - /// The status of the criterion. - /// - /// This is the status of the ad group criterion entity, set by the client. - /// Note: UI reports may incorporate additional information that affects - /// whether a criterion is eligible to run. In some cases a criterion that's - /// REMOVED in the API can still show as enabled in the UI. - /// For example, campaigns by default show to users of all age ranges unless - /// excluded. The UI will show each age range as "enabled", since they're - /// eligible to see the ads; but AdGroupCriterion.status will show "removed", - /// since no positive criterion was added. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "quality_info" field. - public const int QualityInfoFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.QualityInfo qualityInfo_; - /// - /// Output only. Information regarding the quality of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.QualityInfo QualityInfo { - get { return qualityInfo_; } - set { - qualityInfo_ = value; - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 57; - private string adGroup_; - /// - /// Immutable. The ad group to which the criterion belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_ ?? ""; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroup { - get { return adGroup_ != null; } - } - /// Clears the value of the "ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroup() { - adGroup_ = null; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 25; - private global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType type_ = global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified; - /// - /// Output only. The type of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "negative" field. - public const int NegativeFieldNumber = 58; - private bool negative_; - /// - /// Immutable. Whether to target (`false`) or exclude (`true`) the criterion. - /// - /// This field is immutable. To switch a criterion from positive to negative, - /// remove then re-add it. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Negative { - get { if ((_hasBits0 & 2) != 0) { return negative_; } else { return false; } } - set { - _hasBits0 |= 2; - negative_ = value; - } - } - /// Gets whether the "negative" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNegative { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "negative" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNegative() { - _hasBits0 &= ~2; - } - - /// Field number for the "system_serving_status" field. - public const int SystemServingStatusFieldNumber = 52; - private global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus systemServingStatus_ = global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus.Unspecified; - /// - /// Output only. Serving status of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus SystemServingStatus { - get { return systemServingStatus_; } - set { - systemServingStatus_ = value; - } - } - - /// Field number for the "approval_status" field. - public const int ApprovalStatusFieldNumber = 53; - private global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus approvalStatus_ = global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus.Unspecified; - /// - /// Output only. Approval status of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus ApprovalStatus { - get { return approvalStatus_; } - set { - approvalStatus_ = value; - } - } - - /// Field number for the "disapproval_reasons" field. - public const int DisapprovalReasonsFieldNumber = 59; - private static readonly pb::FieldCodec _repeated_disapprovalReasons_codec - = pb::FieldCodec.ForString(474); - private readonly pbc::RepeatedField disapprovalReasons_ = new pbc::RepeatedField(); - /// - /// Output only. List of disapproval reasons of the criterion. - /// - /// The different reasons for disapproving a criterion can be found here: - /// https://support.google.com/adspolicy/answer/6008942 - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DisapprovalReasons { - get { return disapprovalReasons_; } - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 60; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForString(482); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); - /// - /// Output only. The resource names of labels attached to this ad group criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } - } - - /// Field number for the "bid_modifier" field. - public const int BidModifierFieldNumber = 61; - private double bidModifier_; - /// - /// The modifier for the bid when the criterion matches. The modifier must be - /// in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double BidModifier { - get { if ((_hasBits0 & 4) != 0) { return bidModifier_; } else { return 0D; } } - set { - _hasBits0 |= 4; - bidModifier_ = value; - } - } - /// Gets whether the "bid_modifier" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBidModifier { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "bid_modifier" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBidModifier() { - _hasBits0 &= ~4; - } - - /// Field number for the "cpc_bid_micros" field. - public const int CpcBidMicrosFieldNumber = 62; - private long cpcBidMicros_; - /// - /// The CPC (cost-per-click) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidMicros { - get { if ((_hasBits0 & 8) != 0) { return cpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 8; - cpcBidMicros_ = value; - } - } - /// Gets whether the "cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidMicros { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidMicros() { - _hasBits0 &= ~8; - } - - /// Field number for the "cpm_bid_micros" field. - public const int CpmBidMicrosFieldNumber = 63; - private long cpmBidMicros_; - /// - /// The CPM (cost-per-thousand viewable impressions) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpmBidMicros { - get { if ((_hasBits0 & 16) != 0) { return cpmBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 16; - cpmBidMicros_ = value; - } - } - /// Gets whether the "cpm_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpmBidMicros { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "cpm_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpmBidMicros() { - _hasBits0 &= ~16; - } - - /// Field number for the "cpv_bid_micros" field. - public const int CpvBidMicrosFieldNumber = 64; - private long cpvBidMicros_; - /// - /// The CPV (cost-per-view) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpvBidMicros { - get { if ((_hasBits0 & 32) != 0) { return cpvBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 32; - cpvBidMicros_ = value; - } - } - /// Gets whether the "cpv_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpvBidMicros { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "cpv_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpvBidMicros() { - _hasBits0 &= ~32; - } - - /// Field number for the "percent_cpc_bid_micros" field. - public const int PercentCpcBidMicrosFieldNumber = 65; - private long percentCpcBidMicros_; - /// - /// The CPC bid amount, expressed as a fraction of the advertised price - /// for some good or service. The valid range for the fraction is [0,1) and the - /// value stored here is 1,000,000 * [fraction]. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PercentCpcBidMicros { - get { if ((_hasBits0 & 64) != 0) { return percentCpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 64; - percentCpcBidMicros_ = value; - } - } - /// Gets whether the "percent_cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPercentCpcBidMicros { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "percent_cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPercentCpcBidMicros() { - _hasBits0 &= ~64; - } - - /// Field number for the "effective_cpc_bid_micros" field. - public const int EffectiveCpcBidMicrosFieldNumber = 66; - private long effectiveCpcBidMicros_; - /// - /// Output only. The effective CPC (cost-per-click) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EffectiveCpcBidMicros { - get { if ((_hasBits0 & 128) != 0) { return effectiveCpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 128; - effectiveCpcBidMicros_ = value; - } - } - /// Gets whether the "effective_cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectiveCpcBidMicros { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "effective_cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectiveCpcBidMicros() { - _hasBits0 &= ~128; - } - - /// Field number for the "effective_cpm_bid_micros" field. - public const int EffectiveCpmBidMicrosFieldNumber = 67; - private long effectiveCpmBidMicros_; - /// - /// Output only. The effective CPM (cost-per-thousand viewable impressions) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EffectiveCpmBidMicros { - get { if ((_hasBits0 & 256) != 0) { return effectiveCpmBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 256; - effectiveCpmBidMicros_ = value; - } - } - /// Gets whether the "effective_cpm_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectiveCpmBidMicros { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "effective_cpm_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectiveCpmBidMicros() { - _hasBits0 &= ~256; - } - - /// Field number for the "effective_cpv_bid_micros" field. - public const int EffectiveCpvBidMicrosFieldNumber = 68; - private long effectiveCpvBidMicros_; - /// - /// Output only. The effective CPV (cost-per-view) bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EffectiveCpvBidMicros { - get { if ((_hasBits0 & 512) != 0) { return effectiveCpvBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 512; - effectiveCpvBidMicros_ = value; - } - } - /// Gets whether the "effective_cpv_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectiveCpvBidMicros { - get { return (_hasBits0 & 512) != 0; } - } - /// Clears the value of the "effective_cpv_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectiveCpvBidMicros() { - _hasBits0 &= ~512; - } - - /// Field number for the "effective_percent_cpc_bid_micros" field. - public const int EffectivePercentCpcBidMicrosFieldNumber = 69; - private long effectivePercentCpcBidMicros_; - /// - /// Output only. The effective Percent CPC bid amount. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EffectivePercentCpcBidMicros { - get { if ((_hasBits0 & 1024) != 0) { return effectivePercentCpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1024; - effectivePercentCpcBidMicros_ = value; - } - } - /// Gets whether the "effective_percent_cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectivePercentCpcBidMicros { - get { return (_hasBits0 & 1024) != 0; } - } - /// Clears the value of the "effective_percent_cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectivePercentCpcBidMicros() { - _hasBits0 &= ~1024; - } - - /// Field number for the "effective_cpc_bid_source" field. - public const int EffectiveCpcBidSourceFieldNumber = 21; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource effectiveCpcBidSource_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified; - /// - /// Output only. Source of the effective CPC bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource EffectiveCpcBidSource { - get { return effectiveCpcBidSource_; } - set { - effectiveCpcBidSource_ = value; - } - } - - /// Field number for the "effective_cpm_bid_source" field. - public const int EffectiveCpmBidSourceFieldNumber = 22; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource effectiveCpmBidSource_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified; - /// - /// Output only. Source of the effective CPM bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource EffectiveCpmBidSource { - get { return effectiveCpmBidSource_; } - set { - effectiveCpmBidSource_ = value; - } - } - - /// Field number for the "effective_cpv_bid_source" field. - public const int EffectiveCpvBidSourceFieldNumber = 23; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource effectiveCpvBidSource_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified; - /// - /// Output only. Source of the effective CPV bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource EffectiveCpvBidSource { - get { return effectiveCpvBidSource_; } - set { - effectiveCpvBidSource_ = value; - } - } - - /// Field number for the "effective_percent_cpc_bid_source" field. - public const int EffectivePercentCpcBidSourceFieldNumber = 35; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource effectivePercentCpcBidSource_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified; - /// - /// Output only. Source of the effective Percent CPC bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource EffectivePercentCpcBidSource { - get { return effectivePercentCpcBidSource_; } - set { - effectivePercentCpcBidSource_ = value; - } - } - - /// Field number for the "position_estimates" field. - public const int PositionEstimatesFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.PositionEstimates positionEstimates_; - /// - /// Output only. Estimates for criterion bids at various positions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.PositionEstimates PositionEstimates { - get { return positionEstimates_; } - set { - positionEstimates_ = value; - } - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 70; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(562); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// The list of possible final URLs after all cross-domain redirects for the - /// ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 71; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(570); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// The list of possible final mobile URLs after all cross-domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 72; - private string finalUrlSuffix_; - /// - /// URL template for appending params to final URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 73; - private string trackingUrlTemplate_; - /// - /// The URL template for constructing a tracking URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(114, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// The list of mappings used to substitute custom parameter tags in a - /// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "keyword" field. - public const int KeywordFieldNumber = 27; - /// - /// Immutable. Keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordInfo Keyword { - get { return criterionCase_ == CriterionOneofCase.Keyword ? (global::Google.Ads.GoogleAds.V12.Common.KeywordInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Keyword; - } - } - - /// Field number for the "placement" field. - public const int PlacementFieldNumber = 28; - /// - /// Immutable. Placement. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PlacementInfo Placement { - get { return criterionCase_ == CriterionOneofCase.Placement ? (global::Google.Ads.GoogleAds.V12.Common.PlacementInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Placement; - } - } - - /// Field number for the "mobile_app_category" field. - public const int MobileAppCategoryFieldNumber = 29; - /// - /// Immutable. Mobile app category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo MobileAppCategory { - get { return criterionCase_ == CriterionOneofCase.MobileAppCategory ? (global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.MobileAppCategory; - } - } - - /// Field number for the "mobile_application" field. - public const int MobileApplicationFieldNumber = 30; - /// - /// Immutable. Mobile application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo MobileApplication { - get { return criterionCase_ == CriterionOneofCase.MobileApplication ? (global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.MobileApplication; - } - } - - /// Field number for the "listing_group" field. - public const int ListingGroupFieldNumber = 32; - /// - /// Immutable. Listing group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo ListingGroup { - get { return criterionCase_ == CriterionOneofCase.ListingGroup ? (global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.ListingGroup; - } - } - - /// Field number for the "age_range" field. - public const int AgeRangeFieldNumber = 36; - /// - /// Immutable. Age range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo AgeRange { - get { return criterionCase_ == CriterionOneofCase.AgeRange ? (global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.AgeRange; - } - } - - /// Field number for the "gender" field. - public const int GenderFieldNumber = 37; - /// - /// Immutable. Gender. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.GenderInfo Gender { - get { return criterionCase_ == CriterionOneofCase.Gender ? (global::Google.Ads.GoogleAds.V12.Common.GenderInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Gender; - } - } - - /// Field number for the "income_range" field. - public const int IncomeRangeFieldNumber = 38; - /// - /// Immutable. Income range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo IncomeRange { - get { return criterionCase_ == CriterionOneofCase.IncomeRange ? (global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.IncomeRange; - } - } - - /// Field number for the "parental_status" field. - public const int ParentalStatusFieldNumber = 39; - /// - /// Immutable. Parental status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo ParentalStatus { - get { return criterionCase_ == CriterionOneofCase.ParentalStatus ? (global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.ParentalStatus; - } - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 42; - /// - /// Immutable. User List. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserListInfo UserList { - get { return criterionCase_ == CriterionOneofCase.UserList ? (global::Google.Ads.GoogleAds.V12.Common.UserListInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.UserList; - } - } - - /// Field number for the "youtube_video" field. - public const int YoutubeVideoFieldNumber = 40; - /// - /// Immutable. YouTube Video. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo YoutubeVideo { - get { return criterionCase_ == CriterionOneofCase.YoutubeVideo ? (global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.YoutubeVideo; - } - } - - /// Field number for the "youtube_channel" field. - public const int YoutubeChannelFieldNumber = 41; - /// - /// Immutable. YouTube Channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo YoutubeChannel { - get { return criterionCase_ == CriterionOneofCase.YoutubeChannel ? (global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.YoutubeChannel; - } - } - - /// Field number for the "topic" field. - public const int TopicFieldNumber = 43; - /// - /// Immutable. Topic. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TopicInfo Topic { - get { return criterionCase_ == CriterionOneofCase.Topic ? (global::Google.Ads.GoogleAds.V12.Common.TopicInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Topic; - } - } - - /// Field number for the "user_interest" field. - public const int UserInterestFieldNumber = 45; - /// - /// Immutable. User Interest. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo UserInterest { - get { return criterionCase_ == CriterionOneofCase.UserInterest ? (global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.UserInterest; - } - } - - /// Field number for the "webpage" field. - public const int WebpageFieldNumber = 46; - /// - /// Immutable. Webpage - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.WebpageInfo Webpage { - get { return criterionCase_ == CriterionOneofCase.Webpage ? (global::Google.Ads.GoogleAds.V12.Common.WebpageInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Webpage; - } - } - - /// Field number for the "app_payment_model" field. - public const int AppPaymentModelFieldNumber = 47; - /// - /// Immutable. App Payment Model. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo AppPaymentModel { - get { return criterionCase_ == CriterionOneofCase.AppPaymentModel ? (global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.AppPaymentModel; - } - } - - /// Field number for the "custom_affinity" field. - public const int CustomAffinityFieldNumber = 48; - /// - /// Immutable. Custom Affinity. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo CustomAffinity { - get { return criterionCase_ == CriterionOneofCase.CustomAffinity ? (global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.CustomAffinity; - } - } - - /// Field number for the "custom_intent" field. - public const int CustomIntentFieldNumber = 49; - /// - /// Immutable. Custom Intent. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo CustomIntent { - get { return criterionCase_ == CriterionOneofCase.CustomIntent ? (global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.CustomIntent; - } - } - - /// Field number for the "custom_audience" field. - public const int CustomAudienceFieldNumber = 74; - /// - /// Immutable. Custom Audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo CustomAudience { - get { return criterionCase_ == CriterionOneofCase.CustomAudience ? (global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.CustomAudience; - } - } - - /// Field number for the "combined_audience" field. - public const int CombinedAudienceFieldNumber = 75; - /// - /// Immutable. Combined Audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo CombinedAudience { - get { return criterionCase_ == CriterionOneofCase.CombinedAudience ? (global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.CombinedAudience; - } - } - - /// Field number for the "audience" field. - public const int AudienceFieldNumber = 79; - /// - /// Immutable. Audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AudienceInfo Audience { - get { return criterionCase_ == CriterionOneofCase.Audience ? (global::Google.Ads.GoogleAds.V12.Common.AudienceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Audience; - } - } - - private object criterion_; - /// Enum of possible cases for the "criterion" oneof. - public enum CriterionOneofCase { - None = 0, - Keyword = 27, - Placement = 28, - MobileAppCategory = 29, - MobileApplication = 30, - ListingGroup = 32, - AgeRange = 36, - Gender = 37, - IncomeRange = 38, - ParentalStatus = 39, - UserList = 42, - YoutubeVideo = 40, - YoutubeChannel = 41, - Topic = 43, - UserInterest = 45, - Webpage = 46, - AppPaymentModel = 47, - CustomAffinity = 48, - CustomIntent = 49, - CustomAudience = 74, - CombinedAudience = 75, - Audience = 79, - } - private CriterionOneofCase criterionCase_ = CriterionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionOneofCase CriterionCase { - get { return criterionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterion() { - criterionCase_ = CriterionOneofCase.None; - criterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (CriterionId != other.CriterionId) return false; - if (DisplayName != other.DisplayName) return false; - if (Status != other.Status) return false; - if (!object.Equals(QualityInfo, other.QualityInfo)) return false; - if (AdGroup != other.AdGroup) return false; - if (Type != other.Type) return false; - if (Negative != other.Negative) return false; - if (SystemServingStatus != other.SystemServingStatus) return false; - if (ApprovalStatus != other.ApprovalStatus) return false; - if(!disapprovalReasons_.Equals(other.disapprovalReasons_)) return false; - if(!labels_.Equals(other.labels_)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BidModifier, other.BidModifier)) return false; - if (CpcBidMicros != other.CpcBidMicros) return false; - if (CpmBidMicros != other.CpmBidMicros) return false; - if (CpvBidMicros != other.CpvBidMicros) return false; - if (PercentCpcBidMicros != other.PercentCpcBidMicros) return false; - if (EffectiveCpcBidMicros != other.EffectiveCpcBidMicros) return false; - if (EffectiveCpmBidMicros != other.EffectiveCpmBidMicros) return false; - if (EffectiveCpvBidMicros != other.EffectiveCpvBidMicros) return false; - if (EffectivePercentCpcBidMicros != other.EffectivePercentCpcBidMicros) return false; - if (EffectiveCpcBidSource != other.EffectiveCpcBidSource) return false; - if (EffectiveCpmBidSource != other.EffectiveCpmBidSource) return false; - if (EffectiveCpvBidSource != other.EffectiveCpvBidSource) return false; - if (EffectivePercentCpcBidSource != other.EffectivePercentCpcBidSource) return false; - if (!object.Equals(PositionEstimates, other.PositionEstimates)) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (!object.Equals(Keyword, other.Keyword)) return false; - if (!object.Equals(Placement, other.Placement)) return false; - if (!object.Equals(MobileAppCategory, other.MobileAppCategory)) return false; - if (!object.Equals(MobileApplication, other.MobileApplication)) return false; - if (!object.Equals(ListingGroup, other.ListingGroup)) return false; - if (!object.Equals(AgeRange, other.AgeRange)) return false; - if (!object.Equals(Gender, other.Gender)) return false; - if (!object.Equals(IncomeRange, other.IncomeRange)) return false; - if (!object.Equals(ParentalStatus, other.ParentalStatus)) return false; - if (!object.Equals(UserList, other.UserList)) return false; - if (!object.Equals(YoutubeVideo, other.YoutubeVideo)) return false; - if (!object.Equals(YoutubeChannel, other.YoutubeChannel)) return false; - if (!object.Equals(Topic, other.Topic)) return false; - if (!object.Equals(UserInterest, other.UserInterest)) return false; - if (!object.Equals(Webpage, other.Webpage)) return false; - if (!object.Equals(AppPaymentModel, other.AppPaymentModel)) return false; - if (!object.Equals(CustomAffinity, other.CustomAffinity)) return false; - if (!object.Equals(CustomIntent, other.CustomIntent)) return false; - if (!object.Equals(CustomAudience, other.CustomAudience)) return false; - if (!object.Equals(CombinedAudience, other.CombinedAudience)) return false; - if (!object.Equals(Audience, other.Audience)) return false; - if (CriterionCase != other.CriterionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCriterionId) hash ^= CriterionId.GetHashCode(); - if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus.Unspecified) hash ^= Status.GetHashCode(); - if (qualityInfo_ != null) hash ^= QualityInfo.GetHashCode(); - if (HasAdGroup) hash ^= AdGroup.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) hash ^= Type.GetHashCode(); - if (HasNegative) hash ^= Negative.GetHashCode(); - if (SystemServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus.Unspecified) hash ^= SystemServingStatus.GetHashCode(); - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus.Unspecified) hash ^= ApprovalStatus.GetHashCode(); - hash ^= disapprovalReasons_.GetHashCode(); - hash ^= labels_.GetHashCode(); - if (HasBidModifier) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BidModifier); - if (HasCpcBidMicros) hash ^= CpcBidMicros.GetHashCode(); - if (HasCpmBidMicros) hash ^= CpmBidMicros.GetHashCode(); - if (HasCpvBidMicros) hash ^= CpvBidMicros.GetHashCode(); - if (HasPercentCpcBidMicros) hash ^= PercentCpcBidMicros.GetHashCode(); - if (HasEffectiveCpcBidMicros) hash ^= EffectiveCpcBidMicros.GetHashCode(); - if (HasEffectiveCpmBidMicros) hash ^= EffectiveCpmBidMicros.GetHashCode(); - if (HasEffectiveCpvBidMicros) hash ^= EffectiveCpvBidMicros.GetHashCode(); - if (HasEffectivePercentCpcBidMicros) hash ^= EffectivePercentCpcBidMicros.GetHashCode(); - if (EffectiveCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) hash ^= EffectiveCpcBidSource.GetHashCode(); - if (EffectiveCpmBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) hash ^= EffectiveCpmBidSource.GetHashCode(); - if (EffectiveCpvBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) hash ^= EffectiveCpvBidSource.GetHashCode(); - if (EffectivePercentCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) hash ^= EffectivePercentCpcBidSource.GetHashCode(); - if (positionEstimates_ != null) hash ^= PositionEstimates.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Keyword) hash ^= Keyword.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Placement) hash ^= Placement.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) hash ^= MobileAppCategory.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) hash ^= MobileApplication.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.ListingGroup) hash ^= ListingGroup.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.AgeRange) hash ^= AgeRange.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Gender) hash ^= Gender.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.IncomeRange) hash ^= IncomeRange.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.ParentalStatus) hash ^= ParentalStatus.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.UserList) hash ^= UserList.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) hash ^= YoutubeVideo.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) hash ^= YoutubeChannel.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Topic) hash ^= Topic.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.UserInterest) hash ^= UserInterest.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Webpage) hash ^= Webpage.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.AppPaymentModel) hash ^= AppPaymentModel.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.CustomAffinity) hash ^= CustomAffinity.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.CustomIntent) hash ^= CustomIntent.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.CustomAudience) hash ^= CustomAudience.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.CombinedAudience) hash ^= CombinedAudience.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Audience) hash ^= Audience.GetHashCode(); - hash ^= (int) criterionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (qualityInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(QualityInfo); - } - if (positionEstimates_ != null) { - output.WriteRawTag(82); - output.WriteMessage(PositionEstimates); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (EffectiveCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) EffectiveCpcBidSource); - } - if (EffectiveCpmBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) EffectiveCpmBidSource); - } - if (EffectiveCpvBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(184, 1); - output.WriteEnum((int) EffectiveCpvBidSource); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - output.WriteRawTag(200, 1); - output.WriteEnum((int) Type); - } - if (criterionCase_ == CriterionOneofCase.Keyword) { - output.WriteRawTag(218, 1); - output.WriteMessage(Keyword); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - output.WriteRawTag(226, 1); - output.WriteMessage(Placement); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - output.WriteRawTag(234, 1); - output.WriteMessage(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - output.WriteRawTag(242, 1); - output.WriteMessage(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.ListingGroup) { - output.WriteRawTag(130, 2); - output.WriteMessage(ListingGroup); - } - if (EffectivePercentCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(152, 2); - output.WriteEnum((int) EffectivePercentCpcBidSource); - } - if (criterionCase_ == CriterionOneofCase.AgeRange) { - output.WriteRawTag(162, 2); - output.WriteMessage(AgeRange); - } - if (criterionCase_ == CriterionOneofCase.Gender) { - output.WriteRawTag(170, 2); - output.WriteMessage(Gender); - } - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - output.WriteRawTag(178, 2); - output.WriteMessage(IncomeRange); - } - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - output.WriteRawTag(186, 2); - output.WriteMessage(ParentalStatus); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - output.WriteRawTag(194, 2); - output.WriteMessage(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - output.WriteRawTag(202, 2); - output.WriteMessage(YoutubeChannel); - } - if (criterionCase_ == CriterionOneofCase.UserList) { - output.WriteRawTag(210, 2); - output.WriteMessage(UserList); - } - if (criterionCase_ == CriterionOneofCase.Topic) { - output.WriteRawTag(218, 2); - output.WriteMessage(Topic); - } - if (criterionCase_ == CriterionOneofCase.UserInterest) { - output.WriteRawTag(234, 2); - output.WriteMessage(UserInterest); - } - if (criterionCase_ == CriterionOneofCase.Webpage) { - output.WriteRawTag(242, 2); - output.WriteMessage(Webpage); - } - if (criterionCase_ == CriterionOneofCase.AppPaymentModel) { - output.WriteRawTag(250, 2); - output.WriteMessage(AppPaymentModel); - } - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - output.WriteRawTag(130, 3); - output.WriteMessage(CustomAffinity); - } - if (criterionCase_ == CriterionOneofCase.CustomIntent) { - output.WriteRawTag(138, 3); - output.WriteMessage(CustomIntent); - } - if (SystemServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus.Unspecified) { - output.WriteRawTag(160, 3); - output.WriteEnum((int) SystemServingStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus.Unspecified) { - output.WriteRawTag(168, 3); - output.WriteEnum((int) ApprovalStatus); - } - if (HasCriterionId) { - output.WriteRawTag(192, 3); - output.WriteInt64(CriterionId); - } - if (HasAdGroup) { - output.WriteRawTag(202, 3); - output.WriteString(AdGroup); - } - if (HasNegative) { - output.WriteRawTag(208, 3); - output.WriteBool(Negative); - } - disapprovalReasons_.WriteTo(output, _repeated_disapprovalReasons_codec); - labels_.WriteTo(output, _repeated_labels_codec); - if (HasBidModifier) { - output.WriteRawTag(233, 3); - output.WriteDouble(BidModifier); - } - if (HasCpcBidMicros) { - output.WriteRawTag(240, 3); - output.WriteInt64(CpcBidMicros); - } - if (HasCpmBidMicros) { - output.WriteRawTag(248, 3); - output.WriteInt64(CpmBidMicros); - } - if (HasCpvBidMicros) { - output.WriteRawTag(128, 4); - output.WriteInt64(CpvBidMicros); - } - if (HasPercentCpcBidMicros) { - output.WriteRawTag(136, 4); - output.WriteInt64(PercentCpcBidMicros); - } - if (HasEffectiveCpcBidMicros) { - output.WriteRawTag(144, 4); - output.WriteInt64(EffectiveCpcBidMicros); - } - if (HasEffectiveCpmBidMicros) { - output.WriteRawTag(152, 4); - output.WriteInt64(EffectiveCpmBidMicros); - } - if (HasEffectiveCpvBidMicros) { - output.WriteRawTag(160, 4); - output.WriteInt64(EffectiveCpvBidMicros); - } - if (HasEffectivePercentCpcBidMicros) { - output.WriteRawTag(168, 4); - output.WriteInt64(EffectivePercentCpcBidMicros); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (HasFinalUrlSuffix) { - output.WriteRawTag(194, 4); - output.WriteString(FinalUrlSuffix); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(202, 4); - output.WriteString(TrackingUrlTemplate); - } - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - output.WriteRawTag(210, 4); - output.WriteMessage(CustomAudience); - } - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - output.WriteRawTag(218, 4); - output.WriteMessage(CombinedAudience); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(234, 4); - output.WriteString(DisplayName); - } - if (criterionCase_ == CriterionOneofCase.Audience) { - output.WriteRawTag(250, 4); - output.WriteMessage(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (qualityInfo_ != null) { - output.WriteRawTag(34); - output.WriteMessage(QualityInfo); - } - if (positionEstimates_ != null) { - output.WriteRawTag(82); - output.WriteMessage(PositionEstimates); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (EffectiveCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) EffectiveCpcBidSource); - } - if (EffectiveCpmBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) EffectiveCpmBidSource); - } - if (EffectiveCpvBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(184, 1); - output.WriteEnum((int) EffectiveCpvBidSource); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - output.WriteRawTag(200, 1); - output.WriteEnum((int) Type); - } - if (criterionCase_ == CriterionOneofCase.Keyword) { - output.WriteRawTag(218, 1); - output.WriteMessage(Keyword); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - output.WriteRawTag(226, 1); - output.WriteMessage(Placement); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - output.WriteRawTag(234, 1); - output.WriteMessage(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - output.WriteRawTag(242, 1); - output.WriteMessage(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.ListingGroup) { - output.WriteRawTag(130, 2); - output.WriteMessage(ListingGroup); - } - if (EffectivePercentCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - output.WriteRawTag(152, 2); - output.WriteEnum((int) EffectivePercentCpcBidSource); - } - if (criterionCase_ == CriterionOneofCase.AgeRange) { - output.WriteRawTag(162, 2); - output.WriteMessage(AgeRange); - } - if (criterionCase_ == CriterionOneofCase.Gender) { - output.WriteRawTag(170, 2); - output.WriteMessage(Gender); - } - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - output.WriteRawTag(178, 2); - output.WriteMessage(IncomeRange); - } - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - output.WriteRawTag(186, 2); - output.WriteMessage(ParentalStatus); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - output.WriteRawTag(194, 2); - output.WriteMessage(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - output.WriteRawTag(202, 2); - output.WriteMessage(YoutubeChannel); - } - if (criterionCase_ == CriterionOneofCase.UserList) { - output.WriteRawTag(210, 2); - output.WriteMessage(UserList); - } - if (criterionCase_ == CriterionOneofCase.Topic) { - output.WriteRawTag(218, 2); - output.WriteMessage(Topic); - } - if (criterionCase_ == CriterionOneofCase.UserInterest) { - output.WriteRawTag(234, 2); - output.WriteMessage(UserInterest); - } - if (criterionCase_ == CriterionOneofCase.Webpage) { - output.WriteRawTag(242, 2); - output.WriteMessage(Webpage); - } - if (criterionCase_ == CriterionOneofCase.AppPaymentModel) { - output.WriteRawTag(250, 2); - output.WriteMessage(AppPaymentModel); - } - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - output.WriteRawTag(130, 3); - output.WriteMessage(CustomAffinity); - } - if (criterionCase_ == CriterionOneofCase.CustomIntent) { - output.WriteRawTag(138, 3); - output.WriteMessage(CustomIntent); - } - if (SystemServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus.Unspecified) { - output.WriteRawTag(160, 3); - output.WriteEnum((int) SystemServingStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus.Unspecified) { - output.WriteRawTag(168, 3); - output.WriteEnum((int) ApprovalStatus); - } - if (HasCriterionId) { - output.WriteRawTag(192, 3); - output.WriteInt64(CriterionId); - } - if (HasAdGroup) { - output.WriteRawTag(202, 3); - output.WriteString(AdGroup); - } - if (HasNegative) { - output.WriteRawTag(208, 3); - output.WriteBool(Negative); - } - disapprovalReasons_.WriteTo(ref output, _repeated_disapprovalReasons_codec); - labels_.WriteTo(ref output, _repeated_labels_codec); - if (HasBidModifier) { - output.WriteRawTag(233, 3); - output.WriteDouble(BidModifier); - } - if (HasCpcBidMicros) { - output.WriteRawTag(240, 3); - output.WriteInt64(CpcBidMicros); - } - if (HasCpmBidMicros) { - output.WriteRawTag(248, 3); - output.WriteInt64(CpmBidMicros); - } - if (HasCpvBidMicros) { - output.WriteRawTag(128, 4); - output.WriteInt64(CpvBidMicros); - } - if (HasPercentCpcBidMicros) { - output.WriteRawTag(136, 4); - output.WriteInt64(PercentCpcBidMicros); - } - if (HasEffectiveCpcBidMicros) { - output.WriteRawTag(144, 4); - output.WriteInt64(EffectiveCpcBidMicros); - } - if (HasEffectiveCpmBidMicros) { - output.WriteRawTag(152, 4); - output.WriteInt64(EffectiveCpmBidMicros); - } - if (HasEffectiveCpvBidMicros) { - output.WriteRawTag(160, 4); - output.WriteInt64(EffectiveCpvBidMicros); - } - if (HasEffectivePercentCpcBidMicros) { - output.WriteRawTag(168, 4); - output.WriteInt64(EffectivePercentCpcBidMicros); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (HasFinalUrlSuffix) { - output.WriteRawTag(194, 4); - output.WriteString(FinalUrlSuffix); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(202, 4); - output.WriteString(TrackingUrlTemplate); - } - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - output.WriteRawTag(210, 4); - output.WriteMessage(CustomAudience); - } - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - output.WriteRawTag(218, 4); - output.WriteMessage(CombinedAudience); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(234, 4); - output.WriteString(DisplayName); - } - if (criterionCase_ == CriterionOneofCase.Audience) { - output.WriteRawTag(250, 4); - output.WriteMessage(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCriterionId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CriterionId); - } - if (DisplayName.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (qualityInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(QualityInfo); - } - if (HasAdGroup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (HasNegative) { - size += 2 + 1; - } - if (SystemServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SystemServingStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovalStatus); - } - size += disapprovalReasons_.CalculateSize(_repeated_disapprovalReasons_codec); - size += labels_.CalculateSize(_repeated_labels_codec); - if (HasBidModifier) { - size += 2 + 8; - } - if (HasCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CpcBidMicros); - } - if (HasCpmBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CpmBidMicros); - } - if (HasCpvBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CpvBidMicros); - } - if (HasPercentCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(PercentCpcBidMicros); - } - if (HasEffectiveCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(EffectiveCpcBidMicros); - } - if (HasEffectiveCpmBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(EffectiveCpmBidMicros); - } - if (HasEffectiveCpvBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(EffectiveCpvBidMicros); - } - if (HasEffectivePercentCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(EffectivePercentCpcBidMicros); - } - if (EffectiveCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EffectiveCpcBidSource); - } - if (EffectiveCpmBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EffectiveCpmBidSource); - } - if (EffectiveCpvBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EffectiveCpvBidSource); - } - if (EffectivePercentCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EffectivePercentCpcBidSource); - } - if (positionEstimates_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PositionEstimates); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (HasFinalUrlSuffix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (HasTrackingUrlTemplate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (criterionCase_ == CriterionOneofCase.Keyword) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Keyword); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Placement); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.ListingGroup) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ListingGroup); - } - if (criterionCase_ == CriterionOneofCase.AgeRange) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AgeRange); - } - if (criterionCase_ == CriterionOneofCase.Gender) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Gender); - } - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(IncomeRange); - } - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParentalStatus); - } - if (criterionCase_ == CriterionOneofCase.UserList) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserList); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(YoutubeChannel); - } - if (criterionCase_ == CriterionOneofCase.Topic) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Topic); - } - if (criterionCase_ == CriterionOneofCase.UserInterest) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserInterest); - } - if (criterionCase_ == CriterionOneofCase.Webpage) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Webpage); - } - if (criterionCase_ == CriterionOneofCase.AppPaymentModel) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AppPaymentModel); - } - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomAffinity); - } - if (criterionCase_ == CriterionOneofCase.CustomIntent) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomIntent); - } - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomAudience); - } - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CombinedAudience); - } - if (criterionCase_ == CriterionOneofCase.Audience) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Audience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterion other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCriterionId) { - CriterionId = other.CriterionId; - } - if (other.DisplayName.Length != 0) { - DisplayName = other.DisplayName; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus.Unspecified) { - Status = other.Status; - } - if (other.qualityInfo_ != null) { - if (qualityInfo_ == null) { - QualityInfo = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.QualityInfo(); - } - QualityInfo.MergeFrom(other.QualityInfo); - } - if (other.HasAdGroup) { - AdGroup = other.AdGroup; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - Type = other.Type; - } - if (other.HasNegative) { - Negative = other.Negative; - } - if (other.SystemServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus.Unspecified) { - SystemServingStatus = other.SystemServingStatus; - } - if (other.ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus.Unspecified) { - ApprovalStatus = other.ApprovalStatus; - } - disapprovalReasons_.Add(other.disapprovalReasons_); - labels_.Add(other.labels_); - if (other.HasBidModifier) { - BidModifier = other.BidModifier; - } - if (other.HasCpcBidMicros) { - CpcBidMicros = other.CpcBidMicros; - } - if (other.HasCpmBidMicros) { - CpmBidMicros = other.CpmBidMicros; - } - if (other.HasCpvBidMicros) { - CpvBidMicros = other.CpvBidMicros; - } - if (other.HasPercentCpcBidMicros) { - PercentCpcBidMicros = other.PercentCpcBidMicros; - } - if (other.HasEffectiveCpcBidMicros) { - EffectiveCpcBidMicros = other.EffectiveCpcBidMicros; - } - if (other.HasEffectiveCpmBidMicros) { - EffectiveCpmBidMicros = other.EffectiveCpmBidMicros; - } - if (other.HasEffectiveCpvBidMicros) { - EffectiveCpvBidMicros = other.EffectiveCpvBidMicros; - } - if (other.HasEffectivePercentCpcBidMicros) { - EffectivePercentCpcBidMicros = other.EffectivePercentCpcBidMicros; - } - if (other.EffectiveCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - EffectiveCpcBidSource = other.EffectiveCpcBidSource; - } - if (other.EffectiveCpmBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - EffectiveCpmBidSource = other.EffectiveCpmBidSource; - } - if (other.EffectiveCpvBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - EffectiveCpvBidSource = other.EffectiveCpvBidSource; - } - if (other.EffectivePercentCpcBidSource != global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource.Unspecified) { - EffectivePercentCpcBidSource = other.EffectivePercentCpcBidSource; - } - if (other.positionEstimates_ != null) { - if (positionEstimates_ == null) { - PositionEstimates = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.PositionEstimates(); - } - PositionEstimates.MergeFrom(other.PositionEstimates); - } - finalUrls_.Add(other.finalUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - switch (other.CriterionCase) { - case CriterionOneofCase.Keyword: - if (Keyword == null) { - Keyword = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - Keyword.MergeFrom(other.Keyword); - break; - case CriterionOneofCase.Placement: - if (Placement == null) { - Placement = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - } - Placement.MergeFrom(other.Placement); - break; - case CriterionOneofCase.MobileAppCategory: - if (MobileAppCategory == null) { - MobileAppCategory = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - } - MobileAppCategory.MergeFrom(other.MobileAppCategory); - break; - case CriterionOneofCase.MobileApplication: - if (MobileApplication == null) { - MobileApplication = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - } - MobileApplication.MergeFrom(other.MobileApplication); - break; - case CriterionOneofCase.ListingGroup: - if (ListingGroup == null) { - ListingGroup = new global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo(); - } - ListingGroup.MergeFrom(other.ListingGroup); - break; - case CriterionOneofCase.AgeRange: - if (AgeRange == null) { - AgeRange = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - } - AgeRange.MergeFrom(other.AgeRange); - break; - case CriterionOneofCase.Gender: - if (Gender == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - Gender.MergeFrom(other.Gender); - break; - case CriterionOneofCase.IncomeRange: - if (IncomeRange == null) { - IncomeRange = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - } - IncomeRange.MergeFrom(other.IncomeRange); - break; - case CriterionOneofCase.ParentalStatus: - if (ParentalStatus == null) { - ParentalStatus = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - } - ParentalStatus.MergeFrom(other.ParentalStatus); - break; - case CriterionOneofCase.UserList: - if (UserList == null) { - UserList = new global::Google.Ads.GoogleAds.V12.Common.UserListInfo(); - } - UserList.MergeFrom(other.UserList); - break; - case CriterionOneofCase.YoutubeVideo: - if (YoutubeVideo == null) { - YoutubeVideo = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - } - YoutubeVideo.MergeFrom(other.YoutubeVideo); - break; - case CriterionOneofCase.YoutubeChannel: - if (YoutubeChannel == null) { - YoutubeChannel = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - } - YoutubeChannel.MergeFrom(other.YoutubeChannel); - break; - case CriterionOneofCase.Topic: - if (Topic == null) { - Topic = new global::Google.Ads.GoogleAds.V12.Common.TopicInfo(); - } - Topic.MergeFrom(other.Topic); - break; - case CriterionOneofCase.UserInterest: - if (UserInterest == null) { - UserInterest = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - } - UserInterest.MergeFrom(other.UserInterest); - break; - case CriterionOneofCase.Webpage: - if (Webpage == null) { - Webpage = new global::Google.Ads.GoogleAds.V12.Common.WebpageInfo(); - } - Webpage.MergeFrom(other.Webpage); - break; - case CriterionOneofCase.AppPaymentModel: - if (AppPaymentModel == null) { - AppPaymentModel = new global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo(); - } - AppPaymentModel.MergeFrom(other.AppPaymentModel); - break; - case CriterionOneofCase.CustomAffinity: - if (CustomAffinity == null) { - CustomAffinity = new global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo(); - } - CustomAffinity.MergeFrom(other.CustomAffinity); - break; - case CriterionOneofCase.CustomIntent: - if (CustomIntent == null) { - CustomIntent = new global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo(); - } - CustomIntent.MergeFrom(other.CustomIntent); - break; - case CriterionOneofCase.CustomAudience: - if (CustomAudience == null) { - CustomAudience = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo(); - } - CustomAudience.MergeFrom(other.CustomAudience); - break; - case CriterionOneofCase.CombinedAudience: - if (CombinedAudience == null) { - CombinedAudience = new global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo(); - } - CombinedAudience.MergeFrom(other.CombinedAudience); - break; - case CriterionOneofCase.Audience: - if (Audience == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Common.AudienceInfo(); - } - Audience.MergeFrom(other.Audience); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus) input.ReadEnum(); - break; - } - case 34: { - if (qualityInfo_ == null) { - QualityInfo = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.QualityInfo(); - } - input.ReadMessage(QualityInfo); - break; - } - case 82: { - if (positionEstimates_ == null) { - PositionEstimates = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.PositionEstimates(); - } - input.ReadMessage(PositionEstimates); - break; - } - case 114: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 168: { - EffectiveCpcBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 176: { - EffectiveCpmBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 184: { - EffectiveCpvBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 200: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType) input.ReadEnum(); - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - if (criterionCase_ == CriterionOneofCase.Keyword) { - subBuilder.MergeFrom(Keyword); - } - input.ReadMessage(subBuilder); - Keyword = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - if (criterionCase_ == CriterionOneofCase.Placement) { - subBuilder.MergeFrom(Placement); - } - input.ReadMessage(subBuilder); - Placement = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - subBuilder.MergeFrom(MobileAppCategory); - } - input.ReadMessage(subBuilder); - MobileAppCategory = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - subBuilder.MergeFrom(MobileApplication); - } - input.ReadMessage(subBuilder); - MobileApplication = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo(); - if (criterionCase_ == CriterionOneofCase.ListingGroup) { - subBuilder.MergeFrom(ListingGroup); - } - input.ReadMessage(subBuilder); - ListingGroup = subBuilder; - break; - } - case 280: { - EffectivePercentCpcBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.AgeRange) { - subBuilder.MergeFrom(AgeRange); - } - input.ReadMessage(subBuilder); - AgeRange = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Common.GenderInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - if (criterionCase_ == CriterionOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 306: { - global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - subBuilder.MergeFrom(IncomeRange); - } - input.ReadMessage(subBuilder); - IncomeRange = subBuilder; - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 322: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - subBuilder.MergeFrom(YoutubeVideo); - } - input.ReadMessage(subBuilder); - YoutubeVideo = subBuilder; - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Common.UserListInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListInfo(); - if (criterionCase_ == CriterionOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - case 346: { - global::Google.Ads.GoogleAds.V12.Common.TopicInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TopicInfo(); - if (criterionCase_ == CriterionOneofCase.Topic) { - subBuilder.MergeFrom(Topic); - } - input.ReadMessage(subBuilder); - Topic = subBuilder; - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - if (criterionCase_ == CriterionOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 370: { - global::Google.Ads.GoogleAds.V12.Common.WebpageInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.WebpageInfo(); - if (criterionCase_ == CriterionOneofCase.Webpage) { - subBuilder.MergeFrom(Webpage); - } - input.ReadMessage(subBuilder); - Webpage = subBuilder; - break; - } - case 378: { - global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo(); - if (criterionCase_ == CriterionOneofCase.AppPaymentModel) { - subBuilder.MergeFrom(AppPaymentModel); - } - input.ReadMessage(subBuilder); - AppPaymentModel = subBuilder; - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - subBuilder.MergeFrom(CustomAffinity); - } - input.ReadMessage(subBuilder); - CustomAffinity = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo(); - if (criterionCase_ == CriterionOneofCase.CustomIntent) { - subBuilder.MergeFrom(CustomIntent); - } - input.ReadMessage(subBuilder); - CustomIntent = subBuilder; - break; - } - case 416: { - SystemServingStatus = (global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus) input.ReadEnum(); - break; - } - case 424: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus) input.ReadEnum(); - break; - } - case 448: { - CriterionId = input.ReadInt64(); - break; - } - case 458: { - AdGroup = input.ReadString(); - break; - } - case 464: { - Negative = input.ReadBool(); - break; - } - case 474: { - disapprovalReasons_.AddEntriesFrom(input, _repeated_disapprovalReasons_codec); - break; - } - case 482: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); - break; - } - case 489: { - BidModifier = input.ReadDouble(); - break; - } - case 496: { - CpcBidMicros = input.ReadInt64(); - break; - } - case 504: { - CpmBidMicros = input.ReadInt64(); - break; - } - case 512: { - CpvBidMicros = input.ReadInt64(); - break; - } - case 520: { - PercentCpcBidMicros = input.ReadInt64(); - break; - } - case 528: { - EffectiveCpcBidMicros = input.ReadInt64(); - break; - } - case 536: { - EffectiveCpmBidMicros = input.ReadInt64(); - break; - } - case 544: { - EffectiveCpvBidMicros = input.ReadInt64(); - break; - } - case 552: { - EffectivePercentCpcBidMicros = input.ReadInt64(); - break; - } - case 562: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 570: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - case 578: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 586: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 594: { - global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - subBuilder.MergeFrom(CustomAudience); - } - input.ReadMessage(subBuilder); - CustomAudience = subBuilder; - break; - } - case 602: { - global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - subBuilder.MergeFrom(CombinedAudience); - } - input.ReadMessage(subBuilder); - CombinedAudience = subBuilder; - break; - } - case 618: { - DisplayName = input.ReadString(); - break; - } - case 634: { - global::Google.Ads.GoogleAds.V12.Common.AudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AudienceInfo(); - if (criterionCase_ == CriterionOneofCase.Audience) { - subBuilder.MergeFrom(Audience); - } - input.ReadMessage(subBuilder); - Audience = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus) input.ReadEnum(); - break; - } - case 34: { - if (qualityInfo_ == null) { - QualityInfo = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.QualityInfo(); - } - input.ReadMessage(QualityInfo); - break; - } - case 82: { - if (positionEstimates_ == null) { - PositionEstimates = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Types.PositionEstimates(); - } - input.ReadMessage(PositionEstimates); - break; - } - case 114: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 168: { - EffectiveCpcBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 176: { - EffectiveCpmBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 184: { - EffectiveCpvBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 200: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType) input.ReadEnum(); - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - if (criterionCase_ == CriterionOneofCase.Keyword) { - subBuilder.MergeFrom(Keyword); - } - input.ReadMessage(subBuilder); - Keyword = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - if (criterionCase_ == CriterionOneofCase.Placement) { - subBuilder.MergeFrom(Placement); - } - input.ReadMessage(subBuilder); - Placement = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - subBuilder.MergeFrom(MobileAppCategory); - } - input.ReadMessage(subBuilder); - MobileAppCategory = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - subBuilder.MergeFrom(MobileApplication); - } - input.ReadMessage(subBuilder); - MobileApplication = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo(); - if (criterionCase_ == CriterionOneofCase.ListingGroup) { - subBuilder.MergeFrom(ListingGroup); - } - input.ReadMessage(subBuilder); - ListingGroup = subBuilder; - break; - } - case 280: { - EffectivePercentCpcBidSource = (global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) input.ReadEnum(); - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.AgeRange) { - subBuilder.MergeFrom(AgeRange); - } - input.ReadMessage(subBuilder); - AgeRange = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Common.GenderInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - if (criterionCase_ == CriterionOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 306: { - global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - subBuilder.MergeFrom(IncomeRange); - } - input.ReadMessage(subBuilder); - IncomeRange = subBuilder; - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 322: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - subBuilder.MergeFrom(YoutubeVideo); - } - input.ReadMessage(subBuilder); - YoutubeVideo = subBuilder; - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Common.UserListInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListInfo(); - if (criterionCase_ == CriterionOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - case 346: { - global::Google.Ads.GoogleAds.V12.Common.TopicInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TopicInfo(); - if (criterionCase_ == CriterionOneofCase.Topic) { - subBuilder.MergeFrom(Topic); - } - input.ReadMessage(subBuilder); - Topic = subBuilder; - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - if (criterionCase_ == CriterionOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 370: { - global::Google.Ads.GoogleAds.V12.Common.WebpageInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.WebpageInfo(); - if (criterionCase_ == CriterionOneofCase.Webpage) { - subBuilder.MergeFrom(Webpage); - } - input.ReadMessage(subBuilder); - Webpage = subBuilder; - break; - } - case 378: { - global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo(); - if (criterionCase_ == CriterionOneofCase.AppPaymentModel) { - subBuilder.MergeFrom(AppPaymentModel); - } - input.ReadMessage(subBuilder); - AppPaymentModel = subBuilder; - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - subBuilder.MergeFrom(CustomAffinity); - } - input.ReadMessage(subBuilder); - CustomAffinity = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo(); - if (criterionCase_ == CriterionOneofCase.CustomIntent) { - subBuilder.MergeFrom(CustomIntent); - } - input.ReadMessage(subBuilder); - CustomIntent = subBuilder; - break; - } - case 416: { - SystemServingStatus = (global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus) input.ReadEnum(); - break; - } - case 424: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus) input.ReadEnum(); - break; - } - case 448: { - CriterionId = input.ReadInt64(); - break; - } - case 458: { - AdGroup = input.ReadString(); - break; - } - case 464: { - Negative = input.ReadBool(); - break; - } - case 474: { - disapprovalReasons_.AddEntriesFrom(ref input, _repeated_disapprovalReasons_codec); - break; - } - case 482: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); - break; - } - case 489: { - BidModifier = input.ReadDouble(); - break; - } - case 496: { - CpcBidMicros = input.ReadInt64(); - break; - } - case 504: { - CpmBidMicros = input.ReadInt64(); - break; - } - case 512: { - CpvBidMicros = input.ReadInt64(); - break; - } - case 520: { - PercentCpcBidMicros = input.ReadInt64(); - break; - } - case 528: { - EffectiveCpcBidMicros = input.ReadInt64(); - break; - } - case 536: { - EffectiveCpmBidMicros = input.ReadInt64(); - break; - } - case 544: { - EffectiveCpvBidMicros = input.ReadInt64(); - break; - } - case 552: { - EffectivePercentCpcBidMicros = input.ReadInt64(); - break; - } - case 562: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 570: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - case 578: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 586: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 594: { - global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - subBuilder.MergeFrom(CustomAudience); - } - input.ReadMessage(subBuilder); - CustomAudience = subBuilder; - break; - } - case 602: { - global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - subBuilder.MergeFrom(CombinedAudience); - } - input.ReadMessage(subBuilder); - CombinedAudience = subBuilder; - break; - } - case 618: { - DisplayName = input.ReadString(); - break; - } - case 634: { - global::Google.Ads.GoogleAds.V12.Common.AudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AudienceInfo(); - if (criterionCase_ == CriterionOneofCase.Audience) { - subBuilder.MergeFrom(Audience); - } - input.ReadMessage(subBuilder); - Audience = subBuilder; - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupCriterion message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// A container for ad group criterion quality information. - /// - public sealed partial class QualityInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QualityInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QualityInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QualityInfo(QualityInfo other) : this() { - _hasBits0 = other._hasBits0; - qualityScore_ = other.qualityScore_; - creativeQualityScore_ = other.creativeQualityScore_; - postClickQualityScore_ = other.postClickQualityScore_; - searchPredictedCtr_ = other.searchPredictedCtr_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QualityInfo Clone() { - return new QualityInfo(this); - } - - /// Field number for the "quality_score" field. - public const int QualityScoreFieldNumber = 5; - private int qualityScore_; - /// - /// Output only. The quality score. - /// - /// This field may not be populated if Google does not have enough - /// information to determine a value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int QualityScore { - get { if ((_hasBits0 & 1) != 0) { return qualityScore_; } else { return 0; } } - set { - _hasBits0 |= 1; - qualityScore_ = value; - } - } - /// Gets whether the "quality_score" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasQualityScore { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "quality_score" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearQualityScore() { - _hasBits0 &= ~1; - } - - /// Field number for the "creative_quality_score" field. - public const int CreativeQualityScoreFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket creativeQualityScore_ = global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified; - /// - /// Output only. The performance of the ad compared to other advertisers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket CreativeQualityScore { - get { return creativeQualityScore_; } - set { - creativeQualityScore_ = value; - } - } - - /// Field number for the "post_click_quality_score" field. - public const int PostClickQualityScoreFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket postClickQualityScore_ = global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified; - /// - /// Output only. The quality score of the landing page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket PostClickQualityScore { - get { return postClickQualityScore_; } - set { - postClickQualityScore_ = value; - } - } - - /// Field number for the "search_predicted_ctr" field. - public const int SearchPredictedCtrFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket searchPredictedCtr_ = global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified; - /// - /// Output only. The click-through rate compared to that of other advertisers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket SearchPredictedCtr { - get { return searchPredictedCtr_; } - set { - searchPredictedCtr_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as QualityInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(QualityInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (QualityScore != other.QualityScore) return false; - if (CreativeQualityScore != other.CreativeQualityScore) return false; - if (PostClickQualityScore != other.PostClickQualityScore) return false; - if (SearchPredictedCtr != other.SearchPredictedCtr) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasQualityScore) hash ^= QualityScore.GetHashCode(); - if (CreativeQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) hash ^= CreativeQualityScore.GetHashCode(); - if (PostClickQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) hash ^= PostClickQualityScore.GetHashCode(); - if (SearchPredictedCtr != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) hash ^= SearchPredictedCtr.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CreativeQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) CreativeQualityScore); - } - if (PostClickQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) PostClickQualityScore); - } - if (SearchPredictedCtr != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) SearchPredictedCtr); - } - if (HasQualityScore) { - output.WriteRawTag(40); - output.WriteInt32(QualityScore); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CreativeQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) CreativeQualityScore); - } - if (PostClickQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) PostClickQualityScore); - } - if (SearchPredictedCtr != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) SearchPredictedCtr); - } - if (HasQualityScore) { - output.WriteRawTag(40); - output.WriteInt32(QualityScore); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasQualityScore) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(QualityScore); - } - if (CreativeQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CreativeQualityScore); - } - if (PostClickQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PostClickQualityScore); - } - if (SearchPredictedCtr != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SearchPredictedCtr); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(QualityInfo other) { - if (other == null) { - return; - } - if (other.HasQualityScore) { - QualityScore = other.QualityScore; - } - if (other.CreativeQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - CreativeQualityScore = other.CreativeQualityScore; - } - if (other.PostClickQualityScore != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - PostClickQualityScore = other.PostClickQualityScore; - } - if (other.SearchPredictedCtr != global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket.Unspecified) { - SearchPredictedCtr = other.SearchPredictedCtr; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - CreativeQualityScore = (global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket) input.ReadEnum(); - break; - } - case 24: { - PostClickQualityScore = (global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket) input.ReadEnum(); - break; - } - case 32: { - SearchPredictedCtr = (global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket) input.ReadEnum(); - break; - } - case 40: { - QualityScore = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - CreativeQualityScore = (global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket) input.ReadEnum(); - break; - } - case 24: { - PostClickQualityScore = (global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket) input.ReadEnum(); - break; - } - case 32: { - SearchPredictedCtr = (global::Google.Ads.GoogleAds.V12.Enums.QualityScoreBucketEnum.Types.QualityScoreBucket) input.ReadEnum(); - break; - } - case 40: { - QualityScore = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Estimates for criterion bids at various positions. - /// - public sealed partial class PositionEstimates : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PositionEstimates()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PositionEstimates() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PositionEstimates(PositionEstimates other) : this() { - _hasBits0 = other._hasBits0; - firstPageCpcMicros_ = other.firstPageCpcMicros_; - firstPositionCpcMicros_ = other.firstPositionCpcMicros_; - topOfPageCpcMicros_ = other.topOfPageCpcMicros_; - estimatedAddClicksAtFirstPositionCpc_ = other.estimatedAddClicksAtFirstPositionCpc_; - estimatedAddCostAtFirstPositionCpc_ = other.estimatedAddCostAtFirstPositionCpc_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PositionEstimates Clone() { - return new PositionEstimates(this); - } - - /// Field number for the "first_page_cpc_micros" field. - public const int FirstPageCpcMicrosFieldNumber = 6; - private long firstPageCpcMicros_; - /// - /// Output only. The estimate of the CPC bid required for ad to be shown on first - /// page of search results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FirstPageCpcMicros { - get { if ((_hasBits0 & 1) != 0) { return firstPageCpcMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - firstPageCpcMicros_ = value; - } - } - /// Gets whether the "first_page_cpc_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFirstPageCpcMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "first_page_cpc_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFirstPageCpcMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "first_position_cpc_micros" field. - public const int FirstPositionCpcMicrosFieldNumber = 7; - private long firstPositionCpcMicros_; - /// - /// Output only. The estimate of the CPC bid required for ad to be displayed in first - /// position, at the top of the first page of search results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FirstPositionCpcMicros { - get { if ((_hasBits0 & 2) != 0) { return firstPositionCpcMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - firstPositionCpcMicros_ = value; - } - } - /// Gets whether the "first_position_cpc_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFirstPositionCpcMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "first_position_cpc_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFirstPositionCpcMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "top_of_page_cpc_micros" field. - public const int TopOfPageCpcMicrosFieldNumber = 8; - private long topOfPageCpcMicros_; - /// - /// Output only. The estimate of the CPC bid required for ad to be displayed at the top - /// of the first page of search results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TopOfPageCpcMicros { - get { if ((_hasBits0 & 4) != 0) { return topOfPageCpcMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - topOfPageCpcMicros_ = value; - } - } - /// Gets whether the "top_of_page_cpc_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTopOfPageCpcMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "top_of_page_cpc_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTopOfPageCpcMicros() { - _hasBits0 &= ~4; - } - - /// Field number for the "estimated_add_clicks_at_first_position_cpc" field. - public const int EstimatedAddClicksAtFirstPositionCpcFieldNumber = 9; - private long estimatedAddClicksAtFirstPositionCpc_; - /// - /// Output only. Estimate of how many clicks per week you might get by changing your - /// keyword bid to the value in first_position_cpc_micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EstimatedAddClicksAtFirstPositionCpc { - get { if ((_hasBits0 & 8) != 0) { return estimatedAddClicksAtFirstPositionCpc_; } else { return 0L; } } - set { - _hasBits0 |= 8; - estimatedAddClicksAtFirstPositionCpc_ = value; - } - } - /// Gets whether the "estimated_add_clicks_at_first_position_cpc" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEstimatedAddClicksAtFirstPositionCpc { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "estimated_add_clicks_at_first_position_cpc" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEstimatedAddClicksAtFirstPositionCpc() { - _hasBits0 &= ~8; - } - - /// Field number for the "estimated_add_cost_at_first_position_cpc" field. - public const int EstimatedAddCostAtFirstPositionCpcFieldNumber = 10; - private long estimatedAddCostAtFirstPositionCpc_; - /// - /// Output only. Estimate of how your cost per week might change when changing your - /// keyword bid to the value in first_position_cpc_micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long EstimatedAddCostAtFirstPositionCpc { - get { if ((_hasBits0 & 16) != 0) { return estimatedAddCostAtFirstPositionCpc_; } else { return 0L; } } - set { - _hasBits0 |= 16; - estimatedAddCostAtFirstPositionCpc_ = value; - } - } - /// Gets whether the "estimated_add_cost_at_first_position_cpc" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEstimatedAddCostAtFirstPositionCpc { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "estimated_add_cost_at_first_position_cpc" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEstimatedAddCostAtFirstPositionCpc() { - _hasBits0 &= ~16; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PositionEstimates); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PositionEstimates other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FirstPageCpcMicros != other.FirstPageCpcMicros) return false; - if (FirstPositionCpcMicros != other.FirstPositionCpcMicros) return false; - if (TopOfPageCpcMicros != other.TopOfPageCpcMicros) return false; - if (EstimatedAddClicksAtFirstPositionCpc != other.EstimatedAddClicksAtFirstPositionCpc) return false; - if (EstimatedAddCostAtFirstPositionCpc != other.EstimatedAddCostAtFirstPositionCpc) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasFirstPageCpcMicros) hash ^= FirstPageCpcMicros.GetHashCode(); - if (HasFirstPositionCpcMicros) hash ^= FirstPositionCpcMicros.GetHashCode(); - if (HasTopOfPageCpcMicros) hash ^= TopOfPageCpcMicros.GetHashCode(); - if (HasEstimatedAddClicksAtFirstPositionCpc) hash ^= EstimatedAddClicksAtFirstPositionCpc.GetHashCode(); - if (HasEstimatedAddCostAtFirstPositionCpc) hash ^= EstimatedAddCostAtFirstPositionCpc.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasFirstPageCpcMicros) { - output.WriteRawTag(48); - output.WriteInt64(FirstPageCpcMicros); - } - if (HasFirstPositionCpcMicros) { - output.WriteRawTag(56); - output.WriteInt64(FirstPositionCpcMicros); - } - if (HasTopOfPageCpcMicros) { - output.WriteRawTag(64); - output.WriteInt64(TopOfPageCpcMicros); - } - if (HasEstimatedAddClicksAtFirstPositionCpc) { - output.WriteRawTag(72); - output.WriteInt64(EstimatedAddClicksAtFirstPositionCpc); - } - if (HasEstimatedAddCostAtFirstPositionCpc) { - output.WriteRawTag(80); - output.WriteInt64(EstimatedAddCostAtFirstPositionCpc); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasFirstPageCpcMicros) { - output.WriteRawTag(48); - output.WriteInt64(FirstPageCpcMicros); - } - if (HasFirstPositionCpcMicros) { - output.WriteRawTag(56); - output.WriteInt64(FirstPositionCpcMicros); - } - if (HasTopOfPageCpcMicros) { - output.WriteRawTag(64); - output.WriteInt64(TopOfPageCpcMicros); - } - if (HasEstimatedAddClicksAtFirstPositionCpc) { - output.WriteRawTag(72); - output.WriteInt64(EstimatedAddClicksAtFirstPositionCpc); - } - if (HasEstimatedAddCostAtFirstPositionCpc) { - output.WriteRawTag(80); - output.WriteInt64(EstimatedAddCostAtFirstPositionCpc); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasFirstPageCpcMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(FirstPageCpcMicros); - } - if (HasFirstPositionCpcMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(FirstPositionCpcMicros); - } - if (HasTopOfPageCpcMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TopOfPageCpcMicros); - } - if (HasEstimatedAddClicksAtFirstPositionCpc) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(EstimatedAddClicksAtFirstPositionCpc); - } - if (HasEstimatedAddCostAtFirstPositionCpc) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(EstimatedAddCostAtFirstPositionCpc); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PositionEstimates other) { - if (other == null) { - return; - } - if (other.HasFirstPageCpcMicros) { - FirstPageCpcMicros = other.FirstPageCpcMicros; - } - if (other.HasFirstPositionCpcMicros) { - FirstPositionCpcMicros = other.FirstPositionCpcMicros; - } - if (other.HasTopOfPageCpcMicros) { - TopOfPageCpcMicros = other.TopOfPageCpcMicros; - } - if (other.HasEstimatedAddClicksAtFirstPositionCpc) { - EstimatedAddClicksAtFirstPositionCpc = other.EstimatedAddClicksAtFirstPositionCpc; - } - if (other.HasEstimatedAddCostAtFirstPositionCpc) { - EstimatedAddCostAtFirstPositionCpc = other.EstimatedAddCostAtFirstPositionCpc; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 48: { - FirstPageCpcMicros = input.ReadInt64(); - break; - } - case 56: { - FirstPositionCpcMicros = input.ReadInt64(); - break; - } - case 64: { - TopOfPageCpcMicros = input.ReadInt64(); - break; - } - case 72: { - EstimatedAddClicksAtFirstPositionCpc = input.ReadInt64(); - break; - } - case 80: { - EstimatedAddCostAtFirstPositionCpc = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 48: { - FirstPageCpcMicros = input.ReadInt64(); - break; - } - case 56: { - FirstPositionCpcMicros = input.ReadInt64(); - break; - } - case 64: { - TopOfPageCpcMicros = input.ReadInt64(); - break; - } - case 72: { - EstimatedAddClicksAtFirstPositionCpc = input.ReadInt64(); - break; - } - case 80: { - EstimatedAddCostAtFirstPositionCpc = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionApprovalStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionApprovalStatus.g.cs deleted file mode 100755 index 955d66efe..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionApprovalStatus.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_group_criterion_approval_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_group_criterion_approval_status.proto - public static partial class AdGroupCriterionApprovalStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_group_criterion_approval_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionApprovalStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfZ3JvdXBfY3Jp", - "dGVyaW9uX2FwcHJvdmFsX3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zIqoBCiJBZEdyb3VwQ3JpdGVyaW9uQXBwcm92YWxT", - "dGF0dXNFbnVtIoMBCh5BZEdyb3VwQ3JpdGVyaW9uQXBwcm92YWxTdGF0dXMS", - "DwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESDAoIQVBQUk9WRUQQAhIP", - "CgtESVNBUFBST1ZFRBADEhIKDlBFTkRJTkdfUkVWSUVXEAQSEAoMVU5ERVJf", - "UkVWSUVXEAVC/QEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXNCI0FkR3JvdXBDcml0ZXJpb25BcHByb3ZhbFN0YXR1c1Byb3RvUAFaQ2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51", - "bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusEnum.Types.AdGroupCriterionApprovalStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible AdGroupCriterion approval statuses. - /// - public sealed partial class AdGroupCriterionApprovalStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionApprovalStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionApprovalStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionApprovalStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionApprovalStatusEnum(AdGroupCriterionApprovalStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionApprovalStatusEnum Clone() { - return new AdGroupCriterionApprovalStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionApprovalStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionApprovalStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionApprovalStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupCriterionApprovalStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates AdGroupCriterion approval statuses. - /// - public enum AdGroupCriterionApprovalStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Approved. - /// - [pbr::OriginalName("APPROVED")] Approved = 2, - /// - /// Disapproved. - /// - [pbr::OriginalName("DISAPPROVED")] Disapproved = 3, - /// - /// Pending Review. - /// - [pbr::OriginalName("PENDING_REVIEW")] PendingReview = 4, - /// - /// Under review. - /// - [pbr::OriginalName("UNDER_REVIEW")] UnderReview = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizer.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizer.g.cs deleted file mode 100755 index 835b02112..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizer.g.cs +++ /dev/null @@ -1,451 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_criterion_customizer.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_criterion_customizer.proto - public static partial class AdGroupCriterionCustomizerReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_criterion_customizer.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionCustomizerReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2NyaXRlcmlvbl9jdXN0b21pemVyLnByb3RvEiJnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "Y29tbW9uL2N1c3RvbWl6ZXJfdmFsdWUucHJvdG8aPGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9jdXN0b21pemVyX3ZhbHVlX3N0YXR1cy5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90byKGBQoaQWRHcm91cENyaXRlcmlvbkN1c3RvbWl6", - "ZXISUgoNcmVzb3VyY2VfbmFtZRgBIAEoCUI74EEF+kE1CjNnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQWRHcm91cENyaXRlcmlvbkN1c3RvbWl6ZXISUgoS", - "YWRfZ3JvdXBfY3JpdGVyaW9uGAIgASgJQjHgQQX6QSsKKWdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9BZEdyb3VwQ3JpdGVyaW9uSACIAQESVQoUY3VzdG9t", - "aXplcl9hdHRyaWJ1dGUYAyABKAlCN+BBAuBBBfpBLgosZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0N1c3RvbWl6ZXJBdHRyaWJ1dGUSZAoGc3RhdHVzGAQg", - "ASgOMk8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkN1c3RvbWl6", - "ZXJWYWx1ZVN0YXR1c0VudW0uQ3VzdG9taXplclZhbHVlU3RhdHVzQgPgQQMS", - "RAoFdmFsdWUYBSABKAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLkN1c3RvbWl6ZXJWYWx1ZUID4EECOqUB6kGhAQozZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0FkR3JvdXBDcml0ZXJpb25DdXN0b21pemVyEmpjdXN0", - "b21lcnMve2N1c3RvbWVyX2lkfS9hZEdyb3VwQ3JpdGVyaW9uQ3VzdG9taXpl", - "cnMve2FkX2dyb3VwX2lkfX57Y3JpdGVyaW9uX2lkfX57Y3VzdG9taXplcl9h", - "dHRyaWJ1dGVfaWR9QhUKE19hZF9ncm91cF9jcml0ZXJpb25CkQIKJmNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQh9BZEdyb3VwQ3Jp", - "dGVyaW9uQ3VzdG9taXplclByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "O3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5S", - "ZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz", - "6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CustomizerValueReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer), global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer.Parser, new[]{ "ResourceName", "AdGroupCriterion", "CustomizerAttribute", "Status", "Value" }, new[]{ "AdGroupCriterion" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customizer value for the associated CustomizerAttribute at the - /// AdGroupCriterion level. - /// - public sealed partial class AdGroupCriterionCustomizer : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionCustomizer()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizerReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizer() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizer(AdGroupCriterionCustomizer other) : this() { - resourceName_ = other.resourceName_; - adGroupCriterion_ = other.adGroupCriterion_; - customizerAttribute_ = other.customizerAttribute_; - status_ = other.status_; - value_ = other.value_ != null ? other.value_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizer Clone() { - return new AdGroupCriterionCustomizer(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group criterion customizer. - /// Ad group criterion customizer resource names have the form: - /// - /// `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_criterion" field. - public const int AdGroupCriterionFieldNumber = 2; - private string adGroupCriterion_; - /// - /// Immutable. The ad group criterion to which the customizer attribute is linked. - /// It must be a keyword criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupCriterion { - get { return adGroupCriterion_ ?? ""; } - set { - adGroupCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupCriterion { - get { return adGroupCriterion_ != null; } - } - /// Clears the value of the "ad_group_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupCriterion() { - adGroupCriterion_ = null; - } - - /// Field number for the "customizer_attribute" field. - public const int CustomizerAttributeFieldNumber = 3; - private string customizerAttribute_ = ""; - /// - /// Required. Immutable. The customizer attribute which is linked to the ad group criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomizerAttribute { - get { return customizerAttribute_; } - set { - customizerAttribute_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified; - /// - /// Output only. The status of the ad group criterion customizer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.CustomizerValue value_; - /// - /// Required. The value to associate with the customizer attribute at this level. The - /// value must be of the type specified for the CustomizerAttribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomizerValue Value { - get { return value_; } - set { - value_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionCustomizer); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionCustomizer other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroupCriterion != other.AdGroupCriterion) return false; - if (CustomizerAttribute != other.CustomizerAttribute) return false; - if (Status != other.Status) return false; - if (!object.Equals(Value, other.Value)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroupCriterion) hash ^= AdGroupCriterion.GetHashCode(); - if (CustomizerAttribute.Length != 0) hash ^= CustomizerAttribute.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) hash ^= Status.GetHashCode(); - if (value_ != null) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(18); - output.WriteString(AdGroupCriterion); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(18); - output.WriteString(AdGroupCriterion); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroupCriterion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupCriterion); - } - if (CustomizerAttribute.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (value_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionCustomizer other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroupCriterion) { - AdGroupCriterion = other.AdGroupCriterion; - } - if (other.CustomizerAttribute.Length != 0) { - CustomizerAttribute = other.CustomizerAttribute; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - Status = other.Status; - } - if (other.value_ != null) { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - Value.MergeFrom(other.Value); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroupCriterion = input.ReadString(); - break; - } - case 26: { - CustomizerAttribute = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 42: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroupCriterion = input.ReadString(); - break; - } - case 26: { - CustomizerAttribute = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 42: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerError.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerError.g.cs deleted file mode 100755 index f632f410c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerError.g.cs +++ /dev/null @@ -1,234 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_group_criterion_customizer_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_group_criterion_customizer_error.proto - public static partial class AdGroupCriterionCustomizerErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_group_criterion_customizer_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionCustomizerErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2Ny", - "aXRlcmlvbl9jdXN0b21pemVyX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZXJyb3JzIoQBCiNBZEdyb3VwQ3JpdGVyaW9uQ3VzdG9t", - "aXplckVycm9yRW51bSJdCh9BZEdyb3VwQ3JpdGVyaW9uQ3VzdG9taXplckVy", - "cm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhwKGENSSVRFUklP", - "Tl9JU19OT1RfS0VZV09SRBACQoQCCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVycm9yc0IkQWRHcm91cENyaXRlcmlvbkN1c3RvbWl6ZXJFcnJv", - "clByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorEnum.Types.AdGroupCriterionCustomizerError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad group criterion customizer errors. - /// - public sealed partial class AdGroupCriterionCustomizerErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionCustomizerErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizerErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizerErrorEnum(AdGroupCriterionCustomizerErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizerErrorEnum Clone() { - return new AdGroupCriterionCustomizerErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionCustomizerErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionCustomizerErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionCustomizerErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupCriterionCustomizerErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad group criterion customizer errors. - /// - public enum AdGroupCriterionCustomizerError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Only keyword type criterion is allowed to link customizer attribute. - /// - [pbr::OriginalName("CRITERION_IS_NOT_KEYWORD")] CriterionIsNotKeyword = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerResourceNames.g.cs deleted file mode 100755 index f4a7ab689..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerResourceNames.g.cs +++ /dev/null @@ -1,383 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupCriterionCustomizer resource. - public sealed partial class AdGroupCriterionCustomizerName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// . - /// - CustomerAdGroupCriterionCustomizerAttribute = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterionCustomizerAttribute = new gax::PathTemplate("customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id_criterion_id_customizer_attribute_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupCriterionCustomizerName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupCriterionCustomizerName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static AdGroupCriterionCustomizerName FromCustomerAdGroupCriterionCustomizerAttribute(string customerId, string adGroupId, string criterionId, string customizerAttributeId) => - new AdGroupCriterionCustomizerName(ResourceNameType.CustomerAdGroupCriterionCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// . - /// - public static string Format(string customerId, string adGroupId, string criterionId, string customizerAttributeId) => - FormatCustomerAdGroupCriterionCustomizerAttribute(customerId, adGroupId, criterionId, customizerAttributeId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// . - /// - public static string FormatCustomerAdGroupCriterionCustomizerAttribute(string customerId, string adGroupId, string criterionId, string customizerAttributeId) => - s_customerAdGroupCriterionCustomizerAttribute.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static AdGroupCriterionCustomizerName Parse(string adGroupCriterionCustomizerName) => - Parse(adGroupCriterionCustomizerName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupCriterionCustomizerName Parse(string adGroupCriterionCustomizerName, bool allowUnparsed) => - TryParse(adGroupCriterionCustomizerName, allowUnparsed, out AdGroupCriterionCustomizerName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionCustomizerName, out AdGroupCriterionCustomizerName result) => - TryParse(adGroupCriterionCustomizerName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionCustomizerName, bool allowUnparsed, out AdGroupCriterionCustomizerName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupCriterionCustomizerName, nameof(adGroupCriterionCustomizerName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterionCustomizerAttribute.TryParseName(adGroupCriterionCustomizerName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterionCustomizerAttribute(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupCriterionCustomizerName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupCriterionCustomizerName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null, string customizerAttributeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - CustomizerAttributeId = customizerAttributeId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern - /// - /// customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - public AdGroupCriterionCustomizerName(string customerId, string adGroupId, string criterionId, string customizerAttributeId) : this(ResourceNameType.CustomerAdGroupCriterionCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The CustomizerAttribute ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string CustomizerAttributeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterionCustomizerAttribute: return s_customerAdGroupCriterionCustomizerAttribute.Expand(CustomerId, $"{AdGroupId}~{CriterionId}~{CustomizerAttributeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupCriterionCustomizerName); - - /// - public bool Equals(AdGroupCriterionCustomizerName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupCriterionCustomizerName a, AdGroupCriterionCustomizerName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupCriterionCustomizerName a, AdGroupCriterionCustomizerName b) => !(a == b); - } - - public partial class AdGroupCriterionCustomizer - { - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupCriterionCustomizerName ResourceNameAsAdGroupCriterionCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupCriterionCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupCriterionName AdGroupCriterionAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(AdGroupCriterion) ? null : AdGroupCriterionName.Parse(AdGroupCriterion, allowUnparsed: true); - set => AdGroupCriterion = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal CustomizerAttributeName CustomizerAttributeAsCustomizerAttributeName - { - get => string.IsNullOrEmpty(CustomizerAttribute) ? null : CustomizerAttributeName.Parse(CustomizerAttribute, allowUnparsed: true); - set => CustomizerAttribute = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerService.g.cs deleted file mode 100755 index 5a779f982..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerService.g.cs +++ /dev/null @@ -1,1209 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_criterion_customizer_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_criterion_customizer_service.proto - public static partial class AdGroupCriterionCustomizerServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_criterion_customizer_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionCustomizerServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ck1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "Y3JpdGVyaW9uX2N1c3RvbWl6ZXJfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvcmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGkZnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3VwX2NyaXRl", - "cmlvbl9jdXN0b21pemVyLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", - "LnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9m", - "aWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90", - "bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8iwQIKKE11dGF0ZUFkR3JvdXBD", - "cml0ZXJpb25DdXN0b21pemVyc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASAB", - "KAlCA+BBAhJfCgpvcGVyYXRpb25zGAIgAygLMkYuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLkFkR3JvdXBDcml0ZXJpb25DdXN0b21pemVy", - "T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUKDXZh", - "bGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBlGAUg", - "ASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3BvbnNl", - "Q29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUi0AEKI0FkR3Jv", - "dXBDcml0ZXJpb25DdXN0b21pemVyT3BlcmF0aW9uElAKBmNyZWF0ZRgBIAEo", - "CzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91", - "cENyaXRlcmlvbkN1c3RvbWl6ZXJIABJKCgZyZW1vdmUYAiABKAlCOPpBNQoz", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBDcml0ZXJpb25DdXN0", - "b21pemVySABCCwoJb3BlcmF0aW9uIroBCilNdXRhdGVBZEdyb3VwQ3JpdGVy", - "aW9uQ3VzdG9taXplcnNSZXNwb25zZRJaCgdyZXN1bHRzGAEgAygLMkkuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBD", - "cml0ZXJpb25DdXN0b21pemVyUmVzdWx0EjEKFXBhcnRpYWxfZmFpbHVyZV9l", - "cnJvchgCIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzIuABCiZNdXRhdGVBZEdy", - "b3VwQ3JpdGVyaW9uQ3VzdG9taXplclJlc3VsdBJPCg1yZXNvdXJjZV9uYW1l", - "GAEgASgJQjj6QTUKM2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3Vw", - "Q3JpdGVyaW9uQ3VzdG9taXplchJlCh1hZF9ncm91cF9jcml0ZXJpb25fY3Vz", - "dG9taXplchgCIAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMuQWRHcm91cENyaXRlcmlvbkN1c3RvbWl6ZXIykgMKIUFkR3JvdXBD", - "cml0ZXJpb25DdXN0b21pemVyU2VydmljZRKlAgohTXV0YXRlQWRHcm91cENy", - "aXRlcmlvbkN1c3RvbWl6ZXJzEksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBDcml0ZXJpb25DdXN0b21pemVyc1Jl", - "cXVlc3QaTC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0", - "YXRlQWRHcm91cENyaXRlcmlvbkN1c3RvbWl6ZXJzUmVzcG9uc2UiZYLT5JMC", - "RiJBL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L0FkR3JvdXBDcml0", - "ZXJpb25DdXN0b21pemVyczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVy", - "YXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczov", - "L3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCkgIKJWNvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCJkFkR3JvdXBDcml0ZXJp", - "b25DdXN0b21pemVyU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2Vydmlj", - "ZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "U2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPq", - "AiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizerReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult.Parser, new[]{ "ResourceName", "AdGroupCriterionCustomizer" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AdGroupCriterionCustomizerService.MutateAdGroupCriterionCustomizers][google.ads.googleads.v12.services.AdGroupCriterionCustomizerService.MutateAdGroupCriterionCustomizers]. - /// - public sealed partial class MutateAdGroupCriterionCustomizersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriterionCustomizersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizersRequest(MutateAdGroupCriterionCustomizersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizersRequest Clone() { - return new MutateAdGroupCriterionCustomizersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad group criterion customizers are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad group criterion - /// customizers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriterionCustomizersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriterionCustomizersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriterionCustomizersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an customizer attribute. - /// - public sealed partial class AdGroupCriterionCustomizerOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionCustomizerOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizerOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizerOperation(AdGroupCriterionCustomizerOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionCustomizerOperation Clone() { - return new AdGroupCriterionCustomizerOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group - /// criterion customizer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed ad group criterion - /// customizer is expected, in this format: - /// - /// `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionCustomizerOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionCustomizerOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionCustomizerOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group criterion customizer mutate. - /// - public sealed partial class MutateAdGroupCriterionCustomizersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriterionCustomizersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizersResponse(MutateAdGroupCriterionCustomizersResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizersResponse Clone() { - return new MutateAdGroupCriterionCustomizersResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriterionCustomizersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriterionCustomizersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriterionCustomizersResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad group criterion customizer mutate. - /// - public sealed partial class MutateAdGroupCriterionCustomizerResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriterionCustomizerResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizerResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizerResult(MutateAdGroupCriterionCustomizerResult other) : this() { - resourceName_ = other.resourceName_; - adGroupCriterionCustomizer_ = other.adGroupCriterionCustomizer_ != null ? other.adGroupCriterionCustomizer_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionCustomizerResult Clone() { - return new MutateAdGroupCriterionCustomizerResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_criterion_customizer" field. - public const int AdGroupCriterionCustomizerFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer adGroupCriterionCustomizer_; - /// - /// The mutated AdGroupCriterionCustomizer with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer AdGroupCriterionCustomizer { - get { return adGroupCriterionCustomizer_; } - set { - adGroupCriterionCustomizer_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriterionCustomizerResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriterionCustomizerResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupCriterionCustomizer, other.AdGroupCriterionCustomizer)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupCriterionCustomizer_ != null) hash ^= AdGroupCriterionCustomizer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupCriterionCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupCriterionCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupCriterionCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupCriterionCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupCriterionCustomizer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionCustomizer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriterionCustomizerResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupCriterionCustomizer_ != null) { - if (adGroupCriterionCustomizer_ == null) { - AdGroupCriterionCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - } - AdGroupCriterionCustomizer.MergeFrom(other.AdGroupCriterionCustomizer); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupCriterionCustomizer_ == null) { - AdGroupCriterionCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - } - input.ReadMessage(AdGroupCriterionCustomizer); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupCriterionCustomizer_ == null) { - AdGroupCriterionCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - } - input.ReadMessage(AdGroupCriterionCustomizer); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceClient.g.cs deleted file mode 100755 index 633741af2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceClient.g.cs +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupCriterionCustomizerServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// - /// Get a new instance of the default . - /// - /// A new instance of the default . - public static AdGroupCriterionCustomizerServiceSettings GetDefault() => - new AdGroupCriterionCustomizerServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupCriterionCustomizerServiceSettings() - { - } - - private AdGroupCriterionCustomizerServiceSettings(AdGroupCriterionCustomizerServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupCriterionCustomizersSettings = existing.MutateAdGroupCriterionCustomizersSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupCriterionCustomizerServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupCriterionCustomizerServiceClient.MutateAdGroupCriterionCustomizers and - /// AdGroupCriterionCustomizerServiceClient.MutateAdGroupCriterionCustomizersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupCriterionCustomizersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupCriterionCustomizerServiceSettings Clone() => new AdGroupCriterionCustomizerServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class AdGroupCriterionCustomizerServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupCriterionCustomizerServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupCriterionCustomizerServiceClientBuilder() : base(AdGroupCriterionCustomizerServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupCriterionCustomizerServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupCriterionCustomizerServiceClient Build() - { - AdGroupCriterionCustomizerServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupCriterionCustomizerServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupCriterionCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupCriterionCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupCriterionCustomizerServiceClient.ChannelPool; - } - - /// AdGroupCriterionCustomizerService client wrapper, for convenient use. - /// - /// Service to manage ad group criterion customizer - /// - public abstract partial class AdGroupCriterionCustomizerServiceClient - { - /// - /// The default endpoint for the AdGroupCriterionCustomizerService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupCriterionCustomizerService scopes. - /// - /// The default AdGroupCriterionCustomizerService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupCriterionCustomizerService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupCriterionCustomizerServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupCriterionCustomizerServiceClient Create() => - new AdGroupCriterionCustomizerServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupCriterionCustomizerServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupCriterionCustomizerServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupCriterionCustomizerService.AdGroupCriterionCustomizerServiceClient grpcClient = new AdGroupCriterionCustomizerService.AdGroupCriterionCustomizerServiceClient(callInvoker); - return new AdGroupCriterionCustomizerServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupCriterionCustomizerService client - public virtual AdGroupCriterionCustomizerService.AdGroupCriterionCustomizerServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCriterionCustomizersResponse MutateAdGroupCriterionCustomizers(MutateAdGroupCriterionCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionCustomizersAsync(MutateAdGroupCriterionCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionCustomizersAsync(MutateAdGroupCriterionCustomizersRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupCriterionCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose ad group criterion customizers are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual ad group criterion - /// customizers. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCriterionCustomizersResponse MutateAdGroupCriterionCustomizers(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCriterionCustomizers(new MutateAdGroupCriterionCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose ad group criterion customizers are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual ad group criterion - /// customizers. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionCustomizersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCriterionCustomizersAsync(new MutateAdGroupCriterionCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose ad group criterion customizers are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual ad group criterion - /// customizers. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionCustomizersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupCriterionCustomizersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupCriterionCustomizerService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group criterion customizer - /// - public sealed partial class AdGroupCriterionCustomizerServiceClientImpl : AdGroupCriterionCustomizerServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupCriterionCustomizers; - - /// - /// Constructs a client wrapper for the AdGroupCriterionCustomizerService service, with the specified gRPC - /// client and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AdGroupCriterionCustomizerServiceClientImpl(AdGroupCriterionCustomizerService.AdGroupCriterionCustomizerServiceClient grpcClient, AdGroupCriterionCustomizerServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupCriterionCustomizerServiceSettings effectiveSettings = settings ?? AdGroupCriterionCustomizerServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupCriterionCustomizers = clientHelper.BuildApiCall("MutateAdGroupCriterionCustomizers", grpcClient.MutateAdGroupCriterionCustomizersAsync, grpcClient.MutateAdGroupCriterionCustomizers, effectiveSettings.MutateAdGroupCriterionCustomizersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupCriterionCustomizers); - Modify_MutateAdGroupCriterionCustomizersApiCall(ref _callMutateAdGroupCriterionCustomizers); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupCriterionCustomizersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupCriterionCustomizerService.AdGroupCriterionCustomizerServiceClient grpcClient, AdGroupCriterionCustomizerServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupCriterionCustomizerService client - public override AdGroupCriterionCustomizerService.AdGroupCriterionCustomizerServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupCriterionCustomizersRequest(ref MutateAdGroupCriterionCustomizersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupCriterionCustomizersResponse MutateAdGroupCriterionCustomizers(MutateAdGroupCriterionCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCriterionCustomizersRequest(ref request, ref callSettings); - return _callMutateAdGroupCriterionCustomizers.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupCriterionCustomizersAsync(MutateAdGroupCriterionCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCriterionCustomizersRequest(ref request, ref callSettings); - return _callMutateAdGroupCriterionCustomizers.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceGrpc.g.cs deleted file mode 100755 index 0c9422fe0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_criterion_customizer_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group criterion customizer - /// - public static partial class AdGroupCriterionCustomizerService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupCriterionCustomizerService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionCustomizersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionCustomizersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupCriterionCustomizers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupCriterionCustomizers", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionCustomizersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionCustomizersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupCriterionCustomizerService - [grpc::BindServiceMethod(typeof(AdGroupCriterionCustomizerService), "BindService")] - public abstract partial class AdGroupCriterionCustomizerServiceBase - { - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupCriterionCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupCriterionCustomizerService - public partial class AdGroupCriterionCustomizerServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupCriterionCustomizerService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCriterionCustomizerServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupCriterionCustomizerService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCriterionCustomizerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCriterionCustomizerServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCriterionCustomizerServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersResponse MutateAdGroupCriterionCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCriterionCustomizers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersResponse MutateAdGroupCriterionCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupCriterionCustomizers, null, options, request); - } - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCriterionCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCriterionCustomizersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes ad group criterion customizers. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCriterionCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupCriterionCustomizers, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupCriterionCustomizerServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupCriterionCustomizerServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupCriterionCustomizerServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupCriterionCustomizers, serviceImpl.MutateAdGroupCriterionCustomizers).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupCriterionCustomizerServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupCriterionCustomizers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupCriterionCustomizers)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceResourceNames.g.cs deleted file mode 100755 index bedd9a106..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionCustomizerServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupCriterionCustomizerOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupCriterionCustomizerName RemoveAsAdGroupCriterionCustomizerName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupCriterionCustomizerName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupCriterionCustomizerResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::AdGroupCriterionCustomizerName ResourceNameAsAdGroupCriterionCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupCriterionCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionError.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionError.g.cs deleted file mode 100755 index 6b4405dfa..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionError.g.cs +++ /dev/null @@ -1,375 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_group_criterion_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_group_criterion_error.proto - public static partial class AdGroupCriterionErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_group_criterion_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2Ny", - "aXRlcmlvbl9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9ycyLgCQoZQWRHcm91cENyaXRlcmlvbkVycm9yRW51bSLCCQoVQWRH", - "cm91cENyaXRlcmlvbkVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEisKJ0FEX0dST1VQX0NSSVRFUklPTl9MQUJFTF9ET0VTX05PVF9FWElT", - "VBACEisKJ0FEX0dST1VQX0NSSVRFUklPTl9MQUJFTF9BTFJFQURZX0VYSVNU", - "UxADEioKJkNBTk5PVF9BRERfTEFCRUxfVE9fTkVHQVRJVkVfQ1JJVEVSSU9O", - "EAQSFwoTVE9PX01BTllfT1BFUkFUSU9OUxAFEhgKFENBTlRfVVBEQVRFX05F", - "R0FUSVZFEAYSGgoWQ09OQ1JFVEVfVFlQRV9SRVFVSVJFRBAHEiEKHUJJRF9J", - "TkNPTVBBVElCTEVfV0lUSF9BREdST1VQEAgSHQoZQ0FOTk9UX1RBUkdFVF9B", - "TkRfRVhDTFVERRAJEg8KC0lMTEVHQUxfVVJMEAoSGAoUSU5WQUxJRF9LRVlX", - "T1JEX1RFWFQQCxIbChdJTlZBTElEX0RFU1RJTkFUSU9OX1VSTBAMEh8KG01J", - "U1NJTkdfREVTVElOQVRJT05fVVJMX1RBRxANEjEKLUtFWVdPUkRfTEVWRUxf", - "QklEX05PVF9TVVBQT1JURURfRk9SX01BTlVBTENQTRAOEhcKE0lOVkFMSURf", - "VVNFUl9TVEFUVVMQDxIcChhDQU5OT1RfQUREX0NSSVRFUklBX1RZUEUQEBIg", - "ChxDQU5OT1RfRVhDTFVERV9DUklURVJJQV9UWVBFEBESNQoxQ0FNUEFJR05f", - "VFlQRV9OT1RfQ09NUEFUSUJMRV9XSVRIX1BBUlRJQUxfRkFJTFVSRRAbEi0K", - "KU9QRVJBVElPTlNfRk9SX1RPT19NQU5ZX1NIT1BQSU5HX0FER1JPVVBTEBwS", - "NAowQ0FOTk9UX01PRElGWV9VUkxfRklFTERTX1dJVEhfRFVQTElDQVRFX0VM", - "RU1FTlRTEB0SIQodQ0FOTk9UX1NFVF9XSVRIT1VUX0ZJTkFMX1VSTFMQHhI2", - "CjJDQU5OT1RfQ0xFQVJfRklOQUxfVVJMU19JRl9GSU5BTF9NT0JJTEVfVVJM", - "U19FWElTVBAfEjMKL0NBTk5PVF9DTEVBUl9GSU5BTF9VUkxTX0lGX0ZJTkFM", - "X0FQUF9VUkxTX0VYSVNUECASOwo3Q0FOTk9UX0NMRUFSX0ZJTkFMX1VSTFNf", - "SUZfVFJBQ0tJTkdfVVJMX1RFTVBMQVRFX0VYSVNUUxAhEjoKNkNBTk5PVF9D", - "TEVBUl9GSU5BTF9VUkxTX0lGX1VSTF9DVVNUT01fUEFSQU1FVEVSU19FWElT", - "VBAiEjIKLkNBTk5PVF9TRVRfQk9USF9ERVNUSU5BVElPTl9VUkxfQU5EX0ZJ", - "TkFMX1VSTFMQIxI9CjlDQU5OT1RfU0VUX0JPVEhfREVTVElOQVRJT05fVVJM", - "X0FORF9UUkFDS0lOR19VUkxfVEVNUExBVEUQJBIvCitGSU5BTF9VUkxTX05P", - "VF9TVVBQT1JURURfRk9SX0NSSVRFUklPTl9UWVBFECUSNgoyRklOQUxfTU9C", - "SUxFX1VSTFNfTk9UX1NVUFBPUlRFRF9GT1JfQ1JJVEVSSU9OX1RZUEUQJkL6", - "AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCGkFkR3Jv", - "dXBDcml0ZXJpb25FcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vy", - "cm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPK", - "Ah9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorEnum.Types.AdGroupCriterionError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad group criterion errors. - /// - public sealed partial class AdGroupCriterionErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionErrorEnum(AdGroupCriterionErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionErrorEnum Clone() { - return new AdGroupCriterionErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupCriterionErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad group criterion errors. - /// - public enum AdGroupCriterionError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// No link found between the AdGroupCriterion and the label. - /// - [pbr::OriginalName("AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST")] AdGroupCriterionLabelDoesNotExist = 2, - /// - /// The label has already been attached to the AdGroupCriterion. - /// - [pbr::OriginalName("AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS")] AdGroupCriterionLabelAlreadyExists = 3, - /// - /// Negative AdGroupCriterion cannot have labels. - /// - [pbr::OriginalName("CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION")] CannotAddLabelToNegativeCriterion = 4, - /// - /// Too many operations for a single call. - /// - [pbr::OriginalName("TOO_MANY_OPERATIONS")] TooManyOperations = 5, - /// - /// Negative ad group criteria are not updateable. - /// - [pbr::OriginalName("CANT_UPDATE_NEGATIVE")] CantUpdateNegative = 6, - /// - /// Concrete type of criterion (keyword v.s. placement) is required for ADD - /// and SET operations. - /// - [pbr::OriginalName("CONCRETE_TYPE_REQUIRED")] ConcreteTypeRequired = 7, - /// - /// Bid is incompatible with ad group's bidding settings. - /// - [pbr::OriginalName("BID_INCOMPATIBLE_WITH_ADGROUP")] BidIncompatibleWithAdgroup = 8, - /// - /// Cannot target and exclude the same criterion at once. - /// - [pbr::OriginalName("CANNOT_TARGET_AND_EXCLUDE")] CannotTargetAndExclude = 9, - /// - /// The URL of a placement is invalid. - /// - [pbr::OriginalName("ILLEGAL_URL")] IllegalUrl = 10, - /// - /// Keyword text was invalid. - /// - [pbr::OriginalName("INVALID_KEYWORD_TEXT")] InvalidKeywordText = 11, - /// - /// Destination URL was invalid. - /// - [pbr::OriginalName("INVALID_DESTINATION_URL")] InvalidDestinationUrl = 12, - /// - /// The destination url must contain at least one tag (for example, {lpurl}) - /// - [pbr::OriginalName("MISSING_DESTINATION_URL_TAG")] MissingDestinationUrlTag = 13, - /// - /// Keyword-level cpm bid is not supported - /// - [pbr::OriginalName("KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM")] KeywordLevelBidNotSupportedForManualcpm = 14, - /// - /// For example, cannot add a biddable ad group criterion that had been - /// removed. - /// - [pbr::OriginalName("INVALID_USER_STATUS")] InvalidUserStatus = 15, - /// - /// Criteria type cannot be targeted for the ad group. Either the account is - /// restricted to keywords only, the criteria type is incompatible with the - /// campaign's bidding strategy, or the criteria type can only be applied to - /// campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_CRITERIA_TYPE")] CannotAddCriteriaType = 16, - /// - /// Criteria type cannot be excluded for the ad group. Refer to the - /// documentation for a specific criterion to check if it is excludable. - /// - [pbr::OriginalName("CANNOT_EXCLUDE_CRITERIA_TYPE")] CannotExcludeCriteriaType = 17, - /// - /// Partial failure is not supported for shopping campaign mutate operations. - /// - [pbr::OriginalName("CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE")] CampaignTypeNotCompatibleWithPartialFailure = 27, - /// - /// Operations in the mutate request changes too many shopping ad groups. - /// Split requests for multiple shopping ad groups across multiple - /// requests. - /// - [pbr::OriginalName("OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS")] OperationsForTooManyShoppingAdgroups = 28, - /// - /// Not allowed to modify url fields of an ad group criterion if there are - /// duplicate elements for that ad group criterion in the request. - /// - [pbr::OriginalName("CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS")] CannotModifyUrlFieldsWithDuplicateElements = 29, - /// - /// Cannot set url fields without also setting final urls. - /// - [pbr::OriginalName("CANNOT_SET_WITHOUT_FINAL_URLS")] CannotSetWithoutFinalUrls = 30, - /// - /// Cannot clear final urls if final mobile urls exist. - /// - [pbr::OriginalName("CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST")] CannotClearFinalUrlsIfFinalMobileUrlsExist = 31, - /// - /// Cannot clear final urls if final app urls exist. - /// - [pbr::OriginalName("CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST")] CannotClearFinalUrlsIfFinalAppUrlsExist = 32, - /// - /// Cannot clear final urls if tracking url template exists. - /// - [pbr::OriginalName("CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS")] CannotClearFinalUrlsIfTrackingUrlTemplateExists = 33, - /// - /// Cannot clear final urls if url custom parameters exist. - /// - [pbr::OriginalName("CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST")] CannotClearFinalUrlsIfUrlCustomParametersExist = 34, - /// - /// Cannot set both destination url and final urls. - /// - [pbr::OriginalName("CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS")] CannotSetBothDestinationUrlAndFinalUrls = 35, - /// - /// Cannot set both destination url and tracking url template. - /// - [pbr::OriginalName("CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE")] CannotSetBothDestinationUrlAndTrackingUrlTemplate = 36, - /// - /// Final urls are not supported for this criterion type. - /// - [pbr::OriginalName("FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE")] FinalUrlsNotSupportedForCriterionType = 37, - /// - /// Final mobile urls are not supported for this criterion type. - /// - [pbr::OriginalName("FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE")] FinalMobileUrlsNotSupportedForCriterionType = 38, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabel.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabel.g.cs deleted file mode 100755 index 27aba0166..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabel.g.cs +++ /dev/null @@ -1,362 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_criterion_label.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_criterion_label.proto - public static partial class AdGroupCriterionLabelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_criterion_label.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionLabelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2NyaXRlcmlvbl9sYWJlbC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnJlc291cmNlcxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90", - "bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKmAwoVQWRHcm91cENyaXRl", - "cmlvbkxhYmVsEk0KDXJlc291cmNlX25hbWUYASABKAlCNuBBBfpBMAouZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBDcml0ZXJpb25MYWJlbBJS", - "ChJhZF9ncm91cF9jcml0ZXJpb24YBCABKAlCMeBBBfpBKwopZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0FkR3JvdXBDcml0ZXJpb25IAIgBARI6CgVsYWJl", - "bBgFIAEoCUIm4EEF+kEgCh5nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vTGFi", - "ZWxIAYgBATqMAepBiAEKLmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdy", - "b3VwQ3JpdGVyaW9uTGFiZWwSVmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fk", - "R3JvdXBDcml0ZXJpb25MYWJlbHMve2FkX2dyb3VwX2lkfX57Y3JpdGVyaW9u", - "X2lkfX57bGFiZWxfaWR9QhUKE19hZF9ncm91cF9jcml0ZXJpb25CCAoGX2xh", - "YmVsQowCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "c0IaQWRHcm91cENyaXRlcmlvbkxhYmVsUHJvdG9QAVpLZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVB", - "ZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxS", - "ZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291", - "cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel), global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel.Parser, new[]{ "ResourceName", "AdGroupCriterion", "Label" }, new[]{ "AdGroupCriterion", "Label" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A relationship between an ad group criterion and a label. - /// - public sealed partial class AdGroupCriterionLabel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionLabel()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionLabel() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionLabel(AdGroupCriterionLabel other) : this() { - resourceName_ = other.resourceName_; - adGroupCriterion_ = other.adGroupCriterion_; - label_ = other.label_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionLabel Clone() { - return new AdGroupCriterionLabel(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group criterion label. - /// Ad group criterion label resource names have the form: - /// `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_criterion" field. - public const int AdGroupCriterionFieldNumber = 4; - private string adGroupCriterion_; - /// - /// Immutable. The ad group criterion to which the label is attached. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupCriterion { - get { return adGroupCriterion_ ?? ""; } - set { - adGroupCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupCriterion { - get { return adGroupCriterion_ != null; } - } - /// Clears the value of the "ad_group_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupCriterion() { - adGroupCriterion_ = null; - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 5; - private string label_; - /// - /// Immutable. The label assigned to the ad group criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Label { - get { return label_ ?? ""; } - set { - label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "label" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLabel { - get { return label_ != null; } - } - /// Clears the value of the "label" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLabel() { - label_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionLabel); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionLabel other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroupCriterion != other.AdGroupCriterion) return false; - if (Label != other.Label) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroupCriterion) hash ^= AdGroupCriterion.GetHashCode(); - if (HasLabel) hash ^= Label.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(34); - output.WriteString(AdGroupCriterion); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(34); - output.WriteString(AdGroupCriterion); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroupCriterion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupCriterion); - } - if (HasLabel) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionLabel other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroupCriterion) { - AdGroupCriterion = other.AdGroupCriterion; - } - if (other.HasLabel) { - Label = other.Label; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - AdGroupCriterion = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - AdGroupCriterion = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelResourceNames.g.cs deleted file mode 100755 index 058892010..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelResourceNames.g.cs +++ /dev/null @@ -1,340 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupCriterionLabel resource. - public sealed partial class AdGroupCriterionLabelName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}. - /// - CustomerAdGroupCriterionLabel = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterionLabel = new gax::PathTemplate("customers/{customer_id}/adGroupCriterionLabels/{ad_group_id_criterion_id_label_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupCriterionLabelName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupCriterionLabelName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static AdGroupCriterionLabelName FromCustomerAdGroupCriterionLabel(string customerId, string adGroupId, string criterionId, string labelId) => - new AdGroupCriterionLabelName(ResourceNameType.CustomerAdGroupCriterionLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId, string labelId) => - FormatCustomerAdGroupCriterionLabel(customerId, adGroupId, criterionId, labelId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}. - /// - public static string FormatCustomerAdGroupCriterionLabel(string customerId, string adGroupId, string criterionId, string labelId) => - s_customerAdGroupCriterionLabel.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupCriterionLabelName Parse(string adGroupCriterionLabelName) => - Parse(adGroupCriterionLabelName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupCriterionLabelName Parse(string adGroupCriterionLabelName, bool allowUnparsed) => - TryParse(adGroupCriterionLabelName, allowUnparsed, out AdGroupCriterionLabelName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionLabelName, out AdGroupCriterionLabelName result) => - TryParse(adGroupCriterionLabelName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionLabelName, bool allowUnparsed, out AdGroupCriterionLabelName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupCriterionLabelName, nameof(adGroupCriterionLabelName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterionLabel.TryParseName(adGroupCriterionLabelName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterionLabel(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupCriterionLabelName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupCriterionLabelName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null, string labelId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - LabelId = labelId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - public AdGroupCriterionLabelName(string customerId, string adGroupId, string criterionId, string labelId) : this(ResourceNameType.CustomerAdGroupCriterionLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Label ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string LabelId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterionLabel: return s_customerAdGroupCriterionLabel.Expand(CustomerId, $"{AdGroupId}~{CriterionId}~{LabelId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupCriterionLabelName); - - /// - public bool Equals(AdGroupCriterionLabelName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupCriterionLabelName a, AdGroupCriterionLabelName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupCriterionLabelName a, AdGroupCriterionLabelName b) => !(a == b); - } - - public partial class AdGroupCriterionLabel - { - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupCriterionLabelName ResourceNameAsAdGroupCriterionLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupCriterionLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupCriterionName AdGroupCriterionAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(AdGroupCriterion) ? null : AdGroupCriterionName.Parse(AdGroupCriterion, allowUnparsed: true); - set => AdGroupCriterion = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal LabelName LabelAsLabelName - { - get => string.IsNullOrEmpty(Label) ? null : LabelName.Parse(Label, allowUnparsed: true); - set => Label = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelService.g.cs deleted file mode 100755 index 2a597e06d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelService.g.cs +++ /dev/null @@ -1,1107 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_criterion_label_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_criterion_label_service.proto - public static partial class AdGroupCriterionLabelServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_criterion_label_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionLabelServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "Y3JpdGVyaW9uX2xhYmVsX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcxpBZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9hZF9ncm91cF9jcml0ZXJpb25fbGFiZWwucHJvdG8aHGdv", - "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50", - "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90", - "byLLAQojTXV0YXRlQWRHcm91cENyaXRlcmlvbkxhYmVsc1JlcXVlc3QSGAoL", - "Y3VzdG9tZXJfaWQYASABKAlCA+BBAhJaCgpvcGVyYXRpb25zGAIgAygLMkEu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkR3JvdXBDcml0", - "ZXJpb25MYWJlbE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgD", - "IAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIIsEBCh5BZEdyb3VwQ3JpdGVy", - "aW9uTGFiZWxPcGVyYXRpb24SSwoGY3JlYXRlGAEgASgLMjkuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwQ3JpdGVyaW9uTGFi", - "ZWxIABJFCgZyZW1vdmUYAiABKAlCM/pBMAouZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0FkR3JvdXBDcml0ZXJpb25MYWJlbEgAQgsKCW9wZXJhdGlvbiKw", - "AQokTXV0YXRlQWRHcm91cENyaXRlcmlvbkxhYmVsc1Jlc3BvbnNlEjEKFXBh", - "cnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVz", - "ElUKB3Jlc3VsdHMYAiADKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuTXV0YXRlQWRHcm91cENyaXRlcmlvbkxhYmVsUmVzdWx0Im8K", - "IU11dGF0ZUFkR3JvdXBDcml0ZXJpb25MYWJlbFJlc3VsdBJKCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQjP6QTAKLmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9B", - "ZEdyb3VwQ3JpdGVyaW9uTGFiZWwy+QIKHEFkR3JvdXBDcml0ZXJpb25MYWJl", - "bFNlcnZpY2USkQIKHE11dGF0ZUFkR3JvdXBDcml0ZXJpb25MYWJlbHMSRi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRHcm91", - "cENyaXRlcmlvbkxhYmVsc1JlcXVlc3QaRy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQWRHcm91cENyaXRlcmlvbkxhYmVsc1Jl", - "c3BvbnNlImCC0+STAkEiPC92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0q", - "fS9hZEdyb3VwQ3JpdGVyaW9uTGFiZWxzOm11dGF0ZToBKtpBFmN1c3RvbWVy", - "X2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJB", - "J2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KNAgol", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IhQWRHcm91", - "cENyaXRlcmlvbkxhYmVsU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2Vy", - "dmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2Vydmlj", - "ZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabelReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AdGroupCriterionLabelService.MutateAdGroupCriterionLabels][google.ads.googleads.v12.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels]. - /// - public sealed partial class MutateAdGroupCriterionLabelsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriterionLabelsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelsRequest(MutateAdGroupCriterionLabelsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelsRequest Clone() { - return new MutateAdGroupCriterionLabelsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose ad group criterion labels are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on ad group criterion labels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriterionLabelsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriterionLabelsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriterionLabelsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an ad group criterion label. - /// - public sealed partial class AdGroupCriterionLabelOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionLabelOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionLabelOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionLabelOperation(AdGroupCriterionLabelOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionLabelOperation Clone() { - return new AdGroupCriterionLabelOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group - /// label. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the ad group criterion label - /// being removed, in this format: - /// - /// `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionLabelOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionLabelOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionLabelOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group criterion labels mutate. - /// - public sealed partial class MutateAdGroupCriterionLabelsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriterionLabelsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelsResponse(MutateAdGroupCriterionLabelsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelsResponse Clone() { - return new MutateAdGroupCriterionLabelsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriterionLabelsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriterionLabelsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriterionLabelsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for an ad group criterion label mutate. - /// - public sealed partial class MutateAdGroupCriterionLabelResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriterionLabelResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelResult(MutateAdGroupCriterionLabelResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionLabelResult Clone() { - return new MutateAdGroupCriterionLabelResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriterionLabelResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriterionLabelResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriterionLabelResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceClient.g.cs deleted file mode 100755 index f657815c7..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceClient.g.cs +++ /dev/null @@ -1,454 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupCriterionLabelServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupCriterionLabelServiceSettings GetDefault() => new AdGroupCriterionLabelServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupCriterionLabelServiceSettings() - { - } - - private AdGroupCriterionLabelServiceSettings(AdGroupCriterionLabelServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupCriterionLabelsSettings = existing.MutateAdGroupCriterionLabelsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupCriterionLabelServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupCriterionLabelServiceClient.MutateAdGroupCriterionLabels and - /// AdGroupCriterionLabelServiceClient.MutateAdGroupCriterionLabelsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupCriterionLabelsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupCriterionLabelServiceSettings Clone() => new AdGroupCriterionLabelServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class AdGroupCriterionLabelServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupCriterionLabelServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupCriterionLabelServiceClientBuilder() : base(AdGroupCriterionLabelServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupCriterionLabelServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupCriterionLabelServiceClient Build() - { - AdGroupCriterionLabelServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupCriterionLabelServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupCriterionLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupCriterionLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupCriterionLabelServiceClient.ChannelPool; - } - - /// AdGroupCriterionLabelService client wrapper, for convenient use. - /// - /// Service to manage labels on ad group criteria. - /// - public abstract partial class AdGroupCriterionLabelServiceClient - { - /// - /// The default endpoint for the AdGroupCriterionLabelService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupCriterionLabelService scopes. - /// - /// The default AdGroupCriterionLabelService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupCriterionLabelService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupCriterionLabelServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupCriterionLabelServiceClient Create() => new AdGroupCriterionLabelServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupCriterionLabelServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupCriterionLabelServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupCriterionLabelService.AdGroupCriterionLabelServiceClient grpcClient = new AdGroupCriterionLabelService.AdGroupCriterionLabelServiceClient(callInvoker); - return new AdGroupCriterionLabelServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupCriterionLabelService client - public virtual AdGroupCriterionLabelService.AdGroupCriterionLabelServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCriterionLabelsResponse MutateAdGroupCriterionLabels(MutateAdGroupCriterionLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionLabelsAsync(MutateAdGroupCriterionLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionLabelsAsync(MutateAdGroupCriterionLabelsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupCriterionLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group criterion labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group criterion labels. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCriterionLabelsResponse MutateAdGroupCriterionLabels(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCriterionLabels(new MutateAdGroupCriterionLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group criterion labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group criterion labels. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionLabelsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCriterionLabelsAsync(new MutateAdGroupCriterionLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group criterion labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group criterion labels. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriterionLabelsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupCriterionLabelsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupCriterionLabelService client wrapper implementation, for convenient use. - /// - /// Service to manage labels on ad group criteria. - /// - public sealed partial class AdGroupCriterionLabelServiceClientImpl : AdGroupCriterionLabelServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupCriterionLabels; - - /// - /// Constructs a client wrapper for the AdGroupCriterionLabelService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AdGroupCriterionLabelServiceClientImpl(AdGroupCriterionLabelService.AdGroupCriterionLabelServiceClient grpcClient, AdGroupCriterionLabelServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupCriterionLabelServiceSettings effectiveSettings = settings ?? AdGroupCriterionLabelServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupCriterionLabels = clientHelper.BuildApiCall("MutateAdGroupCriterionLabels", grpcClient.MutateAdGroupCriterionLabelsAsync, grpcClient.MutateAdGroupCriterionLabels, effectiveSettings.MutateAdGroupCriterionLabelsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupCriterionLabels); - Modify_MutateAdGroupCriterionLabelsApiCall(ref _callMutateAdGroupCriterionLabels); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupCriterionLabelsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupCriterionLabelService.AdGroupCriterionLabelServiceClient grpcClient, AdGroupCriterionLabelServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupCriterionLabelService client - public override AdGroupCriterionLabelService.AdGroupCriterionLabelServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupCriterionLabelsRequest(ref MutateAdGroupCriterionLabelsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupCriterionLabelsResponse MutateAdGroupCriterionLabels(MutateAdGroupCriterionLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCriterionLabelsRequest(ref request, ref callSettings); - return _callMutateAdGroupCriterionLabels.Sync(request, callSettings); - } - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupCriterionLabelsAsync(MutateAdGroupCriterionLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCriterionLabelsRequest(ref request, ref callSettings); - return _callMutateAdGroupCriterionLabels.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceGrpc.g.cs deleted file mode 100755 index aac2ae351..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceGrpc.g.cs +++ /dev/null @@ -1,262 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_criterion_label_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage labels on ad group criteria. - /// - public static partial class AdGroupCriterionLabelService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupCriterionLabelService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionLabelsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionLabelsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupCriterionLabels = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupCriterionLabels", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionLabelsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriterionLabelsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupCriterionLabelService - [grpc::BindServiceMethod(typeof(AdGroupCriterionLabelService), "BindService")] - public abstract partial class AdGroupCriterionLabelServiceBase - { - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupCriterionLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupCriterionLabelService - public partial class AdGroupCriterionLabelServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupCriterionLabelService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCriterionLabelServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupCriterionLabelService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCriterionLabelServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCriterionLabelServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCriterionLabelServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsResponse MutateAdGroupCriterionLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCriterionLabels(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsResponse MutateAdGroupCriterionLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupCriterionLabels, null, options, request); - } - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCriterionLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCriterionLabelsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes ad group criterion labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCriterionLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupCriterionLabels, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupCriterionLabelServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupCriterionLabelServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupCriterionLabelServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupCriterionLabels, serviceImpl.MutateAdGroupCriterionLabels).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupCriterionLabelServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupCriterionLabels, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupCriterionLabels)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceResourceNames.g.cs deleted file mode 100755 index c7b82b0e1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionLabelServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupCriterionLabelOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupCriterionLabelName RemoveAsAdGroupCriterionLabelName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupCriterionLabelName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupCriterionLabelResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupCriterionLabelName ResourceNameAsAdGroupCriterionLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupCriterionLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionResourceNames.g.cs deleted file mode 100755 index 6812f541d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionResourceNames.g.cs +++ /dev/null @@ -1,316 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupCriterion resource. - public sealed partial class AdGroupCriterionName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id} - /// . - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/adGroupCriteria/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupCriterionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupCriterionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupCriterionName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new AdGroupCriterionName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupCriterionName Parse(string adGroupCriterionName) => Parse(adGroupCriterionName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupCriterionName Parse(string adGroupCriterionName, bool allowUnparsed) => - TryParse(adGroupCriterionName, allowUnparsed, out AdGroupCriterionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionName, out AdGroupCriterionName result) => - TryParse(adGroupCriterionName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionName, bool allowUnparsed, out AdGroupCriterionName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupCriterionName, nameof(adGroupCriterionName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(adGroupCriterionName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupCriterionName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupCriterionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public AdGroupCriterionName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupCriterionName); - - /// - public bool Equals(AdGroupCriterionName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupCriterionName a, AdGroupCriterionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupCriterionName a, AdGroupCriterionName b) => !(a == b); - } - - public partial class AdGroupCriterion - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupCriterionName ResourceNameAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupCriterionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList LabelsAsAdGroupCriterionLabelNames - { - get => new gax::ResourceNameList(Labels, s => string.IsNullOrEmpty(s) ? null : AdGroupCriterionLabelName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionService.g.cs deleted file mode 100755 index c8a162c92..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionService.g.cs +++ /dev/null @@ -1,1349 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_criterion_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_criterion_service.proto - public static partial class AdGroupCriterionServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_criterion_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "Y3JpdGVyaW9uX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcxosZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1v", - "bi9wb2xpY3kucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aO2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvYWRfZ3JvdXBfY3JpdGVyaW9uLnByb3Rv", - "Ghxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2Ns", - "aWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", - "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2Zp", - "ZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIqsCChxN", - "dXRhdGVBZEdyb3VwQ3JpdGVyaWFSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEg", - "ASgJQgPgQQISVQoKb3BlcmF0aW9ucxgCIAMoCzI8Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5BZEdyb3VwQ3JpdGVyaW9uT3BlcmF0aW9u", - "QgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29u", - "bHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5", - "cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUihgMKGUFkR3JvdXBDcml0ZXJp", - "b25PcGVyYXRpb24SLwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJv", - "dG9idWYuRmllbGRNYXNrElkKHGV4ZW1wdF9wb2xpY3lfdmlvbGF0aW9uX2tl", - "eXMYBSADKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlBv", - "bGljeVZpb2xhdGlvbktleRJGCgZjcmVhdGUYASABKAsyNC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBDcml0ZXJpb25IABJG", - "CgZ1cGRhdGUYAiABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkFkR3JvdXBDcml0ZXJpb25IABJACgZyZW1vdmUYAyABKAlCLvpB", - "KwopZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBDcml0ZXJpb25I", - "AEILCglvcGVyYXRpb24ipAEKHU11dGF0ZUFkR3JvdXBDcml0ZXJpYVJlc3Bv", - "bnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzISLmdvb2dsZS5y", - "cGMuU3RhdHVzElAKB3Jlc3VsdHMYAiADKAsyPy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRHcm91cENyaXRlcmlvblJlc3Vs", - "dCK3AQocTXV0YXRlQWRHcm91cENyaXRlcmlvblJlc3VsdBJFCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9B", - "ZEdyb3VwQ3JpdGVyaW9uElAKEmFkX2dyb3VwX2NyaXRlcmlvbhgCIAEoCzI0", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cENy", - "aXRlcmlvbjLYAgoXQWRHcm91cENyaXRlcmlvblNlcnZpY2US9QEKFU11dGF0", - "ZUFkR3JvdXBDcml0ZXJpYRI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQ3JpdGVyaWFSZXF1ZXN0GkAuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBDcml0", - "ZXJpYVJlc3BvbnNlIlmC0+STAjoiNS92MTIvY3VzdG9tZXJzL3tjdXN0b21l", - "cl9pZD0qfS9hZEdyb3VwQ3JpdGVyaWE6bXV0YXRlOgEq2kEWY3VzdG9tZXJf", - "aWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEn", - "aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQogCCiVj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQhxBZEdyb3Vw", - "Q3JpdGVyaW9uU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7", - "c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2Vy", - "dmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation.Parser, new[]{ "UpdateMask", "ExemptPolicyViolationKeys", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult.Parser, new[]{ "ResourceName", "AdGroupCriterion" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupCriterionService.MutateAdGroupCriteria][google.ads.googleads.v12.services.AdGroupCriterionService.MutateAdGroupCriteria]. - /// - public sealed partial class MutateAdGroupCriteriaRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriteriaRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriteriaRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriteriaRequest(MutateAdGroupCriteriaRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriteriaRequest Clone() { - return new MutateAdGroupCriteriaRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose criteria are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual criteria. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriteriaRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriteriaRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriteriaRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove, update) on an ad group criterion. - /// - public sealed partial class AdGroupCriterionOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionOperation(AdGroupCriterionOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - exemptPolicyViolationKeys_ = other.exemptPolicyViolationKeys_.Clone(); - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionOperation Clone() { - return new AdGroupCriterionOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "exempt_policy_violation_keys" field. - public const int ExemptPolicyViolationKeysFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_exemptPolicyViolationKeys_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.PolicyViolationKey.Parser); - private readonly pbc::RepeatedField exemptPolicyViolationKeys_ = new pbc::RepeatedField(); - /// - /// The list of policy violation keys that should not cause a - /// PolicyViolationError to be reported. Not all policy violations are - /// exemptable, refer to the is_exemptible field in the returned - /// PolicyViolationError. - /// - /// Resources violating these polices will be saved, but will not be eligible - /// to serve. They may begin serving at a later time due to a change in - /// policies, re-review of the resource, or a change in advertiser - /// certificates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExemptPolicyViolationKeys { - get { return exemptPolicyViolationKeys_; } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The criterion is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed criterion is expected, - /// in this format: - /// - /// `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if(!exemptPolicyViolationKeys_.Equals(other.exemptPolicyViolationKeys_)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - hash ^= exemptPolicyViolationKeys_.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - exemptPolicyViolationKeys_.WriteTo(output, _repeated_exemptPolicyViolationKeys_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - exemptPolicyViolationKeys_.WriteTo(ref output, _repeated_exemptPolicyViolationKeys_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - size += exemptPolicyViolationKeys_.CalculateSize(_repeated_exemptPolicyViolationKeys_codec); - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - exemptPolicyViolationKeys_.Add(other.exemptPolicyViolationKeys_); - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 42: { - exemptPolicyViolationKeys_.AddEntriesFrom(input, _repeated_exemptPolicyViolationKeys_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 42: { - exemptPolicyViolationKeys_.AddEntriesFrom(ref input, _repeated_exemptPolicyViolationKeys_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group criterion mutate. - /// - public sealed partial class MutateAdGroupCriteriaResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriteriaResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriteriaResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriteriaResponse(MutateAdGroupCriteriaResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriteriaResponse Clone() { - return new MutateAdGroupCriteriaResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriteriaResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriteriaResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriteriaResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the criterion mutate. - /// - public sealed partial class MutateAdGroupCriterionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCriterionResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionResult(MutateAdGroupCriterionResult other) : this() { - resourceName_ = other.resourceName_; - adGroupCriterion_ = other.adGroupCriterion_ != null ? other.adGroupCriterion_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCriterionResult Clone() { - return new MutateAdGroupCriterionResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_criterion" field. - public const int AdGroupCriterionFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion adGroupCriterion_; - /// - /// The mutated ad group criterion with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion AdGroupCriterion { - get { return adGroupCriterion_; } - set { - adGroupCriterion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCriterionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCriterionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupCriterion, other.AdGroupCriterion)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupCriterion_ != null) hash ^= AdGroupCriterion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupCriterion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupCriterion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupCriterion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCriterionResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupCriterion_ != null) { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - AdGroupCriterion.MergeFrom(other.AdGroupCriterion); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - input.ReadMessage(AdGroupCriterion); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - input.ReadMessage(AdGroupCriterion); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceClient.g.cs deleted file mode 100755 index d9a2ad49b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceClient.g.cs +++ /dev/null @@ -1,646 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupCriterionServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupCriterionServiceSettings GetDefault() => new AdGroupCriterionServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupCriterionServiceSettings() - { - } - - private AdGroupCriterionServiceSettings(AdGroupCriterionServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupCriteriaSettings = existing.MutateAdGroupCriteriaSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupCriterionServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupCriterionServiceClient.MutateAdGroupCriteria and - /// AdGroupCriterionServiceClient.MutateAdGroupCriteriaAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupCriteriaSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupCriterionServiceSettings Clone() => new AdGroupCriterionServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupCriterionServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupCriterionServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupCriterionServiceClientBuilder() : base(AdGroupCriterionServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupCriterionServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupCriterionServiceClient Build() - { - AdGroupCriterionServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupCriterionServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupCriterionServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupCriterionServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupCriterionServiceClient.ChannelPool; - } - - /// AdGroupCriterionService client wrapper, for convenient use. - /// - /// Service to manage ad group criteria. - /// - public abstract partial class AdGroupCriterionServiceClient - { - /// - /// The default endpoint for the AdGroupCriterionService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupCriterionService scopes. - /// - /// The default AdGroupCriterionService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupCriterionService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupCriterionServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupCriterionServiceClient Create() => new AdGroupCriterionServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupCriterionServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupCriterionServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupCriterionService.AdGroupCriterionServiceClient grpcClient = new AdGroupCriterionService.AdGroupCriterionServiceClient(callInvoker); - return new AdGroupCriterionServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupCriterionService client - public virtual AdGroupCriterionService.AdGroupCriterionServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCriteriaResponse MutateAdGroupCriteria(MutateAdGroupCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriteriaAsync(MutateAdGroupCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriteriaAsync(MutateAdGroupCriteriaRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupCriteriaAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCriteriaResponse MutateAdGroupCriteria(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCriteria(new MutateAdGroupCriteriaRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriteriaAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCriteriaAsync(new MutateAdGroupCriteriaRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCriteriaAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupCriteriaAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupCriterionService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group criteria. - /// - public sealed partial class AdGroupCriterionServiceClientImpl : AdGroupCriterionServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupCriteria; - - /// - /// Constructs a client wrapper for the AdGroupCriterionService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AdGroupCriterionServiceClientImpl(AdGroupCriterionService.AdGroupCriterionServiceClient grpcClient, AdGroupCriterionServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupCriterionServiceSettings effectiveSettings = settings ?? AdGroupCriterionServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupCriteria = clientHelper.BuildApiCall("MutateAdGroupCriteria", grpcClient.MutateAdGroupCriteriaAsync, grpcClient.MutateAdGroupCriteria, effectiveSettings.MutateAdGroupCriteriaSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupCriteria); - Modify_MutateAdGroupCriteriaApiCall(ref _callMutateAdGroupCriteria); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupCriteriaApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupCriterionService.AdGroupCriterionServiceClient grpcClient, AdGroupCriterionServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupCriterionService client - public override AdGroupCriterionService.AdGroupCriterionServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupCriteriaRequest(ref MutateAdGroupCriteriaRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupCriteriaResponse MutateAdGroupCriteria(MutateAdGroupCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCriteriaRequest(ref request, ref callSettings); - return _callMutateAdGroupCriteria.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupCriteriaAsync(MutateAdGroupCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCriteriaRequest(ref request, ref callSettings); - return _callMutateAdGroupCriteria.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceGrpc.g.cs deleted file mode 100755 index 5a9f933e9..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceGrpc.g.cs +++ /dev/null @@ -1,382 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_criterion_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group criteria. - /// - public static partial class AdGroupCriterionService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupCriterionService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriteriaRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriteriaResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupCriteria = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupCriteria", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriteriaRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCriteriaResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupCriterionService - [grpc::BindServiceMethod(typeof(AdGroupCriterionService), "BindService")] - public abstract partial class AdGroupCriterionServiceBase - { - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupCriterionService - public partial class AdGroupCriterionServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupCriterionService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCriterionServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupCriterionService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCriterionServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCriterionServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCriterionServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaResponse MutateAdGroupCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCriteria(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaResponse MutateAdGroupCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupCriteria, null, options, request); - } - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCriteriaAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCriteriaAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupCriterionError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCriteriaAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriteriaRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupCriteria, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupCriterionServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupCriterionServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupCriterionServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupCriteria, serviceImpl.MutateAdGroupCriteria).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupCriterionServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupCriteria, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupCriteria)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceResourceNames.g.cs deleted file mode 100755 index b985abee4..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupCriterionOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupCriterionName RemoveAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupCriterionName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupCriterionResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupCriterionName ResourceNameAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupCriterionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionSimulation.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionSimulation.g.cs deleted file mode 100755 index 970351e70..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionSimulation.g.cs +++ /dev/null @@ -1,714 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_criterion_simulation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_criterion_simulation.proto - public static partial class AdGroupCriterionSimulationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_criterion_simulation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionSimulationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2NyaXRlcmlvbl9zaW11bGF0aW9uLnByb3RvEiJnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzGjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "Y29tbW9uL3NpbXVsYXRpb24ucHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcy9zaW11bGF0aW9uX21vZGlmaWNhdGlvbl9tZXRob2QucHJv", - "dG8aNGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9zaW11bGF0aW9u", - "X3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8inAcKGkFkR3JvdXBDcml0ZXJp", - "b25TaW11bGF0aW9uElIKDXJlc291cmNlX25hbWUYASABKAlCO+BBA/pBNQoz", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBDcml0ZXJpb25TaW11", - "bGF0aW9uEh0KC2FkX2dyb3VwX2lkGAkgASgDQgPgQQNIAYgBARIeCgxjcml0", - "ZXJpb25faWQYCiABKANCA+BBA0gCiAEBElQKBHR5cGUYBCABKA4yQS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuU2ltdWxhdGlvblR5cGVFbnVt", - "LlNpbXVsYXRpb25UeXBlQgPgQQMSfwoTbW9kaWZpY2F0aW9uX21ldGhvZBgF", - "IAEoDjJdLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TaW11bGF0", - "aW9uTW9kaWZpY2F0aW9uTWV0aG9kRW51bS5TaW11bGF0aW9uTW9kaWZpY2F0", - "aW9uTWV0aG9kQgPgQQMSHAoKc3RhcnRfZGF0ZRgLIAEoCUID4EEDSAOIAQES", - "GgoIZW5kX2RhdGUYDCABKAlCA+BBA0gEiAEBEl0KEmNwY19iaWRfcG9pbnRf", - "bGlzdBgIIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "Q3BjQmlkU2ltdWxhdGlvblBvaW50TGlzdEID4EEDSAASbAoacGVyY2VudF9j", - "cGNfYmlkX3BvaW50X2xpc3QYDSABKAsyQS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLlBlcmNlbnRDcGNCaWRTaW11bGF0aW9uUG9pbnRMaXN0", - "QgPgQQNIADrBAepBvQEKM2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdy", - "b3VwQ3JpdGVyaW9uU2ltdWxhdGlvbhKFAWN1c3RvbWVycy97Y3VzdG9tZXJf", - "aWR9L2FkR3JvdXBDcml0ZXJpb25TaW11bGF0aW9ucy97YWRfZ3JvdXBfaWR9", - "fntjcml0ZXJpb25faWR9fnt0eXBlfX57bW9kaWZpY2F0aW9uX21ldGhvZH1+", - "e3N0YXJ0X2RhdGV9fntlbmRfZGF0ZX1CDAoKcG9pbnRfbGlzdEIOCgxfYWRf", - "Z3JvdXBfaWRCDwoNX2NyaXRlcmlvbl9pZEINCgtfc3RhcnRfZGF0ZUILCglf", - "ZW5kX2RhdGVCkQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzQh9BZEdyb3VwQ3JpdGVyaW9uU2ltdWxhdGlvblByb3RvUAFaS2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.SimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulation), global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulation.Parser, new[]{ "ResourceName", "AdGroupId", "CriterionId", "Type", "ModificationMethod", "StartDate", "EndDate", "CpcBidPointList", "PercentCpcBidPointList" }, new[]{ "PointList", "AdGroupId", "CriterionId", "StartDate", "EndDate" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group criterion simulation. Supported combinations of advertising - /// channel type, criterion type, simulation type, and simulation modification - /// method are detailed below respectively. Hotel AdGroupCriterion simulation - /// operations starting in V5. - /// - /// 1. DISPLAY - KEYWORD - CPC_BID - UNIFORM - /// 2. SEARCH - KEYWORD - CPC_BID - UNIFORM - /// 3. SHOPPING - LISTING_GROUP - CPC_BID - UNIFORM - /// 4. HOTEL - LISTING_GROUP - CPC_BID - UNIFORM - /// 5. HOTEL - LISTING_GROUP - PERCENT_CPC_BID - UNIFORM - /// - public sealed partial class AdGroupCriterionSimulation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionSimulation()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionSimulation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionSimulation(AdGroupCriterionSimulation other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - adGroupId_ = other.adGroupId_; - criterionId_ = other.criterionId_; - type_ = other.type_; - modificationMethod_ = other.modificationMethod_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - switch (other.PointListCase) { - case PointListOneofCase.CpcBidPointList: - CpcBidPointList = other.CpcBidPointList.Clone(); - break; - case PointListOneofCase.PercentCpcBidPointList: - PercentCpcBidPointList = other.PercentCpcBidPointList.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionSimulation Clone() { - return new AdGroupCriterionSimulation(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the ad group criterion simulation. - /// Ad group criterion simulation resource names have the form: - /// - /// `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_id" field. - public const int AdGroupIdFieldNumber = 9; - private long adGroupId_; - /// - /// Output only. AdGroup ID of the simulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AdGroupId { - get { if ((_hasBits0 & 1) != 0) { return adGroupId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - adGroupId_ = value; - } - } - /// Gets whether the "ad_group_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "ad_group_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupId() { - _hasBits0 &= ~1; - } - - /// Field number for the "criterion_id" field. - public const int CriterionIdFieldNumber = 10; - private long criterionId_; - /// - /// Output only. Criterion ID of the simulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CriterionId { - get { if ((_hasBits0 & 2) != 0) { return criterionId_; } else { return 0L; } } - set { - _hasBits0 |= 2; - criterionId_ = value; - } - } - /// Gets whether the "criterion_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCriterionId { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "criterion_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterionId() { - _hasBits0 &= ~2; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType type_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified; - /// - /// Output only. The field that the simulation modifies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "modification_method" field. - public const int ModificationMethodFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod modificationMethod_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified; - /// - /// Output only. How the simulation modifies the field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod ModificationMethod { - get { return modificationMethod_; } - set { - modificationMethod_ = value; - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 11; - private string startDate_; - /// - /// Output only. First day on which the simulation is based, in YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_ ?? ""; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDate { - get { return startDate_ != null; } - } - /// Clears the value of the "start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDate() { - startDate_ = null; - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 12; - private string endDate_; - /// - /// Output only. Last day on which the simulation is based, in YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_ ?? ""; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDate { - get { return endDate_ != null; } - } - /// Clears the value of the "end_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDate() { - endDate_ = null; - } - - /// Field number for the "cpc_bid_point_list" field. - public const int CpcBidPointListFieldNumber = 8; - /// - /// Output only. Simulation points if the simulation type is CPC_BID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList CpcBidPointList { - get { return pointListCase_ == PointListOneofCase.CpcBidPointList ? (global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.CpcBidPointList; - } - } - - /// Field number for the "percent_cpc_bid_point_list" field. - public const int PercentCpcBidPointListFieldNumber = 13; - /// - /// Output only. Simulation points if the simulation type is PERCENT_CPC_BID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PercentCpcBidSimulationPointList PercentCpcBidPointList { - get { return pointListCase_ == PointListOneofCase.PercentCpcBidPointList ? (global::Google.Ads.GoogleAds.V12.Common.PercentCpcBidSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.PercentCpcBidPointList; - } - } - - private object pointList_; - /// Enum of possible cases for the "point_list" oneof. - public enum PointListOneofCase { - None = 0, - CpcBidPointList = 8, - PercentCpcBidPointList = 13, - } - private PointListOneofCase pointListCase_ = PointListOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PointListOneofCase PointListCase { - get { return pointListCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPointList() { - pointListCase_ = PointListOneofCase.None; - pointList_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionSimulation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionSimulation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroupId != other.AdGroupId) return false; - if (CriterionId != other.CriterionId) return false; - if (Type != other.Type) return false; - if (ModificationMethod != other.ModificationMethod) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if (!object.Equals(CpcBidPointList, other.CpcBidPointList)) return false; - if (!object.Equals(PercentCpcBidPointList, other.PercentCpcBidPointList)) return false; - if (PointListCase != other.PointListCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroupId) hash ^= AdGroupId.GetHashCode(); - if (HasCriterionId) hash ^= CriterionId.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) hash ^= Type.GetHashCode(); - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) hash ^= ModificationMethod.GetHashCode(); - if (HasStartDate) hash ^= StartDate.GetHashCode(); - if (HasEndDate) hash ^= EndDate.GetHashCode(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) hash ^= CpcBidPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) hash ^= PercentCpcBidPointList.GetHashCode(); - hash ^= (int) pointListCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ModificationMethod); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - output.WriteRawTag(66); - output.WriteMessage(CpcBidPointList); - } - if (HasAdGroupId) { - output.WriteRawTag(72); - output.WriteInt64(AdGroupId); - } - if (HasCriterionId) { - output.WriteRawTag(80); - output.WriteInt64(CriterionId); - } - if (HasStartDate) { - output.WriteRawTag(90); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(98); - output.WriteString(EndDate); - } - if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) { - output.WriteRawTag(106); - output.WriteMessage(PercentCpcBidPointList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ModificationMethod); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - output.WriteRawTag(66); - output.WriteMessage(CpcBidPointList); - } - if (HasAdGroupId) { - output.WriteRawTag(72); - output.WriteInt64(AdGroupId); - } - if (HasCriterionId) { - output.WriteRawTag(80); - output.WriteInt64(CriterionId); - } - if (HasStartDate) { - output.WriteRawTag(90); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(98); - output.WriteString(EndDate); - } - if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) { - output.WriteRawTag(106); - output.WriteMessage(PercentCpcBidPointList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroupId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AdGroupId); - } - if (HasCriterionId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod); - } - if (HasStartDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (HasEndDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpcBidPointList); - } - if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PercentCpcBidPointList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionSimulation other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroupId) { - AdGroupId = other.AdGroupId; - } - if (other.HasCriterionId) { - CriterionId = other.CriterionId; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - Type = other.Type; - } - if (other.ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - ModificationMethod = other.ModificationMethod; - } - if (other.HasStartDate) { - StartDate = other.StartDate; - } - if (other.HasEndDate) { - EndDate = other.EndDate; - } - switch (other.PointListCase) { - case PointListOneofCase.CpcBidPointList: - if (CpcBidPointList == null) { - CpcBidPointList = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - } - CpcBidPointList.MergeFrom(other.CpcBidPointList); - break; - case PointListOneofCase.PercentCpcBidPointList: - if (PercentCpcBidPointList == null) { - PercentCpcBidPointList = new global::Google.Ads.GoogleAds.V12.Common.PercentCpcBidSimulationPointList(); - } - PercentCpcBidPointList.MergeFrom(other.PercentCpcBidPointList); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 40: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - subBuilder.MergeFrom(CpcBidPointList); - } - input.ReadMessage(subBuilder); - CpcBidPointList = subBuilder; - break; - } - case 72: { - AdGroupId = input.ReadInt64(); - break; - } - case 80: { - CriterionId = input.ReadInt64(); - break; - } - case 90: { - StartDate = input.ReadString(); - break; - } - case 98: { - EndDate = input.ReadString(); - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Common.PercentCpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PercentCpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) { - subBuilder.MergeFrom(PercentCpcBidPointList); - } - input.ReadMessage(subBuilder); - PercentCpcBidPointList = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 40: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - subBuilder.MergeFrom(CpcBidPointList); - } - input.ReadMessage(subBuilder); - CpcBidPointList = subBuilder; - break; - } - case 72: { - AdGroupId = input.ReadInt64(); - break; - } - case 80: { - CriterionId = input.ReadInt64(); - break; - } - case 90: { - StartDate = input.ReadString(); - break; - } - case 98: { - EndDate = input.ReadString(); - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Common.PercentCpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PercentCpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.PercentCpcBidPointList) { - subBuilder.MergeFrom(PercentCpcBidPointList); - } - input.ReadMessage(subBuilder); - PercentCpcBidPointList = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionSimulationResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionSimulationResourceNames.g.cs deleted file mode 100755 index 22ca6d465..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionSimulationResourceNames.g.cs +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupCriterionSimulation resource. - public sealed partial class AdGroupCriterionSimulationName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - CustomerAdGroupCriterionTypeModificationMethodStartDateEndDate = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterionTypeModificationMethodStartDateEndDate = new gax::PathTemplate("customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id_criterion_id_type_modification_method_start_date_end_date}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupCriterionSimulationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupCriterionSimulationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static AdGroupCriterionSimulationName FromCustomerAdGroupCriterionTypeModificationMethodStartDateEndDate(string customerId, string adGroupId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - new AdGroupCriterionSimulationName(ResourceNameType.CustomerAdGroupCriterionTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string Format(string customerId, string adGroupId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - FormatCustomerAdGroupCriterionTypeModificationMethodStartDateEndDate(customerId, adGroupId, criterionId, typeId, modificationMethodId, startDateId, endDateId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string FormatCustomerAdGroupCriterionTypeModificationMethodStartDateEndDate(string customerId, string adGroupId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - s_customerAdGroupCriterionTypeModificationMethodStartDateEndDate.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static AdGroupCriterionSimulationName Parse(string adGroupCriterionSimulationName) => - Parse(adGroupCriterionSimulationName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupCriterionSimulationName Parse(string adGroupCriterionSimulationName, bool allowUnparsed) => - TryParse(adGroupCriterionSimulationName, allowUnparsed, out AdGroupCriterionSimulationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionSimulationName, out AdGroupCriterionSimulationName result) => - TryParse(adGroupCriterionSimulationName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCriterionSimulationName, bool allowUnparsed, out AdGroupCriterionSimulationName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupCriterionSimulationName, nameof(adGroupCriterionSimulationName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterionTypeModificationMethodStartDateEndDate.TryParseName(adGroupCriterionSimulationName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] - { - '~', - '~', - '~', - '~', - '~', - }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterionTypeModificationMethodStartDateEndDate(resourceName[0], split1[0], split1[1], split1[2], split1[3], split1[4], split1[5]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupCriterionSimulationName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupCriterionSimulationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null, string endDateId = null, string modificationMethodId = null, string startDateId = null, string typeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - EndDateId = endDateId; - ModificationMethodId = modificationMethodId; - StartDateId = startDateId; - TypeId = typeId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern - /// - /// customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - public AdGroupCriterionSimulationName(string customerId, string adGroupId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) : this(ResourceNameType.CustomerAdGroupCriterionTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The EndDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string EndDateId { get; } - - /// - /// The ModificationMethod ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ModificationMethodId { get; } - - /// - /// The StartDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string StartDateId { get; } - - /// - /// The Type ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterionTypeModificationMethodStartDateEndDate: return s_customerAdGroupCriterionTypeModificationMethodStartDateEndDate.Expand(CustomerId, $"{AdGroupId}~{CriterionId}~{TypeId}~{ModificationMethodId}~{StartDateId}~{EndDateId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupCriterionSimulationName); - - /// - public bool Equals(AdGroupCriterionSimulationName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupCriterionSimulationName a, AdGroupCriterionSimulationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupCriterionSimulationName a, AdGroupCriterionSimulationName b) => !(a == b); - } - - public partial class AdGroupCriterionSimulation - { - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupCriterionSimulationName ResourceNameAsAdGroupCriterionSimulationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupCriterionSimulationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCriterionStatus.g.cs deleted file mode 100755 index a76aeaef7..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCriterionStatus.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_group_criterion_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_group_criterion_status.proto - public static partial class AdGroupCriterionStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_group_criterion_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCriterionStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfZ3JvdXBfY3Jp", - "dGVyaW9uX3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zInoKGkFkR3JvdXBDcml0ZXJpb25TdGF0dXNFbnVtIlwKFkFkR3Jv", - "dXBDcml0ZXJpb25TdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESCwoHRU5BQkxFRBACEgoKBlBBVVNFRBADEgsKB1JFTU9WRUQQBEL1AQoi", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IbQWRHcm91cENy", - "aXRlcmlvblN0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOi", - "AgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusEnum.Types.AdGroupCriterionStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing AdGroupCriterion statuses. - /// - public sealed partial class AdGroupCriterionStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCriterionStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdGroupCriterionStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionStatusEnum(AdGroupCriterionStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCriterionStatusEnum Clone() { - return new AdGroupCriterionStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCriterionStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCriterionStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCriterionStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupCriterionStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an AdGroupCriterion. - /// - public enum AdGroupCriterionStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The ad group criterion is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The ad group criterion is paused. - /// - [pbr::OriginalName("PAUSED")] Paused = 3, - /// - /// The ad group criterion is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizer.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCustomizer.g.cs deleted file mode 100755 index 3987d3f1f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizer.g.cs +++ /dev/null @@ -1,435 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_customizer.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_customizer.proto - public static partial class AdGroupCustomizerReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_customizer.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCustomizerReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2N1c3RvbWl6ZXIucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3Vz", - "dG9taXplcl92YWx1ZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2N1c3RvbWl6ZXJfdmFsdWVfc3RhdHVzLnByb3RvGh9nb29nbGUv", - "YXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNl", - "LnByb3RvIqQEChFBZEdyb3VwQ3VzdG9taXplchJJCg1yZXNvdXJjZV9uYW1l", - "GAEgASgJQjLgQQX6QSwKKmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdy", - "b3VwQ3VzdG9taXplchI6CghhZF9ncm91cBgCIAEoCUIo4EEF+kEiCiBnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cBJVChRjdXN0b21pemVyX2F0", - "dHJpYnV0ZRgDIAEoCUI34EEC4EEF+kEuCixnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ3VzdG9taXplckF0dHJpYnV0ZRJkCgZzdGF0dXMYBCABKA4yTy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQ3VzdG9taXplclZhbHVl", - "U3RhdHVzRW51bS5DdXN0b21pemVyVmFsdWVTdGF0dXNCA+BBAxJECgV2YWx1", - "ZRgFIAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQ3Vz", - "dG9taXplclZhbHVlQgPgQQI6hAHqQYABCipnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQWRHcm91cEN1c3RvbWl6ZXISUmN1c3RvbWVycy97Y3VzdG9tZXJf", - "aWR9L2FkR3JvdXBDdXN0b21pemVycy97YWRfZ3JvdXBfaWR9fntjdXN0b21p", - "emVyX2F0dHJpYnV0ZV9pZH1CiAIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzQhZBZEdyb3VwQ3VzdG9taXplclByb3RvUAFaS2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CustomizerValueReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer), global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer.Parser, new[]{ "ResourceName", "AdGroup", "CustomizerAttribute", "Status", "Value" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customizer value for the associated CustomizerAttribute at the AdGroup - /// level. - /// - public sealed partial class AdGroupCustomizer : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCustomizer()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizerReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizer() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizer(AdGroupCustomizer other) : this() { - resourceName_ = other.resourceName_; - adGroup_ = other.adGroup_; - customizerAttribute_ = other.customizerAttribute_; - status_ = other.status_; - value_ = other.value_ != null ? other.value_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizer Clone() { - return new AdGroupCustomizer(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group customizer. - /// Ad group customizer resource names have the form: - /// - /// `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 2; - private string adGroup_ = ""; - /// - /// Immutable. The ad group to which the customizer attribute is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customizer_attribute" field. - public const int CustomizerAttributeFieldNumber = 3; - private string customizerAttribute_ = ""; - /// - /// Required. Immutable. The customizer attribute which is linked to the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomizerAttribute { - get { return customizerAttribute_; } - set { - customizerAttribute_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified; - /// - /// Output only. The status of the ad group customizer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.CustomizerValue value_; - /// - /// Required. The value to associate with the customizer attribute at this level. The - /// value must be of the type specified for the CustomizerAttribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomizerValue Value { - get { return value_; } - set { - value_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCustomizer); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCustomizer other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroup != other.AdGroup) return false; - if (CustomizerAttribute != other.CustomizerAttribute) return false; - if (Status != other.Status) return false; - if (!object.Equals(Value, other.Value)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AdGroup.Length != 0) hash ^= AdGroup.GetHashCode(); - if (CustomizerAttribute.Length != 0) hash ^= CustomizerAttribute.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) hash ^= Status.GetHashCode(); - if (value_ != null) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AdGroup); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AdGroup); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AdGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (CustomizerAttribute.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (value_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCustomizer other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AdGroup.Length != 0) { - AdGroup = other.AdGroup; - } - if (other.CustomizerAttribute.Length != 0) { - CustomizerAttribute = other.CustomizerAttribute; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - Status = other.Status; - } - if (other.value_ != null) { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - Value.MergeFrom(other.Value); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroup = input.ReadString(); - break; - } - case 26: { - CustomizerAttribute = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 42: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AdGroup = input.ReadString(); - break; - } - case 26: { - CustomizerAttribute = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 42: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerError.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerError.g.cs deleted file mode 100755 index 472cbfbc6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerError.g.cs +++ /dev/null @@ -1,228 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_group_customizer_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_group_customizer_error.proto - public static partial class AdGroupCustomizerErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_group_customizer_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCustomizerErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2N1", - "c3RvbWl6ZXJfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMiVAoaQWRHcm91cEN1c3RvbWl6ZXJFcnJvckVudW0iNgoWQWRH", - "cm91cEN1c3RvbWl6ZXJFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QAUL7AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNC", - "G0FkR3JvdXBDdXN0b21pemVyRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vy", - "cm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorEnum.Types.AdGroupCustomizerError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad group customizer errors. - /// - public sealed partial class AdGroupCustomizerErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCustomizerErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizerErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizerErrorEnum(AdGroupCustomizerErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizerErrorEnum Clone() { - return new AdGroupCustomizerErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCustomizerErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCustomizerErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCustomizerErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupCustomizerErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad group customizer errors. - /// - public enum AdGroupCustomizerError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerResourceNames.g.cs deleted file mode 100755 index c01185dc4..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerResourceNames.g.cs +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupCustomizer resource. - public sealed partial class AdGroupCustomizerName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}. - /// - CustomerAdGroupCustomizerAttribute = 1, - } - - private static gax::PathTemplate s_customerAdGroupCustomizerAttribute = new gax::PathTemplate("customers/{customer_id}/adGroupCustomizers/{ad_group_id_customizer_attribute_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupCustomizerName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupCustomizerName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - public static AdGroupCustomizerName FromCustomerAdGroupCustomizerAttribute(string customerId, string adGroupId, string customizerAttributeId) => - new AdGroupCustomizerName(ResourceNameType.CustomerAdGroupCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}. - /// - public static string Format(string customerId, string adGroupId, string customizerAttributeId) => - FormatCustomerAdGroupCustomizerAttribute(customerId, adGroupId, customizerAttributeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}. - /// - public static string FormatCustomerAdGroupCustomizerAttribute(string customerId, string adGroupId, string customizerAttributeId) => - s_customerAdGroupCustomizerAttribute.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupCustomizerName Parse(string adGroupCustomizerName) => Parse(adGroupCustomizerName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupCustomizerName Parse(string adGroupCustomizerName, bool allowUnparsed) => - TryParse(adGroupCustomizerName, allowUnparsed, out AdGroupCustomizerName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCustomizerName, out AdGroupCustomizerName result) => - TryParse(adGroupCustomizerName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupCustomizerName, bool allowUnparsed, out AdGroupCustomizerName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupCustomizerName, nameof(adGroupCustomizerName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCustomizerAttribute.TryParseName(adGroupCustomizerName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCustomizerAttribute(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupCustomizerName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupCustomizerName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string customerId = null, string customizerAttributeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CustomerId = customerId; - CustomizerAttributeId = customizerAttributeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - public AdGroupCustomizerName(string customerId, string adGroupId, string customizerAttributeId) : this(ResourceNameType.CustomerAdGroupCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The CustomizerAttribute ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string CustomizerAttributeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCustomizerAttribute: return s_customerAdGroupCustomizerAttribute.Expand(CustomerId, $"{AdGroupId}~{CustomizerAttributeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupCustomizerName); - - /// - public bool Equals(AdGroupCustomizerName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupCustomizerName a, AdGroupCustomizerName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupCustomizerName a, AdGroupCustomizerName b) => !(a == b); - } - - public partial class AdGroupCustomizer - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupCustomizerName ResourceNameAsAdGroupCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal CustomizerAttributeName CustomizerAttributeAsCustomizerAttributeName - { - get => string.IsNullOrEmpty(CustomizerAttribute) ? null : CustomizerAttributeName.Parse(CustomizerAttribute, allowUnparsed: true); - set => CustomizerAttribute = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerService.g.cs deleted file mode 100755 index 7876fc3ce..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerService.g.cs +++ /dev/null @@ -1,1202 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_customizer_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_customizer_service.proto - public static partial class AdGroupCustomizerServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_customizer_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupCustomizerServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "Y3VzdG9taXplcl9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aPGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvYWRfZ3JvdXBfY3VzdG9taXplci5wcm90", - "bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9j", - "bGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVz", - "LnByb3RvIq8CCh9NdXRhdGVBZEdyb3VwQ3VzdG9taXplcnNSZXF1ZXN0EhgK", - "C2N1c3RvbWVyX2lkGAEgASgJQgPgQQISVgoKb3BlcmF0aW9ucxgCIAMoCzI9", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BZEdyb3VwQ3Vz", - "dG9taXplck9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEo", - "CBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRf", - "dHlwZRgFIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5S", - "ZXNwb25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIrUB", - "ChpBZEdyb3VwQ3VzdG9taXplck9wZXJhdGlvbhJHCgZjcmVhdGUYASABKAsy", - "NS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBD", - "dXN0b21pemVySAASQQoGcmVtb3ZlGAIgASgJQi/6QSwKKmdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9BZEdyb3VwQ3VzdG9taXplckgAQgsKCW9wZXJhdGlv", - "biKoAQogTXV0YXRlQWRHcm91cEN1c3RvbWl6ZXJzUmVzcG9uc2USUQoHcmVz", - "dWx0cxgBIAMoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVBZEdyb3VwQ3VzdG9taXplclJlc3VsdBIxChVwYXJ0aWFsX2Zh", - "aWx1cmVfZXJyb3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1cyK7AQodTXV0", - "YXRlQWRHcm91cEN1c3RvbWl6ZXJSZXN1bHQSRgoNcmVzb3VyY2VfbmFtZRgB", - "IAEoCUIv+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEN1", - "c3RvbWl6ZXISUgoTYWRfZ3JvdXBfY3VzdG9taXplchgCIAEoCzI1Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cEN1c3RvbWl6", - "ZXIy5QIKGEFkR3JvdXBDdXN0b21pemVyU2VydmljZRKBAgoYTXV0YXRlQWRH", - "cm91cEN1c3RvbWl6ZXJzEkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUFkR3JvdXBDdXN0b21pemVyc1JlcXVlc3QaQy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRHcm91cEN1", - "c3RvbWl6ZXJzUmVzcG9uc2UiXILT5JMCPSI4L3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2FkR3JvdXBDdXN0b21pemVyczptdXRhdGU6ASraQRZj", - "dXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29y", - "ZHNCiQIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNC", - "HUFkR3JvdXBDdXN0b21pemVyU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "c2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2Vy", - "dmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2Vz", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizerReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult.Parser, new[]{ "ResourceName", "AdGroupCustomizer" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AdGroupCustomizerService.MutateAdGroupCustomizers][google.ads.googleads.v12.services.AdGroupCustomizerService.MutateAdGroupCustomizers]. - /// - public sealed partial class MutateAdGroupCustomizersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCustomizersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizersRequest(MutateAdGroupCustomizersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizersRequest Clone() { - return new MutateAdGroupCustomizersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad group customizers are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad group customizers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCustomizersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCustomizersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCustomizersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an customizer attribute. - /// - public sealed partial class AdGroupCustomizerOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupCustomizerOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizerOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizerOperation(AdGroupCustomizerOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupCustomizerOperation Clone() { - return new AdGroupCustomizerOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group - /// customizer - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed ad group customizer is - /// expected, in this format: - /// `customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupCustomizerOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupCustomizerOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupCustomizerOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group customizer mutate. - /// - public sealed partial class MutateAdGroupCustomizersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCustomizersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizersResponse(MutateAdGroupCustomizersResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizersResponse Clone() { - return new MutateAdGroupCustomizersResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCustomizersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCustomizersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCustomizersResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad group customizer mutate. - /// - public sealed partial class MutateAdGroupCustomizerResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupCustomizerResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizerResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizerResult(MutateAdGroupCustomizerResult other) : this() { - resourceName_ = other.resourceName_; - adGroupCustomizer_ = other.adGroupCustomizer_ != null ? other.adGroupCustomizer_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupCustomizerResult Clone() { - return new MutateAdGroupCustomizerResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_customizer" field. - public const int AdGroupCustomizerFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer adGroupCustomizer_; - /// - /// The mutated AdGroupCustomizer with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer AdGroupCustomizer { - get { return adGroupCustomizer_; } - set { - adGroupCustomizer_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupCustomizerResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupCustomizerResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupCustomizer, other.AdGroupCustomizer)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupCustomizer_ != null) hash ^= AdGroupCustomizer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupCustomizer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCustomizer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupCustomizerResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupCustomizer_ != null) { - if (adGroupCustomizer_ == null) { - AdGroupCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - } - AdGroupCustomizer.MergeFrom(other.AdGroupCustomizer); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupCustomizer_ == null) { - AdGroupCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - } - input.ReadMessage(AdGroupCustomizer); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupCustomizer_ == null) { - AdGroupCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - } - input.ReadMessage(AdGroupCustomizer); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceClient.g.cs deleted file mode 100755 index d47a0412b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupCustomizerServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupCustomizerServiceSettings GetDefault() => new AdGroupCustomizerServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupCustomizerServiceSettings() - { - } - - private AdGroupCustomizerServiceSettings(AdGroupCustomizerServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupCustomizersSettings = existing.MutateAdGroupCustomizersSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupCustomizerServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupCustomizerServiceClient.MutateAdGroupCustomizers and - /// AdGroupCustomizerServiceClient.MutateAdGroupCustomizersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupCustomizersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupCustomizerServiceSettings Clone() => new AdGroupCustomizerServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupCustomizerServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupCustomizerServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupCustomizerServiceClientBuilder() : base(AdGroupCustomizerServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupCustomizerServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupCustomizerServiceClient Build() - { - AdGroupCustomizerServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupCustomizerServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupCustomizerServiceClient.ChannelPool; - } - - /// AdGroupCustomizerService client wrapper, for convenient use. - /// - /// Service to manage ad group customizer - /// - public abstract partial class AdGroupCustomizerServiceClient - { - /// - /// The default endpoint for the AdGroupCustomizerService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupCustomizerService scopes. - /// - /// The default AdGroupCustomizerService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupCustomizerService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupCustomizerServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupCustomizerServiceClient Create() => new AdGroupCustomizerServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupCustomizerServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupCustomizerServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupCustomizerService.AdGroupCustomizerServiceClient grpcClient = new AdGroupCustomizerService.AdGroupCustomizerServiceClient(callInvoker); - return new AdGroupCustomizerServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupCustomizerService client - public virtual AdGroupCustomizerService.AdGroupCustomizerServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCustomizersResponse MutateAdGroupCustomizers(MutateAdGroupCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCustomizersAsync(MutateAdGroupCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCustomizersAsync(MutateAdGroupCustomizersRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose ad group customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group customizers. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupCustomizersResponse MutateAdGroupCustomizers(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCustomizers(new MutateAdGroupCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose ad group customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group customizers. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCustomizersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupCustomizersAsync(new MutateAdGroupCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose ad group customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group customizers. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupCustomizersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupCustomizersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupCustomizerService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group customizer - /// - public sealed partial class AdGroupCustomizerServiceClientImpl : AdGroupCustomizerServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupCustomizers; - - /// - /// Constructs a client wrapper for the AdGroupCustomizerService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AdGroupCustomizerServiceClientImpl(AdGroupCustomizerService.AdGroupCustomizerServiceClient grpcClient, AdGroupCustomizerServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupCustomizerServiceSettings effectiveSettings = settings ?? AdGroupCustomizerServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupCustomizers = clientHelper.BuildApiCall("MutateAdGroupCustomizers", grpcClient.MutateAdGroupCustomizersAsync, grpcClient.MutateAdGroupCustomizers, effectiveSettings.MutateAdGroupCustomizersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupCustomizers); - Modify_MutateAdGroupCustomizersApiCall(ref _callMutateAdGroupCustomizers); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupCustomizersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupCustomizerService.AdGroupCustomizerServiceClient grpcClient, AdGroupCustomizerServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupCustomizerService client - public override AdGroupCustomizerService.AdGroupCustomizerServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupCustomizersRequest(ref MutateAdGroupCustomizersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupCustomizersResponse MutateAdGroupCustomizers(MutateAdGroupCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCustomizersRequest(ref request, ref callSettings); - return _callMutateAdGroupCustomizers.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupCustomizersAsync(MutateAdGroupCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupCustomizersRequest(ref request, ref callSettings); - return _callMutateAdGroupCustomizers.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceGrpc.g.cs deleted file mode 100755 index 52b05593e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_customizer_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group customizer - /// - public static partial class AdGroupCustomizerService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupCustomizerService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCustomizersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCustomizersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupCustomizers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupCustomizers", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCustomizersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupCustomizersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupCustomizerService - [grpc::BindServiceMethod(typeof(AdGroupCustomizerService), "BindService")] - public abstract partial class AdGroupCustomizerServiceBase - { - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupCustomizerService - public partial class AdGroupCustomizerServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupCustomizerService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCustomizerServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupCustomizerService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupCustomizerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCustomizerServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupCustomizerServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersResponse MutateAdGroupCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCustomizers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersResponse MutateAdGroupCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupCustomizers, null, options, request); - } - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupCustomizersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes ad group customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupCustomizers, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupCustomizerServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupCustomizerServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupCustomizerServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupCustomizers, serviceImpl.MutateAdGroupCustomizers).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupCustomizerServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupCustomizers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupCustomizers)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceResourceNames.g.cs deleted file mode 100755 index 152dec6f8..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupCustomizerServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupCustomizerOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupCustomizerName RemoveAsAdGroupCustomizerName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupCustomizerName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupCustomizerResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupCustomizerName ResourceNameAsAdGroupCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupError.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupError.g.cs deleted file mode 100755 index 542cbc6da..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupError.g.cs +++ /dev/null @@ -1,301 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_group_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_group_error.proto - public static partial class AdGroupErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_group_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIocF", - "ChBBZEdyb3VwRXJyb3JFbnVtIvIECgxBZEdyb3VwRXJyb3ISDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESGgoWRFVQTElDQVRFX0FER1JPVVBfTkFN", - "RRACEhgKFElOVkFMSURfQURHUk9VUF9OQU1FEAMSJQohQURWRVJUSVNFUl9O", - "T1RfT05fQ09OVEVOVF9ORVRXT1JLEAUSDwoLQklEX1RPT19CSUcQBhIqCiZC", - "SURfVFlQRV9BTkRfQklERElOR19TVFJBVEVHWV9NSVNNQVRDSBAHEhgKFE1J", - "U1NJTkdfQURHUk9VUF9OQU1FEAgSIAocQURHUk9VUF9MQUJFTF9ET0VTX05P", - "VF9FWElTVBAJEiAKHEFER1JPVVBfTEFCRUxfQUxSRUFEWV9FWElTVFMQChIs", - "CihJTlZBTElEX0NPTlRFTlRfQklEX0NSSVRFUklPTl9UWVBFX0dST1VQEAsS", - "OAo0QURfR1JPVVBfVFlQRV9OT1RfVkFMSURfRk9SX0FEVkVSVElTSU5HX0NI", - "QU5ORUxfVFlQRRAMEjkKNUFER1JPVVBfVFlQRV9OT1RfU1VQUE9SVEVEX0ZP", - "Ul9DQU1QQUlHTl9TQUxFU19DT1VOVFJZEA0SQgo+Q0FOTk9UX0FERF9BREdS", - "T1VQX09GX1RZUEVfRFNBX1RPX0NBTVBBSUdOX1dJVEhPVVRfRFNBX1NFVFRJ", - "TkcQDhI3CjNQUk9NT1RFRF9IT1RFTF9BRF9HUk9VUFNfTk9UX0FWQUlMQUJM", - "RV9GT1JfQ1VTVE9NRVIQDxIsCihJTlZBTElEX0VYQ0xVREVEX1BBUkVOVF9B", - "U1NFVF9GSUVMRF9UWVBFEBBC8QEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzQhFBZEdyb3VwRXJyb3JQcm90b1ABWkVnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oC", - "I0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorEnum.Types.AdGroupError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad group errors. - /// - public sealed partial class AdGroupErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupErrorEnum(AdGroupErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupErrorEnum Clone() { - return new AdGroupErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad group errors. - /// - public enum AdGroupError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// AdGroup with the same name already exists for the campaign. - /// - [pbr::OriginalName("DUPLICATE_ADGROUP_NAME")] DuplicateAdgroupName = 2, - /// - /// AdGroup name is not valid. - /// - [pbr::OriginalName("INVALID_ADGROUP_NAME")] InvalidAdgroupName = 3, - /// - /// Advertiser is not allowed to target sites or set site bids that are not - /// on the Google Search Network. - /// - [pbr::OriginalName("ADVERTISER_NOT_ON_CONTENT_NETWORK")] AdvertiserNotOnContentNetwork = 5, - /// - /// Bid amount is too big. - /// - [pbr::OriginalName("BID_TOO_BIG")] BidTooBig = 6, - /// - /// AdGroup bid does not match the campaign's bidding strategy. - /// - [pbr::OriginalName("BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH")] BidTypeAndBiddingStrategyMismatch = 7, - /// - /// AdGroup name is required for Add. - /// - [pbr::OriginalName("MISSING_ADGROUP_NAME")] MissingAdgroupName = 8, - /// - /// No link found between the ad group and the label. - /// - [pbr::OriginalName("ADGROUP_LABEL_DOES_NOT_EXIST")] AdgroupLabelDoesNotExist = 9, - /// - /// The label has already been attached to the ad group. - /// - [pbr::OriginalName("ADGROUP_LABEL_ALREADY_EXISTS")] AdgroupLabelAlreadyExists = 10, - /// - /// The CriterionTypeGroup is not supported for the content bid dimension. - /// - [pbr::OriginalName("INVALID_CONTENT_BID_CRITERION_TYPE_GROUP")] InvalidContentBidCriterionTypeGroup = 11, - /// - /// The ad group type is not compatible with the campaign channel type. - /// - [pbr::OriginalName("AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE")] AdGroupTypeNotValidForAdvertisingChannelType = 12, - /// - /// The ad group type is not supported in the country of sale of the - /// campaign. - /// - [pbr::OriginalName("ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY")] AdgroupTypeNotSupportedForCampaignSalesCountry = 13, - /// - /// Ad groups of AdGroupType.SEARCH_DYNAMIC_ADS can only be added to - /// campaigns that have DynamicSearchAdsSetting attached. - /// - [pbr::OriginalName("CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING")] CannotAddAdgroupOfTypeDsaToCampaignWithoutDsaSetting = 14, - /// - /// Promoted hotels ad groups are only available to customers on the - /// allow-list. - /// - [pbr::OriginalName("PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER")] PromotedHotelAdGroupsNotAvailableForCustomer = 15, - /// - /// The field type cannot be excluded because an active ad group-asset link - /// of this type exists. - /// - [pbr::OriginalName("INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE")] InvalidExcludedParentAssetFieldType = 16, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSetting.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSetting.g.cs deleted file mode 100755 index 764e2253b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSetting.g.cs +++ /dev/null @@ -1,433 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_extension_setting.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_extension_setting.proto - public static partial class AdGroupExtensionSettingReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_extension_setting.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupExtensionSettingReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2V4dGVuc2lvbl9zZXR0aW5nLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvZXh0ZW5zaW9uX3NldHRpbmdfZGV2aWNlLnByb3RvGjNnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvZXh0ZW5zaW9uX3R5cGUucHJvdG8aH2dv", - "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", - "b3VyY2UucHJvdG8i0gQKF0FkR3JvdXBFeHRlbnNpb25TZXR0aW5nEk8KDXJl", - "c291cmNlX25hbWUYASABKAlCOOBBBfpBMgowZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0FkR3JvdXBFeHRlbnNpb25TZXR0aW5nElwKDmV4dGVuc2lvbl90", - "eXBlGAIgASgOMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkV4", - "dGVuc2lvblR5cGVFbnVtLkV4dGVuc2lvblR5cGVCA+BBBRI/CghhZF9ncm91", - "cBgGIAEoCUIo4EEF+kEiCiBnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRH", - "cm91cEgAiAEBEk0KFGV4dGVuc2lvbl9mZWVkX2l0ZW1zGAcgAygJQi/6QSwK", - "Kmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9FeHRlbnNpb25GZWVkSXRlbRJh", - "CgZkZXZpY2UYBSABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuRXh0ZW5zaW9uU2V0dGluZ0RldmljZUVudW0uRXh0ZW5zaW9uU2V0dGlu", - "Z0RldmljZTqHAepBgwEKMGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdy", - "b3VwRXh0ZW5zaW9uU2V0dGluZxJPY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0v", - "YWRHcm91cEV4dGVuc2lvblNldHRpbmdzL3thZF9ncm91cF9pZH1+e2V4dGVu", - "c2lvbl90eXBlfUILCglfYWRfZ3JvdXBCjgIKJmNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzQhxBZEdyb3VwRXh0ZW5zaW9uU2V0dGlu", - "Z1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dB", - "QaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting), global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting.Parser, new[]{ "ResourceName", "ExtensionType", "AdGroup", "ExtensionFeedItems", "Device" }, new[]{ "AdGroup" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group extension setting. - /// - public sealed partial class AdGroupExtensionSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupExtensionSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSettingReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupExtensionSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupExtensionSetting(AdGroupExtensionSetting other) : this() { - resourceName_ = other.resourceName_; - extensionType_ = other.extensionType_; - adGroup_ = other.adGroup_; - extensionFeedItems_ = other.extensionFeedItems_.Clone(); - device_ = other.device_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupExtensionSetting Clone() { - return new AdGroupExtensionSetting(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group extension setting. - /// AdGroupExtensionSetting resource names have the form: - /// - /// `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "extension_type" field. - public const int ExtensionTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType extensionType_ = global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified; - /// - /// Immutable. The extension type of the ad group extension setting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType ExtensionType { - get { return extensionType_; } - set { - extensionType_ = value; - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 6; - private string adGroup_; - /// - /// Immutable. The resource name of the ad group. The linked extension feed items will - /// serve under this ad group. - /// AdGroup resource names have the form: - /// - /// `customers/{customer_id}/adGroups/{ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_ ?? ""; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroup { - get { return adGroup_ != null; } - } - /// Clears the value of the "ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroup() { - adGroup_ = null; - } - - /// Field number for the "extension_feed_items" field. - public const int ExtensionFeedItemsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_extensionFeedItems_codec - = pb::FieldCodec.ForString(58); - private readonly pbc::RepeatedField extensionFeedItems_ = new pbc::RepeatedField(); - /// - /// The resource names of the extension feed items to serve under the ad group. - /// ExtensionFeedItem resource names have the form: - /// - /// `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExtensionFeedItems { - get { return extensionFeedItems_; } - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice device_ = global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified; - /// - /// The device for which the extensions will serve. Optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice Device { - get { return device_; } - set { - device_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupExtensionSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupExtensionSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ExtensionType != other.ExtensionType) return false; - if (AdGroup != other.AdGroup) return false; - if(!extensionFeedItems_.Equals(other.extensionFeedItems_)) return false; - if (Device != other.Device) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) hash ^= ExtensionType.GetHashCode(); - if (HasAdGroup) hash ^= AdGroup.GetHashCode(); - hash ^= extensionFeedItems_.GetHashCode(); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) hash ^= Device.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExtensionType); - } - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Device); - } - if (HasAdGroup) { - output.WriteRawTag(50); - output.WriteString(AdGroup); - } - extensionFeedItems_.WriteTo(output, _repeated_extensionFeedItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExtensionType); - } - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Device); - } - if (HasAdGroup) { - output.WriteRawTag(50); - output.WriteString(AdGroup); - } - extensionFeedItems_.WriteTo(ref output, _repeated_extensionFeedItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionType); - } - if (HasAdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - size += extensionFeedItems_.CalculateSize(_repeated_extensionFeedItems_codec); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Device); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupExtensionSetting other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - ExtensionType = other.ExtensionType; - } - if (other.HasAdGroup) { - AdGroup = other.AdGroup; - } - extensionFeedItems_.Add(other.extensionFeedItems_); - if (other.Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - Device = other.Device; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 40: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice) input.ReadEnum(); - break; - } - case 50: { - AdGroup = input.ReadString(); - break; - } - case 58: { - extensionFeedItems_.AddEntriesFrom(input, _repeated_extensionFeedItems_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 40: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice) input.ReadEnum(); - break; - } - case 50: { - AdGroup = input.ReadString(); - break; - } - case 58: { - extensionFeedItems_.AddEntriesFrom(ref input, _repeated_extensionFeedItems_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingResourceNames.g.cs deleted file mode 100755 index 4a3b43917..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingResourceNames.g.cs +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupExtensionSetting resource. - public sealed partial class AdGroupExtensionSettingName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}. - /// - CustomerAdGroupExtensionType = 1, - } - - private static gax::PathTemplate s_customerAdGroupExtensionType = new gax::PathTemplate("customers/{customer_id}/adGroupExtensionSettings/{ad_group_id_extension_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupExtensionSettingName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupExtensionSettingName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static AdGroupExtensionSettingName FromCustomerAdGroupExtensionType(string customerId, string adGroupId, string extensionTypeId) => - new AdGroupExtensionSettingName(ResourceNameType.CustomerAdGroupExtensionType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), extensionTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}. - /// - public static string Format(string customerId, string adGroupId, string extensionTypeId) => - FormatCustomerAdGroupExtensionType(customerId, adGroupId, extensionTypeId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}. - /// - public static string FormatCustomerAdGroupExtensionType(string customerId, string adGroupId, string extensionTypeId) => - s_customerAdGroupExtensionType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupExtensionSettingName Parse(string adGroupExtensionSettingName) => - Parse(adGroupExtensionSettingName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupExtensionSettingName Parse(string adGroupExtensionSettingName, bool allowUnparsed) => - TryParse(adGroupExtensionSettingName, allowUnparsed, out AdGroupExtensionSettingName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupExtensionSettingName, out AdGroupExtensionSettingName result) => - TryParse(adGroupExtensionSettingName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupExtensionSettingName, bool allowUnparsed, out AdGroupExtensionSettingName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupExtensionSettingName, nameof(adGroupExtensionSettingName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupExtensionType.TryParseName(adGroupExtensionSettingName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupExtensionType(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupExtensionSettingName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupExtensionSettingName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string customerId = null, string extensionTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CustomerId = customerId; - ExtensionTypeId = extensionTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - public AdGroupExtensionSettingName(string customerId, string adGroupId, string extensionTypeId) : this(ResourceNameType.CustomerAdGroupExtensionType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), extensionTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ExtensionType ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ExtensionTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupExtensionType: return s_customerAdGroupExtensionType.Expand(CustomerId, $"{AdGroupId}~{ExtensionTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupExtensionSettingName); - - /// - public bool Equals(AdGroupExtensionSettingName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupExtensionSettingName a, AdGroupExtensionSettingName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupExtensionSettingName a, AdGroupExtensionSettingName b) => !(a == b); - } - - public partial class AdGroupExtensionSetting - { - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupExtensionSettingName ResourceNameAsAdGroupExtensionSettingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupExtensionSettingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gax::ResourceNameList ExtensionFeedItemsAsExtensionFeedItemNames - { - get => new gax::ResourceNameList(ExtensionFeedItems, s => string.IsNullOrEmpty(s) ? null : ExtensionFeedItemName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingService.g.cs deleted file mode 100755 index ec54f650e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingService.g.cs +++ /dev/null @@ -1,1317 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_extension_setting_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_extension_setting_service.proto - public static partial class AdGroupExtensionSettingServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_extension_setting_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupExtensionSettingServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "ZXh0ZW5zaW9uX3NldHRpbmdfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXMvcmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGkNnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3VwX2V4dGVuc2lv", - "bl9zZXR0aW5nLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3Rv", - "Ghdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i", - "ZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29v", - "Z2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3Rh", - "dHVzLnByb3RvIs8BCiVNdXRhdGVBZEdyb3VwRXh0ZW5zaW9uU2V0dGluZ3NS", - "ZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISXAoKb3BlcmF0aW9u", - "cxgCIAMoCzJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5B", - "ZEdyb3VwRXh0ZW5zaW9uU2V0dGluZ09wZXJhdGlvbkID4EECEhcKD3BhcnRp", - "YWxfZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIIrMDCiBB", - "ZEdyb3VwRXh0ZW5zaW9uU2V0dGluZ09wZXJhdGlvbhIvCgt1cGRhdGVfbWFz", - "axgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSagoVcmVzcG9u", - "c2VfY29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29u", - "dGVudFR5cGUSTQoGY3JlYXRlGAEgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5BZEdyb3VwRXh0ZW5zaW9uU2V0dGluZ0gAEk0K", - "BnVwZGF0ZRgCIAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMuQWRHcm91cEV4dGVuc2lvblNldHRpbmdIABJHCgZyZW1vdmUYAyAB", - "KAlCNfpBMgowZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBFeHRl", - "bnNpb25TZXR0aW5nSABCCwoJb3BlcmF0aW9uIrQBCiZNdXRhdGVBZEdyb3Vw", - "RXh0ZW5zaW9uU2V0dGluZ3NSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVf", - "ZXJyb3IYAyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJXCgdyZXN1bHRzGAIg", - "AygLMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUFkR3JvdXBFeHRlbnNpb25TZXR0aW5nUmVzdWx0ItQBCiNNdXRhdGVBZEdy", - "b3VwRXh0ZW5zaW9uU2V0dGluZ1Jlc3VsdBJMCg1yZXNvdXJjZV9uYW1lGAEg", - "ASgJQjX6QTIKMGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwRXh0", - "ZW5zaW9uU2V0dGluZxJfChphZF9ncm91cF9leHRlbnNpb25fc2V0dGluZxgC", - "IAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRH", - "cm91cEV4dGVuc2lvblNldHRpbmcygwMKHkFkR3JvdXBFeHRlbnNpb25TZXR0", - "aW5nU2VydmljZRKZAgoeTXV0YXRlQWRHcm91cEV4dGVuc2lvblNldHRpbmdz", - "EkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFk", - "R3JvdXBFeHRlbnNpb25TZXR0aW5nc1JlcXVlc3QaSS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRHcm91cEV4dGVuc2lvblNl", - "dHRpbmdzUmVzcG9uc2UiYoLT5JMCQyI+L3YxMi9jdXN0b21lcnMve2N1c3Rv", - "bWVyX2lkPSp9L2FkR3JvdXBFeHRlbnNpb25TZXR0aW5nczptdXRhdGU6ASra", - "QRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fk", - "d29yZHNCjwIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXNCI0FkR3JvdXBFeHRlbnNpb25TZXR0aW5nU2VydmljZVByb3RvUAFaSWdv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSettingReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation.Parser, new[]{ "UpdateMask", "ResponseContentType", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult.Parser, new[]{ "ResourceName", "AdGroupExtensionSetting" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AdGroupExtensionSettingService.MutateAdGroupExtensionSettings][google.ads.googleads.v12.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings]. - /// - public sealed partial class MutateAdGroupExtensionSettingsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupExtensionSettingsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingsRequest(MutateAdGroupExtensionSettingsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingsRequest Clone() { - return new MutateAdGroupExtensionSettingsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad group extension settings are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad group extension - /// settings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupExtensionSettingsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupExtensionSettingsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupExtensionSettingsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an ad group extension setting. - /// - public sealed partial class AdGroupExtensionSettingOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupExtensionSettingOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupExtensionSettingOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupExtensionSettingOperation(AdGroupExtensionSettingOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - responseContentType_ = other.responseContentType_; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupExtensionSettingOperation Clone() { - return new AdGroupExtensionSettingOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group - /// extension setting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The ad group extension setting is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed ad group extension - /// setting is expected, in this format: - /// - /// `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupExtensionSettingOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupExtensionSettingOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (ResponseContentType != other.ResponseContentType) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupExtensionSettingOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group extension setting mutate. - /// - public sealed partial class MutateAdGroupExtensionSettingsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupExtensionSettingsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingsResponse(MutateAdGroupExtensionSettingsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingsResponse Clone() { - return new MutateAdGroupExtensionSettingsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupExtensionSettingsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupExtensionSettingsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupExtensionSettingsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad group extension setting mutate. - /// - public sealed partial class MutateAdGroupExtensionSettingResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupExtensionSettingResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingResult(MutateAdGroupExtensionSettingResult other) : this() { - resourceName_ = other.resourceName_; - adGroupExtensionSetting_ = other.adGroupExtensionSetting_ != null ? other.adGroupExtensionSetting_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupExtensionSettingResult Clone() { - return new MutateAdGroupExtensionSettingResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_extension_setting" field. - public const int AdGroupExtensionSettingFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting adGroupExtensionSetting_; - /// - /// The mutated AdGroupExtensionSetting with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting AdGroupExtensionSetting { - get { return adGroupExtensionSetting_; } - set { - adGroupExtensionSetting_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupExtensionSettingResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupExtensionSettingResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupExtensionSetting, other.AdGroupExtensionSetting)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupExtensionSetting_ != null) hash ^= AdGroupExtensionSetting.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupExtensionSetting_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupExtensionSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupExtensionSetting_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupExtensionSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupExtensionSetting_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupExtensionSetting); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupExtensionSettingResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupExtensionSetting_ != null) { - if (adGroupExtensionSetting_ == null) { - AdGroupExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - AdGroupExtensionSetting.MergeFrom(other.AdGroupExtensionSetting); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupExtensionSetting_ == null) { - AdGroupExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - input.ReadMessage(AdGroupExtensionSetting); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupExtensionSetting_ == null) { - AdGroupExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - input.ReadMessage(AdGroupExtensionSetting); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceClient.g.cs deleted file mode 100755 index 4aba3563f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceClient.g.cs +++ /dev/null @@ -1,621 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupExtensionSettingServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupExtensionSettingServiceSettings GetDefault() => new AdGroupExtensionSettingServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AdGroupExtensionSettingServiceSettings() - { - } - - private AdGroupExtensionSettingServiceSettings(AdGroupExtensionSettingServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupExtensionSettingsSettings = existing.MutateAdGroupExtensionSettingsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupExtensionSettingServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupExtensionSettingServiceClient.MutateAdGroupExtensionSettings and - /// AdGroupExtensionSettingServiceClient.MutateAdGroupExtensionSettingsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupExtensionSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupExtensionSettingServiceSettings Clone() => new AdGroupExtensionSettingServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class AdGroupExtensionSettingServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupExtensionSettingServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupExtensionSettingServiceClientBuilder() : base(AdGroupExtensionSettingServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupExtensionSettingServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupExtensionSettingServiceClient Build() - { - AdGroupExtensionSettingServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupExtensionSettingServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupExtensionSettingServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupExtensionSettingServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupExtensionSettingServiceClient.ChannelPool; - } - - /// AdGroupExtensionSettingService client wrapper, for convenient use. - /// - /// Service to manage ad group extension settings. - /// - public abstract partial class AdGroupExtensionSettingServiceClient - { - /// - /// The default endpoint for the AdGroupExtensionSettingService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupExtensionSettingService scopes. - /// - /// The default AdGroupExtensionSettingService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupExtensionSettingService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupExtensionSettingServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupExtensionSettingServiceClient Create() => - new AdGroupExtensionSettingServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupExtensionSettingServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupExtensionSettingServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient grpcClient = new AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient(callInvoker); - return new AdGroupExtensionSettingServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupExtensionSettingService client - public virtual AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupExtensionSettingsResponse MutateAdGroupExtensionSettings(MutateAdGroupExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupExtensionSettingsAsync(MutateAdGroupExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupExtensionSettingsAsync(MutateAdGroupExtensionSettingsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupExtensionSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ad group extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual ad group extension - /// settings. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupExtensionSettingsResponse MutateAdGroupExtensionSettings(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupExtensionSettings(new MutateAdGroupExtensionSettingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ad group extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual ad group extension - /// settings. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupExtensionSettingsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupExtensionSettingsAsync(new MutateAdGroupExtensionSettingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ad group extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual ad group extension - /// settings. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupExtensionSettingsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupExtensionSettingsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupExtensionSettingService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group extension settings. - /// - public sealed partial class AdGroupExtensionSettingServiceClientImpl : AdGroupExtensionSettingServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupExtensionSettings; - - /// - /// Constructs a client wrapper for the AdGroupExtensionSettingService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AdGroupExtensionSettingServiceClientImpl(AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient grpcClient, AdGroupExtensionSettingServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupExtensionSettingServiceSettings effectiveSettings = settings ?? AdGroupExtensionSettingServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupExtensionSettings = clientHelper.BuildApiCall("MutateAdGroupExtensionSettings", grpcClient.MutateAdGroupExtensionSettingsAsync, grpcClient.MutateAdGroupExtensionSettings, effectiveSettings.MutateAdGroupExtensionSettingsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupExtensionSettings); - Modify_MutateAdGroupExtensionSettingsApiCall(ref _callMutateAdGroupExtensionSettings); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupExtensionSettingsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient grpcClient, AdGroupExtensionSettingServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupExtensionSettingService client - public override AdGroupExtensionSettingService.AdGroupExtensionSettingServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupExtensionSettingsRequest(ref MutateAdGroupExtensionSettingsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupExtensionSettingsResponse MutateAdGroupExtensionSettings(MutateAdGroupExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupExtensionSettingsRequest(ref request, ref callSettings); - return _callMutateAdGroupExtensionSettings.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupExtensionSettingsAsync(MutateAdGroupExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupExtensionSettingsRequest(ref request, ref callSettings); - return _callMutateAdGroupExtensionSettings.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceGrpc.g.cs deleted file mode 100755 index 25547ae3d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceGrpc.g.cs +++ /dev/null @@ -1,362 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_extension_setting_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group extension settings. - /// - public static partial class AdGroupExtensionSettingService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupExtensionSettingService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupExtensionSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupExtensionSettingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupExtensionSettings = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupExtensionSettings", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupExtensionSettingsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupExtensionSettingsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupExtensionSettingService - [grpc::BindServiceMethod(typeof(AdGroupExtensionSettingService), "BindService")] - public abstract partial class AdGroupExtensionSettingServiceBase - { - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupExtensionSettingService - public partial class AdGroupExtensionSettingServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupExtensionSettingService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupExtensionSettingServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupExtensionSettingService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupExtensionSettingServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupExtensionSettingServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupExtensionSettingServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsResponse MutateAdGroupExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupExtensionSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsResponse MutateAdGroupExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupExtensionSettings, null, options, request); - } - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupExtensionSettingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupExtensionSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupExtensionSettingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupExtensionSettings, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupExtensionSettingServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupExtensionSettingServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupExtensionSettingServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupExtensionSettings, serviceImpl.MutateAdGroupExtensionSettings).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupExtensionSettingServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupExtensionSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupExtensionSettings)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceResourceNames.g.cs deleted file mode 100755 index 24ce3f944..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupExtensionSettingServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupExtensionSettingOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AdGroupExtensionSettingName RemoveAsAdGroupExtensionSettingName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupExtensionSettingName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupExtensionSettingResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::AdGroupExtensionSettingName ResourceNameAsAdGroupExtensionSettingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupExtensionSettingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupFeed.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupFeed.g.cs deleted file mode 100755 index 0599493bb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupFeed.g.cs +++ /dev/null @@ -1,494 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_feed.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_feed.proto - public static partial class AdGroupFeedReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_feed.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupFeedReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2ZlZWQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMaN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vbWF0Y2hpbmdf", - "ZnVuY3Rpb24ucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9mZWVkX2xpbmtfc3RhdHVzLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvcGxhY2Vob2xkZXJfdHlwZS5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90byLSBAoLQWRHcm91cEZlZWQSQwoNcmVzb3VyY2VfbmFtZRgBIAEoCUIs", - "4EEF+kEmCiRnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEZlZWQS", - "OAoEZmVlZBgHIAEoCUIl4EEF+kEfCh1nb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b20vRmVlZEgAiAEBEj8KCGFkX2dyb3VwGAggASgJQijgQQX6QSIKIGdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwSAGIAQESXgoRcGxhY2Vob2xk", - "ZXJfdHlwZXMYBCADKA4yQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuUGxhY2Vob2xkZXJUeXBlRW51bS5QbGFjZWhvbGRlclR5cGUSTAoRbWF0", - "Y2hpbmdfZnVuY3Rpb24YBSABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLk1hdGNoaW5nRnVuY3Rpb24SVgoGc3RhdHVzGAYgASgOMkEu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZlZWRMaW5rU3RhdHVz", - "RW51bS5GZWVkTGlua1N0YXR1c0ID4EEDOmfqQWQKJGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9BZEdyb3VwRmVlZBI8Y3VzdG9tZXJzL3tjdXN0b21lcl9p", - "ZH0vYWRHcm91cEZlZWRzL3thZF9ncm91cF9pZH1+e2ZlZWRfaWR9QgcKBV9m", - "ZWVkQgsKCV9hZF9ncm91cEKCAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXNCEEFkR3JvdXBGZWVkUHJvdG9QAVpLZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJl", - "c291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.MatchingFunctionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed), global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed.Parser, new[]{ "ResourceName", "Feed", "AdGroup", "PlaceholderTypes", "MatchingFunction", "Status" }, new[]{ "Feed", "AdGroup" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group feed. - /// - public sealed partial class AdGroupFeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupFeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeedReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeed(AdGroupFeed other) : this() { - resourceName_ = other.resourceName_; - feed_ = other.feed_; - adGroup_ = other.adGroup_; - placeholderTypes_ = other.placeholderTypes_.Clone(); - matchingFunction_ = other.matchingFunction_ != null ? other.matchingFunction_.Clone() : null; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeed Clone() { - return new AdGroupFeed(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group feed. - /// Ad group feed resource names have the form: - /// - /// `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 7; - private string feed_; - /// - /// Immutable. The feed being linked to the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_ ?? ""; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeed { - get { return feed_ != null; } - } - /// Clears the value of the "feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeed() { - feed_ = null; - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 8; - private string adGroup_; - /// - /// Immutable. The ad group being linked to the feed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_ ?? ""; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroup { - get { return adGroup_ != null; } - } - /// Clears the value of the "ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroup() { - adGroup_ = null; - } - - /// Field number for the "placeholder_types" field. - public const int PlaceholderTypesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_placeholderTypes_codec - = pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) x); - private readonly pbc::RepeatedField placeholderTypes_ = new pbc::RepeatedField(); - /// - /// Indicates which placeholder types the feed may populate under the connected - /// ad group. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PlaceholderTypes { - get { return placeholderTypes_; } - } - - /// Field number for the "matching_function" field. - public const int MatchingFunctionFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.MatchingFunction matchingFunction_; - /// - /// Matching function associated with the AdGroupFeed. - /// The matching function is used to filter the set of feed items selected. - /// Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MatchingFunction MatchingFunction { - get { return matchingFunction_; } - set { - matchingFunction_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified; - /// - /// Output only. Status of the ad group feed. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupFeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupFeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Feed != other.Feed) return false; - if (AdGroup != other.AdGroup) return false; - if(!placeholderTypes_.Equals(other.placeholderTypes_)) return false; - if (!object.Equals(MatchingFunction, other.MatchingFunction)) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasFeed) hash ^= Feed.GetHashCode(); - if (HasAdGroup) hash ^= AdGroup.GetHashCode(); - hash ^= placeholderTypes_.GetHashCode(); - if (matchingFunction_ != null) hash ^= MatchingFunction.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - placeholderTypes_.WriteTo(output, _repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - output.WriteRawTag(42); - output.WriteMessage(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(58); - output.WriteString(Feed); - } - if (HasAdGroup) { - output.WriteRawTag(66); - output.WriteString(AdGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - placeholderTypes_.WriteTo(ref output, _repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - output.WriteRawTag(42); - output.WriteMessage(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(58); - output.WriteString(Feed); - } - if (HasAdGroup) { - output.WriteRawTag(66); - output.WriteString(AdGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasFeed) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - if (HasAdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - size += placeholderTypes_.CalculateSize(_repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupFeed other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasFeed) { - Feed = other.Feed; - } - if (other.HasAdGroup) { - AdGroup = other.AdGroup; - } - placeholderTypes_.Add(other.placeholderTypes_); - if (other.matchingFunction_ != null) { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - MatchingFunction.MergeFrom(other.MatchingFunction); - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: - case 32: { - placeholderTypes_.AddEntriesFrom(input, _repeated_placeholderTypes_codec); - break; - } - case 42: { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - input.ReadMessage(MatchingFunction); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus) input.ReadEnum(); - break; - } - case 58: { - Feed = input.ReadString(); - break; - } - case 66: { - AdGroup = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: - case 32: { - placeholderTypes_.AddEntriesFrom(ref input, _repeated_placeholderTypes_codec); - break; - } - case 42: { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - input.ReadMessage(MatchingFunction); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus) input.ReadEnum(); - break; - } - case 58: { - Feed = input.ReadString(); - break; - } - case 66: { - AdGroup = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupFeedError.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupFeedError.g.cs deleted file mode 100755 index da7bb5050..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupFeedError.g.cs +++ /dev/null @@ -1,264 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_group_feed_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_group_feed_error.proto - public static partial class AdGroupFeedErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_group_feed_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupFeedErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2Zl", - "ZWRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMi3AIKFEFkR3JvdXBGZWVkRXJyb3JFbnVtIsMCChBBZEdyb3VwRmVlZEVy", - "cm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEiwKKEZFRURfQUxS", - "RUFEWV9FWElTVFNfRk9SX1BMQUNFSE9MREVSX1RZUEUQAhIiCh5DQU5OT1Rf", - "Q1JFQVRFX0ZPUl9SRU1PVkVEX0ZFRUQQAxIfChtBREdST1VQX0ZFRURfQUxS", - "RUFEWV9FWElTVFMQBBIqCiZDQU5OT1RfT1BFUkFURV9PTl9SRU1PVkVEX0FE", - "R1JPVVBfRkVFRBAFEhwKGElOVkFMSURfUExBQ0VIT0xERVJfVFlQRRAGEiwK", - "KE1JU1NJTkdfRkVFRE1BUFBJTkdfRk9SX1BMQUNFSE9MREVSX1RZUEUQBxIm", - "CiJOT19FWElTVElOR19MT0NBVElPTl9DVVNUT01FUl9GRUVEEAhC9QEKI2Nv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhVBZEdyb3VwRmVl", - "ZEVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FB", - "qgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorEnum.Types.AdGroupFeedError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad group feed errors. - /// - public sealed partial class AdGroupFeedErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupFeedErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeedErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeedErrorEnum(AdGroupFeedErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeedErrorEnum Clone() { - return new AdGroupFeedErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupFeedErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupFeedErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupFeedErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupFeedErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad group feed errors. - /// - public enum AdGroupFeedError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An active feed already exists for this ad group and place holder type. - /// - [pbr::OriginalName("FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE")] FeedAlreadyExistsForPlaceholderType = 2, - /// - /// The specified feed is removed. - /// - [pbr::OriginalName("CANNOT_CREATE_FOR_REMOVED_FEED")] CannotCreateForRemovedFeed = 3, - /// - /// The AdGroupFeed already exists. UPDATE operation should be used to modify - /// the existing AdGroupFeed. - /// - [pbr::OriginalName("ADGROUP_FEED_ALREADY_EXISTS")] AdgroupFeedAlreadyExists = 4, - /// - /// Cannot operate on removed AdGroupFeed. - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED")] CannotOperateOnRemovedAdgroupFeed = 5, - /// - /// Invalid placeholder type. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_TYPE")] InvalidPlaceholderType = 6, - /// - /// Feed mapping for this placeholder type does not exist. - /// - [pbr::OriginalName("MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE")] MissingFeedmappingForPlaceholderType = 7, - /// - /// Location AdGroupFeeds cannot be created unless there is a location - /// CustomerFeed for the specified feed. - /// - [pbr::OriginalName("NO_EXISTING_LOCATION_CUSTOMER_FEED")] NoExistingLocationCustomerFeed = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupFeedResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupFeedResourceNames.g.cs deleted file mode 100755 index 72f409e55..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupFeedResourceNames.g.cs +++ /dev/null @@ -1,304 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupFeed resource. - public sealed partial class AdGroupFeedName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}. - /// - CustomerAdGroupFeed = 1, - } - - private static gax::PathTemplate s_customerAdGroupFeed = new gax::PathTemplate("customers/{customer_id}/adGroupFeeds/{ad_group_id_feed_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupFeedName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupFeedName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupFeedName FromCustomerAdGroupFeed(string customerId, string adGroupId, string feedId) => - new AdGroupFeedName(ResourceNameType.CustomerAdGroupFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}. - /// - public static string Format(string customerId, string adGroupId, string feedId) => - FormatCustomerAdGroupFeed(customerId, adGroupId, feedId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}. - /// - public static string FormatCustomerAdGroupFeed(string customerId, string adGroupId, string feedId) => - s_customerAdGroupFeed.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupFeedName Parse(string adGroupFeedName) => Parse(adGroupFeedName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupFeedName Parse(string adGroupFeedName, bool allowUnparsed) => - TryParse(adGroupFeedName, allowUnparsed, out AdGroupFeedName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupFeedName, out AdGroupFeedName result) => - TryParse(adGroupFeedName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupFeedName, bool allowUnparsed, out AdGroupFeedName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupFeedName, nameof(adGroupFeedName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupFeed.TryParseName(adGroupFeedName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupFeed(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupFeedName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupFeedName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string customerId = null, string feedId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CustomerId = customerId; - FeedId = feedId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - public AdGroupFeedName(string customerId, string adGroupId, string feedId) : this(ResourceNameType.CustomerAdGroupFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupFeed: return s_customerAdGroupFeed.Expand(CustomerId, $"{AdGroupId}~{FeedId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupFeedName); - - /// - public bool Equals(AdGroupFeedName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupFeedName a, AdGroupFeedName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupFeedName a, AdGroupFeedName b) => !(a == b); - } - - public partial class AdGroupFeed - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupFeedName ResourceNameAsAdGroupFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupFeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupFeedService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupFeedService.g.cs deleted file mode 100755 index 2e9563651..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupFeedService.g.cs +++ /dev/null @@ -1,1307 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_feed_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_feed_service.proto - public static partial class AdGroupFeedServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_feed_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupFeedServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "ZmVlZF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9yZXNw", - "b25zZV9jb250ZW50X3R5cGUucHJvdG8aNmdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXMvYWRfZ3JvdXBfZmVlZC5wcm90bxocZ29vZ2xlL2Fw", - "aS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8a", - "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkv", - "cmVzb3VyY2UucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnBy", - "b3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKjAgoZTXV0YXRlQWRHcm91", - "cEZlZWRzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECElAKCm9w", - "ZXJhdGlvbnMYAiADKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuQWRHcm91cEZlZWRPcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2Zh", - "aWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCBJqChVyZXNwb25z", - "ZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250", - "ZW50VHlwZSKXAgoUQWRHcm91cEZlZWRPcGVyYXRpb24SLwoLdXBkYXRlX21h", - "c2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkEKBmNyZWF0", - "ZRgBIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "QWRHcm91cEZlZWRIABJBCgZ1cGRhdGUYAiABKAsyLy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBGZWVkSAASOwoGcmVtb3Zl", - "GAMgASgJQin6QSYKJGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3Vw", - "RmVlZEgAQgsKCW9wZXJhdGlvbiKcAQoaTXV0YXRlQWRHcm91cEZlZWRzUmVz", - "cG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xl", - "LnJwYy5TdGF0dXMSSwoHcmVzdWx0cxgCIAMoCzI6Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwRmVlZFJlc3VsdCKj", - "AQoXTXV0YXRlQWRHcm91cEZlZWRSZXN1bHQSQAoNcmVzb3VyY2VfbmFtZRgB", - "IAEoCUIp+kEmCiRnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEZl", - "ZWQSRgoNYWRfZ3JvdXBfZmVlZBgCIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cEZlZWQyxwIKEkFkR3JvdXBGZWVk", - "U2VydmljZRLpAQoSTXV0YXRlQWRHcm91cEZlZWRzEjwuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBGZWVkc1JlcXVl", - "c3QaPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "QWRHcm91cEZlZWRzUmVzcG9uc2UiVoLT5JMCNyIyL3YxMi9jdXN0b21lcnMv", - "e2N1c3RvbWVyX2lkPSp9L2FkR3JvdXBGZWVkczptdXRhdGU6ASraQRZjdXN0", - "b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNC", - "gwIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCF0Fk", - "R3JvdXBGZWVkU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7", - "c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2Vy", - "dmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeedReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult.Parser, new[]{ "ResourceName", "AdGroupFeed" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupFeedService.MutateAdGroupFeeds][google.ads.googleads.v12.services.AdGroupFeedService.MutateAdGroupFeeds]. - /// - public sealed partial class MutateAdGroupFeedsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupFeedsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedsRequest(MutateAdGroupFeedsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedsRequest Clone() { - return new MutateAdGroupFeedsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad group feeds are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad group feeds. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupFeedsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupFeedsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupFeedsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an ad group feed. - /// - public sealed partial class AdGroupFeedOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupFeedOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeedOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeedOperation(AdGroupFeedOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupFeedOperation Clone() { - return new AdGroupFeedOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group feed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The ad group feed is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed ad group feed is - /// expected, in this format: - /// - /// `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupFeedOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupFeedOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupFeedOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group feed mutate. - /// - public sealed partial class MutateAdGroupFeedsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupFeedsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedsResponse(MutateAdGroupFeedsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedsResponse Clone() { - return new MutateAdGroupFeedsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupFeedsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupFeedsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupFeedsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad group feed mutate. - /// - public sealed partial class MutateAdGroupFeedResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupFeedResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedResult(MutateAdGroupFeedResult other) : this() { - resourceName_ = other.resourceName_; - adGroupFeed_ = other.adGroupFeed_ != null ? other.adGroupFeed_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupFeedResult Clone() { - return new MutateAdGroupFeedResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_feed" field. - public const int AdGroupFeedFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed adGroupFeed_; - /// - /// The mutated ad group feed with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed AdGroupFeed { - get { return adGroupFeed_; } - set { - adGroupFeed_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupFeedResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupFeedResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroupFeed, other.AdGroupFeed)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroupFeed_ != null) hash ^= AdGroupFeed.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupFeed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroupFeed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroupFeed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupFeed); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupFeedResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroupFeed_ != null) { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - AdGroupFeed.MergeFrom(other.AdGroupFeed); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - input.ReadMessage(AdGroupFeed); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - input.ReadMessage(AdGroupFeed); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceClient.g.cs deleted file mode 100755 index b3f800398..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceClient.g.cs +++ /dev/null @@ -1,561 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupFeedServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupFeedServiceSettings GetDefault() => new AdGroupFeedServiceSettings(); - - /// Constructs a new object with default settings. - public AdGroupFeedServiceSettings() - { - } - - private AdGroupFeedServiceSettings(AdGroupFeedServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupFeedsSettings = existing.MutateAdGroupFeedsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupFeedServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupFeedServiceClient.MutateAdGroupFeeds and AdGroupFeedServiceClient.MutateAdGroupFeedsAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupFeedsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupFeedServiceSettings Clone() => new AdGroupFeedServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupFeedServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupFeedServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupFeedServiceClientBuilder() : base(AdGroupFeedServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupFeedServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupFeedServiceClient Build() - { - AdGroupFeedServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupFeedServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupFeedServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupFeedServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupFeedServiceClient.ChannelPool; - } - - /// AdGroupFeedService client wrapper, for convenient use. - /// - /// Service to manage ad group feeds. - /// - public abstract partial class AdGroupFeedServiceClient - { - /// - /// The default endpoint for the AdGroupFeedService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupFeedService scopes. - /// - /// The default AdGroupFeedService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupFeedService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupFeedServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupFeedServiceClient Create() => new AdGroupFeedServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupFeedServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupFeedServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupFeedService.AdGroupFeedServiceClient grpcClient = new AdGroupFeedService.AdGroupFeedServiceClient(callInvoker); - return new AdGroupFeedServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupFeedService client - public virtual AdGroupFeedService.AdGroupFeedServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupFeedsResponse MutateAdGroupFeeds(MutateAdGroupFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupFeedsAsync(MutateAdGroupFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupFeedsAsync(MutateAdGroupFeedsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose ad group feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group feeds. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupFeedsResponse MutateAdGroupFeeds(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupFeeds(new MutateAdGroupFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose ad group feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group feeds. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupFeedsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupFeedsAsync(new MutateAdGroupFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose ad group feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad group feeds. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupFeedsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupFeedsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupFeedService client wrapper implementation, for convenient use. - /// - /// Service to manage ad group feeds. - /// - public sealed partial class AdGroupFeedServiceClientImpl : AdGroupFeedServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupFeeds; - - /// - /// Constructs a client wrapper for the AdGroupFeedService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdGroupFeedServiceClientImpl(AdGroupFeedService.AdGroupFeedServiceClient grpcClient, AdGroupFeedServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupFeedServiceSettings effectiveSettings = settings ?? AdGroupFeedServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupFeeds = clientHelper.BuildApiCall("MutateAdGroupFeeds", grpcClient.MutateAdGroupFeedsAsync, grpcClient.MutateAdGroupFeeds, effectiveSettings.MutateAdGroupFeedsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupFeeds); - Modify_MutateAdGroupFeedsApiCall(ref _callMutateAdGroupFeeds); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupFeedsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupFeedService.AdGroupFeedServiceClient grpcClient, AdGroupFeedServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupFeedService client - public override AdGroupFeedService.AdGroupFeedServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupFeedsRequest(ref MutateAdGroupFeedsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupFeedsResponse MutateAdGroupFeeds(MutateAdGroupFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupFeedsRequest(ref request, ref callSettings); - return _callMutateAdGroupFeeds.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupFeedsAsync(MutateAdGroupFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupFeedsRequest(ref request, ref callSettings); - return _callMutateAdGroupFeeds.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceGrpc.g.cs deleted file mode 100755 index d03f0952e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceGrpc.g.cs +++ /dev/null @@ -1,332 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_feed_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad group feeds. - /// - public static partial class AdGroupFeedService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupFeedService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupFeedsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupFeedsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupFeeds = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupFeeds", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupFeedsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupFeedsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupFeedService - [grpc::BindServiceMethod(typeof(AdGroupFeedService), "BindService")] - public abstract partial class AdGroupFeedServiceBase - { - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupFeedService - public partial class AdGroupFeedServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupFeedService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupFeedServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupFeedService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupFeedServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupFeedServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupFeedServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsResponse MutateAdGroupFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupFeeds(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsResponse MutateAdGroupFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupFeeds, null, options, request); - } - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupFeedsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad group feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdGroupFeedError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupFeeds, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupFeedServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupFeedServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupFeedServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupFeeds, serviceImpl.MutateAdGroupFeeds).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupFeedServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupFeeds, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupFeeds)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceResourceNames.g.cs deleted file mode 100755 index 20983679c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupFeedServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupFeedOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupFeedName RemoveAsAdGroupFeedName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupFeedName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupFeedResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupFeedName ResourceNameAsAdGroupFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupFeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupLabel.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupLabel.g.cs deleted file mode 100755 index a0122eae0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupLabel.g.cs +++ /dev/null @@ -1,360 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_label.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_label.proto - public static partial class AdGroupLabelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_label.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupLabelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X2xhYmVsLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvItQCCgxBZEdyb3VwTGFiZWwSRAoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUIt4EEF+kEnCiVnb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b20vQWRHcm91cExhYmVsEj8KCGFkX2dyb3VwGAQgASgJQijgQQX6QSIKIGdv", - "b2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwSACIAQESOgoFbGFiZWwY", - "BSABKAlCJuBBBfpBIAoeZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0xhYmVs", - "SAGIAQE6aupBZwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3JvdXBM", - "YWJlbBI+Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYWRHcm91cExhYmVscy97", - "YWRfZ3JvdXBfaWR9fntsYWJlbF9pZH1CCwoJX2FkX2dyb3VwQggKBl9sYWJl", - "bEKDAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNC", - "EUFkR3JvdXBMYWJlbFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel), global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel.Parser, new[]{ "ResourceName", "AdGroup", "Label" }, new[]{ "AdGroup", "Label" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A relationship between an ad group and a label. - /// - public sealed partial class AdGroupLabel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupLabel()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupLabel() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupLabel(AdGroupLabel other) : this() { - resourceName_ = other.resourceName_; - adGroup_ = other.adGroup_; - label_ = other.label_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupLabel Clone() { - return new AdGroupLabel(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad group label. - /// Ad group label resource names have the form: - /// `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 4; - private string adGroup_; - /// - /// Immutable. The ad group to which the label is attached. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_ ?? ""; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroup { - get { return adGroup_ != null; } - } - /// Clears the value of the "ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroup() { - adGroup_ = null; - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 5; - private string label_; - /// - /// Immutable. The label assigned to the ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Label { - get { return label_ ?? ""; } - set { - label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "label" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLabel { - get { return label_ != null; } - } - /// Clears the value of the "label" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLabel() { - label_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupLabel); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupLabel other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroup != other.AdGroup) return false; - if (Label != other.Label) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroup) hash ^= AdGroup.GetHashCode(); - if (HasLabel) hash ^= Label.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroup) { - output.WriteRawTag(34); - output.WriteString(AdGroup); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroup) { - output.WriteRawTag(34); - output.WriteString(AdGroup); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (HasLabel) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupLabel other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroup) { - AdGroup = other.AdGroup; - } - if (other.HasLabel) { - Label = other.Label; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - AdGroup = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - AdGroup = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupLabelResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupLabelResourceNames.g.cs deleted file mode 100755 index 7fcd1a26d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupLabelResourceNames.g.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupLabel resource. - public sealed partial class AdGroupLabelName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}. - /// - CustomerAdGroupLabel = 1, - } - - private static gax::PathTemplate s_customerAdGroupLabel = new gax::PathTemplate("customers/{customer_id}/adGroupLabels/{ad_group_id_label_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupLabelName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupLabelName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupLabelName FromCustomerAdGroupLabel(string customerId, string adGroupId, string labelId) => - new AdGroupLabelName(ResourceNameType.CustomerAdGroupLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}. - /// - public static string Format(string customerId, string adGroupId, string labelId) => - FormatCustomerAdGroupLabel(customerId, adGroupId, labelId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}. - /// - public static string FormatCustomerAdGroupLabel(string customerId, string adGroupId, string labelId) => - s_customerAdGroupLabel.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupLabelName Parse(string adGroupLabelName) => Parse(adGroupLabelName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupLabelName Parse(string adGroupLabelName, bool allowUnparsed) => - TryParse(adGroupLabelName, allowUnparsed, out AdGroupLabelName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupLabelName, out AdGroupLabelName result) => - TryParse(adGroupLabelName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupLabelName, bool allowUnparsed, out AdGroupLabelName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupLabelName, nameof(adGroupLabelName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupLabel.TryParseName(adGroupLabelName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupLabel(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupLabelName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupLabelName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string customerId = null, string labelId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CustomerId = customerId; - LabelId = labelId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - public AdGroupLabelName(string customerId, string adGroupId, string labelId) : this(ResourceNameType.CustomerAdGroupLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Label ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string LabelId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupLabel: return s_customerAdGroupLabel.Expand(CustomerId, $"{AdGroupId}~{LabelId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupLabelName); - - /// - public bool Equals(AdGroupLabelName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupLabelName a, AdGroupLabelName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupLabelName a, AdGroupLabelName b) => !(a == b); - } - - public partial class AdGroupLabel - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupLabelName ResourceNameAsAdGroupLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal LabelName LabelAsLabelName - { - get => string.IsNullOrEmpty(Label) ? null : LabelName.Parse(Label, allowUnparsed: true); - set => Label = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupLabelService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupLabelService.g.cs deleted file mode 100755 index 789993389..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupLabelService.g.cs +++ /dev/null @@ -1,1102 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_label_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_label_service.proto - public static partial class AdGroupLabelServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_label_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupLabelServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "bGFiZWxfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "L2FkX2dyb3VwX2xhYmVsLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", - "LnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9m", - "aWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90", - "bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8iuQEKGk11dGF0ZUFkR3JvdXBM", - "YWJlbHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISUQoKb3Bl", - "cmF0aW9ucxgCIAMoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcy5BZEdyb3VwTGFiZWxPcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2Zh", - "aWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCCKmAQoVQWRHcm91", - "cExhYmVsT3BlcmF0aW9uEkIKBmNyZWF0ZRgBIAEoCzIwLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cExhYmVsSAASPAoGcmVt", - "b3ZlGAIgASgJQir6QScKJWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdy", - "b3VwTGFiZWxIAEILCglvcGVyYXRpb24ingEKG011dGF0ZUFkR3JvdXBMYWJl", - "bHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAyABKAsyEi5n", - "b29nbGUucnBjLlN0YXR1cxJMCgdyZXN1bHRzGAIgAygLMjsuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBMYWJlbFJl", - "c3VsdCJdChhNdXRhdGVBZEdyb3VwTGFiZWxSZXN1bHQSQQoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIq+kEnCiVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRH", - "cm91cExhYmVsMswCChNBZEdyb3VwTGFiZWxTZXJ2aWNlEu0BChNNdXRhdGVB", - "ZEdyb3VwTGFiZWxzEj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLk11dGF0ZUFkR3JvdXBMYWJlbHNSZXF1ZXN0Gj4uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBMYWJlbHNSZXNw", - "b25zZSJXgtPkkwI4IjMvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0v", - "YWRHcm91cExhYmVsczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNChAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCGEFkR3JvdXBMYWJlbFNlcnZp", - "Y2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FB", - "qgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabelReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupLabelService.MutateAdGroupLabels][google.ads.googleads.v12.services.AdGroupLabelService.MutateAdGroupLabels]. - /// - public sealed partial class MutateAdGroupLabelsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupLabelsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelsRequest(MutateAdGroupLabelsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelsRequest Clone() { - return new MutateAdGroupLabelsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose ad group labels are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on ad group labels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupLabelsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupLabelsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupLabelsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an ad group label. - /// - public sealed partial class AdGroupLabelOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupLabelOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupLabelOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupLabelOperation(AdGroupLabelOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupLabelOperation Clone() { - return new AdGroupLabelOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group - /// label. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the ad group label - /// being removed, in this format: - /// - /// `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupLabelOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupLabelOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupLabelOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group labels mutate. - /// - public sealed partial class MutateAdGroupLabelsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupLabelsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelsResponse(MutateAdGroupLabelsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelsResponse Clone() { - return new MutateAdGroupLabelsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupLabelsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupLabelsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupLabelsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for an ad group label mutate. - /// - public sealed partial class MutateAdGroupLabelResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupLabelResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelResult(MutateAdGroupLabelResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupLabelResult Clone() { - return new MutateAdGroupLabelResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupLabelResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupLabelResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupLabelResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceClient.g.cs deleted file mode 100755 index 895683cd2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceClient.g.cs +++ /dev/null @@ -1,474 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupLabelServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupLabelServiceSettings GetDefault() => new AdGroupLabelServiceSettings(); - - /// Constructs a new object with default settings. - public AdGroupLabelServiceSettings() - { - } - - private AdGroupLabelServiceSettings(AdGroupLabelServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupLabelsSettings = existing.MutateAdGroupLabelsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupLabelServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupLabelServiceClient.MutateAdGroupLabels and - /// AdGroupLabelServiceClient.MutateAdGroupLabelsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupLabelsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupLabelServiceSettings Clone() => new AdGroupLabelServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdGroupLabelServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupLabelServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupLabelServiceClientBuilder() : base(AdGroupLabelServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupLabelServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupLabelServiceClient Build() - { - AdGroupLabelServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupLabelServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupLabelServiceClient.ChannelPool; - } - - /// AdGroupLabelService client wrapper, for convenient use. - /// - /// Service to manage labels on ad groups. - /// - public abstract partial class AdGroupLabelServiceClient - { - /// - /// The default endpoint for the AdGroupLabelService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupLabelService scopes. - /// - /// The default AdGroupLabelService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupLabelService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupLabelServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdGroupLabelServiceClient Create() => new AdGroupLabelServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupLabelServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupLabelServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupLabelService.AdGroupLabelServiceClient grpcClient = new AdGroupLabelService.AdGroupLabelServiceClient(callInvoker); - return new AdGroupLabelServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupLabelService client - public virtual AdGroupLabelService.AdGroupLabelServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupLabelsResponse MutateAdGroupLabels(MutateAdGroupLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupLabelsAsync(MutateAdGroupLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupLabelsAsync(MutateAdGroupLabelsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group labels. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupLabelsResponse MutateAdGroupLabels(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupLabels(new MutateAdGroupLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group labels. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupLabelsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupLabelsAsync(new MutateAdGroupLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose ad group labels are being modified. - /// - /// - /// Required. The list of operations to perform on ad group labels. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupLabelsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupLabelsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupLabelService client wrapper implementation, for convenient use. - /// - /// Service to manage labels on ad groups. - /// - public sealed partial class AdGroupLabelServiceClientImpl : AdGroupLabelServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroupLabels; - - /// - /// Constructs a client wrapper for the AdGroupLabelService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdGroupLabelServiceClientImpl(AdGroupLabelService.AdGroupLabelServiceClient grpcClient, AdGroupLabelServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupLabelServiceSettings effectiveSettings = settings ?? AdGroupLabelServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroupLabels = clientHelper.BuildApiCall("MutateAdGroupLabels", grpcClient.MutateAdGroupLabelsAsync, grpcClient.MutateAdGroupLabels, effectiveSettings.MutateAdGroupLabelsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroupLabels); - Modify_MutateAdGroupLabelsApiCall(ref _callMutateAdGroupLabels); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupLabelsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupLabelService.AdGroupLabelServiceClient grpcClient, AdGroupLabelServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupLabelService client - public override AdGroupLabelService.AdGroupLabelServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupLabelsRequest(ref MutateAdGroupLabelsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupLabelsResponse MutateAdGroupLabels(MutateAdGroupLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupLabelsRequest(ref request, ref callSettings); - return _callMutateAdGroupLabels.Sync(request, callSettings); - } - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupLabelsAsync(MutateAdGroupLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupLabelsRequest(ref request, ref callSettings); - return _callMutateAdGroupLabels.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceGrpc.g.cs deleted file mode 100755 index dedf8a43a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceGrpc.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_label_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage labels on ad groups. - /// - public static partial class AdGroupLabelService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupLabelService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupLabelsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupLabelsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroupLabels = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroupLabels", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupLabelsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupLabelsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupLabelService - [grpc::BindServiceMethod(typeof(AdGroupLabelService), "BindService")] - public abstract partial class AdGroupLabelServiceBase - { - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroupLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupLabelService - public partial class AdGroupLabelServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupLabelService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupLabelServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupLabelService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupLabelServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupLabelServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupLabelServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsResponse MutateAdGroupLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupLabels(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsResponse MutateAdGroupLabels(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroupLabels, null, options, request); - } - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupLabelsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes ad group labels. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroupLabels, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupLabelServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupLabelServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupLabelServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroupLabels, serviceImpl.MutateAdGroupLabels).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupLabelServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroupLabels, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroupLabels)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceResourceNames.g.cs deleted file mode 100755 index bd321641a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupLabelServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupLabelOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupLabelName RemoveAsAdGroupLabelName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupLabelName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupLabelResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupLabelName ResourceNameAsAdGroupLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupResourceNames.g.cs deleted file mode 100755 index 91805caa3..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupResourceNames.g.cs +++ /dev/null @@ -1,285 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroup resource. - public sealed partial class AdGroupName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/adGroups/{ad_group_id}. - CustomerAdGroup = 1, - } - - private static gax::PathTemplate s_customerAdGroup = new gax::PathTemplate("customers/{customer_id}/adGroups/{ad_group_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided . - /// - public static AdGroupName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/adGroups/{ad_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupName FromCustomerAdGroup(string customerId, string adGroupId) => - new AdGroupName(ResourceNameType.CustomerAdGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroups/{ad_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroups/{ad_group_id}. - /// - public static string Format(string customerId, string adGroupId) => FormatCustomerAdGroup(customerId, adGroupId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adGroups/{ad_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adGroups/{ad_group_id}. - /// - public static string FormatCustomerAdGroup(string customerId, string adGroupId) => - s_customerAdGroup.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroups/{ad_group_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupName Parse(string adGroupName) => Parse(adGroupName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroups/{ad_group_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupName Parse(string adGroupName, bool allowUnparsed) => - TryParse(adGroupName, allowUnparsed, out AdGroupName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroups/{ad_group_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupName, out AdGroupName result) => TryParse(adGroupName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/adGroups/{ad_group_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupName, bool allowUnparsed, out AdGroupName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupName, nameof(adGroupName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroup.TryParseName(adGroupName, out resourceName)) - { - result = FromCustomerAdGroup(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AdGroupName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adGroups/{ad_group_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - public AdGroupName(string customerId, string adGroupId) : this(ResourceNameType.CustomerAdGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroup: return s_customerAdGroup.Expand(CustomerId, AdGroupId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupName); - - /// - public bool Equals(AdGroupName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupName a, AdGroupName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupName a, AdGroupName b) => !(a == b); - } - - public partial class AdGroup - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupName ResourceNameAsAdGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupName AdGroupName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AdGroupName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupName BaseAdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(BaseAdGroup) ? null : gagvr::AdGroupName.Parse(BaseAdGroup, allowUnparsed: true); - set => BaseAdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList LabelsAsAdGroupLabelNames - { - get => new gax::ResourceNameList(Labels, s => string.IsNullOrEmpty(s) ? null : AdGroupLabelName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupService.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupService.g.cs deleted file mode 100755 index 0b6aafa67..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupService.g.cs +++ /dev/null @@ -1,1304 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_group_service.proto - public static partial class AdGroupServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_group_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "c2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVzcG9uc2Vf", - "Y29udGVudF90eXBlLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL2FkX2dyb3VwLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRp", - "b25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2ds", - "ZS9ycGMvc3RhdHVzLnByb3RvIpsCChVNdXRhdGVBZEdyb3Vwc1JlcXVlc3QS", - "GAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJMCgpvcGVyYXRpb25zGAIgAygL", - "MjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkR3JvdXBP", - "cGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFs", - "aWRhdGVfb25seRgEIAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5cGUYBSAB", - "KA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVzcG9uc2VD", - "b250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSKHAgoQQWRHcm91", - "cE9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90", - "b2J1Zi5GaWVsZE1hc2sSPQoGY3JlYXRlGAEgASgLMisuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwSAASPQoGdXBkYXRlGAIg", - "ASgLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdy", - "b3VwSAASNwoGcmVtb3ZlGAMgASgJQiX6QSIKIGdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9BZEdyb3VwSABCCwoJb3BlcmF0aW9uIpQBChZNdXRhdGVBZEdy", - "b3Vwc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzIS", - "Lmdvb2dsZS5ycGMuU3RhdHVzEkcKB3Jlc3VsdHMYAiADKAsyNi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRHcm91cFJlc3Vs", - "dCKSAQoTTXV0YXRlQWRHcm91cFJlc3VsdBI8Cg1yZXNvdXJjZV9uYW1lGAEg", - "ASgJQiX6QSIKIGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwEj0K", - "CGFkX2dyb3VwGAIgASgLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5BZEdyb3VwMrMCCg5BZEdyb3VwU2VydmljZRLZAQoOTXV0YXRl", - "QWRHcm91cHMSOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQWRHcm91cHNSZXF1ZXN0GjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBzUmVzcG9uc2UiUoLT5JMCMyIu", - "L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2FkR3JvdXBzOm11dGF0", - "ZToBKtpBFmN1c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1", - "dGgvYWR3b3Jkc0L/AQolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlc0ITQWRHcm91cFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Nl", - "cnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZp", - "Y2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation), global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult.Parser, new[]{ "ResourceName", "AdGroup" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdGroupService.MutateAdGroups][google.ads.googleads.v12.services.AdGroupService.MutateAdGroups]. - /// - public sealed partial class MutateAdGroupsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupsRequest(MutateAdGroupsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupsRequest Clone() { - return new MutateAdGroupsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad groups are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad groups. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an ad group. - /// - public sealed partial class AdGroupOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupOperation(AdGroupOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupOperation Clone() { - return new AdGroupOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroup Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The ad group is expected to have a valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroup Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed ad group is expected, - /// in this format: - /// - /// `customers/{customer_id}/adGroups/{ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad group mutate. - /// - public sealed partial class MutateAdGroupsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupsResponse(MutateAdGroupsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupsResponse Clone() { - return new MutateAdGroupsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad group mutate. - /// - public sealed partial class MutateAdGroupResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdGroupResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupResult(MutateAdGroupResult other) : this() { - resourceName_ = other.resourceName_; - adGroup_ = other.adGroup_ != null ? other.adGroup_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdGroupResult Clone() { - return new MutateAdGroupResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroup adGroup_; - /// - /// The mutated ad group with only mutable fields after mutate. The field will - /// only be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroup AdGroup { - get { return adGroup_; } - set { - adGroup_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdGroupResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdGroupResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdGroup, other.AdGroup)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adGroup_ != null) hash ^= AdGroup.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdGroupResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adGroup_ != null) { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - AdGroup.MergeFrom(other.AdGroup); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - input.ReadMessage(AdGroup); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - input.ReadMessage(AdGroup); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupServiceClient.g.cs deleted file mode 100755 index 23d652fe8..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupServiceClient.g.cs +++ /dev/null @@ -1,621 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdGroupServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdGroupServiceSettings GetDefault() => new AdGroupServiceSettings(); - - /// Constructs a new object with default settings. - public AdGroupServiceSettings() - { - } - - private AdGroupServiceSettings(AdGroupServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdGroupsSettings = existing.MutateAdGroupsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdGroupServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdGroupServiceClient.MutateAdGroups and AdGroupServiceClient.MutateAdGroupsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdGroupsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdGroupServiceSettings Clone() => new AdGroupServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class AdGroupServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdGroupServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdGroupServiceClientBuilder() : base(AdGroupServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdGroupServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdGroupServiceClient Build() - { - AdGroupServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdGroupServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdGroupServiceClient.ChannelPool; - } - - /// AdGroupService client wrapper, for convenient use. - /// - /// Service to manage ad groups. - /// - public abstract partial class AdGroupServiceClient - { - /// - /// The default endpoint for the AdGroupService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdGroupService scopes. - /// - /// The default AdGroupService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdGroupService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdGroupServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static AdGroupServiceClient Create() => new AdGroupServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdGroupServiceClient Create(grpccore::CallInvoker callInvoker, AdGroupServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdGroupService.AdGroupServiceClient grpcClient = new AdGroupService.AdGroupServiceClient(callInvoker); - return new AdGroupServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdGroupService client - public virtual AdGroupService.AdGroupServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupsResponse MutateAdGroups(MutateAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupsAsync(MutateAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupsAsync(MutateAdGroupsRequest request, st::CancellationToken cancellationToken) => - MutateAdGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ad groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad groups. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdGroupsResponse MutateAdGroups(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroups(new MutateAdGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ad groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad groups. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdGroupsAsync(new MutateAdGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ad groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad groups. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdGroupsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdGroupsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdGroupService client wrapper implementation, for convenient use. - /// - /// Service to manage ad groups. - /// - public sealed partial class AdGroupServiceClientImpl : AdGroupServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdGroups; - - /// - /// Constructs a client wrapper for the AdGroupService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdGroupServiceClientImpl(AdGroupService.AdGroupServiceClient grpcClient, AdGroupServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdGroupServiceSettings effectiveSettings = settings ?? AdGroupServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdGroups = clientHelper.BuildApiCall("MutateAdGroups", grpcClient.MutateAdGroupsAsync, grpcClient.MutateAdGroups, effectiveSettings.MutateAdGroupsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdGroups); - Modify_MutateAdGroupsApiCall(ref _callMutateAdGroups); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdGroupsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdGroupService.AdGroupServiceClient grpcClient, AdGroupServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdGroupService client - public override AdGroupService.AdGroupServiceClient GrpcClient { get; } - - partial void Modify_MutateAdGroupsRequest(ref MutateAdGroupsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdGroupsResponse MutateAdGroups(MutateAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupsRequest(ref request, ref callSettings); - return _callMutateAdGroups.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdGroupsAsync(MutateAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdGroupsRequest(ref request, ref callSettings); - return _callMutateAdGroups.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupServiceGrpc.g.cs deleted file mode 100755 index 2793c510d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupServiceGrpc.g.cs +++ /dev/null @@ -1,372 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_group_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad groups. - /// - public static partial class AdGroupService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdGroupService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdGroupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdGroups = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdGroups", - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdGroupsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdGroupServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdGroupService - [grpc::BindServiceMethod(typeof(AdGroupService), "BindService")] - public abstract partial class AdGroupServiceBase - { - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdGroups(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdGroupService - public partial class AdGroupServiceClient : grpc::ClientBase - { - /// Creates a new client for AdGroupService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdGroupService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdGroupServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdGroupServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsResponse MutateAdGroups(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroups(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsResponse MutateAdGroups(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdGroups, null, options, request); - } - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdGroupsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad groups. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdGroupError]() - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MultiplierError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdGroups, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdGroupServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdGroupServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdGroupServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdGroups, serviceImpl.MutateAdGroups).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdGroupServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdGroups, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdGroups)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupServiceResourceNames.g.cs deleted file mode 100755 index 4f3af9905..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdGroupOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupName RemoveAsAdGroupName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdGroupName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdGroupResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdGroupName ResourceNameAsAdGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupSimulation.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupSimulation.g.cs deleted file mode 100755 index 14884cfef..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupSimulation.g.cs +++ /dev/null @@ -1,776 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_group_simulation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_group_simulation.proto - public static partial class AdGroupSimulationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_group_simulation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupSimulationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3Vw", - "X3NpbXVsYXRpb24ucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaMGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vc2lt", - "dWxhdGlvbi5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3NpbXVsYXRpb25fbW9kaWZpY2F0aW9uX21ldGhvZC5wcm90bxo0Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3NpbXVsYXRpb25fdHlwZS5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90byL0BwoRQWRHcm91cFNpbXVsYXRpb24SSQoNcmVz", - "b3VyY2VfbmFtZRgBIAEoCUIy4EED+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQWRHcm91cFNpbXVsYXRpb24SHQoLYWRfZ3JvdXBfaWQYDCABKANC", - "A+BBA0gBiAEBElQKBHR5cGUYAyABKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuU2ltdWxhdGlvblR5cGVFbnVtLlNpbXVsYXRpb25UeXBl", - "QgPgQQMSfwoTbW9kaWZpY2F0aW9uX21ldGhvZBgEIAEoDjJdLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TaW11bGF0aW9uTW9kaWZpY2F0aW9u", - "TWV0aG9kRW51bS5TaW11bGF0aW9uTW9kaWZpY2F0aW9uTWV0aG9kQgPgQQMS", - "HAoKc3RhcnRfZGF0ZRgNIAEoCUID4EEDSAKIAQESGgoIZW5kX2RhdGUYDiAB", - "KAlCA+BBA0gDiAEBEl0KEmNwY19iaWRfcG9pbnRfbGlzdBgIIAEoCzI6Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQ3BjQmlkU2ltdWxhdGlv", - "blBvaW50TGlzdEID4EEDSAASXQoSY3B2X2JpZF9wb2ludF9saXN0GAogASgL", - "MjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DcHZCaWRTaW11", - "bGF0aW9uUG9pbnRMaXN0QgPgQQNIABJjChV0YXJnZXRfY3BhX3BvaW50X2xp", - "c3QYCSABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlRh", - "cmdldENwYVNpbXVsYXRpb25Qb2ludExpc3RCA+BBA0gAEmUKFnRhcmdldF9y", - "b2FzX3BvaW50X2xpc3QYCyABKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLlRhcmdldFJvYXNTaW11bGF0aW9uUG9pbnRMaXN0QgPgQQNI", - "ADqfAepBmwEKKmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwU2lt", - "dWxhdGlvbhJtY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYWRHcm91cFNpbXVs", - "YXRpb25zL3thZF9ncm91cF9pZH1+e3R5cGV9fnttb2RpZmljYXRpb25fbWV0", - "aG9kfX57c3RhcnRfZGF0ZX1+e2VuZF9kYXRlfUIMCgpwb2ludF9saXN0Qg4K", - "DF9hZF9ncm91cF9pZEINCgtfc3RhcnRfZGF0ZUILCglfZW5kX2RhdGVCiAIK", - "JmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhZBZEdy", - "b3VwU2ltdWxhdGlvblByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.SimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulation), global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulation.Parser, new[]{ "ResourceName", "AdGroupId", "Type", "ModificationMethod", "StartDate", "EndDate", "CpcBidPointList", "CpvBidPointList", "TargetCpaPointList", "TargetRoasPointList" }, new[]{ "PointList", "AdGroupId", "StartDate", "EndDate" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad group simulation. Supported combinations of advertising - /// channel type, simulation type and simulation modification method is - /// detailed below respectively. - /// - /// 1. SEARCH - CPC_BID - DEFAULT - /// 2. SEARCH - CPC_BID - UNIFORM - /// 3. SEARCH - TARGET_CPA - UNIFORM - /// 4. SEARCH - TARGET_ROAS - UNIFORM - /// 5. DISPLAY - CPC_BID - DEFAULT - /// 6. DISPLAY - CPC_BID - UNIFORM - /// 7. DISPLAY - TARGET_CPA - UNIFORM - /// - public sealed partial class AdGroupSimulation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupSimulation()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupSimulation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupSimulation(AdGroupSimulation other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - adGroupId_ = other.adGroupId_; - type_ = other.type_; - modificationMethod_ = other.modificationMethod_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - switch (other.PointListCase) { - case PointListOneofCase.CpcBidPointList: - CpcBidPointList = other.CpcBidPointList.Clone(); - break; - case PointListOneofCase.CpvBidPointList: - CpvBidPointList = other.CpvBidPointList.Clone(); - break; - case PointListOneofCase.TargetCpaPointList: - TargetCpaPointList = other.TargetCpaPointList.Clone(); - break; - case PointListOneofCase.TargetRoasPointList: - TargetRoasPointList = other.TargetRoasPointList.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupSimulation Clone() { - return new AdGroupSimulation(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the ad group simulation. - /// Ad group simulation resource names have the form: - /// - /// `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_id" field. - public const int AdGroupIdFieldNumber = 12; - private long adGroupId_; - /// - /// Output only. Ad group id of the simulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AdGroupId { - get { if ((_hasBits0 & 1) != 0) { return adGroupId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - adGroupId_ = value; - } - } - /// Gets whether the "ad_group_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "ad_group_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupId() { - _hasBits0 &= ~1; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType type_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified; - /// - /// Output only. The field that the simulation modifies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "modification_method" field. - public const int ModificationMethodFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod modificationMethod_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified; - /// - /// Output only. How the simulation modifies the field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod ModificationMethod { - get { return modificationMethod_; } - set { - modificationMethod_ = value; - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 13; - private string startDate_; - /// - /// Output only. First day on which the simulation is based, in YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_ ?? ""; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDate { - get { return startDate_ != null; } - } - /// Clears the value of the "start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDate() { - startDate_ = null; - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 14; - private string endDate_; - /// - /// Output only. Last day on which the simulation is based, in YYYY-MM-DD format - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_ ?? ""; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDate { - get { return endDate_ != null; } - } - /// Clears the value of the "end_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDate() { - endDate_ = null; - } - - /// Field number for the "cpc_bid_point_list" field. - public const int CpcBidPointListFieldNumber = 8; - /// - /// Output only. Simulation points if the simulation type is CPC_BID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList CpcBidPointList { - get { return pointListCase_ == PointListOneofCase.CpcBidPointList ? (global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.CpcBidPointList; - } - } - - /// Field number for the "cpv_bid_point_list" field. - public const int CpvBidPointListFieldNumber = 10; - /// - /// Output only. Simulation points if the simulation type is CPV_BID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CpvBidSimulationPointList CpvBidPointList { - get { return pointListCase_ == PointListOneofCase.CpvBidPointList ? (global::Google.Ads.GoogleAds.V12.Common.CpvBidSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.CpvBidPointList; - } - } - - /// Field number for the "target_cpa_point_list" field. - public const int TargetCpaPointListFieldNumber = 9; - /// - /// Output only. Simulation points if the simulation type is TARGET_CPA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList TargetCpaPointList { - get { return pointListCase_ == PointListOneofCase.TargetCpaPointList ? (global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.TargetCpaPointList; - } - } - - /// Field number for the "target_roas_point_list" field. - public const int TargetRoasPointListFieldNumber = 11; - /// - /// Output only. Simulation points if the simulation type is TARGET_ROAS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList TargetRoasPointList { - get { return pointListCase_ == PointListOneofCase.TargetRoasPointList ? (global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.TargetRoasPointList; - } - } - - private object pointList_; - /// Enum of possible cases for the "point_list" oneof. - public enum PointListOneofCase { - None = 0, - CpcBidPointList = 8, - CpvBidPointList = 10, - TargetCpaPointList = 9, - TargetRoasPointList = 11, - } - private PointListOneofCase pointListCase_ = PointListOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PointListOneofCase PointListCase { - get { return pointListCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPointList() { - pointListCase_ = PointListOneofCase.None; - pointList_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupSimulation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupSimulation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroupId != other.AdGroupId) return false; - if (Type != other.Type) return false; - if (ModificationMethod != other.ModificationMethod) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if (!object.Equals(CpcBidPointList, other.CpcBidPointList)) return false; - if (!object.Equals(CpvBidPointList, other.CpvBidPointList)) return false; - if (!object.Equals(TargetCpaPointList, other.TargetCpaPointList)) return false; - if (!object.Equals(TargetRoasPointList, other.TargetRoasPointList)) return false; - if (PointListCase != other.PointListCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroupId) hash ^= AdGroupId.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) hash ^= Type.GetHashCode(); - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) hash ^= ModificationMethod.GetHashCode(); - if (HasStartDate) hash ^= StartDate.GetHashCode(); - if (HasEndDate) hash ^= EndDate.GetHashCode(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) hash ^= CpcBidPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.CpvBidPointList) hash ^= CpvBidPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) hash ^= TargetCpaPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) hash ^= TargetRoasPointList.GetHashCode(); - hash ^= (int) pointListCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ModificationMethod); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - output.WriteRawTag(66); - output.WriteMessage(CpcBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - output.WriteRawTag(74); - output.WriteMessage(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.CpvBidPointList) { - output.WriteRawTag(82); - output.WriteMessage(CpvBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - output.WriteRawTag(90); - output.WriteMessage(TargetRoasPointList); - } - if (HasAdGroupId) { - output.WriteRawTag(96); - output.WriteInt64(AdGroupId); - } - if (HasStartDate) { - output.WriteRawTag(106); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(114); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ModificationMethod); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - output.WriteRawTag(66); - output.WriteMessage(CpcBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - output.WriteRawTag(74); - output.WriteMessage(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.CpvBidPointList) { - output.WriteRawTag(82); - output.WriteMessage(CpvBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - output.WriteRawTag(90); - output.WriteMessage(TargetRoasPointList); - } - if (HasAdGroupId) { - output.WriteRawTag(96); - output.WriteInt64(AdGroupId); - } - if (HasStartDate) { - output.WriteRawTag(106); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(114); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroupId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AdGroupId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod); - } - if (HasStartDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (HasEndDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpcBidPointList); - } - if (pointListCase_ == PointListOneofCase.CpvBidPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpvBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoasPointList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupSimulation other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroupId) { - AdGroupId = other.AdGroupId; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - Type = other.Type; - } - if (other.ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - ModificationMethod = other.ModificationMethod; - } - if (other.HasStartDate) { - StartDate = other.StartDate; - } - if (other.HasEndDate) { - EndDate = other.EndDate; - } - switch (other.PointListCase) { - case PointListOneofCase.CpcBidPointList: - if (CpcBidPointList == null) { - CpcBidPointList = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - } - CpcBidPointList.MergeFrom(other.CpcBidPointList); - break; - case PointListOneofCase.CpvBidPointList: - if (CpvBidPointList == null) { - CpvBidPointList = new global::Google.Ads.GoogleAds.V12.Common.CpvBidSimulationPointList(); - } - CpvBidPointList.MergeFrom(other.CpvBidPointList); - break; - case PointListOneofCase.TargetCpaPointList: - if (TargetCpaPointList == null) { - TargetCpaPointList = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - } - TargetCpaPointList.MergeFrom(other.TargetCpaPointList); - break; - case PointListOneofCase.TargetRoasPointList: - if (TargetRoasPointList == null) { - TargetRoasPointList = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - } - TargetRoasPointList.MergeFrom(other.TargetRoasPointList); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 32: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - subBuilder.MergeFrom(CpcBidPointList); - } - input.ReadMessage(subBuilder); - CpcBidPointList = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - subBuilder.MergeFrom(TargetCpaPointList); - } - input.ReadMessage(subBuilder); - TargetCpaPointList = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.CpvBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpvBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpvBidPointList) { - subBuilder.MergeFrom(CpvBidPointList); - } - input.ReadMessage(subBuilder); - CpvBidPointList = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - subBuilder.MergeFrom(TargetRoasPointList); - } - input.ReadMessage(subBuilder); - TargetRoasPointList = subBuilder; - break; - } - case 96: { - AdGroupId = input.ReadInt64(); - break; - } - case 106: { - StartDate = input.ReadString(); - break; - } - case 114: { - EndDate = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 32: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - subBuilder.MergeFrom(CpcBidPointList); - } - input.ReadMessage(subBuilder); - CpcBidPointList = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - subBuilder.MergeFrom(TargetCpaPointList); - } - input.ReadMessage(subBuilder); - TargetCpaPointList = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.CpvBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpvBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpvBidPointList) { - subBuilder.MergeFrom(CpvBidPointList); - } - input.ReadMessage(subBuilder); - CpvBidPointList = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - subBuilder.MergeFrom(TargetRoasPointList); - } - input.ReadMessage(subBuilder); - TargetRoasPointList = subBuilder; - break; - } - case 96: { - AdGroupId = input.ReadInt64(); - break; - } - case 106: { - StartDate = input.ReadString(); - break; - } - case 114: { - EndDate = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupSimulationResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupSimulationResourceNames.g.cs deleted file mode 100755 index 672dfb9dc..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupSimulationResourceNames.g.cs +++ /dev/null @@ -1,364 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdGroupSimulation resource. - public sealed partial class AdGroupSimulationName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - CustomerAdGroupTypeModificationMethodStartDateEndDate = 1, - } - - private static gax::PathTemplate s_customerAdGroupTypeModificationMethodStartDateEndDate = new gax::PathTemplate("customers/{customer_id}/adGroupSimulations/{ad_group_id_type_modification_method_start_date_end_date}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdGroupSimulationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdGroupSimulationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdGroupSimulationName FromCustomerAdGroupTypeModificationMethodStartDateEndDate(string customerId, string adGroupId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - new AdGroupSimulationName(ResourceNameType.CustomerAdGroupTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string Format(string customerId, string adGroupId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - FormatCustomerAdGroupTypeModificationMethodStartDateEndDate(customerId, adGroupId, typeId, modificationMethodId, startDateId, endDateId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string FormatCustomerAdGroupTypeModificationMethodStartDateEndDate(string customerId, string adGroupId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - s_customerAdGroupTypeModificationMethodStartDateEndDate.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdGroupSimulationName Parse(string adGroupSimulationName) => Parse(adGroupSimulationName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdGroupSimulationName Parse(string adGroupSimulationName, bool allowUnparsed) => - TryParse(adGroupSimulationName, allowUnparsed, out AdGroupSimulationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupSimulationName, out AdGroupSimulationName result) => - TryParse(adGroupSimulationName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adGroupSimulationName, bool allowUnparsed, out AdGroupSimulationName result) - { - gax::GaxPreconditions.CheckNotNull(adGroupSimulationName, nameof(adGroupSimulationName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupTypeModificationMethodStartDateEndDate.TryParseName(adGroupSimulationName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupTypeModificationMethodStartDateEndDate(resourceName[0], split1[0], split1[1], split1[2], split1[3], split1[4]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adGroupSimulationName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdGroupSimulationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string customerId = null, string endDateId = null, string modificationMethodId = null, string startDateId = null, string typeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CustomerId = customerId; - EndDateId = endDateId; - ModificationMethodId = modificationMethodId; - StartDateId = startDateId; - TypeId = typeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// - /// - /// customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - public AdGroupSimulationName(string customerId, string adGroupId, string typeId, string modificationMethodId, string startDateId, string endDateId) : this(ResourceNameType.CustomerAdGroupTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The EndDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string EndDateId { get; } - - /// - /// The ModificationMethod ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ModificationMethodId { get; } - - /// - /// The StartDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string StartDateId { get; } - - /// - /// The Type ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupTypeModificationMethodStartDateEndDate: return s_customerAdGroupTypeModificationMethodStartDateEndDate.Expand(CustomerId, $"{AdGroupId}~{TypeId}~{ModificationMethodId}~{StartDateId}~{EndDateId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdGroupSimulationName); - - /// - public bool Equals(AdGroupSimulationName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdGroupSimulationName a, AdGroupSimulationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdGroupSimulationName a, AdGroupSimulationName b) => !(a == b); - } - - public partial class AdGroupSimulation - { - /// - /// -typed view over the resource name property. - /// - internal AdGroupSimulationName ResourceNameAsAdGroupSimulationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdGroupSimulationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupStatus.g.cs deleted file mode 100755 index 59cafc407..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupStatus.g.cs +++ /dev/null @@ -1,242 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_group_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_group_status.proto - public static partial class AdGroupStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_group_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfZ3JvdXBfc3Rh", - "dHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiaAoR", - "QWRHcm91cFN0YXR1c0VudW0iUwoNQWRHcm91cFN0YXR1cxIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISCgoGUEFVU0VEEAMS", - "CwoHUkVNT1ZFRBAEQuwBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQhJBZEdyb3VwU3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVt", - "c8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusEnum.Types.AdGroupStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of an ad group. - /// - public sealed partial class AdGroupStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdGroupStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupStatusEnum(AdGroupStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupStatusEnum Clone() { - return new AdGroupStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an ad group. - /// - public enum AdGroupStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The ad group is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The ad group is paused. - /// - [pbr::OriginalName("PAUSED")] Paused = 3, - /// - /// The ad group is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdGroupType.g.cs b/Google.Ads.GoogleAds/src/V12/AdGroupType.g.cs deleted file mode 100755 index db91fcc92..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdGroupType.g.cs +++ /dev/null @@ -1,304 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_group_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_group_type.proto - public static partial class AdGroupTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_group_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdGroupTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfZ3JvdXBfdHlw", - "ZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zItIDCg9B", - "ZEdyb3VwVHlwZUVudW0ivgMKC0FkR3JvdXBUeXBlEg8KC1VOU1BFQ0lGSUVE", - "EAASCwoHVU5LTk9XThABEhMKD1NFQVJDSF9TVEFOREFSRBACEhQKEERJU1BM", - "QVlfU1RBTkRBUkQQAxIYChRTSE9QUElOR19QUk9EVUNUX0FEUxAEEg0KCUhP", - "VEVMX0FEUxAGEhYKElNIT1BQSU5HX1NNQVJUX0FEUxAHEhAKDFZJREVPX0JV", - "TVBFUhAIEh0KGVZJREVPX1RSVUVfVklFV19JTl9TVFJFQU0QCRIeChpWSURF", - "T19UUlVFX1ZJRVdfSU5fRElTUExBWRAKEiEKHVZJREVPX05PTl9TS0lQUEFC", - "TEVfSU5fU1RSRUFNEAsSEwoPVklERU9fT1VUU1RSRUFNEAwSFgoSU0VBUkNI", - "X0RZTkFNSUNfQURTEA0SIwofU0hPUFBJTkdfQ09NUEFSSVNPTl9MSVNUSU5H", - "X0FEUxAOEhYKElBST01PVEVEX0hPVEVMX0FEUxAPEhQKEFZJREVPX1JFU1BP", - "TlNJVkUQEBIZChVWSURFT19FRkZJQ0lFTlRfUkVBQ0gQERIWChJTTUFSVF9D", - "QU1QQUlHTl9BRFMQEkLqAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtc0IQQWRHcm91cFR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "O2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1z", - "ygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeEnum.Types.AdGroupType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Defines types of an ad group, specific to a particular campaign channel - /// type. This type drives validations that restrict which entities can be - /// added to the ad group. - /// - public sealed partial class AdGroupTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdGroupTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupTypeEnum(AdGroupTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupTypeEnum Clone() { - return new AdGroupTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdGroupTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum listing the possible types of an ad group. - /// - public enum AdGroupType { - /// - /// The type has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The default ad group type for Search campaigns. - /// - [pbr::OriginalName("SEARCH_STANDARD")] SearchStandard = 2, - /// - /// The default ad group type for Display campaigns. - /// - [pbr::OriginalName("DISPLAY_STANDARD")] DisplayStandard = 3, - /// - /// The ad group type for Shopping campaigns serving standard product ads. - /// - [pbr::OriginalName("SHOPPING_PRODUCT_ADS")] ShoppingProductAds = 4, - /// - /// The default ad group type for Hotel campaigns. - /// - [pbr::OriginalName("HOTEL_ADS")] HotelAds = 6, - /// - /// The type for ad groups in Smart Shopping campaigns. - /// - [pbr::OriginalName("SHOPPING_SMART_ADS")] ShoppingSmartAds = 7, - /// - /// Short unskippable in-stream video ads. - /// - [pbr::OriginalName("VIDEO_BUMPER")] VideoBumper = 8, - /// - /// TrueView (skippable) in-stream video ads. - /// - [pbr::OriginalName("VIDEO_TRUE_VIEW_IN_STREAM")] VideoTrueViewInStream = 9, - /// - /// TrueView in-display video ads. - /// - [pbr::OriginalName("VIDEO_TRUE_VIEW_IN_DISPLAY")] VideoTrueViewInDisplay = 10, - /// - /// Unskippable in-stream video ads. - /// - [pbr::OriginalName("VIDEO_NON_SKIPPABLE_IN_STREAM")] VideoNonSkippableInStream = 11, - /// - /// Outstream video ads. - /// - [pbr::OriginalName("VIDEO_OUTSTREAM")] VideoOutstream = 12, - /// - /// Ad group type for Dynamic Search Ads ad groups. - /// - [pbr::OriginalName("SEARCH_DYNAMIC_ADS")] SearchDynamicAds = 13, - /// - /// The type for ad groups in Shopping Comparison Listing campaigns. - /// - [pbr::OriginalName("SHOPPING_COMPARISON_LISTING_ADS")] ShoppingComparisonListingAds = 14, - /// - /// The ad group type for Promoted Hotel ad groups. - /// - [pbr::OriginalName("PROMOTED_HOTEL_ADS")] PromotedHotelAds = 15, - /// - /// Video responsive ad groups. - /// - [pbr::OriginalName("VIDEO_RESPONSIVE")] VideoResponsive = 16, - /// - /// Video efficient reach ad groups. - /// - [pbr::OriginalName("VIDEO_EFFICIENT_REACH")] VideoEfficientReach = 17, - /// - /// Ad group type for Smart campaigns. - /// - [pbr::OriginalName("SMART_CAMPAIGN_ADS")] SmartCampaignAds = 18, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdNetworkType.g.cs b/Google.Ads.GoogleAds/src/V12/AdNetworkType.g.cs deleted file mode 100755 index d6e2040da..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdNetworkType.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_network_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_network_type.proto - public static partial class AdNetworkTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_network_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdNetworkTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfbmV0d29ya190", - "eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiowEK", - "EUFkTmV0d29ya1R5cGVFbnVtIo0BCg1BZE5ldHdvcmtUeXBlEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEgoKBlNFQVJDSBACEhMKD1NFQVJDSF9Q", - "QVJUTkVSUxADEgsKB0NPTlRFTlQQBBISCg5ZT1VUVUJFX1NFQVJDSBAFEhEK", - "DVlPVVRVQkVfV0FUQ0gQBhIJCgVNSVhFRBAHQuwBCiJjb20uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zQhJBZE5ldHdvcmtUeXBlUHJvdG9QAVpD", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "bnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdNetworkTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AdNetworkTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdNetworkTypeEnum.Types.AdNetworkType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of Google Ads network types. - /// - public sealed partial class AdNetworkTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdNetworkTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdNetworkTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdNetworkTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdNetworkTypeEnum(AdNetworkTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdNetworkTypeEnum Clone() { - return new AdNetworkTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdNetworkTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdNetworkTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdNetworkTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdNetworkTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates Google Ads network types. - /// - public enum AdNetworkType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Google search. - /// - [pbr::OriginalName("SEARCH")] Search = 2, - /// - /// Search partners. - /// - [pbr::OriginalName("SEARCH_PARTNERS")] SearchPartners = 3, - /// - /// Display Network. - /// - [pbr::OriginalName("CONTENT")] Content = 4, - /// - /// YouTube Search. - /// - [pbr::OriginalName("YOUTUBE_SEARCH")] YoutubeSearch = 5, - /// - /// YouTube Videos - /// - [pbr::OriginalName("YOUTUBE_WATCH")] YoutubeWatch = 6, - /// - /// Cross-network. - /// - [pbr::OriginalName("MIXED")] Mixed = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdParameter.g.cs b/Google.Ads.GoogleAds/src/V12/AdParameter.g.cs deleted file mode 100755 index 0f2f8368b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdParameter.g.cs +++ /dev/null @@ -1,434 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_parameter.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_parameter.proto - public static partial class AdParameterReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_parameter.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdParameterReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX3BhcmFt", - "ZXRlci5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90byKkAwoLQWRQYXJhbWV0ZXISQwoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIs4EEF+kEmCiRnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "QWRQYXJhbWV0ZXISUgoSYWRfZ3JvdXBfY3JpdGVyaW9uGAUgASgJQjHgQQX6", - "QSsKKWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwQ3JpdGVyaW9u", - "SACIAQESIQoPcGFyYW1ldGVyX2luZGV4GAYgASgDQgPgQQVIAYgBARIbCg5p", - "bnNlcnRpb25fdGV4dBgHIAEoCUgCiAEBOn7qQXsKJGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9BZFBhcmFtZXRlchJTY3VzdG9tZXJzL3tjdXN0b21lcl9p", - "ZH0vYWRQYXJhbWV0ZXJzL3thZF9ncm91cF9pZH1+e2NyaXRlcmlvbl9pZH1+", - "e3BhcmFtZXRlcl9pbmRleH1CFQoTX2FkX2dyb3VwX2NyaXRlcmlvbkISChBf", - "cGFyYW1ldGVyX2luZGV4QhEKD19pbnNlcnRpb25fdGV4dEKCAgomY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCEEFkUGFyYW1ldGVy", - "UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FB", - "qgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdParameter), global::Google.Ads.GoogleAds.V12.Resources.AdParameter.Parser, new[]{ "ResourceName", "AdGroupCriterion", "ParameterIndex", "InsertionText" }, new[]{ "AdGroupCriterion", "ParameterIndex", "InsertionText" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad parameter that is used to update numeric values (such as prices or - /// inventory levels) in any text line of an ad (including URLs). There can - /// be a maximum of two AdParameters per ad group criterion. (One with - /// parameter_index = 1 and one with parameter_index = 2.) - /// In the ad the parameters are referenced by a placeholder of the form - /// "{param#:value}". For example, "{param1:$17}" - /// - public sealed partial class AdParameter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdParameter()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdParameterReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameter(AdParameter other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - adGroupCriterion_ = other.adGroupCriterion_; - parameterIndex_ = other.parameterIndex_; - insertionText_ = other.insertionText_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameter Clone() { - return new AdParameter(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the ad parameter. - /// Ad parameter resource names have the form: - /// - /// `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_criterion" field. - public const int AdGroupCriterionFieldNumber = 5; - private string adGroupCriterion_; - /// - /// Immutable. The ad group criterion that this ad parameter belongs to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupCriterion { - get { return adGroupCriterion_ ?? ""; } - set { - adGroupCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupCriterion { - get { return adGroupCriterion_ != null; } - } - /// Clears the value of the "ad_group_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupCriterion() { - adGroupCriterion_ = null; - } - - /// Field number for the "parameter_index" field. - public const int ParameterIndexFieldNumber = 6; - private long parameterIndex_; - /// - /// Immutable. The unique index of this ad parameter. Must be either 1 or 2. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ParameterIndex { - get { if ((_hasBits0 & 1) != 0) { return parameterIndex_; } else { return 0L; } } - set { - _hasBits0 |= 1; - parameterIndex_ = value; - } - } - /// Gets whether the "parameter_index" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasParameterIndex { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "parameter_index" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParameterIndex() { - _hasBits0 &= ~1; - } - - /// Field number for the "insertion_text" field. - public const int InsertionTextFieldNumber = 7; - private string insertionText_; - /// - /// Numeric value to insert into the ad text. The following restrictions - /// apply: - /// - Can use comma or period as a separator, with an optional period or - /// comma (respectively) for fractional values. For example, 1,000,000.00 - /// and 2.000.000,10 are valid. - /// - Can be prepended or appended with a currency symbol. For example, - /// $99.99 is valid. - /// - Can be prepended or appended with a currency code. For example, 99.99USD - /// and EUR200 are valid. - /// - Can use '%'. For example, 1.0% and 1,0% are valid. - /// - Can use plus or minus. For example, -10.99 and 25+ are valid. - /// - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are - /// valid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string InsertionText { - get { return insertionText_ ?? ""; } - set { - insertionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "insertion_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasInsertionText { - get { return insertionText_ != null; } - } - /// Clears the value of the "insertion_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearInsertionText() { - insertionText_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdParameter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdParameter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AdGroupCriterion != other.AdGroupCriterion) return false; - if (ParameterIndex != other.ParameterIndex) return false; - if (InsertionText != other.InsertionText) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasAdGroupCriterion) hash ^= AdGroupCriterion.GetHashCode(); - if (HasParameterIndex) hash ^= ParameterIndex.GetHashCode(); - if (HasInsertionText) hash ^= InsertionText.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(42); - output.WriteString(AdGroupCriterion); - } - if (HasParameterIndex) { - output.WriteRawTag(48); - output.WriteInt64(ParameterIndex); - } - if (HasInsertionText) { - output.WriteRawTag(58); - output.WriteString(InsertionText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(42); - output.WriteString(AdGroupCriterion); - } - if (HasParameterIndex) { - output.WriteRawTag(48); - output.WriteInt64(ParameterIndex); - } - if (HasInsertionText) { - output.WriteRawTag(58); - output.WriteString(InsertionText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasAdGroupCriterion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupCriterion); - } - if (HasParameterIndex) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ParameterIndex); - } - if (HasInsertionText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InsertionText); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdParameter other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasAdGroupCriterion) { - AdGroupCriterion = other.AdGroupCriterion; - } - if (other.HasParameterIndex) { - ParameterIndex = other.ParameterIndex; - } - if (other.HasInsertionText) { - InsertionText = other.InsertionText; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 42: { - AdGroupCriterion = input.ReadString(); - break; - } - case 48: { - ParameterIndex = input.ReadInt64(); - break; - } - case 58: { - InsertionText = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 42: { - AdGroupCriterion = input.ReadString(); - break; - } - case 48: { - ParameterIndex = input.ReadInt64(); - break; - } - case 58: { - InsertionText = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdParameterError.g.cs b/Google.Ads.GoogleAds/src/V12/AdParameterError.g.cs deleted file mode 100755 index 155929547..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdParameterError.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_parameter_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_parameter_error.proto - public static partial class AdParameterErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_parameter_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdParameterErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX3BhcmFtZXRl", - "cl9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cyKTAQoUQWRQYXJhbWV0ZXJFcnJvckVudW0iewoQQWRQYXJhbWV0ZXJFcnJv", - "chIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARImCiJBRF9HUk9VUF9D", - "UklURVJJT05fTVVTVF9CRV9LRVlXT1JEEAISIQodSU5WQUxJRF9JTlNFUlRJ", - "T05fVEVYVF9GT1JNQVQQA0L1AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnNCFUFkUGFyYW1ldGVyRXJyb3JQcm90b1ABWkVnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9y", - "c+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorEnum.Types.AdParameterError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad parameter errors. - /// - public sealed partial class AdParameterErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdParameterErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameterErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameterErrorEnum(AdParameterErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameterErrorEnum Clone() { - return new AdParameterErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdParameterErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdParameterErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdParameterErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdParameterErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad parameter errors. - /// - public enum AdParameterError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The ad group criterion must be a keyword criterion. - /// - [pbr::OriginalName("AD_GROUP_CRITERION_MUST_BE_KEYWORD")] AdGroupCriterionMustBeKeyword = 2, - /// - /// The insertion text is invalid. - /// - [pbr::OriginalName("INVALID_INSERTION_TEXT_FORMAT")] InvalidInsertionTextFormat = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdParameterResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdParameterResourceNames.g.cs deleted file mode 100755 index bda48572e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdParameterResourceNames.g.cs +++ /dev/null @@ -1,326 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdParameter resource. - public sealed partial class AdParameterName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}. - /// - CustomerAdGroupCriterionParameterIndex = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterionParameterIndex = new gax::PathTemplate("customers/{customer_id}/adParameters/{ad_group_id_criterion_id_parameter_index}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdParameterName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdParameterName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The ParameterIndex ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdParameterName FromCustomerAdGroupCriterionParameterIndex(string customerId, string adGroupId, string criterionId, string parameterIndexId) => - new AdParameterName(ResourceNameType.CustomerAdGroupCriterionParameterIndex, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), parameterIndexId: gax::GaxPreconditions.CheckNotNullOrEmpty(parameterIndexId, nameof(parameterIndexId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The ParameterIndex ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}. - /// - public static string Format(string customerId, string adGroupId, string criterionId, string parameterIndexId) => - FormatCustomerAdGroupCriterionParameterIndex(customerId, adGroupId, criterionId, parameterIndexId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The ParameterIndex ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}. - /// - public static string FormatCustomerAdGroupCriterionParameterIndex(string customerId, string adGroupId, string criterionId, string parameterIndexId) => - s_customerAdGroupCriterionParameterIndex.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(parameterIndexId, nameof(parameterIndexId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdParameterName Parse(string adParameterName) => Parse(adParameterName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdParameterName Parse(string adParameterName, bool allowUnparsed) => - TryParse(adParameterName, allowUnparsed, out AdParameterName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adParameterName, out AdParameterName result) => - TryParse(adParameterName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adParameterName, bool allowUnparsed, out AdParameterName result) - { - gax::GaxPreconditions.CheckNotNull(adParameterName, nameof(adParameterName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterionParameterIndex.TryParseName(adParameterName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterionParameterIndex(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adParameterName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdParameterName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null, string parameterIndexId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - ParameterIndexId = parameterIndexId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The ParameterIndex ID. Must not be null or empty. - public AdParameterName(string customerId, string adGroupId, string criterionId, string parameterIndexId) : this(ResourceNameType.CustomerAdGroupCriterionParameterIndex, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), parameterIndexId: gax::GaxPreconditions.CheckNotNullOrEmpty(parameterIndexId, nameof(parameterIndexId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ParameterIndex ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ParameterIndexId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterionParameterIndex: return s_customerAdGroupCriterionParameterIndex.Expand(CustomerId, $"{AdGroupId}~{CriterionId}~{ParameterIndexId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdParameterName); - - /// - public bool Equals(AdParameterName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdParameterName a, AdParameterName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdParameterName a, AdParameterName b) => !(a == b); - } - - public partial class AdParameter - { - /// - /// -typed view over the resource name property. - /// - internal AdParameterName ResourceNameAsAdParameterName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdParameterName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupCriterionName AdGroupCriterionAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(AdGroupCriterion) ? null : AdGroupCriterionName.Parse(AdGroupCriterion, allowUnparsed: true); - set => AdGroupCriterion = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdParameterService.g.cs b/Google.Ads.GoogleAds/src/V12/AdParameterService.g.cs deleted file mode 100755 index 00662cbeb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdParameterService.g.cs +++ /dev/null @@ -1,1307 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_parameter_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_parameter_service.proto - public static partial class AdParameterServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_parameter_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdParameterServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfcGFyYW1l", - "dGVyX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jlc3Bv", - "bnNlX2NvbnRlbnRfdHlwZS5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3Jlc291cmNlcy9hZF9wYXJhbWV0ZXIucHJvdG8aHGdvb2dsZS9hcGkv", - "YW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9n", - "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jl", - "c291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90", - "bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8iowIKGU11dGF0ZUFkUGFyYW1l", - "dGVyc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJQCgpvcGVy", - "YXRpb25zGAIgAygLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLkFkUGFyYW1ldGVyT3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWls", - "dXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2Vf", - "Y29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVu", - "dFR5cGUilwIKFEFkUGFyYW1ldGVyT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNr", - "GAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJBCgZjcmVhdGUY", - "ASABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFk", - "UGFyYW1ldGVySAASQQoGdXBkYXRlGAIgASgLMi8uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5BZFBhcmFtZXRlckgAEjsKBnJlbW92ZRgD", - "IAEoCUIp+kEmCiRnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRQYXJhbWV0", - "ZXJIAEILCglvcGVyYXRpb24inAEKGk11dGF0ZUFkUGFyYW1ldGVyc1Jlc3Bv", - "bnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzISLmdvb2dsZS5y", - "cGMuU3RhdHVzEksKB3Jlc3VsdHMYAiADKAsyOi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRQYXJhbWV0ZXJSZXN1bHQiogEK", - "F011dGF0ZUFkUGFyYW1ldGVyUmVzdWx0EkAKDXJlc291cmNlX25hbWUYASAB", - "KAlCKfpBJgokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkUGFyYW1ldGVy", - "EkUKDGFkX3BhcmFtZXRlchgCIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuQWRQYXJhbWV0ZXIyxwIKEkFkUGFyYW1ldGVyU2Vy", - "dmljZRLpAQoSTXV0YXRlQWRQYXJhbWV0ZXJzEjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkUGFyYW1ldGVyc1JlcXVlc3Qa", - "PS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRQ", - "YXJhbWV0ZXJzUmVzcG9uc2UiVoLT5JMCNyIyL3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2FkUGFyYW1ldGVyczptdXRhdGU6ASraQRZjdXN0b21l", - "cl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23S", - "QSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCgwIK", - "JWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCF0FkUGFy", - "YW1ldGVyU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2Vy", - "dmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2Vydmlj", - "ZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdParameterReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation), global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult.Parser, new[]{ "ResourceName", "AdParameter" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdParameterService.MutateAdParameters][google.ads.googleads.v12.services.AdParameterService.MutateAdParameters] - /// - public sealed partial class MutateAdParametersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdParametersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdParameterServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParametersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParametersRequest(MutateAdParametersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParametersRequest Clone() { - return new MutateAdParametersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ad parameters are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ad parameters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdParametersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdParametersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdParametersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on ad parameter. - /// - public sealed partial class AdParameterOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdParameterOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdParameterServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameterOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameterOperation(AdParameterOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdParameterOperation Clone() { - return new AdParameterOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new ad parameter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdParameter Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AdParameter) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The ad parameter is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdParameter Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AdParameter) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the ad parameter to remove is - /// expected in this format: - /// - /// `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdParameterOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdParameterOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdParameterOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdParameter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdParameter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AdParameter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AdParameter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad parameter mutate. - /// - public sealed partial class MutateAdParametersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdParametersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdParameterServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParametersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParametersResponse(MutateAdParametersResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParametersResponse Clone() { - return new MutateAdParametersResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdParametersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdParametersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdParametersResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad parameter mutate. - /// - public sealed partial class MutateAdParameterResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdParameterResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdParameterServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParameterResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParameterResult(MutateAdParameterResult other) : this() { - resourceName_ = other.resourceName_; - adParameter_ = other.adParameter_ != null ? other.adParameter_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdParameterResult Clone() { - return new MutateAdParameterResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// The resource name returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_parameter" field. - public const int AdParameterFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdParameter adParameter_; - /// - /// The mutated AdParameter with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdParameter AdParameter { - get { return adParameter_; } - set { - adParameter_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdParameterResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdParameterResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AdParameter, other.AdParameter)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (adParameter_ != null) hash ^= AdParameter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adParameter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdParameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (adParameter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdParameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (adParameter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdParameter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdParameterResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.adParameter_ != null) { - if (adParameter_ == null) { - AdParameter = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - AdParameter.MergeFrom(other.AdParameter); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adParameter_ == null) { - AdParameter = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - input.ReadMessage(AdParameter); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (adParameter_ == null) { - AdParameter = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - input.ReadMessage(AdParameter); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdParameterServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdParameterServiceClient.g.cs deleted file mode 100755 index c1c6dab6a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdParameterServiceClient.g.cs +++ /dev/null @@ -1,481 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdParameterServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdParameterServiceSettings GetDefault() => new AdParameterServiceSettings(); - - /// Constructs a new object with default settings. - public AdParameterServiceSettings() - { - } - - private AdParameterServiceSettings(AdParameterServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAdParametersSettings = existing.MutateAdParametersSettings; - OnCopy(existing); - } - - partial void OnCopy(AdParameterServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AdParameterServiceClient.MutateAdParameters and AdParameterServiceClient.MutateAdParametersAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdParametersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdParameterServiceSettings Clone() => new AdParameterServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AdParameterServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdParameterServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdParameterServiceClientBuilder() : base(AdParameterServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdParameterServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdParameterServiceClient Build() - { - AdParameterServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdParameterServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdParameterServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdParameterServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdParameterServiceClient.ChannelPool; - } - - /// AdParameterService client wrapper, for convenient use. - /// - /// Service to manage ad parameters. - /// - public abstract partial class AdParameterServiceClient - { - /// - /// The default endpoint for the AdParameterService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdParameterService scopes. - /// - /// The default AdParameterService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdParameterService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdParameterServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AdParameterServiceClient Create() => new AdParameterServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdParameterServiceClient Create(grpccore::CallInvoker callInvoker, AdParameterServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdParameterService.AdParameterServiceClient grpcClient = new AdParameterService.AdParameterServiceClient(callInvoker); - return new AdParameterServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdParameterService client - public virtual AdParameterService.AdParameterServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdParametersResponse MutateAdParameters(MutateAdParametersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdParametersAsync(MutateAdParametersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdParametersAsync(MutateAdParametersRequest request, st::CancellationToken cancellationToken) => - MutateAdParametersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose ad parameters are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad parameters. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdParametersResponse MutateAdParameters(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdParameters(new MutateAdParametersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose ad parameters are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad parameters. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdParametersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdParametersAsync(new MutateAdParametersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose ad parameters are being modified. - /// - /// - /// Required. The list of operations to perform on individual ad parameters. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdParametersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdParametersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdParameterService client wrapper implementation, for convenient use. - /// - /// Service to manage ad parameters. - /// - public sealed partial class AdParameterServiceClientImpl : AdParameterServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAdParameters; - - /// - /// Constructs a client wrapper for the AdParameterService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdParameterServiceClientImpl(AdParameterService.AdParameterServiceClient grpcClient, AdParameterServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdParameterServiceSettings effectiveSettings = settings ?? AdParameterServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAdParameters = clientHelper.BuildApiCall("MutateAdParameters", grpcClient.MutateAdParametersAsync, grpcClient.MutateAdParameters, effectiveSettings.MutateAdParametersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAdParameters); - Modify_MutateAdParametersApiCall(ref _callMutateAdParameters); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAdParametersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdParameterService.AdParameterServiceClient grpcClient, AdParameterServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdParameterService client - public override AdParameterService.AdParameterServiceClient GrpcClient { get; } - - partial void Modify_MutateAdParametersRequest(ref MutateAdParametersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdParametersResponse MutateAdParameters(MutateAdParametersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdParametersRequest(ref request, ref callSettings); - return _callMutateAdParameters.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdParametersAsync(MutateAdParametersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdParametersRequest(ref request, ref callSettings); - return _callMutateAdParameters.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdParameterServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdParameterServiceGrpc.g.cs deleted file mode 100755 index e9f15e2c6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdParameterServiceGrpc.g.cs +++ /dev/null @@ -1,282 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_parameter_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ad parameters. - /// - public static partial class AdParameterService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdParameterService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdParametersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdParametersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAdParameters = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAdParameters", - __Marshaller_google_ads_googleads_v12_services_MutateAdParametersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdParametersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdParameterServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdParameterService - [grpc::BindServiceMethod(typeof(AdParameterService), "BindService")] - public abstract partial class AdParameterServiceBase - { - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAdParameters(global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdParameterService - public partial class AdParameterServiceClient : grpc::ClientBase - { - /// Creates a new client for AdParameterService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdParameterServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdParameterService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdParameterServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdParameterServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdParameterServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersResponse MutateAdParameters(global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdParameters(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersResponse MutateAdParameters(global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAdParameters, null, options, request); - } - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdParametersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdParametersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes ad parameters. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdParameterError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdParametersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdParametersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAdParameters, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdParameterServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdParameterServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdParameterServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAdParameters, serviceImpl.MutateAdParameters).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdParameterServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAdParameters, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAdParameters)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdParameterServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdParameterServiceResourceNames.g.cs deleted file mode 100755 index 982d3cf01..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdParameterServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AdParameterOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdParameterName RemoveAsAdParameterName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AdParameterName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAdParameterResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdParameterName ResourceNameAsAdParameterName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdParameterName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdResourceNames.g.cs deleted file mode 100755 index b36f219d7..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdResourceNames.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Ad resource. - public sealed partial class AdName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/ads/{ad_id}. - CustomerAd = 1, - } - - private static gax::PathTemplate s_customerAd = new gax::PathTemplate("customers/{customer_id}/ads/{ad_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided . - /// - public static AdName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/ads/{ad_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdName FromCustomerAd(string customerId, string adId) => - new AdName(ResourceNameType.CustomerAd, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/ads/{ad_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The string representation of this with pattern customers/{customer_id}/ads/{ad_id} - /// . - /// - public static string Format(string customerId, string adId) => FormatCustomerAd(customerId, adId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/ads/{ad_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - /// - /// The string representation of this with pattern customers/{customer_id}/ads/{ad_id} - /// . - /// - public static string FormatCustomerAd(string customerId, string adId) => - s_customerAd.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/ads/{ad_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdName Parse(string adName) => Parse(adName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/ads/{ad_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdName Parse(string adName, bool allowUnparsed) => - TryParse(adName, allowUnparsed, out AdName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// Tries to parse the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/ads/{ad_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adName, out AdName result) => TryParse(adName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/ads/{ad_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adName, bool allowUnparsed, out AdName result) - { - gax::GaxPreconditions.CheckNotNull(adName, nameof(adName)); - gax::TemplatedResourceName resourceName; - if (s_customerAd.TryParseName(adName, out resourceName)) - { - result = FromCustomerAd(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AdName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdId = adId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/ads/{ad_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Ad ID. Must not be null or empty. - public AdName(string customerId, string adId) : this(ResourceNameType.CustomerAd, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adId: gax::GaxPreconditions.CheckNotNullOrEmpty(adId, nameof(adId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Ad ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAd: return s_customerAd.Expand(CustomerId, AdId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdName); - - /// - public bool Equals(AdName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdName a, AdName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdName a, AdName b) => !(a == b); - } - - public partial class Ad - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdName ResourceNameAsAdName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdName AdName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AdName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdScheduleView.g.cs b/Google.Ads.GoogleAds/src/V12/AdScheduleView.g.cs deleted file mode 100755 index c57f8ab47..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdScheduleView.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/ad_schedule_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/ad_schedule_view.proto - public static partial class AdScheduleViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/ad_schedule_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdScheduleViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX3NjaGVk", - "dWxlX3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8izAEKDkFkU2NoZWR1bGVWaWV3EkYKDXJl", - "c291cmNlX25hbWUYASABKAlCL+BBA/pBKQonZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0FkU2NoZWR1bGVWaWV3OnLqQW8KJ2dvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9BZFNjaGVkdWxlVmlldxJEY3VzdG9tZXJzL3tjdXN0b21lcl9p", - "ZH0vYWRTY2hlZHVsZVZpZXdzL3tjYW1wYWlnbl9pZH1+e2NyaXRlcmlvbl9p", - "ZH1ChQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "QhNBZFNjaGVkdWxlVmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "O3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5S", - "ZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz", - "6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AdScheduleView), global::Google.Ads.GoogleAds.V12.Resources.AdScheduleView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An ad schedule view summarizes the performance of campaigns by - /// AdSchedule criteria. - /// - public sealed partial class AdScheduleView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdScheduleView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AdScheduleViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdScheduleView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdScheduleView(AdScheduleView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdScheduleView Clone() { - return new AdScheduleView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the ad schedule view. - /// AdSchedule view resource names have the form: - /// - /// `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdScheduleView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdScheduleView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdScheduleView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdScheduleViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdScheduleViewResourceNames.g.cs deleted file mode 100755 index 681680cd1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdScheduleViewResourceNames.g.cs +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AdScheduleView resource. - public sealed partial class AdScheduleViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id} - /// . - /// - CustomerCampaignCriterion = 1, - } - - private static gax::PathTemplate s_customerCampaignCriterion = new gax::PathTemplate("customers/{customer_id}/adScheduleViews/{campaign_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AdScheduleViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AdScheduleViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AdScheduleViewName FromCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - new AdScheduleViewName(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}. - /// - public static string Format(string customerId, string campaignId, string criterionId) => - FormatCustomerCampaignCriterion(customerId, campaignId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}. - /// - public static string FormatCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - s_customerCampaignCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AdScheduleViewName Parse(string adScheduleViewName) => Parse(adScheduleViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AdScheduleViewName Parse(string adScheduleViewName, bool allowUnparsed) => - TryParse(adScheduleViewName, allowUnparsed, out AdScheduleViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adScheduleViewName, out AdScheduleViewName result) => - TryParse(adScheduleViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string adScheduleViewName, bool allowUnparsed, out AdScheduleViewName result) - { - gax::GaxPreconditions.CheckNotNull(adScheduleViewName, nameof(adScheduleViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignCriterion.TryParseName(adScheduleViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(adScheduleViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AdScheduleViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public AdScheduleViewName(string customerId, string campaignId, string criterionId) : this(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignCriterion: return s_customerCampaignCriterion.Expand(CustomerId, $"{CampaignId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AdScheduleViewName); - - /// - public bool Equals(AdScheduleViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AdScheduleViewName a, AdScheduleViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AdScheduleViewName a, AdScheduleViewName b) => !(a == b); - } - - public partial class AdScheduleView - { - /// - /// -typed view over the resource name property. - /// - internal AdScheduleViewName ResourceNameAsAdScheduleViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AdScheduleViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdService.g.cs b/Google.Ads.GoogleAds/src/V12/AdService.g.cs deleted file mode 100755 index 0e26af312..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdService.g.cs +++ /dev/null @@ -1,1453 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/ad_service.proto - public static partial class AdServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/ad_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfc2Vydmlj", - "ZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzGixn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL3BvbGljeS5wcm90bxo6", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jlc3BvbnNlX2NvbnRl", - "bnRfdHlwZS5wcm90bxorZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy9hZC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoX", - "Z29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVo", - "YXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aIGdvb2ds", - "ZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1", - "cy5wcm90byJKCgxHZXRBZFJlcXVlc3QSOgoNcmVzb3VyY2VfbmFtZRgBIAEo", - "CUIj4EEC+kEdChtnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWQikQIKEE11", - "dGF0ZUFkc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJHCgpv", - "cGVyYXRpb25zGAIgAygLMi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkFkT3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAQg", - "ASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgFIAEoDjJLLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25zZUNvbnRlbnRUeXBlRW51", - "bS5SZXNwb25zZUNvbnRlbnRUeXBlEhUKDXZhbGlkYXRlX29ubHkYAyABKAgi", - "5gEKC0FkT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xl", - "LnByb3RvYnVmLkZpZWxkTWFzaxJfChtwb2xpY3lfdmFsaWRhdGlvbl9wYXJh", - "bWV0ZXIYAyABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LlBvbGljeVZhbGlkYXRpb25QYXJhbWV0ZXISOAoGdXBkYXRlGAEgASgLMiYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEgAQgsKCW9w", - "ZXJhdGlvbiKKAQoRTXV0YXRlQWRzUmVzcG9uc2USMQoVcGFydGlhbF9mYWls", - "dXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSQgoHcmVzdWx0", - "cxgCIAMoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5N", - "dXRhdGVBZFJlc3VsdCJ9Cg5NdXRhdGVBZFJlc3VsdBI3Cg1yZXNvdXJjZV9u", - "YW1lGAEgASgJQiD6QR0KG2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BZBIy", - "CgJhZBgCIAEoCzImLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQWQyvQMKCUFkU2VydmljZRKgAQoFR2V0QWQSLy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuR2V0QWRSZXF1ZXN0GiYuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZCI+gtPkkwIoEiYvdjEyL3ty", - "ZXNvdXJjZV9uYW1lPWN1c3RvbWVycy8qL2Fkcy8qfdpBDXJlc291cmNlX25h", - "bWUSxQEKCU11dGF0ZUFkcxIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVBZHNSZXF1ZXN0GjQuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkc1Jlc3BvbnNlIk2C0+STAi4iKS92", - "MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9hZHM6bXV0YXRlOgEq2kEW", - "Y3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdv", - "cmRzQvoBCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "Qg5BZFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZp", - "Y2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2Vz", - "ygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GetAdRequest), global::Google.Ads.GoogleAds.V12.Services.GetAdRequest.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ResponseContentType", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdOperation), global::Google.Ads.GoogleAds.V12.Services.AdOperation.Parser, new[]{ "UpdateMask", "PolicyValidationParameter", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAdsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAdResult), global::Google.Ads.GoogleAds.V12.Services.MutateAdResult.Parser, new[]{ "ResourceName", "Ad" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AdService.GetAd][google.ads.googleads.v12.services.AdService.GetAd]. - /// - public sealed partial class GetAdRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAdRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAdRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAdRequest(GetAdRequest other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetAdRequest Clone() { - return new GetAdRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The resource name of the ad to fetch. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetAdRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetAdRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetAdRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [AdService.MutateAds][google.ads.googleads.v12.services.AdService.MutateAds]. - /// - public sealed partial class MutateAdsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdsRequest(MutateAdsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - responseContentType_ = other.responseContentType_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdsRequest Clone() { - return new MutateAdsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose ads are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AdOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual ads. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 4; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ResponseContentType != other.ResponseContentType) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (PartialFailure != false) { - output.WriteRawTag(32); - output.WriteBool(PartialFailure); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (PartialFailure != false) { - output.WriteRawTag(32); - output.WriteBool(PartialFailure); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - PartialFailure = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - PartialFailure = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single update operation on an ad. - /// - public sealed partial class AdOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdOperation(AdOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - policyValidationParameter_ = other.policyValidationParameter_ != null ? other.policyValidationParameter_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdOperation Clone() { - return new AdOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "policy_validation_parameter" field. - public const int PolicyValidationParameterFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter policyValidationParameter_; - /// - /// Configuration for how policies are validated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter PolicyValidationParameter { - get { return policyValidationParameter_; } - set { - policyValidationParameter_ = value; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 1; - /// - /// Update operation: The ad is expected to have a valid resource name - /// in this format: - /// - /// `customers/{customer_id}/ads/{ad_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Ad Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.Ad) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Update = 1, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(PolicyValidationParameter, other.PolicyValidationParameter)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (policyValidationParameter_ != null) hash ^= PolicyValidationParameter.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (policyValidationParameter_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PolicyValidationParameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (policyValidationParameter_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PolicyValidationParameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (policyValidationParameter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicyValidationParameter); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - if (other.policyValidationParameter_ != null) { - if (policyValidationParameter_ == null) { - PolicyValidationParameter = new global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter(); - } - PolicyValidationParameter.MergeFrom(other.PolicyValidationParameter); - } - switch (other.OperationCase) { - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Ad subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 26: { - if (policyValidationParameter_ == null) { - PolicyValidationParameter = new global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter(); - } - input.ReadMessage(PolicyValidationParameter); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Ad subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - case 26: { - if (policyValidationParameter_ == null) { - PolicyValidationParameter = new global::Google.Ads.GoogleAds.V12.Common.PolicyValidationParameter(); - } - input.ReadMessage(PolicyValidationParameter); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an ad mutate. - /// - public sealed partial class MutateAdsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdsResponse(MutateAdsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdsResponse Clone() { - return new MutateAdsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAdResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the ad mutate. - /// - public sealed partial class MutateAdResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAdResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AdServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdResult(MutateAdResult other) : this() { - resourceName_ = other.resourceName_; - ad_ = other.ad_ != null ? other.ad_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAdResult Clone() { - return new MutateAdResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// The resource name returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad" field. - public const int AdFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Ad ad_; - /// - /// The mutated ad with only mutable fields after mutate. The field will only - /// be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Ad Ad { - get { return ad_; } - set { - ad_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAdResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAdResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(Ad, other.Ad)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (ad_ != null) hash ^= Ad.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ad_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Ad); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ad_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Ad); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (ad_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ad); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAdResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.ad_ != null) { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - Ad.MergeFrom(other.Ad); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - input.ReadMessage(Ad); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - input.ReadMessage(Ad); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AdServiceClient.g.cs deleted file mode 100755 index 84bab0e2f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdServiceClient.g.cs +++ /dev/null @@ -1,933 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AdServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AdServiceSettings GetDefault() => new AdServiceSettings(); - - /// Constructs a new object with default settings. - public AdServiceSettings() - { - } - - private AdServiceSettings(AdServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - GetAdSettings = existing.GetAdSettings; - MutateAdsSettings = existing.MutateAdsSettings; - OnCopy(existing); - } - - partial void OnCopy(AdServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to AdServiceClient.GetAd - /// and AdServiceClient.GetAdAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GetAdSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to AdServiceClient.MutateAds - /// and AdServiceClient.MutateAdsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAdsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AdServiceSettings Clone() => new AdServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint etc. - /// - internal sealed partial class AdServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AdServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AdServiceClientBuilder() : base(AdServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AdServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AdServiceClient Build() - { - AdServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AdServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AdServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AdServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AdServiceClient.ChannelPool; - } - - /// AdService client wrapper, for convenient use. - /// - /// Service to manage ads. - /// - public abstract partial class AdServiceClient - { - /// - /// The default endpoint for the AdService service, which is a host of "googleads.googleapis.com" and a port of - /// 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AdService scopes. - /// - /// The default AdService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AdService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and settings. - /// To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AdServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and settings. - /// To specify custom credentials or other settings, use . - /// - /// The created . - public static AdServiceClient Create() => new AdServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AdServiceClient Create(grpccore::CallInvoker callInvoker, AdServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AdService.AdServiceClient grpcClient = new AdService.AdServiceClient(callInvoker); - return new AdServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AdService client - public virtual AdService.AdServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual gagvr::Ad GetAd(GetAdRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetAdAsync(GetAdRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetAdAsync(GetAdRequest request, st::CancellationToken cancellationToken) => - GetAdAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the ad to fetch. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual gagvr::Ad GetAd(string resourceName, gaxgrpc::CallSettings callSettings = null) => - GetAd(new GetAdRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the ad to fetch. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetAdAsync(string resourceName, gaxgrpc::CallSettings callSettings = null) => - GetAdAsync(new GetAdRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the ad to fetch. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetAdAsync(string resourceName, st::CancellationToken cancellationToken) => - GetAdAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the ad to fetch. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual gagvr::Ad GetAd(gagvr::AdName resourceName, gaxgrpc::CallSettings callSettings = null) => - GetAd(new GetAdRequest - { - ResourceNameAsAdName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the ad to fetch. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetAdAsync(gagvr::AdName resourceName, gaxgrpc::CallSettings callSettings = null) => - GetAdAsync(new GetAdRequest - { - ResourceNameAsAdName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the ad to fetch. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetAdAsync(gagvr::AdName resourceName, st::CancellationToken cancellationToken) => - GetAdAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdsResponse MutateAds(MutateAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdsAsync(MutateAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdsAsync(MutateAdsRequest request, st::CancellationToken cancellationToken) => - MutateAdsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ads are being modified. - /// - /// - /// Required. The list of operations to perform on individual ads. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAdsResponse MutateAds(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAds(new MutateAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ads are being modified. - /// - /// - /// Required. The list of operations to perform on individual ads. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAdsAsync(new MutateAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose ads are being modified. - /// - /// - /// Required. The list of operations to perform on individual ads. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAdsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAdsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AdService client wrapper implementation, for convenient use. - /// - /// Service to manage ads. - /// - public sealed partial class AdServiceClientImpl : AdServiceClient - { - private readonly gaxgrpc::ApiCall _callGetAd; - - private readonly gaxgrpc::ApiCall _callMutateAds; - - /// - /// Constructs a client wrapper for the AdService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AdServiceClientImpl(AdService.AdServiceClient grpcClient, AdServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AdServiceSettings effectiveSettings = settings ?? AdServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callGetAd = clientHelper.BuildApiCall("GetAd", grpcClient.GetAdAsync, grpcClient.GetAd, effectiveSettings.GetAdSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callGetAd); - Modify_GetAdApiCall(ref _callGetAd); - _callMutateAds = clientHelper.BuildApiCall("MutateAds", grpcClient.MutateAdsAsync, grpcClient.MutateAds, effectiveSettings.MutateAdsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAds); - Modify_MutateAdsApiCall(ref _callMutateAds); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_GetAdApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_MutateAdsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AdService.AdServiceClient grpcClient, AdServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AdService client - public override AdService.AdServiceClient GrpcClient { get; } - - partial void Modify_GetAdRequest(ref GetAdRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_MutateAdsRequest(ref MutateAdsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override gagvr::Ad GetAd(GetAdRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetAdRequest(ref request, ref callSettings); - return _callGetAd.Sync(request, callSettings); - } - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GetAdAsync(GetAdRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetAdRequest(ref request, ref callSettings); - return _callGetAd.Async(request, callSettings); - } - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAdsResponse MutateAds(MutateAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdsRequest(ref request, ref callSettings); - return _callMutateAds.Sync(request, callSettings); - } - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAdsAsync(MutateAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAdsRequest(ref request, ref callSettings); - return _callMutateAds.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AdServiceGrpc.g.cs deleted file mode 100755 index c50ebf960..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdServiceGrpc.g.cs +++ /dev/null @@ -1,526 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/ad_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage ads. - /// - public static partial class AdService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AdService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GetAdRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GetAdRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_resources_Ad = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Resources.Ad.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAdsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAdsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetAd = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetAd", - __Marshaller_google_ads_googleads_v12_services_GetAdRequest, - __Marshaller_google_ads_googleads_v12_resources_Ad); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAds = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAds", - __Marshaller_google_ads_googleads_v12_services_MutateAdsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAdsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AdServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AdService - [grpc::BindServiceMethod(typeof(AdService), "BindService")] - public abstract partial class AdServiceBase - { - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetAd(global::Google.Ads.GoogleAds.V12.Services.GetAdRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAds(global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AdService - public partial class AdServiceClient : grpc::ClientBase - { - /// Creates a new client for AdService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AdService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AdServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AdServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Resources.Ad GetAd(global::Google.Ads.GoogleAds.V12.Services.GetAdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAd(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Resources.Ad GetAd(global::Google.Ads.GoogleAds.V12.Services.GetAdRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetAd, null, options, request); - } - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAdAsync(global::Google.Ads.GoogleAds.V12.Services.GetAdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetAdAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested ad in full detail. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetAdAsync(global::Google.Ads.GoogleAds.V12.Services.GetAdRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetAd, null, options, request); - } - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdsResponse MutateAds(global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAds(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAdsResponse MutateAds(global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAds, null, options, request); - } - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAdsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates ads. Operation statuses are returned. Updating ads is not supported - /// for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdSharingError]() - /// [AdxError]() - /// [AssetError]() - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedAttributeReferenceError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [ImageError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaBundleError]() - /// [MediaFileError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAdsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAds, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AdServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AdServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AdServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_GetAd, serviceImpl.GetAd) - .AddMethod(__Method_MutateAds, serviceImpl.MutateAds).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AdServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_GetAd, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAd)); - serviceBinder.AddMethod(__Method_MutateAds, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAds)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AdServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AdServiceResourceNames.g.cs deleted file mode 100755 index 697930eb6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class GetAdRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdName ResourceNameAsAdName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class MutateAdResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AdName ResourceNameAsAdName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AdName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdServingOptimizationStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AdServingOptimizationStatus.g.cs deleted file mode 100755 index d20dcf063..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdServingOptimizationStatus.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_serving_optimization_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_serving_optimization_status.proto - public static partial class AdServingOptimizationStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_serving_optimization_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdServingOptimizationStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfc2VydmluZ19v", - "cHRpbWl6YXRpb25fc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMivAEKH0FkU2VydmluZ09wdGltaXphdGlvblN0YXR1c0Vu", - "dW0imAEKG0FkU2VydmluZ09wdGltaXphdGlvblN0YXR1cxIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIMCghPUFRJTUlaRRACEhcKE0NPTlZFUlNJ", - "T05fT1BUSU1JWkUQAxIKCgZST1RBVEUQBBIXChNST1RBVEVfSU5ERUZJTklU", - "RUxZEAUSDwoLVU5BVkFJTEFCTEUQBkL6AQoiY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtc0IgQWRTZXJ2aW5nT3B0aW1pemF0aW9uU3RhdHVz", - "UHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Possible ad serving statuses of a campaign. - /// - public sealed partial class AdServingOptimizationStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdServingOptimizationStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdServingOptimizationStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdServingOptimizationStatusEnum(AdServingOptimizationStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdServingOptimizationStatusEnum Clone() { - return new AdServingOptimizationStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdServingOptimizationStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdServingOptimizationStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdServingOptimizationStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdServingOptimizationStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible serving statuses. - /// - public enum AdServingOptimizationStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Ad serving is optimized based on CTR for the campaign. - /// - [pbr::OriginalName("OPTIMIZE")] Optimize = 2, - /// - /// Ad serving is optimized based on CTR * Conversion for the campaign. If - /// the campaign is not in the conversion optimizer bidding strategy, it will - /// default to OPTIMIZED. - /// - [pbr::OriginalName("CONVERSION_OPTIMIZE")] ConversionOptimize = 3, - /// - /// Ads are rotated evenly for 90 days, then optimized for clicks. - /// - [pbr::OriginalName("ROTATE")] Rotate = 4, - /// - /// Show lower performing ads more evenly with higher performing ads, and do - /// not optimize. - /// - [pbr::OriginalName("ROTATE_INDEFINITELY")] RotateIndefinitely = 5, - /// - /// Ad serving optimization status is not available. - /// - [pbr::OriginalName("UNAVAILABLE")] Unavailable = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdSharingError.g.cs b/Google.Ads.GoogleAds/src/V12/AdSharingError.g.cs deleted file mode 100755 index 931624320..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdSharingError.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/ad_sharing_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/ad_sharing_error.proto - public static partial class AdSharingErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/ad_sharing_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdSharingErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX3NoYXJpbmdf", - "ZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMi", - "qQEKEkFkU2hhcmluZ0Vycm9yRW51bSKSAQoOQWRTaGFyaW5nRXJyb3ISDwoL", - "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESIAocQURfR1JPVVBfQUxSRUFE", - "WV9DT05UQUlOU19BRBACEiIKHklOQ09NUEFUSUJMRV9BRF9VTkRFUl9BRF9H", - "Uk9VUBADEhwKGENBTk5PVF9TSEFSRV9JTkFDVElWRV9BRBAEQvMBCiNjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9yc0ITQWRTaGFyaW5nRXJy", - "b3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorEnum.Types.AdSharingError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad sharing errors. - /// - public sealed partial class AdSharingErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdSharingErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdSharingErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdSharingErrorEnum(AdSharingErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdSharingErrorEnum Clone() { - return new AdSharingErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdSharingErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdSharingErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdSharingErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdSharingErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ad sharing errors. - /// - public enum AdSharingError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Error resulting in attempting to add an Ad to an AdGroup that already - /// contains the Ad. - /// - [pbr::OriginalName("AD_GROUP_ALREADY_CONTAINS_AD")] AdGroupAlreadyContainsAd = 2, - /// - /// Ad is not compatible with the AdGroup it is being shared with. - /// - [pbr::OriginalName("INCOMPATIBLE_AD_UNDER_AD_GROUP")] IncompatibleAdUnderAdGroup = 3, - /// - /// Cannot add AdGroupAd on inactive Ad. - /// - [pbr::OriginalName("CANNOT_SHARE_INACTIVE_AD")] CannotShareInactiveAd = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdStrength.g.cs b/Google.Ads.GoogleAds/src/V12/AdStrength.g.cs deleted file mode 100755 index a1397e243..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdStrength.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_strength.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_strength.proto - public static partial class AdStrengthReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_strength.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdStrengthReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfc3RyZW5ndGgu", - "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKFAQoOQWRT", - "dHJlbmd0aEVudW0icwoKQWRTdHJlbmd0aBIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARILCgdQRU5ESU5HEAISCgoGTk9fQURTEAMSCAoEUE9PUhAE", - "EgsKB0FWRVJBR0UQBRIICgRHT09EEAYSDQoJRVhDRUxMRU5UEAdC6QEKImNv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCD0FkU3RyZW5ndGhQ", - "cm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpF", - "bnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum), global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ad strengths. - /// - public sealed partial class AdStrengthEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdStrengthEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdStrengthReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdStrengthEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdStrengthEnum(AdStrengthEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdStrengthEnum Clone() { - return new AdStrengthEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdStrengthEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdStrengthEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdStrengthEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdStrengthEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum listing the possible ad strengths. - /// - public enum AdStrength { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The ad strength is currently pending. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// No ads could be generated. - /// - [pbr::OriginalName("NO_ADS")] NoAds = 3, - /// - /// Poor strength. - /// - [pbr::OriginalName("POOR")] Poor = 4, - /// - /// Average strength. - /// - [pbr::OriginalName("AVERAGE")] Average = 5, - /// - /// Good strength. - /// - [pbr::OriginalName("GOOD")] Good = 6, - /// - /// Excellent strength. - /// - [pbr::OriginalName("EXCELLENT")] Excellent = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdType.g.cs b/Google.Ads.GoogleAds/src/V12/AdType.g.cs deleted file mode 100755 index 285cc0cec..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdType.g.cs +++ /dev/null @@ -1,361 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/ad_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/ad_type.proto - public static partial class AdTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/ad_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cixnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfdHlwZS5wcm90", - "bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIuEFCgpBZFR5cGVF", - "bnVtItIFCgZBZFR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "CwoHVEVYVF9BRBACEhQKEEVYUEFOREVEX1RFWFRfQUQQAxIeChpFWFBBTkRF", - "RF9EWU5BTUlDX1NFQVJDSF9BRBAHEgwKCEhPVEVMX0FEEAgSFQoRU0hPUFBJ", - "TkdfU01BUlRfQUQQCRIXChNTSE9QUElOR19QUk9EVUNUX0FEEAoSDAoIVklE", - "RU9fQUQQDBIMCghJTUFHRV9BRBAOEhgKFFJFU1BPTlNJVkVfU0VBUkNIX0FE", - "EA8SIAocTEVHQUNZX1JFU1BPTlNJVkVfRElTUExBWV9BRBAQEgoKBkFQUF9B", - "RBAREhkKFUxFR0FDWV9BUFBfSU5TVEFMTF9BRBASEhkKFVJFU1BPTlNJVkVf", - "RElTUExBWV9BRBATEgwKCExPQ0FMX0FEEBQSEwoPSFRNTDVfVVBMT0FEX0FE", - "EBUSFAoQRFlOQU1JQ19IVE1MNV9BRBAWEhUKEUFQUF9FTkdBR0VNRU5UX0FE", - "EBcSIgoeU0hPUFBJTkdfQ09NUEFSSVNPTl9MSVNUSU5HX0FEEBgSEwoPVklE", - "RU9fQlVNUEVSX0FEEBkSJAogVklERU9fTk9OX1NLSVBQQUJMRV9JTl9TVFJF", - "QU1fQUQQGhIWChJWSURFT19PVVRTVFJFQU1fQUQQGxIfChtWSURFT19UUlVF", - "VklFV19JTl9TVFJFQU1fQUQQHRIXChNWSURFT19SRVNQT05TSVZFX0FEEB4S", - "FQoRU01BUlRfQ0FNUEFJR05fQUQQHxILCgdDQUxMX0FEECASGwoXQVBQX1BS", - "RV9SRUdJU1RSQVRJT05fQUQQIRIUChBJTl9GRUVEX1ZJREVPX0FEECISHAoY", - "RElTQ09WRVJZX01VTFRJX0FTU0VUX0FEECMSGQoVRElTQ09WRVJZX0NBUk9V", - "U0VMX0FEECRC5QEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXNCC0FkVHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNH", - "QUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVc", - "QWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdTypeEnum.Types.AdType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible types of an ad. - /// - public sealed partial class AdTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdTypeEnum(AdTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdTypeEnum Clone() { - return new AdTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible types of an ad. - /// - public enum AdType { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The ad is a text ad. - /// - [pbr::OriginalName("TEXT_AD")] TextAd = 2, - /// - /// The ad is an expanded text ad. - /// - [pbr::OriginalName("EXPANDED_TEXT_AD")] ExpandedTextAd = 3, - /// - /// The ad is an expanded dynamic search ad. - /// - [pbr::OriginalName("EXPANDED_DYNAMIC_SEARCH_AD")] ExpandedDynamicSearchAd = 7, - /// - /// The ad is a hotel ad. - /// - [pbr::OriginalName("HOTEL_AD")] HotelAd = 8, - /// - /// The ad is a Smart Shopping ad. - /// - [pbr::OriginalName("SHOPPING_SMART_AD")] ShoppingSmartAd = 9, - /// - /// The ad is a standard Shopping ad. - /// - [pbr::OriginalName("SHOPPING_PRODUCT_AD")] ShoppingProductAd = 10, - /// - /// The ad is a video ad. - /// - [pbr::OriginalName("VIDEO_AD")] VideoAd = 12, - /// - /// This ad is an Image ad. - /// - [pbr::OriginalName("IMAGE_AD")] ImageAd = 14, - /// - /// The ad is a responsive search ad. - /// - [pbr::OriginalName("RESPONSIVE_SEARCH_AD")] ResponsiveSearchAd = 15, - /// - /// The ad is a legacy responsive display ad. - /// - [pbr::OriginalName("LEGACY_RESPONSIVE_DISPLAY_AD")] LegacyResponsiveDisplayAd = 16, - /// - /// The ad is an app ad. - /// - [pbr::OriginalName("APP_AD")] AppAd = 17, - /// - /// The ad is a legacy app install ad. - /// - [pbr::OriginalName("LEGACY_APP_INSTALL_AD")] LegacyAppInstallAd = 18, - /// - /// The ad is a responsive display ad. - /// - [pbr::OriginalName("RESPONSIVE_DISPLAY_AD")] ResponsiveDisplayAd = 19, - /// - /// The ad is a local ad. - /// - [pbr::OriginalName("LOCAL_AD")] LocalAd = 20, - /// - /// The ad is a display upload ad with the HTML5_UPLOAD_AD product type. - /// - [pbr::OriginalName("HTML5_UPLOAD_AD")] Html5UploadAd = 21, - /// - /// The ad is a display upload ad with one of the DYNAMIC_HTML5_* product - /// types. - /// - [pbr::OriginalName("DYNAMIC_HTML5_AD")] DynamicHtml5Ad = 22, - /// - /// The ad is an app engagement ad. - /// - [pbr::OriginalName("APP_ENGAGEMENT_AD")] AppEngagementAd = 23, - /// - /// The ad is a Shopping Comparison Listing ad. - /// - [pbr::OriginalName("SHOPPING_COMPARISON_LISTING_AD")] ShoppingComparisonListingAd = 24, - /// - /// Video bumper ad. - /// - [pbr::OriginalName("VIDEO_BUMPER_AD")] VideoBumperAd = 25, - /// - /// Video non-skippable in-stream ad. - /// - [pbr::OriginalName("VIDEO_NON_SKIPPABLE_IN_STREAM_AD")] VideoNonSkippableInStreamAd = 26, - /// - /// Video outstream ad. - /// - [pbr::OriginalName("VIDEO_OUTSTREAM_AD")] VideoOutstreamAd = 27, - /// - /// Video TrueView in-stream ad. - /// - [pbr::OriginalName("VIDEO_TRUEVIEW_IN_STREAM_AD")] VideoTrueviewInStreamAd = 29, - /// - /// Video responsive ad. - /// - [pbr::OriginalName("VIDEO_RESPONSIVE_AD")] VideoResponsiveAd = 30, - /// - /// Smart campaign ad. - /// - [pbr::OriginalName("SMART_CAMPAIGN_AD")] SmartCampaignAd = 31, - /// - /// Call ad. - /// - [pbr::OriginalName("CALL_AD")] CallAd = 32, - /// - /// Universal app pre-registration ad. - /// - [pbr::OriginalName("APP_PRE_REGISTRATION_AD")] AppPreRegistrationAd = 33, - /// - /// In-feed video ad. - /// - [pbr::OriginalName("IN_FEED_VIDEO_AD")] InFeedVideoAd = 34, - /// - /// Discovery multi asset ad. - /// - [pbr::OriginalName("DISCOVERY_MULTI_ASSET_AD")] DiscoveryMultiAssetAd = 35, - /// - /// Discovery carousel ad. - /// - [pbr::OriginalName("DISCOVERY_CAROUSEL_AD")] DiscoveryCarouselAd = 36, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdTypeInfos.g.cs b/Google.Ads.GoogleAds/src/V12/AdTypeInfos.g.cs deleted file mode 100755 index 47358302a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdTypeInfos.g.cs +++ /dev/null @@ -1,11299 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/ad_type_infos.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/ad_type_infos.proto - public static partial class AdTypeInfosReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/ad_type_infos.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdTypeInfosReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2FkX3R5cGVfaW5m", - "b3MucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24aLmdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vYWRfYXNzZXQucHJvdG8a", - "RGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jYWxsX2NvbnZlcnNp", - "b25fcmVwb3J0aW5nX3N0YXRlLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvZGlzcGxheV9hZF9mb3JtYXRfc2V0dGluZy5wcm90bxpA", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Rpc3BsYXlfdXBsb2Fk", - "X3Byb2R1Y3RfdHlwZS5wcm90bxpEZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2xlZ2FjeV9hcHBfaW5zdGFsbF9hZF9hcHBfc3RvcmUucHJvdG8a", - "Lmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9taW1lX3R5cGUucHJv", - "dG8aNGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy92aWRlb190aHVt", - "Ym5haWwucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8i", - "iAEKClRleHRBZEluZm8SFQoIaGVhZGxpbmUYBCABKAlIAIgBARIZCgxkZXNj", - "cmlwdGlvbjEYBSABKAlIAYgBARIZCgxkZXNjcmlwdGlvbjIYBiABKAlIAogB", - "AUILCglfaGVhZGxpbmVCDwoNX2Rlc2NyaXB0aW9uMUIPCg1fZGVzY3JpcHRp", - "b24yIrYCChJFeHBhbmRlZFRleHRBZEluZm8SGwoOaGVhZGxpbmVfcGFydDEY", - "CCABKAlIAIgBARIbCg5oZWFkbGluZV9wYXJ0MhgJIAEoCUgBiAEBEhsKDmhl", - "YWRsaW5lX3BhcnQzGAogASgJSAKIAQESGAoLZGVzY3JpcHRpb24YCyABKAlI", - "A4gBARIZCgxkZXNjcmlwdGlvbjIYDCABKAlIBIgBARISCgVwYXRoMRgNIAEo", - "CUgFiAEBEhIKBXBhdGgyGA4gASgJSAaIAQFCEQoPX2hlYWRsaW5lX3BhcnQx", - "QhEKD19oZWFkbGluZV9wYXJ0MkIRCg9faGVhZGxpbmVfcGFydDNCDgoMX2Rl", - "c2NyaXB0aW9uQg8KDV9kZXNjcmlwdGlvbjJCCAoGX3BhdGgxQggKBl9wYXRo", - "MiJzChtFeHBhbmRlZER5bmFtaWNTZWFyY2hBZEluZm8SGAoLZGVzY3JpcHRp", - "b24YAyABKAlIAIgBARIZCgxkZXNjcmlwdGlvbjIYBCABKAlIAYgBAUIOCgxf", - "ZGVzY3JpcHRpb25CDwoNX2Rlc2NyaXB0aW9uMiINCgtIb3RlbEFkSW5mbyIV", - "ChNTaG9wcGluZ1NtYXJ0QWRJbmZvIhcKFVNob3BwaW5nUHJvZHVjdEFkSW5m", - "byJFCh9TaG9wcGluZ0NvbXBhcmlzb25MaXN0aW5nQWRJbmZvEhUKCGhlYWRs", - "aW5lGAIgASgJSACIAQFCCwoJX2hlYWRsaW5lIu4DCgtJbWFnZUFkSW5mbxIY", - "CgtwaXhlbF93aWR0aBgPIAEoA0gBiAEBEhkKDHBpeGVsX2hlaWdodBgQIAEo", - "A0gCiAEBEhYKCWltYWdlX3VybBgRIAEoCUgDiAEBEiAKE3ByZXZpZXdfcGl4", - "ZWxfd2lkdGgYEiABKANIBIgBARIhChRwcmV2aWV3X3BpeGVsX2hlaWdodBgT", - "IAEoA0gFiAEBEh4KEXByZXZpZXdfaW1hZ2VfdXJsGBQgASgJSAaIAQESSAoJ", - "bWltZV90eXBlGAogASgOMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLk1pbWVUeXBlRW51bS5NaW1lVHlwZRIRCgRuYW1lGBUgASgJSAeIAQES", - "FAoKbWVkaWFfZmlsZRgMIAEoCUgAEg4KBGRhdGEYDSABKAxIABIiChhhZF9p", - "ZF90b19jb3B5X2ltYWdlX2Zyb20YDiABKANIAEIHCgVpbWFnZUIOCgxfcGl4", - "ZWxfd2lkdGhCDwoNX3BpeGVsX2hlaWdodEIMCgpfaW1hZ2VfdXJsQhYKFF9w", - "cmV2aWV3X3BpeGVsX3dpZHRoQhcKFV9wcmV2aWV3X3BpeGVsX2hlaWdodEIU", - "ChJfcHJldmlld19pbWFnZV91cmxCBwoFX25hbWUiZAoZVmlkZW9CdW1wZXJJ", - "blN0cmVhbUFkSW5mbxJHChBjb21wYW5pb25fYmFubmVyGAMgASgLMi0uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZEltYWdlQXNzZXQioAEK", - "H1ZpZGVvTm9uU2tpcHBhYmxlSW5TdHJlYW1BZEluZm8SRwoQY29tcGFuaW9u", - "X2Jhbm5lchgFIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uQWRJbWFnZUFzc2V0EhsKE2FjdGlvbl9idXR0b25fbGFiZWwYAyABKAkS", - "FwoPYWN0aW9uX2hlYWRsaW5lGAQgASgJIpwBChtWaWRlb1RydWVWaWV3SW5T", - "dHJlYW1BZEluZm8SGwoTYWN0aW9uX2J1dHRvbl9sYWJlbBgEIAEoCRIXCg9h", - "Y3Rpb25faGVhZGxpbmUYBSABKAkSRwoQY29tcGFuaW9uX2Jhbm5lchgHIAEo", - "CzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRJbWFnZUFz", - "c2V0Ij0KFFZpZGVvT3V0c3RyZWFtQWRJbmZvEhAKCGhlYWRsaW5lGAMgASgJ", - "EhMKC2Rlc2NyaXB0aW9uGAQgASgJIqcBChFJbkZlZWRWaWRlb0FkSW5mbxIQ", - "CghoZWFkbGluZRgBIAEoCRIUCgxkZXNjcmlwdGlvbjEYAiABKAkSFAoMZGVz", - "Y3JpcHRpb24yGAMgASgJElQKCXRodW1ibmFpbBgEIAEoDjJBLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5WaWRlb1RodW1ibmFpbEVudW0uVmlk", - "ZW9UaHVtYm5haWwi5QMKC1ZpZGVvQWRJbmZvEjwKBXZpZGVvGAggASgLMi0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZFZpZGVvQXNzZXQS", - "UQoJaW5fc3RyZWFtGAIgASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5WaWRlb1RydWVWaWV3SW5TdHJlYW1BZEluZm9IABJMCgZidW1w", - "ZXIYAyABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlZp", - "ZGVvQnVtcGVySW5TdHJlYW1BZEluZm9IABJLCgpvdXRfc3RyZWFtGAQgASgL", - "MjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5WaWRlb091dHN0", - "cmVhbUFkSW5mb0gAElkKDW5vbl9za2lwcGFibGUYBSABKAsyQC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlZpZGVvTm9uU2tpcHBhYmxlSW5T", - "dHJlYW1BZEluZm9IABJFCgdpbl9mZWVkGAkgASgLMjIuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmNvbW1vbi5JbkZlZWRWaWRlb0FkSW5mb0gAQggKBmZv", - "cm1hdCLcAwoVVmlkZW9SZXNwb25zaXZlQWRJbmZvEj8KCWhlYWRsaW5lcxgB", - "IAMoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRUZXh0", - "QXNzZXQSRAoObG9uZ19oZWFkbGluZXMYAiADKAsyLC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLkFkVGV4dEFzc2V0EkIKDGRlc2NyaXB0aW9u", - "cxgDIAMoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRU", - "ZXh0QXNzZXQSRQoPY2FsbF90b19hY3Rpb25zGAQgAygLMiwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZFRleHRBc3NldBI9CgZ2aWRlb3MY", - "BSADKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkVmlk", - "ZW9Bc3NldBJIChFjb21wYW5pb25fYmFubmVycxgGIAMoCzItLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRJbWFnZUFzc2V0EhMKC2JyZWFk", - "Y3J1bWIxGAcgASgJEhMKC2JyZWFkY3J1bWIyGAggASgJItkBChZSZXNwb25z", - "aXZlU2VhcmNoQWRJbmZvEj8KCWhlYWRsaW5lcxgBIAMoCzIsLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRUZXh0QXNzZXQSQgoMZGVzY3Jp", - "cHRpb25zGAIgAygLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5BZFRleHRBc3NldBISCgVwYXRoMRgFIAEoCUgAiAEBEhIKBXBhdGgyGAYg", - "ASgJSAGIAQFCCAoGX3BhdGgxQggKBl9wYXRoMiKuBgodTGVnYWN5UmVzcG9u", - "c2l2ZURpc3BsYXlBZEluZm8SGwoOc2hvcnRfaGVhZGxpbmUYECABKAlIAIgB", - "ARIaCg1sb25nX2hlYWRsaW5lGBEgASgJSAGIAQESGAoLZGVzY3JpcHRpb24Y", - "EiABKAlIAogBARIaCg1idXNpbmVzc19uYW1lGBMgASgJSAOIAQESIQoUYWxs", - "b3dfZmxleGlibGVfY29sb3IYFCABKAhIBIgBARIZCgxhY2NlbnRfY29sb3IY", - "FSABKAlIBYgBARIXCgptYWluX2NvbG9yGBYgASgJSAaIAQESIAoTY2FsbF90", - "b19hY3Rpb25fdGV4dBgXIAEoCUgHiAEBEhcKCmxvZ29faW1hZ2UYGCABKAlI", - "CIgBARIeChFzcXVhcmVfbG9nb19pbWFnZRgZIAEoCUgJiAEBEhwKD21hcmtl", - "dGluZ19pbWFnZRgaIAEoCUgKiAEBEiMKFnNxdWFyZV9tYXJrZXRpbmdfaW1h", - "Z2UYGyABKAlIC4gBARJpCg5mb3JtYXRfc2V0dGluZxgNIAEoDjJRLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5EaXNwbGF5QWRGb3JtYXRTZXR0", - "aW5nRW51bS5EaXNwbGF5QWRGb3JtYXRTZXR0aW5nEhkKDHByaWNlX3ByZWZp", - "eBgcIAEoCUgMiAEBEhcKCnByb21vX3RleHQYHSABKAlIDYgBAUIRCg9fc2hv", - "cnRfaGVhZGxpbmVCEAoOX2xvbmdfaGVhZGxpbmVCDgoMX2Rlc2NyaXB0aW9u", - "QhAKDl9idXNpbmVzc19uYW1lQhcKFV9hbGxvd19mbGV4aWJsZV9jb2xvckIP", - "Cg1fYWNjZW50X2NvbG9yQg0KC19tYWluX2NvbG9yQhYKFF9jYWxsX3RvX2Fj", - "dGlvbl90ZXh0Qg0KC19sb2dvX2ltYWdlQhQKEl9zcXVhcmVfbG9nb19pbWFn", - "ZUISChBfbWFya2V0aW5nX2ltYWdlQhkKF19zcXVhcmVfbWFya2V0aW5nX2lt", - "YWdlQg8KDV9wcmljZV9wcmVmaXhCDQoLX3Byb21vX3RleHQisQMKCUFwcEFk", - "SW5mbxJHChFtYW5kYXRvcnlfYWRfdGV4dBgBIAEoCzIsLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5jb21tb24uQWRUZXh0QXNzZXQSPwoJaGVhZGxpbmVz", - "GAIgAygLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZFRl", - "eHRBc3NldBJCCgxkZXNjcmlwdGlvbnMYAyADKAsyLC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLkFkVGV4dEFzc2V0Ej0KBmltYWdlcxgEIAMo", - "CzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRJbWFnZUFz", - "c2V0EkUKDnlvdXR1YmVfdmlkZW9zGAUgAygLMi0uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5BZFZpZGVvQXNzZXQSUAoTaHRtbDVfbWVkaWFf", - "YnVuZGxlcxgGIAMoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uQWRNZWRpYUJ1bmRsZUFzc2V0IpgCChNBcHBFbmdhZ2VtZW50QWRJbmZv", - "Ej8KCWhlYWRsaW5lcxgBIAMoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uQWRUZXh0QXNzZXQSQgoMZGVzY3JpcHRpb25zGAIgAygLMiwu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZFRleHRBc3NldBI9", - "CgZpbWFnZXMYAyADKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLkFkSW1hZ2VBc3NldBI9CgZ2aWRlb3MYBCADKAsyLS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLkFkVmlkZW9Bc3NldCKlAgoYQXBwUHJl", - "UmVnaXN0cmF0aW9uQWRJbmZvEj8KCWhlYWRsaW5lcxgBIAMoCzIsLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRUZXh0QXNzZXQSQgoMZGVz", - "Y3JpcHRpb25zGAIgAygLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5BZFRleHRBc3NldBI9CgZpbWFnZXMYAyADKAsyLS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLkFkSW1hZ2VBc3NldBJFCg55b3V0dWJl", - "X3ZpZGVvcxgEIAMoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uQWRWaWRlb0Fzc2V0IqICChZMZWdhY3lBcHBJbnN0YWxsQWRJbmZvEhMK", - "BmFwcF9pZBgGIAEoCUgAiAEBEmwKCWFwcF9zdG9yZRgCIAEoDjJZLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5MZWdhY3lBcHBJbnN0YWxsQWRB", - "cHBTdG9yZUVudW0uTGVnYWN5QXBwSW5zdGFsbEFkQXBwU3RvcmUSFQoIaGVh", - "ZGxpbmUYByABKAlIAYgBARIZCgxkZXNjcmlwdGlvbjEYCCABKAlIAogBARIZ", - "CgxkZXNjcmlwdGlvbjIYCSABKAlIA4gBAUIJCgdfYXBwX2lkQgsKCV9oZWFk", - "bGluZUIPCg1fZGVzY3JpcHRpb24xQg8KDV9kZXNjcmlwdGlvbjIi4AgKF1Jl", - "c3BvbnNpdmVEaXNwbGF5QWRJbmZvEkcKEG1hcmtldGluZ19pbWFnZXMYASAD", - "KAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkSW1hZ2VB", - "c3NldBJOChdzcXVhcmVfbWFya2V0aW5nX2ltYWdlcxgCIAMoCzItLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRJbWFnZUFzc2V0EkIKC2xv", - "Z29faW1hZ2VzGAMgAygLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5BZEltYWdlQXNzZXQSSQoSc3F1YXJlX2xvZ29faW1hZ2VzGAQgAygL", - "Mi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZEltYWdlQXNz", - "ZXQSPwoJaGVhZGxpbmVzGAUgAygLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5BZFRleHRBc3NldBJDCg1sb25nX2hlYWRsaW5lGAYgASgL", - "MiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZFRleHRBc3Nl", - "dBJCCgxkZXNjcmlwdGlvbnMYByADKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLkFkVGV4dEFzc2V0EkUKDnlvdXR1YmVfdmlkZW9zGAgg", - "AygLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZFZpZGVv", - "QXNzZXQSGgoNYnVzaW5lc3NfbmFtZRgRIAEoCUgAiAEBEhcKCm1haW5fY29s", - "b3IYEiABKAlIAYgBARIZCgxhY2NlbnRfY29sb3IYEyABKAlIAogBARIhChRh", - "bGxvd19mbGV4aWJsZV9jb2xvchgUIAEoCEgDiAEBEiAKE2NhbGxfdG9fYWN0", - "aW9uX3RleHQYFSABKAlIBIgBARIZCgxwcmljZV9wcmVmaXgYFiABKAlIBYgB", - "ARIXCgpwcm9tb190ZXh0GBcgASgJSAaIAQESaQoOZm9ybWF0X3NldHRpbmcY", - "ECABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRGlzcGxh", - "eUFkRm9ybWF0U2V0dGluZ0VudW0uRGlzcGxheUFkRm9ybWF0U2V0dGluZxJV", - "Cgxjb250cm9sX3NwZWMYGCABKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLlJlc3BvbnNpdmVEaXNwbGF5QWRDb250cm9sU3BlY0IQCg5f", - "YnVzaW5lc3NfbmFtZUINCgtfbWFpbl9jb2xvckIPCg1fYWNjZW50X2NvbG9y", - "QhcKFV9hbGxvd19mbGV4aWJsZV9jb2xvckIWChRfY2FsbF90b19hY3Rpb25f", - "dGV4dEIPCg1fcHJpY2VfcHJlZml4Qg0KC19wcm9tb190ZXh0IuEDCgtMb2Nh", - "bEFkSW5mbxI/CgloZWFkbGluZXMYASADKAsyLC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uLkFkVGV4dEFzc2V0EkIKDGRlc2NyaXB0aW9ucxgC", - "IAMoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRUZXh0", - "QXNzZXQSRQoPY2FsbF90b19hY3Rpb25zGAMgAygLMiwuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmNvbW1vbi5BZFRleHRBc3NldBJHChBtYXJrZXRpbmdf", - "aW1hZ2VzGAQgAygLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5BZEltYWdlQXNzZXQSQgoLbG9nb19pbWFnZXMYBSADKAsyLS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkSW1hZ2VBc3NldBI9CgZ2aWRl", - "b3MYBiADKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFk", - "VmlkZW9Bc3NldBISCgVwYXRoMRgJIAEoCUgAiAEBEhIKBXBhdGgyGAogASgJ", - "SAGIAQFCCAoGX3BhdGgxQggKBl9wYXRoMiLtAQoTRGlzcGxheVVwbG9hZEFk", - "SW5mbxJ6ChtkaXNwbGF5X3VwbG9hZF9wcm9kdWN0X3R5cGUYASABKA4yVS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRGlzcGxheVVwbG9hZFBy", - "b2R1Y3RUeXBlRW51bS5EaXNwbGF5VXBsb2FkUHJvZHVjdFR5cGUSSwoMbWVk", - "aWFfYnVuZGxlGAIgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5BZE1lZGlhQnVuZGxlQXNzZXRIAEINCgttZWRpYV9hc3NldCJhCh5S", - "ZXNwb25zaXZlRGlzcGxheUFkQ29udHJvbFNwZWMSIQoZZW5hYmxlX2Fzc2V0", - "X2VuaGFuY2VtZW50cxgBIAEoCBIcChRlbmFibGVfYXV0b2dlbl92aWRlbxgC", - "IAEoCCKaAQoTU21hcnRDYW1wYWlnbkFkSW5mbxI/CgloZWFkbGluZXMYASAD", - "KAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkVGV4dEFz", - "c2V0EkIKDGRlc2NyaXB0aW9ucxgCIAMoCzIsLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24uQWRUZXh0QXNzZXQivAMKCkNhbGxBZEluZm8SFAoM", - "Y291bnRyeV9jb2RlGAEgASgJEhQKDHBob25lX251bWJlchgCIAEoCRIVCg1i", - "dXNpbmVzc19uYW1lGAMgASgJEhEKCWhlYWRsaW5lMRgLIAEoCRIRCgloZWFk", - "bGluZTIYDCABKAkSFAoMZGVzY3JpcHRpb24xGAQgASgJEhQKDGRlc2NyaXB0", - "aW9uMhgFIAEoCRIUCgxjYWxsX3RyYWNrZWQYBiABKAgSHwoXZGlzYWJsZV9j", - "YWxsX2NvbnZlcnNpb24YByABKAgSJQodcGhvbmVfbnVtYmVyX3ZlcmlmaWNh", - "dGlvbl91cmwYCCABKAkSGQoRY29udmVyc2lvbl9hY3Rpb24YCSABKAkSgQEK", - "GmNvbnZlcnNpb25fcmVwb3J0aW5nX3N0YXRlGAogASgOMl0uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLkNhbGxDb252ZXJzaW9uUmVwb3J0aW5n", - "U3RhdGVFbnVtLkNhbGxDb252ZXJzaW9uUmVwb3J0aW5nU3RhdGUSDQoFcGF0", - "aDEYDSABKAkSDQoFcGF0aDIYDiABKAki5wQKGURpc2NvdmVyeU11bHRpQXNz", - "ZXRBZEluZm8SRwoQbWFya2V0aW5nX2ltYWdlcxgBIAMoCzItLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRJbWFnZUFzc2V0Ek4KF3NxdWFy", - "ZV9tYXJrZXRpbmdfaW1hZ2VzGAIgAygLMi0uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmNvbW1vbi5BZEltYWdlQXNzZXQSUAoZcG9ydHJhaXRfbWFya2V0", - "aW5nX2ltYWdlcxgDIAMoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uQWRJbWFnZUFzc2V0EkIKC2xvZ29faW1hZ2VzGAQgAygLMi0uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZEltYWdlQXNzZXQSPwoJ", - "aGVhZGxpbmVzGAUgAygLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5BZFRleHRBc3NldBJCCgxkZXNjcmlwdGlvbnMYBiADKAsyLC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkVGV4dEFzc2V0EhoKDWJ1", - "c2luZXNzX25hbWUYByABKAlIAIgBARIgChNjYWxsX3RvX2FjdGlvbl90ZXh0", - "GAggASgJSAGIAQESGwoObGVhZF9mb3JtX29ubHkYCSABKAhIAogBAUIQCg5f", - "YnVzaW5lc3NfbmFtZUIWChRfY2FsbF90b19hY3Rpb25fdGV4dEIRCg9fbGVh", - "ZF9mb3JtX29ubHkigwMKF0Rpc2NvdmVyeUNhcm91c2VsQWRJbmZvEhoKDWJ1", - "c2luZXNzX25hbWUYASABKAlCA+BBAhJGCgpsb2dvX2ltYWdlGAIgASgLMi0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZEltYWdlQXNzZXRC", - "A+BBAhJDCghoZWFkbGluZRgDIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5jb21tb24uQWRUZXh0QXNzZXRCA+BBAhJGCgtkZXNjcmlwdGlvbhgE", - "IAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRUZXh0", - "QXNzZXRCA+BBAhIbChNjYWxsX3RvX2FjdGlvbl90ZXh0GAUgASgJEloKDmNh", - "cm91c2VsX2NhcmRzGAYgAygLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5BZERpc2NvdmVyeUNhcm91c2VsQ2FyZEFzc2V0QgPgQQJC8AEK", - "I2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uQhBBZFR5cGVJ", - "bmZvc1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uO2NvbW1vbqICA0dBQaoC", - "H0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5Db21tb27KAh9Hb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcQ29tbW9u6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpDb21tb25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.AdAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MimeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TextAdInfo), global::Google.Ads.GoogleAds.V12.Common.TextAdInfo.Parser, new[]{ "Headline", "Description1", "Description2" }, new[]{ "Headline", "Description1", "Description2" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo), global::Google.Ads.GoogleAds.V12.Common.ExpandedTextAdInfo.Parser, new[]{ "HeadlinePart1", "HeadlinePart2", "HeadlinePart3", "Description", "Description2", "Path1", "Path2" }, new[]{ "HeadlinePart1", "HeadlinePart2", "HeadlinePart3", "Description", "Description2", "Path1", "Path2" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo), global::Google.Ads.GoogleAds.V12.Common.ExpandedDynamicSearchAdInfo.Parser, new[]{ "Description", "Description2" }, new[]{ "Description", "Description2" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo), global::Google.Ads.GoogleAds.V12.Common.HotelAdInfo.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo), global::Google.Ads.GoogleAds.V12.Common.ShoppingSmartAdInfo.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo), global::Google.Ads.GoogleAds.V12.Common.ShoppingProductAdInfo.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo), global::Google.Ads.GoogleAds.V12.Common.ShoppingComparisonListingAdInfo.Parser, new[]{ "Headline" }, new[]{ "Headline" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo), global::Google.Ads.GoogleAds.V12.Common.ImageAdInfo.Parser, new[]{ "PixelWidth", "PixelHeight", "ImageUrl", "PreviewPixelWidth", "PreviewPixelHeight", "PreviewImageUrl", "MimeType", "Name", "MediaFile", "Data", "AdIdToCopyImageFrom" }, new[]{ "Image", "PixelWidth", "PixelHeight", "ImageUrl", "PreviewPixelWidth", "PreviewPixelHeight", "PreviewImageUrl", "Name" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo), global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo.Parser, new[]{ "CompanionBanner" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo), global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo.Parser, new[]{ "CompanionBanner", "ActionButtonLabel", "ActionHeadline" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo), global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo.Parser, new[]{ "ActionButtonLabel", "ActionHeadline", "CompanionBanner" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo), global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo.Parser, new[]{ "Headline", "Description" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo), global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo.Parser, new[]{ "Headline", "Description1", "Description2", "Thumbnail" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo), global::Google.Ads.GoogleAds.V12.Common.VideoAdInfo.Parser, new[]{ "Video", "InStream", "Bumper", "OutStream", "NonSkippable", "InFeed" }, new[]{ "Format" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo), global::Google.Ads.GoogleAds.V12.Common.VideoResponsiveAdInfo.Parser, new[]{ "Headlines", "LongHeadlines", "Descriptions", "CallToActions", "Videos", "CompanionBanners", "Breadcrumb1", "Breadcrumb2" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo), global::Google.Ads.GoogleAds.V12.Common.ResponsiveSearchAdInfo.Parser, new[]{ "Headlines", "Descriptions", "Path1", "Path2" }, new[]{ "Path1", "Path2" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo), global::Google.Ads.GoogleAds.V12.Common.LegacyResponsiveDisplayAdInfo.Parser, new[]{ "ShortHeadline", "LongHeadline", "Description", "BusinessName", "AllowFlexibleColor", "AccentColor", "MainColor", "CallToActionText", "LogoImage", "SquareLogoImage", "MarketingImage", "SquareMarketingImage", "FormatSetting", "PricePrefix", "PromoText" }, new[]{ "ShortHeadline", "LongHeadline", "Description", "BusinessName", "AllowFlexibleColor", "AccentColor", "MainColor", "CallToActionText", "LogoImage", "SquareLogoImage", "MarketingImage", "SquareMarketingImage", "PricePrefix", "PromoText" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AppAdInfo), global::Google.Ads.GoogleAds.V12.Common.AppAdInfo.Parser, new[]{ "MandatoryAdText", "Headlines", "Descriptions", "Images", "YoutubeVideos", "Html5MediaBundles" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo), global::Google.Ads.GoogleAds.V12.Common.AppEngagementAdInfo.Parser, new[]{ "Headlines", "Descriptions", "Images", "Videos" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo), global::Google.Ads.GoogleAds.V12.Common.AppPreRegistrationAdInfo.Parser, new[]{ "Headlines", "Descriptions", "Images", "YoutubeVideos" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo), global::Google.Ads.GoogleAds.V12.Common.LegacyAppInstallAdInfo.Parser, new[]{ "AppId", "AppStore", "Headline", "Description1", "Description2" }, new[]{ "AppId", "Headline", "Description1", "Description2" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo), global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdInfo.Parser, new[]{ "MarketingImages", "SquareMarketingImages", "LogoImages", "SquareLogoImages", "Headlines", "LongHeadline", "Descriptions", "YoutubeVideos", "BusinessName", "MainColor", "AccentColor", "AllowFlexibleColor", "CallToActionText", "PricePrefix", "PromoText", "FormatSetting", "ControlSpec" }, new[]{ "BusinessName", "MainColor", "AccentColor", "AllowFlexibleColor", "CallToActionText", "PricePrefix", "PromoText" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo), global::Google.Ads.GoogleAds.V12.Common.LocalAdInfo.Parser, new[]{ "Headlines", "Descriptions", "CallToActions", "MarketingImages", "LogoImages", "Videos", "Path1", "Path2" }, new[]{ "Path1", "Path2" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo), global::Google.Ads.GoogleAds.V12.Common.DisplayUploadAdInfo.Parser, new[]{ "DisplayUploadProductType", "MediaBundle" }, new[]{ "MediaAsset" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdControlSpec), global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdControlSpec.Parser, new[]{ "EnableAssetEnhancements", "EnableAutogenVideo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo), global::Google.Ads.GoogleAds.V12.Common.SmartCampaignAdInfo.Parser, new[]{ "Headlines", "Descriptions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CallAdInfo), global::Google.Ads.GoogleAds.V12.Common.CallAdInfo.Parser, new[]{ "CountryCode", "PhoneNumber", "BusinessName", "Headline1", "Headline2", "Description1", "Description2", "CallTracked", "DisableCallConversion", "PhoneNumberVerificationUrl", "ConversionAction", "ConversionReportingState", "Path1", "Path2" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo), global::Google.Ads.GoogleAds.V12.Common.DiscoveryMultiAssetAdInfo.Parser, new[]{ "MarketingImages", "SquareMarketingImages", "PortraitMarketingImages", "LogoImages", "Headlines", "Descriptions", "BusinessName", "CallToActionText", "LeadFormOnly" }, new[]{ "BusinessName", "CallToActionText", "LeadFormOnly" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo), global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselAdInfo.Parser, new[]{ "BusinessName", "LogoImage", "Headline", "Description", "CallToActionText", "CarouselCards" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A text ad. - /// - public sealed partial class TextAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAdInfo(TextAdInfo other) : this() { - headline_ = other.headline_; - description1_ = other.description1_; - description2_ = other.description2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAdInfo Clone() { - return new TextAdInfo(this); - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 4; - private string headline_; - /// - /// The headline of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_ ?? ""; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeadline { - get { return headline_ != null; } - } - /// Clears the value of the "headline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeadline() { - headline_ = null; - } - - /// Field number for the "description1" field. - public const int Description1FieldNumber = 5; - private string description1_; - /// - /// The first line of the ad's description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description1 { - get { return description1_ ?? ""; } - set { - description1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription1 { - get { return description1_ != null; } - } - /// Clears the value of the "description1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription1() { - description1_ = null; - } - - /// Field number for the "description2" field. - public const int Description2FieldNumber = 6; - private string description2_; - /// - /// The second line of the ad's description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description2 { - get { return description2_ ?? ""; } - set { - description2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription2 { - get { return description2_ != null; } - } - /// Clears the value of the "description2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription2() { - description2_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TextAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TextAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Headline != other.Headline) return false; - if (Description1 != other.Description1) return false; - if (Description2 != other.Description2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHeadline) hash ^= Headline.GetHashCode(); - if (HasDescription1) hash ^= Description1.GetHashCode(); - if (HasDescription2) hash ^= Description2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasHeadline) { - output.WriteRawTag(34); - output.WriteString(Headline); - } - if (HasDescription1) { - output.WriteRawTag(42); - output.WriteString(Description1); - } - if (HasDescription2) { - output.WriteRawTag(50); - output.WriteString(Description2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasHeadline) { - output.WriteRawTag(34); - output.WriteString(Headline); - } - if (HasDescription1) { - output.WriteRawTag(42); - output.WriteString(Description1); - } - if (HasDescription2) { - output.WriteRawTag(50); - output.WriteString(Description2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHeadline) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (HasDescription1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description1); - } - if (HasDescription2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TextAdInfo other) { - if (other == null) { - return; - } - if (other.HasHeadline) { - Headline = other.Headline; - } - if (other.HasDescription1) { - Description1 = other.Description1; - } - if (other.HasDescription2) { - Description2 = other.Description2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 34: { - Headline = input.ReadString(); - break; - } - case 42: { - Description1 = input.ReadString(); - break; - } - case 50: { - Description2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - Headline = input.ReadString(); - break; - } - case 42: { - Description1 = input.ReadString(); - break; - } - case 50: { - Description2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An expanded text ad. - /// - public sealed partial class ExpandedTextAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExpandedTextAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedTextAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedTextAdInfo(ExpandedTextAdInfo other) : this() { - headlinePart1_ = other.headlinePart1_; - headlinePart2_ = other.headlinePart2_; - headlinePart3_ = other.headlinePart3_; - description_ = other.description_; - description2_ = other.description2_; - path1_ = other.path1_; - path2_ = other.path2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedTextAdInfo Clone() { - return new ExpandedTextAdInfo(this); - } - - /// Field number for the "headline_part1" field. - public const int HeadlinePart1FieldNumber = 8; - private string headlinePart1_; - /// - /// The first part of the ad's headline. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HeadlinePart1 { - get { return headlinePart1_ ?? ""; } - set { - headlinePart1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headline_part1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeadlinePart1 { - get { return headlinePart1_ != null; } - } - /// Clears the value of the "headline_part1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeadlinePart1() { - headlinePart1_ = null; - } - - /// Field number for the "headline_part2" field. - public const int HeadlinePart2FieldNumber = 9; - private string headlinePart2_; - /// - /// The second part of the ad's headline. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HeadlinePart2 { - get { return headlinePart2_ ?? ""; } - set { - headlinePart2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headline_part2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeadlinePart2 { - get { return headlinePart2_ != null; } - } - /// Clears the value of the "headline_part2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeadlinePart2() { - headlinePart2_ = null; - } - - /// Field number for the "headline_part3" field. - public const int HeadlinePart3FieldNumber = 10; - private string headlinePart3_; - /// - /// The third part of the ad's headline. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HeadlinePart3 { - get { return headlinePart3_ ?? ""; } - set { - headlinePart3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headline_part3" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeadlinePart3 { - get { return headlinePart3_ != null; } - } - /// Clears the value of the "headline_part3" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeadlinePart3() { - headlinePart3_ = null; - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 11; - private string description_; - /// - /// The description of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_ ?? ""; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() { - description_ = null; - } - - /// Field number for the "description2" field. - public const int Description2FieldNumber = 12; - private string description2_; - /// - /// The second description of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description2 { - get { return description2_ ?? ""; } - set { - description2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription2 { - get { return description2_ != null; } - } - /// Clears the value of the "description2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription2() { - description2_ = null; - } - - /// Field number for the "path1" field. - public const int Path1FieldNumber = 13; - private string path1_; - /// - /// The text that can appear alongside the ad's displayed URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path1 { - get { return path1_ ?? ""; } - set { - path1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "path1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPath1 { - get { return path1_ != null; } - } - /// Clears the value of the "path1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPath1() { - path1_ = null; - } - - /// Field number for the "path2" field. - public const int Path2FieldNumber = 14; - private string path2_; - /// - /// Additional text that can appear alongside the ad's displayed URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path2 { - get { return path2_ ?? ""; } - set { - path2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "path2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPath2 { - get { return path2_ != null; } - } - /// Clears the value of the "path2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPath2() { - path2_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExpandedTextAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExpandedTextAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (HeadlinePart1 != other.HeadlinePart1) return false; - if (HeadlinePart2 != other.HeadlinePart2) return false; - if (HeadlinePart3 != other.HeadlinePart3) return false; - if (Description != other.Description) return false; - if (Description2 != other.Description2) return false; - if (Path1 != other.Path1) return false; - if (Path2 != other.Path2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHeadlinePart1) hash ^= HeadlinePart1.GetHashCode(); - if (HasHeadlinePart2) hash ^= HeadlinePart2.GetHashCode(); - if (HasHeadlinePart3) hash ^= HeadlinePart3.GetHashCode(); - if (HasDescription) hash ^= Description.GetHashCode(); - if (HasDescription2) hash ^= Description2.GetHashCode(); - if (HasPath1) hash ^= Path1.GetHashCode(); - if (HasPath2) hash ^= Path2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasHeadlinePart1) { - output.WriteRawTag(66); - output.WriteString(HeadlinePart1); - } - if (HasHeadlinePart2) { - output.WriteRawTag(74); - output.WriteString(HeadlinePart2); - } - if (HasHeadlinePart3) { - output.WriteRawTag(82); - output.WriteString(HeadlinePart3); - } - if (HasDescription) { - output.WriteRawTag(90); - output.WriteString(Description); - } - if (HasDescription2) { - output.WriteRawTag(98); - output.WriteString(Description2); - } - if (HasPath1) { - output.WriteRawTag(106); - output.WriteString(Path1); - } - if (HasPath2) { - output.WriteRawTag(114); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasHeadlinePart1) { - output.WriteRawTag(66); - output.WriteString(HeadlinePart1); - } - if (HasHeadlinePart2) { - output.WriteRawTag(74); - output.WriteString(HeadlinePart2); - } - if (HasHeadlinePart3) { - output.WriteRawTag(82); - output.WriteString(HeadlinePart3); - } - if (HasDescription) { - output.WriteRawTag(90); - output.WriteString(Description); - } - if (HasDescription2) { - output.WriteRawTag(98); - output.WriteString(Description2); - } - if (HasPath1) { - output.WriteRawTag(106); - output.WriteString(Path1); - } - if (HasPath2) { - output.WriteRawTag(114); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHeadlinePart1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HeadlinePart1); - } - if (HasHeadlinePart2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HeadlinePart2); - } - if (HasHeadlinePart3) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HeadlinePart3); - } - if (HasDescription) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (HasDescription2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description2); - } - if (HasPath1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path1); - } - if (HasPath2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExpandedTextAdInfo other) { - if (other == null) { - return; - } - if (other.HasHeadlinePart1) { - HeadlinePart1 = other.HeadlinePart1; - } - if (other.HasHeadlinePart2) { - HeadlinePart2 = other.HeadlinePart2; - } - if (other.HasHeadlinePart3) { - HeadlinePart3 = other.HeadlinePart3; - } - if (other.HasDescription) { - Description = other.Description; - } - if (other.HasDescription2) { - Description2 = other.Description2; - } - if (other.HasPath1) { - Path1 = other.Path1; - } - if (other.HasPath2) { - Path2 = other.Path2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 66: { - HeadlinePart1 = input.ReadString(); - break; - } - case 74: { - HeadlinePart2 = input.ReadString(); - break; - } - case 82: { - HeadlinePart3 = input.ReadString(); - break; - } - case 90: { - Description = input.ReadString(); - break; - } - case 98: { - Description2 = input.ReadString(); - break; - } - case 106: { - Path1 = input.ReadString(); - break; - } - case 114: { - Path2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 66: { - HeadlinePart1 = input.ReadString(); - break; - } - case 74: { - HeadlinePart2 = input.ReadString(); - break; - } - case 82: { - HeadlinePart3 = input.ReadString(); - break; - } - case 90: { - Description = input.ReadString(); - break; - } - case 98: { - Description2 = input.ReadString(); - break; - } - case 106: { - Path1 = input.ReadString(); - break; - } - case 114: { - Path2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An expanded dynamic search ad. - /// - public sealed partial class ExpandedDynamicSearchAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExpandedDynamicSearchAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedDynamicSearchAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedDynamicSearchAdInfo(ExpandedDynamicSearchAdInfo other) : this() { - description_ = other.description_; - description2_ = other.description2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedDynamicSearchAdInfo Clone() { - return new ExpandedDynamicSearchAdInfo(this); - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 3; - private string description_; - /// - /// The description of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_ ?? ""; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() { - description_ = null; - } - - /// Field number for the "description2" field. - public const int Description2FieldNumber = 4; - private string description2_; - /// - /// The second description of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description2 { - get { return description2_ ?? ""; } - set { - description2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription2 { - get { return description2_ != null; } - } - /// Clears the value of the "description2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription2() { - description2_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExpandedDynamicSearchAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExpandedDynamicSearchAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Description != other.Description) return false; - if (Description2 != other.Description2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasDescription) hash ^= Description.GetHashCode(); - if (HasDescription2) hash ^= Description2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasDescription) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (HasDescription2) { - output.WriteRawTag(34); - output.WriteString(Description2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasDescription) { - output.WriteRawTag(26); - output.WriteString(Description); - } - if (HasDescription2) { - output.WriteRawTag(34); - output.WriteString(Description2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasDescription) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (HasDescription2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExpandedDynamicSearchAdInfo other) { - if (other == null) { - return; - } - if (other.HasDescription) { - Description = other.Description; - } - if (other.HasDescription2) { - Description2 = other.Description2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - Description2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Description = input.ReadString(); - break; - } - case 34: { - Description2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A hotel ad. - /// - public sealed partial class HotelAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelAdInfo(HotelAdInfo other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelAdInfo Clone() { - return new HotelAdInfo(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelAdInfo other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// A Smart Shopping ad. - /// - public sealed partial class ShoppingSmartAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShoppingSmartAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingSmartAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingSmartAdInfo(ShoppingSmartAdInfo other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingSmartAdInfo Clone() { - return new ShoppingSmartAdInfo(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ShoppingSmartAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ShoppingSmartAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ShoppingSmartAdInfo other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// A standard Shopping ad. - /// - public sealed partial class ShoppingProductAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShoppingProductAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingProductAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingProductAdInfo(ShoppingProductAdInfo other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingProductAdInfo Clone() { - return new ShoppingProductAdInfo(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ShoppingProductAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ShoppingProductAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ShoppingProductAdInfo other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// A Shopping Comparison Listing ad. - /// - public sealed partial class ShoppingComparisonListingAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShoppingComparisonListingAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingComparisonListingAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingComparisonListingAdInfo(ShoppingComparisonListingAdInfo other) : this() { - headline_ = other.headline_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingComparisonListingAdInfo Clone() { - return new ShoppingComparisonListingAdInfo(this); - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 2; - private string headline_; - /// - /// Headline of the ad. This field is required. Allowed length is between 25 - /// and 45 characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_ ?? ""; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeadline { - get { return headline_ != null; } - } - /// Clears the value of the "headline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeadline() { - headline_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ShoppingComparisonListingAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ShoppingComparisonListingAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Headline != other.Headline) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHeadline) hash ^= Headline.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasHeadline) { - output.WriteRawTag(18); - output.WriteString(Headline); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasHeadline) { - output.WriteRawTag(18); - output.WriteString(Headline); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHeadline) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ShoppingComparisonListingAdInfo other) { - if (other == null) { - return; - } - if (other.HasHeadline) { - Headline = other.Headline; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Headline = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Headline = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An image ad. - /// - public sealed partial class ImageAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImageAdInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageAdInfo(ImageAdInfo other) : this() { - _hasBits0 = other._hasBits0; - pixelWidth_ = other.pixelWidth_; - pixelHeight_ = other.pixelHeight_; - imageUrl_ = other.imageUrl_; - previewPixelWidth_ = other.previewPixelWidth_; - previewPixelHeight_ = other.previewPixelHeight_; - previewImageUrl_ = other.previewImageUrl_; - mimeType_ = other.mimeType_; - name_ = other.name_; - switch (other.ImageCase) { - case ImageOneofCase.MediaFile: - MediaFile = other.MediaFile; - break; - case ImageOneofCase.Data: - Data = other.Data; - break; - case ImageOneofCase.AdIdToCopyImageFrom: - AdIdToCopyImageFrom = other.AdIdToCopyImageFrom; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageAdInfo Clone() { - return new ImageAdInfo(this); - } - - /// Field number for the "pixel_width" field. - public const int PixelWidthFieldNumber = 15; - private long pixelWidth_; - /// - /// Width in pixels of the full size image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PixelWidth { - get { if ((_hasBits0 & 1) != 0) { return pixelWidth_; } else { return 0L; } } - set { - _hasBits0 |= 1; - pixelWidth_ = value; - } - } - /// Gets whether the "pixel_width" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPixelWidth { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "pixel_width" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPixelWidth() { - _hasBits0 &= ~1; - } - - /// Field number for the "pixel_height" field. - public const int PixelHeightFieldNumber = 16; - private long pixelHeight_; - /// - /// Height in pixels of the full size image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PixelHeight { - get { if ((_hasBits0 & 2) != 0) { return pixelHeight_; } else { return 0L; } } - set { - _hasBits0 |= 2; - pixelHeight_ = value; - } - } - /// Gets whether the "pixel_height" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPixelHeight { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "pixel_height" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPixelHeight() { - _hasBits0 &= ~2; - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 17; - private string imageUrl_; - /// - /// URL of the full size image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_ ?? ""; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "image_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasImageUrl { - get { return imageUrl_ != null; } - } - /// Clears the value of the "image_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearImageUrl() { - imageUrl_ = null; - } - - /// Field number for the "preview_pixel_width" field. - public const int PreviewPixelWidthFieldNumber = 18; - private long previewPixelWidth_; - /// - /// Width in pixels of the preview size image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PreviewPixelWidth { - get { if ((_hasBits0 & 4) != 0) { return previewPixelWidth_; } else { return 0L; } } - set { - _hasBits0 |= 4; - previewPixelWidth_ = value; - } - } - /// Gets whether the "preview_pixel_width" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPreviewPixelWidth { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "preview_pixel_width" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPreviewPixelWidth() { - _hasBits0 &= ~4; - } - - /// Field number for the "preview_pixel_height" field. - public const int PreviewPixelHeightFieldNumber = 19; - private long previewPixelHeight_; - /// - /// Height in pixels of the preview size image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PreviewPixelHeight { - get { if ((_hasBits0 & 8) != 0) { return previewPixelHeight_; } else { return 0L; } } - set { - _hasBits0 |= 8; - previewPixelHeight_ = value; - } - } - /// Gets whether the "preview_pixel_height" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPreviewPixelHeight { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "preview_pixel_height" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPreviewPixelHeight() { - _hasBits0 &= ~8; - } - - /// Field number for the "preview_image_url" field. - public const int PreviewImageUrlFieldNumber = 20; - private string previewImageUrl_; - /// - /// URL of the preview size image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PreviewImageUrl { - get { return previewImageUrl_ ?? ""; } - set { - previewImageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "preview_image_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPreviewImageUrl { - get { return previewImageUrl_ != null; } - } - /// Clears the value of the "preview_image_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPreviewImageUrl() { - previewImageUrl_ = null; - } - - /// Field number for the "mime_type" field. - public const int MimeTypeFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType mimeType_ = global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified; - /// - /// The mime type of the image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType MimeType { - get { return mimeType_; } - set { - mimeType_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 21; - private string name_; - /// - /// The name of the image. If the image was created from a MediaFile, this is - /// the MediaFile's name. If the image was created from bytes, this is empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "media_file" field. - public const int MediaFileFieldNumber = 12; - /// - /// The MediaFile resource to use for the image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MediaFile { - get { return imageCase_ == ImageOneofCase.MediaFile ? (string) image_ : ""; } - set { - image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - imageCase_ = ImageOneofCase.MediaFile; - } - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 13; - /// - /// Raw image data as bytes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return imageCase_ == ImageOneofCase.Data ? (pb::ByteString) image_ : pb::ByteString.Empty; } - set { - image_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - imageCase_ = ImageOneofCase.Data; - } - } - - /// Field number for the "ad_id_to_copy_image_from" field. - public const int AdIdToCopyImageFromFieldNumber = 14; - /// - /// An ad ID to copy the image from. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AdIdToCopyImageFrom { - get { return imageCase_ == ImageOneofCase.AdIdToCopyImageFrom ? (long) image_ : 0L; } - set { - image_ = value; - imageCase_ = ImageOneofCase.AdIdToCopyImageFrom; - } - } - - private object image_; - /// Enum of possible cases for the "image" oneof. - public enum ImageOneofCase { - None = 0, - MediaFile = 12, - Data = 13, - AdIdToCopyImageFrom = 14, - } - private ImageOneofCase imageCase_ = ImageOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageOneofCase ImageCase { - get { return imageCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearImage() { - imageCase_ = ImageOneofCase.None; - image_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImageAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImageAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PixelWidth != other.PixelWidth) return false; - if (PixelHeight != other.PixelHeight) return false; - if (ImageUrl != other.ImageUrl) return false; - if (PreviewPixelWidth != other.PreviewPixelWidth) return false; - if (PreviewPixelHeight != other.PreviewPixelHeight) return false; - if (PreviewImageUrl != other.PreviewImageUrl) return false; - if (MimeType != other.MimeType) return false; - if (Name != other.Name) return false; - if (MediaFile != other.MediaFile) return false; - if (Data != other.Data) return false; - if (AdIdToCopyImageFrom != other.AdIdToCopyImageFrom) return false; - if (ImageCase != other.ImageCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasPixelWidth) hash ^= PixelWidth.GetHashCode(); - if (HasPixelHeight) hash ^= PixelHeight.GetHashCode(); - if (HasImageUrl) hash ^= ImageUrl.GetHashCode(); - if (HasPreviewPixelWidth) hash ^= PreviewPixelWidth.GetHashCode(); - if (HasPreviewPixelHeight) hash ^= PreviewPixelHeight.GetHashCode(); - if (HasPreviewImageUrl) hash ^= PreviewImageUrl.GetHashCode(); - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) hash ^= MimeType.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (imageCase_ == ImageOneofCase.MediaFile) hash ^= MediaFile.GetHashCode(); - if (imageCase_ == ImageOneofCase.Data) hash ^= Data.GetHashCode(); - if (imageCase_ == ImageOneofCase.AdIdToCopyImageFrom) hash ^= AdIdToCopyImageFrom.GetHashCode(); - hash ^= (int) imageCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) MimeType); - } - if (imageCase_ == ImageOneofCase.MediaFile) { - output.WriteRawTag(98); - output.WriteString(MediaFile); - } - if (imageCase_ == ImageOneofCase.Data) { - output.WriteRawTag(106); - output.WriteBytes(Data); - } - if (imageCase_ == ImageOneofCase.AdIdToCopyImageFrom) { - output.WriteRawTag(112); - output.WriteInt64(AdIdToCopyImageFrom); - } - if (HasPixelWidth) { - output.WriteRawTag(120); - output.WriteInt64(PixelWidth); - } - if (HasPixelHeight) { - output.WriteRawTag(128, 1); - output.WriteInt64(PixelHeight); - } - if (HasImageUrl) { - output.WriteRawTag(138, 1); - output.WriteString(ImageUrl); - } - if (HasPreviewPixelWidth) { - output.WriteRawTag(144, 1); - output.WriteInt64(PreviewPixelWidth); - } - if (HasPreviewPixelHeight) { - output.WriteRawTag(152, 1); - output.WriteInt64(PreviewPixelHeight); - } - if (HasPreviewImageUrl) { - output.WriteRawTag(162, 1); - output.WriteString(PreviewImageUrl); - } - if (HasName) { - output.WriteRawTag(170, 1); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) MimeType); - } - if (imageCase_ == ImageOneofCase.MediaFile) { - output.WriteRawTag(98); - output.WriteString(MediaFile); - } - if (imageCase_ == ImageOneofCase.Data) { - output.WriteRawTag(106); - output.WriteBytes(Data); - } - if (imageCase_ == ImageOneofCase.AdIdToCopyImageFrom) { - output.WriteRawTag(112); - output.WriteInt64(AdIdToCopyImageFrom); - } - if (HasPixelWidth) { - output.WriteRawTag(120); - output.WriteInt64(PixelWidth); - } - if (HasPixelHeight) { - output.WriteRawTag(128, 1); - output.WriteInt64(PixelHeight); - } - if (HasImageUrl) { - output.WriteRawTag(138, 1); - output.WriteString(ImageUrl); - } - if (HasPreviewPixelWidth) { - output.WriteRawTag(144, 1); - output.WriteInt64(PreviewPixelWidth); - } - if (HasPreviewPixelHeight) { - output.WriteRawTag(152, 1); - output.WriteInt64(PreviewPixelHeight); - } - if (HasPreviewImageUrl) { - output.WriteRawTag(162, 1); - output.WriteString(PreviewImageUrl); - } - if (HasName) { - output.WriteRawTag(170, 1); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasPixelWidth) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PixelWidth); - } - if (HasPixelHeight) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(PixelHeight); - } - if (HasImageUrl) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (HasPreviewPixelWidth) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(PreviewPixelWidth); - } - if (HasPreviewPixelHeight) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(PreviewPixelHeight); - } - if (HasPreviewImageUrl) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PreviewImageUrl); - } - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MimeType); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (imageCase_ == ImageOneofCase.MediaFile) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MediaFile); - } - if (imageCase_ == ImageOneofCase.Data) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (imageCase_ == ImageOneofCase.AdIdToCopyImageFrom) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AdIdToCopyImageFrom); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImageAdInfo other) { - if (other == null) { - return; - } - if (other.HasPixelWidth) { - PixelWidth = other.PixelWidth; - } - if (other.HasPixelHeight) { - PixelHeight = other.PixelHeight; - } - if (other.HasImageUrl) { - ImageUrl = other.ImageUrl; - } - if (other.HasPreviewPixelWidth) { - PreviewPixelWidth = other.PreviewPixelWidth; - } - if (other.HasPreviewPixelHeight) { - PreviewPixelHeight = other.PreviewPixelHeight; - } - if (other.HasPreviewImageUrl) { - PreviewImageUrl = other.PreviewImageUrl; - } - if (other.MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - MimeType = other.MimeType; - } - if (other.HasName) { - Name = other.Name; - } - switch (other.ImageCase) { - case ImageOneofCase.MediaFile: - MediaFile = other.MediaFile; - break; - case ImageOneofCase.Data: - Data = other.Data; - break; - case ImageOneofCase.AdIdToCopyImageFrom: - AdIdToCopyImageFrom = other.AdIdToCopyImageFrom; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 80: { - MimeType = (global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType) input.ReadEnum(); - break; - } - case 98: { - MediaFile = input.ReadString(); - break; - } - case 106: { - Data = input.ReadBytes(); - break; - } - case 112: { - AdIdToCopyImageFrom = input.ReadInt64(); - break; - } - case 120: { - PixelWidth = input.ReadInt64(); - break; - } - case 128: { - PixelHeight = input.ReadInt64(); - break; - } - case 138: { - ImageUrl = input.ReadString(); - break; - } - case 144: { - PreviewPixelWidth = input.ReadInt64(); - break; - } - case 152: { - PreviewPixelHeight = input.ReadInt64(); - break; - } - case 162: { - PreviewImageUrl = input.ReadString(); - break; - } - case 170: { - Name = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 80: { - MimeType = (global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType) input.ReadEnum(); - break; - } - case 98: { - MediaFile = input.ReadString(); - break; - } - case 106: { - Data = input.ReadBytes(); - break; - } - case 112: { - AdIdToCopyImageFrom = input.ReadInt64(); - break; - } - case 120: { - PixelWidth = input.ReadInt64(); - break; - } - case 128: { - PixelHeight = input.ReadInt64(); - break; - } - case 138: { - ImageUrl = input.ReadString(); - break; - } - case 144: { - PreviewPixelWidth = input.ReadInt64(); - break; - } - case 152: { - PreviewPixelHeight = input.ReadInt64(); - break; - } - case 162: { - PreviewImageUrl = input.ReadString(); - break; - } - case 170: { - Name = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Representation of video bumper in-stream ad format (very short in-stream - /// non-skippable video ad). - /// - public sealed partial class VideoBumperInStreamAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoBumperInStreamAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoBumperInStreamAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoBumperInStreamAdInfo(VideoBumperInStreamAdInfo other) : this() { - companionBanner_ = other.companionBanner_ != null ? other.companionBanner_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoBumperInStreamAdInfo Clone() { - return new VideoBumperInStreamAdInfo(this); - } - - /// Field number for the "companion_banner" field. - public const int CompanionBannerFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.AdImageAsset companionBanner_; - /// - /// The image assets of the companion banner used with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdImageAsset CompanionBanner { - get { return companionBanner_; } - set { - companionBanner_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VideoBumperInStreamAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoBumperInStreamAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CompanionBanner, other.CompanionBanner)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (companionBanner_ != null) hash ^= CompanionBanner.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (companionBanner_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CompanionBanner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (companionBanner_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CompanionBanner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (companionBanner_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CompanionBanner); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoBumperInStreamAdInfo other) { - if (other == null) { - return; - } - if (other.companionBanner_ != null) { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - CompanionBanner.MergeFrom(other.CompanionBanner); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(CompanionBanner); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(CompanionBanner); - break; - } - } - } - } - #endif - - } - - /// - /// Representation of video non-skippable in-stream ad format (15 second - /// in-stream non-skippable video ad). - /// - public sealed partial class VideoNonSkippableInStreamAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoNonSkippableInStreamAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoNonSkippableInStreamAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoNonSkippableInStreamAdInfo(VideoNonSkippableInStreamAdInfo other) : this() { - companionBanner_ = other.companionBanner_ != null ? other.companionBanner_.Clone() : null; - actionButtonLabel_ = other.actionButtonLabel_; - actionHeadline_ = other.actionHeadline_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoNonSkippableInStreamAdInfo Clone() { - return new VideoNonSkippableInStreamAdInfo(this); - } - - /// Field number for the "companion_banner" field. - public const int CompanionBannerFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.AdImageAsset companionBanner_; - /// - /// The image assets of the companion banner used with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdImageAsset CompanionBanner { - get { return companionBanner_; } - set { - companionBanner_ = value; - } - } - - /// Field number for the "action_button_label" field. - public const int ActionButtonLabelFieldNumber = 3; - private string actionButtonLabel_ = ""; - /// - /// Label on the "Call To Action" button taking the user to the video ad's - /// final URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActionButtonLabel { - get { return actionButtonLabel_; } - set { - actionButtonLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "action_headline" field. - public const int ActionHeadlineFieldNumber = 4; - private string actionHeadline_ = ""; - /// - /// Additional text displayed with the "Call To Action" button to give - /// context and encourage clicking on the button. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActionHeadline { - get { return actionHeadline_; } - set { - actionHeadline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VideoNonSkippableInStreamAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoNonSkippableInStreamAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CompanionBanner, other.CompanionBanner)) return false; - if (ActionButtonLabel != other.ActionButtonLabel) return false; - if (ActionHeadline != other.ActionHeadline) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (companionBanner_ != null) hash ^= CompanionBanner.GetHashCode(); - if (ActionButtonLabel.Length != 0) hash ^= ActionButtonLabel.GetHashCode(); - if (ActionHeadline.Length != 0) hash ^= ActionHeadline.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ActionButtonLabel.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ActionButtonLabel); - } - if (ActionHeadline.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ActionHeadline); - } - if (companionBanner_ != null) { - output.WriteRawTag(42); - output.WriteMessage(CompanionBanner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ActionButtonLabel.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ActionButtonLabel); - } - if (ActionHeadline.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ActionHeadline); - } - if (companionBanner_ != null) { - output.WriteRawTag(42); - output.WriteMessage(CompanionBanner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (companionBanner_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CompanionBanner); - } - if (ActionButtonLabel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActionButtonLabel); - } - if (ActionHeadline.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActionHeadline); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoNonSkippableInStreamAdInfo other) { - if (other == null) { - return; - } - if (other.companionBanner_ != null) { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - CompanionBanner.MergeFrom(other.CompanionBanner); - } - if (other.ActionButtonLabel.Length != 0) { - ActionButtonLabel = other.ActionButtonLabel; - } - if (other.ActionHeadline.Length != 0) { - ActionHeadline = other.ActionHeadline; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - ActionButtonLabel = input.ReadString(); - break; - } - case 34: { - ActionHeadline = input.ReadString(); - break; - } - case 42: { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(CompanionBanner); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - ActionButtonLabel = input.ReadString(); - break; - } - case 34: { - ActionHeadline = input.ReadString(); - break; - } - case 42: { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(CompanionBanner); - break; - } - } - } - } - #endif - - } - - /// - /// Representation of video TrueView in-stream ad format (ad shown during video - /// playback, often at beginning, which displays a skip button a few seconds into - /// the video). - /// - public sealed partial class VideoTrueViewInStreamAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoTrueViewInStreamAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoTrueViewInStreamAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoTrueViewInStreamAdInfo(VideoTrueViewInStreamAdInfo other) : this() { - actionButtonLabel_ = other.actionButtonLabel_; - actionHeadline_ = other.actionHeadline_; - companionBanner_ = other.companionBanner_ != null ? other.companionBanner_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoTrueViewInStreamAdInfo Clone() { - return new VideoTrueViewInStreamAdInfo(this); - } - - /// Field number for the "action_button_label" field. - public const int ActionButtonLabelFieldNumber = 4; - private string actionButtonLabel_ = ""; - /// - /// Label on the CTA (call-to-action) button taking the user to the video ad's - /// final URL. - /// Required for TrueView for action campaigns, optional otherwise. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActionButtonLabel { - get { return actionButtonLabel_; } - set { - actionButtonLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "action_headline" field. - public const int ActionHeadlineFieldNumber = 5; - private string actionHeadline_ = ""; - /// - /// Additional text displayed with the CTA (call-to-action) button to give - /// context and encourage clicking on the button. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ActionHeadline { - get { return actionHeadline_; } - set { - actionHeadline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "companion_banner" field. - public const int CompanionBannerFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Common.AdImageAsset companionBanner_; - /// - /// The image assets of the companion banner used with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdImageAsset CompanionBanner { - get { return companionBanner_; } - set { - companionBanner_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VideoTrueViewInStreamAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoTrueViewInStreamAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ActionButtonLabel != other.ActionButtonLabel) return false; - if (ActionHeadline != other.ActionHeadline) return false; - if (!object.Equals(CompanionBanner, other.CompanionBanner)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ActionButtonLabel.Length != 0) hash ^= ActionButtonLabel.GetHashCode(); - if (ActionHeadline.Length != 0) hash ^= ActionHeadline.GetHashCode(); - if (companionBanner_ != null) hash ^= CompanionBanner.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ActionButtonLabel.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ActionButtonLabel); - } - if (ActionHeadline.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ActionHeadline); - } - if (companionBanner_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CompanionBanner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ActionButtonLabel.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ActionButtonLabel); - } - if (ActionHeadline.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ActionHeadline); - } - if (companionBanner_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CompanionBanner); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ActionButtonLabel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActionButtonLabel); - } - if (ActionHeadline.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ActionHeadline); - } - if (companionBanner_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CompanionBanner); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoTrueViewInStreamAdInfo other) { - if (other == null) { - return; - } - if (other.ActionButtonLabel.Length != 0) { - ActionButtonLabel = other.ActionButtonLabel; - } - if (other.ActionHeadline.Length != 0) { - ActionHeadline = other.ActionHeadline; - } - if (other.companionBanner_ != null) { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - CompanionBanner.MergeFrom(other.CompanionBanner); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 34: { - ActionButtonLabel = input.ReadString(); - break; - } - case 42: { - ActionHeadline = input.ReadString(); - break; - } - case 58: { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(CompanionBanner); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - ActionButtonLabel = input.ReadString(); - break; - } - case 42: { - ActionHeadline = input.ReadString(); - break; - } - case 58: { - if (companionBanner_ == null) { - CompanionBanner = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(CompanionBanner); - break; - } - } - } - } - #endif - - } - - /// - /// Representation of video out-stream ad format (ad shown alongside a feed - /// with automatic playback, without sound). - /// - public sealed partial class VideoOutstreamAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoOutstreamAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoOutstreamAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoOutstreamAdInfo(VideoOutstreamAdInfo other) : this() { - headline_ = other.headline_; - description_ = other.description_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoOutstreamAdInfo Clone() { - return new VideoOutstreamAdInfo(this); - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 3; - private string headline_ = ""; - /// - /// The headline of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 4; - private string description_ = ""; - /// - /// The description line. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VideoOutstreamAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoOutstreamAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Headline != other.Headline) return false; - if (Description != other.Description) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Headline.Length != 0) hash ^= Headline.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Headline.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Headline); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Headline.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Headline); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Headline.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoOutstreamAdInfo other) { - if (other == null) { - return; - } - if (other.Headline.Length != 0) { - Headline = other.Headline; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Headline = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Headline = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Representation of In-feed video ad format. - /// - public sealed partial class InFeedVideoAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InFeedVideoAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InFeedVideoAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InFeedVideoAdInfo(InFeedVideoAdInfo other) : this() { - headline_ = other.headline_; - description1_ = other.description1_; - description2_ = other.description2_; - thumbnail_ = other.thumbnail_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InFeedVideoAdInfo Clone() { - return new InFeedVideoAdInfo(this); - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 1; - private string headline_ = ""; - /// - /// The headline of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description1" field. - public const int Description1FieldNumber = 2; - private string description1_ = ""; - /// - /// First text line for the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description1 { - get { return description1_; } - set { - description1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description2" field. - public const int Description2FieldNumber = 3; - private string description2_ = ""; - /// - /// Second text line for the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description2 { - get { return description2_; } - set { - description2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "thumbnail" field. - public const int ThumbnailFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail thumbnail_ = global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail.Unspecified; - /// - /// Video thumbnail image to use. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail Thumbnail { - get { return thumbnail_; } - set { - thumbnail_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InFeedVideoAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InFeedVideoAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Headline != other.Headline) return false; - if (Description1 != other.Description1) return false; - if (Description2 != other.Description2) return false; - if (Thumbnail != other.Thumbnail) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Headline.Length != 0) hash ^= Headline.GetHashCode(); - if (Description1.Length != 0) hash ^= Description1.GetHashCode(); - if (Description2.Length != 0) hash ^= Description2.GetHashCode(); - if (Thumbnail != global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail.Unspecified) hash ^= Thumbnail.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Headline.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Headline); - } - if (Description1.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Description1); - } - if (Description2.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description2); - } - if (Thumbnail != global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Thumbnail); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Headline.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Headline); - } - if (Description1.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Description1); - } - if (Description2.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description2); - } - if (Thumbnail != global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Thumbnail); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Headline.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (Description1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description1); - } - if (Description2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description2); - } - if (Thumbnail != global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Thumbnail); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InFeedVideoAdInfo other) { - if (other == null) { - return; - } - if (other.Headline.Length != 0) { - Headline = other.Headline; - } - if (other.Description1.Length != 0) { - Description1 = other.Description1; - } - if (other.Description2.Length != 0) { - Description2 = other.Description2; - } - if (other.Thumbnail != global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail.Unspecified) { - Thumbnail = other.Thumbnail; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Headline = input.ReadString(); - break; - } - case 18: { - Description1 = input.ReadString(); - break; - } - case 26: { - Description2 = input.ReadString(); - break; - } - case 32: { - Thumbnail = (global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Headline = input.ReadString(); - break; - } - case 18: { - Description1 = input.ReadString(); - break; - } - case 26: { - Description2 = input.ReadString(); - break; - } - case 32: { - Thumbnail = (global::Google.Ads.GoogleAds.V12.Enums.VideoThumbnailEnum.Types.VideoThumbnail) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A video ad. - /// - public sealed partial class VideoAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoAdInfo(VideoAdInfo other) : this() { - video_ = other.video_ != null ? other.video_.Clone() : null; - switch (other.FormatCase) { - case FormatOneofCase.InStream: - InStream = other.InStream.Clone(); - break; - case FormatOneofCase.Bumper: - Bumper = other.Bumper.Clone(); - break; - case FormatOneofCase.OutStream: - OutStream = other.OutStream.Clone(); - break; - case FormatOneofCase.NonSkippable: - NonSkippable = other.NonSkippable.Clone(); - break; - case FormatOneofCase.InFeed: - InFeed = other.InFeed.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoAdInfo Clone() { - return new VideoAdInfo(this); - } - - /// Field number for the "video" field. - public const int VideoFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset video_; - /// - /// The YouTube video assets used for the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset Video { - get { return video_; } - set { - video_ = value; - } - } - - /// Field number for the "in_stream" field. - public const int InStreamFieldNumber = 2; - /// - /// Video TrueView in-stream ad format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo InStream { - get { return formatCase_ == FormatOneofCase.InStream ? (global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo) format_ : null; } - set { - format_ = value; - formatCase_ = value == null ? FormatOneofCase.None : FormatOneofCase.InStream; - } - } - - /// Field number for the "bumper" field. - public const int BumperFieldNumber = 3; - /// - /// Video bumper in-stream ad format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo Bumper { - get { return formatCase_ == FormatOneofCase.Bumper ? (global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo) format_ : null; } - set { - format_ = value; - formatCase_ = value == null ? FormatOneofCase.None : FormatOneofCase.Bumper; - } - } - - /// Field number for the "out_stream" field. - public const int OutStreamFieldNumber = 4; - /// - /// Video out-stream ad format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo OutStream { - get { return formatCase_ == FormatOneofCase.OutStream ? (global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo) format_ : null; } - set { - format_ = value; - formatCase_ = value == null ? FormatOneofCase.None : FormatOneofCase.OutStream; - } - } - - /// Field number for the "non_skippable" field. - public const int NonSkippableFieldNumber = 5; - /// - /// Video non-skippable in-stream ad format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo NonSkippable { - get { return formatCase_ == FormatOneofCase.NonSkippable ? (global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo) format_ : null; } - set { - format_ = value; - formatCase_ = value == null ? FormatOneofCase.None : FormatOneofCase.NonSkippable; - } - } - - /// Field number for the "in_feed" field. - public const int InFeedFieldNumber = 9; - /// - /// In-feed video ad format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo InFeed { - get { return formatCase_ == FormatOneofCase.InFeed ? (global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo) format_ : null; } - set { - format_ = value; - formatCase_ = value == null ? FormatOneofCase.None : FormatOneofCase.InFeed; - } - } - - private object format_; - /// Enum of possible cases for the "format" oneof. - public enum FormatOneofCase { - None = 0, - InStream = 2, - Bumper = 3, - OutStream = 4, - NonSkippable = 5, - InFeed = 9, - } - private FormatOneofCase formatCase_ = FormatOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FormatOneofCase FormatCase { - get { return formatCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFormat() { - formatCase_ = FormatOneofCase.None; - format_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VideoAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Video, other.Video)) return false; - if (!object.Equals(InStream, other.InStream)) return false; - if (!object.Equals(Bumper, other.Bumper)) return false; - if (!object.Equals(OutStream, other.OutStream)) return false; - if (!object.Equals(NonSkippable, other.NonSkippable)) return false; - if (!object.Equals(InFeed, other.InFeed)) return false; - if (FormatCase != other.FormatCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (video_ != null) hash ^= Video.GetHashCode(); - if (formatCase_ == FormatOneofCase.InStream) hash ^= InStream.GetHashCode(); - if (formatCase_ == FormatOneofCase.Bumper) hash ^= Bumper.GetHashCode(); - if (formatCase_ == FormatOneofCase.OutStream) hash ^= OutStream.GetHashCode(); - if (formatCase_ == FormatOneofCase.NonSkippable) hash ^= NonSkippable.GetHashCode(); - if (formatCase_ == FormatOneofCase.InFeed) hash ^= InFeed.GetHashCode(); - hash ^= (int) formatCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (formatCase_ == FormatOneofCase.InStream) { - output.WriteRawTag(18); - output.WriteMessage(InStream); - } - if (formatCase_ == FormatOneofCase.Bumper) { - output.WriteRawTag(26); - output.WriteMessage(Bumper); - } - if (formatCase_ == FormatOneofCase.OutStream) { - output.WriteRawTag(34); - output.WriteMessage(OutStream); - } - if (formatCase_ == FormatOneofCase.NonSkippable) { - output.WriteRawTag(42); - output.WriteMessage(NonSkippable); - } - if (video_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Video); - } - if (formatCase_ == FormatOneofCase.InFeed) { - output.WriteRawTag(74); - output.WriteMessage(InFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (formatCase_ == FormatOneofCase.InStream) { - output.WriteRawTag(18); - output.WriteMessage(InStream); - } - if (formatCase_ == FormatOneofCase.Bumper) { - output.WriteRawTag(26); - output.WriteMessage(Bumper); - } - if (formatCase_ == FormatOneofCase.OutStream) { - output.WriteRawTag(34); - output.WriteMessage(OutStream); - } - if (formatCase_ == FormatOneofCase.NonSkippable) { - output.WriteRawTag(42); - output.WriteMessage(NonSkippable); - } - if (video_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Video); - } - if (formatCase_ == FormatOneofCase.InFeed) { - output.WriteRawTag(74); - output.WriteMessage(InFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (video_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Video); - } - if (formatCase_ == FormatOneofCase.InStream) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InStream); - } - if (formatCase_ == FormatOneofCase.Bumper) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bumper); - } - if (formatCase_ == FormatOneofCase.OutStream) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OutStream); - } - if (formatCase_ == FormatOneofCase.NonSkippable) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NonSkippable); - } - if (formatCase_ == FormatOneofCase.InFeed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InFeed); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoAdInfo other) { - if (other == null) { - return; - } - if (other.video_ != null) { - if (video_ == null) { - Video = new global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset(); - } - Video.MergeFrom(other.Video); - } - switch (other.FormatCase) { - case FormatOneofCase.InStream: - if (InStream == null) { - InStream = new global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo(); - } - InStream.MergeFrom(other.InStream); - break; - case FormatOneofCase.Bumper: - if (Bumper == null) { - Bumper = new global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo(); - } - Bumper.MergeFrom(other.Bumper); - break; - case FormatOneofCase.OutStream: - if (OutStream == null) { - OutStream = new global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo(); - } - OutStream.MergeFrom(other.OutStream); - break; - case FormatOneofCase.NonSkippable: - if (NonSkippable == null) { - NonSkippable = new global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo(); - } - NonSkippable.MergeFrom(other.NonSkippable); - break; - case FormatOneofCase.InFeed: - if (InFeed == null) { - InFeed = new global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo(); - } - InFeed.MergeFrom(other.InFeed); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo(); - if (formatCase_ == FormatOneofCase.InStream) { - subBuilder.MergeFrom(InStream); - } - input.ReadMessage(subBuilder); - InStream = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo(); - if (formatCase_ == FormatOneofCase.Bumper) { - subBuilder.MergeFrom(Bumper); - } - input.ReadMessage(subBuilder); - Bumper = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo(); - if (formatCase_ == FormatOneofCase.OutStream) { - subBuilder.MergeFrom(OutStream); - } - input.ReadMessage(subBuilder); - OutStream = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo(); - if (formatCase_ == FormatOneofCase.NonSkippable) { - subBuilder.MergeFrom(NonSkippable); - } - input.ReadMessage(subBuilder); - NonSkippable = subBuilder; - break; - } - case 66: { - if (video_ == null) { - Video = new global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset(); - } - input.ReadMessage(Video); - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo(); - if (formatCase_ == FormatOneofCase.InFeed) { - subBuilder.MergeFrom(InFeed); - } - input.ReadMessage(subBuilder); - InFeed = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoTrueViewInStreamAdInfo(); - if (formatCase_ == FormatOneofCase.InStream) { - subBuilder.MergeFrom(InStream); - } - input.ReadMessage(subBuilder); - InStream = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoBumperInStreamAdInfo(); - if (formatCase_ == FormatOneofCase.Bumper) { - subBuilder.MergeFrom(Bumper); - } - input.ReadMessage(subBuilder); - Bumper = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoOutstreamAdInfo(); - if (formatCase_ == FormatOneofCase.OutStream) { - subBuilder.MergeFrom(OutStream); - } - input.ReadMessage(subBuilder); - OutStream = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.VideoNonSkippableInStreamAdInfo(); - if (formatCase_ == FormatOneofCase.NonSkippable) { - subBuilder.MergeFrom(NonSkippable); - } - input.ReadMessage(subBuilder); - NonSkippable = subBuilder; - break; - } - case 66: { - if (video_ == null) { - Video = new global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset(); - } - input.ReadMessage(Video); - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.InFeedVideoAdInfo(); - if (formatCase_ == FormatOneofCase.InFeed) { - subBuilder.MergeFrom(InFeed); - } - input.ReadMessage(subBuilder); - InFeed = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// A video responsive ad. - /// - public sealed partial class VideoResponsiveAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoResponsiveAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoResponsiveAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoResponsiveAdInfo(VideoResponsiveAdInfo other) : this() { - headlines_ = other.headlines_.Clone(); - longHeadlines_ = other.longHeadlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - callToActions_ = other.callToActions_.Clone(); - videos_ = other.videos_.Clone(); - companionBanners_ = other.companionBanners_.Clone(); - breadcrumb1_ = other.breadcrumb1_; - breadcrumb2_ = other.breadcrumb2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VideoResponsiveAdInfo Clone() { - return new VideoResponsiveAdInfo(this); - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// List of text assets used for the short headline, for example, the "Call To - /// Action" banner. Currently, only a single value for the short headline is - /// supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "long_headlines" field. - public const int LongHeadlinesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_longHeadlines_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField longHeadlines_ = new pbc::RepeatedField(); - /// - /// List of text assets used for the long headline. - /// Currently, only a single value for the long headline is supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LongHeadlines { - get { return longHeadlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// List of text assets used for the description. - /// Currently, only a single value for the description is supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "call_to_actions" field. - public const int CallToActionsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_callToActions_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField callToActions_ = new pbc::RepeatedField(); - /// - /// List of text assets used for the button, for example, the "Call To Action" - /// button. Currently, only a single value for the button is supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CallToActions { - get { return callToActions_; } - } - - /// Field number for the "videos" field. - public const int VideosFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_videos_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset.Parser); - private readonly pbc::RepeatedField videos_ = new pbc::RepeatedField(); - /// - /// List of YouTube video assets used for the ad. - /// Currently, only a single value for the YouTube video asset is supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Videos { - get { return videos_; } - } - - /// Field number for the "companion_banners" field. - public const int CompanionBannersFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_companionBanners_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField companionBanners_ = new pbc::RepeatedField(); - /// - /// List of image assets used for the companion banner. - /// Currently, only a single value for the companion banner asset is supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CompanionBanners { - get { return companionBanners_; } - } - - /// Field number for the "breadcrumb1" field. - public const int Breadcrumb1FieldNumber = 7; - private string breadcrumb1_ = ""; - /// - /// First part of text that appears in the ad with the displayed URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Breadcrumb1 { - get { return breadcrumb1_; } - set { - breadcrumb1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "breadcrumb2" field. - public const int Breadcrumb2FieldNumber = 8; - private string breadcrumb2_ = ""; - /// - /// Second part of text that appears in the ad with the displayed URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Breadcrumb2 { - get { return breadcrumb2_; } - set { - breadcrumb2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VideoResponsiveAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VideoResponsiveAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!headlines_.Equals(other.headlines_)) return false; - if(!longHeadlines_.Equals(other.longHeadlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if(!callToActions_.Equals(other.callToActions_)) return false; - if(!videos_.Equals(other.videos_)) return false; - if(!companionBanners_.Equals(other.companionBanners_)) return false; - if (Breadcrumb1 != other.Breadcrumb1) return false; - if (Breadcrumb2 != other.Breadcrumb2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= headlines_.GetHashCode(); - hash ^= longHeadlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - hash ^= callToActions_.GetHashCode(); - hash ^= videos_.GetHashCode(); - hash ^= companionBanners_.GetHashCode(); - if (Breadcrumb1.Length != 0) hash ^= Breadcrumb1.GetHashCode(); - if (Breadcrumb2.Length != 0) hash ^= Breadcrumb2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - headlines_.WriteTo(output, _repeated_headlines_codec); - longHeadlines_.WriteTo(output, _repeated_longHeadlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - callToActions_.WriteTo(output, _repeated_callToActions_codec); - videos_.WriteTo(output, _repeated_videos_codec); - companionBanners_.WriteTo(output, _repeated_companionBanners_codec); - if (Breadcrumb1.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Breadcrumb1); - } - if (Breadcrumb2.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Breadcrumb2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - headlines_.WriteTo(ref output, _repeated_headlines_codec); - longHeadlines_.WriteTo(ref output, _repeated_longHeadlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - callToActions_.WriteTo(ref output, _repeated_callToActions_codec); - videos_.WriteTo(ref output, _repeated_videos_codec); - companionBanners_.WriteTo(ref output, _repeated_companionBanners_codec); - if (Breadcrumb1.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Breadcrumb1); - } - if (Breadcrumb2.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Breadcrumb2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += longHeadlines_.CalculateSize(_repeated_longHeadlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - size += callToActions_.CalculateSize(_repeated_callToActions_codec); - size += videos_.CalculateSize(_repeated_videos_codec); - size += companionBanners_.CalculateSize(_repeated_companionBanners_codec); - if (Breadcrumb1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Breadcrumb1); - } - if (Breadcrumb2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Breadcrumb2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VideoResponsiveAdInfo other) { - if (other == null) { - return; - } - headlines_.Add(other.headlines_); - longHeadlines_.Add(other.longHeadlines_); - descriptions_.Add(other.descriptions_); - callToActions_.Add(other.callToActions_); - videos_.Add(other.videos_); - companionBanners_.Add(other.companionBanners_); - if (other.Breadcrumb1.Length != 0) { - Breadcrumb1 = other.Breadcrumb1; - } - if (other.Breadcrumb2.Length != 0) { - Breadcrumb2 = other.Breadcrumb2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 18: { - longHeadlines_.AddEntriesFrom(input, _repeated_longHeadlines_codec); - break; - } - case 26: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 34: { - callToActions_.AddEntriesFrom(input, _repeated_callToActions_codec); - break; - } - case 42: { - videos_.AddEntriesFrom(input, _repeated_videos_codec); - break; - } - case 50: { - companionBanners_.AddEntriesFrom(input, _repeated_companionBanners_codec); - break; - } - case 58: { - Breadcrumb1 = input.ReadString(); - break; - } - case 66: { - Breadcrumb2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 18: { - longHeadlines_.AddEntriesFrom(ref input, _repeated_longHeadlines_codec); - break; - } - case 26: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 34: { - callToActions_.AddEntriesFrom(ref input, _repeated_callToActions_codec); - break; - } - case 42: { - videos_.AddEntriesFrom(ref input, _repeated_videos_codec); - break; - } - case 50: { - companionBanners_.AddEntriesFrom(ref input, _repeated_companionBanners_codec); - break; - } - case 58: { - Breadcrumb1 = input.ReadString(); - break; - } - case 66: { - Breadcrumb2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A responsive search ad. - /// - /// Responsive search ads let you create an ad that adapts to show more text, and - /// more relevant messages, to your customers. Enter multiple headlines and - /// descriptions when creating a responsive search ad, and over time, Google Ads - /// will automatically test different combinations and learn which combinations - /// perform best. By adapting your ad's content to more closely match potential - /// customers' search terms, responsive search ads may improve your campaign's - /// performance. - /// - /// More information at https://support.google.com/google-ads/answer/7684791 - /// - public sealed partial class ResponsiveSearchAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResponsiveSearchAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveSearchAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveSearchAdInfo(ResponsiveSearchAdInfo other) : this() { - headlines_ = other.headlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - path1_ = other.path1_; - path2_ = other.path2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveSearchAdInfo Clone() { - return new ResponsiveSearchAdInfo(this); - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// List of text assets for headlines. When the ad serves the headlines will - /// be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// List of text assets for descriptions. When the ad serves the descriptions - /// will be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "path1" field. - public const int Path1FieldNumber = 5; - private string path1_; - /// - /// First part of text that can be appended to the URL in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path1 { - get { return path1_ ?? ""; } - set { - path1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "path1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPath1 { - get { return path1_ != null; } - } - /// Clears the value of the "path1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPath1() { - path1_ = null; - } - - /// Field number for the "path2" field. - public const int Path2FieldNumber = 6; - private string path2_; - /// - /// Second part of text that can be appended to the URL in the ad. This field - /// can only be set when `path1` is also set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path2 { - get { return path2_ ?? ""; } - set { - path2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "path2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPath2 { - get { return path2_ != null; } - } - /// Clears the value of the "path2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPath2() { - path2_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ResponsiveSearchAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ResponsiveSearchAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!headlines_.Equals(other.headlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if (Path1 != other.Path1) return false; - if (Path2 != other.Path2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= headlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - if (HasPath1) hash ^= Path1.GetHashCode(); - if (HasPath2) hash ^= Path2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - headlines_.WriteTo(output, _repeated_headlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - if (HasPath1) { - output.WriteRawTag(42); - output.WriteString(Path1); - } - if (HasPath2) { - output.WriteRawTag(50); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - headlines_.WriteTo(ref output, _repeated_headlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - if (HasPath1) { - output.WriteRawTag(42); - output.WriteString(Path1); - } - if (HasPath2) { - output.WriteRawTag(50); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - if (HasPath1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path1); - } - if (HasPath2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ResponsiveSearchAdInfo other) { - if (other == null) { - return; - } - headlines_.Add(other.headlines_); - descriptions_.Add(other.descriptions_); - if (other.HasPath1) { - Path1 = other.Path1; - } - if (other.HasPath2) { - Path2 = other.Path2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 42: { - Path1 = input.ReadString(); - break; - } - case 50: { - Path2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 42: { - Path1 = input.ReadString(); - break; - } - case 50: { - Path2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A legacy responsive display ad. Ads of this type are labeled 'Responsive ads' - /// in the Google Ads UI. - /// - public sealed partial class LegacyResponsiveDisplayAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LegacyResponsiveDisplayAdInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LegacyResponsiveDisplayAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LegacyResponsiveDisplayAdInfo(LegacyResponsiveDisplayAdInfo other) : this() { - _hasBits0 = other._hasBits0; - shortHeadline_ = other.shortHeadline_; - longHeadline_ = other.longHeadline_; - description_ = other.description_; - businessName_ = other.businessName_; - allowFlexibleColor_ = other.allowFlexibleColor_; - accentColor_ = other.accentColor_; - mainColor_ = other.mainColor_; - callToActionText_ = other.callToActionText_; - logoImage_ = other.logoImage_; - squareLogoImage_ = other.squareLogoImage_; - marketingImage_ = other.marketingImage_; - squareMarketingImage_ = other.squareMarketingImage_; - formatSetting_ = other.formatSetting_; - pricePrefix_ = other.pricePrefix_; - promoText_ = other.promoText_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LegacyResponsiveDisplayAdInfo Clone() { - return new LegacyResponsiveDisplayAdInfo(this); - } - - /// Field number for the "short_headline" field. - public const int ShortHeadlineFieldNumber = 16; - private string shortHeadline_; - /// - /// The short version of the ad's headline. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ShortHeadline { - get { return shortHeadline_ ?? ""; } - set { - shortHeadline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "short_headline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasShortHeadline { - get { return shortHeadline_ != null; } - } - /// Clears the value of the "short_headline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearShortHeadline() { - shortHeadline_ = null; - } - - /// Field number for the "long_headline" field. - public const int LongHeadlineFieldNumber = 17; - private string longHeadline_; - /// - /// The long version of the ad's headline. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LongHeadline { - get { return longHeadline_ ?? ""; } - set { - longHeadline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "long_headline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLongHeadline { - get { return longHeadline_ != null; } - } - /// Clears the value of the "long_headline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLongHeadline() { - longHeadline_ = null; - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 18; - private string description_; - /// - /// The description of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_ ?? ""; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() { - description_ = null; - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 19; - private string businessName_; - /// - /// The business name in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_ ?? ""; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "business_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBusinessName { - get { return businessName_ != null; } - } - /// Clears the value of the "business_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBusinessName() { - businessName_ = null; - } - - /// Field number for the "allow_flexible_color" field. - public const int AllowFlexibleColorFieldNumber = 20; - private bool allowFlexibleColor_; - /// - /// Advertiser's consent to allow flexible color. When true, the ad may be - /// served with different color if necessary. When false, the ad will be served - /// with the specified colors or a neutral color. - /// The default value is `true`. - /// Must be true if `main_color` and `accent_color` are not set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AllowFlexibleColor { - get { if ((_hasBits0 & 1) != 0) { return allowFlexibleColor_; } else { return false; } } - set { - _hasBits0 |= 1; - allowFlexibleColor_ = value; - } - } - /// Gets whether the "allow_flexible_color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAllowFlexibleColor { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "allow_flexible_color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAllowFlexibleColor() { - _hasBits0 &= ~1; - } - - /// Field number for the "accent_color" field. - public const int AccentColorFieldNumber = 21; - private string accentColor_; - /// - /// The accent color of the ad in hexadecimal, for example, #ffffff for white. - /// If one of `main_color` and `accent_color` is set, the other is required as - /// well. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccentColor { - get { return accentColor_ ?? ""; } - set { - accentColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "accent_color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccentColor { - get { return accentColor_ != null; } - } - /// Clears the value of the "accent_color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccentColor() { - accentColor_ = null; - } - - /// Field number for the "main_color" field. - public const int MainColorFieldNumber = 22; - private string mainColor_; - /// - /// The main color of the ad in hexadecimal, for example, #ffffff for white. - /// If one of `main_color` and `accent_color` is set, the other is required as - /// well. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MainColor { - get { return mainColor_ ?? ""; } - set { - mainColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "main_color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMainColor { - get { return mainColor_ != null; } - } - /// Clears the value of the "main_color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMainColor() { - mainColor_ = null; - } - - /// Field number for the "call_to_action_text" field. - public const int CallToActionTextFieldNumber = 23; - private string callToActionText_; - /// - /// The call-to-action text for the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallToActionText { - get { return callToActionText_ ?? ""; } - set { - callToActionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "call_to_action_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallToActionText { - get { return callToActionText_ != null; } - } - /// Clears the value of the "call_to_action_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallToActionText() { - callToActionText_ = null; - } - - /// Field number for the "logo_image" field. - public const int LogoImageFieldNumber = 24; - private string logoImage_; - /// - /// The MediaFile resource name of the logo image used in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LogoImage { - get { return logoImage_ ?? ""; } - set { - logoImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "logo_image" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLogoImage { - get { return logoImage_ != null; } - } - /// Clears the value of the "logo_image" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLogoImage() { - logoImage_ = null; - } - - /// Field number for the "square_logo_image" field. - public const int SquareLogoImageFieldNumber = 25; - private string squareLogoImage_; - /// - /// The MediaFile resource name of the square logo image used in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SquareLogoImage { - get { return squareLogoImage_ ?? ""; } - set { - squareLogoImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "square_logo_image" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSquareLogoImage { - get { return squareLogoImage_ != null; } - } - /// Clears the value of the "square_logo_image" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSquareLogoImage() { - squareLogoImage_ = null; - } - - /// Field number for the "marketing_image" field. - public const int MarketingImageFieldNumber = 26; - private string marketingImage_; - /// - /// The MediaFile resource name of the marketing image used in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MarketingImage { - get { return marketingImage_ ?? ""; } - set { - marketingImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "marketing_image" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMarketingImage { - get { return marketingImage_ != null; } - } - /// Clears the value of the "marketing_image" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMarketingImage() { - marketingImage_ = null; - } - - /// Field number for the "square_marketing_image" field. - public const int SquareMarketingImageFieldNumber = 27; - private string squareMarketingImage_; - /// - /// The MediaFile resource name of the square marketing image used in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SquareMarketingImage { - get { return squareMarketingImage_ ?? ""; } - set { - squareMarketingImage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "square_marketing_image" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSquareMarketingImage { - get { return squareMarketingImage_ != null; } - } - /// Clears the value of the "square_marketing_image" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSquareMarketingImage() { - squareMarketingImage_ = null; - } - - /// Field number for the "format_setting" field. - public const int FormatSettingFieldNumber = 13; - private global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting formatSetting_ = global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified; - /// - /// Specifies which format the ad will be served in. Default is ALL_FORMATS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting FormatSetting { - get { return formatSetting_; } - set { - formatSetting_ = value; - } - } - - /// Field number for the "price_prefix" field. - public const int PricePrefixFieldNumber = 28; - private string pricePrefix_; - /// - /// Prefix before price. For example, 'as low as'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PricePrefix { - get { return pricePrefix_ ?? ""; } - set { - pricePrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "price_prefix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPricePrefix { - get { return pricePrefix_ != null; } - } - /// Clears the value of the "price_prefix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPricePrefix() { - pricePrefix_ = null; - } - - /// Field number for the "promo_text" field. - public const int PromoTextFieldNumber = 29; - private string promoText_; - /// - /// Promotion text used for dynamic formats of responsive ads. For example - /// 'Free two-day shipping'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromoText { - get { return promoText_ ?? ""; } - set { - promoText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "promo_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPromoText { - get { return promoText_ != null; } - } - /// Clears the value of the "promo_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPromoText() { - promoText_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LegacyResponsiveDisplayAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LegacyResponsiveDisplayAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ShortHeadline != other.ShortHeadline) return false; - if (LongHeadline != other.LongHeadline) return false; - if (Description != other.Description) return false; - if (BusinessName != other.BusinessName) return false; - if (AllowFlexibleColor != other.AllowFlexibleColor) return false; - if (AccentColor != other.AccentColor) return false; - if (MainColor != other.MainColor) return false; - if (CallToActionText != other.CallToActionText) return false; - if (LogoImage != other.LogoImage) return false; - if (SquareLogoImage != other.SquareLogoImage) return false; - if (MarketingImage != other.MarketingImage) return false; - if (SquareMarketingImage != other.SquareMarketingImage) return false; - if (FormatSetting != other.FormatSetting) return false; - if (PricePrefix != other.PricePrefix) return false; - if (PromoText != other.PromoText) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasShortHeadline) hash ^= ShortHeadline.GetHashCode(); - if (HasLongHeadline) hash ^= LongHeadline.GetHashCode(); - if (HasDescription) hash ^= Description.GetHashCode(); - if (HasBusinessName) hash ^= BusinessName.GetHashCode(); - if (HasAllowFlexibleColor) hash ^= AllowFlexibleColor.GetHashCode(); - if (HasAccentColor) hash ^= AccentColor.GetHashCode(); - if (HasMainColor) hash ^= MainColor.GetHashCode(); - if (HasCallToActionText) hash ^= CallToActionText.GetHashCode(); - if (HasLogoImage) hash ^= LogoImage.GetHashCode(); - if (HasSquareLogoImage) hash ^= SquareLogoImage.GetHashCode(); - if (HasMarketingImage) hash ^= MarketingImage.GetHashCode(); - if (HasSquareMarketingImage) hash ^= SquareMarketingImage.GetHashCode(); - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) hash ^= FormatSetting.GetHashCode(); - if (HasPricePrefix) hash ^= PricePrefix.GetHashCode(); - if (HasPromoText) hash ^= PromoText.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) FormatSetting); - } - if (HasShortHeadline) { - output.WriteRawTag(130, 1); - output.WriteString(ShortHeadline); - } - if (HasLongHeadline) { - output.WriteRawTag(138, 1); - output.WriteString(LongHeadline); - } - if (HasDescription) { - output.WriteRawTag(146, 1); - output.WriteString(Description); - } - if (HasBusinessName) { - output.WriteRawTag(154, 1); - output.WriteString(BusinessName); - } - if (HasAllowFlexibleColor) { - output.WriteRawTag(160, 1); - output.WriteBool(AllowFlexibleColor); - } - if (HasAccentColor) { - output.WriteRawTag(170, 1); - output.WriteString(AccentColor); - } - if (HasMainColor) { - output.WriteRawTag(178, 1); - output.WriteString(MainColor); - } - if (HasCallToActionText) { - output.WriteRawTag(186, 1); - output.WriteString(CallToActionText); - } - if (HasLogoImage) { - output.WriteRawTag(194, 1); - output.WriteString(LogoImage); - } - if (HasSquareLogoImage) { - output.WriteRawTag(202, 1); - output.WriteString(SquareLogoImage); - } - if (HasMarketingImage) { - output.WriteRawTag(210, 1); - output.WriteString(MarketingImage); - } - if (HasSquareMarketingImage) { - output.WriteRawTag(218, 1); - output.WriteString(SquareMarketingImage); - } - if (HasPricePrefix) { - output.WriteRawTag(226, 1); - output.WriteString(PricePrefix); - } - if (HasPromoText) { - output.WriteRawTag(234, 1); - output.WriteString(PromoText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) FormatSetting); - } - if (HasShortHeadline) { - output.WriteRawTag(130, 1); - output.WriteString(ShortHeadline); - } - if (HasLongHeadline) { - output.WriteRawTag(138, 1); - output.WriteString(LongHeadline); - } - if (HasDescription) { - output.WriteRawTag(146, 1); - output.WriteString(Description); - } - if (HasBusinessName) { - output.WriteRawTag(154, 1); - output.WriteString(BusinessName); - } - if (HasAllowFlexibleColor) { - output.WriteRawTag(160, 1); - output.WriteBool(AllowFlexibleColor); - } - if (HasAccentColor) { - output.WriteRawTag(170, 1); - output.WriteString(AccentColor); - } - if (HasMainColor) { - output.WriteRawTag(178, 1); - output.WriteString(MainColor); - } - if (HasCallToActionText) { - output.WriteRawTag(186, 1); - output.WriteString(CallToActionText); - } - if (HasLogoImage) { - output.WriteRawTag(194, 1); - output.WriteString(LogoImage); - } - if (HasSquareLogoImage) { - output.WriteRawTag(202, 1); - output.WriteString(SquareLogoImage); - } - if (HasMarketingImage) { - output.WriteRawTag(210, 1); - output.WriteString(MarketingImage); - } - if (HasSquareMarketingImage) { - output.WriteRawTag(218, 1); - output.WriteString(SquareMarketingImage); - } - if (HasPricePrefix) { - output.WriteRawTag(226, 1); - output.WriteString(PricePrefix); - } - if (HasPromoText) { - output.WriteRawTag(234, 1); - output.WriteString(PromoText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasShortHeadline) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ShortHeadline); - } - if (HasLongHeadline) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(LongHeadline); - } - if (HasDescription) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (HasBusinessName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (HasAllowFlexibleColor) { - size += 2 + 1; - } - if (HasAccentColor) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AccentColor); - } - if (HasMainColor) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(MainColor); - } - if (HasCallToActionText) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CallToActionText); - } - if (HasLogoImage) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(LogoImage); - } - if (HasSquareLogoImage) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(SquareLogoImage); - } - if (HasMarketingImage) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(MarketingImage); - } - if (HasSquareMarketingImage) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(SquareMarketingImage); - } - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FormatSetting); - } - if (HasPricePrefix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PricePrefix); - } - if (HasPromoText) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PromoText); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LegacyResponsiveDisplayAdInfo other) { - if (other == null) { - return; - } - if (other.HasShortHeadline) { - ShortHeadline = other.ShortHeadline; - } - if (other.HasLongHeadline) { - LongHeadline = other.LongHeadline; - } - if (other.HasDescription) { - Description = other.Description; - } - if (other.HasBusinessName) { - BusinessName = other.BusinessName; - } - if (other.HasAllowFlexibleColor) { - AllowFlexibleColor = other.AllowFlexibleColor; - } - if (other.HasAccentColor) { - AccentColor = other.AccentColor; - } - if (other.HasMainColor) { - MainColor = other.MainColor; - } - if (other.HasCallToActionText) { - CallToActionText = other.CallToActionText; - } - if (other.HasLogoImage) { - LogoImage = other.LogoImage; - } - if (other.HasSquareLogoImage) { - SquareLogoImage = other.SquareLogoImage; - } - if (other.HasMarketingImage) { - MarketingImage = other.MarketingImage; - } - if (other.HasSquareMarketingImage) { - SquareMarketingImage = other.SquareMarketingImage; - } - if (other.FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - FormatSetting = other.FormatSetting; - } - if (other.HasPricePrefix) { - PricePrefix = other.PricePrefix; - } - if (other.HasPromoText) { - PromoText = other.PromoText; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 104: { - FormatSetting = (global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting) input.ReadEnum(); - break; - } - case 130: { - ShortHeadline = input.ReadString(); - break; - } - case 138: { - LongHeadline = input.ReadString(); - break; - } - case 146: { - Description = input.ReadString(); - break; - } - case 154: { - BusinessName = input.ReadString(); - break; - } - case 160: { - AllowFlexibleColor = input.ReadBool(); - break; - } - case 170: { - AccentColor = input.ReadString(); - break; - } - case 178: { - MainColor = input.ReadString(); - break; - } - case 186: { - CallToActionText = input.ReadString(); - break; - } - case 194: { - LogoImage = input.ReadString(); - break; - } - case 202: { - SquareLogoImage = input.ReadString(); - break; - } - case 210: { - MarketingImage = input.ReadString(); - break; - } - case 218: { - SquareMarketingImage = input.ReadString(); - break; - } - case 226: { - PricePrefix = input.ReadString(); - break; - } - case 234: { - PromoText = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 104: { - FormatSetting = (global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting) input.ReadEnum(); - break; - } - case 130: { - ShortHeadline = input.ReadString(); - break; - } - case 138: { - LongHeadline = input.ReadString(); - break; - } - case 146: { - Description = input.ReadString(); - break; - } - case 154: { - BusinessName = input.ReadString(); - break; - } - case 160: { - AllowFlexibleColor = input.ReadBool(); - break; - } - case 170: { - AccentColor = input.ReadString(); - break; - } - case 178: { - MainColor = input.ReadString(); - break; - } - case 186: { - CallToActionText = input.ReadString(); - break; - } - case 194: { - LogoImage = input.ReadString(); - break; - } - case 202: { - SquareLogoImage = input.ReadString(); - break; - } - case 210: { - MarketingImage = input.ReadString(); - break; - } - case 218: { - SquareMarketingImage = input.ReadString(); - break; - } - case 226: { - PricePrefix = input.ReadString(); - break; - } - case 234: { - PromoText = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An app ad. - /// - public sealed partial class AppAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppAdInfo(AppAdInfo other) : this() { - mandatoryAdText_ = other.mandatoryAdText_ != null ? other.mandatoryAdText_.Clone() : null; - headlines_ = other.headlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - images_ = other.images_.Clone(); - youtubeVideos_ = other.youtubeVideos_.Clone(); - html5MediaBundles_ = other.html5MediaBundles_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppAdInfo Clone() { - return new AppAdInfo(this); - } - - /// Field number for the "mandatory_ad_text" field. - public const int MandatoryAdTextFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.AdTextAsset mandatoryAdText_; - /// - /// Mandatory ad text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdTextAsset MandatoryAdText { - get { return mandatoryAdText_; } - set { - mandatoryAdText_ = value; - } - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// List of text assets for headlines. When the ad serves the headlines will - /// be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// List of text assets for descriptions. When the ad serves the descriptions - /// will be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "images" field. - public const int ImagesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_images_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField images_ = new pbc::RepeatedField(); - /// - /// List of image assets that may be displayed with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Images { - get { return images_; } - } - - /// Field number for the "youtube_videos" field. - public const int YoutubeVideosFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_youtubeVideos_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset.Parser); - private readonly pbc::RepeatedField youtubeVideos_ = new pbc::RepeatedField(); - /// - /// List of YouTube video assets that may be displayed with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField YoutubeVideos { - get { return youtubeVideos_; } - } - - /// Field number for the "html5_media_bundles" field. - public const int Html5MediaBundlesFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_html5MediaBundles_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset.Parser); - private readonly pbc::RepeatedField html5MediaBundles_ = new pbc::RepeatedField(); - /// - /// List of media bundle assets that may be used with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Html5MediaBundles { - get { return html5MediaBundles_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(MandatoryAdText, other.MandatoryAdText)) return false; - if(!headlines_.Equals(other.headlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if(!images_.Equals(other.images_)) return false; - if(!youtubeVideos_.Equals(other.youtubeVideos_)) return false; - if(!html5MediaBundles_.Equals(other.html5MediaBundles_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (mandatoryAdText_ != null) hash ^= MandatoryAdText.GetHashCode(); - hash ^= headlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - hash ^= images_.GetHashCode(); - hash ^= youtubeVideos_.GetHashCode(); - hash ^= html5MediaBundles_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (mandatoryAdText_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MandatoryAdText); - } - headlines_.WriteTo(output, _repeated_headlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - images_.WriteTo(output, _repeated_images_codec); - youtubeVideos_.WriteTo(output, _repeated_youtubeVideos_codec); - html5MediaBundles_.WriteTo(output, _repeated_html5MediaBundles_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (mandatoryAdText_ != null) { - output.WriteRawTag(10); - output.WriteMessage(MandatoryAdText); - } - headlines_.WriteTo(ref output, _repeated_headlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - images_.WriteTo(ref output, _repeated_images_codec); - youtubeVideos_.WriteTo(ref output, _repeated_youtubeVideos_codec); - html5MediaBundles_.WriteTo(ref output, _repeated_html5MediaBundles_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (mandatoryAdText_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MandatoryAdText); - } - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - size += images_.CalculateSize(_repeated_images_codec); - size += youtubeVideos_.CalculateSize(_repeated_youtubeVideos_codec); - size += html5MediaBundles_.CalculateSize(_repeated_html5MediaBundles_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppAdInfo other) { - if (other == null) { - return; - } - if (other.mandatoryAdText_ != null) { - if (mandatoryAdText_ == null) { - MandatoryAdText = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - MandatoryAdText.MergeFrom(other.MandatoryAdText); - } - headlines_.Add(other.headlines_); - descriptions_.Add(other.descriptions_); - images_.Add(other.images_); - youtubeVideos_.Add(other.youtubeVideos_); - html5MediaBundles_.Add(other.html5MediaBundles_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (mandatoryAdText_ == null) { - MandatoryAdText = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(MandatoryAdText); - break; - } - case 18: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 26: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 34: { - images_.AddEntriesFrom(input, _repeated_images_codec); - break; - } - case 42: { - youtubeVideos_.AddEntriesFrom(input, _repeated_youtubeVideos_codec); - break; - } - case 50: { - html5MediaBundles_.AddEntriesFrom(input, _repeated_html5MediaBundles_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (mandatoryAdText_ == null) { - MandatoryAdText = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(MandatoryAdText); - break; - } - case 18: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 26: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 34: { - images_.AddEntriesFrom(ref input, _repeated_images_codec); - break; - } - case 42: { - youtubeVideos_.AddEntriesFrom(ref input, _repeated_youtubeVideos_codec); - break; - } - case 50: { - html5MediaBundles_.AddEntriesFrom(ref input, _repeated_html5MediaBundles_codec); - break; - } - } - } - } - #endif - - } - - /// - /// App engagement ads allow you to write text encouraging a specific action in - /// the app, like checking in, making a purchase, or booking a flight. - /// They allow you to send users to a specific part of your app where they can - /// find what they're looking for easier and faster. - /// - public sealed partial class AppEngagementAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppEngagementAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEngagementAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEngagementAdInfo(AppEngagementAdInfo other) : this() { - headlines_ = other.headlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - images_ = other.images_.Clone(); - videos_ = other.videos_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppEngagementAdInfo Clone() { - return new AppEngagementAdInfo(this); - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// List of text assets for headlines. When the ad serves the headlines will - /// be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// List of text assets for descriptions. When the ad serves the descriptions - /// will be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "images" field. - public const int ImagesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_images_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField images_ = new pbc::RepeatedField(); - /// - /// List of image assets that may be displayed with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Images { - get { return images_; } - } - - /// Field number for the "videos" field. - public const int VideosFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_videos_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset.Parser); - private readonly pbc::RepeatedField videos_ = new pbc::RepeatedField(); - /// - /// List of video assets that may be displayed with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Videos { - get { return videos_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppEngagementAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppEngagementAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!headlines_.Equals(other.headlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if(!images_.Equals(other.images_)) return false; - if(!videos_.Equals(other.videos_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= headlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - hash ^= images_.GetHashCode(); - hash ^= videos_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - headlines_.WriteTo(output, _repeated_headlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - images_.WriteTo(output, _repeated_images_codec); - videos_.WriteTo(output, _repeated_videos_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - headlines_.WriteTo(ref output, _repeated_headlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - images_.WriteTo(ref output, _repeated_images_codec); - videos_.WriteTo(ref output, _repeated_videos_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - size += images_.CalculateSize(_repeated_images_codec); - size += videos_.CalculateSize(_repeated_videos_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppEngagementAdInfo other) { - if (other == null) { - return; - } - headlines_.Add(other.headlines_); - descriptions_.Add(other.descriptions_); - images_.Add(other.images_); - videos_.Add(other.videos_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 26: { - images_.AddEntriesFrom(input, _repeated_images_codec); - break; - } - case 34: { - videos_.AddEntriesFrom(input, _repeated_videos_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 26: { - images_.AddEntriesFrom(ref input, _repeated_images_codec); - break; - } - case 34: { - videos_.AddEntriesFrom(ref input, _repeated_videos_codec); - break; - } - } - } - } - #endif - - } - - /// - /// App pre-registration ads link to your app or game listing on Google Play, and - /// can run on Google Play, on YouTube (in-stream only), and within other apps - /// and mobile websites on the Display Network. It will help capture people's - /// interest in your app or game and generate an early install base for your app - /// or game before a launch. - /// - public sealed partial class AppPreRegistrationAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppPreRegistrationAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPreRegistrationAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPreRegistrationAdInfo(AppPreRegistrationAdInfo other) : this() { - headlines_ = other.headlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - images_ = other.images_.Clone(); - youtubeVideos_ = other.youtubeVideos_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPreRegistrationAdInfo Clone() { - return new AppPreRegistrationAdInfo(this); - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// List of text assets for headlines. When the ad serves the headlines will - /// be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// List of text assets for descriptions. When the ad serves the descriptions - /// will be selected from this list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "images" field. - public const int ImagesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_images_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField images_ = new pbc::RepeatedField(); - /// - /// List of image asset IDs whose images may be displayed with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Images { - get { return images_; } - } - - /// Field number for the "youtube_videos" field. - public const int YoutubeVideosFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_youtubeVideos_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset.Parser); - private readonly pbc::RepeatedField youtubeVideos_ = new pbc::RepeatedField(); - /// - /// List of YouTube video asset IDs whose videos may be displayed with the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField YoutubeVideos { - get { return youtubeVideos_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppPreRegistrationAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppPreRegistrationAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!headlines_.Equals(other.headlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if(!images_.Equals(other.images_)) return false; - if(!youtubeVideos_.Equals(other.youtubeVideos_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= headlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - hash ^= images_.GetHashCode(); - hash ^= youtubeVideos_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - headlines_.WriteTo(output, _repeated_headlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - images_.WriteTo(output, _repeated_images_codec); - youtubeVideos_.WriteTo(output, _repeated_youtubeVideos_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - headlines_.WriteTo(ref output, _repeated_headlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - images_.WriteTo(ref output, _repeated_images_codec); - youtubeVideos_.WriteTo(ref output, _repeated_youtubeVideos_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - size += images_.CalculateSize(_repeated_images_codec); - size += youtubeVideos_.CalculateSize(_repeated_youtubeVideos_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppPreRegistrationAdInfo other) { - if (other == null) { - return; - } - headlines_.Add(other.headlines_); - descriptions_.Add(other.descriptions_); - images_.Add(other.images_); - youtubeVideos_.Add(other.youtubeVideos_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 26: { - images_.AddEntriesFrom(input, _repeated_images_codec); - break; - } - case 34: { - youtubeVideos_.AddEntriesFrom(input, _repeated_youtubeVideos_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 26: { - images_.AddEntriesFrom(ref input, _repeated_images_codec); - break; - } - case 34: { - youtubeVideos_.AddEntriesFrom(ref input, _repeated_youtubeVideos_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A legacy app install ad that only can be used by a few select customers. - /// - public sealed partial class LegacyAppInstallAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LegacyAppInstallAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LegacyAppInstallAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LegacyAppInstallAdInfo(LegacyAppInstallAdInfo other) : this() { - appId_ = other.appId_; - appStore_ = other.appStore_; - headline_ = other.headline_; - description1_ = other.description1_; - description2_ = other.description2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LegacyAppInstallAdInfo Clone() { - return new LegacyAppInstallAdInfo(this); - } - - /// Field number for the "app_id" field. - public const int AppIdFieldNumber = 6; - private string appId_; - /// - /// The ID of the mobile app. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppId { - get { return appId_ ?? ""; } - set { - appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "app_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppId { - get { return appId_ != null; } - } - /// Clears the value of the "app_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppId() { - appId_ = null; - } - - /// Field number for the "app_store" field. - public const int AppStoreFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore appStore_ = global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore.Unspecified; - /// - /// The app store the mobile app is available in. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore AppStore { - get { return appStore_; } - set { - appStore_ = value; - } - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 7; - private string headline_; - /// - /// The headline of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_ ?? ""; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeadline { - get { return headline_ != null; } - } - /// Clears the value of the "headline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeadline() { - headline_ = null; - } - - /// Field number for the "description1" field. - public const int Description1FieldNumber = 8; - private string description1_; - /// - /// The first description line of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description1 { - get { return description1_ ?? ""; } - set { - description1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription1 { - get { return description1_ != null; } - } - /// Clears the value of the "description1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription1() { - description1_ = null; - } - - /// Field number for the "description2" field. - public const int Description2FieldNumber = 9; - private string description2_; - /// - /// The second description line of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description2 { - get { return description2_ ?? ""; } - set { - description2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription2 { - get { return description2_ != null; } - } - /// Clears the value of the "description2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription2() { - description2_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LegacyAppInstallAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LegacyAppInstallAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AppId != other.AppId) return false; - if (AppStore != other.AppStore) return false; - if (Headline != other.Headline) return false; - if (Description1 != other.Description1) return false; - if (Description2 != other.Description2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAppId) hash ^= AppId.GetHashCode(); - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore.Unspecified) hash ^= AppStore.GetHashCode(); - if (HasHeadline) hash ^= Headline.GetHashCode(); - if (HasDescription1) hash ^= Description1.GetHashCode(); - if (HasDescription2) hash ^= Description2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) AppStore); - } - if (HasAppId) { - output.WriteRawTag(50); - output.WriteString(AppId); - } - if (HasHeadline) { - output.WriteRawTag(58); - output.WriteString(Headline); - } - if (HasDescription1) { - output.WriteRawTag(66); - output.WriteString(Description1); - } - if (HasDescription2) { - output.WriteRawTag(74); - output.WriteString(Description2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) AppStore); - } - if (HasAppId) { - output.WriteRawTag(50); - output.WriteString(AppId); - } - if (HasHeadline) { - output.WriteRawTag(58); - output.WriteString(Headline); - } - if (HasDescription1) { - output.WriteRawTag(66); - output.WriteString(Description1); - } - if (HasDescription2) { - output.WriteRawTag(74); - output.WriteString(Description2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAppId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppStore); - } - if (HasHeadline) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (HasDescription1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description1); - } - if (HasDescription2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LegacyAppInstallAdInfo other) { - if (other == null) { - return; - } - if (other.HasAppId) { - AppId = other.AppId; - } - if (other.AppStore != global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore.Unspecified) { - AppStore = other.AppStore; - } - if (other.HasHeadline) { - Headline = other.Headline; - } - if (other.HasDescription1) { - Description1 = other.Description1; - } - if (other.HasDescription2) { - Description2 = other.Description2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore) input.ReadEnum(); - break; - } - case 50: { - AppId = input.ReadString(); - break; - } - case 58: { - Headline = input.ReadString(); - break; - } - case 66: { - Description1 = input.ReadString(); - break; - } - case 74: { - Description2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.LegacyAppInstallAdAppStoreEnum.Types.LegacyAppInstallAdAppStore) input.ReadEnum(); - break; - } - case 50: { - AppId = input.ReadString(); - break; - } - case 58: { - Headline = input.ReadString(); - break; - } - case 66: { - Description1 = input.ReadString(); - break; - } - case 74: { - Description2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A responsive display ad. - /// - public sealed partial class ResponsiveDisplayAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResponsiveDisplayAdInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveDisplayAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveDisplayAdInfo(ResponsiveDisplayAdInfo other) : this() { - _hasBits0 = other._hasBits0; - marketingImages_ = other.marketingImages_.Clone(); - squareMarketingImages_ = other.squareMarketingImages_.Clone(); - logoImages_ = other.logoImages_.Clone(); - squareLogoImages_ = other.squareLogoImages_.Clone(); - headlines_ = other.headlines_.Clone(); - longHeadline_ = other.longHeadline_ != null ? other.longHeadline_.Clone() : null; - descriptions_ = other.descriptions_.Clone(); - youtubeVideos_ = other.youtubeVideos_.Clone(); - businessName_ = other.businessName_; - mainColor_ = other.mainColor_; - accentColor_ = other.accentColor_; - allowFlexibleColor_ = other.allowFlexibleColor_; - callToActionText_ = other.callToActionText_; - pricePrefix_ = other.pricePrefix_; - promoText_ = other.promoText_; - formatSetting_ = other.formatSetting_; - controlSpec_ = other.controlSpec_ != null ? other.controlSpec_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveDisplayAdInfo Clone() { - return new ResponsiveDisplayAdInfo(this); - } - - /// Field number for the "marketing_images" field. - public const int MarketingImagesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_marketingImages_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField marketingImages_ = new pbc::RepeatedField(); - /// - /// Marketing images to be used in the ad. Valid image types are GIF, - /// JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must - /// be 1.91:1 (+-1%). At least one `marketing_image` is required. Combined - /// with `square_marketing_images`, the maximum is 15. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MarketingImages { - get { return marketingImages_; } - } - - /// Field number for the "square_marketing_images" field. - public const int SquareMarketingImagesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_squareMarketingImages_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField squareMarketingImages_ = new pbc::RepeatedField(); - /// - /// Square marketing images to be used in the ad. Valid image types are GIF, - /// JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must - /// be 1:1 (+-1%). At least one square `marketing_image` is required. Combined - /// with `marketing_images`, the maximum is 15. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SquareMarketingImages { - get { return squareMarketingImages_; } - } - - /// Field number for the "logo_images" field. - public const int LogoImagesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_logoImages_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField logoImages_ = new pbc::RepeatedField(); - /// - /// Logo images to be used in the ad. Valid image types are GIF, - /// JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must - /// be 4:1 (+-1%). Combined with `square_logo_images`, the maximum is 5. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LogoImages { - get { return logoImages_; } - } - - /// Field number for the "square_logo_images" field. - public const int SquareLogoImagesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_squareLogoImages_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField squareLogoImages_ = new pbc::RepeatedField(); - /// - /// Square logo images to be used in the ad. Valid image types are GIF, - /// JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must - /// be 1:1 (+-1%). Combined with `square_logo_images`, the maximum is 5. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SquareLogoImages { - get { return squareLogoImages_; } - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// Short format headlines for the ad. The maximum length is 30 characters. - /// At least 1 and max 5 headlines can be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "long_headline" field. - public const int LongHeadlineFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Common.AdTextAsset longHeadline_; - /// - /// A required long format headline. The maximum length is 90 characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdTextAsset LongHeadline { - get { return longHeadline_; } - set { - longHeadline_ = value; - } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// Descriptive texts for the ad. The maximum length is 90 characters. At - /// least 1 and max 5 headlines can be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "youtube_videos" field. - public const int YoutubeVideosFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_youtubeVideos_codec - = pb::FieldCodec.ForMessage(66, global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset.Parser); - private readonly pbc::RepeatedField youtubeVideos_ = new pbc::RepeatedField(); - /// - /// Optional YouTube videos for the ad. A maximum of 5 videos can be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField YoutubeVideos { - get { return youtubeVideos_; } - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 17; - private string businessName_; - /// - /// The advertiser/brand name. Maximum display width is 25. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_ ?? ""; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "business_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBusinessName { - get { return businessName_ != null; } - } - /// Clears the value of the "business_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBusinessName() { - businessName_ = null; - } - - /// Field number for the "main_color" field. - public const int MainColorFieldNumber = 18; - private string mainColor_; - /// - /// The main color of the ad in hexadecimal, for example, #ffffff for white. - /// If one of `main_color` and `accent_color` is set, the other is required as - /// well. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MainColor { - get { return mainColor_ ?? ""; } - set { - mainColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "main_color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMainColor { - get { return mainColor_ != null; } - } - /// Clears the value of the "main_color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMainColor() { - mainColor_ = null; - } - - /// Field number for the "accent_color" field. - public const int AccentColorFieldNumber = 19; - private string accentColor_; - /// - /// The accent color of the ad in hexadecimal, for example, #ffffff for white. - /// If one of `main_color` and `accent_color` is set, the other is required as - /// well. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccentColor { - get { return accentColor_ ?? ""; } - set { - accentColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "accent_color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccentColor { - get { return accentColor_ != null; } - } - /// Clears the value of the "accent_color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccentColor() { - accentColor_ = null; - } - - /// Field number for the "allow_flexible_color" field. - public const int AllowFlexibleColorFieldNumber = 20; - private bool allowFlexibleColor_; - /// - /// Advertiser's consent to allow flexible color. When true, the ad may be - /// served with different color if necessary. When false, the ad will be served - /// with the specified colors or a neutral color. - /// The default value is `true`. - /// Must be true if `main_color` and `accent_color` are not set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AllowFlexibleColor { - get { if ((_hasBits0 & 1) != 0) { return allowFlexibleColor_; } else { return false; } } - set { - _hasBits0 |= 1; - allowFlexibleColor_ = value; - } - } - /// Gets whether the "allow_flexible_color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAllowFlexibleColor { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "allow_flexible_color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAllowFlexibleColor() { - _hasBits0 &= ~1; - } - - /// Field number for the "call_to_action_text" field. - public const int CallToActionTextFieldNumber = 21; - private string callToActionText_; - /// - /// The call-to-action text for the ad. Maximum display width is 30. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallToActionText { - get { return callToActionText_ ?? ""; } - set { - callToActionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "call_to_action_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallToActionText { - get { return callToActionText_ != null; } - } - /// Clears the value of the "call_to_action_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallToActionText() { - callToActionText_ = null; - } - - /// Field number for the "price_prefix" field. - public const int PricePrefixFieldNumber = 22; - private string pricePrefix_; - /// - /// Prefix before price. For example, 'as low as'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PricePrefix { - get { return pricePrefix_ ?? ""; } - set { - pricePrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "price_prefix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPricePrefix { - get { return pricePrefix_ != null; } - } - /// Clears the value of the "price_prefix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPricePrefix() { - pricePrefix_ = null; - } - - /// Field number for the "promo_text" field. - public const int PromoTextFieldNumber = 23; - private string promoText_; - /// - /// Promotion text used for dynamic formats of responsive ads. For example - /// 'Free two-day shipping'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromoText { - get { return promoText_ ?? ""; } - set { - promoText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "promo_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPromoText { - get { return promoText_ != null; } - } - /// Clears the value of the "promo_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPromoText() { - promoText_ = null; - } - - /// Field number for the "format_setting" field. - public const int FormatSettingFieldNumber = 16; - private global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting formatSetting_ = global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified; - /// - /// Specifies which format the ad will be served in. Default is ALL_FORMATS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting FormatSetting { - get { return formatSetting_; } - set { - formatSetting_ = value; - } - } - - /// Field number for the "control_spec" field. - public const int ControlSpecFieldNumber = 24; - private global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdControlSpec controlSpec_; - /// - /// Specification for various creative controls. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdControlSpec ControlSpec { - get { return controlSpec_; } - set { - controlSpec_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ResponsiveDisplayAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ResponsiveDisplayAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!marketingImages_.Equals(other.marketingImages_)) return false; - if(!squareMarketingImages_.Equals(other.squareMarketingImages_)) return false; - if(!logoImages_.Equals(other.logoImages_)) return false; - if(!squareLogoImages_.Equals(other.squareLogoImages_)) return false; - if(!headlines_.Equals(other.headlines_)) return false; - if (!object.Equals(LongHeadline, other.LongHeadline)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if(!youtubeVideos_.Equals(other.youtubeVideos_)) return false; - if (BusinessName != other.BusinessName) return false; - if (MainColor != other.MainColor) return false; - if (AccentColor != other.AccentColor) return false; - if (AllowFlexibleColor != other.AllowFlexibleColor) return false; - if (CallToActionText != other.CallToActionText) return false; - if (PricePrefix != other.PricePrefix) return false; - if (PromoText != other.PromoText) return false; - if (FormatSetting != other.FormatSetting) return false; - if (!object.Equals(ControlSpec, other.ControlSpec)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= marketingImages_.GetHashCode(); - hash ^= squareMarketingImages_.GetHashCode(); - hash ^= logoImages_.GetHashCode(); - hash ^= squareLogoImages_.GetHashCode(); - hash ^= headlines_.GetHashCode(); - if (longHeadline_ != null) hash ^= LongHeadline.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - hash ^= youtubeVideos_.GetHashCode(); - if (HasBusinessName) hash ^= BusinessName.GetHashCode(); - if (HasMainColor) hash ^= MainColor.GetHashCode(); - if (HasAccentColor) hash ^= AccentColor.GetHashCode(); - if (HasAllowFlexibleColor) hash ^= AllowFlexibleColor.GetHashCode(); - if (HasCallToActionText) hash ^= CallToActionText.GetHashCode(); - if (HasPricePrefix) hash ^= PricePrefix.GetHashCode(); - if (HasPromoText) hash ^= PromoText.GetHashCode(); - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) hash ^= FormatSetting.GetHashCode(); - if (controlSpec_ != null) hash ^= ControlSpec.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - marketingImages_.WriteTo(output, _repeated_marketingImages_codec); - squareMarketingImages_.WriteTo(output, _repeated_squareMarketingImages_codec); - logoImages_.WriteTo(output, _repeated_logoImages_codec); - squareLogoImages_.WriteTo(output, _repeated_squareLogoImages_codec); - headlines_.WriteTo(output, _repeated_headlines_codec); - if (longHeadline_ != null) { - output.WriteRawTag(50); - output.WriteMessage(LongHeadline); - } - descriptions_.WriteTo(output, _repeated_descriptions_codec); - youtubeVideos_.WriteTo(output, _repeated_youtubeVideos_codec); - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) FormatSetting); - } - if (HasBusinessName) { - output.WriteRawTag(138, 1); - output.WriteString(BusinessName); - } - if (HasMainColor) { - output.WriteRawTag(146, 1); - output.WriteString(MainColor); - } - if (HasAccentColor) { - output.WriteRawTag(154, 1); - output.WriteString(AccentColor); - } - if (HasAllowFlexibleColor) { - output.WriteRawTag(160, 1); - output.WriteBool(AllowFlexibleColor); - } - if (HasCallToActionText) { - output.WriteRawTag(170, 1); - output.WriteString(CallToActionText); - } - if (HasPricePrefix) { - output.WriteRawTag(178, 1); - output.WriteString(PricePrefix); - } - if (HasPromoText) { - output.WriteRawTag(186, 1); - output.WriteString(PromoText); - } - if (controlSpec_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(ControlSpec); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - marketingImages_.WriteTo(ref output, _repeated_marketingImages_codec); - squareMarketingImages_.WriteTo(ref output, _repeated_squareMarketingImages_codec); - logoImages_.WriteTo(ref output, _repeated_logoImages_codec); - squareLogoImages_.WriteTo(ref output, _repeated_squareLogoImages_codec); - headlines_.WriteTo(ref output, _repeated_headlines_codec); - if (longHeadline_ != null) { - output.WriteRawTag(50); - output.WriteMessage(LongHeadline); - } - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - youtubeVideos_.WriteTo(ref output, _repeated_youtubeVideos_codec); - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) FormatSetting); - } - if (HasBusinessName) { - output.WriteRawTag(138, 1); - output.WriteString(BusinessName); - } - if (HasMainColor) { - output.WriteRawTag(146, 1); - output.WriteString(MainColor); - } - if (HasAccentColor) { - output.WriteRawTag(154, 1); - output.WriteString(AccentColor); - } - if (HasAllowFlexibleColor) { - output.WriteRawTag(160, 1); - output.WriteBool(AllowFlexibleColor); - } - if (HasCallToActionText) { - output.WriteRawTag(170, 1); - output.WriteString(CallToActionText); - } - if (HasPricePrefix) { - output.WriteRawTag(178, 1); - output.WriteString(PricePrefix); - } - if (HasPromoText) { - output.WriteRawTag(186, 1); - output.WriteString(PromoText); - } - if (controlSpec_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(ControlSpec); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += marketingImages_.CalculateSize(_repeated_marketingImages_codec); - size += squareMarketingImages_.CalculateSize(_repeated_squareMarketingImages_codec); - size += logoImages_.CalculateSize(_repeated_logoImages_codec); - size += squareLogoImages_.CalculateSize(_repeated_squareLogoImages_codec); - size += headlines_.CalculateSize(_repeated_headlines_codec); - if (longHeadline_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LongHeadline); - } - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - size += youtubeVideos_.CalculateSize(_repeated_youtubeVideos_codec); - if (HasBusinessName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (HasMainColor) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(MainColor); - } - if (HasAccentColor) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AccentColor); - } - if (HasAllowFlexibleColor) { - size += 2 + 1; - } - if (HasCallToActionText) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CallToActionText); - } - if (HasPricePrefix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PricePrefix); - } - if (HasPromoText) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PromoText); - } - if (FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FormatSetting); - } - if (controlSpec_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ControlSpec); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ResponsiveDisplayAdInfo other) { - if (other == null) { - return; - } - marketingImages_.Add(other.marketingImages_); - squareMarketingImages_.Add(other.squareMarketingImages_); - logoImages_.Add(other.logoImages_); - squareLogoImages_.Add(other.squareLogoImages_); - headlines_.Add(other.headlines_); - if (other.longHeadline_ != null) { - if (longHeadline_ == null) { - LongHeadline = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - LongHeadline.MergeFrom(other.LongHeadline); - } - descriptions_.Add(other.descriptions_); - youtubeVideos_.Add(other.youtubeVideos_); - if (other.HasBusinessName) { - BusinessName = other.BusinessName; - } - if (other.HasMainColor) { - MainColor = other.MainColor; - } - if (other.HasAccentColor) { - AccentColor = other.AccentColor; - } - if (other.HasAllowFlexibleColor) { - AllowFlexibleColor = other.AllowFlexibleColor; - } - if (other.HasCallToActionText) { - CallToActionText = other.CallToActionText; - } - if (other.HasPricePrefix) { - PricePrefix = other.PricePrefix; - } - if (other.HasPromoText) { - PromoText = other.PromoText; - } - if (other.FormatSetting != global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting.Unspecified) { - FormatSetting = other.FormatSetting; - } - if (other.controlSpec_ != null) { - if (controlSpec_ == null) { - ControlSpec = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdControlSpec(); - } - ControlSpec.MergeFrom(other.ControlSpec); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - marketingImages_.AddEntriesFrom(input, _repeated_marketingImages_codec); - break; - } - case 18: { - squareMarketingImages_.AddEntriesFrom(input, _repeated_squareMarketingImages_codec); - break; - } - case 26: { - logoImages_.AddEntriesFrom(input, _repeated_logoImages_codec); - break; - } - case 34: { - squareLogoImages_.AddEntriesFrom(input, _repeated_squareLogoImages_codec); - break; - } - case 42: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 50: { - if (longHeadline_ == null) { - LongHeadline = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(LongHeadline); - break; - } - case 58: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 66: { - youtubeVideos_.AddEntriesFrom(input, _repeated_youtubeVideos_codec); - break; - } - case 128: { - FormatSetting = (global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting) input.ReadEnum(); - break; - } - case 138: { - BusinessName = input.ReadString(); - break; - } - case 146: { - MainColor = input.ReadString(); - break; - } - case 154: { - AccentColor = input.ReadString(); - break; - } - case 160: { - AllowFlexibleColor = input.ReadBool(); - break; - } - case 170: { - CallToActionText = input.ReadString(); - break; - } - case 178: { - PricePrefix = input.ReadString(); - break; - } - case 186: { - PromoText = input.ReadString(); - break; - } - case 194: { - if (controlSpec_ == null) { - ControlSpec = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdControlSpec(); - } - input.ReadMessage(ControlSpec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - marketingImages_.AddEntriesFrom(ref input, _repeated_marketingImages_codec); - break; - } - case 18: { - squareMarketingImages_.AddEntriesFrom(ref input, _repeated_squareMarketingImages_codec); - break; - } - case 26: { - logoImages_.AddEntriesFrom(ref input, _repeated_logoImages_codec); - break; - } - case 34: { - squareLogoImages_.AddEntriesFrom(ref input, _repeated_squareLogoImages_codec); - break; - } - case 42: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 50: { - if (longHeadline_ == null) { - LongHeadline = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(LongHeadline); - break; - } - case 58: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 66: { - youtubeVideos_.AddEntriesFrom(ref input, _repeated_youtubeVideos_codec); - break; - } - case 128: { - FormatSetting = (global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting) input.ReadEnum(); - break; - } - case 138: { - BusinessName = input.ReadString(); - break; - } - case 146: { - MainColor = input.ReadString(); - break; - } - case 154: { - AccentColor = input.ReadString(); - break; - } - case 160: { - AllowFlexibleColor = input.ReadBool(); - break; - } - case 170: { - CallToActionText = input.ReadString(); - break; - } - case 178: { - PricePrefix = input.ReadString(); - break; - } - case 186: { - PromoText = input.ReadString(); - break; - } - case 194: { - if (controlSpec_ == null) { - ControlSpec = new global::Google.Ads.GoogleAds.V12.Common.ResponsiveDisplayAdControlSpec(); - } - input.ReadMessage(ControlSpec); - break; - } - } - } - } - #endif - - } - - /// - /// A local ad. - /// - public sealed partial class LocalAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalAdInfo(LocalAdInfo other) : this() { - headlines_ = other.headlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - callToActions_ = other.callToActions_.Clone(); - marketingImages_ = other.marketingImages_.Clone(); - logoImages_ = other.logoImages_.Clone(); - videos_ = other.videos_.Clone(); - path1_ = other.path1_; - path2_ = other.path2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalAdInfo Clone() { - return new LocalAdInfo(this); - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// List of text assets for headlines. When the ad serves the headlines will - /// be selected from this list. At least 1 and at most 5 headlines must be - /// specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// List of text assets for descriptions. When the ad serves the descriptions - /// will be selected from this list. At least 1 and at most 5 descriptions must - /// be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "call_to_actions" field. - public const int CallToActionsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_callToActions_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField callToActions_ = new pbc::RepeatedField(); - /// - /// List of text assets for call-to-actions. When the ad serves the - /// call-to-actions will be selected from this list. At least 1 and at most - /// 5 call-to-actions must be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CallToActions { - get { return callToActions_; } - } - - /// Field number for the "marketing_images" field. - public const int MarketingImagesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_marketingImages_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField marketingImages_ = new pbc::RepeatedField(); - /// - /// List of marketing image assets that may be displayed with the ad. The - /// images must be 314x600 pixels or 320x320 pixels. At least 1 and at most - /// 20 image assets must be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MarketingImages { - get { return marketingImages_; } - } - - /// Field number for the "logo_images" field. - public const int LogoImagesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_logoImages_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField logoImages_ = new pbc::RepeatedField(); - /// - /// List of logo image assets that may be displayed with the ad. The images - /// must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5 - /// image assets must be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LogoImages { - get { return logoImages_; } - } - - /// Field number for the "videos" field. - public const int VideosFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_videos_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.AdVideoAsset.Parser); - private readonly pbc::RepeatedField videos_ = new pbc::RepeatedField(); - /// - /// List of YouTube video assets that may be displayed with the ad. At least 1 - /// and at most 20 video assets must be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Videos { - get { return videos_; } - } - - /// Field number for the "path1" field. - public const int Path1FieldNumber = 9; - private string path1_; - /// - /// First part of optional text that can be appended to the URL in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path1 { - get { return path1_ ?? ""; } - set { - path1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "path1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPath1 { - get { return path1_ != null; } - } - /// Clears the value of the "path1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPath1() { - path1_ = null; - } - - /// Field number for the "path2" field. - public const int Path2FieldNumber = 10; - private string path2_; - /// - /// Second part of optional text that can be appended to the URL in the ad. - /// This field can only be set when `path1` is also set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path2 { - get { return path2_ ?? ""; } - set { - path2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "path2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPath2 { - get { return path2_ != null; } - } - /// Clears the value of the "path2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPath2() { - path2_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocalAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!headlines_.Equals(other.headlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if(!callToActions_.Equals(other.callToActions_)) return false; - if(!marketingImages_.Equals(other.marketingImages_)) return false; - if(!logoImages_.Equals(other.logoImages_)) return false; - if(!videos_.Equals(other.videos_)) return false; - if (Path1 != other.Path1) return false; - if (Path2 != other.Path2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= headlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - hash ^= callToActions_.GetHashCode(); - hash ^= marketingImages_.GetHashCode(); - hash ^= logoImages_.GetHashCode(); - hash ^= videos_.GetHashCode(); - if (HasPath1) hash ^= Path1.GetHashCode(); - if (HasPath2) hash ^= Path2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - headlines_.WriteTo(output, _repeated_headlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - callToActions_.WriteTo(output, _repeated_callToActions_codec); - marketingImages_.WriteTo(output, _repeated_marketingImages_codec); - logoImages_.WriteTo(output, _repeated_logoImages_codec); - videos_.WriteTo(output, _repeated_videos_codec); - if (HasPath1) { - output.WriteRawTag(74); - output.WriteString(Path1); - } - if (HasPath2) { - output.WriteRawTag(82); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - headlines_.WriteTo(ref output, _repeated_headlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - callToActions_.WriteTo(ref output, _repeated_callToActions_codec); - marketingImages_.WriteTo(ref output, _repeated_marketingImages_codec); - logoImages_.WriteTo(ref output, _repeated_logoImages_codec); - videos_.WriteTo(ref output, _repeated_videos_codec); - if (HasPath1) { - output.WriteRawTag(74); - output.WriteString(Path1); - } - if (HasPath2) { - output.WriteRawTag(82); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - size += callToActions_.CalculateSize(_repeated_callToActions_codec); - size += marketingImages_.CalculateSize(_repeated_marketingImages_codec); - size += logoImages_.CalculateSize(_repeated_logoImages_codec); - size += videos_.CalculateSize(_repeated_videos_codec); - if (HasPath1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path1); - } - if (HasPath2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalAdInfo other) { - if (other == null) { - return; - } - headlines_.Add(other.headlines_); - descriptions_.Add(other.descriptions_); - callToActions_.Add(other.callToActions_); - marketingImages_.Add(other.marketingImages_); - logoImages_.Add(other.logoImages_); - videos_.Add(other.videos_); - if (other.HasPath1) { - Path1 = other.Path1; - } - if (other.HasPath2) { - Path2 = other.Path2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 26: { - callToActions_.AddEntriesFrom(input, _repeated_callToActions_codec); - break; - } - case 34: { - marketingImages_.AddEntriesFrom(input, _repeated_marketingImages_codec); - break; - } - case 42: { - logoImages_.AddEntriesFrom(input, _repeated_logoImages_codec); - break; - } - case 50: { - videos_.AddEntriesFrom(input, _repeated_videos_codec); - break; - } - case 74: { - Path1 = input.ReadString(); - break; - } - case 82: { - Path2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 26: { - callToActions_.AddEntriesFrom(ref input, _repeated_callToActions_codec); - break; - } - case 34: { - marketingImages_.AddEntriesFrom(ref input, _repeated_marketingImages_codec); - break; - } - case 42: { - logoImages_.AddEntriesFrom(ref input, _repeated_logoImages_codec); - break; - } - case 50: { - videos_.AddEntriesFrom(ref input, _repeated_videos_codec); - break; - } - case 74: { - Path1 = input.ReadString(); - break; - } - case 82: { - Path2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A generic type of display ad. The exact ad format is controlled by the - /// `display_upload_product_type` field, which determines what kinds of data - /// need to be included with the ad. - /// - public sealed partial class DisplayUploadAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisplayUploadAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayUploadAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayUploadAdInfo(DisplayUploadAdInfo other) : this() { - displayUploadProductType_ = other.displayUploadProductType_; - switch (other.MediaAssetCase) { - case MediaAssetOneofCase.MediaBundle: - MediaBundle = other.MediaBundle.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayUploadAdInfo Clone() { - return new DisplayUploadAdInfo(this); - } - - /// Field number for the "display_upload_product_type" field. - public const int DisplayUploadProductTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType displayUploadProductType_ = global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType.Unspecified; - /// - /// The product type of this ad. See comments on the enum for details. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType DisplayUploadProductType { - get { return displayUploadProductType_; } - set { - displayUploadProductType_ = value; - } - } - - /// Field number for the "media_bundle" field. - public const int MediaBundleFieldNumber = 2; - /// - /// A media bundle asset to be used in the ad. For information about the - /// media bundle for HTML5_UPLOAD_AD, see - /// https://support.google.com/google-ads/answer/1722096 - /// Media bundles that are part of dynamic product types use a special format - /// that needs to be created through the Google Web Designer. See - /// https://support.google.com/webdesigner/answer/7543898 for more - /// information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset MediaBundle { - get { return mediaAssetCase_ == MediaAssetOneofCase.MediaBundle ? (global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset) mediaAsset_ : null; } - set { - mediaAsset_ = value; - mediaAssetCase_ = value == null ? MediaAssetOneofCase.None : MediaAssetOneofCase.MediaBundle; - } - } - - private object mediaAsset_; - /// Enum of possible cases for the "media_asset" oneof. - public enum MediaAssetOneofCase { - None = 0, - MediaBundle = 2, - } - private MediaAssetOneofCase mediaAssetCase_ = MediaAssetOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MediaAssetOneofCase MediaAssetCase { - get { return mediaAssetCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMediaAsset() { - mediaAssetCase_ = MediaAssetOneofCase.None; - mediaAsset_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DisplayUploadAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisplayUploadAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DisplayUploadProductType != other.DisplayUploadProductType) return false; - if (!object.Equals(MediaBundle, other.MediaBundle)) return false; - if (MediaAssetCase != other.MediaAssetCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DisplayUploadProductType != global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType.Unspecified) hash ^= DisplayUploadProductType.GetHashCode(); - if (mediaAssetCase_ == MediaAssetOneofCase.MediaBundle) hash ^= MediaBundle.GetHashCode(); - hash ^= (int) mediaAssetCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DisplayUploadProductType != global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) DisplayUploadProductType); - } - if (mediaAssetCase_ == MediaAssetOneofCase.MediaBundle) { - output.WriteRawTag(18); - output.WriteMessage(MediaBundle); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DisplayUploadProductType != global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) DisplayUploadProductType); - } - if (mediaAssetCase_ == MediaAssetOneofCase.MediaBundle) { - output.WriteRawTag(18); - output.WriteMessage(MediaBundle); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DisplayUploadProductType != global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DisplayUploadProductType); - } - if (mediaAssetCase_ == MediaAssetOneofCase.MediaBundle) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MediaBundle); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisplayUploadAdInfo other) { - if (other == null) { - return; - } - if (other.DisplayUploadProductType != global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType.Unspecified) { - DisplayUploadProductType = other.DisplayUploadProductType; - } - switch (other.MediaAssetCase) { - case MediaAssetOneofCase.MediaBundle: - if (MediaBundle == null) { - MediaBundle = new global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset(); - } - MediaBundle.MergeFrom(other.MediaBundle); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - DisplayUploadProductType = (global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType) input.ReadEnum(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset(); - if (mediaAssetCase_ == MediaAssetOneofCase.MediaBundle) { - subBuilder.MergeFrom(MediaBundle); - } - input.ReadMessage(subBuilder); - MediaBundle = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - DisplayUploadProductType = (global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType) input.ReadEnum(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AdMediaBundleAsset(); - if (mediaAssetCase_ == MediaAssetOneofCase.MediaBundle) { - subBuilder.MergeFrom(MediaBundle); - } - input.ReadMessage(subBuilder); - MediaBundle = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Specification for various creative controls for a responsive display ad. - /// - public sealed partial class ResponsiveDisplayAdControlSpec : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResponsiveDisplayAdControlSpec()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveDisplayAdControlSpec() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveDisplayAdControlSpec(ResponsiveDisplayAdControlSpec other) : this() { - enableAssetEnhancements_ = other.enableAssetEnhancements_; - enableAutogenVideo_ = other.enableAutogenVideo_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponsiveDisplayAdControlSpec Clone() { - return new ResponsiveDisplayAdControlSpec(this); - } - - /// Field number for the "enable_asset_enhancements" field. - public const int EnableAssetEnhancementsFieldNumber = 1; - private bool enableAssetEnhancements_; - /// - /// Whether the advertiser has opted into the asset enhancements feature. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnableAssetEnhancements { - get { return enableAssetEnhancements_; } - set { - enableAssetEnhancements_ = value; - } - } - - /// Field number for the "enable_autogen_video" field. - public const int EnableAutogenVideoFieldNumber = 2; - private bool enableAutogenVideo_; - /// - /// Whether the advertiser has opted into auto-gen video feature. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnableAutogenVideo { - get { return enableAutogenVideo_; } - set { - enableAutogenVideo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ResponsiveDisplayAdControlSpec); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ResponsiveDisplayAdControlSpec other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EnableAssetEnhancements != other.EnableAssetEnhancements) return false; - if (EnableAutogenVideo != other.EnableAutogenVideo) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (EnableAssetEnhancements != false) hash ^= EnableAssetEnhancements.GetHashCode(); - if (EnableAutogenVideo != false) hash ^= EnableAutogenVideo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (EnableAssetEnhancements != false) { - output.WriteRawTag(8); - output.WriteBool(EnableAssetEnhancements); - } - if (EnableAutogenVideo != false) { - output.WriteRawTag(16); - output.WriteBool(EnableAutogenVideo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (EnableAssetEnhancements != false) { - output.WriteRawTag(8); - output.WriteBool(EnableAssetEnhancements); - } - if (EnableAutogenVideo != false) { - output.WriteRawTag(16); - output.WriteBool(EnableAutogenVideo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (EnableAssetEnhancements != false) { - size += 1 + 1; - } - if (EnableAutogenVideo != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ResponsiveDisplayAdControlSpec other) { - if (other == null) { - return; - } - if (other.EnableAssetEnhancements != false) { - EnableAssetEnhancements = other.EnableAssetEnhancements; - } - if (other.EnableAutogenVideo != false) { - EnableAutogenVideo = other.EnableAutogenVideo; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - EnableAssetEnhancements = input.ReadBool(); - break; - } - case 16: { - EnableAutogenVideo = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - EnableAssetEnhancements = input.ReadBool(); - break; - } - case 16: { - EnableAutogenVideo = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A Smart campaign ad. - /// - public sealed partial class SmartCampaignAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SmartCampaignAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SmartCampaignAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SmartCampaignAdInfo(SmartCampaignAdInfo other) : this() { - headlines_ = other.headlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SmartCampaignAdInfo Clone() { - return new SmartCampaignAdInfo(this); - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// List of text assets, each of which corresponds to a headline when the ad - /// serves. This list consists of a minimum of 3 and up to 15 text assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// List of text assets, each of which corresponds to a description when the ad - /// serves. This list consists of a minimum of 2 and up to 4 text assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SmartCampaignAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SmartCampaignAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!headlines_.Equals(other.headlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= headlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - headlines_.WriteTo(output, _repeated_headlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - headlines_.WriteTo(ref output, _repeated_headlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SmartCampaignAdInfo other) { - if (other == null) { - return; - } - headlines_.Add(other.headlines_); - descriptions_.Add(other.descriptions_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 18: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A call ad. - /// - public sealed partial class CallAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallAdInfo(CallAdInfo other) : this() { - countryCode_ = other.countryCode_; - phoneNumber_ = other.phoneNumber_; - businessName_ = other.businessName_; - headline1_ = other.headline1_; - headline2_ = other.headline2_; - description1_ = other.description1_; - description2_ = other.description2_; - callTracked_ = other.callTracked_; - disableCallConversion_ = other.disableCallConversion_; - phoneNumberVerificationUrl_ = other.phoneNumberVerificationUrl_; - conversionAction_ = other.conversionAction_; - conversionReportingState_ = other.conversionReportingState_; - path1_ = other.path1_; - path2_ = other.path2_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallAdInfo Clone() { - return new CallAdInfo(this); - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 1; - private string countryCode_ = ""; - /// - /// The country code in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "phone_number" field. - public const int PhoneNumberFieldNumber = 2; - private string phoneNumber_ = ""; - /// - /// The phone number in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PhoneNumber { - get { return phoneNumber_; } - set { - phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 3; - private string businessName_ = ""; - /// - /// The business name in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "headline1" field. - public const int Headline1FieldNumber = 11; - private string headline1_ = ""; - /// - /// First headline in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline1 { - get { return headline1_; } - set { - headline1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "headline2" field. - public const int Headline2FieldNumber = 12; - private string headline2_ = ""; - /// - /// Second headline in the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline2 { - get { return headline2_; } - set { - headline2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description1" field. - public const int Description1FieldNumber = 4; - private string description1_ = ""; - /// - /// The first line of the ad's description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description1 { - get { return description1_; } - set { - description1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description2" field. - public const int Description2FieldNumber = 5; - private string description2_ = ""; - /// - /// The second line of the ad's description. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description2 { - get { return description2_; } - set { - description2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "call_tracked" field. - public const int CallTrackedFieldNumber = 6; - private bool callTracked_; - /// - /// Whether to enable call tracking for the creative. Enabling call - /// tracking also enables call conversions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CallTracked { - get { return callTracked_; } - set { - callTracked_ = value; - } - } - - /// Field number for the "disable_call_conversion" field. - public const int DisableCallConversionFieldNumber = 7; - private bool disableCallConversion_; - /// - /// Whether to disable call conversion for the creative. - /// If set to `true`, disables call conversions even when `call_tracked` is - /// `true`. - /// If `call_tracked` is `false`, this field is ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool DisableCallConversion { - get { return disableCallConversion_; } - set { - disableCallConversion_ = value; - } - } - - /// Field number for the "phone_number_verification_url" field. - public const int PhoneNumberVerificationUrlFieldNumber = 8; - private string phoneNumberVerificationUrl_ = ""; - /// - /// The URL to be used for phone number verification. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PhoneNumberVerificationUrl { - get { return phoneNumberVerificationUrl_; } - set { - phoneNumberVerificationUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 9; - private string conversionAction_ = ""; - /// - /// The conversion action to attribute a call conversion to. If not set a - /// default conversion action is used. This field only has effect if - /// `call_tracked` is set to `true`. Otherwise this field is ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionAction { - get { return conversionAction_; } - set { - conversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_reporting_state" field. - public const int ConversionReportingStateFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState conversionReportingState_ = global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified; - /// - /// The call conversion behavior of this call ad. It can use its own call - /// conversion setting, inherit the account level setting, or be disabled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState ConversionReportingState { - get { return conversionReportingState_; } - set { - conversionReportingState_ = value; - } - } - - /// Field number for the "path1" field. - public const int Path1FieldNumber = 13; - private string path1_ = ""; - /// - /// First part of text that can be appended to the URL in the ad. Optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path1 { - get { return path1_; } - set { - path1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "path2" field. - public const int Path2FieldNumber = 14; - private string path2_ = ""; - /// - /// Second part of text that can be appended to the URL in the ad. This field - /// can only be set when `path1` is also set. Optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path2 { - get { return path2_; } - set { - path2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CountryCode != other.CountryCode) return false; - if (PhoneNumber != other.PhoneNumber) return false; - if (BusinessName != other.BusinessName) return false; - if (Headline1 != other.Headline1) return false; - if (Headline2 != other.Headline2) return false; - if (Description1 != other.Description1) return false; - if (Description2 != other.Description2) return false; - if (CallTracked != other.CallTracked) return false; - if (DisableCallConversion != other.DisableCallConversion) return false; - if (PhoneNumberVerificationUrl != other.PhoneNumberVerificationUrl) return false; - if (ConversionAction != other.ConversionAction) return false; - if (ConversionReportingState != other.ConversionReportingState) return false; - if (Path1 != other.Path1) return false; - if (Path2 != other.Path2) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CountryCode.Length != 0) hash ^= CountryCode.GetHashCode(); - if (PhoneNumber.Length != 0) hash ^= PhoneNumber.GetHashCode(); - if (BusinessName.Length != 0) hash ^= BusinessName.GetHashCode(); - if (Headline1.Length != 0) hash ^= Headline1.GetHashCode(); - if (Headline2.Length != 0) hash ^= Headline2.GetHashCode(); - if (Description1.Length != 0) hash ^= Description1.GetHashCode(); - if (Description2.Length != 0) hash ^= Description2.GetHashCode(); - if (CallTracked != false) hash ^= CallTracked.GetHashCode(); - if (DisableCallConversion != false) hash ^= DisableCallConversion.GetHashCode(); - if (PhoneNumberVerificationUrl.Length != 0) hash ^= PhoneNumberVerificationUrl.GetHashCode(); - if (ConversionAction.Length != 0) hash ^= ConversionAction.GetHashCode(); - if (ConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) hash ^= ConversionReportingState.GetHashCode(); - if (Path1.Length != 0) hash ^= Path1.GetHashCode(); - if (Path2.Length != 0) hash ^= Path2.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CountryCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CountryCode); - } - if (PhoneNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PhoneNumber); - } - if (BusinessName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(BusinessName); - } - if (Description1.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description1); - } - if (Description2.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description2); - } - if (CallTracked != false) { - output.WriteRawTag(48); - output.WriteBool(CallTracked); - } - if (DisableCallConversion != false) { - output.WriteRawTag(56); - output.WriteBool(DisableCallConversion); - } - if (PhoneNumberVerificationUrl.Length != 0) { - output.WriteRawTag(66); - output.WriteString(PhoneNumberVerificationUrl); - } - if (ConversionAction.Length != 0) { - output.WriteRawTag(74); - output.WriteString(ConversionAction); - } - if (ConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) ConversionReportingState); - } - if (Headline1.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Headline1); - } - if (Headline2.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Headline2); - } - if (Path1.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Path1); - } - if (Path2.Length != 0) { - output.WriteRawTag(114); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CountryCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CountryCode); - } - if (PhoneNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PhoneNumber); - } - if (BusinessName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(BusinessName); - } - if (Description1.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description1); - } - if (Description2.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description2); - } - if (CallTracked != false) { - output.WriteRawTag(48); - output.WriteBool(CallTracked); - } - if (DisableCallConversion != false) { - output.WriteRawTag(56); - output.WriteBool(DisableCallConversion); - } - if (PhoneNumberVerificationUrl.Length != 0) { - output.WriteRawTag(66); - output.WriteString(PhoneNumberVerificationUrl); - } - if (ConversionAction.Length != 0) { - output.WriteRawTag(74); - output.WriteString(ConversionAction); - } - if (ConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) ConversionReportingState); - } - if (Headline1.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Headline1); - } - if (Headline2.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Headline2); - } - if (Path1.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Path1); - } - if (Path2.Length != 0) { - output.WriteRawTag(114); - output.WriteString(Path2); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CountryCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (PhoneNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); - } - if (BusinessName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (Headline1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline1); - } - if (Headline2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline2); - } - if (Description1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description1); - } - if (Description2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description2); - } - if (CallTracked != false) { - size += 1 + 1; - } - if (DisableCallConversion != false) { - size += 1 + 1; - } - if (PhoneNumberVerificationUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumberVerificationUrl); - } - if (ConversionAction.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionAction); - } - if (ConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionReportingState); - } - if (Path1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path1); - } - if (Path2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path2); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallAdInfo other) { - if (other == null) { - return; - } - if (other.CountryCode.Length != 0) { - CountryCode = other.CountryCode; - } - if (other.PhoneNumber.Length != 0) { - PhoneNumber = other.PhoneNumber; - } - if (other.BusinessName.Length != 0) { - BusinessName = other.BusinessName; - } - if (other.Headline1.Length != 0) { - Headline1 = other.Headline1; - } - if (other.Headline2.Length != 0) { - Headline2 = other.Headline2; - } - if (other.Description1.Length != 0) { - Description1 = other.Description1; - } - if (other.Description2.Length != 0) { - Description2 = other.Description2; - } - if (other.CallTracked != false) { - CallTracked = other.CallTracked; - } - if (other.DisableCallConversion != false) { - DisableCallConversion = other.DisableCallConversion; - } - if (other.PhoneNumberVerificationUrl.Length != 0) { - PhoneNumberVerificationUrl = other.PhoneNumberVerificationUrl; - } - if (other.ConversionAction.Length != 0) { - ConversionAction = other.ConversionAction; - } - if (other.ConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - ConversionReportingState = other.ConversionReportingState; - } - if (other.Path1.Length != 0) { - Path1 = other.Path1; - } - if (other.Path2.Length != 0) { - Path2 = other.Path2; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CountryCode = input.ReadString(); - break; - } - case 18: { - PhoneNumber = input.ReadString(); - break; - } - case 26: { - BusinessName = input.ReadString(); - break; - } - case 34: { - Description1 = input.ReadString(); - break; - } - case 42: { - Description2 = input.ReadString(); - break; - } - case 48: { - CallTracked = input.ReadBool(); - break; - } - case 56: { - DisableCallConversion = input.ReadBool(); - break; - } - case 66: { - PhoneNumberVerificationUrl = input.ReadString(); - break; - } - case 74: { - ConversionAction = input.ReadString(); - break; - } - case 80: { - ConversionReportingState = (global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState) input.ReadEnum(); - break; - } - case 90: { - Headline1 = input.ReadString(); - break; - } - case 98: { - Headline2 = input.ReadString(); - break; - } - case 106: { - Path1 = input.ReadString(); - break; - } - case 114: { - Path2 = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CountryCode = input.ReadString(); - break; - } - case 18: { - PhoneNumber = input.ReadString(); - break; - } - case 26: { - BusinessName = input.ReadString(); - break; - } - case 34: { - Description1 = input.ReadString(); - break; - } - case 42: { - Description2 = input.ReadString(); - break; - } - case 48: { - CallTracked = input.ReadBool(); - break; - } - case 56: { - DisableCallConversion = input.ReadBool(); - break; - } - case 66: { - PhoneNumberVerificationUrl = input.ReadString(); - break; - } - case 74: { - ConversionAction = input.ReadString(); - break; - } - case 80: { - ConversionReportingState = (global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState) input.ReadEnum(); - break; - } - case 90: { - Headline1 = input.ReadString(); - break; - } - case 98: { - Headline2 = input.ReadString(); - break; - } - case 106: { - Path1 = input.ReadString(); - break; - } - case 114: { - Path2 = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A discovery multi asset ad. - /// - public sealed partial class DiscoveryMultiAssetAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscoveryMultiAssetAdInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryMultiAssetAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryMultiAssetAdInfo(DiscoveryMultiAssetAdInfo other) : this() { - _hasBits0 = other._hasBits0; - marketingImages_ = other.marketingImages_.Clone(); - squareMarketingImages_ = other.squareMarketingImages_.Clone(); - portraitMarketingImages_ = other.portraitMarketingImages_.Clone(); - logoImages_ = other.logoImages_.Clone(); - headlines_ = other.headlines_.Clone(); - descriptions_ = other.descriptions_.Clone(); - businessName_ = other.businessName_; - callToActionText_ = other.callToActionText_; - leadFormOnly_ = other.leadFormOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryMultiAssetAdInfo Clone() { - return new DiscoveryMultiAssetAdInfo(this); - } - - /// Field number for the "marketing_images" field. - public const int MarketingImagesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_marketingImages_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField marketingImages_ = new pbc::RepeatedField(); - /// - /// Marketing image assets to be used in the ad. Valid image types are GIF, - /// JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must - /// be 1.91:1 (+-1%). Required if square_marketing_images is - /// not present. Combined with `square_marketing_images` and - /// `portrait_marketing_images` the maximum is 20. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MarketingImages { - get { return marketingImages_; } - } - - /// Field number for the "square_marketing_images" field. - public const int SquareMarketingImagesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_squareMarketingImages_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField squareMarketingImages_ = new pbc::RepeatedField(); - /// - /// Square marketing image assets to be used in the ad. Valid image types are - /// GIF, JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must - /// be 1:1 (+-1%). Required if marketing_images is not present. Combined with - /// `marketing_images` and `portrait_marketing_images` the maximum is 20. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SquareMarketingImages { - get { return squareMarketingImages_; } - } - - /// Field number for the "portrait_marketing_images" field. - public const int PortraitMarketingImagesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_portraitMarketingImages_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField portraitMarketingImages_ = new pbc::RepeatedField(); - /// - /// Portrait marketing image assets to be used in the ad. Valid image types are - /// GIF, JPEG, and PNG. The minimum size is 480x600 and the aspect ratio must - /// be 4:5 (+-1%). Combined with `marketing_images` and - /// `square_marketing_images` the maximum is 20. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PortraitMarketingImages { - get { return portraitMarketingImages_; } - } - - /// Field number for the "logo_images" field. - public const int LogoImagesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_logoImages_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdImageAsset.Parser); - private readonly pbc::RepeatedField logoImages_ = new pbc::RepeatedField(); - /// - /// Logo image assets to be used in the ad. Valid image types are GIF, - /// JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must be - /// 1:1(+-1%). At least 1 and max 5 logo images can be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LogoImages { - get { return logoImages_; } - } - - /// Field number for the "headlines" field. - public const int HeadlinesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_headlines_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField headlines_ = new pbc::RepeatedField(); - /// - /// Headline text asset of the ad. Maximum display width is 30. At least 1 and - /// max 5 headlines can be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Headlines { - get { return headlines_; } - } - - /// Field number for the "descriptions" field. - public const int DescriptionsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_descriptions_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.AdTextAsset.Parser); - private readonly pbc::RepeatedField descriptions_ = new pbc::RepeatedField(); - /// - /// The descriptive text of the ad. Maximum display width is 90. At least 1 and - /// max 5 descriptions can be specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Descriptions { - get { return descriptions_; } - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 7; - private string businessName_; - /// - /// The Advertiser/brand name. Maximum display width is 25. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_ ?? ""; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "business_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBusinessName { - get { return businessName_ != null; } - } - /// Clears the value of the "business_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBusinessName() { - businessName_ = null; - } - - /// Field number for the "call_to_action_text" field. - public const int CallToActionTextFieldNumber = 8; - private string callToActionText_; - /// - /// Call to action text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallToActionText { - get { return callToActionText_ ?? ""; } - set { - callToActionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "call_to_action_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallToActionText { - get { return callToActionText_ != null; } - } - /// Clears the value of the "call_to_action_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallToActionText() { - callToActionText_ = null; - } - - /// Field number for the "lead_form_only" field. - public const int LeadFormOnlyFieldNumber = 9; - private bool leadFormOnly_; - /// - /// Boolean option that indicates if this ad must be served with lead form. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool LeadFormOnly { - get { if ((_hasBits0 & 1) != 0) { return leadFormOnly_; } else { return false; } } - set { - _hasBits0 |= 1; - leadFormOnly_ = value; - } - } - /// Gets whether the "lead_form_only" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLeadFormOnly { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "lead_form_only" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLeadFormOnly() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DiscoveryMultiAssetAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DiscoveryMultiAssetAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!marketingImages_.Equals(other.marketingImages_)) return false; - if(!squareMarketingImages_.Equals(other.squareMarketingImages_)) return false; - if(!portraitMarketingImages_.Equals(other.portraitMarketingImages_)) return false; - if(!logoImages_.Equals(other.logoImages_)) return false; - if(!headlines_.Equals(other.headlines_)) return false; - if(!descriptions_.Equals(other.descriptions_)) return false; - if (BusinessName != other.BusinessName) return false; - if (CallToActionText != other.CallToActionText) return false; - if (LeadFormOnly != other.LeadFormOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= marketingImages_.GetHashCode(); - hash ^= squareMarketingImages_.GetHashCode(); - hash ^= portraitMarketingImages_.GetHashCode(); - hash ^= logoImages_.GetHashCode(); - hash ^= headlines_.GetHashCode(); - hash ^= descriptions_.GetHashCode(); - if (HasBusinessName) hash ^= BusinessName.GetHashCode(); - if (HasCallToActionText) hash ^= CallToActionText.GetHashCode(); - if (HasLeadFormOnly) hash ^= LeadFormOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - marketingImages_.WriteTo(output, _repeated_marketingImages_codec); - squareMarketingImages_.WriteTo(output, _repeated_squareMarketingImages_codec); - portraitMarketingImages_.WriteTo(output, _repeated_portraitMarketingImages_codec); - logoImages_.WriteTo(output, _repeated_logoImages_codec); - headlines_.WriteTo(output, _repeated_headlines_codec); - descriptions_.WriteTo(output, _repeated_descriptions_codec); - if (HasBusinessName) { - output.WriteRawTag(58); - output.WriteString(BusinessName); - } - if (HasCallToActionText) { - output.WriteRawTag(66); - output.WriteString(CallToActionText); - } - if (HasLeadFormOnly) { - output.WriteRawTag(72); - output.WriteBool(LeadFormOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - marketingImages_.WriteTo(ref output, _repeated_marketingImages_codec); - squareMarketingImages_.WriteTo(ref output, _repeated_squareMarketingImages_codec); - portraitMarketingImages_.WriteTo(ref output, _repeated_portraitMarketingImages_codec); - logoImages_.WriteTo(ref output, _repeated_logoImages_codec); - headlines_.WriteTo(ref output, _repeated_headlines_codec); - descriptions_.WriteTo(ref output, _repeated_descriptions_codec); - if (HasBusinessName) { - output.WriteRawTag(58); - output.WriteString(BusinessName); - } - if (HasCallToActionText) { - output.WriteRawTag(66); - output.WriteString(CallToActionText); - } - if (HasLeadFormOnly) { - output.WriteRawTag(72); - output.WriteBool(LeadFormOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += marketingImages_.CalculateSize(_repeated_marketingImages_codec); - size += squareMarketingImages_.CalculateSize(_repeated_squareMarketingImages_codec); - size += portraitMarketingImages_.CalculateSize(_repeated_portraitMarketingImages_codec); - size += logoImages_.CalculateSize(_repeated_logoImages_codec); - size += headlines_.CalculateSize(_repeated_headlines_codec); - size += descriptions_.CalculateSize(_repeated_descriptions_codec); - if (HasBusinessName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (HasCallToActionText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallToActionText); - } - if (HasLeadFormOnly) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DiscoveryMultiAssetAdInfo other) { - if (other == null) { - return; - } - marketingImages_.Add(other.marketingImages_); - squareMarketingImages_.Add(other.squareMarketingImages_); - portraitMarketingImages_.Add(other.portraitMarketingImages_); - logoImages_.Add(other.logoImages_); - headlines_.Add(other.headlines_); - descriptions_.Add(other.descriptions_); - if (other.HasBusinessName) { - BusinessName = other.BusinessName; - } - if (other.HasCallToActionText) { - CallToActionText = other.CallToActionText; - } - if (other.HasLeadFormOnly) { - LeadFormOnly = other.LeadFormOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - marketingImages_.AddEntriesFrom(input, _repeated_marketingImages_codec); - break; - } - case 18: { - squareMarketingImages_.AddEntriesFrom(input, _repeated_squareMarketingImages_codec); - break; - } - case 26: { - portraitMarketingImages_.AddEntriesFrom(input, _repeated_portraitMarketingImages_codec); - break; - } - case 34: { - logoImages_.AddEntriesFrom(input, _repeated_logoImages_codec); - break; - } - case 42: { - headlines_.AddEntriesFrom(input, _repeated_headlines_codec); - break; - } - case 50: { - descriptions_.AddEntriesFrom(input, _repeated_descriptions_codec); - break; - } - case 58: { - BusinessName = input.ReadString(); - break; - } - case 66: { - CallToActionText = input.ReadString(); - break; - } - case 72: { - LeadFormOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - marketingImages_.AddEntriesFrom(ref input, _repeated_marketingImages_codec); - break; - } - case 18: { - squareMarketingImages_.AddEntriesFrom(ref input, _repeated_squareMarketingImages_codec); - break; - } - case 26: { - portraitMarketingImages_.AddEntriesFrom(ref input, _repeated_portraitMarketingImages_codec); - break; - } - case 34: { - logoImages_.AddEntriesFrom(ref input, _repeated_logoImages_codec); - break; - } - case 42: { - headlines_.AddEntriesFrom(ref input, _repeated_headlines_codec); - break; - } - case 50: { - descriptions_.AddEntriesFrom(ref input, _repeated_descriptions_codec); - break; - } - case 58: { - BusinessName = input.ReadString(); - break; - } - case 66: { - CallToActionText = input.ReadString(); - break; - } - case 72: { - LeadFormOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A discovery carousel ad. - /// - public sealed partial class DiscoveryCarouselAdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscoveryCarouselAdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AdTypeInfosReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryCarouselAdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryCarouselAdInfo(DiscoveryCarouselAdInfo other) : this() { - businessName_ = other.businessName_; - logoImage_ = other.logoImage_ != null ? other.logoImage_.Clone() : null; - headline_ = other.headline_ != null ? other.headline_.Clone() : null; - description_ = other.description_ != null ? other.description_.Clone() : null; - callToActionText_ = other.callToActionText_; - carouselCards_ = other.carouselCards_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryCarouselAdInfo Clone() { - return new DiscoveryCarouselAdInfo(this); - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 1; - private string businessName_ = ""; - /// - /// Required. The Advertiser/brand name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "logo_image" field. - public const int LogoImageFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.AdImageAsset logoImage_; - /// - /// Required. Logo image to be used in the ad. The minimum size is 128x128 and the - /// aspect ratio must be 1:1(+-1%). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdImageAsset LogoImage { - get { return logoImage_; } - set { - logoImage_ = value; - } - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.AdTextAsset headline_; - /// - /// Required. Headline of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdTextAsset Headline { - get { return headline_; } - set { - headline_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.AdTextAsset description_; - /// - /// Required. The descriptive text of the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdTextAsset Description { - get { return description_; } - set { - description_ = value; - } - } - - /// Field number for the "call_to_action_text" field. - public const int CallToActionTextFieldNumber = 5; - private string callToActionText_ = ""; - /// - /// Call to action text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallToActionText { - get { return callToActionText_; } - set { - callToActionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "carousel_cards" field. - public const int CarouselCardsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_carouselCards_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.AdDiscoveryCarouselCardAsset.Parser); - private readonly pbc::RepeatedField carouselCards_ = new pbc::RepeatedField(); - /// - /// Required. Carousel cards that will display with the ad. Min 2 max 10. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CarouselCards { - get { return carouselCards_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DiscoveryCarouselAdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DiscoveryCarouselAdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BusinessName != other.BusinessName) return false; - if (!object.Equals(LogoImage, other.LogoImage)) return false; - if (!object.Equals(Headline, other.Headline)) return false; - if (!object.Equals(Description, other.Description)) return false; - if (CallToActionText != other.CallToActionText) return false; - if(!carouselCards_.Equals(other.carouselCards_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BusinessName.Length != 0) hash ^= BusinessName.GetHashCode(); - if (logoImage_ != null) hash ^= LogoImage.GetHashCode(); - if (headline_ != null) hash ^= Headline.GetHashCode(); - if (description_ != null) hash ^= Description.GetHashCode(); - if (CallToActionText.Length != 0) hash ^= CallToActionText.GetHashCode(); - hash ^= carouselCards_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BusinessName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BusinessName); - } - if (logoImage_ != null) { - output.WriteRawTag(18); - output.WriteMessage(LogoImage); - } - if (headline_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Headline); - } - if (description_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Description); - } - if (CallToActionText.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CallToActionText); - } - carouselCards_.WriteTo(output, _repeated_carouselCards_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BusinessName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BusinessName); - } - if (logoImage_ != null) { - output.WriteRawTag(18); - output.WriteMessage(LogoImage); - } - if (headline_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Headline); - } - if (description_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Description); - } - if (CallToActionText.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CallToActionText); - } - carouselCards_.WriteTo(ref output, _repeated_carouselCards_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BusinessName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (logoImage_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LogoImage); - } - if (headline_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Headline); - } - if (description_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Description); - } - if (CallToActionText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallToActionText); - } - size += carouselCards_.CalculateSize(_repeated_carouselCards_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DiscoveryCarouselAdInfo other) { - if (other == null) { - return; - } - if (other.BusinessName.Length != 0) { - BusinessName = other.BusinessName; - } - if (other.logoImage_ != null) { - if (logoImage_ == null) { - LogoImage = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - LogoImage.MergeFrom(other.LogoImage); - } - if (other.headline_ != null) { - if (headline_ == null) { - Headline = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - Headline.MergeFrom(other.Headline); - } - if (other.description_ != null) { - if (description_ == null) { - Description = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - Description.MergeFrom(other.Description); - } - if (other.CallToActionText.Length != 0) { - CallToActionText = other.CallToActionText; - } - carouselCards_.Add(other.carouselCards_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - BusinessName = input.ReadString(); - break; - } - case 18: { - if (logoImage_ == null) { - LogoImage = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(LogoImage); - break; - } - case 26: { - if (headline_ == null) { - Headline = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(Headline); - break; - } - case 34: { - if (description_ == null) { - Description = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(Description); - break; - } - case 42: { - CallToActionText = input.ReadString(); - break; - } - case 50: { - carouselCards_.AddEntriesFrom(input, _repeated_carouselCards_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - BusinessName = input.ReadString(); - break; - } - case 18: { - if (logoImage_ == null) { - LogoImage = new global::Google.Ads.GoogleAds.V12.Common.AdImageAsset(); - } - input.ReadMessage(LogoImage); - break; - } - case 26: { - if (headline_ == null) { - Headline = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(Headline); - break; - } - case 34: { - if (description_ == null) { - Description = new global::Google.Ads.GoogleAds.V12.Common.AdTextAsset(); - } - input.ReadMessage(Description); - break; - } - case 42: { - CallToActionText = input.ReadString(); - break; - } - case 50: { - carouselCards_.AddEntriesFrom(ref input, _repeated_carouselCards_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AddOfflineUserDataJobOperationsResponsePartialFailureSupport.cs b/Google.Ads.GoogleAds/src/V12/AddOfflineUserDataJobOperationsResponsePartialFailureSupport.cs deleted file mode 100644 index 3361513a6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AddOfflineUserDataJobOperationsResponsePartialFailureSupport.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 Google LLC. All Rights Reserved. -// -// 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 -// -// http://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 - -using Google.Ads.GoogleAds.V12.Errors; -using System.Collections.Generic; -using Google.Protobuf.WellKnownTypes; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public sealed partial class AddOfflineUserDataJobOperationsResponse - { - /// - /// Gets a GoogleAdsFailure instance that combines all the errors - /// from a failed API call. - /// - public GoogleAdsFailure PartialFailure - { - get - { - if (this.PartialFailureError == null) - { - return null; - } - GoogleAdsFailure retval = new GoogleAdsFailure(); - foreach (Any any in this.PartialFailureError.Details) - { - GoogleAdsFailure failure = any.Unpack(); - retval.Errors.AddRange(failure.Errors); - } - return retval; - } - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AddOfflineUserDataJobOperationsResponseWarningSupport.cs b/Google.Ads.GoogleAds/src/V12/AddOfflineUserDataJobOperationsResponseWarningSupport.cs deleted file mode 100644 index 5769ea0bd..000000000 --- a/Google.Ads.GoogleAds/src/V12/AddOfflineUserDataJobOperationsResponseWarningSupport.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 Google LLC. All Rights Reserved. -// -// 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 -// -// http://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 - -using Google.Ads.GoogleAds.V12.Errors; -using System.Collections.Generic; -using Google.Protobuf.WellKnownTypes; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public sealed partial class AddOfflineUserDataJobOperationsResponse - { - /// - /// Gets a GoogleAdsFailure instance that parses and combines all the - /// warnings form a successful API call. - /// - public GoogleAdsFailure Warnings - { - get - { - if (this.Warning == null) - { - return null; - } - GoogleAdsFailure retval = new GoogleAdsFailure(); - foreach (Any any in this.Warning.Details) - { - GoogleAdsFailure warnings = any.Unpack(); - retval.Errors.AddRange(warnings.Errors); - } - return retval; - } - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AdvertisingChannelSubType.g.cs b/Google.Ads.GoogleAds/src/V12/AdvertisingChannelSubType.g.cs deleted file mode 100755 index 9bd6dd9da..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdvertisingChannelSubType.g.cs +++ /dev/null @@ -1,314 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/advertising_channel_sub_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/advertising_channel_sub_type.proto - public static partial class AdvertisingChannelSubTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/advertising_channel_sub_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdvertisingChannelSubTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWR2ZXJ0aXNpbmdf", - "Y2hhbm5lbF9zdWJfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zIvgDCh1BZHZlcnRpc2luZ0NoYW5uZWxTdWJUeXBlRW51bSLW", - "AwoZQWR2ZXJ0aXNpbmdDaGFubmVsU3ViVHlwZRIPCgtVTlNQRUNJRklFRBAA", - "EgsKB1VOS05PV04QARIVChFTRUFSQ0hfTU9CSUxFX0FQUBACEhYKEkRJU1BM", - "QVlfTU9CSUxFX0FQUBADEhIKDlNFQVJDSF9FWFBSRVNTEAQSEwoPRElTUExB", - "WV9FWFBSRVNTEAUSFgoSU0hPUFBJTkdfU01BUlRfQURTEAYSFAoQRElTUExB", - "WV9HTUFJTF9BRBAHEhoKFkRJU1BMQVlfU01BUlRfQ0FNUEFJR04QCBITCg9W", - "SURFT19PVVRTVFJFQU0QCRIQCgxWSURFT19BQ1RJT04QChIXChNWSURFT19O", - "T05fU0tJUFBBQkxFEAsSEAoMQVBQX0NBTVBBSUdOEAwSHwobQVBQX0NBTVBB", - "SUdOX0ZPUl9FTkdBR0VNRU5UEA0SEgoOTE9DQUxfQ0FNUEFJR04QDhIjCh9T", - "SE9QUElOR19DT01QQVJJU09OX0xJU1RJTkdfQURTEA8SEgoOU01BUlRfQ0FN", - "UEFJR04QEBISCg5WSURFT19TRVFVRU5DRRAREiUKIUFQUF9DQU1QQUlHTl9G", - "T1JfUFJFX1JFR0lTVFJBVElPThASQvgBCiJjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zQh5BZHZlcnRpc2luZ0NoYW5uZWxTdWJUeXBlUHJv", - "dG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51", - "bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An immutable specialization of an Advertising Channel. - /// - public sealed partial class AdvertisingChannelSubTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvertisingChannelSubTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingChannelSubTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingChannelSubTypeEnum(AdvertisingChannelSubTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingChannelSubTypeEnum Clone() { - return new AdvertisingChannelSubTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdvertisingChannelSubTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdvertisingChannelSubTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdvertisingChannelSubTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdvertisingChannelSubTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing the different channel subtypes. - /// - public enum AdvertisingChannelSubType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used as a return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Mobile app campaigns for Search. - /// - [pbr::OriginalName("SEARCH_MOBILE_APP")] SearchMobileApp = 2, - /// - /// Mobile app campaigns for Display. - /// - [pbr::OriginalName("DISPLAY_MOBILE_APP")] DisplayMobileApp = 3, - /// - /// AdWords express campaigns for search. - /// - [pbr::OriginalName("SEARCH_EXPRESS")] SearchExpress = 4, - /// - /// AdWords Express campaigns for display. - /// - [pbr::OriginalName("DISPLAY_EXPRESS")] DisplayExpress = 5, - /// - /// Smart Shopping campaigns. - /// - [pbr::OriginalName("SHOPPING_SMART_ADS")] ShoppingSmartAds = 6, - /// - /// Gmail Ad campaigns. - /// - [pbr::OriginalName("DISPLAY_GMAIL_AD")] DisplayGmailAd = 7, - /// - /// Smart display campaigns. New campaigns of this sub type cannot be - /// created. - /// - [pbr::OriginalName("DISPLAY_SMART_CAMPAIGN")] DisplaySmartCampaign = 8, - /// - /// Video Outstream campaigns. - /// - [pbr::OriginalName("VIDEO_OUTSTREAM")] VideoOutstream = 9, - /// - /// Video TrueView for Action campaigns. - /// - [pbr::OriginalName("VIDEO_ACTION")] VideoAction = 10, - /// - /// Video campaigns with non-skippable video ads. - /// - [pbr::OriginalName("VIDEO_NON_SKIPPABLE")] VideoNonSkippable = 11, - /// - /// App Campaign that lets you easily promote your Android or iOS app - /// across Google's top properties including Search, Play, YouTube, and the - /// Google Display Network. - /// - [pbr::OriginalName("APP_CAMPAIGN")] AppCampaign = 12, - /// - /// App Campaign for engagement, focused on driving re-engagement with the - /// app across several of Google's top properties including Search, YouTube, - /// and the Google Display Network. - /// - [pbr::OriginalName("APP_CAMPAIGN_FOR_ENGAGEMENT")] AppCampaignForEngagement = 13, - /// - /// Campaigns specialized for local advertising. - /// - [pbr::OriginalName("LOCAL_CAMPAIGN")] LocalCampaign = 14, - /// - /// Shopping Comparison Listing campaigns. - /// - [pbr::OriginalName("SHOPPING_COMPARISON_LISTING_ADS")] ShoppingComparisonListingAds = 15, - /// - /// Standard Smart campaigns. - /// - [pbr::OriginalName("SMART_CAMPAIGN")] SmartCampaign = 16, - /// - /// Video campaigns with sequence video ads. - /// - [pbr::OriginalName("VIDEO_SEQUENCE")] VideoSequence = 17, - /// - /// App Campaign for pre registration, specialized for advertising mobile - /// app pre-registration, that targets multiple advertising channels across - /// Google Play, YouTube and Display Network. See - /// https://support.google.com/google-ads/answer/9441344 to learn more. - /// - [pbr::OriginalName("APP_CAMPAIGN_FOR_PRE_REGISTRATION")] AppCampaignForPreRegistration = 18, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdvertisingChannelType.g.cs b/Google.Ads.GoogleAds/src/V12/AdvertisingChannelType.g.cs deleted file mode 100755 index 4ac48d430..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdvertisingChannelType.g.cs +++ /dev/null @@ -1,278 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/advertising_channel_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/advertising_channel_type.proto - public static partial class AdvertisingChannelTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/advertising_channel_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdvertisingChannelTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWR2ZXJ0aXNpbmdf", - "Y2hhbm5lbF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMi8wEKGkFkdmVydGlzaW5nQ2hhbm5lbFR5cGVFbnVtItQBChZBZHZl", - "cnRpc2luZ0NoYW5uZWxUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEgoKBlNFQVJDSBACEgsKB0RJU1BMQVkQAxIMCghTSE9QUElORxAEEgkK", - "BUhPVEVMEAUSCQoFVklERU8QBhIRCg1NVUxUSV9DSEFOTkVMEAcSCQoFTE9D", - "QUwQCBIJCgVTTUFSVBAJEhMKD1BFUkZPUk1BTkNFX01BWBAKEhIKDkxPQ0FM", - "X1NFUlZJQ0VTEAsSDQoJRElTQ09WRVJZEAxC9QEKImNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXNCG0FkdmVydGlzaW5nQ2hhbm5lbFR5cGVQ", - "cm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpF", - "bnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The channel type a campaign may target to serve on. - /// - public sealed partial class AdvertisingChannelTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdvertisingChannelTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingChannelTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingChannelTypeEnum(AdvertisingChannelTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdvertisingChannelTypeEnum Clone() { - return new AdvertisingChannelTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdvertisingChannelTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdvertisingChannelTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdvertisingChannelTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdvertisingChannelTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing the various advertising channel types. - /// - public enum AdvertisingChannelType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Search Network. Includes display bundled, and Search+ campaigns. - /// - [pbr::OriginalName("SEARCH")] Search = 2, - /// - /// Google Display Network only. - /// - [pbr::OriginalName("DISPLAY")] Display = 3, - /// - /// Shopping campaigns serve on the shopping property - /// and on google.com search results. - /// - [pbr::OriginalName("SHOPPING")] Shopping = 4, - /// - /// Hotel Ads campaigns. - /// - [pbr::OriginalName("HOTEL")] Hotel = 5, - /// - /// Video campaigns. - /// - [pbr::OriginalName("VIDEO")] Video = 6, - /// - /// App Campaigns, and App Campaigns for Engagement, that run - /// across multiple channels. - /// - [pbr::OriginalName("MULTI_CHANNEL")] MultiChannel = 7, - /// - /// Local ads campaigns. - /// - [pbr::OriginalName("LOCAL")] Local = 8, - /// - /// Smart campaigns. - /// - [pbr::OriginalName("SMART")] Smart = 9, - /// - /// Performance Max campaigns. - /// - [pbr::OriginalName("PERFORMANCE_MAX")] PerformanceMax = 10, - /// - /// Local services campaigns. - /// - [pbr::OriginalName("LOCAL_SERVICES")] LocalServices = 11, - /// - /// Discovery campaigns. - /// - [pbr::OriginalName("DISCOVERY")] Discovery = 12, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AdxError.g.cs b/Google.Ads.GoogleAds/src/V12/AdxError.g.cs deleted file mode 100755 index e9ea14e04..000000000 --- a/Google.Ads.GoogleAds/src/V12/AdxError.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/adx_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/adx_error.proto - public static partial class AdxErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/adx_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AdxErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkeF9lcnJvci5w", - "cm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycyJRCgxBZHhF", - "cnJvckVudW0iQQoIQWR4RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktO", - "T1dOEAESFwoTVU5TVVBQT1JURURfRkVBVFVSRRACQu0BCiNjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVycm9yc0INQWR4RXJyb3JQcm90b1ABWkVn", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3Jz", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AdxErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AdxErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AdxErrorEnum.Types.AdxError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible adx errors. - /// - public sealed partial class AdxErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdxErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AdxErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdxErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdxErrorEnum(AdxErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdxErrorEnum Clone() { - return new AdxErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdxErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdxErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdxErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AdxErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible adx errors. - /// - public enum AdxError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Attempt to use non-AdX feature by AdX customer. - /// - [pbr::OriginalName("UNSUPPORTED_FEATURE")] UnsupportedFeature = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AffiliateLocationFeedRelationshipType.g.cs b/Google.Ads.GoogleAds/src/V12/AffiliateLocationFeedRelationshipType.g.cs deleted file mode 100755 index 6641ea534..000000000 --- a/Google.Ads.GoogleAds/src/V12/AffiliateLocationFeedRelationshipType.g.cs +++ /dev/null @@ -1,235 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/affiliate_location_feed_relationship_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/affiliate_location_feed_relationship_type.proto - public static partial class AffiliateLocationFeedRelationshipTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/affiliate_location_feed_relationship_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AffiliateLocationFeedRelationshipTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ck5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWZmaWxpYXRlX2xv", - "Y2F0aW9uX2ZlZWRfcmVsYXRpb25zaGlwX3R5cGUucHJvdG8SHmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKIAQopQWZmaWxpYXRlTG9jYXRpb25G", - "ZWVkUmVsYXRpb25zaGlwVHlwZUVudW0iWwolQWZmaWxpYXRlTG9jYXRpb25G", - "ZWVkUmVsYXRpb25zaGlwVHlwZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QARIUChBHRU5FUkFMX1JFVEFJTEVSEAJChAIKImNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXNCKkFmZmlsaWF0ZUxvY2F0aW9uRmVlZFJl", - "bGF0aW9uc2hpcFR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1z", - "ogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible values for a relationship type for - /// an affiliate location feed. - /// - public sealed partial class AffiliateLocationFeedRelationshipTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffiliateLocationFeedRelationshipTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedRelationshipTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedRelationshipTypeEnum(AffiliateLocationFeedRelationshipTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedRelationshipTypeEnum Clone() { - return new AffiliateLocationFeedRelationshipTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AffiliateLocationFeedRelationshipTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AffiliateLocationFeedRelationshipTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AffiliateLocationFeedRelationshipTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AffiliateLocationFeedRelationshipTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for a relationship type for an affiliate location feed. - /// - public enum AffiliateLocationFeedRelationshipType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// General retailer relationship. - /// - [pbr::OriginalName("GENERAL_RETAILER")] GeneralRetailer = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AffiliateLocationPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/AffiliateLocationPlaceholderField.g.cs deleted file mode 100755 index 6fb5ddaca..000000000 --- a/Google.Ads.GoogleAds/src/V12/AffiliateLocationPlaceholderField.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/affiliate_location_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/affiliate_location_placeholder_field.proto - public static partial class AffiliateLocationPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/affiliate_location_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AffiliateLocationPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWZmaWxpYXRlX2xv", - "Y2F0aW9uX3BsYWNlaG9sZGVyX2ZpZWxkLnByb3RvEh5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMipAIKJUFmZmlsaWF0ZUxvY2F0aW9uUGxhY2Vo", - "b2xkZXJGaWVsZEVudW0i+gEKIUFmZmlsaWF0ZUxvY2F0aW9uUGxhY2Vob2xk", - "ZXJGaWVsZBIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIRCg1CVVNJ", - "TkVTU19OQU1FEAISEgoOQUREUkVTU19MSU5FXzEQAxISCg5BRERSRVNTX0xJ", - "TkVfMhAEEggKBENJVFkQBRIMCghQUk9WSU5DRRAGEg8KC1BPU1RBTF9DT0RF", - "EAcSEAoMQ09VTlRSWV9DT0RFEAgSEAoMUEhPTkVfTlVNQkVSEAkSEQoNTEFO", - "R1VBR0VfQ09ERRAKEgwKCENIQUlOX0lEEAsSDgoKQ0hBSU5fTkFNRRAMQoAC", - "CiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQiZBZmZpbGlh", - "dGVMb2NhdGlvblBsYWNlaG9sZGVyRmllbGRQcm90b1ABWkNnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldEnum.Types.AffiliateLocationPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Affiliate Location placeholder fields. - /// - public sealed partial class AffiliateLocationPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffiliateLocationPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationPlaceholderFieldEnum(AffiliateLocationPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationPlaceholderFieldEnum Clone() { - return new AffiliateLocationPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AffiliateLocationPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AffiliateLocationPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AffiliateLocationPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AffiliateLocationPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Affiliate Location placeholder fields. - /// - public enum AffiliateLocationPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. The name of the business. - /// - [pbr::OriginalName("BUSINESS_NAME")] BusinessName = 2, - /// - /// Data Type: STRING. Line 1 of the business address. - /// - [pbr::OriginalName("ADDRESS_LINE_1")] AddressLine1 = 3, - /// - /// Data Type: STRING. Line 2 of the business address. - /// - [pbr::OriginalName("ADDRESS_LINE_2")] AddressLine2 = 4, - /// - /// Data Type: STRING. City of the business address. - /// - [pbr::OriginalName("CITY")] City = 5, - /// - /// Data Type: STRING. Province of the business address. - /// - [pbr::OriginalName("PROVINCE")] Province = 6, - /// - /// Data Type: STRING. Postal code of the business address. - /// - [pbr::OriginalName("POSTAL_CODE")] PostalCode = 7, - /// - /// Data Type: STRING. Country code of the business address. - /// - [pbr::OriginalName("COUNTRY_CODE")] CountryCode = 8, - /// - /// Data Type: STRING. Phone number of the business. - /// - [pbr::OriginalName("PHONE_NUMBER")] PhoneNumber = 9, - /// - /// Data Type: STRING. Language code of the business. - /// - [pbr::OriginalName("LANGUAGE_CODE")] LanguageCode = 10, - /// - /// Data Type: INT64. ID of the chain. - /// - [pbr::OriginalName("CHAIN_ID")] ChainId = 11, - /// - /// Data Type: STRING. Name of the chain. - /// - [pbr::OriginalName("CHAIN_NAME")] ChainName = 12, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AgeRangeType.g.cs b/Google.Ads.GoogleAds/src/V12/AgeRangeType.g.cs deleted file mode 100755 index d8292ad03..000000000 --- a/Google.Ads.GoogleAds/src/V12/AgeRangeType.g.cs +++ /dev/null @@ -1,260 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/age_range_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/age_range_type.proto - public static partial class AgeRangeTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/age_range_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AgeRangeTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWdlX3JhbmdlX3R5", - "cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyLpAQoQ", - "QWdlUmFuZ2VUeXBlRW51bSLUAQoMQWdlUmFuZ2VUeXBlEg8KC1VOU1BFQ0lG", - "SUVEEAASCwoHVU5LTk9XThABEhUKD0FHRV9SQU5HRV8xOF8yNBDZ2R4SFQoP", - "QUdFX1JBTkdFXzI1XzM0ENrZHhIVCg9BR0VfUkFOR0VfMzVfNDQQ29keEhUK", - "D0FHRV9SQU5HRV80NV81NBDc2R4SFQoPQUdFX1JBTkdFXzU1XzY0EN3ZHhIV", - "Cg9BR0VfUkFOR0VfNjVfVVAQ3tkeEhwKFkFHRV9SQU5HRV9VTkRFVEVSTUlO", - "RUQQv+EeQusBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "QhFBZ2VSYW5nZVR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1z", - "ogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of demographic age ranges. - /// - public sealed partial class AgeRangeTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgeRangeTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeTypeEnum(AgeRangeTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeTypeEnum Clone() { - return new AgeRangeTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AgeRangeTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AgeRangeTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AgeRangeTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AgeRangeTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of demographic age ranges (for example, between 18 and 24 years - /// old). - /// - public enum AgeRangeType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Between 18 and 24 years old. - /// - [pbr::OriginalName("AGE_RANGE_18_24")] AgeRange1824 = 503001, - /// - /// Between 25 and 34 years old. - /// - [pbr::OriginalName("AGE_RANGE_25_34")] AgeRange2534 = 503002, - /// - /// Between 35 and 44 years old. - /// - [pbr::OriginalName("AGE_RANGE_35_44")] AgeRange3544 = 503003, - /// - /// Between 45 and 54 years old. - /// - [pbr::OriginalName("AGE_RANGE_45_54")] AgeRange4554 = 503004, - /// - /// Between 55 and 64 years old. - /// - [pbr::OriginalName("AGE_RANGE_55_64")] AgeRange5564 = 503005, - /// - /// 65 years old and beyond. - /// - [pbr::OriginalName("AGE_RANGE_65_UP")] AgeRange65Up = 503006, - /// - /// Undetermined age range. - /// - [pbr::OriginalName("AGE_RANGE_UNDETERMINED")] AgeRangeUndetermined = 503999, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AgeRangeView.g.cs b/Google.Ads.GoogleAds/src/V12/AgeRangeView.g.cs deleted file mode 100755 index 50adf77e1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AgeRangeView.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/age_range_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/age_range_view.proto - public static partial class AgeRangeViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/age_range_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AgeRangeViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FnZV9yYW5n", - "ZV92aWV3LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvIsQBCgxBZ2VSYW5nZVZpZXcSRAoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUIt4EED+kEnCiVnb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b20vQWdlUmFuZ2VWaWV3Om7qQWsKJWdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9BZ2VSYW5nZVZpZXcSQmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2FnZVJh", - "bmdlVmlld3Mve2FkX2dyb3VwX2lkfX57Y3JpdGVyaW9uX2lkfUKDAgomY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCEUFnZVJhbmdl", - "Vmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6IC", - "A0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJH", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AgeRangeView), global::Google.Ads.GoogleAds.V12.Resources.AgeRangeView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An age range view. - /// - public sealed partial class AgeRangeView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgeRangeView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AgeRangeViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeView(AgeRangeView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeView Clone() { - return new AgeRangeView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the age range view. - /// Age range view resource names have the form: - /// - /// `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AgeRangeView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AgeRangeView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AgeRangeView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AgeRangeViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AgeRangeViewResourceNames.g.cs deleted file mode 100755 index 921f4216f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AgeRangeViewResourceNames.g.cs +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AgeRangeView resource. - public sealed partial class AgeRangeViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}. - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/ageRangeViews/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AgeRangeViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AgeRangeViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AgeRangeViewName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new AgeRangeViewName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AgeRangeViewName Parse(string ageRangeViewName) => Parse(ageRangeViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AgeRangeViewName Parse(string ageRangeViewName, bool allowUnparsed) => - TryParse(ageRangeViewName, allowUnparsed, out AgeRangeViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string ageRangeViewName, out AgeRangeViewName result) => - TryParse(ageRangeViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string ageRangeViewName, bool allowUnparsed, out AgeRangeViewName result) - { - gax::GaxPreconditions.CheckNotNull(ageRangeViewName, nameof(ageRangeViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(ageRangeViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(ageRangeViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AgeRangeViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public AgeRangeViewName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AgeRangeViewName); - - /// - public bool Equals(AgeRangeViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AgeRangeViewName a, AgeRangeViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AgeRangeViewName a, AgeRangeViewName b) => !(a == b); - } - - public partial class AgeRangeView - { - /// - /// -typed view over the resource name property. - /// - internal AgeRangeViewName ResourceNameAsAgeRangeViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AgeRangeViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AppCampaignAppStore.g.cs b/Google.Ads.GoogleAds/src/V12/AppCampaignAppStore.g.cs deleted file mode 100755 index 2e20e702f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AppCampaignAppStore.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/app_campaign_app_store.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/app_campaign_app_store.proto - public static partial class AppCampaignAppStoreReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/app_campaign_app_store.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AppCampaignAppStoreReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXBwX2NhbXBhaWdu", - "X2FwcF9zdG9yZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zInkKF0FwcENhbXBhaWduQXBwU3RvcmVFbnVtIl4KE0FwcENhbXBhaWdu", - "QXBwU3RvcmUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESEwoPQVBQ", - "TEVfQVBQX1NUT1JFEAISFAoQR09PR0xFX0FQUF9TVE9SRRADQvIBCiJjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhhBcHBDYW1wYWlnbkFw", - "cFN0b3JlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoC", - "Hkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum), global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The application store that distributes mobile applications. - /// - public sealed partial class AppCampaignAppStoreEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCampaignAppStoreEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignAppStoreEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignAppStoreEnum(AppCampaignAppStoreEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignAppStoreEnum Clone() { - return new AppCampaignAppStoreEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppCampaignAppStoreEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppCampaignAppStoreEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppCampaignAppStoreEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppCampaignAppStoreEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing app campaign app store. - /// - public enum AppCampaignAppStore { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Apple app store. - /// - [pbr::OriginalName("APPLE_APP_STORE")] AppleAppStore = 2, - /// - /// Google play. - /// - [pbr::OriginalName("GOOGLE_APP_STORE")] GoogleAppStore = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AppCampaignBiddingStrategyGoalType.g.cs b/Google.Ads.GoogleAds/src/V12/AppCampaignBiddingStrategyGoalType.g.cs deleted file mode 100755 index f0dfbd036..000000000 --- a/Google.Ads.GoogleAds/src/V12/AppCampaignBiddingStrategyGoalType.g.cs +++ /dev/null @@ -1,268 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/app_campaign_bidding_strategy_goal_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/app_campaign_bidding_strategy_goal_type.proto - public static partial class AppCampaignBiddingStrategyGoalTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/app_campaign_bidding_strategy_goal_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AppCampaignBiddingStrategyGoalTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXBwX2NhbXBhaWdu", - "X2JpZGRpbmdfc3RyYXRlZ3lfZ29hbF90eXBlLnByb3RvEh5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMikwMKJkFwcENhbXBhaWduQmlkZGluZ1N0", - "cmF0ZWd5R29hbFR5cGVFbnVtIugCCiJBcHBDYW1wYWlnbkJpZGRpbmdTdHJh", - "dGVneUdvYWxUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEikK", - "JU9QVElNSVpFX0lOU1RBTExTX1RBUkdFVF9JTlNUQUxMX0NPU1QQAhIzCi9P", - "UFRJTUlaRV9JTl9BUFBfQ09OVkVSU0lPTlNfVEFSR0VUX0lOU1RBTExfQ09T", - "VBADEjYKMk9QVElNSVpFX0lOX0FQUF9DT05WRVJTSU9OU19UQVJHRVRfQ09O", - "VkVSU0lPTl9DT1NUEAQSKAokT1BUSU1JWkVfUkVUVVJOX09OX0FEVkVSVElT", - "SU5HX1NQRU5EEAUSLworT1BUSU1JWkVfUFJFX1JFR0lTVFJBVElPTl9DT05W", - "RVJTSU9OX1ZPTFVNRRAGEjEKLU9QVElNSVpFX0lOU1RBTExTX1dJVEhPVVRf", - "VEFSR0VUX0lOU1RBTExfQ09TVBAHQoECCiJjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zQidBcHBDYW1wYWlnbkJpZGRpbmdTdHJhdGVneUdv", - "YWxUeXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoC", - "Hkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing goal towards which the bidding strategy of an - /// app campaign should optimize for. - /// - public sealed partial class AppCampaignBiddingStrategyGoalTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCampaignBiddingStrategyGoalTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignBiddingStrategyGoalTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignBiddingStrategyGoalTypeEnum(AppCampaignBiddingStrategyGoalTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignBiddingStrategyGoalTypeEnum Clone() { - return new AppCampaignBiddingStrategyGoalTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppCampaignBiddingStrategyGoalTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppCampaignBiddingStrategyGoalTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppCampaignBiddingStrategyGoalTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppCampaignBiddingStrategyGoalTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Goal type of App campaign BiddingStrategy. - /// - public enum AppCampaignBiddingStrategyGoalType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Aim to maximize the number of app installs. The cpa bid is the - /// target cost per install. - /// - [pbr::OriginalName("OPTIMIZE_INSTALLS_TARGET_INSTALL_COST")] OptimizeInstallsTargetInstallCost = 2, - /// - /// Aim to maximize the long term number of selected in-app conversions from - /// app installs. The cpa bid is the target cost per install. - /// - [pbr::OriginalName("OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST")] OptimizeInAppConversionsTargetInstallCost = 3, - /// - /// Aim to maximize the long term number of selected in-app conversions from - /// app installs. The cpa bid is the target cost per in-app conversion. Note - /// that the actual cpa may seem higher than the target cpa at first, since - /// the long term conversions haven't happened yet. - /// - [pbr::OriginalName("OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST")] OptimizeInAppConversionsTargetConversionCost = 4, - /// - /// Aim to maximize all conversions' value, for example, install + selected - /// in-app conversions while achieving or exceeding target return on - /// advertising spend. - /// - [pbr::OriginalName("OPTIMIZE_RETURN_ON_ADVERTISING_SPEND")] OptimizeReturnOnAdvertisingSpend = 5, - /// - /// Aim to maximize the pre-registration of the app. - /// - [pbr::OriginalName("OPTIMIZE_PRE_REGISTRATION_CONVERSION_VOLUME")] OptimizePreRegistrationConversionVolume = 6, - /// - /// Aim to maximize installation of the app without target cost-per-install. - /// - [pbr::OriginalName("OPTIMIZE_INSTALLS_WITHOUT_TARGET_INSTALL_COST")] OptimizeInstallsWithoutTargetInstallCost = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AppPaymentModelType.g.cs b/Google.Ads.GoogleAds/src/V12/AppPaymentModelType.g.cs deleted file mode 100755 index addd50dc0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AppPaymentModelType.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/app_payment_model_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/app_payment_model_type.proto - public static partial class AppPaymentModelTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/app_payment_model_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AppPaymentModelTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXBwX3BheW1lbnRf", - "bW9kZWxfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zIlgKF0FwcFBheW1lbnRNb2RlbFR5cGVFbnVtIj0KE0FwcFBheW1lbnRN", - "b2RlbFR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCAoEUEFJ", - "RBAeQvIBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhhB", - "cHBQYXltZW50TW9kZWxUeXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztl", - "bnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oC", - "Hkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a criterion for targeting paid apps. - /// - public sealed partial class AppPaymentModelTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppPaymentModelTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPaymentModelTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPaymentModelTypeEnum(AppPaymentModelTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPaymentModelTypeEnum Clone() { - return new AppPaymentModelTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppPaymentModelTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppPaymentModelTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppPaymentModelTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppPaymentModelTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible app payment models. - /// - public enum AppPaymentModelType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Represents paid-for apps. - /// - [pbr::OriginalName("PAID")] Paid = 30, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AppPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/AppPlaceholderField.g.cs deleted file mode 100755 index 9db86c08e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AppPlaceholderField.g.cs +++ /dev/null @@ -1,270 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/app_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/app_placeholder_field.proto - public static partial class AppPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/app_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AppPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXBwX3BsYWNlaG9s", - "ZGVyX2ZpZWxkLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMiyQEKF0FwcFBsYWNlaG9sZGVyRmllbGRFbnVtIq0BChNBcHBQbGFjZWhv", - "bGRlckZpZWxkEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgkKBVNU", - "T1JFEAISBgoCSUQQAxINCglMSU5LX1RFWFQQBBIHCgNVUkwQBRIOCgpGSU5B", - "TF9VUkxTEAYSFQoRRklOQUxfTU9CSUxFX1VSTFMQBxIQCgxUUkFDS0lOR19V", - "UkwQCBIUChBGSU5BTF9VUkxfU1VGRklYEAlC8gEKImNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXNCGEFwcFBsYWNlaG9sZGVyRmllbGRQcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldEnum.Types.AppPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for App placeholder fields. - /// - public sealed partial class AppPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPlaceholderFieldEnum(AppPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPlaceholderFieldEnum Clone() { - return new AppPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for App placeholder fields. - /// - public enum AppPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: INT64. The application store that the target application - /// belongs to. Valid values are: 1 = Apple iTunes Store; 2 = Google Play - /// Store. - /// - [pbr::OriginalName("STORE")] Store = 2, - /// - /// Data Type: STRING. The store-specific ID for the target application. - /// - [pbr::OriginalName("ID")] Id = 3, - /// - /// Data Type: STRING. The visible text displayed when the link is rendered - /// in an ad. - /// - [pbr::OriginalName("LINK_TEXT")] LinkText = 4, - /// - /// Data Type: STRING. The destination URL of the in-app link. - /// - [pbr::OriginalName("URL")] Url = 5, - /// - /// Data Type: URL_LIST. Final URLs for the in-app link when using Upgraded - /// URLs. - /// - [pbr::OriginalName("FINAL_URLS")] FinalUrls = 6, - /// - /// Data Type: URL_LIST. Final Mobile URLs for the in-app link when using - /// Upgraded URLs. - /// - [pbr::OriginalName("FINAL_MOBILE_URLS")] FinalMobileUrls = 7, - /// - /// Data Type: URL. Tracking template for the in-app link when using Upgraded - /// URLs. - /// - [pbr::OriginalName("TRACKING_URL")] TrackingUrl = 8, - /// - /// Data Type: STRING. Final URL suffix for the in-app link when using - /// parallel tracking. - /// - [pbr::OriginalName("FINAL_URL_SUFFIX")] FinalUrlSuffix = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AppStore.g.cs b/Google.Ads.GoogleAds/src/V12/AppStore.g.cs deleted file mode 100755 index 5629ef08b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AppStore.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/app_store.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/app_store.proto - public static partial class AppStoreReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/app_store.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AppStoreReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXBwX3N0b3JlLnBy", - "b3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiWwoMQXBwU3Rv", - "cmVFbnVtIksKCEFwcFN0b3JlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEhAKDEFQUExFX0lUVU5FUxACEg8KC0dPT0dMRV9QTEFZEANC5wEKImNv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCDUFwcFN0b3JlUHJv", - "dG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51", - "bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum), global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing app store type in an app extension. - /// - public sealed partial class AppStoreEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppStoreEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AppStoreReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppStoreEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppStoreEnum(AppStoreEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppStoreEnum Clone() { - return new AppStoreEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppStoreEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppStoreEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppStoreEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppStoreEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// App store type in an app extension. - /// - public enum AppStore { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Apple iTunes. - /// - [pbr::OriginalName("APPLE_ITUNES")] AppleItunes = 2, - /// - /// Google Play. - /// - [pbr::OriginalName("GOOGLE_PLAY")] GooglePlay = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AppUrlOperatingSystemType.g.cs b/Google.Ads.GoogleAds/src/V12/AppUrlOperatingSystemType.g.cs deleted file mode 100755 index 04a216a8c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AppUrlOperatingSystemType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/app_url_operating_system_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/app_url_operating_system_type.proto - public static partial class AppUrlOperatingSystemTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/app_url_operating_system_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AppUrlOperatingSystemTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXBwX3VybF9vcGVy", - "YXRpbmdfc3lzdGVtX3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcyJwCh1BcHBVcmxPcGVyYXRpbmdTeXN0ZW1UeXBlRW51bSJP", - "ChlBcHBVcmxPcGVyYXRpbmdTeXN0ZW1UeXBlEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEgcKA0lPUxACEgsKB0FORFJPSUQQA0L4AQoiY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IeQXBwVXJsT3BlcmF0aW5n", - "U3lzdGVtVHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNH", - "QUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVc", - "QWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The possible OS types for a deeplink AppUrl. - /// - public sealed partial class AppUrlOperatingSystemTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppUrlOperatingSystemTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppUrlOperatingSystemTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppUrlOperatingSystemTypeEnum(AppUrlOperatingSystemTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppUrlOperatingSystemTypeEnum Clone() { - return new AppUrlOperatingSystemTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppUrlOperatingSystemTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppUrlOperatingSystemTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppUrlOperatingSystemTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AppUrlOperatingSystemTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Operating System - /// - public enum AppUrlOperatingSystemType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The Apple IOS operating system. - /// - [pbr::OriginalName("IOS")] Ios = 2, - /// - /// The Android operating system. - /// - [pbr::OriginalName("ANDROID")] Android = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ApplyRecommendationResponsePartialFailureSupport.cs b/Google.Ads.GoogleAds/src/V12/ApplyRecommendationResponsePartialFailureSupport.cs deleted file mode 100644 index 91401c0f8..000000000 --- a/Google.Ads.GoogleAds/src/V12/ApplyRecommendationResponsePartialFailureSupport.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 Google LLC. All Rights Reserved. -// -// 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 -// -// http://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 - -using Google.Ads.GoogleAds.V12.Errors; -using System.Collections.Generic; -using Google.Protobuf.WellKnownTypes; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public sealed partial class ApplyRecommendationResponse - { - /// - /// Gets a GoogleAdsFailure instance that combines all the errors - /// from a failed API call. - /// - public GoogleAdsFailure PartialFailure - { - get - { - if (this.PartialFailureError == null) - { - return null; - } - GoogleAdsFailure retval = new GoogleAdsFailure(); - foreach (Any any in this.PartialFailureError.Details) - { - GoogleAdsFailure failure = any.Unpack(); - retval.Errors.AddRange(failure.Errors); - } - return retval; - } - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/Asset.g.cs b/Google.Ads.GoogleAds/src/V12/Asset.g.cs deleted file mode 100755 index c13d5e01c..000000000 --- a/Google.Ads.GoogleAds/src/V12/Asset.g.cs +++ /dev/null @@ -1,2508 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset.proto - public static partial class AssetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0LnBy", - "b3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGjFnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Fzc2V0X3R5cGVzLnByb3Rv", - "GjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2N1c3RvbV9wYXJh", - "bWV0ZXIucHJvdG8aLGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24v", - "cG9saWN5LnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "YXNzZXRfc291cmNlLnByb3RvGi9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMvYXNzZXRfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL3BvbGljeV9hcHByb3ZhbF9zdGF0dXMucHJvdG8aOWdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wb2xpY3lfcmV2aWV3X3N0YXR1", - "cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29v", - "Z2xlL2FwaS9yZXNvdXJjZS5wcm90byKnFgoFQXNzZXQSPQoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIm4EEF+kEgCh5nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "QXNzZXQSFAoCaWQYCyABKANCA+BBA0gBiAEBEhEKBG5hbWUYDCABKAlIAogB", - "ARJKCgR0eXBlGAQgASgOMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLkFzc2V0VHlwZUVudW0uQXNzZXRUeXBlQgPgQQMSEgoKZmluYWxfdXJs", - "cxgOIAMoCRIZChFmaW5hbF9tb2JpbGVfdXJscxgQIAMoCRIiChV0cmFja2lu", - "Z191cmxfdGVtcGxhdGUYESABKAlIA4gBARJPChV1cmxfY3VzdG9tX3BhcmFt", - "ZXRlcnMYEiADKAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LkN1c3RvbVBhcmFtZXRlchIdChBmaW5hbF91cmxfc3VmZml4GBMgASgJSASI", - "AQESUAoGc291cmNlGCYgASgOMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkFzc2V0U291cmNlRW51bS5Bc3NldFNvdXJjZUID4EEDElMKDnBv", - "bGljeV9zdW1tYXJ5GA0gASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcy5Bc3NldFBvbGljeVN1bW1hcnlCA+BBAxJWChN5b3V0dWJl", - "X3ZpZGVvX2Fzc2V0GAUgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5Zb3V0dWJlVmlkZW9Bc3NldEID4EEFSAASVAoSbWVkaWFfYnVu", - "ZGxlX2Fzc2V0GAYgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5NZWRpYUJ1bmRsZUFzc2V0QgPgQQVIABJHCgtpbWFnZV9hc3NldBgH", - "IAEoCzIrLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uSW1hZ2VB", - "c3NldEID4EEDSAASRQoKdGV4dF9hc3NldBgIIAEoCzIqLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5jb21tb24uVGV4dEFzc2V0QgPgQQVIABJJCg9sZWFk", - "X2Zvcm1fYXNzZXQYCSABKAsyLi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "Y29tbW9uLkxlYWRGb3JtQXNzZXRIABJSChRib29rX29uX2dvb2dsZV9hc3Nl", - "dBgKIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQm9v", - "a09uR29vZ2xlQXNzZXRIABJKCg9wcm9tb3Rpb25fYXNzZXQYDyABKAsyLy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlByb21vdGlvbkFzc2V0", - "SAASRgoNY2FsbG91dF9hc3NldBgUIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24uQ2FsbG91dEFzc2V0SAASWwoYc3RydWN0dXJlZF9z", - "bmlwcGV0X2Fzc2V0GBUgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5TdHJ1Y3R1cmVkU25pcHBldEFzc2V0SAASSAoOc2l0ZWxpbmtf", - "YXNzZXQYFiABKAsyLi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LlNpdGVsaW5rQXNzZXRIABJJCg9wYWdlX2ZlZWRfYXNzZXQYFyABKAsyLi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlBhZ2VGZWVkQXNzZXRI", - "ABJZChdkeW5hbWljX2VkdWNhdGlvbl9hc3NldBgYIAEoCzI2Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uRHluYW1pY0VkdWNhdGlvbkFzc2V0", - "SAASSwoQbW9iaWxlX2FwcF9hc3NldBgZIAEoCzIvLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5jb21tb24uTW9iaWxlQXBwQXNzZXRIABJRChNob3RlbF9j", - "YWxsb3V0X2Fzc2V0GBogASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5Ib3RlbENhbGxvdXRBc3NldEgAEkAKCmNhbGxfYXNzZXQYGyAB", - "KAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkNhbGxBc3Nl", - "dEgAEkIKC3ByaWNlX2Fzc2V0GBwgASgLMisuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmNvbW1vbi5QcmljZUFzc2V0SAASVwoUY2FsbF90b19hY3Rpb25f", - "YXNzZXQYHSABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LkNhbGxUb0FjdGlvbkFzc2V0QgPgQQVIABJcChlkeW5hbWljX3JlYWxfZXN0", - "YXRlX2Fzc2V0GB4gASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5EeW5hbWljUmVhbEVzdGF0ZUFzc2V0SAASUwoUZHluYW1pY19jdXN0", - "b21fYXNzZXQYHyABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLkR5bmFtaWNDdXN0b21Bc3NldEgAEmkKIGR5bmFtaWNfaG90ZWxzX2Fu", - "ZF9yZW50YWxzX2Fzc2V0GCAgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5EeW5hbWljSG90ZWxzQW5kUmVudGFsc0Fzc2V0SAASVQoV", - "ZHluYW1pY19mbGlnaHRzX2Fzc2V0GCEgASgLMjQuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5EeW5hbWljRmxpZ2h0c0Fzc2V0SAASaQodZGlz", - "Y292ZXJ5X2Nhcm91c2VsX2NhcmRfYXNzZXQYIiABKAsyOy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLkRpc2NvdmVyeUNhcm91c2VsQ2FyZEFz", - "c2V0QgPgQQVIABJTChRkeW5hbWljX3RyYXZlbF9hc3NldBgjIAEoCzIzLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uRHluYW1pY1RyYXZlbEFz", - "c2V0SAASUQoTZHluYW1pY19sb2NhbF9hc3NldBgkIAEoCzIyLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uRHluYW1pY0xvY2FsQXNzZXRIABJP", - "ChJkeW5hbWljX2pvYnNfYXNzZXQYJSABKAsyMS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uLkR5bmFtaWNKb2JzQXNzZXRIABJNCg5sb2NhdGlv", - "bl9hc3NldBgnIAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uTG9jYXRpb25Bc3NldEID4EEDSAA6TupBSwoeZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0Fzc2V0EiljdXN0b21lcnMve2N1c3RvbWVyX2lkfS9hc3Nl", - "dHMve2Fzc2V0X2lkfUIMCgphc3NldF9kYXRhQgUKA19pZEIHCgVfbmFtZUIY", - "ChZfdHJhY2tpbmdfdXJsX3RlbXBsYXRlQhMKEV9maW5hbF91cmxfc3VmZml4", - "Ir4CChJBc3NldFBvbGljeVN1bW1hcnkSVAoUcG9saWN5X3RvcGljX2VudHJp", - "ZXMYASADKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlBv", - "bGljeVRvcGljRW50cnlCA+BBAxJlCg1yZXZpZXdfc3RhdHVzGAIgASgOMkku", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlBvbGljeVJldmlld1N0", - "YXR1c0VudW0uUG9saWN5UmV2aWV3U3RhdHVzQgPgQQMSawoPYXBwcm92YWxf", - "c3RhdHVzGAMgASgOMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LlBvbGljeUFwcHJvdmFsU3RhdHVzRW51bS5Qb2xpY3lBcHByb3ZhbFN0YXR1", - "c0ID4EEDQvwBCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlc0IKQXNzZXRQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNv", - "dXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3Vy", - "Y2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSourceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Asset), global::Google.Ads.GoogleAds.V12.Resources.Asset.Parser, new[]{ "ResourceName", "Id", "Name", "Type", "FinalUrls", "FinalMobileUrls", "TrackingUrlTemplate", "UrlCustomParameters", "FinalUrlSuffix", "Source", "PolicySummary", "YoutubeVideoAsset", "MediaBundleAsset", "ImageAsset", "TextAsset", "LeadFormAsset", "BookOnGoogleAsset", "PromotionAsset", "CalloutAsset", "StructuredSnippetAsset", "SitelinkAsset", "PageFeedAsset", "DynamicEducationAsset", "MobileAppAsset", "HotelCalloutAsset", "CallAsset", "PriceAsset", "CallToActionAsset", "DynamicRealEstateAsset", "DynamicCustomAsset", "DynamicHotelsAndRentalsAsset", "DynamicFlightsAsset", "DiscoveryCarouselCardAsset", "DynamicTravelAsset", "DynamicLocalAsset", "DynamicJobsAsset", "LocationAsset" }, new[]{ "AssetData", "Id", "Name", "TrackingUrlTemplate", "FinalUrlSuffix" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetPolicySummary), global::Google.Ads.GoogleAds.V12.Resources.AssetPolicySummary.Parser, new[]{ "PolicyTopicEntries", "ReviewStatus", "ApprovalStatus" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Asset is a part of an ad which can be shared across multiple ads. - /// It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. - /// Assets are immutable and cannot be removed. To stop an asset from serving, - /// remove the asset from the entity that is using it. - /// - public sealed partial class Asset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Asset()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Asset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Asset(Asset other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - type_ = other.type_; - finalUrls_ = other.finalUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - trackingUrlTemplate_ = other.trackingUrlTemplate_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - finalUrlSuffix_ = other.finalUrlSuffix_; - source_ = other.source_; - policySummary_ = other.policySummary_ != null ? other.policySummary_.Clone() : null; - switch (other.AssetDataCase) { - case AssetDataOneofCase.YoutubeVideoAsset: - YoutubeVideoAsset = other.YoutubeVideoAsset.Clone(); - break; - case AssetDataOneofCase.MediaBundleAsset: - MediaBundleAsset = other.MediaBundleAsset.Clone(); - break; - case AssetDataOneofCase.ImageAsset: - ImageAsset = other.ImageAsset.Clone(); - break; - case AssetDataOneofCase.TextAsset: - TextAsset = other.TextAsset.Clone(); - break; - case AssetDataOneofCase.LeadFormAsset: - LeadFormAsset = other.LeadFormAsset.Clone(); - break; - case AssetDataOneofCase.BookOnGoogleAsset: - BookOnGoogleAsset = other.BookOnGoogleAsset.Clone(); - break; - case AssetDataOneofCase.PromotionAsset: - PromotionAsset = other.PromotionAsset.Clone(); - break; - case AssetDataOneofCase.CalloutAsset: - CalloutAsset = other.CalloutAsset.Clone(); - break; - case AssetDataOneofCase.StructuredSnippetAsset: - StructuredSnippetAsset = other.StructuredSnippetAsset.Clone(); - break; - case AssetDataOneofCase.SitelinkAsset: - SitelinkAsset = other.SitelinkAsset.Clone(); - break; - case AssetDataOneofCase.PageFeedAsset: - PageFeedAsset = other.PageFeedAsset.Clone(); - break; - case AssetDataOneofCase.DynamicEducationAsset: - DynamicEducationAsset = other.DynamicEducationAsset.Clone(); - break; - case AssetDataOneofCase.MobileAppAsset: - MobileAppAsset = other.MobileAppAsset.Clone(); - break; - case AssetDataOneofCase.HotelCalloutAsset: - HotelCalloutAsset = other.HotelCalloutAsset.Clone(); - break; - case AssetDataOneofCase.CallAsset: - CallAsset = other.CallAsset.Clone(); - break; - case AssetDataOneofCase.PriceAsset: - PriceAsset = other.PriceAsset.Clone(); - break; - case AssetDataOneofCase.CallToActionAsset: - CallToActionAsset = other.CallToActionAsset.Clone(); - break; - case AssetDataOneofCase.DynamicRealEstateAsset: - DynamicRealEstateAsset = other.DynamicRealEstateAsset.Clone(); - break; - case AssetDataOneofCase.DynamicCustomAsset: - DynamicCustomAsset = other.DynamicCustomAsset.Clone(); - break; - case AssetDataOneofCase.DynamicHotelsAndRentalsAsset: - DynamicHotelsAndRentalsAsset = other.DynamicHotelsAndRentalsAsset.Clone(); - break; - case AssetDataOneofCase.DynamicFlightsAsset: - DynamicFlightsAsset = other.DynamicFlightsAsset.Clone(); - break; - case AssetDataOneofCase.DiscoveryCarouselCardAsset: - DiscoveryCarouselCardAsset = other.DiscoveryCarouselCardAsset.Clone(); - break; - case AssetDataOneofCase.DynamicTravelAsset: - DynamicTravelAsset = other.DynamicTravelAsset.Clone(); - break; - case AssetDataOneofCase.DynamicLocalAsset: - DynamicLocalAsset = other.DynamicLocalAsset.Clone(); - break; - case AssetDataOneofCase.DynamicJobsAsset: - DynamicJobsAsset = other.DynamicJobsAsset.Clone(); - break; - case AssetDataOneofCase.LocationAsset: - LocationAsset = other.LocationAsset.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Asset Clone() { - return new Asset(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the asset. - /// Asset resource names have the form: - /// - /// `customers/{customer_id}/assets/{asset_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 11; - private long id_; - /// - /// Output only. The ID of the asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 12; - private string name_; - /// - /// Optional name of the asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType type_ = global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType.Unspecified; - /// - /// Output only. Type of the asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(114); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(130); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final mobile URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 17; - private string trackingUrlTemplate_; - /// - /// URL template for constructing a tracking URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 18; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(146, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// A list of mappings to be used for substituting URL custom parameter tags in - /// the tracking_url_template, final_urls, and/or final_mobile_urls. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 19; - private string finalUrlSuffix_; - /// - /// URL template for appending params to landing page URLs served with parallel - /// tracking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - /// Field number for the "source" field. - public const int SourceFieldNumber = 38; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource source_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified; - /// - /// Output only. Source of the asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource Source { - get { return source_; } - set { - source_ = value; - } - } - - /// Field number for the "policy_summary" field. - public const int PolicySummaryFieldNumber = 13; - private global::Google.Ads.GoogleAds.V12.Resources.AssetPolicySummary policySummary_; - /// - /// Output only. Policy information for the asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetPolicySummary PolicySummary { - get { return policySummary_; } - set { - policySummary_ = value; - } - } - - /// Field number for the "youtube_video_asset" field. - public const int YoutubeVideoAssetFieldNumber = 5; - /// - /// Immutable. A YouTube video asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset YoutubeVideoAsset { - get { return assetDataCase_ == AssetDataOneofCase.YoutubeVideoAsset ? (global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.YoutubeVideoAsset; - } - } - - /// Field number for the "media_bundle_asset" field. - public const int MediaBundleAssetFieldNumber = 6; - /// - /// Immutable. A media bundle asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset MediaBundleAsset { - get { return assetDataCase_ == AssetDataOneofCase.MediaBundleAsset ? (global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.MediaBundleAsset; - } - } - - /// Field number for the "image_asset" field. - public const int ImageAssetFieldNumber = 7; - /// - /// Output only. An image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ImageAsset ImageAsset { - get { return assetDataCase_ == AssetDataOneofCase.ImageAsset ? (global::Google.Ads.GoogleAds.V12.Common.ImageAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.ImageAsset; - } - } - - /// Field number for the "text_asset" field. - public const int TextAssetFieldNumber = 8; - /// - /// Immutable. A text asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TextAsset TextAsset { - get { return assetDataCase_ == AssetDataOneofCase.TextAsset ? (global::Google.Ads.GoogleAds.V12.Common.TextAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.TextAsset; - } - } - - /// Field number for the "lead_form_asset" field. - public const int LeadFormAssetFieldNumber = 9; - /// - /// A lead form asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset LeadFormAsset { - get { return assetDataCase_ == AssetDataOneofCase.LeadFormAsset ? (global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.LeadFormAsset; - } - } - - /// Field number for the "book_on_google_asset" field. - public const int BookOnGoogleAssetFieldNumber = 10; - /// - /// A book on google asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset BookOnGoogleAsset { - get { return assetDataCase_ == AssetDataOneofCase.BookOnGoogleAsset ? (global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.BookOnGoogleAsset; - } - } - - /// Field number for the "promotion_asset" field. - public const int PromotionAssetFieldNumber = 15; - /// - /// A promotion asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PromotionAsset PromotionAsset { - get { return assetDataCase_ == AssetDataOneofCase.PromotionAsset ? (global::Google.Ads.GoogleAds.V12.Common.PromotionAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.PromotionAsset; - } - } - - /// Field number for the "callout_asset" field. - public const int CalloutAssetFieldNumber = 20; - /// - /// A callout asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CalloutAsset CalloutAsset { - get { return assetDataCase_ == AssetDataOneofCase.CalloutAsset ? (global::Google.Ads.GoogleAds.V12.Common.CalloutAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.CalloutAsset; - } - } - - /// Field number for the "structured_snippet_asset" field. - public const int StructuredSnippetAssetFieldNumber = 21; - /// - /// A structured snippet asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset StructuredSnippetAsset { - get { return assetDataCase_ == AssetDataOneofCase.StructuredSnippetAsset ? (global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.StructuredSnippetAsset; - } - } - - /// Field number for the "sitelink_asset" field. - public const int SitelinkAssetFieldNumber = 22; - /// - /// A sitelink asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset SitelinkAsset { - get { return assetDataCase_ == AssetDataOneofCase.SitelinkAsset ? (global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.SitelinkAsset; - } - } - - /// Field number for the "page_feed_asset" field. - public const int PageFeedAssetFieldNumber = 23; - /// - /// A page feed asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset PageFeedAsset { - get { return assetDataCase_ == AssetDataOneofCase.PageFeedAsset ? (global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.PageFeedAsset; - } - } - - /// Field number for the "dynamic_education_asset" field. - public const int DynamicEducationAssetFieldNumber = 24; - /// - /// A dynamic education asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset DynamicEducationAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicEducationAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicEducationAsset; - } - } - - /// Field number for the "mobile_app_asset" field. - public const int MobileAppAssetFieldNumber = 25; - /// - /// A mobile app asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset MobileAppAsset { - get { return assetDataCase_ == AssetDataOneofCase.MobileAppAsset ? (global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.MobileAppAsset; - } - } - - /// Field number for the "hotel_callout_asset" field. - public const int HotelCalloutAssetFieldNumber = 26; - /// - /// A hotel callout asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset HotelCalloutAsset { - get { return assetDataCase_ == AssetDataOneofCase.HotelCalloutAsset ? (global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.HotelCalloutAsset; - } - } - - /// Field number for the "call_asset" field. - public const int CallAssetFieldNumber = 27; - /// - /// A call asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CallAsset CallAsset { - get { return assetDataCase_ == AssetDataOneofCase.CallAsset ? (global::Google.Ads.GoogleAds.V12.Common.CallAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.CallAsset; - } - } - - /// Field number for the "price_asset" field. - public const int PriceAssetFieldNumber = 28; - /// - /// A price asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PriceAsset PriceAsset { - get { return assetDataCase_ == AssetDataOneofCase.PriceAsset ? (global::Google.Ads.GoogleAds.V12.Common.PriceAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.PriceAsset; - } - } - - /// Field number for the "call_to_action_asset" field. - public const int CallToActionAssetFieldNumber = 29; - /// - /// Immutable. A call to action asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset CallToActionAsset { - get { return assetDataCase_ == AssetDataOneofCase.CallToActionAsset ? (global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.CallToActionAsset; - } - } - - /// Field number for the "dynamic_real_estate_asset" field. - public const int DynamicRealEstateAssetFieldNumber = 30; - /// - /// A dynamic real estate asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset DynamicRealEstateAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicRealEstateAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicRealEstateAsset; - } - } - - /// Field number for the "dynamic_custom_asset" field. - public const int DynamicCustomAssetFieldNumber = 31; - /// - /// A dynamic custom asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset DynamicCustomAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicCustomAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicCustomAsset; - } - } - - /// Field number for the "dynamic_hotels_and_rentals_asset" field. - public const int DynamicHotelsAndRentalsAssetFieldNumber = 32; - /// - /// A dynamic hotels and rentals asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset DynamicHotelsAndRentalsAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicHotelsAndRentalsAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicHotelsAndRentalsAsset; - } - } - - /// Field number for the "dynamic_flights_asset" field. - public const int DynamicFlightsAssetFieldNumber = 33; - /// - /// A dynamic flights asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset DynamicFlightsAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicFlightsAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicFlightsAsset; - } - } - - /// Field number for the "discovery_carousel_card_asset" field. - public const int DiscoveryCarouselCardAssetFieldNumber = 34; - /// - /// Immutable. A discovery carousel card asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset DiscoveryCarouselCardAsset { - get { return assetDataCase_ == AssetDataOneofCase.DiscoveryCarouselCardAsset ? (global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DiscoveryCarouselCardAsset; - } - } - - /// Field number for the "dynamic_travel_asset" field. - public const int DynamicTravelAssetFieldNumber = 35; - /// - /// A dynamic travel asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset DynamicTravelAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicTravelAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicTravelAsset; - } - } - - /// Field number for the "dynamic_local_asset" field. - public const int DynamicLocalAssetFieldNumber = 36; - /// - /// A dynamic local asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset DynamicLocalAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicLocalAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicLocalAsset; - } - } - - /// Field number for the "dynamic_jobs_asset" field. - public const int DynamicJobsAssetFieldNumber = 37; - /// - /// A dynamic jobs asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset DynamicJobsAsset { - get { return assetDataCase_ == AssetDataOneofCase.DynamicJobsAsset ? (global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.DynamicJobsAsset; - } - } - - /// Field number for the "location_asset" field. - public const int LocationAssetFieldNumber = 39; - /// - /// Output only. A location asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationAsset LocationAsset { - get { return assetDataCase_ == AssetDataOneofCase.LocationAsset ? (global::Google.Ads.GoogleAds.V12.Common.LocationAsset) assetData_ : null; } - set { - assetData_ = value; - assetDataCase_ = value == null ? AssetDataOneofCase.None : AssetDataOneofCase.LocationAsset; - } - } - - private object assetData_; - /// Enum of possible cases for the "asset_data" oneof. - public enum AssetDataOneofCase { - None = 0, - YoutubeVideoAsset = 5, - MediaBundleAsset = 6, - ImageAsset = 7, - TextAsset = 8, - LeadFormAsset = 9, - BookOnGoogleAsset = 10, - PromotionAsset = 15, - CalloutAsset = 20, - StructuredSnippetAsset = 21, - SitelinkAsset = 22, - PageFeedAsset = 23, - DynamicEducationAsset = 24, - MobileAppAsset = 25, - HotelCalloutAsset = 26, - CallAsset = 27, - PriceAsset = 28, - CallToActionAsset = 29, - DynamicRealEstateAsset = 30, - DynamicCustomAsset = 31, - DynamicHotelsAndRentalsAsset = 32, - DynamicFlightsAsset = 33, - DiscoveryCarouselCardAsset = 34, - DynamicTravelAsset = 35, - DynamicLocalAsset = 36, - DynamicJobsAsset = 37, - LocationAsset = 39, - } - private AssetDataOneofCase assetDataCase_ = AssetDataOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetDataOneofCase AssetDataCase { - get { return assetDataCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAssetData() { - assetDataCase_ = AssetDataOneofCase.None; - assetData_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Asset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Asset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Type != other.Type) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - if (Source != other.Source) return false; - if (!object.Equals(PolicySummary, other.PolicySummary)) return false; - if (!object.Equals(YoutubeVideoAsset, other.YoutubeVideoAsset)) return false; - if (!object.Equals(MediaBundleAsset, other.MediaBundleAsset)) return false; - if (!object.Equals(ImageAsset, other.ImageAsset)) return false; - if (!object.Equals(TextAsset, other.TextAsset)) return false; - if (!object.Equals(LeadFormAsset, other.LeadFormAsset)) return false; - if (!object.Equals(BookOnGoogleAsset, other.BookOnGoogleAsset)) return false; - if (!object.Equals(PromotionAsset, other.PromotionAsset)) return false; - if (!object.Equals(CalloutAsset, other.CalloutAsset)) return false; - if (!object.Equals(StructuredSnippetAsset, other.StructuredSnippetAsset)) return false; - if (!object.Equals(SitelinkAsset, other.SitelinkAsset)) return false; - if (!object.Equals(PageFeedAsset, other.PageFeedAsset)) return false; - if (!object.Equals(DynamicEducationAsset, other.DynamicEducationAsset)) return false; - if (!object.Equals(MobileAppAsset, other.MobileAppAsset)) return false; - if (!object.Equals(HotelCalloutAsset, other.HotelCalloutAsset)) return false; - if (!object.Equals(CallAsset, other.CallAsset)) return false; - if (!object.Equals(PriceAsset, other.PriceAsset)) return false; - if (!object.Equals(CallToActionAsset, other.CallToActionAsset)) return false; - if (!object.Equals(DynamicRealEstateAsset, other.DynamicRealEstateAsset)) return false; - if (!object.Equals(DynamicCustomAsset, other.DynamicCustomAsset)) return false; - if (!object.Equals(DynamicHotelsAndRentalsAsset, other.DynamicHotelsAndRentalsAsset)) return false; - if (!object.Equals(DynamicFlightsAsset, other.DynamicFlightsAsset)) return false; - if (!object.Equals(DiscoveryCarouselCardAsset, other.DiscoveryCarouselCardAsset)) return false; - if (!object.Equals(DynamicTravelAsset, other.DynamicTravelAsset)) return false; - if (!object.Equals(DynamicLocalAsset, other.DynamicLocalAsset)) return false; - if (!object.Equals(DynamicJobsAsset, other.DynamicJobsAsset)) return false; - if (!object.Equals(LocationAsset, other.LocationAsset)) return false; - if (AssetDataCase != other.AssetDataCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType.Unspecified) hash ^= Type.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) hash ^= Source.GetHashCode(); - if (policySummary_ != null) hash ^= PolicySummary.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.YoutubeVideoAsset) hash ^= YoutubeVideoAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.MediaBundleAsset) hash ^= MediaBundleAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.ImageAsset) hash ^= ImageAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.TextAsset) hash ^= TextAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.LeadFormAsset) hash ^= LeadFormAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.BookOnGoogleAsset) hash ^= BookOnGoogleAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.PromotionAsset) hash ^= PromotionAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.CalloutAsset) hash ^= CalloutAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.StructuredSnippetAsset) hash ^= StructuredSnippetAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.SitelinkAsset) hash ^= SitelinkAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.PageFeedAsset) hash ^= PageFeedAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicEducationAsset) hash ^= DynamicEducationAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.MobileAppAsset) hash ^= MobileAppAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.HotelCalloutAsset) hash ^= HotelCalloutAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.CallAsset) hash ^= CallAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.PriceAsset) hash ^= PriceAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.CallToActionAsset) hash ^= CallToActionAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicRealEstateAsset) hash ^= DynamicRealEstateAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicCustomAsset) hash ^= DynamicCustomAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicHotelsAndRentalsAsset) hash ^= DynamicHotelsAndRentalsAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicFlightsAsset) hash ^= DynamicFlightsAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DiscoveryCarouselCardAsset) hash ^= DiscoveryCarouselCardAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicTravelAsset) hash ^= DynamicTravelAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicLocalAsset) hash ^= DynamicLocalAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.DynamicJobsAsset) hash ^= DynamicJobsAsset.GetHashCode(); - if (assetDataCase_ == AssetDataOneofCase.LocationAsset) hash ^= LocationAsset.GetHashCode(); - hash ^= (int) assetDataCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (assetDataCase_ == AssetDataOneofCase.YoutubeVideoAsset) { - output.WriteRawTag(42); - output.WriteMessage(YoutubeVideoAsset); - } - if (assetDataCase_ == AssetDataOneofCase.MediaBundleAsset) { - output.WriteRawTag(50); - output.WriteMessage(MediaBundleAsset); - } - if (assetDataCase_ == AssetDataOneofCase.ImageAsset) { - output.WriteRawTag(58); - output.WriteMessage(ImageAsset); - } - if (assetDataCase_ == AssetDataOneofCase.TextAsset) { - output.WriteRawTag(66); - output.WriteMessage(TextAsset); - } - if (assetDataCase_ == AssetDataOneofCase.LeadFormAsset) { - output.WriteRawTag(74); - output.WriteMessage(LeadFormAsset); - } - if (assetDataCase_ == AssetDataOneofCase.BookOnGoogleAsset) { - output.WriteRawTag(82); - output.WriteMessage(BookOnGoogleAsset); - } - if (HasId) { - output.WriteRawTag(88); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(98); - output.WriteString(Name); - } - if (policySummary_ != null) { - output.WriteRawTag(106); - output.WriteMessage(PolicySummary); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - if (assetDataCase_ == AssetDataOneofCase.PromotionAsset) { - output.WriteRawTag(122); - output.WriteMessage(PromotionAsset); - } - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(138, 1); - output.WriteString(TrackingUrlTemplate); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (HasFinalUrlSuffix) { - output.WriteRawTag(154, 1); - output.WriteString(FinalUrlSuffix); - } - if (assetDataCase_ == AssetDataOneofCase.CalloutAsset) { - output.WriteRawTag(162, 1); - output.WriteMessage(CalloutAsset); - } - if (assetDataCase_ == AssetDataOneofCase.StructuredSnippetAsset) { - output.WriteRawTag(170, 1); - output.WriteMessage(StructuredSnippetAsset); - } - if (assetDataCase_ == AssetDataOneofCase.SitelinkAsset) { - output.WriteRawTag(178, 1); - output.WriteMessage(SitelinkAsset); - } - if (assetDataCase_ == AssetDataOneofCase.PageFeedAsset) { - output.WriteRawTag(186, 1); - output.WriteMessage(PageFeedAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicEducationAsset) { - output.WriteRawTag(194, 1); - output.WriteMessage(DynamicEducationAsset); - } - if (assetDataCase_ == AssetDataOneofCase.MobileAppAsset) { - output.WriteRawTag(202, 1); - output.WriteMessage(MobileAppAsset); - } - if (assetDataCase_ == AssetDataOneofCase.HotelCalloutAsset) { - output.WriteRawTag(210, 1); - output.WriteMessage(HotelCalloutAsset); - } - if (assetDataCase_ == AssetDataOneofCase.CallAsset) { - output.WriteRawTag(218, 1); - output.WriteMessage(CallAsset); - } - if (assetDataCase_ == AssetDataOneofCase.PriceAsset) { - output.WriteRawTag(226, 1); - output.WriteMessage(PriceAsset); - } - if (assetDataCase_ == AssetDataOneofCase.CallToActionAsset) { - output.WriteRawTag(234, 1); - output.WriteMessage(CallToActionAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicRealEstateAsset) { - output.WriteRawTag(242, 1); - output.WriteMessage(DynamicRealEstateAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicCustomAsset) { - output.WriteRawTag(250, 1); - output.WriteMessage(DynamicCustomAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicHotelsAndRentalsAsset) { - output.WriteRawTag(130, 2); - output.WriteMessage(DynamicHotelsAndRentalsAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicFlightsAsset) { - output.WriteRawTag(138, 2); - output.WriteMessage(DynamicFlightsAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DiscoveryCarouselCardAsset) { - output.WriteRawTag(146, 2); - output.WriteMessage(DiscoveryCarouselCardAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicTravelAsset) { - output.WriteRawTag(154, 2); - output.WriteMessage(DynamicTravelAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicLocalAsset) { - output.WriteRawTag(162, 2); - output.WriteMessage(DynamicLocalAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicJobsAsset) { - output.WriteRawTag(170, 2); - output.WriteMessage(DynamicJobsAsset); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(176, 2); - output.WriteEnum((int) Source); - } - if (assetDataCase_ == AssetDataOneofCase.LocationAsset) { - output.WriteRawTag(186, 2); - output.WriteMessage(LocationAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (assetDataCase_ == AssetDataOneofCase.YoutubeVideoAsset) { - output.WriteRawTag(42); - output.WriteMessage(YoutubeVideoAsset); - } - if (assetDataCase_ == AssetDataOneofCase.MediaBundleAsset) { - output.WriteRawTag(50); - output.WriteMessage(MediaBundleAsset); - } - if (assetDataCase_ == AssetDataOneofCase.ImageAsset) { - output.WriteRawTag(58); - output.WriteMessage(ImageAsset); - } - if (assetDataCase_ == AssetDataOneofCase.TextAsset) { - output.WriteRawTag(66); - output.WriteMessage(TextAsset); - } - if (assetDataCase_ == AssetDataOneofCase.LeadFormAsset) { - output.WriteRawTag(74); - output.WriteMessage(LeadFormAsset); - } - if (assetDataCase_ == AssetDataOneofCase.BookOnGoogleAsset) { - output.WriteRawTag(82); - output.WriteMessage(BookOnGoogleAsset); - } - if (HasId) { - output.WriteRawTag(88); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(98); - output.WriteString(Name); - } - if (policySummary_ != null) { - output.WriteRawTag(106); - output.WriteMessage(PolicySummary); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - if (assetDataCase_ == AssetDataOneofCase.PromotionAsset) { - output.WriteRawTag(122); - output.WriteMessage(PromotionAsset); - } - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(138, 1); - output.WriteString(TrackingUrlTemplate); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (HasFinalUrlSuffix) { - output.WriteRawTag(154, 1); - output.WriteString(FinalUrlSuffix); - } - if (assetDataCase_ == AssetDataOneofCase.CalloutAsset) { - output.WriteRawTag(162, 1); - output.WriteMessage(CalloutAsset); - } - if (assetDataCase_ == AssetDataOneofCase.StructuredSnippetAsset) { - output.WriteRawTag(170, 1); - output.WriteMessage(StructuredSnippetAsset); - } - if (assetDataCase_ == AssetDataOneofCase.SitelinkAsset) { - output.WriteRawTag(178, 1); - output.WriteMessage(SitelinkAsset); - } - if (assetDataCase_ == AssetDataOneofCase.PageFeedAsset) { - output.WriteRawTag(186, 1); - output.WriteMessage(PageFeedAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicEducationAsset) { - output.WriteRawTag(194, 1); - output.WriteMessage(DynamicEducationAsset); - } - if (assetDataCase_ == AssetDataOneofCase.MobileAppAsset) { - output.WriteRawTag(202, 1); - output.WriteMessage(MobileAppAsset); - } - if (assetDataCase_ == AssetDataOneofCase.HotelCalloutAsset) { - output.WriteRawTag(210, 1); - output.WriteMessage(HotelCalloutAsset); - } - if (assetDataCase_ == AssetDataOneofCase.CallAsset) { - output.WriteRawTag(218, 1); - output.WriteMessage(CallAsset); - } - if (assetDataCase_ == AssetDataOneofCase.PriceAsset) { - output.WriteRawTag(226, 1); - output.WriteMessage(PriceAsset); - } - if (assetDataCase_ == AssetDataOneofCase.CallToActionAsset) { - output.WriteRawTag(234, 1); - output.WriteMessage(CallToActionAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicRealEstateAsset) { - output.WriteRawTag(242, 1); - output.WriteMessage(DynamicRealEstateAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicCustomAsset) { - output.WriteRawTag(250, 1); - output.WriteMessage(DynamicCustomAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicHotelsAndRentalsAsset) { - output.WriteRawTag(130, 2); - output.WriteMessage(DynamicHotelsAndRentalsAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicFlightsAsset) { - output.WriteRawTag(138, 2); - output.WriteMessage(DynamicFlightsAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DiscoveryCarouselCardAsset) { - output.WriteRawTag(146, 2); - output.WriteMessage(DiscoveryCarouselCardAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicTravelAsset) { - output.WriteRawTag(154, 2); - output.WriteMessage(DynamicTravelAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicLocalAsset) { - output.WriteRawTag(162, 2); - output.WriteMessage(DynamicLocalAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicJobsAsset) { - output.WriteRawTag(170, 2); - output.WriteMessage(DynamicJobsAsset); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(176, 2); - output.WriteEnum((int) Source); - } - if (assetDataCase_ == AssetDataOneofCase.LocationAsset) { - output.WriteRawTag(186, 2); - output.WriteMessage(LocationAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (HasFinalUrlSuffix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Source); - } - if (policySummary_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummary); - } - if (assetDataCase_ == AssetDataOneofCase.YoutubeVideoAsset) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YoutubeVideoAsset); - } - if (assetDataCase_ == AssetDataOneofCase.MediaBundleAsset) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MediaBundleAsset); - } - if (assetDataCase_ == AssetDataOneofCase.ImageAsset) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ImageAsset); - } - if (assetDataCase_ == AssetDataOneofCase.TextAsset) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextAsset); - } - if (assetDataCase_ == AssetDataOneofCase.LeadFormAsset) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LeadFormAsset); - } - if (assetDataCase_ == AssetDataOneofCase.BookOnGoogleAsset) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BookOnGoogleAsset); - } - if (assetDataCase_ == AssetDataOneofCase.PromotionAsset) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PromotionAsset); - } - if (assetDataCase_ == AssetDataOneofCase.CalloutAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CalloutAsset); - } - if (assetDataCase_ == AssetDataOneofCase.StructuredSnippetAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(StructuredSnippetAsset); - } - if (assetDataCase_ == AssetDataOneofCase.SitelinkAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SitelinkAsset); - } - if (assetDataCase_ == AssetDataOneofCase.PageFeedAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PageFeedAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicEducationAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicEducationAsset); - } - if (assetDataCase_ == AssetDataOneofCase.MobileAppAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MobileAppAsset); - } - if (assetDataCase_ == AssetDataOneofCase.HotelCalloutAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelCalloutAsset); - } - if (assetDataCase_ == AssetDataOneofCase.CallAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CallAsset); - } - if (assetDataCase_ == AssetDataOneofCase.PriceAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PriceAsset); - } - if (assetDataCase_ == AssetDataOneofCase.CallToActionAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CallToActionAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicRealEstateAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicRealEstateAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicCustomAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicCustomAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicHotelsAndRentalsAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicHotelsAndRentalsAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicFlightsAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicFlightsAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DiscoveryCarouselCardAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DiscoveryCarouselCardAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicTravelAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicTravelAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicLocalAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicLocalAsset); - } - if (assetDataCase_ == AssetDataOneofCase.DynamicJobsAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicJobsAsset); - } - if (assetDataCase_ == AssetDataOneofCase.LocationAsset) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocationAsset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Asset other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType.Unspecified) { - Type = other.Type; - } - finalUrls_.Add(other.finalUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - if (other.Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - Source = other.Source; - } - if (other.policySummary_ != null) { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AssetPolicySummary(); - } - PolicySummary.MergeFrom(other.PolicySummary); - } - switch (other.AssetDataCase) { - case AssetDataOneofCase.YoutubeVideoAsset: - if (YoutubeVideoAsset == null) { - YoutubeVideoAsset = new global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset(); - } - YoutubeVideoAsset.MergeFrom(other.YoutubeVideoAsset); - break; - case AssetDataOneofCase.MediaBundleAsset: - if (MediaBundleAsset == null) { - MediaBundleAsset = new global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset(); - } - MediaBundleAsset.MergeFrom(other.MediaBundleAsset); - break; - case AssetDataOneofCase.ImageAsset: - if (ImageAsset == null) { - ImageAsset = new global::Google.Ads.GoogleAds.V12.Common.ImageAsset(); - } - ImageAsset.MergeFrom(other.ImageAsset); - break; - case AssetDataOneofCase.TextAsset: - if (TextAsset == null) { - TextAsset = new global::Google.Ads.GoogleAds.V12.Common.TextAsset(); - } - TextAsset.MergeFrom(other.TextAsset); - break; - case AssetDataOneofCase.LeadFormAsset: - if (LeadFormAsset == null) { - LeadFormAsset = new global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset(); - } - LeadFormAsset.MergeFrom(other.LeadFormAsset); - break; - case AssetDataOneofCase.BookOnGoogleAsset: - if (BookOnGoogleAsset == null) { - BookOnGoogleAsset = new global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset(); - } - BookOnGoogleAsset.MergeFrom(other.BookOnGoogleAsset); - break; - case AssetDataOneofCase.PromotionAsset: - if (PromotionAsset == null) { - PromotionAsset = new global::Google.Ads.GoogleAds.V12.Common.PromotionAsset(); - } - PromotionAsset.MergeFrom(other.PromotionAsset); - break; - case AssetDataOneofCase.CalloutAsset: - if (CalloutAsset == null) { - CalloutAsset = new global::Google.Ads.GoogleAds.V12.Common.CalloutAsset(); - } - CalloutAsset.MergeFrom(other.CalloutAsset); - break; - case AssetDataOneofCase.StructuredSnippetAsset: - if (StructuredSnippetAsset == null) { - StructuredSnippetAsset = new global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset(); - } - StructuredSnippetAsset.MergeFrom(other.StructuredSnippetAsset); - break; - case AssetDataOneofCase.SitelinkAsset: - if (SitelinkAsset == null) { - SitelinkAsset = new global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset(); - } - SitelinkAsset.MergeFrom(other.SitelinkAsset); - break; - case AssetDataOneofCase.PageFeedAsset: - if (PageFeedAsset == null) { - PageFeedAsset = new global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset(); - } - PageFeedAsset.MergeFrom(other.PageFeedAsset); - break; - case AssetDataOneofCase.DynamicEducationAsset: - if (DynamicEducationAsset == null) { - DynamicEducationAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset(); - } - DynamicEducationAsset.MergeFrom(other.DynamicEducationAsset); - break; - case AssetDataOneofCase.MobileAppAsset: - if (MobileAppAsset == null) { - MobileAppAsset = new global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset(); - } - MobileAppAsset.MergeFrom(other.MobileAppAsset); - break; - case AssetDataOneofCase.HotelCalloutAsset: - if (HotelCalloutAsset == null) { - HotelCalloutAsset = new global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset(); - } - HotelCalloutAsset.MergeFrom(other.HotelCalloutAsset); - break; - case AssetDataOneofCase.CallAsset: - if (CallAsset == null) { - CallAsset = new global::Google.Ads.GoogleAds.V12.Common.CallAsset(); - } - CallAsset.MergeFrom(other.CallAsset); - break; - case AssetDataOneofCase.PriceAsset: - if (PriceAsset == null) { - PriceAsset = new global::Google.Ads.GoogleAds.V12.Common.PriceAsset(); - } - PriceAsset.MergeFrom(other.PriceAsset); - break; - case AssetDataOneofCase.CallToActionAsset: - if (CallToActionAsset == null) { - CallToActionAsset = new global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset(); - } - CallToActionAsset.MergeFrom(other.CallToActionAsset); - break; - case AssetDataOneofCase.DynamicRealEstateAsset: - if (DynamicRealEstateAsset == null) { - DynamicRealEstateAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset(); - } - DynamicRealEstateAsset.MergeFrom(other.DynamicRealEstateAsset); - break; - case AssetDataOneofCase.DynamicCustomAsset: - if (DynamicCustomAsset == null) { - DynamicCustomAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset(); - } - DynamicCustomAsset.MergeFrom(other.DynamicCustomAsset); - break; - case AssetDataOneofCase.DynamicHotelsAndRentalsAsset: - if (DynamicHotelsAndRentalsAsset == null) { - DynamicHotelsAndRentalsAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset(); - } - DynamicHotelsAndRentalsAsset.MergeFrom(other.DynamicHotelsAndRentalsAsset); - break; - case AssetDataOneofCase.DynamicFlightsAsset: - if (DynamicFlightsAsset == null) { - DynamicFlightsAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset(); - } - DynamicFlightsAsset.MergeFrom(other.DynamicFlightsAsset); - break; - case AssetDataOneofCase.DiscoveryCarouselCardAsset: - if (DiscoveryCarouselCardAsset == null) { - DiscoveryCarouselCardAsset = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset(); - } - DiscoveryCarouselCardAsset.MergeFrom(other.DiscoveryCarouselCardAsset); - break; - case AssetDataOneofCase.DynamicTravelAsset: - if (DynamicTravelAsset == null) { - DynamicTravelAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset(); - } - DynamicTravelAsset.MergeFrom(other.DynamicTravelAsset); - break; - case AssetDataOneofCase.DynamicLocalAsset: - if (DynamicLocalAsset == null) { - DynamicLocalAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset(); - } - DynamicLocalAsset.MergeFrom(other.DynamicLocalAsset); - break; - case AssetDataOneofCase.DynamicJobsAsset: - if (DynamicJobsAsset == null) { - DynamicJobsAsset = new global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset(); - } - DynamicJobsAsset.MergeFrom(other.DynamicJobsAsset); - break; - case AssetDataOneofCase.LocationAsset: - if (LocationAsset == null) { - LocationAsset = new global::Google.Ads.GoogleAds.V12.Common.LocationAsset(); - } - LocationAsset.MergeFrom(other.LocationAsset); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType) input.ReadEnum(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset(); - if (assetDataCase_ == AssetDataOneofCase.YoutubeVideoAsset) { - subBuilder.MergeFrom(YoutubeVideoAsset); - } - input.ReadMessage(subBuilder); - YoutubeVideoAsset = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset(); - if (assetDataCase_ == AssetDataOneofCase.MediaBundleAsset) { - subBuilder.MergeFrom(MediaBundleAsset); - } - input.ReadMessage(subBuilder); - MediaBundleAsset = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.ImageAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ImageAsset(); - if (assetDataCase_ == AssetDataOneofCase.ImageAsset) { - subBuilder.MergeFrom(ImageAsset); - } - input.ReadMessage(subBuilder); - ImageAsset = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.TextAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TextAsset(); - if (assetDataCase_ == AssetDataOneofCase.TextAsset) { - subBuilder.MergeFrom(TextAsset); - } - input.ReadMessage(subBuilder); - TextAsset = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset(); - if (assetDataCase_ == AssetDataOneofCase.LeadFormAsset) { - subBuilder.MergeFrom(LeadFormAsset); - } - input.ReadMessage(subBuilder); - LeadFormAsset = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset(); - if (assetDataCase_ == AssetDataOneofCase.BookOnGoogleAsset) { - subBuilder.MergeFrom(BookOnGoogleAsset); - } - input.ReadMessage(subBuilder); - BookOnGoogleAsset = subBuilder; - break; - } - case 88: { - Id = input.ReadInt64(); - break; - } - case 98: { - Name = input.ReadString(); - break; - } - case 106: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AssetPolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - case 114: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.PromotionAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PromotionAsset(); - if (assetDataCase_ == AssetDataOneofCase.PromotionAsset) { - subBuilder.MergeFrom(PromotionAsset); - } - input.ReadMessage(subBuilder); - PromotionAsset = subBuilder; - break; - } - case 130: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - case 138: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 146: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 154: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Common.CalloutAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CalloutAsset(); - if (assetDataCase_ == AssetDataOneofCase.CalloutAsset) { - subBuilder.MergeFrom(CalloutAsset); - } - input.ReadMessage(subBuilder); - CalloutAsset = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset(); - if (assetDataCase_ == AssetDataOneofCase.StructuredSnippetAsset) { - subBuilder.MergeFrom(StructuredSnippetAsset); - } - input.ReadMessage(subBuilder); - StructuredSnippetAsset = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset(); - if (assetDataCase_ == AssetDataOneofCase.SitelinkAsset) { - subBuilder.MergeFrom(SitelinkAsset); - } - input.ReadMessage(subBuilder); - SitelinkAsset = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset(); - if (assetDataCase_ == AssetDataOneofCase.PageFeedAsset) { - subBuilder.MergeFrom(PageFeedAsset); - } - input.ReadMessage(subBuilder); - PageFeedAsset = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicEducationAsset) { - subBuilder.MergeFrom(DynamicEducationAsset); - } - input.ReadMessage(subBuilder); - DynamicEducationAsset = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset(); - if (assetDataCase_ == AssetDataOneofCase.MobileAppAsset) { - subBuilder.MergeFrom(MobileAppAsset); - } - input.ReadMessage(subBuilder); - MobileAppAsset = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset(); - if (assetDataCase_ == AssetDataOneofCase.HotelCalloutAsset) { - subBuilder.MergeFrom(HotelCalloutAsset); - } - input.ReadMessage(subBuilder); - HotelCalloutAsset = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.CallAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallAsset(); - if (assetDataCase_ == AssetDataOneofCase.CallAsset) { - subBuilder.MergeFrom(CallAsset); - } - input.ReadMessage(subBuilder); - CallAsset = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.PriceAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PriceAsset(); - if (assetDataCase_ == AssetDataOneofCase.PriceAsset) { - subBuilder.MergeFrom(PriceAsset); - } - input.ReadMessage(subBuilder); - PriceAsset = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset(); - if (assetDataCase_ == AssetDataOneofCase.CallToActionAsset) { - subBuilder.MergeFrom(CallToActionAsset); - } - input.ReadMessage(subBuilder); - CallToActionAsset = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicRealEstateAsset) { - subBuilder.MergeFrom(DynamicRealEstateAsset); - } - input.ReadMessage(subBuilder); - DynamicRealEstateAsset = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicCustomAsset) { - subBuilder.MergeFrom(DynamicCustomAsset); - } - input.ReadMessage(subBuilder); - DynamicCustomAsset = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicHotelsAndRentalsAsset) { - subBuilder.MergeFrom(DynamicHotelsAndRentalsAsset); - } - input.ReadMessage(subBuilder); - DynamicHotelsAndRentalsAsset = subBuilder; - break; - } - case 266: { - global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicFlightsAsset) { - subBuilder.MergeFrom(DynamicFlightsAsset); - } - input.ReadMessage(subBuilder); - DynamicFlightsAsset = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset(); - if (assetDataCase_ == AssetDataOneofCase.DiscoveryCarouselCardAsset) { - subBuilder.MergeFrom(DiscoveryCarouselCardAsset); - } - input.ReadMessage(subBuilder); - DiscoveryCarouselCardAsset = subBuilder; - break; - } - case 282: { - global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicTravelAsset) { - subBuilder.MergeFrom(DynamicTravelAsset); - } - input.ReadMessage(subBuilder); - DynamicTravelAsset = subBuilder; - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicLocalAsset) { - subBuilder.MergeFrom(DynamicLocalAsset); - } - input.ReadMessage(subBuilder); - DynamicLocalAsset = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicJobsAsset) { - subBuilder.MergeFrom(DynamicJobsAsset); - } - input.ReadMessage(subBuilder); - DynamicJobsAsset = subBuilder; - break; - } - case 304: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Common.LocationAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationAsset(); - if (assetDataCase_ == AssetDataOneofCase.LocationAsset) { - subBuilder.MergeFrom(LocationAsset); - } - input.ReadMessage(subBuilder); - LocationAsset = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType) input.ReadEnum(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset(); - if (assetDataCase_ == AssetDataOneofCase.YoutubeVideoAsset) { - subBuilder.MergeFrom(YoutubeVideoAsset); - } - input.ReadMessage(subBuilder); - YoutubeVideoAsset = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset(); - if (assetDataCase_ == AssetDataOneofCase.MediaBundleAsset) { - subBuilder.MergeFrom(MediaBundleAsset); - } - input.ReadMessage(subBuilder); - MediaBundleAsset = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.ImageAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ImageAsset(); - if (assetDataCase_ == AssetDataOneofCase.ImageAsset) { - subBuilder.MergeFrom(ImageAsset); - } - input.ReadMessage(subBuilder); - ImageAsset = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.TextAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TextAsset(); - if (assetDataCase_ == AssetDataOneofCase.TextAsset) { - subBuilder.MergeFrom(TextAsset); - } - input.ReadMessage(subBuilder); - TextAsset = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset(); - if (assetDataCase_ == AssetDataOneofCase.LeadFormAsset) { - subBuilder.MergeFrom(LeadFormAsset); - } - input.ReadMessage(subBuilder); - LeadFormAsset = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset(); - if (assetDataCase_ == AssetDataOneofCase.BookOnGoogleAsset) { - subBuilder.MergeFrom(BookOnGoogleAsset); - } - input.ReadMessage(subBuilder); - BookOnGoogleAsset = subBuilder; - break; - } - case 88: { - Id = input.ReadInt64(); - break; - } - case 98: { - Name = input.ReadString(); - break; - } - case 106: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Resources.AssetPolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - case 114: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.PromotionAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PromotionAsset(); - if (assetDataCase_ == AssetDataOneofCase.PromotionAsset) { - subBuilder.MergeFrom(PromotionAsset); - } - input.ReadMessage(subBuilder); - PromotionAsset = subBuilder; - break; - } - case 130: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - case 138: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 146: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 154: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Common.CalloutAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CalloutAsset(); - if (assetDataCase_ == AssetDataOneofCase.CalloutAsset) { - subBuilder.MergeFrom(CalloutAsset); - } - input.ReadMessage(subBuilder); - CalloutAsset = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset(); - if (assetDataCase_ == AssetDataOneofCase.StructuredSnippetAsset) { - subBuilder.MergeFrom(StructuredSnippetAsset); - } - input.ReadMessage(subBuilder); - StructuredSnippetAsset = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset(); - if (assetDataCase_ == AssetDataOneofCase.SitelinkAsset) { - subBuilder.MergeFrom(SitelinkAsset); - } - input.ReadMessage(subBuilder); - SitelinkAsset = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset(); - if (assetDataCase_ == AssetDataOneofCase.PageFeedAsset) { - subBuilder.MergeFrom(PageFeedAsset); - } - input.ReadMessage(subBuilder); - PageFeedAsset = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicEducationAsset) { - subBuilder.MergeFrom(DynamicEducationAsset); - } - input.ReadMessage(subBuilder); - DynamicEducationAsset = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset(); - if (assetDataCase_ == AssetDataOneofCase.MobileAppAsset) { - subBuilder.MergeFrom(MobileAppAsset); - } - input.ReadMessage(subBuilder); - MobileAppAsset = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset(); - if (assetDataCase_ == AssetDataOneofCase.HotelCalloutAsset) { - subBuilder.MergeFrom(HotelCalloutAsset); - } - input.ReadMessage(subBuilder); - HotelCalloutAsset = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.CallAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallAsset(); - if (assetDataCase_ == AssetDataOneofCase.CallAsset) { - subBuilder.MergeFrom(CallAsset); - } - input.ReadMessage(subBuilder); - CallAsset = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.PriceAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PriceAsset(); - if (assetDataCase_ == AssetDataOneofCase.PriceAsset) { - subBuilder.MergeFrom(PriceAsset); - } - input.ReadMessage(subBuilder); - PriceAsset = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset(); - if (assetDataCase_ == AssetDataOneofCase.CallToActionAsset) { - subBuilder.MergeFrom(CallToActionAsset); - } - input.ReadMessage(subBuilder); - CallToActionAsset = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicRealEstateAsset) { - subBuilder.MergeFrom(DynamicRealEstateAsset); - } - input.ReadMessage(subBuilder); - DynamicRealEstateAsset = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicCustomAsset) { - subBuilder.MergeFrom(DynamicCustomAsset); - } - input.ReadMessage(subBuilder); - DynamicCustomAsset = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicHotelsAndRentalsAsset) { - subBuilder.MergeFrom(DynamicHotelsAndRentalsAsset); - } - input.ReadMessage(subBuilder); - DynamicHotelsAndRentalsAsset = subBuilder; - break; - } - case 266: { - global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicFlightsAsset) { - subBuilder.MergeFrom(DynamicFlightsAsset); - } - input.ReadMessage(subBuilder); - DynamicFlightsAsset = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset(); - if (assetDataCase_ == AssetDataOneofCase.DiscoveryCarouselCardAsset) { - subBuilder.MergeFrom(DiscoveryCarouselCardAsset); - } - input.ReadMessage(subBuilder); - DiscoveryCarouselCardAsset = subBuilder; - break; - } - case 282: { - global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicTravelAsset) { - subBuilder.MergeFrom(DynamicTravelAsset); - } - input.ReadMessage(subBuilder); - DynamicTravelAsset = subBuilder; - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicLocalAsset) { - subBuilder.MergeFrom(DynamicLocalAsset); - } - input.ReadMessage(subBuilder); - DynamicLocalAsset = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset(); - if (assetDataCase_ == AssetDataOneofCase.DynamicJobsAsset) { - subBuilder.MergeFrom(DynamicJobsAsset); - } - input.ReadMessage(subBuilder); - DynamicJobsAsset = subBuilder; - break; - } - case 304: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Common.LocationAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationAsset(); - if (assetDataCase_ == AssetDataOneofCase.LocationAsset) { - subBuilder.MergeFrom(LocationAsset); - } - input.ReadMessage(subBuilder); - LocationAsset = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Contains policy information for an asset. - /// - public sealed partial class AssetPolicySummary : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetPolicySummary()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetPolicySummary() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetPolicySummary(AssetPolicySummary other) : this() { - policyTopicEntries_ = other.policyTopicEntries_.Clone(); - reviewStatus_ = other.reviewStatus_; - approvalStatus_ = other.approvalStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetPolicySummary Clone() { - return new AssetPolicySummary(this); - } - - /// Field number for the "policy_topic_entries" field. - public const int PolicyTopicEntriesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_policyTopicEntries_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.PolicyTopicEntry.Parser); - private readonly pbc::RepeatedField policyTopicEntries_ = new pbc::RepeatedField(); - /// - /// Output only. The list of policy findings for this asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PolicyTopicEntries { - get { return policyTopicEntries_; } - } - - /// Field number for the "review_status" field. - public const int ReviewStatusFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus reviewStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified; - /// - /// Output only. Where in the review process this asset is. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus ReviewStatus { - get { return reviewStatus_; } - set { - reviewStatus_ = value; - } - } - - /// Field number for the "approval_status" field. - public const int ApprovalStatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus approvalStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified; - /// - /// Output only. The overall approval status of this asset, calculated based on the status - /// of its individual policy topic entries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus ApprovalStatus { - get { return approvalStatus_; } - set { - approvalStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetPolicySummary); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetPolicySummary other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!policyTopicEntries_.Equals(other.policyTopicEntries_)) return false; - if (ReviewStatus != other.ReviewStatus) return false; - if (ApprovalStatus != other.ApprovalStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= policyTopicEntries_.GetHashCode(); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) hash ^= ReviewStatus.GetHashCode(); - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) hash ^= ApprovalStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - policyTopicEntries_.WriteTo(output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - policyTopicEntries_.WriteTo(ref output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += policyTopicEntries_.CalculateSize(_repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovalStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetPolicySummary other) { - if (other == null) { - return; - } - policyTopicEntries_.Add(other.policyTopicEntries_); - if (other.ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - ReviewStatus = other.ReviewStatus; - } - if (other.ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - ApprovalStatus = other.ApprovalStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(ref input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetError.g.cs deleted file mode 100755 index ad8b6feae..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetError.g.cs +++ /dev/null @@ -1,403 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_error.proto - public static partial class AssetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X2Vycm9y", - "LnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIoYLCg5B", - "c3NldEVycm9yRW51bSLzCgoKQXNzZXRFcnJvchIPCgtVTlNQRUNJRklFRBAA", - "EgsKB1VOS05PV04QARIsCihDVVNUT01FUl9OT1RfT05fQUxMT1dMSVNUX0ZP", - "Ul9BU1NFVF9UWVBFEA0SEwoPRFVQTElDQVRFX0FTU0VUEAMSGAoURFVQTElD", - "QVRFX0FTU0VUX05BTUUQBBIZChVBU1NFVF9EQVRBX0lTX01JU1NJTkcQBRIc", - "ChhDQU5OT1RfTU9ESUZZX0FTU0VUX05BTUUQBhImCiJGSUVMRF9JTkNPTVBB", - "VElCTEVfV0lUSF9BU1NFVF9UWVBFEAcSHwobSU5WQUxJRF9DQUxMX1RPX0FD", - "VElPTl9URVhUEAgSKAokTEVBRF9GT1JNX0lOVkFMSURfRklFTERTX0NPTUJJ", - "TkFUSU9OEAkSHwobTEVBRF9GT1JNX01JU1NJTkdfQUdSRUVNRU5UEAoSGAoU", - "SU5WQUxJRF9BU1NFVF9TVEFUVVMQCxIrCidGSUVMRF9DQU5OT1RfQkVfTU9E", - "SUZJRURfRk9SX0FTU0VUX1RZUEUQDBIcChhTQ0hFRFVMRVNfQ0FOTk9UX09W", - "RVJMQVAQDhI5CjVQUk9NT1RJT05fQ0FOTk9UX1NFVF9QRVJDRU5UX09GRl9B", - "TkRfTU9ORVlfQU1PVU5UX09GRhAPEj4KOlBST01PVElPTl9DQU5OT1RfU0VU", - "X1BST01PVElPTl9DT0RFX0FORF9PUkRFUlNfT1ZFUl9BTU9VTlQQEBIlCiFU", - "T09fTUFOWV9ERUNJTUFMX1BMQUNFU19TUEVDSUZJRUQQERIvCitEVVBMSUNB", - "VEVfQVNTRVRTX1dJVEhfRElGRkVSRU5UX0ZJRUxEX1ZBTFVFEBISMgouQ0FM", - "TF9DQVJSSUVSX1NQRUNJRklDX1NIT1JUX05VTUJFUl9OT1RfQUxMT1dFRBAT", - "EjUKMUNBTExfQ1VTVE9NRVJfQ09OU0VOVF9GT1JfQ0FMTF9SRUNPUkRJTkdf", - "UkVRVUlSRUQQFBIfChtDQUxMX0RJU0FMTE9XRURfTlVNQkVSX1RZUEUQFRIi", - "Ch5DQUxMX0lOVkFMSURfQ09OVkVSU0lPTl9BQ1RJT04QFhIdChlDQUxMX0lO", - "VkFMSURfQ09VTlRSWV9DT0RFEBcSLQopQ0FMTF9JTlZBTElEX0RPTUVTVElD", - "X1BIT05FX05VTUJFUl9GT1JNQVQQGBIdChlDQUxMX0lOVkFMSURfUEhPTkVf", - "TlVNQkVSEBkSLworQ0FMTF9QSE9ORV9OVU1CRVJfTk9UX1NVUFBPUlRFRF9G", - "T1JfQ09VTlRSWRAaEigKJENBTExfUFJFTUlVTV9SQVRFX05VTUJFUl9OT1Rf", - "QUxMT1dFRBAbEigKJENBTExfVkFOSVRZX1BIT05FX05VTUJFUl9OT1RfQUxM", - "T1dFRBAcEiQKIFBSSUNFX0hFQURFUl9TQU1FX0FTX0RFU0NSSVBUSU9OEB0S", - "HQoZTU9CSUxFX0FQUF9JTlZBTElEX0FQUF9JRBAeEjUKMU1PQklMRV9BUFBf", - "SU5WQUxJRF9GSU5BTF9VUkxfRk9SX0FQUF9ET1dOTE9BRF9VUkwQHxIgChxO", - "QU1FX1JFUVVJUkVEX0ZPUl9BU1NFVF9UWVBFECASNAowTEVBRF9GT1JNX0xF", - "R0FDWV9RVUFMSUZZSU5HX1FVRVNUSU9OU19ESVNBTExPV0VEECESIAocTkFN", - "RV9DT05GTElDVF9GT1JfQVNTRVRfVFlQRRAiEh4KGkNBTk5PVF9NT0RJRllf", - "QVNTRVRfU09VUkNFECMSLQopQ0FOTk9UX01PRElGWV9BVVRPTUFUSUNBTExZ", - "X0NSRUFURURfQVNTRVQQJELvAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnNCD0Fzc2V0RXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vy", - "cm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetErrorEnum.Types.AssetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset errors. - /// - public sealed partial class AssetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetErrorEnum(AssetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetErrorEnum Clone() { - return new AssetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset errors. - /// - public enum AssetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The customer is not is not on the allow-list for this asset type. - /// - [pbr::OriginalName("CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE")] CustomerNotOnAllowlistForAssetType = 13, - /// - /// Assets are duplicated across operations. - /// - [pbr::OriginalName("DUPLICATE_ASSET")] DuplicateAsset = 3, - /// - /// The asset name is duplicated, either across operations or with an - /// existing asset. - /// - [pbr::OriginalName("DUPLICATE_ASSET_NAME")] DuplicateAssetName = 4, - /// - /// The Asset.asset_data oneof is empty. - /// - [pbr::OriginalName("ASSET_DATA_IS_MISSING")] AssetDataIsMissing = 5, - /// - /// The asset has a name which is different from an existing duplicate that - /// represents the same content. - /// - [pbr::OriginalName("CANNOT_MODIFY_ASSET_NAME")] CannotModifyAssetName = 6, - /// - /// The field cannot be set for this asset type. - /// - [pbr::OriginalName("FIELD_INCOMPATIBLE_WITH_ASSET_TYPE")] FieldIncompatibleWithAssetType = 7, - /// - /// Call to action must come from the list of supported values. - /// - [pbr::OriginalName("INVALID_CALL_TO_ACTION_TEXT")] InvalidCallToActionText = 8, - /// - /// A lead form asset is created with an invalid combination of input fields. - /// - [pbr::OriginalName("LEAD_FORM_INVALID_FIELDS_COMBINATION")] LeadFormInvalidFieldsCombination = 9, - /// - /// Lead forms require that the Terms of Service have been agreed to before - /// mutates can be executed. - /// - [pbr::OriginalName("LEAD_FORM_MISSING_AGREEMENT")] LeadFormMissingAgreement = 10, - /// - /// Asset status is invalid in this operation. - /// - [pbr::OriginalName("INVALID_ASSET_STATUS")] InvalidAssetStatus = 11, - /// - /// The field cannot be modified by this asset type. - /// - [pbr::OriginalName("FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE")] FieldCannotBeModifiedForAssetType = 12, - /// - /// Ad schedules for the same asset cannot overlap. - /// - [pbr::OriginalName("SCHEDULES_CANNOT_OVERLAP")] SchedulesCannotOverlap = 14, - /// - /// Cannot set both percent off and money amount off fields of promotion - /// asset. - /// - [pbr::OriginalName("PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF")] PromotionCannotSetPercentOffAndMoneyAmountOff = 15, - /// - /// Cannot set both promotion code and orders over amount fields of promotion - /// asset. - /// - [pbr::OriginalName("PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT")] PromotionCannotSetPromotionCodeAndOrdersOverAmount = 16, - /// - /// The field has too many decimal places specified. - /// - [pbr::OriginalName("TOO_MANY_DECIMAL_PLACES_SPECIFIED")] TooManyDecimalPlacesSpecified = 17, - /// - /// Duplicate assets across operations, which have identical Asset.asset_data - /// oneof, cannot have different asset level fields for asset types which are - /// deduped. - /// - [pbr::OriginalName("DUPLICATE_ASSETS_WITH_DIFFERENT_FIELD_VALUE")] DuplicateAssetsWithDifferentFieldValue = 18, - /// - /// Carrier specific short number is not allowed. - /// - [pbr::OriginalName("CALL_CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED")] CallCarrierSpecificShortNumberNotAllowed = 19, - /// - /// Customer consent required for call recording Terms of Service. - /// - [pbr::OriginalName("CALL_CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED")] CallCustomerConsentForCallRecordingRequired = 20, - /// - /// The type of the specified phone number is not allowed. - /// - [pbr::OriginalName("CALL_DISALLOWED_NUMBER_TYPE")] CallDisallowedNumberType = 21, - /// - /// If the default call_conversion_action is not used, the customer must have - /// a ConversionAction with the same id and the ConversionAction must be call - /// conversion type. - /// - [pbr::OriginalName("CALL_INVALID_CONVERSION_ACTION")] CallInvalidConversionAction = 22, - /// - /// The country code of the phone number is invalid. - /// - [pbr::OriginalName("CALL_INVALID_COUNTRY_CODE")] CallInvalidCountryCode = 23, - /// - /// The format of the phone number is incorrect. - /// - [pbr::OriginalName("CALL_INVALID_DOMESTIC_PHONE_NUMBER_FORMAT")] CallInvalidDomesticPhoneNumberFormat = 24, - /// - /// The input phone number is not a valid phone number. - /// - [pbr::OriginalName("CALL_INVALID_PHONE_NUMBER")] CallInvalidPhoneNumber = 25, - /// - /// The phone number is not supported for country. - /// - [pbr::OriginalName("CALL_PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY")] CallPhoneNumberNotSupportedForCountry = 26, - /// - /// Premium rate phone number is not allowed. - /// - [pbr::OriginalName("CALL_PREMIUM_RATE_NUMBER_NOT_ALLOWED")] CallPremiumRateNumberNotAllowed = 27, - /// - /// Vanity phone number is not allowed. - /// - [pbr::OriginalName("CALL_VANITY_PHONE_NUMBER_NOT_ALLOWED")] CallVanityPhoneNumberNotAllowed = 28, - /// - /// PriceOffering cannot have the same value for header and description. - /// - [pbr::OriginalName("PRICE_HEADER_SAME_AS_DESCRIPTION")] PriceHeaderSameAsDescription = 29, - /// - /// AppId is invalid. - /// - [pbr::OriginalName("MOBILE_APP_INVALID_APP_ID")] MobileAppInvalidAppId = 30, - /// - /// Invalid App download URL in final URLs. - /// - [pbr::OriginalName("MOBILE_APP_INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL")] MobileAppInvalidFinalUrlForAppDownloadUrl = 31, - /// - /// Asset name is required for the asset type. - /// - [pbr::OriginalName("NAME_REQUIRED_FOR_ASSET_TYPE")] NameRequiredForAssetType = 32, - /// - /// Legacy qualifying questions cannot be in the same Lead Form as - /// custom questions. - /// - [pbr::OriginalName("LEAD_FORM_LEGACY_QUALIFYING_QUESTIONS_DISALLOWED")] LeadFormLegacyQualifyingQuestionsDisallowed = 33, - /// - /// Unique name is required for this asset type. - /// - [pbr::OriginalName("NAME_CONFLICT_FOR_ASSET_TYPE")] NameConflictForAssetType = 34, - /// - /// Cannot modify asset source. - /// - [pbr::OriginalName("CANNOT_MODIFY_ASSET_SOURCE")] CannotModifyAssetSource = 35, - /// - /// User can not modify the automatically created asset. - /// - [pbr::OriginalName("CANNOT_MODIFY_AUTOMATICALLY_CREATED_ASSET")] CannotModifyAutomaticallyCreatedAsset = 36, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetFieldType.g.cs b/Google.Ads.GoogleAds/src/V12/AssetFieldType.g.cs deleted file mode 100755 index eed36fd5a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetFieldType.g.cs +++ /dev/null @@ -1,339 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_field_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_field_type.proto - public static partial class AssetFieldTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_field_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetFieldTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfZmllbGRf", - "dHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIocE", - "ChJBc3NldEZpZWxkVHlwZUVudW0i8AMKDkFzc2V0RmllbGRUeXBlEg8KC1VO", - "U1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgwKCEhFQURMSU5FEAISDwoLREVT", - "Q1JJUFRJT04QAxIVChFNQU5EQVRPUllfQURfVEVYVBAEEhMKD01BUktFVElO", - "R19JTUFHRRAFEhAKDE1FRElBX0JVTkRMRRAGEhEKDVlPVVRVQkVfVklERU8Q", - "BxISCg5CT09LX09OX0dPT0dMRRAIEg0KCUxFQURfRk9STRAJEg0KCVBST01P", - "VElPThAKEgsKB0NBTExPVVQQCxIWChJTVFJVQ1RVUkVEX1NOSVBQRVQQDBIM", - "CghTSVRFTElOSxANEg4KCk1PQklMRV9BUFAQDhIRCg1IT1RFTF9DQUxMT1VU", - "EA8SCAoEQ0FMTBAQEgkKBVBSSUNFEBgSEQoNTE9OR19IRUFETElORRAREhEK", - "DUJVU0lORVNTX05BTUUQEhIaChZTUVVBUkVfTUFSS0VUSU5HX0lNQUdFEBMS", - "HAoYUE9SVFJBSVRfTUFSS0VUSU5HX0lNQUdFEBQSCAoETE9HTxAVEhIKDkxB", - "TkRTQ0FQRV9MT0dPEBYSCQoFVklERU8QFxIcChhDQUxMX1RPX0FDVElPTl9T", - "RUxFQ1RJT04QGRIMCghBRF9JTUFHRRAaQu0BCiJjb20uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zQhNBc3NldEZpZWxkVHlwZVByb3RvUAFaQ2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51", - "bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the possible placements of an asset. - /// - public sealed partial class AssetFieldTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetFieldTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetFieldTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetFieldTypeEnum(AssetFieldTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetFieldTypeEnum Clone() { - return new AssetFieldTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetFieldTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetFieldTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetFieldTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetFieldTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing the possible placements of an asset. - /// - public enum AssetFieldType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The asset is linked for use as a headline. - /// - [pbr::OriginalName("HEADLINE")] Headline = 2, - /// - /// The asset is linked for use as a description. - /// - [pbr::OriginalName("DESCRIPTION")] Description = 3, - /// - /// The asset is linked for use as mandatory ad text. - /// - [pbr::OriginalName("MANDATORY_AD_TEXT")] MandatoryAdText = 4, - /// - /// The asset is linked for use as a marketing image. - /// - [pbr::OriginalName("MARKETING_IMAGE")] MarketingImage = 5, - /// - /// The asset is linked for use as a media bundle. - /// - [pbr::OriginalName("MEDIA_BUNDLE")] MediaBundle = 6, - /// - /// The asset is linked for use as a YouTube video. - /// - [pbr::OriginalName("YOUTUBE_VIDEO")] YoutubeVideo = 7, - /// - /// The asset is linked to indicate that a hotels campaign is "Book on - /// Google" enabled. - /// - [pbr::OriginalName("BOOK_ON_GOOGLE")] BookOnGoogle = 8, - /// - /// The asset is linked for use as a Lead Form extension. - /// - [pbr::OriginalName("LEAD_FORM")] LeadForm = 9, - /// - /// The asset is linked for use as a Promotion extension. - /// - [pbr::OriginalName("PROMOTION")] Promotion = 10, - /// - /// The asset is linked for use as a Callout extension. - /// - [pbr::OriginalName("CALLOUT")] Callout = 11, - /// - /// The asset is linked for use as a Structured Snippet extension. - /// - [pbr::OriginalName("STRUCTURED_SNIPPET")] StructuredSnippet = 12, - /// - /// The asset is linked for use as a Sitelink extension. - /// - [pbr::OriginalName("SITELINK")] Sitelink = 13, - /// - /// The asset is linked for use as a Mobile App extension. - /// - [pbr::OriginalName("MOBILE_APP")] MobileApp = 14, - /// - /// The asset is linked for use as a Hotel Callout extension. - /// - [pbr::OriginalName("HOTEL_CALLOUT")] HotelCallout = 15, - /// - /// The asset is linked for use as a Call extension. - /// - [pbr::OriginalName("CALL")] Call = 16, - /// - /// The asset is linked for use as a Price extension. - /// - [pbr::OriginalName("PRICE")] Price = 24, - /// - /// The asset is linked for use as a long headline. - /// - [pbr::OriginalName("LONG_HEADLINE")] LongHeadline = 17, - /// - /// The asset is linked for use as a business name. - /// - [pbr::OriginalName("BUSINESS_NAME")] BusinessName = 18, - /// - /// The asset is linked for use as a square marketing image. - /// - [pbr::OriginalName("SQUARE_MARKETING_IMAGE")] SquareMarketingImage = 19, - /// - /// The asset is linked for use as a portrait marketing image. - /// - [pbr::OriginalName("PORTRAIT_MARKETING_IMAGE")] PortraitMarketingImage = 20, - /// - /// The asset is linked for use as a logo. - /// - [pbr::OriginalName("LOGO")] Logo = 21, - /// - /// The asset is linked for use as a landscape logo. - /// - [pbr::OriginalName("LANDSCAPE_LOGO")] LandscapeLogo = 22, - /// - /// The asset is linked for use as a non YouTube logo. - /// - [pbr::OriginalName("VIDEO")] Video = 23, - /// - /// The asset is linked for use to select a call-to-action. - /// - [pbr::OriginalName("CALL_TO_ACTION_SELECTION")] CallToActionSelection = 25, - /// - /// The asset is linked for use to select an ad image. - /// - [pbr::OriginalName("AD_IMAGE")] AdImage = 26, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetFieldTypeView.g.cs b/Google.Ads.GoogleAds/src/V12/AssetFieldTypeView.g.cs deleted file mode 100755 index 66dd4a608..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetFieldTypeView.g.cs +++ /dev/null @@ -1,299 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_field_type_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_field_type_view.proto - public static partial class AssetFieldTypeViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_field_type_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetFieldTypeViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2Zp", - "ZWxkX3R5cGVfdmlldy5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fz", - "c2V0X2ZpZWxkX3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZp", - "b3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iqAIKEkFzc2V0", - "RmllbGRUeXBlVmlldxJKCg1yZXNvdXJjZV9uYW1lGAEgASgJQjPgQQP6QS0K", - "K2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldEZpZWxkVHlwZVZpZXcS", - "WgoKZmllbGRfdHlwZRgDIAEoDjJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5Bc3NldEZpZWxkVHlwZUVudW0uQXNzZXRGaWVsZFR5cGVCA+BB", - "Azpq6kFnCitnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRGaWVsZFR5", - "cGVWaWV3EjhjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9hc3NldEZpZWxkVHlw", - "ZVZpZXdzL3tmaWVsZF90eXBlfUKJAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXNCF0Fzc2V0RmllbGRUeXBlVmlld1Byb3RvUAFa", - "S2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeView), global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeView.Parser, new[]{ "ResourceName", "FieldType" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An asset field type view. - /// This view reports non-overcounted metrics for each asset field type when the - /// asset is used as extension. - /// - public sealed partial class AssetFieldTypeView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetFieldTypeView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetFieldTypeView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetFieldTypeView(AssetFieldTypeView other) : this() { - resourceName_ = other.resourceName_; - fieldType_ = other.fieldType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetFieldTypeView Clone() { - return new AssetFieldTypeView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the asset field type view. - /// Asset field type view resource names have the form: - /// - /// `customers/{customer_id}/assetFieldTypeViews/{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "field_type" field. - public const int FieldTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType fieldType_ = global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified; - /// - /// Output only. The asset field type of the asset field type view. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType FieldType { - get { return fieldType_; } - set { - fieldType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetFieldTypeView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetFieldTypeView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (FieldType != other.FieldType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) hash ^= FieldType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) FieldType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) FieldType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetFieldTypeView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - FieldType = other.FieldType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetFieldTypeViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetFieldTypeViewResourceNames.g.cs deleted file mode 100755 index 72784f756..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetFieldTypeViewResourceNames.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetFieldTypeView resource. - public sealed partial class AssetFieldTypeViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/assetFieldTypeViews/{field_type}. - /// - CustomerFieldType = 1, - } - - private static gax::PathTemplate s_customerFieldType = new gax::PathTemplate("customers/{customer_id}/assetFieldTypeViews/{field_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetFieldTypeViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetFieldTypeViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetFieldTypeViews/{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetFieldTypeViewName FromCustomerFieldType(string customerId, string fieldTypeId) => - new AssetFieldTypeViewName(ResourceNameType.CustomerFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetFieldTypeViews/{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetFieldTypeViews/{field_type}. - /// - public static string Format(string customerId, string fieldTypeId) => FormatCustomerFieldType(customerId, fieldTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetFieldTypeViews/{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetFieldTypeViews/{field_type}. - /// - public static string FormatCustomerFieldType(string customerId, string fieldTypeId) => - s_customerFieldType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetFieldTypeViews/{field_type} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetFieldTypeViewName Parse(string assetFieldTypeViewName) => Parse(assetFieldTypeViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetFieldTypeViews/{field_type} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetFieldTypeViewName Parse(string assetFieldTypeViewName, bool allowUnparsed) => - TryParse(assetFieldTypeViewName, allowUnparsed, out AssetFieldTypeViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetFieldTypeViews/{field_type} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetFieldTypeViewName, out AssetFieldTypeViewName result) => - TryParse(assetFieldTypeViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetFieldTypeViews/{field_type} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetFieldTypeViewName, bool allowUnparsed, out AssetFieldTypeViewName result) - { - gax::GaxPreconditions.CheckNotNull(assetFieldTypeViewName, nameof(assetFieldTypeViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerFieldType.TryParseName(assetFieldTypeViewName, out resourceName)) - { - result = FromCustomerFieldType(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetFieldTypeViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AssetFieldTypeViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string fieldTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FieldTypeId = fieldTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/assetFieldTypeViews/{field_type} - /// - /// The Customer ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - public AssetFieldTypeViewName(string customerId, string fieldTypeId) : this(ResourceNameType.CustomerFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The FieldType ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FieldTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFieldType: return s_customerFieldType.Expand(CustomerId, FieldTypeId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetFieldTypeViewName); - - /// - public bool Equals(AssetFieldTypeViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetFieldTypeViewName a, AssetFieldTypeViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetFieldTypeViewName a, AssetFieldTypeViewName b) => !(a == b); - } - - public partial class AssetFieldTypeView - { - /// - /// -typed view over the resource name property. - /// - internal AssetFieldTypeViewName ResourceNameAsAssetFieldTypeViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AssetFieldTypeViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroup.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroup.g.cs deleted file mode 100755 index 7896d6ab2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroup.g.cs +++ /dev/null @@ -1,610 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_group.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_group.proto - public static partial class AssetGroupReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_group.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dy", - "b3VwLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "GjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWRfc3RyZW5ndGgu", - "cHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hc3NldF9n", - "cm91cF9zdGF0dXMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", - "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iigQKCkFzc2V0R3Jv", - "dXASQgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIr4EEF+kElCiNnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cBIPCgJpZBgJIAEoA0ID4EEDEjsK", - "CGNhbXBhaWduGAIgASgJQingQQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DYW1wYWlnbhIRCgRuYW1lGAMgASgJQgPgQQISEgoKZmluYWxfdXJs", - "cxgEIAMoCRIZChFmaW5hbF9tb2JpbGVfdXJscxgFIAMoCRJVCgZzdGF0dXMY", - "BiABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRH", - "cm91cFN0YXR1c0VudW0uQXNzZXRHcm91cFN0YXR1cxINCgVwYXRoMRgHIAEo", - "CRINCgVwYXRoMhgIIAEoCRJTCgthZF9zdHJlbmd0aBgKIAEoDjI5Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5BZFN0cmVuZ3RoRW51bS5BZFN0", - "cmVuZ3RoQgPgQQM6XupBWwojZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fz", - "c2V0R3JvdXASNGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fzc2V0R3JvdXBz", - "L3thc3NldF9ncm91cF9pZH1CgQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzQg9Bc3NldEdyb3VwUHJvdG9QAVpLZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJl", - "c291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AdStrengthReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetGroup), global::Google.Ads.GoogleAds.V12.Resources.AssetGroup.Parser, new[]{ "ResourceName", "Id", "Campaign", "Name", "FinalUrls", "FinalMobileUrls", "Status", "Path1", "Path2", "AdStrength" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An asset group. - /// AssetGroupAsset is used to link an asset to the asset group. - /// AssetGroupSignal is used to associate a signal to an asset group. - /// - public sealed partial class AssetGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetGroupReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroup(AssetGroup other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - campaign_ = other.campaign_; - name_ = other.name_; - finalUrls_ = other.finalUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - status_ = other.status_; - path1_ = other.path1_; - path2_ = other.path2_; - adStrength_ = other.adStrength_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroup Clone() { - return new AssetGroup(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the asset group. - /// Asset group resource names have the form: - /// - /// `customers/{customer_id}/assetGroups/{asset_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 9; - private long id_; - /// - /// Output only. The ID of the asset group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private string campaign_ = ""; - /// - /// Immutable. The campaign with which this asset group is associated. - /// The asset which is linked to the asset group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. Name of the asset group. Required. It must have a minimum length of 1 and - /// maximum length of 128. It must be unique under a campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// A list of final URLs after all cross domain redirects. In performance max, - /// by default, the urls are eligible for expansion unless opted out. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(42); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// A list of final mobile URLs after all cross domain redirects. In - /// performance max, by default, the urls are eligible for expansion - /// unless opted out. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified; - /// - /// The status of the asset group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "path1" field. - public const int Path1FieldNumber = 7; - private string path1_ = ""; - /// - /// First part of text that may appear appended to the url displayed in - /// the ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path1 { - get { return path1_; } - set { - path1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "path2" field. - public const int Path2FieldNumber = 8; - private string path2_ = ""; - /// - /// Second part of text that may appear appended to the url displayed in - /// the ad. This field can only be set when path1 is set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Path2 { - get { return path2_; } - set { - path2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_strength" field. - public const int AdStrengthFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength adStrength_ = global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified; - /// - /// Output only. Overall ad strength of this asset group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength AdStrength { - get { return adStrength_; } - set { - adStrength_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Campaign != other.Campaign) return false; - if (Name != other.Name) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - if (Status != other.Status) return false; - if (Path1 != other.Path1) return false; - if (Path2 != other.Path2) return false; - if (AdStrength != other.AdStrength) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Path1.Length != 0) hash ^= Path1.GetHashCode(); - if (Path2.Length != 0) hash ^= Path2.GetHashCode(); - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) hash ^= AdStrength.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (Path1.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Path1); - } - if (Path2.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Path2); - } - if (Id != 0L) { - output.WriteRawTag(72); - output.WriteInt64(Id); - } - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) AdStrength); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (Path1.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Path1); - } - if (Path2.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Path2); - } - if (Id != 0L) { - output.WriteRawTag(72); - output.WriteInt64(Id); - } - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) AdStrength); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Path1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path1); - } - if (Path2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Path2); - } - if (AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdStrength); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroup other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - finalUrls_.Add(other.finalUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) { - Status = other.Status; - } - if (other.Path1.Length != 0) { - Path1 = other.Path1; - } - if (other.Path2.Length != 0) { - Path2 = other.Path2; - } - if (other.AdStrength != global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { - AdStrength = other.AdStrength; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 42: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus) input.ReadEnum(); - break; - } - case 58: { - Path1 = input.ReadString(); - break; - } - case 66: { - Path2 = input.ReadString(); - break; - } - case 72: { - Id = input.ReadInt64(); - break; - } - case 80: { - AdStrength = (global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 42: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus) input.ReadEnum(); - break; - } - case 58: { - Path1 = input.ReadString(); - break; - } - case 66: { - Path2 = input.ReadString(); - break; - } - case 72: { - Id = input.ReadInt64(); - break; - } - case 80: { - AdStrength = (global::Google.Ads.GoogleAds.V12.Enums.AdStrengthEnum.Types.AdStrength) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupAsset.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupAsset.g.cs deleted file mode 100755 index b5d8ce62e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupAsset.g.cs +++ /dev/null @@ -1,521 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_group_asset.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_group_asset.proto - public static partial class AssetGroupAssetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_group_asset.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupAssetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dy", - "b3VwX2Fzc2V0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL3BvbGlj", - "eV9zdW1tYXJ5LnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvYXNzZXRfZmllbGRfdHlwZS5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2Fzc2V0X2xpbmtfc3RhdHVzLnByb3RvGjxnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfcGVyZm9ybWFuY2VfbGFi", - "ZWwucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdv", - "b2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iwAUKD0Fzc2V0R3JvdXBBc3NldBJH", - "Cg1yZXNvdXJjZV9uYW1lGAEgASgJQjDgQQX6QSoKKGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9Bc3NldEdyb3VwQXNzZXQSQAoLYXNzZXRfZ3JvdXAYAiAB", - "KAlCK+BBBfpBJQojZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3Jv", - "dXASNQoFYXNzZXQYAyABKAlCJuBBBfpBIAoeZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0Fzc2V0ElUKCmZpZWxkX3R5cGUYBCABKA4yQS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRGaWVsZFR5cGVFbnVtLkFzc2V0", - "RmllbGRUeXBlElMKBnN0YXR1cxgFIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5Bc3NldExpbmtTdGF0dXNFbnVtLkFzc2V0TGlua1N0", - "YXR1cxJvChFwZXJmb3JtYW5jZV9sYWJlbBgGIAEoDjJPLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lbnVtcy5Bc3NldFBlcmZvcm1hbmNlTGFiZWxFbnVt", - "LkFzc2V0UGVyZm9ybWFuY2VMYWJlbEID4EEDEksKDnBvbGljeV9zdW1tYXJ5", - "GAcgASgLMi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Qb2xp", - "Y3lTdW1tYXJ5QgPgQQM6gAHqQX0KKGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9Bc3NldEdyb3VwQXNzZXQSUWN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fz", - "c2V0R3JvdXBBc3NldHMve2Fzc2V0X2dyb3VwX2lkfX57YXNzZXRfaWR9fntm", - "aWVsZF90eXBlfUKGAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXNCFEFzc2V0R3JvdXBBc3NldFByb3RvUAFaS2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "UmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNv", - "dXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicySummaryReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset), global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset.Parser, new[]{ "ResourceName", "AssetGroup", "Asset", "FieldType", "Status", "PerformanceLabel", "PolicySummary" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// AssetGroupAsset is the link between an asset and an asset group. - /// Adding an AssetGroupAsset links an asset with an asset group. - /// - public sealed partial class AssetGroupAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAssetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAsset(AssetGroupAsset other) : this() { - resourceName_ = other.resourceName_; - assetGroup_ = other.assetGroup_; - asset_ = other.asset_; - fieldType_ = other.fieldType_; - status_ = other.status_; - performanceLabel_ = other.performanceLabel_; - policySummary_ = other.policySummary_ != null ? other.policySummary_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAsset Clone() { - return new AssetGroupAsset(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the asset group asset. - /// Asset group asset resource name have the form: - /// - /// `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_group" field. - public const int AssetGroupFieldNumber = 2; - private string assetGroup_ = ""; - /// - /// Immutable. The asset group which this asset group asset is linking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetGroup { - get { return assetGroup_; } - set { - assetGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 3; - private string asset_ = ""; - /// - /// Immutable. The asset which this asset group asset is linking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "field_type" field. - public const int FieldTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType fieldType_ = global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified; - /// - /// The description of the placement of the asset within the asset group. For - /// example: HEADLINE, YOUTUBE_VIDEO etc - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType FieldType { - get { return fieldType_; } - set { - fieldType_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified; - /// - /// The status of the link between an asset and asset group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "performance_label" field. - public const int PerformanceLabelFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel performanceLabel_ = global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified; - /// - /// Output only. The performance of this asset group asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel PerformanceLabel { - get { return performanceLabel_; } - set { - performanceLabel_ = value; - } - } - - /// Field number for the "policy_summary" field. - public const int PolicySummaryFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Common.PolicySummary policySummary_; - /// - /// Output only. The policy information for this asset group asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PolicySummary PolicySummary { - get { return policySummary_; } - set { - policySummary_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AssetGroup != other.AssetGroup) return false; - if (Asset != other.Asset) return false; - if (FieldType != other.FieldType) return false; - if (Status != other.Status) return false; - if (PerformanceLabel != other.PerformanceLabel) return false; - if (!object.Equals(PolicySummary, other.PolicySummary)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AssetGroup.Length != 0) hash ^= AssetGroup.GetHashCode(); - if (Asset.Length != 0) hash ^= Asset.GetHashCode(); - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) hash ^= FieldType.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) hash ^= PerformanceLabel.GetHashCode(); - if (policySummary_ != null) hash ^= PolicySummary.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (Asset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) PerformanceLabel); - } - if (policySummary_ != null) { - output.WriteRawTag(58); - output.WriteMessage(PolicySummary); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (Asset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) PerformanceLabel); - } - if (policySummary_ != null) { - output.WriteRawTag(58); - output.WriteMessage(PolicySummary); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AssetGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetGroup); - } - if (Asset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PerformanceLabel); - } - if (policySummary_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicySummary); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupAsset other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AssetGroup.Length != 0) { - AssetGroup = other.AssetGroup; - } - if (other.Asset.Length != 0) { - Asset = other.Asset; - } - if (other.FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - FieldType = other.FieldType; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - Status = other.Status; - } - if (other.PerformanceLabel != global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { - PerformanceLabel = other.PerformanceLabel; - } - if (other.policySummary_ != null) { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Common.PolicySummary(); - } - PolicySummary.MergeFrom(other.PolicySummary); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 26: { - Asset = input.ReadString(); - break; - } - case 32: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 48: { - PerformanceLabel = (global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum(); - break; - } - case 58: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Common.PolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 26: { - Asset = input.ReadString(); - break; - } - case 32: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 48: { - PerformanceLabel = (global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) input.ReadEnum(); - break; - } - case 58: { - if (policySummary_ == null) { - PolicySummary = new global::Google.Ads.GoogleAds.V12.Common.PolicySummary(); - } - input.ReadMessage(PolicySummary); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupAssetError.g.cs deleted file mode 100755 index ac84eb51c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetError.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_group_asset_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_group_asset_error.proto - public static partial class AssetGroupAssetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_group_asset_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupAssetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X2dyb3Vw", - "X2Fzc2V0X2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzIroBChhBc3NldEdyb3VwQXNzZXRFcnJvckVudW0inQEKFEFzc2V0", - "R3JvdXBBc3NldEVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThAB", - "EhYKEkRVUExJQ0FURV9SRVNPVVJDRRACEi4KKkVYUEFOREFCTEVfVEFHU19O", - "T1RfQUxMT1dFRF9JTl9ERVNDUklQVElPThADEh8KG0FEX0NVU1RPTUlaRVJf", - "Tk9UX1NVUFBPUlRFRBAEQvkBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9yc0IZQXNzZXRHcm91cEFzc2V0RXJyb3JQcm90b1ABWkVnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVy", - "cm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorEnum.Types.AssetGroupAssetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset group asset errors. - /// - public sealed partial class AssetGroupAssetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupAssetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAssetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAssetErrorEnum(AssetGroupAssetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAssetErrorEnum Clone() { - return new AssetGroupAssetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupAssetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupAssetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupAssetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetGroupAssetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset group asset errors. - /// - public enum AssetGroupAssetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Cannot add duplicated asset group asset. - /// - [pbr::OriginalName("DUPLICATE_RESOURCE")] DuplicateResource = 2, - /// - /// Expandable tags are not allowed in description assets. - /// - [pbr::OriginalName("EXPANDABLE_TAGS_NOT_ALLOWED_IN_DESCRIPTION")] ExpandableTagsNotAllowedInDescription = 3, - /// - /// Ad customizers are not supported in assetgroup's text assets. - /// - [pbr::OriginalName("AD_CUSTOMIZER_NOT_SUPPORTED")] AdCustomizerNotSupported = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupAssetResourceNames.g.cs deleted file mode 100755 index 8e41f883a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetResourceNames.g.cs +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetGroupAsset resource. - public sealed partial class AssetGroupAssetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}. - /// - CustomerAssetGroupAssetFieldType = 1, - } - - private static gax::PathTemplate s_customerAssetGroupAssetFieldType = new gax::PathTemplate("customers/{customer_id}/assetGroupAssets/{asset_group_id_asset_id_field_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetGroupAssetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetGroupAssetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetGroupAssetName FromCustomerAssetGroupAssetFieldType(string customerId, string assetGroupId, string assetId, string fieldTypeId) => - new AssetGroupAssetName(ResourceNameType.CustomerAssetGroupAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}. - /// - public static string Format(string customerId, string assetGroupId, string assetId, string fieldTypeId) => - FormatCustomerAssetGroupAssetFieldType(customerId, assetGroupId, assetId, fieldTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}. - /// - public static string FormatCustomerAssetGroupAssetFieldType(string customerId, string assetGroupId, string assetId, string fieldTypeId) => - s_customerAssetGroupAssetFieldType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetGroupAssetName Parse(string assetGroupAssetName) => Parse(assetGroupAssetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetGroupAssetName Parse(string assetGroupAssetName, bool allowUnparsed) => - TryParse(assetGroupAssetName, allowUnparsed, out AssetGroupAssetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupAssetName, out AssetGroupAssetName result) => - TryParse(assetGroupAssetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupAssetName, bool allowUnparsed, out AssetGroupAssetName result) - { - gax::GaxPreconditions.CheckNotNull(assetGroupAssetName, nameof(assetGroupAssetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetGroupAssetFieldType.TryParseName(assetGroupAssetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAssetGroupAssetFieldType(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetGroupAssetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AssetGroupAssetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetId = null, string assetGroupId = null, string customerId = null, string fieldTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetId = assetId; - AssetGroupId = assetGroupId; - CustomerId = customerId; - FieldTypeId = fieldTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - public AssetGroupAssetName(string customerId, string assetGroupId, string assetId, string fieldTypeId) : this(ResourceNameType.CustomerAssetGroupAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Asset ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetId { get; } - - /// - /// The AssetGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The FieldType ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FieldTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetGroupAssetFieldType: return s_customerAssetGroupAssetFieldType.Expand(CustomerId, $"{AssetGroupId}~{AssetId}~{FieldTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetGroupAssetName); - - /// - public bool Equals(AssetGroupAssetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetGroupAssetName a, AssetGroupAssetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetGroupAssetName a, AssetGroupAssetName b) => !(a == b); - } - - public partial class AssetGroupAsset - { - /// - /// -typed view over the resource name property. - /// - internal AssetGroupAssetName ResourceNameAsAssetGroupAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AssetGroupAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetGroupName AssetGroupAsAssetGroupName - { - get => string.IsNullOrEmpty(AssetGroup) ? null : AssetGroupName.Parse(AssetGroup, allowUnparsed: true); - set => AssetGroup = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetService.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupAssetService.g.cs deleted file mode 100755 index bd99ed1b1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetService.g.cs +++ /dev/null @@ -1,1212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_asset_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/asset_group_asset_service.proto - public static partial class AssetGroupAssetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/asset_group_asset_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupAssetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfZ3Jv", - "dXBfYXNzZXRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3Vy", - "Y2VzL2Fzc2V0X2dyb3VwX2Fzc2V0LnByb3RvGhxnb29nbGUvYXBpL2Fubm90", - "YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xl", - "L2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJj", - "ZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dv", - "b2dsZS9ycGMvc3RhdHVzLnByb3RvIr8BCh1NdXRhdGVBc3NldEdyb3VwQXNz", - "ZXRzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECElQKCm9wZXJh", - "dGlvbnMYAiADKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuQXNzZXRHcm91cEFzc2V0T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9m", - "YWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgipwIKGEFzc2V0", - "R3JvdXBBc3NldE9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdv", - "b2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSRQoGY3JlYXRlGAEgASgLMjMuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Bc3NldEdyb3VwQXNz", - "ZXRIABJFCgZ1cGRhdGUYAiABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkFzc2V0R3JvdXBBc3NldEgAEj8KBnJlbW92ZRgDIAEo", - "CUIt+kEqCihnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cEFz", - "c2V0SABCCwoJb3BlcmF0aW9uIqQBCh5NdXRhdGVBc3NldEdyb3VwQXNzZXRz", - "UmVzcG9uc2USTwoHcmVzdWx0cxgBIAMoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3VwQXNzZXRSZXN1bHQS", - "MQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAIgASgLMhIuZ29vZ2xlLnJwYy5T", - "dGF0dXMiYwobTXV0YXRlQXNzZXRHcm91cEFzc2V0UmVzdWx0EkQKDXJlc291", - "cmNlX25hbWUYASABKAlCLfpBKgooZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0Fzc2V0R3JvdXBBc3NldDLbAgoWQXNzZXRHcm91cEFzc2V0U2VydmljZRL5", - "AQoWTXV0YXRlQXNzZXRHcm91cEFzc2V0cxJALmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3VwQXNzZXRzUmVxdWVz", - "dBpBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVB", - "c3NldEdyb3VwQXNzZXRzUmVzcG9uc2UiWoLT5JMCOyI2L3YxMi9jdXN0b21l", - "cnMve2N1c3RvbWVyX2lkPSp9L2Fzc2V0R3JvdXBBc3NldHM6bXV0YXRlOgEq", - "2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9h", - "ZHdvcmRzQocCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzQhtBc3NldEdyb3VwQXNzZXRTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxT", - "ZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2Vydmlj", - "ZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAssetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation), global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AssetGroupAssetService.MutateAssetGroupAssets][google.ads.googleads.v12.services.AssetGroupAssetService.MutateAssetGroupAssets]. - /// - public sealed partial class MutateAssetGroupAssetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupAssetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetsRequest(MutateAssetGroupAssetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetsRequest Clone() { - return new MutateAssetGroupAssetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose asset group assets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual asset group assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupAssetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupAssetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupAssetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an asset group asset. - /// - public sealed partial class AssetGroupAssetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupAssetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAssetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAssetOperation(AssetGroupAssetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupAssetOperation Clone() { - return new AssetGroupAssetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new asset group - /// asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The asset group asset is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed asset group asset is - /// expected, in this format: - /// `customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupAssetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupAssetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupAssetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an asset group asset mutate. - /// - public sealed partial class MutateAssetGroupAssetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupAssetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetsResponse(MutateAssetGroupAssetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetsResponse Clone() { - return new MutateAssetGroupAssetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupAssetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupAssetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupAssetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the asset group asset mutate. - /// - public sealed partial class MutateAssetGroupAssetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupAssetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetResult(MutateAssetGroupAssetResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupAssetResult Clone() { - return new MutateAssetGroupAssetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupAssetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupAssetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupAssetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceClient.g.cs deleted file mode 100755 index 773de3426..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AssetGroupAssetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AssetGroupAssetServiceSettings GetDefault() => new AssetGroupAssetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AssetGroupAssetServiceSettings() - { - } - - private AssetGroupAssetServiceSettings(AssetGroupAssetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAssetGroupAssetsSettings = existing.MutateAssetGroupAssetsSettings; - OnCopy(existing); - } - - partial void OnCopy(AssetGroupAssetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AssetGroupAssetServiceClient.MutateAssetGroupAssets and - /// AssetGroupAssetServiceClient.MutateAssetGroupAssetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAssetGroupAssetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AssetGroupAssetServiceSettings Clone() => new AssetGroupAssetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AssetGroupAssetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AssetGroupAssetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AssetGroupAssetServiceClientBuilder() : base(AssetGroupAssetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AssetGroupAssetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AssetGroupAssetServiceClient Build() - { - AssetGroupAssetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AssetGroupAssetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AssetGroupAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AssetGroupAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AssetGroupAssetServiceClient.ChannelPool; - } - - /// AssetGroupAssetService client wrapper, for convenient use. - /// - /// Service to manage asset group asset. - /// - public abstract partial class AssetGroupAssetServiceClient - { - /// - /// The default endpoint for the AssetGroupAssetService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AssetGroupAssetService scopes. - /// - /// The default AssetGroupAssetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AssetGroupAssetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AssetGroupAssetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AssetGroupAssetServiceClient Create() => new AssetGroupAssetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AssetGroupAssetServiceClient Create(grpccore::CallInvoker callInvoker, AssetGroupAssetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AssetGroupAssetService.AssetGroupAssetServiceClient grpcClient = new AssetGroupAssetService.AssetGroupAssetServiceClient(callInvoker); - return new AssetGroupAssetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AssetGroupAssetService client - public virtual AssetGroupAssetService.AssetGroupAssetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupAssetsResponse MutateAssetGroupAssets(MutateAssetGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupAssetsAsync(MutateAssetGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupAssetsAsync(MutateAssetGroupAssetsRequest request, st::CancellationToken cancellationToken) => - MutateAssetGroupAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset group assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset group assets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupAssetsResponse MutateAssetGroupAssets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroupAssets(new MutateAssetGroupAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset group assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset group assets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupAssetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroupAssetsAsync(new MutateAssetGroupAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset group assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset group assets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupAssetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAssetGroupAssetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AssetGroupAssetService client wrapper implementation, for convenient use. - /// - /// Service to manage asset group asset. - /// - public sealed partial class AssetGroupAssetServiceClientImpl : AssetGroupAssetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAssetGroupAssets; - - /// - /// Constructs a client wrapper for the AssetGroupAssetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AssetGroupAssetServiceClientImpl(AssetGroupAssetService.AssetGroupAssetServiceClient grpcClient, AssetGroupAssetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AssetGroupAssetServiceSettings effectiveSettings = settings ?? AssetGroupAssetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAssetGroupAssets = clientHelper.BuildApiCall("MutateAssetGroupAssets", grpcClient.MutateAssetGroupAssetsAsync, grpcClient.MutateAssetGroupAssets, effectiveSettings.MutateAssetGroupAssetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAssetGroupAssets); - Modify_MutateAssetGroupAssetsApiCall(ref _callMutateAssetGroupAssets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAssetGroupAssetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AssetGroupAssetService.AssetGroupAssetServiceClient grpcClient, AssetGroupAssetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AssetGroupAssetService client - public override AssetGroupAssetService.AssetGroupAssetServiceClient GrpcClient { get; } - - partial void Modify_MutateAssetGroupAssetsRequest(ref MutateAssetGroupAssetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAssetGroupAssetsResponse MutateAssetGroupAssets(MutateAssetGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupAssetsRequest(ref request, ref callSettings); - return _callMutateAssetGroupAssets.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAssetGroupAssetsAsync(MutateAssetGroupAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupAssetsRequest(ref request, ref callSettings); - return _callMutateAssetGroupAssets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceGrpc.g.cs deleted file mode 100755 index 2006eae05..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_asset_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage asset group asset. - /// - public static partial class AssetGroupAssetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AssetGroupAssetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupAssetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupAssetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAssetGroupAssets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAssetGroupAssets", - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupAssetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupAssetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AssetGroupAssetService - [grpc::BindServiceMethod(typeof(AssetGroupAssetService), "BindService")] - public abstract partial class AssetGroupAssetServiceBase - { - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAssetGroupAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AssetGroupAssetService - public partial class AssetGroupAssetServiceClient : grpc::ClientBase - { - /// Creates a new client for AssetGroupAssetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupAssetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AssetGroupAssetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupAssetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupAssetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupAssetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsResponse MutateAssetGroupAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroupAssets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsResponse MutateAssetGroupAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAssetGroupAssets, null, options, request); - } - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroupAssetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset group assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAssetGroupAssets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AssetGroupAssetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AssetGroupAssetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AssetGroupAssetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAssetGroupAssets, serviceImpl.MutateAssetGroupAssets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetGroupAssetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAssetGroupAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAssetGroupAssets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceResourceNames.g.cs deleted file mode 100755 index 10470d11b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupAssetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AssetGroupAssetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetGroupAssetName RemoveAsAssetGroupAssetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AssetGroupAssetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAssetGroupAssetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AssetGroupAssetName ResourceNameAsAssetGroupAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetGroupAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupError.g.cs deleted file mode 100755 index 8f3f21540..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupError.g.cs +++ /dev/null @@ -1,276 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_group_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_group_error.proto - public static partial class AssetGroupErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_group_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X2dyb3Vw", - "X2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3Jz", - "Ir4DChNBc3NldEdyb3VwRXJyb3JFbnVtIqYDCg9Bc3NldEdyb3VwRXJyb3IS", - "DwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESEgoORFVQTElDQVRFX05B", - "TUUQAhIsCihDQU5OT1RfQUREX0FTU0VUX0dST1VQX0ZPUl9DQU1QQUlHTl9U", - "WVBFEAMSHQoZTk9UX0VOT1VHSF9IRUFETElORV9BU1NFVBAEEiIKHk5PVF9F", - "Tk9VR0hfTE9OR19IRUFETElORV9BU1NFVBAFEiAKHE5PVF9FTk9VR0hfREVT", - "Q1JJUFRJT05fQVNTRVQQBhIiCh5OT1RfRU5PVUdIX0JVU0lORVNTX05BTUVf", - "QVNTRVQQBxIkCiBOT1RfRU5PVUdIX01BUktFVElOR19JTUFHRV9BU1NFVBAI", - "EisKJ05PVF9FTk9VR0hfU1FVQVJFX01BUktFVElOR19JTUFHRV9BU1NFVBAJ", - "EhkKFU5PVF9FTk9VR0hfTE9HT19BU1NFVBAKEjwKOEZJTkFMX1VSTF9TSE9Q", - "UElOR19NRVJDSEFOVF9IT01FX1BBR0VfVVJMX0RPTUFJTlNfRElGRkVSEAtC", - "9AEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhRBc3Nl", - "dEdyb3VwRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOi", - "AgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpH", - "b29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorEnum.Types.AssetGroupError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset group errors. - /// - public sealed partial class AssetGroupErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupErrorEnum(AssetGroupErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupErrorEnum Clone() { - return new AssetGroupErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetGroupErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset group errors. - /// - public enum AssetGroupError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Each asset group in a single campaign must have a unique name. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 2, - /// - /// Cannot add asset group for the campaign type. - /// - [pbr::OriginalName("CANNOT_ADD_ASSET_GROUP_FOR_CAMPAIGN_TYPE")] CannotAddAssetGroupForCampaignType = 3, - /// - /// Not enough headline asset for a valid asset group. - /// - [pbr::OriginalName("NOT_ENOUGH_HEADLINE_ASSET")] NotEnoughHeadlineAsset = 4, - /// - /// Not enough long headline asset for a valid asset group. - /// - [pbr::OriginalName("NOT_ENOUGH_LONG_HEADLINE_ASSET")] NotEnoughLongHeadlineAsset = 5, - /// - /// Not enough description headline asset for a valid asset group. - /// - [pbr::OriginalName("NOT_ENOUGH_DESCRIPTION_ASSET")] NotEnoughDescriptionAsset = 6, - /// - /// Not enough business name asset for a valid asset group. - /// - [pbr::OriginalName("NOT_ENOUGH_BUSINESS_NAME_ASSET")] NotEnoughBusinessNameAsset = 7, - /// - /// Not enough marketing image asset for a valid asset group. - /// - [pbr::OriginalName("NOT_ENOUGH_MARKETING_IMAGE_ASSET")] NotEnoughMarketingImageAsset = 8, - /// - /// Not enough square marketing image asset for a valid asset group. - /// - [pbr::OriginalName("NOT_ENOUGH_SQUARE_MARKETING_IMAGE_ASSET")] NotEnoughSquareMarketingImageAsset = 9, - /// - /// Not enough logo asset for a valid asset group. - /// - [pbr::OriginalName("NOT_ENOUGH_LOGO_ASSET")] NotEnoughLogoAsset = 10, - /// - /// Final url and shopping merchant url does not have the same domain. - /// - [pbr::OriginalName("FINAL_URL_SHOPPING_MERCHANT_HOME_PAGE_URL_DOMAINS_DIFFER")] FinalUrlShoppingMerchantHomePageUrlDomainsDiffer = 11, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilter.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilter.g.cs deleted file mode 100755 index b7643e56e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilter.g.cs +++ /dev/null @@ -1,2714 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_group_listing_group_filter.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_group_listing_group_filter.proto - public static partial class AssetGroupListingGroupFilterReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_group_listing_group_filter.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupListingGroupFilterReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dy", - "b3VwX2xpc3RpbmdfZ3JvdXBfZmlsdGVyLnByb3RvEiJnb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzGlBnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXMvbGlzdGluZ19ncm91cF9maWx0ZXJfYmlkZGluZ19jYXRlZ29y", - "eV9sZXZlbC5wcm90bxpQZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2xpc3RpbmdfZ3JvdXBfZmlsdGVyX2N1c3RvbV9hdHRyaWJ1dGVfaW5kZXgu", - "cHJvdG8aSWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9saXN0aW5n", - "X2dyb3VwX2ZpbHRlcl9wcm9kdWN0X2NoYW5uZWwucHJvdG8aS2dvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9saXN0aW5nX2dyb3VwX2ZpbHRlcl9w", - "cm9kdWN0X2NvbmRpdGlvbi5wcm90bxpMZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL2xpc3RpbmdfZ3JvdXBfZmlsdGVyX3Byb2R1Y3RfdHlwZV9s", - "ZXZlbC5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2xp", - "c3RpbmdfZ3JvdXBfZmlsdGVyX3R5cGVfZW51bS5wcm90bxpCZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL2xpc3RpbmdfZ3JvdXBfZmlsdGVyX3Zl", - "cnRpY2FsLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", - "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIvgFChxBc3NldEdyb3VwTGlz", - "dGluZ0dyb3VwRmlsdGVyElQKDXJlc291cmNlX25hbWUYASABKAlCPeBBBfpB", - "Nwo1Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXBMaXN0aW5n", - "R3JvdXBGaWx0ZXISQAoLYXNzZXRfZ3JvdXAYAiABKAlCK+BBBfpBJQojZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXASDwoCaWQYAyABKANC", - "A+BBAxJkCgR0eXBlGAQgASgOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkxpc3RpbmdHcm91cEZpbHRlclR5cGVFbnVtLkxpc3RpbmdHcm91", - "cEZpbHRlclR5cGVCA+BBBRJwCgh2ZXJ0aWNhbBgFIAEoDjJZLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5MaXN0aW5nR3JvdXBGaWx0ZXJWZXJ0", - "aWNhbEVudW0uTGlzdGluZ0dyb3VwRmlsdGVyVmVydGljYWxCA+BBBRJTCgpj", - "YXNlX3ZhbHVlGAYgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24SYgobcGFyZW50", - "X2xpc3RpbmdfZ3JvdXBfZmlsdGVyGAcgASgJQj3gQQX6QTcKNWdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9Bc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVy", - "Op0B6kGZAQo1Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXBM", - "aXN0aW5nR3JvdXBGaWx0ZXISYGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fz", - "c2V0R3JvdXBMaXN0aW5nR3JvdXBGaWx0ZXJzL3thc3NldF9ncm91cF9pZH1+", - "e2xpc3RpbmdfZ3JvdXBfZmlsdGVyX2lkfSLHDQobTGlzdGluZ0dyb3VwRmls", - "dGVyRGltZW5zaW9uEnoKGHByb2R1Y3RfYmlkZGluZ19jYXRlZ29yeRgBIAEo", - "CzJWLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuTGlzdGlu", - "Z0dyb3VwRmlsdGVyRGltZW5zaW9uLlByb2R1Y3RCaWRkaW5nQ2F0ZWdvcnlI", - "ABJlCg1wcm9kdWN0X2JyYW5kGAIgASgLMkwuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24u", - "UHJvZHVjdEJyYW5kSAASaQoPcHJvZHVjdF9jaGFubmVsGAMgASgLMk4uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5MaXN0aW5nR3JvdXBG", - "aWx0ZXJEaW1lbnNpb24uUHJvZHVjdENoYW5uZWxIABJtChFwcm9kdWN0X2Nv", - "bmRpdGlvbhgEIAEoCzJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMuTGlzdGluZ0dyb3VwRmlsdGVyRGltZW5zaW9uLlByb2R1Y3RDb25k", - "aXRpb25IABJ6Chhwcm9kdWN0X2N1c3RvbV9hdHRyaWJ1dGUYBSABKAsyVi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkxpc3RpbmdHcm91", - "cEZpbHRlckRpbWVuc2lvbi5Qcm9kdWN0Q3VzdG9tQXR0cmlidXRlSAASaAoP", - "cHJvZHVjdF9pdGVtX2lkGAYgASgLMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnJlc291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24uUHJv", - "ZHVjdEl0ZW1JZEgAEmMKDHByb2R1Y3RfdHlwZRgHIAEoCzJLLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuTGlzdGluZ0dyb3VwRmlsdGVy", - "RGltZW5zaW9uLlByb2R1Y3RUeXBlSAAaswEKFlByb2R1Y3RCaWRkaW5nQ2F0", - "ZWdvcnkSDwoCaWQYASABKANIAIgBARKAAQoFbGV2ZWwYAiABKA4ycS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuTGlzdGluZ0dyb3VwRmlsdGVy", - "QmlkZGluZ0NhdGVnb3J5TGV2ZWxFbnVtLkxpc3RpbmdHcm91cEZpbHRlckJp", - "ZGRpbmdDYXRlZ29yeUxldmVsQgUKA19pZBosCgxQcm9kdWN0QnJhbmQSEgoF", - "dmFsdWUYASABKAlIAIgBAUIICgZfdmFsdWUaiAEKDlByb2R1Y3RDaGFubmVs", - "EnYKB2NoYW5uZWwYASABKA4yZS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuTGlzdGluZ0dyb3VwRmlsdGVyUHJvZHVjdENoYW5uZWxFbnVtLkxp", - "c3RpbmdHcm91cEZpbHRlclByb2R1Y3RDaGFubmVsGpABChBQcm9kdWN0Q29u", - "ZGl0aW9uEnwKCWNvbmRpdGlvbhgBIAEoDjJpLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5MaXN0aW5nR3JvdXBGaWx0ZXJQcm9kdWN0Q29uZGl0", - "aW9uRW51bS5MaXN0aW5nR3JvdXBGaWx0ZXJQcm9kdWN0Q29uZGl0aW9uGrkB", - "ChZQcm9kdWN0Q3VzdG9tQXR0cmlidXRlEhIKBXZhbHVlGAEgASgJSACIAQES", - "gAEKBWluZGV4GAIgASgOMnEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLkxpc3RpbmdHcm91cEZpbHRlckN1c3RvbUF0dHJpYnV0ZUluZGV4RW51", - "bS5MaXN0aW5nR3JvdXBGaWx0ZXJDdXN0b21BdHRyaWJ1dGVJbmRleEIICgZf", - "dmFsdWUaLQoNUHJvZHVjdEl0ZW1JZBISCgV2YWx1ZRgBIAEoCUgAiAEBQggK", - "Bl92YWx1ZRqlAQoLUHJvZHVjdFR5cGUSEgoFdmFsdWUYASABKAlIAIgBARJ4", - "CgVsZXZlbBgCIAEoDjJpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5MaXN0aW5nR3JvdXBGaWx0ZXJQcm9kdWN0VHlwZUxldmVsRW51bS5MaXN0", - "aW5nR3JvdXBGaWx0ZXJQcm9kdWN0VHlwZUxldmVsQggKBl92YWx1ZUILCglk", - "aW1lbnNpb25CkwIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzQiFBc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyUHJvdG9QAVpL", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnumReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter), global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter.Parser, new[]{ "ResourceName", "AssetGroup", "Id", "Type", "Vertical", "CaseValue", "ParentListingGroupFilter" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Parser, new[]{ "ProductBiddingCategory", "ProductBrand", "ProductChannel", "ProductCondition", "ProductCustomAttribute", "ProductItemId", "ProductType" }, new[]{ "Dimension" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory.Parser, new[]{ "Id", "Level" }, new[]{ "Id" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel.Parser, new[]{ "Channel" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition.Parser, new[]{ "Condition" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute.Parser, new[]{ "Value", "Index" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType), global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType.Parser, new[]{ "Value", "Level" }, new[]{ "Value" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// AssetGroupListingGroupFilter represents a listing group filter tree node in - /// an asset group. - /// - public sealed partial class AssetGroupListingGroupFilter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupListingGroupFilter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilterReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilter(AssetGroupListingGroupFilter other) : this() { - resourceName_ = other.resourceName_; - assetGroup_ = other.assetGroup_; - id_ = other.id_; - type_ = other.type_; - vertical_ = other.vertical_; - caseValue_ = other.caseValue_ != null ? other.caseValue_.Clone() : null; - parentListingGroupFilter_ = other.parentListingGroupFilter_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilter Clone() { - return new AssetGroupListingGroupFilter(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the asset group listing group filter. - /// Asset group listing group filter resource name have the form: - /// - /// `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_group" field. - public const int AssetGroupFieldNumber = 2; - private string assetGroup_ = ""; - /// - /// Immutable. The asset group which this asset group listing group filter is part of. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetGroup { - get { return assetGroup_; } - set { - assetGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 3; - private long id_; - /// - /// Output only. The ID of the ListingGroupFilter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType type_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType.Unspecified; - /// - /// Immutable. Type of a listing group filter node. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "vertical" field. - public const int VerticalFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical vertical_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical.Unspecified; - /// - /// Immutable. The vertical the current node tree represents. All nodes in the same tree - /// must belong to the same vertical. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical Vertical { - get { return vertical_; } - set { - vertical_ = value; - } - } - - /// Field number for the "case_value" field. - public const int CaseValueFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension caseValue_; - /// - /// Dimension value with which this listing group is refining its parent. - /// Undefined for the root group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension CaseValue { - get { return caseValue_; } - set { - caseValue_ = value; - } - } - - /// Field number for the "parent_listing_group_filter" field. - public const int ParentListingGroupFilterFieldNumber = 7; - private string parentListingGroupFilter_ = ""; - /// - /// Immutable. Resource name of the parent listing group subdivision. Null for the root - /// listing group filter node. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParentListingGroupFilter { - get { return parentListingGroupFilter_; } - set { - parentListingGroupFilter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupListingGroupFilter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupListingGroupFilter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AssetGroup != other.AssetGroup) return false; - if (Id != other.Id) return false; - if (Type != other.Type) return false; - if (Vertical != other.Vertical) return false; - if (!object.Equals(CaseValue, other.CaseValue)) return false; - if (ParentListingGroupFilter != other.ParentListingGroupFilter) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AssetGroup.Length != 0) hash ^= AssetGroup.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType.Unspecified) hash ^= Type.GetHashCode(); - if (Vertical != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical.Unspecified) hash ^= Vertical.GetHashCode(); - if (caseValue_ != null) hash ^= CaseValue.GetHashCode(); - if (ParentListingGroupFilter.Length != 0) hash ^= ParentListingGroupFilter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (Id != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Id); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (Vertical != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Vertical); - } - if (caseValue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(CaseValue); - } - if (ParentListingGroupFilter.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ParentListingGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (Id != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Id); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (Vertical != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Vertical); - } - if (caseValue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(CaseValue); - } - if (ParentListingGroupFilter.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ParentListingGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AssetGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetGroup); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Vertical != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Vertical); - } - if (caseValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaseValue); - } - if (ParentListingGroupFilter.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentListingGroupFilter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupListingGroupFilter other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AssetGroup.Length != 0) { - AssetGroup = other.AssetGroup; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType.Unspecified) { - Type = other.Type; - } - if (other.Vertical != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical.Unspecified) { - Vertical = other.Vertical; - } - if (other.caseValue_ != null) { - if (caseValue_ == null) { - CaseValue = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension(); - } - CaseValue.MergeFrom(other.CaseValue); - } - if (other.ParentListingGroupFilter.Length != 0) { - ParentListingGroupFilter = other.ParentListingGroupFilter; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 24: { - Id = input.ReadInt64(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType) input.ReadEnum(); - break; - } - case 40: { - Vertical = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical) input.ReadEnum(); - break; - } - case 50: { - if (caseValue_ == null) { - CaseValue = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension(); - } - input.ReadMessage(CaseValue); - break; - } - case 58: { - ParentListingGroupFilter = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 24: { - Id = input.ReadInt64(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterTypeEnum.Types.ListingGroupFilterType) input.ReadEnum(); - break; - } - case 40: { - Vertical = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical) input.ReadEnum(); - break; - } - case 50: { - if (caseValue_ == null) { - CaseValue = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension(); - } - input.ReadMessage(CaseValue); - break; - } - case 58: { - ParentListingGroupFilter = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Listing dimensions for the asset group listing group filter. - /// - public sealed partial class ListingGroupFilterDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListingGroupFilterDimension()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilterReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingGroupFilterDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingGroupFilterDimension(ListingGroupFilterDimension other) : this() { - switch (other.DimensionCase) { - case DimensionOneofCase.ProductBiddingCategory: - ProductBiddingCategory = other.ProductBiddingCategory.Clone(); - break; - case DimensionOneofCase.ProductBrand: - ProductBrand = other.ProductBrand.Clone(); - break; - case DimensionOneofCase.ProductChannel: - ProductChannel = other.ProductChannel.Clone(); - break; - case DimensionOneofCase.ProductCondition: - ProductCondition = other.ProductCondition.Clone(); - break; - case DimensionOneofCase.ProductCustomAttribute: - ProductCustomAttribute = other.ProductCustomAttribute.Clone(); - break; - case DimensionOneofCase.ProductItemId: - ProductItemId = other.ProductItemId.Clone(); - break; - case DimensionOneofCase.ProductType: - ProductType = other.ProductType.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingGroupFilterDimension Clone() { - return new ListingGroupFilterDimension(this); - } - - /// Field number for the "product_bidding_category" field. - public const int ProductBiddingCategoryFieldNumber = 1; - /// - /// Bidding category of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory ProductBiddingCategory { - get { return dimensionCase_ == DimensionOneofCase.ProductBiddingCategory ? (global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductBiddingCategory; - } - } - - /// Field number for the "product_brand" field. - public const int ProductBrandFieldNumber = 2; - /// - /// Brand of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand ProductBrand { - get { return dimensionCase_ == DimensionOneofCase.ProductBrand ? (global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductBrand; - } - } - - /// Field number for the "product_channel" field. - public const int ProductChannelFieldNumber = 3; - /// - /// Locality of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel ProductChannel { - get { return dimensionCase_ == DimensionOneofCase.ProductChannel ? (global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductChannel; - } - } - - /// Field number for the "product_condition" field. - public const int ProductConditionFieldNumber = 4; - /// - /// Condition of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition ProductCondition { - get { return dimensionCase_ == DimensionOneofCase.ProductCondition ? (global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductCondition; - } - } - - /// Field number for the "product_custom_attribute" field. - public const int ProductCustomAttributeFieldNumber = 5; - /// - /// Custom attribute of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute ProductCustomAttribute { - get { return dimensionCase_ == DimensionOneofCase.ProductCustomAttribute ? (global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductCustomAttribute; - } - } - - /// Field number for the "product_item_id" field. - public const int ProductItemIdFieldNumber = 6; - /// - /// Item id of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId ProductItemId { - get { return dimensionCase_ == DimensionOneofCase.ProductItemId ? (global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductItemId; - } - } - - /// Field number for the "product_type" field. - public const int ProductTypeFieldNumber = 7; - /// - /// Type of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType ProductType { - get { return dimensionCase_ == DimensionOneofCase.ProductType ? (global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductType; - } - } - - private object dimension_; - /// Enum of possible cases for the "dimension" oneof. - public enum DimensionOneofCase { - None = 0, - ProductBiddingCategory = 1, - ProductBrand = 2, - ProductChannel = 3, - ProductCondition = 4, - ProductCustomAttribute = 5, - ProductItemId = 6, - ProductType = 7, - } - private DimensionOneofCase dimensionCase_ = DimensionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DimensionOneofCase DimensionCase { - get { return dimensionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDimension() { - dimensionCase_ = DimensionOneofCase.None; - dimension_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListingGroupFilterDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListingGroupFilterDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ProductBiddingCategory, other.ProductBiddingCategory)) return false; - if (!object.Equals(ProductBrand, other.ProductBrand)) return false; - if (!object.Equals(ProductChannel, other.ProductChannel)) return false; - if (!object.Equals(ProductCondition, other.ProductCondition)) return false; - if (!object.Equals(ProductCustomAttribute, other.ProductCustomAttribute)) return false; - if (!object.Equals(ProductItemId, other.ProductItemId)) return false; - if (!object.Equals(ProductType, other.ProductType)) return false; - if (DimensionCase != other.DimensionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) hash ^= ProductBiddingCategory.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductBrand) hash ^= ProductBrand.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductChannel) hash ^= ProductChannel.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductCondition) hash ^= ProductCondition.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) hash ^= ProductCustomAttribute.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductItemId) hash ^= ProductItemId.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductType) hash ^= ProductType.GetHashCode(); - hash ^= (int) dimensionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - output.WriteRawTag(10); - output.WriteMessage(ProductBiddingCategory); - } - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - output.WriteRawTag(18); - output.WriteMessage(ProductBrand); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - output.WriteRawTag(26); - output.WriteMessage(ProductChannel); - } - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - output.WriteRawTag(34); - output.WriteMessage(ProductCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - output.WriteRawTag(42); - output.WriteMessage(ProductCustomAttribute); - } - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - output.WriteRawTag(50); - output.WriteMessage(ProductItemId); - } - if (dimensionCase_ == DimensionOneofCase.ProductType) { - output.WriteRawTag(58); - output.WriteMessage(ProductType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - output.WriteRawTag(10); - output.WriteMessage(ProductBiddingCategory); - } - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - output.WriteRawTag(18); - output.WriteMessage(ProductBrand); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - output.WriteRawTag(26); - output.WriteMessage(ProductChannel); - } - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - output.WriteRawTag(34); - output.WriteMessage(ProductCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - output.WriteRawTag(42); - output.WriteMessage(ProductCustomAttribute); - } - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - output.WriteRawTag(50); - output.WriteMessage(ProductItemId); - } - if (dimensionCase_ == DimensionOneofCase.ProductType) { - output.WriteRawTag(58); - output.WriteMessage(ProductType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductBiddingCategory); - } - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductBrand); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductChannel); - } - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductCustomAttribute); - } - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductItemId); - } - if (dimensionCase_ == DimensionOneofCase.ProductType) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListingGroupFilterDimension other) { - if (other == null) { - return; - } - switch (other.DimensionCase) { - case DimensionOneofCase.ProductBiddingCategory: - if (ProductBiddingCategory == null) { - ProductBiddingCategory = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory(); - } - ProductBiddingCategory.MergeFrom(other.ProductBiddingCategory); - break; - case DimensionOneofCase.ProductBrand: - if (ProductBrand == null) { - ProductBrand = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand(); - } - ProductBrand.MergeFrom(other.ProductBrand); - break; - case DimensionOneofCase.ProductChannel: - if (ProductChannel == null) { - ProductChannel = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel(); - } - ProductChannel.MergeFrom(other.ProductChannel); - break; - case DimensionOneofCase.ProductCondition: - if (ProductCondition == null) { - ProductCondition = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition(); - } - ProductCondition.MergeFrom(other.ProductCondition); - break; - case DimensionOneofCase.ProductCustomAttribute: - if (ProductCustomAttribute == null) { - ProductCustomAttribute = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute(); - } - ProductCustomAttribute.MergeFrom(other.ProductCustomAttribute); - break; - case DimensionOneofCase.ProductItemId: - if (ProductItemId == null) { - ProductItemId = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId(); - } - ProductItemId.MergeFrom(other.ProductItemId); - break; - case DimensionOneofCase.ProductType: - if (ProductType == null) { - ProductType = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType(); - } - ProductType.MergeFrom(other.ProductType); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory(); - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - subBuilder.MergeFrom(ProductBiddingCategory); - } - input.ReadMessage(subBuilder); - ProductBiddingCategory = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand(); - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - subBuilder.MergeFrom(ProductBrand); - } - input.ReadMessage(subBuilder); - ProductBrand = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel(); - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - subBuilder.MergeFrom(ProductChannel); - } - input.ReadMessage(subBuilder); - ProductChannel = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition(); - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - subBuilder.MergeFrom(ProductCondition); - } - input.ReadMessage(subBuilder); - ProductCondition = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute(); - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - subBuilder.MergeFrom(ProductCustomAttribute); - } - input.ReadMessage(subBuilder); - ProductCustomAttribute = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId(); - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - subBuilder.MergeFrom(ProductItemId); - } - input.ReadMessage(subBuilder); - ProductItemId = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType(); - if (dimensionCase_ == DimensionOneofCase.ProductType) { - subBuilder.MergeFrom(ProductType); - } - input.ReadMessage(subBuilder); - ProductType = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory(); - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - subBuilder.MergeFrom(ProductBiddingCategory); - } - input.ReadMessage(subBuilder); - ProductBiddingCategory = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductBrand(); - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - subBuilder.MergeFrom(ProductBrand); - } - input.ReadMessage(subBuilder); - ProductBrand = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductChannel(); - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - subBuilder.MergeFrom(ProductChannel); - } - input.ReadMessage(subBuilder); - ProductChannel = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCondition(); - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - subBuilder.MergeFrom(ProductCondition); - } - input.ReadMessage(subBuilder); - ProductCondition = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductCustomAttribute(); - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - subBuilder.MergeFrom(ProductCustomAttribute); - } - input.ReadMessage(subBuilder); - ProductCustomAttribute = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductItemId(); - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - subBuilder.MergeFrom(ProductItemId); - } - input.ReadMessage(subBuilder); - ProductItemId = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Types.ProductType(); - if (dimensionCase_ == DimensionOneofCase.ProductType) { - subBuilder.MergeFrom(ProductType); - } - input.ReadMessage(subBuilder); - ProductType = subBuilder; - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ListingGroupFilterDimension message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// One element of a bidding category at a certain level. Top-level categories - /// are at level 1, their children at level 2, and so on. We currently support - /// up to 5 levels. The user must specify a dimension type that indicates the - /// level of the category. All cases of the same subdivision must have the same - /// dimension type (category level). - /// - public sealed partial class ProductBiddingCategory : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductBiddingCategory()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBiddingCategory() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBiddingCategory(ProductBiddingCategory other) : this() { - _hasBits0 = other._hasBits0; - id_ = other.id_; - level_ = other.level_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBiddingCategory Clone() { - return new ProductBiddingCategory(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private long id_; - /// - /// ID of the product bidding category. - /// - /// This ID is equivalent to the google_product_category ID as described in - /// this article: https://support.google.com/merchants/answer/6324436 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel level_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel.Unspecified; - /// - /// Indicates the level of the category in the taxonomy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel Level { - get { return level_; } - set { - level_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductBiddingCategory); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductBiddingCategory other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Level != other.Level) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasId) hash ^= Id.GetHashCode(); - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel.Unspecified) hash ^= Level.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasId) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Level); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasId) { - output.WriteRawTag(8); - output.WriteInt64(Id); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Level); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductBiddingCategory other) { - if (other == null) { - return; - } - if (other.HasId) { - Id = other.Id; - } - if (other.Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel.Unspecified) { - Level = other.Level; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Id = input.ReadInt64(); - break; - } - case 16: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Id = input.ReadInt64(); - break; - } - case 16: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterBiddingCategoryLevelEnum.Types.ListingGroupFilterBiddingCategoryLevel) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Brand of the product. - /// - public sealed partial class ProductBrand : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductBrand()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBrand() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBrand(ProductBrand other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBrand Clone() { - return new ProductBrand(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// String value of the product brand. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductBrand); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductBrand other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductBrand other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Locality of a product offer. - /// - public sealed partial class ProductChannel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductChannel()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannel() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannel(ProductChannel other) : this() { - channel_ = other.channel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannel Clone() { - return new ProductChannel(this); - } - - /// Field number for the "channel" field. - public const int ChannelFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel channel_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel.Unspecified; - /// - /// Value of the locality. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel Channel { - get { return channel_; } - set { - channel_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductChannel); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductChannel other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Channel != other.Channel) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel.Unspecified) hash ^= Channel.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Channel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Channel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Channel); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductChannel other) { - if (other == null) { - return; - } - if (other.Channel != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel.Unspecified) { - Channel = other.Channel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Channel = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Channel = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductChannelEnum.Types.ListingGroupFilterProductChannel) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Condition of a product offer. - /// - public sealed partial class ProductCondition : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductCondition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCondition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCondition(ProductCondition other) : this() { - condition_ = other.condition_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCondition Clone() { - return new ProductCondition(this); - } - - /// Field number for the "condition" field. - public const int ConditionFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition condition_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition.Unspecified; - /// - /// Value of the condition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition Condition { - get { return condition_; } - set { - condition_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductCondition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductCondition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Condition != other.Condition) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition.Unspecified) hash ^= Condition.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Condition); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Condition); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Condition); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductCondition other) { - if (other == null) { - return; - } - if (other.Condition != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition.Unspecified) { - Condition = other.Condition; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Condition = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Condition = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductConditionEnum.Types.ListingGroupFilterProductCondition) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Custom attribute of a product offer. - /// - public sealed partial class ProductCustomAttribute : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductCustomAttribute()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCustomAttribute() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCustomAttribute(ProductCustomAttribute other) : this() { - value_ = other.value_; - index_ = other.index_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCustomAttribute Clone() { - return new ProductCustomAttribute(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// String value of the product custom attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - /// Field number for the "index" field. - public const int IndexFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex index_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex.Unspecified; - /// - /// Indicates the index of the custom attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex Index { - get { return index_; } - set { - index_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductCustomAttribute); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductCustomAttribute other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - if (Index != other.Index) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex.Unspecified) hash ^= Index.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Index); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Index); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Index); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductCustomAttribute other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - if (other.Index != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex.Unspecified) { - Index = other.Index; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - case 16: { - Index = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - case 16: { - Index = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterCustomAttributeIndexEnum.Types.ListingGroupFilterCustomAttributeIndex) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Item id of a product offer. - /// - public sealed partial class ProductItemId : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductItemId()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Descriptor.NestedTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductItemId() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductItemId(ProductItemId other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductItemId Clone() { - return new ProductItemId(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// Value of the id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductItemId); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductItemId other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductItemId other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Type of a product offer. - /// - public sealed partial class ProductType : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductType()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ListingGroupFilterDimension.Descriptor.NestedTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductType() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductType(ProductType other) : this() { - value_ = other.value_; - level_ = other.level_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductType Clone() { - return new ProductType(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// Value of the type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel level_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel.Unspecified; - /// - /// Level of the type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel Level { - get { return level_; } - set { - level_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductType); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductType other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - if (Level != other.Level) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel.Unspecified) hash ^= Level.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Level); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Level); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductType other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - if (other.Level != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel.Unspecified) { - Level = other.Level; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - case 16: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - case 16: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupFilterProductTypeLevelEnum.Types.ListingGroupFilterProductTypeLevel) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterError.g.cs deleted file mode 100755 index c7cd7cc8e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterError.g.cs +++ /dev/null @@ -1,294 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_group_listing_group_filter_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_group_listing_group_filter_error.proto - public static partial class AssetGroupListingGroupFilterErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_group_listing_group_filter_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupListingGroupFilterErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X2dyb3Vw", - "X2xpc3RpbmdfZ3JvdXBfZmlsdGVyX2Vycm9yLnByb3RvEh9nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzIskECiVBc3NldEdyb3VwTGlzdGluZ0dy", - "b3VwRmlsdGVyRXJyb3JFbnVtIp8ECiFBc3NldEdyb3VwTGlzdGluZ0dyb3Vw", - "RmlsdGVyRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESEQoN", - "VFJFRV9UT09fREVFUBACEh0KGVVOSVRfQ0FOTk9UX0hBVkVfQ0hJTERSRU4Q", - "AxIvCitTVUJESVZJU0lPTl9NVVNUX0hBVkVfRVZFUllUSElOR19FTFNFX0NI", - "SUxEEAQSLQopRElGRkVSRU5UX0RJTUVOU0lPTl9UWVBFX0JFVFdFRU5fU0lC", - "TElOR1MQBRIpCiVTQU1FX0RJTUVOU0lPTl9WQUxVRV9CRVRXRUVOX1NJQkxJ", - "TkdTEAYSKQolU0FNRV9ESU1FTlNJT05fVFlQRV9CRVRXRUVOX0FOQ0VTVE9S", - "UxAHEhIKDk1VTFRJUExFX1JPT1RTEAgSGwoXSU5WQUxJRF9ESU1FTlNJT05f", - "VkFMVUUQCRIoCiRNVVNUX1JFRklORV9ISUVSQVJDSElDQUxfUEFSRU5UX1RZ", - "UEUQChIkCiBJTlZBTElEX1BST0RVQ1RfQklERElOR19DQVRFR09SWRALEiUK", - "IUNIQU5HSU5HX0NBU0VfVkFMVUVfV0lUSF9DSElMRFJFThAMEhwKGFNVQkRJ", - "VklTSU9OX0hBU19DSElMRFJFThANEi4KKkNBTk5PVF9SRUZJTkVfSElFUkFS", - "Q0hJQ0FMX0VWRVJZVEhJTkdfRUxTRRAOQoYCCiNjb20uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVycm9yc0ImQXNzZXRHcm91cExpc3RpbmdHcm91cEZp", - "bHRlckVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogID", - "R0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorEnum.Types.AssetGroupListingGroupFilterError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset group listing group filter - /// errors. - /// - public sealed partial class AssetGroupListingGroupFilterErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupListingGroupFilterErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilterErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilterErrorEnum(AssetGroupListingGroupFilterErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilterErrorEnum Clone() { - return new AssetGroupListingGroupFilterErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupListingGroupFilterErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupListingGroupFilterErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupListingGroupFilterErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetGroupListingGroupFilterErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset group listing group filter errors. - /// - public enum AssetGroupListingGroupFilterError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Listing group tree is too deep. - /// - [pbr::OriginalName("TREE_TOO_DEEP")] TreeTooDeep = 2, - /// - /// Listing Group UNIT node cannot have children. - /// - [pbr::OriginalName("UNIT_CANNOT_HAVE_CHILDREN")] UnitCannotHaveChildren = 3, - /// - /// Listing Group SUBDIVISION node must have everything else child. - /// - [pbr::OriginalName("SUBDIVISION_MUST_HAVE_EVERYTHING_ELSE_CHILD")] SubdivisionMustHaveEverythingElseChild = 4, - /// - /// Dimension type of Listing Group must be the same as that of its siblings. - /// - [pbr::OriginalName("DIFFERENT_DIMENSION_TYPE_BETWEEN_SIBLINGS")] DifferentDimensionTypeBetweenSiblings = 5, - /// - /// The sibling Listing Groups target exactly the same dimension value. - /// - [pbr::OriginalName("SAME_DIMENSION_VALUE_BETWEEN_SIBLINGS")] SameDimensionValueBetweenSiblings = 6, - /// - /// The dimension type is the same as one of the ancestor Listing Groups. - /// - [pbr::OriginalName("SAME_DIMENSION_TYPE_BETWEEN_ANCESTORS")] SameDimensionTypeBetweenAncestors = 7, - /// - /// Each Listing Group tree must have a single root. - /// - [pbr::OriginalName("MULTIPLE_ROOTS")] MultipleRoots = 8, - /// - /// Invalid Listing Group dimension value. - /// - [pbr::OriginalName("INVALID_DIMENSION_VALUE")] InvalidDimensionValue = 9, - /// - /// Hierarchical dimension must refine a dimension of the same type. - /// - [pbr::OriginalName("MUST_REFINE_HIERARCHICAL_PARENT_TYPE")] MustRefineHierarchicalParentType = 10, - /// - /// Invalid Product Bidding Category. - /// - [pbr::OriginalName("INVALID_PRODUCT_BIDDING_CATEGORY")] InvalidProductBiddingCategory = 11, - /// - /// Modifying case value is allowed only while updating the entire subtree at - /// the same time. - /// - [pbr::OriginalName("CHANGING_CASE_VALUE_WITH_CHILDREN")] ChangingCaseValueWithChildren = 12, - /// - /// Subdivision node has children which must be removed first. - /// - [pbr::OriginalName("SUBDIVISION_HAS_CHILDREN")] SubdivisionHasChildren = 13, - /// - /// Dimension can't subdivide everything-else node in its own hierarchy. - /// - [pbr::OriginalName("CANNOT_REFINE_HIERARCHICAL_EVERYTHING_ELSE")] CannotRefineHierarchicalEverythingElse = 14, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterResourceNames.g.cs deleted file mode 100755 index 38f1387a0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterResourceNames.g.cs +++ /dev/null @@ -1,355 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetGroupListingGroupFilter resource. - public sealed partial class AssetGroupListingGroupFilterName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}. - /// - CustomerAssetGroupListingGroupFilter = 1, - } - - private static gax::PathTemplate s_customerAssetGroupListingGroupFilter = new gax::PathTemplate("customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id_listing_group_filter_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetGroupListingGroupFilterName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetGroupListingGroupFilterName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static AssetGroupListingGroupFilterName FromCustomerAssetGroupListingGroupFilter(string customerId, string assetGroupId, string listingGroupFilterId) => - new AssetGroupListingGroupFilterName(ResourceNameType.CustomerAssetGroupListingGroupFilter, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), listingGroupFilterId: gax::GaxPreconditions.CheckNotNullOrEmpty(listingGroupFilterId, nameof(listingGroupFilterId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}. - /// - public static string Format(string customerId, string assetGroupId, string listingGroupFilterId) => - FormatCustomerAssetGroupListingGroupFilter(customerId, assetGroupId, listingGroupFilterId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}. - /// - public static string FormatCustomerAssetGroupListingGroupFilter(string customerId, string assetGroupId, string listingGroupFilterId) => - s_customerAssetGroupListingGroupFilter.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(listingGroupFilterId, nameof(listingGroupFilterId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static AssetGroupListingGroupFilterName Parse(string assetGroupListingGroupFilterName) => - Parse(assetGroupListingGroupFilterName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetGroupListingGroupFilterName Parse(string assetGroupListingGroupFilterName, bool allowUnparsed) => - TryParse(assetGroupListingGroupFilterName, allowUnparsed, out AssetGroupListingGroupFilterName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupListingGroupFilterName, out AssetGroupListingGroupFilterName result) => - TryParse(assetGroupListingGroupFilterName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupListingGroupFilterName, bool allowUnparsed, out AssetGroupListingGroupFilterName result) - { - gax::GaxPreconditions.CheckNotNull(assetGroupListingGroupFilterName, nameof(assetGroupListingGroupFilterName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetGroupListingGroupFilter.TryParseName(assetGroupListingGroupFilterName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAssetGroupListingGroupFilter(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetGroupListingGroupFilterName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AssetGroupListingGroupFilterName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetGroupId = null, string customerId = null, string listingGroupFilterId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetGroupId = assetGroupId; - CustomerId = customerId; - ListingGroupFilterId = listingGroupFilterId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern - /// customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - public AssetGroupListingGroupFilterName(string customerId, string assetGroupId, string listingGroupFilterId) : this(ResourceNameType.CustomerAssetGroupListingGroupFilter, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), listingGroupFilterId: gax::GaxPreconditions.CheckNotNullOrEmpty(listingGroupFilterId, nameof(listingGroupFilterId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ListingGroupFilter ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ListingGroupFilterId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetGroupListingGroupFilter: return s_customerAssetGroupListingGroupFilter.Expand(CustomerId, $"{AssetGroupId}~{ListingGroupFilterId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetGroupListingGroupFilterName); - - /// - public bool Equals(AssetGroupListingGroupFilterName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetGroupListingGroupFilterName a, AssetGroupListingGroupFilterName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetGroupListingGroupFilterName a, AssetGroupListingGroupFilterName b) => !(a == b); - } - - public partial class AssetGroupListingGroupFilter - { - /// - /// -typed view over the resource name - /// property. - /// - internal AssetGroupListingGroupFilterName ResourceNameAsAssetGroupListingGroupFilterName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AssetGroupListingGroupFilterName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetGroupName AssetGroupAsAssetGroupName - { - get => string.IsNullOrEmpty(AssetGroup) ? null : AssetGroupName.Parse(AssetGroup, allowUnparsed: true); - set => AssetGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the - /// resource name property. - /// - internal AssetGroupListingGroupFilterName ParentListingGroupFilterAsAssetGroupListingGroupFilterName - { - get => string.IsNullOrEmpty(ParentListingGroupFilter) ? null : AssetGroupListingGroupFilterName.Parse(ParentListingGroupFilter, allowUnparsed: true); - set => ParentListingGroupFilter = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterService.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterService.g.cs deleted file mode 100755 index ee2ac6616..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterService.g.cs +++ /dev/null @@ -1,1226 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_listing_group_filter_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/asset_group_listing_group_filter_service.proto - public static partial class AssetGroupListingGroupFilterServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/asset_group_listing_group_filter_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupListingGroupFilterServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ClBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfZ3Jv", - "dXBfbGlzdGluZ19ncm91cF9maWx0ZXJfc2VydmljZS5wcm90bxIhZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvcmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGkln", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dyb3Vw", - "X2xpc3RpbmdfZ3JvdXBfZmlsdGVyLnByb3RvGhxnb29nbGUvYXBpL2Fubm90", - "YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xl", - "L2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJj", - "ZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8irAIK", - "Kk11dGF0ZUFzc2V0R3JvdXBMaXN0aW5nR3JvdXBGaWx0ZXJzUmVxdWVzdBIY", - "CgtjdXN0b21lcl9pZBgBIAEoCUID4EECEmEKCm9wZXJhdGlvbnMYAiADKAsy", - "SC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQXNzZXRHcm91", - "cExpc3RpbmdHcm91cEZpbHRlck9wZXJhdGlvbkID4EECEhUKDXZhbGlkYXRl", - "X29ubHkYAyABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBlGAQgASgOMksu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVu", - "dFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUi2wIKJUFzc2V0R3JvdXBM", - "aXN0aW5nR3JvdXBGaWx0ZXJPcGVyYXRpb24SLwoLdXBkYXRlX21hc2sYBCAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrElIKBmNyZWF0ZRgBIAEo", - "CzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQXNzZXRH", - "cm91cExpc3RpbmdHcm91cEZpbHRlckgAElIKBnVwZGF0ZRgCIAEoCzJALmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQXNzZXRHcm91cExp", - "c3RpbmdHcm91cEZpbHRlckgAEkwKBnJlbW92ZRgDIAEoCUI6+kE3CjVnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cExpc3RpbmdHcm91cEZp", - "bHRlckgAQgsKCW9wZXJhdGlvbiKLAQorTXV0YXRlQXNzZXRHcm91cExpc3Rp", - "bmdHcm91cEZpbHRlcnNSZXNwb25zZRJcCgdyZXN1bHRzGAEgAygLMksuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0R3Jv", - "dXBMaXN0aW5nR3JvdXBGaWx0ZXJSZXN1bHQi6QEKKE11dGF0ZUFzc2V0R3Jv", - "dXBMaXN0aW5nR3JvdXBGaWx0ZXJSZXN1bHQSUQoNcmVzb3VyY2VfbmFtZRgB", - "IAEoCUI6+kE3CjVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRHcm91", - "cExpc3RpbmdHcm91cEZpbHRlchJqCiBhc3NldF9ncm91cF9saXN0aW5nX2dy", - "b3VwX2ZpbHRlchgCIAEoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQXNzZXRHcm91cExpc3RpbmdHcm91cEZpbHRlcjKcAwojQXNz", - "ZXRHcm91cExpc3RpbmdHcm91cEZpbHRlclNlcnZpY2USrQIKI011dGF0ZUFz", - "c2V0R3JvdXBMaXN0aW5nR3JvdXBGaWx0ZXJzEk0uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0R3JvdXBMaXN0aW5nR3Jv", - "dXBGaWx0ZXJzUmVxdWVzdBpOLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyc1Jl", - "c3BvbnNlImeC0+STAkgiQy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0q", - "fS9hc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyczptdXRhdGU6ASraQRZj", - "dXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29y", - "ZHNClAIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNC", - "KEFzc2V0R3JvdXBMaXN0aW5nR3JvdXBGaWx0ZXJTZXJ2aWNlUHJvdG9QAVpJ", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilterReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation), global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult.Parser, new[]{ "ResourceName", "AssetGroupListingGroupFilter" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AssetGroupListingGroupFilterService.MutateAssetGroupListingGroupFilters][google.ads.googleads.v12.services.AssetGroupListingGroupFilterService.MutateAssetGroupListingGroupFilters]. - /// partial_failure is not supported because the tree needs to be validated - /// together. - /// - public sealed partial class MutateAssetGroupListingGroupFiltersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupListingGroupFiltersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFiltersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFiltersRequest(MutateAssetGroupListingGroupFiltersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFiltersRequest Clone() { - return new MutateAssetGroupListingGroupFiltersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose asset group listing group filters are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual asset group listing group - /// filters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupListingGroupFiltersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupListingGroupFiltersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupListingGroupFiltersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an asset group listing group filter. - /// - public sealed partial class AssetGroupListingGroupFilterOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupListingGroupFilterOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilterOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilterOperation(AssetGroupListingGroupFilterOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupListingGroupFilterOperation Clone() { - return new AssetGroupListingGroupFilterOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new asset group - /// listing group filter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The asset group listing group filter is expected to - /// have a valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed asset group listing - /// group filter is expected, in this format: - /// `customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}` - /// An entity can be removed only if it's not referenced by other - /// parent_listing_group_id. If multiple entities are being deleted, the - /// mutates must be in the correct order. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupListingGroupFilterOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupListingGroupFilterOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupListingGroupFilterOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an asset group listing group filter mutate. - /// - public sealed partial class MutateAssetGroupListingGroupFiltersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupListingGroupFiltersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFiltersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFiltersResponse(MutateAssetGroupListingGroupFiltersResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFiltersResponse Clone() { - return new MutateAssetGroupListingGroupFiltersResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupListingGroupFiltersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupListingGroupFiltersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupListingGroupFiltersResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the asset group listing group filter mutate. - /// - public sealed partial class MutateAssetGroupListingGroupFilterResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupListingGroupFilterResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFilterResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFilterResult(MutateAssetGroupListingGroupFilterResult other) : this() { - resourceName_ = other.resourceName_; - assetGroupListingGroupFilter_ = other.assetGroupListingGroupFilter_ != null ? other.assetGroupListingGroupFilter_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupListingGroupFilterResult Clone() { - return new MutateAssetGroupListingGroupFilterResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_group_listing_group_filter" field. - public const int AssetGroupListingGroupFilterFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter assetGroupListingGroupFilter_; - /// - /// The mutated AssetGroupListingGroupFilter with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter AssetGroupListingGroupFilter { - get { return assetGroupListingGroupFilter_; } - set { - assetGroupListingGroupFilter_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupListingGroupFilterResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupListingGroupFilterResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AssetGroupListingGroupFilter, other.AssetGroupListingGroupFilter)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (assetGroupListingGroupFilter_ != null) hash ^= AssetGroupListingGroupFilter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetGroupListingGroupFilter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetGroupListingGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetGroupListingGroupFilter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetGroupListingGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (assetGroupListingGroupFilter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupListingGroupFilter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupListingGroupFilterResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.assetGroupListingGroupFilter_ != null) { - if (assetGroupListingGroupFilter_ == null) { - AssetGroupListingGroupFilter = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - AssetGroupListingGroupFilter.MergeFrom(other.AssetGroupListingGroupFilter); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetGroupListingGroupFilter_ == null) { - AssetGroupListingGroupFilter = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - input.ReadMessage(AssetGroupListingGroupFilter); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetGroupListingGroupFilter_ == null) { - AssetGroupListingGroupFilter = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - input.ReadMessage(AssetGroupListingGroupFilter); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceClient.g.cs deleted file mode 100755 index b2cea7db0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceClient.g.cs +++ /dev/null @@ -1,386 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AssetGroupListingGroupFilterServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// - /// Get a new instance of the default . - /// - /// A new instance of the default . - public static AssetGroupListingGroupFilterServiceSettings GetDefault() => - new AssetGroupListingGroupFilterServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AssetGroupListingGroupFilterServiceSettings() - { - } - - private AssetGroupListingGroupFilterServiceSettings(AssetGroupListingGroupFilterServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAssetGroupListingGroupFiltersSettings = existing.MutateAssetGroupListingGroupFiltersSettings; - OnCopy(existing); - } - - partial void OnCopy(AssetGroupListingGroupFilterServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AssetGroupListingGroupFilterServiceClient.MutateAssetGroupListingGroupFilters and - /// AssetGroupListingGroupFilterServiceClient.MutateAssetGroupListingGroupFiltersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAssetGroupListingGroupFiltersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AssetGroupListingGroupFilterServiceSettings Clone() => new AssetGroupListingGroupFilterServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class AssetGroupListingGroupFilterServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AssetGroupListingGroupFilterServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AssetGroupListingGroupFilterServiceClientBuilder() : base(AssetGroupListingGroupFilterServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AssetGroupListingGroupFilterServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AssetGroupListingGroupFilterServiceClient Build() - { - AssetGroupListingGroupFilterServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AssetGroupListingGroupFilterServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AssetGroupListingGroupFilterServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AssetGroupListingGroupFilterServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AssetGroupListingGroupFilterServiceClient.ChannelPool; - } - - /// AssetGroupListingGroupFilterService client wrapper, for convenient use. - /// - /// Service to manage asset group listing group filter. - /// - public abstract partial class AssetGroupListingGroupFilterServiceClient - { - /// - /// The default endpoint for the AssetGroupListingGroupFilterService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AssetGroupListingGroupFilterService scopes. - /// - /// The default AssetGroupListingGroupFilterService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AssetGroupListingGroupFilterService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// - /// The task representing the created . - /// - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AssetGroupListingGroupFilterServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AssetGroupListingGroupFilterServiceClient Create() => - new AssetGroupListingGroupFilterServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AssetGroupListingGroupFilterServiceClient Create(grpccore::CallInvoker callInvoker, AssetGroupListingGroupFilterServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient grpcClient = new AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient(callInvoker); - return new AssetGroupListingGroupFilterServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AssetGroupListingGroupFilterService client - public virtual AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupListingGroupFiltersResponse MutateAssetGroupListingGroupFilters(MutateAssetGroupListingGroupFiltersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupListingGroupFiltersAsync(MutateAssetGroupListingGroupFiltersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupListingGroupFiltersAsync(MutateAssetGroupListingGroupFiltersRequest request, st::CancellationToken cancellationToken) => - MutateAssetGroupListingGroupFiltersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose asset group listing group filters are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual asset group listing group - /// filters. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupListingGroupFiltersResponse MutateAssetGroupListingGroupFilters(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroupListingGroupFilters(new MutateAssetGroupListingGroupFiltersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose asset group listing group filters are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual asset group listing group - /// filters. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupListingGroupFiltersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroupListingGroupFiltersAsync(new MutateAssetGroupListingGroupFiltersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose asset group listing group filters are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual asset group listing group - /// filters. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupListingGroupFiltersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAssetGroupListingGroupFiltersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AssetGroupListingGroupFilterService client wrapper implementation, for convenient use. - /// - /// Service to manage asset group listing group filter. - /// - public sealed partial class AssetGroupListingGroupFilterServiceClientImpl : AssetGroupListingGroupFilterServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAssetGroupListingGroupFilters; - - /// - /// Constructs a client wrapper for the AssetGroupListingGroupFilterService service, with the specified gRPC - /// client and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AssetGroupListingGroupFilterServiceClientImpl(AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient grpcClient, AssetGroupListingGroupFilterServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AssetGroupListingGroupFilterServiceSettings effectiveSettings = settings ?? AssetGroupListingGroupFilterServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAssetGroupListingGroupFilters = clientHelper.BuildApiCall("MutateAssetGroupListingGroupFilters", grpcClient.MutateAssetGroupListingGroupFiltersAsync, grpcClient.MutateAssetGroupListingGroupFilters, effectiveSettings.MutateAssetGroupListingGroupFiltersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAssetGroupListingGroupFilters); - Modify_MutateAssetGroupListingGroupFiltersApiCall(ref _callMutateAssetGroupListingGroupFilters); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAssetGroupListingGroupFiltersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient grpcClient, AssetGroupListingGroupFilterServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AssetGroupListingGroupFilterService client - public override AssetGroupListingGroupFilterService.AssetGroupListingGroupFilterServiceClient GrpcClient { get; } - - partial void Modify_MutateAssetGroupListingGroupFiltersRequest(ref MutateAssetGroupListingGroupFiltersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAssetGroupListingGroupFiltersResponse MutateAssetGroupListingGroupFilters(MutateAssetGroupListingGroupFiltersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupListingGroupFiltersRequest(ref request, ref callSettings); - return _callMutateAssetGroupListingGroupFilters.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAssetGroupListingGroupFiltersAsync(MutateAssetGroupListingGroupFiltersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupListingGroupFiltersRequest(ref request, ref callSettings); - return _callMutateAssetGroupListingGroupFilters.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceGrpc.g.cs deleted file mode 100755 index bc53e0303..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_listing_group_filter_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage asset group listing group filter. - /// - public static partial class AssetGroupListingGroupFilterService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AssetGroupListingGroupFilterService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupListingGroupFiltersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupListingGroupFiltersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAssetGroupListingGroupFilters = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAssetGroupListingGroupFilters", - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupListingGroupFiltersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupListingGroupFiltersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AssetGroupListingGroupFilterService - [grpc::BindServiceMethod(typeof(AssetGroupListingGroupFilterService), "BindService")] - public abstract partial class AssetGroupListingGroupFilterServiceBase - { - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAssetGroupListingGroupFilters(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AssetGroupListingGroupFilterService - public partial class AssetGroupListingGroupFilterServiceClient : grpc::ClientBase - { - /// Creates a new client for AssetGroupListingGroupFilterService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupListingGroupFilterServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AssetGroupListingGroupFilterService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupListingGroupFilterServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupListingGroupFilterServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupListingGroupFilterServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersResponse MutateAssetGroupListingGroupFilters(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroupListingGroupFilters(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersResponse MutateAssetGroupListingGroupFilters(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAssetGroupListingGroupFilters, null, options, request); - } - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupListingGroupFiltersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroupListingGroupFiltersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset group listing group filters. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupListingGroupFiltersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFiltersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAssetGroupListingGroupFilters, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AssetGroupListingGroupFilterServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AssetGroupListingGroupFilterServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AssetGroupListingGroupFilterServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAssetGroupListingGroupFilters, serviceImpl.MutateAssetGroupListingGroupFilters).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetGroupListingGroupFilterServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAssetGroupListingGroupFilters, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAssetGroupListingGroupFilters)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceResourceNames.g.cs deleted file mode 100755 index 8889704d6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupListingGroupFilterServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AssetGroupListingGroupFilterOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AssetGroupListingGroupFilterName RemoveAsAssetGroupListingGroupFilterName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AssetGroupListingGroupFilterName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAssetGroupListingGroupFilterResult - { - /// - /// -typed view over the - /// resource name property. - /// - internal gagvr::AssetGroupListingGroupFilterName ResourceNameAsAssetGroupListingGroupFilterName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetGroupListingGroupFilterName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupProductGroupView.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupProductGroupView.g.cs deleted file mode 100755 index 491cf5087..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupProductGroupView.g.cs +++ /dev/null @@ -1,339 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_group_product_group_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_group_product_group_view.proto - public static partial class AssetGroupProductGroupViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_group_product_group_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupProductGroupViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dy", - "b3VwX3Byb2R1Y3RfZ3JvdXBfdmlldy5wcm90bxIiZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv", - "ci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byK3AwoaQXNzZXRH", - "cm91cFByb2R1Y3RHcm91cFZpZXcSUgoNcmVzb3VyY2VfbmFtZRgBIAEoCUI7", - "4EED+kE1CjNnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cFBy", - "b2R1Y3RHcm91cFZpZXcSQAoLYXNzZXRfZ3JvdXAYAiABKAlCK+BBA/pBJQoj", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXASZwogYXNzZXRf", - "Z3JvdXBfbGlzdGluZ19ncm91cF9maWx0ZXIYBCABKAlCPeBBA/pBNwo1Z29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXBMaXN0aW5nR3JvdXBG", - "aWx0ZXI6mQHqQZUBCjNnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRH", - "cm91cFByb2R1Y3RHcm91cFZpZXcSXmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9", - "L2Fzc2V0R3JvdXBQcm9kdWN0R3JvdXBWaWV3cy97YXNzZXRfZ3JvdXBfaWR9", - "fntsaXN0aW5nX2dyb3VwX2ZpbHRlcl9pZH1CkQIKJmNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQh9Bc3NldEdyb3VwUHJvZHVjdEdy", - "b3VwVmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNl", - "c6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPK", - "AiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupView), global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupView.Parser, new[]{ "ResourceName", "AssetGroup", "AssetGroupListingGroupFilter" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An asset group product group view. - /// - public sealed partial class AssetGroupProductGroupView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupProductGroupView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupProductGroupView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupProductGroupView(AssetGroupProductGroupView other) : this() { - resourceName_ = other.resourceName_; - assetGroup_ = other.assetGroup_; - assetGroupListingGroupFilter_ = other.assetGroupListingGroupFilter_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupProductGroupView Clone() { - return new AssetGroupProductGroupView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the asset group product group view. - /// Asset group product group view resource names have the form: - /// - /// `customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_group" field. - public const int AssetGroupFieldNumber = 2; - private string assetGroup_ = ""; - /// - /// Output only. The asset group associated with the listing group filter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetGroup { - get { return assetGroup_; } - set { - assetGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_group_listing_group_filter" field. - public const int AssetGroupListingGroupFilterFieldNumber = 4; - private string assetGroupListingGroupFilter_ = ""; - /// - /// Output only. The resource name of the asset group listing group filter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetGroupListingGroupFilter { - get { return assetGroupListingGroupFilter_; } - set { - assetGroupListingGroupFilter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupProductGroupView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupProductGroupView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AssetGroup != other.AssetGroup) return false; - if (AssetGroupListingGroupFilter != other.AssetGroupListingGroupFilter) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AssetGroup.Length != 0) hash ^= AssetGroup.GetHashCode(); - if (AssetGroupListingGroupFilter.Length != 0) hash ^= AssetGroupListingGroupFilter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (AssetGroupListingGroupFilter.Length != 0) { - output.WriteRawTag(34); - output.WriteString(AssetGroupListingGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (AssetGroupListingGroupFilter.Length != 0) { - output.WriteRawTag(34); - output.WriteString(AssetGroupListingGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AssetGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetGroup); - } - if (AssetGroupListingGroupFilter.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetGroupListingGroupFilter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupProductGroupView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AssetGroup.Length != 0) { - AssetGroup = other.AssetGroup; - } - if (other.AssetGroupListingGroupFilter.Length != 0) { - AssetGroupListingGroupFilter = other.AssetGroupListingGroupFilter; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 34: { - AssetGroupListingGroupFilter = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 34: { - AssetGroupListingGroupFilter = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupProductGroupViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupProductGroupViewResourceNames.g.cs deleted file mode 100755 index a684873fb..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupProductGroupViewResourceNames.g.cs +++ /dev/null @@ -1,354 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetGroupProductGroupView resource. - public sealed partial class AssetGroupProductGroupViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}. - /// - CustomerAssetGroupListingGroupFilter = 1, - } - - private static gax::PathTemplate s_customerAssetGroupListingGroupFilter = new gax::PathTemplate("customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id_listing_group_filter_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetGroupProductGroupViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetGroupProductGroupViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static AssetGroupProductGroupViewName FromCustomerAssetGroupListingGroupFilter(string customerId, string assetGroupId, string listingGroupFilterId) => - new AssetGroupProductGroupViewName(ResourceNameType.CustomerAssetGroupListingGroupFilter, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), listingGroupFilterId: gax::GaxPreconditions.CheckNotNullOrEmpty(listingGroupFilterId, nameof(listingGroupFilterId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}. - /// - public static string Format(string customerId, string assetGroupId, string listingGroupFilterId) => - FormatCustomerAssetGroupListingGroupFilter(customerId, assetGroupId, listingGroupFilterId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}. - /// - public static string FormatCustomerAssetGroupListingGroupFilter(string customerId, string assetGroupId, string listingGroupFilterId) => - s_customerAssetGroupListingGroupFilter.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(listingGroupFilterId, nameof(listingGroupFilterId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static AssetGroupProductGroupViewName Parse(string assetGroupProductGroupViewName) => - Parse(assetGroupProductGroupViewName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetGroupProductGroupViewName Parse(string assetGroupProductGroupViewName, bool allowUnparsed) => - TryParse(assetGroupProductGroupViewName, allowUnparsed, out AssetGroupProductGroupViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupProductGroupViewName, out AssetGroupProductGroupViewName result) => - TryParse(assetGroupProductGroupViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupProductGroupViewName, bool allowUnparsed, out AssetGroupProductGroupViewName result) - { - gax::GaxPreconditions.CheckNotNull(assetGroupProductGroupViewName, nameof(assetGroupProductGroupViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetGroupListingGroupFilter.TryParseName(assetGroupProductGroupViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAssetGroupListingGroupFilter(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetGroupProductGroupViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AssetGroupProductGroupViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetGroupId = null, string customerId = null, string listingGroupFilterId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetGroupId = assetGroupId; - CustomerId = customerId; - ListingGroupFilterId = listingGroupFilterId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The ListingGroupFilter ID. Must not be null or empty. - /// - public AssetGroupProductGroupViewName(string customerId, string assetGroupId, string listingGroupFilterId) : this(ResourceNameType.CustomerAssetGroupListingGroupFilter, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), listingGroupFilterId: gax::GaxPreconditions.CheckNotNullOrEmpty(listingGroupFilterId, nameof(listingGroupFilterId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ListingGroupFilter ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ListingGroupFilterId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetGroupListingGroupFilter: return s_customerAssetGroupListingGroupFilter.Expand(CustomerId, $"{AssetGroupId}~{ListingGroupFilterId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetGroupProductGroupViewName); - - /// - public bool Equals(AssetGroupProductGroupViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetGroupProductGroupViewName a, AssetGroupProductGroupViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetGroupProductGroupViewName a, AssetGroupProductGroupViewName b) => !(a == b); - } - - public partial class AssetGroupProductGroupView - { - /// - /// -typed view over the resource name - /// property. - /// - internal AssetGroupProductGroupViewName ResourceNameAsAssetGroupProductGroupViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AssetGroupProductGroupViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetGroupName AssetGroupAsAssetGroupName - { - get => string.IsNullOrEmpty(AssetGroup) ? null : AssetGroupName.Parse(AssetGroup, allowUnparsed: true); - set => AssetGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the - /// resource name property. - /// - internal AssetGroupListingGroupFilterName AssetGroupListingGroupFilterAsAssetGroupListingGroupFilterName - { - get => string.IsNullOrEmpty(AssetGroupListingGroupFilter) ? null : AssetGroupListingGroupFilterName.Parse(AssetGroupListingGroupFilter, allowUnparsed: true); - set => AssetGroupListingGroupFilter = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupResourceNames.g.cs deleted file mode 100755 index 763cdd545..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupResourceNames.g.cs +++ /dev/null @@ -1,274 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetGroup resource. - public sealed partial class AssetGroupName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/assetGroups/{asset_group_id}. - /// - CustomerAssetGroup = 1, - } - - private static gax::PathTemplate s_customerAssetGroup = new gax::PathTemplate("customers/{customer_id}/assetGroups/{asset_group_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetGroupName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetGroupName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetGroups/{asset_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetGroupName FromCustomerAssetGroup(string customerId, string assetGroupId) => - new AssetGroupName(ResourceNameType.CustomerAssetGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetGroups/{asset_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroups/{asset_group_id}. - /// - public static string Format(string customerId, string assetGroupId) => - FormatCustomerAssetGroup(customerId, assetGroupId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetGroups/{asset_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroups/{asset_group_id}. - /// - public static string FormatCustomerAssetGroup(string customerId, string assetGroupId) => - s_customerAssetGroup.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetGroups/{asset_group_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetGroupName Parse(string assetGroupName) => Parse(assetGroupName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetGroups/{asset_group_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetGroupName Parse(string assetGroupName, bool allowUnparsed) => - TryParse(assetGroupName, allowUnparsed, out AssetGroupName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetGroups/{asset_group_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupName, out AssetGroupName result) => - TryParse(assetGroupName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetGroups/{asset_group_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupName, bool allowUnparsed, out AssetGroupName result) - { - gax::GaxPreconditions.CheckNotNull(assetGroupName, nameof(assetGroupName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetGroup.TryParseName(assetGroupName, out resourceName)) - { - result = FromCustomerAssetGroup(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetGroupName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AssetGroupName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetGroupId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetGroupId = assetGroupId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/assetGroups/{asset_group_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - public AssetGroupName(string customerId, string assetGroupId) : this(ResourceNameType.CustomerAssetGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetGroup: return s_customerAssetGroup.Expand(CustomerId, AssetGroupId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetGroupName); - - /// - public bool Equals(AssetGroupName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetGroupName a, AssetGroupName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetGroupName a, AssetGroupName b) => !(a == b); - } - - public partial class AssetGroup - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetGroupName ResourceNameAsAssetGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetGroupName AssetGroupName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AssetGroupName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupService.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupService.g.cs deleted file mode 100755 index 517588cc6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupService.g.cs +++ /dev/null @@ -1,1165 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/asset_group_service.proto - public static partial class AssetGroupServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/asset_group_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfZ3Jv", - "dXBfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fz", - "c2V0X2dyb3VwLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3Rv", - "Ghdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i", - "ZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29v", - "Z2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3Rh", - "dHVzLnByb3RvIpwBChhNdXRhdGVBc3NldEdyb3Vwc1JlcXVlc3QSGAoLY3Vz", - "dG9tZXJfaWQYASABKAlCA+BBAhJPCgpvcGVyYXRpb25zGAIgAygLMjYuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFzc2V0R3JvdXBPcGVy", - "YXRpb25CA+BBAhIVCg12YWxpZGF0ZV9vbmx5GAQgASgIIpMCChNBc3NldEdy", - "b3VwT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQgASgLMhouZ29vZ2xlLnBy", - "b3RvYnVmLkZpZWxkTWFzaxJACgZjcmVhdGUYASABKAsyLi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFzc2V0R3JvdXBIABJACgZ1cGRh", - "dGUYAiABKAsyLi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "LkFzc2V0R3JvdXBIABI6CgZyZW1vdmUYAyABKAlCKPpBJQojZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXBIAEILCglvcGVyYXRpb24imgEK", - "GU11dGF0ZUFzc2V0R3JvdXBzUmVzcG9uc2USSgoHcmVzdWx0cxgBIAMoCzI5", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBc3Nl", - "dEdyb3VwUmVzdWx0EjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgCIAEoCzIS", - "Lmdvb2dsZS5ycGMuU3RhdHVzIlkKFk11dGF0ZUFzc2V0R3JvdXBSZXN1bHQS", - "PwoNcmVzb3VyY2VfbmFtZRgBIAEoCUIo+kElCiNnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQXNzZXRHcm91cDLCAgoRQXNzZXRHcm91cFNlcnZpY2US5QEK", - "EU11dGF0ZUFzc2V0R3JvdXBzEjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLk11dGF0ZUFzc2V0R3JvdXBzUmVxdWVzdBo8Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3Vwc1Jl", - "c3BvbnNlIlWC0+STAjYiMS92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0q", - "fS9hc3NldEdyb3VwczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCggIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCFkFzc2V0R3JvdXBTZXJ2aWNl", - "UHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoC", - "IUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.AssetGroupReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation), global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AssetGroupService.MutateAssetGroups][google.ads.googleads.v12.services.AssetGroupService.MutateAssetGroups]. - /// - public sealed partial class MutateAssetGroupsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupsRequest(MutateAssetGroupsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupsRequest Clone() { - return new MutateAssetGroupsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose asset groups are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual asset groups. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an asset group. - /// - public sealed partial class AssetGroupOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupOperation(AssetGroupOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupOperation Clone() { - return new AssetGroupOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new asset group - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroup Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AssetGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The asset group is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroup Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AssetGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed asset group is - /// expected, in this format: - /// `customers/{customer_id}/assetGroups/{asset_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an asset group mutate. - /// - public sealed partial class MutateAssetGroupsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupsResponse(MutateAssetGroupsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupsResponse Clone() { - return new MutateAssetGroupsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the asset group mutate. - /// - public sealed partial class MutateAssetGroupResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupResult(MutateAssetGroupResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupResult Clone() { - return new MutateAssetGroupResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupServiceClient.g.cs deleted file mode 100755 index 79a16cafe..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupServiceClient.g.cs +++ /dev/null @@ -1,365 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AssetGroupServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AssetGroupServiceSettings GetDefault() => new AssetGroupServiceSettings(); - - /// Constructs a new object with default settings. - public AssetGroupServiceSettings() - { - } - - private AssetGroupServiceSettings(AssetGroupServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAssetGroupsSettings = existing.MutateAssetGroupsSettings; - OnCopy(existing); - } - - partial void OnCopy(AssetGroupServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AssetGroupServiceClient.MutateAssetGroups and AssetGroupServiceClient.MutateAssetGroupsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAssetGroupsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AssetGroupServiceSettings Clone() => new AssetGroupServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class AssetGroupServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AssetGroupServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AssetGroupServiceClientBuilder() : base(AssetGroupServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AssetGroupServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AssetGroupServiceClient Build() - { - AssetGroupServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AssetGroupServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AssetGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AssetGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AssetGroupServiceClient.ChannelPool; - } - - /// AssetGroupService client wrapper, for convenient use. - /// - /// Service to manage asset group - /// - public abstract partial class AssetGroupServiceClient - { - /// - /// The default endpoint for the AssetGroupService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AssetGroupService scopes. - /// - /// The default AssetGroupService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AssetGroupService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AssetGroupServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static AssetGroupServiceClient Create() => new AssetGroupServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AssetGroupServiceClient Create(grpccore::CallInvoker callInvoker, AssetGroupServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AssetGroupService.AssetGroupServiceClient grpcClient = new AssetGroupService.AssetGroupServiceClient(callInvoker); - return new AssetGroupServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AssetGroupService client - public virtual AssetGroupService.AssetGroupServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupsResponse MutateAssetGroups(MutateAssetGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupsAsync(MutateAssetGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupsAsync(MutateAssetGroupsRequest request, st::CancellationToken cancellationToken) => - MutateAssetGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset groups. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupsResponse MutateAssetGroups(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroups(new MutateAssetGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset groups. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroupsAsync(new MutateAssetGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset groups. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAssetGroupsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AssetGroupService client wrapper implementation, for convenient use. - /// - /// Service to manage asset group - /// - public sealed partial class AssetGroupServiceClientImpl : AssetGroupServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAssetGroups; - - /// - /// Constructs a client wrapper for the AssetGroupService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AssetGroupServiceClientImpl(AssetGroupService.AssetGroupServiceClient grpcClient, AssetGroupServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AssetGroupServiceSettings effectiveSettings = settings ?? AssetGroupServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAssetGroups = clientHelper.BuildApiCall("MutateAssetGroups", grpcClient.MutateAssetGroupsAsync, grpcClient.MutateAssetGroups, effectiveSettings.MutateAssetGroupsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAssetGroups); - Modify_MutateAssetGroupsApiCall(ref _callMutateAssetGroups); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAssetGroupsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AssetGroupService.AssetGroupServiceClient grpcClient, AssetGroupServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AssetGroupService client - public override AssetGroupService.AssetGroupServiceClient GrpcClient { get; } - - partial void Modify_MutateAssetGroupsRequest(ref MutateAssetGroupsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAssetGroupsResponse MutateAssetGroups(MutateAssetGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupsRequest(ref request, ref callSettings); - return _callMutateAssetGroups.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAssetGroupsAsync(MutateAssetGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupsRequest(ref request, ref callSettings); - return _callMutateAssetGroups.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupServiceGrpc.g.cs deleted file mode 100755 index c677f4891..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage asset group - /// - public static partial class AssetGroupService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AssetGroupService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAssetGroups = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAssetGroups", - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AssetGroupService - [grpc::BindServiceMethod(typeof(AssetGroupService), "BindService")] - public abstract partial class AssetGroupServiceBase - { - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAssetGroups(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AssetGroupService - public partial class AssetGroupServiceClient : grpc::ClientBase - { - /// Creates a new client for AssetGroupService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AssetGroupService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsResponse MutateAssetGroups(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroups(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsResponse MutateAssetGroups(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAssetGroups, null, options, request); - } - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroupsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAssetGroups, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AssetGroupServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AssetGroupServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AssetGroupServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAssetGroups, serviceImpl.MutateAssetGroups).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetGroupServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAssetGroups, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAssetGroups)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupServiceResourceNames.g.cs deleted file mode 100755 index c6ce0dba8..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AssetGroupOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetGroupName RemoveAsAssetGroupName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AssetGroupName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAssetGroupResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetGroupName ResourceNameAsAssetGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupSignal.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupSignal.g.cs deleted file mode 100755 index faf0ff267..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupSignal.g.cs +++ /dev/null @@ -1,350 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_group_signal.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_group_signal.proto - public static partial class AssetGroupSignalReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_group_signal.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupSignalReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dy", - "b3VwX3NpZ25hbC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9jcml0", - "ZXJpYS5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", - "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byLfAgoQQXNzZXRHcm91cFNpZ25h", - "bBJICg1yZXNvdXJjZV9uYW1lGAEgASgJQjHgQQX6QSsKKWdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9Bc3NldEdyb3VwU2lnbmFsEkAKC2Fzc2V0X2dyb3Vw", - "GAIgASgJQivgQQX6QSUKI2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3Nl", - "dEdyb3VwEkQKCGF1ZGllbmNlGAMgASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmNvbW1vbi5BdWRpZW5jZUluZm9CA+BBBTp56kF2Cilnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cFNpZ25hbBJJY3VzdG9tZXJz", - "L3tjdXN0b21lcl9pZH0vYXNzZXRHcm91cFNpZ25hbHMve2Fzc2V0X2dyb3Vw", - "X2lkfX57Y3JpdGVyaW9uX2lkfUKHAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXNCFUFzc2V0R3JvdXBTaWduYWxQcm90b1ABWktn", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUu", - "QWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal), global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal.Parser, new[]{ "ResourceName", "AssetGroup", "Audience" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// AssetGroupSignal represents a signal in an asset group. The existence of a - /// signal tells the performance max campaign who's most likely to convert. - /// Performance Max uses the signal to look for new people with similar or - /// stronger intent to find conversions across Search, Display, Video, and more. - /// - public sealed partial class AssetGroupSignal : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupSignal()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignalReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupSignal() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupSignal(AssetGroupSignal other) : this() { - resourceName_ = other.resourceName_; - assetGroup_ = other.assetGroup_; - audience_ = other.audience_ != null ? other.audience_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupSignal Clone() { - return new AssetGroupSignal(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the asset group signal. - /// Asset group signal resource name have the form: - /// - /// `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{signal_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_group" field. - public const int AssetGroupFieldNumber = 2; - private string assetGroup_ = ""; - /// - /// Immutable. The asset group which this asset group signal belongs to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetGroup { - get { return assetGroup_; } - set { - assetGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "audience" field. - public const int AudienceFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.AudienceInfo audience_; - /// - /// Immutable. The signal(audience criterion) to be used by the performance max campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AudienceInfo Audience { - get { return audience_; } - set { - audience_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupSignal); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupSignal other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AssetGroup != other.AssetGroup) return false; - if (!object.Equals(Audience, other.Audience)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AssetGroup.Length != 0) hash ^= AssetGroup.GetHashCode(); - if (audience_ != null) hash ^= Audience.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (audience_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetGroup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetGroup); - } - if (audience_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AssetGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetGroup); - } - if (audience_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Audience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupSignal other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AssetGroup.Length != 0) { - AssetGroup = other.AssetGroup; - } - if (other.audience_ != null) { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Common.AudienceInfo(); - } - Audience.MergeFrom(other.Audience); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 26: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Common.AudienceInfo(); - } - input.ReadMessage(Audience); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetGroup = input.ReadString(); - break; - } - case 26: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Common.AudienceInfo(); - } - input.ReadMessage(Audience); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupSignalResourceNames.g.cs deleted file mode 100755 index a97ffcdc1..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalResourceNames.g.cs +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetGroupSignal resource. - public sealed partial class AssetGroupSignalName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}. - /// - CustomerAssetGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAssetGroupCriterion = new gax::PathTemplate("customers/{customer_id}/assetGroupSignals/{asset_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetGroupSignalName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetGroupSignalName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetGroupSignalName FromCustomerAssetGroupCriterion(string customerId, string assetGroupId, string criterionId) => - new AssetGroupSignalName(ResourceNameType.CustomerAssetGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string assetGroupId, string criterionId) => - FormatCustomerAssetGroupCriterion(customerId, assetGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}. - /// - public static string FormatCustomerAssetGroupCriterion(string customerId, string assetGroupId, string criterionId) => - s_customerAssetGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetGroupSignalName Parse(string assetGroupSignalName) => Parse(assetGroupSignalName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetGroupSignalName Parse(string assetGroupSignalName, bool allowUnparsed) => - TryParse(assetGroupSignalName, allowUnparsed, out AssetGroupSignalName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupSignalName, out AssetGroupSignalName result) => - TryParse(assetGroupSignalName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetGroupSignalName, bool allowUnparsed, out AssetGroupSignalName result) - { - gax::GaxPreconditions.CheckNotNull(assetGroupSignalName, nameof(assetGroupSignalName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetGroupCriterion.TryParseName(assetGroupSignalName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAssetGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetGroupSignalName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AssetGroupSignalName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetGroupId = assetGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public AssetGroupSignalName(string customerId, string assetGroupId, string criterionId) : this(ResourceNameType.CustomerAssetGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetGroupId, nameof(assetGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetGroupCriterion: return s_customerAssetGroupCriterion.Expand(CustomerId, $"{AssetGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetGroupSignalName); - - /// - public bool Equals(AssetGroupSignalName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetGroupSignalName a, AssetGroupSignalName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetGroupSignalName a, AssetGroupSignalName b) => !(a == b); - } - - public partial class AssetGroupSignal - { - /// - /// -typed view over the resource name property. - /// - internal AssetGroupSignalName ResourceNameAsAssetGroupSignalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AssetGroupSignalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetGroupName AssetGroupAsAssetGroupName - { - get => string.IsNullOrEmpty(AssetGroup) ? null : AssetGroupName.Parse(AssetGroup, allowUnparsed: true); - set => AssetGroup = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalService.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupSignalService.g.cs deleted file mode 100755 index 9d6783502..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalService.g.cs +++ /dev/null @@ -1,1200 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_signal_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/asset_group_signal_service.proto - public static partial class AssetGroupSignalServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/asset_group_signal_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupSignalServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfZ3Jv", - "dXBfc2lnbmFsX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9hc3NldF9ncm91cF9zaWduYWwucHJvdG8a", - "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xp", - "ZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5w", - "cm90byKtAgoeTXV0YXRlQXNzZXRHcm91cFNpZ25hbHNSZXF1ZXN0EhgKC2N1", - "c3RvbWVyX2lkGAEgASgJQgPgQQISVQoKb3BlcmF0aW9ucxgCIAMoCzI8Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Bc3NldEdyb3VwU2ln", - "bmFsT3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUK", - "DXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBl", - "GAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3Bv", - "bnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUisgEKGUFz", - "c2V0R3JvdXBTaWduYWxPcGVyYXRpb24SRgoGY3JlYXRlGAEgASgLMjQuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Bc3NldEdyb3VwU2ln", - "bmFsSAASQAoGcmVtb3ZlGAIgASgJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9Bc3NldEdyb3VwU2lnbmFsSABCCwoJb3BlcmF0aW9uIqYBCh9N", - "dXRhdGVBc3NldEdyb3VwU2lnbmFsc1Jlc3BvbnNlElAKB3Jlc3VsdHMYASAD", - "KAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "QXNzZXRHcm91cFNpZ25hbFJlc3VsdBIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJy", - "b3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1cyK3AQocTXV0YXRlQXNzZXRH", - "cm91cFNpZ25hbFJlc3VsdBJFCg1yZXNvdXJjZV9uYW1lGAEgASgJQi76QSsK", - "KWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldEdyb3VwU2lnbmFsElAK", - "EmFzc2V0X2dyb3VwX3NpZ25hbBgCIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQXNzZXRHcm91cFNpZ25hbDLgAgoXQXNzZXRH", - "cm91cFNpZ25hbFNlcnZpY2US/QEKF011dGF0ZUFzc2V0R3JvdXBTaWduYWxz", - "EkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFz", - "c2V0R3JvdXBTaWduYWxzUmVxdWVzdBpCLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3VwU2lnbmFsc1Jlc3BvbnNl", - "IluC0+STAjwiNy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9hc3Nl", - "dEdyb3VwU2lnbmFsczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCiAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCHEFzc2V0R3JvdXBTaWduYWxT", - "ZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6IC", - "A0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignalReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation), global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult), global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult.Parser, new[]{ "ResourceName", "AssetGroupSignal" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [AssetGroupSignalService.MutateAssetGroupSignals][google.ads.googleads.v12.services.AssetGroupSignalService.MutateAssetGroupSignals]. - /// - public sealed partial class MutateAssetGroupSignalsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupSignalsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalsRequest(MutateAssetGroupSignalsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalsRequest Clone() { - return new MutateAssetGroupSignalsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose asset group signals are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual asset group signals. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid operations - /// will return errors. If false, all operations will be carried out in one - /// transaction if and only if they are all valid. Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupSignalsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupSignalsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupSignalsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an asset group signal. - /// - public sealed partial class AssetGroupSignalOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupSignalOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupSignalOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupSignalOperation(AssetGroupSignalOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupSignalOperation Clone() { - return new AssetGroupSignalOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new asset group - /// signal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed asset group signal is - /// expected, in this format: - /// `customers/{customer_id}/assetGroupSignals/{asset_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupSignalOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupSignalOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupSignalOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an asset group signal mutate. - /// - public sealed partial class MutateAssetGroupSignalsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupSignalsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalsResponse(MutateAssetGroupSignalsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalsResponse Clone() { - return new MutateAssetGroupSignalsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupSignalsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupSignalsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupSignalsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the asset group signal mutate. - /// - public sealed partial class MutateAssetGroupSignalResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetGroupSignalResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalResult(MutateAssetGroupSignalResult other) : this() { - resourceName_ = other.resourceName_; - assetGroupSignal_ = other.assetGroupSignal_ != null ? other.assetGroupSignal_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetGroupSignalResult Clone() { - return new MutateAssetGroupSignalResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_group_signal" field. - public const int AssetGroupSignalFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal assetGroupSignal_; - /// - /// The mutated AssetGroupSignal with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal AssetGroupSignal { - get { return assetGroupSignal_; } - set { - assetGroupSignal_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetGroupSignalResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetGroupSignalResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AssetGroupSignal, other.AssetGroupSignal)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (assetGroupSignal_ != null) hash ^= AssetGroupSignal.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetGroupSignal_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetGroupSignal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetGroupSignal_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetGroupSignal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (assetGroupSignal_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupSignal); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetGroupSignalResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.assetGroupSignal_ != null) { - if (assetGroupSignal_ == null) { - AssetGroupSignal = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - } - AssetGroupSignal.MergeFrom(other.AssetGroupSignal); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetGroupSignal_ == null) { - AssetGroupSignal = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - } - input.ReadMessage(AssetGroupSignal); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetGroupSignal_ == null) { - AssetGroupSignal = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - } - input.ReadMessage(AssetGroupSignal); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceClient.g.cs deleted file mode 100755 index 0cedb8c47..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AssetGroupSignalServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AssetGroupSignalServiceSettings GetDefault() => new AssetGroupSignalServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AssetGroupSignalServiceSettings() - { - } - - private AssetGroupSignalServiceSettings(AssetGroupSignalServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAssetGroupSignalsSettings = existing.MutateAssetGroupSignalsSettings; - OnCopy(existing); - } - - partial void OnCopy(AssetGroupSignalServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AssetGroupSignalServiceClient.MutateAssetGroupSignals and - /// AssetGroupSignalServiceClient.MutateAssetGroupSignalsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAssetGroupSignalsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AssetGroupSignalServiceSettings Clone() => new AssetGroupSignalServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AssetGroupSignalServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AssetGroupSignalServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AssetGroupSignalServiceClientBuilder() : base(AssetGroupSignalServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AssetGroupSignalServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AssetGroupSignalServiceClient Build() - { - AssetGroupSignalServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AssetGroupSignalServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AssetGroupSignalServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AssetGroupSignalServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AssetGroupSignalServiceClient.ChannelPool; - } - - /// AssetGroupSignalService client wrapper, for convenient use. - /// - /// Service to manage asset group signal. - /// - public abstract partial class AssetGroupSignalServiceClient - { - /// - /// The default endpoint for the AssetGroupSignalService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AssetGroupSignalService scopes. - /// - /// The default AssetGroupSignalService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AssetGroupSignalService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AssetGroupSignalServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AssetGroupSignalServiceClient Create() => new AssetGroupSignalServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AssetGroupSignalServiceClient Create(grpccore::CallInvoker callInvoker, AssetGroupSignalServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AssetGroupSignalService.AssetGroupSignalServiceClient grpcClient = new AssetGroupSignalService.AssetGroupSignalServiceClient(callInvoker); - return new AssetGroupSignalServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AssetGroupSignalService client - public virtual AssetGroupSignalService.AssetGroupSignalServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupSignalsResponse MutateAssetGroupSignals(MutateAssetGroupSignalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupSignalsAsync(MutateAssetGroupSignalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupSignalsAsync(MutateAssetGroupSignalsRequest request, st::CancellationToken cancellationToken) => - MutateAssetGroupSignalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset group signals are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset group signals. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetGroupSignalsResponse MutateAssetGroupSignals(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroupSignals(new MutateAssetGroupSignalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset group signals are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset group signals. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupSignalsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetGroupSignalsAsync(new MutateAssetGroupSignalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset group signals are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset group signals. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetGroupSignalsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAssetGroupSignalsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AssetGroupSignalService client wrapper implementation, for convenient use. - /// - /// Service to manage asset group signal. - /// - public sealed partial class AssetGroupSignalServiceClientImpl : AssetGroupSignalServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAssetGroupSignals; - - /// - /// Constructs a client wrapper for the AssetGroupSignalService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AssetGroupSignalServiceClientImpl(AssetGroupSignalService.AssetGroupSignalServiceClient grpcClient, AssetGroupSignalServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AssetGroupSignalServiceSettings effectiveSettings = settings ?? AssetGroupSignalServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAssetGroupSignals = clientHelper.BuildApiCall("MutateAssetGroupSignals", grpcClient.MutateAssetGroupSignalsAsync, grpcClient.MutateAssetGroupSignals, effectiveSettings.MutateAssetGroupSignalsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAssetGroupSignals); - Modify_MutateAssetGroupSignalsApiCall(ref _callMutateAssetGroupSignals); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAssetGroupSignalsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AssetGroupSignalService.AssetGroupSignalServiceClient grpcClient, AssetGroupSignalServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AssetGroupSignalService client - public override AssetGroupSignalService.AssetGroupSignalServiceClient GrpcClient { get; } - - partial void Modify_MutateAssetGroupSignalsRequest(ref MutateAssetGroupSignalsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAssetGroupSignalsResponse MutateAssetGroupSignals(MutateAssetGroupSignalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupSignalsRequest(ref request, ref callSettings); - return _callMutateAssetGroupSignals.Sync(request, callSettings); - } - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAssetGroupSignalsAsync(MutateAssetGroupSignalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetGroupSignalsRequest(ref request, ref callSettings); - return _callMutateAssetGroupSignals.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceGrpc.g.cs deleted file mode 100755 index 5105cf34e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_group_signal_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage asset group signal. - /// - public static partial class AssetGroupSignalService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AssetGroupSignalService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupSignalsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupSignalsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAssetGroupSignals = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAssetGroupSignals", - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupSignalsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAssetGroupSignalsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AssetGroupSignalService - [grpc::BindServiceMethod(typeof(AssetGroupSignalService), "BindService")] - public abstract partial class AssetGroupSignalServiceBase - { - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAssetGroupSignals(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AssetGroupSignalService - public partial class AssetGroupSignalServiceClient : grpc::ClientBase - { - /// Creates a new client for AssetGroupSignalService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupSignalServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AssetGroupSignalService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetGroupSignalServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupSignalServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetGroupSignalServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsResponse MutateAssetGroupSignals(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroupSignals(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsResponse MutateAssetGroupSignals(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAssetGroupSignals, null, options, request); - } - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupSignalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetGroupSignalsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes asset group signals. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetGroupSignalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAssetGroupSignals, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AssetGroupSignalServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AssetGroupSignalServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AssetGroupSignalServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAssetGroupSignals, serviceImpl.MutateAssetGroupSignals).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetGroupSignalServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAssetGroupSignals, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAssetGroupSignals)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceResourceNames.g.cs deleted file mode 100755 index f159cb967..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupSignalServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AssetGroupSignalOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetGroupSignalName RemoveAsAssetGroupSignalName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AssetGroupSignalName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAssetGroupSignalResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AssetGroupSignalName ResourceNameAsAssetGroupSignalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetGroupSignalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetGroupStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AssetGroupStatus.g.cs deleted file mode 100755 index 60072b2fd..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetGroupStatus.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_group_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_group_status.proto - public static partial class AssetGroupStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_group_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetGroupStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfZ3JvdXBf", - "c3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi", - "bgoUQXNzZXRHcm91cFN0YXR1c0VudW0iVgoQQXNzZXRHcm91cFN0YXR1cxIP", - "CgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISCgoG", - "UEFVU0VEEAMSCwoHUkVNT1ZFRBAEQu8BCiJjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zQhVBc3NldEdyb3VwU3RhdHVzUHJvdG9QAVpDZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVt", - "c+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of an asset group. - /// - public sealed partial class AssetGroupStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetGroupStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupStatusEnum(AssetGroupStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetGroupStatusEnum Clone() { - return new AssetGroupStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetGroupStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetGroupStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetGroupStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetGroupStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an asset group. - /// - public enum AssetGroupStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The asset group is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The asset group is paused. - /// - [pbr::OriginalName("PAUSED")] Paused = 3, - /// - /// The asset group is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetLinkError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetLinkError.g.cs deleted file mode 100755 index 8eacf53d0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetLinkError.g.cs +++ /dev/null @@ -1,343 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_link_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_link_error.proto - public static partial class AssetLinkErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_link_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetLinkErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X2xpbmtf", - "ZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMi", - "5gYKEkFzc2V0TGlua0Vycm9yRW51bSLPBgoOQXNzZXRMaW5rRXJyb3ISDwoL", - "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFwoTUElOTklOR19VTlNVUFBP", - "UlRFRBACEhoKFlVOU1VQUE9SVEVEX0ZJRUxEX1RZUEUQAxIrCidGSUVMRF9U", - "WVBFX0lOQ09NUEFUSUJMRV9XSVRIX0FTU0VUX1RZUEUQBBIuCipGSUVMRF9U", - "WVBFX0lOQ09NUEFUSUJMRV9XSVRIX0NBTVBBSUdOX1RZUEUQBRIpCiVJTkNP", - "TVBBVElCTEVfQURWRVJUSVNJTkdfQ0hBTk5FTF9UWVBFEAYSLgoqSU1BR0Vf", - "Tk9UX1dJVEhJTl9TUEVDSUZJRURfRElNRU5TSU9OX1JBTkdFEAcSGAoUSU5W", - "QUxJRF9QSU5ORURfRklFTEQQCBIqCiZNRURJQV9CVU5ETEVfQVNTRVRfRklM", - "RV9TSVpFX1RPT19MQVJHRRAJEjoKNk5PVF9FTk9VR0hfQVZBSUxBQkxFX0FT", - "U0VUX0xJTktTX0ZPUl9WQUxJRF9DT01CSU5BVElPThAKEjIKLk5PVF9FTk9V", - "R0hfQVZBSUxBQkxFX0FTU0VUX0xJTktTX1dJVEhfRkFMTEJBQ0sQCxJICkRO", - "T1RfRU5PVUdIX0FWQUlMQUJMRV9BU1NFVF9MSU5LU19XSVRIX0ZBTExCQUNL", - "X0ZPUl9WQUxJRF9DT01CSU5BVElPThAMEhkKFVlPVVRVQkVfVklERU9fUkVN", - "T1ZFRBANEhoKFllPVVRVQkVfVklERU9fVE9PX0xPTkcQDhIbChdZT1VUVUJF", - "X1ZJREVPX1RPT19TSE9SVBAPEh4KGkVYQ0xVREVEX1BBUkVOVF9GSUVMRF9U", - "WVBFEBASEgoOSU5WQUxJRF9TVEFUVVMQERImCiJZT1VUVUJFX1ZJREVPX0RV", - "UkFUSU9OX05PVF9ERUZJTkVEEBISLQopQ0FOTk9UX0NSRUFURV9BVVRPTUFU", - "SUNBTExZX0NSRUFURURfTElOS1MQExIuCipDQU5OT1RfTElOS19UT19BVVRP", - "TUFUSUNBTExZX0NSRUFURURfQVNTRVQQFBIjCh9DQU5OT1RfTU9ESUZZX0FT", - "U0VUX0xJTktfU09VUkNFEBVC8wEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzQhNBc3NldExpbmtFcnJvclByb3RvUAFaRWdvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz", - "6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorEnum.Types.AssetLinkError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset link errors. - /// - public sealed partial class AssetLinkErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetLinkErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetLinkErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetLinkErrorEnum(AssetLinkErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetLinkErrorEnum Clone() { - return new AssetLinkErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetLinkErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetLinkErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetLinkErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetLinkErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset link errors. - /// - public enum AssetLinkError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Pinning is not supported for the given asset link field. - /// - [pbr::OriginalName("PINNING_UNSUPPORTED")] PinningUnsupported = 2, - /// - /// The given field type is not supported to be added directly through asset - /// links. - /// - [pbr::OriginalName("UNSUPPORTED_FIELD_TYPE")] UnsupportedFieldType = 3, - /// - /// The given asset's type and the specified field type are incompatible. - /// - [pbr::OriginalName("FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE")] FieldTypeIncompatibleWithAssetType = 4, - /// - /// The specified field type is incompatible with the given campaign type. - /// - [pbr::OriginalName("FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE")] FieldTypeIncompatibleWithCampaignType = 5, - /// - /// The campaign advertising channel type cannot be associated with the given - /// asset due to channel-based restrictions on the asset's fields. - /// - [pbr::OriginalName("INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE")] IncompatibleAdvertisingChannelType = 6, - /// - /// The image asset provided is not within the dimension constraints - /// specified for the submitted asset field. - /// - [pbr::OriginalName("IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE")] ImageNotWithinSpecifiedDimensionRange = 7, - /// - /// The pinned field is not valid for the submitted asset field. - /// - [pbr::OriginalName("INVALID_PINNED_FIELD")] InvalidPinnedField = 8, - /// - /// The media bundle asset provided is too large for the submitted asset - /// field. - /// - [pbr::OriginalName("MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE")] MediaBundleAssetFileSizeTooLarge = 9, - /// - /// Not enough assets are available for use with other fields since other - /// assets are pinned to specific fields. - /// - [pbr::OriginalName("NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION")] NotEnoughAvailableAssetLinksForValidCombination = 10, - /// - /// Not enough assets with fallback are available. When validating the - /// minimum number of assets, assets without fallback (for example, assets - /// that contain location tag without default value "{LOCATION(City)}") will - /// not be counted. - /// - [pbr::OriginalName("NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK")] NotEnoughAvailableAssetLinksWithFallback = 11, - /// - /// This is a combination of the - /// NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION and - /// NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK errors. Not enough assets - /// with fallback are available since some assets are pinned. - /// - [pbr::OriginalName("NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION")] NotEnoughAvailableAssetLinksWithFallbackForValidCombination = 12, - /// - /// The YouTube video referenced in the provided asset has been removed. - /// - [pbr::OriginalName("YOUTUBE_VIDEO_REMOVED")] YoutubeVideoRemoved = 13, - /// - /// The YouTube video referenced in the provided asset is too long for the - /// field submitted. - /// - [pbr::OriginalName("YOUTUBE_VIDEO_TOO_LONG")] YoutubeVideoTooLong = 14, - /// - /// The YouTube video referenced in the provided asset is too short for the - /// field submitted. - /// - [pbr::OriginalName("YOUTUBE_VIDEO_TOO_SHORT")] YoutubeVideoTooShort = 15, - /// - /// The specified field type is excluded for given campaign or ad group. - /// - [pbr::OriginalName("EXCLUDED_PARENT_FIELD_TYPE")] ExcludedParentFieldType = 16, - /// - /// The status is invalid for the operation specified. - /// - [pbr::OriginalName("INVALID_STATUS")] InvalidStatus = 17, - /// - /// The YouTube video referenced in the provided asset has unknown duration. - /// This might be the case for a livestream video or a video being currently - /// uploaded to YouTube. In both cases, the video duration should eventually - /// get resolved. - /// - [pbr::OriginalName("YOUTUBE_VIDEO_DURATION_NOT_DEFINED")] YoutubeVideoDurationNotDefined = 18, - /// - /// User cannot create automatically created links. - /// - [pbr::OriginalName("CANNOT_CREATE_AUTOMATICALLY_CREATED_LINKS")] CannotCreateAutomaticallyCreatedLinks = 19, - /// - /// Advertiser links cannot link to automatically created asset. - /// - [pbr::OriginalName("CANNOT_LINK_TO_AUTOMATICALLY_CREATED_ASSET")] CannotLinkToAutomaticallyCreatedAsset = 20, - /// - /// Automatically created links cannot be changed into adveritser links or - /// the reverse. - /// - [pbr::OriginalName("CANNOT_MODIFY_ASSET_LINK_SOURCE")] CannotModifyAssetLinkSource = 21, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetLinkStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AssetLinkStatus.g.cs deleted file mode 100755 index 49fc4c6a3..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetLinkStatus.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_link_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_link_status.proto - public static partial class AssetLinkStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_link_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetLinkStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfbGlua19z", - "dGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyJs", - "ChNBc3NldExpbmtTdGF0dXNFbnVtIlUKD0Fzc2V0TGlua1N0YXR1cxIPCgtV", - "TlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISCwoHUkVN", - "T1ZFRBADEgoKBlBBVVNFRBAEQu4BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zQhRBc3NldExpbmtTdGF0dXNQcm90b1ABWkNnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIi", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of an asset link. - /// - public sealed partial class AssetLinkStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetLinkStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetLinkStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetLinkStatusEnum(AssetLinkStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetLinkStatusEnum Clone() { - return new AssetLinkStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetLinkStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetLinkStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetLinkStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetLinkStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing statuses of an asset link. - /// - public enum AssetLinkStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Asset link is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Asset link has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - /// - /// Asset link is paused. - /// - [pbr::OriginalName("PAUSED")] Paused = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetPerformanceLabel.g.cs b/Google.Ads.GoogleAds/src/V12/AssetPerformanceLabel.g.cs deleted file mode 100755 index 3ba24207f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetPerformanceLabel.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_performance_label.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_performance_label.proto - public static partial class AssetPerformanceLabelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_performance_label.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetPerformanceLabelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfcGVyZm9y", - "bWFuY2VfbGFiZWwucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyKKAQoZQXNzZXRQZXJmb3JtYW5jZUxhYmVsRW51bSJtChVBc3NldFBl", - "cmZvcm1hbmNlTGFiZWwSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "CwoHUEVORElORxACEgwKCExFQVJOSU5HEAMSBwoDTE9XEAQSCAoER09PRBAF", - "EggKBEJFU1QQBkL0AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtc0IaQXNzZXRQZXJmb3JtYW5jZUxhYmVsUHJvdG9QAVpDZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the performance label of an asset. - /// - public sealed partial class AssetPerformanceLabelEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetPerformanceLabelEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetPerformanceLabelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetPerformanceLabelEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetPerformanceLabelEnum(AssetPerformanceLabelEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetPerformanceLabelEnum Clone() { - return new AssetPerformanceLabelEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetPerformanceLabelEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetPerformanceLabelEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetPerformanceLabelEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetPerformanceLabelEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing the possible performance labels of an asset, usually - /// computed in the context of a linkage. - /// - public enum AssetPerformanceLabel { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// This asset does not yet have any performance informantion. This may be - /// because it is still under review. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// The asset has started getting impressions but the stats are not - /// statistically significant enough to get an asset performance label. - /// - [pbr::OriginalName("LEARNING")] Learning = 3, - /// - /// Worst performing assets. - /// - [pbr::OriginalName("LOW")] Low = 4, - /// - /// Good performing assets. - /// - [pbr::OriginalName("GOOD")] Good = 5, - /// - /// Best performing assets. - /// - [pbr::OriginalName("BEST")] Best = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetPolicy.g.cs b/Google.Ads.GoogleAds/src/V12/AssetPolicy.g.cs deleted file mode 100755 index db5eee469..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetPolicy.g.cs +++ /dev/null @@ -1,324 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/asset_policy.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/asset_policy.proto - public static partial class AssetPolicyReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/asset_policy.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetPolicyReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Fzc2V0X3BvbGlj", - "eS5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbhosZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9wb2xpY3kucHJvdG8aO2dv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wb2xpY3lfYXBwcm92YWxf", - "c3RhdHVzLnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "cG9saWN5X3Jldmlld19zdGF0dXMucHJvdG8isQIKFEFkQXNzZXRQb2xpY3lT", - "dW1tYXJ5Ek8KFHBvbGljeV90b3BpY19lbnRyaWVzGAEgAygLMjEuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Qb2xpY3lUb3BpY0VudHJ5EmAK", - "DXJldmlld19zdGF0dXMYAiABKA4ySS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuUG9saWN5UmV2aWV3U3RhdHVzRW51bS5Qb2xpY3lSZXZpZXdT", - "dGF0dXMSZgoPYXBwcm92YWxfc3RhdHVzGAMgASgOMk0uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLlBvbGljeUFwcHJvdmFsU3RhdHVzRW51bS5Q", - "b2xpY3lBcHByb3ZhbFN0YXR1c0LwAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb25CEEFzc2V0UG9saWN5UHJvdG9QAVpFZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9jb21tb247Y29tbW9uogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkNvbW1vbsoCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxDb21tb27q", - "AiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkNvbW1vbmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AdAssetPolicySummary), global::Google.Ads.GoogleAds.V12.Common.AdAssetPolicySummary.Parser, new[]{ "PolicyTopicEntries", "ReviewStatus", "ApprovalStatus" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Contains policy information for an asset inside an ad. - /// - public sealed partial class AdAssetPolicySummary : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdAssetPolicySummary()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetPolicyReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdAssetPolicySummary() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdAssetPolicySummary(AdAssetPolicySummary other) : this() { - policyTopicEntries_ = other.policyTopicEntries_.Clone(); - reviewStatus_ = other.reviewStatus_; - approvalStatus_ = other.approvalStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdAssetPolicySummary Clone() { - return new AdAssetPolicySummary(this); - } - - /// Field number for the "policy_topic_entries" field. - public const int PolicyTopicEntriesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_policyTopicEntries_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.PolicyTopicEntry.Parser); - private readonly pbc::RepeatedField policyTopicEntries_ = new pbc::RepeatedField(); - /// - /// The list of policy findings for this asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PolicyTopicEntries { - get { return policyTopicEntries_; } - } - - /// Field number for the "review_status" field. - public const int ReviewStatusFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus reviewStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified; - /// - /// Where in the review process this asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus ReviewStatus { - get { return reviewStatus_; } - set { - reviewStatus_ = value; - } - } - - /// Field number for the "approval_status" field. - public const int ApprovalStatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus approvalStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified; - /// - /// The overall approval status of this asset, which is calculated based on - /// the status of its individual policy topic entries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus ApprovalStatus { - get { return approvalStatus_; } - set { - approvalStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdAssetPolicySummary); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdAssetPolicySummary other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!policyTopicEntries_.Equals(other.policyTopicEntries_)) return false; - if (ReviewStatus != other.ReviewStatus) return false; - if (ApprovalStatus != other.ApprovalStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= policyTopicEntries_.GetHashCode(); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) hash ^= ReviewStatus.GetHashCode(); - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) hash ^= ApprovalStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - policyTopicEntries_.WriteTo(output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - policyTopicEntries_.WriteTo(ref output, _repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ApprovalStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += policyTopicEntries_.CalculateSize(_repeated_policyTopicEntries_codec); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovalStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdAssetPolicySummary other) { - if (other == null) { - return; - } - policyTopicEntries_.Add(other.policyTopicEntries_); - if (other.ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - ReviewStatus = other.ReviewStatus; - } - if (other.ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - ApprovalStatus = other.ApprovalStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(ref input, _repeated_policyTopicEntries_codec); - break; - } - case 16: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 24: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetResourceNames.g.cs deleted file mode 100755 index 7f28c755b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetResourceNames.g.cs +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Asset resource. - public sealed partial class AssetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/assets/{asset_id}. - CustomerAsset = 1, - } - - private static gax::PathTemplate s_customerAsset = new gax::PathTemplate("customers/{customer_id}/assets/{asset_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided . - /// - public static AssetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/assets/{asset_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetName FromCustomerAsset(string customerId, string assetId) => - new AssetName(ResourceNameType.CustomerAsset, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assets/{asset_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assets/{asset_id}. - /// - public static string Format(string customerId, string assetId) => FormatCustomerAsset(customerId, assetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assets/{asset_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assets/{asset_id}. - /// - public static string FormatCustomerAsset(string customerId, string assetId) => - s_customerAsset.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assets/{asset_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetName Parse(string assetName) => Parse(assetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assets/{asset_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetName Parse(string assetName, bool allowUnparsed) => - TryParse(assetName, allowUnparsed, out AssetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assets/{asset_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetName, out AssetName result) => TryParse(assetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assets/{asset_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetName, bool allowUnparsed, out AssetName result) - { - gax::GaxPreconditions.CheckNotNull(assetName, nameof(assetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAsset.TryParseName(assetName, out resourceName)) - { - result = FromCustomerAsset(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AssetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetId = assetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/assets/{asset_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - public AssetName(string customerId, string assetId) : this(ResourceNameType.CustomerAsset, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Asset ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAsset: return s_customerAsset.Expand(CustomerId, AssetId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetName); - - /// - public bool Equals(AssetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetName a, AssetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetName a, AssetName b) => !(a == b); - } - - public partial class Asset - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetName ResourceNameAsAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetName AssetName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AssetName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetService.g.cs b/Google.Ads.GoogleAds/src/V12/AssetService.g.cs deleted file mode 100755 index 1a338884b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetService.g.cs +++ /dev/null @@ -1,1260 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/asset_service.proto - public static partial class AssetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/asset_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfc2Vy", - "dmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "Gjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVzcG9uc2VfY29u", - "dGVudF90eXBlLnByb3RvGi5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL2Fzc2V0LnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnBy", - "b3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVs", - "ZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxog", - "Z29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMv", - "c3RhdHVzLnByb3RvIpcCChNNdXRhdGVBc3NldHNSZXF1ZXN0EhgKC2N1c3Rv", - "bWVyX2lkGAEgASgJQgPgQQISSgoKb3BlcmF0aW9ucxgCIAMoCzIxLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Bc3NldE9wZXJhdGlvbkID", - "4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgFIAEoCBJqChVyZXNwb25zZV9jb250", - "ZW50X3R5cGUYAyABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlw", - "ZRIVCg12YWxpZGF0ZV9vbmx5GAQgASgIIsgBCg5Bc3NldE9wZXJhdGlvbhIv", - "Cgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1h", - "c2sSOwoGY3JlYXRlGAEgASgLMikuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcy5Bc3NldEgAEjsKBnVwZGF0ZRgCIAEoCzIpLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQXNzZXRIAEILCglvcGVyYXRp", - "b24ikAEKFE11dGF0ZUFzc2V0c1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVy", - "ZV9lcnJvchgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEkUKB3Jlc3VsdHMY", - "AiADKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0", - "YXRlQXNzZXRSZXN1bHQiiQEKEU11dGF0ZUFzc2V0UmVzdWx0EjoKDXJlc291", - "cmNlX25hbWUYASABKAlCI/pBIAoeZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0Fzc2V0EjgKBWFzc2V0GAIgASgLMikuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnJlc291cmNlcy5Bc3NldDKpAgoMQXNzZXRTZXJ2aWNlEtEBCgxNdXRh", - "dGVBc3NldHMSNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQXNzZXRzUmVxdWVzdBo3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVBc3NldHNSZXNwb25zZSJQgtPkkwIxIiwvdjEy", - "L2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vYXNzZXRzOm11dGF0ZToBKtpB", - "FmN1c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3", - "b3Jkc0L9AQolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "c0IRQXNzZXRTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2Vu", - "cHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztz", - "ZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2", - "aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ResponseContentType", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AssetOperation), global::Google.Ads.GoogleAds.V12.Services.AssetOperation.Parser, new[]{ "UpdateMask", "Create", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAssetsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult), global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult.Parser, new[]{ "ResourceName", "Asset" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AssetService.MutateAssets][google.ads.googleads.v12.services.AssetService.MutateAssets] - /// - public sealed partial class MutateAssetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetsRequest(MutateAssetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - responseContentType_ = other.responseContentType_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetsRequest Clone() { - return new MutateAssetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose assets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AssetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 5; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ResponseContentType != other.ResponseContentType) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ResponseContentType); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (PartialFailure != false) { - output.WriteRawTag(40); - output.WriteBool(PartialFailure); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ResponseContentType); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (PartialFailure != false) { - output.WriteRawTag(40); - output.WriteBool(PartialFailure); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - PartialFailure = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - PartialFailure = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation to create an asset. Supported asset types are - /// YoutubeVideoAsset, MediaBundleAsset, ImageAsset, and LeadFormAsset. TextAsset - /// should be created with Ad inline. - /// - public sealed partial class AssetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetOperation(AssetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetOperation Clone() { - return new AssetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Asset Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.Asset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The asset is expected to have a valid resource name in - /// this format: - /// - /// `customers/{customer_id}/assets/{asset_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Asset Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.Asset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Asset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Asset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Asset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Asset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an asset mutate. - /// - public sealed partial class MutateAssetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetsResponse(MutateAssetsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetsResponse Clone() { - return new MutateAssetsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the asset mutate. - /// - public sealed partial class MutateAssetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetResult(MutateAssetResult other) : this() { - resourceName_ = other.resourceName_; - asset_ = other.asset_ != null ? other.asset_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetResult Clone() { - return new MutateAssetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// The resource name returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Asset asset_; - /// - /// The mutated asset with only mutable fields after mutate. The field will - /// only be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Asset Asset { - get { return asset_; } - set { - asset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(Asset, other.Asset)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (asset_ != null) hash ^= Asset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (asset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (asset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (asset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Asset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.asset_ != null) { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - Asset.MergeFrom(other.Asset); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - input.ReadMessage(Asset); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - input.ReadMessage(Asset); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AssetServiceClient.g.cs deleted file mode 100755 index d0e70cace..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetServiceClient.g.cs +++ /dev/null @@ -1,592 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AssetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AssetServiceSettings GetDefault() => new AssetServiceSettings(); - - /// Constructs a new object with default settings. - public AssetServiceSettings() - { - } - - private AssetServiceSettings(AssetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAssetsSettings = existing.MutateAssetsSettings; - OnCopy(existing); - } - - partial void OnCopy(AssetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AssetServiceClient.MutateAssets and AssetServiceClient.MutateAssetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAssetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AssetServiceSettings Clone() => new AssetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint etc. - /// - internal sealed partial class AssetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AssetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AssetServiceClientBuilder() : base(AssetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AssetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AssetServiceClient Build() - { - AssetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AssetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AssetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AssetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AssetServiceClient.ChannelPool; - } - - /// AssetService client wrapper, for convenient use. - /// - /// Service to manage assets. Asset types can be created with AssetService are - /// YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - /// created with Ad inline. - /// - public abstract partial class AssetServiceClient - { - /// - /// The default endpoint for the AssetService service, which is a host of "googleads.googleapis.com" and a port - /// of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AssetService scopes. - /// - /// The default AssetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AssetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AssetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static AssetServiceClient Create() => new AssetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AssetServiceClient Create(grpccore::CallInvoker callInvoker, AssetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AssetService.AssetServiceClient grpcClient = new AssetService.AssetServiceClient(callInvoker); - return new AssetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AssetService client - public virtual AssetService.AssetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetsResponse MutateAssets(MutateAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetsAsync(MutateAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetsAsync(MutateAssetsRequest request, st::CancellationToken cancellationToken) => - MutateAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// - /// Required. The ID of the customer whose assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual assets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetsResponse MutateAssets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssets(new MutateAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// - /// Required. The ID of the customer whose assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual assets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetsAsync(new MutateAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// - /// Required. The ID of the customer whose assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual assets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAssetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AssetService client wrapper implementation, for convenient use. - /// - /// Service to manage assets. Asset types can be created with AssetService are - /// YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - /// created with Ad inline. - /// - public sealed partial class AssetServiceClientImpl : AssetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAssets; - - /// - /// Constructs a client wrapper for the AssetService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AssetServiceClientImpl(AssetService.AssetServiceClient grpcClient, AssetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AssetServiceSettings effectiveSettings = settings ?? AssetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAssets = clientHelper.BuildApiCall("MutateAssets", grpcClient.MutateAssetsAsync, grpcClient.MutateAssets, effectiveSettings.MutateAssetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAssets); - Modify_MutateAssetsApiCall(ref _callMutateAssets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAssetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AssetService.AssetServiceClient grpcClient, AssetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AssetService client - public override AssetService.AssetServiceClient GrpcClient { get; } - - partial void Modify_MutateAssetsRequest(ref MutateAssetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAssetsResponse MutateAssets(MutateAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetsRequest(ref request, ref callSettings); - return _callMutateAssets.Sync(request, callSettings); - } - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAssetsAsync(MutateAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetsRequest(ref request, ref callSettings); - return _callMutateAssets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AssetServiceGrpc.g.cs deleted file mode 100755 index 641fcf008..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetServiceGrpc.g.cs +++ /dev/null @@ -1,354 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage assets. Asset types can be created with AssetService are - /// YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - /// created with Ad inline. - /// - public static partial class AssetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AssetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAssets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAssets", - __Marshaller_google_ads_googleads_v12_services_MutateAssetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAssetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AssetService - [grpc::BindServiceMethod(typeof(AssetService), "BindService")] - public abstract partial class AssetServiceBase - { - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AssetService - public partial class AssetServiceClient : grpc::ClientBase - { - /// Creates a new client for AssetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AssetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetsResponse MutateAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetsResponse MutateAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAssets, null, options, request); - } - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates assets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAssets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AssetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AssetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AssetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAssets, serviceImpl.MutateAssets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAssets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AssetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetServiceResourceNames.g.cs deleted file mode 100755 index d5bc4ec9c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetServiceResourceNames.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateAssetResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetName ResourceNameAsAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSet.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSet.g.cs deleted file mode 100755 index f2b6bc8e2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSet.g.cs +++ /dev/null @@ -1,979 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_set.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_set.proto - public static partial class AssetSetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_set.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X3Nl", - "dC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcxo1", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9hc3NldF9zZXRfdHlw", - "ZXMucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hc3Nl", - "dF9zZXRfc3RhdHVzLnByb3RvGjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMvYXNzZXRfc2V0X3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRf", - "YmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i/QYK", - "CEFzc2V0U2V0Eg8KAmlkGAYgASgDQgPgQQMSQAoNcmVzb3VyY2VfbmFtZRgB", - "IAEoCUIp4EEF+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRT", - "ZXQSEQoEbmFtZRgCIAEoCUID4EECElMKBHR5cGUYAyABKA4yPS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRTZXRUeXBlRW51bS5Bc3Nl", - "dFNldFR5cGVCBuBBAuBBBRJWCgZzdGF0dXMYBCABKA4yQS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRTZXRTdGF0dXNFbnVtLkFzc2V0", - "U2V0U3RhdHVzQgPgQQMSXQoUbWVyY2hhbnRfY2VudGVyX2ZlZWQYBSABKAsy", - "Py5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFzc2V0U2V0", - "Lk1lcmNoYW50Q2VudGVyRmVlZBIvCiJsb2NhdGlvbl9ncm91cF9wYXJlbnRf", - "YXNzZXRfc2V0X2lkGAogASgDQgPgQQUSRAoMbG9jYXRpb25fc2V0GAcgASgL", - "MiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Mb2NhdGlvblNl", - "dEgAEmgKH2J1c2luZXNzX3Byb2ZpbGVfbG9jYXRpb25fZ3JvdXAYCCABKAsy", - "PS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkJ1c2luZXNzUHJv", - "ZmlsZUxvY2F0aW9uR3JvdXBIABJTChRjaGFpbl9sb2NhdGlvbl9ncm91cBgJ", - "IAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQ2hhaW5M", - "b2NhdGlvbkdyb3VwSAAaWwoSTWVyY2hhbnRDZW50ZXJGZWVkEhgKC21lcmNo", - "YW50X2lkGAEgASgDQgPgQQISHAoKZmVlZF9sYWJlbBgCIAEoCUID4EEBSACI", - "AQFCDQoLX2ZlZWRfbGFiZWw6WOpBVQohZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0Fzc2V0U2V0EjBjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9hc3NldFNl", - "dHMve2Fzc2V0X3NldF9pZH1CEgoQYXNzZXRfc2V0X3NvdXJjZUL/AQomY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCDUFzc2V0U2V0", - "UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FB", - "qgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetSet), global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Parser, new[]{ "Id", "ResourceName", "Name", "Type", "Status", "MerchantCenterFeed", "LocationGroupParentAssetSetId", "LocationSet", "BusinessProfileLocationGroup", "ChainLocationGroup" }, new[]{ "AssetSetSource" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Types.MerchantCenterFeed), global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Types.MerchantCenterFeed.Parser, new[]{ "MerchantId", "FeedLabel" }, new[]{ "FeedLabel" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// An asset set representing a collection of assets. - /// Use AssetSetAsset to link an asset to the asset set. - /// - public sealed partial class AssetSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetSetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSet(AssetSet other) : this() { - id_ = other.id_; - resourceName_ = other.resourceName_; - name_ = other.name_; - type_ = other.type_; - status_ = other.status_; - merchantCenterFeed_ = other.merchantCenterFeed_ != null ? other.merchantCenterFeed_.Clone() : null; - locationGroupParentAssetSetId_ = other.locationGroupParentAssetSetId_; - switch (other.AssetSetSourceCase) { - case AssetSetSourceOneofCase.LocationSet: - LocationSet = other.LocationSet.Clone(); - break; - case AssetSetSourceOneofCase.BusinessProfileLocationGroup: - BusinessProfileLocationGroup = other.BusinessProfileLocationGroup.Clone(); - break; - case AssetSetSourceOneofCase.ChainLocationGroup: - ChainLocationGroup = other.ChainLocationGroup.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSet Clone() { - return new AssetSet(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 6; - private long id_; - /// - /// Output only. The ID of the asset set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the asset set. - /// Asset set resource names have the form: - /// - /// `customers/{customer_id}/assetSets/{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 2; - private string name_ = ""; - /// - /// Required. Name of the asset set. Required. It must have a minimum length of 1 and - /// maximum length of 128. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType type_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified; - /// - /// Required. Immutable. The type of the asset set. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus.Unspecified; - /// - /// Output only. The status of the asset set. Read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "merchant_center_feed" field. - public const int MerchantCenterFeedFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Types.MerchantCenterFeed merchantCenterFeed_; - /// - /// Merchant ID and Feed Label from Google Merchant Center. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Types.MerchantCenterFeed MerchantCenterFeed { - get { return merchantCenterFeed_; } - set { - merchantCenterFeed_ = value; - } - } - - /// Field number for the "location_group_parent_asset_set_id" field. - public const int LocationGroupParentAssetSetIdFieldNumber = 10; - private long locationGroupParentAssetSetId_; - /// - /// Immutable. Parent asset set id for the asset set where the elements of this asset set - /// come from. For example: the sync level location AssetSet id where the - /// the elements in LocationGroup AssetSet come from. This field is required - /// and only applicable for Location Group typed AssetSet. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long LocationGroupParentAssetSetId { - get { return locationGroupParentAssetSetId_; } - set { - locationGroupParentAssetSetId_ = value; - } - } - - /// Field number for the "location_set" field. - public const int LocationSetFieldNumber = 7; - /// - /// Location asset set data. This will be used for sync level location - /// set. This can only be set if AssetSet's type is LOCATION_SYNC. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationSet LocationSet { - get { return assetSetSourceCase_ == AssetSetSourceOneofCase.LocationSet ? (global::Google.Ads.GoogleAds.V12.Common.LocationSet) assetSetSource_ : null; } - set { - assetSetSource_ = value; - assetSetSourceCase_ = value == null ? AssetSetSourceOneofCase.None : AssetSetSourceOneofCase.LocationSet; - } - } - - /// Field number for the "business_profile_location_group" field. - public const int BusinessProfileLocationGroupFieldNumber = 8; - /// - /// Business Profile location group asset set data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup BusinessProfileLocationGroup { - get { return assetSetSourceCase_ == AssetSetSourceOneofCase.BusinessProfileLocationGroup ? (global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup) assetSetSource_ : null; } - set { - assetSetSource_ = value; - assetSetSourceCase_ = value == null ? AssetSetSourceOneofCase.None : AssetSetSourceOneofCase.BusinessProfileLocationGroup; - } - } - - /// Field number for the "chain_location_group" field. - public const int ChainLocationGroupFieldNumber = 9; - /// - /// Represents information about a Chain dynamic location group. - /// Only applicable if the sync level AssetSet's type is LOCATION_SYNC and - /// sync source is chain. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup ChainLocationGroup { - get { return assetSetSourceCase_ == AssetSetSourceOneofCase.ChainLocationGroup ? (global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup) assetSetSource_ : null; } - set { - assetSetSource_ = value; - assetSetSourceCase_ = value == null ? AssetSetSourceOneofCase.None : AssetSetSourceOneofCase.ChainLocationGroup; - } - } - - private object assetSetSource_; - /// Enum of possible cases for the "asset_set_source" oneof. - public enum AssetSetSourceOneofCase { - None = 0, - LocationSet = 7, - BusinessProfileLocationGroup = 8, - ChainLocationGroup = 9, - } - private AssetSetSourceOneofCase assetSetSourceCase_ = AssetSetSourceOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetSourceOneofCase AssetSetSourceCase { - get { return assetSetSourceCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAssetSetSource() { - assetSetSourceCase_ = AssetSetSourceOneofCase.None; - assetSetSource_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (ResourceName != other.ResourceName) return false; - if (Name != other.Name) return false; - if (Type != other.Type) return false; - if (Status != other.Status) return false; - if (!object.Equals(MerchantCenterFeed, other.MerchantCenterFeed)) return false; - if (LocationGroupParentAssetSetId != other.LocationGroupParentAssetSetId) return false; - if (!object.Equals(LocationSet, other.LocationSet)) return false; - if (!object.Equals(BusinessProfileLocationGroup, other.BusinessProfileLocationGroup)) return false; - if (!object.Equals(ChainLocationGroup, other.ChainLocationGroup)) return false; - if (AssetSetSourceCase != other.AssetSetSourceCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id != 0L) hash ^= Id.GetHashCode(); - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) hash ^= Type.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus.Unspecified) hash ^= Status.GetHashCode(); - if (merchantCenterFeed_ != null) hash ^= MerchantCenterFeed.GetHashCode(); - if (LocationGroupParentAssetSetId != 0L) hash ^= LocationGroupParentAssetSetId.GetHashCode(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.LocationSet) hash ^= LocationSet.GetHashCode(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.BusinessProfileLocationGroup) hash ^= BusinessProfileLocationGroup.GetHashCode(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.ChainLocationGroup) hash ^= ChainLocationGroup.GetHashCode(); - hash ^= (int) assetSetSourceCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (merchantCenterFeed_ != null) { - output.WriteRawTag(42); - output.WriteMessage(MerchantCenterFeed); - } - if (Id != 0L) { - output.WriteRawTag(48); - output.WriteInt64(Id); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.LocationSet) { - output.WriteRawTag(58); - output.WriteMessage(LocationSet); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.BusinessProfileLocationGroup) { - output.WriteRawTag(66); - output.WriteMessage(BusinessProfileLocationGroup); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.ChainLocationGroup) { - output.WriteRawTag(74); - output.WriteMessage(ChainLocationGroup); - } - if (LocationGroupParentAssetSetId != 0L) { - output.WriteRawTag(80); - output.WriteInt64(LocationGroupParentAssetSetId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Name.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (merchantCenterFeed_ != null) { - output.WriteRawTag(42); - output.WriteMessage(MerchantCenterFeed); - } - if (Id != 0L) { - output.WriteRawTag(48); - output.WriteInt64(Id); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.LocationSet) { - output.WriteRawTag(58); - output.WriteMessage(LocationSet); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.BusinessProfileLocationGroup) { - output.WriteRawTag(66); - output.WriteMessage(BusinessProfileLocationGroup); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.ChainLocationGroup) { - output.WriteRawTag(74); - output.WriteMessage(ChainLocationGroup); - } - if (LocationGroupParentAssetSetId != 0L) { - output.WriteRawTag(80); - output.WriteInt64(LocationGroupParentAssetSetId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (merchantCenterFeed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MerchantCenterFeed); - } - if (LocationGroupParentAssetSetId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(LocationGroupParentAssetSetId); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.LocationSet) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocationSet); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.BusinessProfileLocationGroup) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BusinessProfileLocationGroup); - } - if (assetSetSourceCase_ == AssetSetSourceOneofCase.ChainLocationGroup) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChainLocationGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSet other) { - if (other == null) { - return; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - Type = other.Type; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus.Unspecified) { - Status = other.Status; - } - if (other.merchantCenterFeed_ != null) { - if (merchantCenterFeed_ == null) { - MerchantCenterFeed = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Types.MerchantCenterFeed(); - } - MerchantCenterFeed.MergeFrom(other.MerchantCenterFeed); - } - if (other.LocationGroupParentAssetSetId != 0L) { - LocationGroupParentAssetSetId = other.LocationGroupParentAssetSetId; - } - switch (other.AssetSetSourceCase) { - case AssetSetSourceOneofCase.LocationSet: - if (LocationSet == null) { - LocationSet = new global::Google.Ads.GoogleAds.V12.Common.LocationSet(); - } - LocationSet.MergeFrom(other.LocationSet); - break; - case AssetSetSourceOneofCase.BusinessProfileLocationGroup: - if (BusinessProfileLocationGroup == null) { - BusinessProfileLocationGroup = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup(); - } - BusinessProfileLocationGroup.MergeFrom(other.BusinessProfileLocationGroup); - break; - case AssetSetSourceOneofCase.ChainLocationGroup: - if (ChainLocationGroup == null) { - ChainLocationGroup = new global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup(); - } - ChainLocationGroup.MergeFrom(other.ChainLocationGroup); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus) input.ReadEnum(); - break; - } - case 42: { - if (merchantCenterFeed_ == null) { - MerchantCenterFeed = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Types.MerchantCenterFeed(); - } - input.ReadMessage(MerchantCenterFeed); - break; - } - case 48: { - Id = input.ReadInt64(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.LocationSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationSet(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.LocationSet) { - subBuilder.MergeFrom(LocationSet); - } - input.ReadMessage(subBuilder); - LocationSet = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.BusinessProfileLocationGroup) { - subBuilder.MergeFrom(BusinessProfileLocationGroup); - } - input.ReadMessage(subBuilder); - BusinessProfileLocationGroup = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.ChainLocationGroup) { - subBuilder.MergeFrom(ChainLocationGroup); - } - input.ReadMessage(subBuilder); - ChainLocationGroup = subBuilder; - break; - } - case 80: { - LocationGroupParentAssetSetId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Name = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus) input.ReadEnum(); - break; - } - case 42: { - if (merchantCenterFeed_ == null) { - MerchantCenterFeed = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Types.MerchantCenterFeed(); - } - input.ReadMessage(MerchantCenterFeed); - break; - } - case 48: { - Id = input.ReadInt64(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.LocationSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationSet(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.LocationSet) { - subBuilder.MergeFrom(LocationSet); - } - input.ReadMessage(subBuilder); - LocationSet = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.BusinessProfileLocationGroup) { - subBuilder.MergeFrom(BusinessProfileLocationGroup); - } - input.ReadMessage(subBuilder); - BusinessProfileLocationGroup = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup(); - if (assetSetSourceCase_ == AssetSetSourceOneofCase.ChainLocationGroup) { - subBuilder.MergeFrom(ChainLocationGroup); - } - input.ReadMessage(subBuilder); - ChainLocationGroup = subBuilder; - break; - } - case 80: { - LocationGroupParentAssetSetId = input.ReadInt64(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSet message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Merchant ID and Feed Label from Google Merchant Center. - /// - public sealed partial class MerchantCenterFeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MerchantCenterFeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetSet.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MerchantCenterFeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MerchantCenterFeed(MerchantCenterFeed other) : this() { - merchantId_ = other.merchantId_; - feedLabel_ = other.feedLabel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MerchantCenterFeed Clone() { - return new MerchantCenterFeed(this); - } - - /// Field number for the "merchant_id" field. - public const int MerchantIdFieldNumber = 1; - private long merchantId_; - /// - /// Required. Merchant ID from Google Merchant Center - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MerchantId { - get { return merchantId_; } - set { - merchantId_ = value; - } - } - - /// Field number for the "feed_label" field. - public const int FeedLabelFieldNumber = 2; - private string feedLabel_; - /// - /// Optional. Feed Label from Google Merchant Center. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedLabel { - get { return feedLabel_ ?? ""; } - set { - feedLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed_label" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeedLabel { - get { return feedLabel_ != null; } - } - /// Clears the value of the "feed_label" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeedLabel() { - feedLabel_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MerchantCenterFeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MerchantCenterFeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MerchantId != other.MerchantId) return false; - if (FeedLabel != other.FeedLabel) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MerchantId != 0L) hash ^= MerchantId.GetHashCode(); - if (HasFeedLabel) hash ^= FeedLabel.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MerchantId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(MerchantId); - } - if (HasFeedLabel) { - output.WriteRawTag(18); - output.WriteString(FeedLabel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MerchantId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(MerchantId); - } - if (HasFeedLabel) { - output.WriteRawTag(18); - output.WriteString(FeedLabel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MerchantId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MerchantId); - } - if (HasFeedLabel) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedLabel); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MerchantCenterFeed other) { - if (other == null) { - return; - } - if (other.MerchantId != 0L) { - MerchantId = other.MerchantId; - } - if (other.HasFeedLabel) { - FeedLabel = other.FeedLabel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - MerchantId = input.ReadInt64(); - break; - } - case 18: { - FeedLabel = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - MerchantId = input.ReadInt64(); - break; - } - case 18: { - FeedLabel = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAsset.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAsset.g.cs deleted file mode 100755 index 4e52f6f69..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAsset.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_set_asset.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_set_asset.proto - public static partial class AssetSetAssetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_set_asset.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetAssetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X3Nl", - "dF9hc3NldC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fzc2V0X3Nl", - "dF9hc3NldF9zdGF0dXMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZp", - "b3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8inAMKDUFzc2V0", - "U2V0QXNzZXQSRQoNcmVzb3VyY2VfbmFtZRgBIAEoCUIu4EEF+kEoCiZnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRTZXRBc3NldBI8Cglhc3NldF9z", - "ZXQYAiABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fz", - "c2V0U2V0EjUKBWFzc2V0GAMgASgJQibgQQX6QSAKHmdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9Bc3NldBJgCgZzdGF0dXMYBCABKA4ySy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRTZXRBc3NldFN0YXR1c0VudW0u", - "QXNzZXRTZXRBc3NldFN0YXR1c0ID4EEDOm3qQWoKJmdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9Bc3NldFNldEFzc2V0EkBjdXN0b21lcnMve2N1c3RvbWVy", - "X2lkfS9hc3NldFNldEFzc2V0cy97YXNzZXRfc2V0X2lkfX57YXNzZXRfaWR9", - "QoQCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0IS", - "QXNzZXRTZXRBc3NldFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset), global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset.Parser, new[]{ "ResourceName", "AssetSet", "Asset", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// AssetSetAsset is the link between an asset and an asset set. - /// Adding an AssetSetAsset links an asset with an asset set. - /// - public sealed partial class AssetSetAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetSetAssetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAsset(AssetSetAsset other) : this() { - resourceName_ = other.resourceName_; - assetSet_ = other.assetSet_; - asset_ = other.asset_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAsset Clone() { - return new AssetSetAsset(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the asset set asset. - /// Asset set asset resource names have the form: - /// - /// `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_set" field. - public const int AssetSetFieldNumber = 2; - private string assetSet_ = ""; - /// - /// Immutable. The asset set which this asset set asset is linking to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetSet { - get { return assetSet_; } - set { - assetSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 3; - private string asset_ = ""; - /// - /// Immutable. The asset which this asset set asset is linking to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus.Unspecified; - /// - /// Output only. The status of the asset set asset. Read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AssetSet != other.AssetSet) return false; - if (Asset != other.Asset) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AssetSet.Length != 0) hash ^= AssetSet.GetHashCode(); - if (Asset.Length != 0) hash ^= Asset.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetSet); - } - if (Asset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Asset); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetSet); - } - if (Asset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Asset); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AssetSet.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetSet); - } - if (Asset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetAsset other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AssetSet.Length != 0) { - AssetSet = other.AssetSet; - } - if (other.Asset.Length != 0) { - Asset = other.Asset; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetSet = input.ReadString(); - break; - } - case 26: { - Asset = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetSet = input.ReadString(); - break; - } - case 26: { - Asset = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAssetError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAssetError.g.cs deleted file mode 100755 index edea19048..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAssetError.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_set_asset_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_set_asset_error.proto - public static partial class AssetSetAssetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_set_asset_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetAssetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X3NldF9h", - "c3NldF9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVy", - "cm9ycyLAAQoWQXNzZXRTZXRBc3NldEVycm9yRW51bSKlAQoSQXNzZXRTZXRB", - "c3NldEVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhYKEklO", - "VkFMSURfQVNTRVRfVFlQRRACEhoKFklOVkFMSURfQVNTRVRfU0VUX1RZUEUQ", - "AxIaChZEVVBMSUNBVEVfRVhURVJOQUxfS0VZEAQSIQodUEFSRU5UX0xJTktB", - "R0VfRE9FU19OT1RfRVhJU1QQBUL3AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnNCF0Fzc2V0U2V0QXNzZXRFcnJvclByb3RvUAFaRWdv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "RXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorEnum.Types.AssetSetAssetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset set asset errors. - /// - public sealed partial class AssetSetAssetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetAssetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetErrorEnum(AssetSetAssetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetErrorEnum Clone() { - return new AssetSetAssetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetAssetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetAssetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetAssetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSetAssetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset set asset errors. - /// - public enum AssetSetAssetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The asset type is not eligible to be linked to the specific type of asset - /// set. - /// - [pbr::OriginalName("INVALID_ASSET_TYPE")] InvalidAssetType = 2, - /// - /// The asset set type is not eligible to contain the specified type of - /// assets. - /// - [pbr::OriginalName("INVALID_ASSET_SET_TYPE")] InvalidAssetSetType = 3, - /// - /// The asset contains duplicate external key with another asset in the asset - /// set. - /// - [pbr::OriginalName("DUPLICATE_EXTERNAL_KEY")] DuplicateExternalKey = 4, - /// - /// When attaching a Location typed Asset to a LocationGroup typed AssetSet, - /// the AssetSetAsset linkage between the parent LocationSync AssetSet and - /// the Asset doesn't exist. - /// - [pbr::OriginalName("PARENT_LINKAGE_DOES_NOT_EXIST")] ParentLinkageDoesNotExist = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAssetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAssetResourceNames.g.cs deleted file mode 100755 index e4abfca44..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAssetResourceNames.g.cs +++ /dev/null @@ -1,314 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetSetAsset resource. - public sealed partial class AssetSetAssetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}. - /// - CustomerAssetSetAsset = 1, - } - - private static gax::PathTemplate s_customerAssetSetAsset = new gax::PathTemplate("customers/{customer_id}/assetSetAssets/{asset_set_id_asset_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetSetAssetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetSetAssetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetSetAssetName FromCustomerAssetSetAsset(string customerId, string assetSetId, string assetId) => - new AssetSetAssetName(ResourceNameType.CustomerAssetSetAsset, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}. - /// - public static string Format(string customerId, string assetSetId, string assetId) => - FormatCustomerAssetSetAsset(customerId, assetSetId, assetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}. - /// - public static string FormatCustomerAssetSetAsset(string customerId, string assetSetId, string assetId) => - s_customerAssetSetAsset.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetSetAssetName Parse(string assetSetAssetName) => Parse(assetSetAssetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetSetAssetName Parse(string assetSetAssetName, bool allowUnparsed) => - TryParse(assetSetAssetName, allowUnparsed, out AssetSetAssetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetSetAssetName, out AssetSetAssetName result) => - TryParse(assetSetAssetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetSetAssetName, bool allowUnparsed, out AssetSetAssetName result) - { - gax::GaxPreconditions.CheckNotNull(assetSetAssetName, nameof(assetSetAssetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetSetAsset.TryParseName(assetSetAssetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAssetSetAsset(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetSetAssetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private AssetSetAssetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetId = null, string assetSetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetId = assetId; - AssetSetId = assetSetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - public AssetSetAssetName(string customerId, string assetSetId, string assetId) : this(ResourceNameType.CustomerAssetSetAsset, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Asset ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetId { get; } - - /// - /// The AssetSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetSetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetSetAsset: return s_customerAssetSetAsset.Expand(CustomerId, $"{AssetSetId}~{AssetId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetSetAssetName); - - /// - public bool Equals(AssetSetAssetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetSetAssetName a, AssetSetAssetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetSetAssetName a, AssetSetAssetName b) => !(a == b); - } - - public partial class AssetSetAsset - { - /// - /// -typed view over the resource name property. - /// - internal AssetSetAssetName ResourceNameAsAssetSetAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AssetSetAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetSetName AssetSetAsAssetSetName - { - get => string.IsNullOrEmpty(AssetSet) ? null : AssetSetName.Parse(AssetSet, allowUnparsed: true); - set => AssetSet = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAssetService.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAssetService.g.cs deleted file mode 100755 index a8a581426..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAssetService.g.cs +++ /dev/null @@ -1,1199 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_set_asset_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/asset_set_asset_service.proto - public static partial class AssetSetAssetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/asset_set_asset_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetAssetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfc2V0", - "X2Fzc2V0X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jl", - "c3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcy9hc3NldF9zZXRfYXNzZXQucHJvdG8aHGdvb2ds", - "ZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnBy", - "b3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKn", - "AgobTXV0YXRlQXNzZXRTZXRBc3NldHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lk", - "GAEgASgJQgPgQQISUgoKb3BlcmF0aW9ucxgCIAMoCzI5Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Bc3NldFNldEFzc2V0T3BlcmF0aW9u", - "QgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29u", - "bHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5", - "cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUiqQEKFkFzc2V0U2V0QXNzZXRP", - "cGVyYXRpb24SQwoGY3JlYXRlGAEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5Bc3NldFNldEFzc2V0SAASPQoGcmVtb3ZlGAIg", - "ASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldFNldEFz", - "c2V0SABCCwoJb3BlcmF0aW9uIqABChxNdXRhdGVBc3NldFNldEFzc2V0c1Jl", - "c3BvbnNlEk0KB3Jlc3VsdHMYASADKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQXNzZXRTZXRBc3NldFJlc3VsdBIxChVw", - "YXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1", - "cyKrAQoZTXV0YXRlQXNzZXRTZXRBc3NldFJlc3VsdBJCCg1yZXNvdXJjZV9u", - "YW1lGAEgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3Nl", - "dFNldEFzc2V0EkoKD2Fzc2V0X3NldF9hc3NldBgCIAEoCzIxLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQXNzZXRTZXRBc3NldDLRAgoU", - "QXNzZXRTZXRBc3NldFNlcnZpY2US8QEKFE11dGF0ZUFzc2V0U2V0QXNzZXRz", - "Ej4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFz", - "c2V0U2V0QXNzZXRzUmVxdWVzdBo/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVBc3NldFNldEFzc2V0c1Jlc3BvbnNlIliC0+ST", - "AjkiNC92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9hc3NldFNldEFz", - "c2V0czptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVh", - "cGlzLmNvbS9hdXRoL2Fkd29yZHNChQIKJWNvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXNCGUFzc2V0U2V0QXNzZXRTZXJ2aWNlUHJvdG9Q", - "AVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetSetAssetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation), global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult), global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult.Parser, new[]{ "ResourceName", "AssetSetAsset" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AssetSetAssetService.MutateAssetSetAssets][google.ads.googleads.v12.services.AssetSetAssetService.MutateAssetSetAssets]. - /// - public sealed partial class MutateAssetSetAssetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetSetAssetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetsRequest(MutateAssetSetAssetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetsRequest Clone() { - return new MutateAssetSetAssetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose asset set assets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual asset set assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetSetAssetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetSetAssetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetSetAssetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an asset set asset. - /// - public sealed partial class AssetSetAssetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetAssetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetOperation(AssetSetAssetOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetOperation Clone() { - return new AssetSetAssetOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new asset set - /// asset - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed asset set asset is - /// expected, in this format: - /// `customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetAssetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetAssetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetAssetOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an asset set asset mutate. - /// - public sealed partial class MutateAssetSetAssetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetSetAssetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetsResponse(MutateAssetSetAssetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetsResponse Clone() { - return new MutateAssetSetAssetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetSetAssetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetSetAssetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetSetAssetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the asset set asset mutate. - /// - public sealed partial class MutateAssetSetAssetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetSetAssetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetResult(MutateAssetSetAssetResult other) : this() { - resourceName_ = other.resourceName_; - assetSetAsset_ = other.assetSetAsset_ != null ? other.assetSetAsset_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetAssetResult Clone() { - return new MutateAssetSetAssetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_set_asset" field. - public const int AssetSetAssetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset assetSetAsset_; - /// - /// The mutated asset set asset with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset AssetSetAsset { - get { return assetSetAsset_; } - set { - assetSetAsset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetSetAssetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetSetAssetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AssetSetAsset, other.AssetSetAsset)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (assetSetAsset_ != null) hash ^= AssetSetAsset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetSetAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetSetAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetSetAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetSetAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (assetSetAsset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AssetSetAsset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetSetAssetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.assetSetAsset_ != null) { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - AssetSetAsset.MergeFrom(other.AssetSetAsset); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - input.ReadMessage(AssetSetAsset); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - input.ReadMessage(AssetSetAsset); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceClient.g.cs deleted file mode 100755 index e5c795afa..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceClient.g.cs +++ /dev/null @@ -1,370 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AssetSetAssetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AssetSetAssetServiceSettings GetDefault() => new AssetSetAssetServiceSettings(); - - /// Constructs a new object with default settings. - public AssetSetAssetServiceSettings() - { - } - - private AssetSetAssetServiceSettings(AssetSetAssetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAssetSetAssetsSettings = existing.MutateAssetSetAssetsSettings; - OnCopy(existing); - } - - partial void OnCopy(AssetSetAssetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AssetSetAssetServiceClient.MutateAssetSetAssets and - /// AssetSetAssetServiceClient.MutateAssetSetAssetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAssetSetAssetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AssetSetAssetServiceSettings Clone() => new AssetSetAssetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AssetSetAssetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AssetSetAssetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AssetSetAssetServiceClientBuilder() : base(AssetSetAssetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AssetSetAssetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AssetSetAssetServiceClient Build() - { - AssetSetAssetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AssetSetAssetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AssetSetAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AssetSetAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AssetSetAssetServiceClient.ChannelPool; - } - - /// AssetSetAssetService client wrapper, for convenient use. - /// - /// Service to manage asset set asset. - /// - public abstract partial class AssetSetAssetServiceClient - { - /// - /// The default endpoint for the AssetSetAssetService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AssetSetAssetService scopes. - /// - /// The default AssetSetAssetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AssetSetAssetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AssetSetAssetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AssetSetAssetServiceClient Create() => new AssetSetAssetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AssetSetAssetServiceClient Create(grpccore::CallInvoker callInvoker, AssetSetAssetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AssetSetAssetService.AssetSetAssetServiceClient grpcClient = new AssetSetAssetService.AssetSetAssetServiceClient(callInvoker); - return new AssetSetAssetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AssetSetAssetService client - public virtual AssetSetAssetService.AssetSetAssetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetSetAssetsResponse MutateAssetSetAssets(MutateAssetSetAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetAssetsAsync(MutateAssetSetAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetAssetsAsync(MutateAssetSetAssetsRequest request, st::CancellationToken cancellationToken) => - MutateAssetSetAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset set assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset set assets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetSetAssetsResponse MutateAssetSetAssets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetSetAssets(new MutateAssetSetAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset set assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset set assets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetAssetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetSetAssetsAsync(new MutateAssetSetAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset set assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset set assets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetAssetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAssetSetAssetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AssetSetAssetService client wrapper implementation, for convenient use. - /// - /// Service to manage asset set asset. - /// - public sealed partial class AssetSetAssetServiceClientImpl : AssetSetAssetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAssetSetAssets; - - /// - /// Constructs a client wrapper for the AssetSetAssetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AssetSetAssetServiceClientImpl(AssetSetAssetService.AssetSetAssetServiceClient grpcClient, AssetSetAssetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AssetSetAssetServiceSettings effectiveSettings = settings ?? AssetSetAssetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAssetSetAssets = clientHelper.BuildApiCall("MutateAssetSetAssets", grpcClient.MutateAssetSetAssetsAsync, grpcClient.MutateAssetSetAssets, effectiveSettings.MutateAssetSetAssetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAssetSetAssets); - Modify_MutateAssetSetAssetsApiCall(ref _callMutateAssetSetAssets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAssetSetAssetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AssetSetAssetService.AssetSetAssetServiceClient grpcClient, AssetSetAssetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AssetSetAssetService client - public override AssetSetAssetService.AssetSetAssetServiceClient GrpcClient { get; } - - partial void Modify_MutateAssetSetAssetsRequest(ref MutateAssetSetAssetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAssetSetAssetsResponse MutateAssetSetAssets(MutateAssetSetAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetSetAssetsRequest(ref request, ref callSettings); - return _callMutateAssetSetAssets.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAssetSetAssetsAsync(MutateAssetSetAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetSetAssetsRequest(ref request, ref callSettings); - return _callMutateAssetSetAssets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceGrpc.g.cs deleted file mode 100755 index 77547726a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_set_asset_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage asset set asset. - /// - public static partial class AssetSetAssetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AssetSetAssetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetSetAssetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetSetAssetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAssetSetAssets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAssetSetAssets", - __Marshaller_google_ads_googleads_v12_services_MutateAssetSetAssetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAssetSetAssetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AssetSetAssetService - [grpc::BindServiceMethod(typeof(AssetSetAssetService), "BindService")] - public abstract partial class AssetSetAssetServiceBase - { - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAssetSetAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AssetSetAssetService - public partial class AssetSetAssetServiceClient : grpc::ClientBase - { - /// Creates a new client for AssetSetAssetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetSetAssetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AssetSetAssetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetSetAssetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetSetAssetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetSetAssetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsResponse MutateAssetSetAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetSetAssets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsResponse MutateAssetSetAssets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAssetSetAssets, null, options, request); - } - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetSetAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetSetAssetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset set assets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetSetAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAssetSetAssets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AssetSetAssetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AssetSetAssetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AssetSetAssetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAssetSetAssets, serviceImpl.MutateAssetSetAssets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetSetAssetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAssetSetAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAssetSetAssets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceResourceNames.g.cs deleted file mode 100755 index 660c5cdac..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAssetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AssetSetAssetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetSetAssetName RemoveAsAssetSetAssetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AssetSetAssetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAssetSetAssetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::AssetSetAssetName ResourceNameAsAssetSetAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetSetAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetAssetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetAssetStatus.g.cs deleted file mode 100755 index aa81b8b16..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetAssetStatus.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_set_asset_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_set_asset_status.proto - public static partial class AssetSetAssetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_set_asset_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetAssetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfc2V0X2Fz", - "c2V0X3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zImgKF0Fzc2V0U2V0QXNzZXRTdGF0dXNFbnVtIk0KE0Fzc2V0U2V0QXNz", - "ZXRTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHRU5B", - "QkxFRBACEgsKB1JFTU9WRUQQA0LyAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtc0IYQXNzZXRTZXRBc3NldFN0YXR1c1Byb3RvUAFaQ2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51", - "bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusEnum.Types.AssetSetAssetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of an asset set asset. - /// - public sealed partial class AssetSetAssetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetAssetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetSetAssetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetStatusEnum(AssetSetAssetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetAssetStatusEnum Clone() { - return new AssetSetAssetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetAssetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetAssetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetAssetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSetAssetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an asset set asset. - /// - public enum AssetSetAssetStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The asset set asset is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The asset set asset is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetError.g.cs deleted file mode 100755 index f5f78d937..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetError.g.cs +++ /dev/null @@ -1,271 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_set_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_set_error.proto - public static partial class AssetSetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_set_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X3NldF9l", - "cnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycyKS", - "AwoRQXNzZXRTZXRFcnJvckVudW0i/AIKDUFzc2V0U2V0RXJyb3ISDwoLVU5T", - "UEVDSUZJRUQQABILCgdVTktOT1dOEAESHAoYRFVQTElDQVRFX0FTU0VUX1NF", - "VF9OQU1FEAISIQodSU5WQUxJRF9QQVJFTlRfQVNTRVRfU0VUX1RZUEUQAxI3", - "CjNBU1NFVF9TRVRfU09VUkNFX0lOQ09NUEFUSUJMRV9XSVRIX1BBUkVOVF9B", - "U1NFVF9TRVQQBBIvCitBU1NFVF9TRVRfVFlQRV9DQU5OT1RfQkVfTElOS0VE", - "X1RPX0NVU1RPTUVSEAUSFQoRSU5WQUxJRF9DSEFJTl9JRFMQBhI+CjpMT0NB", - "VElPTl9TWU5DX0FTU0VUX1NFVF9ET0VTX05PVF9TVVBQT1JUX1JFTEFUSU9O", - "U0hJUF9UWVBFEAcSNAowTk9UX1VOSVFVRV9FTkFCTEVEX0xPQ0FUSU9OX1NZ", - "TkNfVFlQRURfQVNTRVRfU0VUEAgSFQoRSU5WQUxJRF9QTEFDRV9JRFMQCULy", - "AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCEkFzc2V0", - "U2V0RXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNH", - "QUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorEnum.Types.AssetSetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset set errors. - /// - public sealed partial class AssetSetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetErrorEnum(AssetSetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetErrorEnum Clone() { - return new AssetSetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset set errors. - /// - public enum AssetSetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The asset set name matches that of another enabled asset set. - /// - [pbr::OriginalName("DUPLICATE_ASSET_SET_NAME")] DuplicateAssetSetName = 2, - /// - /// The type of AssetSet.asset_set_source does not match the type of - /// AssetSet.location_set.source in its parent AssetSet. - /// - [pbr::OriginalName("INVALID_PARENT_ASSET_SET_TYPE")] InvalidParentAssetSetType = 3, - /// - /// The asset set source doesn't match its parent AssetSet's data. - /// - [pbr::OriginalName("ASSET_SET_SOURCE_INCOMPATIBLE_WITH_PARENT_ASSET_SET")] AssetSetSourceIncompatibleWithParentAssetSet = 4, - /// - /// This AssetSet type cannot be linked to CustomerAssetSet. - /// - [pbr::OriginalName("ASSET_SET_TYPE_CANNOT_BE_LINKED_TO_CUSTOMER")] AssetSetTypeCannotBeLinkedToCustomer = 5, - /// - /// The chain id(s) in ChainSet of a LOCATION_SYNC typed AssetSet is invalid. - /// - [pbr::OriginalName("INVALID_CHAIN_IDS")] InvalidChainIds = 6, - /// - /// The relationship type in ChainSet of a LOCATION_SYNC typed AssetSet is - /// not supported. - /// - [pbr::OriginalName("LOCATION_SYNC_ASSET_SET_DOES_NOT_SUPPORT_RELATIONSHIP_TYPE")] LocationSyncAssetSetDoesNotSupportRelationshipType = 7, - /// - /// There is more than one enabled LocationSync typed AssetSet under one - /// customer. - /// - [pbr::OriginalName("NOT_UNIQUE_ENABLED_LOCATION_SYNC_TYPED_ASSET_SET")] NotUniqueEnabledLocationSyncTypedAssetSet = 8, - /// - /// The place id(s) in a LocationSync typed AssetSet is invalid and can't be - /// decoded. - /// - [pbr::OriginalName("INVALID_PLACE_IDS")] InvalidPlaceIds = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetLinkError.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetLinkError.g.cs deleted file mode 100755 index 230ec6ba7..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetLinkError.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/asset_set_link_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/asset_set_link_error.proto - public static partial class AssetSetLinkErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/asset_set_link_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetLinkErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X3NldF9s", - "aW5rX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJy", - "b3JzIocCChVBc3NldFNldExpbmtFcnJvckVudW0i7QEKEUFzc2V0U2V0TGlu", - "a0Vycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEikKJUlOQ09N", - "UEFUSUJMRV9BRFZFUlRJU0lOR19DSEFOTkVMX1RZUEUQAhIXChNEVVBMSUNB", - "VEVfRkVFRF9MSU5LEAMSMgouSU5DT01QQVRJQkxFX0FTU0VUX1NFVF9UWVBF", - "X1dJVEhfQ0FNUEFJR05fVFlQRRAEEhwKGERVUExJQ0FURV9BU1NFVF9TRVRf", - "TElOSxAFEiQKIEFTU0VUX1NFVF9MSU5LX0NBTk5PVF9CRV9SRU1PVkVEEAZC", - "9gEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhZBc3Nl", - "dFNldExpbmtFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9y", - "c6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9H", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorEnum.Types.AssetSetLinkError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible asset set link errors. - /// - public sealed partial class AssetSetLinkErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetLinkErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetLinkErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetLinkErrorEnum(AssetSetLinkErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetLinkErrorEnum Clone() { - return new AssetSetLinkErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetLinkErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetLinkErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetLinkErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSetLinkErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible asset set link errors. - /// - public enum AssetSetLinkError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Advertising channel type cannot be attached to the asset set due to - /// channel-based restrictions. - /// - [pbr::OriginalName("INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE")] IncompatibleAdvertisingChannelType = 2, - /// - /// For this asset set type, only one campaign to feed linkage is allowed. - /// - [pbr::OriginalName("DUPLICATE_FEED_LINK")] DuplicateFeedLink = 3, - /// - /// The asset set type and campaign type are incompatible. - /// - [pbr::OriginalName("INCOMPATIBLE_ASSET_SET_TYPE_WITH_CAMPAIGN_TYPE")] IncompatibleAssetSetTypeWithCampaignType = 4, - /// - /// Cannot link duplicate asset sets to the same campaign. - /// - [pbr::OriginalName("DUPLICATE_ASSET_SET_LINK")] DuplicateAssetSetLink = 5, - /// - /// Cannot remove the asset set link. If a campaign is linked with only one - /// asset set and you attempt to unlink them, this error will be triggered. - /// - [pbr::OriginalName("ASSET_SET_LINK_CANNOT_BE_REMOVED")] AssetSetLinkCannotBeRemoved = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetLinkStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetLinkStatus.g.cs deleted file mode 100755 index 664a41125..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetLinkStatus.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_set_link_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_set_link_status.proto - public static partial class AssetSetLinkStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_set_link_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetLinkStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfc2V0X2xp", - "bmtfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMiZgoWQXNzZXRTZXRMaW5rU3RhdHVzRW51bSJMChJBc3NldFNldExpbmtT", - "dGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHRU5BQkxF", - "RBACEgsKB1JFTU9WRUQQA0LxAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtc0IXQXNzZXRTZXRMaW5rU3RhdHVzUHJvdG9QAVpDZ29vZ2xl", - "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oC", - "Ikdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of the linkage between asset - /// set and its container. - /// - public sealed partial class AssetSetLinkStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetLinkStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetLinkStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetLinkStatusEnum(AssetSetLinkStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetLinkStatusEnum Clone() { - return new AssetSetLinkStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetLinkStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetLinkStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetLinkStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSetLinkStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of the linkage between asset set and its container. - /// - public enum AssetSetLinkStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The linkage between asset set and its container is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The linkage between asset set and its container is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetResourceNames.g.cs deleted file mode 100755 index f764ebd9c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetResourceNames.g.cs +++ /dev/null @@ -1,261 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetSet resource. - public sealed partial class AssetSetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/assetSets/{asset_set_id}. - CustomerAssetSet = 1, - } - - private static gax::PathTemplate s_customerAssetSet = new gax::PathTemplate("customers/{customer_id}/assetSets/{asset_set_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetSetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetSetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/assetSets/{asset_set_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetSetName FromCustomerAssetSet(string customerId, string assetSetId) => - new AssetSetName(ResourceNameType.CustomerAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetSets/{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetSets/{asset_set_id}. - /// - public static string Format(string customerId, string assetSetId) => FormatCustomerAssetSet(customerId, assetSetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetSets/{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetSets/{asset_set_id}. - /// - public static string FormatCustomerAssetSet(string customerId, string assetSetId) => - s_customerAssetSet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSets/{asset_set_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetSetName Parse(string assetSetName) => Parse(assetSetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSets/{asset_set_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetSetName Parse(string assetSetName, bool allowUnparsed) => - TryParse(assetSetName, allowUnparsed, out AssetSetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSets/{asset_set_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetSetName, out AssetSetName result) => TryParse(assetSetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSets/{asset_set_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetSetName, bool allowUnparsed, out AssetSetName result) - { - gax::GaxPreconditions.CheckNotNull(assetSetName, nameof(assetSetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetSet.TryParseName(assetSetName, out resourceName)) - { - result = FromCustomerAssetSet(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetSetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AssetSetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetSetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetSetId = assetSetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/assetSets/{asset_set_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - public AssetSetName(string customerId, string assetSetId) : this(ResourceNameType.CustomerAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetSetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetSet: return s_customerAssetSet.Expand(CustomerId, AssetSetId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetSetName); - - /// - public bool Equals(AssetSetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetSetName a, AssetSetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetSetName a, AssetSetName b) => !(a == b); - } - - public partial class AssetSet - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetSetName ResourceNameAsAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetSetName AssetSetName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AssetSetName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetService.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetService.g.cs deleted file mode 100755 index ec1e91328..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetService.g.cs +++ /dev/null @@ -1,1304 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_set_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/asset_set_service.proto - public static partial class AssetSetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/asset_set_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfc2V0", - "X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jlc3BvbnNl", - "X2NvbnRlbnRfdHlwZS5wcm90bxoyZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9hc3NldF9zZXQucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3Rh", - "dGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUv", - "YXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNl", - "LnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxoXZ29v", - "Z2xlL3JwYy9zdGF0dXMucHJvdG8inQIKFk11dGF0ZUFzc2V0U2V0c1JlcXVl", - "c3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJNCgpvcGVyYXRpb25zGAIg", - "AygLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFzc2V0", - "U2V0T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUK", - "DXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBl", - "GAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3Bv", - "bnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUiiwIKEUFz", - "c2V0U2V0T3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQgASgLMhouZ29vZ2xl", - "LnByb3RvYnVmLkZpZWxkTWFzaxI+CgZjcmVhdGUYASABKAsyLC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFzc2V0U2V0SAASPgoGdXBk", - "YXRlGAIgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cy5Bc3NldFNldEgAEjgKBnJlbW92ZRgDIAEoCUIm+kEjCiFnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQXNzZXRTZXRIAEILCglvcGVyYXRpb24ilgEKF011", - "dGF0ZUFzc2V0U2V0c1Jlc3BvbnNlEkgKB3Jlc3VsdHMYASADKAsyNy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQXNzZXRTZXRS", - "ZXN1bHQSMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAIgASgLMhIuZ29vZ2xl", - "LnJwYy5TdGF0dXMilgEKFE11dGF0ZUFzc2V0U2V0UmVzdWx0Ej0KDXJlc291", - "cmNlX25hbWUYASABKAlCJvpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0Fzc2V0U2V0Ej8KCWFzc2V0X3NldBgCIAEoCzIsLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMuQXNzZXRTZXQyuAIKD0Fzc2V0U2V0U2Vy", - "dmljZRLdAQoPTXV0YXRlQXNzZXRTZXRzEjkuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0U2V0c1JlcXVlc3QaOi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQXNzZXRTZXRz", - "UmVzcG9uc2UiU4LT5JMCNCIvL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lk", - "PSp9L2Fzc2V0U2V0czptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCgAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCFEFzc2V0U2V0U2VydmljZVBy", - "b3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetSetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation), global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult), global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult.Parser, new[]{ "ResourceName", "AssetSet" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AssetSetService.MutateAssetSets][google.ads.googleads.v12.services.AssetSetService.MutateAssetSets]. - /// - public sealed partial class MutateAssetSetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetSetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetsRequest(MutateAssetSetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetsRequest Clone() { - return new MutateAssetSetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose asset sets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual asset sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetSetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetSetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetSetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an asset set. - /// - public sealed partial class AssetSetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetOperation(AssetSetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetOperation Clone() { - return new AssetSetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new asset set - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSet Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.AssetSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The asset set is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSet Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.AssetSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed asset set is - /// expected, in this format: - /// `customers/{customer_id}/assetSets/{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.AssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.AssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an asset set mutate. - /// - public sealed partial class MutateAssetSetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetSetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetsResponse(MutateAssetSetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetsResponse Clone() { - return new MutateAssetSetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetSetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetSetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetSetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the asset set mutate. - /// - public sealed partial class MutateAssetSetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAssetSetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetResult(MutateAssetSetResult other) : this() { - resourceName_ = other.resourceName_; - assetSet_ = other.assetSet_ != null ? other.assetSet_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAssetSetResult Clone() { - return new MutateAssetSetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_set" field. - public const int AssetSetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSet assetSet_; - /// - /// The mutated asset set with only mutable fields after mutate. The field will - /// only be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSet AssetSet { - get { return assetSet_; } - set { - assetSet_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAssetSetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAssetSetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(AssetSet, other.AssetSet)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (assetSet_ != null) hash ^= AssetSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (assetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (assetSet_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AssetSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAssetSetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.assetSet_ != null) { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - AssetSet.MergeFrom(other.AssetSet); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - input.ReadMessage(AssetSet); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - input.ReadMessage(AssetSet); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetServiceClient.g.cs deleted file mode 100755 index 7c0f8b073..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetServiceClient.g.cs +++ /dev/null @@ -1,365 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AssetSetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AssetSetServiceSettings GetDefault() => new AssetSetServiceSettings(); - - /// Constructs a new object with default settings. - public AssetSetServiceSettings() - { - } - - private AssetSetServiceSettings(AssetSetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAssetSetsSettings = existing.MutateAssetSetsSettings; - OnCopy(existing); - } - - partial void OnCopy(AssetSetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AssetSetServiceClient.MutateAssetSets and AssetSetServiceClient.MutateAssetSetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAssetSetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AssetSetServiceSettings Clone() => new AssetSetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class AssetSetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AssetSetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AssetSetServiceClientBuilder() : base(AssetSetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AssetSetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AssetSetServiceClient Build() - { - AssetSetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AssetSetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AssetSetServiceClient.ChannelPool; - } - - /// AssetSetService client wrapper, for convenient use. - /// - /// Service to manage asset set - /// - public abstract partial class AssetSetServiceClient - { - /// - /// The default endpoint for the AssetSetService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AssetSetService scopes. - /// - /// The default AssetSetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AssetSetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AssetSetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static AssetSetServiceClient Create() => new AssetSetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AssetSetServiceClient Create(grpccore::CallInvoker callInvoker, AssetSetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AssetSetService.AssetSetServiceClient grpcClient = new AssetSetService.AssetSetServiceClient(callInvoker); - return new AssetSetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AssetSetService client - public virtual AssetSetService.AssetSetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetSetsResponse MutateAssetSets(MutateAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetsAsync(MutateAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetsAsync(MutateAssetSetsRequest request, st::CancellationToken cancellationToken) => - MutateAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAssetSetsResponse MutateAssetSets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetSets(new MutateAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAssetSetsAsync(new MutateAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual asset sets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAssetSetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAssetSetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AssetSetService client wrapper implementation, for convenient use. - /// - /// Service to manage asset set - /// - public sealed partial class AssetSetServiceClientImpl : AssetSetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAssetSets; - - /// - /// Constructs a client wrapper for the AssetSetService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AssetSetServiceClientImpl(AssetSetService.AssetSetServiceClient grpcClient, AssetSetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AssetSetServiceSettings effectiveSettings = settings ?? AssetSetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAssetSets = clientHelper.BuildApiCall("MutateAssetSets", grpcClient.MutateAssetSetsAsync, grpcClient.MutateAssetSets, effectiveSettings.MutateAssetSetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAssetSets); - Modify_MutateAssetSetsApiCall(ref _callMutateAssetSets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAssetSetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AssetSetService.AssetSetServiceClient grpcClient, AssetSetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AssetSetService client - public override AssetSetService.AssetSetServiceClient GrpcClient { get; } - - partial void Modify_MutateAssetSetsRequest(ref MutateAssetSetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAssetSetsResponse MutateAssetSets(MutateAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetSetsRequest(ref request, ref callSettings); - return _callMutateAssetSets.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAssetSetsAsync(MutateAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAssetSetsRequest(ref request, ref callSettings); - return _callMutateAssetSets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetServiceGrpc.g.cs deleted file mode 100755 index 646e92342..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/asset_set_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage asset set - /// - public static partial class AssetSetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AssetSetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetSetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAssetSetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAssetSets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAssetSets", - __Marshaller_google_ads_googleads_v12_services_MutateAssetSetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAssetSetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AssetSetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AssetSetService - [grpc::BindServiceMethod(typeof(AssetSetService), "BindService")] - public abstract partial class AssetSetServiceBase - { - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AssetSetService - public partial class AssetSetServiceClient : grpc::ClientBase - { - /// Creates a new client for AssetSetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetSetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AssetSetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AssetSetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetSetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AssetSetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsResponse MutateAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetSets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsResponse MutateAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAssetSets, null, options, request); - } - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAssetSetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAssetSets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AssetSetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AssetSetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AssetSetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAssetSets, serviceImpl.MutateAssetSets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetSetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAssetSets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAssetSets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetServiceResourceNames.g.cs deleted file mode 100755 index 29f5c4cc8..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class AssetSetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetSetName RemoveAsAssetSetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::AssetSetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateAssetSetResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetSetName ResourceNameAsAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetStatus.g.cs deleted file mode 100755 index 91b938402..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_set_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_set_status.proto - public static partial class AssetSetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_set_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfc2V0X3N0", - "YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIl4K", - "EkFzc2V0U2V0U3RhdHVzRW51bSJICg5Bc3NldFNldFN0YXR1cxIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISCwoHUkVNT1ZF", - "RBADQu0BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhNB", - "c3NldFNldFN0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOi", - "AgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusEnum.Types.AssetSetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of an asset set. - /// - public sealed partial class AssetSetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetSetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetStatusEnum(AssetSetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetStatusEnum Clone() { - return new AssetSetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of an asset set. - /// - public enum AssetSetStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The asset set is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The asset set is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetType.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetType.g.cs deleted file mode 100755 index 9ca8d4db2..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetType.g.cs +++ /dev/null @@ -1,293 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_set_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_set_type.proto - public static partial class AssetSetTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_set_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfc2V0X3R5", - "cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKZAwoQ", - "QXNzZXRTZXRUeXBlRW51bSKEAwoMQXNzZXRTZXRUeXBlEg8KC1VOU1BFQ0lG", - "SUVEEAASCwoHVU5LTk9XThABEg0KCVBBR0VfRkVFRBACEhUKEURZTkFNSUNf", - "RURVQ0FUSU9OEAMSGAoUTUVSQ0hBTlRfQ0VOVEVSX0ZFRUQQBBIXChNEWU5B", - "TUlDX1JFQUxfRVNUQVRFEAUSEgoORFlOQU1JQ19DVVNUT00QBhIeChpEWU5B", - "TUlDX0hPVEVMU19BTkRfUkVOVEFMUxAHEhMKD0RZTkFNSUNfRkxJR0hUUxAI", - "EhIKDkRZTkFNSUNfVFJBVkVMEAkSEQoNRFlOQU1JQ19MT0NBTBAKEhAKDERZ", - "TkFNSUNfSk9CUxALEhEKDUxPQ0FUSU9OX1NZTkMQDBIrCidCVVNJTkVTU19Q", - "Uk9GSUxFX0RZTkFNSUNfTE9DQVRJT05fR1JPVVAQDRIgChxDSEFJTl9EWU5B", - "TUlDX0xPQ0FUSU9OX0dST1VQEA4SGQoVU1RBVElDX0xPQ0FUSU9OX0dST1VQ", - "EA9C6wEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCEUFz", - "c2V0U2V0VHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNH", - "QUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVc", - "QWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible types of an asset set. - /// - public sealed partial class AssetSetTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetTypeEnum(AssetSetTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetTypeEnum Clone() { - return new AssetSetTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSetTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible types of an asset set. - /// - public enum AssetSetType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Page asset set. - /// - [pbr::OriginalName("PAGE_FEED")] PageFeed = 2, - /// - /// Dynamic education asset set. - /// - [pbr::OriginalName("DYNAMIC_EDUCATION")] DynamicEducation = 3, - /// - /// Google Merchant Center asset set. - /// - [pbr::OriginalName("MERCHANT_CENTER_FEED")] MerchantCenterFeed = 4, - /// - /// Dynamic real estate asset set. - /// - [pbr::OriginalName("DYNAMIC_REAL_ESTATE")] DynamicRealEstate = 5, - /// - /// Dynamic custom asset set. - /// - [pbr::OriginalName("DYNAMIC_CUSTOM")] DynamicCustom = 6, - /// - /// Dynamic hotels and rentals asset set. - /// - [pbr::OriginalName("DYNAMIC_HOTELS_AND_RENTALS")] DynamicHotelsAndRentals = 7, - /// - /// Dynamic flights asset set. - /// - [pbr::OriginalName("DYNAMIC_FLIGHTS")] DynamicFlights = 8, - /// - /// Dynamic travel asset set. - /// - [pbr::OriginalName("DYNAMIC_TRAVEL")] DynamicTravel = 9, - /// - /// Dynamic local asset set. - /// - [pbr::OriginalName("DYNAMIC_LOCAL")] DynamicLocal = 10, - /// - /// Dynamic jobs asset set. - /// - [pbr::OriginalName("DYNAMIC_JOBS")] DynamicJobs = 11, - /// - /// Location sync level asset set. - /// - [pbr::OriginalName("LOCATION_SYNC")] LocationSync = 12, - /// - /// Business Profile location group asset set. - /// - [pbr::OriginalName("BUSINESS_PROFILE_DYNAMIC_LOCATION_GROUP")] BusinessProfileDynamicLocationGroup = 13, - /// - /// Chain location group asset set which can be used for both owned - /// locations and affiliate locations. - /// - [pbr::OriginalName("CHAIN_DYNAMIC_LOCATION_GROUP")] ChainDynamicLocationGroup = 14, - /// - /// Static location group asset set which can be used for both owned - /// locations and affiliate locations. - /// - [pbr::OriginalName("STATIC_LOCATION_GROUP")] StaticLocationGroup = 15, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetTypeView.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetTypeView.g.cs deleted file mode 100755 index 58007053f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetTypeView.g.cs +++ /dev/null @@ -1,300 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/asset_set_type_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/asset_set_type_view.proto - public static partial class AssetSetTypeViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/asset_set_type_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetTypeViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X3Nl", - "dF90eXBlX3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hc3Nl", - "dF9zZXRfdHlwZS5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5w", - "cm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKkAgoQQXNzZXRTZXRU", - "eXBlVmlldxJICg1yZXNvdXJjZV9uYW1lGAEgASgJQjHgQQP6QSsKKWdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldFNldFR5cGVWaWV3EloKDmFzc2V0", - "X3NldF90eXBlGAMgASgOMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLkFzc2V0U2V0VHlwZUVudW0uQXNzZXRTZXRUeXBlQgPgQQM6aupBZwop", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0U2V0VHlwZVZpZXcSOmN1", - "c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fzc2V0U2V0VHlwZVZpZXdzL3thc3Nl", - "dF9zZXRfdHlwZX1ChwIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzQhVBc3NldFNldFR5cGVWaWV3UHJvdG9QAVpLZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJl", - "c291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeView), global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeView.Parser, new[]{ "ResourceName", "AssetSetType" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An asset set type view. - /// This view reports non-overcounted metrics for each asset set type. Child - /// asset set types are not included in this report. Their stats are aggregated - /// under the parent asset set type. - /// - public sealed partial class AssetSetTypeView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSetTypeView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetTypeView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetTypeView(AssetSetTypeView other) : this() { - resourceName_ = other.resourceName_; - assetSetType_ = other.assetSetType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSetTypeView Clone() { - return new AssetSetTypeView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the asset set type view. - /// Asset set type view resource names have the form: - /// - /// `customers/{customer_id}/assetSetTypeViews/{asset_set_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_set_type" field. - public const int AssetSetTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType assetSetType_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified; - /// - /// Output only. The asset set type of the asset set type view. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType AssetSetType { - get { return assetSetType_; } - set { - assetSetType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSetTypeView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSetTypeView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AssetSetType != other.AssetSetType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AssetSetType != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) hash ^= AssetSetType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetSetType != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AssetSetType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetSetType != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AssetSetType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AssetSetType != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AssetSetType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSetTypeView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AssetSetType != global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType.Unspecified) { - AssetSetType = other.AssetSetType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - AssetSetType = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - AssetSetType = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetTypeViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetTypeViewResourceNames.g.cs deleted file mode 100755 index b271d6fb9..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetTypeViewResourceNames.g.cs +++ /dev/null @@ -1,258 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the AssetSetTypeView resource. - public sealed partial class AssetSetTypeViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/assetSetTypeViews/{asset_set_type}. - /// - CustomerAssetSetType = 1, - } - - private static gax::PathTemplate s_customerAssetSetType = new gax::PathTemplate("customers/{customer_id}/assetSetTypeViews/{asset_set_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AssetSetTypeViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AssetSetTypeViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSetType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AssetSetTypeViewName FromCustomerAssetSetType(string customerId, string assetSetTypeId) => - new AssetSetTypeViewName(ResourceNameType.CustomerAssetSetType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetTypeId, nameof(assetSetTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSetType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type}. - /// - public static string Format(string customerId, string assetSetTypeId) => - FormatCustomerAssetSetType(customerId, assetSetTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSetType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type}. - /// - public static string FormatCustomerAssetSetType(string customerId, string assetSetTypeId) => - s_customerAssetSetType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetTypeId, nameof(assetSetTypeId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AssetSetTypeViewName Parse(string assetSetTypeViewName) => Parse(assetSetTypeViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AssetSetTypeViewName Parse(string assetSetTypeViewName, bool allowUnparsed) => - TryParse(assetSetTypeViewName, allowUnparsed, out AssetSetTypeViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetSetTypeViewName, out AssetSetTypeViewName result) => - TryParse(assetSetTypeViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string assetSetTypeViewName, bool allowUnparsed, out AssetSetTypeViewName result) - { - gax::GaxPreconditions.CheckNotNull(assetSetTypeViewName, nameof(assetSetTypeViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetSetType.TryParseName(assetSetTypeViewName, out resourceName)) - { - result = FromCustomerAssetSetType(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(assetSetTypeViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AssetSetTypeViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetSetTypeId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetSetTypeId = assetSetTypeId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/assetSetTypeViews/{asset_set_type} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSetType ID. Must not be null or empty. - public AssetSetTypeViewName(string customerId, string assetSetTypeId) : this(ResourceNameType.CustomerAssetSetType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetTypeId, nameof(assetSetTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetSetType ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string AssetSetTypeId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetSetType: return s_customerAssetSetType.Expand(CustomerId, AssetSetTypeId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AssetSetTypeViewName); - - /// - public bool Equals(AssetSetTypeViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AssetSetTypeViewName a, AssetSetTypeViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AssetSetTypeViewName a, AssetSetTypeViewName b) => !(a == b); - } - - public partial class AssetSetTypeView - { - /// - /// -typed view over the resource name property. - /// - internal AssetSetTypeViewName ResourceNameAsAssetSetTypeViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : AssetSetTypeViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetSetTypes.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSetTypes.g.cs deleted file mode 100755 index 67aa1abc5..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSetTypes.g.cs +++ /dev/null @@ -1,2613 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/asset_set_types.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/asset_set_types.proto - public static partial class AssetSetTypesReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/asset_set_types.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSetTypesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Fzc2V0X3NldF90", - "eXBlcy5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbho8", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2NoYWluX3JlbGF0aW9u", - "c2hpcF90eXBlLnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvbG9jYXRpb25fb3duZXJzaGlwX3R5cGUucHJvdG8aQGdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcy9sb2NhdGlvbl9zdHJpbmdfZmlsdGVyX3R5", - "cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8ijwMK", - "C0xvY2F0aW9uU2V0EngKF2xvY2F0aW9uX293bmVyc2hpcF90eXBlGAMgASgO", - "Mk8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkxvY2F0aW9uT3du", - "ZXJzaGlwVHlwZUVudW0uTG9jYXRpb25Pd25lcnNoaXBUeXBlQgbgQQLgQQUS", - "ZAodYnVzaW5lc3NfcHJvZmlsZV9sb2NhdGlvbl9zZXQYASABKAsyOy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkJ1c2luZXNzUHJvZmlsZUxv", - "Y2F0aW9uU2V0SAASRwoSY2hhaW5fbG9jYXRpb25fc2V0GAIgASgLMikuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DaGFpblNldEgAEk0KEW1h", - "cHNfbG9jYXRpb25fc2V0GAUgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5NYXBzTG9jYXRpb25TZXRIAEIICgZzb3VyY2Ui2AEKGkJ1", - "c2luZXNzUHJvZmlsZUxvY2F0aW9uU2V0EigKGGh0dHBfYXV0aG9yaXphdGlv", - "bl90b2tlbhgBIAEoCUIG4EEF4EECEh0KDWVtYWlsX2FkZHJlc3MYAiABKAlC", - "BuBBAuBBBRIcChRidXNpbmVzc19uYW1lX2ZpbHRlchgDIAEoCRIVCg1sYWJl", - "bF9maWx0ZXJzGAQgAygJEhoKEmxpc3RpbmdfaWRfZmlsdGVycxgFIAMoAxIg", - "ChNidXNpbmVzc19hY2NvdW50X2lkGAYgASgJQgPgQQUiwQEKCENoYWluU2V0", - "EnIKEXJlbGF0aW9uc2hpcF90eXBlGAEgASgOMk8uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zLkNoYWluUmVsYXRpb25zaGlwVHlwZUVudW0uQ2hh", - "aW5SZWxhdGlvbnNoaXBUeXBlQgbgQQLgQQUSQQoGY2hhaW5zGAIgAygLMiwu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DaGFpbkZpbHRlckID", - "4EECIkEKC0NoYWluRmlsdGVyEhUKCGNoYWluX2lkGAEgASgDQgPgQQISGwoT", - "bG9jYXRpb25fYXR0cmlidXRlcxgCIAMoCSJhCg9NYXBzTG9jYXRpb25TZXQS", - "TgoObWFwc19sb2NhdGlvbnMYASADKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLk1hcHNMb2NhdGlvbkluZm9CA+BBAiIkChBNYXBzTG9j", - "YXRpb25JbmZvEhAKCHBsYWNlX2lkGAEgASgJIqMBChxCdXNpbmVzc1Byb2Zp", - "bGVMb2NhdGlvbkdyb3VwEoIBCi5keW5hbWljX2J1c2luZXNzX3Byb2ZpbGVf", - "bG9jYXRpb25fZ3JvdXBfZmlsdGVyGAEgASgLMkouZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5EeW5hbWljQnVzaW5lc3NQcm9maWxlTG9jYXRp", - "b25Hcm91cEZpbHRlciLeAQopRHluYW1pY0J1c2luZXNzUHJvZmlsZUxvY2F0", - "aW9uR3JvdXBGaWx0ZXISFQoNbGFiZWxfZmlsdGVycxgBIAMoCRJlChRidXNp", - "bmVzc19uYW1lX2ZpbHRlchgCIAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5jb21tb24uQnVzaW5lc3NQcm9maWxlQnVzaW5lc3NOYW1lRmlsdGVy", - "SACIAQESGgoSbGlzdGluZ19pZF9maWx0ZXJzGAMgAygDQhcKFV9idXNpbmVz", - "c19uYW1lX2ZpbHRlciKmAQohQnVzaW5lc3NQcm9maWxlQnVzaW5lc3NOYW1l", - "RmlsdGVyEhUKDWJ1c2luZXNzX25hbWUYASABKAkSagoLZmlsdGVyX3R5cGUY", - "AiABKA4yVS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuTG9jYXRp", - "b25TdHJpbmdGaWx0ZXJUeXBlRW51bS5Mb2NhdGlvblN0cmluZ0ZpbHRlclR5", - "cGUicAoSQ2hhaW5Mb2NhdGlvbkdyb3VwEloKJGR5bmFtaWNfY2hhaW5fbG9j", - "YXRpb25fZ3JvdXBfZmlsdGVycxgBIAMoCzIsLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24uQ2hhaW5GaWx0ZXJC8gEKI2NvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uQhJBc3NldFNldFR5cGVzUHJvdG9QAVpF", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9jb21tb247Y29tbW9uogIDR0FBqgIfR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLkNvbW1vbsoCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxDb21tb27qAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkNvbW1v", - "bmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LocationSet), global::Google.Ads.GoogleAds.V12.Common.LocationSet.Parser, new[]{ "LocationOwnershipType", "BusinessProfileLocationSet", "ChainLocationSet", "MapsLocationSet" }, new[]{ "Source" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet), global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet.Parser, new[]{ "HttpAuthorizationToken", "EmailAddress", "BusinessNameFilter", "LabelFilters", "ListingIdFilters", "BusinessAccountId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ChainSet), global::Google.Ads.GoogleAds.V12.Common.ChainSet.Parser, new[]{ "RelationshipType", "Chains" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ChainFilter), global::Google.Ads.GoogleAds.V12.Common.ChainFilter.Parser, new[]{ "ChainId", "LocationAttributes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet), global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet.Parser, new[]{ "MapsLocations" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MapsLocationInfo), global::Google.Ads.GoogleAds.V12.Common.MapsLocationInfo.Parser, new[]{ "PlaceId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup), global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationGroup.Parser, new[]{ "DynamicBusinessProfileLocationGroupFilter" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicBusinessProfileLocationGroupFilter), global::Google.Ads.GoogleAds.V12.Common.DynamicBusinessProfileLocationGroupFilter.Parser, new[]{ "LabelFilters", "BusinessNameFilter", "ListingIdFilters" }, new[]{ "BusinessNameFilter" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.BusinessProfileBusinessNameFilter), global::Google.Ads.GoogleAds.V12.Common.BusinessProfileBusinessNameFilter.Parser, new[]{ "BusinessName", "FilterType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup), global::Google.Ads.GoogleAds.V12.Common.ChainLocationGroup.Parser, new[]{ "DynamicChainLocationGroupFilters" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Data related to location set. One of the Google Business Profile (previously - /// known as Google My Business) data, Chain data, and map location data need to - /// be specified. - /// - public sealed partial class LocationSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationSet(LocationSet other) : this() { - locationOwnershipType_ = other.locationOwnershipType_; - switch (other.SourceCase) { - case SourceOneofCase.BusinessProfileLocationSet: - BusinessProfileLocationSet = other.BusinessProfileLocationSet.Clone(); - break; - case SourceOneofCase.ChainLocationSet: - ChainLocationSet = other.ChainLocationSet.Clone(); - break; - case SourceOneofCase.MapsLocationSet: - MapsLocationSet = other.MapsLocationSet.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationSet Clone() { - return new LocationSet(this); - } - - /// Field number for the "location_ownership_type" field. - public const int LocationOwnershipTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType locationOwnershipType_ = global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified; - /// - /// Required. Immutable. Location Ownership Type (owned location or affiliate location). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType LocationOwnershipType { - get { return locationOwnershipType_; } - set { - locationOwnershipType_ = value; - } - } - - /// Field number for the "business_profile_location_set" field. - public const int BusinessProfileLocationSetFieldNumber = 1; - /// - /// Data used to configure a location set populated from Google Business - /// Profile locations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet BusinessProfileLocationSet { - get { return sourceCase_ == SourceOneofCase.BusinessProfileLocationSet ? (global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet) source_ : null; } - set { - source_ = value; - sourceCase_ = value == null ? SourceOneofCase.None : SourceOneofCase.BusinessProfileLocationSet; - } - } - - /// Field number for the "chain_location_set" field. - public const int ChainLocationSetFieldNumber = 2; - /// - /// Data used to configure a location on chain set populated with the - /// specified chains. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ChainSet ChainLocationSet { - get { return sourceCase_ == SourceOneofCase.ChainLocationSet ? (global::Google.Ads.GoogleAds.V12.Common.ChainSet) source_ : null; } - set { - source_ = value; - sourceCase_ = value == null ? SourceOneofCase.None : SourceOneofCase.ChainLocationSet; - } - } - - /// Field number for the "maps_location_set" field. - public const int MapsLocationSetFieldNumber = 5; - /// - /// Only set if locations are synced based on selected maps locations - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet MapsLocationSet { - get { return sourceCase_ == SourceOneofCase.MapsLocationSet ? (global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet) source_ : null; } - set { - source_ = value; - sourceCase_ = value == null ? SourceOneofCase.None : SourceOneofCase.MapsLocationSet; - } - } - - private object source_; - /// Enum of possible cases for the "source" oneof. - public enum SourceOneofCase { - None = 0, - BusinessProfileLocationSet = 1, - ChainLocationSet = 2, - MapsLocationSet = 5, - } - private SourceOneofCase sourceCase_ = SourceOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SourceOneofCase SourceCase { - get { return sourceCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSource() { - sourceCase_ = SourceOneofCase.None; - source_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LocationOwnershipType != other.LocationOwnershipType) return false; - if (!object.Equals(BusinessProfileLocationSet, other.BusinessProfileLocationSet)) return false; - if (!object.Equals(ChainLocationSet, other.ChainLocationSet)) return false; - if (!object.Equals(MapsLocationSet, other.MapsLocationSet)) return false; - if (SourceCase != other.SourceCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) hash ^= LocationOwnershipType.GetHashCode(); - if (sourceCase_ == SourceOneofCase.BusinessProfileLocationSet) hash ^= BusinessProfileLocationSet.GetHashCode(); - if (sourceCase_ == SourceOneofCase.ChainLocationSet) hash ^= ChainLocationSet.GetHashCode(); - if (sourceCase_ == SourceOneofCase.MapsLocationSet) hash ^= MapsLocationSet.GetHashCode(); - hash ^= (int) sourceCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (sourceCase_ == SourceOneofCase.BusinessProfileLocationSet) { - output.WriteRawTag(10); - output.WriteMessage(BusinessProfileLocationSet); - } - if (sourceCase_ == SourceOneofCase.ChainLocationSet) { - output.WriteRawTag(18); - output.WriteMessage(ChainLocationSet); - } - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LocationOwnershipType); - } - if (sourceCase_ == SourceOneofCase.MapsLocationSet) { - output.WriteRawTag(42); - output.WriteMessage(MapsLocationSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (sourceCase_ == SourceOneofCase.BusinessProfileLocationSet) { - output.WriteRawTag(10); - output.WriteMessage(BusinessProfileLocationSet); - } - if (sourceCase_ == SourceOneofCase.ChainLocationSet) { - output.WriteRawTag(18); - output.WriteMessage(ChainLocationSet); - } - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LocationOwnershipType); - } - if (sourceCase_ == SourceOneofCase.MapsLocationSet) { - output.WriteRawTag(42); - output.WriteMessage(MapsLocationSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationOwnershipType); - } - if (sourceCase_ == SourceOneofCase.BusinessProfileLocationSet) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BusinessProfileLocationSet); - } - if (sourceCase_ == SourceOneofCase.ChainLocationSet) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChainLocationSet); - } - if (sourceCase_ == SourceOneofCase.MapsLocationSet) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MapsLocationSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationSet other) { - if (other == null) { - return; - } - if (other.LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - LocationOwnershipType = other.LocationOwnershipType; - } - switch (other.SourceCase) { - case SourceOneofCase.BusinessProfileLocationSet: - if (BusinessProfileLocationSet == null) { - BusinessProfileLocationSet = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet(); - } - BusinessProfileLocationSet.MergeFrom(other.BusinessProfileLocationSet); - break; - case SourceOneofCase.ChainLocationSet: - if (ChainLocationSet == null) { - ChainLocationSet = new global::Google.Ads.GoogleAds.V12.Common.ChainSet(); - } - ChainLocationSet.MergeFrom(other.ChainLocationSet); - break; - case SourceOneofCase.MapsLocationSet: - if (MapsLocationSet == null) { - MapsLocationSet = new global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet(); - } - MapsLocationSet.MergeFrom(other.MapsLocationSet); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet(); - if (sourceCase_ == SourceOneofCase.BusinessProfileLocationSet) { - subBuilder.MergeFrom(BusinessProfileLocationSet); - } - input.ReadMessage(subBuilder); - BusinessProfileLocationSet = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.ChainSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ChainSet(); - if (sourceCase_ == SourceOneofCase.ChainLocationSet) { - subBuilder.MergeFrom(ChainLocationSet); - } - input.ReadMessage(subBuilder); - ChainLocationSet = subBuilder; - break; - } - case 24: { - LocationOwnershipType = (global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType) input.ReadEnum(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet(); - if (sourceCase_ == SourceOneofCase.MapsLocationSet) { - subBuilder.MergeFrom(MapsLocationSet); - } - input.ReadMessage(subBuilder); - MapsLocationSet = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocationSet(); - if (sourceCase_ == SourceOneofCase.BusinessProfileLocationSet) { - subBuilder.MergeFrom(BusinessProfileLocationSet); - } - input.ReadMessage(subBuilder); - BusinessProfileLocationSet = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.ChainSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ChainSet(); - if (sourceCase_ == SourceOneofCase.ChainLocationSet) { - subBuilder.MergeFrom(ChainLocationSet); - } - input.ReadMessage(subBuilder); - ChainLocationSet = subBuilder; - break; - } - case 24: { - LocationOwnershipType = (global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType) input.ReadEnum(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MapsLocationSet(); - if (sourceCase_ == SourceOneofCase.MapsLocationSet) { - subBuilder.MergeFrom(MapsLocationSet); - } - input.ReadMessage(subBuilder); - MapsLocationSet = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Data used to configure a location set populated from Google Business Profile - /// locations. - /// Different types of filters are AND'ed together, if they are specified. - /// - public sealed partial class BusinessProfileLocationSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BusinessProfileLocationSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocationSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocationSet(BusinessProfileLocationSet other) : this() { - httpAuthorizationToken_ = other.httpAuthorizationToken_; - emailAddress_ = other.emailAddress_; - businessNameFilter_ = other.businessNameFilter_; - labelFilters_ = other.labelFilters_.Clone(); - listingIdFilters_ = other.listingIdFilters_.Clone(); - businessAccountId_ = other.businessAccountId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocationSet Clone() { - return new BusinessProfileLocationSet(this); - } - - /// Field number for the "http_authorization_token" field. - public const int HttpAuthorizationTokenFieldNumber = 1; - private string httpAuthorizationToken_ = ""; - /// - /// Required. Immutable. The HTTP authorization token used to obtain authorization. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HttpAuthorizationToken { - get { return httpAuthorizationToken_; } - set { - httpAuthorizationToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "email_address" field. - public const int EmailAddressFieldNumber = 2; - private string emailAddress_ = ""; - /// - /// Required. Immutable. Email address of a Google Business Profile account or email address of a - /// manager of the Google Business Profile account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EmailAddress { - get { return emailAddress_; } - set { - emailAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "business_name_filter" field. - public const int BusinessNameFilterFieldNumber = 3; - private string businessNameFilter_ = ""; - /// - /// Used to filter Google Business Profile listings by business name. If - /// businessNameFilter is set, only listings with a matching business name are - /// candidates to be sync'd into Assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessNameFilter { - get { return businessNameFilter_; } - set { - businessNameFilter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "label_filters" field. - public const int LabelFiltersFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_labelFilters_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField labelFilters_ = new pbc::RepeatedField(); - /// - /// Used to filter Google Business Profile listings by labels. If entries exist - /// in labelFilters, only listings that have any of the labels set are - /// candidates to be synchronized into Assets. If no entries exist in - /// labelFilters, then all listings are candidates for syncing. - /// Label filters are OR'ed together. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LabelFilters { - get { return labelFilters_; } - } - - /// Field number for the "listing_id_filters" field. - public const int ListingIdFiltersFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_listingIdFilters_codec - = pb::FieldCodec.ForInt64(42); - private readonly pbc::RepeatedField listingIdFilters_ = new pbc::RepeatedField(); - /// - /// Used to filter Google Business Profile listings by listing id. If entries - /// exist in listingIdFilters, only listings specified by the filters are - /// candidates to be synchronized into Assets. If no entries exist in - /// listingIdFilters, then all listings are candidates for syncing. - /// Listing ID filters are OR'ed together. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ListingIdFilters { - get { return listingIdFilters_; } - } - - /// Field number for the "business_account_id" field. - public const int BusinessAccountIdFieldNumber = 6; - private string businessAccountId_ = ""; - /// - /// Immutable. The account ID of the managed business whose locations are to be used. - /// If this field is not set, then all businesses accessible by the user - /// (specified by the emailAddress) are used. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessAccountId { - get { return businessAccountId_; } - set { - businessAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BusinessProfileLocationSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BusinessProfileLocationSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (HttpAuthorizationToken != other.HttpAuthorizationToken) return false; - if (EmailAddress != other.EmailAddress) return false; - if (BusinessNameFilter != other.BusinessNameFilter) return false; - if(!labelFilters_.Equals(other.labelFilters_)) return false; - if(!listingIdFilters_.Equals(other.listingIdFilters_)) return false; - if (BusinessAccountId != other.BusinessAccountId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HttpAuthorizationToken.Length != 0) hash ^= HttpAuthorizationToken.GetHashCode(); - if (EmailAddress.Length != 0) hash ^= EmailAddress.GetHashCode(); - if (BusinessNameFilter.Length != 0) hash ^= BusinessNameFilter.GetHashCode(); - hash ^= labelFilters_.GetHashCode(); - hash ^= listingIdFilters_.GetHashCode(); - if (BusinessAccountId.Length != 0) hash ^= BusinessAccountId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HttpAuthorizationToken.Length != 0) { - output.WriteRawTag(10); - output.WriteString(HttpAuthorizationToken); - } - if (EmailAddress.Length != 0) { - output.WriteRawTag(18); - output.WriteString(EmailAddress); - } - if (BusinessNameFilter.Length != 0) { - output.WriteRawTag(26); - output.WriteString(BusinessNameFilter); - } - labelFilters_.WriteTo(output, _repeated_labelFilters_codec); - listingIdFilters_.WriteTo(output, _repeated_listingIdFilters_codec); - if (BusinessAccountId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(BusinessAccountId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HttpAuthorizationToken.Length != 0) { - output.WriteRawTag(10); - output.WriteString(HttpAuthorizationToken); - } - if (EmailAddress.Length != 0) { - output.WriteRawTag(18); - output.WriteString(EmailAddress); - } - if (BusinessNameFilter.Length != 0) { - output.WriteRawTag(26); - output.WriteString(BusinessNameFilter); - } - labelFilters_.WriteTo(ref output, _repeated_labelFilters_codec); - listingIdFilters_.WriteTo(ref output, _repeated_listingIdFilters_codec); - if (BusinessAccountId.Length != 0) { - output.WriteRawTag(50); - output.WriteString(BusinessAccountId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HttpAuthorizationToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HttpAuthorizationToken); - } - if (EmailAddress.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EmailAddress); - } - if (BusinessNameFilter.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessNameFilter); - } - size += labelFilters_.CalculateSize(_repeated_labelFilters_codec); - size += listingIdFilters_.CalculateSize(_repeated_listingIdFilters_codec); - if (BusinessAccountId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessAccountId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BusinessProfileLocationSet other) { - if (other == null) { - return; - } - if (other.HttpAuthorizationToken.Length != 0) { - HttpAuthorizationToken = other.HttpAuthorizationToken; - } - if (other.EmailAddress.Length != 0) { - EmailAddress = other.EmailAddress; - } - if (other.BusinessNameFilter.Length != 0) { - BusinessNameFilter = other.BusinessNameFilter; - } - labelFilters_.Add(other.labelFilters_); - listingIdFilters_.Add(other.listingIdFilters_); - if (other.BusinessAccountId.Length != 0) { - BusinessAccountId = other.BusinessAccountId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - HttpAuthorizationToken = input.ReadString(); - break; - } - case 18: { - EmailAddress = input.ReadString(); - break; - } - case 26: { - BusinessNameFilter = input.ReadString(); - break; - } - case 34: { - labelFilters_.AddEntriesFrom(input, _repeated_labelFilters_codec); - break; - } - case 42: - case 40: { - listingIdFilters_.AddEntriesFrom(input, _repeated_listingIdFilters_codec); - break; - } - case 50: { - BusinessAccountId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - HttpAuthorizationToken = input.ReadString(); - break; - } - case 18: { - EmailAddress = input.ReadString(); - break; - } - case 26: { - BusinessNameFilter = input.ReadString(); - break; - } - case 34: { - labelFilters_.AddEntriesFrom(ref input, _repeated_labelFilters_codec); - break; - } - case 42: - case 40: { - listingIdFilters_.AddEntriesFrom(ref input, _repeated_listingIdFilters_codec); - break; - } - case 50: { - BusinessAccountId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Data used to configure a location set populated with the specified chains. - /// - public sealed partial class ChainSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainSet(ChainSet other) : this() { - relationshipType_ = other.relationshipType_; - chains_ = other.chains_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainSet Clone() { - return new ChainSet(this); - } - - /// Field number for the "relationship_type" field. - public const int RelationshipTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType relationshipType_ = global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType.Unspecified; - /// - /// Required. Immutable. Relationship type the specified chains have with this advertiser. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType RelationshipType { - get { return relationshipType_; } - set { - relationshipType_ = value; - } - } - - /// Field number for the "chains" field. - public const int ChainsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_chains_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.ChainFilter.Parser); - private readonly pbc::RepeatedField chains_ = new pbc::RepeatedField(); - /// - /// Required. A list of chain level filters, all filters are OR'ed together. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Chains { - get { return chains_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChainSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChainSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RelationshipType != other.RelationshipType) return false; - if(!chains_.Equals(other.chains_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType.Unspecified) hash ^= RelationshipType.GetHashCode(); - hash ^= chains_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) RelationshipType); - } - chains_.WriteTo(output, _repeated_chains_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) RelationshipType); - } - chains_.WriteTo(ref output, _repeated_chains_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RelationshipType); - } - size += chains_.CalculateSize(_repeated_chains_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChainSet other) { - if (other == null) { - return; - } - if (other.RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType.Unspecified) { - RelationshipType = other.RelationshipType; - } - chains_.Add(other.chains_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - RelationshipType = (global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType) input.ReadEnum(); - break; - } - case 18: { - chains_.AddEntriesFrom(input, _repeated_chains_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - RelationshipType = (global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType) input.ReadEnum(); - break; - } - case 18: { - chains_.AddEntriesFrom(ref input, _repeated_chains_codec); - break; - } - } - } - } - #endif - - } - - /// - /// One chain level filter on location in a feed item set. - /// The filtering logic among all the fields is AND. - /// - public sealed partial class ChainFilter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainFilter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainFilter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainFilter(ChainFilter other) : this() { - chainId_ = other.chainId_; - locationAttributes_ = other.locationAttributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainFilter Clone() { - return new ChainFilter(this); - } - - /// Field number for the "chain_id" field. - public const int ChainIdFieldNumber = 1; - private long chainId_; - /// - /// Required. Used to filter chain locations by chain id. Only chain locations that - /// belong to the specified chain will be in the asset set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ChainId { - get { return chainId_; } - set { - chainId_ = value; - } - } - - /// Field number for the "location_attributes" field. - public const int LocationAttributesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_locationAttributes_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField locationAttributes_ = new pbc::RepeatedField(); - /// - /// Used to filter chain locations by location attributes. - /// Only chain locations that belong to all of the specified attribute(s) will - /// be in the asset set. If this field is empty, it means no filtering on this - /// field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LocationAttributes { - get { return locationAttributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChainFilter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChainFilter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ChainId != other.ChainId) return false; - if(!locationAttributes_.Equals(other.locationAttributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ChainId != 0L) hash ^= ChainId.GetHashCode(); - hash ^= locationAttributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ChainId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(ChainId); - } - locationAttributes_.WriteTo(output, _repeated_locationAttributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ChainId != 0L) { - output.WriteRawTag(8); - output.WriteInt64(ChainId); - } - locationAttributes_.WriteTo(ref output, _repeated_locationAttributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ChainId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ChainId); - } - size += locationAttributes_.CalculateSize(_repeated_locationAttributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChainFilter other) { - if (other == null) { - return; - } - if (other.ChainId != 0L) { - ChainId = other.ChainId; - } - locationAttributes_.Add(other.locationAttributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - ChainId = input.ReadInt64(); - break; - } - case 18: { - locationAttributes_.AddEntriesFrom(input, _repeated_locationAttributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ChainId = input.ReadInt64(); - break; - } - case 18: { - locationAttributes_.AddEntriesFrom(ref input, _repeated_locationAttributes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Wrapper for multiple maps location sync data - /// - public sealed partial class MapsLocationSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapsLocationSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MapsLocationSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MapsLocationSet(MapsLocationSet other) : this() { - mapsLocations_ = other.mapsLocations_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MapsLocationSet Clone() { - return new MapsLocationSet(this); - } - - /// Field number for the "maps_locations" field. - public const int MapsLocationsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_mapsLocations_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.MapsLocationInfo.Parser); - private readonly pbc::RepeatedField mapsLocations_ = new pbc::RepeatedField(); - /// - /// Required. A list of maps location info that user manually synced in. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MapsLocations { - get { return mapsLocations_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MapsLocationSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MapsLocationSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!mapsLocations_.Equals(other.mapsLocations_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= mapsLocations_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - mapsLocations_.WriteTo(output, _repeated_mapsLocations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - mapsLocations_.WriteTo(ref output, _repeated_mapsLocations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += mapsLocations_.CalculateSize(_repeated_mapsLocations_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MapsLocationSet other) { - if (other == null) { - return; - } - mapsLocations_.Add(other.mapsLocations_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - mapsLocations_.AddEntriesFrom(input, _repeated_mapsLocations_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - mapsLocations_.AddEntriesFrom(ref input, _repeated_mapsLocations_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Wrapper for place ids - /// - public sealed partial class MapsLocationInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MapsLocationInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MapsLocationInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MapsLocationInfo(MapsLocationInfo other) : this() { - placeId_ = other.placeId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MapsLocationInfo Clone() { - return new MapsLocationInfo(this); - } - - /// Field number for the "place_id" field. - public const int PlaceIdFieldNumber = 1; - private string placeId_ = ""; - /// - /// Place ID of the Maps location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PlaceId { - get { return placeId_; } - set { - placeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MapsLocationInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MapsLocationInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlaceId != other.PlaceId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PlaceId.Length != 0) hash ^= PlaceId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PlaceId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PlaceId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PlaceId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PlaceId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PlaceId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PlaceId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MapsLocationInfo other) { - if (other == null) { - return; - } - if (other.PlaceId.Length != 0) { - PlaceId = other.PlaceId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PlaceId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PlaceId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Information about a Business Profile dynamic location group. - /// Only applicable if the sync level AssetSet's type is LOCATION_SYNC and - /// sync source is Business Profile. - /// - public sealed partial class BusinessProfileLocationGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BusinessProfileLocationGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocationGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocationGroup(BusinessProfileLocationGroup other) : this() { - dynamicBusinessProfileLocationGroupFilter_ = other.dynamicBusinessProfileLocationGroupFilter_ != null ? other.dynamicBusinessProfileLocationGroupFilter_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocationGroup Clone() { - return new BusinessProfileLocationGroup(this); - } - - /// Field number for the "dynamic_business_profile_location_group_filter" field. - public const int DynamicBusinessProfileLocationGroupFilterFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.DynamicBusinessProfileLocationGroupFilter dynamicBusinessProfileLocationGroupFilter_; - /// - /// Filter for dynamic Business Profile location sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicBusinessProfileLocationGroupFilter DynamicBusinessProfileLocationGroupFilter { - get { return dynamicBusinessProfileLocationGroupFilter_; } - set { - dynamicBusinessProfileLocationGroupFilter_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BusinessProfileLocationGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BusinessProfileLocationGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(DynamicBusinessProfileLocationGroupFilter, other.DynamicBusinessProfileLocationGroupFilter)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (dynamicBusinessProfileLocationGroupFilter_ != null) hash ^= DynamicBusinessProfileLocationGroupFilter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (dynamicBusinessProfileLocationGroupFilter_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DynamicBusinessProfileLocationGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (dynamicBusinessProfileLocationGroupFilter_ != null) { - output.WriteRawTag(10); - output.WriteMessage(DynamicBusinessProfileLocationGroupFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (dynamicBusinessProfileLocationGroupFilter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DynamicBusinessProfileLocationGroupFilter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BusinessProfileLocationGroup other) { - if (other == null) { - return; - } - if (other.dynamicBusinessProfileLocationGroupFilter_ != null) { - if (dynamicBusinessProfileLocationGroupFilter_ == null) { - DynamicBusinessProfileLocationGroupFilter = new global::Google.Ads.GoogleAds.V12.Common.DynamicBusinessProfileLocationGroupFilter(); - } - DynamicBusinessProfileLocationGroupFilter.MergeFrom(other.DynamicBusinessProfileLocationGroupFilter); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (dynamicBusinessProfileLocationGroupFilter_ == null) { - DynamicBusinessProfileLocationGroupFilter = new global::Google.Ads.GoogleAds.V12.Common.DynamicBusinessProfileLocationGroupFilter(); - } - input.ReadMessage(DynamicBusinessProfileLocationGroupFilter); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (dynamicBusinessProfileLocationGroupFilter_ == null) { - DynamicBusinessProfileLocationGroupFilter = new global::Google.Ads.GoogleAds.V12.Common.DynamicBusinessProfileLocationGroupFilter(); - } - input.ReadMessage(DynamicBusinessProfileLocationGroupFilter); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a filter on Business Profile locations in an asset set. If - /// multiple filters are provided, they are AND'ed together. - /// - public sealed partial class DynamicBusinessProfileLocationGroupFilter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicBusinessProfileLocationGroupFilter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicBusinessProfileLocationGroupFilter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicBusinessProfileLocationGroupFilter(DynamicBusinessProfileLocationGroupFilter other) : this() { - labelFilters_ = other.labelFilters_.Clone(); - businessNameFilter_ = other.businessNameFilter_ != null ? other.businessNameFilter_.Clone() : null; - listingIdFilters_ = other.listingIdFilters_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicBusinessProfileLocationGroupFilter Clone() { - return new DynamicBusinessProfileLocationGroupFilter(this); - } - - /// Field number for the "label_filters" field. - public const int LabelFiltersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_labelFilters_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField labelFilters_ = new pbc::RepeatedField(); - /// - /// Used to filter Business Profile locations by label. Only locations that - /// have any of the listed labels will be in the asset set. - /// Label filters are OR'ed together. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LabelFilters { - get { return labelFilters_; } - } - - /// Field number for the "business_name_filter" field. - public const int BusinessNameFilterFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.BusinessProfileBusinessNameFilter businessNameFilter_; - /// - /// Used to filter Business Profile locations by business name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.BusinessProfileBusinessNameFilter BusinessNameFilter { - get { return businessNameFilter_; } - set { - businessNameFilter_ = value; - } - } - - /// Field number for the "listing_id_filters" field. - public const int ListingIdFiltersFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_listingIdFilters_codec - = pb::FieldCodec.ForInt64(26); - private readonly pbc::RepeatedField listingIdFilters_ = new pbc::RepeatedField(); - /// - /// Used to filter Business Profile locations by listing ids. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ListingIdFilters { - get { return listingIdFilters_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicBusinessProfileLocationGroupFilter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicBusinessProfileLocationGroupFilter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!labelFilters_.Equals(other.labelFilters_)) return false; - if (!object.Equals(BusinessNameFilter, other.BusinessNameFilter)) return false; - if(!listingIdFilters_.Equals(other.listingIdFilters_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= labelFilters_.GetHashCode(); - if (businessNameFilter_ != null) hash ^= BusinessNameFilter.GetHashCode(); - hash ^= listingIdFilters_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - labelFilters_.WriteTo(output, _repeated_labelFilters_codec); - if (businessNameFilter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BusinessNameFilter); - } - listingIdFilters_.WriteTo(output, _repeated_listingIdFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - labelFilters_.WriteTo(ref output, _repeated_labelFilters_codec); - if (businessNameFilter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BusinessNameFilter); - } - listingIdFilters_.WriteTo(ref output, _repeated_listingIdFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += labelFilters_.CalculateSize(_repeated_labelFilters_codec); - if (businessNameFilter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BusinessNameFilter); - } - size += listingIdFilters_.CalculateSize(_repeated_listingIdFilters_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicBusinessProfileLocationGroupFilter other) { - if (other == null) { - return; - } - labelFilters_.Add(other.labelFilters_); - if (other.businessNameFilter_ != null) { - if (businessNameFilter_ == null) { - BusinessNameFilter = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileBusinessNameFilter(); - } - BusinessNameFilter.MergeFrom(other.BusinessNameFilter); - } - listingIdFilters_.Add(other.listingIdFilters_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - labelFilters_.AddEntriesFrom(input, _repeated_labelFilters_codec); - break; - } - case 18: { - if (businessNameFilter_ == null) { - BusinessNameFilter = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileBusinessNameFilter(); - } - input.ReadMessage(BusinessNameFilter); - break; - } - case 26: - case 24: { - listingIdFilters_.AddEntriesFrom(input, _repeated_listingIdFilters_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - labelFilters_.AddEntriesFrom(ref input, _repeated_labelFilters_codec); - break; - } - case 18: { - if (businessNameFilter_ == null) { - BusinessNameFilter = new global::Google.Ads.GoogleAds.V12.Common.BusinessProfileBusinessNameFilter(); - } - input.ReadMessage(BusinessNameFilter); - break; - } - case 26: - case 24: { - listingIdFilters_.AddEntriesFrom(ref input, _repeated_listingIdFilters_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Business Profile location group business name filter. - /// - public sealed partial class BusinessProfileBusinessNameFilter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BusinessProfileBusinessNameFilter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileBusinessNameFilter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileBusinessNameFilter(BusinessProfileBusinessNameFilter other) : this() { - businessName_ = other.businessName_; - filterType_ = other.filterType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileBusinessNameFilter Clone() { - return new BusinessProfileBusinessNameFilter(this); - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 1; - private string businessName_ = ""; - /// - /// Business name string to use for filtering. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "filter_type" field. - public const int FilterTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType filterType_ = global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType.Unspecified; - /// - /// The type of string matching to use when filtering with business_name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType FilterType { - get { return filterType_; } - set { - filterType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BusinessProfileBusinessNameFilter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BusinessProfileBusinessNameFilter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BusinessName != other.BusinessName) return false; - if (FilterType != other.FilterType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BusinessName.Length != 0) hash ^= BusinessName.GetHashCode(); - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType.Unspecified) hash ^= FilterType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BusinessName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BusinessName); - } - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) FilterType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BusinessName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BusinessName); - } - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) FilterType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BusinessName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BusinessProfileBusinessNameFilter other) { - if (other == null) { - return; - } - if (other.BusinessName.Length != 0) { - BusinessName = other.BusinessName; - } - if (other.FilterType != global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType.Unspecified) { - FilterType = other.FilterType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - BusinessName = input.ReadString(); - break; - } - case 16: { - FilterType = (global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - BusinessName = input.ReadString(); - break; - } - case 16: { - FilterType = (global::Google.Ads.GoogleAds.V12.Enums.LocationStringFilterTypeEnum.Types.LocationStringFilterType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents information about a Chain dynamic location group. - /// Only applicable if the sync level AssetSet's type is LOCATION_SYNC and - /// sync source is chain. - /// - public sealed partial class ChainLocationGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainLocationGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetSetTypesReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainLocationGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainLocationGroup(ChainLocationGroup other) : this() { - dynamicChainLocationGroupFilters_ = other.dynamicChainLocationGroupFilters_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainLocationGroup Clone() { - return new ChainLocationGroup(this); - } - - /// Field number for the "dynamic_chain_location_group_filters" field. - public const int DynamicChainLocationGroupFiltersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_dynamicChainLocationGroupFilters_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.ChainFilter.Parser); - private readonly pbc::RepeatedField dynamicChainLocationGroupFilters_ = new pbc::RepeatedField(); - /// - /// Used to filter chain locations by chain ids. - /// Only Locations that belong to the specified chain(s) will be in the asset - /// set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DynamicChainLocationGroupFilters { - get { return dynamicChainLocationGroupFilters_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChainLocationGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChainLocationGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!dynamicChainLocationGroupFilters_.Equals(other.dynamicChainLocationGroupFilters_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= dynamicChainLocationGroupFilters_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - dynamicChainLocationGroupFilters_.WriteTo(output, _repeated_dynamicChainLocationGroupFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - dynamicChainLocationGroupFilters_.WriteTo(ref output, _repeated_dynamicChainLocationGroupFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += dynamicChainLocationGroupFilters_.CalculateSize(_repeated_dynamicChainLocationGroupFilters_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChainLocationGroup other) { - if (other == null) { - return; - } - dynamicChainLocationGroupFilters_.Add(other.dynamicChainLocationGroupFilters_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - dynamicChainLocationGroupFilters_.AddEntriesFrom(input, _repeated_dynamicChainLocationGroupFilters_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - dynamicChainLocationGroupFilters_.AddEntriesFrom(ref input, _repeated_dynamicChainLocationGroupFilters_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetSource.g.cs b/Google.Ads.GoogleAds/src/V12/AssetSource.g.cs deleted file mode 100755 index b12feb9c6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetSource.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_source.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_source.proto - public static partial class AssetSourceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_source.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetSourceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfc291cmNl", - "LnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiaQoPQXNz", - "ZXRTb3VyY2VFbnVtIlYKC0Fzc2V0U291cmNlEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEg4KCkFEVkVSVElTRVIQAhIZChVBVVRPTUFUSUNBTExZ", - "X0NSRUFURUQQA0LqAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtc0IQQXNzZXRTb3VyY2VQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2Vu", - "dW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIe", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Source of the asset or asset link for who generated the entity. - /// For example, advertiser or automatically created. - /// - public sealed partial class AssetSourceEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetSourceEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetSourceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSourceEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSourceEnum(AssetSourceEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetSourceEnum Clone() { - return new AssetSourceEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetSourceEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetSourceEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetSourceEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetSourceEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible source of asset. - /// - public enum AssetSource { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The asset or asset link is provided by advertiser. - /// - [pbr::OriginalName("ADVERTISER")] Advertiser = 2, - /// - /// The asset or asset link is generated by Google. - /// - [pbr::OriginalName("AUTOMATICALLY_CREATED")] AutomaticallyCreated = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetType.g.cs b/Google.Ads.GoogleAds/src/V12/AssetType.g.cs deleted file mode 100755 index 945d7bd7e..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetType.g.cs +++ /dev/null @@ -1,342 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/asset_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/asset_type.proto - public static partial class AssetTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/asset_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfdHlwZS5w", - "cm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIpIECg1Bc3Nl", - "dFR5cGVFbnVtIoAECglBc3NldFR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESEQoNWU9VVFVCRV9WSURFTxACEhAKDE1FRElBX0JVTkRMRRAD", - "EgkKBUlNQUdFEAQSCAoEVEVYVBAFEg0KCUxFQURfRk9STRAGEhIKDkJPT0tf", - "T05fR09PR0xFEAcSDQoJUFJPTU9USU9OEAgSCwoHQ0FMTE9VVBAJEhYKElNU", - "UlVDVFVSRURfU05JUFBFVBAKEgwKCFNJVEVMSU5LEAsSDQoJUEFHRV9GRUVE", - "EAwSFQoRRFlOQU1JQ19FRFVDQVRJT04QDRIOCgpNT0JJTEVfQVBQEA4SEQoN", - "SE9URUxfQ0FMTE9VVBAPEggKBENBTEwQEBIJCgVQUklDRRAREhIKDkNBTExf", - "VE9fQUNUSU9OEBISFwoTRFlOQU1JQ19SRUFMX0VTVEFURRATEhIKDkRZTkFN", - "SUNfQ1VTVE9NEBQSHgoaRFlOQU1JQ19IT1RFTFNfQU5EX1JFTlRBTFMQFRIT", - "Cg9EWU5BTUlDX0ZMSUdIVFMQFhIbChdESVNDT1ZFUllfQ0FST1VTRUxfQ0FS", - "RBAXEhIKDkRZTkFNSUNfVFJBVkVMEBgSEQoNRFlOQU1JQ19MT0NBTBAZEhAK", - "DERZTkFNSUNfSk9CUxAaEgwKCExPQ0FUSU9OEBtC6AEKImNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXNCDkFzc2V0VHlwZVByb3RvUAFaQ2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51", - "bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AssetTypeEnum.Types.AssetType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the types of asset. - /// - public sealed partial class AssetTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AssetTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetTypeEnum(AssetTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetTypeEnum Clone() { - return new AssetTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AssetTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible types of asset. - /// - public enum AssetType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// YouTube video asset. - /// - [pbr::OriginalName("YOUTUBE_VIDEO")] YoutubeVideo = 2, - /// - /// Media bundle asset. - /// - [pbr::OriginalName("MEDIA_BUNDLE")] MediaBundle = 3, - /// - /// Image asset. - /// - [pbr::OriginalName("IMAGE")] Image = 4, - /// - /// Text asset. - /// - [pbr::OriginalName("TEXT")] Text = 5, - /// - /// Lead form asset. - /// - [pbr::OriginalName("LEAD_FORM")] LeadForm = 6, - /// - /// Book on Google asset. - /// - [pbr::OriginalName("BOOK_ON_GOOGLE")] BookOnGoogle = 7, - /// - /// Promotion asset. - /// - [pbr::OriginalName("PROMOTION")] Promotion = 8, - /// - /// Callout asset. - /// - [pbr::OriginalName("CALLOUT")] Callout = 9, - /// - /// Structured Snippet asset. - /// - [pbr::OriginalName("STRUCTURED_SNIPPET")] StructuredSnippet = 10, - /// - /// Sitelink asset. - /// - [pbr::OriginalName("SITELINK")] Sitelink = 11, - /// - /// Page Feed asset. - /// - [pbr::OriginalName("PAGE_FEED")] PageFeed = 12, - /// - /// Dynamic Education asset. - /// - [pbr::OriginalName("DYNAMIC_EDUCATION")] DynamicEducation = 13, - /// - /// Mobile app asset. - /// - [pbr::OriginalName("MOBILE_APP")] MobileApp = 14, - /// - /// Hotel callout asset. - /// - [pbr::OriginalName("HOTEL_CALLOUT")] HotelCallout = 15, - /// - /// Call asset. - /// - [pbr::OriginalName("CALL")] Call = 16, - /// - /// Price asset. - /// - [pbr::OriginalName("PRICE")] Price = 17, - /// - /// Call to action asset. - /// - [pbr::OriginalName("CALL_TO_ACTION")] CallToAction = 18, - /// - /// Dynamic real estate asset. - /// - [pbr::OriginalName("DYNAMIC_REAL_ESTATE")] DynamicRealEstate = 19, - /// - /// Dynamic custom asset. - /// - [pbr::OriginalName("DYNAMIC_CUSTOM")] DynamicCustom = 20, - /// - /// Dynamic hotels and rentals asset. - /// - [pbr::OriginalName("DYNAMIC_HOTELS_AND_RENTALS")] DynamicHotelsAndRentals = 21, - /// - /// Dynamic flights asset. - /// - [pbr::OriginalName("DYNAMIC_FLIGHTS")] DynamicFlights = 22, - /// - /// Discovery Carousel Card asset. - /// - [pbr::OriginalName("DISCOVERY_CAROUSEL_CARD")] DiscoveryCarouselCard = 23, - /// - /// Dynamic travel asset. - /// - [pbr::OriginalName("DYNAMIC_TRAVEL")] DynamicTravel = 24, - /// - /// Dynamic local asset. - /// - [pbr::OriginalName("DYNAMIC_LOCAL")] DynamicLocal = 25, - /// - /// Dynamic jobs asset. - /// - [pbr::OriginalName("DYNAMIC_JOBS")] DynamicJobs = 26, - /// - /// Location asset. - /// - [pbr::OriginalName("LOCATION")] Location = 27, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetTypes.g.cs b/Google.Ads.GoogleAds/src/V12/AssetTypes.g.cs deleted file mode 100755 index 93f80cb65..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetTypes.g.cs +++ /dev/null @@ -1,14716 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/asset_types.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/asset_types.proto - public static partial class AssetTypesReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/asset_types.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetTypesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Fzc2V0X3R5cGVz", - "LnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uGi5nb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2NyaXRlcmlhLnByb3RvGjFn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2ZlZWRfY29tbW9uLnBy", - "b3RvGkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbF9jb252", - "ZXJzaW9uX3JlcG9ydGluZ19zdGF0ZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zL2NhbGxfdG9fYWN0aW9uX3R5cGUucHJvdG8aQmdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9sZWFkX2Zvcm1fY2FsbF90", - "b19hY3Rpb25fdHlwZS5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2xlYWRfZm9ybV9kZXNpcmVkX2ludGVudC5wcm90bxpEZ29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2xlYWRfZm9ybV9maWVsZF91c2Vy", - "X2lucHV0X3R5cGUucHJvdG8aTmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcy9sZWFkX2Zvcm1fcG9zdF9zdWJtaXRfY2FsbF90b19hY3Rpb25fdHlw", - "ZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2xvY2F0", - "aW9uX293bmVyc2hpcF90eXBlLnByb3RvGi5nb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvbWltZV90eXBlLnByb3RvGjZnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvbW9iaWxlX2FwcF92ZW5kb3IucHJvdG8aRGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wcmljZV9leHRlbnNpb25fcHJp", - "Y2VfcXVhbGlmaWVyLnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMvcHJpY2VfZXh0ZW5zaW9uX3ByaWNlX3VuaXQucHJvdG8aOWdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wcmljZV9leHRlbnNpb25fdHlw", - "ZS5wcm90bxpKZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Byb21v", - "dGlvbl9leHRlbnNpb25fZGlzY291bnRfbW9kaWZpZXIucHJvdG8aQWdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wcm9tb3Rpb25fZXh0ZW5zaW9u", - "X29jY2FzaW9uLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", - "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvImQKEVlvdXR1YmVWaWRl", - "b0Fzc2V0Eh0KEHlvdXR1YmVfdmlkZW9faWQYAiABKAlIAIgBARIbChN5b3V0", - "dWJlX3ZpZGVvX3RpdGxlGAMgASgJQhMKEV95b3V0dWJlX3ZpZGVvX2lkIi4K", - "EE1lZGlhQnVuZGxlQXNzZXQSEQoEZGF0YRgCIAEoDEgAiAEBQgcKBV9kYXRh", - "ItwBCgpJbWFnZUFzc2V0EhEKBGRhdGEYBSABKAxIAIgBARIWCglmaWxlX3Np", - "emUYBiABKANIAYgBARJICgltaW1lX3R5cGUYAyABKA4yNS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuTWltZVR5cGVFbnVtLk1pbWVUeXBlEkIK", - "CWZ1bGxfc2l6ZRgEIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uSW1hZ2VEaW1lbnNpb25CBwoFX2RhdGFCDAoKX2ZpbGVfc2l6ZSKE", - "AQoOSW1hZ2VEaW1lbnNpb24SGgoNaGVpZ2h0X3BpeGVscxgEIAEoA0gAiAEB", - "EhkKDHdpZHRoX3BpeGVscxgFIAEoA0gBiAEBEhAKA3VybBgGIAEoCUgCiAEB", - "QhAKDl9oZWlnaHRfcGl4ZWxzQg8KDV93aWR0aF9waXhlbHNCBgoEX3VybCIn", - "CglUZXh0QXNzZXQSEQoEdGV4dBgCIAEoCUgAiAEBQgcKBV90ZXh0IoIICg1M", - "ZWFkRm9ybUFzc2V0EhoKDWJ1c2luZXNzX25hbWUYCiABKAlCA+BBAhJ3ChNj", - "YWxsX3RvX2FjdGlvbl90eXBlGBEgASgOMlUuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLkxlYWRGb3JtQ2FsbFRvQWN0aW9uVHlwZUVudW0uTGVh", - "ZEZvcm1DYWxsVG9BY3Rpb25UeXBlQgPgQQISJwoaY2FsbF90b19hY3Rpb25f", - "ZGVzY3JpcHRpb24YEiABKAlCA+BBAhIVCghoZWFkbGluZRgMIAEoCUID4EEC", - "EhgKC2Rlc2NyaXB0aW9uGA0gASgJQgPgQQISHwoScHJpdmFjeV9wb2xpY3lf", - "dXJsGA4gASgJQgPgQQISIQoUcG9zdF9zdWJtaXRfaGVhZGxpbmUYDyABKAlI", - "AIgBARIkChdwb3N0X3N1Ym1pdF9kZXNjcmlwdGlvbhgQIAEoCUgBiAEBEj4K", - "BmZpZWxkcxgIIAMoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uTGVhZEZvcm1GaWVsZBJcChZjdXN0b21fcXVlc3Rpb25fZmllbGRzGBcg", - "AygLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5MZWFkRm9y", - "bUN1c3RvbVF1ZXN0aW9uRmllbGQSUQoQZGVsaXZlcnlfbWV0aG9kcxgJIAMo", - "CzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uTGVhZEZvcm1E", - "ZWxpdmVyeU1ldGhvZBKSAQofcG9zdF9zdWJtaXRfY2FsbF90b19hY3Rpb25f", - "dHlwZRgTIAEoDjJpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5M", - "ZWFkRm9ybVBvc3RTdWJtaXRDYWxsVG9BY3Rpb25UeXBlRW51bS5MZWFkRm9y", - "bVBvc3RTdWJtaXRDYWxsVG9BY3Rpb25UeXBlEiMKFmJhY2tncm91bmRfaW1h", - "Z2VfYXNzZXQYFCABKAlIAogBARJnCg5kZXNpcmVkX2ludGVudBgVIAEoDjJP", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5MZWFkRm9ybURlc2ly", - "ZWRJbnRlbnRFbnVtLkxlYWRGb3JtRGVzaXJlZEludGVudBIeChFjdXN0b21f", - "ZGlzY2xvc3VyZRgWIAEoCUgDiAEBQhcKFV9wb3N0X3N1Ym1pdF9oZWFkbGlu", - "ZUIaChhfcG9zdF9zdWJtaXRfZGVzY3JpcHRpb25CGQoXX2JhY2tncm91bmRf", - "aW1hZ2VfYXNzZXRCFAoSX2N1c3RvbV9kaXNjbG9zdXJlIugBCg1MZWFkRm9y", - "bUZpZWxkEm0KCmlucHV0X3R5cGUYASABKA4yWS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuTGVhZEZvcm1GaWVsZFVzZXJJbnB1dFR5cGVFbnVt", - "LkxlYWRGb3JtRmllbGRVc2VySW5wdXRUeXBlEl0KFXNpbmdsZV9jaG9pY2Vf", - "YW5zd2VycxgCIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uTGVhZEZvcm1TaW5nbGVDaG9pY2VBbnN3ZXJzSABCCQoHYW5zd2VycyKl", - "AQobTGVhZEZvcm1DdXN0b21RdWVzdGlvbkZpZWxkEhwKFGN1c3RvbV9xdWVz", - "dGlvbl90ZXh0GAEgASgJEl0KFXNpbmdsZV9jaG9pY2VfYW5zd2VycxgCIAEo", - "CzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uTGVhZEZvcm1T", - "aW5nbGVDaG9pY2VBbnN3ZXJzSABCCQoHYW5zd2VycyIuChtMZWFkRm9ybVNp", - "bmdsZUNob2ljZUFuc3dlcnMSDwoHYW5zd2VycxgBIAMoCSJxChZMZWFkRm9y", - "bURlbGl2ZXJ5TWV0aG9kEkMKB3dlYmhvb2sYASABKAsyMC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLldlYmhvb2tEZWxpdmVyeUgAQhIKEGRl", - "bGl2ZXJ5X2RldGFpbHMivwEKD1dlYmhvb2tEZWxpdmVyeRIjChZhZHZlcnRp", - "c2VyX3dlYmhvb2tfdXJsGAQgASgJSACIAQESGgoNZ29vZ2xlX3NlY3JldBgF", - "IAEoCUgBiAEBEiMKFnBheWxvYWRfc2NoZW1hX3ZlcnNpb24YBiABKANIAogB", - "AUIZChdfYWR2ZXJ0aXNlcl93ZWJob29rX3VybEIQCg5fZ29vZ2xlX3NlY3Jl", - "dEIZChdfcGF5bG9hZF9zY2hlbWFfdmVyc2lvbiITChFCb29rT25Hb29nbGVB", - "c3NldCLLBQoOUHJvbW90aW9uQXNzZXQSHQoQcHJvbW90aW9uX3RhcmdldBgB", - "IAEoCUID4EECEoQBChFkaXNjb3VudF9tb2RpZmllchgCIAEoDjJpLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Qcm9tb3Rpb25FeHRlbnNpb25E", - "aXNjb3VudE1vZGlmaWVyRW51bS5Qcm9tb3Rpb25FeHRlbnNpb25EaXNjb3Vu", - "dE1vZGlmaWVyEh0KFXJlZGVtcHRpb25fc3RhcnRfZGF0ZRgHIAEoCRIbChNy", - "ZWRlbXB0aW9uX2VuZF9kYXRlGAggASgJEmsKCG9jY2FzaW9uGAkgASgOMlku", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlByb21vdGlvbkV4dGVu", - "c2lvbk9jY2FzaW9uRW51bS5Qcm9tb3Rpb25FeHRlbnNpb25PY2Nhc2lvbhIV", - "Cg1sYW5ndWFnZV9jb2RlGAogASgJEhIKCnN0YXJ0X2RhdGUYCyABKAkSEAoI", - "ZW5kX2RhdGUYDCABKAkSTAoTYWRfc2NoZWR1bGVfdGFyZ2V0cxgNIAMoCzIv", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQWRTY2hlZHVsZUlu", - "Zm8SFQoLcGVyY2VudF9vZmYYAyABKANIABJCChBtb25leV9hbW91bnRfb2Zm", - "GAQgASgLMiYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Nb25l", - "eUgAEhgKDnByb21vdGlvbl9jb2RlGAUgASgJSAESRAoSb3JkZXJzX292ZXJf", - "YW1vdW50GAYgASgLMiYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5Nb25leUgBQg8KDWRpc2NvdW50X3R5cGVCEwoRcHJvbW90aW9uX3RyaWdn", - "ZXIinQEKDENhbGxvdXRBc3NldBIZCgxjYWxsb3V0X3RleHQYASABKAlCA+BB", - "AhISCgpzdGFydF9kYXRlGAIgASgJEhAKCGVuZF9kYXRlGAMgASgJEkwKE2Fk", - "X3NjaGVkdWxlX3RhcmdldHMYBCADKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLkFkU2NoZWR1bGVJbmZvIkIKFlN0cnVjdHVyZWRTbmlw", - "cGV0QXNzZXQSEwoGaGVhZGVyGAEgASgJQgPgQQISEwoGdmFsdWVzGAIgAygJ", - "QgPgQQIixwEKDVNpdGVsaW5rQXNzZXQSFgoJbGlua190ZXh0GAEgASgJQgPg", - "QQISFAoMZGVzY3JpcHRpb24xGAIgASgJEhQKDGRlc2NyaXB0aW9uMhgDIAEo", - "CRISCgpzdGFydF9kYXRlGAQgASgJEhAKCGVuZF9kYXRlGAUgASgJEkwKE2Fk", - "X3NjaGVkdWxlX3RhcmdldHMYBiADKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLkFkU2NoZWR1bGVJbmZvIjYKDVBhZ2VGZWVkQXNzZXQS", - "FQoIcGFnZV91cmwYASABKAlCA+BBAhIOCgZsYWJlbHMYAiADKAki6AIKFUR5", - "bmFtaWNFZHVjYXRpb25Bc3NldBIXCgpwcm9ncmFtX2lkGAEgASgJQgPgQQIS", - "EwoLbG9jYXRpb25faWQYAiABKAkSGQoMcHJvZ3JhbV9uYW1lGAMgASgJQgPg", - "QQISDwoHc3ViamVjdBgEIAEoCRIbChNwcm9ncmFtX2Rlc2NyaXB0aW9uGAUg", - "ASgJEhMKC3NjaG9vbF9uYW1lGAYgASgJEg8KB2FkZHJlc3MYByABKAkSGwoT", - "Y29udGV4dHVhbF9rZXl3b3JkcxgIIAMoCRIYChBhbmRyb2lkX2FwcF9saW5r", - "GAkgASgJEhsKE3NpbWlsYXJfcHJvZ3JhbV9pZHMYCiADKAkSFAoMaW9zX2Fw", - "cF9saW5rGAsgASgJEhgKEGlvc19hcHBfc3RvcmVfaWQYDCABKAMSGwoTdGh1", - "bWJuYWlsX2ltYWdlX3VybBgNIAEoCRIRCglpbWFnZV91cmwYDiABKAkiwAEK", - "Dk1vYmlsZUFwcEFzc2V0EhMKBmFwcF9pZBgBIAEoCUID4EECElsKCWFwcF9z", - "dG9yZRgCIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5N", - "b2JpbGVBcHBWZW5kb3JFbnVtLk1vYmlsZUFwcFZlbmRvckID4EECEhYKCWxp", - "bmtfdGV4dBgDIAEoCUID4EECEhIKCnN0YXJ0X2RhdGUYBCABKAkSEAoIZW5k", - "X2RhdGUYBSABKAkiQgoRSG90ZWxDYWxsb3V0QXNzZXQSEQoEdGV4dBgBIAEo", - "CUID4EECEhoKDWxhbmd1YWdlX2NvZGUYAiABKAlCA+BBAiLoAgoJQ2FsbEFz", - "c2V0EhkKDGNvdW50cnlfY29kZRgBIAEoCUID4EECEhkKDHBob25lX251bWJl", - "chgCIAEoCUID4EECEoYBCh9jYWxsX2NvbnZlcnNpb25fcmVwb3J0aW5nX3N0", - "YXRlGAMgASgOMl0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkNh", - "bGxDb252ZXJzaW9uUmVwb3J0aW5nU3RhdGVFbnVtLkNhbGxDb252ZXJzaW9u", - "UmVwb3J0aW5nU3RhdGUSTgoWY2FsbF9jb252ZXJzaW9uX2FjdGlvbhgEIAEo", - "CUIu+kErCilnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ29udmVyc2lvbkFj", - "dGlvbhJMChNhZF9zY2hlZHVsZV90YXJnZXRzGAUgAygLMi8uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZFNjaGVkdWxlSW5mbyLHAgoKUHJp", - "Y2VBc3NldBJcCgR0eXBlGAEgASgOMkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLlByaWNlRXh0ZW5zaW9uVHlwZUVudW0uUHJpY2VFeHRlbnNp", - "b25UeXBlQgPgQQISdgoPcHJpY2VfcXVhbGlmaWVyGAIgASgOMl0uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlByaWNlRXh0ZW5zaW9uUHJpY2VR", - "dWFsaWZpZXJFbnVtLlByaWNlRXh0ZW5zaW9uUHJpY2VRdWFsaWZpZXISGgoN", - "bGFuZ3VhZ2VfY29kZRgDIAEoCUID4EECEkcKD3ByaWNlX29mZmVyaW5ncxgE", - "IAMoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUHJpY2VP", - "ZmZlcmluZyKPAgoNUHJpY2VPZmZlcmluZxITCgZoZWFkZXIYASABKAlCA+BB", - "AhIYCgtkZXNjcmlwdGlvbhgCIAEoCUID4EECEjoKBXByaWNlGAMgASgLMiYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Nb25leUID4EECEmEK", - "BHVuaXQYBCABKA4yUy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "UHJpY2VFeHRlbnNpb25QcmljZVVuaXRFbnVtLlByaWNlRXh0ZW5zaW9uUHJp", - "Y2VVbml0EhYKCWZpbmFsX3VybBgFIAEoCUID4EECEhgKEGZpbmFsX21vYmls", - "ZV91cmwYBiABKAkicgoRQ2FsbFRvQWN0aW9uQXNzZXQSXQoOY2FsbF90b19h", - "Y3Rpb24YASABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "Q2FsbFRvQWN0aW9uVHlwZUVudW0uQ2FsbFRvQWN0aW9uVHlwZSLxAgoWRHlu", - "YW1pY1JlYWxFc3RhdGVBc3NldBIXCgpsaXN0aW5nX2lkGAEgASgJQgPgQQIS", - "GQoMbGlzdGluZ19uYW1lGAIgASgJQgPgQQISEQoJY2l0eV9uYW1lGAMgASgJ", - "EhMKC2Rlc2NyaXB0aW9uGAQgASgJEg8KB2FkZHJlc3MYBSABKAkSDQoFcHJp", - "Y2UYBiABKAkSEQoJaW1hZ2VfdXJsGAcgASgJEhUKDXByb3BlcnR5X3R5cGUY", - "CCABKAkSFAoMbGlzdGluZ190eXBlGAkgASgJEhsKE2NvbnRleHR1YWxfa2V5", - "d29yZHMYCiADKAkSFwoPZm9ybWF0dGVkX3ByaWNlGAsgASgJEhgKEGFuZHJv", - "aWRfYXBwX2xpbmsYDCABKAkSFAoMaW9zX2FwcF9saW5rGA0gASgJEhgKEGlv", - "c19hcHBfc3RvcmVfaWQYDiABKAMSGwoTc2ltaWxhcl9saXN0aW5nX2lkcxgP", - "IAMoCSKSAwoSRHluYW1pY0N1c3RvbUFzc2V0Eg8KAmlkGAEgASgJQgPgQQIS", - "CwoDaWQyGAIgASgJEhcKCml0ZW1fdGl0bGUYAyABKAlCA+BBAhIVCg1pdGVt", - "X3N1YnRpdGxlGAQgASgJEhgKEGl0ZW1fZGVzY3JpcHRpb24YBSABKAkSFAoM", - "aXRlbV9hZGRyZXNzGAYgASgJEhUKDWl0ZW1fY2F0ZWdvcnkYByABKAkSDQoF", - "cHJpY2UYCCABKAkSEgoKc2FsZV9wcmljZRgJIAEoCRIXCg9mb3JtYXR0ZWRf", - "cHJpY2UYCiABKAkSHAoUZm9ybWF0dGVkX3NhbGVfcHJpY2UYCyABKAkSEQoJ", - "aW1hZ2VfdXJsGAwgASgJEhsKE2NvbnRleHR1YWxfa2V5d29yZHMYDSADKAkS", - "GAoQYW5kcm9pZF9hcHBfbGluaxgOIAEoCRIUCgxpb3NfYXBwX2xpbmsYECAB", - "KAkSGAoQaW9zX2FwcF9zdG9yZV9pZBgRIAEoAxITCgtzaW1pbGFyX2lkcxgP", - "IAMoCSKtAwocRHluYW1pY0hvdGVsc0FuZFJlbnRhbHNBc3NldBIYCgtwcm9w", - "ZXJ0eV9pZBgBIAEoCUID4EECEhoKDXByb3BlcnR5X25hbWUYAiABKAlCA+BB", - "AhIRCglpbWFnZV91cmwYAyABKAkSGAoQZGVzdGluYXRpb25fbmFtZRgEIAEo", - "CRITCgtkZXNjcmlwdGlvbhgFIAEoCRINCgVwcmljZRgGIAEoCRISCgpzYWxl", - "X3ByaWNlGAcgASgJEhMKC3N0YXJfcmF0aW5nGAggASgDEhAKCGNhdGVnb3J5", - "GAkgASgJEhsKE2NvbnRleHR1YWxfa2V5d29yZHMYCiADKAkSDwoHYWRkcmVz", - "cxgLIAEoCRIYChBhbmRyb2lkX2FwcF9saW5rGAwgASgJEhQKDGlvc19hcHBf", - "bGluaxgNIAEoCRIYChBpb3NfYXBwX3N0b3JlX2lkGA4gASgDEhcKD2Zvcm1h", - "dHRlZF9wcmljZRgPIAEoCRIcChRmb3JtYXR0ZWRfc2FsZV9wcmljZRgQIAEo", - "CRIcChRzaW1pbGFyX3Byb3BlcnR5X2lkcxgRIAMoCSKTAwoTRHluYW1pY0Zs", - "aWdodHNBc3NldBIbCg5kZXN0aW5hdGlvbl9pZBgBIAEoCUID4EECEhEKCW9y", - "aWdpbl9pZBgCIAEoCRIfChJmbGlnaHRfZGVzY3JpcHRpb24YAyABKAlCA+BB", - "AhIRCglpbWFnZV91cmwYBCABKAkSGAoQZGVzdGluYXRpb25fbmFtZRgFIAEo", - "CRITCgtvcmlnaW5fbmFtZRgGIAEoCRIUCgxmbGlnaHRfcHJpY2UYByABKAkS", - "GQoRZmxpZ2h0X3NhbGVfcHJpY2UYCCABKAkSFwoPZm9ybWF0dGVkX3ByaWNl", - "GAkgASgJEhwKFGZvcm1hdHRlZF9zYWxlX3ByaWNlGAogASgJEhgKEGFuZHJv", - "aWRfYXBwX2xpbmsYCyABKAkSFAoMaW9zX2FwcF9saW5rGAwgASgJEhgKEGlv", - "c19hcHBfc3RvcmVfaWQYDSABKAMSHwoXc2ltaWxhcl9kZXN0aW5hdGlvbl9p", - "ZHMYDiADKAkSFgoOY3VzdG9tX21hcHBpbmcYDyABKAkivQEKGkRpc2NvdmVy", - "eUNhcm91c2VsQ2FyZEFzc2V0Eh0KFW1hcmtldGluZ19pbWFnZV9hc3NldBgB", - "IAEoCRIkChxzcXVhcmVfbWFya2V0aW5nX2ltYWdlX2Fzc2V0GAIgASgJEiYK", - "HnBvcnRyYWl0X21hcmtldGluZ19pbWFnZV9hc3NldBgDIAEoCRIVCghoZWFk", - "bGluZRgEIAEoCUID4EECEhsKE2NhbGxfdG9fYWN0aW9uX3RleHQYBSABKAki", - "qwMKEkR5bmFtaWNUcmF2ZWxBc3NldBIbCg5kZXN0aW5hdGlvbl9pZBgBIAEo", - "CUID4EECEhEKCW9yaWdpbl9pZBgCIAEoCRISCgV0aXRsZRgDIAEoCUID4EEC", - "EhgKEGRlc3RpbmF0aW9uX25hbWUYBCABKAkSGwoTZGVzdGluYXRpb25fYWRk", - "cmVzcxgFIAEoCRITCgtvcmlnaW5fbmFtZRgGIAEoCRINCgVwcmljZRgHIAEo", - "CRISCgpzYWxlX3ByaWNlGAggASgJEhcKD2Zvcm1hdHRlZF9wcmljZRgJIAEo", - "CRIcChRmb3JtYXR0ZWRfc2FsZV9wcmljZRgKIAEoCRIQCghjYXRlZ29yeRgL", - "IAEoCRIbChNjb250ZXh0dWFsX2tleXdvcmRzGAwgAygJEh8KF3NpbWlsYXJf", - "ZGVzdGluYXRpb25faWRzGA0gAygJEhEKCWltYWdlX3VybBgOIAEoCRIYChBh", - "bmRyb2lkX2FwcF9saW5rGA8gASgJEhQKDGlvc19hcHBfbGluaxgQIAEoCRIY", - "ChBpb3NfYXBwX3N0b3JlX2lkGBEgASgDIvkCChFEeW5hbWljTG9jYWxBc3Nl", - "dBIUCgdkZWFsX2lkGAEgASgJQgPgQQISFgoJZGVhbF9uYW1lGAIgASgJQgPg", - "QQISEAoIc3VidGl0bGUYAyABKAkSEwoLZGVzY3JpcHRpb24YBCABKAkSDQoF", - "cHJpY2UYBSABKAkSEgoKc2FsZV9wcmljZRgGIAEoCRIRCglpbWFnZV91cmwY", - "ByABKAkSDwoHYWRkcmVzcxgIIAEoCRIQCghjYXRlZ29yeRgJIAEoCRIbChNj", - "b250ZXh0dWFsX2tleXdvcmRzGAogAygJEhcKD2Zvcm1hdHRlZF9wcmljZRgL", - "IAEoCRIcChRmb3JtYXR0ZWRfc2FsZV9wcmljZRgMIAEoCRIYChBhbmRyb2lk", - "X2FwcF9saW5rGA0gASgJEhgKEHNpbWlsYXJfZGVhbF9pZHMYDiADKAkSFAoM", - "aW9zX2FwcF9saW5rGA8gASgJEhgKEGlvc19hcHBfc3RvcmVfaWQYECABKAMi", - "yQIKEER5bmFtaWNKb2JzQXNzZXQSEwoGam9iX2lkGAEgASgJQgPgQQISEwoL", - "bG9jYXRpb25faWQYAiABKAkSFgoJam9iX3RpdGxlGAMgASgJQgPgQQISFAoM", - "am9iX3N1YnRpdGxlGAQgASgJEhMKC2Rlc2NyaXB0aW9uGAUgASgJEhEKCWlt", - "YWdlX3VybBgGIAEoCRIUCgxqb2JfY2F0ZWdvcnkYByABKAkSGwoTY29udGV4", - "dHVhbF9rZXl3b3JkcxgIIAMoCRIPCgdhZGRyZXNzGAkgASgJEg4KBnNhbGFy", - "eRgKIAEoCRIYChBhbmRyb2lkX2FwcF9saW5rGAsgASgJEhcKD3NpbWlsYXJf", - "am9iX2lkcxgMIAMoCRIUCgxpb3NfYXBwX2xpbmsYDSABKAkSGAoQaW9zX2Fw", - "cF9zdG9yZV9pZBgOIAEoAyLxAQoNTG9jYXRpb25Bc3NldBIQCghwbGFjZV9p", - "ZBgBIAEoCRJcChpidXNpbmVzc19wcm9maWxlX2xvY2F0aW9ucxgCIAMoCzI4", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQnVzaW5lc3NQcm9m", - "aWxlTG9jYXRpb24ScAoXbG9jYXRpb25fb3duZXJzaGlwX3R5cGUYAyABKA4y", - "Ty5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuTG9jYXRpb25Pd25l", - "cnNoaXBUeXBlRW51bS5Mb2NhdGlvbk93bmVyc2hpcFR5cGUiUQoXQnVzaW5l", - "c3NQcm9maWxlTG9jYXRpb24SDgoGbGFiZWxzGAEgAygJEhIKCnN0b3JlX2Nv", - "ZGUYAiABKAkSEgoKbGlzdGluZ19pZBgDIAEoA0LvAQojY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb25CD0Fzc2V0VHlwZXNQcm90b1ABWkVn", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL2NvbW1vbjtjb21tb26iAgNHQUGqAh9Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuQ29tbW9uygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XENvbW1vbuoCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6Q29tbW9u", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.FeedCommonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MimeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset), global::Google.Ads.GoogleAds.V12.Common.YoutubeVideoAsset.Parser, new[]{ "YoutubeVideoId", "YoutubeVideoTitle" }, new[]{ "YoutubeVideoId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset), global::Google.Ads.GoogleAds.V12.Common.MediaBundleAsset.Parser, new[]{ "Data" }, new[]{ "Data" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ImageAsset), global::Google.Ads.GoogleAds.V12.Common.ImageAsset.Parser, new[]{ "Data", "FileSize", "MimeType", "FullSize" }, new[]{ "Data", "FileSize" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ImageDimension), global::Google.Ads.GoogleAds.V12.Common.ImageDimension.Parser, new[]{ "HeightPixels", "WidthPixels", "Url" }, new[]{ "HeightPixels", "WidthPixels", "Url" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TextAsset), global::Google.Ads.GoogleAds.V12.Common.TextAsset.Parser, new[]{ "Text" }, new[]{ "Text" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset), global::Google.Ads.GoogleAds.V12.Common.LeadFormAsset.Parser, new[]{ "BusinessName", "CallToActionType", "CallToActionDescription", "Headline", "Description", "PrivacyPolicyUrl", "PostSubmitHeadline", "PostSubmitDescription", "Fields", "CustomQuestionFields", "DeliveryMethods", "PostSubmitCallToActionType", "BackgroundImageAsset", "DesiredIntent", "CustomDisclosure" }, new[]{ "PostSubmitHeadline", "PostSubmitDescription", "BackgroundImageAsset", "CustomDisclosure" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LeadFormField), global::Google.Ads.GoogleAds.V12.Common.LeadFormField.Parser, new[]{ "InputType", "SingleChoiceAnswers" }, new[]{ "Answers" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LeadFormCustomQuestionField), global::Google.Ads.GoogleAds.V12.Common.LeadFormCustomQuestionField.Parser, new[]{ "CustomQuestionText", "SingleChoiceAnswers" }, new[]{ "Answers" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers), global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers.Parser, new[]{ "Answers" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LeadFormDeliveryMethod), global::Google.Ads.GoogleAds.V12.Common.LeadFormDeliveryMethod.Parser, new[]{ "Webhook" }, new[]{ "DeliveryDetails" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery), global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery.Parser, new[]{ "AdvertiserWebhookUrl", "GoogleSecret", "PayloadSchemaVersion" }, new[]{ "AdvertiserWebhookUrl", "GoogleSecret", "PayloadSchemaVersion" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset), global::Google.Ads.GoogleAds.V12.Common.BookOnGoogleAsset.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PromotionAsset), global::Google.Ads.GoogleAds.V12.Common.PromotionAsset.Parser, new[]{ "PromotionTarget", "DiscountModifier", "RedemptionStartDate", "RedemptionEndDate", "Occasion", "LanguageCode", "StartDate", "EndDate", "AdScheduleTargets", "PercentOff", "MoneyAmountOff", "PromotionCode", "OrdersOverAmount" }, new[]{ "DiscountType", "PromotionTrigger" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CalloutAsset), global::Google.Ads.GoogleAds.V12.Common.CalloutAsset.Parser, new[]{ "CalloutText", "StartDate", "EndDate", "AdScheduleTargets" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset), global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetAsset.Parser, new[]{ "Header", "Values" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset), global::Google.Ads.GoogleAds.V12.Common.SitelinkAsset.Parser, new[]{ "LinkText", "Description1", "Description2", "StartDate", "EndDate", "AdScheduleTargets" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset), global::Google.Ads.GoogleAds.V12.Common.PageFeedAsset.Parser, new[]{ "PageUrl", "Labels" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicEducationAsset.Parser, new[]{ "ProgramId", "LocationId", "ProgramName", "Subject", "ProgramDescription", "SchoolName", "Address", "ContextualKeywords", "AndroidAppLink", "SimilarProgramIds", "IosAppLink", "IosAppStoreId", "ThumbnailImageUrl", "ImageUrl" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset), global::Google.Ads.GoogleAds.V12.Common.MobileAppAsset.Parser, new[]{ "AppId", "AppStore", "LinkText", "StartDate", "EndDate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset), global::Google.Ads.GoogleAds.V12.Common.HotelCalloutAsset.Parser, new[]{ "Text", "LanguageCode" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CallAsset), global::Google.Ads.GoogleAds.V12.Common.CallAsset.Parser, new[]{ "CountryCode", "PhoneNumber", "CallConversionReportingState", "CallConversionAction", "AdScheduleTargets" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PriceAsset), global::Google.Ads.GoogleAds.V12.Common.PriceAsset.Parser, new[]{ "Type", "PriceQualifier", "LanguageCode", "PriceOfferings" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PriceOffering), global::Google.Ads.GoogleAds.V12.Common.PriceOffering.Parser, new[]{ "Header", "Description", "Price", "Unit", "FinalUrl", "FinalMobileUrl" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset), global::Google.Ads.GoogleAds.V12.Common.CallToActionAsset.Parser, new[]{ "CallToAction" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicRealEstateAsset.Parser, new[]{ "ListingId", "ListingName", "CityName", "Description", "Address", "Price", "ImageUrl", "PropertyType", "ListingType", "ContextualKeywords", "FormattedPrice", "AndroidAppLink", "IosAppLink", "IosAppStoreId", "SimilarListingIds" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicCustomAsset.Parser, new[]{ "Id", "Id2", "ItemTitle", "ItemSubtitle", "ItemDescription", "ItemAddress", "ItemCategory", "Price", "SalePrice", "FormattedPrice", "FormattedSalePrice", "ImageUrl", "ContextualKeywords", "AndroidAppLink", "IosAppLink", "IosAppStoreId", "SimilarIds" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicHotelsAndRentalsAsset.Parser, new[]{ "PropertyId", "PropertyName", "ImageUrl", "DestinationName", "Description", "Price", "SalePrice", "StarRating", "Category", "ContextualKeywords", "Address", "AndroidAppLink", "IosAppLink", "IosAppStoreId", "FormattedPrice", "FormattedSalePrice", "SimilarPropertyIds" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicFlightsAsset.Parser, new[]{ "DestinationId", "OriginId", "FlightDescription", "ImageUrl", "DestinationName", "OriginName", "FlightPrice", "FlightSalePrice", "FormattedPrice", "FormattedSalePrice", "AndroidAppLink", "IosAppLink", "IosAppStoreId", "SimilarDestinationIds", "CustomMapping" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset), global::Google.Ads.GoogleAds.V12.Common.DiscoveryCarouselCardAsset.Parser, new[]{ "MarketingImageAsset", "SquareMarketingImageAsset", "PortraitMarketingImageAsset", "Headline", "CallToActionText" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicTravelAsset.Parser, new[]{ "DestinationId", "OriginId", "Title", "DestinationName", "DestinationAddress", "OriginName", "Price", "SalePrice", "FormattedPrice", "FormattedSalePrice", "Category", "ContextualKeywords", "SimilarDestinationIds", "ImageUrl", "AndroidAppLink", "IosAppLink", "IosAppStoreId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicLocalAsset.Parser, new[]{ "DealId", "DealName", "Subtitle", "Description", "Price", "SalePrice", "ImageUrl", "Address", "Category", "ContextualKeywords", "FormattedPrice", "FormattedSalePrice", "AndroidAppLink", "SimilarDealIds", "IosAppLink", "IosAppStoreId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset), global::Google.Ads.GoogleAds.V12.Common.DynamicJobsAsset.Parser, new[]{ "JobId", "LocationId", "JobTitle", "JobSubtitle", "Description", "ImageUrl", "JobCategory", "ContextualKeywords", "Address", "Salary", "AndroidAppLink", "SimilarJobIds", "IosAppLink", "IosAppStoreId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LocationAsset), global::Google.Ads.GoogleAds.V12.Common.LocationAsset.Parser, new[]{ "PlaceId", "BusinessProfileLocations", "LocationOwnershipType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocation), global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocation.Parser, new[]{ "Labels", "StoreCode", "ListingId" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A YouTube asset. - /// - public sealed partial class YoutubeVideoAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new YoutubeVideoAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YoutubeVideoAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YoutubeVideoAsset(YoutubeVideoAsset other) : this() { - youtubeVideoId_ = other.youtubeVideoId_; - youtubeVideoTitle_ = other.youtubeVideoTitle_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YoutubeVideoAsset Clone() { - return new YoutubeVideoAsset(this); - } - - /// Field number for the "youtube_video_id" field. - public const int YoutubeVideoIdFieldNumber = 2; - private string youtubeVideoId_; - /// - /// YouTube video id. This is the 11 character string value used in the - /// YouTube video URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string YoutubeVideoId { - get { return youtubeVideoId_ ?? ""; } - set { - youtubeVideoId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "youtube_video_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasYoutubeVideoId { - get { return youtubeVideoId_ != null; } - } - /// Clears the value of the "youtube_video_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearYoutubeVideoId() { - youtubeVideoId_ = null; - } - - /// Field number for the "youtube_video_title" field. - public const int YoutubeVideoTitleFieldNumber = 3; - private string youtubeVideoTitle_ = ""; - /// - /// YouTube video title. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string YoutubeVideoTitle { - get { return youtubeVideoTitle_; } - set { - youtubeVideoTitle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as YoutubeVideoAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(YoutubeVideoAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (YoutubeVideoId != other.YoutubeVideoId) return false; - if (YoutubeVideoTitle != other.YoutubeVideoTitle) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasYoutubeVideoId) hash ^= YoutubeVideoId.GetHashCode(); - if (YoutubeVideoTitle.Length != 0) hash ^= YoutubeVideoTitle.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasYoutubeVideoId) { - output.WriteRawTag(18); - output.WriteString(YoutubeVideoId); - } - if (YoutubeVideoTitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(YoutubeVideoTitle); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasYoutubeVideoId) { - output.WriteRawTag(18); - output.WriteString(YoutubeVideoId); - } - if (YoutubeVideoTitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(YoutubeVideoTitle); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasYoutubeVideoId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(YoutubeVideoId); - } - if (YoutubeVideoTitle.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(YoutubeVideoTitle); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(YoutubeVideoAsset other) { - if (other == null) { - return; - } - if (other.HasYoutubeVideoId) { - YoutubeVideoId = other.YoutubeVideoId; - } - if (other.YoutubeVideoTitle.Length != 0) { - YoutubeVideoTitle = other.YoutubeVideoTitle; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - YoutubeVideoId = input.ReadString(); - break; - } - case 26: { - YoutubeVideoTitle = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - YoutubeVideoId = input.ReadString(); - break; - } - case 26: { - YoutubeVideoTitle = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A MediaBundle asset. - /// - public sealed partial class MediaBundleAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MediaBundleAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MediaBundleAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MediaBundleAsset(MediaBundleAsset other) : this() { - data_ = other.data_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MediaBundleAsset Clone() { - return new MediaBundleAsset(this); - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 2; - private pb::ByteString data_; - /// - /// Media bundle (ZIP file) asset data. The format of the uploaded ZIP file - /// depends on the ad field where it will be used. For more information on the - /// format, see the documentation of the ad field where you plan on using the - /// MediaBundleAsset. This field is mutate only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_ ?? pb::ByteString.Empty; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "data" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasData { - get { return data_ != null; } - } - /// Clears the value of the "data" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearData() { - data_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MediaBundleAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MediaBundleAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Data != other.Data) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasData) hash ^= Data.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasData) { - output.WriteRawTag(18); - output.WriteBytes(Data); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasData) { - output.WriteRawTag(18); - output.WriteBytes(Data); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasData) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MediaBundleAsset other) { - if (other == null) { - return; - } - if (other.HasData) { - Data = other.Data; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Data = input.ReadBytes(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Data = input.ReadBytes(); - break; - } - } - } - } - #endif - - } - - /// - /// An Image asset. - /// - public sealed partial class ImageAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImageAsset()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageAsset(ImageAsset other) : this() { - _hasBits0 = other._hasBits0; - data_ = other.data_; - fileSize_ = other.fileSize_; - mimeType_ = other.mimeType_; - fullSize_ = other.fullSize_ != null ? other.fullSize_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageAsset Clone() { - return new ImageAsset(this); - } - - /// Field number for the "data" field. - public const int DataFieldNumber = 5; - private pb::ByteString data_; - /// - /// The raw bytes data of an image. This field is mutate only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Data { - get { return data_ ?? pb::ByteString.Empty; } - set { - data_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "data" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasData { - get { return data_ != null; } - } - /// Clears the value of the "data" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearData() { - data_ = null; - } - - /// Field number for the "file_size" field. - public const int FileSizeFieldNumber = 6; - private long fileSize_; - /// - /// File size of the image asset in bytes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FileSize { - get { if ((_hasBits0 & 1) != 0) { return fileSize_; } else { return 0L; } } - set { - _hasBits0 |= 1; - fileSize_ = value; - } - } - /// Gets whether the "file_size" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFileSize { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "file_size" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFileSize() { - _hasBits0 &= ~1; - } - - /// Field number for the "mime_type" field. - public const int MimeTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType mimeType_ = global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified; - /// - /// MIME type of the image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType MimeType { - get { return mimeType_; } - set { - mimeType_ = value; - } - } - - /// Field number for the "full_size" field. - public const int FullSizeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.ImageDimension fullSize_; - /// - /// Metadata for this image at its original size. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ImageDimension FullSize { - get { return fullSize_; } - set { - fullSize_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImageAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImageAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Data != other.Data) return false; - if (FileSize != other.FileSize) return false; - if (MimeType != other.MimeType) return false; - if (!object.Equals(FullSize, other.FullSize)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasData) hash ^= Data.GetHashCode(); - if (HasFileSize) hash ^= FileSize.GetHashCode(); - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) hash ^= MimeType.GetHashCode(); - if (fullSize_ != null) hash ^= FullSize.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) MimeType); - } - if (fullSize_ != null) { - output.WriteRawTag(34); - output.WriteMessage(FullSize); - } - if (HasData) { - output.WriteRawTag(42); - output.WriteBytes(Data); - } - if (HasFileSize) { - output.WriteRawTag(48); - output.WriteInt64(FileSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) MimeType); - } - if (fullSize_ != null) { - output.WriteRawTag(34); - output.WriteMessage(FullSize); - } - if (HasData) { - output.WriteRawTag(42); - output.WriteBytes(Data); - } - if (HasFileSize) { - output.WriteRawTag(48); - output.WriteInt64(FileSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasData) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Data); - } - if (HasFileSize) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(FileSize); - } - if (MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MimeType); - } - if (fullSize_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FullSize); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImageAsset other) { - if (other == null) { - return; - } - if (other.HasData) { - Data = other.Data; - } - if (other.HasFileSize) { - FileSize = other.FileSize; - } - if (other.MimeType != global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType.Unspecified) { - MimeType = other.MimeType; - } - if (other.fullSize_ != null) { - if (fullSize_ == null) { - FullSize = new global::Google.Ads.GoogleAds.V12.Common.ImageDimension(); - } - FullSize.MergeFrom(other.FullSize); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - MimeType = (global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType) input.ReadEnum(); - break; - } - case 34: { - if (fullSize_ == null) { - FullSize = new global::Google.Ads.GoogleAds.V12.Common.ImageDimension(); - } - input.ReadMessage(FullSize); - break; - } - case 42: { - Data = input.ReadBytes(); - break; - } - case 48: { - FileSize = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - MimeType = (global::Google.Ads.GoogleAds.V12.Enums.MimeTypeEnum.Types.MimeType) input.ReadEnum(); - break; - } - case 34: { - if (fullSize_ == null) { - FullSize = new global::Google.Ads.GoogleAds.V12.Common.ImageDimension(); - } - input.ReadMessage(FullSize); - break; - } - case 42: { - Data = input.ReadBytes(); - break; - } - case 48: { - FileSize = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Metadata for an image at a certain size, either original or resized. - /// - public sealed partial class ImageDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImageDimension()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageDimension(ImageDimension other) : this() { - _hasBits0 = other._hasBits0; - heightPixels_ = other.heightPixels_; - widthPixels_ = other.widthPixels_; - url_ = other.url_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageDimension Clone() { - return new ImageDimension(this); - } - - /// Field number for the "height_pixels" field. - public const int HeightPixelsFieldNumber = 4; - private long heightPixels_; - /// - /// Height of the image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long HeightPixels { - get { if ((_hasBits0 & 1) != 0) { return heightPixels_; } else { return 0L; } } - set { - _hasBits0 |= 1; - heightPixels_ = value; - } - } - /// Gets whether the "height_pixels" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeightPixels { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "height_pixels" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeightPixels() { - _hasBits0 &= ~1; - } - - /// Field number for the "width_pixels" field. - public const int WidthPixelsFieldNumber = 5; - private long widthPixels_; - /// - /// Width of the image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long WidthPixels { - get { if ((_hasBits0 & 2) != 0) { return widthPixels_; } else { return 0L; } } - set { - _hasBits0 |= 2; - widthPixels_ = value; - } - } - /// Gets whether the "width_pixels" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWidthPixels { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "width_pixels" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWidthPixels() { - _hasBits0 &= ~2; - } - - /// Field number for the "url" field. - public const int UrlFieldNumber = 6; - private string url_; - /// - /// A URL that returns the image with this height and width. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Url { - get { return url_ ?? ""; } - set { - url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUrl { - get { return url_ != null; } - } - /// Clears the value of the "url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUrl() { - url_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImageDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImageDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (HeightPixels != other.HeightPixels) return false; - if (WidthPixels != other.WidthPixels) return false; - if (Url != other.Url) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHeightPixels) hash ^= HeightPixels.GetHashCode(); - if (HasWidthPixels) hash ^= WidthPixels.GetHashCode(); - if (HasUrl) hash ^= Url.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasHeightPixels) { - output.WriteRawTag(32); - output.WriteInt64(HeightPixels); - } - if (HasWidthPixels) { - output.WriteRawTag(40); - output.WriteInt64(WidthPixels); - } - if (HasUrl) { - output.WriteRawTag(50); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasHeightPixels) { - output.WriteRawTag(32); - output.WriteInt64(HeightPixels); - } - if (HasWidthPixels) { - output.WriteRawTag(40); - output.WriteInt64(WidthPixels); - } - if (HasUrl) { - output.WriteRawTag(50); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHeightPixels) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(HeightPixels); - } - if (HasWidthPixels) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(WidthPixels); - } - if (HasUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImageDimension other) { - if (other == null) { - return; - } - if (other.HasHeightPixels) { - HeightPixels = other.HeightPixels; - } - if (other.HasWidthPixels) { - WidthPixels = other.WidthPixels; - } - if (other.HasUrl) { - Url = other.Url; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 32: { - HeightPixels = input.ReadInt64(); - break; - } - case 40: { - WidthPixels = input.ReadInt64(); - break; - } - case 50: { - Url = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 32: { - HeightPixels = input.ReadInt64(); - break; - } - case 40: { - WidthPixels = input.ReadInt64(); - break; - } - case 50: { - Url = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A Text asset. - /// - public sealed partial class TextAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAsset(TextAsset other) : this() { - text_ = other.text_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAsset Clone() { - return new TextAsset(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 2; - private string text_; - /// - /// Text content of the text asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TextAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TextAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasText) hash ^= Text.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasText) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasText) { - output.WriteRawTag(18); - output.WriteString(Text); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TextAsset other) { - if (other == null) { - return; - } - if (other.HasText) { - Text = other.Text; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Text = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Text = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A Lead Form asset. - /// - public sealed partial class LeadFormAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeadFormAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormAsset(LeadFormAsset other) : this() { - businessName_ = other.businessName_; - callToActionType_ = other.callToActionType_; - callToActionDescription_ = other.callToActionDescription_; - headline_ = other.headline_; - description_ = other.description_; - privacyPolicyUrl_ = other.privacyPolicyUrl_; - postSubmitHeadline_ = other.postSubmitHeadline_; - postSubmitDescription_ = other.postSubmitDescription_; - fields_ = other.fields_.Clone(); - customQuestionFields_ = other.customQuestionFields_.Clone(); - deliveryMethods_ = other.deliveryMethods_.Clone(); - postSubmitCallToActionType_ = other.postSubmitCallToActionType_; - backgroundImageAsset_ = other.backgroundImageAsset_; - desiredIntent_ = other.desiredIntent_; - customDisclosure_ = other.customDisclosure_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormAsset Clone() { - return new LeadFormAsset(this); - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 10; - private string businessName_ = ""; - /// - /// Required. The name of the business being advertised. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "call_to_action_type" field. - public const int CallToActionTypeFieldNumber = 17; - private global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType callToActionType_ = global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType.Unspecified; - /// - /// Required. Pre-defined display text that encourages user to expand the form. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType CallToActionType { - get { return callToActionType_; } - set { - callToActionType_ = value; - } - } - - /// Field number for the "call_to_action_description" field. - public const int CallToActionDescriptionFieldNumber = 18; - private string callToActionDescription_ = ""; - /// - /// Required. Text giving a clear value proposition of what users expect once they expand - /// the form. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallToActionDescription { - get { return callToActionDescription_; } - set { - callToActionDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 12; - private string headline_ = ""; - /// - /// Required. Headline of the expanded form to describe what the form is asking for or - /// facilitating. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 13; - private string description_ = ""; - /// - /// Required. Detailed description of the expanded form to describe what the form is - /// asking for or facilitating. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "privacy_policy_url" field. - public const int PrivacyPolicyUrlFieldNumber = 14; - private string privacyPolicyUrl_ = ""; - /// - /// Required. Link to a page describing the policy on how the collected data is handled - /// by the advertiser/business. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PrivacyPolicyUrl { - get { return privacyPolicyUrl_; } - set { - privacyPolicyUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "post_submit_headline" field. - public const int PostSubmitHeadlineFieldNumber = 15; - private string postSubmitHeadline_; - /// - /// Headline of text shown after form submission that describes how the - /// advertiser will follow up with the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PostSubmitHeadline { - get { return postSubmitHeadline_ ?? ""; } - set { - postSubmitHeadline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "post_submit_headline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPostSubmitHeadline { - get { return postSubmitHeadline_ != null; } - } - /// Clears the value of the "post_submit_headline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPostSubmitHeadline() { - postSubmitHeadline_ = null; - } - - /// Field number for the "post_submit_description" field. - public const int PostSubmitDescriptionFieldNumber = 16; - private string postSubmitDescription_; - /// - /// Detailed description shown after form submission that describes how the - /// advertiser will follow up with the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PostSubmitDescription { - get { return postSubmitDescription_ ?? ""; } - set { - postSubmitDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "post_submit_description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPostSubmitDescription { - get { return postSubmitDescription_ != null; } - } - /// Clears the value of the "post_submit_description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPostSubmitDescription() { - postSubmitDescription_ = null; - } - - /// Field number for the "fields" field. - public const int FieldsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_fields_codec - = pb::FieldCodec.ForMessage(66, global::Google.Ads.GoogleAds.V12.Common.LeadFormField.Parser); - private readonly pbc::RepeatedField fields_ = new pbc::RepeatedField(); - /// - /// Ordered list of input fields. This field can be updated by reordering - /// questions, but not by adding or removing questions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Fields { - get { return fields_; } - } - - /// Field number for the "custom_question_fields" field. - public const int CustomQuestionFieldsFieldNumber = 23; - private static readonly pb::FieldCodec _repeated_customQuestionFields_codec - = pb::FieldCodec.ForMessage(186, global::Google.Ads.GoogleAds.V12.Common.LeadFormCustomQuestionField.Parser); - private readonly pbc::RepeatedField customQuestionFields_ = new pbc::RepeatedField(); - /// - /// Ordered list of custom question fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CustomQuestionFields { - get { return customQuestionFields_; } - } - - /// Field number for the "delivery_methods" field. - public const int DeliveryMethodsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_deliveryMethods_codec - = pb::FieldCodec.ForMessage(74, global::Google.Ads.GoogleAds.V12.Common.LeadFormDeliveryMethod.Parser); - private readonly pbc::RepeatedField deliveryMethods_ = new pbc::RepeatedField(); - /// - /// Configured methods for collected lead data to be delivered to advertiser. - /// Only one method typed as WebhookDelivery can be configured. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DeliveryMethods { - get { return deliveryMethods_; } - } - - /// Field number for the "post_submit_call_to_action_type" field. - public const int PostSubmitCallToActionTypeFieldNumber = 19; - private global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType postSubmitCallToActionType_ = global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType.Unspecified; - /// - /// Pre-defined display text that encourages user action after the form is - /// submitted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType PostSubmitCallToActionType { - get { return postSubmitCallToActionType_; } - set { - postSubmitCallToActionType_ = value; - } - } - - /// Field number for the "background_image_asset" field. - public const int BackgroundImageAssetFieldNumber = 20; - private string backgroundImageAsset_; - /// - /// Asset resource name of the background image. The minimum size is 600x314 - /// and the aspect ratio must be 1.91:1 (+-1%). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BackgroundImageAsset { - get { return backgroundImageAsset_ ?? ""; } - set { - backgroundImageAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "background_image_asset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBackgroundImageAsset { - get { return backgroundImageAsset_ != null; } - } - /// Clears the value of the "background_image_asset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBackgroundImageAsset() { - backgroundImageAsset_ = null; - } - - /// Field number for the "desired_intent" field. - public const int DesiredIntentFieldNumber = 21; - private global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent desiredIntent_ = global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent.Unspecified; - /// - /// Chosen intent for the lead form, for example, more volume or more - /// qualified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent DesiredIntent { - get { return desiredIntent_; } - set { - desiredIntent_ = value; - } - } - - /// Field number for the "custom_disclosure" field. - public const int CustomDisclosureFieldNumber = 22; - private string customDisclosure_; - /// - /// Custom disclosure shown along with Google disclaimer on the lead form. - /// Accessible to allowed customers only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomDisclosure { - get { return customDisclosure_ ?? ""; } - set { - customDisclosure_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "custom_disclosure" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomDisclosure { - get { return customDisclosure_ != null; } - } - /// Clears the value of the "custom_disclosure" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomDisclosure() { - customDisclosure_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LeadFormAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LeadFormAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BusinessName != other.BusinessName) return false; - if (CallToActionType != other.CallToActionType) return false; - if (CallToActionDescription != other.CallToActionDescription) return false; - if (Headline != other.Headline) return false; - if (Description != other.Description) return false; - if (PrivacyPolicyUrl != other.PrivacyPolicyUrl) return false; - if (PostSubmitHeadline != other.PostSubmitHeadline) return false; - if (PostSubmitDescription != other.PostSubmitDescription) return false; - if(!fields_.Equals(other.fields_)) return false; - if(!customQuestionFields_.Equals(other.customQuestionFields_)) return false; - if(!deliveryMethods_.Equals(other.deliveryMethods_)) return false; - if (PostSubmitCallToActionType != other.PostSubmitCallToActionType) return false; - if (BackgroundImageAsset != other.BackgroundImageAsset) return false; - if (DesiredIntent != other.DesiredIntent) return false; - if (CustomDisclosure != other.CustomDisclosure) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BusinessName.Length != 0) hash ^= BusinessName.GetHashCode(); - if (CallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType.Unspecified) hash ^= CallToActionType.GetHashCode(); - if (CallToActionDescription.Length != 0) hash ^= CallToActionDescription.GetHashCode(); - if (Headline.Length != 0) hash ^= Headline.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (PrivacyPolicyUrl.Length != 0) hash ^= PrivacyPolicyUrl.GetHashCode(); - if (HasPostSubmitHeadline) hash ^= PostSubmitHeadline.GetHashCode(); - if (HasPostSubmitDescription) hash ^= PostSubmitDescription.GetHashCode(); - hash ^= fields_.GetHashCode(); - hash ^= customQuestionFields_.GetHashCode(); - hash ^= deliveryMethods_.GetHashCode(); - if (PostSubmitCallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType.Unspecified) hash ^= PostSubmitCallToActionType.GetHashCode(); - if (HasBackgroundImageAsset) hash ^= BackgroundImageAsset.GetHashCode(); - if (DesiredIntent != global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent.Unspecified) hash ^= DesiredIntent.GetHashCode(); - if (HasCustomDisclosure) hash ^= CustomDisclosure.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - fields_.WriteTo(output, _repeated_fields_codec); - deliveryMethods_.WriteTo(output, _repeated_deliveryMethods_codec); - if (BusinessName.Length != 0) { - output.WriteRawTag(82); - output.WriteString(BusinessName); - } - if (Headline.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Headline); - } - if (Description.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Description); - } - if (PrivacyPolicyUrl.Length != 0) { - output.WriteRawTag(114); - output.WriteString(PrivacyPolicyUrl); - } - if (HasPostSubmitHeadline) { - output.WriteRawTag(122); - output.WriteString(PostSubmitHeadline); - } - if (HasPostSubmitDescription) { - output.WriteRawTag(130, 1); - output.WriteString(PostSubmitDescription); - } - if (CallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) CallToActionType); - } - if (CallToActionDescription.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(CallToActionDescription); - } - if (PostSubmitCallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType.Unspecified) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) PostSubmitCallToActionType); - } - if (HasBackgroundImageAsset) { - output.WriteRawTag(162, 1); - output.WriteString(BackgroundImageAsset); - } - if (DesiredIntent != global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) DesiredIntent); - } - if (HasCustomDisclosure) { - output.WriteRawTag(178, 1); - output.WriteString(CustomDisclosure); - } - customQuestionFields_.WriteTo(output, _repeated_customQuestionFields_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - fields_.WriteTo(ref output, _repeated_fields_codec); - deliveryMethods_.WriteTo(ref output, _repeated_deliveryMethods_codec); - if (BusinessName.Length != 0) { - output.WriteRawTag(82); - output.WriteString(BusinessName); - } - if (Headline.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Headline); - } - if (Description.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Description); - } - if (PrivacyPolicyUrl.Length != 0) { - output.WriteRawTag(114); - output.WriteString(PrivacyPolicyUrl); - } - if (HasPostSubmitHeadline) { - output.WriteRawTag(122); - output.WriteString(PostSubmitHeadline); - } - if (HasPostSubmitDescription) { - output.WriteRawTag(130, 1); - output.WriteString(PostSubmitDescription); - } - if (CallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) CallToActionType); - } - if (CallToActionDescription.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(CallToActionDescription); - } - if (PostSubmitCallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType.Unspecified) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) PostSubmitCallToActionType); - } - if (HasBackgroundImageAsset) { - output.WriteRawTag(162, 1); - output.WriteString(BackgroundImageAsset); - } - if (DesiredIntent != global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) DesiredIntent); - } - if (HasCustomDisclosure) { - output.WriteRawTag(178, 1); - output.WriteString(CustomDisclosure); - } - customQuestionFields_.WriteTo(ref output, _repeated_customQuestionFields_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BusinessName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (CallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CallToActionType); - } - if (CallToActionDescription.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CallToActionDescription); - } - if (Headline.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (PrivacyPolicyUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PrivacyPolicyUrl); - } - if (HasPostSubmitHeadline) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PostSubmitHeadline); - } - if (HasPostSubmitDescription) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PostSubmitDescription); - } - size += fields_.CalculateSize(_repeated_fields_codec); - size += customQuestionFields_.CalculateSize(_repeated_customQuestionFields_codec); - size += deliveryMethods_.CalculateSize(_repeated_deliveryMethods_codec); - if (PostSubmitCallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PostSubmitCallToActionType); - } - if (HasBackgroundImageAsset) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BackgroundImageAsset); - } - if (DesiredIntent != global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DesiredIntent); - } - if (HasCustomDisclosure) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CustomDisclosure); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LeadFormAsset other) { - if (other == null) { - return; - } - if (other.BusinessName.Length != 0) { - BusinessName = other.BusinessName; - } - if (other.CallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType.Unspecified) { - CallToActionType = other.CallToActionType; - } - if (other.CallToActionDescription.Length != 0) { - CallToActionDescription = other.CallToActionDescription; - } - if (other.Headline.Length != 0) { - Headline = other.Headline; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.PrivacyPolicyUrl.Length != 0) { - PrivacyPolicyUrl = other.PrivacyPolicyUrl; - } - if (other.HasPostSubmitHeadline) { - PostSubmitHeadline = other.PostSubmitHeadline; - } - if (other.HasPostSubmitDescription) { - PostSubmitDescription = other.PostSubmitDescription; - } - fields_.Add(other.fields_); - customQuestionFields_.Add(other.customQuestionFields_); - deliveryMethods_.Add(other.deliveryMethods_); - if (other.PostSubmitCallToActionType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType.Unspecified) { - PostSubmitCallToActionType = other.PostSubmitCallToActionType; - } - if (other.HasBackgroundImageAsset) { - BackgroundImageAsset = other.BackgroundImageAsset; - } - if (other.DesiredIntent != global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent.Unspecified) { - DesiredIntent = other.DesiredIntent; - } - if (other.HasCustomDisclosure) { - CustomDisclosure = other.CustomDisclosure; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 66: { - fields_.AddEntriesFrom(input, _repeated_fields_codec); - break; - } - case 74: { - deliveryMethods_.AddEntriesFrom(input, _repeated_deliveryMethods_codec); - break; - } - case 82: { - BusinessName = input.ReadString(); - break; - } - case 98: { - Headline = input.ReadString(); - break; - } - case 106: { - Description = input.ReadString(); - break; - } - case 114: { - PrivacyPolicyUrl = input.ReadString(); - break; - } - case 122: { - PostSubmitHeadline = input.ReadString(); - break; - } - case 130: { - PostSubmitDescription = input.ReadString(); - break; - } - case 136: { - CallToActionType = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType) input.ReadEnum(); - break; - } - case 146: { - CallToActionDescription = input.ReadString(); - break; - } - case 152: { - PostSubmitCallToActionType = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType) input.ReadEnum(); - break; - } - case 162: { - BackgroundImageAsset = input.ReadString(); - break; - } - case 168: { - DesiredIntent = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent) input.ReadEnum(); - break; - } - case 178: { - CustomDisclosure = input.ReadString(); - break; - } - case 186: { - customQuestionFields_.AddEntriesFrom(input, _repeated_customQuestionFields_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 66: { - fields_.AddEntriesFrom(ref input, _repeated_fields_codec); - break; - } - case 74: { - deliveryMethods_.AddEntriesFrom(ref input, _repeated_deliveryMethods_codec); - break; - } - case 82: { - BusinessName = input.ReadString(); - break; - } - case 98: { - Headline = input.ReadString(); - break; - } - case 106: { - Description = input.ReadString(); - break; - } - case 114: { - PrivacyPolicyUrl = input.ReadString(); - break; - } - case 122: { - PostSubmitHeadline = input.ReadString(); - break; - } - case 130: { - PostSubmitDescription = input.ReadString(); - break; - } - case 136: { - CallToActionType = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormCallToActionTypeEnum.Types.LeadFormCallToActionType) input.ReadEnum(); - break; - } - case 146: { - CallToActionDescription = input.ReadString(); - break; - } - case 152: { - PostSubmitCallToActionType = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormPostSubmitCallToActionTypeEnum.Types.LeadFormPostSubmitCallToActionType) input.ReadEnum(); - break; - } - case 162: { - BackgroundImageAsset = input.ReadString(); - break; - } - case 168: { - DesiredIntent = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormDesiredIntentEnum.Types.LeadFormDesiredIntent) input.ReadEnum(); - break; - } - case 178: { - CustomDisclosure = input.ReadString(); - break; - } - case 186: { - customQuestionFields_.AddEntriesFrom(ref input, _repeated_customQuestionFields_codec); - break; - } - } - } - } - #endif - - } - - /// - /// One input field instance within a form. - /// - public sealed partial class LeadFormField : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeadFormField()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormField() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormField(LeadFormField other) : this() { - inputType_ = other.inputType_; - switch (other.AnswersCase) { - case AnswersOneofCase.SingleChoiceAnswers: - SingleChoiceAnswers = other.SingleChoiceAnswers.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormField Clone() { - return new LeadFormField(this); - } - - /// Field number for the "input_type" field. - public const int InputTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType inputType_ = global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType.Unspecified; - /// - /// Describes the input type, which may be a predefined type such as "full - /// name" or a pre-vetted question like "What kind of vehicle do you have?". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType InputType { - get { return inputType_; } - set { - inputType_ = value; - } - } - - /// Field number for the "single_choice_answers" field. - public const int SingleChoiceAnswersFieldNumber = 2; - /// - /// Answer configuration for a single choice question. Can be set only for - /// pre-vetted question fields. Minimum of 2 answers required and maximum of - /// 12 allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers SingleChoiceAnswers { - get { return answersCase_ == AnswersOneofCase.SingleChoiceAnswers ? (global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers) answers_ : null; } - set { - answers_ = value; - answersCase_ = value == null ? AnswersOneofCase.None : AnswersOneofCase.SingleChoiceAnswers; - } - } - - private object answers_; - /// Enum of possible cases for the "answers" oneof. - public enum AnswersOneofCase { - None = 0, - SingleChoiceAnswers = 2, - } - private AnswersOneofCase answersCase_ = AnswersOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AnswersOneofCase AnswersCase { - get { return answersCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAnswers() { - answersCase_ = AnswersOneofCase.None; - answers_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LeadFormField); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LeadFormField other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (InputType != other.InputType) return false; - if (!object.Equals(SingleChoiceAnswers, other.SingleChoiceAnswers)) return false; - if (AnswersCase != other.AnswersCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (InputType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType.Unspecified) hash ^= InputType.GetHashCode(); - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) hash ^= SingleChoiceAnswers.GetHashCode(); - hash ^= (int) answersCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (InputType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) InputType); - } - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - output.WriteRawTag(18); - output.WriteMessage(SingleChoiceAnswers); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (InputType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) InputType); - } - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - output.WriteRawTag(18); - output.WriteMessage(SingleChoiceAnswers); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (InputType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InputType); - } - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SingleChoiceAnswers); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LeadFormField other) { - if (other == null) { - return; - } - if (other.InputType != global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType.Unspecified) { - InputType = other.InputType; - } - switch (other.AnswersCase) { - case AnswersOneofCase.SingleChoiceAnswers: - if (SingleChoiceAnswers == null) { - SingleChoiceAnswers = new global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers(); - } - SingleChoiceAnswers.MergeFrom(other.SingleChoiceAnswers); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - InputType = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType) input.ReadEnum(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers(); - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - subBuilder.MergeFrom(SingleChoiceAnswers); - } - input.ReadMessage(subBuilder); - SingleChoiceAnswers = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - InputType = (global::Google.Ads.GoogleAds.V12.Enums.LeadFormFieldUserInputTypeEnum.Types.LeadFormFieldUserInputType) input.ReadEnum(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers(); - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - subBuilder.MergeFrom(SingleChoiceAnswers); - } - input.ReadMessage(subBuilder); - SingleChoiceAnswers = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// One custom question input field instance within a form. - /// - public sealed partial class LeadFormCustomQuestionField : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeadFormCustomQuestionField()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormCustomQuestionField() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormCustomQuestionField(LeadFormCustomQuestionField other) : this() { - customQuestionText_ = other.customQuestionText_; - switch (other.AnswersCase) { - case AnswersOneofCase.SingleChoiceAnswers: - SingleChoiceAnswers = other.SingleChoiceAnswers.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormCustomQuestionField Clone() { - return new LeadFormCustomQuestionField(this); - } - - /// Field number for the "custom_question_text" field. - public const int CustomQuestionTextFieldNumber = 1; - private string customQuestionText_ = ""; - /// - /// The exact custom question field text (for example, "What kind of vehicle - /// do you have?"). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomQuestionText { - get { return customQuestionText_; } - set { - customQuestionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "single_choice_answers" field. - public const int SingleChoiceAnswersFieldNumber = 2; - /// - /// Answer configuration for a single choice question. - /// Minimum of 2 answers and maximum of 12 allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers SingleChoiceAnswers { - get { return answersCase_ == AnswersOneofCase.SingleChoiceAnswers ? (global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers) answers_ : null; } - set { - answers_ = value; - answersCase_ = value == null ? AnswersOneofCase.None : AnswersOneofCase.SingleChoiceAnswers; - } - } - - private object answers_; - /// Enum of possible cases for the "answers" oneof. - public enum AnswersOneofCase { - None = 0, - SingleChoiceAnswers = 2, - } - private AnswersOneofCase answersCase_ = AnswersOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AnswersOneofCase AnswersCase { - get { return answersCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAnswers() { - answersCase_ = AnswersOneofCase.None; - answers_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LeadFormCustomQuestionField); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LeadFormCustomQuestionField other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomQuestionText != other.CustomQuestionText) return false; - if (!object.Equals(SingleChoiceAnswers, other.SingleChoiceAnswers)) return false; - if (AnswersCase != other.AnswersCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomQuestionText.Length != 0) hash ^= CustomQuestionText.GetHashCode(); - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) hash ^= SingleChoiceAnswers.GetHashCode(); - hash ^= (int) answersCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomQuestionText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomQuestionText); - } - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - output.WriteRawTag(18); - output.WriteMessage(SingleChoiceAnswers); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomQuestionText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomQuestionText); - } - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - output.WriteRawTag(18); - output.WriteMessage(SingleChoiceAnswers); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomQuestionText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomQuestionText); - } - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SingleChoiceAnswers); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LeadFormCustomQuestionField other) { - if (other == null) { - return; - } - if (other.CustomQuestionText.Length != 0) { - CustomQuestionText = other.CustomQuestionText; - } - switch (other.AnswersCase) { - case AnswersOneofCase.SingleChoiceAnswers: - if (SingleChoiceAnswers == null) { - SingleChoiceAnswers = new global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers(); - } - SingleChoiceAnswers.MergeFrom(other.SingleChoiceAnswers); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomQuestionText = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers(); - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - subBuilder.MergeFrom(SingleChoiceAnswers); - } - input.ReadMessage(subBuilder); - SingleChoiceAnswers = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomQuestionText = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LeadFormSingleChoiceAnswers(); - if (answersCase_ == AnswersOneofCase.SingleChoiceAnswers) { - subBuilder.MergeFrom(SingleChoiceAnswers); - } - input.ReadMessage(subBuilder); - SingleChoiceAnswers = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Defines possible answers for a single choice question, usually presented as - /// a single-choice drop-down list. - /// - public sealed partial class LeadFormSingleChoiceAnswers : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeadFormSingleChoiceAnswers()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormSingleChoiceAnswers() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormSingleChoiceAnswers(LeadFormSingleChoiceAnswers other) : this() { - answers_ = other.answers_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormSingleChoiceAnswers Clone() { - return new LeadFormSingleChoiceAnswers(this); - } - - /// Field number for the "answers" field. - public const int AnswersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_answers_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField answers_ = new pbc::RepeatedField(); - /// - /// List of choices for a single question field. The order of entries defines - /// UI order. Minimum of 2 answers required and maximum of 12 allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Answers { - get { return answers_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LeadFormSingleChoiceAnswers); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LeadFormSingleChoiceAnswers other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!answers_.Equals(other.answers_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= answers_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - answers_.WriteTo(output, _repeated_answers_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - answers_.WriteTo(ref output, _repeated_answers_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += answers_.CalculateSize(_repeated_answers_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LeadFormSingleChoiceAnswers other) { - if (other == null) { - return; - } - answers_.Add(other.answers_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - answers_.AddEntriesFrom(input, _repeated_answers_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - answers_.AddEntriesFrom(ref input, _repeated_answers_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A configuration of how leads are delivered to the advertiser. - /// - public sealed partial class LeadFormDeliveryMethod : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LeadFormDeliveryMethod()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormDeliveryMethod() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormDeliveryMethod(LeadFormDeliveryMethod other) : this() { - switch (other.DeliveryDetailsCase) { - case DeliveryDetailsOneofCase.Webhook: - Webhook = other.Webhook.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LeadFormDeliveryMethod Clone() { - return new LeadFormDeliveryMethod(this); - } - - /// Field number for the "webhook" field. - public const int WebhookFieldNumber = 1; - /// - /// Webhook method of delivery. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery Webhook { - get { return deliveryDetailsCase_ == DeliveryDetailsOneofCase.Webhook ? (global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery) deliveryDetails_ : null; } - set { - deliveryDetails_ = value; - deliveryDetailsCase_ = value == null ? DeliveryDetailsOneofCase.None : DeliveryDetailsOneofCase.Webhook; - } - } - - private object deliveryDetails_; - /// Enum of possible cases for the "delivery_details" oneof. - public enum DeliveryDetailsOneofCase { - None = 0, - Webhook = 1, - } - private DeliveryDetailsOneofCase deliveryDetailsCase_ = DeliveryDetailsOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeliveryDetailsOneofCase DeliveryDetailsCase { - get { return deliveryDetailsCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDeliveryDetails() { - deliveryDetailsCase_ = DeliveryDetailsOneofCase.None; - deliveryDetails_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LeadFormDeliveryMethod); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LeadFormDeliveryMethod other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Webhook, other.Webhook)) return false; - if (DeliveryDetailsCase != other.DeliveryDetailsCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (deliveryDetailsCase_ == DeliveryDetailsOneofCase.Webhook) hash ^= Webhook.GetHashCode(); - hash ^= (int) deliveryDetailsCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (deliveryDetailsCase_ == DeliveryDetailsOneofCase.Webhook) { - output.WriteRawTag(10); - output.WriteMessage(Webhook); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (deliveryDetailsCase_ == DeliveryDetailsOneofCase.Webhook) { - output.WriteRawTag(10); - output.WriteMessage(Webhook); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (deliveryDetailsCase_ == DeliveryDetailsOneofCase.Webhook) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Webhook); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LeadFormDeliveryMethod other) { - if (other == null) { - return; - } - switch (other.DeliveryDetailsCase) { - case DeliveryDetailsOneofCase.Webhook: - if (Webhook == null) { - Webhook = new global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery(); - } - Webhook.MergeFrom(other.Webhook); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery subBuilder = new global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery(); - if (deliveryDetailsCase_ == DeliveryDetailsOneofCase.Webhook) { - subBuilder.MergeFrom(Webhook); - } - input.ReadMessage(subBuilder); - Webhook = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery subBuilder = new global::Google.Ads.GoogleAds.V12.Common.WebhookDelivery(); - if (deliveryDetailsCase_ == DeliveryDetailsOneofCase.Webhook) { - subBuilder.MergeFrom(Webhook); - } - input.ReadMessage(subBuilder); - Webhook = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Google notifies the advertiser of leads by making HTTP calls to an - /// endpoint they specify. The requests contain JSON matching a schema that - /// Google publishes as part of form ads documentation. - /// - public sealed partial class WebhookDelivery : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebhookDelivery()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebhookDelivery() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebhookDelivery(WebhookDelivery other) : this() { - _hasBits0 = other._hasBits0; - advertiserWebhookUrl_ = other.advertiserWebhookUrl_; - googleSecret_ = other.googleSecret_; - payloadSchemaVersion_ = other.payloadSchemaVersion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebhookDelivery Clone() { - return new WebhookDelivery(this); - } - - /// Field number for the "advertiser_webhook_url" field. - public const int AdvertiserWebhookUrlFieldNumber = 4; - private string advertiserWebhookUrl_; - /// - /// Webhook url specified by advertiser to send the lead. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdvertiserWebhookUrl { - get { return advertiserWebhookUrl_ ?? ""; } - set { - advertiserWebhookUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "advertiser_webhook_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdvertiserWebhookUrl { - get { return advertiserWebhookUrl_ != null; } - } - /// Clears the value of the "advertiser_webhook_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdvertiserWebhookUrl() { - advertiserWebhookUrl_ = null; - } - - /// Field number for the "google_secret" field. - public const int GoogleSecretFieldNumber = 5; - private string googleSecret_; - /// - /// Anti-spoofing secret set by the advertiser as part of the webhook payload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GoogleSecret { - get { return googleSecret_ ?? ""; } - set { - googleSecret_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "google_secret" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGoogleSecret { - get { return googleSecret_ != null; } - } - /// Clears the value of the "google_secret" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGoogleSecret() { - googleSecret_ = null; - } - - /// Field number for the "payload_schema_version" field. - public const int PayloadSchemaVersionFieldNumber = 6; - private long payloadSchemaVersion_; - /// - /// The schema version that this delivery instance will use. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PayloadSchemaVersion { - get { if ((_hasBits0 & 1) != 0) { return payloadSchemaVersion_; } else { return 0L; } } - set { - _hasBits0 |= 1; - payloadSchemaVersion_ = value; - } - } - /// Gets whether the "payload_schema_version" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPayloadSchemaVersion { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "payload_schema_version" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPayloadSchemaVersion() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as WebhookDelivery); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebhookDelivery other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AdvertiserWebhookUrl != other.AdvertiserWebhookUrl) return false; - if (GoogleSecret != other.GoogleSecret) return false; - if (PayloadSchemaVersion != other.PayloadSchemaVersion) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAdvertiserWebhookUrl) hash ^= AdvertiserWebhookUrl.GetHashCode(); - if (HasGoogleSecret) hash ^= GoogleSecret.GetHashCode(); - if (HasPayloadSchemaVersion) hash ^= PayloadSchemaVersion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasAdvertiserWebhookUrl) { - output.WriteRawTag(34); - output.WriteString(AdvertiserWebhookUrl); - } - if (HasGoogleSecret) { - output.WriteRawTag(42); - output.WriteString(GoogleSecret); - } - if (HasPayloadSchemaVersion) { - output.WriteRawTag(48); - output.WriteInt64(PayloadSchemaVersion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasAdvertiserWebhookUrl) { - output.WriteRawTag(34); - output.WriteString(AdvertiserWebhookUrl); - } - if (HasGoogleSecret) { - output.WriteRawTag(42); - output.WriteString(GoogleSecret); - } - if (HasPayloadSchemaVersion) { - output.WriteRawTag(48); - output.WriteInt64(PayloadSchemaVersion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAdvertiserWebhookUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdvertiserWebhookUrl); - } - if (HasGoogleSecret) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GoogleSecret); - } - if (HasPayloadSchemaVersion) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PayloadSchemaVersion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebhookDelivery other) { - if (other == null) { - return; - } - if (other.HasAdvertiserWebhookUrl) { - AdvertiserWebhookUrl = other.AdvertiserWebhookUrl; - } - if (other.HasGoogleSecret) { - GoogleSecret = other.GoogleSecret; - } - if (other.HasPayloadSchemaVersion) { - PayloadSchemaVersion = other.PayloadSchemaVersion; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 34: { - AdvertiserWebhookUrl = input.ReadString(); - break; - } - case 42: { - GoogleSecret = input.ReadString(); - break; - } - case 48: { - PayloadSchemaVersion = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - AdvertiserWebhookUrl = input.ReadString(); - break; - } - case 42: { - GoogleSecret = input.ReadString(); - break; - } - case 48: { - PayloadSchemaVersion = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A Book on Google asset. Used to redirect user to book through Google. - /// Book on Google will change the redirect url to book directly through - /// Google. - /// - public sealed partial class BookOnGoogleAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BookOnGoogleAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BookOnGoogleAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BookOnGoogleAsset(BookOnGoogleAsset other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BookOnGoogleAsset Clone() { - return new BookOnGoogleAsset(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BookOnGoogleAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BookOnGoogleAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BookOnGoogleAsset other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// A Promotion asset. - /// - public sealed partial class PromotionAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PromotionAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionAsset(PromotionAsset other) : this() { - promotionTarget_ = other.promotionTarget_; - discountModifier_ = other.discountModifier_; - redemptionStartDate_ = other.redemptionStartDate_; - redemptionEndDate_ = other.redemptionEndDate_; - occasion_ = other.occasion_; - languageCode_ = other.languageCode_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - adScheduleTargets_ = other.adScheduleTargets_.Clone(); - switch (other.DiscountTypeCase) { - case DiscountTypeOneofCase.PercentOff: - PercentOff = other.PercentOff; - break; - case DiscountTypeOneofCase.MoneyAmountOff: - MoneyAmountOff = other.MoneyAmountOff.Clone(); - break; - } - - switch (other.PromotionTriggerCase) { - case PromotionTriggerOneofCase.PromotionCode: - PromotionCode = other.PromotionCode; - break; - case PromotionTriggerOneofCase.OrdersOverAmount: - OrdersOverAmount = other.OrdersOverAmount.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionAsset Clone() { - return new PromotionAsset(this); - } - - /// Field number for the "promotion_target" field. - public const int PromotionTargetFieldNumber = 1; - private string promotionTarget_ = ""; - /// - /// Required. A freeform description of what the promotion is targeting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromotionTarget { - get { return promotionTarget_; } - set { - promotionTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "discount_modifier" field. - public const int DiscountModifierFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier discountModifier_ = global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified; - /// - /// A modifier for qualification of the discount. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier DiscountModifier { - get { return discountModifier_; } - set { - discountModifier_ = value; - } - } - - /// Field number for the "redemption_start_date" field. - public const int RedemptionStartDateFieldNumber = 7; - private string redemptionStartDate_ = ""; - /// - /// Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd - /// format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RedemptionStartDate { - get { return redemptionStartDate_; } - set { - redemptionStartDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "redemption_end_date" field. - public const int RedemptionEndDateFieldNumber = 8; - private string redemptionEndDate_ = ""; - /// - /// Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd - /// format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RedemptionEndDate { - get { return redemptionEndDate_; } - set { - redemptionEndDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "occasion" field. - public const int OccasionFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion occasion_ = global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified; - /// - /// The occasion the promotion was intended for. - /// If an occasion is set, the redemption window will need to fall within the - /// date range associated with the occasion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion Occasion { - get { return occasion_; } - set { - occasion_ = value; - } - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 10; - private string languageCode_ = ""; - /// - /// The language of the promotion. - /// Represented as BCP 47 language tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 11; - private string startDate_ = ""; - /// - /// Start date of when this asset is effective and can begin serving, in - /// yyyy-MM-dd format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 12; - private string endDate_ = ""; - /// - /// Last date of when this asset is effective and still serving, in yyyy-MM-dd - /// format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_schedule_targets" field. - public const int AdScheduleTargetsFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_adScheduleTargets_codec - = pb::FieldCodec.ForMessage(106, global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo.Parser); - private readonly pbc::RepeatedField adScheduleTargets_ = new pbc::RepeatedField(); - /// - /// List of non-overlapping schedules specifying all time intervals for which - /// the asset may serve. There can be a maximum of 6 schedules per day, 42 in - /// total. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdScheduleTargets { - get { return adScheduleTargets_; } - } - - /// Field number for the "percent_off" field. - public const int PercentOffFieldNumber = 3; - /// - /// Percentage off discount in the promotion. 1,000,000 = 100%. - /// Either this or money_amount_off is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PercentOff { - get { return discountTypeCase_ == DiscountTypeOneofCase.PercentOff ? (long) discountType_ : 0L; } - set { - discountType_ = value; - discountTypeCase_ = DiscountTypeOneofCase.PercentOff; - } - } - - /// Field number for the "money_amount_off" field. - public const int MoneyAmountOffFieldNumber = 4; - /// - /// Money amount off for discount in the promotion. - /// Either this or percent_off is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Money MoneyAmountOff { - get { return discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff ? (global::Google.Ads.GoogleAds.V12.Common.Money) discountType_ : null; } - set { - discountType_ = value; - discountTypeCase_ = value == null ? DiscountTypeOneofCase.None : DiscountTypeOneofCase.MoneyAmountOff; - } - } - - /// Field number for the "promotion_code" field. - public const int PromotionCodeFieldNumber = 5; - /// - /// A code the user should use in order to be eligible for the promotion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromotionCode { - get { return promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode ? (string) promotionTrigger_ : ""; } - set { - promotionTrigger_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - promotionTriggerCase_ = PromotionTriggerOneofCase.PromotionCode; - } - } - - /// Field number for the "orders_over_amount" field. - public const int OrdersOverAmountFieldNumber = 6; - /// - /// The amount the total order needs to be for the user to be eligible for - /// the promotion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Money OrdersOverAmount { - get { return promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount ? (global::Google.Ads.GoogleAds.V12.Common.Money) promotionTrigger_ : null; } - set { - promotionTrigger_ = value; - promotionTriggerCase_ = value == null ? PromotionTriggerOneofCase.None : PromotionTriggerOneofCase.OrdersOverAmount; - } - } - - private object discountType_; - /// Enum of possible cases for the "discount_type" oneof. - public enum DiscountTypeOneofCase { - None = 0, - PercentOff = 3, - MoneyAmountOff = 4, - } - private DiscountTypeOneofCase discountTypeCase_ = DiscountTypeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscountTypeOneofCase DiscountTypeCase { - get { return discountTypeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDiscountType() { - discountTypeCase_ = DiscountTypeOneofCase.None; - discountType_ = null; - } - - private object promotionTrigger_; - /// Enum of possible cases for the "promotion_trigger" oneof. - public enum PromotionTriggerOneofCase { - None = 0, - PromotionCode = 5, - OrdersOverAmount = 6, - } - private PromotionTriggerOneofCase promotionTriggerCase_ = PromotionTriggerOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionTriggerOneofCase PromotionTriggerCase { - get { return promotionTriggerCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPromotionTrigger() { - promotionTriggerCase_ = PromotionTriggerOneofCase.None; - promotionTrigger_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PromotionAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PromotionAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PromotionTarget != other.PromotionTarget) return false; - if (DiscountModifier != other.DiscountModifier) return false; - if (RedemptionStartDate != other.RedemptionStartDate) return false; - if (RedemptionEndDate != other.RedemptionEndDate) return false; - if (Occasion != other.Occasion) return false; - if (LanguageCode != other.LanguageCode) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if(!adScheduleTargets_.Equals(other.adScheduleTargets_)) return false; - if (PercentOff != other.PercentOff) return false; - if (!object.Equals(MoneyAmountOff, other.MoneyAmountOff)) return false; - if (PromotionCode != other.PromotionCode) return false; - if (!object.Equals(OrdersOverAmount, other.OrdersOverAmount)) return false; - if (DiscountTypeCase != other.DiscountTypeCase) return false; - if (PromotionTriggerCase != other.PromotionTriggerCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PromotionTarget.Length != 0) hash ^= PromotionTarget.GetHashCode(); - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) hash ^= DiscountModifier.GetHashCode(); - if (RedemptionStartDate.Length != 0) hash ^= RedemptionStartDate.GetHashCode(); - if (RedemptionEndDate.Length != 0) hash ^= RedemptionEndDate.GetHashCode(); - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) hash ^= Occasion.GetHashCode(); - if (LanguageCode.Length != 0) hash ^= LanguageCode.GetHashCode(); - if (StartDate.Length != 0) hash ^= StartDate.GetHashCode(); - if (EndDate.Length != 0) hash ^= EndDate.GetHashCode(); - hash ^= adScheduleTargets_.GetHashCode(); - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) hash ^= PercentOff.GetHashCode(); - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) hash ^= MoneyAmountOff.GetHashCode(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) hash ^= PromotionCode.GetHashCode(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) hash ^= OrdersOverAmount.GetHashCode(); - hash ^= (int) discountTypeCase_; - hash ^= (int) promotionTriggerCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PromotionTarget.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PromotionTarget); - } - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DiscountModifier); - } - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) { - output.WriteRawTag(24); - output.WriteInt64(PercentOff); - } - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - output.WriteRawTag(34); - output.WriteMessage(MoneyAmountOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) { - output.WriteRawTag(42); - output.WriteString(PromotionCode); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - output.WriteRawTag(50); - output.WriteMessage(OrdersOverAmount); - } - if (RedemptionStartDate.Length != 0) { - output.WriteRawTag(58); - output.WriteString(RedemptionStartDate); - } - if (RedemptionEndDate.Length != 0) { - output.WriteRawTag(66); - output.WriteString(RedemptionEndDate); - } - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Occasion); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(82); - output.WriteString(LanguageCode); - } - if (StartDate.Length != 0) { - output.WriteRawTag(90); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(98); - output.WriteString(EndDate); - } - adScheduleTargets_.WriteTo(output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PromotionTarget.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PromotionTarget); - } - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DiscountModifier); - } - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) { - output.WriteRawTag(24); - output.WriteInt64(PercentOff); - } - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - output.WriteRawTag(34); - output.WriteMessage(MoneyAmountOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) { - output.WriteRawTag(42); - output.WriteString(PromotionCode); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - output.WriteRawTag(50); - output.WriteMessage(OrdersOverAmount); - } - if (RedemptionStartDate.Length != 0) { - output.WriteRawTag(58); - output.WriteString(RedemptionStartDate); - } - if (RedemptionEndDate.Length != 0) { - output.WriteRawTag(66); - output.WriteString(RedemptionEndDate); - } - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Occasion); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(82); - output.WriteString(LanguageCode); - } - if (StartDate.Length != 0) { - output.WriteRawTag(90); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(98); - output.WriteString(EndDate); - } - adScheduleTargets_.WriteTo(ref output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PromotionTarget.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PromotionTarget); - } - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DiscountModifier); - } - if (RedemptionStartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RedemptionStartDate); - } - if (RedemptionEndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RedemptionEndDate); - } - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Occasion); - } - if (LanguageCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (StartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (EndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - size += adScheduleTargets_.CalculateSize(_repeated_adScheduleTargets_codec); - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PercentOff); - } - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MoneyAmountOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PromotionCode); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrdersOverAmount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PromotionAsset other) { - if (other == null) { - return; - } - if (other.PromotionTarget.Length != 0) { - PromotionTarget = other.PromotionTarget; - } - if (other.DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - DiscountModifier = other.DiscountModifier; - } - if (other.RedemptionStartDate.Length != 0) { - RedemptionStartDate = other.RedemptionStartDate; - } - if (other.RedemptionEndDate.Length != 0) { - RedemptionEndDate = other.RedemptionEndDate; - } - if (other.Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - Occasion = other.Occasion; - } - if (other.LanguageCode.Length != 0) { - LanguageCode = other.LanguageCode; - } - if (other.StartDate.Length != 0) { - StartDate = other.StartDate; - } - if (other.EndDate.Length != 0) { - EndDate = other.EndDate; - } - adScheduleTargets_.Add(other.adScheduleTargets_); - switch (other.DiscountTypeCase) { - case DiscountTypeOneofCase.PercentOff: - PercentOff = other.PercentOff; - break; - case DiscountTypeOneofCase.MoneyAmountOff: - if (MoneyAmountOff == null) { - MoneyAmountOff = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - MoneyAmountOff.MergeFrom(other.MoneyAmountOff); - break; - } - - switch (other.PromotionTriggerCase) { - case PromotionTriggerOneofCase.PromotionCode: - PromotionCode = other.PromotionCode; - break; - case PromotionTriggerOneofCase.OrdersOverAmount: - if (OrdersOverAmount == null) { - OrdersOverAmount = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - OrdersOverAmount.MergeFrom(other.OrdersOverAmount); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PromotionTarget = input.ReadString(); - break; - } - case 16: { - DiscountModifier = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier) input.ReadEnum(); - break; - } - case 24: { - PercentOff = input.ReadInt64(); - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - subBuilder.MergeFrom(MoneyAmountOff); - } - input.ReadMessage(subBuilder); - MoneyAmountOff = subBuilder; - break; - } - case 42: { - PromotionCode = input.ReadString(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - subBuilder.MergeFrom(OrdersOverAmount); - } - input.ReadMessage(subBuilder); - OrdersOverAmount = subBuilder; - break; - } - case 58: { - RedemptionStartDate = input.ReadString(); - break; - } - case 66: { - RedemptionEndDate = input.ReadString(); - break; - } - case 72: { - Occasion = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion) input.ReadEnum(); - break; - } - case 82: { - LanguageCode = input.ReadString(); - break; - } - case 90: { - StartDate = input.ReadString(); - break; - } - case 98: { - EndDate = input.ReadString(); - break; - } - case 106: { - adScheduleTargets_.AddEntriesFrom(input, _repeated_adScheduleTargets_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PromotionTarget = input.ReadString(); - break; - } - case 16: { - DiscountModifier = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier) input.ReadEnum(); - break; - } - case 24: { - PercentOff = input.ReadInt64(); - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - subBuilder.MergeFrom(MoneyAmountOff); - } - input.ReadMessage(subBuilder); - MoneyAmountOff = subBuilder; - break; - } - case 42: { - PromotionCode = input.ReadString(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - subBuilder.MergeFrom(OrdersOverAmount); - } - input.ReadMessage(subBuilder); - OrdersOverAmount = subBuilder; - break; - } - case 58: { - RedemptionStartDate = input.ReadString(); - break; - } - case 66: { - RedemptionEndDate = input.ReadString(); - break; - } - case 72: { - Occasion = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion) input.ReadEnum(); - break; - } - case 82: { - LanguageCode = input.ReadString(); - break; - } - case 90: { - StartDate = input.ReadString(); - break; - } - case 98: { - EndDate = input.ReadString(); - break; - } - case 106: { - adScheduleTargets_.AddEntriesFrom(ref input, _repeated_adScheduleTargets_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A Callout asset. - /// - public sealed partial class CalloutAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalloutAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutAsset(CalloutAsset other) : this() { - calloutText_ = other.calloutText_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - adScheduleTargets_ = other.adScheduleTargets_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutAsset Clone() { - return new CalloutAsset(this); - } - - /// Field number for the "callout_text" field. - public const int CalloutTextFieldNumber = 1; - private string calloutText_ = ""; - /// - /// Required. The callout text. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CalloutText { - get { return calloutText_; } - set { - calloutText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 2; - private string startDate_ = ""; - /// - /// Start date of when this asset is effective and can begin serving, in - /// yyyy-MM-dd format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 3; - private string endDate_ = ""; - /// - /// Last date of when this asset is effective and still serving, in yyyy-MM-dd - /// format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_schedule_targets" field. - public const int AdScheduleTargetsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_adScheduleTargets_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo.Parser); - private readonly pbc::RepeatedField adScheduleTargets_ = new pbc::RepeatedField(); - /// - /// List of non-overlapping schedules specifying all time intervals for which - /// the asset may serve. There can be a maximum of 6 schedules per day, 42 in - /// total. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdScheduleTargets { - get { return adScheduleTargets_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CalloutAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CalloutAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CalloutText != other.CalloutText) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if(!adScheduleTargets_.Equals(other.adScheduleTargets_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CalloutText.Length != 0) hash ^= CalloutText.GetHashCode(); - if (StartDate.Length != 0) hash ^= StartDate.GetHashCode(); - if (EndDate.Length != 0) hash ^= EndDate.GetHashCode(); - hash ^= adScheduleTargets_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CalloutText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CalloutText); - } - if (StartDate.Length != 0) { - output.WriteRawTag(18); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(26); - output.WriteString(EndDate); - } - adScheduleTargets_.WriteTo(output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CalloutText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CalloutText); - } - if (StartDate.Length != 0) { - output.WriteRawTag(18); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(26); - output.WriteString(EndDate); - } - adScheduleTargets_.WriteTo(ref output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CalloutText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CalloutText); - } - if (StartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (EndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - size += adScheduleTargets_.CalculateSize(_repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CalloutAsset other) { - if (other == null) { - return; - } - if (other.CalloutText.Length != 0) { - CalloutText = other.CalloutText; - } - if (other.StartDate.Length != 0) { - StartDate = other.StartDate; - } - if (other.EndDate.Length != 0) { - EndDate = other.EndDate; - } - adScheduleTargets_.Add(other.adScheduleTargets_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CalloutText = input.ReadString(); - break; - } - case 18: { - StartDate = input.ReadString(); - break; - } - case 26: { - EndDate = input.ReadString(); - break; - } - case 34: { - adScheduleTargets_.AddEntriesFrom(input, _repeated_adScheduleTargets_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CalloutText = input.ReadString(); - break; - } - case 18: { - StartDate = input.ReadString(); - break; - } - case 26: { - EndDate = input.ReadString(); - break; - } - case 34: { - adScheduleTargets_.AddEntriesFrom(ref input, _repeated_adScheduleTargets_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A Structured Snippet asset. - /// - public sealed partial class StructuredSnippetAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StructuredSnippetAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StructuredSnippetAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StructuredSnippetAsset(StructuredSnippetAsset other) : this() { - header_ = other.header_; - values_ = other.values_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StructuredSnippetAsset Clone() { - return new StructuredSnippetAsset(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private string header_ = ""; - /// - /// Required. The header of the snippet. - /// This string should be one of the predefined values at - /// https://developers.google.com/google-ads/api/reference/data/structured-snippet-headers - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Header { - get { return header_; } - set { - header_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "values" field. - public const int ValuesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_values_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); - /// - /// Required. The values in the snippet. - /// The size of this collection should be between 3 and 10, inclusive. - /// The length of each value should be between 1 and 25 characters, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Values { - get { return values_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StructuredSnippetAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StructuredSnippetAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Header != other.Header) return false; - if(!values_.Equals(other.values_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Header.Length != 0) hash ^= Header.GetHashCode(); - hash ^= values_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Header.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Header); - } - values_.WriteTo(output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Header.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Header); - } - values_.WriteTo(ref output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Header.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Header); - } - size += values_.CalculateSize(_repeated_values_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StructuredSnippetAsset other) { - if (other == null) { - return; - } - if (other.Header.Length != 0) { - Header = other.Header; - } - values_.Add(other.values_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Header = input.ReadString(); - break; - } - case 18: { - values_.AddEntriesFrom(input, _repeated_values_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Header = input.ReadString(); - break; - } - case 18: { - values_.AddEntriesFrom(ref input, _repeated_values_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A Sitelink asset. - /// - public sealed partial class SitelinkAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SitelinkAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SitelinkAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SitelinkAsset(SitelinkAsset other) : this() { - linkText_ = other.linkText_; - description1_ = other.description1_; - description2_ = other.description2_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - adScheduleTargets_ = other.adScheduleTargets_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SitelinkAsset Clone() { - return new SitelinkAsset(this); - } - - /// Field number for the "link_text" field. - public const int LinkTextFieldNumber = 1; - private string linkText_ = ""; - /// - /// Required. URL display text for the sitelink. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LinkText { - get { return linkText_; } - set { - linkText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description1" field. - public const int Description1FieldNumber = 2; - private string description1_ = ""; - /// - /// First line of the description for the sitelink. - /// If set, the length should be between 1 and 35, inclusive, and description2 - /// must also be set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description1 { - get { return description1_; } - set { - description1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description2" field. - public const int Description2FieldNumber = 3; - private string description2_ = ""; - /// - /// Second line of the description for the sitelink. - /// If set, the length should be between 1 and 35, inclusive, and description1 - /// must also be set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description2 { - get { return description2_; } - set { - description2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 4; - private string startDate_ = ""; - /// - /// Start date of when this asset is effective and can begin serving, in - /// yyyy-MM-dd format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 5; - private string endDate_ = ""; - /// - /// Last date of when this asset is effective and still serving, in yyyy-MM-dd - /// format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_schedule_targets" field. - public const int AdScheduleTargetsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_adScheduleTargets_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo.Parser); - private readonly pbc::RepeatedField adScheduleTargets_ = new pbc::RepeatedField(); - /// - /// List of non-overlapping schedules specifying all time intervals for which - /// the asset may serve. There can be a maximum of 6 schedules per day, 42 in - /// total. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdScheduleTargets { - get { return adScheduleTargets_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SitelinkAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SitelinkAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LinkText != other.LinkText) return false; - if (Description1 != other.Description1) return false; - if (Description2 != other.Description2) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if(!adScheduleTargets_.Equals(other.adScheduleTargets_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (LinkText.Length != 0) hash ^= LinkText.GetHashCode(); - if (Description1.Length != 0) hash ^= Description1.GetHashCode(); - if (Description2.Length != 0) hash ^= Description2.GetHashCode(); - if (StartDate.Length != 0) hash ^= StartDate.GetHashCode(); - if (EndDate.Length != 0) hash ^= EndDate.GetHashCode(); - hash ^= adScheduleTargets_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (LinkText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(LinkText); - } - if (Description1.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Description1); - } - if (Description2.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description2); - } - if (StartDate.Length != 0) { - output.WriteRawTag(34); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EndDate); - } - adScheduleTargets_.WriteTo(output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LinkText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(LinkText); - } - if (Description1.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Description1); - } - if (Description2.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Description2); - } - if (StartDate.Length != 0) { - output.WriteRawTag(34); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EndDate); - } - adScheduleTargets_.WriteTo(ref output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (LinkText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LinkText); - } - if (Description1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description1); - } - if (Description2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description2); - } - if (StartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (EndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - size += adScheduleTargets_.CalculateSize(_repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SitelinkAsset other) { - if (other == null) { - return; - } - if (other.LinkText.Length != 0) { - LinkText = other.LinkText; - } - if (other.Description1.Length != 0) { - Description1 = other.Description1; - } - if (other.Description2.Length != 0) { - Description2 = other.Description2; - } - if (other.StartDate.Length != 0) { - StartDate = other.StartDate; - } - if (other.EndDate.Length != 0) { - EndDate = other.EndDate; - } - adScheduleTargets_.Add(other.adScheduleTargets_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - LinkText = input.ReadString(); - break; - } - case 18: { - Description1 = input.ReadString(); - break; - } - case 26: { - Description2 = input.ReadString(); - break; - } - case 34: { - StartDate = input.ReadString(); - break; - } - case 42: { - EndDate = input.ReadString(); - break; - } - case 50: { - adScheduleTargets_.AddEntriesFrom(input, _repeated_adScheduleTargets_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - LinkText = input.ReadString(); - break; - } - case 18: { - Description1 = input.ReadString(); - break; - } - case 26: { - Description2 = input.ReadString(); - break; - } - case 34: { - StartDate = input.ReadString(); - break; - } - case 42: { - EndDate = input.ReadString(); - break; - } - case 50: { - adScheduleTargets_.AddEntriesFrom(ref input, _repeated_adScheduleTargets_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A Page Feed asset. - /// - public sealed partial class PageFeedAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PageFeedAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PageFeedAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PageFeedAsset(PageFeedAsset other) : this() { - pageUrl_ = other.pageUrl_; - labels_ = other.labels_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PageFeedAsset Clone() { - return new PageFeedAsset(this); - } - - /// Field number for the "page_url" field. - public const int PageUrlFieldNumber = 1; - private string pageUrl_ = ""; - /// - /// Required. The webpage that advertisers want to target. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageUrl { - get { return pageUrl_; } - set { - pageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); - /// - /// Labels used to group the page urls. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PageFeedAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PageFeedAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PageUrl != other.PageUrl) return false; - if(!labels_.Equals(other.labels_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PageUrl.Length != 0) hash ^= PageUrl.GetHashCode(); - hash ^= labels_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PageUrl.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PageUrl); - } - labels_.WriteTo(output, _repeated_labels_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PageUrl.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PageUrl); - } - labels_.WriteTo(ref output, _repeated_labels_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageUrl); - } - size += labels_.CalculateSize(_repeated_labels_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PageFeedAsset other) { - if (other == null) { - return; - } - if (other.PageUrl.Length != 0) { - PageUrl = other.PageUrl; - } - labels_.Add(other.labels_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PageUrl = input.ReadString(); - break; - } - case 18: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PageUrl = input.ReadString(); - break; - } - case 18: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A Dynamic Education asset. - /// - public sealed partial class DynamicEducationAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicEducationAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicEducationAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicEducationAsset(DynamicEducationAsset other) : this() { - programId_ = other.programId_; - locationId_ = other.locationId_; - programName_ = other.programName_; - subject_ = other.subject_; - programDescription_ = other.programDescription_; - schoolName_ = other.schoolName_; - address_ = other.address_; - contextualKeywords_ = other.contextualKeywords_.Clone(); - androidAppLink_ = other.androidAppLink_; - similarProgramIds_ = other.similarProgramIds_.Clone(); - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - thumbnailImageUrl_ = other.thumbnailImageUrl_; - imageUrl_ = other.imageUrl_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicEducationAsset Clone() { - return new DynamicEducationAsset(this); - } - - /// Field number for the "program_id" field. - public const int ProgramIdFieldNumber = 1; - private string programId_ = ""; - /// - /// Required. Program ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProgramId { - get { return programId_; } - set { - programId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "location_id" field. - public const int LocationIdFieldNumber = 2; - private string locationId_ = ""; - /// - /// Location ID which can be any sequence of letters and digits and must be - /// unique. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LocationId { - get { return locationId_; } - set { - locationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "program_name" field. - public const int ProgramNameFieldNumber = 3; - private string programName_ = ""; - /// - /// Required. Program name, for example, Nursing. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProgramName { - get { return programName_; } - set { - programName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "subject" field. - public const int SubjectFieldNumber = 4; - private string subject_ = ""; - /// - /// Subject of study, for example, Health. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Subject { - get { return subject_; } - set { - subject_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "program_description" field. - public const int ProgramDescriptionFieldNumber = 5; - private string programDescription_ = ""; - /// - /// Program description, for example, Nursing Certification. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProgramDescription { - get { return programDescription_; } - set { - programDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "school_name" field. - public const int SchoolNameFieldNumber = 6; - private string schoolName_ = ""; - /// - /// School name, for example, Mountain View School of Nursing. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SchoolName { - get { return schoolName_; } - set { - schoolName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "address" field. - public const int AddressFieldNumber = 7; - private string address_ = ""; - /// - /// School address which can be specified in one of the following formats. - /// (1) City, state, code, country, for example, Mountain View, CA, USA. - /// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043. - /// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Address { - get { return address_; } - set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "contextual_keywords" field. - public const int ContextualKeywordsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_contextualKeywords_codec - = pb::FieldCodec.ForString(66); - private readonly pbc::RepeatedField contextualKeywords_ = new pbc::RepeatedField(); - /// - /// Contextual keywords, for example, Nursing certification, Health, Mountain - /// View. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ContextualKeywords { - get { return contextualKeywords_; } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 9; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "similar_program_ids" field. - public const int SimilarProgramIdsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_similarProgramIds_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField similarProgramIds_ = new pbc::RepeatedField(); - /// - /// Similar program IDs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarProgramIds { - get { return similarProgramIds_; } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 11; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 12; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - /// Field number for the "thumbnail_image_url" field. - public const int ThumbnailImageUrlFieldNumber = 13; - private string thumbnailImageUrl_ = ""; - /// - /// Thumbnail image url, for example, http://www.example.com/thumbnail.png. The - /// thumbnail image will not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ThumbnailImageUrl { - get { return thumbnailImageUrl_; } - set { - thumbnailImageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 14; - private string imageUrl_ = ""; - /// - /// Image url, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicEducationAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicEducationAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ProgramId != other.ProgramId) return false; - if (LocationId != other.LocationId) return false; - if (ProgramName != other.ProgramName) return false; - if (Subject != other.Subject) return false; - if (ProgramDescription != other.ProgramDescription) return false; - if (SchoolName != other.SchoolName) return false; - if (Address != other.Address) return false; - if(!contextualKeywords_.Equals(other.contextualKeywords_)) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if(!similarProgramIds_.Equals(other.similarProgramIds_)) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - if (ThumbnailImageUrl != other.ThumbnailImageUrl) return false; - if (ImageUrl != other.ImageUrl) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ProgramId.Length != 0) hash ^= ProgramId.GetHashCode(); - if (LocationId.Length != 0) hash ^= LocationId.GetHashCode(); - if (ProgramName.Length != 0) hash ^= ProgramName.GetHashCode(); - if (Subject.Length != 0) hash ^= Subject.GetHashCode(); - if (ProgramDescription.Length != 0) hash ^= ProgramDescription.GetHashCode(); - if (SchoolName.Length != 0) hash ^= SchoolName.GetHashCode(); - if (Address.Length != 0) hash ^= Address.GetHashCode(); - hash ^= contextualKeywords_.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - hash ^= similarProgramIds_.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - if (ThumbnailImageUrl.Length != 0) hash ^= ThumbnailImageUrl.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ProgramId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ProgramId); - } - if (LocationId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LocationId); - } - if (ProgramName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ProgramName); - } - if (Subject.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Subject); - } - if (ProgramDescription.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ProgramDescription); - } - if (SchoolName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(SchoolName); - } - if (Address.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Address); - } - contextualKeywords_.WriteTo(output, _repeated_contextualKeywords_codec); - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(74); - output.WriteString(AndroidAppLink); - } - similarProgramIds_.WriteTo(output, _repeated_similarProgramIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(96); - output.WriteInt64(IosAppStoreId); - } - if (ThumbnailImageUrl.Length != 0) { - output.WriteRawTag(106); - output.WriteString(ThumbnailImageUrl); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(114); - output.WriteString(ImageUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ProgramId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ProgramId); - } - if (LocationId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LocationId); - } - if (ProgramName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ProgramName); - } - if (Subject.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Subject); - } - if (ProgramDescription.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ProgramDescription); - } - if (SchoolName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(SchoolName); - } - if (Address.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Address); - } - contextualKeywords_.WriteTo(ref output, _repeated_contextualKeywords_codec); - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(74); - output.WriteString(AndroidAppLink); - } - similarProgramIds_.WriteTo(ref output, _repeated_similarProgramIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(96); - output.WriteInt64(IosAppStoreId); - } - if (ThumbnailImageUrl.Length != 0) { - output.WriteRawTag(106); - output.WriteString(ThumbnailImageUrl); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(114); - output.WriteString(ImageUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ProgramId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProgramId); - } - if (LocationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LocationId); - } - if (ProgramName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProgramName); - } - if (Subject.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Subject); - } - if (ProgramDescription.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProgramDescription); - } - if (SchoolName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SchoolName); - } - if (Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); - } - size += contextualKeywords_.CalculateSize(_repeated_contextualKeywords_codec); - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - size += similarProgramIds_.CalculateSize(_repeated_similarProgramIds_codec); - if (IosAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - if (ThumbnailImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ThumbnailImageUrl); - } - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicEducationAsset other) { - if (other == null) { - return; - } - if (other.ProgramId.Length != 0) { - ProgramId = other.ProgramId; - } - if (other.LocationId.Length != 0) { - LocationId = other.LocationId; - } - if (other.ProgramName.Length != 0) { - ProgramName = other.ProgramName; - } - if (other.Subject.Length != 0) { - Subject = other.Subject; - } - if (other.ProgramDescription.Length != 0) { - ProgramDescription = other.ProgramDescription; - } - if (other.SchoolName.Length != 0) { - SchoolName = other.SchoolName; - } - if (other.Address.Length != 0) { - Address = other.Address; - } - contextualKeywords_.Add(other.contextualKeywords_); - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - similarProgramIds_.Add(other.similarProgramIds_); - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - if (other.ThumbnailImageUrl.Length != 0) { - ThumbnailImageUrl = other.ThumbnailImageUrl; - } - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ProgramId = input.ReadString(); - break; - } - case 18: { - LocationId = input.ReadString(); - break; - } - case 26: { - ProgramName = input.ReadString(); - break; - } - case 34: { - Subject = input.ReadString(); - break; - } - case 42: { - ProgramDescription = input.ReadString(); - break; - } - case 50: { - SchoolName = input.ReadString(); - break; - } - case 58: { - Address = input.ReadString(); - break; - } - case 66: { - contextualKeywords_.AddEntriesFrom(input, _repeated_contextualKeywords_codec); - break; - } - case 74: { - AndroidAppLink = input.ReadString(); - break; - } - case 82: { - similarProgramIds_.AddEntriesFrom(input, _repeated_similarProgramIds_codec); - break; - } - case 90: { - IosAppLink = input.ReadString(); - break; - } - case 96: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 106: { - ThumbnailImageUrl = input.ReadString(); - break; - } - case 114: { - ImageUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ProgramId = input.ReadString(); - break; - } - case 18: { - LocationId = input.ReadString(); - break; - } - case 26: { - ProgramName = input.ReadString(); - break; - } - case 34: { - Subject = input.ReadString(); - break; - } - case 42: { - ProgramDescription = input.ReadString(); - break; - } - case 50: { - SchoolName = input.ReadString(); - break; - } - case 58: { - Address = input.ReadString(); - break; - } - case 66: { - contextualKeywords_.AddEntriesFrom(ref input, _repeated_contextualKeywords_codec); - break; - } - case 74: { - AndroidAppLink = input.ReadString(); - break; - } - case 82: { - similarProgramIds_.AddEntriesFrom(ref input, _repeated_similarProgramIds_codec); - break; - } - case 90: { - IosAppLink = input.ReadString(); - break; - } - case 96: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 106: { - ThumbnailImageUrl = input.ReadString(); - break; - } - case 114: { - ImageUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An asset representing a mobile app. - /// - public sealed partial class MobileAppAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MobileAppAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileAppAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileAppAsset(MobileAppAsset other) : this() { - appId_ = other.appId_; - appStore_ = other.appStore_; - linkText_ = other.linkText_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileAppAsset Clone() { - return new MobileAppAsset(this); - } - - /// Field number for the "app_id" field. - public const int AppIdFieldNumber = 1; - private string appId_ = ""; - /// - /// Required. A string that uniquely identifies a mobile application. It should just - /// contain the platform native id, like "com.android.ebay" for Android or - /// "12345689" for iOS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppId { - get { return appId_; } - set { - appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "app_store" field. - public const int AppStoreFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor appStore_ = global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified; - /// - /// Required. The application store that distributes this specific app. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor AppStore { - get { return appStore_; } - set { - appStore_ = value; - } - } - - /// Field number for the "link_text" field. - public const int LinkTextFieldNumber = 3; - private string linkText_ = ""; - /// - /// Required. The visible text displayed when the link is rendered in an ad. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LinkText { - get { return linkText_; } - set { - linkText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 4; - private string startDate_ = ""; - /// - /// Start date of when this asset is effective and can begin serving, in - /// yyyy-MM-dd format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 5; - private string endDate_ = ""; - /// - /// Last date of when this asset is effective and still serving, in yyyy-MM-dd - /// format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MobileAppAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MobileAppAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AppId != other.AppId) return false; - if (AppStore != other.AppStore) return false; - if (LinkText != other.LinkText) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (AppId.Length != 0) hash ^= AppId.GetHashCode(); - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) hash ^= AppStore.GetHashCode(); - if (LinkText.Length != 0) hash ^= LinkText.GetHashCode(); - if (StartDate.Length != 0) hash ^= StartDate.GetHashCode(); - if (EndDate.Length != 0) hash ^= EndDate.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AppId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(AppId); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) AppStore); - } - if (LinkText.Length != 0) { - output.WriteRawTag(26); - output.WriteString(LinkText); - } - if (StartDate.Length != 0) { - output.WriteRawTag(34); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AppId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(AppId); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) AppStore); - } - if (LinkText.Length != 0) { - output.WriteRawTag(26); - output.WriteString(LinkText); - } - if (StartDate.Length != 0) { - output.WriteRawTag(34); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (AppId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppStore); - } - if (LinkText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LinkText); - } - if (StartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (EndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MobileAppAsset other) { - if (other == null) { - return; - } - if (other.AppId.Length != 0) { - AppId = other.AppId; - } - if (other.AppStore != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - AppStore = other.AppStore; - } - if (other.LinkText.Length != 0) { - LinkText = other.LinkText; - } - if (other.StartDate.Length != 0) { - StartDate = other.StartDate; - } - if (other.EndDate.Length != 0) { - EndDate = other.EndDate; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - AppId = input.ReadString(); - break; - } - case 16: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor) input.ReadEnum(); - break; - } - case 26: { - LinkText = input.ReadString(); - break; - } - case 34: { - StartDate = input.ReadString(); - break; - } - case 42: { - EndDate = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - AppId = input.ReadString(); - break; - } - case 16: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor) input.ReadEnum(); - break; - } - case 26: { - LinkText = input.ReadString(); - break; - } - case 34: { - StartDate = input.ReadString(); - break; - } - case 42: { - EndDate = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An asset representing a hotel callout. - /// - public sealed partial class HotelCalloutAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelCalloutAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCalloutAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCalloutAsset(HotelCalloutAsset other) : this() { - text_ = other.text_; - languageCode_ = other.languageCode_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCalloutAsset Clone() { - return new HotelCalloutAsset(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 1; - private string text_ = ""; - /// - /// Required. The text of the hotel callout asset. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 2; - private string languageCode_ = ""; - /// - /// Required. The language of the hotel callout. - /// Represented as BCP 47 language tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelCalloutAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelCalloutAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) return false; - if (LanguageCode != other.LanguageCode) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Text.Length != 0) hash ^= Text.GetHashCode(); - if (LanguageCode.Length != 0) hash ^= LanguageCode.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Text.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Text); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Text.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Text); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Text.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (LanguageCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelCalloutAsset other) { - if (other == null) { - return; - } - if (other.Text.Length != 0) { - Text = other.Text; - } - if (other.LanguageCode.Length != 0) { - LanguageCode = other.LanguageCode; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Text = input.ReadString(); - break; - } - case 18: { - LanguageCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Text = input.ReadString(); - break; - } - case 18: { - LanguageCode = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A Call asset. - /// - public sealed partial class CallAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallAsset(CallAsset other) : this() { - countryCode_ = other.countryCode_; - phoneNumber_ = other.phoneNumber_; - callConversionReportingState_ = other.callConversionReportingState_; - callConversionAction_ = other.callConversionAction_; - adScheduleTargets_ = other.adScheduleTargets_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallAsset Clone() { - return new CallAsset(this); - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 1; - private string countryCode_ = ""; - /// - /// Required. Two-letter country code of the phone number. Examples: 'US', 'us'. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "phone_number" field. - public const int PhoneNumberFieldNumber = 2; - private string phoneNumber_ = ""; - /// - /// Required. The advertiser's raw phone number. Examples: '1234567890', '(123)456-7890' - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PhoneNumber { - get { return phoneNumber_; } - set { - phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "call_conversion_reporting_state" field. - public const int CallConversionReportingStateFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState callConversionReportingState_ = global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified; - /// - /// Indicates whether this CallAsset should use its own call conversion - /// setting, follow the account level setting, or disable call conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState CallConversionReportingState { - get { return callConversionReportingState_; } - set { - callConversionReportingState_ = value; - } - } - - /// Field number for the "call_conversion_action" field. - public const int CallConversionActionFieldNumber = 4; - private string callConversionAction_ = ""; - /// - /// The conversion action to attribute a call conversion to. If not set, the - /// default conversion action is used. This field only has effect if - /// call_conversion_reporting_state is set to - /// USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallConversionAction { - get { return callConversionAction_; } - set { - callConversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_schedule_targets" field. - public const int AdScheduleTargetsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_adScheduleTargets_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo.Parser); - private readonly pbc::RepeatedField adScheduleTargets_ = new pbc::RepeatedField(); - /// - /// List of non-overlapping schedules specifying all time intervals for which - /// the asset may serve. There can be a maximum of 6 schedules per day, 42 in - /// total. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdScheduleTargets { - get { return adScheduleTargets_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CountryCode != other.CountryCode) return false; - if (PhoneNumber != other.PhoneNumber) return false; - if (CallConversionReportingState != other.CallConversionReportingState) return false; - if (CallConversionAction != other.CallConversionAction) return false; - if(!adScheduleTargets_.Equals(other.adScheduleTargets_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CountryCode.Length != 0) hash ^= CountryCode.GetHashCode(); - if (PhoneNumber.Length != 0) hash ^= PhoneNumber.GetHashCode(); - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) hash ^= CallConversionReportingState.GetHashCode(); - if (CallConversionAction.Length != 0) hash ^= CallConversionAction.GetHashCode(); - hash ^= adScheduleTargets_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CountryCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CountryCode); - } - if (PhoneNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PhoneNumber); - } - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) CallConversionReportingState); - } - if (CallConversionAction.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CallConversionAction); - } - adScheduleTargets_.WriteTo(output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CountryCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CountryCode); - } - if (PhoneNumber.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PhoneNumber); - } - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) CallConversionReportingState); - } - if (CallConversionAction.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CallConversionAction); - } - adScheduleTargets_.WriteTo(ref output, _repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CountryCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (PhoneNumber.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); - } - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallConversionReportingState); - } - if (CallConversionAction.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallConversionAction); - } - size += adScheduleTargets_.CalculateSize(_repeated_adScheduleTargets_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallAsset other) { - if (other == null) { - return; - } - if (other.CountryCode.Length != 0) { - CountryCode = other.CountryCode; - } - if (other.PhoneNumber.Length != 0) { - PhoneNumber = other.PhoneNumber; - } - if (other.CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - CallConversionReportingState = other.CallConversionReportingState; - } - if (other.CallConversionAction.Length != 0) { - CallConversionAction = other.CallConversionAction; - } - adScheduleTargets_.Add(other.adScheduleTargets_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CountryCode = input.ReadString(); - break; - } - case 18: { - PhoneNumber = input.ReadString(); - break; - } - case 24: { - CallConversionReportingState = (global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState) input.ReadEnum(); - break; - } - case 34: { - CallConversionAction = input.ReadString(); - break; - } - case 42: { - adScheduleTargets_.AddEntriesFrom(input, _repeated_adScheduleTargets_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CountryCode = input.ReadString(); - break; - } - case 18: { - PhoneNumber = input.ReadString(); - break; - } - case 24: { - CallConversionReportingState = (global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState) input.ReadEnum(); - break; - } - case 34: { - CallConversionAction = input.ReadString(); - break; - } - case 42: { - adScheduleTargets_.AddEntriesFrom(ref input, _repeated_adScheduleTargets_codec); - break; - } - } - } - } - #endif - - } - - /// - /// An asset representing a list of price offers. - /// - public sealed partial class PriceAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PriceAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceAsset(PriceAsset other) : this() { - type_ = other.type_; - priceQualifier_ = other.priceQualifier_; - languageCode_ = other.languageCode_; - priceOfferings_ = other.priceOfferings_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceAsset Clone() { - return new PriceAsset(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType type_ = global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified; - /// - /// Required. The type of the price asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "price_qualifier" field. - public const int PriceQualifierFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier priceQualifier_ = global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified; - /// - /// The price qualifier of the price asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier PriceQualifier { - get { return priceQualifier_; } - set { - priceQualifier_ = value; - } - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 3; - private string languageCode_ = ""; - /// - /// Required. The language of the price asset. - /// Represented as BCP 47 language tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "price_offerings" field. - public const int PriceOfferingsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_priceOfferings_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.PriceOffering.Parser); - private readonly pbc::RepeatedField priceOfferings_ = new pbc::RepeatedField(); - /// - /// The price offerings of the price asset. - /// The size of this collection should be between 3 and 8, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PriceOfferings { - get { return priceOfferings_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PriceAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PriceAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (PriceQualifier != other.PriceQualifier) return false; - if (LanguageCode != other.LanguageCode) return false; - if(!priceOfferings_.Equals(other.priceOfferings_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) hash ^= Type.GetHashCode(); - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) hash ^= PriceQualifier.GetHashCode(); - if (LanguageCode.Length != 0) hash ^= LanguageCode.GetHashCode(); - hash ^= priceOfferings_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PriceQualifier); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(LanguageCode); - } - priceOfferings_.WriteTo(output, _repeated_priceOfferings_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PriceQualifier); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(LanguageCode); - } - priceOfferings_.WriteTo(ref output, _repeated_priceOfferings_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PriceQualifier); - } - if (LanguageCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - size += priceOfferings_.CalculateSize(_repeated_priceOfferings_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PriceAsset other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - Type = other.Type; - } - if (other.PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - PriceQualifier = other.PriceQualifier; - } - if (other.LanguageCode.Length != 0) { - LanguageCode = other.LanguageCode; - } - priceOfferings_.Add(other.priceOfferings_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType) input.ReadEnum(); - break; - } - case 16: { - PriceQualifier = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier) input.ReadEnum(); - break; - } - case 26: { - LanguageCode = input.ReadString(); - break; - } - case 34: { - priceOfferings_.AddEntriesFrom(input, _repeated_priceOfferings_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType) input.ReadEnum(); - break; - } - case 16: { - PriceQualifier = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier) input.ReadEnum(); - break; - } - case 26: { - LanguageCode = input.ReadString(); - break; - } - case 34: { - priceOfferings_.AddEntriesFrom(ref input, _repeated_priceOfferings_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A single price offering within a PriceAsset. - /// - public sealed partial class PriceOffering : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PriceOffering()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceOffering() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceOffering(PriceOffering other) : this() { - header_ = other.header_; - description_ = other.description_; - price_ = other.price_ != null ? other.price_.Clone() : null; - unit_ = other.unit_; - finalUrl_ = other.finalUrl_; - finalMobileUrl_ = other.finalMobileUrl_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceOffering Clone() { - return new PriceOffering(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 1; - private string header_ = ""; - /// - /// Required. The header of the price offering. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Header { - get { return header_; } - set { - header_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 2; - private string description_ = ""; - /// - /// Required. The description of the price offering. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "price" field. - public const int PriceFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.Money price_; - /// - /// Required. The price value of the price offering. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Money Price { - get { return price_; } - set { - price_ = value; - } - } - - /// Field number for the "unit" field. - public const int UnitFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit unit_ = global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified; - /// - /// The price unit of the price offering. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit Unit { - get { return unit_; } - set { - unit_ = value; - } - } - - /// Field number for the "final_url" field. - public const int FinalUrlFieldNumber = 5; - private string finalUrl_ = ""; - /// - /// Required. The final URL after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrl { - get { return finalUrl_; } - set { - finalUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "final_mobile_url" field. - public const int FinalMobileUrlFieldNumber = 6; - private string finalMobileUrl_ = ""; - /// - /// The final mobile URL after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalMobileUrl { - get { return finalMobileUrl_; } - set { - finalMobileUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PriceOffering); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PriceOffering other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Header != other.Header) return false; - if (Description != other.Description) return false; - if (!object.Equals(Price, other.Price)) return false; - if (Unit != other.Unit) return false; - if (FinalUrl != other.FinalUrl) return false; - if (FinalMobileUrl != other.FinalMobileUrl) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Header.Length != 0) hash ^= Header.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (price_ != null) hash ^= Price.GetHashCode(); - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) hash ^= Unit.GetHashCode(); - if (FinalUrl.Length != 0) hash ^= FinalUrl.GetHashCode(); - if (FinalMobileUrl.Length != 0) hash ^= FinalMobileUrl.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Header.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Header); - } - if (Description.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Description); - } - if (price_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Price); - } - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Unit); - } - if (FinalUrl.Length != 0) { - output.WriteRawTag(42); - output.WriteString(FinalUrl); - } - if (FinalMobileUrl.Length != 0) { - output.WriteRawTag(50); - output.WriteString(FinalMobileUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Header.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Header); - } - if (Description.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Description); - } - if (price_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Price); - } - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Unit); - } - if (FinalUrl.Length != 0) { - output.WriteRawTag(42); - output.WriteString(FinalUrl); - } - if (FinalMobileUrl.Length != 0) { - output.WriteRawTag(50); - output.WriteString(FinalMobileUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Header.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Header); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (price_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Price); - } - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Unit); - } - if (FinalUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FinalUrl); - } - if (FinalMobileUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FinalMobileUrl); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PriceOffering other) { - if (other == null) { - return; - } - if (other.Header.Length != 0) { - Header = other.Header; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.price_ != null) { - if (price_ == null) { - Price = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - Price.MergeFrom(other.Price); - } - if (other.Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - Unit = other.Unit; - } - if (other.FinalUrl.Length != 0) { - FinalUrl = other.FinalUrl; - } - if (other.FinalMobileUrl.Length != 0) { - FinalMobileUrl = other.FinalMobileUrl; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Header = input.ReadString(); - break; - } - case 18: { - Description = input.ReadString(); - break; - } - case 26: { - if (price_ == null) { - Price = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - input.ReadMessage(Price); - break; - } - case 32: { - Unit = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit) input.ReadEnum(); - break; - } - case 42: { - FinalUrl = input.ReadString(); - break; - } - case 50: { - FinalMobileUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Header = input.ReadString(); - break; - } - case 18: { - Description = input.ReadString(); - break; - } - case 26: { - if (price_ == null) { - Price = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - input.ReadMessage(Price); - break; - } - case 32: { - Unit = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit) input.ReadEnum(); - break; - } - case 42: { - FinalUrl = input.ReadString(); - break; - } - case 50: { - FinalMobileUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A call to action asset. - /// - public sealed partial class CallToActionAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallToActionAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallToActionAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallToActionAsset(CallToActionAsset other) : this() { - callToAction_ = other.callToAction_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallToActionAsset Clone() { - return new CallToActionAsset(this); - } - - /// Field number for the "call_to_action" field. - public const int CallToActionFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType callToAction_ = global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType.Unspecified; - /// - /// Call to action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType CallToAction { - get { return callToAction_; } - set { - callToAction_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallToActionAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallToActionAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CallToAction != other.CallToAction) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CallToAction != global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType.Unspecified) hash ^= CallToAction.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CallToAction != global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) CallToAction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CallToAction != global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) CallToAction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CallToAction != global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallToAction); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallToActionAsset other) { - if (other == null) { - return; - } - if (other.CallToAction != global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType.Unspecified) { - CallToAction = other.CallToAction; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - CallToAction = (global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - CallToAction = (global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A dynamic real estate asset. - /// - public sealed partial class DynamicRealEstateAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicRealEstateAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicRealEstateAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicRealEstateAsset(DynamicRealEstateAsset other) : this() { - listingId_ = other.listingId_; - listingName_ = other.listingName_; - cityName_ = other.cityName_; - description_ = other.description_; - address_ = other.address_; - price_ = other.price_; - imageUrl_ = other.imageUrl_; - propertyType_ = other.propertyType_; - listingType_ = other.listingType_; - contextualKeywords_ = other.contextualKeywords_.Clone(); - formattedPrice_ = other.formattedPrice_; - androidAppLink_ = other.androidAppLink_; - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - similarListingIds_ = other.similarListingIds_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicRealEstateAsset Clone() { - return new DynamicRealEstateAsset(this); - } - - /// Field number for the "listing_id" field. - public const int ListingIdFieldNumber = 1; - private string listingId_ = ""; - /// - /// Required. Listing ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ListingId { - get { return listingId_; } - set { - listingId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "listing_name" field. - public const int ListingNameFieldNumber = 2; - private string listingName_ = ""; - /// - /// Required. Listing name, for example, Boulevard Bungalow. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ListingName { - get { return listingName_; } - set { - listingName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "city_name" field. - public const int CityNameFieldNumber = 3; - private string cityName_ = ""; - /// - /// City name, for example, Mountain View, California. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CityName { - get { return cityName_; } - set { - cityName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 4; - private string description_ = ""; - /// - /// Description, for example, 3 beds, 2 baths, 1568 sq. ft. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "address" field. - public const int AddressFieldNumber = 5; - private string address_ = ""; - /// - /// Address which can be specified in one of the following formats. - /// (1) City, state, code, country, for example, Mountain View, CA, USA. - /// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043. - /// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Address { - get { return address_; } - set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "price" field. - public const int PriceFieldNumber = 6; - private string price_ = ""; - /// - /// Price which can be number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 200,000.00 - /// USD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Price { - get { return price_; } - set { - price_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 7; - private string imageUrl_ = ""; - /// - /// Image URL, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "property_type" field. - public const int PropertyTypeFieldNumber = 8; - private string propertyType_ = ""; - /// - /// Property type, for example, House. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropertyType { - get { return propertyType_; } - set { - propertyType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "listing_type" field. - public const int ListingTypeFieldNumber = 9; - private string listingType_ = ""; - /// - /// Listing type, for example, For sale. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ListingType { - get { return listingType_; } - set { - listingType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "contextual_keywords" field. - public const int ContextualKeywordsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_contextualKeywords_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField contextualKeywords_ = new pbc::RepeatedField(); - /// - /// Contextual keywords, for example, For sale; Houses for sale. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ContextualKeywords { - get { return contextualKeywords_; } - } - - /// Field number for the "formatted_price" field. - public const int FormattedPriceFieldNumber = 11; - private string formattedPrice_ = ""; - /// - /// Formatted price which can be any characters. If set, this attribute will be - /// used instead of 'price', for example, Starting at $200,000.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedPrice { - get { return formattedPrice_; } - set { - formattedPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 12; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 13; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 14; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - /// Field number for the "similar_listing_ids" field. - public const int SimilarListingIdsFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_similarListingIds_codec - = pb::FieldCodec.ForString(122); - private readonly pbc::RepeatedField similarListingIds_ = new pbc::RepeatedField(); - /// - /// Similar listing IDs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarListingIds { - get { return similarListingIds_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicRealEstateAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicRealEstateAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ListingId != other.ListingId) return false; - if (ListingName != other.ListingName) return false; - if (CityName != other.CityName) return false; - if (Description != other.Description) return false; - if (Address != other.Address) return false; - if (Price != other.Price) return false; - if (ImageUrl != other.ImageUrl) return false; - if (PropertyType != other.PropertyType) return false; - if (ListingType != other.ListingType) return false; - if(!contextualKeywords_.Equals(other.contextualKeywords_)) return false; - if (FormattedPrice != other.FormattedPrice) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - if(!similarListingIds_.Equals(other.similarListingIds_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ListingId.Length != 0) hash ^= ListingId.GetHashCode(); - if (ListingName.Length != 0) hash ^= ListingName.GetHashCode(); - if (CityName.Length != 0) hash ^= CityName.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Address.Length != 0) hash ^= Address.GetHashCode(); - if (Price.Length != 0) hash ^= Price.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - if (PropertyType.Length != 0) hash ^= PropertyType.GetHashCode(); - if (ListingType.Length != 0) hash ^= ListingType.GetHashCode(); - hash ^= contextualKeywords_.GetHashCode(); - if (FormattedPrice.Length != 0) hash ^= FormattedPrice.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - hash ^= similarListingIds_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ListingId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ListingId); - } - if (ListingName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ListingName); - } - if (CityName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CityName); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (Address.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Address); - } - if (Price.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Price); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ImageUrl); - } - if (PropertyType.Length != 0) { - output.WriteRawTag(66); - output.WriteString(PropertyType); - } - if (ListingType.Length != 0) { - output.WriteRawTag(74); - output.WriteString(ListingType); - } - contextualKeywords_.WriteTo(output, _repeated_contextualKeywords_codec); - if (FormattedPrice.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FormattedPrice); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(98); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(112); - output.WriteInt64(IosAppStoreId); - } - similarListingIds_.WriteTo(output, _repeated_similarListingIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ListingId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ListingId); - } - if (ListingName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ListingName); - } - if (CityName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CityName); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (Address.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Address); - } - if (Price.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Price); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ImageUrl); - } - if (PropertyType.Length != 0) { - output.WriteRawTag(66); - output.WriteString(PropertyType); - } - if (ListingType.Length != 0) { - output.WriteRawTag(74); - output.WriteString(ListingType); - } - contextualKeywords_.WriteTo(ref output, _repeated_contextualKeywords_codec); - if (FormattedPrice.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FormattedPrice); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(98); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(112); - output.WriteInt64(IosAppStoreId); - } - similarListingIds_.WriteTo(ref output, _repeated_similarListingIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ListingId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ListingId); - } - if (ListingName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ListingName); - } - if (CityName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CityName); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); - } - if (Price.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Price); - } - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (PropertyType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropertyType); - } - if (ListingType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ListingType); - } - size += contextualKeywords_.CalculateSize(_repeated_contextualKeywords_codec); - if (FormattedPrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedPrice); - } - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - size += similarListingIds_.CalculateSize(_repeated_similarListingIds_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicRealEstateAsset other) { - if (other == null) { - return; - } - if (other.ListingId.Length != 0) { - ListingId = other.ListingId; - } - if (other.ListingName.Length != 0) { - ListingName = other.ListingName; - } - if (other.CityName.Length != 0) { - CityName = other.CityName; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Address.Length != 0) { - Address = other.Address; - } - if (other.Price.Length != 0) { - Price = other.Price; - } - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - if (other.PropertyType.Length != 0) { - PropertyType = other.PropertyType; - } - if (other.ListingType.Length != 0) { - ListingType = other.ListingType; - } - contextualKeywords_.Add(other.contextualKeywords_); - if (other.FormattedPrice.Length != 0) { - FormattedPrice = other.FormattedPrice; - } - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - similarListingIds_.Add(other.similarListingIds_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ListingId = input.ReadString(); - break; - } - case 18: { - ListingName = input.ReadString(); - break; - } - case 26: { - CityName = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - case 42: { - Address = input.ReadString(); - break; - } - case 50: { - Price = input.ReadString(); - break; - } - case 58: { - ImageUrl = input.ReadString(); - break; - } - case 66: { - PropertyType = input.ReadString(); - break; - } - case 74: { - ListingType = input.ReadString(); - break; - } - case 82: { - contextualKeywords_.AddEntriesFrom(input, _repeated_contextualKeywords_codec); - break; - } - case 90: { - FormattedPrice = input.ReadString(); - break; - } - case 98: { - AndroidAppLink = input.ReadString(); - break; - } - case 106: { - IosAppLink = input.ReadString(); - break; - } - case 112: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 122: { - similarListingIds_.AddEntriesFrom(input, _repeated_similarListingIds_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ListingId = input.ReadString(); - break; - } - case 18: { - ListingName = input.ReadString(); - break; - } - case 26: { - CityName = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - case 42: { - Address = input.ReadString(); - break; - } - case 50: { - Price = input.ReadString(); - break; - } - case 58: { - ImageUrl = input.ReadString(); - break; - } - case 66: { - PropertyType = input.ReadString(); - break; - } - case 74: { - ListingType = input.ReadString(); - break; - } - case 82: { - contextualKeywords_.AddEntriesFrom(ref input, _repeated_contextualKeywords_codec); - break; - } - case 90: { - FormattedPrice = input.ReadString(); - break; - } - case 98: { - AndroidAppLink = input.ReadString(); - break; - } - case 106: { - IosAppLink = input.ReadString(); - break; - } - case 112: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 122: { - similarListingIds_.AddEntriesFrom(ref input, _repeated_similarListingIds_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A dynamic custom asset. - /// - public sealed partial class DynamicCustomAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicCustomAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicCustomAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicCustomAsset(DynamicCustomAsset other) : this() { - id_ = other.id_; - id2_ = other.id2_; - itemTitle_ = other.itemTitle_; - itemSubtitle_ = other.itemSubtitle_; - itemDescription_ = other.itemDescription_; - itemAddress_ = other.itemAddress_; - itemCategory_ = other.itemCategory_; - price_ = other.price_; - salePrice_ = other.salePrice_; - formattedPrice_ = other.formattedPrice_; - formattedSalePrice_ = other.formattedSalePrice_; - imageUrl_ = other.imageUrl_; - contextualKeywords_ = other.contextualKeywords_.Clone(); - androidAppLink_ = other.androidAppLink_; - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - similarIds_ = other.similarIds_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicCustomAsset Clone() { - return new DynamicCustomAsset(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private string id_ = ""; - /// - /// Required. ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag, for example, sedan. - /// Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id2" field. - public const int Id2FieldNumber = 2; - private string id2_ = ""; - /// - /// ID2 which can be any sequence of letters and digits, for example, red. ID - /// sequence (ID + ID2) must be unique. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id2 { - get { return id2_; } - set { - id2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "item_title" field. - public const int ItemTitleFieldNumber = 3; - private string itemTitle_ = ""; - /// - /// Required. Item title, for example, Mid-size sedan. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemTitle { - get { return itemTitle_; } - set { - itemTitle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "item_subtitle" field. - public const int ItemSubtitleFieldNumber = 4; - private string itemSubtitle_ = ""; - /// - /// Item subtitle, for example, At your Mountain View dealership. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemSubtitle { - get { return itemSubtitle_; } - set { - itemSubtitle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "item_description" field. - public const int ItemDescriptionFieldNumber = 5; - private string itemDescription_ = ""; - /// - /// Item description, for example, Best selling mid-size car. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemDescription { - get { return itemDescription_; } - set { - itemDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "item_address" field. - public const int ItemAddressFieldNumber = 6; - private string itemAddress_ = ""; - /// - /// Item address which can be specified in one of the following formats. - /// (1) City, state, code, country, for example, Mountain View, CA, USA. - /// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043. - /// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemAddress { - get { return itemAddress_; } - set { - itemAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "item_category" field. - public const int ItemCategoryFieldNumber = 7; - private string itemCategory_ = ""; - /// - /// Item category, for example, Sedans. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ItemCategory { - get { return itemCategory_; } - set { - itemCategory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "price" field. - public const int PriceFieldNumber = 8; - private string price_ = ""; - /// - /// Price which can be number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 20,000.00 USD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Price { - get { return price_; } - set { - price_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sale_price" field. - public const int SalePriceFieldNumber = 9; - private string salePrice_ = ""; - /// - /// Sale price which can be number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 15,000.00 USD. - /// Must be less than the 'price' field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SalePrice { - get { return salePrice_; } - set { - salePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_price" field. - public const int FormattedPriceFieldNumber = 10; - private string formattedPrice_ = ""; - /// - /// Formatted price which can be any characters. If set, this attribute will be - /// used instead of 'price', for example, Starting at $20,000.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedPrice { - get { return formattedPrice_; } - set { - formattedPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_sale_price" field. - public const int FormattedSalePriceFieldNumber = 11; - private string formattedSalePrice_ = ""; - /// - /// Formatted sale price which can be any characters. If set, this attribute - /// will be used instead of 'sale price', for example, On sale for $15,000.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedSalePrice { - get { return formattedSalePrice_; } - set { - formattedSalePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 12; - private string imageUrl_ = ""; - /// - /// Image URL, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "contextual_keywords" field. - public const int ContextualKeywordsFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_contextualKeywords_codec - = pb::FieldCodec.ForString(106); - private readonly pbc::RepeatedField contextualKeywords_ = new pbc::RepeatedField(); - /// - /// Contextual keywords, for example, Sedans, 4 door sedans. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ContextualKeywords { - get { return contextualKeywords_; } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 14; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 16; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 17; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - /// Field number for the "similar_ids" field. - public const int SimilarIdsFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_similarIds_codec - = pb::FieldCodec.ForString(122); - private readonly pbc::RepeatedField similarIds_ = new pbc::RepeatedField(); - /// - /// Similar IDs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarIds { - get { return similarIds_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicCustomAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicCustomAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Id2 != other.Id2) return false; - if (ItemTitle != other.ItemTitle) return false; - if (ItemSubtitle != other.ItemSubtitle) return false; - if (ItemDescription != other.ItemDescription) return false; - if (ItemAddress != other.ItemAddress) return false; - if (ItemCategory != other.ItemCategory) return false; - if (Price != other.Price) return false; - if (SalePrice != other.SalePrice) return false; - if (FormattedPrice != other.FormattedPrice) return false; - if (FormattedSalePrice != other.FormattedSalePrice) return false; - if (ImageUrl != other.ImageUrl) return false; - if(!contextualKeywords_.Equals(other.contextualKeywords_)) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - if(!similarIds_.Equals(other.similarIds_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Id.Length != 0) hash ^= Id.GetHashCode(); - if (Id2.Length != 0) hash ^= Id2.GetHashCode(); - if (ItemTitle.Length != 0) hash ^= ItemTitle.GetHashCode(); - if (ItemSubtitle.Length != 0) hash ^= ItemSubtitle.GetHashCode(); - if (ItemDescription.Length != 0) hash ^= ItemDescription.GetHashCode(); - if (ItemAddress.Length != 0) hash ^= ItemAddress.GetHashCode(); - if (ItemCategory.Length != 0) hash ^= ItemCategory.GetHashCode(); - if (Price.Length != 0) hash ^= Price.GetHashCode(); - if (SalePrice.Length != 0) hash ^= SalePrice.GetHashCode(); - if (FormattedPrice.Length != 0) hash ^= FormattedPrice.GetHashCode(); - if (FormattedSalePrice.Length != 0) hash ^= FormattedSalePrice.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - hash ^= contextualKeywords_.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - hash ^= similarIds_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Id2.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Id2); - } - if (ItemTitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ItemTitle); - } - if (ItemSubtitle.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ItemSubtitle); - } - if (ItemDescription.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ItemDescription); - } - if (ItemAddress.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ItemAddress); - } - if (ItemCategory.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ItemCategory); - } - if (Price.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(74); - output.WriteString(SalePrice); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FormattedSalePrice); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(98); - output.WriteString(ImageUrl); - } - contextualKeywords_.WriteTo(output, _repeated_contextualKeywords_codec); - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(114); - output.WriteString(AndroidAppLink); - } - similarIds_.WriteTo(output, _repeated_similarIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(136, 1); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Id.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Id); - } - if (Id2.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Id2); - } - if (ItemTitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ItemTitle); - } - if (ItemSubtitle.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ItemSubtitle); - } - if (ItemDescription.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ItemDescription); - } - if (ItemAddress.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ItemAddress); - } - if (ItemCategory.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ItemCategory); - } - if (Price.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(74); - output.WriteString(SalePrice); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FormattedSalePrice); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(98); - output.WriteString(ImageUrl); - } - contextualKeywords_.WriteTo(ref output, _repeated_contextualKeywords_codec); - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(114); - output.WriteString(AndroidAppLink); - } - similarIds_.WriteTo(ref output, _repeated_similarIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(136, 1); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Id.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Id2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Id2); - } - if (ItemTitle.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemTitle); - } - if (ItemSubtitle.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemSubtitle); - } - if (ItemDescription.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemDescription); - } - if (ItemAddress.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemAddress); - } - if (ItemCategory.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemCategory); - } - if (Price.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Price); - } - if (SalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SalePrice); - } - if (FormattedPrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedSalePrice); - } - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - size += contextualKeywords_.CalculateSize(_repeated_contextualKeywords_codec); - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - size += similarIds_.CalculateSize(_repeated_similarIds_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicCustomAsset other) { - if (other == null) { - return; - } - if (other.Id.Length != 0) { - Id = other.Id; - } - if (other.Id2.Length != 0) { - Id2 = other.Id2; - } - if (other.ItemTitle.Length != 0) { - ItemTitle = other.ItemTitle; - } - if (other.ItemSubtitle.Length != 0) { - ItemSubtitle = other.ItemSubtitle; - } - if (other.ItemDescription.Length != 0) { - ItemDescription = other.ItemDescription; - } - if (other.ItemAddress.Length != 0) { - ItemAddress = other.ItemAddress; - } - if (other.ItemCategory.Length != 0) { - ItemCategory = other.ItemCategory; - } - if (other.Price.Length != 0) { - Price = other.Price; - } - if (other.SalePrice.Length != 0) { - SalePrice = other.SalePrice; - } - if (other.FormattedPrice.Length != 0) { - FormattedPrice = other.FormattedPrice; - } - if (other.FormattedSalePrice.Length != 0) { - FormattedSalePrice = other.FormattedSalePrice; - } - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - contextualKeywords_.Add(other.contextualKeywords_); - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - similarIds_.Add(other.similarIds_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Id2 = input.ReadString(); - break; - } - case 26: { - ItemTitle = input.ReadString(); - break; - } - case 34: { - ItemSubtitle = input.ReadString(); - break; - } - case 42: { - ItemDescription = input.ReadString(); - break; - } - case 50: { - ItemAddress = input.ReadString(); - break; - } - case 58: { - ItemCategory = input.ReadString(); - break; - } - case 66: { - Price = input.ReadString(); - break; - } - case 74: { - SalePrice = input.ReadString(); - break; - } - case 82: { - FormattedPrice = input.ReadString(); - break; - } - case 90: { - FormattedSalePrice = input.ReadString(); - break; - } - case 98: { - ImageUrl = input.ReadString(); - break; - } - case 106: { - contextualKeywords_.AddEntriesFrom(input, _repeated_contextualKeywords_codec); - break; - } - case 114: { - AndroidAppLink = input.ReadString(); - break; - } - case 122: { - similarIds_.AddEntriesFrom(input, _repeated_similarIds_codec); - break; - } - case 130: { - IosAppLink = input.ReadString(); - break; - } - case 136: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Id = input.ReadString(); - break; - } - case 18: { - Id2 = input.ReadString(); - break; - } - case 26: { - ItemTitle = input.ReadString(); - break; - } - case 34: { - ItemSubtitle = input.ReadString(); - break; - } - case 42: { - ItemDescription = input.ReadString(); - break; - } - case 50: { - ItemAddress = input.ReadString(); - break; - } - case 58: { - ItemCategory = input.ReadString(); - break; - } - case 66: { - Price = input.ReadString(); - break; - } - case 74: { - SalePrice = input.ReadString(); - break; - } - case 82: { - FormattedPrice = input.ReadString(); - break; - } - case 90: { - FormattedSalePrice = input.ReadString(); - break; - } - case 98: { - ImageUrl = input.ReadString(); - break; - } - case 106: { - contextualKeywords_.AddEntriesFrom(ref input, _repeated_contextualKeywords_codec); - break; - } - case 114: { - AndroidAppLink = input.ReadString(); - break; - } - case 122: { - similarIds_.AddEntriesFrom(ref input, _repeated_similarIds_codec); - break; - } - case 130: { - IosAppLink = input.ReadString(); - break; - } - case 136: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A dynamic hotels and rentals asset. - /// - public sealed partial class DynamicHotelsAndRentalsAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicHotelsAndRentalsAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicHotelsAndRentalsAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicHotelsAndRentalsAsset(DynamicHotelsAndRentalsAsset other) : this() { - propertyId_ = other.propertyId_; - propertyName_ = other.propertyName_; - imageUrl_ = other.imageUrl_; - destinationName_ = other.destinationName_; - description_ = other.description_; - price_ = other.price_; - salePrice_ = other.salePrice_; - starRating_ = other.starRating_; - category_ = other.category_; - contextualKeywords_ = other.contextualKeywords_.Clone(); - address_ = other.address_; - androidAppLink_ = other.androidAppLink_; - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - formattedPrice_ = other.formattedPrice_; - formattedSalePrice_ = other.formattedSalePrice_; - similarPropertyIds_ = other.similarPropertyIds_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicHotelsAndRentalsAsset Clone() { - return new DynamicHotelsAndRentalsAsset(this); - } - - /// Field number for the "property_id" field. - public const int PropertyIdFieldNumber = 1; - private string propertyId_ = ""; - /// - /// Required. Property ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropertyId { - get { return propertyId_; } - set { - propertyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "property_name" field. - public const int PropertyNameFieldNumber = 2; - private string propertyName_ = ""; - /// - /// Required. Property name, for example, Mountain View Hotel. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropertyName { - get { return propertyName_; } - set { - propertyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 3; - private string imageUrl_ = ""; - /// - /// Image URL, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "destination_name" field. - public const int DestinationNameFieldNumber = 4; - private string destinationName_ = ""; - /// - /// Destination name, for example, Downtown Mountain View. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DestinationName { - get { return destinationName_; } - set { - destinationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 5; - private string description_ = ""; - /// - /// Description, for example, Close to SJC Airport. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "price" field. - public const int PriceFieldNumber = 6; - private string price_ = ""; - /// - /// Price which can be number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Price { - get { return price_; } - set { - price_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sale_price" field. - public const int SalePriceFieldNumber = 7; - private string salePrice_ = ""; - /// - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD. - /// Must be less than the 'price' field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SalePrice { - get { return salePrice_; } - set { - salePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "star_rating" field. - public const int StarRatingFieldNumber = 8; - private long starRating_; - /// - /// Star rating. Must be a number between 1 to 5, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long StarRating { - get { return starRating_; } - set { - starRating_ = value; - } - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 9; - private string category_ = ""; - /// - /// Category, for example, Hotel suite. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Category { - get { return category_; } - set { - category_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "contextual_keywords" field. - public const int ContextualKeywordsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_contextualKeywords_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField contextualKeywords_ = new pbc::RepeatedField(); - /// - /// Contextual keywords, for example, Mountain View "Hotels", South Bay hotels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ContextualKeywords { - get { return contextualKeywords_; } - } - - /// Field number for the "address" field. - public const int AddressFieldNumber = 11; - private string address_ = ""; - /// - /// Address which can be specified in one of the following formats. - /// (1) City, state, code, country, for example, Mountain View, CA, USA. - /// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043. - /// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Address { - get { return address_; } - set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 12; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 13; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 14; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - /// Field number for the "formatted_price" field. - public const int FormattedPriceFieldNumber = 15; - private string formattedPrice_ = ""; - /// - /// Formatted price which can be any characters. If set, this attribute will be - /// used instead of 'price', for example, Starting at $100.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedPrice { - get { return formattedPrice_; } - set { - formattedPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_sale_price" field. - public const int FormattedSalePriceFieldNumber = 16; - private string formattedSalePrice_ = ""; - /// - /// Formatted sale price which can be any characters. If set, this attribute - /// will be used instead of 'sale price', for example, On sale for $80.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedSalePrice { - get { return formattedSalePrice_; } - set { - formattedSalePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "similar_property_ids" field. - public const int SimilarPropertyIdsFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_similarPropertyIds_codec - = pb::FieldCodec.ForString(138); - private readonly pbc::RepeatedField similarPropertyIds_ = new pbc::RepeatedField(); - /// - /// Similar property IDs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarPropertyIds { - get { return similarPropertyIds_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicHotelsAndRentalsAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicHotelsAndRentalsAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PropertyId != other.PropertyId) return false; - if (PropertyName != other.PropertyName) return false; - if (ImageUrl != other.ImageUrl) return false; - if (DestinationName != other.DestinationName) return false; - if (Description != other.Description) return false; - if (Price != other.Price) return false; - if (SalePrice != other.SalePrice) return false; - if (StarRating != other.StarRating) return false; - if (Category != other.Category) return false; - if(!contextualKeywords_.Equals(other.contextualKeywords_)) return false; - if (Address != other.Address) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - if (FormattedPrice != other.FormattedPrice) return false; - if (FormattedSalePrice != other.FormattedSalePrice) return false; - if(!similarPropertyIds_.Equals(other.similarPropertyIds_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PropertyId.Length != 0) hash ^= PropertyId.GetHashCode(); - if (PropertyName.Length != 0) hash ^= PropertyName.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - if (DestinationName.Length != 0) hash ^= DestinationName.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Price.Length != 0) hash ^= Price.GetHashCode(); - if (SalePrice.Length != 0) hash ^= SalePrice.GetHashCode(); - if (StarRating != 0L) hash ^= StarRating.GetHashCode(); - if (Category.Length != 0) hash ^= Category.GetHashCode(); - hash ^= contextualKeywords_.GetHashCode(); - if (Address.Length != 0) hash ^= Address.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - if (FormattedPrice.Length != 0) hash ^= FormattedPrice.GetHashCode(); - if (FormattedSalePrice.Length != 0) hash ^= FormattedSalePrice.GetHashCode(); - hash ^= similarPropertyIds_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PropertyId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PropertyId); - } - if (PropertyName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PropertyName); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ImageUrl); - } - if (DestinationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DestinationName); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (Price.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(58); - output.WriteString(SalePrice); - } - if (StarRating != 0L) { - output.WriteRawTag(64); - output.WriteInt64(StarRating); - } - if (Category.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Category); - } - contextualKeywords_.WriteTo(output, _repeated_contextualKeywords_codec); - if (Address.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Address); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(98); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(112); - output.WriteInt64(IosAppStoreId); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(122); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(FormattedSalePrice); - } - similarPropertyIds_.WriteTo(output, _repeated_similarPropertyIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PropertyId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PropertyId); - } - if (PropertyName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PropertyName); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ImageUrl); - } - if (DestinationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DestinationName); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (Price.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(58); - output.WriteString(SalePrice); - } - if (StarRating != 0L) { - output.WriteRawTag(64); - output.WriteInt64(StarRating); - } - if (Category.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Category); - } - contextualKeywords_.WriteTo(ref output, _repeated_contextualKeywords_codec); - if (Address.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Address); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(98); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(112); - output.WriteInt64(IosAppStoreId); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(122); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(FormattedSalePrice); - } - similarPropertyIds_.WriteTo(ref output, _repeated_similarPropertyIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PropertyId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropertyId); - } - if (PropertyName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropertyName); - } - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (DestinationName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationName); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Price.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Price); - } - if (SalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SalePrice); - } - if (StarRating != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(StarRating); - } - if (Category.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Category); - } - size += contextualKeywords_.CalculateSize(_repeated_contextualKeywords_codec); - if (Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); - } - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - if (FormattedPrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FormattedSalePrice); - } - size += similarPropertyIds_.CalculateSize(_repeated_similarPropertyIds_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicHotelsAndRentalsAsset other) { - if (other == null) { - return; - } - if (other.PropertyId.Length != 0) { - PropertyId = other.PropertyId; - } - if (other.PropertyName.Length != 0) { - PropertyName = other.PropertyName; - } - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - if (other.DestinationName.Length != 0) { - DestinationName = other.DestinationName; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Price.Length != 0) { - Price = other.Price; - } - if (other.SalePrice.Length != 0) { - SalePrice = other.SalePrice; - } - if (other.StarRating != 0L) { - StarRating = other.StarRating; - } - if (other.Category.Length != 0) { - Category = other.Category; - } - contextualKeywords_.Add(other.contextualKeywords_); - if (other.Address.Length != 0) { - Address = other.Address; - } - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - if (other.FormattedPrice.Length != 0) { - FormattedPrice = other.FormattedPrice; - } - if (other.FormattedSalePrice.Length != 0) { - FormattedSalePrice = other.FormattedSalePrice; - } - similarPropertyIds_.Add(other.similarPropertyIds_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PropertyId = input.ReadString(); - break; - } - case 18: { - PropertyName = input.ReadString(); - break; - } - case 26: { - ImageUrl = input.ReadString(); - break; - } - case 34: { - DestinationName = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - Price = input.ReadString(); - break; - } - case 58: { - SalePrice = input.ReadString(); - break; - } - case 64: { - StarRating = input.ReadInt64(); - break; - } - case 74: { - Category = input.ReadString(); - break; - } - case 82: { - contextualKeywords_.AddEntriesFrom(input, _repeated_contextualKeywords_codec); - break; - } - case 90: { - Address = input.ReadString(); - break; - } - case 98: { - AndroidAppLink = input.ReadString(); - break; - } - case 106: { - IosAppLink = input.ReadString(); - break; - } - case 112: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 122: { - FormattedPrice = input.ReadString(); - break; - } - case 130: { - FormattedSalePrice = input.ReadString(); - break; - } - case 138: { - similarPropertyIds_.AddEntriesFrom(input, _repeated_similarPropertyIds_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PropertyId = input.ReadString(); - break; - } - case 18: { - PropertyName = input.ReadString(); - break; - } - case 26: { - ImageUrl = input.ReadString(); - break; - } - case 34: { - DestinationName = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - Price = input.ReadString(); - break; - } - case 58: { - SalePrice = input.ReadString(); - break; - } - case 64: { - StarRating = input.ReadInt64(); - break; - } - case 74: { - Category = input.ReadString(); - break; - } - case 82: { - contextualKeywords_.AddEntriesFrom(ref input, _repeated_contextualKeywords_codec); - break; - } - case 90: { - Address = input.ReadString(); - break; - } - case 98: { - AndroidAppLink = input.ReadString(); - break; - } - case 106: { - IosAppLink = input.ReadString(); - break; - } - case 112: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 122: { - FormattedPrice = input.ReadString(); - break; - } - case 130: { - FormattedSalePrice = input.ReadString(); - break; - } - case 138: { - similarPropertyIds_.AddEntriesFrom(ref input, _repeated_similarPropertyIds_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A dynamic flights asset. - /// - public sealed partial class DynamicFlightsAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicFlightsAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicFlightsAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicFlightsAsset(DynamicFlightsAsset other) : this() { - destinationId_ = other.destinationId_; - originId_ = other.originId_; - flightDescription_ = other.flightDescription_; - imageUrl_ = other.imageUrl_; - destinationName_ = other.destinationName_; - originName_ = other.originName_; - flightPrice_ = other.flightPrice_; - flightSalePrice_ = other.flightSalePrice_; - formattedPrice_ = other.formattedPrice_; - formattedSalePrice_ = other.formattedSalePrice_; - androidAppLink_ = other.androidAppLink_; - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - similarDestinationIds_ = other.similarDestinationIds_.Clone(); - customMapping_ = other.customMapping_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicFlightsAsset Clone() { - return new DynamicFlightsAsset(this); - } - - /// Field number for the "destination_id" field. - public const int DestinationIdFieldNumber = 1; - private string destinationId_ = ""; - /// - /// Required. Destination ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DestinationId { - get { return destinationId_; } - set { - destinationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "origin_id" field. - public const int OriginIdFieldNumber = 2; - private string originId_ = ""; - /// - /// Origin ID which can be any sequence of letters and digits. The ID sequence - /// (destination ID + origin ID) must be unique. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OriginId { - get { return originId_; } - set { - originId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "flight_description" field. - public const int FlightDescriptionFieldNumber = 3; - private string flightDescription_ = ""; - /// - /// Required. Flight description, for example, Book your ticket. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FlightDescription { - get { return flightDescription_; } - set { - flightDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 4; - private string imageUrl_ = ""; - /// - /// Image URL, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "destination_name" field. - public const int DestinationNameFieldNumber = 5; - private string destinationName_ = ""; - /// - /// Destination name, for example, Paris. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DestinationName { - get { return destinationName_; } - set { - destinationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "origin_name" field. - public const int OriginNameFieldNumber = 6; - private string originName_ = ""; - /// - /// Origin name, for example, London. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OriginName { - get { return originName_; } - set { - originName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "flight_price" field. - public const int FlightPriceFieldNumber = 7; - private string flightPrice_ = ""; - /// - /// Flight price which can be number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FlightPrice { - get { return flightPrice_; } - set { - flightPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "flight_sale_price" field. - public const int FlightSalePriceFieldNumber = 8; - private string flightSalePrice_ = ""; - /// - /// Flight sale price which can be number followed by the alphabetic currency - /// code, ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 - /// USD. Must be less than the 'flight_price' field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FlightSalePrice { - get { return flightSalePrice_; } - set { - flightSalePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_price" field. - public const int FormattedPriceFieldNumber = 9; - private string formattedPrice_ = ""; - /// - /// Formatted price which can be any characters. If set, this attribute will be - /// used instead of 'price', for example, Starting at $100.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedPrice { - get { return formattedPrice_; } - set { - formattedPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_sale_price" field. - public const int FormattedSalePriceFieldNumber = 10; - private string formattedSalePrice_ = ""; - /// - /// Formatted sale price which can be any characters. If set, this attribute - /// will be used instead of 'sale price', for example, On sale for $80.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedSalePrice { - get { return formattedSalePrice_; } - set { - formattedSalePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 11; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 12; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 13; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - /// Field number for the "similar_destination_ids" field. - public const int SimilarDestinationIdsFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_similarDestinationIds_codec - = pb::FieldCodec.ForString(114); - private readonly pbc::RepeatedField similarDestinationIds_ = new pbc::RepeatedField(); - /// - /// Similar destination IDs, for example, PAR,LON. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarDestinationIds { - get { return similarDestinationIds_; } - } - - /// Field number for the "custom_mapping" field. - public const int CustomMappingFieldNumber = 15; - private string customMapping_ = ""; - /// - /// A custom field which can be multiple key to values mapping separated by - /// delimiters (",", "|" and ":"), in the forms of - /// "<KEY_1>: <VALUE_1>, <VALUE_2>, ... ,<VALUE_N> | <KEY_2>: <VALUE_1>, ... - /// ,<VALUE_N> | ... | <KEY_N>: <VALUE_1>, ... ,<VALUE_N>" for example, wifi: - /// most | aircraft: 320, 77W | flights: 42 | legroom: 32". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomMapping { - get { return customMapping_; } - set { - customMapping_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicFlightsAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicFlightsAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DestinationId != other.DestinationId) return false; - if (OriginId != other.OriginId) return false; - if (FlightDescription != other.FlightDescription) return false; - if (ImageUrl != other.ImageUrl) return false; - if (DestinationName != other.DestinationName) return false; - if (OriginName != other.OriginName) return false; - if (FlightPrice != other.FlightPrice) return false; - if (FlightSalePrice != other.FlightSalePrice) return false; - if (FormattedPrice != other.FormattedPrice) return false; - if (FormattedSalePrice != other.FormattedSalePrice) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - if(!similarDestinationIds_.Equals(other.similarDestinationIds_)) return false; - if (CustomMapping != other.CustomMapping) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DestinationId.Length != 0) hash ^= DestinationId.GetHashCode(); - if (OriginId.Length != 0) hash ^= OriginId.GetHashCode(); - if (FlightDescription.Length != 0) hash ^= FlightDescription.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - if (DestinationName.Length != 0) hash ^= DestinationName.GetHashCode(); - if (OriginName.Length != 0) hash ^= OriginName.GetHashCode(); - if (FlightPrice.Length != 0) hash ^= FlightPrice.GetHashCode(); - if (FlightSalePrice.Length != 0) hash ^= FlightSalePrice.GetHashCode(); - if (FormattedPrice.Length != 0) hash ^= FormattedPrice.GetHashCode(); - if (FormattedSalePrice.Length != 0) hash ^= FormattedSalePrice.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - hash ^= similarDestinationIds_.GetHashCode(); - if (CustomMapping.Length != 0) hash ^= CustomMapping.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DestinationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DestinationId); - } - if (OriginId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(OriginId); - } - if (FlightDescription.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FlightDescription); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ImageUrl); - } - if (DestinationName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DestinationName); - } - if (OriginName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OriginName); - } - if (FlightPrice.Length != 0) { - output.WriteRawTag(58); - output.WriteString(FlightPrice); - } - if (FlightSalePrice.Length != 0) { - output.WriteRawTag(66); - output.WriteString(FlightSalePrice); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FormattedSalePrice); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(98); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(104); - output.WriteInt64(IosAppStoreId); - } - similarDestinationIds_.WriteTo(output, _repeated_similarDestinationIds_codec); - if (CustomMapping.Length != 0) { - output.WriteRawTag(122); - output.WriteString(CustomMapping); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DestinationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DestinationId); - } - if (OriginId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(OriginId); - } - if (FlightDescription.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FlightDescription); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ImageUrl); - } - if (DestinationName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DestinationName); - } - if (OriginName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OriginName); - } - if (FlightPrice.Length != 0) { - output.WriteRawTag(58); - output.WriteString(FlightPrice); - } - if (FlightSalePrice.Length != 0) { - output.WriteRawTag(66); - output.WriteString(FlightSalePrice); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FormattedSalePrice); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(98); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(104); - output.WriteInt64(IosAppStoreId); - } - similarDestinationIds_.WriteTo(ref output, _repeated_similarDestinationIds_codec); - if (CustomMapping.Length != 0) { - output.WriteRawTag(122); - output.WriteString(CustomMapping); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DestinationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationId); - } - if (OriginId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginId); - } - if (FlightDescription.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FlightDescription); - } - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (DestinationName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationName); - } - if (OriginName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginName); - } - if (FlightPrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FlightPrice); - } - if (FlightSalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FlightSalePrice); - } - if (FormattedPrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedSalePrice); - } - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - size += similarDestinationIds_.CalculateSize(_repeated_similarDestinationIds_codec); - if (CustomMapping.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomMapping); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicFlightsAsset other) { - if (other == null) { - return; - } - if (other.DestinationId.Length != 0) { - DestinationId = other.DestinationId; - } - if (other.OriginId.Length != 0) { - OriginId = other.OriginId; - } - if (other.FlightDescription.Length != 0) { - FlightDescription = other.FlightDescription; - } - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - if (other.DestinationName.Length != 0) { - DestinationName = other.DestinationName; - } - if (other.OriginName.Length != 0) { - OriginName = other.OriginName; - } - if (other.FlightPrice.Length != 0) { - FlightPrice = other.FlightPrice; - } - if (other.FlightSalePrice.Length != 0) { - FlightSalePrice = other.FlightSalePrice; - } - if (other.FormattedPrice.Length != 0) { - FormattedPrice = other.FormattedPrice; - } - if (other.FormattedSalePrice.Length != 0) { - FormattedSalePrice = other.FormattedSalePrice; - } - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - similarDestinationIds_.Add(other.similarDestinationIds_); - if (other.CustomMapping.Length != 0) { - CustomMapping = other.CustomMapping; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DestinationId = input.ReadString(); - break; - } - case 18: { - OriginId = input.ReadString(); - break; - } - case 26: { - FlightDescription = input.ReadString(); - break; - } - case 34: { - ImageUrl = input.ReadString(); - break; - } - case 42: { - DestinationName = input.ReadString(); - break; - } - case 50: { - OriginName = input.ReadString(); - break; - } - case 58: { - FlightPrice = input.ReadString(); - break; - } - case 66: { - FlightSalePrice = input.ReadString(); - break; - } - case 74: { - FormattedPrice = input.ReadString(); - break; - } - case 82: { - FormattedSalePrice = input.ReadString(); - break; - } - case 90: { - AndroidAppLink = input.ReadString(); - break; - } - case 98: { - IosAppLink = input.ReadString(); - break; - } - case 104: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 114: { - similarDestinationIds_.AddEntriesFrom(input, _repeated_similarDestinationIds_codec); - break; - } - case 122: { - CustomMapping = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DestinationId = input.ReadString(); - break; - } - case 18: { - OriginId = input.ReadString(); - break; - } - case 26: { - FlightDescription = input.ReadString(); - break; - } - case 34: { - ImageUrl = input.ReadString(); - break; - } - case 42: { - DestinationName = input.ReadString(); - break; - } - case 50: { - OriginName = input.ReadString(); - break; - } - case 58: { - FlightPrice = input.ReadString(); - break; - } - case 66: { - FlightSalePrice = input.ReadString(); - break; - } - case 74: { - FormattedPrice = input.ReadString(); - break; - } - case 82: { - FormattedSalePrice = input.ReadString(); - break; - } - case 90: { - AndroidAppLink = input.ReadString(); - break; - } - case 98: { - IosAppLink = input.ReadString(); - break; - } - case 104: { - IosAppStoreId = input.ReadInt64(); - break; - } - case 114: { - similarDestinationIds_.AddEntriesFrom(ref input, _repeated_similarDestinationIds_codec); - break; - } - case 122: { - CustomMapping = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A Discovery Carousel Card asset. - /// - public sealed partial class DiscoveryCarouselCardAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscoveryCarouselCardAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryCarouselCardAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryCarouselCardAsset(DiscoveryCarouselCardAsset other) : this() { - marketingImageAsset_ = other.marketingImageAsset_; - squareMarketingImageAsset_ = other.squareMarketingImageAsset_; - portraitMarketingImageAsset_ = other.portraitMarketingImageAsset_; - headline_ = other.headline_; - callToActionText_ = other.callToActionText_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscoveryCarouselCardAsset Clone() { - return new DiscoveryCarouselCardAsset(this); - } - - /// Field number for the "marketing_image_asset" field. - public const int MarketingImageAssetFieldNumber = 1; - private string marketingImageAsset_ = ""; - /// - /// Asset resource name of the associated 1.91:1 marketing image. This and/or - /// square marketing image asset is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MarketingImageAsset { - get { return marketingImageAsset_; } - set { - marketingImageAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "square_marketing_image_asset" field. - public const int SquareMarketingImageAssetFieldNumber = 2; - private string squareMarketingImageAsset_ = ""; - /// - /// Asset resource name of the associated square marketing image. This - /// and/or a marketing image asset is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SquareMarketingImageAsset { - get { return squareMarketingImageAsset_; } - set { - squareMarketingImageAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "portrait_marketing_image_asset" field. - public const int PortraitMarketingImageAssetFieldNumber = 3; - private string portraitMarketingImageAsset_ = ""; - /// - /// Asset resource name of the associated 4:5 portrait marketing image. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PortraitMarketingImageAsset { - get { return portraitMarketingImageAsset_; } - set { - portraitMarketingImageAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 4; - private string headline_ = ""; - /// - /// Required. Headline of the carousel card. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "call_to_action_text" field. - public const int CallToActionTextFieldNumber = 5; - private string callToActionText_ = ""; - /// - /// Call to action text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallToActionText { - get { return callToActionText_; } - set { - callToActionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DiscoveryCarouselCardAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DiscoveryCarouselCardAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MarketingImageAsset != other.MarketingImageAsset) return false; - if (SquareMarketingImageAsset != other.SquareMarketingImageAsset) return false; - if (PortraitMarketingImageAsset != other.PortraitMarketingImageAsset) return false; - if (Headline != other.Headline) return false; - if (CallToActionText != other.CallToActionText) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MarketingImageAsset.Length != 0) hash ^= MarketingImageAsset.GetHashCode(); - if (SquareMarketingImageAsset.Length != 0) hash ^= SquareMarketingImageAsset.GetHashCode(); - if (PortraitMarketingImageAsset.Length != 0) hash ^= PortraitMarketingImageAsset.GetHashCode(); - if (Headline.Length != 0) hash ^= Headline.GetHashCode(); - if (CallToActionText.Length != 0) hash ^= CallToActionText.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MarketingImageAsset.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MarketingImageAsset); - } - if (SquareMarketingImageAsset.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SquareMarketingImageAsset); - } - if (PortraitMarketingImageAsset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(PortraitMarketingImageAsset); - } - if (Headline.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Headline); - } - if (CallToActionText.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CallToActionText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MarketingImageAsset.Length != 0) { - output.WriteRawTag(10); - output.WriteString(MarketingImageAsset); - } - if (SquareMarketingImageAsset.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SquareMarketingImageAsset); - } - if (PortraitMarketingImageAsset.Length != 0) { - output.WriteRawTag(26); - output.WriteString(PortraitMarketingImageAsset); - } - if (Headline.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Headline); - } - if (CallToActionText.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CallToActionText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MarketingImageAsset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MarketingImageAsset); - } - if (SquareMarketingImageAsset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SquareMarketingImageAsset); - } - if (PortraitMarketingImageAsset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PortraitMarketingImageAsset); - } - if (Headline.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (CallToActionText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallToActionText); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DiscoveryCarouselCardAsset other) { - if (other == null) { - return; - } - if (other.MarketingImageAsset.Length != 0) { - MarketingImageAsset = other.MarketingImageAsset; - } - if (other.SquareMarketingImageAsset.Length != 0) { - SquareMarketingImageAsset = other.SquareMarketingImageAsset; - } - if (other.PortraitMarketingImageAsset.Length != 0) { - PortraitMarketingImageAsset = other.PortraitMarketingImageAsset; - } - if (other.Headline.Length != 0) { - Headline = other.Headline; - } - if (other.CallToActionText.Length != 0) { - CallToActionText = other.CallToActionText; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - MarketingImageAsset = input.ReadString(); - break; - } - case 18: { - SquareMarketingImageAsset = input.ReadString(); - break; - } - case 26: { - PortraitMarketingImageAsset = input.ReadString(); - break; - } - case 34: { - Headline = input.ReadString(); - break; - } - case 42: { - CallToActionText = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - MarketingImageAsset = input.ReadString(); - break; - } - case 18: { - SquareMarketingImageAsset = input.ReadString(); - break; - } - case 26: { - PortraitMarketingImageAsset = input.ReadString(); - break; - } - case 34: { - Headline = input.ReadString(); - break; - } - case 42: { - CallToActionText = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A dynamic travel asset. - /// - public sealed partial class DynamicTravelAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicTravelAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[29]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicTravelAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicTravelAsset(DynamicTravelAsset other) : this() { - destinationId_ = other.destinationId_; - originId_ = other.originId_; - title_ = other.title_; - destinationName_ = other.destinationName_; - destinationAddress_ = other.destinationAddress_; - originName_ = other.originName_; - price_ = other.price_; - salePrice_ = other.salePrice_; - formattedPrice_ = other.formattedPrice_; - formattedSalePrice_ = other.formattedSalePrice_; - category_ = other.category_; - contextualKeywords_ = other.contextualKeywords_.Clone(); - similarDestinationIds_ = other.similarDestinationIds_.Clone(); - imageUrl_ = other.imageUrl_; - androidAppLink_ = other.androidAppLink_; - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicTravelAsset Clone() { - return new DynamicTravelAsset(this); - } - - /// Field number for the "destination_id" field. - public const int DestinationIdFieldNumber = 1; - private string destinationId_ = ""; - /// - /// Required. Destination ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DestinationId { - get { return destinationId_; } - set { - destinationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "origin_id" field. - public const int OriginIdFieldNumber = 2; - private string originId_ = ""; - /// - /// Origin ID which can be any sequence of letters and digits. The ID sequence - /// (destination ID + origin ID) must be unique. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OriginId { - get { return originId_; } - set { - originId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "title" field. - public const int TitleFieldNumber = 3; - private string title_ = ""; - /// - /// Required. Title, for example, Book your train ticket. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Title { - get { return title_; } - set { - title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "destination_name" field. - public const int DestinationNameFieldNumber = 4; - private string destinationName_ = ""; - /// - /// Destination name, for example, Paris. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DestinationName { - get { return destinationName_; } - set { - destinationName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "destination_address" field. - public const int DestinationAddressFieldNumber = 5; - private string destinationAddress_ = ""; - /// - /// Destination address which can be specified in one of the following formats. - /// (1) City, state, code, country, for example, Mountain View, CA, USA. - /// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043. - /// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DestinationAddress { - get { return destinationAddress_; } - set { - destinationAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "origin_name" field. - public const int OriginNameFieldNumber = 6; - private string originName_ = ""; - /// - /// Origin name, for example, London. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OriginName { - get { return originName_; } - set { - originName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "price" field. - public const int PriceFieldNumber = 7; - private string price_ = ""; - /// - /// Price which can be a number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Price { - get { return price_; } - set { - price_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sale_price" field. - public const int SalePriceFieldNumber = 8; - private string salePrice_ = ""; - /// - /// Sale price which can be a number followed by the alphabetic currency - /// code, ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 - /// USD. Must be less than the 'price' field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SalePrice { - get { return salePrice_; } - set { - salePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_price" field. - public const int FormattedPriceFieldNumber = 9; - private string formattedPrice_ = ""; - /// - /// Formatted price which can be any characters. If set, this attribute will be - /// used instead of 'price', for example, Starting at $100.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedPrice { - get { return formattedPrice_; } - set { - formattedPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_sale_price" field. - public const int FormattedSalePriceFieldNumber = 10; - private string formattedSalePrice_ = ""; - /// - /// Formatted sale price which can be any characters. If set, this attribute - /// will be used instead of 'sale price', for example, On sale for $80.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedSalePrice { - get { return formattedSalePrice_; } - set { - formattedSalePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 11; - private string category_ = ""; - /// - /// Category, for example, Express. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Category { - get { return category_; } - set { - category_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "contextual_keywords" field. - public const int ContextualKeywordsFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_contextualKeywords_codec - = pb::FieldCodec.ForString(98); - private readonly pbc::RepeatedField contextualKeywords_ = new pbc::RepeatedField(); - /// - /// Contextual keywords, for example, Paris trains. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ContextualKeywords { - get { return contextualKeywords_; } - } - - /// Field number for the "similar_destination_ids" field. - public const int SimilarDestinationIdsFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_similarDestinationIds_codec - = pb::FieldCodec.ForString(106); - private readonly pbc::RepeatedField similarDestinationIds_ = new pbc::RepeatedField(); - /// - /// Similar destination IDs, for example, NYC. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarDestinationIds { - get { return similarDestinationIds_; } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 14; - private string imageUrl_ = ""; - /// - /// Image URL, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 15; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 16; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 17; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicTravelAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicTravelAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DestinationId != other.DestinationId) return false; - if (OriginId != other.OriginId) return false; - if (Title != other.Title) return false; - if (DestinationName != other.DestinationName) return false; - if (DestinationAddress != other.DestinationAddress) return false; - if (OriginName != other.OriginName) return false; - if (Price != other.Price) return false; - if (SalePrice != other.SalePrice) return false; - if (FormattedPrice != other.FormattedPrice) return false; - if (FormattedSalePrice != other.FormattedSalePrice) return false; - if (Category != other.Category) return false; - if(!contextualKeywords_.Equals(other.contextualKeywords_)) return false; - if(!similarDestinationIds_.Equals(other.similarDestinationIds_)) return false; - if (ImageUrl != other.ImageUrl) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DestinationId.Length != 0) hash ^= DestinationId.GetHashCode(); - if (OriginId.Length != 0) hash ^= OriginId.GetHashCode(); - if (Title.Length != 0) hash ^= Title.GetHashCode(); - if (DestinationName.Length != 0) hash ^= DestinationName.GetHashCode(); - if (DestinationAddress.Length != 0) hash ^= DestinationAddress.GetHashCode(); - if (OriginName.Length != 0) hash ^= OriginName.GetHashCode(); - if (Price.Length != 0) hash ^= Price.GetHashCode(); - if (SalePrice.Length != 0) hash ^= SalePrice.GetHashCode(); - if (FormattedPrice.Length != 0) hash ^= FormattedPrice.GetHashCode(); - if (FormattedSalePrice.Length != 0) hash ^= FormattedSalePrice.GetHashCode(); - if (Category.Length != 0) hash ^= Category.GetHashCode(); - hash ^= contextualKeywords_.GetHashCode(); - hash ^= similarDestinationIds_.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DestinationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DestinationId); - } - if (OriginId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(OriginId); - } - if (Title.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Title); - } - if (DestinationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DestinationName); - } - if (DestinationAddress.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DestinationAddress); - } - if (OriginName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OriginName); - } - if (Price.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(66); - output.WriteString(SalePrice); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FormattedSalePrice); - } - if (Category.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Category); - } - contextualKeywords_.WriteTo(output, _repeated_contextualKeywords_codec); - similarDestinationIds_.WriteTo(output, _repeated_similarDestinationIds_codec); - if (ImageUrl.Length != 0) { - output.WriteRawTag(114); - output.WriteString(ImageUrl); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(122); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(136, 1); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DestinationId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DestinationId); - } - if (OriginId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(OriginId); - } - if (Title.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Title); - } - if (DestinationName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DestinationName); - } - if (DestinationAddress.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DestinationAddress); - } - if (OriginName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OriginName); - } - if (Price.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(66); - output.WriteString(SalePrice); - } - if (FormattedPrice.Length != 0) { - output.WriteRawTag(74); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FormattedSalePrice); - } - if (Category.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Category); - } - contextualKeywords_.WriteTo(ref output, _repeated_contextualKeywords_codec); - similarDestinationIds_.WriteTo(ref output, _repeated_similarDestinationIds_codec); - if (ImageUrl.Length != 0) { - output.WriteRawTag(114); - output.WriteString(ImageUrl); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(122); - output.WriteString(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - output.WriteRawTag(130, 1); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(136, 1); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DestinationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationId); - } - if (OriginId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginId); - } - if (Title.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); - } - if (DestinationName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationName); - } - if (DestinationAddress.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationAddress); - } - if (OriginName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginName); - } - if (Price.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Price); - } - if (SalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SalePrice); - } - if (FormattedPrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedSalePrice); - } - if (Category.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Category); - } - size += contextualKeywords_.CalculateSize(_repeated_contextualKeywords_codec); - size += similarDestinationIds_.CalculateSize(_repeated_similarDestinationIds_codec); - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - if (IosAppLink.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicTravelAsset other) { - if (other == null) { - return; - } - if (other.DestinationId.Length != 0) { - DestinationId = other.DestinationId; - } - if (other.OriginId.Length != 0) { - OriginId = other.OriginId; - } - if (other.Title.Length != 0) { - Title = other.Title; - } - if (other.DestinationName.Length != 0) { - DestinationName = other.DestinationName; - } - if (other.DestinationAddress.Length != 0) { - DestinationAddress = other.DestinationAddress; - } - if (other.OriginName.Length != 0) { - OriginName = other.OriginName; - } - if (other.Price.Length != 0) { - Price = other.Price; - } - if (other.SalePrice.Length != 0) { - SalePrice = other.SalePrice; - } - if (other.FormattedPrice.Length != 0) { - FormattedPrice = other.FormattedPrice; - } - if (other.FormattedSalePrice.Length != 0) { - FormattedSalePrice = other.FormattedSalePrice; - } - if (other.Category.Length != 0) { - Category = other.Category; - } - contextualKeywords_.Add(other.contextualKeywords_); - similarDestinationIds_.Add(other.similarDestinationIds_); - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DestinationId = input.ReadString(); - break; - } - case 18: { - OriginId = input.ReadString(); - break; - } - case 26: { - Title = input.ReadString(); - break; - } - case 34: { - DestinationName = input.ReadString(); - break; - } - case 42: { - DestinationAddress = input.ReadString(); - break; - } - case 50: { - OriginName = input.ReadString(); - break; - } - case 58: { - Price = input.ReadString(); - break; - } - case 66: { - SalePrice = input.ReadString(); - break; - } - case 74: { - FormattedPrice = input.ReadString(); - break; - } - case 82: { - FormattedSalePrice = input.ReadString(); - break; - } - case 90: { - Category = input.ReadString(); - break; - } - case 98: { - contextualKeywords_.AddEntriesFrom(input, _repeated_contextualKeywords_codec); - break; - } - case 106: { - similarDestinationIds_.AddEntriesFrom(input, _repeated_similarDestinationIds_codec); - break; - } - case 114: { - ImageUrl = input.ReadString(); - break; - } - case 122: { - AndroidAppLink = input.ReadString(); - break; - } - case 130: { - IosAppLink = input.ReadString(); - break; - } - case 136: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DestinationId = input.ReadString(); - break; - } - case 18: { - OriginId = input.ReadString(); - break; - } - case 26: { - Title = input.ReadString(); - break; - } - case 34: { - DestinationName = input.ReadString(); - break; - } - case 42: { - DestinationAddress = input.ReadString(); - break; - } - case 50: { - OriginName = input.ReadString(); - break; - } - case 58: { - Price = input.ReadString(); - break; - } - case 66: { - SalePrice = input.ReadString(); - break; - } - case 74: { - FormattedPrice = input.ReadString(); - break; - } - case 82: { - FormattedSalePrice = input.ReadString(); - break; - } - case 90: { - Category = input.ReadString(); - break; - } - case 98: { - contextualKeywords_.AddEntriesFrom(ref input, _repeated_contextualKeywords_codec); - break; - } - case 106: { - similarDestinationIds_.AddEntriesFrom(ref input, _repeated_similarDestinationIds_codec); - break; - } - case 114: { - ImageUrl = input.ReadString(); - break; - } - case 122: { - AndroidAppLink = input.ReadString(); - break; - } - case 130: { - IosAppLink = input.ReadString(); - break; - } - case 136: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A dynamic local asset. - /// - public sealed partial class DynamicLocalAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicLocalAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[30]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLocalAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLocalAsset(DynamicLocalAsset other) : this() { - dealId_ = other.dealId_; - dealName_ = other.dealName_; - subtitle_ = other.subtitle_; - description_ = other.description_; - price_ = other.price_; - salePrice_ = other.salePrice_; - imageUrl_ = other.imageUrl_; - address_ = other.address_; - category_ = other.category_; - contextualKeywords_ = other.contextualKeywords_.Clone(); - formattedPrice_ = other.formattedPrice_; - formattedSalePrice_ = other.formattedSalePrice_; - androidAppLink_ = other.androidAppLink_; - similarDealIds_ = other.similarDealIds_.Clone(); - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLocalAsset Clone() { - return new DynamicLocalAsset(this); - } - - /// Field number for the "deal_id" field. - public const int DealIdFieldNumber = 1; - private string dealId_ = ""; - /// - /// Required. Deal ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DealId { - get { return dealId_; } - set { - dealId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "deal_name" field. - public const int DealNameFieldNumber = 2; - private string dealName_ = ""; - /// - /// Required. Deal name, for example, 50% off at Mountain View Grocers. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DealName { - get { return dealName_; } - set { - dealName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "subtitle" field. - public const int SubtitleFieldNumber = 3; - private string subtitle_ = ""; - /// - /// Subtitle, for example, Groceries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Subtitle { - get { return subtitle_; } - set { - subtitle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 4; - private string description_ = ""; - /// - /// Description, for example, Save on your weekly bill. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "price" field. - public const int PriceFieldNumber = 5; - private string price_ = ""; - /// - /// Price which can be a number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 100.00 USD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Price { - get { return price_; } - set { - price_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sale_price" field. - public const int SalePriceFieldNumber = 6; - private string salePrice_ = ""; - /// - /// Sale price which can be number followed by the alphabetic currency code, - /// ISO 4217 standard. Use '.' as the decimal mark, for example, 80.00 USD. - /// Must be less than the 'price' field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SalePrice { - get { return salePrice_; } - set { - salePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 7; - private string imageUrl_ = ""; - /// - /// Image URL, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "address" field. - public const int AddressFieldNumber = 8; - private string address_ = ""; - /// - /// Address which can be specified in one of the following formats. - /// (1) City, state, code, country, for example, Mountain View, CA, USA. - /// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043. - /// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Address { - get { return address_; } - set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 9; - private string category_ = ""; - /// - /// Category, for example, Food. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Category { - get { return category_; } - set { - category_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "contextual_keywords" field. - public const int ContextualKeywordsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_contextualKeywords_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField contextualKeywords_ = new pbc::RepeatedField(); - /// - /// Contextual keywords, for example, Save groceries coupons. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ContextualKeywords { - get { return contextualKeywords_; } - } - - /// Field number for the "formatted_price" field. - public const int FormattedPriceFieldNumber = 11; - private string formattedPrice_ = ""; - /// - /// Formatted price which can be any characters. If set, this attribute will be - /// used instead of 'price', for example, Starting at $100.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedPrice { - get { return formattedPrice_; } - set { - formattedPrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "formatted_sale_price" field. - public const int FormattedSalePriceFieldNumber = 12; - private string formattedSalePrice_ = ""; - /// - /// Formatted sale price which can be any characters. If set, this attribute - /// will be used instead of 'sale price', for example, On sale for $80.00. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FormattedSalePrice { - get { return formattedSalePrice_; } - set { - formattedSalePrice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 13; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "similar_deal_ids" field. - public const int SimilarDealIdsFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_similarDealIds_codec - = pb::FieldCodec.ForString(114); - private readonly pbc::RepeatedField similarDealIds_ = new pbc::RepeatedField(); - /// - /// Similar deal IDs, for example, 1275. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarDealIds { - get { return similarDealIds_; } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 15; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 16; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicLocalAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicLocalAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DealId != other.DealId) return false; - if (DealName != other.DealName) return false; - if (Subtitle != other.Subtitle) return false; - if (Description != other.Description) return false; - if (Price != other.Price) return false; - if (SalePrice != other.SalePrice) return false; - if (ImageUrl != other.ImageUrl) return false; - if (Address != other.Address) return false; - if (Category != other.Category) return false; - if(!contextualKeywords_.Equals(other.contextualKeywords_)) return false; - if (FormattedPrice != other.FormattedPrice) return false; - if (FormattedSalePrice != other.FormattedSalePrice) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if(!similarDealIds_.Equals(other.similarDealIds_)) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DealId.Length != 0) hash ^= DealId.GetHashCode(); - if (DealName.Length != 0) hash ^= DealName.GetHashCode(); - if (Subtitle.Length != 0) hash ^= Subtitle.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Price.Length != 0) hash ^= Price.GetHashCode(); - if (SalePrice.Length != 0) hash ^= SalePrice.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - if (Address.Length != 0) hash ^= Address.GetHashCode(); - if (Category.Length != 0) hash ^= Category.GetHashCode(); - hash ^= contextualKeywords_.GetHashCode(); - if (FormattedPrice.Length != 0) hash ^= FormattedPrice.GetHashCode(); - if (FormattedSalePrice.Length != 0) hash ^= FormattedSalePrice.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - hash ^= similarDealIds_.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DealId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DealId); - } - if (DealName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DealName); - } - if (Subtitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Subtitle); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (Price.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(50); - output.WriteString(SalePrice); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ImageUrl); - } - if (Address.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Address); - } - if (Category.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Category); - } - contextualKeywords_.WriteTo(output, _repeated_contextualKeywords_codec); - if (FormattedPrice.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(98); - output.WriteString(FormattedSalePrice); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(AndroidAppLink); - } - similarDealIds_.WriteTo(output, _repeated_similarDealIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(122); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(128, 1); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DealId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DealId); - } - if (DealName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DealName); - } - if (Subtitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Subtitle); - } - if (Description.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Description); - } - if (Price.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Price); - } - if (SalePrice.Length != 0) { - output.WriteRawTag(50); - output.WriteString(SalePrice); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(58); - output.WriteString(ImageUrl); - } - if (Address.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Address); - } - if (Category.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Category); - } - contextualKeywords_.WriteTo(ref output, _repeated_contextualKeywords_codec); - if (FormattedPrice.Length != 0) { - output.WriteRawTag(90); - output.WriteString(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - output.WriteRawTag(98); - output.WriteString(FormattedSalePrice); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(AndroidAppLink); - } - similarDealIds_.WriteTo(ref output, _repeated_similarDealIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(122); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(128, 1); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DealId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DealId); - } - if (DealName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DealName); - } - if (Subtitle.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Subtitle); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Price.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Price); - } - if (SalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SalePrice); - } - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); - } - if (Category.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Category); - } - size += contextualKeywords_.CalculateSize(_repeated_contextualKeywords_codec); - if (FormattedPrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedPrice); - } - if (FormattedSalePrice.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FormattedSalePrice); - } - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - size += similarDealIds_.CalculateSize(_repeated_similarDealIds_codec); - if (IosAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicLocalAsset other) { - if (other == null) { - return; - } - if (other.DealId.Length != 0) { - DealId = other.DealId; - } - if (other.DealName.Length != 0) { - DealName = other.DealName; - } - if (other.Subtitle.Length != 0) { - Subtitle = other.Subtitle; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Price.Length != 0) { - Price = other.Price; - } - if (other.SalePrice.Length != 0) { - SalePrice = other.SalePrice; - } - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - if (other.Address.Length != 0) { - Address = other.Address; - } - if (other.Category.Length != 0) { - Category = other.Category; - } - contextualKeywords_.Add(other.contextualKeywords_); - if (other.FormattedPrice.Length != 0) { - FormattedPrice = other.FormattedPrice; - } - if (other.FormattedSalePrice.Length != 0) { - FormattedSalePrice = other.FormattedSalePrice; - } - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - similarDealIds_.Add(other.similarDealIds_); - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DealId = input.ReadString(); - break; - } - case 18: { - DealName = input.ReadString(); - break; - } - case 26: { - Subtitle = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - case 42: { - Price = input.ReadString(); - break; - } - case 50: { - SalePrice = input.ReadString(); - break; - } - case 58: { - ImageUrl = input.ReadString(); - break; - } - case 66: { - Address = input.ReadString(); - break; - } - case 74: { - Category = input.ReadString(); - break; - } - case 82: { - contextualKeywords_.AddEntriesFrom(input, _repeated_contextualKeywords_codec); - break; - } - case 90: { - FormattedPrice = input.ReadString(); - break; - } - case 98: { - FormattedSalePrice = input.ReadString(); - break; - } - case 106: { - AndroidAppLink = input.ReadString(); - break; - } - case 114: { - similarDealIds_.AddEntriesFrom(input, _repeated_similarDealIds_codec); - break; - } - case 122: { - IosAppLink = input.ReadString(); - break; - } - case 128: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DealId = input.ReadString(); - break; - } - case 18: { - DealName = input.ReadString(); - break; - } - case 26: { - Subtitle = input.ReadString(); - break; - } - case 34: { - Description = input.ReadString(); - break; - } - case 42: { - Price = input.ReadString(); - break; - } - case 50: { - SalePrice = input.ReadString(); - break; - } - case 58: { - ImageUrl = input.ReadString(); - break; - } - case 66: { - Address = input.ReadString(); - break; - } - case 74: { - Category = input.ReadString(); - break; - } - case 82: { - contextualKeywords_.AddEntriesFrom(ref input, _repeated_contextualKeywords_codec); - break; - } - case 90: { - FormattedPrice = input.ReadString(); - break; - } - case 98: { - FormattedSalePrice = input.ReadString(); - break; - } - case 106: { - AndroidAppLink = input.ReadString(); - break; - } - case 114: { - similarDealIds_.AddEntriesFrom(ref input, _repeated_similarDealIds_codec); - break; - } - case 122: { - IosAppLink = input.ReadString(); - break; - } - case 128: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A dynamic jobs asset. - /// - public sealed partial class DynamicJobsAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicJobsAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[31]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicJobsAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicJobsAsset(DynamicJobsAsset other) : this() { - jobId_ = other.jobId_; - locationId_ = other.locationId_; - jobTitle_ = other.jobTitle_; - jobSubtitle_ = other.jobSubtitle_; - description_ = other.description_; - imageUrl_ = other.imageUrl_; - jobCategory_ = other.jobCategory_; - contextualKeywords_ = other.contextualKeywords_.Clone(); - address_ = other.address_; - salary_ = other.salary_; - androidAppLink_ = other.androidAppLink_; - similarJobIds_ = other.similarJobIds_.Clone(); - iosAppLink_ = other.iosAppLink_; - iosAppStoreId_ = other.iosAppStoreId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicJobsAsset Clone() { - return new DynamicJobsAsset(this); - } - - /// Field number for the "job_id" field. - public const int JobIdFieldNumber = 1; - private string jobId_ = ""; - /// - /// Required. Job ID which can be any sequence of letters and digits, and must be - /// unique and match the values of remarketing tag. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string JobId { - get { return jobId_; } - set { - jobId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "location_id" field. - public const int LocationIdFieldNumber = 2; - private string locationId_ = ""; - /// - /// Location ID which can be any sequence of letters and digits. The ID - /// sequence (job ID + location ID) must be unique. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LocationId { - get { return locationId_; } - set { - locationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "job_title" field. - public const int JobTitleFieldNumber = 3; - private string jobTitle_ = ""; - /// - /// Required. Job title, for example, Software engineer. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string JobTitle { - get { return jobTitle_; } - set { - jobTitle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "job_subtitle" field. - public const int JobSubtitleFieldNumber = 4; - private string jobSubtitle_ = ""; - /// - /// Job subtitle, for example, Level II. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string JobSubtitle { - get { return jobSubtitle_; } - set { - jobSubtitle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 5; - private string description_ = ""; - /// - /// Description, for example, Apply your technical skills. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "image_url" field. - public const int ImageUrlFieldNumber = 6; - private string imageUrl_ = ""; - /// - /// Image URL, for example, http://www.example.com/image.png. The image will - /// not be uploaded as image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageUrl { - get { return imageUrl_; } - set { - imageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "job_category" field. - public const int JobCategoryFieldNumber = 7; - private string jobCategory_ = ""; - /// - /// Job category, for example, Technical. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string JobCategory { - get { return jobCategory_; } - set { - jobCategory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "contextual_keywords" field. - public const int ContextualKeywordsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_contextualKeywords_codec - = pb::FieldCodec.ForString(66); - private readonly pbc::RepeatedField contextualKeywords_ = new pbc::RepeatedField(); - /// - /// Contextual keywords, for example, Software engineering job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ContextualKeywords { - get { return contextualKeywords_; } - } - - /// Field number for the "address" field. - public const int AddressFieldNumber = 9; - private string address_ = ""; - /// - /// Address which can be specified in one of the following formats. - /// (1) City, state, code, country, for example, Mountain View, CA, USA. - /// (2) Full address, for example, 123 Boulevard St, Mountain View, CA 94043. - /// (3) Latitude-longitude in the DDD format, for example, 41.40338, 2.17403. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Address { - get { return address_; } - set { - address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "salary" field. - public const int SalaryFieldNumber = 10; - private string salary_ = ""; - /// - /// Salary, for example, $100,000. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Salary { - get { return salary_; } - set { - salary_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_app_link" field. - public const int AndroidAppLinkFieldNumber = 11; - private string androidAppLink_ = ""; - /// - /// Android deep link, for example, - /// android-app://com.example.android/http/example.com/gizmos?1234. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AndroidAppLink { - get { return androidAppLink_; } - set { - androidAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "similar_job_ids" field. - public const int SimilarJobIdsFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_similarJobIds_codec - = pb::FieldCodec.ForString(98); - private readonly pbc::RepeatedField similarJobIds_ = new pbc::RepeatedField(); - /// - /// Similar job IDs, for example, 1275. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SimilarJobIds { - get { return similarJobIds_; } - } - - /// Field number for the "ios_app_link" field. - public const int IosAppLinkFieldNumber = 13; - private string iosAppLink_ = ""; - /// - /// iOS deep link, for example, exampleApp://content/page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IosAppLink { - get { return iosAppLink_; } - set { - iosAppLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ios_app_store_id" field. - public const int IosAppStoreIdFieldNumber = 14; - private long iosAppStoreId_; - /// - /// iOS app store ID. This is used to check if the user has the app installed - /// on their device before deep linking. If this field is set, then the - /// ios_app_link field must also be present. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IosAppStoreId { - get { return iosAppStoreId_; } - set { - iosAppStoreId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicJobsAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicJobsAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (JobId != other.JobId) return false; - if (LocationId != other.LocationId) return false; - if (JobTitle != other.JobTitle) return false; - if (JobSubtitle != other.JobSubtitle) return false; - if (Description != other.Description) return false; - if (ImageUrl != other.ImageUrl) return false; - if (JobCategory != other.JobCategory) return false; - if(!contextualKeywords_.Equals(other.contextualKeywords_)) return false; - if (Address != other.Address) return false; - if (Salary != other.Salary) return false; - if (AndroidAppLink != other.AndroidAppLink) return false; - if(!similarJobIds_.Equals(other.similarJobIds_)) return false; - if (IosAppLink != other.IosAppLink) return false; - if (IosAppStoreId != other.IosAppStoreId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (JobId.Length != 0) hash ^= JobId.GetHashCode(); - if (LocationId.Length != 0) hash ^= LocationId.GetHashCode(); - if (JobTitle.Length != 0) hash ^= JobTitle.GetHashCode(); - if (JobSubtitle.Length != 0) hash ^= JobSubtitle.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (ImageUrl.Length != 0) hash ^= ImageUrl.GetHashCode(); - if (JobCategory.Length != 0) hash ^= JobCategory.GetHashCode(); - hash ^= contextualKeywords_.GetHashCode(); - if (Address.Length != 0) hash ^= Address.GetHashCode(); - if (Salary.Length != 0) hash ^= Salary.GetHashCode(); - if (AndroidAppLink.Length != 0) hash ^= AndroidAppLink.GetHashCode(); - hash ^= similarJobIds_.GetHashCode(); - if (IosAppLink.Length != 0) hash ^= IosAppLink.GetHashCode(); - if (IosAppStoreId != 0L) hash ^= IosAppStoreId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (JobId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(JobId); - } - if (LocationId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LocationId); - } - if (JobTitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(JobTitle); - } - if (JobSubtitle.Length != 0) { - output.WriteRawTag(34); - output.WriteString(JobSubtitle); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ImageUrl); - } - if (JobCategory.Length != 0) { - output.WriteRawTag(58); - output.WriteString(JobCategory); - } - contextualKeywords_.WriteTo(output, _repeated_contextualKeywords_codec); - if (Address.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Address); - } - if (Salary.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Salary); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(AndroidAppLink); - } - similarJobIds_.WriteTo(output, _repeated_similarJobIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(112); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (JobId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(JobId); - } - if (LocationId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(LocationId); - } - if (JobTitle.Length != 0) { - output.WriteRawTag(26); - output.WriteString(JobTitle); - } - if (JobSubtitle.Length != 0) { - output.WriteRawTag(34); - output.WriteString(JobSubtitle); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (ImageUrl.Length != 0) { - output.WriteRawTag(50); - output.WriteString(ImageUrl); - } - if (JobCategory.Length != 0) { - output.WriteRawTag(58); - output.WriteString(JobCategory); - } - contextualKeywords_.WriteTo(ref output, _repeated_contextualKeywords_codec); - if (Address.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Address); - } - if (Salary.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Salary); - } - if (AndroidAppLink.Length != 0) { - output.WriteRawTag(90); - output.WriteString(AndroidAppLink); - } - similarJobIds_.WriteTo(ref output, _repeated_similarJobIds_codec); - if (IosAppLink.Length != 0) { - output.WriteRawTag(106); - output.WriteString(IosAppLink); - } - if (IosAppStoreId != 0L) { - output.WriteRawTag(112); - output.WriteInt64(IosAppStoreId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (JobId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(JobId); - } - if (LocationId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LocationId); - } - if (JobTitle.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(JobTitle); - } - if (JobSubtitle.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(JobSubtitle); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (ImageUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageUrl); - } - if (JobCategory.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(JobCategory); - } - size += contextualKeywords_.CalculateSize(_repeated_contextualKeywords_codec); - if (Address.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); - } - if (Salary.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Salary); - } - if (AndroidAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidAppLink); - } - size += similarJobIds_.CalculateSize(_repeated_similarJobIds_codec); - if (IosAppLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IosAppLink); - } - if (IosAppStoreId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IosAppStoreId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicJobsAsset other) { - if (other == null) { - return; - } - if (other.JobId.Length != 0) { - JobId = other.JobId; - } - if (other.LocationId.Length != 0) { - LocationId = other.LocationId; - } - if (other.JobTitle.Length != 0) { - JobTitle = other.JobTitle; - } - if (other.JobSubtitle.Length != 0) { - JobSubtitle = other.JobSubtitle; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.ImageUrl.Length != 0) { - ImageUrl = other.ImageUrl; - } - if (other.JobCategory.Length != 0) { - JobCategory = other.JobCategory; - } - contextualKeywords_.Add(other.contextualKeywords_); - if (other.Address.Length != 0) { - Address = other.Address; - } - if (other.Salary.Length != 0) { - Salary = other.Salary; - } - if (other.AndroidAppLink.Length != 0) { - AndroidAppLink = other.AndroidAppLink; - } - similarJobIds_.Add(other.similarJobIds_); - if (other.IosAppLink.Length != 0) { - IosAppLink = other.IosAppLink; - } - if (other.IosAppStoreId != 0L) { - IosAppStoreId = other.IosAppStoreId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - JobId = input.ReadString(); - break; - } - case 18: { - LocationId = input.ReadString(); - break; - } - case 26: { - JobTitle = input.ReadString(); - break; - } - case 34: { - JobSubtitle = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - ImageUrl = input.ReadString(); - break; - } - case 58: { - JobCategory = input.ReadString(); - break; - } - case 66: { - contextualKeywords_.AddEntriesFrom(input, _repeated_contextualKeywords_codec); - break; - } - case 74: { - Address = input.ReadString(); - break; - } - case 82: { - Salary = input.ReadString(); - break; - } - case 90: { - AndroidAppLink = input.ReadString(); - break; - } - case 98: { - similarJobIds_.AddEntriesFrom(input, _repeated_similarJobIds_codec); - break; - } - case 106: { - IosAppLink = input.ReadString(); - break; - } - case 112: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - JobId = input.ReadString(); - break; - } - case 18: { - LocationId = input.ReadString(); - break; - } - case 26: { - JobTitle = input.ReadString(); - break; - } - case 34: { - JobSubtitle = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - ImageUrl = input.ReadString(); - break; - } - case 58: { - JobCategory = input.ReadString(); - break; - } - case 66: { - contextualKeywords_.AddEntriesFrom(ref input, _repeated_contextualKeywords_codec); - break; - } - case 74: { - Address = input.ReadString(); - break; - } - case 82: { - Salary = input.ReadString(); - break; - } - case 90: { - AndroidAppLink = input.ReadString(); - break; - } - case 98: { - similarJobIds_.AddEntriesFrom(ref input, _repeated_similarJobIds_codec); - break; - } - case 106: { - IosAppLink = input.ReadString(); - break; - } - case 112: { - IosAppStoreId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A location asset. - /// - public sealed partial class LocationAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[32]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationAsset(LocationAsset other) : this() { - placeId_ = other.placeId_; - businessProfileLocations_ = other.businessProfileLocations_.Clone(); - locationOwnershipType_ = other.locationOwnershipType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationAsset Clone() { - return new LocationAsset(this); - } - - /// Field number for the "place_id" field. - public const int PlaceIdFieldNumber = 1; - private string placeId_ = ""; - /// - /// Place IDs uniquely identify a place in the Google Places database and on - /// Google Maps. - /// This field is unique for a given customer ID and asset type. See - /// https://developers.google.com/places/web-service/place-id to learn more - /// about Place ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PlaceId { - get { return placeId_; } - set { - placeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "business_profile_locations" field. - public const int BusinessProfileLocationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_businessProfileLocations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.BusinessProfileLocation.Parser); - private readonly pbc::RepeatedField businessProfileLocations_ = new pbc::RepeatedField(); - /// - /// The list of business locations for the customer. - /// This will only be returned if the Location Asset is syncing from the - /// Business Profile account. It is possible to have multiple Business Profile - /// listings under the same account that point to the same Place ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField BusinessProfileLocations { - get { return businessProfileLocations_; } - } - - /// Field number for the "location_ownership_type" field. - public const int LocationOwnershipTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType locationOwnershipType_ = global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified; - /// - /// The type of location ownership. - /// If the type is BUSINESS_OWNER, it will be served as a location extension. - /// If the type is AFFILIATE, it will be served as an affiliate location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType LocationOwnershipType { - get { return locationOwnershipType_; } - set { - locationOwnershipType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlaceId != other.PlaceId) return false; - if(!businessProfileLocations_.Equals(other.businessProfileLocations_)) return false; - if (LocationOwnershipType != other.LocationOwnershipType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PlaceId.Length != 0) hash ^= PlaceId.GetHashCode(); - hash ^= businessProfileLocations_.GetHashCode(); - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) hash ^= LocationOwnershipType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PlaceId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PlaceId); - } - businessProfileLocations_.WriteTo(output, _repeated_businessProfileLocations_codec); - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LocationOwnershipType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PlaceId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PlaceId); - } - businessProfileLocations_.WriteTo(ref output, _repeated_businessProfileLocations_codec); - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LocationOwnershipType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PlaceId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PlaceId); - } - size += businessProfileLocations_.CalculateSize(_repeated_businessProfileLocations_codec); - if (LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationOwnershipType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationAsset other) { - if (other == null) { - return; - } - if (other.PlaceId.Length != 0) { - PlaceId = other.PlaceId; - } - businessProfileLocations_.Add(other.businessProfileLocations_); - if (other.LocationOwnershipType != global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType.Unspecified) { - LocationOwnershipType = other.LocationOwnershipType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PlaceId = input.ReadString(); - break; - } - case 18: { - businessProfileLocations_.AddEntriesFrom(input, _repeated_businessProfileLocations_codec); - break; - } - case 24: { - LocationOwnershipType = (global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PlaceId = input.ReadString(); - break; - } - case 18: { - businessProfileLocations_.AddEntriesFrom(ref input, _repeated_businessProfileLocations_codec); - break; - } - case 24: { - LocationOwnershipType = (global::Google.Ads.GoogleAds.V12.Enums.LocationOwnershipTypeEnum.Types.LocationOwnershipType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Business Profile location data synced from the linked Business Profile - /// account. - /// - public sealed partial class BusinessProfileLocation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BusinessProfileLocation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetTypesReflection.Descriptor.MessageTypes[33]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocation(BusinessProfileLocation other) : this() { - labels_ = other.labels_.Clone(); - storeCode_ = other.storeCode_; - listingId_ = other.listingId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessProfileLocation Clone() { - return new BusinessProfileLocation(this); - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); - /// - /// Advertiser specified label for the location on the Business Profile - /// account. This is synced from the Business Profile account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } - } - - /// Field number for the "store_code" field. - public const int StoreCodeFieldNumber = 2; - private string storeCode_ = ""; - /// - /// Business Profile store code of this location. This is synced from the - /// Business Profile account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StoreCode { - get { return storeCode_; } - set { - storeCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "listing_id" field. - public const int ListingIdFieldNumber = 3; - private long listingId_; - /// - /// Listing ID of this Business Profile location. This is synced from the - /// linked Business Profile account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ListingId { - get { return listingId_; } - set { - listingId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BusinessProfileLocation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BusinessProfileLocation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!labels_.Equals(other.labels_)) return false; - if (StoreCode != other.StoreCode) return false; - if (ListingId != other.ListingId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= labels_.GetHashCode(); - if (StoreCode.Length != 0) hash ^= StoreCode.GetHashCode(); - if (ListingId != 0L) hash ^= ListingId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - labels_.WriteTo(output, _repeated_labels_codec); - if (StoreCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(StoreCode); - } - if (ListingId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(ListingId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - labels_.WriteTo(ref output, _repeated_labels_codec); - if (StoreCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(StoreCode); - } - if (ListingId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(ListingId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += labels_.CalculateSize(_repeated_labels_codec); - if (StoreCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StoreCode); - } - if (ListingId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ListingId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BusinessProfileLocation other) { - if (other == null) { - return; - } - labels_.Add(other.labels_); - if (other.StoreCode.Length != 0) { - StoreCode = other.StoreCode; - } - if (other.ListingId != 0L) { - ListingId = other.ListingId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); - break; - } - case 18: { - StoreCode = input.ReadString(); - break; - } - case 24: { - ListingId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); - break; - } - case 18: { - StoreCode = input.ReadString(); - break; - } - case 24: { - ListingId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AssetTypesResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AssetTypesResourceNames.g.cs deleted file mode 100755 index 29c121492..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetTypesResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Common -{ - public partial class CallAsset - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::ConversionActionName CallConversionActionAsConversionActionName - { - get => string.IsNullOrEmpty(CallConversionAction) ? null : gagvr::ConversionActionName.Parse(CallConversionAction, allowUnparsed: true); - set => CallConversionAction = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AssetUsage.g.cs b/Google.Ads.GoogleAds/src/V12/AssetUsage.g.cs deleted file mode 100755 index 2fecad46a..000000000 --- a/Google.Ads.GoogleAds/src/V12/AssetUsage.g.cs +++ /dev/null @@ -1,288 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/asset_usage.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/asset_usage.proto - public static partial class AssetUsageReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/asset_usage.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AssetUsageReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Fzc2V0X3VzYWdl", - "LnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uGjxnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvc2VydmVkX2Fzc2V0X2ZpZWxk", - "X3R5cGUucHJvdG8iiwEKCkFzc2V0VXNhZ2USDQoFYXNzZXQYASABKAkSbgoX", - "c2VydmVkX2Fzc2V0X2ZpZWxkX3R5cGUYAiABKA4yTS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuU2VydmVkQXNzZXRGaWVsZFR5cGVFbnVtLlNl", - "cnZlZEFzc2V0RmllbGRUeXBlQu8BCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmNvbW1vbkIPQXNzZXRVc2FnZVByb3RvUAFaRWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "Y29tbW9uO2NvbW1vbqICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5Db21tb27KAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcQ29tbW9u6gIj", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpDb21tb25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AssetUsage), global::Google.Ads.GoogleAds.V12.Common.AssetUsage.Parser, new[]{ "Asset", "ServedAssetFieldType" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Contains the usage information of the asset. - /// - public sealed partial class AssetUsage : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetUsage()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AssetUsageReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetUsage() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetUsage(AssetUsage other) : this() { - asset_ = other.asset_; - servedAssetFieldType_ = other.servedAssetFieldType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AssetUsage Clone() { - return new AssetUsage(this); - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 1; - private string asset_ = ""; - /// - /// Resource name of the asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "served_asset_field_type" field. - public const int ServedAssetFieldTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType servedAssetFieldType_ = global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified; - /// - /// The served field type of the asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType ServedAssetFieldType { - get { return servedAssetFieldType_; } - set { - servedAssetFieldType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AssetUsage); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AssetUsage other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Asset != other.Asset) return false; - if (ServedAssetFieldType != other.ServedAssetFieldType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Asset.Length != 0) hash ^= Asset.GetHashCode(); - if (ServedAssetFieldType != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) hash ^= ServedAssetFieldType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Asset.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Asset); - } - if (ServedAssetFieldType != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ServedAssetFieldType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Asset.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Asset); - } - if (ServedAssetFieldType != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ServedAssetFieldType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Asset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (ServedAssetFieldType != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServedAssetFieldType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AssetUsage other) { - if (other == null) { - return; - } - if (other.Asset.Length != 0) { - Asset = other.Asset; - } - if (other.ServedAssetFieldType != global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType.Unspecified) { - ServedAssetFieldType = other.ServedAssetFieldType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Asset = input.ReadString(); - break; - } - case 16: { - ServedAssetFieldType = (global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Asset = input.ReadString(); - break; - } - case 16: { - ServedAssetFieldType = (global::Google.Ads.GoogleAds.V12.Enums.ServedAssetFieldTypeEnum.Types.ServedAssetFieldType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AsyncActionStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AsyncActionStatus.g.cs deleted file mode 100755 index d859256d0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AsyncActionStatus.g.cs +++ /dev/null @@ -1,250 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/async_action_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/async_action_status.proto - public static partial class AsyncActionStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/async_action_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AsyncActionStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXN5bmNfYWN0aW9u", - "X3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "IqQBChVBc3luY0FjdGlvblN0YXR1c0VudW0iigEKEUFzeW5jQWN0aW9uU3Rh", - "dHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEg8KC05PVF9TVEFS", - "VEVEEAISDwoLSU5fUFJPR1JFU1MQAxINCglDT01QTEVURUQQBBIKCgZGQUlM", - "RUQQBRIaChZDT01QTEVURURfV0lUSF9XQVJOSU5HEAZC8AEKImNvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCFkFzeW5jQWN0aW9uU3RhdHVz", - "UHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the experiment async action status. - /// - public sealed partial class AsyncActionStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AsyncActionStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AsyncActionStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AsyncActionStatusEnum(AsyncActionStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AsyncActionStatusEnum Clone() { - return new AsyncActionStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AsyncActionStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AsyncActionStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AsyncActionStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AsyncActionStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The async action status of the experiment. - /// - public enum AsyncActionStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Action has not started. - /// - [pbr::OriginalName("NOT_STARTED")] NotStarted = 2, - /// - /// Action is in progress. - /// - [pbr::OriginalName("IN_PROGRESS")] InProgress = 3, - /// - /// Action has completed successfully. - /// - [pbr::OriginalName("COMPLETED")] Completed = 4, - /// - /// Action has failed. - /// - [pbr::OriginalName("FAILED")] Failed = 5, - /// - /// Action has completed successfully with warnings. - /// - [pbr::OriginalName("COMPLETED_WITH_WARNING")] CompletedWithWarning = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AttributionModel.g.cs b/Google.Ads.GoogleAds/src/V12/AttributionModel.g.cs deleted file mode 100755 index acf521f7f..000000000 --- a/Google.Ads.GoogleAds/src/V12/AttributionModel.g.cs +++ /dev/null @@ -1,270 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/attribution_model.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/attribution_model.proto - public static partial class AttributionModelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/attribution_model.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AttributionModelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXR0cmlidXRpb25f", - "bW9kZWwucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyLG", - "AgoUQXR0cmlidXRpb25Nb2RlbEVudW0irQIKEEF0dHJpYnV0aW9uTW9kZWwS", - "DwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESDAoIRVhURVJOQUwQZBIZ", - "ChVHT09HTEVfQURTX0xBU1RfQ0xJQ0sQZRIpCiVHT09HTEVfU0VBUkNIX0FU", - "VFJJQlVUSU9OX0ZJUlNUX0NMSUNLEGYSJAogR09PR0xFX1NFQVJDSF9BVFRS", - "SUJVVElPTl9MSU5FQVIQZxIoCiRHT09HTEVfU0VBUkNIX0FUVFJJQlVUSU9O", - "X1RJTUVfREVDQVkQaBIsCihHT09HTEVfU0VBUkNIX0FUVFJJQlVUSU9OX1BP", - "U0lUSU9OX0JBU0VEEGkSKQolR09PR0xFX1NFQVJDSF9BVFRSSUJVVElPTl9E", - "QVRBX0RSSVZFThBqQu8BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQhVBdHRyaWJ1dGlvbk1vZGVsUHJvdG9QAVpDZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5F", - "bnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum), global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum representing the attribution model that describes how to - /// distribute credit for a particular conversion across potentially many prior - /// interactions. - /// - public sealed partial class AttributionModelEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributionModelEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AttributionModelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributionModelEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributionModelEnum(AttributionModelEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributionModelEnum Clone() { - return new AttributionModelEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AttributionModelEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AttributionModelEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AttributionModelEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AttributionModelEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The attribution model that describes how to distribute credit for a - /// particular conversion across potentially many prior interactions. - /// - public enum AttributionModel { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Uses external attribution. - /// - [pbr::OriginalName("EXTERNAL")] External = 100, - /// - /// Attributes all credit for a conversion to its last click. - /// - [pbr::OriginalName("GOOGLE_ADS_LAST_CLICK")] GoogleAdsLastClick = 101, - /// - /// Attributes all credit for a conversion to its first click using Google - /// Search attribution. - /// - [pbr::OriginalName("GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK")] GoogleSearchAttributionFirstClick = 102, - /// - /// Attributes credit for a conversion equally across all of its clicks using - /// Google Search attribution. - /// - [pbr::OriginalName("GOOGLE_SEARCH_ATTRIBUTION_LINEAR")] GoogleSearchAttributionLinear = 103, - /// - /// Attributes exponentially more credit for a conversion to its more recent - /// clicks using Google Search attribution (half-life is 1 week). - /// - [pbr::OriginalName("GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY")] GoogleSearchAttributionTimeDecay = 104, - /// - /// Attributes 40% of the credit for a conversion to its first and last - /// clicks. Remaining 20% is evenly distributed across all other clicks. This - /// uses Google Search attribution. - /// - [pbr::OriginalName("GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED")] GoogleSearchAttributionPositionBased = 105, - /// - /// Flexible model that uses machine learning to determine the appropriate - /// distribution of credit among clicks using Google Search attribution. - /// - [pbr::OriginalName("GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN")] GoogleSearchAttributionDataDriven = 106, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Audience.g.cs b/Google.Ads.GoogleAds/src/V12/Audience.g.cs deleted file mode 100755 index c835650d5..000000000 --- a/Google.Ads.GoogleAds/src/V12/Audience.g.cs +++ /dev/null @@ -1,506 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/audience.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/audience.proto - public static partial class AudienceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/audience.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudienceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2F1ZGllbmNl", - "LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGi9n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2F1ZGllbmNlcy5wcm90", - "bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2F1ZGllbmNlX3N0", - "YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", - "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byLYAwoIQXVkaWVuY2USQAoNcmVz", - "b3VyY2VfbmFtZRgBIAEoCUIp4EEF+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQXVkaWVuY2USDwoCaWQYAiABKANCA+BBAxJWCgZzdGF0dXMYAyAB", - "KA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXVkaWVuY2VT", - "dGF0dXNFbnVtLkF1ZGllbmNlU3RhdHVzQgPgQQMSEQoEbmFtZRgEIAEoCUID", - "4EECEhMKC2Rlc2NyaXB0aW9uGAUgASgJEkYKCmRpbWVuc2lvbnMYBiADKAsy", - "Mi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkF1ZGllbmNlRGlt", - "ZW5zaW9uElgKE2V4Y2x1c2lvbl9kaW1lbnNpb24YByABKAsyOy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkF1ZGllbmNlRXhjbHVzaW9uRGlt", - "ZW5zaW9uOlfqQVQKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BdWRpZW5j", - "ZRIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYXVkaWVuY2VzL3thdWRpZW5j", - "ZV9pZH1C/wEKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzQg1BdWRpZW5jZVByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Audience), global::Google.Ads.GoogleAds.V12.Resources.Audience.Parser, new[]{ "ResourceName", "Id", "Status", "Name", "Description", "Dimensions", "ExclusionDimension" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Audience is an effective targeting option that lets you - /// intersect different segment attributes, such as detailed demographics and - /// affinities, to create audiences that represent sections of your target - /// segments. - /// - public sealed partial class Audience : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Audience()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.AudienceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Audience() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Audience(Audience other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - status_ = other.status_; - name_ = other.name_; - description_ = other.description_; - dimensions_ = other.dimensions_.Clone(); - exclusionDimension_ = other.exclusionDimension_ != null ? other.exclusionDimension_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Audience Clone() { - return new Audience(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the audience. - /// Audience names have the form: - /// - /// `customers/{customer_id}/audiences/{audience_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. ID of the audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus.Unspecified; - /// - /// Output only. Status of this audience. Indicates whether the audience - /// is enabled or removed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Required. Name of the audience. It should be unique across all - /// audiences. It must have a minimum length of 1 and - /// maximum length of 255. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 5; - private string description_ = ""; - /// - /// Description of this audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dimensions" field. - public const int DimensionsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_dimensions_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.AudienceDimension.Parser); - private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); - /// - /// Positive dimensions specifying the audience composition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Dimensions { - get { return dimensions_; } - } - - /// Field number for the "exclusion_dimension" field. - public const int ExclusionDimensionFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Common.AudienceExclusionDimension exclusionDimension_; - /// - /// Negative dimension specifying the audience composition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AudienceExclusionDimension ExclusionDimension { - get { return exclusionDimension_; } - set { - exclusionDimension_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Audience); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Audience other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Status != other.Status) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if(!dimensions_.Equals(other.dimensions_)) return false; - if (!object.Equals(ExclusionDimension, other.ExclusionDimension)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - hash ^= dimensions_.GetHashCode(); - if (exclusionDimension_ != null) hash ^= ExclusionDimension.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - dimensions_.WriteTo(output, _repeated_dimensions_codec); - if (exclusionDimension_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ExclusionDimension); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - dimensions_.WriteTo(ref output, _repeated_dimensions_codec); - if (exclusionDimension_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ExclusionDimension); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - size += dimensions_.CalculateSize(_repeated_dimensions_codec); - if (exclusionDimension_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExclusionDimension); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Audience other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus.Unspecified) { - Status = other.Status; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - dimensions_.Add(other.dimensions_); - if (other.exclusionDimension_ != null) { - if (exclusionDimension_ == null) { - ExclusionDimension = new global::Google.Ads.GoogleAds.V12.Common.AudienceExclusionDimension(); - } - ExclusionDimension.MergeFrom(other.ExclusionDimension); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus) input.ReadEnum(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); - break; - } - case 58: { - if (exclusionDimension_ == null) { - ExclusionDimension = new global::Google.Ads.GoogleAds.V12.Common.AudienceExclusionDimension(); - } - input.ReadMessage(ExclusionDimension); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus) input.ReadEnum(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - case 50: { - dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); - break; - } - case 58: { - if (exclusionDimension_ == null) { - ExclusionDimension = new global::Google.Ads.GoogleAds.V12.Common.AudienceExclusionDimension(); - } - input.ReadMessage(ExclusionDimension); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AudienceError.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceError.g.cs deleted file mode 100755 index 304bfba29..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceError.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/audience_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/audience_error.proto - public static partial class AudienceErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/audience_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudienceErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2F1ZGllbmNlX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIqUC", - "ChFBdWRpZW5jZUVycm9yRW51bSKPAgoNQXVkaWVuY2VFcnJvchIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARIXChNOQU1FX0FMUkVBRFlfSU5fVVNF", - "EAISFQoRRElNRU5TSU9OX0lOVkFMSUQQAxIeChpBVURJRU5DRV9TRUdNRU5U", - "X05PVF9GT1VORBAEEicKI0FVRElFTkNFX1NFR01FTlRfVFlQRV9OT1RfU1VQ", - "UE9SVEVEEAUSHgoaRFVQTElDQVRFX0FVRElFTkNFX1NFR01FTlQQBhIVChFU", - "T09fTUFOWV9TRUdNRU5UUxAHEiQKIFRPT19NQU5ZX0RJTUVOU0lPTlNfT0Zf", - "U0FNRV9UWVBFEAgSCgoGSU5fVVNFEAlC8gEKI2NvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZXJyb3JzQhJBdWRpZW5jZUVycm9yUHJvdG9QAVpFZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "cnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorEnum.Types.AudienceError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible audience errors. - /// - public sealed partial class AudienceErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceErrorEnum(AudienceErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceErrorEnum Clone() { - return new AudienceErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AudienceErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible audience errors. - /// - public enum AudienceError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An audience with this name already exists. - /// - [pbr::OriginalName("NAME_ALREADY_IN_USE")] NameAlreadyInUse = 2, - /// - /// A dimension within the audience definition is not valid. - /// - [pbr::OriginalName("DIMENSION_INVALID")] DimensionInvalid = 3, - /// - /// One of the audience segment added is not found. - /// - [pbr::OriginalName("AUDIENCE_SEGMENT_NOT_FOUND")] AudienceSegmentNotFound = 4, - /// - /// One of the audience segment type is not supported. - /// - [pbr::OriginalName("AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED")] AudienceSegmentTypeNotSupported = 5, - /// - /// The same segment already exists in this audience. - /// - [pbr::OriginalName("DUPLICATE_AUDIENCE_SEGMENT")] DuplicateAudienceSegment = 6, - /// - /// Audience can't have more than allowed number segments. - /// - [pbr::OriginalName("TOO_MANY_SEGMENTS")] TooManySegments = 7, - /// - /// Audience can't have multiple dimensions of same type. - /// - [pbr::OriginalName("TOO_MANY_DIMENSIONS_OF_SAME_TYPE")] TooManyDimensionsOfSameType = 8, - /// - /// The audience cannot be removed, because it is currently used in an - /// ad group criterion or asset group signal in an (enabled or paused) - /// ad group or campaign. - /// - [pbr::OriginalName("IN_USE")] InUse = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AudienceInsightsDimension.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceInsightsDimension.g.cs deleted file mode 100755 index 2f60cc3e6..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceInsightsDimension.g.cs +++ /dev/null @@ -1,282 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/audience_insights_dimension.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/audience_insights_dimension.proto - public static partial class AudienceInsightsDimensionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/audience_insights_dimension.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudienceInsightsDimensionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXVkaWVuY2VfaW5z", - "aWdodHNfZGltZW5zaW9uLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMi3AIKHUF1ZGllbmNlSW5zaWdodHNEaW1lbnNpb25FbnVtIroC", - "ChlBdWRpZW5jZUluc2lnaHRzRGltZW5zaW9uEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEgwKCENBVEVHT1JZEAISEwoPS05PV0xFREdFX0dSQVBI", - "EAMSFgoSR0VPX1RBUkdFVF9DT1VOVFJZEAQSGAoUU1VCX0NPVU5UUllfTE9D", - "QVRJT04QBRITCg9ZT1VUVUJFX0NIQU5ORUwQBhIaChZZT1VUVUJFX0RZTkFN", - "SUNfTElORVVQEAcSGgoWQUZGSU5JVFlfVVNFUl9JTlRFUkVTVBAIEhsKF0lO", - "X01BUktFVF9VU0VSX0lOVEVSRVNUEAkSEwoPUEFSRU5UQUxfU1RBVFVTEAoS", - "EAoMSU5DT01FX1JBTkdFEAsSDQoJQUdFX1JBTkdFEAwSCgoGR0VOREVSEA1C", - "+AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCHkF1ZGll", - "bmNlSW5zaWdodHNEaW1lbnNpb25Qcm90b1ABWkNnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "O2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1z", - "ygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum), global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing audience insights dimensions. - /// - public sealed partial class AudienceInsightsDimensionEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsDimensionEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsDimensionEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsDimensionEnum(AudienceInsightsDimensionEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsDimensionEnum Clone() { - return new AudienceInsightsDimensionEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsDimensionEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsDimensionEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsDimensionEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AudienceInsightsDimensionEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible audience dimensions for use in generating insights. - /// - public enum AudienceInsightsDimension { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A Product & Service category. - /// - [pbr::OriginalName("CATEGORY")] Category = 2, - /// - /// A Knowledge Graph entity. - /// - [pbr::OriginalName("KNOWLEDGE_GRAPH")] KnowledgeGraph = 3, - /// - /// A country, represented by a geo target. - /// - [pbr::OriginalName("GEO_TARGET_COUNTRY")] GeoTargetCountry = 4, - /// - /// A geographic location within a country. - /// - [pbr::OriginalName("SUB_COUNTRY_LOCATION")] SubCountryLocation = 5, - /// - /// A YouTube channel. - /// - [pbr::OriginalName("YOUTUBE_CHANNEL")] YoutubeChannel = 6, - /// - /// A YouTube Dynamic Lineup. - /// - [pbr::OriginalName("YOUTUBE_DYNAMIC_LINEUP")] YoutubeDynamicLineup = 7, - /// - /// An Affinity UserInterest. - /// - [pbr::OriginalName("AFFINITY_USER_INTEREST")] AffinityUserInterest = 8, - /// - /// An In-Market UserInterest. - /// - [pbr::OriginalName("IN_MARKET_USER_INTEREST")] InMarketUserInterest = 9, - /// - /// A Parental Status value (parent, or not a parent). - /// - [pbr::OriginalName("PARENTAL_STATUS")] ParentalStatus = 10, - /// - /// A household income percentile range. - /// - [pbr::OriginalName("INCOME_RANGE")] IncomeRange = 11, - /// - /// An age range. - /// - [pbr::OriginalName("AGE_RANGE")] AgeRange = 12, - /// - /// A gender. - /// - [pbr::OriginalName("GENDER")] Gender = 13, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AudienceInsightsError.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceInsightsError.g.cs deleted file mode 100755 index 898be20af..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceInsightsError.g.cs +++ /dev/null @@ -1,235 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/audience_insights_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/audience_insights_error.proto - public static partial class AudienceInsightsErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/audience_insights_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudienceInsightsErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2F1ZGllbmNlX2lu", - "c2lnaHRzX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzIo8BChlBdWRpZW5jZUluc2lnaHRzRXJyb3JFbnVtInIKFUF1ZGll", - "bmNlSW5zaWdodHNFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q", - "ARI7CjdESU1FTlNJT05fSU5DT01QQVRJQkxFX1dJVEhfVE9QSUNfQVVESUVO", - "Q0VfQ09NQklOQVRJT05TEAJC+gEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzQhpBdWRpZW5jZUluc2lnaHRzRXJyb3JQcm90b1ABWkVn", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3Jz", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorEnum.Types.AudienceInsightsError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible errors returned from - /// the AudienceInsightsService. - /// - public sealed partial class AudienceInsightsErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsErrorEnum(AudienceInsightsErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsErrorEnum Clone() { - return new AudienceInsightsErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AudienceInsightsErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible errors from AudienceInsightsService. - /// - public enum AudienceInsightsError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The dimensions cannot be used with topic audience combinations. - /// - [pbr::OriginalName("DIMENSION_INCOMPATIBLE_WITH_TOPIC_AUDIENCE_COMBINATIONS")] DimensionIncompatibleWithTopicAudienceCombinations = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AudienceInsightsService.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceInsightsService.g.cs deleted file mode 100755 index f81ae1185..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceInsightsService.g.cs +++ /dev/null @@ -1,7216 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/audience_insights_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/audience_insights_service.proto - public static partial class AudienceInsightsServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/audience_insights_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudienceInsightsServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXVkaWVuY2Vf", - "aW5zaWdodHNfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzGi5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9u", - "L2NyaXRlcmlhLnByb3RvGkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvYXVkaWVuY2VfaW5zaWdodHNfZGltZW5zaW9uLnByb3RvGhxnb29nbGUv", - "YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90byKUAgojR2VuZXJh", - "dGVJbnNpZ2h0c0ZpbmRlclJlcG9ydFJlcXVlc3QSGAoLY3VzdG9tZXJfaWQY", - "ASABKAlCA+BBAhJYChFiYXNlbGluZV9hdWRpZW5jZRgCIAEoCzI4Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5CYXNpY0luc2lnaHRzQXVk", - "aWVuY2VCA+BBAhJYChFzcGVjaWZpY19hdWRpZW5jZRgDIAEoCzI4Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5CYXNpY0luc2lnaHRzQXVk", - "aWVuY2VCA+BBAhIfChdjdXN0b21lcl9pbnNpZ2h0c19ncm91cBgEIAEoCSJA", - "CiRHZW5lcmF0ZUluc2lnaHRzRmluZGVyUmVwb3J0UmVzcG9uc2USGAoQc2F2", - "ZWRfcmVwb3J0X3VybBgBIAEoCSK5AgoqR2VuZXJhdGVBdWRpZW5jZUNvbXBv", - "c2l0aW9uSW5zaWdodHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPg", - "QQISSgoIYXVkaWVuY2UYAiABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuSW5zaWdodHNBdWRpZW5jZUID4EECEhIKCmRhdGFfbW9u", - "dGgYAyABKAkScAoKZGltZW5zaW9ucxgEIAMoDjJXLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtcy5BdWRpZW5jZUluc2lnaHRzRGltZW5zaW9uRW51", - "bS5BdWRpZW5jZUluc2lnaHRzRGltZW5zaW9uQgPgQQISHwoXY3VzdG9tZXJf", - "aW5zaWdodHNfZ3JvdXAYBSABKAkifgorR2VuZXJhdGVBdWRpZW5jZUNvbXBv", - "c2l0aW9uSW5zaWdodHNSZXNwb25zZRJPCghzZWN0aW9ucxgBIAMoCzI9Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BdWRpZW5jZUNvbXBv", - "c2l0aW9uU2VjdGlvbiK+AgolTGlzdEF1ZGllbmNlSW5zaWdodHNBdHRyaWJ1", - "dGVzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECEnAKCmRpbWVu", - "c2lvbnMYAiADKA4yVy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "QXVkaWVuY2VJbnNpZ2h0c0RpbWVuc2lvbkVudW0uQXVkaWVuY2VJbnNpZ2h0", - "c0RpbWVuc2lvbkID4EECEhcKCnF1ZXJ5X3RleHQYAyABKAlCA+BBAhIfChdj", - "dXN0b21lcl9pbnNpZ2h0c19ncm91cBgEIAEoCRJPChhsb2NhdGlvbl9jb3Vu", - "dHJ5X2ZpbHRlcnMYBSADKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "Y29tbW9uLkxvY2F0aW9uSW5mbyKCAQomTGlzdEF1ZGllbmNlSW5zaWdodHNB", - "dHRyaWJ1dGVzUmVzcG9uc2USWAoKYXR0cmlidXRlcxgBIAMoCzJELmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BdWRpZW5jZUluc2lnaHRz", - "QXR0cmlidXRlTWV0YWRhdGEiIgogTGlzdEluc2lnaHRzRWxpZ2libGVEYXRl", - "c1JlcXVlc3QiOAohTGlzdEluc2lnaHRzRWxpZ2libGVEYXRlc1Jlc3BvbnNl", - "EhMKC2RhdGFfbW9udGhzGAEgAygJIp4GChlBdWRpZW5jZUluc2lnaHRzQXR0", - "cmlidXRlEkIKCWFnZV9yYW5nZRgBIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24uQWdlUmFuZ2VJbmZvSAASPQoGZ2VuZGVyGAIgASgL", - "MisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5HZW5kZXJJbmZv", - "SAASQQoIbG9jYXRpb24YAyABKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLkxvY2F0aW9uSW5mb0gAEkoKDXVzZXJfaW50ZXJlc3QYBCAB", - "KAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlVzZXJJbnRl", - "cmVzdEluZm9IABJLCgZlbnRpdHkYBSABKAsyOS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuQXVkaWVuY2VJbnNpZ2h0c0VudGl0eUgAEk8K", - "CGNhdGVnb3J5GAYgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkF1ZGllbmNlSW5zaWdodHNDYXRlZ29yeUgAEloKDmR5bmFtaWNf", - "bGluZXVwGAcgASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLkF1ZGllbmNlSW5zaWdodHNEeW5hbWljTGluZXVwSAASTgoPcGFyZW50", - "YWxfc3RhdHVzGAggASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5QYXJlbnRhbFN0YXR1c0luZm9IABJICgxpbmNvbWVfcmFuZ2UYCSAB", - "KAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkluY29tZVJh", - "bmdlSW5mb0gAEk4KD3lvdXR1YmVfY2hhbm5lbBgKIAEoCzIzLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uWW91VHViZUNoYW5uZWxJbmZvSABC", - "CwoJYXR0cmlidXRlIr4BChVBdWRpZW5jZUluc2lnaHRzVG9waWMSSwoGZW50", - "aXR5GAEgASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "LkF1ZGllbmNlSW5zaWdodHNFbnRpdHlIABJPCghjYXRlZ29yeRgCIAEoCzI7", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BdWRpZW5jZUlu", - "c2lnaHRzQ2F0ZWdvcnlIAEIHCgV0b3BpYyJBChZBdWRpZW5jZUluc2lnaHRz", - "RW50aXR5EicKGmtub3dsZWRnZV9ncmFwaF9tYWNoaW5lX2lkGAEgASgJQgPg", - "QQIiNAoYQXVkaWVuY2VJbnNpZ2h0c0NhdGVnb3J5EhgKC2NhdGVnb3J5X2lk", - "GAEgASgJQgPgQQIiPwodQXVkaWVuY2VJbnNpZ2h0c0R5bmFtaWNMaW5ldXAS", - "HgoRZHluYW1pY19saW5ldXBfaWQYASABKAlCA+BBAiLIAwoVQmFzaWNJbnNp", - "Z2h0c0F1ZGllbmNlEkwKEGNvdW50cnlfbG9jYXRpb24YASADKAsyLS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkxvY2F0aW9uSW5mb0ID4EEC", - "EkwKFXN1Yl9jb3VudHJ5X2xvY2F0aW9ucxgCIAMoCzItLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5jb21tb24uTG9jYXRpb25JbmZvEjsKBmdlbmRlchgD", - "IAEoCzIrLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uR2VuZGVy", - "SW5mbxJBCgphZ2VfcmFuZ2VzGAQgAygLMi0uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmNvbW1vbi5BZ2VSYW5nZUluZm8SSQoOdXNlcl9pbnRlcmVzdHMY", - "BSADKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlVzZXJJ", - "bnRlcmVzdEluZm8SSAoGdG9waWNzGAYgAygLMjguZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLkF1ZGllbmNlSW5zaWdodHNUb3BpYyLnBAoh", - "QXVkaWVuY2VJbnNpZ2h0c0F0dHJpYnV0ZU1ldGFkYXRhEmoKCWRpbWVuc2lv", - "bhgBIAEoDjJXLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5BdWRp", - "ZW5jZUluc2lnaHRzRGltZW5zaW9uRW51bS5BdWRpZW5jZUluc2lnaHRzRGlt", - "ZW5zaW9uEk8KCWF0dHJpYnV0ZRgCIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5BdWRpZW5jZUluc2lnaHRzQXR0cmlidXRlEhQK", - "DGRpc3BsYXlfbmFtZRgDIAEoCRINCgVzY29yZRgEIAEoARIUCgxkaXNwbGF5", - "X2luZm8YBSABKAkSZgoYeW91dHViZV9jaGFubmVsX21ldGFkYXRhGAYgASgL", - "MkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLllvdVR1YmVD", - "aGFubmVsQXR0cmlidXRlTWV0YWRhdGFIABJnChpkeW5hbWljX2F0dHJpYnV0", - "ZV9tZXRhZGF0YRgHIAEoCzJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5EeW5hbWljTGluZXVwQXR0cmlidXRlTWV0YWRhdGFIABJjChts", - "b2NhdGlvbl9hdHRyaWJ1dGVfbWV0YWRhdGEYCCABKAsyPC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuTG9jYXRpb25BdHRyaWJ1dGVNZXRh", - "ZGF0YUgAQhQKEmRpbWVuc2lvbl9tZXRhZGF0YSI7Ch9Zb3VUdWJlQ2hhbm5l", - "bEF0dHJpYnV0ZU1ldGFkYXRhEhgKEHN1YnNjcmliZXJfY291bnQYASABKAMi", - "ugIKHkR5bmFtaWNMaW5ldXBBdHRyaWJ1dGVNZXRhZGF0YRJIChFpbnZlbnRv", - "cnlfY291bnRyeRgBIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uTG9jYXRpb25JbmZvEiUKGG1lZGlhbl9tb250aGx5X2ludmVudG9y", - "eRgCIAEoA0gAiAEBEiYKGWNoYW5uZWxfY291bnRfbG93ZXJfYm91bmQYAyAB", - "KANIAYgBARImChljaGFubmVsX2NvdW50X3VwcGVyX2JvdW5kGAQgASgDSAKI", - "AQFCGwoZX21lZGlhbl9tb250aGx5X2ludmVudG9yeUIcChpfY2hhbm5lbF9j", - "b3VudF9sb3dlcl9ib3VuZEIcChpfY2hhbm5lbF9jb3VudF91cHBlcl9ib3Vu", - "ZCJkChlMb2NhdGlvbkF0dHJpYnV0ZU1ldGFkYXRhEkcKEGNvdW50cnlfbG9j", - "YXRpb24YASABKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LkxvY2F0aW9uSW5mbyKJBQoQSW5zaWdodHNBdWRpZW5jZRJNChFjb3VudHJ5", - "X2xvY2F0aW9ucxgBIAMoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uTG9jYXRpb25JbmZvQgPgQQISTAoVc3ViX2NvdW50cnlfbG9jYXRp", - "b25zGAIgAygLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5M", - "b2NhdGlvbkluZm8SOwoGZ2VuZGVyGAMgASgLMisuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5HZW5kZXJJbmZvEkEKCmFnZV9yYW5nZXMYBCAD", - "KAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFnZVJhbmdl", - "SW5mbxJMCg9wYXJlbnRhbF9zdGF0dXMYBSABKAsyMy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLlBhcmVudGFsU3RhdHVzSW5mbxJHCg1pbmNv", - "bWVfcmFuZ2VzGAYgAygLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5JbmNvbWVSYW5nZUluZm8SWQoPZHluYW1pY19saW5ldXBzGAcgAygL", - "MkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkF1ZGllbmNl", - "SW5zaWdodHNEeW5hbWljTGluZXVwEmYKG3RvcGljX2F1ZGllbmNlX2NvbWJp", - "bmF0aW9ucxgIIAMoCzJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcy5JbnNpZ2h0c0F1ZGllbmNlQXR0cmlidXRlR3JvdXAidwoeSW5zaWdo", - "dHNBdWRpZW5jZUF0dHJpYnV0ZUdyb3VwElUKCmF0dHJpYnV0ZXMYASADKAsy", - "PC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQXVkaWVuY2VJ", - "bnNpZ2h0c0F0dHJpYnV0ZUID4EECIscCChpBdWRpZW5jZUNvbXBvc2l0aW9u", - "U2VjdGlvbhJqCglkaW1lbnNpb24YASABKA4yVy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuQXVkaWVuY2VJbnNpZ2h0c0RpbWVuc2lvbkVudW0u", - "QXVkaWVuY2VJbnNpZ2h0c0RpbWVuc2lvbhJXCg50b3BfYXR0cmlidXRlcxgD", - "IAMoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BdWRp", - "ZW5jZUNvbXBvc2l0aW9uQXR0cmlidXRlEmQKFGNsdXN0ZXJlZF9hdHRyaWJ1", - "dGVzGAQgAygLMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "LkF1ZGllbmNlQ29tcG9zaXRpb25BdHRyaWJ1dGVDbHVzdGVyIvABCiNBdWRp", - "ZW5jZUNvbXBvc2l0aW9uQXR0cmlidXRlQ2x1c3RlchIcChRjbHVzdGVyX2Rp", - "c3BsYXlfbmFtZRgBIAEoCRJWCg9jbHVzdGVyX21ldHJpY3MYAyABKAsyPS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQXVkaWVuY2VDb21w", - "b3NpdGlvbk1ldHJpY3MSUwoKYXR0cmlidXRlcxgEIAMoCzI/Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BdWRpZW5jZUNvbXBvc2l0aW9u", - "QXR0cmlidXRlInMKGkF1ZGllbmNlQ29tcG9zaXRpb25NZXRyaWNzEh8KF2Jh", - "c2VsaW5lX2F1ZGllbmNlX3NoYXJlGAEgASgBEhYKDmF1ZGllbmNlX3NoYXJl", - "GAIgASgBEg0KBWluZGV4GAMgASgBEg0KBXNjb3JlGAQgASgBItABChxBdWRp", - "ZW5jZUNvbXBvc2l0aW9uQXR0cmlidXRlEmAKEmF0dHJpYnV0ZV9tZXRhZGF0", - "YRgBIAEoCzJELmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5B", - "dWRpZW5jZUluc2lnaHRzQXR0cmlidXRlTWV0YWRhdGESTgoHbWV0cmljcxgC", - "IAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BdWRp", - "ZW5jZUNvbXBvc2l0aW9uTWV0cmljczLRCQoXQXVkaWVuY2VJbnNpZ2h0c1Nl", - "cnZpY2USqQIKHEdlbmVyYXRlSW5zaWdodHNGaW5kZXJSZXBvcnQSRi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuR2VuZXJhdGVJbnNpZ2h0", - "c0ZpbmRlclJlcG9ydFJlcXVlc3QaRy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuR2VuZXJhdGVJbnNpZ2h0c0ZpbmRlclJlcG9ydFJlc3Bv", - "bnNlIniC0+STAkAiOy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfTpn", - "ZW5lcmF0ZUluc2lnaHRzRmluZGVyUmVwb3J0OgEq2kEvY3VzdG9tZXJfaWQs", - "YmFzZWxpbmVfYXVkaWVuY2Usc3BlY2lmaWNfYXVkaWVuY2USpQIKHkxpc3RB", - "dWRpZW5jZUluc2lnaHRzQXR0cmlidXRlcxJILmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5MaXN0QXVkaWVuY2VJbnNpZ2h0c0F0dHJpYnV0", - "ZXNSZXF1ZXN0GkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "Lkxpc3RBdWRpZW5jZUluc2lnaHRzQXR0cmlidXRlc1Jlc3BvbnNlIm6C0+ST", - "AkQiPy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfTpzZWFyY2hBdWRp", - "ZW5jZUluc2lnaHRzQXR0cmlidXRlczoBKtpBIWN1c3RvbWVyX2lkLGRpbWVu", - "c2lvbnMscXVlcnlfdGV4dBLiAQoZTGlzdEluc2lnaHRzRWxpZ2libGVEYXRl", - "cxJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5MaXN0SW5z", - "aWdodHNFbGlnaWJsZURhdGVzUmVxdWVzdBpELmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5MaXN0SW5zaWdodHNFbGlnaWJsZURhdGVzUmVz", - "cG9uc2UiOoLT5JMCNCIvL3YxMi9hdWRpZW5jZUluc2lnaHRzOmxpc3RJbnNp", - "Z2h0c0VsaWdpYmxlRGF0ZXM6ASoStQIKI0dlbmVyYXRlQXVkaWVuY2VDb21w", - "b3NpdGlvbkluc2lnaHRzEk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkdlbmVyYXRlQXVkaWVuY2VDb21wb3NpdGlvbkluc2lnaHRzUmVx", - "dWVzdBpOLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5HZW5l", - "cmF0ZUF1ZGllbmNlQ29tcG9zaXRpb25JbnNpZ2h0c1Jlc3BvbnNlIm+C0+ST", - "AkciQi92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfTpnZW5lcmF0ZUF1", - "ZGllbmNlQ29tcG9zaXRpb25JbnNpZ2h0czoBKtpBH2N1c3RvbWVyX2lkLGF1", - "ZGllbmNlLGRpbWVuc2lvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KI", - "AgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IcQXVk", - "aWVuY2VJbnNpZ2h0c1NlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZp", - "Y2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz", - "6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJv", - "dG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest.Parser, new[]{ "CustomerId", "BaselineAudience", "SpecificAudience", "CustomerInsightsGroup" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportResponse.Parser, new[]{ "SavedReportUrl" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest.Parser, new[]{ "CustomerId", "Audience", "DataMonth", "Dimensions", "CustomerInsightsGroup" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsResponse.Parser, new[]{ "Sections" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest), global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest.Parser, new[]{ "CustomerId", "Dimensions", "QueryText", "CustomerInsightsGroup", "LocationCountryFilters" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesResponse), global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesResponse.Parser, new[]{ "Attributes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest), global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesResponse), global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesResponse.Parser, new[]{ "DataMonths" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute), global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute.Parser, new[]{ "AgeRange", "Gender", "Location", "UserInterest", "Entity", "Category", "DynamicLineup", "ParentalStatus", "IncomeRange", "YoutubeChannel" }, new[]{ "Attribute" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsTopic), global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsTopic.Parser, new[]{ "Entity", "Category" }, new[]{ "Topic" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity), global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity.Parser, new[]{ "KnowledgeGraphMachineId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory), global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory.Parser, new[]{ "CategoryId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup), global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup.Parser, new[]{ "DynamicLineupId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience), global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience.Parser, new[]{ "CountryLocation", "SubCountryLocations", "Gender", "AgeRanges", "UserInterests", "Topics" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata), global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata.Parser, new[]{ "Dimension", "Attribute", "DisplayName", "Score", "DisplayInfo", "YoutubeChannelMetadata", "DynamicAttributeMetadata", "LocationAttributeMetadata" }, new[]{ "DimensionMetadata" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata), global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata.Parser, new[]{ "SubscriberCount" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata), global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata.Parser, new[]{ "InventoryCountry", "MedianMonthlyInventory", "ChannelCountLowerBound", "ChannelCountUpperBound" }, new[]{ "MedianMonthlyInventory", "ChannelCountLowerBound", "ChannelCountUpperBound" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata), global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata.Parser, new[]{ "CountryLocation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.InsightsAudience), global::Google.Ads.GoogleAds.V12.Services.InsightsAudience.Parser, new[]{ "CountryLocations", "SubCountryLocations", "Gender", "AgeRanges", "ParentalStatus", "IncomeRanges", "DynamicLineups", "TopicAudienceCombinations" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.InsightsAudienceAttributeGroup), global::Google.Ads.GoogleAds.V12.Services.InsightsAudienceAttributeGroup.Parser, new[]{ "Attributes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionSection), global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionSection.Parser, new[]{ "Dimension", "TopAttributes", "ClusteredAttributes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionAttributeCluster), global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionAttributeCluster.Parser, new[]{ "ClusterDisplayName", "ClusterMetrics", "Attributes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics), global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics.Parser, new[]{ "BaselineAudienceShare", "AudienceShare", "Index", "Score" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionAttribute), global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionAttribute.Parser, new[]{ "AttributeMetadata", "Metrics" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AudienceInsightsService.GenerateInsightsFinderReport][google.ads.googleads.v12.services.AudienceInsightsService.GenerateInsightsFinderReport]. - /// - public sealed partial class GenerateInsightsFinderReportRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateInsightsFinderReportRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateInsightsFinderReportRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateInsightsFinderReportRequest(GenerateInsightsFinderReportRequest other) : this() { - customerId_ = other.customerId_; - baselineAudience_ = other.baselineAudience_ != null ? other.baselineAudience_.Clone() : null; - specificAudience_ = other.specificAudience_ != null ? other.specificAudience_.Clone() : null; - customerInsightsGroup_ = other.customerInsightsGroup_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateInsightsFinderReportRequest Clone() { - return new GenerateInsightsFinderReportRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "baseline_audience" field. - public const int BaselineAudienceFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience baselineAudience_; - /// - /// Required. A baseline audience for this report, typically all people in a region. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience BaselineAudience { - get { return baselineAudience_; } - set { - baselineAudience_ = value; - } - } - - /// Field number for the "specific_audience" field. - public const int SpecificAudienceFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience specificAudience_; - /// - /// Required. The specific audience of interest for this report. The insights in the - /// report will be based on attributes more prevalent in this audience than - /// in the report's baseline audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience SpecificAudience { - get { return specificAudience_; } - set { - specificAudience_ = value; - } - } - - /// Field number for the "customer_insights_group" field. - public const int CustomerInsightsGroupFieldNumber = 4; - private string customerInsightsGroup_ = ""; - /// - /// The name of the customer being planned for. This is a user-defined value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerInsightsGroup { - get { return customerInsightsGroup_; } - set { - customerInsightsGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateInsightsFinderReportRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateInsightsFinderReportRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(BaselineAudience, other.BaselineAudience)) return false; - if (!object.Equals(SpecificAudience, other.SpecificAudience)) return false; - if (CustomerInsightsGroup != other.CustomerInsightsGroup) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (baselineAudience_ != null) hash ^= BaselineAudience.GetHashCode(); - if (specificAudience_ != null) hash ^= SpecificAudience.GetHashCode(); - if (CustomerInsightsGroup.Length != 0) hash ^= CustomerInsightsGroup.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (baselineAudience_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BaselineAudience); - } - if (specificAudience_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SpecificAudience); - } - if (CustomerInsightsGroup.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CustomerInsightsGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (baselineAudience_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BaselineAudience); - } - if (specificAudience_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SpecificAudience); - } - if (CustomerInsightsGroup.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CustomerInsightsGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (baselineAudience_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaselineAudience); - } - if (specificAudience_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecificAudience); - } - if (CustomerInsightsGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerInsightsGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateInsightsFinderReportRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.baselineAudience_ != null) { - if (baselineAudience_ == null) { - BaselineAudience = new global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience(); - } - BaselineAudience.MergeFrom(other.BaselineAudience); - } - if (other.specificAudience_ != null) { - if (specificAudience_ == null) { - SpecificAudience = new global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience(); - } - SpecificAudience.MergeFrom(other.SpecificAudience); - } - if (other.CustomerInsightsGroup.Length != 0) { - CustomerInsightsGroup = other.CustomerInsightsGroup; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (baselineAudience_ == null) { - BaselineAudience = new global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience(); - } - input.ReadMessage(BaselineAudience); - break; - } - case 26: { - if (specificAudience_ == null) { - SpecificAudience = new global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience(); - } - input.ReadMessage(SpecificAudience); - break; - } - case 34: { - CustomerInsightsGroup = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (baselineAudience_ == null) { - BaselineAudience = new global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience(); - } - input.ReadMessage(BaselineAudience); - break; - } - case 26: { - if (specificAudience_ == null) { - SpecificAudience = new global::Google.Ads.GoogleAds.V12.Services.BasicInsightsAudience(); - } - input.ReadMessage(SpecificAudience); - break; - } - case 34: { - CustomerInsightsGroup = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The response message for - /// [AudienceInsightsService.GenerateInsightsFinderReport][google.ads.googleads.v12.services.AudienceInsightsService.GenerateInsightsFinderReport], containing the - /// shareable URL for the report. - /// - public sealed partial class GenerateInsightsFinderReportResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateInsightsFinderReportResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateInsightsFinderReportResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateInsightsFinderReportResponse(GenerateInsightsFinderReportResponse other) : this() { - savedReportUrl_ = other.savedReportUrl_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateInsightsFinderReportResponse Clone() { - return new GenerateInsightsFinderReportResponse(this); - } - - /// Field number for the "saved_report_url" field. - public const int SavedReportUrlFieldNumber = 1; - private string savedReportUrl_ = ""; - /// - /// An HTTPS URL providing a deep link into the Insights Finder UI with the - /// report inputs filled in according to the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SavedReportUrl { - get { return savedReportUrl_; } - set { - savedReportUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateInsightsFinderReportResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateInsightsFinderReportResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SavedReportUrl != other.SavedReportUrl) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (SavedReportUrl.Length != 0) hash ^= SavedReportUrl.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (SavedReportUrl.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SavedReportUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (SavedReportUrl.Length != 0) { - output.WriteRawTag(10); - output.WriteString(SavedReportUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (SavedReportUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SavedReportUrl); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateInsightsFinderReportResponse other) { - if (other == null) { - return; - } - if (other.SavedReportUrl.Length != 0) { - SavedReportUrl = other.SavedReportUrl; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - SavedReportUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - SavedReportUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for - /// [AudienceInsightsService.GenerateAudienceCompositionInsights][google.ads.googleads.v12.services.AudienceInsightsService.GenerateAudienceCompositionInsights]. - /// - public sealed partial class GenerateAudienceCompositionInsightsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateAudienceCompositionInsightsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAudienceCompositionInsightsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAudienceCompositionInsightsRequest(GenerateAudienceCompositionInsightsRequest other) : this() { - customerId_ = other.customerId_; - audience_ = other.audience_ != null ? other.audience_.Clone() : null; - dataMonth_ = other.dataMonth_; - dimensions_ = other.dimensions_.Clone(); - customerInsightsGroup_ = other.customerInsightsGroup_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAudienceCompositionInsightsRequest Clone() { - return new GenerateAudienceCompositionInsightsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "audience" field. - public const int AudienceFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.InsightsAudience audience_; - /// - /// Required. The audience of interest for which insights are being requested. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.InsightsAudience Audience { - get { return audience_; } - set { - audience_ = value; - } - } - - /// Field number for the "data_month" field. - public const int DataMonthFieldNumber = 3; - private string dataMonth_ = ""; - /// - /// The one-month range of historical data to use for insights, in the format - /// "yyyy-mm". If unset, insights will be returned for the last thirty days of - /// data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DataMonth { - get { return dataMonth_; } - set { - dataMonth_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dimensions" field. - public const int DimensionsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_dimensions_codec - = pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension) x); - private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); - /// - /// Required. The audience dimensions for which composition insights should be returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Dimensions { - get { return dimensions_; } - } - - /// Field number for the "customer_insights_group" field. - public const int CustomerInsightsGroupFieldNumber = 5; - private string customerInsightsGroup_ = ""; - /// - /// The name of the customer being planned for. This is a user-defined value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerInsightsGroup { - get { return customerInsightsGroup_; } - set { - customerInsightsGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateAudienceCompositionInsightsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateAudienceCompositionInsightsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Audience, other.Audience)) return false; - if (DataMonth != other.DataMonth) return false; - if(!dimensions_.Equals(other.dimensions_)) return false; - if (CustomerInsightsGroup != other.CustomerInsightsGroup) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (audience_ != null) hash ^= Audience.GetHashCode(); - if (DataMonth.Length != 0) hash ^= DataMonth.GetHashCode(); - hash ^= dimensions_.GetHashCode(); - if (CustomerInsightsGroup.Length != 0) hash ^= CustomerInsightsGroup.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (audience_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Audience); - } - if (DataMonth.Length != 0) { - output.WriteRawTag(26); - output.WriteString(DataMonth); - } - dimensions_.WriteTo(output, _repeated_dimensions_codec); - if (CustomerInsightsGroup.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CustomerInsightsGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (audience_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Audience); - } - if (DataMonth.Length != 0) { - output.WriteRawTag(26); - output.WriteString(DataMonth); - } - dimensions_.WriteTo(ref output, _repeated_dimensions_codec); - if (CustomerInsightsGroup.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CustomerInsightsGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (audience_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Audience); - } - if (DataMonth.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DataMonth); - } - size += dimensions_.CalculateSize(_repeated_dimensions_codec); - if (CustomerInsightsGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerInsightsGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateAudienceCompositionInsightsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.audience_ != null) { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Services.InsightsAudience(); - } - Audience.MergeFrom(other.Audience); - } - if (other.DataMonth.Length != 0) { - DataMonth = other.DataMonth; - } - dimensions_.Add(other.dimensions_); - if (other.CustomerInsightsGroup.Length != 0) { - CustomerInsightsGroup = other.CustomerInsightsGroup; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Services.InsightsAudience(); - } - input.ReadMessage(Audience); - break; - } - case 26: { - DataMonth = input.ReadString(); - break; - } - case 34: - case 32: { - dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); - break; - } - case 42: { - CustomerInsightsGroup = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Services.InsightsAudience(); - } - input.ReadMessage(Audience); - break; - } - case 26: { - DataMonth = input.ReadString(); - break; - } - case 34: - case 32: { - dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); - break; - } - case 42: { - CustomerInsightsGroup = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [AudienceInsightsService.GenerateAudienceCompositionInsights][google.ads.googleads.v12.services.AudienceInsightsService.GenerateAudienceCompositionInsights]. - /// - public sealed partial class GenerateAudienceCompositionInsightsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateAudienceCompositionInsightsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAudienceCompositionInsightsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAudienceCompositionInsightsResponse(GenerateAudienceCompositionInsightsResponse other) : this() { - sections_ = other.sections_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAudienceCompositionInsightsResponse Clone() { - return new GenerateAudienceCompositionInsightsResponse(this); - } - - /// Field number for the "sections" field. - public const int SectionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_sections_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionSection.Parser); - private readonly pbc::RepeatedField sections_ = new pbc::RepeatedField(); - /// - /// The contents of the insights report, organized into sections. - /// Each section is associated with one of the AudienceInsightsDimension values - /// in the request. There may be more than one section per dimension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Sections { - get { return sections_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateAudienceCompositionInsightsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateAudienceCompositionInsightsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!sections_.Equals(other.sections_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= sections_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - sections_.WriteTo(output, _repeated_sections_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - sections_.WriteTo(ref output, _repeated_sections_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += sections_.CalculateSize(_repeated_sections_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateAudienceCompositionInsightsResponse other) { - if (other == null) { - return; - } - sections_.Add(other.sections_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - sections_.AddEntriesFrom(input, _repeated_sections_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - sections_.AddEntriesFrom(ref input, _repeated_sections_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for - /// [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v12.services.AudienceInsightsService.ListAudienceInsightsAttributes]. - /// - public sealed partial class ListAudienceInsightsAttributesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAudienceInsightsAttributesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAudienceInsightsAttributesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAudienceInsightsAttributesRequest(ListAudienceInsightsAttributesRequest other) : this() { - customerId_ = other.customerId_; - dimensions_ = other.dimensions_.Clone(); - queryText_ = other.queryText_; - customerInsightsGroup_ = other.customerInsightsGroup_; - locationCountryFilters_ = other.locationCountryFilters_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAudienceInsightsAttributesRequest Clone() { - return new ListAudienceInsightsAttributesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "dimensions" field. - public const int DimensionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_dimensions_codec - = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension) x); - private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); - /// - /// Required. The types of attributes to be returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Dimensions { - get { return dimensions_; } - } - - /// Field number for the "query_text" field. - public const int QueryTextFieldNumber = 3; - private string queryText_ = ""; - /// - /// Required. A free text query. Attributes matching or related to this string will be - /// returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string QueryText { - get { return queryText_; } - set { - queryText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_insights_group" field. - public const int CustomerInsightsGroupFieldNumber = 4; - private string customerInsightsGroup_ = ""; - /// - /// The name of the customer being planned for. This is a user-defined value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerInsightsGroup { - get { return customerInsightsGroup_; } - set { - customerInsightsGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "location_country_filters" field. - public const int LocationCountryFiltersFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_locationCountryFilters_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.LocationInfo.Parser); - private readonly pbc::RepeatedField locationCountryFilters_ = new pbc::RepeatedField(); - /// - /// If SUB_COUNTRY_LOCATION attributes are one of the requested dimensions and - /// this field is present, then the SUB_COUNTRY_LOCATION attributes returned - /// will be located in these countries. If this field is absent, then location - /// attributes are not filtered by country. Setting this field when - /// SUB_COUNTRY_LOCATION attributes are not requested will return an error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LocationCountryFilters { - get { return locationCountryFilters_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListAudienceInsightsAttributesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListAudienceInsightsAttributesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!dimensions_.Equals(other.dimensions_)) return false; - if (QueryText != other.QueryText) return false; - if (CustomerInsightsGroup != other.CustomerInsightsGroup) return false; - if(!locationCountryFilters_.Equals(other.locationCountryFilters_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= dimensions_.GetHashCode(); - if (QueryText.Length != 0) hash ^= QueryText.GetHashCode(); - if (CustomerInsightsGroup.Length != 0) hash ^= CustomerInsightsGroup.GetHashCode(); - hash ^= locationCountryFilters_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - dimensions_.WriteTo(output, _repeated_dimensions_codec); - if (QueryText.Length != 0) { - output.WriteRawTag(26); - output.WriteString(QueryText); - } - if (CustomerInsightsGroup.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CustomerInsightsGroup); - } - locationCountryFilters_.WriteTo(output, _repeated_locationCountryFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - dimensions_.WriteTo(ref output, _repeated_dimensions_codec); - if (QueryText.Length != 0) { - output.WriteRawTag(26); - output.WriteString(QueryText); - } - if (CustomerInsightsGroup.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CustomerInsightsGroup); - } - locationCountryFilters_.WriteTo(ref output, _repeated_locationCountryFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += dimensions_.CalculateSize(_repeated_dimensions_codec); - if (QueryText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(QueryText); - } - if (CustomerInsightsGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerInsightsGroup); - } - size += locationCountryFilters_.CalculateSize(_repeated_locationCountryFilters_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListAudienceInsightsAttributesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - dimensions_.Add(other.dimensions_); - if (other.QueryText.Length != 0) { - QueryText = other.QueryText; - } - if (other.CustomerInsightsGroup.Length != 0) { - CustomerInsightsGroup = other.CustomerInsightsGroup; - } - locationCountryFilters_.Add(other.locationCountryFilters_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: - case 16: { - dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); - break; - } - case 26: { - QueryText = input.ReadString(); - break; - } - case 34: { - CustomerInsightsGroup = input.ReadString(); - break; - } - case 42: { - locationCountryFilters_.AddEntriesFrom(input, _repeated_locationCountryFilters_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: - case 16: { - dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); - break; - } - case 26: { - QueryText = input.ReadString(); - break; - } - case 34: { - CustomerInsightsGroup = input.ReadString(); - break; - } - case 42: { - locationCountryFilters_.AddEntriesFrom(ref input, _repeated_locationCountryFilters_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [AudienceInsightsService.ListAudienceInsightsAttributes][google.ads.googleads.v12.services.AudienceInsightsService.ListAudienceInsightsAttributes]. - /// - public sealed partial class ListAudienceInsightsAttributesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAudienceInsightsAttributesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAudienceInsightsAttributesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAudienceInsightsAttributesResponse(ListAudienceInsightsAttributesResponse other) : this() { - attributes_ = other.attributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAudienceInsightsAttributesResponse Clone() { - return new ListAudienceInsightsAttributesResponse(this); - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// The attributes matching the search query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListAudienceInsightsAttributesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListAudienceInsightsAttributesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!attributes_.Equals(other.attributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= attributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - attributes_.WriteTo(output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListAudienceInsightsAttributesResponse other) { - if (other == null) { - return; - } - attributes_.Add(other.attributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [AudienceInsightsService.ListAudienceInsightsDates][]. - /// - public sealed partial class ListInsightsEligibleDatesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInsightsEligibleDatesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInsightsEligibleDatesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInsightsEligibleDatesRequest(ListInsightsEligibleDatesRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInsightsEligibleDatesRequest Clone() { - return new ListInsightsEligibleDatesRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListInsightsEligibleDatesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListInsightsEligibleDatesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListInsightsEligibleDatesRequest other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// Response message for [AudienceInsightsService.ListAudienceInsightsDates][]. - /// - public sealed partial class ListInsightsEligibleDatesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInsightsEligibleDatesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInsightsEligibleDatesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInsightsEligibleDatesResponse(ListInsightsEligibleDatesResponse other) : this() { - dataMonths_ = other.dataMonths_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInsightsEligibleDatesResponse Clone() { - return new ListInsightsEligibleDatesResponse(this); - } - - /// Field number for the "data_months" field. - public const int DataMonthsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_dataMonths_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField dataMonths_ = new pbc::RepeatedField(); - /// - /// The months for which AudienceInsights data is currently - /// available, each represented as a string in the form "YYYY-MM". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DataMonths { - get { return dataMonths_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListInsightsEligibleDatesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListInsightsEligibleDatesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!dataMonths_.Equals(other.dataMonths_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= dataMonths_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - dataMonths_.WriteTo(output, _repeated_dataMonths_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - dataMonths_.WriteTo(ref output, _repeated_dataMonths_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += dataMonths_.CalculateSize(_repeated_dataMonths_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListInsightsEligibleDatesResponse other) { - if (other == null) { - return; - } - dataMonths_.Add(other.dataMonths_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - dataMonths_.AddEntriesFrom(input, _repeated_dataMonths_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - dataMonths_.AddEntriesFrom(ref input, _repeated_dataMonths_codec); - break; - } - } - } - } - #endif - - } - - /// - /// An audience attribute that can be used to request insights about the - /// audience. - /// - public sealed partial class AudienceInsightsAttribute : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsAttribute()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsAttribute() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsAttribute(AudienceInsightsAttribute other) : this() { - switch (other.AttributeCase) { - case AttributeOneofCase.AgeRange: - AgeRange = other.AgeRange.Clone(); - break; - case AttributeOneofCase.Gender: - Gender = other.Gender.Clone(); - break; - case AttributeOneofCase.Location: - Location = other.Location.Clone(); - break; - case AttributeOneofCase.UserInterest: - UserInterest = other.UserInterest.Clone(); - break; - case AttributeOneofCase.Entity: - Entity = other.Entity.Clone(); - break; - case AttributeOneofCase.Category: - Category = other.Category.Clone(); - break; - case AttributeOneofCase.DynamicLineup: - DynamicLineup = other.DynamicLineup.Clone(); - break; - case AttributeOneofCase.ParentalStatus: - ParentalStatus = other.ParentalStatus.Clone(); - break; - case AttributeOneofCase.IncomeRange: - IncomeRange = other.IncomeRange.Clone(); - break; - case AttributeOneofCase.YoutubeChannel: - YoutubeChannel = other.YoutubeChannel.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsAttribute Clone() { - return new AudienceInsightsAttribute(this); - } - - /// Field number for the "age_range" field. - public const int AgeRangeFieldNumber = 1; - /// - /// An audience attribute defined by an age range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo AgeRange { - get { return attributeCase_ == AttributeOneofCase.AgeRange ? (global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.AgeRange; - } - } - - /// Field number for the "gender" field. - public const int GenderFieldNumber = 2; - /// - /// An audience attribute defined by a gender. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.GenderInfo Gender { - get { return attributeCase_ == AttributeOneofCase.Gender ? (global::Google.Ads.GoogleAds.V12.Common.GenderInfo) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.Gender; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 3; - /// - /// An audience attribute defined by a geographic location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationInfo Location { - get { return attributeCase_ == AttributeOneofCase.Location ? (global::Google.Ads.GoogleAds.V12.Common.LocationInfo) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.Location; - } - } - - /// Field number for the "user_interest" field. - public const int UserInterestFieldNumber = 4; - /// - /// An Affinity or In-Market audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo UserInterest { - get { return attributeCase_ == AttributeOneofCase.UserInterest ? (global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.UserInterest; - } - } - - /// Field number for the "entity" field. - public const int EntityFieldNumber = 5; - /// - /// An audience attribute defined by interest in a topic represented by a - /// Knowledge Graph entity. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity Entity { - get { return attributeCase_ == AttributeOneofCase.Entity ? (global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.Entity; - } - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 6; - /// - /// An audience attribute defined by interest in a Product & Service - /// category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory Category { - get { return attributeCase_ == AttributeOneofCase.Category ? (global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.Category; - } - } - - /// Field number for the "dynamic_lineup" field. - public const int DynamicLineupFieldNumber = 7; - /// - /// A YouTube Dynamic Lineup - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup DynamicLineup { - get { return attributeCase_ == AttributeOneofCase.DynamicLineup ? (global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.DynamicLineup; - } - } - - /// Field number for the "parental_status" field. - public const int ParentalStatusFieldNumber = 8; - /// - /// A Parental Status value (parent, or not a parent). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo ParentalStatus { - get { return attributeCase_ == AttributeOneofCase.ParentalStatus ? (global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.ParentalStatus; - } - } - - /// Field number for the "income_range" field. - public const int IncomeRangeFieldNumber = 9; - /// - /// A household income percentile range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo IncomeRange { - get { return attributeCase_ == AttributeOneofCase.IncomeRange ? (global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.IncomeRange; - } - } - - /// Field number for the "youtube_channel" field. - public const int YoutubeChannelFieldNumber = 10; - /// - /// A YouTube channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo YoutubeChannel { - get { return attributeCase_ == AttributeOneofCase.YoutubeChannel ? (global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo) attribute_ : null; } - set { - attribute_ = value; - attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.YoutubeChannel; - } - } - - private object attribute_; - /// Enum of possible cases for the "attribute" oneof. - public enum AttributeOneofCase { - None = 0, - AgeRange = 1, - Gender = 2, - Location = 3, - UserInterest = 4, - Entity = 5, - Category = 6, - DynamicLineup = 7, - ParentalStatus = 8, - IncomeRange = 9, - YoutubeChannel = 10, - } - private AttributeOneofCase attributeCase_ = AttributeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributeOneofCase AttributeCase { - get { return attributeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAttribute() { - attributeCase_ = AttributeOneofCase.None; - attribute_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsAttribute); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsAttribute other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AgeRange, other.AgeRange)) return false; - if (!object.Equals(Gender, other.Gender)) return false; - if (!object.Equals(Location, other.Location)) return false; - if (!object.Equals(UserInterest, other.UserInterest)) return false; - if (!object.Equals(Entity, other.Entity)) return false; - if (!object.Equals(Category, other.Category)) return false; - if (!object.Equals(DynamicLineup, other.DynamicLineup)) return false; - if (!object.Equals(ParentalStatus, other.ParentalStatus)) return false; - if (!object.Equals(IncomeRange, other.IncomeRange)) return false; - if (!object.Equals(YoutubeChannel, other.YoutubeChannel)) return false; - if (AttributeCase != other.AttributeCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (attributeCase_ == AttributeOneofCase.AgeRange) hash ^= AgeRange.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.Gender) hash ^= Gender.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.Location) hash ^= Location.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.UserInterest) hash ^= UserInterest.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.Entity) hash ^= Entity.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.Category) hash ^= Category.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.DynamicLineup) hash ^= DynamicLineup.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.ParentalStatus) hash ^= ParentalStatus.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.IncomeRange) hash ^= IncomeRange.GetHashCode(); - if (attributeCase_ == AttributeOneofCase.YoutubeChannel) hash ^= YoutubeChannel.GetHashCode(); - hash ^= (int) attributeCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (attributeCase_ == AttributeOneofCase.AgeRange) { - output.WriteRawTag(10); - output.WriteMessage(AgeRange); - } - if (attributeCase_ == AttributeOneofCase.Gender) { - output.WriteRawTag(18); - output.WriteMessage(Gender); - } - if (attributeCase_ == AttributeOneofCase.Location) { - output.WriteRawTag(26); - output.WriteMessage(Location); - } - if (attributeCase_ == AttributeOneofCase.UserInterest) { - output.WriteRawTag(34); - output.WriteMessage(UserInterest); - } - if (attributeCase_ == AttributeOneofCase.Entity) { - output.WriteRawTag(42); - output.WriteMessage(Entity); - } - if (attributeCase_ == AttributeOneofCase.Category) { - output.WriteRawTag(50); - output.WriteMessage(Category); - } - if (attributeCase_ == AttributeOneofCase.DynamicLineup) { - output.WriteRawTag(58); - output.WriteMessage(DynamicLineup); - } - if (attributeCase_ == AttributeOneofCase.ParentalStatus) { - output.WriteRawTag(66); - output.WriteMessage(ParentalStatus); - } - if (attributeCase_ == AttributeOneofCase.IncomeRange) { - output.WriteRawTag(74); - output.WriteMessage(IncomeRange); - } - if (attributeCase_ == AttributeOneofCase.YoutubeChannel) { - output.WriteRawTag(82); - output.WriteMessage(YoutubeChannel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (attributeCase_ == AttributeOneofCase.AgeRange) { - output.WriteRawTag(10); - output.WriteMessage(AgeRange); - } - if (attributeCase_ == AttributeOneofCase.Gender) { - output.WriteRawTag(18); - output.WriteMessage(Gender); - } - if (attributeCase_ == AttributeOneofCase.Location) { - output.WriteRawTag(26); - output.WriteMessage(Location); - } - if (attributeCase_ == AttributeOneofCase.UserInterest) { - output.WriteRawTag(34); - output.WriteMessage(UserInterest); - } - if (attributeCase_ == AttributeOneofCase.Entity) { - output.WriteRawTag(42); - output.WriteMessage(Entity); - } - if (attributeCase_ == AttributeOneofCase.Category) { - output.WriteRawTag(50); - output.WriteMessage(Category); - } - if (attributeCase_ == AttributeOneofCase.DynamicLineup) { - output.WriteRawTag(58); - output.WriteMessage(DynamicLineup); - } - if (attributeCase_ == AttributeOneofCase.ParentalStatus) { - output.WriteRawTag(66); - output.WriteMessage(ParentalStatus); - } - if (attributeCase_ == AttributeOneofCase.IncomeRange) { - output.WriteRawTag(74); - output.WriteMessage(IncomeRange); - } - if (attributeCase_ == AttributeOneofCase.YoutubeChannel) { - output.WriteRawTag(82); - output.WriteMessage(YoutubeChannel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (attributeCase_ == AttributeOneofCase.AgeRange) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgeRange); - } - if (attributeCase_ == AttributeOneofCase.Gender) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gender); - } - if (attributeCase_ == AttributeOneofCase.Location) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (attributeCase_ == AttributeOneofCase.UserInterest) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInterest); - } - if (attributeCase_ == AttributeOneofCase.Entity) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Entity); - } - if (attributeCase_ == AttributeOneofCase.Category) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Category); - } - if (attributeCase_ == AttributeOneofCase.DynamicLineup) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DynamicLineup); - } - if (attributeCase_ == AttributeOneofCase.ParentalStatus) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParentalStatus); - } - if (attributeCase_ == AttributeOneofCase.IncomeRange) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(IncomeRange); - } - if (attributeCase_ == AttributeOneofCase.YoutubeChannel) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YoutubeChannel); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsAttribute other) { - if (other == null) { - return; - } - switch (other.AttributeCase) { - case AttributeOneofCase.AgeRange: - if (AgeRange == null) { - AgeRange = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - } - AgeRange.MergeFrom(other.AgeRange); - break; - case AttributeOneofCase.Gender: - if (Gender == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - Gender.MergeFrom(other.Gender); - break; - case AttributeOneofCase.Location: - if (Location == null) { - Location = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - Location.MergeFrom(other.Location); - break; - case AttributeOneofCase.UserInterest: - if (UserInterest == null) { - UserInterest = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - } - UserInterest.MergeFrom(other.UserInterest); - break; - case AttributeOneofCase.Entity: - if (Entity == null) { - Entity = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity(); - } - Entity.MergeFrom(other.Entity); - break; - case AttributeOneofCase.Category: - if (Category == null) { - Category = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory(); - } - Category.MergeFrom(other.Category); - break; - case AttributeOneofCase.DynamicLineup: - if (DynamicLineup == null) { - DynamicLineup = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup(); - } - DynamicLineup.MergeFrom(other.DynamicLineup); - break; - case AttributeOneofCase.ParentalStatus: - if (ParentalStatus == null) { - ParentalStatus = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - } - ParentalStatus.MergeFrom(other.ParentalStatus); - break; - case AttributeOneofCase.IncomeRange: - if (IncomeRange == null) { - IncomeRange = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - } - IncomeRange.MergeFrom(other.IncomeRange); - break; - case AttributeOneofCase.YoutubeChannel: - if (YoutubeChannel == null) { - YoutubeChannel = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - } - YoutubeChannel.MergeFrom(other.YoutubeChannel); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - if (attributeCase_ == AttributeOneofCase.AgeRange) { - subBuilder.MergeFrom(AgeRange); - } - input.ReadMessage(subBuilder); - AgeRange = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.GenderInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - if (attributeCase_ == AttributeOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.LocationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - if (attributeCase_ == AttributeOneofCase.Location) { - subBuilder.MergeFrom(Location); - } - input.ReadMessage(subBuilder); - Location = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - if (attributeCase_ == AttributeOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity(); - if (attributeCase_ == AttributeOneofCase.Entity) { - subBuilder.MergeFrom(Entity); - } - input.ReadMessage(subBuilder); - Entity = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory(); - if (attributeCase_ == AttributeOneofCase.Category) { - subBuilder.MergeFrom(Category); - } - input.ReadMessage(subBuilder); - Category = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup(); - if (attributeCase_ == AttributeOneofCase.DynamicLineup) { - subBuilder.MergeFrom(DynamicLineup); - } - input.ReadMessage(subBuilder); - DynamicLineup = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - if (attributeCase_ == AttributeOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - if (attributeCase_ == AttributeOneofCase.IncomeRange) { - subBuilder.MergeFrom(IncomeRange); - } - input.ReadMessage(subBuilder); - IncomeRange = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (attributeCase_ == AttributeOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - if (attributeCase_ == AttributeOneofCase.AgeRange) { - subBuilder.MergeFrom(AgeRange); - } - input.ReadMessage(subBuilder); - AgeRange = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.GenderInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - if (attributeCase_ == AttributeOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.LocationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - if (attributeCase_ == AttributeOneofCase.Location) { - subBuilder.MergeFrom(Location); - } - input.ReadMessage(subBuilder); - Location = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - if (attributeCase_ == AttributeOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity(); - if (attributeCase_ == AttributeOneofCase.Entity) { - subBuilder.MergeFrom(Entity); - } - input.ReadMessage(subBuilder); - Entity = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory(); - if (attributeCase_ == AttributeOneofCase.Category) { - subBuilder.MergeFrom(Category); - } - input.ReadMessage(subBuilder); - Category = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup(); - if (attributeCase_ == AttributeOneofCase.DynamicLineup) { - subBuilder.MergeFrom(DynamicLineup); - } - input.ReadMessage(subBuilder); - DynamicLineup = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - if (attributeCase_ == AttributeOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - if (attributeCase_ == AttributeOneofCase.IncomeRange) { - subBuilder.MergeFrom(IncomeRange); - } - input.ReadMessage(subBuilder); - IncomeRange = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (attributeCase_ == AttributeOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// An entity or category representing a topic that defines an audience. - /// - public sealed partial class AudienceInsightsTopic : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsTopic()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsTopic() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsTopic(AudienceInsightsTopic other) : this() { - switch (other.TopicCase) { - case TopicOneofCase.Entity: - Entity = other.Entity.Clone(); - break; - case TopicOneofCase.Category: - Category = other.Category.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsTopic Clone() { - return new AudienceInsightsTopic(this); - } - - /// Field number for the "entity" field. - public const int EntityFieldNumber = 1; - /// - /// A Knowledge Graph entity - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity Entity { - get { return topicCase_ == TopicOneofCase.Entity ? (global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity) topic_ : null; } - set { - topic_ = value; - topicCase_ = value == null ? TopicOneofCase.None : TopicOneofCase.Entity; - } - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 2; - /// - /// A Product & Service category - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory Category { - get { return topicCase_ == TopicOneofCase.Category ? (global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory) topic_ : null; } - set { - topic_ = value; - topicCase_ = value == null ? TopicOneofCase.None : TopicOneofCase.Category; - } - } - - private object topic_; - /// Enum of possible cases for the "topic" oneof. - public enum TopicOneofCase { - None = 0, - Entity = 1, - Category = 2, - } - private TopicOneofCase topicCase_ = TopicOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopicOneofCase TopicCase { - get { return topicCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTopic() { - topicCase_ = TopicOneofCase.None; - topic_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsTopic); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsTopic other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Entity, other.Entity)) return false; - if (!object.Equals(Category, other.Category)) return false; - if (TopicCase != other.TopicCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (topicCase_ == TopicOneofCase.Entity) hash ^= Entity.GetHashCode(); - if (topicCase_ == TopicOneofCase.Category) hash ^= Category.GetHashCode(); - hash ^= (int) topicCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (topicCase_ == TopicOneofCase.Entity) { - output.WriteRawTag(10); - output.WriteMessage(Entity); - } - if (topicCase_ == TopicOneofCase.Category) { - output.WriteRawTag(18); - output.WriteMessage(Category); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (topicCase_ == TopicOneofCase.Entity) { - output.WriteRawTag(10); - output.WriteMessage(Entity); - } - if (topicCase_ == TopicOneofCase.Category) { - output.WriteRawTag(18); - output.WriteMessage(Category); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (topicCase_ == TopicOneofCase.Entity) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Entity); - } - if (topicCase_ == TopicOneofCase.Category) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Category); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsTopic other) { - if (other == null) { - return; - } - switch (other.TopicCase) { - case TopicOneofCase.Entity: - if (Entity == null) { - Entity = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity(); - } - Entity.MergeFrom(other.Entity); - break; - case TopicOneofCase.Category: - if (Category == null) { - Category = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory(); - } - Category.MergeFrom(other.Category); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity(); - if (topicCase_ == TopicOneofCase.Entity) { - subBuilder.MergeFrom(Entity); - } - input.ReadMessage(subBuilder); - Entity = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory(); - if (topicCase_ == TopicOneofCase.Category) { - subBuilder.MergeFrom(Category); - } - input.ReadMessage(subBuilder); - Category = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsEntity(); - if (topicCase_ == TopicOneofCase.Entity) { - subBuilder.MergeFrom(Entity); - } - input.ReadMessage(subBuilder); - Entity = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsCategory(); - if (topicCase_ == TopicOneofCase.Category) { - subBuilder.MergeFrom(Category); - } - input.ReadMessage(subBuilder); - Category = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// A Knowledge Graph entity, represented by its machine id. - /// - public sealed partial class AudienceInsightsEntity : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsEntity()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsEntity() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsEntity(AudienceInsightsEntity other) : this() { - knowledgeGraphMachineId_ = other.knowledgeGraphMachineId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsEntity Clone() { - return new AudienceInsightsEntity(this); - } - - /// Field number for the "knowledge_graph_machine_id" field. - public const int KnowledgeGraphMachineIdFieldNumber = 1; - private string knowledgeGraphMachineId_ = ""; - /// - /// Required. The machine id (mid) of the Knowledge Graph entity. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KnowledgeGraphMachineId { - get { return knowledgeGraphMachineId_; } - set { - knowledgeGraphMachineId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsEntity); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsEntity other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KnowledgeGraphMachineId != other.KnowledgeGraphMachineId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (KnowledgeGraphMachineId.Length != 0) hash ^= KnowledgeGraphMachineId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (KnowledgeGraphMachineId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KnowledgeGraphMachineId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KnowledgeGraphMachineId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KnowledgeGraphMachineId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (KnowledgeGraphMachineId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KnowledgeGraphMachineId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsEntity other) { - if (other == null) { - return; - } - if (other.KnowledgeGraphMachineId.Length != 0) { - KnowledgeGraphMachineId = other.KnowledgeGraphMachineId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KnowledgeGraphMachineId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KnowledgeGraphMachineId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A Product and Service category. - /// - public sealed partial class AudienceInsightsCategory : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsCategory()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsCategory() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsCategory(AudienceInsightsCategory other) : this() { - categoryId_ = other.categoryId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsCategory Clone() { - return new AudienceInsightsCategory(this); - } - - /// Field number for the "category_id" field. - public const int CategoryIdFieldNumber = 1; - private string categoryId_ = ""; - /// - /// Required. The criterion id of the category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CategoryId { - get { return categoryId_; } - set { - categoryId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsCategory); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsCategory other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CategoryId != other.CategoryId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CategoryId.Length != 0) hash ^= CategoryId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CategoryId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CategoryId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CategoryId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CategoryId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CategoryId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CategoryId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsCategory other) { - if (other == null) { - return; - } - if (other.CategoryId.Length != 0) { - CategoryId = other.CategoryId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CategoryId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CategoryId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A YouTube Dynamic Lineup. - /// - public sealed partial class AudienceInsightsDynamicLineup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsDynamicLineup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsDynamicLineup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsDynamicLineup(AudienceInsightsDynamicLineup other) : this() { - dynamicLineupId_ = other.dynamicLineupId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsDynamicLineup Clone() { - return new AudienceInsightsDynamicLineup(this); - } - - /// Field number for the "dynamic_lineup_id" field. - public const int DynamicLineupIdFieldNumber = 1; - private string dynamicLineupId_ = ""; - /// - /// Required. The numeric ID of the dynamic lineup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DynamicLineupId { - get { return dynamicLineupId_; } - set { - dynamicLineupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsDynamicLineup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsDynamicLineup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DynamicLineupId != other.DynamicLineupId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DynamicLineupId.Length != 0) hash ^= DynamicLineupId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DynamicLineupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DynamicLineupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DynamicLineupId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DynamicLineupId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DynamicLineupId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DynamicLineupId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsDynamicLineup other) { - if (other == null) { - return; - } - if (other.DynamicLineupId.Length != 0) { - DynamicLineupId = other.DynamicLineupId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DynamicLineupId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DynamicLineupId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A description of an audience used for requesting insights. - /// - public sealed partial class BasicInsightsAudience : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BasicInsightsAudience()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BasicInsightsAudience() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BasicInsightsAudience(BasicInsightsAudience other) : this() { - countryLocation_ = other.countryLocation_.Clone(); - subCountryLocations_ = other.subCountryLocations_.Clone(); - gender_ = other.gender_ != null ? other.gender_.Clone() : null; - ageRanges_ = other.ageRanges_.Clone(); - userInterests_ = other.userInterests_.Clone(); - topics_ = other.topics_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BasicInsightsAudience Clone() { - return new BasicInsightsAudience(this); - } - - /// Field number for the "country_location" field. - public const int CountryLocationFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_countryLocation_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.LocationInfo.Parser); - private readonly pbc::RepeatedField countryLocation_ = new pbc::RepeatedField(); - /// - /// Required. The countries for this audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CountryLocation { - get { return countryLocation_; } - } - - /// Field number for the "sub_country_locations" field. - public const int SubCountryLocationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_subCountryLocations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.LocationInfo.Parser); - private readonly pbc::RepeatedField subCountryLocations_ = new pbc::RepeatedField(); - /// - /// Sub-country geographic location attributes. If present, each of these - /// must be contained in one of the countries in this audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SubCountryLocations { - get { return subCountryLocations_; } - } - - /// Field number for the "gender" field. - public const int GenderFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.GenderInfo gender_; - /// - /// Gender for the audience. If absent, the audience does not restrict by - /// gender. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.GenderInfo Gender { - get { return gender_; } - set { - gender_ = value; - } - } - - /// Field number for the "age_ranges" field. - public const int AgeRangesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_ageRanges_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo.Parser); - private readonly pbc::RepeatedField ageRanges_ = new pbc::RepeatedField(); - /// - /// Age ranges for the audience. If absent, the audience represents all people - /// over 18 that match the other attributes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AgeRanges { - get { return ageRanges_; } - } - - /// Field number for the "user_interests" field. - public const int UserInterestsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_userInterests_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo.Parser); - private readonly pbc::RepeatedField userInterests_ = new pbc::RepeatedField(); - /// - /// User interests defining this audience. Affinity and In-Market audiences - /// are supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserInterests { - get { return userInterests_; } - } - - /// Field number for the "topics" field. - public const int TopicsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_topics_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsTopic.Parser); - private readonly pbc::RepeatedField topics_ = new pbc::RepeatedField(); - /// - /// Topics, represented by Knowledge Graph entities and/or Product & Service - /// categories, that this audience is interested in. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Topics { - get { return topics_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BasicInsightsAudience); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BasicInsightsAudience other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!countryLocation_.Equals(other.countryLocation_)) return false; - if(!subCountryLocations_.Equals(other.subCountryLocations_)) return false; - if (!object.Equals(Gender, other.Gender)) return false; - if(!ageRanges_.Equals(other.ageRanges_)) return false; - if(!userInterests_.Equals(other.userInterests_)) return false; - if(!topics_.Equals(other.topics_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= countryLocation_.GetHashCode(); - hash ^= subCountryLocations_.GetHashCode(); - if (gender_ != null) hash ^= Gender.GetHashCode(); - hash ^= ageRanges_.GetHashCode(); - hash ^= userInterests_.GetHashCode(); - hash ^= topics_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - countryLocation_.WriteTo(output, _repeated_countryLocation_codec); - subCountryLocations_.WriteTo(output, _repeated_subCountryLocations_codec); - if (gender_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Gender); - } - ageRanges_.WriteTo(output, _repeated_ageRanges_codec); - userInterests_.WriteTo(output, _repeated_userInterests_codec); - topics_.WriteTo(output, _repeated_topics_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - countryLocation_.WriteTo(ref output, _repeated_countryLocation_codec); - subCountryLocations_.WriteTo(ref output, _repeated_subCountryLocations_codec); - if (gender_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Gender); - } - ageRanges_.WriteTo(ref output, _repeated_ageRanges_codec); - userInterests_.WriteTo(ref output, _repeated_userInterests_codec); - topics_.WriteTo(ref output, _repeated_topics_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += countryLocation_.CalculateSize(_repeated_countryLocation_codec); - size += subCountryLocations_.CalculateSize(_repeated_subCountryLocations_codec); - if (gender_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gender); - } - size += ageRanges_.CalculateSize(_repeated_ageRanges_codec); - size += userInterests_.CalculateSize(_repeated_userInterests_codec); - size += topics_.CalculateSize(_repeated_topics_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BasicInsightsAudience other) { - if (other == null) { - return; - } - countryLocation_.Add(other.countryLocation_); - subCountryLocations_.Add(other.subCountryLocations_); - if (other.gender_ != null) { - if (gender_ == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - Gender.MergeFrom(other.Gender); - } - ageRanges_.Add(other.ageRanges_); - userInterests_.Add(other.userInterests_); - topics_.Add(other.topics_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - countryLocation_.AddEntriesFrom(input, _repeated_countryLocation_codec); - break; - } - case 18: { - subCountryLocations_.AddEntriesFrom(input, _repeated_subCountryLocations_codec); - break; - } - case 26: { - if (gender_ == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - input.ReadMessage(Gender); - break; - } - case 34: { - ageRanges_.AddEntriesFrom(input, _repeated_ageRanges_codec); - break; - } - case 42: { - userInterests_.AddEntriesFrom(input, _repeated_userInterests_codec); - break; - } - case 50: { - topics_.AddEntriesFrom(input, _repeated_topics_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - countryLocation_.AddEntriesFrom(ref input, _repeated_countryLocation_codec); - break; - } - case 18: { - subCountryLocations_.AddEntriesFrom(ref input, _repeated_subCountryLocations_codec); - break; - } - case 26: { - if (gender_ == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - input.ReadMessage(Gender); - break; - } - case 34: { - ageRanges_.AddEntriesFrom(ref input, _repeated_ageRanges_codec); - break; - } - case 42: { - userInterests_.AddEntriesFrom(ref input, _repeated_userInterests_codec); - break; - } - case 50: { - topics_.AddEntriesFrom(ref input, _repeated_topics_codec); - break; - } - } - } - } - #endif - - } - - /// - /// An audience attribute, with metadata about it, returned in response to a - /// search. - /// - public sealed partial class AudienceInsightsAttributeMetadata : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInsightsAttributeMetadata()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsAttributeMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsAttributeMetadata(AudienceInsightsAttributeMetadata other) : this() { - dimension_ = other.dimension_; - attribute_ = other.attribute_ != null ? other.attribute_.Clone() : null; - displayName_ = other.displayName_; - score_ = other.score_; - displayInfo_ = other.displayInfo_; - switch (other.DimensionMetadataCase) { - case DimensionMetadataOneofCase.YoutubeChannelMetadata: - YoutubeChannelMetadata = other.YoutubeChannelMetadata.Clone(); - break; - case DimensionMetadataOneofCase.DynamicAttributeMetadata: - DynamicAttributeMetadata = other.DynamicAttributeMetadata.Clone(); - break; - case DimensionMetadataOneofCase.LocationAttributeMetadata: - LocationAttributeMetadata = other.LocationAttributeMetadata.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInsightsAttributeMetadata Clone() { - return new AudienceInsightsAttributeMetadata(this); - } - - /// Field number for the "dimension" field. - public const int DimensionFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension dimension_ = global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified; - /// - /// The type of the attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension Dimension { - get { return dimension_; } - set { - dimension_ = value; - } - } - - /// Field number for the "attribute" field. - public const int AttributeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute attribute_; - /// - /// The attribute itself. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute Attribute { - get { return attribute_; } - set { - attribute_ = value; - } - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 3; - private string displayName_ = ""; - /// - /// The human-readable name of the attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_; } - set { - displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "score" field. - public const int ScoreFieldNumber = 4; - private double score_; - /// - /// A relevance score for this attribute, between 0 and 1. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Score { - get { return score_; } - set { - score_ = value; - } - } - - /// Field number for the "display_info" field. - public const int DisplayInfoFieldNumber = 5; - private string displayInfo_ = ""; - /// - /// A string that supplements the display_name to identify the attribute. - /// If the dimension is TOPIC, this is a brief description of the - /// Knowledge Graph entity, such as "American singer-songwriter". - /// If the dimension is CATEGORY, this is the complete path to the category in - /// The Product & Service taxonomy, for example - /// "/Apparel/Clothing/Outerwear". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayInfo { - get { return displayInfo_; } - set { - displayInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "youtube_channel_metadata" field. - public const int YoutubeChannelMetadataFieldNumber = 6; - /// - /// Special metadata for a YouTube channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata YoutubeChannelMetadata { - get { return dimensionMetadataCase_ == DimensionMetadataOneofCase.YoutubeChannelMetadata ? (global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata) dimensionMetadata_ : null; } - set { - dimensionMetadata_ = value; - dimensionMetadataCase_ = value == null ? DimensionMetadataOneofCase.None : DimensionMetadataOneofCase.YoutubeChannelMetadata; - } - } - - /// Field number for the "dynamic_attribute_metadata" field. - public const int DynamicAttributeMetadataFieldNumber = 7; - /// - /// Special metadata for a YouTube Dynamic Lineup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata DynamicAttributeMetadata { - get { return dimensionMetadataCase_ == DimensionMetadataOneofCase.DynamicAttributeMetadata ? (global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata) dimensionMetadata_ : null; } - set { - dimensionMetadata_ = value; - dimensionMetadataCase_ = value == null ? DimensionMetadataOneofCase.None : DimensionMetadataOneofCase.DynamicAttributeMetadata; - } - } - - /// Field number for the "location_attribute_metadata" field. - public const int LocationAttributeMetadataFieldNumber = 8; - /// - /// Special metadata for a Location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata LocationAttributeMetadata { - get { return dimensionMetadataCase_ == DimensionMetadataOneofCase.LocationAttributeMetadata ? (global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata) dimensionMetadata_ : null; } - set { - dimensionMetadata_ = value; - dimensionMetadataCase_ = value == null ? DimensionMetadataOneofCase.None : DimensionMetadataOneofCase.LocationAttributeMetadata; - } - } - - private object dimensionMetadata_; - /// Enum of possible cases for the "dimension_metadata" oneof. - public enum DimensionMetadataOneofCase { - None = 0, - YoutubeChannelMetadata = 6, - DynamicAttributeMetadata = 7, - LocationAttributeMetadata = 8, - } - private DimensionMetadataOneofCase dimensionMetadataCase_ = DimensionMetadataOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DimensionMetadataOneofCase DimensionMetadataCase { - get { return dimensionMetadataCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDimensionMetadata() { - dimensionMetadataCase_ = DimensionMetadataOneofCase.None; - dimensionMetadata_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInsightsAttributeMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInsightsAttributeMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Dimension != other.Dimension) return false; - if (!object.Equals(Attribute, other.Attribute)) return false; - if (DisplayName != other.DisplayName) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Score, other.Score)) return false; - if (DisplayInfo != other.DisplayInfo) return false; - if (!object.Equals(YoutubeChannelMetadata, other.YoutubeChannelMetadata)) return false; - if (!object.Equals(DynamicAttributeMetadata, other.DynamicAttributeMetadata)) return false; - if (!object.Equals(LocationAttributeMetadata, other.LocationAttributeMetadata)) return false; - if (DimensionMetadataCase != other.DimensionMetadataCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) hash ^= Dimension.GetHashCode(); - if (attribute_ != null) hash ^= Attribute.GetHashCode(); - if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); - if (Score != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Score); - if (DisplayInfo.Length != 0) hash ^= DisplayInfo.GetHashCode(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.YoutubeChannelMetadata) hash ^= YoutubeChannelMetadata.GetHashCode(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.DynamicAttributeMetadata) hash ^= DynamicAttributeMetadata.GetHashCode(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.LocationAttributeMetadata) hash ^= LocationAttributeMetadata.GetHashCode(); - hash ^= (int) dimensionMetadataCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Dimension); - } - if (attribute_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Attribute); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(DisplayName); - } - if (Score != 0D) { - output.WriteRawTag(33); - output.WriteDouble(Score); - } - if (DisplayInfo.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DisplayInfo); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.YoutubeChannelMetadata) { - output.WriteRawTag(50); - output.WriteMessage(YoutubeChannelMetadata); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.DynamicAttributeMetadata) { - output.WriteRawTag(58); - output.WriteMessage(DynamicAttributeMetadata); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.LocationAttributeMetadata) { - output.WriteRawTag(66); - output.WriteMessage(LocationAttributeMetadata); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Dimension); - } - if (attribute_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Attribute); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(DisplayName); - } - if (Score != 0D) { - output.WriteRawTag(33); - output.WriteDouble(Score); - } - if (DisplayInfo.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DisplayInfo); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.YoutubeChannelMetadata) { - output.WriteRawTag(50); - output.WriteMessage(YoutubeChannelMetadata); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.DynamicAttributeMetadata) { - output.WriteRawTag(58); - output.WriteMessage(DynamicAttributeMetadata); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.LocationAttributeMetadata) { - output.WriteRawTag(66); - output.WriteMessage(LocationAttributeMetadata); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dimension); - } - if (attribute_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Attribute); - } - if (DisplayName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (Score != 0D) { - size += 1 + 8; - } - if (DisplayInfo.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayInfo); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.YoutubeChannelMetadata) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YoutubeChannelMetadata); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.DynamicAttributeMetadata) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DynamicAttributeMetadata); - } - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.LocationAttributeMetadata) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocationAttributeMetadata); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInsightsAttributeMetadata other) { - if (other == null) { - return; - } - if (other.Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - Dimension = other.Dimension; - } - if (other.attribute_ != null) { - if (attribute_ == null) { - Attribute = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute(); - } - Attribute.MergeFrom(other.Attribute); - } - if (other.DisplayName.Length != 0) { - DisplayName = other.DisplayName; - } - if (other.Score != 0D) { - Score = other.Score; - } - if (other.DisplayInfo.Length != 0) { - DisplayInfo = other.DisplayInfo; - } - switch (other.DimensionMetadataCase) { - case DimensionMetadataOneofCase.YoutubeChannelMetadata: - if (YoutubeChannelMetadata == null) { - YoutubeChannelMetadata = new global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata(); - } - YoutubeChannelMetadata.MergeFrom(other.YoutubeChannelMetadata); - break; - case DimensionMetadataOneofCase.DynamicAttributeMetadata: - if (DynamicAttributeMetadata == null) { - DynamicAttributeMetadata = new global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata(); - } - DynamicAttributeMetadata.MergeFrom(other.DynamicAttributeMetadata); - break; - case DimensionMetadataOneofCase.LocationAttributeMetadata: - if (LocationAttributeMetadata == null) { - LocationAttributeMetadata = new global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata(); - } - LocationAttributeMetadata.MergeFrom(other.LocationAttributeMetadata); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Dimension = (global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension) input.ReadEnum(); - break; - } - case 18: { - if (attribute_ == null) { - Attribute = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute(); - } - input.ReadMessage(Attribute); - break; - } - case 26: { - DisplayName = input.ReadString(); - break; - } - case 33: { - Score = input.ReadDouble(); - break; - } - case 42: { - DisplayInfo = input.ReadString(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata subBuilder = new global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.YoutubeChannelMetadata) { - subBuilder.MergeFrom(YoutubeChannelMetadata); - } - input.ReadMessage(subBuilder); - YoutubeChannelMetadata = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata subBuilder = new global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.DynamicAttributeMetadata) { - subBuilder.MergeFrom(DynamicAttributeMetadata); - } - input.ReadMessage(subBuilder); - DynamicAttributeMetadata = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata subBuilder = new global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.LocationAttributeMetadata) { - subBuilder.MergeFrom(LocationAttributeMetadata); - } - input.ReadMessage(subBuilder); - LocationAttributeMetadata = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Dimension = (global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension) input.ReadEnum(); - break; - } - case 18: { - if (attribute_ == null) { - Attribute = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute(); - } - input.ReadMessage(Attribute); - break; - } - case 26: { - DisplayName = input.ReadString(); - break; - } - case 33: { - Score = input.ReadDouble(); - break; - } - case 42: { - DisplayInfo = input.ReadString(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata subBuilder = new global::Google.Ads.GoogleAds.V12.Services.YouTubeChannelAttributeMetadata(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.YoutubeChannelMetadata) { - subBuilder.MergeFrom(YoutubeChannelMetadata); - } - input.ReadMessage(subBuilder); - YoutubeChannelMetadata = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata subBuilder = new global::Google.Ads.GoogleAds.V12.Services.DynamicLineupAttributeMetadata(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.DynamicAttributeMetadata) { - subBuilder.MergeFrom(DynamicAttributeMetadata); - } - input.ReadMessage(subBuilder); - DynamicAttributeMetadata = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata subBuilder = new global::Google.Ads.GoogleAds.V12.Services.LocationAttributeMetadata(); - if (dimensionMetadataCase_ == DimensionMetadataOneofCase.LocationAttributeMetadata) { - subBuilder.MergeFrom(LocationAttributeMetadata); - } - input.ReadMessage(subBuilder); - LocationAttributeMetadata = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Metadata associated with a YouTube channel attribute. - /// - public sealed partial class YouTubeChannelAttributeMetadata : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new YouTubeChannelAttributeMetadata()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeChannelAttributeMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeChannelAttributeMetadata(YouTubeChannelAttributeMetadata other) : this() { - subscriberCount_ = other.subscriberCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeChannelAttributeMetadata Clone() { - return new YouTubeChannelAttributeMetadata(this); - } - - /// Field number for the "subscriber_count" field. - public const int SubscriberCountFieldNumber = 1; - private long subscriberCount_; - /// - /// The approximate number of subscribers to the YouTube channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SubscriberCount { - get { return subscriberCount_; } - set { - subscriberCount_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as YouTubeChannelAttributeMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(YouTubeChannelAttributeMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SubscriberCount != other.SubscriberCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (SubscriberCount != 0L) hash ^= SubscriberCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (SubscriberCount != 0L) { - output.WriteRawTag(8); - output.WriteInt64(SubscriberCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (SubscriberCount != 0L) { - output.WriteRawTag(8); - output.WriteInt64(SubscriberCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (SubscriberCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(SubscriberCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(YouTubeChannelAttributeMetadata other) { - if (other == null) { - return; - } - if (other.SubscriberCount != 0L) { - SubscriberCount = other.SubscriberCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - SubscriberCount = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - SubscriberCount = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Metadata associated with a Dynamic Lineup attribute. - /// - public sealed partial class DynamicLineupAttributeMetadata : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicLineupAttributeMetadata()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLineupAttributeMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLineupAttributeMetadata(DynamicLineupAttributeMetadata other) : this() { - _hasBits0 = other._hasBits0; - inventoryCountry_ = other.inventoryCountry_ != null ? other.inventoryCountry_.Clone() : null; - medianMonthlyInventory_ = other.medianMonthlyInventory_; - channelCountLowerBound_ = other.channelCountLowerBound_; - channelCountUpperBound_ = other.channelCountUpperBound_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLineupAttributeMetadata Clone() { - return new DynamicLineupAttributeMetadata(this); - } - - /// Field number for the "inventory_country" field. - public const int InventoryCountryFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.LocationInfo inventoryCountry_; - /// - /// The national market associated with the lineup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationInfo InventoryCountry { - get { return inventoryCountry_; } - set { - inventoryCountry_ = value; - } - } - - /// Field number for the "median_monthly_inventory" field. - public const int MedianMonthlyInventoryFieldNumber = 2; - private long medianMonthlyInventory_; - /// - /// The median number of impressions per month on this lineup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MedianMonthlyInventory { - get { if ((_hasBits0 & 1) != 0) { return medianMonthlyInventory_; } else { return 0L; } } - set { - _hasBits0 |= 1; - medianMonthlyInventory_ = value; - } - } - /// Gets whether the "median_monthly_inventory" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMedianMonthlyInventory { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "median_monthly_inventory" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMedianMonthlyInventory() { - _hasBits0 &= ~1; - } - - /// Field number for the "channel_count_lower_bound" field. - public const int ChannelCountLowerBoundFieldNumber = 3; - private long channelCountLowerBound_; - /// - /// The lower end of a range containing the number of channels in the lineup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ChannelCountLowerBound { - get { if ((_hasBits0 & 2) != 0) { return channelCountLowerBound_; } else { return 0L; } } - set { - _hasBits0 |= 2; - channelCountLowerBound_ = value; - } - } - /// Gets whether the "channel_count_lower_bound" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasChannelCountLowerBound { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "channel_count_lower_bound" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearChannelCountLowerBound() { - _hasBits0 &= ~2; - } - - /// Field number for the "channel_count_upper_bound" field. - public const int ChannelCountUpperBoundFieldNumber = 4; - private long channelCountUpperBound_; - /// - /// The upper end of a range containing the number of channels in the lineup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ChannelCountUpperBound { - get { if ((_hasBits0 & 4) != 0) { return channelCountUpperBound_; } else { return 0L; } } - set { - _hasBits0 |= 4; - channelCountUpperBound_ = value; - } - } - /// Gets whether the "channel_count_upper_bound" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasChannelCountUpperBound { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "channel_count_upper_bound" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearChannelCountUpperBound() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicLineupAttributeMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicLineupAttributeMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(InventoryCountry, other.InventoryCountry)) return false; - if (MedianMonthlyInventory != other.MedianMonthlyInventory) return false; - if (ChannelCountLowerBound != other.ChannelCountLowerBound) return false; - if (ChannelCountUpperBound != other.ChannelCountUpperBound) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (inventoryCountry_ != null) hash ^= InventoryCountry.GetHashCode(); - if (HasMedianMonthlyInventory) hash ^= MedianMonthlyInventory.GetHashCode(); - if (HasChannelCountLowerBound) hash ^= ChannelCountLowerBound.GetHashCode(); - if (HasChannelCountUpperBound) hash ^= ChannelCountUpperBound.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (inventoryCountry_ != null) { - output.WriteRawTag(10); - output.WriteMessage(InventoryCountry); - } - if (HasMedianMonthlyInventory) { - output.WriteRawTag(16); - output.WriteInt64(MedianMonthlyInventory); - } - if (HasChannelCountLowerBound) { - output.WriteRawTag(24); - output.WriteInt64(ChannelCountLowerBound); - } - if (HasChannelCountUpperBound) { - output.WriteRawTag(32); - output.WriteInt64(ChannelCountUpperBound); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (inventoryCountry_ != null) { - output.WriteRawTag(10); - output.WriteMessage(InventoryCountry); - } - if (HasMedianMonthlyInventory) { - output.WriteRawTag(16); - output.WriteInt64(MedianMonthlyInventory); - } - if (HasChannelCountLowerBound) { - output.WriteRawTag(24); - output.WriteInt64(ChannelCountLowerBound); - } - if (HasChannelCountUpperBound) { - output.WriteRawTag(32); - output.WriteInt64(ChannelCountUpperBound); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (inventoryCountry_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InventoryCountry); - } - if (HasMedianMonthlyInventory) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MedianMonthlyInventory); - } - if (HasChannelCountLowerBound) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ChannelCountLowerBound); - } - if (HasChannelCountUpperBound) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ChannelCountUpperBound); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicLineupAttributeMetadata other) { - if (other == null) { - return; - } - if (other.inventoryCountry_ != null) { - if (inventoryCountry_ == null) { - InventoryCountry = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - InventoryCountry.MergeFrom(other.InventoryCountry); - } - if (other.HasMedianMonthlyInventory) { - MedianMonthlyInventory = other.MedianMonthlyInventory; - } - if (other.HasChannelCountLowerBound) { - ChannelCountLowerBound = other.ChannelCountLowerBound; - } - if (other.HasChannelCountUpperBound) { - ChannelCountUpperBound = other.ChannelCountUpperBound; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (inventoryCountry_ == null) { - InventoryCountry = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - input.ReadMessage(InventoryCountry); - break; - } - case 16: { - MedianMonthlyInventory = input.ReadInt64(); - break; - } - case 24: { - ChannelCountLowerBound = input.ReadInt64(); - break; - } - case 32: { - ChannelCountUpperBound = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (inventoryCountry_ == null) { - InventoryCountry = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - input.ReadMessage(InventoryCountry); - break; - } - case 16: { - MedianMonthlyInventory = input.ReadInt64(); - break; - } - case 24: { - ChannelCountLowerBound = input.ReadInt64(); - break; - } - case 32: { - ChannelCountUpperBound = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Metadata associated with a Location attribute. - /// - public sealed partial class LocationAttributeMetadata : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationAttributeMetadata()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationAttributeMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationAttributeMetadata(LocationAttributeMetadata other) : this() { - countryLocation_ = other.countryLocation_ != null ? other.countryLocation_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationAttributeMetadata Clone() { - return new LocationAttributeMetadata(this); - } - - /// Field number for the "country_location" field. - public const int CountryLocationFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.LocationInfo countryLocation_; - /// - /// The country location of the sub country location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationInfo CountryLocation { - get { return countryLocation_; } - set { - countryLocation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationAttributeMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationAttributeMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(CountryLocation, other.CountryLocation)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (countryLocation_ != null) hash ^= CountryLocation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (countryLocation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CountryLocation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (countryLocation_ != null) { - output.WriteRawTag(10); - output.WriteMessage(CountryLocation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (countryLocation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CountryLocation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationAttributeMetadata other) { - if (other == null) { - return; - } - if (other.countryLocation_ != null) { - if (countryLocation_ == null) { - CountryLocation = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - CountryLocation.MergeFrom(other.CountryLocation); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (countryLocation_ == null) { - CountryLocation = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - input.ReadMessage(CountryLocation); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (countryLocation_ == null) { - CountryLocation = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - input.ReadMessage(CountryLocation); - break; - } - } - } - } - #endif - - } - - /// - /// A set of users, defined by various characteristics, for which insights can - /// be requested in AudienceInsightsService. - /// - public sealed partial class InsightsAudience : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InsightsAudience()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InsightsAudience() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InsightsAudience(InsightsAudience other) : this() { - countryLocations_ = other.countryLocations_.Clone(); - subCountryLocations_ = other.subCountryLocations_.Clone(); - gender_ = other.gender_ != null ? other.gender_.Clone() : null; - ageRanges_ = other.ageRanges_.Clone(); - parentalStatus_ = other.parentalStatus_ != null ? other.parentalStatus_.Clone() : null; - incomeRanges_ = other.incomeRanges_.Clone(); - dynamicLineups_ = other.dynamicLineups_.Clone(); - topicAudienceCombinations_ = other.topicAudienceCombinations_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InsightsAudience Clone() { - return new InsightsAudience(this); - } - - /// Field number for the "country_locations" field. - public const int CountryLocationsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_countryLocations_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.LocationInfo.Parser); - private readonly pbc::RepeatedField countryLocations_ = new pbc::RepeatedField(); - /// - /// Required. The countries for the audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CountryLocations { - get { return countryLocations_; } - } - - /// Field number for the "sub_country_locations" field. - public const int SubCountryLocationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_subCountryLocations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.LocationInfo.Parser); - private readonly pbc::RepeatedField subCountryLocations_ = new pbc::RepeatedField(); - /// - /// Sub-country geographic location attributes. If present, each of these - /// must be contained in one of the countries in this audience. If absent, the - /// audience is geographically to the country_locations and no further. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SubCountryLocations { - get { return subCountryLocations_; } - } - - /// Field number for the "gender" field. - public const int GenderFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.GenderInfo gender_; - /// - /// Gender for the audience. If absent, the audience does not restrict by - /// gender. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.GenderInfo Gender { - get { return gender_; } - set { - gender_ = value; - } - } - - /// Field number for the "age_ranges" field. - public const int AgeRangesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_ageRanges_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo.Parser); - private readonly pbc::RepeatedField ageRanges_ = new pbc::RepeatedField(); - /// - /// Age ranges for the audience. If absent, the audience represents all people - /// over 18 that match the other attributes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AgeRanges { - get { return ageRanges_; } - } - - /// Field number for the "parental_status" field. - public const int ParentalStatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo parentalStatus_; - /// - /// Parental status for the audience. If absent, the audience does not - /// restrict by parental status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo ParentalStatus { - get { return parentalStatus_; } - set { - parentalStatus_ = value; - } - } - - /// Field number for the "income_ranges" field. - public const int IncomeRangesFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_incomeRanges_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo.Parser); - private readonly pbc::RepeatedField incomeRanges_ = new pbc::RepeatedField(); - /// - /// Household income percentile ranges for the audience. If absent, the - /// audience does not restrict by household income range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField IncomeRanges { - get { return incomeRanges_; } - } - - /// Field number for the "dynamic_lineups" field. - public const int DynamicLineupsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_dynamicLineups_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsDynamicLineup.Parser); - private readonly pbc::RepeatedField dynamicLineups_ = new pbc::RepeatedField(); - /// - /// Dynamic lineups representing the YouTube content viewed by the audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DynamicLineups { - get { return dynamicLineups_; } - } - - /// Field number for the "topic_audience_combinations" field. - public const int TopicAudienceCombinationsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_topicAudienceCombinations_codec - = pb::FieldCodec.ForMessage(66, global::Google.Ads.GoogleAds.V12.Services.InsightsAudienceAttributeGroup.Parser); - private readonly pbc::RepeatedField topicAudienceCombinations_ = new pbc::RepeatedField(); - /// - /// A combination of entity, category and user interest attributes defining the - /// audience. The combination has a logical AND-of-ORs structure: Attributes - /// within each InsightsAudienceAttributeGroup are combined with OR, and - /// the combinations themselves are combined together with AND. For example, - /// the expression (Entity OR Affinity) AND (In-Market OR Category) can be - /// formed using two InsightsAudienceAttributeGroups with two Attributes - /// each. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TopicAudienceCombinations { - get { return topicAudienceCombinations_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InsightsAudience); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InsightsAudience other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!countryLocations_.Equals(other.countryLocations_)) return false; - if(!subCountryLocations_.Equals(other.subCountryLocations_)) return false; - if (!object.Equals(Gender, other.Gender)) return false; - if(!ageRanges_.Equals(other.ageRanges_)) return false; - if (!object.Equals(ParentalStatus, other.ParentalStatus)) return false; - if(!incomeRanges_.Equals(other.incomeRanges_)) return false; - if(!dynamicLineups_.Equals(other.dynamicLineups_)) return false; - if(!topicAudienceCombinations_.Equals(other.topicAudienceCombinations_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= countryLocations_.GetHashCode(); - hash ^= subCountryLocations_.GetHashCode(); - if (gender_ != null) hash ^= Gender.GetHashCode(); - hash ^= ageRanges_.GetHashCode(); - if (parentalStatus_ != null) hash ^= ParentalStatus.GetHashCode(); - hash ^= incomeRanges_.GetHashCode(); - hash ^= dynamicLineups_.GetHashCode(); - hash ^= topicAudienceCombinations_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - countryLocations_.WriteTo(output, _repeated_countryLocations_codec); - subCountryLocations_.WriteTo(output, _repeated_subCountryLocations_codec); - if (gender_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Gender); - } - ageRanges_.WriteTo(output, _repeated_ageRanges_codec); - if (parentalStatus_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ParentalStatus); - } - incomeRanges_.WriteTo(output, _repeated_incomeRanges_codec); - dynamicLineups_.WriteTo(output, _repeated_dynamicLineups_codec); - topicAudienceCombinations_.WriteTo(output, _repeated_topicAudienceCombinations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - countryLocations_.WriteTo(ref output, _repeated_countryLocations_codec); - subCountryLocations_.WriteTo(ref output, _repeated_subCountryLocations_codec); - if (gender_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Gender); - } - ageRanges_.WriteTo(ref output, _repeated_ageRanges_codec); - if (parentalStatus_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ParentalStatus); - } - incomeRanges_.WriteTo(ref output, _repeated_incomeRanges_codec); - dynamicLineups_.WriteTo(ref output, _repeated_dynamicLineups_codec); - topicAudienceCombinations_.WriteTo(ref output, _repeated_topicAudienceCombinations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += countryLocations_.CalculateSize(_repeated_countryLocations_codec); - size += subCountryLocations_.CalculateSize(_repeated_subCountryLocations_codec); - if (gender_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gender); - } - size += ageRanges_.CalculateSize(_repeated_ageRanges_codec); - if (parentalStatus_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParentalStatus); - } - size += incomeRanges_.CalculateSize(_repeated_incomeRanges_codec); - size += dynamicLineups_.CalculateSize(_repeated_dynamicLineups_codec); - size += topicAudienceCombinations_.CalculateSize(_repeated_topicAudienceCombinations_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InsightsAudience other) { - if (other == null) { - return; - } - countryLocations_.Add(other.countryLocations_); - subCountryLocations_.Add(other.subCountryLocations_); - if (other.gender_ != null) { - if (gender_ == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - Gender.MergeFrom(other.Gender); - } - ageRanges_.Add(other.ageRanges_); - if (other.parentalStatus_ != null) { - if (parentalStatus_ == null) { - ParentalStatus = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - } - ParentalStatus.MergeFrom(other.ParentalStatus); - } - incomeRanges_.Add(other.incomeRanges_); - dynamicLineups_.Add(other.dynamicLineups_); - topicAudienceCombinations_.Add(other.topicAudienceCombinations_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - countryLocations_.AddEntriesFrom(input, _repeated_countryLocations_codec); - break; - } - case 18: { - subCountryLocations_.AddEntriesFrom(input, _repeated_subCountryLocations_codec); - break; - } - case 26: { - if (gender_ == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - input.ReadMessage(Gender); - break; - } - case 34: { - ageRanges_.AddEntriesFrom(input, _repeated_ageRanges_codec); - break; - } - case 42: { - if (parentalStatus_ == null) { - ParentalStatus = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - } - input.ReadMessage(ParentalStatus); - break; - } - case 50: { - incomeRanges_.AddEntriesFrom(input, _repeated_incomeRanges_codec); - break; - } - case 58: { - dynamicLineups_.AddEntriesFrom(input, _repeated_dynamicLineups_codec); - break; - } - case 66: { - topicAudienceCombinations_.AddEntriesFrom(input, _repeated_topicAudienceCombinations_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - countryLocations_.AddEntriesFrom(ref input, _repeated_countryLocations_codec); - break; - } - case 18: { - subCountryLocations_.AddEntriesFrom(ref input, _repeated_subCountryLocations_codec); - break; - } - case 26: { - if (gender_ == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - input.ReadMessage(Gender); - break; - } - case 34: { - ageRanges_.AddEntriesFrom(ref input, _repeated_ageRanges_codec); - break; - } - case 42: { - if (parentalStatus_ == null) { - ParentalStatus = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - } - input.ReadMessage(ParentalStatus); - break; - } - case 50: { - incomeRanges_.AddEntriesFrom(ref input, _repeated_incomeRanges_codec); - break; - } - case 58: { - dynamicLineups_.AddEntriesFrom(ref input, _repeated_dynamicLineups_codec); - break; - } - case 66: { - topicAudienceCombinations_.AddEntriesFrom(ref input, _repeated_topicAudienceCombinations_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A list of AudienceInsightsAttributes. - /// - public sealed partial class InsightsAudienceAttributeGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InsightsAudienceAttributeGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InsightsAudienceAttributeGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InsightsAudienceAttributeGroup(InsightsAudienceAttributeGroup other) : this() { - attributes_ = other.attributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InsightsAudienceAttributeGroup Clone() { - return new InsightsAudienceAttributeGroup(this); - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// Required. A collection of audience attributes to be combined with logical OR. - /// Attributes need not all be the same dimension. Only Knowledge Graph - /// entities, Product & Service Categories, and Affinity and In-Market - /// audiences are supported in this context. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InsightsAudienceAttributeGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InsightsAudienceAttributeGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!attributes_.Equals(other.attributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= attributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - attributes_.WriteTo(output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InsightsAudienceAttributeGroup other) { - if (other == null) { - return; - } - attributes_.Add(other.attributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A collection of related attributes of the same type in an audience - /// composition insights report. - /// - public sealed partial class AudienceCompositionSection : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceCompositionSection()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionSection() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionSection(AudienceCompositionSection other) : this() { - dimension_ = other.dimension_; - topAttributes_ = other.topAttributes_.Clone(); - clusteredAttributes_ = other.clusteredAttributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionSection Clone() { - return new AudienceCompositionSection(this); - } - - /// Field number for the "dimension" field. - public const int DimensionFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension dimension_ = global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified; - /// - /// The type of the attributes in this section. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension Dimension { - get { return dimension_; } - set { - dimension_ = value; - } - } - - /// Field number for the "top_attributes" field. - public const int TopAttributesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_topAttributes_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionAttribute.Parser); - private readonly pbc::RepeatedField topAttributes_ = new pbc::RepeatedField(); - /// - /// The most relevant segments for this audience. If dimension is GENDER, - /// AGE_RANGE or PARENTAL_STATUS, then this list of attributes is exhaustive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TopAttributes { - get { return topAttributes_; } - } - - /// Field number for the "clustered_attributes" field. - public const int ClusteredAttributesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_clusteredAttributes_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionAttributeCluster.Parser); - private readonly pbc::RepeatedField clusteredAttributes_ = new pbc::RepeatedField(); - /// - /// Additional attributes for this audience, grouped into clusters. Only - /// populated if dimension is YOUTUBE_CHANNEL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ClusteredAttributes { - get { return clusteredAttributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceCompositionSection); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceCompositionSection other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Dimension != other.Dimension) return false; - if(!topAttributes_.Equals(other.topAttributes_)) return false; - if(!clusteredAttributes_.Equals(other.clusteredAttributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) hash ^= Dimension.GetHashCode(); - hash ^= topAttributes_.GetHashCode(); - hash ^= clusteredAttributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Dimension); - } - topAttributes_.WriteTo(output, _repeated_topAttributes_codec); - clusteredAttributes_.WriteTo(output, _repeated_clusteredAttributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Dimension); - } - topAttributes_.WriteTo(ref output, _repeated_topAttributes_codec); - clusteredAttributes_.WriteTo(ref output, _repeated_clusteredAttributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dimension); - } - size += topAttributes_.CalculateSize(_repeated_topAttributes_codec); - size += clusteredAttributes_.CalculateSize(_repeated_clusteredAttributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceCompositionSection other) { - if (other == null) { - return; - } - if (other.Dimension != global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.Unspecified) { - Dimension = other.Dimension; - } - topAttributes_.Add(other.topAttributes_); - clusteredAttributes_.Add(other.clusteredAttributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Dimension = (global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension) input.ReadEnum(); - break; - } - case 26: { - topAttributes_.AddEntriesFrom(input, _repeated_topAttributes_codec); - break; - } - case 34: { - clusteredAttributes_.AddEntriesFrom(input, _repeated_clusteredAttributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Dimension = (global::Google.Ads.GoogleAds.V12.Enums.AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension) input.ReadEnum(); - break; - } - case 26: { - topAttributes_.AddEntriesFrom(ref input, _repeated_topAttributes_codec); - break; - } - case 34: { - clusteredAttributes_.AddEntriesFrom(ref input, _repeated_clusteredAttributes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A collection of related attributes, with metadata and metrics, in an audience - /// composition insights report. - /// - public sealed partial class AudienceCompositionAttributeCluster : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceCompositionAttributeCluster()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionAttributeCluster() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionAttributeCluster(AudienceCompositionAttributeCluster other) : this() { - clusterDisplayName_ = other.clusterDisplayName_; - clusterMetrics_ = other.clusterMetrics_ != null ? other.clusterMetrics_.Clone() : null; - attributes_ = other.attributes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionAttributeCluster Clone() { - return new AudienceCompositionAttributeCluster(this); - } - - /// Field number for the "cluster_display_name" field. - public const int ClusterDisplayNameFieldNumber = 1; - private string clusterDisplayName_ = ""; - /// - /// The name of this cluster of attributes - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ClusterDisplayName { - get { return clusterDisplayName_; } - set { - clusterDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "cluster_metrics" field. - public const int ClusterMetricsFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics clusterMetrics_; - /// - /// If the dimension associated with this cluster is YOUTUBE_CHANNEL, then - /// cluster_metrics are metrics associated with the cluster as a whole. - /// For other dimensions, this field is unset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics ClusterMetrics { - get { return clusterMetrics_; } - set { - clusterMetrics_ = value; - } - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionAttribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// The individual attributes that make up this cluster, with metadata and - /// metrics. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceCompositionAttributeCluster); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceCompositionAttributeCluster other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ClusterDisplayName != other.ClusterDisplayName) return false; - if (!object.Equals(ClusterMetrics, other.ClusterMetrics)) return false; - if(!attributes_.Equals(other.attributes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ClusterDisplayName.Length != 0) hash ^= ClusterDisplayName.GetHashCode(); - if (clusterMetrics_ != null) hash ^= ClusterMetrics.GetHashCode(); - hash ^= attributes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ClusterDisplayName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ClusterDisplayName); - } - if (clusterMetrics_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ClusterMetrics); - } - attributes_.WriteTo(output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ClusterDisplayName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ClusterDisplayName); - } - if (clusterMetrics_ != null) { - output.WriteRawTag(26); - output.WriteMessage(ClusterMetrics); - } - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ClusterDisplayName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ClusterDisplayName); - } - if (clusterMetrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClusterMetrics); - } - size += attributes_.CalculateSize(_repeated_attributes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceCompositionAttributeCluster other) { - if (other == null) { - return; - } - if (other.ClusterDisplayName.Length != 0) { - ClusterDisplayName = other.ClusterDisplayName; - } - if (other.clusterMetrics_ != null) { - if (clusterMetrics_ == null) { - ClusterMetrics = new global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics(); - } - ClusterMetrics.MergeFrom(other.ClusterMetrics); - } - attributes_.Add(other.attributes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ClusterDisplayName = input.ReadString(); - break; - } - case 26: { - if (clusterMetrics_ == null) { - ClusterMetrics = new global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics(); - } - input.ReadMessage(ClusterMetrics); - break; - } - case 34: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ClusterDisplayName = input.ReadString(); - break; - } - case 26: { - if (clusterMetrics_ == null) { - ClusterMetrics = new global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics(); - } - input.ReadMessage(ClusterMetrics); - break; - } - case 34: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The share and index metrics associated with an attribute in an audience - /// composition insights report. - /// - public sealed partial class AudienceCompositionMetrics : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceCompositionMetrics()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionMetrics() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionMetrics(AudienceCompositionMetrics other) : this() { - baselineAudienceShare_ = other.baselineAudienceShare_; - audienceShare_ = other.audienceShare_; - index_ = other.index_; - score_ = other.score_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionMetrics Clone() { - return new AudienceCompositionMetrics(this); - } - - /// Field number for the "baseline_audience_share" field. - public const int BaselineAudienceShareFieldNumber = 1; - private double baselineAudienceShare_; - /// - /// The fraction (from 0 to 1 inclusive) of the baseline audience that match - /// the attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double BaselineAudienceShare { - get { return baselineAudienceShare_; } - set { - baselineAudienceShare_ = value; - } - } - - /// Field number for the "audience_share" field. - public const int AudienceShareFieldNumber = 2; - private double audienceShare_; - /// - /// The fraction (from 0 to 1 inclusive) of the specific audience that match - /// the attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double AudienceShare { - get { return audienceShare_; } - set { - audienceShare_ = value; - } - } - - /// Field number for the "index" field. - public const int IndexFieldNumber = 3; - private double index_; - /// - /// The ratio of audience_share to baseline_audience_share, or zero if this - /// ratio is undefined or is not meaningful. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Index { - get { return index_; } - set { - index_ = value; - } - } - - /// Field number for the "score" field. - public const int ScoreFieldNumber = 4; - private double score_; - /// - /// A relevance score from 0 to 1 inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Score { - get { return score_; } - set { - score_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceCompositionMetrics); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceCompositionMetrics other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BaselineAudienceShare, other.BaselineAudienceShare)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AudienceShare, other.AudienceShare)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Index, other.Index)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Score, other.Score)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BaselineAudienceShare != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BaselineAudienceShare); - if (AudienceShare != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AudienceShare); - if (Index != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Index); - if (Score != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Score); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BaselineAudienceShare != 0D) { - output.WriteRawTag(9); - output.WriteDouble(BaselineAudienceShare); - } - if (AudienceShare != 0D) { - output.WriteRawTag(17); - output.WriteDouble(AudienceShare); - } - if (Index != 0D) { - output.WriteRawTag(25); - output.WriteDouble(Index); - } - if (Score != 0D) { - output.WriteRawTag(33); - output.WriteDouble(Score); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BaselineAudienceShare != 0D) { - output.WriteRawTag(9); - output.WriteDouble(BaselineAudienceShare); - } - if (AudienceShare != 0D) { - output.WriteRawTag(17); - output.WriteDouble(AudienceShare); - } - if (Index != 0D) { - output.WriteRawTag(25); - output.WriteDouble(Index); - } - if (Score != 0D) { - output.WriteRawTag(33); - output.WriteDouble(Score); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BaselineAudienceShare != 0D) { - size += 1 + 8; - } - if (AudienceShare != 0D) { - size += 1 + 8; - } - if (Index != 0D) { - size += 1 + 8; - } - if (Score != 0D) { - size += 1 + 8; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceCompositionMetrics other) { - if (other == null) { - return; - } - if (other.BaselineAudienceShare != 0D) { - BaselineAudienceShare = other.BaselineAudienceShare; - } - if (other.AudienceShare != 0D) { - AudienceShare = other.AudienceShare; - } - if (other.Index != 0D) { - Index = other.Index; - } - if (other.Score != 0D) { - Score = other.Score; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 9: { - BaselineAudienceShare = input.ReadDouble(); - break; - } - case 17: { - AudienceShare = input.ReadDouble(); - break; - } - case 25: { - Index = input.ReadDouble(); - break; - } - case 33: { - Score = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 9: { - BaselineAudienceShare = input.ReadDouble(); - break; - } - case 17: { - AudienceShare = input.ReadDouble(); - break; - } - case 25: { - Index = input.ReadDouble(); - break; - } - case 33: { - Score = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - /// - /// An audience attribute with metadata and metrics. - /// - public sealed partial class AudienceCompositionAttribute : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceCompositionAttribute()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionAttribute() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionAttribute(AudienceCompositionAttribute other) : this() { - attributeMetadata_ = other.attributeMetadata_ != null ? other.attributeMetadata_.Clone() : null; - metrics_ = other.metrics_ != null ? other.metrics_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceCompositionAttribute Clone() { - return new AudienceCompositionAttribute(this); - } - - /// Field number for the "attribute_metadata" field. - public const int AttributeMetadataFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata attributeMetadata_; - /// - /// The attribute with its metadata. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata AttributeMetadata { - get { return attributeMetadata_; } - set { - attributeMetadata_ = value; - } - } - - /// Field number for the "metrics" field. - public const int MetricsFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics metrics_; - /// - /// Share and index metrics for the attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics Metrics { - get { return metrics_; } - set { - metrics_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceCompositionAttribute); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceCompositionAttribute other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AttributeMetadata, other.AttributeMetadata)) return false; - if (!object.Equals(Metrics, other.Metrics)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (attributeMetadata_ != null) hash ^= AttributeMetadata.GetHashCode(); - if (metrics_ != null) hash ^= Metrics.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (attributeMetadata_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AttributeMetadata); - } - if (metrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Metrics); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (attributeMetadata_ != null) { - output.WriteRawTag(10); - output.WriteMessage(AttributeMetadata); - } - if (metrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Metrics); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (attributeMetadata_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AttributeMetadata); - } - if (metrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metrics); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceCompositionAttribute other) { - if (other == null) { - return; - } - if (other.attributeMetadata_ != null) { - if (attributeMetadata_ == null) { - AttributeMetadata = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata(); - } - AttributeMetadata.MergeFrom(other.AttributeMetadata); - } - if (other.metrics_ != null) { - if (metrics_ == null) { - Metrics = new global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics(); - } - Metrics.MergeFrom(other.Metrics); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (attributeMetadata_ == null) { - AttributeMetadata = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata(); - } - input.ReadMessage(AttributeMetadata); - break; - } - case 18: { - if (metrics_ == null) { - Metrics = new global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics(); - } - input.ReadMessage(Metrics); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (attributeMetadata_ == null) { - AttributeMetadata = new global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsAttributeMetadata(); - } - input.ReadMessage(AttributeMetadata); - break; - } - case 18: { - if (metrics_ == null) { - Metrics = new global::Google.Ads.GoogleAds.V12.Services.AudienceCompositionMetrics(); - } - input.ReadMessage(Metrics); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AudienceInsightsServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceInsightsServiceClient.g.cs deleted file mode 100755 index 0e93b2dbc..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceInsightsServiceClient.g.cs +++ /dev/null @@ -1,1080 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AudienceInsightsServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AudienceInsightsServiceSettings GetDefault() => new AudienceInsightsServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public AudienceInsightsServiceSettings() - { - } - - private AudienceInsightsServiceSettings(AudienceInsightsServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - GenerateInsightsFinderReportSettings = existing.GenerateInsightsFinderReportSettings; - ListAudienceInsightsAttributesSettings = existing.ListAudienceInsightsAttributesSettings; - ListInsightsEligibleDatesSettings = existing.ListInsightsEligibleDatesSettings; - GenerateAudienceCompositionInsightsSettings = existing.GenerateAudienceCompositionInsightsSettings; - OnCopy(existing); - } - - partial void OnCopy(AudienceInsightsServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AudienceInsightsServiceClient.GenerateInsightsFinderReport and - /// AudienceInsightsServiceClient.GenerateInsightsFinderReportAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateInsightsFinderReportSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// AudienceInsightsServiceClient.ListAudienceInsightsAttributes and - /// AudienceInsightsServiceClient.ListAudienceInsightsAttributesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ListAudienceInsightsAttributesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// AudienceInsightsServiceClient.ListInsightsEligibleDates and - /// AudienceInsightsServiceClient.ListInsightsEligibleDatesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ListInsightsEligibleDatesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// AudienceInsightsServiceClient.GenerateAudienceCompositionInsights and - /// AudienceInsightsServiceClient.GenerateAudienceCompositionInsightsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateAudienceCompositionInsightsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AudienceInsightsServiceSettings Clone() => new AudienceInsightsServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class AudienceInsightsServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AudienceInsightsServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AudienceInsightsServiceClientBuilder() : base(AudienceInsightsServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AudienceInsightsServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AudienceInsightsServiceClient Build() - { - AudienceInsightsServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AudienceInsightsServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AudienceInsightsServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AudienceInsightsServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AudienceInsightsServiceClient.ChannelPool; - } - - /// AudienceInsightsService client wrapper, for convenient use. - /// - /// Audience Insights Service helps users find information about groups of - /// people and how they can be reached with Google Ads. - /// - public abstract partial class AudienceInsightsServiceClient - { - /// - /// The default endpoint for the AudienceInsightsService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AudienceInsightsService scopes. - /// - /// The default AudienceInsightsService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AudienceInsightsService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AudienceInsightsServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static AudienceInsightsServiceClient Create() => new AudienceInsightsServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AudienceInsightsServiceClient Create(grpccore::CallInvoker callInvoker, AudienceInsightsServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AudienceInsightsService.AudienceInsightsServiceClient grpcClient = new AudienceInsightsService.AudienceInsightsServiceClient(callInvoker); - return new AudienceInsightsServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AudienceInsightsService client - public virtual AudienceInsightsService.AudienceInsightsServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateInsightsFinderReportResponse GenerateInsightsFinderReport(GenerateInsightsFinderReportRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateInsightsFinderReportAsync(GenerateInsightsFinderReportRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateInsightsFinderReportAsync(GenerateInsightsFinderReportRequest request, st::CancellationToken cancellationToken) => - GenerateInsightsFinderReportAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. A baseline audience for this report, typically all people in a region. - /// - /// - /// Required. The specific audience of interest for this report. The insights in the - /// report will be based on attributes more prevalent in this audience than - /// in the report's baseline audience. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateInsightsFinderReportResponse GenerateInsightsFinderReport(string customerId, BasicInsightsAudience baselineAudience, BasicInsightsAudience specificAudience, gaxgrpc::CallSettings callSettings = null) => - GenerateInsightsFinderReport(new GenerateInsightsFinderReportRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - BaselineAudience = gax::GaxPreconditions.CheckNotNull(baselineAudience, nameof(baselineAudience)), - SpecificAudience = gax::GaxPreconditions.CheckNotNull(specificAudience, nameof(specificAudience)), - }, callSettings); - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. A baseline audience for this report, typically all people in a region. - /// - /// - /// Required. The specific audience of interest for this report. The insights in the - /// report will be based on attributes more prevalent in this audience than - /// in the report's baseline audience. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateInsightsFinderReportAsync(string customerId, BasicInsightsAudience baselineAudience, BasicInsightsAudience specificAudience, gaxgrpc::CallSettings callSettings = null) => - GenerateInsightsFinderReportAsync(new GenerateInsightsFinderReportRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - BaselineAudience = gax::GaxPreconditions.CheckNotNull(baselineAudience, nameof(baselineAudience)), - SpecificAudience = gax::GaxPreconditions.CheckNotNull(specificAudience, nameof(specificAudience)), - }, callSettings); - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. A baseline audience for this report, typically all people in a region. - /// - /// - /// Required. The specific audience of interest for this report. The insights in the - /// report will be based on attributes more prevalent in this audience than - /// in the report's baseline audience. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateInsightsFinderReportAsync(string customerId, BasicInsightsAudience baselineAudience, BasicInsightsAudience specificAudience, st::CancellationToken cancellationToken) => - GenerateInsightsFinderReportAsync(customerId, baselineAudience, specificAudience, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListAudienceInsightsAttributesResponse ListAudienceInsightsAttributes(ListAudienceInsightsAttributesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListAudienceInsightsAttributesAsync(ListAudienceInsightsAttributesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListAudienceInsightsAttributesAsync(ListAudienceInsightsAttributesRequest request, st::CancellationToken cancellationToken) => - ListAudienceInsightsAttributesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The types of attributes to be returned. - /// - /// - /// Required. A free text query. Attributes matching or related to this string will be - /// returned. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListAudienceInsightsAttributesResponse ListAudienceInsightsAttributes(string customerId, scg::IEnumerable dimensions, string queryText, gaxgrpc::CallSettings callSettings = null) => - ListAudienceInsightsAttributes(new ListAudienceInsightsAttributesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Dimensions = - { - gax::GaxPreconditions.CheckNotNull(dimensions, nameof(dimensions)), - }, - QueryText = gax::GaxPreconditions.CheckNotNullOrEmpty(queryText, nameof(queryText)), - }, callSettings); - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The types of attributes to be returned. - /// - /// - /// Required. A free text query. Attributes matching or related to this string will be - /// returned. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListAudienceInsightsAttributesAsync(string customerId, scg::IEnumerable dimensions, string queryText, gaxgrpc::CallSettings callSettings = null) => - ListAudienceInsightsAttributesAsync(new ListAudienceInsightsAttributesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Dimensions = - { - gax::GaxPreconditions.CheckNotNull(dimensions, nameof(dimensions)), - }, - QueryText = gax::GaxPreconditions.CheckNotNullOrEmpty(queryText, nameof(queryText)), - }, callSettings); - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The types of attributes to be returned. - /// - /// - /// Required. A free text query. Attributes matching or related to this string will be - /// returned. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListAudienceInsightsAttributesAsync(string customerId, scg::IEnumerable dimensions, string queryText, st::CancellationToken cancellationToken) => - ListAudienceInsightsAttributesAsync(customerId, dimensions, queryText, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListInsightsEligibleDatesResponse ListInsightsEligibleDates(ListInsightsEligibleDatesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListInsightsEligibleDatesAsync(ListInsightsEligibleDatesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListInsightsEligibleDatesAsync(ListInsightsEligibleDatesRequest request, st::CancellationToken cancellationToken) => - ListInsightsEligibleDatesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateAudienceCompositionInsightsResponse GenerateAudienceCompositionInsights(GenerateAudienceCompositionInsightsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateAudienceCompositionInsightsAsync(GenerateAudienceCompositionInsightsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateAudienceCompositionInsightsAsync(GenerateAudienceCompositionInsightsRequest request, st::CancellationToken cancellationToken) => - GenerateAudienceCompositionInsightsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The audience of interest for which insights are being requested. - /// - /// - /// Required. The audience dimensions for which composition insights should be returned. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateAudienceCompositionInsightsResponse GenerateAudienceCompositionInsights(string customerId, InsightsAudience audience, scg::IEnumerable dimensions, gaxgrpc::CallSettings callSettings = null) => - GenerateAudienceCompositionInsights(new GenerateAudienceCompositionInsightsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Audience = gax::GaxPreconditions.CheckNotNull(audience, nameof(audience)), - Dimensions = - { - gax::GaxPreconditions.CheckNotNull(dimensions, nameof(dimensions)), - }, - }, callSettings); - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The audience of interest for which insights are being requested. - /// - /// - /// Required. The audience dimensions for which composition insights should be returned. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateAudienceCompositionInsightsAsync(string customerId, InsightsAudience audience, scg::IEnumerable dimensions, gaxgrpc::CallSettings callSettings = null) => - GenerateAudienceCompositionInsightsAsync(new GenerateAudienceCompositionInsightsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Audience = gax::GaxPreconditions.CheckNotNull(audience, nameof(audience)), - Dimensions = - { - gax::GaxPreconditions.CheckNotNull(dimensions, nameof(dimensions)), - }, - }, callSettings); - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer. - /// - /// - /// Required. The audience of interest for which insights are being requested. - /// - /// - /// Required. The audience dimensions for which composition insights should be returned. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateAudienceCompositionInsightsAsync(string customerId, InsightsAudience audience, scg::IEnumerable dimensions, st::CancellationToken cancellationToken) => - GenerateAudienceCompositionInsightsAsync(customerId, audience, dimensions, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AudienceInsightsService client wrapper implementation, for convenient use. - /// - /// Audience Insights Service helps users find information about groups of - /// people and how they can be reached with Google Ads. - /// - public sealed partial class AudienceInsightsServiceClientImpl : AudienceInsightsServiceClient - { - private readonly gaxgrpc::ApiCall _callGenerateInsightsFinderReport; - - private readonly gaxgrpc::ApiCall _callListAudienceInsightsAttributes; - - private readonly gaxgrpc::ApiCall _callListInsightsEligibleDates; - - private readonly gaxgrpc::ApiCall _callGenerateAudienceCompositionInsights; - - /// - /// Constructs a client wrapper for the AudienceInsightsService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public AudienceInsightsServiceClientImpl(AudienceInsightsService.AudienceInsightsServiceClient grpcClient, AudienceInsightsServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AudienceInsightsServiceSettings effectiveSettings = settings ?? AudienceInsightsServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callGenerateInsightsFinderReport = clientHelper.BuildApiCall("GenerateInsightsFinderReport", grpcClient.GenerateInsightsFinderReportAsync, grpcClient.GenerateInsightsFinderReport, effectiveSettings.GenerateInsightsFinderReportSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callGenerateInsightsFinderReport); - Modify_GenerateInsightsFinderReportApiCall(ref _callGenerateInsightsFinderReport); - _callListAudienceInsightsAttributes = clientHelper.BuildApiCall("ListAudienceInsightsAttributes", grpcClient.ListAudienceInsightsAttributesAsync, grpcClient.ListAudienceInsightsAttributes, effectiveSettings.ListAudienceInsightsAttributesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callListAudienceInsightsAttributes); - Modify_ListAudienceInsightsAttributesApiCall(ref _callListAudienceInsightsAttributes); - _callListInsightsEligibleDates = clientHelper.BuildApiCall("ListInsightsEligibleDates", grpcClient.ListInsightsEligibleDatesAsync, grpcClient.ListInsightsEligibleDates, effectiveSettings.ListInsightsEligibleDatesSettings); - Modify_ApiCall(ref _callListInsightsEligibleDates); - Modify_ListInsightsEligibleDatesApiCall(ref _callListInsightsEligibleDates); - _callGenerateAudienceCompositionInsights = clientHelper.BuildApiCall("GenerateAudienceCompositionInsights", grpcClient.GenerateAudienceCompositionInsightsAsync, grpcClient.GenerateAudienceCompositionInsights, effectiveSettings.GenerateAudienceCompositionInsightsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callGenerateAudienceCompositionInsights); - Modify_GenerateAudienceCompositionInsightsApiCall(ref _callGenerateAudienceCompositionInsights); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_GenerateInsightsFinderReportApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ListAudienceInsightsAttributesApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ListInsightsEligibleDatesApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GenerateAudienceCompositionInsightsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AudienceInsightsService.AudienceInsightsServiceClient grpcClient, AudienceInsightsServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AudienceInsightsService client - public override AudienceInsightsService.AudienceInsightsServiceClient GrpcClient { get; } - - partial void Modify_GenerateInsightsFinderReportRequest(ref GenerateInsightsFinderReportRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ListAudienceInsightsAttributesRequest(ref ListAudienceInsightsAttributesRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ListInsightsEligibleDatesRequest(ref ListInsightsEligibleDatesRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GenerateAudienceCompositionInsightsRequest(ref GenerateAudienceCompositionInsightsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateInsightsFinderReportResponse GenerateInsightsFinderReport(GenerateInsightsFinderReportRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateInsightsFinderReportRequest(ref request, ref callSettings); - return _callGenerateInsightsFinderReport.Sync(request, callSettings); - } - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateInsightsFinderReportAsync(GenerateInsightsFinderReportRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateInsightsFinderReportRequest(ref request, ref callSettings); - return _callGenerateInsightsFinderReport.Async(request, callSettings); - } - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override ListAudienceInsightsAttributesResponse ListAudienceInsightsAttributes(ListAudienceInsightsAttributesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListAudienceInsightsAttributesRequest(ref request, ref callSettings); - return _callListAudienceInsightsAttributes.Sync(request, callSettings); - } - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task ListAudienceInsightsAttributesAsync(ListAudienceInsightsAttributesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListAudienceInsightsAttributesRequest(ref request, ref callSettings); - return _callListAudienceInsightsAttributes.Async(request, callSettings); - } - - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override ListInsightsEligibleDatesResponse ListInsightsEligibleDates(ListInsightsEligibleDatesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListInsightsEligibleDatesRequest(ref request, ref callSettings); - return _callListInsightsEligibleDates.Sync(request, callSettings); - } - - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task ListInsightsEligibleDatesAsync(ListInsightsEligibleDatesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListInsightsEligibleDatesRequest(ref request, ref callSettings); - return _callListInsightsEligibleDates.Async(request, callSettings); - } - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateAudienceCompositionInsightsResponse GenerateAudienceCompositionInsights(GenerateAudienceCompositionInsightsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateAudienceCompositionInsightsRequest(ref request, ref callSettings); - return _callGenerateAudienceCompositionInsights.Sync(request, callSettings); - } - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateAudienceCompositionInsightsAsync(GenerateAudienceCompositionInsightsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateAudienceCompositionInsightsRequest(ref request, ref callSettings); - return _callGenerateAudienceCompositionInsights.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AudienceInsightsServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceInsightsServiceGrpc.g.cs deleted file mode 100755 index c4e196d2c..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceInsightsServiceGrpc.g.cs +++ /dev/null @@ -1,645 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/audience_insights_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Audience Insights Service helps users find information about groups of - /// people and how they can be reached with Google Ads. - /// - public static partial class AudienceInsightsService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AudienceInsightsService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateInsightsFinderReportRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateInsightsFinderReportResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListAudienceInsightsAttributesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListAudienceInsightsAttributesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListInsightsEligibleDatesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListInsightsEligibleDatesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateAudienceCompositionInsightsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateAudienceCompositionInsightsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateInsightsFinderReport = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateInsightsFinderReport", - __Marshaller_google_ads_googleads_v12_services_GenerateInsightsFinderReportRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateInsightsFinderReportResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListAudienceInsightsAttributes = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListAudienceInsightsAttributes", - __Marshaller_google_ads_googleads_v12_services_ListAudienceInsightsAttributesRequest, - __Marshaller_google_ads_googleads_v12_services_ListAudienceInsightsAttributesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListInsightsEligibleDates = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListInsightsEligibleDates", - __Marshaller_google_ads_googleads_v12_services_ListInsightsEligibleDatesRequest, - __Marshaller_google_ads_googleads_v12_services_ListInsightsEligibleDatesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateAudienceCompositionInsights = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateAudienceCompositionInsights", - __Marshaller_google_ads_googleads_v12_services_GenerateAudienceCompositionInsightsRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateAudienceCompositionInsightsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceInsightsServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AudienceInsightsService - [grpc::BindServiceMethod(typeof(AudienceInsightsService), "BindService")] - public abstract partial class AudienceInsightsServiceBase - { - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateInsightsFinderReport(global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListAudienceInsightsAttributes(global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListInsightsEligibleDates(global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateAudienceCompositionInsights(global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AudienceInsightsService - public partial class AudienceInsightsServiceClient : grpc::ClientBase - { - /// Creates a new client for AudienceInsightsService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AudienceInsightsServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AudienceInsightsService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AudienceInsightsServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AudienceInsightsServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AudienceInsightsServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportResponse GenerateInsightsFinderReport(global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateInsightsFinderReport(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportResponse GenerateInsightsFinderReport(global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateInsightsFinderReport, null, options, request); - } - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateInsightsFinderReportAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateInsightsFinderReportAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a saved report that can be viewed in the Insights Finder tool. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateInsightsFinderReportAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateInsightsFinderReportRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateInsightsFinderReport, null, options, request); - } - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesResponse ListAudienceInsightsAttributes(global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAudienceInsightsAttributes(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesResponse ListAudienceInsightsAttributes(global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListAudienceInsightsAttributes, null, options, request); - } - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAudienceInsightsAttributesAsync(global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAudienceInsightsAttributesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Searches for audience attributes that can be used to generate insights. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAudienceInsightsAttributesAsync(global::Google.Ads.GoogleAds.V12.Services.ListAudienceInsightsAttributesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListAudienceInsightsAttributes, null, options, request); - } - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesResponse ListInsightsEligibleDates(global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListInsightsEligibleDates(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesResponse ListInsightsEligibleDates(global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListInsightsEligibleDates, null, options, request); - } - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListInsightsEligibleDatesAsync(global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListInsightsEligibleDatesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Lists date ranges for which audience insights data can be requested. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListInsightsEligibleDatesAsync(global::Google.Ads.GoogleAds.V12.Services.ListInsightsEligibleDatesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListInsightsEligibleDates, null, options, request); - } - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsResponse GenerateAudienceCompositionInsights(global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateAudienceCompositionInsights(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsResponse GenerateAudienceCompositionInsights(global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateAudienceCompositionInsights, null, options, request); - } - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateAudienceCompositionInsightsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateAudienceCompositionInsightsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a collection of attributes that are represented in an audience of - /// interest, with metrics that compare each attribute's share of the audience - /// with its share of a baseline audience. - /// - /// List of thrown errors: - /// [AudienceInsightsError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateAudienceCompositionInsightsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateAudienceCompositionInsightsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateAudienceCompositionInsights, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AudienceInsightsServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AudienceInsightsServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AudienceInsightsServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_GenerateInsightsFinderReport, serviceImpl.GenerateInsightsFinderReport) - .AddMethod(__Method_ListAudienceInsightsAttributes, serviceImpl.ListAudienceInsightsAttributes) - .AddMethod(__Method_ListInsightsEligibleDates, serviceImpl.ListInsightsEligibleDates) - .AddMethod(__Method_GenerateAudienceCompositionInsights, serviceImpl.GenerateAudienceCompositionInsights).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AudienceInsightsServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_GenerateInsightsFinderReport, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateInsightsFinderReport)); - serviceBinder.AddMethod(__Method_ListAudienceInsightsAttributes, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAudienceInsightsAttributes)); - serviceBinder.AddMethod(__Method_ListInsightsEligibleDates, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListInsightsEligibleDates)); - serviceBinder.AddMethod(__Method_GenerateAudienceCompositionInsights, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateAudienceCompositionInsights)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AudienceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceResourceNames.g.cs deleted file mode 100755 index 1af19eb3b..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceResourceNames.g.cs +++ /dev/null @@ -1,261 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Audience resource. - public sealed partial class AudienceName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/audiences/{audience_id}. - CustomerAudience = 1, - } - - private static gax::PathTemplate s_customerAudience = new gax::PathTemplate("customers/{customer_id}/audiences/{audience_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static AudienceName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new AudienceName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/audiences/{audience_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Audience ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static AudienceName FromCustomerAudience(string customerId, string audienceId) => - new AudienceName(ResourceNameType.CustomerAudience, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), audienceId: gax::GaxPreconditions.CheckNotNullOrEmpty(audienceId, nameof(audienceId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/audiences/{audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Audience ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/audiences/{audience_id}. - /// - public static string Format(string customerId, string audienceId) => FormatCustomerAudience(customerId, audienceId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/audiences/{audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Audience ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/audiences/{audience_id}. - /// - public static string FormatCustomerAudience(string customerId, string audienceId) => - s_customerAudience.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(audienceId, nameof(audienceId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/audiences/{audience_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static AudienceName Parse(string audienceName) => Parse(audienceName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/audiences/{audience_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static AudienceName Parse(string audienceName, bool allowUnparsed) => - TryParse(audienceName, allowUnparsed, out AudienceName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/audiences/{audience_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string audienceName, out AudienceName result) => TryParse(audienceName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/audiences/{audience_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string audienceName, bool allowUnparsed, out AudienceName result) - { - gax::GaxPreconditions.CheckNotNull(audienceName, nameof(audienceName)); - gax::TemplatedResourceName resourceName; - if (s_customerAudience.TryParseName(audienceName, out resourceName)) - { - result = FromCustomerAudience(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(audienceName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private AudienceName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string audienceId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AudienceId = audienceId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/audiences/{audience_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Audience ID. Must not be null or empty. - public AudienceName(string customerId, string audienceId) : this(ResourceNameType.CustomerAudience, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), audienceId: gax::GaxPreconditions.CheckNotNullOrEmpty(audienceId, nameof(audienceId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Audience ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AudienceId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAudience: return s_customerAudience.Expand(CustomerId, AudienceId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as AudienceName); - - /// - public bool Equals(AudienceName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(AudienceName a, AudienceName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(AudienceName a, AudienceName b) => !(a == b); - } - - public partial class Audience - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AudienceName ResourceNameAsAudienceName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AudienceName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::AudienceName AudienceName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::AudienceName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AudienceService.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceService.g.cs deleted file mode 100755 index 3dc560080..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceService.g.cs +++ /dev/null @@ -1,1258 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/audience_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/audience_service.proto - public static partial class AudienceServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/audience_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudienceServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXVkaWVuY2Vf", - "c2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVzcG9uc2Vf", - "Y29udGVudF90eXBlLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL2F1ZGllbmNlLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRp", - "b25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2ds", - "ZS9ycGMvc3RhdHVzLnByb3RvIp0CChZNdXRhdGVBdWRpZW5jZXNSZXF1ZXN0", - "EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISTQoKb3BlcmF0aW9ucxgCIAMo", - "CzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BdWRpZW5j", - "ZU9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12", - "YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgF", - "IAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25z", - "ZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIpYBChdNdXRh", - "dGVBdWRpZW5jZXNSZXNwb25zZRJICgdyZXN1bHRzGAEgAygLMjcuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUF1ZGllbmNlUmVz", - "dWx0EjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgCIAEoCzISLmdvb2dsZS5y", - "cGMuU3RhdHVzItEBChFBdWRpZW5jZU9wZXJhdGlvbhIvCgt1cGRhdGVfbWFz", - "axgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSPgoGY3JlYXRl", - "GAEgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5B", - "dWRpZW5jZUgAEj4KBnVwZGF0ZRgCIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQXVkaWVuY2VIAEILCglvcGVyYXRpb24ilQEK", - "FE11dGF0ZUF1ZGllbmNlUmVzdWx0Ej0KDXJlc291cmNlX25hbWUYASABKAlC", - "JvpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0F1ZGllbmNlEj4KCGF1", - "ZGllbmNlGAIgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5BdWRpZW5jZTK4AgoPQXVkaWVuY2VTZXJ2aWNlEt0BCg9NdXRhdGVB", - "dWRpZW5jZXMSOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQXVkaWVuY2VzUmVxdWVzdBo6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVBdWRpZW5jZXNSZXNwb25zZSJTgtPkkwI0", - "Ii8vdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vYXVkaWVuY2VzOm11", - "dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29t", - "L2F1dGgvYWR3b3Jkc0KAAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlc0IUQXVkaWVuY2VTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxT", - "ZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2Vydmlj", - "ZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AudienceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest), global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesResponse), global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AudienceOperation), global::Google.Ads.GoogleAds.V12.Services.AudienceOperation.Parser, new[]{ "UpdateMask", "Create", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult), global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult.Parser, new[]{ "ResourceName", "Audience" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [AudienceService.MutateAudiences][google.ads.googleads.v12.services.AudienceService.MutateAudiences]. - /// - public sealed partial class MutateAudiencesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAudiencesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudiencesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudiencesRequest(MutateAudiencesRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudiencesRequest Clone() { - return new MutateAudiencesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose audiences are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.AudienceOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual audiences. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid operations - /// will return errors. If false, all operations will be carried out in one - /// transaction if and only if they are all valid. Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAudiencesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAudiencesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAudiencesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an audience mutate. - /// - public sealed partial class MutateAudiencesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAudiencesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudiencesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudiencesResponse(MutateAudiencesResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudiencesResponse Clone() { - return new MutateAudiencesResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAudiencesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAudiencesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAudiencesResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update) on an audience. - /// - public sealed partial class AudienceOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceOperation(AudienceOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceOperation Clone() { - return new AudienceOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new audience - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Audience Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.Audience) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The audience is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Audience Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.Audience) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Audience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Audience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Audience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Audience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the audience mutate. - /// - public sealed partial class MutateAudienceResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateAudienceResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudienceResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudienceResult(MutateAudienceResult other) : this() { - resourceName_ = other.resourceName_; - audience_ = other.audience_ != null ? other.audience_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateAudienceResult Clone() { - return new MutateAudienceResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "audience" field. - public const int AudienceFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Audience audience_; - /// - /// The mutated Audience with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Audience Audience { - get { return audience_; } - set { - audience_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateAudienceResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateAudienceResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(Audience, other.Audience)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (audience_ != null) hash ^= Audience.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (audience_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (audience_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (audience_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Audience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateAudienceResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.audience_ != null) { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - Audience.MergeFrom(other.Audience); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - input.ReadMessage(Audience); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - input.ReadMessage(Audience); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AudienceServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceServiceClient.g.cs deleted file mode 100755 index d6fe15b20..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceServiceClient.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class AudienceServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static AudienceServiceSettings GetDefault() => new AudienceServiceSettings(); - - /// Constructs a new object with default settings. - public AudienceServiceSettings() - { - } - - private AudienceServiceSettings(AudienceServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateAudiencesSettings = existing.MutateAudiencesSettings; - OnCopy(existing); - } - - partial void OnCopy(AudienceServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// AudienceServiceClient.MutateAudiences and AudienceServiceClient.MutateAudiencesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateAudiencesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public AudienceServiceSettings Clone() => new AudienceServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class AudienceServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public AudienceServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public AudienceServiceClientBuilder() : base(AudienceServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref AudienceServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override AudienceServiceClient Build() - { - AudienceServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private AudienceServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return AudienceServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return AudienceServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => AudienceServiceClient.ChannelPool; - } - - /// AudienceService client wrapper, for convenient use. - /// - /// Service to manage audiences. - /// - public abstract partial class AudienceServiceClient - { - /// - /// The default endpoint for the AudienceService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default AudienceService scopes. - /// - /// The default AudienceService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(AudienceService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new AudienceServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static AudienceServiceClient Create() => new AudienceServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static AudienceServiceClient Create(grpccore::CallInvoker callInvoker, AudienceServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - AudienceService.AudienceServiceClient grpcClient = new AudienceService.AudienceServiceClient(callInvoker); - return new AudienceServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC AudienceService client - public virtual AudienceService.AudienceServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAudiencesResponse MutateAudiences(MutateAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAudiencesAsync(MutateAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAudiencesAsync(MutateAudiencesRequest request, st::CancellationToken cancellationToken) => - MutateAudiencesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// - /// Required. The ID of the customer whose audiences are being modified. - /// - /// - /// Required. The list of operations to perform on individual audiences. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateAudiencesResponse MutateAudiences(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAudiences(new MutateAudiencesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// - /// Required. The ID of the customer whose audiences are being modified. - /// - /// - /// Required. The list of operations to perform on individual audiences. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAudiencesAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateAudiencesAsync(new MutateAudiencesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// - /// Required. The ID of the customer whose audiences are being modified. - /// - /// - /// Required. The list of operations to perform on individual audiences. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAudiencesAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateAudiencesAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// AudienceService client wrapper implementation, for convenient use. - /// - /// Service to manage audiences. - /// - public sealed partial class AudienceServiceClientImpl : AudienceServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateAudiences; - - /// - /// Constructs a client wrapper for the AudienceService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public AudienceServiceClientImpl(AudienceService.AudienceServiceClient grpcClient, AudienceServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - AudienceServiceSettings effectiveSettings = settings ?? AudienceServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateAudiences = clientHelper.BuildApiCall("MutateAudiences", grpcClient.MutateAudiencesAsync, grpcClient.MutateAudiences, effectiveSettings.MutateAudiencesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateAudiences); - Modify_MutateAudiencesApiCall(ref _callMutateAudiences); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateAudiencesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(AudienceService.AudienceServiceClient grpcClient, AudienceServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC AudienceService client - public override AudienceService.AudienceServiceClient GrpcClient { get; } - - partial void Modify_MutateAudiencesRequest(ref MutateAudiencesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateAudiencesResponse MutateAudiences(MutateAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAudiencesRequest(ref request, ref callSettings); - return _callMutateAudiences.Sync(request, callSettings); - } - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAudiencesAsync(MutateAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateAudiencesRequest(ref request, ref callSettings); - return _callMutateAudiences.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AudienceServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceServiceGrpc.g.cs deleted file mode 100755 index 8cffa8ac0..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceServiceGrpc.g.cs +++ /dev/null @@ -1,222 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/audience_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage audiences. - /// - public static partial class AudienceService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.AudienceService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAudiencesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateAudiencesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateAudiences = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateAudiences", - __Marshaller_google_ads_googleads_v12_services_MutateAudiencesRequest, - __Marshaller_google_ads_googleads_v12_services_MutateAudiencesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.AudienceServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of AudienceService - [grpc::BindServiceMethod(typeof(AudienceService), "BindService")] - public abstract partial class AudienceServiceBase - { - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateAudiences(global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for AudienceService - public partial class AudienceServiceClient : grpc::ClientBase - { - /// Creates a new client for AudienceService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AudienceServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for AudienceService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public AudienceServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AudienceServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected AudienceServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesResponse MutateAudiences(global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAudiences(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesResponse MutateAudiences(global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateAudiences, null, options, request); - } - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAudiencesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAudiencesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AudienceError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAudiencesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateAudiencesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateAudiences, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override AudienceServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new AudienceServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(AudienceServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateAudiences, serviceImpl.MutateAudiences).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, AudienceServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateAudiences, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateAudiences)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/AudienceServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceServiceResourceNames.g.cs deleted file mode 100755 index 4d9208f44..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceServiceResourceNames.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateAudienceResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AudienceName ResourceNameAsAudienceName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::AudienceName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/AudienceStatus.g.cs b/Google.Ads.GoogleAds/src/V12/AudienceStatus.g.cs deleted file mode 100755 index 7a2605fcf..000000000 --- a/Google.Ads.GoogleAds/src/V12/AudienceStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/audience_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/audience_status.proto - public static partial class AudienceStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/audience_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudienceStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXVkaWVuY2Vfc3Rh", - "dHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiXgoS", - "QXVkaWVuY2VTdGF0dXNFbnVtIkgKDkF1ZGllbmNlU3RhdHVzEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0VOQUJMRUQQAhILCgdSRU1PVkVE", - "EANC7QEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCE0F1", - "ZGllbmNlU3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv", - "dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6IC", - "A0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusEnum.Types.AudienceStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The status of audience. - /// - public sealed partial class AudienceStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.AudienceStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceStatusEnum(AudienceStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceStatusEnum Clone() { - return new AudienceStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AudienceStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible audience status types. - /// - public enum AudienceStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Enabled status - audience is enabled and can be targeted. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Removed status - audience is removed and cannot be used for - /// targeting. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Audiences.g.cs b/Google.Ads.GoogleAds/src/V12/Audiences.g.cs deleted file mode 100755 index 6f0b293e3..000000000 --- a/Google.Ads.GoogleAds/src/V12/Audiences.g.cs +++ /dev/null @@ -1,3912 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/audiences.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/audiences.proto - public static partial class AudiencesReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/audiences.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AudiencesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2F1ZGllbmNlcy5w", - "cm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbhowZ29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2dlbmRlcl90eXBlLnByb3RvGjZn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaW5jb21lX3JhbmdlX3R5", - "cGUucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wYXJl", - "bnRhbF9zdGF0dXNfdHlwZS5wcm90byKmAwoRQXVkaWVuY2VEaW1lbnNpb24S", - "PAoDYWdlGAEgASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5BZ2VEaW1lbnNpb25IABJCCgZnZW5kZXIYAiABKAsyMC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLkdlbmRlckRpbWVuc2lvbkgAElUKEGhv", - "dXNlaG9sZF9pbmNvbWUYAyABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLkhvdXNlaG9sZEluY29tZURpbWVuc2lvbkgAElMKD3BhcmVu", - "dGFsX3N0YXR1cxgEIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uUGFyZW50YWxTdGF0dXNEaW1lbnNpb25IABJWChFhdWRpZW5jZV9z", - "ZWdtZW50cxgFIAEoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uQXVkaWVuY2VTZWdtZW50RGltZW5zaW9uSABCCwoJZGltZW5zaW9uImMK", - "GkF1ZGllbmNlRXhjbHVzaW9uRGltZW5zaW9uEkUKCmV4Y2x1c2lvbnMYASAD", - "KAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkV4Y2x1c2lv", - "blNlZ21lbnQiZAoQRXhjbHVzaW9uU2VnbWVudBJFCgl1c2VyX2xpc3QYASAB", - "KAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlVzZXJMaXN0", - "U2VnbWVudEgAQgkKB3NlZ21lbnQiiwEKDEFnZURpbWVuc2lvbhI/CgphZ2Vf", - "cmFuZ2VzGAEgAygLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5BZ2VTZWdtZW50EiEKFGluY2x1ZGVfdW5kZXRlcm1pbmVkGAIgASgISACI", - "AQFCFwoVX2luY2x1ZGVfdW5kZXRlcm1pbmVkIlAKCkFnZVNlZ21lbnQSFAoH", - "bWluX2FnZRgBIAEoBUgAiAEBEhQKB21heF9hZ2UYAiABKAVIAYgBAUIKCghf", - "bWluX2FnZUIKCghfbWF4X2FnZSKZAQoPR2VuZGVyRGltZW5zaW9uEkoKB2dl", - "bmRlcnMYASADKA4yOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "R2VuZGVyVHlwZUVudW0uR2VuZGVyVHlwZRIhChRpbmNsdWRlX3VuZGV0ZXJt", - "aW5lZBgCIAEoCEgAiAEBQhcKFV9pbmNsdWRlX3VuZGV0ZXJtaW5lZCKyAQoY", - "SG91c2Vob2xkSW5jb21lRGltZW5zaW9uEloKDWluY29tZV9yYW5nZXMYASAD", - "KA4yQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuSW5jb21lUmFu", - "Z2VUeXBlRW51bS5JbmNvbWVSYW5nZVR5cGUSIQoUaW5jbHVkZV91bmRldGVy", - "bWluZWQYAiABKAhIAIgBAUIXChVfaW5jbHVkZV91bmRldGVybWluZWQiuwEK", - "F1BhcmVudGFsU3RhdHVzRGltZW5zaW9uEmQKEXBhcmVudGFsX3N0YXR1c2Vz", - "GAEgAygOMkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlBhcmVu", - "dGFsU3RhdHVzVHlwZUVudW0uUGFyZW50YWxTdGF0dXNUeXBlEiEKFGluY2x1", - "ZGVfdW5kZXRlcm1pbmVkGAIgASgISACIAQFCFwoVX2luY2x1ZGVfdW5kZXRl", - "cm1pbmVkIl4KGEF1ZGllbmNlU2VnbWVudERpbWVuc2lvbhJCCghzZWdtZW50", - "cxgBIAMoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQXVk", - "aWVuY2VTZWdtZW50IqsDCg9BdWRpZW5jZVNlZ21lbnQSRQoJdXNlcl9saXN0", - "GAEgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Vc2Vy", - "TGlzdFNlZ21lbnRIABJNCg11c2VyX2ludGVyZXN0GAIgASgLMjQuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Vc2VySW50ZXJlc3RTZWdtZW50", - "SAASRwoKbGlmZV9ldmVudBgDIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5jb21tb24uTGlmZUV2ZW50U2VnbWVudEgAElsKFGRldGFpbGVkX2Rl", - "bW9ncmFwaGljGAQgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5EZXRhaWxlZERlbW9ncmFwaGljU2VnbWVudEgAElEKD2N1c3RvbV9h", - "dWRpZW5jZRgFIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uQ3VzdG9tQXVkaWVuY2VTZWdtZW50SABCCQoHc2VnbWVudCI3Cg9Vc2Vy", - "TGlzdFNlZ21lbnQSFgoJdXNlcl9saXN0GAEgASgJSACIAQFCDAoKX3VzZXJf", - "bGlzdCJVChNVc2VySW50ZXJlc3RTZWdtZW50EiMKFnVzZXJfaW50ZXJlc3Rf", - "Y2F0ZWdvcnkYASABKAlIAIgBAUIZChdfdXNlcl9pbnRlcmVzdF9jYXRlZ29y", - "eSI6ChBMaWZlRXZlbnRTZWdtZW50EhcKCmxpZmVfZXZlbnQYASABKAlIAIgB", - "AUINCgtfbGlmZV9ldmVudCJYChpEZXRhaWxlZERlbW9ncmFwaGljU2VnbWVu", - "dBIhChRkZXRhaWxlZF9kZW1vZ3JhcGhpYxgBIAEoCUgAiAEBQhcKFV9kZXRh", - "aWxlZF9kZW1vZ3JhcGhpYyJJChVDdXN0b21BdWRpZW5jZVNlZ21lbnQSHAoP", - "Y3VzdG9tX2F1ZGllbmNlGAEgASgJSACIAQFCEgoQX2N1c3RvbV9hdWRpZW5j", - "ZULuAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb25CDkF1", - "ZGllbmNlc1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uO2NvbW1vbqICA0dB", - "QaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5Db21tb27KAh9Hb29nbGVc", - "QWRzXEdvb2dsZUFkc1xWMTJcQ29tbW9u6gIjR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpDb21tb25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.GenderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AudienceDimension), global::Google.Ads.GoogleAds.V12.Common.AudienceDimension.Parser, new[]{ "Age", "Gender", "HouseholdIncome", "ParentalStatus", "AudienceSegments" }, new[]{ "Dimension" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AudienceExclusionDimension), global::Google.Ads.GoogleAds.V12.Common.AudienceExclusionDimension.Parser, new[]{ "Exclusions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ExclusionSegment), global::Google.Ads.GoogleAds.V12.Common.ExclusionSegment.Parser, new[]{ "UserList" }, new[]{ "Segment" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AgeDimension), global::Google.Ads.GoogleAds.V12.Common.AgeDimension.Parser, new[]{ "AgeRanges", "IncludeUndetermined" }, new[]{ "IncludeUndetermined" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AgeSegment), global::Google.Ads.GoogleAds.V12.Common.AgeSegment.Parser, new[]{ "MinAge", "MaxAge" }, new[]{ "MinAge", "MaxAge" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.GenderDimension), global::Google.Ads.GoogleAds.V12.Common.GenderDimension.Parser, new[]{ "Genders", "IncludeUndetermined" }, new[]{ "IncludeUndetermined" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension), global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension.Parser, new[]{ "IncomeRanges", "IncludeUndetermined" }, new[]{ "IncludeUndetermined" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension), global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension.Parser, new[]{ "ParentalStatuses", "IncludeUndetermined" }, new[]{ "IncludeUndetermined" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension), global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension.Parser, new[]{ "Segments" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AudienceSegment), global::Google.Ads.GoogleAds.V12.Common.AudienceSegment.Parser, new[]{ "UserList", "UserInterest", "LifeEvent", "DetailedDemographic", "CustomAudience" }, new[]{ "Segment" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.UserListSegment), global::Google.Ads.GoogleAds.V12.Common.UserListSegment.Parser, new[]{ "UserList" }, new[]{ "UserList" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment), global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment.Parser, new[]{ "UserInterestCategory" }, new[]{ "UserInterestCategory" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment), global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment.Parser, new[]{ "LifeEvent" }, new[]{ "LifeEvent" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment), global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment.Parser, new[]{ "DetailedDemographic" }, new[]{ "DetailedDemographic" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment), global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment.Parser, new[]{ "CustomAudience" }, new[]{ "CustomAudience" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Positive dimension specifying user's audience. - /// - public sealed partial class AudienceDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceDimension()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceDimension(AudienceDimension other) : this() { - switch (other.DimensionCase) { - case DimensionOneofCase.Age: - Age = other.Age.Clone(); - break; - case DimensionOneofCase.Gender: - Gender = other.Gender.Clone(); - break; - case DimensionOneofCase.HouseholdIncome: - HouseholdIncome = other.HouseholdIncome.Clone(); - break; - case DimensionOneofCase.ParentalStatus: - ParentalStatus = other.ParentalStatus.Clone(); - break; - case DimensionOneofCase.AudienceSegments: - AudienceSegments = other.AudienceSegments.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceDimension Clone() { - return new AudienceDimension(this); - } - - /// Field number for the "age" field. - public const int AgeFieldNumber = 1; - /// - /// Dimension specifying users by their age. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AgeDimension Age { - get { return dimensionCase_ == DimensionOneofCase.Age ? (global::Google.Ads.GoogleAds.V12.Common.AgeDimension) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.Age; - } - } - - /// Field number for the "gender" field. - public const int GenderFieldNumber = 2; - /// - /// Dimension specifying users by their gender. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.GenderDimension Gender { - get { return dimensionCase_ == DimensionOneofCase.Gender ? (global::Google.Ads.GoogleAds.V12.Common.GenderDimension) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.Gender; - } - } - - /// Field number for the "household_income" field. - public const int HouseholdIncomeFieldNumber = 3; - /// - /// Dimension specifying users by their household income. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension HouseholdIncome { - get { return dimensionCase_ == DimensionOneofCase.HouseholdIncome ? (global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.HouseholdIncome; - } - } - - /// Field number for the "parental_status" field. - public const int ParentalStatusFieldNumber = 4; - /// - /// Dimension specifying users by their parental status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension ParentalStatus { - get { return dimensionCase_ == DimensionOneofCase.ParentalStatus ? (global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ParentalStatus; - } - } - - /// Field number for the "audience_segments" field. - public const int AudienceSegmentsFieldNumber = 5; - /// - /// Dimension specifying users by their membership in other audience - /// segments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension AudienceSegments { - get { return dimensionCase_ == DimensionOneofCase.AudienceSegments ? (global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.AudienceSegments; - } - } - - private object dimension_; - /// Enum of possible cases for the "dimension" oneof. - public enum DimensionOneofCase { - None = 0, - Age = 1, - Gender = 2, - HouseholdIncome = 3, - ParentalStatus = 4, - AudienceSegments = 5, - } - private DimensionOneofCase dimensionCase_ = DimensionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DimensionOneofCase DimensionCase { - get { return dimensionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDimension() { - dimensionCase_ = DimensionOneofCase.None; - dimension_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Age, other.Age)) return false; - if (!object.Equals(Gender, other.Gender)) return false; - if (!object.Equals(HouseholdIncome, other.HouseholdIncome)) return false; - if (!object.Equals(ParentalStatus, other.ParentalStatus)) return false; - if (!object.Equals(AudienceSegments, other.AudienceSegments)) return false; - if (DimensionCase != other.DimensionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (dimensionCase_ == DimensionOneofCase.Age) hash ^= Age.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.Gender) hash ^= Gender.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.HouseholdIncome) hash ^= HouseholdIncome.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ParentalStatus) hash ^= ParentalStatus.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.AudienceSegments) hash ^= AudienceSegments.GetHashCode(); - hash ^= (int) dimensionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (dimensionCase_ == DimensionOneofCase.Age) { - output.WriteRawTag(10); - output.WriteMessage(Age); - } - if (dimensionCase_ == DimensionOneofCase.Gender) { - output.WriteRawTag(18); - output.WriteMessage(Gender); - } - if (dimensionCase_ == DimensionOneofCase.HouseholdIncome) { - output.WriteRawTag(26); - output.WriteMessage(HouseholdIncome); - } - if (dimensionCase_ == DimensionOneofCase.ParentalStatus) { - output.WriteRawTag(34); - output.WriteMessage(ParentalStatus); - } - if (dimensionCase_ == DimensionOneofCase.AudienceSegments) { - output.WriteRawTag(42); - output.WriteMessage(AudienceSegments); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (dimensionCase_ == DimensionOneofCase.Age) { - output.WriteRawTag(10); - output.WriteMessage(Age); - } - if (dimensionCase_ == DimensionOneofCase.Gender) { - output.WriteRawTag(18); - output.WriteMessage(Gender); - } - if (dimensionCase_ == DimensionOneofCase.HouseholdIncome) { - output.WriteRawTag(26); - output.WriteMessage(HouseholdIncome); - } - if (dimensionCase_ == DimensionOneofCase.ParentalStatus) { - output.WriteRawTag(34); - output.WriteMessage(ParentalStatus); - } - if (dimensionCase_ == DimensionOneofCase.AudienceSegments) { - output.WriteRawTag(42); - output.WriteMessage(AudienceSegments); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (dimensionCase_ == DimensionOneofCase.Age) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Age); - } - if (dimensionCase_ == DimensionOneofCase.Gender) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gender); - } - if (dimensionCase_ == DimensionOneofCase.HouseholdIncome) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HouseholdIncome); - } - if (dimensionCase_ == DimensionOneofCase.ParentalStatus) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ParentalStatus); - } - if (dimensionCase_ == DimensionOneofCase.AudienceSegments) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudienceSegments); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceDimension other) { - if (other == null) { - return; - } - switch (other.DimensionCase) { - case DimensionOneofCase.Age: - if (Age == null) { - Age = new global::Google.Ads.GoogleAds.V12.Common.AgeDimension(); - } - Age.MergeFrom(other.Age); - break; - case DimensionOneofCase.Gender: - if (Gender == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderDimension(); - } - Gender.MergeFrom(other.Gender); - break; - case DimensionOneofCase.HouseholdIncome: - if (HouseholdIncome == null) { - HouseholdIncome = new global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension(); - } - HouseholdIncome.MergeFrom(other.HouseholdIncome); - break; - case DimensionOneofCase.ParentalStatus: - if (ParentalStatus == null) { - ParentalStatus = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension(); - } - ParentalStatus.MergeFrom(other.ParentalStatus); - break; - case DimensionOneofCase.AudienceSegments: - if (AudienceSegments == null) { - AudienceSegments = new global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension(); - } - AudienceSegments.MergeFrom(other.AudienceSegments); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.AgeDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeDimension(); - if (dimensionCase_ == DimensionOneofCase.Age) { - subBuilder.MergeFrom(Age); - } - input.ReadMessage(subBuilder); - Age = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.GenderDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderDimension(); - if (dimensionCase_ == DimensionOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension(); - if (dimensionCase_ == DimensionOneofCase.HouseholdIncome) { - subBuilder.MergeFrom(HouseholdIncome); - } - input.ReadMessage(subBuilder); - HouseholdIncome = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension(); - if (dimensionCase_ == DimensionOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension(); - if (dimensionCase_ == DimensionOneofCase.AudienceSegments) { - subBuilder.MergeFrom(AudienceSegments); - } - input.ReadMessage(subBuilder); - AudienceSegments = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.AgeDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeDimension(); - if (dimensionCase_ == DimensionOneofCase.Age) { - subBuilder.MergeFrom(Age); - } - input.ReadMessage(subBuilder); - Age = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.GenderDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderDimension(); - if (dimensionCase_ == DimensionOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HouseholdIncomeDimension(); - if (dimensionCase_ == DimensionOneofCase.HouseholdIncome) { - subBuilder.MergeFrom(HouseholdIncome); - } - input.ReadMessage(subBuilder); - HouseholdIncome = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusDimension(); - if (dimensionCase_ == DimensionOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AudienceSegmentDimension(); - if (dimensionCase_ == DimensionOneofCase.AudienceSegments) { - subBuilder.MergeFrom(AudienceSegments); - } - input.ReadMessage(subBuilder); - AudienceSegments = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Negative dimension specifying users to exclude from the audience. - /// - public sealed partial class AudienceExclusionDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceExclusionDimension()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceExclusionDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceExclusionDimension(AudienceExclusionDimension other) : this() { - exclusions_ = other.exclusions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceExclusionDimension Clone() { - return new AudienceExclusionDimension(this); - } - - /// Field number for the "exclusions" field. - public const int ExclusionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_exclusions_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.ExclusionSegment.Parser); - private readonly pbc::RepeatedField exclusions_ = new pbc::RepeatedField(); - /// - /// Audience segment to be excluded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Exclusions { - get { return exclusions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceExclusionDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceExclusionDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!exclusions_.Equals(other.exclusions_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= exclusions_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - exclusions_.WriteTo(output, _repeated_exclusions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - exclusions_.WriteTo(ref output, _repeated_exclusions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += exclusions_.CalculateSize(_repeated_exclusions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceExclusionDimension other) { - if (other == null) { - return; - } - exclusions_.Add(other.exclusions_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - exclusions_.AddEntriesFrom(input, _repeated_exclusions_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - exclusions_.AddEntriesFrom(ref input, _repeated_exclusions_codec); - break; - } - } - } - } - #endif - - } - - /// - /// An audience segment to be excluded from an audience. - /// - public sealed partial class ExclusionSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExclusionSegment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExclusionSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExclusionSegment(ExclusionSegment other) : this() { - switch (other.SegmentCase) { - case SegmentOneofCase.UserList: - UserList = other.UserList.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExclusionSegment Clone() { - return new ExclusionSegment(this); - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 1; - /// - /// User list segment to be excluded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserListSegment UserList { - get { return segmentCase_ == SegmentOneofCase.UserList ? (global::Google.Ads.GoogleAds.V12.Common.UserListSegment) segment_ : null; } - set { - segment_ = value; - segmentCase_ = value == null ? SegmentOneofCase.None : SegmentOneofCase.UserList; - } - } - - private object segment_; - /// Enum of possible cases for the "segment" oneof. - public enum SegmentOneofCase { - None = 0, - UserList = 1, - } - private SegmentOneofCase segmentCase_ = SegmentOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SegmentOneofCase SegmentCase { - get { return segmentCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSegment() { - segmentCase_ = SegmentOneofCase.None; - segment_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExclusionSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExclusionSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UserList, other.UserList)) return false; - if (SegmentCase != other.SegmentCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (segmentCase_ == SegmentOneofCase.UserList) hash ^= UserList.GetHashCode(); - hash ^= (int) segmentCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (segmentCase_ == SegmentOneofCase.UserList) { - output.WriteRawTag(10); - output.WriteMessage(UserList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (segmentCase_ == SegmentOneofCase.UserList) { - output.WriteRawTag(10); - output.WriteMessage(UserList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (segmentCase_ == SegmentOneofCase.UserList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExclusionSegment other) { - if (other == null) { - return; - } - switch (other.SegmentCase) { - case SegmentOneofCase.UserList: - if (UserList == null) { - UserList = new global::Google.Ads.GoogleAds.V12.Common.UserListSegment(); - } - UserList.MergeFrom(other.UserList); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.UserListSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListSegment(); - if (segmentCase_ == SegmentOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.UserListSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListSegment(); - if (segmentCase_ == SegmentOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Dimension specifying users by their age. - /// - public sealed partial class AgeDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgeDimension()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeDimension(AgeDimension other) : this() { - _hasBits0 = other._hasBits0; - ageRanges_ = other.ageRanges_.Clone(); - includeUndetermined_ = other.includeUndetermined_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeDimension Clone() { - return new AgeDimension(this); - } - - /// Field number for the "age_ranges" field. - public const int AgeRangesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_ageRanges_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AgeSegment.Parser); - private readonly pbc::RepeatedField ageRanges_ = new pbc::RepeatedField(); - /// - /// Contiguous age range to be included in the dimension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AgeRanges { - get { return ageRanges_; } - } - - /// Field number for the "include_undetermined" field. - public const int IncludeUndeterminedFieldNumber = 2; - private bool includeUndetermined_; - /// - /// Include users whose age is not determined. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeUndetermined { - get { if ((_hasBits0 & 1) != 0) { return includeUndetermined_; } else { return false; } } - set { - _hasBits0 |= 1; - includeUndetermined_ = value; - } - } - /// Gets whether the "include_undetermined" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIncludeUndetermined { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "include_undetermined" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIncludeUndetermined() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AgeDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AgeDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!ageRanges_.Equals(other.ageRanges_)) return false; - if (IncludeUndetermined != other.IncludeUndetermined) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= ageRanges_.GetHashCode(); - if (HasIncludeUndetermined) hash ^= IncludeUndetermined.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - ageRanges_.WriteTo(output, _repeated_ageRanges_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - ageRanges_.WriteTo(ref output, _repeated_ageRanges_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += ageRanges_.CalculateSize(_repeated_ageRanges_codec); - if (HasIncludeUndetermined) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AgeDimension other) { - if (other == null) { - return; - } - ageRanges_.Add(other.ageRanges_); - if (other.HasIncludeUndetermined) { - IncludeUndetermined = other.IncludeUndetermined; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ageRanges_.AddEntriesFrom(input, _repeated_ageRanges_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ageRanges_.AddEntriesFrom(ref input, _repeated_ageRanges_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Contiguous age range. - /// - public sealed partial class AgeSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgeSegment()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeSegment(AgeSegment other) : this() { - _hasBits0 = other._hasBits0; - minAge_ = other.minAge_; - maxAge_ = other.maxAge_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeSegment Clone() { - return new AgeSegment(this); - } - - /// Field number for the "min_age" field. - public const int MinAgeFieldNumber = 1; - private int minAge_; - /// - /// Minimum age to include. A minimum age must be specified and must be at - /// least 18. Allowed values are 18, 25, 35, 45, 55, and 65. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MinAge { - get { if ((_hasBits0 & 1) != 0) { return minAge_; } else { return 0; } } - set { - _hasBits0 |= 1; - minAge_ = value; - } - } - /// Gets whether the "min_age" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMinAge { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "min_age" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMinAge() { - _hasBits0 &= ~1; - } - - /// Field number for the "max_age" field. - public const int MaxAgeFieldNumber = 2; - private int maxAge_; - /// - /// Maximum age to include. A maximum age need not be specified. If specified, - /// max_age must be greater than min_age, and allowed values are 24, 34, 44, - /// 54, and 64. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int MaxAge { - get { if ((_hasBits0 & 2) != 0) { return maxAge_; } else { return 0; } } - set { - _hasBits0 |= 2; - maxAge_ = value; - } - } - /// Gets whether the "max_age" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxAge { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "max_age" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxAge() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AgeSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AgeSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MinAge != other.MinAge) return false; - if (MaxAge != other.MaxAge) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMinAge) hash ^= MinAge.GetHashCode(); - if (HasMaxAge) hash ^= MaxAge.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasMinAge) { - output.WriteRawTag(8); - output.WriteInt32(MinAge); - } - if (HasMaxAge) { - output.WriteRawTag(16); - output.WriteInt32(MaxAge); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasMinAge) { - output.WriteRawTag(8); - output.WriteInt32(MinAge); - } - if (HasMaxAge) { - output.WriteRawTag(16); - output.WriteInt32(MaxAge); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMinAge) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinAge); - } - if (HasMaxAge) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxAge); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AgeSegment other) { - if (other == null) { - return; - } - if (other.HasMinAge) { - MinAge = other.MinAge; - } - if (other.HasMaxAge) { - MaxAge = other.MaxAge; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - MinAge = input.ReadInt32(); - break; - } - case 16: { - MaxAge = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - MinAge = input.ReadInt32(); - break; - } - case 16: { - MaxAge = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Dimension specifying users by their gender. - /// - public sealed partial class GenderDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenderDimension()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderDimension(GenderDimension other) : this() { - _hasBits0 = other._hasBits0; - genders_ = other.genders_.Clone(); - includeUndetermined_ = other.includeUndetermined_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderDimension Clone() { - return new GenderDimension(this); - } - - /// Field number for the "genders" field. - public const int GendersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_genders_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType) x); - private readonly pbc::RepeatedField genders_ = new pbc::RepeatedField(); - /// - /// Included gender demographic segments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Genders { - get { return genders_; } - } - - /// Field number for the "include_undetermined" field. - public const int IncludeUndeterminedFieldNumber = 2; - private bool includeUndetermined_; - /// - /// Include users whose gender is not determined. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeUndetermined { - get { if ((_hasBits0 & 1) != 0) { return includeUndetermined_; } else { return false; } } - set { - _hasBits0 |= 1; - includeUndetermined_ = value; - } - } - /// Gets whether the "include_undetermined" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIncludeUndetermined { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "include_undetermined" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIncludeUndetermined() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenderDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenderDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!genders_.Equals(other.genders_)) return false; - if (IncludeUndetermined != other.IncludeUndetermined) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= genders_.GetHashCode(); - if (HasIncludeUndetermined) hash ^= IncludeUndetermined.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - genders_.WriteTo(output, _repeated_genders_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - genders_.WriteTo(ref output, _repeated_genders_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += genders_.CalculateSize(_repeated_genders_codec); - if (HasIncludeUndetermined) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenderDimension other) { - if (other == null) { - return; - } - genders_.Add(other.genders_); - if (other.HasIncludeUndetermined) { - IncludeUndetermined = other.IncludeUndetermined; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: - case 8: { - genders_.AddEntriesFrom(input, _repeated_genders_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - case 8: { - genders_.AddEntriesFrom(ref input, _repeated_genders_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Dimension specifying users by their household income. - /// - public sealed partial class HouseholdIncomeDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HouseholdIncomeDimension()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HouseholdIncomeDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HouseholdIncomeDimension(HouseholdIncomeDimension other) : this() { - _hasBits0 = other._hasBits0; - incomeRanges_ = other.incomeRanges_.Clone(); - includeUndetermined_ = other.includeUndetermined_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HouseholdIncomeDimension Clone() { - return new HouseholdIncomeDimension(this); - } - - /// Field number for the "income_ranges" field. - public const int IncomeRangesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_incomeRanges_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType) x); - private readonly pbc::RepeatedField incomeRanges_ = new pbc::RepeatedField(); - /// - /// Included household income demographic segments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField IncomeRanges { - get { return incomeRanges_; } - } - - /// Field number for the "include_undetermined" field. - public const int IncludeUndeterminedFieldNumber = 2; - private bool includeUndetermined_; - /// - /// Include users whose household income is not determined. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeUndetermined { - get { if ((_hasBits0 & 1) != 0) { return includeUndetermined_; } else { return false; } } - set { - _hasBits0 |= 1; - includeUndetermined_ = value; - } - } - /// Gets whether the "include_undetermined" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIncludeUndetermined { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "include_undetermined" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIncludeUndetermined() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HouseholdIncomeDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HouseholdIncomeDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!incomeRanges_.Equals(other.incomeRanges_)) return false; - if (IncludeUndetermined != other.IncludeUndetermined) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= incomeRanges_.GetHashCode(); - if (HasIncludeUndetermined) hash ^= IncludeUndetermined.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - incomeRanges_.WriteTo(output, _repeated_incomeRanges_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - incomeRanges_.WriteTo(ref output, _repeated_incomeRanges_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += incomeRanges_.CalculateSize(_repeated_incomeRanges_codec); - if (HasIncludeUndetermined) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HouseholdIncomeDimension other) { - if (other == null) { - return; - } - incomeRanges_.Add(other.incomeRanges_); - if (other.HasIncludeUndetermined) { - IncludeUndetermined = other.IncludeUndetermined; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: - case 8: { - incomeRanges_.AddEntriesFrom(input, _repeated_incomeRanges_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - case 8: { - incomeRanges_.AddEntriesFrom(ref input, _repeated_incomeRanges_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Dimension specifying users by their parental status. - /// - public sealed partial class ParentalStatusDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParentalStatusDimension()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParentalStatusDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParentalStatusDimension(ParentalStatusDimension other) : this() { - _hasBits0 = other._hasBits0; - parentalStatuses_ = other.parentalStatuses_.Clone(); - includeUndetermined_ = other.includeUndetermined_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParentalStatusDimension Clone() { - return new ParentalStatusDimension(this); - } - - /// Field number for the "parental_statuses" field. - public const int ParentalStatusesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_parentalStatuses_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType) x); - private readonly pbc::RepeatedField parentalStatuses_ = new pbc::RepeatedField(); - /// - /// Included parental status demographic segments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ParentalStatuses { - get { return parentalStatuses_; } - } - - /// Field number for the "include_undetermined" field. - public const int IncludeUndeterminedFieldNumber = 2; - private bool includeUndetermined_; - /// - /// Include users whose parental status is undetermined. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeUndetermined { - get { if ((_hasBits0 & 1) != 0) { return includeUndetermined_; } else { return false; } } - set { - _hasBits0 |= 1; - includeUndetermined_ = value; - } - } - /// Gets whether the "include_undetermined" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIncludeUndetermined { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "include_undetermined" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIncludeUndetermined() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ParentalStatusDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParentalStatusDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!parentalStatuses_.Equals(other.parentalStatuses_)) return false; - if (IncludeUndetermined != other.IncludeUndetermined) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= parentalStatuses_.GetHashCode(); - if (HasIncludeUndetermined) hash ^= IncludeUndetermined.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - parentalStatuses_.WriteTo(output, _repeated_parentalStatuses_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - parentalStatuses_.WriteTo(ref output, _repeated_parentalStatuses_codec); - if (HasIncludeUndetermined) { - output.WriteRawTag(16); - output.WriteBool(IncludeUndetermined); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += parentalStatuses_.CalculateSize(_repeated_parentalStatuses_codec); - if (HasIncludeUndetermined) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParentalStatusDimension other) { - if (other == null) { - return; - } - parentalStatuses_.Add(other.parentalStatuses_); - if (other.HasIncludeUndetermined) { - IncludeUndetermined = other.IncludeUndetermined; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: - case 8: { - parentalStatuses_.AddEntriesFrom(input, _repeated_parentalStatuses_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - case 8: { - parentalStatuses_.AddEntriesFrom(ref input, _repeated_parentalStatuses_codec); - break; - } - case 16: { - IncludeUndetermined = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Dimension specifying users by their membership in other audience segments. - /// - public sealed partial class AudienceSegmentDimension : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceSegmentDimension()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSegmentDimension() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSegmentDimension(AudienceSegmentDimension other) : this() { - segments_ = other.segments_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSegmentDimension Clone() { - return new AudienceSegmentDimension(this); - } - - /// Field number for the "segments" field. - public const int SegmentsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_segments_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.AudienceSegment.Parser); - private readonly pbc::RepeatedField segments_ = new pbc::RepeatedField(); - /// - /// Included audience segments. Users are included if they belong to at least - /// one segment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Segments { - get { return segments_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceSegmentDimension); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceSegmentDimension other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!segments_.Equals(other.segments_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= segments_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - segments_.WriteTo(output, _repeated_segments_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - segments_.WriteTo(ref output, _repeated_segments_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += segments_.CalculateSize(_repeated_segments_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceSegmentDimension other) { - if (other == null) { - return; - } - segments_.Add(other.segments_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - segments_.AddEntriesFrom(input, _repeated_segments_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - segments_.AddEntriesFrom(ref input, _repeated_segments_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Positive audience segment. - /// - public sealed partial class AudienceSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceSegment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSegment(AudienceSegment other) : this() { - switch (other.SegmentCase) { - case SegmentOneofCase.UserList: - UserList = other.UserList.Clone(); - break; - case SegmentOneofCase.UserInterest: - UserInterest = other.UserInterest.Clone(); - break; - case SegmentOneofCase.LifeEvent: - LifeEvent = other.LifeEvent.Clone(); - break; - case SegmentOneofCase.DetailedDemographic: - DetailedDemographic = other.DetailedDemographic.Clone(); - break; - case SegmentOneofCase.CustomAudience: - CustomAudience = other.CustomAudience.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSegment Clone() { - return new AudienceSegment(this); - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 1; - /// - /// User list segment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserListSegment UserList { - get { return segmentCase_ == SegmentOneofCase.UserList ? (global::Google.Ads.GoogleAds.V12.Common.UserListSegment) segment_ : null; } - set { - segment_ = value; - segmentCase_ = value == null ? SegmentOneofCase.None : SegmentOneofCase.UserList; - } - } - - /// Field number for the "user_interest" field. - public const int UserInterestFieldNumber = 2; - /// - /// Affinity or In-market segment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment UserInterest { - get { return segmentCase_ == SegmentOneofCase.UserInterest ? (global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment) segment_ : null; } - set { - segment_ = value; - segmentCase_ = value == null ? SegmentOneofCase.None : SegmentOneofCase.UserInterest; - } - } - - /// Field number for the "life_event" field. - public const int LifeEventFieldNumber = 3; - /// - /// Live-event audience segment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment LifeEvent { - get { return segmentCase_ == SegmentOneofCase.LifeEvent ? (global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment) segment_ : null; } - set { - segment_ = value; - segmentCase_ = value == null ? SegmentOneofCase.None : SegmentOneofCase.LifeEvent; - } - } - - /// Field number for the "detailed_demographic" field. - public const int DetailedDemographicFieldNumber = 4; - /// - /// Detailed demographic segment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment DetailedDemographic { - get { return segmentCase_ == SegmentOneofCase.DetailedDemographic ? (global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment) segment_ : null; } - set { - segment_ = value; - segmentCase_ = value == null ? SegmentOneofCase.None : SegmentOneofCase.DetailedDemographic; - } - } - - /// Field number for the "custom_audience" field. - public const int CustomAudienceFieldNumber = 5; - /// - /// Custom audience segment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment CustomAudience { - get { return segmentCase_ == SegmentOneofCase.CustomAudience ? (global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment) segment_ : null; } - set { - segment_ = value; - segmentCase_ = value == null ? SegmentOneofCase.None : SegmentOneofCase.CustomAudience; - } - } - - private object segment_; - /// Enum of possible cases for the "segment" oneof. - public enum SegmentOneofCase { - None = 0, - UserList = 1, - UserInterest = 2, - LifeEvent = 3, - DetailedDemographic = 4, - CustomAudience = 5, - } - private SegmentOneofCase segmentCase_ = SegmentOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SegmentOneofCase SegmentCase { - get { return segmentCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSegment() { - segmentCase_ = SegmentOneofCase.None; - segment_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UserList, other.UserList)) return false; - if (!object.Equals(UserInterest, other.UserInterest)) return false; - if (!object.Equals(LifeEvent, other.LifeEvent)) return false; - if (!object.Equals(DetailedDemographic, other.DetailedDemographic)) return false; - if (!object.Equals(CustomAudience, other.CustomAudience)) return false; - if (SegmentCase != other.SegmentCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (segmentCase_ == SegmentOneofCase.UserList) hash ^= UserList.GetHashCode(); - if (segmentCase_ == SegmentOneofCase.UserInterest) hash ^= UserInterest.GetHashCode(); - if (segmentCase_ == SegmentOneofCase.LifeEvent) hash ^= LifeEvent.GetHashCode(); - if (segmentCase_ == SegmentOneofCase.DetailedDemographic) hash ^= DetailedDemographic.GetHashCode(); - if (segmentCase_ == SegmentOneofCase.CustomAudience) hash ^= CustomAudience.GetHashCode(); - hash ^= (int) segmentCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (segmentCase_ == SegmentOneofCase.UserList) { - output.WriteRawTag(10); - output.WriteMessage(UserList); - } - if (segmentCase_ == SegmentOneofCase.UserInterest) { - output.WriteRawTag(18); - output.WriteMessage(UserInterest); - } - if (segmentCase_ == SegmentOneofCase.LifeEvent) { - output.WriteRawTag(26); - output.WriteMessage(LifeEvent); - } - if (segmentCase_ == SegmentOneofCase.DetailedDemographic) { - output.WriteRawTag(34); - output.WriteMessage(DetailedDemographic); - } - if (segmentCase_ == SegmentOneofCase.CustomAudience) { - output.WriteRawTag(42); - output.WriteMessage(CustomAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (segmentCase_ == SegmentOneofCase.UserList) { - output.WriteRawTag(10); - output.WriteMessage(UserList); - } - if (segmentCase_ == SegmentOneofCase.UserInterest) { - output.WriteRawTag(18); - output.WriteMessage(UserInterest); - } - if (segmentCase_ == SegmentOneofCase.LifeEvent) { - output.WriteRawTag(26); - output.WriteMessage(LifeEvent); - } - if (segmentCase_ == SegmentOneofCase.DetailedDemographic) { - output.WriteRawTag(34); - output.WriteMessage(DetailedDemographic); - } - if (segmentCase_ == SegmentOneofCase.CustomAudience) { - output.WriteRawTag(42); - output.WriteMessage(CustomAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (segmentCase_ == SegmentOneofCase.UserList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserList); - } - if (segmentCase_ == SegmentOneofCase.UserInterest) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInterest); - } - if (segmentCase_ == SegmentOneofCase.LifeEvent) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LifeEvent); - } - if (segmentCase_ == SegmentOneofCase.DetailedDemographic) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DetailedDemographic); - } - if (segmentCase_ == SegmentOneofCase.CustomAudience) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomAudience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceSegment other) { - if (other == null) { - return; - } - switch (other.SegmentCase) { - case SegmentOneofCase.UserList: - if (UserList == null) { - UserList = new global::Google.Ads.GoogleAds.V12.Common.UserListSegment(); - } - UserList.MergeFrom(other.UserList); - break; - case SegmentOneofCase.UserInterest: - if (UserInterest == null) { - UserInterest = new global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment(); - } - UserInterest.MergeFrom(other.UserInterest); - break; - case SegmentOneofCase.LifeEvent: - if (LifeEvent == null) { - LifeEvent = new global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment(); - } - LifeEvent.MergeFrom(other.LifeEvent); - break; - case SegmentOneofCase.DetailedDemographic: - if (DetailedDemographic == null) { - DetailedDemographic = new global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment(); - } - DetailedDemographic.MergeFrom(other.DetailedDemographic); - break; - case SegmentOneofCase.CustomAudience: - if (CustomAudience == null) { - CustomAudience = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment(); - } - CustomAudience.MergeFrom(other.CustomAudience); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.UserListSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListSegment(); - if (segmentCase_ == SegmentOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment(); - if (segmentCase_ == SegmentOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment(); - if (segmentCase_ == SegmentOneofCase.LifeEvent) { - subBuilder.MergeFrom(LifeEvent); - } - input.ReadMessage(subBuilder); - LifeEvent = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment(); - if (segmentCase_ == SegmentOneofCase.DetailedDemographic) { - subBuilder.MergeFrom(DetailedDemographic); - } - input.ReadMessage(subBuilder); - DetailedDemographic = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment(); - if (segmentCase_ == SegmentOneofCase.CustomAudience) { - subBuilder.MergeFrom(CustomAudience); - } - input.ReadMessage(subBuilder); - CustomAudience = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Common.UserListSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListSegment(); - if (segmentCase_ == SegmentOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestSegment(); - if (segmentCase_ == SegmentOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LifeEventSegment(); - if (segmentCase_ == SegmentOneofCase.LifeEvent) { - subBuilder.MergeFrom(LifeEvent); - } - input.ReadMessage(subBuilder); - LifeEvent = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DetailedDemographicSegment(); - if (segmentCase_ == SegmentOneofCase.DetailedDemographic) { - subBuilder.MergeFrom(DetailedDemographic); - } - input.ReadMessage(subBuilder); - DetailedDemographic = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceSegment(); - if (segmentCase_ == SegmentOneofCase.CustomAudience) { - subBuilder.MergeFrom(CustomAudience); - } - input.ReadMessage(subBuilder); - CustomAudience = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// User list segment. - /// - public sealed partial class UserListSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserListSegment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListSegment(UserListSegment other) : this() { - userList_ = other.userList_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListSegment Clone() { - return new UserListSegment(this); - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 1; - private string userList_; - /// - /// The user list resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserList { - get { return userList_ ?? ""; } - set { - userList_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "user_list" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUserList { - get { return userList_ != null; } - } - /// Clears the value of the "user_list" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUserList() { - userList_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserListSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserListSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserList != other.UserList) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUserList) hash ^= UserList.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUserList) { - output.WriteRawTag(10); - output.WriteString(UserList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUserList) { - output.WriteRawTag(10); - output.WriteString(UserList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUserList) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserListSegment other) { - if (other == null) { - return; - } - if (other.HasUserList) { - UserList = other.UserList; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - UserList = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - UserList = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// User interest segment. - /// - public sealed partial class UserInterestSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserInterestSegment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInterestSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInterestSegment(UserInterestSegment other) : this() { - userInterestCategory_ = other.userInterestCategory_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInterestSegment Clone() { - return new UserInterestSegment(this); - } - - /// Field number for the "user_interest_category" field. - public const int UserInterestCategoryFieldNumber = 1; - private string userInterestCategory_; - /// - /// The user interest resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserInterestCategory { - get { return userInterestCategory_ ?? ""; } - set { - userInterestCategory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "user_interest_category" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUserInterestCategory { - get { return userInterestCategory_ != null; } - } - /// Clears the value of the "user_interest_category" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUserInterestCategory() { - userInterestCategory_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserInterestSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserInterestSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserInterestCategory != other.UserInterestCategory) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUserInterestCategory) hash ^= UserInterestCategory.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUserInterestCategory) { - output.WriteRawTag(10); - output.WriteString(UserInterestCategory); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUserInterestCategory) { - output.WriteRawTag(10); - output.WriteString(UserInterestCategory); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUserInterestCategory) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserInterestCategory); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserInterestSegment other) { - if (other == null) { - return; - } - if (other.HasUserInterestCategory) { - UserInterestCategory = other.UserInterestCategory; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - UserInterestCategory = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - UserInterestCategory = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Live event segment. - /// - public sealed partial class LifeEventSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LifeEventSegment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LifeEventSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LifeEventSegment(LifeEventSegment other) : this() { - lifeEvent_ = other.lifeEvent_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LifeEventSegment Clone() { - return new LifeEventSegment(this); - } - - /// Field number for the "life_event" field. - public const int LifeEventFieldNumber = 1; - private string lifeEvent_; - /// - /// The life event resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LifeEvent { - get { return lifeEvent_ ?? ""; } - set { - lifeEvent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "life_event" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLifeEvent { - get { return lifeEvent_ != null; } - } - /// Clears the value of the "life_event" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLifeEvent() { - lifeEvent_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LifeEventSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LifeEventSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LifeEvent != other.LifeEvent) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLifeEvent) hash ^= LifeEvent.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasLifeEvent) { - output.WriteRawTag(10); - output.WriteString(LifeEvent); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasLifeEvent) { - output.WriteRawTag(10); - output.WriteString(LifeEvent); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLifeEvent) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LifeEvent); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LifeEventSegment other) { - if (other == null) { - return; - } - if (other.HasLifeEvent) { - LifeEvent = other.LifeEvent; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - LifeEvent = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - LifeEvent = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Detailed demographic segment. - /// - public sealed partial class DetailedDemographicSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetailedDemographicSegment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailedDemographicSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailedDemographicSegment(DetailedDemographicSegment other) : this() { - detailedDemographic_ = other.detailedDemographic_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailedDemographicSegment Clone() { - return new DetailedDemographicSegment(this); - } - - /// Field number for the "detailed_demographic" field. - public const int DetailedDemographicFieldNumber = 1; - private string detailedDemographic_; - /// - /// The detailed demographic resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DetailedDemographic { - get { return detailedDemographic_ ?? ""; } - set { - detailedDemographic_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "detailed_demographic" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDetailedDemographic { - get { return detailedDemographic_ != null; } - } - /// Clears the value of the "detailed_demographic" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDetailedDemographic() { - detailedDemographic_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DetailedDemographicSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DetailedDemographicSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DetailedDemographic != other.DetailedDemographic) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasDetailedDemographic) hash ^= DetailedDemographic.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasDetailedDemographic) { - output.WriteRawTag(10); - output.WriteString(DetailedDemographic); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasDetailedDemographic) { - output.WriteRawTag(10); - output.WriteString(DetailedDemographic); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasDetailedDemographic) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DetailedDemographic); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DetailedDemographicSegment other) { - if (other == null) { - return; - } - if (other.HasDetailedDemographic) { - DetailedDemographic = other.DetailedDemographic; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - DetailedDemographic = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - DetailedDemographic = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Custom audience segment. - /// - public sealed partial class CustomAudienceSegment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceSegment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.AudiencesReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceSegment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceSegment(CustomAudienceSegment other) : this() { - customAudience_ = other.customAudience_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceSegment Clone() { - return new CustomAudienceSegment(this); - } - - /// Field number for the "custom_audience" field. - public const int CustomAudienceFieldNumber = 1; - private string customAudience_; - /// - /// The custom audience resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomAudience { - get { return customAudience_ ?? ""; } - set { - customAudience_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "custom_audience" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomAudience { - get { return customAudience_ != null; } - } - /// Clears the value of the "custom_audience" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomAudience() { - customAudience_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceSegment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceSegment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomAudience != other.CustomAudience) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCustomAudience) hash ^= CustomAudience.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCustomAudience) { - output.WriteRawTag(10); - output.WriteString(CustomAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCustomAudience) { - output.WriteRawTag(10); - output.WriteString(CustomAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCustomAudience) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomAudience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceSegment other) { - if (other == null) { - return; - } - if (other.HasCustomAudience) { - CustomAudience = other.CustomAudience; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomAudience = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomAudience = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AuthenticationError.g.cs b/Google.Ads.GoogleAds/src/V12/AuthenticationError.g.cs deleted file mode 100755 index 3fecb8168..000000000 --- a/Google.Ads.GoogleAds/src/V12/AuthenticationError.g.cs +++ /dev/null @@ -1,317 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/authentication_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/authentication_error.proto - public static partial class AuthenticationErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/authentication_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AuthenticationErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2F1dGhlbnRpY2F0", - "aW9uX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJy", - "b3JzIugEChdBdXRoZW50aWNhdGlvbkVycm9yRW51bSLMBAoTQXV0aGVudGlj", - "YXRpb25FcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIYChRB", - "VVRIRU5USUNBVElPTl9FUlJPUhACEh4KGkNMSUVOVF9DVVNUT01FUl9JRF9J", - "TlZBTElEEAUSFgoSQ1VTVE9NRVJfTk9UX0ZPVU5EEAgSGgoWR09PR0xFX0FD", - "Q09VTlRfREVMRVRFRBAJEiEKHUdPT0dMRV9BQ0NPVU5UX0NPT0tJRV9JTlZB", - "TElEEAoSKAokR09PR0xFX0FDQ09VTlRfQVVUSEVOVElDQVRJT05fRkFJTEVE", - "EBkSLQopR09PR0xFX0FDQ09VTlRfVVNFUl9BTkRfQURTX1VTRVJfTUlTTUFU", - "Q0gQDBIZChVMT0dJTl9DT09LSUVfUkVRVUlSRUQQDRIQCgxOT1RfQURTX1VT", - "RVIQDhIXChNPQVVUSF9UT0tFTl9JTlZBTElEEA8SFwoTT0FVVEhfVE9LRU5f", - "RVhQSVJFRBAQEhgKFE9BVVRIX1RPS0VOX0RJU0FCTEVEEBESFwoTT0FVVEhf", - "VE9LRU5fUkVWT0tFRBASEh4KGk9BVVRIX1RPS0VOX0hFQURFUl9JTlZBTElE", - "EBMSGAoUTE9HSU5fQ09PS0lFX0lOVkFMSUQQFBITCg9VU0VSX0lEX0lOVkFM", - "SUQQFhImCiJUV09fU1RFUF9WRVJJRklDQVRJT05fTk9UX0VOUk9MTEVEEBcS", - "JAogQURWQU5DRURfUFJPVEVDVElPTl9OT1RfRU5ST0xMRUQQGEL4AQojY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCGEF1dGhlbnRpY2F0", - "aW9uRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNH", - "QUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorEnum.Types.AuthenticationError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible authentication errors. - /// - public sealed partial class AuthenticationErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthenticationErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AuthenticationErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AuthenticationErrorEnum(AuthenticationErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AuthenticationErrorEnum Clone() { - return new AuthenticationErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AuthenticationErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AuthenticationErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AuthenticationErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AuthenticationErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible authentication errors. - /// - public enum AuthenticationError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Authentication of the request failed. - /// - [pbr::OriginalName("AUTHENTICATION_ERROR")] AuthenticationError = 2, - /// - /// Client customer ID is not a number. - /// - [pbr::OriginalName("CLIENT_CUSTOMER_ID_INVALID")] ClientCustomerIdInvalid = 5, - /// - /// No customer found for the provided customer ID. - /// - [pbr::OriginalName("CUSTOMER_NOT_FOUND")] CustomerNotFound = 8, - /// - /// Client's Google account is deleted. - /// - [pbr::OriginalName("GOOGLE_ACCOUNT_DELETED")] GoogleAccountDeleted = 9, - /// - /// Google account login token in the cookie is invalid. - /// - [pbr::OriginalName("GOOGLE_ACCOUNT_COOKIE_INVALID")] GoogleAccountCookieInvalid = 10, - /// - /// A problem occurred during Google account authentication. - /// - [pbr::OriginalName("GOOGLE_ACCOUNT_AUTHENTICATION_FAILED")] GoogleAccountAuthenticationFailed = 25, - /// - /// The user in the Google account login token does not match the user ID in - /// the cookie. - /// - [pbr::OriginalName("GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH")] GoogleAccountUserAndAdsUserMismatch = 12, - /// - /// Login cookie is required for authentication. - /// - [pbr::OriginalName("LOGIN_COOKIE_REQUIRED")] LoginCookieRequired = 13, - /// - /// User in the cookie is not a valid Ads user. - /// - [pbr::OriginalName("NOT_ADS_USER")] NotAdsUser = 14, - /// - /// OAuth token in the header is not valid. - /// - [pbr::OriginalName("OAUTH_TOKEN_INVALID")] OauthTokenInvalid = 15, - /// - /// OAuth token in the header has expired. - /// - [pbr::OriginalName("OAUTH_TOKEN_EXPIRED")] OauthTokenExpired = 16, - /// - /// OAuth token in the header has been disabled. - /// - [pbr::OriginalName("OAUTH_TOKEN_DISABLED")] OauthTokenDisabled = 17, - /// - /// OAuth token in the header has been revoked. - /// - [pbr::OriginalName("OAUTH_TOKEN_REVOKED")] OauthTokenRevoked = 18, - /// - /// OAuth token HTTP header is malformed. - /// - [pbr::OriginalName("OAUTH_TOKEN_HEADER_INVALID")] OauthTokenHeaderInvalid = 19, - /// - /// Login cookie is not valid. - /// - [pbr::OriginalName("LOGIN_COOKIE_INVALID")] LoginCookieInvalid = 20, - /// - /// User ID in the header is not a valid ID. - /// - [pbr::OriginalName("USER_ID_INVALID")] UserIdInvalid = 22, - /// - /// An account administrator changed this account's authentication settings. - /// To access this Google Ads account, enable 2-Step Verification in your - /// Google account at https://www.google.com/landing/2step. - /// - [pbr::OriginalName("TWO_STEP_VERIFICATION_NOT_ENROLLED")] TwoStepVerificationNotEnrolled = 23, - /// - /// An account administrator changed this account's authentication settings. - /// To access this Google Ads account, enable Advanced Protection in your - /// Google account at https://landing.google.com/advancedprotection. - /// - [pbr::OriginalName("ADVANCED_PROTECTION_NOT_ENROLLED")] AdvancedProtectionNotEnrolled = 24, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/AuthorizationError.g.cs b/Google.Ads.GoogleAds/src/V12/AuthorizationError.g.cs deleted file mode 100755 index 76640209d..000000000 --- a/Google.Ads.GoogleAds/src/V12/AuthorizationError.g.cs +++ /dev/null @@ -1,302 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/authorization_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/authorization_error.proto - public static partial class AuthorizationErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/authorization_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AuthorizationErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2F1dGhvcml6YXRp", - "b25fZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMi9AMKFkF1dGhvcml6YXRpb25FcnJvckVudW0i2QMKEkF1dGhvcml6YXRp", - "b25FcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIaChZVU0VS", - "X1BFUk1JU1NJT05fREVOSUVEEAISJAogREVWRUxPUEVSX1RPS0VOX05PVF9P", - "Tl9BTExPV0xJU1QQDRIeChpERVZFTE9QRVJfVE9LRU5fUFJPSElCSVRFRBAE", - "EhQKEFBST0pFQ1RfRElTQUJMRUQQBRIXChNBVVRIT1JJWkFUSU9OX0VSUk9S", - "EAYSGAoUQUNUSU9OX05PVF9QRVJNSVRURUQQBxIVChFJTkNPTVBMRVRFX1NJ", - "R05VUBAIEhgKFENVU1RPTUVSX05PVF9FTkFCTEVEEBgSDwoLTUlTU0lOR19U", - "T1MQCRIgChxERVZFTE9QRVJfVE9LRU5fTk9UX0FQUFJPVkVEEAoSPQo5SU5W", - "QUxJRF9MT0dJTl9DVVNUT01FUl9JRF9TRVJWSU5HX0NVU1RPTUVSX0lEX0NP", - "TUJJTkFUSU9OEAsSGQoVU0VSVklDRV9BQ0NFU1NfREVOSUVEEAwSIgoeQUND", - "RVNTX0RFTklFRF9GT1JfQUNDT1VOVF9UWVBFEBkSGAoUTUVUUklDX0FDQ0VT", - "U19ERU5JRUQQGkL3AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnNCF0F1dGhvcml6YXRpb25FcnJvclByb3RvUAFaRWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIj", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorEnum.Types.AuthorizationError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible authorization errors. - /// - public sealed partial class AuthorizationErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthorizationErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AuthorizationErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AuthorizationErrorEnum(AuthorizationErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AuthorizationErrorEnum Clone() { - return new AuthorizationErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AuthorizationErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AuthorizationErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AuthorizationErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the AuthorizationErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible authorization errors. - /// - public enum AuthorizationError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// User doesn't have permission to access customer. Note: If you're - /// accessing a client customer, the manager's customer ID must be set in the - /// `login-customer-id` header. Learn more at - /// https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid - /// - [pbr::OriginalName("USER_PERMISSION_DENIED")] UserPermissionDenied = 2, - /// - /// The developer token is not on the allow-list. - /// - [pbr::OriginalName("DEVELOPER_TOKEN_NOT_ON_ALLOWLIST")] DeveloperTokenNotOnAllowlist = 13, - /// - /// The developer token is not allowed with the project sent in the request. - /// - [pbr::OriginalName("DEVELOPER_TOKEN_PROHIBITED")] DeveloperTokenProhibited = 4, - /// - /// The Google Cloud project sent in the request does not have permission to - /// access the api. - /// - [pbr::OriginalName("PROJECT_DISABLED")] ProjectDisabled = 5, - /// - /// Authorization of the client failed. - /// - [pbr::OriginalName("AUTHORIZATION_ERROR")] AuthorizationError = 6, - /// - /// The user does not have permission to perform this action - /// (for example, ADD, UPDATE, REMOVE) on the resource or call a method. - /// - [pbr::OriginalName("ACTION_NOT_PERMITTED")] ActionNotPermitted = 7, - /// - /// Signup not complete. - /// - [pbr::OriginalName("INCOMPLETE_SIGNUP")] IncompleteSignup = 8, - /// - /// The customer can't be used because it isn't enabled. - /// - [pbr::OriginalName("CUSTOMER_NOT_ENABLED")] CustomerNotEnabled = 24, - /// - /// The developer must sign the terms of service. They can be found here: - /// ads.google.com/aw/apicenter - /// - [pbr::OriginalName("MISSING_TOS")] MissingTos = 9, - /// - /// The developer token is only approved for use with test accounts. To - /// access non-test accounts, apply for Basic or Standard access. - /// - [pbr::OriginalName("DEVELOPER_TOKEN_NOT_APPROVED")] DeveloperTokenNotApproved = 10, - /// - /// The login customer specified does not have access to the account - /// specified, so the request is invalid. - /// - [pbr::OriginalName("INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION")] InvalidLoginCustomerIdServingCustomerIdCombination = 11, - /// - /// The developer specified does not have access to the service. - /// - [pbr::OriginalName("SERVICE_ACCESS_DENIED")] ServiceAccessDenied = 12, - /// - /// The customer (or login customer) isn't in Google Ads. It belongs to - /// another ads system. - /// - [pbr::OriginalName("ACCESS_DENIED_FOR_ACCOUNT_TYPE")] AccessDeniedForAccountType = 25, - /// - /// The developer does not have access to the metrics queried. - /// - [pbr::OriginalName("METRIC_ACCESS_DENIED")] MetricAccessDenied = 26, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BatchJob.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJob.g.cs deleted file mode 100755 index 485ae876c..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJob.g.cs +++ /dev/null @@ -1,1008 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/batch_job.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/batch_job.proto - public static partial class BatchJobReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/batch_job.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BatchJobReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2JhdGNoX2pv", - "Yi5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcxo1", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2JhdGNoX2pvYl9zdGF0", - "dXMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdv", - "b2dsZS9hcGkvcmVzb3VyY2UucHJvdG8ilAcKCEJhdGNoSm9iEkAKDXJlc291", - "cmNlX25hbWUYASABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0JhdGNoSm9iEhQKAmlkGAcgASgDQgPgQQNIAIgBARIpChduZXh0X2Fk", - "ZF9zZXF1ZW5jZV90b2tlbhgIIAEoCUID4EEDSAGIAQESVAoIbWV0YWRhdGEY", - "BCABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJh", - "dGNoSm9iLkJhdGNoSm9iTWV0YWRhdGFCA+BBAxJWCgZzdGF0dXMYBSABKA4y", - "QS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQmF0Y2hKb2JTdGF0", - "dXNFbnVtLkJhdGNoSm9iU3RhdHVzQgPgQQMSKAoWbG9uZ19ydW5uaW5nX29w", - "ZXJhdGlvbhgJIAEoCUID4EEDSAKIAQEalAMKEEJhdGNoSm9iTWV0YWRhdGES", - "JAoSY3JlYXRpb25fZGF0ZV90aW1lGAggASgJQgPgQQNIAIgBARIhCg9zdGFy", - "dF9kYXRlX3RpbWUYByABKAlCA+BBA0gBiAEBEiYKFGNvbXBsZXRpb25fZGF0", - "ZV90aW1lGAkgASgJQgPgQQNIAogBARIsChplc3RpbWF0ZWRfY29tcGxldGlv", - "bl9yYXRpbxgKIAEoAUID4EEDSAOIAQESIQoPb3BlcmF0aW9uX2NvdW50GAsg", - "ASgDQgPgQQNIBIgBARIqChhleGVjdXRlZF9vcGVyYXRpb25fY291bnQYDCAB", - "KANCA+BBA0gFiAEBQhUKE19jcmVhdGlvbl9kYXRlX3RpbWVCEgoQX3N0YXJ0", - "X2RhdGVfdGltZUIXChVfY29tcGxldGlvbl9kYXRlX3RpbWVCHQobX2VzdGlt", - "YXRlZF9jb21wbGV0aW9uX3JhdGlvQhIKEF9vcGVyYXRpb25fY291bnRCGwoZ", - "X2V4ZWN1dGVkX29wZXJhdGlvbl9jb3VudDpY6kFVCiFnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQmF0Y2hKb2ISMGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9", - "L2JhdGNoSm9icy97YmF0Y2hfam9iX2lkfUIFCgNfaWRCGgoYX25leHRfYWRk", - "X3NlcXVlbmNlX3Rva2VuQhkKF19sb25nX3J1bm5pbmdfb3BlcmF0aW9uQv8B", - "CiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0INQmF0", - "Y2hKb2JQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOi", - "AgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIi", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BatchJob), global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Parser, new[]{ "ResourceName", "Id", "NextAddSequenceToken", "Metadata", "Status", "LongRunningOperation" }, new[]{ "Id", "NextAddSequenceToken", "LongRunningOperation" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Types.BatchJobMetadata), global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Types.BatchJobMetadata.Parser, new[]{ "CreationDateTime", "StartDateTime", "CompletionDateTime", "EstimatedCompletionRatio", "OperationCount", "ExecutedOperationCount" }, new[]{ "CreationDateTime", "StartDateTime", "CompletionDateTime", "EstimatedCompletionRatio", "OperationCount", "ExecutedOperationCount" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// A list of mutates being processed asynchronously. The mutates are uploaded - /// by the user. The mutates themselves aren't readable and the results of the - /// job can only be read using BatchJobService.ListBatchJobResults. - /// - public sealed partial class BatchJob : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchJob()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BatchJobReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJob() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJob(BatchJob other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - nextAddSequenceToken_ = other.nextAddSequenceToken_; - metadata_ = other.metadata_ != null ? other.metadata_.Clone() : null; - status_ = other.status_; - longRunningOperation_ = other.longRunningOperation_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJob Clone() { - return new BatchJob(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the batch job. - /// Batch job resource names have the form: - /// - /// `customers/{customer_id}/batchJobs/{batch_job_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 7; - private long id_; - /// - /// Output only. ID of this batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "next_add_sequence_token" field. - public const int NextAddSequenceTokenFieldNumber = 8; - private string nextAddSequenceToken_; - /// - /// Output only. The next sequence token to use when adding operations. Only set when the - /// batch job status is PENDING. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextAddSequenceToken { - get { return nextAddSequenceToken_ ?? ""; } - set { - nextAddSequenceToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "next_add_sequence_token" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNextAddSequenceToken { - get { return nextAddSequenceToken_ != null; } - } - /// Clears the value of the "next_add_sequence_token" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNextAddSequenceToken() { - nextAddSequenceToken_ = null; - } - - /// Field number for the "metadata" field. - public const int MetadataFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Types.BatchJobMetadata metadata_; - /// - /// Output only. Contains additional information about this batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Types.BatchJobMetadata Metadata { - get { return metadata_; } - set { - metadata_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus.Unspecified; - /// - /// Output only. Status of this batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "long_running_operation" field. - public const int LongRunningOperationFieldNumber = 9; - private string longRunningOperation_; - /// - /// Output only. The resource name of the long-running operation that can be used to poll - /// for completion. Only set when the batch job status is RUNNING or DONE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LongRunningOperation { - get { return longRunningOperation_ ?? ""; } - set { - longRunningOperation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "long_running_operation" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLongRunningOperation { - get { return longRunningOperation_ != null; } - } - /// Clears the value of the "long_running_operation" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLongRunningOperation() { - longRunningOperation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BatchJob); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BatchJob other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (NextAddSequenceToken != other.NextAddSequenceToken) return false; - if (!object.Equals(Metadata, other.Metadata)) return false; - if (Status != other.Status) return false; - if (LongRunningOperation != other.LongRunningOperation) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasNextAddSequenceToken) hash ^= NextAddSequenceToken.GetHashCode(); - if (metadata_ != null) hash ^= Metadata.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasLongRunningOperation) hash ^= LongRunningOperation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (metadata_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Metadata); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasId) { - output.WriteRawTag(56); - output.WriteInt64(Id); - } - if (HasNextAddSequenceToken) { - output.WriteRawTag(66); - output.WriteString(NextAddSequenceToken); - } - if (HasLongRunningOperation) { - output.WriteRawTag(74); - output.WriteString(LongRunningOperation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (metadata_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Metadata); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasId) { - output.WriteRawTag(56); - output.WriteInt64(Id); - } - if (HasNextAddSequenceToken) { - output.WriteRawTag(66); - output.WriteString(NextAddSequenceToken); - } - if (HasLongRunningOperation) { - output.WriteRawTag(74); - output.WriteString(LongRunningOperation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasNextAddSequenceToken) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextAddSequenceToken); - } - if (metadata_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metadata); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasLongRunningOperation) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LongRunningOperation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BatchJob other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasNextAddSequenceToken) { - NextAddSequenceToken = other.NextAddSequenceToken; - } - if (other.metadata_ != null) { - if (metadata_ == null) { - Metadata = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Types.BatchJobMetadata(); - } - Metadata.MergeFrom(other.Metadata); - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus.Unspecified) { - Status = other.Status; - } - if (other.HasLongRunningOperation) { - LongRunningOperation = other.LongRunningOperation; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - if (metadata_ == null) { - Metadata = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Types.BatchJobMetadata(); - } - input.ReadMessage(Metadata); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus) input.ReadEnum(); - break; - } - case 56: { - Id = input.ReadInt64(); - break; - } - case 66: { - NextAddSequenceToken = input.ReadString(); - break; - } - case 74: { - LongRunningOperation = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - if (metadata_ == null) { - Metadata = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Types.BatchJobMetadata(); - } - input.ReadMessage(Metadata); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus) input.ReadEnum(); - break; - } - case 56: { - Id = input.ReadInt64(); - break; - } - case 66: { - NextAddSequenceToken = input.ReadString(); - break; - } - case 74: { - LongRunningOperation = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BatchJob message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Additional information about the batch job. This message is also used as - /// metadata returned in batch job Long Running Operations. - /// - public sealed partial class BatchJobMetadata : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchJobMetadata()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BatchJob.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobMetadata(BatchJobMetadata other) : this() { - _hasBits0 = other._hasBits0; - creationDateTime_ = other.creationDateTime_; - startDateTime_ = other.startDateTime_; - completionDateTime_ = other.completionDateTime_; - estimatedCompletionRatio_ = other.estimatedCompletionRatio_; - operationCount_ = other.operationCount_; - executedOperationCount_ = other.executedOperationCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobMetadata Clone() { - return new BatchJobMetadata(this); - } - - /// Field number for the "creation_date_time" field. - public const int CreationDateTimeFieldNumber = 8; - private string creationDateTime_; - /// - /// Output only. The time when this batch job was created. - /// Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CreationDateTime { - get { return creationDateTime_ ?? ""; } - set { - creationDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "creation_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCreationDateTime { - get { return creationDateTime_ != null; } - } - /// Clears the value of the "creation_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCreationDateTime() { - creationDateTime_ = null; - } - - /// Field number for the "start_date_time" field. - public const int StartDateTimeFieldNumber = 7; - private string startDateTime_; - /// - /// Output only. The time when this batch job started running. - /// Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDateTime { - get { return startDateTime_ ?? ""; } - set { - startDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDateTime { - get { return startDateTime_ != null; } - } - /// Clears the value of the "start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDateTime() { - startDateTime_ = null; - } - - /// Field number for the "completion_date_time" field. - public const int CompletionDateTimeFieldNumber = 9; - private string completionDateTime_; - /// - /// Output only. The time when this batch job was completed. - /// Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CompletionDateTime { - get { return completionDateTime_ ?? ""; } - set { - completionDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "completion_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCompletionDateTime { - get { return completionDateTime_ != null; } - } - /// Clears the value of the "completion_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCompletionDateTime() { - completionDateTime_ = null; - } - - /// Field number for the "estimated_completion_ratio" field. - public const int EstimatedCompletionRatioFieldNumber = 10; - private double estimatedCompletionRatio_; - /// - /// Output only. The fraction (between 0.0 and 1.0) of mutates that have been processed. - /// This is empty if the job hasn't started running yet. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double EstimatedCompletionRatio { - get { if ((_hasBits0 & 1) != 0) { return estimatedCompletionRatio_; } else { return 0D; } } - set { - _hasBits0 |= 1; - estimatedCompletionRatio_ = value; - } - } - /// Gets whether the "estimated_completion_ratio" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEstimatedCompletionRatio { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "estimated_completion_ratio" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEstimatedCompletionRatio() { - _hasBits0 &= ~1; - } - - /// Field number for the "operation_count" field. - public const int OperationCountFieldNumber = 11; - private long operationCount_; - /// - /// Output only. The number of mutate operations in the batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long OperationCount { - get { if ((_hasBits0 & 2) != 0) { return operationCount_; } else { return 0L; } } - set { - _hasBits0 |= 2; - operationCount_ = value; - } - } - /// Gets whether the "operation_count" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOperationCount { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "operation_count" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperationCount() { - _hasBits0 &= ~2; - } - - /// Field number for the "executed_operation_count" field. - public const int ExecutedOperationCountFieldNumber = 12; - private long executedOperationCount_; - /// - /// Output only. The number of mutate operations executed by the batch job. - /// Present only if the job has started running. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExecutedOperationCount { - get { if ((_hasBits0 & 4) != 0) { return executedOperationCount_; } else { return 0L; } } - set { - _hasBits0 |= 4; - executedOperationCount_ = value; - } - } - /// Gets whether the "executed_operation_count" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExecutedOperationCount { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "executed_operation_count" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExecutedOperationCount() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BatchJobMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BatchJobMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CreationDateTime != other.CreationDateTime) return false; - if (StartDateTime != other.StartDateTime) return false; - if (CompletionDateTime != other.CompletionDateTime) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EstimatedCompletionRatio, other.EstimatedCompletionRatio)) return false; - if (OperationCount != other.OperationCount) return false; - if (ExecutedOperationCount != other.ExecutedOperationCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCreationDateTime) hash ^= CreationDateTime.GetHashCode(); - if (HasStartDateTime) hash ^= StartDateTime.GetHashCode(); - if (HasCompletionDateTime) hash ^= CompletionDateTime.GetHashCode(); - if (HasEstimatedCompletionRatio) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EstimatedCompletionRatio); - if (HasOperationCount) hash ^= OperationCount.GetHashCode(); - if (HasExecutedOperationCount) hash ^= ExecutedOperationCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasStartDateTime) { - output.WriteRawTag(58); - output.WriteString(StartDateTime); - } - if (HasCreationDateTime) { - output.WriteRawTag(66); - output.WriteString(CreationDateTime); - } - if (HasCompletionDateTime) { - output.WriteRawTag(74); - output.WriteString(CompletionDateTime); - } - if (HasEstimatedCompletionRatio) { - output.WriteRawTag(81); - output.WriteDouble(EstimatedCompletionRatio); - } - if (HasOperationCount) { - output.WriteRawTag(88); - output.WriteInt64(OperationCount); - } - if (HasExecutedOperationCount) { - output.WriteRawTag(96); - output.WriteInt64(ExecutedOperationCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasStartDateTime) { - output.WriteRawTag(58); - output.WriteString(StartDateTime); - } - if (HasCreationDateTime) { - output.WriteRawTag(66); - output.WriteString(CreationDateTime); - } - if (HasCompletionDateTime) { - output.WriteRawTag(74); - output.WriteString(CompletionDateTime); - } - if (HasEstimatedCompletionRatio) { - output.WriteRawTag(81); - output.WriteDouble(EstimatedCompletionRatio); - } - if (HasOperationCount) { - output.WriteRawTag(88); - output.WriteInt64(OperationCount); - } - if (HasExecutedOperationCount) { - output.WriteRawTag(96); - output.WriteInt64(ExecutedOperationCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCreationDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CreationDateTime); - } - if (HasStartDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDateTime); - } - if (HasCompletionDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CompletionDateTime); - } - if (HasEstimatedCompletionRatio) { - size += 1 + 8; - } - if (HasOperationCount) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(OperationCount); - } - if (HasExecutedOperationCount) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExecutedOperationCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BatchJobMetadata other) { - if (other == null) { - return; - } - if (other.HasCreationDateTime) { - CreationDateTime = other.CreationDateTime; - } - if (other.HasStartDateTime) { - StartDateTime = other.StartDateTime; - } - if (other.HasCompletionDateTime) { - CompletionDateTime = other.CompletionDateTime; - } - if (other.HasEstimatedCompletionRatio) { - EstimatedCompletionRatio = other.EstimatedCompletionRatio; - } - if (other.HasOperationCount) { - OperationCount = other.OperationCount; - } - if (other.HasExecutedOperationCount) { - ExecutedOperationCount = other.ExecutedOperationCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 58: { - StartDateTime = input.ReadString(); - break; - } - case 66: { - CreationDateTime = input.ReadString(); - break; - } - case 74: { - CompletionDateTime = input.ReadString(); - break; - } - case 81: { - EstimatedCompletionRatio = input.ReadDouble(); - break; - } - case 88: { - OperationCount = input.ReadInt64(); - break; - } - case 96: { - ExecutedOperationCount = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 58: { - StartDateTime = input.ReadString(); - break; - } - case 66: { - CreationDateTime = input.ReadString(); - break; - } - case 74: { - CompletionDateTime = input.ReadString(); - break; - } - case 81: { - EstimatedCompletionRatio = input.ReadDouble(); - break; - } - case 88: { - OperationCount = input.ReadInt64(); - break; - } - case 96: { - ExecutedOperationCount = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobError.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJobError.g.cs deleted file mode 100755 index a8adb3eba..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobError.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/batch_job_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/batch_job_error.proto - public static partial class BatchJobErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/batch_job_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BatchJobErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2JhdGNoX2pvYl9l", - "cnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycyL0", - "AQoRQmF0Y2hKb2JFcnJvckVudW0i3gEKDUJhdGNoSm9iRXJyb3ISDwoLVU5T", - "UEVDSUZJRUQQABILCgdVTktOT1dOEAESLgoqQ0FOTk9UX01PRElGWV9KT0Jf", - "QUZURVJfSk9CX1NUQVJUU19SVU5OSU5HEAISFAoQRU1QVFlfT1BFUkFUSU9O", - "UxADEhoKFklOVkFMSURfU0VRVUVOQ0VfVE9LRU4QBBIVChFSRVNVTFRTX05P", - "VF9SRUFEWRAFEhUKEUlOVkFMSURfUEFHRV9TSVpFEAYSHwobQ0FOX09OTFlf", - "UkVNT1ZFX1BFTkRJTkdfSk9CEAdC8gEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzQhJCYXRjaEpvYkVycm9yUHJvdG9QAVpFZ29vZ2xl", - "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVB", - "ZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJv", - "cnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJv", - "dG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorEnum.Types.BatchJobError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible batch job errors. - /// - public sealed partial class BatchJobErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchJobErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobErrorEnum(BatchJobErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobErrorEnum Clone() { - return new BatchJobErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BatchJobErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BatchJobErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BatchJobErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BatchJobErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible request errors. - /// - public enum BatchJobError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The batch job cannot add more operations or run after it has started - /// running. - /// - [pbr::OriginalName("CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING")] CannotModifyJobAfterJobStartsRunning = 2, - /// - /// The operations for an AddBatchJobOperations request were empty. - /// - [pbr::OriginalName("EMPTY_OPERATIONS")] EmptyOperations = 3, - /// - /// The sequence token for an AddBatchJobOperations request was invalid. - /// - [pbr::OriginalName("INVALID_SEQUENCE_TOKEN")] InvalidSequenceToken = 4, - /// - /// Batch job results can only be retrieved once the job is finished. - /// - [pbr::OriginalName("RESULTS_NOT_READY")] ResultsNotReady = 5, - /// - /// The page size for ListBatchJobResults was invalid. - /// - [pbr::OriginalName("INVALID_PAGE_SIZE")] InvalidPageSize = 6, - /// - /// The batch job cannot be removed because it has started running. - /// - [pbr::OriginalName("CAN_ONLY_REMOVE_PENDING_JOB")] CanOnlyRemovePendingJob = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJobResourceNames.g.cs deleted file mode 100755 index 6ffe5b6f6..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobResourceNames.g.cs +++ /dev/null @@ -1,251 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the BatchJob resource. - public sealed partial class BatchJobName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/batchJobs/{batch_job_id}. - CustomerBatchJob = 1, - } - - private static gax::PathTemplate s_customerBatchJob = new gax::PathTemplate("customers/{customer_id}/batchJobs/{batch_job_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static BatchJobName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new BatchJobName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/batchJobs/{batch_job_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The BatchJob ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static BatchJobName FromCustomerBatchJob(string customerId, string batchJobId) => - new BatchJobName(ResourceNameType.CustomerBatchJob, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), batchJobId: gax::GaxPreconditions.CheckNotNullOrEmpty(batchJobId, nameof(batchJobId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/batchJobs/{batch_job_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BatchJob ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/batchJobs/{batch_job_id}. - /// - public static string Format(string customerId, string batchJobId) => FormatCustomerBatchJob(customerId, batchJobId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/batchJobs/{batch_job_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BatchJob ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/batchJobs/{batch_job_id}. - /// - public static string FormatCustomerBatchJob(string customerId, string batchJobId) => - s_customerBatchJob.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(batchJobId, nameof(batchJobId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/batchJobs/{batch_job_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static BatchJobName Parse(string batchJobName) => Parse(batchJobName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/batchJobs/{batch_job_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static BatchJobName Parse(string batchJobName, bool allowUnparsed) => - TryParse(batchJobName, allowUnparsed, out BatchJobName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/batchJobs/{batch_job_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string batchJobName, out BatchJobName result) => TryParse(batchJobName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/batchJobs/{batch_job_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string batchJobName, bool allowUnparsed, out BatchJobName result) - { - gax::GaxPreconditions.CheckNotNull(batchJobName, nameof(batchJobName)); - gax::TemplatedResourceName resourceName; - if (s_customerBatchJob.TryParseName(batchJobName, out resourceName)) - { - result = FromCustomerBatchJob(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(batchJobName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private BatchJobName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string batchJobId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - BatchJobId = batchJobId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/batchJobs/{batch_job_id} - /// - /// The Customer ID. Must not be null or empty. - /// The BatchJob ID. Must not be null or empty. - public BatchJobName(string customerId, string batchJobId) : this(ResourceNameType.CustomerBatchJob, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), batchJobId: gax::GaxPreconditions.CheckNotNullOrEmpty(batchJobId, nameof(batchJobId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The BatchJob ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string BatchJobId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerBatchJob: return s_customerBatchJob.Expand(CustomerId, BatchJobId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as BatchJobName); - - /// - public bool Equals(BatchJobName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(BatchJobName a, BatchJobName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(BatchJobName a, BatchJobName b) => !(a == b); - } - - public partial class BatchJob - { - /// - /// -typed view over the resource name property. - /// - internal BatchJobName ResourceNameAsBatchJobName - { - get => string.IsNullOrEmpty(ResourceName) ? null : BatchJobName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobResultExtensions.cs b/Google.Ads.GoogleAds/src/V12/BatchJobResultExtensions.cs deleted file mode 100644 index 65488a843..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobResultExtensions.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -using Google.Ads.GoogleAds.V12.Errors; -using Google.Protobuf.WellKnownTypes; - -#pragma warning disable CS1591 - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class BatchJobResult - { - /// - /// Gets a value indicating whether this instance is failed. - /// - /// - /// true if this instance is failed; otherwise, false. - /// - public bool IsFailed - { - get - { - return this.Status != null; - } - } - - /// - /// Gets a GoogleAdsFailure instance that combines all the errors - /// from a failed API call. - /// - public GoogleAdsFailure Failure - { - get - { - if (this.Status == null) - { - return null; - } - GoogleAdsFailure retval = new GoogleAdsFailure(); - foreach (Any any in this.Status.Details) - { - GoogleAdsFailure failure = any.Unpack(); - retval.Errors.AddRange(failure.Errors); - } - return retval; - } - } - } -} - -#pragma warning restore CS1591 diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobService.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJobService.g.cs deleted file mode 100755 index 1023e16c7..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobService.g.cs +++ /dev/null @@ -1,2600 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/batch_job_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/batch_job_service.proto - public static partial class BatchJobServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/batch_job_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BatchJobServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYmF0Y2hfam9i", - "X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jlc3BvbnNl", - "X2NvbnRlbnRfdHlwZS5wcm90bxoyZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9iYXRjaF9qb2IucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9zZXJ2aWNlcy9nb29nbGVfYWRzX3NlcnZpY2UucHJvdG8aHGdv", - "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50", - "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvGiNnb29nbGUvbG9uZ3J1bm5pbmcvb3Bl", - "cmF0aW9ucy5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8ifwoVTXV0", - "YXRlQmF0Y2hKb2JSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQIS", - "TAoJb3BlcmF0aW9uGAIgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLkJhdGNoSm9iT3BlcmF0aW9uQgPgQQIimgEKEUJhdGNoSm9i", - "T3BlcmF0aW9uEj4KBmNyZWF0ZRgBIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQmF0Y2hKb2JIABI4CgZyZW1vdmUYBCABKAlC", - "JvpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0JhdGNoSm9iSABCCwoJ", - "b3BlcmF0aW9uImEKFk11dGF0ZUJhdGNoSm9iUmVzcG9uc2USRwoGcmVzdWx0", - "GAEgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUJhdGNoSm9iUmVzdWx0IlUKFE11dGF0ZUJhdGNoSm9iUmVzdWx0Ej0K", - "DXJlc291cmNlX25hbWUYASABKAlCJvpBIwohZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0JhdGNoSm9iIlYKElJ1bkJhdGNoSm9iUmVxdWVzdBJACg1yZXNv", - "dXJjZV9uYW1lGAEgASgJQingQQL6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9CYXRjaEpvYiLMAQocQWRkQmF0Y2hKb2JPcGVyYXRpb25zUmVxdWVz", - "dBJACg1yZXNvdXJjZV9uYW1lGAEgASgJQingQQL6QSMKIWdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9CYXRjaEpvYhIWCg5zZXF1ZW5jZV90b2tlbhgCIAEo", - "CRJSChFtdXRhdGVfb3BlcmF0aW9ucxgDIAMoCzIyLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVPcGVyYXRpb25CA+BBAiJWCh1B", - "ZGRCYXRjaEpvYk9wZXJhdGlvbnNSZXNwb25zZRIYChB0b3RhbF9vcGVyYXRp", - "b25zGAEgASgDEhsKE25leHRfc2VxdWVuY2VfdG9rZW4YAiABKAki8QEKGkxp", - "c3RCYXRjaEpvYlJlc3VsdHNSZXF1ZXN0EkAKDXJlc291cmNlX25hbWUYASAB", - "KAlCKeBBAvpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0JhdGNoSm9i", - "EhIKCnBhZ2VfdG9rZW4YAiABKAkSEQoJcGFnZV9zaXplGAMgASgFEmoKFXJl", - "c3BvbnNlX2NvbnRlbnRfdHlwZRgEIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5SZXNwb25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25z", - "ZUNvbnRlbnRUeXBlInoKG0xpc3RCYXRjaEpvYlJlc3VsdHNSZXNwb25zZRJC", - "CgdyZXN1bHRzGAEgAygLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkJhdGNoSm9iUmVzdWx0EhcKD25leHRfcGFnZV90b2tlbhgCIAEo", - "CSKsAQoOQmF0Y2hKb2JSZXN1bHQSFwoPb3BlcmF0aW9uX2luZGV4GAEgASgD", - "El0KGW11dGF0ZV9vcGVyYXRpb25fcmVzcG9uc2UYAiABKAsyOi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlT3BlcmF0aW9uUmVz", - "cG9uc2USIgoGc3RhdHVzGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMy4QgK", - "D0JhdGNoSm9iU2VydmljZRLZAQoOTXV0YXRlQmF0Y2hKb2ISOC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQmF0Y2hKb2JSZXF1", - "ZXN0GjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUJhdGNoSm9iUmVzcG9uc2UiUoLT5JMCNCIvL3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2JhdGNoSm9iczptdXRhdGU6ASraQRVjdXN0b21lcl9p", - "ZCxvcGVyYXRpb24S5gEKE0xpc3RCYXRjaEpvYlJlc3VsdHMSPS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTGlzdEJhdGNoSm9iUmVzdWx0", - "c1JlcXVlc3QaPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TGlzdEJhdGNoSm9iUmVzdWx0c1Jlc3BvbnNlIlCC0+STAjoSOC92MTIve3Jl", - "c291cmNlX25hbWU9Y3VzdG9tZXJzLyovYmF0Y2hKb2JzLyp9Omxpc3RSZXN1", - "bHRz2kENcmVzb3VyY2VfbmFtZRKJAgoLUnVuQmF0Y2hKb2ISNS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuUnVuQmF0Y2hKb2JSZXF1ZXN0", - "Gh0uZ29vZ2xlLmxvbmdydW5uaW5nLk9wZXJhdGlvbiKjAYLT5JMCNSIwL3Yx", - "Mi97cmVzb3VyY2VfbmFtZT1jdXN0b21lcnMvKi9iYXRjaEpvYnMvKn06cnVu", - "OgEq2kENcmVzb3VyY2VfbmFtZcpBVQoVZ29vZ2xlLnByb3RvYnVmLkVtcHR5", - "Ejxnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJhdGNoSm9i", - "LkJhdGNoSm9iTWV0YWRhdGEStQIKFUFkZEJhdGNoSm9iT3BlcmF0aW9ucxI/", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BZGRCYXRjaEpv", - "Yk9wZXJhdGlvbnNSZXF1ZXN0GkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLkFkZEJhdGNoSm9iT3BlcmF0aW9uc1Jlc3BvbnNlIpgBgtPk", - "kwI/IjovdjEyL3tyZXNvdXJjZV9uYW1lPWN1c3RvbWVycy8qL2JhdGNoSm9i", - "cy8qfTphZGRPcGVyYXRpb25zOgEq2kEucmVzb3VyY2VfbmFtZSxzZXF1ZW5j", - "ZV90b2tlbixtdXRhdGVfb3BlcmF0aW9uc9pBH3Jlc291cmNlX25hbWUsbXV0", - "YXRlX29wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJB", - "J2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KAAgol", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IUQmF0Y2hK", - "b2JTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNl", - "c6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oC", - "IUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BatchJobReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest), global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest.Parser, new[]{ "CustomerId", "Operation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.BatchJobOperation), global::Google.Ads.GoogleAds.V12.Services.BatchJobOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResponse), global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResult), global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResult.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest), global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest), global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest.Parser, new[]{ "ResourceName", "SequenceToken", "MutateOperations" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsResponse), global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsResponse.Parser, new[]{ "TotalOperations", "NextSequenceToken" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest), global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest.Parser, new[]{ "ResourceName", "PageToken", "PageSize", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsResponse), global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsResponse.Parser, new[]{ "Results", "NextPageToken" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.BatchJobResult), global::Google.Ads.GoogleAds.V12.Services.BatchJobResult.Parser, new[]{ "OperationIndex", "MutateOperationResponse", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [BatchJobService.MutateBatchJob][google.ads.googleads.v12.services.BatchJobService.MutateBatchJob]. - /// - public sealed partial class MutateBatchJobRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBatchJobRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobRequest(MutateBatchJobRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobRequest Clone() { - return new MutateBatchJobRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer for which to create a batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.BatchJobOperation operation_; - /// - /// Required. The operation to perform on an individual batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.BatchJobOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBatchJobRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBatchJobRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBatchJobRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.BatchJobOperation(); - } - Operation.MergeFrom(other.Operation); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.BatchJobOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.BatchJobOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation on a batch job. - /// - public sealed partial class BatchJobOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchJobOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobOperation(BatchJobOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobOperation Clone() { - return new BatchJobOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BatchJob Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.BatchJob) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 4; - /// - /// Remove operation: The batch job must not have been run. A resource name - /// for the removed batch job is expected, in this format: - /// - /// `customers/{customer_id}/batchJobs/{batch_job_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 4, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BatchJobOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BatchJobOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(34); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(34); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BatchJobOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BatchJob subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 34: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BatchJob subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 34: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [BatchJobService.MutateBatchJob][google.ads.googleads.v12.services.BatchJobService.MutateBatchJob]. - /// - public sealed partial class MutateBatchJobResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBatchJobResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobResponse(MutateBatchJobResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobResponse Clone() { - return new MutateBatchJobResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResult result_; - /// - /// The result for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResult Result { - get { return result_; } - set { - result_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBatchJobResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBatchJobResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBatchJobResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResult(); - } - Result.MergeFrom(other.Result); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResult(); - } - input.ReadMessage(Result); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResult(); - } - input.ReadMessage(Result); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the batch job mutate. - /// - public sealed partial class MutateBatchJobResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBatchJobResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobResult(MutateBatchJobResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBatchJobResult Clone() { - return new MutateBatchJobResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// The resource name of the batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBatchJobResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBatchJobResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBatchJobResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [BatchJobService.RunBatchJob][google.ads.googleads.v12.services.BatchJobService.RunBatchJob]. - /// - public sealed partial class RunBatchJobRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RunBatchJobRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RunBatchJobRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RunBatchJobRequest(RunBatchJobRequest other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RunBatchJobRequest Clone() { - return new RunBatchJobRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The resource name of the BatchJob to run. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RunBatchJobRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RunBatchJobRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RunBatchJobRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [BatchJobService.AddBatchJobOperations][google.ads.googleads.v12.services.BatchJobService.AddBatchJobOperations]. - /// - public sealed partial class AddBatchJobOperationsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddBatchJobOperationsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddBatchJobOperationsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddBatchJobOperationsRequest(AddBatchJobOperationsRequest other) : this() { - resourceName_ = other.resourceName_; - sequenceToken_ = other.sequenceToken_; - mutateOperations_ = other.mutateOperations_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddBatchJobOperationsRequest Clone() { - return new AddBatchJobOperationsRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The resource name of the batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "sequence_token" field. - public const int SequenceTokenFieldNumber = 2; - private string sequenceToken_ = ""; - /// - /// A token used to enforce sequencing. - /// - /// The first AddBatchJobOperations request for a batch job should not set - /// sequence_token. Subsequent requests must set sequence_token to the value of - /// next_sequence_token received in the previous AddBatchJobOperations - /// response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SequenceToken { - get { return sequenceToken_; } - set { - sequenceToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "mutate_operations" field. - public const int MutateOperationsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_mutateOperations_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Services.MutateOperation.Parser); - private readonly pbc::RepeatedField mutateOperations_ = new pbc::RepeatedField(); - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MutateOperations { - get { return mutateOperations_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AddBatchJobOperationsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddBatchJobOperationsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (SequenceToken != other.SequenceToken) return false; - if(!mutateOperations_.Equals(other.mutateOperations_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (SequenceToken.Length != 0) hash ^= SequenceToken.GetHashCode(); - hash ^= mutateOperations_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (SequenceToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SequenceToken); - } - mutateOperations_.WriteTo(output, _repeated_mutateOperations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (SequenceToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SequenceToken); - } - mutateOperations_.WriteTo(ref output, _repeated_mutateOperations_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (SequenceToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SequenceToken); - } - size += mutateOperations_.CalculateSize(_repeated_mutateOperations_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddBatchJobOperationsRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.SequenceToken.Length != 0) { - SequenceToken = other.SequenceToken; - } - mutateOperations_.Add(other.mutateOperations_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - SequenceToken = input.ReadString(); - break; - } - case 26: { - mutateOperations_.AddEntriesFrom(input, _repeated_mutateOperations_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - SequenceToken = input.ReadString(); - break; - } - case 26: { - mutateOperations_.AddEntriesFrom(ref input, _repeated_mutateOperations_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [BatchJobService.AddBatchJobOperations][google.ads.googleads.v12.services.BatchJobService.AddBatchJobOperations]. - /// - public sealed partial class AddBatchJobOperationsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddBatchJobOperationsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddBatchJobOperationsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddBatchJobOperationsResponse(AddBatchJobOperationsResponse other) : this() { - totalOperations_ = other.totalOperations_; - nextSequenceToken_ = other.nextSequenceToken_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddBatchJobOperationsResponse Clone() { - return new AddBatchJobOperationsResponse(this); - } - - /// Field number for the "total_operations" field. - public const int TotalOperationsFieldNumber = 1; - private long totalOperations_; - /// - /// The total number of operations added so far for this batch job. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalOperations { - get { return totalOperations_; } - set { - totalOperations_ = value; - } - } - - /// Field number for the "next_sequence_token" field. - public const int NextSequenceTokenFieldNumber = 2; - private string nextSequenceToken_ = ""; - /// - /// The sequence token to be used when calling AddBatchJobOperations again if - /// more operations need to be added. The next AddBatchJobOperations request - /// must set the sequence_token field to the value of this field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextSequenceToken { - get { return nextSequenceToken_; } - set { - nextSequenceToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AddBatchJobOperationsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddBatchJobOperationsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TotalOperations != other.TotalOperations) return false; - if (NextSequenceToken != other.NextSequenceToken) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TotalOperations != 0L) hash ^= TotalOperations.GetHashCode(); - if (NextSequenceToken.Length != 0) hash ^= NextSequenceToken.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TotalOperations != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TotalOperations); - } - if (NextSequenceToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextSequenceToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TotalOperations != 0L) { - output.WriteRawTag(8); - output.WriteInt64(TotalOperations); - } - if (NextSequenceToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextSequenceToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TotalOperations != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalOperations); - } - if (NextSequenceToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextSequenceToken); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddBatchJobOperationsResponse other) { - if (other == null) { - return; - } - if (other.TotalOperations != 0L) { - TotalOperations = other.TotalOperations; - } - if (other.NextSequenceToken.Length != 0) { - NextSequenceToken = other.NextSequenceToken; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - TotalOperations = input.ReadInt64(); - break; - } - case 18: { - NextSequenceToken = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - TotalOperations = input.ReadInt64(); - break; - } - case 18: { - NextSequenceToken = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [BatchJobService.ListBatchJobResults][google.ads.googleads.v12.services.BatchJobService.ListBatchJobResults]. - /// - public sealed partial class ListBatchJobResultsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListBatchJobResultsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListBatchJobResultsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListBatchJobResultsRequest(ListBatchJobResultsRequest other) : this() { - resourceName_ = other.resourceName_; - pageToken_ = other.pageToken_; - pageSize_ = other.pageSize_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListBatchJobResultsRequest Clone() { - return new ListBatchJobResultsRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The resource name of the batch job whose results are being listed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 2; - private string pageToken_ = ""; - /// - /// Token of the page to retrieve. If not specified, the first - /// page of results will be returned. Use the value obtained from - /// `next_page_token` in the previous response in order to request - /// the next page of results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 3; - private int pageSize_; - /// - /// Number of elements to retrieve in a single page. - /// When a page request is too large, the server may decide to - /// further limit the number of returned resources. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListBatchJobResultsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListBatchJobResultsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (PageToken != other.PageToken) return false; - if (PageSize != other.PageSize) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListBatchJobResultsRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [BatchJobService.ListBatchJobResults][google.ads.googleads.v12.services.BatchJobService.ListBatchJobResults]. - /// - public sealed partial class ListBatchJobResultsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListBatchJobResultsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListBatchJobResultsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListBatchJobResultsResponse(ListBatchJobResultsResponse other) : this() { - results_ = other.results_.Clone(); - nextPageToken_ = other.nextPageToken_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListBatchJobResultsResponse Clone() { - return new ListBatchJobResultsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.BatchJobResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// The list of rows that matched the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Pagination token used to retrieve the next page of results. - /// Pass the content of this string as the `page_token` attribute of - /// the next request. `next_page_token` is not returned for the last - /// page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListBatchJobResultsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListBatchJobResultsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (NextPageToken != other.NextPageToken) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListBatchJobResultsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An individual batch job result. - /// - public sealed partial class BatchJobResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchJobResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobResult(BatchJobResult other) : this() { - operationIndex_ = other.operationIndex_; - mutateOperationResponse_ = other.mutateOperationResponse_ != null ? other.mutateOperationResponse_.Clone() : null; - status_ = other.status_ != null ? other.status_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobResult Clone() { - return new BatchJobResult(this); - } - - /// Field number for the "operation_index" field. - public const int OperationIndexFieldNumber = 1; - private long operationIndex_; - /// - /// Index of the mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long OperationIndex { - get { return operationIndex_; } - set { - operationIndex_ = value; - } - } - - /// Field number for the "mutate_operation_response" field. - public const int MutateOperationResponseFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse mutateOperationResponse_; - /// - /// Response for the mutate. - /// May be empty if errors occurred. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse MutateOperationResponse { - get { return mutateOperationResponse_; } - set { - mutateOperationResponse_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Rpc.Status status_; - /// - /// Details of the errors when processing the operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BatchJobResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BatchJobResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OperationIndex != other.OperationIndex) return false; - if (!object.Equals(MutateOperationResponse, other.MutateOperationResponse)) return false; - if (!object.Equals(Status, other.Status)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (OperationIndex != 0L) hash ^= OperationIndex.GetHashCode(); - if (mutateOperationResponse_ != null) hash ^= MutateOperationResponse.GetHashCode(); - if (status_ != null) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (OperationIndex != 0L) { - output.WriteRawTag(8); - output.WriteInt64(OperationIndex); - } - if (mutateOperationResponse_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MutateOperationResponse); - } - if (status_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (OperationIndex != 0L) { - output.WriteRawTag(8); - output.WriteInt64(OperationIndex); - } - if (mutateOperationResponse_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MutateOperationResponse); - } - if (status_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (OperationIndex != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(OperationIndex); - } - if (mutateOperationResponse_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MutateOperationResponse); - } - if (status_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BatchJobResult other) { - if (other == null) { - return; - } - if (other.OperationIndex != 0L) { - OperationIndex = other.OperationIndex; - } - if (other.mutateOperationResponse_ != null) { - if (mutateOperationResponse_ == null) { - MutateOperationResponse = new global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse(); - } - MutateOperationResponse.MergeFrom(other.MutateOperationResponse); - } - if (other.status_ != null) { - if (status_ == null) { - Status = new global::Google.Rpc.Status(); - } - Status.MergeFrom(other.Status); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - OperationIndex = input.ReadInt64(); - break; - } - case 18: { - if (mutateOperationResponse_ == null) { - MutateOperationResponse = new global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse(); - } - input.ReadMessage(MutateOperationResponse); - break; - } - case 26: { - if (status_ == null) { - Status = new global::Google.Rpc.Status(); - } - input.ReadMessage(Status); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - OperationIndex = input.ReadInt64(); - break; - } - case 18: { - if (mutateOperationResponse_ == null) { - MutateOperationResponse = new global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse(); - } - input.ReadMessage(MutateOperationResponse); - break; - } - case 26: { - if (status_ == null) { - Status = new global::Google.Rpc.Status(); - } - input.ReadMessage(Status); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJobServiceClient.g.cs deleted file mode 100755 index 9bb0eda2b..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobServiceClient.g.cs +++ /dev/null @@ -1,1679 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using lro = Google.LongRunning; -using proto = Google.Protobuf; -using wkt = Google.Protobuf.WellKnownTypes; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class BatchJobServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static BatchJobServiceSettings GetDefault() => new BatchJobServiceSettings(); - - /// Constructs a new object with default settings. - public BatchJobServiceSettings() - { - } - - private BatchJobServiceSettings(BatchJobServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateBatchJobSettings = existing.MutateBatchJobSettings; - ListBatchJobResultsSettings = existing.ListBatchJobResultsSettings; - RunBatchJobSettings = existing.RunBatchJobSettings; - RunBatchJobOperationsSettings = existing.RunBatchJobOperationsSettings.Clone(); - AddBatchJobOperationsSettings = existing.AddBatchJobOperationsSettings; - OnCopy(existing); - } - - partial void OnCopy(BatchJobServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// BatchJobServiceClient.MutateBatchJob and BatchJobServiceClient.MutateBatchJobAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateBatchJobSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// BatchJobServiceClient.ListBatchJobResults and BatchJobServiceClient.ListBatchJobResultsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ListBatchJobResultsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// BatchJobServiceClient.RunBatchJob and BatchJobServiceClient.RunBatchJobAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings RunBatchJobSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// Long Running Operation settings for calls to BatchJobServiceClient.RunBatchJob and - /// BatchJobServiceClient.RunBatchJobAsync. - /// - /// - /// Uses default of: - /// - /// Initial delay: 20 seconds. - /// Delay multiplier: 1.5 - /// Maximum delay: 45 seconds. - /// Total timeout: 24 hours. - /// - /// - public lro::OperationsSettings RunBatchJobOperationsSettings { get; set; } = new lro::OperationsSettings - { - DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), - }; - - /// - /// for synchronous and asynchronous calls to - /// BatchJobServiceClient.AddBatchJobOperations and BatchJobServiceClient.AddBatchJobOperationsAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings AddBatchJobOperationsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public BatchJobServiceSettings Clone() => new BatchJobServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class BatchJobServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public BatchJobServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public BatchJobServiceClientBuilder() : base(BatchJobServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref BatchJobServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override BatchJobServiceClient Build() - { - BatchJobServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private BatchJobServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return BatchJobServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return BatchJobServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => BatchJobServiceClient.ChannelPool; - } - - /// BatchJobService client wrapper, for convenient use. - /// - /// Service to manage batch jobs. - /// - public abstract partial class BatchJobServiceClient - { - /// - /// The default endpoint for the BatchJobService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default BatchJobService scopes. - /// - /// The default BatchJobService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(BatchJobService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new BatchJobServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static BatchJobServiceClient Create() => new BatchJobServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static BatchJobServiceClient Create(grpccore::CallInvoker callInvoker, BatchJobServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - BatchJobService.BatchJobServiceClient grpcClient = new BatchJobService.BatchJobServiceClient(callInvoker); - return new BatchJobServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC BatchJobService client - public virtual BatchJobService.BatchJobServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBatchJobResponse MutateBatchJob(MutateBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBatchJobAsync(MutateBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBatchJobAsync(MutateBatchJobRequest request, st::CancellationToken cancellationToken) => - MutateBatchJobAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer for which to create a batch job. - /// - /// - /// Required. The operation to perform on an individual batch job. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBatchJobResponse MutateBatchJob(string customerId, BatchJobOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateBatchJob(new MutateBatchJobRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer for which to create a batch job. - /// - /// - /// Required. The operation to perform on an individual batch job. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBatchJobAsync(string customerId, BatchJobOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateBatchJobAsync(new MutateBatchJobRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer for which to create a batch job. - /// - /// - /// Required. The operation to perform on an individual batch job. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBatchJobAsync(string customerId, BatchJobOperation operation, st::CancellationToken cancellationToken) => - MutateBatchJobAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListBatchJobResults(ListBatchJobResultsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListBatchJobResultsAsync(ListBatchJobResultsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the batch job whose results are being listed. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListBatchJobResults(string resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListBatchJobResults(new ListBatchJobResultsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the batch job whose results are being listed. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListBatchJobResultsAsync(string resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListBatchJobResultsAsync(new ListBatchJobResultsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the batch job whose results are being listed. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListBatchJobResults(gagvr::BatchJobName resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListBatchJobResults(new ListBatchJobResultsRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the batch job whose results are being listed. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListBatchJobResultsAsync(gagvr::BatchJobName resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListBatchJobResultsAsync(new ListBatchJobResultsRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation RunBatchJob(RunBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> RunBatchJobAsync(RunBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> RunBatchJobAsync(RunBatchJobRequest request, st::CancellationToken cancellationToken) => - RunBatchJobAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// The long-running operations client for RunBatchJob. - public virtual lro::OperationsClient RunBatchJobOperationsClient => throw new sys::NotImplementedException(); - - /// - /// Poll an operation once, using an operationName from a previous invocation of RunBatchJob. - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// The result of polling the operation. - public virtual lro::Operation PollOnceRunBatchJob(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RunBatchJobOperationsClient, callSettings); - - /// - /// Asynchronously poll an operation once, using an operationName from a previous invocation of - /// RunBatchJob. - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// A task representing the result of polling the operation. - public virtual stt::Task> PollOnceRunBatchJobAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), RunBatchJobOperationsClient, callSettings); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the BatchJob to run. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation RunBatchJob(string resourceName, gaxgrpc::CallSettings callSettings = null) => - RunBatchJob(new RunBatchJobRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the BatchJob to run. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> RunBatchJobAsync(string resourceName, gaxgrpc::CallSettings callSettings = null) => - RunBatchJobAsync(new RunBatchJobRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the BatchJob to run. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> RunBatchJobAsync(string resourceName, st::CancellationToken cancellationToken) => - RunBatchJobAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the BatchJob to run. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation RunBatchJob(gagvr::BatchJobName resourceName, gaxgrpc::CallSettings callSettings = null) => - RunBatchJob(new RunBatchJobRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the BatchJob to run. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> RunBatchJobAsync(gagvr::BatchJobName resourceName, gaxgrpc::CallSettings callSettings = null) => - RunBatchJobAsync(new RunBatchJobRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the BatchJob to run. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> RunBatchJobAsync(gagvr::BatchJobName resourceName, st::CancellationToken cancellationToken) => - RunBatchJobAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual AddBatchJobOperationsResponse AddBatchJobOperations(AddBatchJobOperationsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(AddBatchJobOperationsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(AddBatchJobOperationsRequest request, st::CancellationToken cancellationToken) => - AddBatchJobOperationsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// A token used to enforce sequencing. - /// - /// The first AddBatchJobOperations request for a batch job should not set - /// sequence_token. Subsequent requests must set sequence_token to the value of - /// next_sequence_token received in the previous AddBatchJobOperations - /// response. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual AddBatchJobOperationsResponse AddBatchJobOperations(string resourceName, string sequenceToken, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperations(new AddBatchJobOperationsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - SequenceToken = sequenceToken ?? "", - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// A token used to enforce sequencing. - /// - /// The first AddBatchJobOperations request for a batch job should not set - /// sequence_token. Subsequent requests must set sequence_token to the value of - /// next_sequence_token received in the previous AddBatchJobOperations - /// response. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(string resourceName, string sequenceToken, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperationsAsync(new AddBatchJobOperationsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - SequenceToken = sequenceToken ?? "", - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// A token used to enforce sequencing. - /// - /// The first AddBatchJobOperations request for a batch job should not set - /// sequence_token. Subsequent requests must set sequence_token to the value of - /// next_sequence_token received in the previous AddBatchJobOperations - /// response. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(string resourceName, string sequenceToken, scg::IEnumerable mutateOperations, st::CancellationToken cancellationToken) => - AddBatchJobOperationsAsync(resourceName, sequenceToken, mutateOperations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// A token used to enforce sequencing. - /// - /// The first AddBatchJobOperations request for a batch job should not set - /// sequence_token. Subsequent requests must set sequence_token to the value of - /// next_sequence_token received in the previous AddBatchJobOperations - /// response. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual AddBatchJobOperationsResponse AddBatchJobOperations(gagvr::BatchJobName resourceName, string sequenceToken, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperations(new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - SequenceToken = sequenceToken ?? "", - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// A token used to enforce sequencing. - /// - /// The first AddBatchJobOperations request for a batch job should not set - /// sequence_token. Subsequent requests must set sequence_token to the value of - /// next_sequence_token received in the previous AddBatchJobOperations - /// response. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(gagvr::BatchJobName resourceName, string sequenceToken, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperationsAsync(new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - SequenceToken = sequenceToken ?? "", - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// A token used to enforce sequencing. - /// - /// The first AddBatchJobOperations request for a batch job should not set - /// sequence_token. Subsequent requests must set sequence_token to the value of - /// next_sequence_token received in the previous AddBatchJobOperations - /// response. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(gagvr::BatchJobName resourceName, string sequenceToken, scg::IEnumerable mutateOperations, st::CancellationToken cancellationToken) => - AddBatchJobOperationsAsync(resourceName, sequenceToken, mutateOperations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual AddBatchJobOperationsResponse AddBatchJobOperations(string resourceName, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperations(new AddBatchJobOperationsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(string resourceName, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperationsAsync(new AddBatchJobOperationsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(string resourceName, scg::IEnumerable mutateOperations, st::CancellationToken cancellationToken) => - AddBatchJobOperationsAsync(resourceName, mutateOperations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual AddBatchJobOperationsResponse AddBatchJobOperations(gagvr::BatchJobName resourceName, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperations(new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(gagvr::BatchJobName resourceName, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - AddBatchJobOperationsAsync(new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The resource name of the batch job. - /// - /// - /// Required. The list of mutates being added. - /// - /// Operations can use negative integers as temp ids to signify dependencies - /// between entities created in this batch job. For example, a customer with - /// id = 1234 can create a campaign and an ad group in that same campaign by - /// creating a campaign in the first operation with the resource name - /// explicitly set to "customers/1234/campaigns/-1", and creating an ad group - /// in the second operation with the campaign field also set to - /// "customers/1234/campaigns/-1". - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task AddBatchJobOperationsAsync(gagvr::BatchJobName resourceName, scg::IEnumerable mutateOperations, st::CancellationToken cancellationToken) => - AddBatchJobOperationsAsync(resourceName, mutateOperations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// BatchJobService client wrapper implementation, for convenient use. - /// - /// Service to manage batch jobs. - /// - public sealed partial class BatchJobServiceClientImpl : BatchJobServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateBatchJob; - - private readonly gaxgrpc::ApiCall _callListBatchJobResults; - - private readonly gaxgrpc::ApiCall _callRunBatchJob; - - private readonly gaxgrpc::ApiCall _callAddBatchJobOperations; - - /// - /// Constructs a client wrapper for the BatchJobService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public BatchJobServiceClientImpl(BatchJobService.BatchJobServiceClient grpcClient, BatchJobServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - BatchJobServiceSettings effectiveSettings = settings ?? BatchJobServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - RunBatchJobOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.RunBatchJobOperationsSettings, logger); - _callMutateBatchJob = clientHelper.BuildApiCall("MutateBatchJob", grpcClient.MutateBatchJobAsync, grpcClient.MutateBatchJob, effectiveSettings.MutateBatchJobSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateBatchJob); - Modify_MutateBatchJobApiCall(ref _callMutateBatchJob); - _callListBatchJobResults = clientHelper.BuildApiCall("ListBatchJobResults", grpcClient.ListBatchJobResultsAsync, grpcClient.ListBatchJobResults, effectiveSettings.ListBatchJobResultsSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callListBatchJobResults); - Modify_ListBatchJobResultsApiCall(ref _callListBatchJobResults); - _callRunBatchJob = clientHelper.BuildApiCall("RunBatchJob", grpcClient.RunBatchJobAsync, grpcClient.RunBatchJob, effectiveSettings.RunBatchJobSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callRunBatchJob); - Modify_RunBatchJobApiCall(ref _callRunBatchJob); - _callAddBatchJobOperations = clientHelper.BuildApiCall("AddBatchJobOperations", grpcClient.AddBatchJobOperationsAsync, grpcClient.AddBatchJobOperations, effectiveSettings.AddBatchJobOperationsSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callAddBatchJobOperations); - Modify_AddBatchJobOperationsApiCall(ref _callAddBatchJobOperations); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateBatchJobApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ListBatchJobResultsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_RunBatchJobApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_AddBatchJobOperationsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(BatchJobService.BatchJobServiceClient grpcClient, BatchJobServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC BatchJobService client - public override BatchJobService.BatchJobServiceClient GrpcClient { get; } - - partial void Modify_MutateBatchJobRequest(ref MutateBatchJobRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ListBatchJobResultsRequest(ref ListBatchJobResultsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_RunBatchJobRequest(ref RunBatchJobRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_AddBatchJobOperationsRequest(ref AddBatchJobOperationsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateBatchJobResponse MutateBatchJob(MutateBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBatchJobRequest(ref request, ref callSettings); - return _callMutateBatchJob.Sync(request, callSettings); - } - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateBatchJobAsync(MutateBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBatchJobRequest(ref request, ref callSettings); - return _callMutateBatchJob.Async(request, callSettings); - } - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable ListBatchJobResults(ListBatchJobResultsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListBatchJobResultsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callListBatchJobResults, request, callSettings); - } - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable ListBatchJobResultsAsync(ListBatchJobResultsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListBatchJobResultsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListBatchJobResults, request, callSettings); - } - - /// The long-running operations client for RunBatchJob. - public override lro::OperationsClient RunBatchJobOperationsClient { get; } - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override lro::Operation RunBatchJob(RunBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_RunBatchJobRequest(ref request, ref callSettings); - return new lro::Operation(_callRunBatchJob.Sync(request, callSettings), RunBatchJobOperationsClient); - } - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override async stt::Task> RunBatchJobAsync(RunBatchJobRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_RunBatchJobRequest(ref request, ref callSettings); - return new lro::Operation(await _callRunBatchJob.Async(request, callSettings).ConfigureAwait(false), RunBatchJobOperationsClient); - } - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override AddBatchJobOperationsResponse AddBatchJobOperations(AddBatchJobOperationsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_AddBatchJobOperationsRequest(ref request, ref callSettings); - return _callAddBatchJobOperations.Sync(request, callSettings); - } - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task AddBatchJobOperationsAsync(AddBatchJobOperationsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_AddBatchJobOperationsRequest(ref request, ref callSettings); - return _callAddBatchJobOperations.Async(request, callSettings); - } - } - - public partial class ListBatchJobResultsRequest : gaxgrpc::IPageRequest - { - } - - public partial class ListBatchJobResultsResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Results.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } - - public static partial class BatchJobService - { - public partial class BatchJobServiceClient - { - /// - /// Creates a new instance of using the same call invoker as - /// this client. - /// - /// A new Operations client for the same target as this client. - public virtual lro::Operations.OperationsClient CreateOperationsClient() => - new lro::Operations.OperationsClient(CallInvoker); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJobServiceGrpc.g.cs deleted file mode 100755 index a6bab515f..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobServiceGrpc.g.cs +++ /dev/null @@ -1,639 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/batch_job_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage batch jobs. - /// - public static partial class BatchJobService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.BatchJobService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBatchJobRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBatchJobResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListBatchJobResultsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListBatchJobResultsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_RunBatchJobRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_AddBatchJobOperationsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_AddBatchJobOperationsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateBatchJob = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateBatchJob", - __Marshaller_google_ads_googleads_v12_services_MutateBatchJobRequest, - __Marshaller_google_ads_googleads_v12_services_MutateBatchJobResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListBatchJobResults = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListBatchJobResults", - __Marshaller_google_ads_googleads_v12_services_ListBatchJobResultsRequest, - __Marshaller_google_ads_googleads_v12_services_ListBatchJobResultsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_RunBatchJob = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "RunBatchJob", - __Marshaller_google_ads_googleads_v12_services_RunBatchJobRequest, - __Marshaller_google_longrunning_Operation); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_AddBatchJobOperations = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "AddBatchJobOperations", - __Marshaller_google_ads_googleads_v12_services_AddBatchJobOperationsRequest, - __Marshaller_google_ads_googleads_v12_services_AddBatchJobOperationsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.BatchJobServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of BatchJobService - [grpc::BindServiceMethod(typeof(BatchJobService), "BindService")] - public abstract partial class BatchJobServiceBase - { - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateBatchJob(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListBatchJobResults(global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task RunBatchJob(global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task AddBatchJobOperations(global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for BatchJobService - public partial class BatchJobServiceClient : grpc::ClientBase - { - /// Creates a new client for BatchJobService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BatchJobServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for BatchJobService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BatchJobServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BatchJobServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BatchJobServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResponse MutateBatchJob(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBatchJob(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobResponse MutateBatchJob(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateBatchJob, null, options, request); - } - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBatchJobAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBatchJobAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Mutates a batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBatchJobAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBatchJobRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateBatchJob, null, options, request); - } - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsResponse ListBatchJobResults(global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListBatchJobResults(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsResponse ListBatchJobResults(global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListBatchJobResults, null, options, request); - } - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListBatchJobResultsAsync(global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListBatchJobResultsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the results of the batch job. The job must be done. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListBatchJobResultsAsync(global::Google.Ads.GoogleAds.V12.Services.ListBatchJobResultsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListBatchJobResults, null, options, request); - } - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation RunBatchJob(global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RunBatchJob(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation RunBatchJob(global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_RunBatchJob, null, options, request); - } - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RunBatchJobAsync(global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return RunBatchJobAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Runs the batch job. - /// - /// The Operation.metadata field type is BatchJobMetadata. When finished, the - /// long running operation will not contain errors or a response. Instead, use - /// ListBatchJobResults to get the results of the job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall RunBatchJobAsync(global::Google.Ads.GoogleAds.V12.Services.RunBatchJobRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_RunBatchJob, null, options, request); - } - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsResponse AddBatchJobOperations(global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddBatchJobOperations(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsResponse AddBatchJobOperations(global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_AddBatchJobOperations, null, options, request); - } - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddBatchJobOperationsAsync(global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return AddBatchJobOperationsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Add operations to the batch job. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BatchJobError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall AddBatchJobOperationsAsync(global::Google.Ads.GoogleAds.V12.Services.AddBatchJobOperationsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_AddBatchJobOperations, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override BatchJobServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new BatchJobServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(BatchJobServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateBatchJob, serviceImpl.MutateBatchJob) - .AddMethod(__Method_ListBatchJobResults, serviceImpl.ListBatchJobResults) - .AddMethod(__Method_RunBatchJob, serviceImpl.RunBatchJob) - .AddMethod(__Method_AddBatchJobOperations, serviceImpl.AddBatchJobOperations).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, BatchJobServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateBatchJob, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateBatchJob)); - serviceBinder.AddMethod(__Method_ListBatchJobResults, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListBatchJobResults)); - serviceBinder.AddMethod(__Method_RunBatchJob, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RunBatchJob)); - serviceBinder.AddMethod(__Method_AddBatchJobOperations, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AddBatchJobOperations)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJobServiceResourceNames.g.cs deleted file mode 100755 index e3c8a8a85..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobServiceResourceNames.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class BatchJobOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BatchJobName RemoveAsBatchJobName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::BatchJobName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateBatchJobResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BatchJobName ResourceNameAsBatchJobName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BatchJobName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class RunBatchJobRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BatchJobName ResourceNameAsBatchJobName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BatchJobName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class AddBatchJobOperationsRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BatchJobName ResourceNameAsBatchJobName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BatchJobName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class ListBatchJobResultsRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BatchJobName ResourceNameAsBatchJobName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BatchJobName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BatchJobStatus.g.cs b/Google.Ads.GoogleAds/src/V12/BatchJobStatus.g.cs deleted file mode 100755 index dfe44148e..000000000 --- a/Google.Ads.GoogleAds/src/V12/BatchJobStatus.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/batch_job_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/batch_job_status.proto - public static partial class BatchJobStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/batch_job_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BatchJobStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmF0Y2hfam9iX3N0", - "YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zImgK", - "EkJhdGNoSm9iU3RhdHVzRW51bSJSCg5CYXRjaEpvYlN0YXR1cxIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARILCgdQRU5ESU5HEAISCwoHUlVOTklO", - "RxADEggKBERPTkUQBELtAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtc0ITQmF0Y2hKb2JTdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVu", - "dW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusEnum.Types.BatchJobStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible batch job statuses. - /// - public sealed partial class BatchJobStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BatchJobStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BatchJobStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobStatusEnum(BatchJobStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BatchJobStatusEnum Clone() { - return new BatchJobStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BatchJobStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BatchJobStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BatchJobStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BatchJobStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The batch job statuses. - /// - public enum BatchJobStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The job is not currently running. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// The job is running. - /// - [pbr::OriginalName("RUNNING")] Running = 3, - /// - /// The job is done. - /// - [pbr::OriginalName("DONE")] Done = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BidModifierSource.g.cs b/Google.Ads.GoogleAds/src/V12/BidModifierSource.g.cs deleted file mode 100755 index cf274a6b6..000000000 --- a/Google.Ads.GoogleAds/src/V12/BidModifierSource.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/bid_modifier_source.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/bid_modifier_source.proto - public static partial class BidModifierSourceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/bid_modifier_source.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BidModifierSourceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmlkX21vZGlmaWVy", - "X3NvdXJjZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "ImYKFUJpZE1vZGlmaWVyU291cmNlRW51bSJNChFCaWRNb2RpZmllclNvdXJj", - "ZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIMCghDQU1QQUlHThAC", - "EgwKCEFEX0dST1VQEANC8AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXNCFkJpZE1vZGlmaWVyU291cmNlUHJvdG9QAVpDZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum), global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceEnum.Types.BidModifierSource) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible bid modifier sources. - /// - public sealed partial class BidModifierSourceEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BidModifierSourceEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BidModifierSourceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BidModifierSourceEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BidModifierSourceEnum(BidModifierSourceEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BidModifierSourceEnum Clone() { - return new BidModifierSourceEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BidModifierSourceEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BidModifierSourceEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BidModifierSourceEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BidModifierSourceEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible bid modifier sources. - /// - public enum BidModifierSource { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The bid modifier is specified at the campaign level, on the campaign - /// level criterion. - /// - [pbr::OriginalName("CAMPAIGN")] Campaign = 2, - /// - /// The bid modifier is specified (overridden) at the ad group level. - /// - [pbr::OriginalName("AD_GROUP")] AdGroup = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Bidding.g.cs b/Google.Ads.GoogleAds/src/V12/Bidding.g.cs deleted file mode 100755 index 5aac249dd..000000000 --- a/Google.Ads.GoogleAds/src/V12/Bidding.g.cs +++ /dev/null @@ -1,3366 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/bidding.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/bidding.proto - public static partial class BiddingReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/bidding.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2JpZGRpbmcucHJv", - "dG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24aRWdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy90YXJnZXRfaW1wcmVzc2lvbl9zaGFy", - "ZV9sb2NhdGlvbi5wcm90byJMCgpDb21taXNzaW9uEiMKFmNvbW1pc3Npb25f", - "cmF0ZV9taWNyb3MYAiABKANIAIgBAUIZChdfY29tbWlzc2lvbl9yYXRlX21p", - "Y3JvcyINCgtFbmhhbmNlZENwYyILCglNYW51YWxDcGEiRwoJTWFudWFsQ3Bj", - "EiEKFGVuaGFuY2VkX2NwY19lbmFibGVkGAIgASgISACIAQFCFwoVX2VuaGFu", - "Y2VkX2NwY19lbmFibGVkIgsKCU1hbnVhbENwbSILCglNYW51YWxDcHYibgoT", - "TWF4aW1pemVDb252ZXJzaW9ucxIeChZjcGNfYmlkX2NlaWxpbmdfbWljcm9z", - "GAIgASgDEhwKFGNwY19iaWRfZmxvb3JfbWljcm9zGAMgASgDEhkKEXRhcmdl", - "dF9jcGFfbWljcm9zGAQgASgDImwKF01heGltaXplQ29udmVyc2lvblZhbHVl", - "EhMKC3RhcmdldF9yb2FzGAIgASgBEh4KFmNwY19iaWRfY2VpbGluZ19taWNy", - "b3MYAyABKAMSHAoUY3BjX2JpZF9mbG9vcl9taWNyb3MYBCABKAMivQEKCVRh", - "cmdldENwYRIeChF0YXJnZXRfY3BhX21pY3JvcxgEIAEoA0gAiAEBEiMKFmNw", - "Y19iaWRfY2VpbGluZ19taWNyb3MYBSABKANIAYgBARIhChRjcGNfYmlkX2Zs", - "b29yX21pY3JvcxgGIAEoA0gCiAEBQhQKEl90YXJnZXRfY3BhX21pY3Jvc0IZ", - "ChdfY3BjX2JpZF9jZWlsaW5nX21pY3Jvc0IXChVfY3BjX2JpZF9mbG9vcl9t", - "aWNyb3MiCwoJVGFyZ2V0Q3BtIo4CChVUYXJnZXRJbXByZXNzaW9uU2hhcmUS", - "cQoIbG9jYXRpb24YASABKA4yXy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuVGFyZ2V0SW1wcmVzc2lvblNoYXJlTG9jYXRpb25FbnVtLlRhcmdl", - "dEltcHJlc3Npb25TaGFyZUxvY2F0aW9uEiUKGGxvY2F0aW9uX2ZyYWN0aW9u", - "X21pY3JvcxgEIAEoA0gAiAEBEiMKFmNwY19iaWRfY2VpbGluZ19taWNyb3MY", - "BSABKANIAYgBAUIbChlfbG9jYXRpb25fZnJhY3Rpb25fbWljcm9zQhkKF19j", - "cGNfYmlkX2NlaWxpbmdfbWljcm9zIrIBCgpUYXJnZXRSb2FzEhgKC3Rhcmdl", - "dF9yb2FzGAQgASgBSACIAQESIwoWY3BjX2JpZF9jZWlsaW5nX21pY3JvcxgF", - "IAEoA0gBiAEBEiEKFGNwY19iaWRfZmxvb3JfbWljcm9zGAYgASgDSAKIAQFC", - "DgoMX3RhcmdldF9yb2FzQhkKF19jcGNfYmlkX2NlaWxpbmdfbWljcm9zQhcK", - "FV9jcGNfYmlkX2Zsb29yX21pY3JvcyKLAQoLVGFyZ2V0U3BlbmQSJAoTdGFy", - "Z2V0X3NwZW5kX21pY3JvcxgDIAEoA0ICGAFIAIgBARIjChZjcGNfYmlkX2Nl", - "aWxpbmdfbWljcm9zGAQgASgDSAGIAQFCFgoUX3RhcmdldF9zcGVuZF9taWNy", - "b3NCGQoXX2NwY19iaWRfY2VpbGluZ19taWNyb3MiiAEKClBlcmNlbnRDcGMS", - "IwoWY3BjX2JpZF9jZWlsaW5nX21pY3JvcxgDIAEoA0gAiAEBEiEKFGVuaGFu", - "Y2VkX2NwY19lbmFibGVkGAQgASgISAGIAQFCGQoXX2NwY19iaWRfY2VpbGlu", - "Z19taWNyb3NCFwoVX2VuaGFuY2VkX2NwY19lbmFibGVkQuwBCiNjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbkIMQmlkZGluZ1Byb3RvUAFa", - "RWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvY29tbW9uO2NvbW1vbqICA0dBQaoCH0dvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5Db21tb27KAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcQ29tbW9u6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpDb21t", - "b25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.Commission), global::Google.Ads.GoogleAds.V12.Common.Commission.Parser, new[]{ "CommissionRateMicros" }, new[]{ "CommissionRateMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc), global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ManualCpa), global::Google.Ads.GoogleAds.V12.Common.ManualCpa.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ManualCpc), global::Google.Ads.GoogleAds.V12.Common.ManualCpc.Parser, new[]{ "EnhancedCpcEnabled" }, new[]{ "EnhancedCpcEnabled" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ManualCpm), global::Google.Ads.GoogleAds.V12.Common.ManualCpm.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ManualCpv), global::Google.Ads.GoogleAds.V12.Common.ManualCpv.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions), global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions.Parser, new[]{ "CpcBidCeilingMicros", "CpcBidFloorMicros", "TargetCpaMicros" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue), global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue.Parser, new[]{ "TargetRoas", "CpcBidCeilingMicros", "CpcBidFloorMicros" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TargetCpa), global::Google.Ads.GoogleAds.V12.Common.TargetCpa.Parser, new[]{ "TargetCpaMicros", "CpcBidCeilingMicros", "CpcBidFloorMicros" }, new[]{ "TargetCpaMicros", "CpcBidCeilingMicros", "CpcBidFloorMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TargetCpm), global::Google.Ads.GoogleAds.V12.Common.TargetCpm.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare), global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare.Parser, new[]{ "Location", "LocationFractionMicros", "CpcBidCeilingMicros" }, new[]{ "LocationFractionMicros", "CpcBidCeilingMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TargetRoas), global::Google.Ads.GoogleAds.V12.Common.TargetRoas.Parser, new[]{ "TargetRoas_", "CpcBidCeilingMicros", "CpcBidFloorMicros" }, new[]{ "TargetRoas", "CpcBidCeilingMicros", "CpcBidFloorMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TargetSpend), global::Google.Ads.GoogleAds.V12.Common.TargetSpend.Parser, new[]{ "TargetSpendMicros", "CpcBidCeilingMicros" }, new[]{ "TargetSpendMicros", "CpcBidCeilingMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PercentCpc), global::Google.Ads.GoogleAds.V12.Common.PercentCpc.Parser, new[]{ "CpcBidCeilingMicros", "EnhancedCpcEnabled" }, new[]{ "CpcBidCeilingMicros", "EnhancedCpcEnabled" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Commission is an automatic bidding strategy in which the advertiser pays a - /// certain portion of the conversion value. - /// - public sealed partial class Commission : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Commission()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Commission() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Commission(Commission other) : this() { - _hasBits0 = other._hasBits0; - commissionRateMicros_ = other.commissionRateMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Commission Clone() { - return new Commission(this); - } - - /// Field number for the "commission_rate_micros" field. - public const int CommissionRateMicrosFieldNumber = 2; - private long commissionRateMicros_; - /// - /// Commission rate defines the portion of the conversion value that the - /// advertiser will be billed. A commission rate of x should be passed into - /// this field as (x * 1,000,000). For example, 106,000 represents a commission - /// rate of 0.106 (10.6%). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CommissionRateMicros { - get { if ((_hasBits0 & 1) != 0) { return commissionRateMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - commissionRateMicros_ = value; - } - } - /// Gets whether the "commission_rate_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCommissionRateMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "commission_rate_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCommissionRateMicros() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Commission); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Commission other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CommissionRateMicros != other.CommissionRateMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCommissionRateMicros) hash ^= CommissionRateMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCommissionRateMicros) { - output.WriteRawTag(16); - output.WriteInt64(CommissionRateMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCommissionRateMicros) { - output.WriteRawTag(16); - output.WriteInt64(CommissionRateMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCommissionRateMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CommissionRateMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Commission other) { - if (other == null) { - return; - } - if (other.HasCommissionRateMicros) { - CommissionRateMicros = other.CommissionRateMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - CommissionRateMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - CommissionRateMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bidding strategy that raises bids for clicks - /// that seem more likely to lead to a conversion and lowers - /// them for clicks where they seem less likely. - /// - /// This bidding strategy is deprecated and cannot be created anymore. Use - /// ManualCpc with enhanced_cpc_enabled set to true for equivalent functionality. - /// - public sealed partial class EnhancedCpc : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnhancedCpc()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnhancedCpc() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnhancedCpc(EnhancedCpc other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnhancedCpc Clone() { - return new EnhancedCpc(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EnhancedCpc); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnhancedCpc other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnhancedCpc other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// Manual bidding strategy that allows advertiser to set the bid per - /// advertiser-specified action. - /// - public sealed partial class ManualCpa : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ManualCpa()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpa() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpa(ManualCpa other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpa Clone() { - return new ManualCpa(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ManualCpa); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ManualCpa other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ManualCpa other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// Manual click-based bidding where user pays per click. - /// - public sealed partial class ManualCpc : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ManualCpc()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpc() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpc(ManualCpc other) : this() { - _hasBits0 = other._hasBits0; - enhancedCpcEnabled_ = other.enhancedCpcEnabled_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpc Clone() { - return new ManualCpc(this); - } - - /// Field number for the "enhanced_cpc_enabled" field. - public const int EnhancedCpcEnabledFieldNumber = 2; - private bool enhancedCpcEnabled_; - /// - /// Whether bids are to be enhanced based on conversion optimizer data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnhancedCpcEnabled { - get { if ((_hasBits0 & 1) != 0) { return enhancedCpcEnabled_; } else { return false; } } - set { - _hasBits0 |= 1; - enhancedCpcEnabled_ = value; - } - } - /// Gets whether the "enhanced_cpc_enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEnhancedCpcEnabled { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "enhanced_cpc_enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEnhancedCpcEnabled() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ManualCpc); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ManualCpc other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EnhancedCpcEnabled != other.EnhancedCpcEnabled) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasEnhancedCpcEnabled) hash ^= EnhancedCpcEnabled.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasEnhancedCpcEnabled) { - output.WriteRawTag(16); - output.WriteBool(EnhancedCpcEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasEnhancedCpcEnabled) { - output.WriteRawTag(16); - output.WriteBool(EnhancedCpcEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasEnhancedCpcEnabled) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ManualCpc other) { - if (other == null) { - return; - } - if (other.HasEnhancedCpcEnabled) { - EnhancedCpcEnabled = other.EnhancedCpcEnabled; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - EnhancedCpcEnabled = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - EnhancedCpcEnabled = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Manual impression-based bidding where user pays per thousand impressions. - /// - public sealed partial class ManualCpm : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ManualCpm()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpm() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpm(ManualCpm other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpm Clone() { - return new ManualCpm(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ManualCpm); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ManualCpm other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ManualCpm other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// View based bidding where user pays per video view. - /// - public sealed partial class ManualCpv : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ManualCpv()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpv() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpv(ManualCpv other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ManualCpv Clone() { - return new ManualCpv(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ManualCpv); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ManualCpv other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ManualCpv other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// An automated bidding strategy to help get the most conversions for your - /// campaigns while spending your budget. - /// - public sealed partial class MaximizeConversions : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaximizeConversions()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversions() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversions(MaximizeConversions other) : this() { - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - cpcBidFloorMicros_ = other.cpcBidFloorMicros_; - targetCpaMicros_ = other.targetCpaMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversions Clone() { - return new MaximizeConversions(this); - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 2; - private long cpcBidCeilingMicros_; - /// - /// Maximum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// Mutable for portfolio bidding strategies only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { return cpcBidCeilingMicros_; } - set { - cpcBidCeilingMicros_ = value; - } - } - - /// Field number for the "cpc_bid_floor_micros" field. - public const int CpcBidFloorMicrosFieldNumber = 3; - private long cpcBidFloorMicros_; - /// - /// Minimum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// Mutable for portfolio bidding strategies only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidFloorMicros { - get { return cpcBidFloorMicros_; } - set { - cpcBidFloorMicros_ = value; - } - } - - /// Field number for the "target_cpa_micros" field. - public const int TargetCpaMicrosFieldNumber = 4; - private long targetCpaMicros_; - /// - /// The target cost-per-action (CPA) option. This is the average amount that - /// you would like to spend per conversion action specified in micro units of - /// the bidding strategy's currency. If set, the bid strategy will get as many - /// conversions as possible at or below the target cost-per-action. If the - /// target CPA is not set, the bid strategy will aim to achieve the lowest - /// possible CPA given the budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetCpaMicros { - get { return targetCpaMicros_; } - set { - targetCpaMicros_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MaximizeConversions); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MaximizeConversions other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - if (CpcBidFloorMicros != other.CpcBidFloorMicros) return false; - if (TargetCpaMicros != other.TargetCpaMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CpcBidCeilingMicros != 0L) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (CpcBidFloorMicros != 0L) hash ^= CpcBidFloorMicros.GetHashCode(); - if (TargetCpaMicros != 0L) hash ^= TargetCpaMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CpcBidCeilingMicros != 0L) { - output.WriteRawTag(16); - output.WriteInt64(CpcBidCeilingMicros); - } - if (CpcBidFloorMicros != 0L) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidFloorMicros); - } - if (TargetCpaMicros != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TargetCpaMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CpcBidCeilingMicros != 0L) { - output.WriteRawTag(16); - output.WriteInt64(CpcBidCeilingMicros); - } - if (CpcBidFloorMicros != 0L) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidFloorMicros); - } - if (TargetCpaMicros != 0L) { - output.WriteRawTag(32); - output.WriteInt64(TargetCpaMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CpcBidCeilingMicros != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (CpcBidFloorMicros != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidFloorMicros); - } - if (TargetCpaMicros != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TargetCpaMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MaximizeConversions other) { - if (other == null) { - return; - } - if (other.CpcBidCeilingMicros != 0L) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - if (other.CpcBidFloorMicros != 0L) { - CpcBidFloorMicros = other.CpcBidFloorMicros; - } - if (other.TargetCpaMicros != 0L) { - TargetCpaMicros = other.TargetCpaMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 24: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - case 32: { - TargetCpaMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 24: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - case 32: { - TargetCpaMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bidding strategy to help get the most conversion value for your - /// campaigns while spending your budget. - /// - public sealed partial class MaximizeConversionValue : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MaximizeConversionValue()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversionValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversionValue(MaximizeConversionValue other) : this() { - targetRoas_ = other.targetRoas_; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - cpcBidFloorMicros_ = other.cpcBidFloorMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MaximizeConversionValue Clone() { - return new MaximizeConversionValue(this); - } - - /// Field number for the "target_roas" field. - public const int TargetRoasFieldNumber = 2; - private double targetRoas_; - /// - /// The target return on ad spend (ROAS) option. If set, the bid strategy will - /// maximize revenue while averaging the target return on ad spend. If the - /// target ROAS is high, the bid strategy may not be able to spend the full - /// budget. If the target ROAS is not set, the bid strategy will aim to - /// achieve the highest possible ROAS for the budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double TargetRoas { - get { return targetRoas_; } - set { - targetRoas_ = value; - } - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 3; - private long cpcBidCeilingMicros_; - /// - /// Maximum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// Mutable for portfolio bidding strategies only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { return cpcBidCeilingMicros_; } - set { - cpcBidCeilingMicros_ = value; - } - } - - /// Field number for the "cpc_bid_floor_micros" field. - public const int CpcBidFloorMicrosFieldNumber = 4; - private long cpcBidFloorMicros_; - /// - /// Minimum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// Mutable for portfolio bidding strategies only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidFloorMicros { - get { return cpcBidFloorMicros_; } - set { - cpcBidFloorMicros_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MaximizeConversionValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MaximizeConversionValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetRoas, other.TargetRoas)) return false; - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - if (CpcBidFloorMicros != other.CpcBidFloorMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (TargetRoas != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetRoas); - if (CpcBidCeilingMicros != 0L) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (CpcBidFloorMicros != 0L) hash ^= CpcBidFloorMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (TargetRoas != 0D) { - output.WriteRawTag(17); - output.WriteDouble(TargetRoas); - } - if (CpcBidCeilingMicros != 0L) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidCeilingMicros); - } - if (CpcBidFloorMicros != 0L) { - output.WriteRawTag(32); - output.WriteInt64(CpcBidFloorMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (TargetRoas != 0D) { - output.WriteRawTag(17); - output.WriteDouble(TargetRoas); - } - if (CpcBidCeilingMicros != 0L) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidCeilingMicros); - } - if (CpcBidFloorMicros != 0L) { - output.WriteRawTag(32); - output.WriteInt64(CpcBidFloorMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (TargetRoas != 0D) { - size += 1 + 8; - } - if (CpcBidCeilingMicros != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (CpcBidFloorMicros != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidFloorMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MaximizeConversionValue other) { - if (other == null) { - return; - } - if (other.TargetRoas != 0D) { - TargetRoas = other.TargetRoas; - } - if (other.CpcBidCeilingMicros != 0L) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - if (other.CpcBidFloorMicros != 0L) { - CpcBidFloorMicros = other.CpcBidFloorMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 17: { - TargetRoas = input.ReadDouble(); - break; - } - case 24: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 32: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 17: { - TargetRoas = input.ReadDouble(); - break; - } - case 24: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 32: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bid strategy that sets bids to help get as many conversions as - /// possible at the target cost-per-acquisition (CPA) you set. - /// - public sealed partial class TargetCpa : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetCpa()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpa() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpa(TargetCpa other) : this() { - _hasBits0 = other._hasBits0; - targetCpaMicros_ = other.targetCpaMicros_; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - cpcBidFloorMicros_ = other.cpcBidFloorMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpa Clone() { - return new TargetCpa(this); - } - - /// Field number for the "target_cpa_micros" field. - public const int TargetCpaMicrosFieldNumber = 4; - private long targetCpaMicros_; - /// - /// Average CPA target. - /// This target should be greater than or equal to minimum billable unit based - /// on the currency for the account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetCpaMicros { - get { if ((_hasBits0 & 1) != 0) { return targetCpaMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - targetCpaMicros_ = value; - } - } - /// Gets whether the "target_cpa_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetCpaMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "target_cpa_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetCpaMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 5; - private long cpcBidCeilingMicros_; - /// - /// Maximum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// This should only be set for portfolio bid strategies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidCeilingMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidCeilingMicros_ = value; - } - } - /// Gets whether the "cpc_bid_ceiling_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidCeilingMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_ceiling_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidCeilingMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "cpc_bid_floor_micros" field. - public const int CpcBidFloorMicrosFieldNumber = 6; - private long cpcBidFloorMicros_; - /// - /// Minimum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// This should only be set for portfolio bid strategies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidFloorMicros { - get { if ((_hasBits0 & 4) != 0) { return cpcBidFloorMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - cpcBidFloorMicros_ = value; - } - } - /// Gets whether the "cpc_bid_floor_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidFloorMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "cpc_bid_floor_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidFloorMicros() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetCpa); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetCpa other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TargetCpaMicros != other.TargetCpaMicros) return false; - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - if (CpcBidFloorMicros != other.CpcBidFloorMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTargetCpaMicros) hash ^= TargetCpaMicros.GetHashCode(); - if (HasCpcBidCeilingMicros) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (HasCpcBidFloorMicros) hash ^= CpcBidFloorMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTargetCpaMicros) { - output.WriteRawTag(32); - output.WriteInt64(TargetCpaMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(40); - output.WriteInt64(CpcBidCeilingMicros); - } - if (HasCpcBidFloorMicros) { - output.WriteRawTag(48); - output.WriteInt64(CpcBidFloorMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTargetCpaMicros) { - output.WriteRawTag(32); - output.WriteInt64(TargetCpaMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(40); - output.WriteInt64(CpcBidCeilingMicros); - } - if (HasCpcBidFloorMicros) { - output.WriteRawTag(48); - output.WriteInt64(CpcBidFloorMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTargetCpaMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TargetCpaMicros); - } - if (HasCpcBidCeilingMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (HasCpcBidFloorMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidFloorMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetCpa other) { - if (other == null) { - return; - } - if (other.HasTargetCpaMicros) { - TargetCpaMicros = other.TargetCpaMicros; - } - if (other.HasCpcBidCeilingMicros) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - if (other.HasCpcBidFloorMicros) { - CpcBidFloorMicros = other.CpcBidFloorMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 32: { - TargetCpaMicros = input.ReadInt64(); - break; - } - case 40: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 48: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 32: { - TargetCpaMicros = input.ReadInt64(); - break; - } - case 40: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 48: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Target CPM (cost per thousand impressions) is an automated bidding strategy - /// that sets bids to optimize performance given the target CPM you set. - /// - public sealed partial class TargetCpm : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetCpm()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpm() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpm(TargetCpm other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetCpm Clone() { - return new TargetCpm(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetCpm); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetCpm other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetCpm other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// An automated bidding strategy that sets bids so that a certain percentage of - /// search ads are shown at the top of the first page (or other targeted - /// location). - /// - public sealed partial class TargetImpressionShare : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetImpressionShare()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetImpressionShare() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetImpressionShare(TargetImpressionShare other) : this() { - _hasBits0 = other._hasBits0; - location_ = other.location_; - locationFractionMicros_ = other.locationFractionMicros_; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetImpressionShare Clone() { - return new TargetImpressionShare(this); - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation location_ = global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified; - /// - /// The targeted location on the search results page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "location_fraction_micros" field. - public const int LocationFractionMicrosFieldNumber = 4; - private long locationFractionMicros_; - /// - /// The chosen fraction of ads to be shown in the targeted location in micros. - /// For example, 1% equals 10,000. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long LocationFractionMicros { - get { if ((_hasBits0 & 1) != 0) { return locationFractionMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - locationFractionMicros_ = value; - } - } - /// Gets whether the "location_fraction_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLocationFractionMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "location_fraction_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLocationFractionMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 5; - private long cpcBidCeilingMicros_; - /// - /// The highest CPC bid the automated bidding system is permitted to specify. - /// This is a required field entered by the advertiser that sets the ceiling - /// and specified in local micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidCeilingMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidCeilingMicros_ = value; - } - } - /// Gets whether the "cpc_bid_ceiling_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidCeilingMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_ceiling_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidCeilingMicros() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetImpressionShare); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetImpressionShare other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Location != other.Location) return false; - if (LocationFractionMicros != other.LocationFractionMicros) return false; - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) hash ^= Location.GetHashCode(); - if (HasLocationFractionMicros) hash ^= LocationFractionMicros.GetHashCode(); - if (HasCpcBidCeilingMicros) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Location); - } - if (HasLocationFractionMicros) { - output.WriteRawTag(32); - output.WriteInt64(LocationFractionMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(40); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Location); - } - if (HasLocationFractionMicros) { - output.WriteRawTag(32); - output.WriteInt64(LocationFractionMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(40); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Location); - } - if (HasLocationFractionMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(LocationFractionMicros); - } - if (HasCpcBidCeilingMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetImpressionShare other) { - if (other == null) { - return; - } - if (other.Location != global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation.Unspecified) { - Location = other.Location; - } - if (other.HasLocationFractionMicros) { - LocationFractionMicros = other.LocationFractionMicros; - } - if (other.HasCpcBidCeilingMicros) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Location = (global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation) input.ReadEnum(); - break; - } - case 32: { - LocationFractionMicros = input.ReadInt64(); - break; - } - case 40: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Location = (global::Google.Ads.GoogleAds.V12.Enums.TargetImpressionShareLocationEnum.Types.TargetImpressionShareLocation) input.ReadEnum(); - break; - } - case 32: { - LocationFractionMicros = input.ReadInt64(); - break; - } - case 40: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bidding strategy that helps you maximize revenue while - /// averaging a specific target return on ad spend (ROAS). - /// - public sealed partial class TargetRoas : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetRoas()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetRoas() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetRoas(TargetRoas other) : this() { - _hasBits0 = other._hasBits0; - targetRoas_ = other.targetRoas_; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - cpcBidFloorMicros_ = other.cpcBidFloorMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetRoas Clone() { - return new TargetRoas(this); - } - - /// Field number for the "target_roas" field. - public const int TargetRoas_FieldNumber = 4; - private double targetRoas_; - /// - /// Required. The chosen revenue (based on conversion data) per unit of spend. - /// Value must be between 0.01 and 1000.0, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double TargetRoas_ { - get { if ((_hasBits0 & 1) != 0) { return targetRoas_; } else { return 0D; } } - set { - _hasBits0 |= 1; - targetRoas_ = value; - } - } - /// Gets whether the "target_roas" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetRoas_ { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "target_roas" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetRoas_() { - _hasBits0 &= ~1; - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 5; - private long cpcBidCeilingMicros_; - /// - /// Maximum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// This should only be set for portfolio bid strategies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidCeilingMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidCeilingMicros_ = value; - } - } - /// Gets whether the "cpc_bid_ceiling_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidCeilingMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_ceiling_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidCeilingMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "cpc_bid_floor_micros" field. - public const int CpcBidFloorMicrosFieldNumber = 6; - private long cpcBidFloorMicros_; - /// - /// Minimum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// This should only be set for portfolio bid strategies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidFloorMicros { - get { if ((_hasBits0 & 4) != 0) { return cpcBidFloorMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - cpcBidFloorMicros_ = value; - } - } - /// Gets whether the "cpc_bid_floor_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidFloorMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "cpc_bid_floor_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidFloorMicros() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetRoas); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetRoas other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetRoas_, other.TargetRoas_)) return false; - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - if (CpcBidFloorMicros != other.CpcBidFloorMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTargetRoas_) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetRoas_); - if (HasCpcBidCeilingMicros) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (HasCpcBidFloorMicros) hash ^= CpcBidFloorMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTargetRoas_) { - output.WriteRawTag(33); - output.WriteDouble(TargetRoas_); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(40); - output.WriteInt64(CpcBidCeilingMicros); - } - if (HasCpcBidFloorMicros) { - output.WriteRawTag(48); - output.WriteInt64(CpcBidFloorMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTargetRoas_) { - output.WriteRawTag(33); - output.WriteDouble(TargetRoas_); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(40); - output.WriteInt64(CpcBidCeilingMicros); - } - if (HasCpcBidFloorMicros) { - output.WriteRawTag(48); - output.WriteInt64(CpcBidFloorMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTargetRoas_) { - size += 1 + 8; - } - if (HasCpcBidCeilingMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (HasCpcBidFloorMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidFloorMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetRoas other) { - if (other == null) { - return; - } - if (other.HasTargetRoas_) { - TargetRoas_ = other.TargetRoas_; - } - if (other.HasCpcBidCeilingMicros) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - if (other.HasCpcBidFloorMicros) { - CpcBidFloorMicros = other.CpcBidFloorMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 33: { - TargetRoas_ = input.ReadDouble(); - break; - } - case 40: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 48: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 33: { - TargetRoas_ = input.ReadDouble(); - break; - } - case 40: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 48: { - CpcBidFloorMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// An automated bid strategy that sets your bids to help get as many clicks - /// as possible within your budget. - /// - public sealed partial class TargetSpend : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TargetSpend()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetSpend() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetSpend(TargetSpend other) : this() { - _hasBits0 = other._hasBits0; - targetSpendMicros_ = other.targetSpendMicros_; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetSpend Clone() { - return new TargetSpend(this); - } - - /// Field number for the "target_spend_micros" field. - public const int TargetSpendMicrosFieldNumber = 3; - private long targetSpendMicros_; - /// - /// The spend target under which to maximize clicks. - /// A TargetSpend bidder will attempt to spend the smaller of this value - /// or the natural throttling spend amount. - /// If not specified, the budget is used as the spend target. - /// This field is deprecated and should no longer be used. See - /// https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html - /// for details. - /// - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TargetSpendMicros { - get { if ((_hasBits0 & 1) != 0) { return targetSpendMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - targetSpendMicros_ = value; - } - } - /// Gets whether the "target_spend_micros" field is set - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetSpendMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "target_spend_micros" field - [global::System.ObsoleteAttribute] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetSpendMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 4; - private long cpcBidCeilingMicros_; - /// - /// Maximum bid limit that can be set by the bid strategy. - /// The limit applies to all keywords managed by the strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidCeilingMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidCeilingMicros_ = value; - } - } - /// Gets whether the "cpc_bid_ceiling_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidCeilingMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_ceiling_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidCeilingMicros() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TargetSpend); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TargetSpend other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TargetSpendMicros != other.TargetSpendMicros) return false; - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTargetSpendMicros) hash ^= TargetSpendMicros.GetHashCode(); - if (HasCpcBidCeilingMicros) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTargetSpendMicros) { - output.WriteRawTag(24); - output.WriteInt64(TargetSpendMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(32); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTargetSpendMicros) { - output.WriteRawTag(24); - output.WriteInt64(TargetSpendMicros); - } - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(32); - output.WriteInt64(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTargetSpendMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TargetSpendMicros); - } - if (HasCpcBidCeilingMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TargetSpend other) { - if (other == null) { - return; - } - if (other.HasTargetSpendMicros) { - TargetSpendMicros = other.TargetSpendMicros; - } - if (other.HasCpcBidCeilingMicros) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - TargetSpendMicros = input.ReadInt64(); - break; - } - case 32: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - TargetSpendMicros = input.ReadInt64(); - break; - } - case 32: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A bidding strategy where bids are a fraction of the advertised price for - /// some good or service. - /// - public sealed partial class PercentCpc : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PercentCpc()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PercentCpc() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PercentCpc(PercentCpc other) : this() { - _hasBits0 = other._hasBits0; - cpcBidCeilingMicros_ = other.cpcBidCeilingMicros_; - enhancedCpcEnabled_ = other.enhancedCpcEnabled_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PercentCpc Clone() { - return new PercentCpc(this); - } - - /// Field number for the "cpc_bid_ceiling_micros" field. - public const int CpcBidCeilingMicrosFieldNumber = 3; - private long cpcBidCeilingMicros_; - /// - /// Maximum bid limit that can be set by the bid strategy. This is - /// an optional field entered by the advertiser and specified in local micros. - /// Note: A zero value is interpreted in the same way as having bid_ceiling - /// undefined. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidCeilingMicros { - get { if ((_hasBits0 & 1) != 0) { return cpcBidCeilingMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - cpcBidCeilingMicros_ = value; - } - } - /// Gets whether the "cpc_bid_ceiling_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidCeilingMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "cpc_bid_ceiling_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidCeilingMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "enhanced_cpc_enabled" field. - public const int EnhancedCpcEnabledFieldNumber = 4; - private bool enhancedCpcEnabled_; - /// - /// Adjusts the bid for each auction upward or downward, depending on the - /// likelihood of a conversion. Individual bids may exceed - /// cpc_bid_ceiling_micros, but the average bid amount for a campaign should - /// not. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnhancedCpcEnabled { - get { if ((_hasBits0 & 2) != 0) { return enhancedCpcEnabled_; } else { return false; } } - set { - _hasBits0 |= 2; - enhancedCpcEnabled_ = value; - } - } - /// Gets whether the "enhanced_cpc_enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEnhancedCpcEnabled { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "enhanced_cpc_enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEnhancedCpcEnabled() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PercentCpc); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PercentCpc other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CpcBidCeilingMicros != other.CpcBidCeilingMicros) return false; - if (EnhancedCpcEnabled != other.EnhancedCpcEnabled) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCpcBidCeilingMicros) hash ^= CpcBidCeilingMicros.GetHashCode(); - if (HasEnhancedCpcEnabled) hash ^= EnhancedCpcEnabled.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidCeilingMicros); - } - if (HasEnhancedCpcEnabled) { - output.WriteRawTag(32); - output.WriteBool(EnhancedCpcEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCpcBidCeilingMicros) { - output.WriteRawTag(24); - output.WriteInt64(CpcBidCeilingMicros); - } - if (HasEnhancedCpcEnabled) { - output.WriteRawTag(32); - output.WriteBool(EnhancedCpcEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCpcBidCeilingMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidCeilingMicros); - } - if (HasEnhancedCpcEnabled) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PercentCpc other) { - if (other == null) { - return; - } - if (other.HasCpcBidCeilingMicros) { - CpcBidCeilingMicros = other.CpcBidCeilingMicros; - } - if (other.HasEnhancedCpcEnabled) { - EnhancedCpcEnabled = other.EnhancedCpcEnabled; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 32: { - EnhancedCpcEnabled = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - CpcBidCeilingMicros = input.ReadInt64(); - break; - } - case 32: { - EnhancedCpcEnabled = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusion.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingDataExclusion.g.cs deleted file mode 100755 index e17a8d96b..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusion.g.cs +++ /dev/null @@ -1,666 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/bidding_data_exclusion.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/bidding_data_exclusion.proto - public static partial class BiddingDataExclusionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/bidding_data_exclusion.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingDataExclusionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2JpZGRpbmdf", - "ZGF0YV9leGNsdXNpb24ucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMaPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9h", - "ZHZlcnRpc2luZ19jaGFubmVsX3R5cGUucHJvdG8aK2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9kZXZpY2UucHJvdG8aPGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9zZWFzb25hbGl0eV9ldmVudF9zY29wZS5wcm90", - "bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3NlYXNvbmFsaXR5", - "X2V2ZW50X3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv", - "ci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKYBgoUQmlkZGlu", - "Z0RhdGFFeGNsdXNpb24STAoNcmVzb3VyY2VfbmFtZRgBIAEoCUI14EEF+kEv", - "Ci1nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQmlkZGluZ0RhdGFFeGNsdXNp", - "b24SHgoRZGF0YV9leGNsdXNpb25faWQYAiABKANCA+BBAxJeCgVzY29wZRgD", - "IAEoDjJPLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TZWFzb25h", - "bGl0eUV2ZW50U2NvcGVFbnVtLlNlYXNvbmFsaXR5RXZlbnRTY29wZRJmCgZz", - "dGF0dXMYBCABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "U2Vhc29uYWxpdHlFdmVudFN0YXR1c0VudW0uU2Vhc29uYWxpdHlFdmVudFN0", - "YXR1c0ID4EEDEhwKD3N0YXJ0X2RhdGVfdGltZRgFIAEoCUID4EECEhoKDWVu", - "ZF9kYXRlX3RpbWUYBiABKAlCA+BBAhIMCgRuYW1lGAcgASgJEhMKC2Rlc2Ny", - "aXB0aW9uGAggASgJEkIKB2RldmljZXMYCSADKA4yMS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuRGV2aWNlRW51bS5EZXZpY2USOQoJY2FtcGFp", - "Z25zGAogAygJQib6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1w", - "YWlnbhJ0ChlhZHZlcnRpc2luZ19jaGFubmVsX3R5cGVzGAsgAygOMlEuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFkdmVydGlzaW5nQ2hhbm5l", - "bFR5cGVFbnVtLkFkdmVydGlzaW5nQ2hhbm5lbFR5cGU6eOpBdQotZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0JpZGRpbmdEYXRhRXhjbHVzaW9uEkRjdXN0", - "b21lcnMve2N1c3RvbWVyX2lkfS9iaWRkaW5nRGF0YUV4Y2x1c2lvbnMve3Nl", - "YXNvbmFsaXR5X2V2ZW50X2lkfUKLAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXNCGUJpZGRpbmdEYXRhRXhjbHVzaW9uUHJvdG9Q", - "AVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion), global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion.Parser, new[]{ "ResourceName", "DataExclusionId", "Scope", "Status", "StartDateTime", "EndDateTime", "Name", "Description", "Devices", "Campaigns", "AdvertisingChannelTypes" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a bidding data exclusion. - /// - /// See "About data exclusions" at - /// https://support.google.com/google-ads/answer/10370710. - /// - public sealed partial class BiddingDataExclusion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingDataExclusion()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingDataExclusion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingDataExclusion(BiddingDataExclusion other) : this() { - resourceName_ = other.resourceName_; - dataExclusionId_ = other.dataExclusionId_; - scope_ = other.scope_; - status_ = other.status_; - startDateTime_ = other.startDateTime_; - endDateTime_ = other.endDateTime_; - name_ = other.name_; - description_ = other.description_; - devices_ = other.devices_.Clone(); - campaigns_ = other.campaigns_.Clone(); - advertisingChannelTypes_ = other.advertisingChannelTypes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingDataExclusion Clone() { - return new BiddingDataExclusion(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the data exclusion. - /// Data exclusion resource names have the form: - /// - /// `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "data_exclusion_id" field. - public const int DataExclusionIdFieldNumber = 2; - private long dataExclusionId_; - /// - /// Output only. The ID of the data exclusion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long DataExclusionId { - get { return dataExclusionId_; } - set { - dataExclusionId_ = value; - } - } - - /// Field number for the "scope" field. - public const int ScopeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope scope_ = global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified; - /// - /// The scope of the data exclusion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope Scope { - get { return scope_; } - set { - scope_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified; - /// - /// Output only. The status of the data exclusion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "start_date_time" field. - public const int StartDateTimeFieldNumber = 5; - private string startDateTime_ = ""; - /// - /// Required. The inclusive start time of the data exclusion in yyyy-MM-dd HH:mm:ss - /// format. - /// - /// A data exclusion is backward looking and should be used for events that - /// start in the past and end either in the past or future. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDateTime { - get { return startDateTime_; } - set { - startDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date_time" field. - public const int EndDateTimeFieldNumber = 6; - private string endDateTime_ = ""; - /// - /// Required. The exclusive end time of the data exclusion in yyyy-MM-dd HH:mm:ss format. - /// - /// The length of [start_date_time, end_date_time) interval must be - /// within (0, 14 days]. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDateTime { - get { return endDateTime_; } - set { - endDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 7; - private string name_ = ""; - /// - /// The name of the data exclusion. The name can be at most 255 - /// characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 8; - private string description_ = ""; - /// - /// The description of the data exclusion. The description can be at - /// most 2048 characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "devices" field. - public const int DevicesFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_devices_codec - = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) x); - private readonly pbc::RepeatedField devices_ = new pbc::RepeatedField(); - /// - /// If not specified, all devices will be included in this exclusion. - /// Otherwise, only the specified targeted devices will be included in this - /// exclusion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Devices { - get { return devices_; } - } - - /// Field number for the "campaigns" field. - public const int CampaignsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_campaigns_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField campaigns_ = new pbc::RepeatedField(); - /// - /// The data exclusion will apply to the campaigns listed when the scope of - /// this exclusion is CAMPAIGN. The maximum number of campaigns per event is - /// 2000. - /// Note: a data exclusion with both advertising_channel_types and - /// campaign_ids is not supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Campaigns { - get { return campaigns_; } - } - - /// Field number for the "advertising_channel_types" field. - public const int AdvertisingChannelTypesFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_advertisingChannelTypes_codec - = pb::FieldCodec.ForEnum(90, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType) x); - private readonly pbc::RepeatedField advertisingChannelTypes_ = new pbc::RepeatedField(); - /// - /// The data_exclusion will apply to all the campaigns under the listed - /// channels retroactively as well as going forward when the scope of this - /// exclusion is CHANNEL. - /// The supported advertising channel types are DISPLAY, SEARCH and SHOPPING. - /// Note: a data exclusion with both advertising_channel_types and - /// campaign_ids is not supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdvertisingChannelTypes { - get { return advertisingChannelTypes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingDataExclusion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingDataExclusion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (DataExclusionId != other.DataExclusionId) return false; - if (Scope != other.Scope) return false; - if (Status != other.Status) return false; - if (StartDateTime != other.StartDateTime) return false; - if (EndDateTime != other.EndDateTime) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if(!devices_.Equals(other.devices_)) return false; - if(!campaigns_.Equals(other.campaigns_)) return false; - if(!advertisingChannelTypes_.Equals(other.advertisingChannelTypes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (DataExclusionId != 0L) hash ^= DataExclusionId.GetHashCode(); - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) hash ^= Scope.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) hash ^= Status.GetHashCode(); - if (StartDateTime.Length != 0) hash ^= StartDateTime.GetHashCode(); - if (EndDateTime.Length != 0) hash ^= EndDateTime.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - hash ^= devices_.GetHashCode(); - hash ^= campaigns_.GetHashCode(); - hash ^= advertisingChannelTypes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (DataExclusionId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(DataExclusionId); - } - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Scope); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (StartDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDateTime); - } - if (EndDateTime.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDateTime); - } - if (Name.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Description); - } - devices_.WriteTo(output, _repeated_devices_codec); - campaigns_.WriteTo(output, _repeated_campaigns_codec); - advertisingChannelTypes_.WriteTo(output, _repeated_advertisingChannelTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (DataExclusionId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(DataExclusionId); - } - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Scope); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (StartDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDateTime); - } - if (EndDateTime.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDateTime); - } - if (Name.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Description); - } - devices_.WriteTo(ref output, _repeated_devices_codec); - campaigns_.WriteTo(ref output, _repeated_campaigns_codec); - advertisingChannelTypes_.WriteTo(ref output, _repeated_advertisingChannelTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (DataExclusionId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(DataExclusionId); - } - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Scope); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (StartDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDateTime); - } - if (EndDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDateTime); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - size += devices_.CalculateSize(_repeated_devices_codec); - size += campaigns_.CalculateSize(_repeated_campaigns_codec); - size += advertisingChannelTypes_.CalculateSize(_repeated_advertisingChannelTypes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingDataExclusion other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.DataExclusionId != 0L) { - DataExclusionId = other.DataExclusionId; - } - if (other.Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - Scope = other.Scope; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - Status = other.Status; - } - if (other.StartDateTime.Length != 0) { - StartDateTime = other.StartDateTime; - } - if (other.EndDateTime.Length != 0) { - EndDateTime = other.EndDateTime; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - devices_.Add(other.devices_); - campaigns_.Add(other.campaigns_); - advertisingChannelTypes_.Add(other.advertisingChannelTypes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - DataExclusionId = input.ReadInt64(); - break; - } - case 24: { - Scope = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus) input.ReadEnum(); - break; - } - case 42: { - StartDateTime = input.ReadString(); - break; - } - case 50: { - EndDateTime = input.ReadString(); - break; - } - case 58: { - Name = input.ReadString(); - break; - } - case 66: { - Description = input.ReadString(); - break; - } - case 74: - case 72: { - devices_.AddEntriesFrom(input, _repeated_devices_codec); - break; - } - case 82: { - campaigns_.AddEntriesFrom(input, _repeated_campaigns_codec); - break; - } - case 90: - case 88: { - advertisingChannelTypes_.AddEntriesFrom(input, _repeated_advertisingChannelTypes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - DataExclusionId = input.ReadInt64(); - break; - } - case 24: { - Scope = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus) input.ReadEnum(); - break; - } - case 42: { - StartDateTime = input.ReadString(); - break; - } - case 50: { - EndDateTime = input.ReadString(); - break; - } - case 58: { - Name = input.ReadString(); - break; - } - case 66: { - Description = input.ReadString(); - break; - } - case 74: - case 72: { - devices_.AddEntriesFrom(ref input, _repeated_devices_codec); - break; - } - case 82: { - campaigns_.AddEntriesFrom(ref input, _repeated_campaigns_codec); - break; - } - case 90: - case 88: { - advertisingChannelTypes_.AddEntriesFrom(ref input, _repeated_advertisingChannelTypes_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionResourceNames.g.cs deleted file mode 100755 index a4ef5480b..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionResourceNames.g.cs +++ /dev/null @@ -1,291 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the BiddingDataExclusion resource. - public sealed partial class BiddingDataExclusionName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/biddingDataExclusions/{seasonality_event_id} - /// . - /// - CustomerSeasonalityEvent = 1, - } - - private static gax::PathTemplate s_customerSeasonalityEvent = new gax::PathTemplate("customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static BiddingDataExclusionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new BiddingDataExclusionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static BiddingDataExclusionName FromCustomerSeasonalityEvent(string customerId, string seasonalityEventId) => - new BiddingDataExclusionName(ResourceNameType.CustomerSeasonalityEvent, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), seasonalityEventId: gax::GaxPreconditions.CheckNotNullOrEmpty(seasonalityEventId, nameof(seasonalityEventId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}. - /// - public static string Format(string customerId, string seasonalityEventId) => - FormatCustomerSeasonalityEvent(customerId, seasonalityEventId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}. - /// - public static string FormatCustomerSeasonalityEvent(string customerId, string seasonalityEventId) => - s_customerSeasonalityEvent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(seasonalityEventId, nameof(seasonalityEventId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static BiddingDataExclusionName Parse(string biddingDataExclusionName) => - Parse(biddingDataExclusionName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static BiddingDataExclusionName Parse(string biddingDataExclusionName, bool allowUnparsed) => - TryParse(biddingDataExclusionName, allowUnparsed, out BiddingDataExclusionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingDataExclusionName, out BiddingDataExclusionName result) => - TryParse(biddingDataExclusionName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingDataExclusions/{seasonality_event_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingDataExclusionName, bool allowUnparsed, out BiddingDataExclusionName result) - { - gax::GaxPreconditions.CheckNotNull(biddingDataExclusionName, nameof(biddingDataExclusionName)); - gax::TemplatedResourceName resourceName; - if (s_customerSeasonalityEvent.TryParseName(biddingDataExclusionName, out resourceName)) - { - result = FromCustomerSeasonalityEvent(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(biddingDataExclusionName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private BiddingDataExclusionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string seasonalityEventId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - SeasonalityEventId = seasonalityEventId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/biddingDataExclusions/{seasonality_event_id} - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - public BiddingDataExclusionName(string customerId, string seasonalityEventId) : this(ResourceNameType.CustomerSeasonalityEvent, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), seasonalityEventId: gax::GaxPreconditions.CheckNotNullOrEmpty(seasonalityEventId, nameof(seasonalityEventId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The SeasonalityEvent ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string SeasonalityEventId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerSeasonalityEvent: return s_customerSeasonalityEvent.Expand(CustomerId, SeasonalityEventId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as BiddingDataExclusionName); - - /// - public bool Equals(BiddingDataExclusionName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(BiddingDataExclusionName a, BiddingDataExclusionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(BiddingDataExclusionName a, BiddingDataExclusionName b) => !(a == b); - } - - public partial class BiddingDataExclusion - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::BiddingDataExclusionName ResourceNameAsBiddingDataExclusionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BiddingDataExclusionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::BiddingDataExclusionName BiddingDataExclusionName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::BiddingDataExclusionName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList CampaignsAsCampaignNames - { - get => new gax::ResourceNameList(Campaigns, s => string.IsNullOrEmpty(s) ? null : CampaignName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionService.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionService.g.cs deleted file mode 100755 index 67d7f2a44..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionService.g.cs +++ /dev/null @@ -1,1314 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/bidding_data_exclusion_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/bidding_data_exclusion_service.proto - public static partial class BiddingDataExclusionServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/bidding_data_exclusion_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingDataExclusionServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYmlkZGluZ19k", - "YXRhX2V4Y2x1c2lvbl9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aP2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYmlkZGluZ19kYXRhX2V4Y2x1c2lv", - "bi5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xl", - "L2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", - "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aIGdvb2dsZS9wcm90", - "b2J1Zi9maWVsZF9tYXNrLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90", - "byK1AgoiTXV0YXRlQmlkZGluZ0RhdGFFeGNsdXNpb25zUmVxdWVzdBIYCgtj", - "dXN0b21lcl9pZBgBIAEoCUID4EECElkKCm9wZXJhdGlvbnMYAiADKAsyQC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQmlkZGluZ0RhdGFF", - "eGNsdXNpb25PcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyAB", - "KAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCBJqChVyZXNwb25zZV9jb250ZW50", - "X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "UmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSK7", - "AgodQmlkZGluZ0RhdGFFeGNsdXNpb25PcGVyYXRpb24SLwoLdXBkYXRlX21h", - "c2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkoKBmNyZWF0", - "ZRgBIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "QmlkZGluZ0RhdGFFeGNsdXNpb25IABJKCgZ1cGRhdGUYAiABKAsyOC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJpZGRpbmdEYXRhRXhj", - "bHVzaW9uSAASRAoGcmVtb3ZlGAMgASgJQjL6QS8KLWdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9CaWRkaW5nRGF0YUV4Y2x1c2lvbkgAQgsKCW9wZXJhdGlv", - "biKvAQojTXV0YXRlQmlkZGluZ0RhdGFFeGNsdXNpb25zUmVzcG9uc2USMQoV", - "cGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0", - "dXMSVQoHcmVzdWx0cxgCIAMoCzJELmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVCaWRkaW5nRGF0YUV4Y2x1c2lvbnNSZXN1bHQi", - "yAEKIU11dGF0ZUJpZGRpbmdEYXRhRXhjbHVzaW9uc1Jlc3VsdBJJCg1yZXNv", - "dXJjZV9uYW1lGAEgASgJQjL6QS8KLWdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9CaWRkaW5nRGF0YUV4Y2x1c2lvbhJYChZiaWRkaW5nX2RhdGFfZXhjbHVz", - "aW9uGAIgASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cy5CaWRkaW5nRGF0YUV4Y2x1c2lvbjL0AgobQmlkZGluZ0RhdGFFeGNsdXNp", - "b25TZXJ2aWNlEo0CChtNdXRhdGVCaWRkaW5nRGF0YUV4Y2x1c2lvbnMSRS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQmlkZGlu", - "Z0RhdGFFeGNsdXNpb25zUmVxdWVzdBpGLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVCaWRkaW5nRGF0YUV4Y2x1c2lvbnNSZXNw", - "b25zZSJfgtPkkwJAIjsvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0v", - "YmlkZGluZ0RhdGFFeGNsdXNpb25zOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lk", - "LG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0", - "dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KMAgolY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IgQmlkZGluZ0Rh", - "dGFFeGNsdXNpb25TZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNl", - "cztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5T", - "ZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oC", - "JUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation), global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult.Parser, new[]{ "ResourceName", "BiddingDataExclusion" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [BiddingDataExclusionService.MutateBiddingDataExclusions][google.ads.googleads.v12.services.BiddingDataExclusionService.MutateBiddingDataExclusions]. - /// - public sealed partial class MutateBiddingDataExclusionsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingDataExclusionsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsRequest(MutateBiddingDataExclusionsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsRequest Clone() { - return new MutateBiddingDataExclusionsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose data exclusions are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual data exclusions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingDataExclusionsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingDataExclusionsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingDataExclusionsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove, update) on a data exclusion. - /// - public sealed partial class BiddingDataExclusionOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingDataExclusionOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingDataExclusionOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingDataExclusionOperation(BiddingDataExclusionOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingDataExclusionOperation Clone() { - return new BiddingDataExclusionOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new data - /// exclusion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The data exclusion is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed data exclusion - /// is expected, in this format: - /// - /// `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingDataExclusionOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingDataExclusionOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingDataExclusionOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for data exlusions mutate. - /// - public sealed partial class MutateBiddingDataExclusionsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingDataExclusionsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsResponse(MutateBiddingDataExclusionsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsResponse Clone() { - return new MutateBiddingDataExclusionsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingDataExclusionsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingDataExclusionsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingDataExclusionsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the data exclusion mutate. - /// - public sealed partial class MutateBiddingDataExclusionsResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingDataExclusionsResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsResult(MutateBiddingDataExclusionsResult other) : this() { - resourceName_ = other.resourceName_; - biddingDataExclusion_ = other.biddingDataExclusion_ != null ? other.biddingDataExclusion_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingDataExclusionsResult Clone() { - return new MutateBiddingDataExclusionsResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "bidding_data_exclusion" field. - public const int BiddingDataExclusionFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion biddingDataExclusion_; - /// - /// The mutated bidding data exclusion with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion BiddingDataExclusion { - get { return biddingDataExclusion_; } - set { - biddingDataExclusion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingDataExclusionsResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingDataExclusionsResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(BiddingDataExclusion, other.BiddingDataExclusion)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (biddingDataExclusion_ != null) hash ^= BiddingDataExclusion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (biddingDataExclusion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BiddingDataExclusion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (biddingDataExclusion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BiddingDataExclusion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (biddingDataExclusion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BiddingDataExclusion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingDataExclusionsResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.biddingDataExclusion_ != null) { - if (biddingDataExclusion_ == null) { - BiddingDataExclusion = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - BiddingDataExclusion.MergeFrom(other.BiddingDataExclusion); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (biddingDataExclusion_ == null) { - BiddingDataExclusion = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - input.ReadMessage(BiddingDataExclusion); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (biddingDataExclusion_ == null) { - BiddingDataExclusion = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - input.ReadMessage(BiddingDataExclusion); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceClient.g.cs deleted file mode 100755 index 26b0d39bd..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class BiddingDataExclusionServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static BiddingDataExclusionServiceSettings GetDefault() => new BiddingDataExclusionServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public BiddingDataExclusionServiceSettings() - { - } - - private BiddingDataExclusionServiceSettings(BiddingDataExclusionServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateBiddingDataExclusionsSettings = existing.MutateBiddingDataExclusionsSettings; - OnCopy(existing); - } - - partial void OnCopy(BiddingDataExclusionServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// BiddingDataExclusionServiceClient.MutateBiddingDataExclusions and - /// BiddingDataExclusionServiceClient.MutateBiddingDataExclusionsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateBiddingDataExclusionsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public BiddingDataExclusionServiceSettings Clone() => new BiddingDataExclusionServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class BiddingDataExclusionServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public BiddingDataExclusionServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public BiddingDataExclusionServiceClientBuilder() : base(BiddingDataExclusionServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref BiddingDataExclusionServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override BiddingDataExclusionServiceClient Build() - { - BiddingDataExclusionServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private BiddingDataExclusionServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return BiddingDataExclusionServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return BiddingDataExclusionServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => BiddingDataExclusionServiceClient.ChannelPool; - } - - /// BiddingDataExclusionService client wrapper, for convenient use. - /// - /// Service to manage bidding data exclusions. - /// - public abstract partial class BiddingDataExclusionServiceClient - { - /// - /// The default endpoint for the BiddingDataExclusionService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default BiddingDataExclusionService scopes. - /// - /// The default BiddingDataExclusionService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(BiddingDataExclusionService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new BiddingDataExclusionServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static BiddingDataExclusionServiceClient Create() => new BiddingDataExclusionServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static BiddingDataExclusionServiceClient Create(grpccore::CallInvoker callInvoker, BiddingDataExclusionServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - BiddingDataExclusionService.BiddingDataExclusionServiceClient grpcClient = new BiddingDataExclusionService.BiddingDataExclusionServiceClient(callInvoker); - return new BiddingDataExclusionServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC BiddingDataExclusionService client - public virtual BiddingDataExclusionService.BiddingDataExclusionServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBiddingDataExclusionsResponse MutateBiddingDataExclusions(MutateBiddingDataExclusionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingDataExclusionsAsync(MutateBiddingDataExclusionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingDataExclusionsAsync(MutateBiddingDataExclusionsRequest request, st::CancellationToken cancellationToken) => - MutateBiddingDataExclusionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// - /// Required. ID of the customer whose data exclusions are being modified. - /// - /// - /// Required. The list of operations to perform on individual data exclusions. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBiddingDataExclusionsResponse MutateBiddingDataExclusions(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateBiddingDataExclusions(new MutateBiddingDataExclusionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// - /// Required. ID of the customer whose data exclusions are being modified. - /// - /// - /// Required. The list of operations to perform on individual data exclusions. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingDataExclusionsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateBiddingDataExclusionsAsync(new MutateBiddingDataExclusionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// - /// Required. ID of the customer whose data exclusions are being modified. - /// - /// - /// Required. The list of operations to perform on individual data exclusions. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingDataExclusionsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateBiddingDataExclusionsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// BiddingDataExclusionService client wrapper implementation, for convenient use. - /// - /// Service to manage bidding data exclusions. - /// - public sealed partial class BiddingDataExclusionServiceClientImpl : BiddingDataExclusionServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateBiddingDataExclusions; - - /// - /// Constructs a client wrapper for the BiddingDataExclusionService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public BiddingDataExclusionServiceClientImpl(BiddingDataExclusionService.BiddingDataExclusionServiceClient grpcClient, BiddingDataExclusionServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - BiddingDataExclusionServiceSettings effectiveSettings = settings ?? BiddingDataExclusionServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateBiddingDataExclusions = clientHelper.BuildApiCall("MutateBiddingDataExclusions", grpcClient.MutateBiddingDataExclusionsAsync, grpcClient.MutateBiddingDataExclusions, effectiveSettings.MutateBiddingDataExclusionsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateBiddingDataExclusions); - Modify_MutateBiddingDataExclusionsApiCall(ref _callMutateBiddingDataExclusions); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateBiddingDataExclusionsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(BiddingDataExclusionService.BiddingDataExclusionServiceClient grpcClient, BiddingDataExclusionServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC BiddingDataExclusionService client - public override BiddingDataExclusionService.BiddingDataExclusionServiceClient GrpcClient { get; } - - partial void Modify_MutateBiddingDataExclusionsRequest(ref MutateBiddingDataExclusionsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateBiddingDataExclusionsResponse MutateBiddingDataExclusions(MutateBiddingDataExclusionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBiddingDataExclusionsRequest(ref request, ref callSettings); - return _callMutateBiddingDataExclusions.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateBiddingDataExclusionsAsync(MutateBiddingDataExclusionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBiddingDataExclusionsRequest(ref request, ref callSettings); - return _callMutateBiddingDataExclusions.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceGrpc.g.cs deleted file mode 100755 index 2461ee084..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/bidding_data_exclusion_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage bidding data exclusions. - /// - public static partial class BiddingDataExclusionService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.BiddingDataExclusionService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBiddingDataExclusionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBiddingDataExclusionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateBiddingDataExclusions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateBiddingDataExclusions", - __Marshaller_google_ads_googleads_v12_services_MutateBiddingDataExclusionsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateBiddingDataExclusionsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of BiddingDataExclusionService - [grpc::BindServiceMethod(typeof(BiddingDataExclusionService), "BindService")] - public abstract partial class BiddingDataExclusionServiceBase - { - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateBiddingDataExclusions(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for BiddingDataExclusionService - public partial class BiddingDataExclusionServiceClient : grpc::ClientBase - { - /// Creates a new client for BiddingDataExclusionService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BiddingDataExclusionServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for BiddingDataExclusionService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BiddingDataExclusionServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BiddingDataExclusionServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BiddingDataExclusionServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResponse MutateBiddingDataExclusions(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBiddingDataExclusions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResponse MutateBiddingDataExclusions(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateBiddingDataExclusions, null, options, request); - } - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBiddingDataExclusionsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBiddingDataExclusionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes data exclusions. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBiddingDataExclusionsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateBiddingDataExclusions, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override BiddingDataExclusionServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new BiddingDataExclusionServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(BiddingDataExclusionServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateBiddingDataExclusions, serviceImpl.MutateBiddingDataExclusions).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, BiddingDataExclusionServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateBiddingDataExclusions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateBiddingDataExclusions)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceResourceNames.g.cs deleted file mode 100755 index b845eabdc..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingDataExclusionServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class BiddingDataExclusionOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::BiddingDataExclusionName RemoveAsBiddingDataExclusionName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::BiddingDataExclusionName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateBiddingDataExclusionsResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::BiddingDataExclusionName ResourceNameAsBiddingDataExclusionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BiddingDataExclusionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingError.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingError.g.cs deleted file mode 100755 index 24603c32f..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingError.g.cs +++ /dev/null @@ -1,371 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/bidding_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/bidding_error.proto - public static partial class BiddingErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/bidding_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2JpZGRpbmdfZXJy", - "b3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMiqgoK", - "EEJpZGRpbmdFcnJvckVudW0ilQoKDEJpZGRpbmdFcnJvchIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIrCidCSURESU5HX1NUUkFURUdZX1RSQU5T", - "SVRJT05fTk9UX0FMTE9XRUQQAhIuCipDQU5OT1RfQVRUQUNIX0JJRERJTkdf", - "U1RSQVRFR1lfVE9fQ0FNUEFJR04QBxIrCidJTlZBTElEX0FOT05ZTU9VU19C", - "SURESU5HX1NUUkFURUdZX1RZUEUQChIhCh1JTlZBTElEX0JJRERJTkdfU1RS", - "QVRFR1lfVFlQRRAOEg8KC0lOVkFMSURfQklEEBESMwovQklERElOR19TVFJB", - "VEVHWV9OT1RfQVZBSUxBQkxFX0ZPUl9BQ0NPVU5UX1RZUEUQEhIjCh9DT05W", - "RVJTSU9OX1RSQUNLSU5HX05PVF9FTkFCTEVEEBMSGgoWTk9UX0VOT1VHSF9D", - "T05WRVJTSU9OUxAUEjAKLENBTk5PVF9DUkVBVEVfQ0FNUEFJR05fV0lUSF9C", - "SURESU5HX1NUUkFURUdZEBUSTwpLQ0FOTk9UX1RBUkdFVF9DT05URU5UX05F", - "VFdPUktfT05MWV9XSVRIX0NBTVBBSUdOX0xFVkVMX1BPUF9CSURESU5HX1NU", - "UkFURUdZEBcSMwovQklERElOR19TVFJBVEVHWV9OT1RfU1VQUE9SVEVEX1dJ", - "VEhfQURfU0NIRURVTEUQGBIxCi1QQVlfUEVSX0NPTlZFUlNJT05fTk9UX0FW", - "QUlMQUJMRV9GT1JfQ1VTVE9NRVIQGRIyCi5QQVlfUEVSX0NPTlZFUlNJT05f", - "Tk9UX0FMTE9XRURfV0lUSF9UQVJHRVRfQ1BBEBoSOgo2QklERElOR19TVFJB", - "VEVHWV9OT1RfQUxMT1dFRF9GT1JfU0VBUkNIX09OTFlfQ0FNUEFJR05TEBsS", - "Owo3QklERElOR19TVFJBVEVHWV9OT1RfU1VQUE9SVEVEX0lOX0RSQUZUU19P", - "Ul9FWFBFUklNRU5UUxAcEkkKRUJJRERJTkdfU1RSQVRFR1lfVFlQRV9ET0VT", - "X05PVF9TVVBQT1JUX1BST0RVQ1RfVFlQRV9BREdST1VQX0NSSVRFUklPThAd", - "EhEKDUJJRF9UT09fU01BTEwQHhIPCgtCSURfVE9PX0JJRxAfEiIKHkJJRF9U", - "T09fTUFOWV9GUkFDVElPTkFMX0RJR0lUUxAgEhcKE0lOVkFMSURfRE9NQUlO", - "X05BTUUQIRIkCiBOT1RfQ09NUEFUSUJMRV9XSVRIX1BBWU1FTlRfTU9ERRAi", - "EiMKH05PVF9DT01QQVRJQkxFX1dJVEhfQlVER0VUX1RZUEUQIxItCilOT1Rf", - "Q09NUEFUSUJMRV9XSVRIX0JJRERJTkdfU1RSQVRFR1lfVFlQRRAkEjkKNUJJ", - "RERJTkdfU1RSQVRFR1lfVFlQRV9JTkNPTVBBVElCTEVfV0lUSF9TSEFSRURf", - "QlVER0VUECUSLworQklERElOR19TVFJBVEVHWV9BTkRfQlVER0VUX01VU1Rf", - "QkVfQUxJR05FRBAmEk8KS0JJRERJTkdfU1RSQVRFR1lfQU5EX0JVREdFVF9N", - "VVNUX0JFX0FUVEFDSEVEX1RPX1RIRV9TQU1FX0NBTVBBSUdOU19UT19BTElH", - "ThAnEjgKNEJJRERJTkdfU1RSQVRFR1lfQU5EX0JVREdFVF9NVVNUX0JFX1JF", - "TU9WRURfVE9HRVRIRVIQKELxAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnNCEUJpZGRpbmdFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIj", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorEnum.Types.BiddingError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible bidding errors. - /// - public sealed partial class BiddingErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingErrorEnum(BiddingErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingErrorEnum Clone() { - return new BiddingErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BiddingErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible bidding errors. - /// - public enum BiddingError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Cannot transition to new bidding strategy. - /// - [pbr::OriginalName("BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED")] BiddingStrategyTransitionNotAllowed = 2, - /// - /// Cannot attach bidding strategy to campaign. - /// - [pbr::OriginalName("CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN")] CannotAttachBiddingStrategyToCampaign = 7, - /// - /// Bidding strategy is not supported or cannot be used as anonymous. - /// - [pbr::OriginalName("INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE")] InvalidAnonymousBiddingStrategyType = 10, - /// - /// The type does not match the named strategy's type. - /// - [pbr::OriginalName("INVALID_BIDDING_STRATEGY_TYPE")] InvalidBiddingStrategyType = 14, - /// - /// The bid is invalid. - /// - [pbr::OriginalName("INVALID_BID")] InvalidBid = 17, - /// - /// Bidding strategy is not available for the account type. - /// - [pbr::OriginalName("BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE")] BiddingStrategyNotAvailableForAccountType = 18, - /// - /// Conversion tracking is not enabled in the campaign that has value-based - /// bidding transitions. - /// - [pbr::OriginalName("CONVERSION_TRACKING_NOT_ENABLED")] ConversionTrackingNotEnabled = 19, - /// - /// Not enough conversions tracked for value-based bidding transitions. - /// - [pbr::OriginalName("NOT_ENOUGH_CONVERSIONS")] NotEnoughConversions = 20, - /// - /// Campaign can not be created with given bidding strategy. It can be - /// transitioned to the strategy, once eligible. - /// - [pbr::OriginalName("CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY")] CannotCreateCampaignWithBiddingStrategy = 21, - /// - /// Cannot target content network only as campaign uses Page One Promoted - /// bidding strategy. - /// - [pbr::OriginalName("CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY")] CannotTargetContentNetworkOnlyWithCampaignLevelPopBiddingStrategy = 23, - /// - /// Budget Optimizer and Target Spend bidding strategies are not supported - /// for campaigns with AdSchedule targeting. - /// - [pbr::OriginalName("BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE")] BiddingStrategyNotSupportedWithAdSchedule = 24, - /// - /// Pay per conversion is not available to all the customer, only few - /// customers on the allow-list can use this. - /// - [pbr::OriginalName("PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER")] PayPerConversionNotAvailableForCustomer = 25, - /// - /// Pay per conversion is not allowed with Target CPA. - /// - [pbr::OriginalName("PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA")] PayPerConversionNotAllowedWithTargetCpa = 26, - /// - /// Cannot set bidding strategy to Manual CPM for search network only - /// campaigns. - /// - [pbr::OriginalName("BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS")] BiddingStrategyNotAllowedForSearchOnlyCampaigns = 27, - /// - /// The bidding strategy is not supported for use in drafts or experiments. - /// - [pbr::OriginalName("BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS")] BiddingStrategyNotSupportedInDraftsOrExperiments = 28, - /// - /// Bidding strategy type does not support product type ad group criterion. - /// - [pbr::OriginalName("BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION")] BiddingStrategyTypeDoesNotSupportProductTypeAdgroupCriterion = 29, - /// - /// Bid amount is too small. - /// - [pbr::OriginalName("BID_TOO_SMALL")] BidTooSmall = 30, - /// - /// Bid amount is too big. - /// - [pbr::OriginalName("BID_TOO_BIG")] BidTooBig = 31, - /// - /// Bid has too many fractional digit precision. - /// - [pbr::OriginalName("BID_TOO_MANY_FRACTIONAL_DIGITS")] BidTooManyFractionalDigits = 32, - /// - /// Invalid domain name specified. - /// - [pbr::OriginalName("INVALID_DOMAIN_NAME")] InvalidDomainName = 33, - /// - /// The field is not compatible with the payment mode. - /// - [pbr::OriginalName("NOT_COMPATIBLE_WITH_PAYMENT_MODE")] NotCompatibleWithPaymentMode = 34, - /// - /// The field is not compatible with the budget type. - /// - [pbr::OriginalName("NOT_COMPATIBLE_WITH_BUDGET_TYPE")] NotCompatibleWithBudgetType = 35, - /// - /// The field is not compatible with the bidding strategy type. - /// - [pbr::OriginalName("NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE")] NotCompatibleWithBiddingStrategyType = 36, - /// - /// Bidding strategy type is incompatible with shared budget. - /// - [pbr::OriginalName("BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET")] BiddingStrategyTypeIncompatibleWithSharedBudget = 37, - /// - /// The attached bidding strategy and budget must be aligned with each other - /// if alignment is specified on either entity. - /// - [pbr::OriginalName("BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ALIGNED")] BiddingStrategyAndBudgetMustBeAligned = 38, - /// - /// The attached bidding strategy and budget must be attached to the same - /// campaigns to become aligned. - /// - [pbr::OriginalName("BIDDING_STRATEGY_AND_BUDGET_MUST_BE_ATTACHED_TO_THE_SAME_CAMPAIGNS_TO_ALIGN")] BiddingStrategyAndBudgetMustBeAttachedToTheSameCampaignsToAlign = 39, - /// - /// The aligned bidding strategy and budget must be removed at the same time. - /// - [pbr::OriginalName("BIDDING_STRATEGY_AND_BUDGET_MUST_BE_REMOVED_TOGETHER")] BiddingStrategyAndBudgetMustBeRemovedTogether = 40, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustment.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustment.g.cs deleted file mode 100755 index 6baa98f69..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustment.g.cs +++ /dev/null @@ -1,711 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/bidding_seasonality_adjustment.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/bidding_seasonality_adjustment.proto - public static partial class BiddingSeasonalityAdjustmentReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/bidding_seasonality_adjustment.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingSeasonalityAdjustmentReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2JpZGRpbmdf", - "c2Vhc29uYWxpdHlfYWRqdXN0bWVudC5wcm90bxIiZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2FkdmVydGlzaW5nX2NoYW5uZWxfdHlwZS5wcm90bxorZ29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2RldmljZS5wcm90bxo8Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3NlYXNvbmFsaXR5X2V2ZW50X3Nj", - "b3BlLnByb3RvGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvc2Vh", - "c29uYWxpdHlfZXZlbnRfc3RhdHVzLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxk", - "X2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIuQG", - "ChxCaWRkaW5nU2Vhc29uYWxpdHlBZGp1c3RtZW50ElQKDXJlc291cmNlX25h", - "bWUYASABKAlCPeBBBfpBNwo1Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Jp", - "ZGRpbmdTZWFzb25hbGl0eUFkanVzdG1lbnQSJgoZc2Vhc29uYWxpdHlfYWRq", - "dXN0bWVudF9pZBgCIAEoA0ID4EEDEl4KBXNjb3BlGAMgASgOMk8uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlNlYXNvbmFsaXR5RXZlbnRTY29w", - "ZUVudW0uU2Vhc29uYWxpdHlFdmVudFNjb3BlEmYKBnN0YXR1cxgEIAEoDjJR", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TZWFzb25hbGl0eUV2", - "ZW50U3RhdHVzRW51bS5TZWFzb25hbGl0eUV2ZW50U3RhdHVzQgPgQQMSHAoP", - "c3RhcnRfZGF0ZV90aW1lGAUgASgJQgPgQQISGgoNZW5kX2RhdGVfdGltZRgG", - "IAEoCUID4EECEgwKBG5hbWUYByABKAkSEwoLZGVzY3JpcHRpb24YCCABKAkS", - "QgoHZGV2aWNlcxgJIAMoDjIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5EZXZpY2VFbnVtLkRldmljZRIgChhjb252ZXJzaW9uX3JhdGVfbW9k", - "aWZpZXIYCiABKAESOQoJY2FtcGFpZ25zGAsgAygJQib6QSMKIWdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbhJ0ChlhZHZlcnRpc2luZ19jaGFu", - "bmVsX3R5cGVzGAwgAygOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLkFkdmVydGlzaW5nQ2hhbm5lbFR5cGVFbnVtLkFkdmVydGlzaW5nQ2hh", - "bm5lbFR5cGU6iQHqQYUBCjVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQmlk", - "ZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudBJMY3VzdG9tZXJzL3tjdXN0b21l", - "cl9pZH0vYmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudHMve3NlYXNvbmFs", - "aXR5X2V2ZW50X2lkfUKTAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXNCIUJpZGRpbmdTZWFzb25hbGl0eUFkanVzdG1lbnRQcm90", - "b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment), global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment.Parser, new[]{ "ResourceName", "SeasonalityAdjustmentId", "Scope", "Status", "StartDateTime", "EndDateTime", "Name", "Description", "Devices", "ConversionRateModifier", "Campaigns", "AdvertisingChannelTypes" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a bidding seasonality adjustment. - /// - /// See "About seasonality adjustments" at - /// https://support.google.com/google-ads/answer/10369906. - /// - public sealed partial class BiddingSeasonalityAdjustment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingSeasonalityAdjustment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustmentReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSeasonalityAdjustment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSeasonalityAdjustment(BiddingSeasonalityAdjustment other) : this() { - resourceName_ = other.resourceName_; - seasonalityAdjustmentId_ = other.seasonalityAdjustmentId_; - scope_ = other.scope_; - status_ = other.status_; - startDateTime_ = other.startDateTime_; - endDateTime_ = other.endDateTime_; - name_ = other.name_; - description_ = other.description_; - devices_ = other.devices_.Clone(); - conversionRateModifier_ = other.conversionRateModifier_; - campaigns_ = other.campaigns_.Clone(); - advertisingChannelTypes_ = other.advertisingChannelTypes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSeasonalityAdjustment Clone() { - return new BiddingSeasonalityAdjustment(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the seasonality adjustment. - /// Seasonality adjustment resource names have the form: - /// - /// `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_adjustment_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "seasonality_adjustment_id" field. - public const int SeasonalityAdjustmentIdFieldNumber = 2; - private long seasonalityAdjustmentId_; - /// - /// Output only. The ID of the seasonality adjustment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SeasonalityAdjustmentId { - get { return seasonalityAdjustmentId_; } - set { - seasonalityAdjustmentId_ = value; - } - } - - /// Field number for the "scope" field. - public const int ScopeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope scope_ = global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified; - /// - /// The scope of the seasonality adjustment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope Scope { - get { return scope_; } - set { - scope_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified; - /// - /// Output only. The status of the seasonality adjustment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "start_date_time" field. - public const int StartDateTimeFieldNumber = 5; - private string startDateTime_ = ""; - /// - /// Required. The inclusive start time of the seasonality adjustment in yyyy-MM-dd - /// HH:mm:ss format. - /// - /// A seasonality adjustment is forward looking and should be used for events - /// that start and end in the future. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDateTime { - get { return startDateTime_; } - set { - startDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date_time" field. - public const int EndDateTimeFieldNumber = 6; - private string endDateTime_ = ""; - /// - /// Required. The exclusive end time of the seasonality adjustment in yyyy-MM-dd HH:mm:ss - /// format. - /// - /// The length of [start_date_time, end_date_time) interval must be - /// within (0, 14 days]. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDateTime { - get { return endDateTime_; } - set { - endDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 7; - private string name_ = ""; - /// - /// The name of the seasonality adjustment. The name can be at most 255 - /// characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 8; - private string description_ = ""; - /// - /// The description of the seasonality adjustment. The description can be at - /// most 2048 characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "devices" field. - public const int DevicesFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_devices_codec - = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) x); - private readonly pbc::RepeatedField devices_ = new pbc::RepeatedField(); - /// - /// If not specified, all devices will be included in this adjustment. - /// Otherwise, only the specified targeted devices will be included in this - /// adjustment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Devices { - get { return devices_; } - } - - /// Field number for the "conversion_rate_modifier" field. - public const int ConversionRateModifierFieldNumber = 10; - private double conversionRateModifier_; - /// - /// Conversion rate modifier estimated based on expected conversion rate - /// changes. When this field is unset or set to 1.0 no adjustment will be - /// applied to traffic. The allowed range is 0.1 to 10.0. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double ConversionRateModifier { - get { return conversionRateModifier_; } - set { - conversionRateModifier_ = value; - } - } - - /// Field number for the "campaigns" field. - public const int CampaignsFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_campaigns_codec - = pb::FieldCodec.ForString(90); - private readonly pbc::RepeatedField campaigns_ = new pbc::RepeatedField(); - /// - /// The seasonality adjustment will apply to the campaigns listed when the - /// scope of this adjustment is CAMPAIGN. The maximum number of campaigns per - /// event is 2000. - /// Note: a seasonality adjustment with both advertising_channel_types and - /// campaign_ids is not supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Campaigns { - get { return campaigns_; } - } - - /// Field number for the "advertising_channel_types" field. - public const int AdvertisingChannelTypesFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_advertisingChannelTypes_codec - = pb::FieldCodec.ForEnum(98, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType) x); - private readonly pbc::RepeatedField advertisingChannelTypes_ = new pbc::RepeatedField(); - /// - /// The seasonality adjustment will apply to all the campaigns under the listed - /// channels retroactively as well as going forward when the scope of this - /// adjustment is CHANNEL. - /// The supported advertising channel types are DISPLAY, SEARCH and SHOPPING. - /// Note: a seasonality adjustment with both advertising_channel_types and - /// campaign_ids is not supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdvertisingChannelTypes { - get { return advertisingChannelTypes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingSeasonalityAdjustment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingSeasonalityAdjustment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (SeasonalityAdjustmentId != other.SeasonalityAdjustmentId) return false; - if (Scope != other.Scope) return false; - if (Status != other.Status) return false; - if (StartDateTime != other.StartDateTime) return false; - if (EndDateTime != other.EndDateTime) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if(!devices_.Equals(other.devices_)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionRateModifier, other.ConversionRateModifier)) return false; - if(!campaigns_.Equals(other.campaigns_)) return false; - if(!advertisingChannelTypes_.Equals(other.advertisingChannelTypes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (SeasonalityAdjustmentId != 0L) hash ^= SeasonalityAdjustmentId.GetHashCode(); - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) hash ^= Scope.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) hash ^= Status.GetHashCode(); - if (StartDateTime.Length != 0) hash ^= StartDateTime.GetHashCode(); - if (EndDateTime.Length != 0) hash ^= EndDateTime.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - hash ^= devices_.GetHashCode(); - if (ConversionRateModifier != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionRateModifier); - hash ^= campaigns_.GetHashCode(); - hash ^= advertisingChannelTypes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (SeasonalityAdjustmentId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(SeasonalityAdjustmentId); - } - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Scope); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (StartDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDateTime); - } - if (EndDateTime.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDateTime); - } - if (Name.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Description); - } - devices_.WriteTo(output, _repeated_devices_codec); - if (ConversionRateModifier != 0D) { - output.WriteRawTag(81); - output.WriteDouble(ConversionRateModifier); - } - campaigns_.WriteTo(output, _repeated_campaigns_codec); - advertisingChannelTypes_.WriteTo(output, _repeated_advertisingChannelTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (SeasonalityAdjustmentId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(SeasonalityAdjustmentId); - } - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Scope); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (StartDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDateTime); - } - if (EndDateTime.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDateTime); - } - if (Name.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Description); - } - devices_.WriteTo(ref output, _repeated_devices_codec); - if (ConversionRateModifier != 0D) { - output.WriteRawTag(81); - output.WriteDouble(ConversionRateModifier); - } - campaigns_.WriteTo(ref output, _repeated_campaigns_codec); - advertisingChannelTypes_.WriteTo(ref output, _repeated_advertisingChannelTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (SeasonalityAdjustmentId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(SeasonalityAdjustmentId); - } - if (Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Scope); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (StartDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDateTime); - } - if (EndDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDateTime); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - size += devices_.CalculateSize(_repeated_devices_codec); - if (ConversionRateModifier != 0D) { - size += 1 + 8; - } - size += campaigns_.CalculateSize(_repeated_campaigns_codec); - size += advertisingChannelTypes_.CalculateSize(_repeated_advertisingChannelTypes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingSeasonalityAdjustment other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.SeasonalityAdjustmentId != 0L) { - SeasonalityAdjustmentId = other.SeasonalityAdjustmentId; - } - if (other.Scope != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope.Unspecified) { - Scope = other.Scope; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus.Unspecified) { - Status = other.Status; - } - if (other.StartDateTime.Length != 0) { - StartDateTime = other.StartDateTime; - } - if (other.EndDateTime.Length != 0) { - EndDateTime = other.EndDateTime; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - devices_.Add(other.devices_); - if (other.ConversionRateModifier != 0D) { - ConversionRateModifier = other.ConversionRateModifier; - } - campaigns_.Add(other.campaigns_); - advertisingChannelTypes_.Add(other.advertisingChannelTypes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - SeasonalityAdjustmentId = input.ReadInt64(); - break; - } - case 24: { - Scope = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus) input.ReadEnum(); - break; - } - case 42: { - StartDateTime = input.ReadString(); - break; - } - case 50: { - EndDateTime = input.ReadString(); - break; - } - case 58: { - Name = input.ReadString(); - break; - } - case 66: { - Description = input.ReadString(); - break; - } - case 74: - case 72: { - devices_.AddEntriesFrom(input, _repeated_devices_codec); - break; - } - case 81: { - ConversionRateModifier = input.ReadDouble(); - break; - } - case 90: { - campaigns_.AddEntriesFrom(input, _repeated_campaigns_codec); - break; - } - case 98: - case 96: { - advertisingChannelTypes_.AddEntriesFrom(input, _repeated_advertisingChannelTypes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - SeasonalityAdjustmentId = input.ReadInt64(); - break; - } - case 24: { - Scope = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventScopeEnum.Types.SeasonalityEventScope) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.SeasonalityEventStatusEnum.Types.SeasonalityEventStatus) input.ReadEnum(); - break; - } - case 42: { - StartDateTime = input.ReadString(); - break; - } - case 50: { - EndDateTime = input.ReadString(); - break; - } - case 58: { - Name = input.ReadString(); - break; - } - case 66: { - Description = input.ReadString(); - break; - } - case 74: - case 72: { - devices_.AddEntriesFrom(ref input, _repeated_devices_codec); - break; - } - case 81: { - ConversionRateModifier = input.ReadDouble(); - break; - } - case 90: { - campaigns_.AddEntriesFrom(ref input, _repeated_campaigns_codec); - break; - } - case 98: - case 96: { - advertisingChannelTypes_.AddEntriesFrom(ref input, _repeated_advertisingChannelTypes_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentResourceNames.g.cs deleted file mode 100755 index ed4d9ea0b..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentResourceNames.g.cs +++ /dev/null @@ -1,311 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the BiddingSeasonalityAdjustment resource. - public sealed partial class BiddingSeasonalityAdjustmentName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}. - /// - CustomerSeasonalityEvent = 1, - } - - private static gax::PathTemplate s_customerSeasonalityEvent = new gax::PathTemplate("customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static BiddingSeasonalityAdjustmentName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new BiddingSeasonalityAdjustmentName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static BiddingSeasonalityAdjustmentName FromCustomerSeasonalityEvent(string customerId, string seasonalityEventId) => - new BiddingSeasonalityAdjustmentName(ResourceNameType.CustomerSeasonalityEvent, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), seasonalityEventId: gax::GaxPreconditions.CheckNotNullOrEmpty(seasonalityEventId, nameof(seasonalityEventId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}. - /// - public static string Format(string customerId, string seasonalityEventId) => - FormatCustomerSeasonalityEvent(customerId, seasonalityEventId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id}. - /// - public static string FormatCustomerSeasonalityEvent(string customerId, string seasonalityEventId) => - s_customerSeasonalityEvent.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(seasonalityEventId, nameof(seasonalityEventId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static BiddingSeasonalityAdjustmentName Parse(string biddingSeasonalityAdjustmentName) => - Parse(biddingSeasonalityAdjustmentName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static BiddingSeasonalityAdjustmentName Parse(string biddingSeasonalityAdjustmentName, bool allowUnparsed) => - TryParse(biddingSeasonalityAdjustmentName, allowUnparsed, out BiddingSeasonalityAdjustmentName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingSeasonalityAdjustmentName, out BiddingSeasonalityAdjustmentName result) => - TryParse(biddingSeasonalityAdjustmentName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingSeasonalityAdjustmentName, bool allowUnparsed, out BiddingSeasonalityAdjustmentName result) - { - gax::GaxPreconditions.CheckNotNull(biddingSeasonalityAdjustmentName, nameof(biddingSeasonalityAdjustmentName)); - gax::TemplatedResourceName resourceName; - if (s_customerSeasonalityEvent.TryParseName(biddingSeasonalityAdjustmentName, out resourceName)) - { - result = FromCustomerSeasonalityEvent(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(biddingSeasonalityAdjustmentName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private BiddingSeasonalityAdjustmentName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string seasonalityEventId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - SeasonalityEventId = seasonalityEventId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_event_id} - /// - /// The Customer ID. Must not be null or empty. - /// The SeasonalityEvent ID. Must not be null or empty. - public BiddingSeasonalityAdjustmentName(string customerId, string seasonalityEventId) : this(ResourceNameType.CustomerSeasonalityEvent, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), seasonalityEventId: gax::GaxPreconditions.CheckNotNullOrEmpty(seasonalityEventId, nameof(seasonalityEventId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The SeasonalityEvent ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string SeasonalityEventId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerSeasonalityEvent: return s_customerSeasonalityEvent.Expand(CustomerId, SeasonalityEventId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as BiddingSeasonalityAdjustmentName); - - /// - public bool Equals(BiddingSeasonalityAdjustmentName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(BiddingSeasonalityAdjustmentName a, BiddingSeasonalityAdjustmentName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(BiddingSeasonalityAdjustmentName a, BiddingSeasonalityAdjustmentName b) => !(a == b); - } - - public partial class BiddingSeasonalityAdjustment - { - /// - /// -typed view over the - /// resource name property. - /// - internal gagvr::BiddingSeasonalityAdjustmentName ResourceNameAsBiddingSeasonalityAdjustmentName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BiddingSeasonalityAdjustmentName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::BiddingSeasonalityAdjustmentName BiddingSeasonalityAdjustmentName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::BiddingSeasonalityAdjustmentName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList CampaignsAsCampaignNames - { - get => new gax::ResourceNameList(Campaigns, s => string.IsNullOrEmpty(s) ? null : CampaignName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentService.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentService.g.cs deleted file mode 100755 index ebc6af49a..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentService.g.cs +++ /dev/null @@ -1,1317 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/bidding_seasonality_adjustment_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/bidding_seasonality_adjustment_service.proto - public static partial class BiddingSeasonalityAdjustmentServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/bidding_seasonality_adjustment_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingSeasonalityAdjustmentServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ck5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYmlkZGluZ19z", - "ZWFzb25hbGl0eV9hZGp1c3RtZW50X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxpHZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9iaWRkaW5nX3NlYXNv", - "bmFsaXR5X2FkanVzdG1lbnQucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlv", - "bnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBp", - "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", - "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxoXZ29vZ2xl", - "L3JwYy9zdGF0dXMucHJvdG8ixQIKKk11dGF0ZUJpZGRpbmdTZWFzb25hbGl0", - "eUFkanVzdG1lbnRzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EEC", - "EmEKCm9wZXJhdGlvbnMYAiADKAsySC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuQmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudE9wZXJh", - "dGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0", - "ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgFIAEoDjJL", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25zZUNvbnRl", - "bnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlItsCCiVCaWRkaW5nU2Vh", - "c29uYWxpdHlBZGp1c3RtZW50T3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJSCgZjcmVhdGUYASAB", - "KAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJpZGRp", - "bmdTZWFzb25hbGl0eUFkanVzdG1lbnRIABJSCgZ1cGRhdGUYAiABKAsyQC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJpZGRpbmdTZWFz", - "b25hbGl0eUFkanVzdG1lbnRIABJMCgZyZW1vdmUYAyABKAlCOvpBNwo1Z29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0JpZGRpbmdTZWFzb25hbGl0eUFkanVz", - "dG1lbnRIAEILCglvcGVyYXRpb24ivwEKK011dGF0ZUJpZGRpbmdTZWFzb25h", - "bGl0eUFkanVzdG1lbnRzUmVzcG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vy", - "cm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSXQoHcmVzdWx0cxgCIAMo", - "CzJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVC", - "aWRkaW5nU2Vhc29uYWxpdHlBZGp1c3RtZW50c1Jlc3VsdCLoAQopTXV0YXRl", - "QmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudHNSZXN1bHQSUQoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUI6+kE3CjVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "QmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudBJoCh5iaWRkaW5nX3NlYXNv", - "bmFsaXR5X2FkanVzdG1lbnQYAiABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzLkJpZGRpbmdTZWFzb25hbGl0eUFkanVzdG1lbnQy", - "nAMKI0JpZGRpbmdTZWFzb25hbGl0eUFkanVzdG1lbnRTZXJ2aWNlEq0CCiNN", - "dXRhdGVCaWRkaW5nU2Vhc29uYWxpdHlBZGp1c3RtZW50cxJNLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVCaWRkaW5nU2Vhc29u", - "YWxpdHlBZGp1c3RtZW50c1JlcXVlc3QaTi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0", - "bWVudHNSZXNwb25zZSJngtPkkwJIIkMvdjEyL2N1c3RvbWVycy97Y3VzdG9t", - "ZXJfaWQ9Kn0vYmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudHM6bXV0YXRl", - "OgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0", - "aC9hZHdvcmRzQpQCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzQihCaWRkaW5nU2Vhc29uYWxpdHlBZGp1c3RtZW50U2VydmljZVBy", - "b3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustmentReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation), global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult.Parser, new[]{ "ResourceName", "BiddingSeasonalityAdjustment" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [BiddingSeasonalityAdjustmentService.MutateBiddingSeasonalityAdjustments][google.ads.googleads.v12.services.BiddingSeasonalityAdjustmentService.MutateBiddingSeasonalityAdjustments]. - /// - public sealed partial class MutateBiddingSeasonalityAdjustmentsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingSeasonalityAdjustmentsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsRequest(MutateBiddingSeasonalityAdjustmentsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsRequest Clone() { - return new MutateBiddingSeasonalityAdjustmentsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose seasonality adjustments are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual seasonality adjustments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingSeasonalityAdjustmentsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingSeasonalityAdjustmentsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingSeasonalityAdjustmentsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove, update) on a seasonality adjustment. - /// - public sealed partial class BiddingSeasonalityAdjustmentOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingSeasonalityAdjustmentOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSeasonalityAdjustmentOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSeasonalityAdjustmentOperation(BiddingSeasonalityAdjustmentOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSeasonalityAdjustmentOperation Clone() { - return new BiddingSeasonalityAdjustmentOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new seasonality - /// adjustment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The seasonality adjustment is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed seasonality adjustment - /// is expected, in this format: - /// - /// `customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_adjustment_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingSeasonalityAdjustmentOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingSeasonalityAdjustmentOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingSeasonalityAdjustmentOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for seasonality adjustments mutate. - /// - public sealed partial class MutateBiddingSeasonalityAdjustmentsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingSeasonalityAdjustmentsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsResponse(MutateBiddingSeasonalityAdjustmentsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsResponse Clone() { - return new MutateBiddingSeasonalityAdjustmentsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingSeasonalityAdjustmentsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingSeasonalityAdjustmentsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingSeasonalityAdjustmentsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the seasonality adjustment mutate. - /// - public sealed partial class MutateBiddingSeasonalityAdjustmentsResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingSeasonalityAdjustmentsResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsResult(MutateBiddingSeasonalityAdjustmentsResult other) : this() { - resourceName_ = other.resourceName_; - biddingSeasonalityAdjustment_ = other.biddingSeasonalityAdjustment_ != null ? other.biddingSeasonalityAdjustment_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingSeasonalityAdjustmentsResult Clone() { - return new MutateBiddingSeasonalityAdjustmentsResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "bidding_seasonality_adjustment" field. - public const int BiddingSeasonalityAdjustmentFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment biddingSeasonalityAdjustment_; - /// - /// The mutated bidding seasonality adjustment with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment BiddingSeasonalityAdjustment { - get { return biddingSeasonalityAdjustment_; } - set { - biddingSeasonalityAdjustment_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingSeasonalityAdjustmentsResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingSeasonalityAdjustmentsResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(BiddingSeasonalityAdjustment, other.BiddingSeasonalityAdjustment)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (biddingSeasonalityAdjustment_ != null) hash ^= BiddingSeasonalityAdjustment.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (biddingSeasonalityAdjustment_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BiddingSeasonalityAdjustment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (biddingSeasonalityAdjustment_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BiddingSeasonalityAdjustment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (biddingSeasonalityAdjustment_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BiddingSeasonalityAdjustment); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingSeasonalityAdjustmentsResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.biddingSeasonalityAdjustment_ != null) { - if (biddingSeasonalityAdjustment_ == null) { - BiddingSeasonalityAdjustment = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - BiddingSeasonalityAdjustment.MergeFrom(other.BiddingSeasonalityAdjustment); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (biddingSeasonalityAdjustment_ == null) { - BiddingSeasonalityAdjustment = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - input.ReadMessage(BiddingSeasonalityAdjustment); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (biddingSeasonalityAdjustment_ == null) { - BiddingSeasonalityAdjustment = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - input.ReadMessage(BiddingSeasonalityAdjustment); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceClient.g.cs deleted file mode 100755 index e6680162e..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceClient.g.cs +++ /dev/null @@ -1,380 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class BiddingSeasonalityAdjustmentServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// - /// Get a new instance of the default . - /// - /// A new instance of the default . - public static BiddingSeasonalityAdjustmentServiceSettings GetDefault() => - new BiddingSeasonalityAdjustmentServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public BiddingSeasonalityAdjustmentServiceSettings() - { - } - - private BiddingSeasonalityAdjustmentServiceSettings(BiddingSeasonalityAdjustmentServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateBiddingSeasonalityAdjustmentsSettings = existing.MutateBiddingSeasonalityAdjustmentsSettings; - OnCopy(existing); - } - - partial void OnCopy(BiddingSeasonalityAdjustmentServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// BiddingSeasonalityAdjustmentServiceClient.MutateBiddingSeasonalityAdjustments and - /// BiddingSeasonalityAdjustmentServiceClient.MutateBiddingSeasonalityAdjustmentsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateBiddingSeasonalityAdjustmentsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public BiddingSeasonalityAdjustmentServiceSettings Clone() => new BiddingSeasonalityAdjustmentServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class BiddingSeasonalityAdjustmentServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public BiddingSeasonalityAdjustmentServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public BiddingSeasonalityAdjustmentServiceClientBuilder() : base(BiddingSeasonalityAdjustmentServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref BiddingSeasonalityAdjustmentServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override BiddingSeasonalityAdjustmentServiceClient Build() - { - BiddingSeasonalityAdjustmentServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private BiddingSeasonalityAdjustmentServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return BiddingSeasonalityAdjustmentServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return BiddingSeasonalityAdjustmentServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => BiddingSeasonalityAdjustmentServiceClient.ChannelPool; - } - - /// BiddingSeasonalityAdjustmentService client wrapper, for convenient use. - /// - /// Service to manage bidding seasonality adjustments. - /// - public abstract partial class BiddingSeasonalityAdjustmentServiceClient - { - /// - /// The default endpoint for the BiddingSeasonalityAdjustmentService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default BiddingSeasonalityAdjustmentService scopes. - /// - /// The default BiddingSeasonalityAdjustmentService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(BiddingSeasonalityAdjustmentService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// - /// The task representing the created . - /// - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new BiddingSeasonalityAdjustmentServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static BiddingSeasonalityAdjustmentServiceClient Create() => - new BiddingSeasonalityAdjustmentServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static BiddingSeasonalityAdjustmentServiceClient Create(grpccore::CallInvoker callInvoker, BiddingSeasonalityAdjustmentServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - BiddingSeasonalityAdjustmentService.BiddingSeasonalityAdjustmentServiceClient grpcClient = new BiddingSeasonalityAdjustmentService.BiddingSeasonalityAdjustmentServiceClient(callInvoker); - return new BiddingSeasonalityAdjustmentServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC BiddingSeasonalityAdjustmentService client - public virtual BiddingSeasonalityAdjustmentService.BiddingSeasonalityAdjustmentServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBiddingSeasonalityAdjustmentsResponse MutateBiddingSeasonalityAdjustments(MutateBiddingSeasonalityAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingSeasonalityAdjustmentsAsync(MutateBiddingSeasonalityAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingSeasonalityAdjustmentsAsync(MutateBiddingSeasonalityAdjustmentsRequest request, st::CancellationToken cancellationToken) => - MutateBiddingSeasonalityAdjustmentsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// - /// Required. ID of the customer whose seasonality adjustments are being modified. - /// - /// - /// Required. The list of operations to perform on individual seasonality adjustments. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBiddingSeasonalityAdjustmentsResponse MutateBiddingSeasonalityAdjustments(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateBiddingSeasonalityAdjustments(new MutateBiddingSeasonalityAdjustmentsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// - /// Required. ID of the customer whose seasonality adjustments are being modified. - /// - /// - /// Required. The list of operations to perform on individual seasonality adjustments. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingSeasonalityAdjustmentsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateBiddingSeasonalityAdjustmentsAsync(new MutateBiddingSeasonalityAdjustmentsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// - /// Required. ID of the customer whose seasonality adjustments are being modified. - /// - /// - /// Required. The list of operations to perform on individual seasonality adjustments. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingSeasonalityAdjustmentsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateBiddingSeasonalityAdjustmentsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// BiddingSeasonalityAdjustmentService client wrapper implementation, for convenient use. - /// - /// Service to manage bidding seasonality adjustments. - /// - public sealed partial class BiddingSeasonalityAdjustmentServiceClientImpl : BiddingSeasonalityAdjustmentServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateBiddingSeasonalityAdjustments; - - /// - /// Constructs a client wrapper for the BiddingSeasonalityAdjustmentService service, with the specified gRPC - /// client and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public BiddingSeasonalityAdjustmentServiceClientImpl(BiddingSeasonalityAdjustmentService.BiddingSeasonalityAdjustmentServiceClient grpcClient, BiddingSeasonalityAdjustmentServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - BiddingSeasonalityAdjustmentServiceSettings effectiveSettings = settings ?? BiddingSeasonalityAdjustmentServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateBiddingSeasonalityAdjustments = clientHelper.BuildApiCall("MutateBiddingSeasonalityAdjustments", grpcClient.MutateBiddingSeasonalityAdjustmentsAsync, grpcClient.MutateBiddingSeasonalityAdjustments, effectiveSettings.MutateBiddingSeasonalityAdjustmentsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateBiddingSeasonalityAdjustments); - Modify_MutateBiddingSeasonalityAdjustmentsApiCall(ref _callMutateBiddingSeasonalityAdjustments); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateBiddingSeasonalityAdjustmentsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(BiddingSeasonalityAdjustmentService.BiddingSeasonalityAdjustmentServiceClient grpcClient, BiddingSeasonalityAdjustmentServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC BiddingSeasonalityAdjustmentService client - public override BiddingSeasonalityAdjustmentService.BiddingSeasonalityAdjustmentServiceClient GrpcClient { get; } - - partial void Modify_MutateBiddingSeasonalityAdjustmentsRequest(ref MutateBiddingSeasonalityAdjustmentsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateBiddingSeasonalityAdjustmentsResponse MutateBiddingSeasonalityAdjustments(MutateBiddingSeasonalityAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBiddingSeasonalityAdjustmentsRequest(ref request, ref callSettings); - return _callMutateBiddingSeasonalityAdjustments.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateBiddingSeasonalityAdjustmentsAsync(MutateBiddingSeasonalityAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBiddingSeasonalityAdjustmentsRequest(ref request, ref callSettings); - return _callMutateBiddingSeasonalityAdjustments.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceGrpc.g.cs deleted file mode 100755 index d53f5ae06..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/bidding_seasonality_adjustment_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage bidding seasonality adjustments. - /// - public static partial class BiddingSeasonalityAdjustmentService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.BiddingSeasonalityAdjustmentService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBiddingSeasonalityAdjustmentsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBiddingSeasonalityAdjustmentsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateBiddingSeasonalityAdjustments = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateBiddingSeasonalityAdjustments", - __Marshaller_google_ads_googleads_v12_services_MutateBiddingSeasonalityAdjustmentsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateBiddingSeasonalityAdjustmentsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of BiddingSeasonalityAdjustmentService - [grpc::BindServiceMethod(typeof(BiddingSeasonalityAdjustmentService), "BindService")] - public abstract partial class BiddingSeasonalityAdjustmentServiceBase - { - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateBiddingSeasonalityAdjustments(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for BiddingSeasonalityAdjustmentService - public partial class BiddingSeasonalityAdjustmentServiceClient : grpc::ClientBase - { - /// Creates a new client for BiddingSeasonalityAdjustmentService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BiddingSeasonalityAdjustmentServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for BiddingSeasonalityAdjustmentService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BiddingSeasonalityAdjustmentServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BiddingSeasonalityAdjustmentServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BiddingSeasonalityAdjustmentServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResponse MutateBiddingSeasonalityAdjustments(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBiddingSeasonalityAdjustments(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResponse MutateBiddingSeasonalityAdjustments(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateBiddingSeasonalityAdjustments, null, options, request); - } - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBiddingSeasonalityAdjustmentsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBiddingSeasonalityAdjustmentsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes seasonality adjustments. - /// Operation statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBiddingSeasonalityAdjustmentsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateBiddingSeasonalityAdjustments, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override BiddingSeasonalityAdjustmentServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new BiddingSeasonalityAdjustmentServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(BiddingSeasonalityAdjustmentServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateBiddingSeasonalityAdjustments, serviceImpl.MutateBiddingSeasonalityAdjustments).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, BiddingSeasonalityAdjustmentServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateBiddingSeasonalityAdjustments, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateBiddingSeasonalityAdjustments)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceResourceNames.g.cs deleted file mode 100755 index 18e614b4a..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingSeasonalityAdjustmentServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class BiddingSeasonalityAdjustmentOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::BiddingSeasonalityAdjustmentName RemoveAsBiddingSeasonalityAdjustmentName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::BiddingSeasonalityAdjustmentName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateBiddingSeasonalityAdjustmentsResult - { - /// - /// -typed view over the - /// resource name property. - /// - internal gagvr::BiddingSeasonalityAdjustmentName ResourceNameAsBiddingSeasonalityAdjustmentName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BiddingSeasonalityAdjustmentName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingSource.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingSource.g.cs deleted file mode 100755 index 6d5dfe1bb..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingSource.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/bidding_source.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/bidding_source.proto - public static partial class BiddingSourceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/bidding_source.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingSourceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmlkZGluZ19zb3Vy", - "Y2UucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKHAQoR", - "QmlkZGluZ1NvdXJjZUVudW0icgoNQmlkZGluZ1NvdXJjZRIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIdChlDQU1QQUlHTl9CSURESU5HX1NUUkFU", - "RUdZEAUSDAoIQURfR1JPVVAQBhIWChJBRF9HUk9VUF9DUklURVJJT04QB0Ls", - "AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0ISQmlkZGlu", - "Z1NvdXJjZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGq", - "Ah5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum), global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceEnum.Types.BiddingSource) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible bidding sources. - /// - public sealed partial class BiddingSourceEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingSourceEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BiddingSourceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSourceEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSourceEnum(BiddingSourceEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingSourceEnum Clone() { - return new BiddingSourceEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingSourceEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingSourceEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingSourceEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BiddingSourceEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Indicates where a bid or target is defined. For example, an ad group - /// criterion may define a cpc bid directly, or it can inherit its cpc bid from - /// the ad group. - /// - public enum BiddingSource { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Effective bid or target is inherited from campaign bidding strategy. - /// - [pbr::OriginalName("CAMPAIGN_BIDDING_STRATEGY")] CampaignBiddingStrategy = 5, - /// - /// The bid or target is defined on the ad group. - /// - [pbr::OriginalName("AD_GROUP")] AdGroup = 6, - /// - /// The bid or target is defined on the ad group criterion. - /// - [pbr::OriginalName("AD_GROUP_CRITERION")] AdGroupCriterion = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategy.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategy.g.cs deleted file mode 100755 index 65b16c9f8..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategy.g.cs +++ /dev/null @@ -1,1164 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/bidding_strategy.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/bidding_strategy.proto - public static partial class BiddingStrategyReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/bidding_strategy.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingStrategyReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2JpZGRpbmdf", - "c3RyYXRlZ3kucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMaLWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vYmlkZGlu", - "Zy5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2JpZGRp", - "bmdfc3RyYXRlZ3lfc3RhdHVzLnByb3RvGjpnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvYmlkZGluZ19zdHJhdGVneV90eXBlLnByb3RvGh9nb29n", - "bGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291", - "cmNlLnByb3RvIv4JCg9CaWRkaW5nU3RyYXRlZ3kSRwoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUIw4EEF+kEqCihnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQmlk", - "ZGluZ1N0cmF0ZWd5EhQKAmlkGBAgASgDQgPgQQNIAYgBARIRCgRuYW1lGBEg", - "ASgJSAKIAQESZAoGc3RhdHVzGA8gASgOMk8uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLkJpZGRpbmdTdHJhdGVneVN0YXR1c0VudW0uQmlkZGlu", - "Z1N0cmF0ZWd5U3RhdHVzQgPgQQMSXgoEdHlwZRgFIAEoDjJLLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5CaWRkaW5nU3RyYXRlZ3lUeXBlRW51", - "bS5CaWRkaW5nU3RyYXRlZ3lUeXBlQgPgQQMSGgoNY3VycmVuY3lfY29kZRgX", - "IAEoCUID4EEFEikKF2VmZmVjdGl2ZV9jdXJyZW5jeV9jb2RlGBQgASgJQgPg", - "QQNIA4gBARIiChphbGlnbmVkX2NhbXBhaWduX2J1ZGdldF9pZBgZIAEoAxIg", - "Cg5jYW1wYWlnbl9jb3VudBgSIAEoA0ID4EEDSASIAQESLAoabm9uX3JlbW92", - "ZWRfY2FtcGFpZ25fY291bnQYEyABKANCA+BBA0gFiAEBEkQKDGVuaGFuY2Vk", - "X2NwYxgHIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "RW5oYW5jZWRDcGNIABJdChltYXhpbWl6ZV9jb252ZXJzaW9uX3ZhbHVlGBUg", - "ASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5NYXhpbWl6", - "ZUNvbnZlcnNpb25WYWx1ZUgAElQKFG1heGltaXplX2NvbnZlcnNpb25zGBYg", - "ASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5NYXhpbWl6", - "ZUNvbnZlcnNpb25zSAASQAoKdGFyZ2V0X2NwYRgJIAEoCzIqLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uVGFyZ2V0Q3BhSAASWQoXdGFyZ2V0", - "X2ltcHJlc3Npb25fc2hhcmUYMCABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLlRhcmdldEltcHJlc3Npb25TaGFyZUgAEkIKC3Rhcmdl", - "dF9yb2FzGAsgASgLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5UYXJnZXRSb2FzSAASRAoMdGFyZ2V0X3NwZW5kGAwgASgLMiwuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5UYXJnZXRTcGVuZEgAOm7qQWsK", - "KGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9CaWRkaW5nU3RyYXRlZ3kSP2N1", - "c3RvbWVycy97Y3VzdG9tZXJfaWR9L2JpZGRpbmdTdHJhdGVnaWVzL3tiaWRk", - "aW5nX3N0cmF0ZWd5X2lkfUIICgZzY2hlbWVCBQoDX2lkQgcKBV9uYW1lQhoK", - "GF9lZmZlY3RpdmVfY3VycmVuY3lfY29kZUIRCg9fY2FtcGFpZ25fY291bnRC", - "HQobX25vbl9yZW1vdmVkX2NhbXBhaWduX2NvdW50QoYCCiZjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0IUQmlkZGluZ1N0cmF0ZWd5", - "UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FB", - "qgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy), global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy.Parser, new[]{ "ResourceName", "Id", "Name", "Status", "Type", "CurrencyCode", "EffectiveCurrencyCode", "AlignedCampaignBudgetId", "CampaignCount", "NonRemovedCampaignCount", "EnhancedCpc", "MaximizeConversionValue", "MaximizeConversions", "TargetCpa", "TargetImpressionShare", "TargetRoas", "TargetSpend" }, new[]{ "Scheme", "Id", "Name", "EffectiveCurrencyCode", "CampaignCount", "NonRemovedCampaignCount" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A bidding strategy. - /// - public sealed partial class BiddingStrategy : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingStrategy()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategyReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategy() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategy(BiddingStrategy other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - status_ = other.status_; - type_ = other.type_; - currencyCode_ = other.currencyCode_; - effectiveCurrencyCode_ = other.effectiveCurrencyCode_; - alignedCampaignBudgetId_ = other.alignedCampaignBudgetId_; - campaignCount_ = other.campaignCount_; - nonRemovedCampaignCount_ = other.nonRemovedCampaignCount_; - switch (other.SchemeCase) { - case SchemeOneofCase.EnhancedCpc: - EnhancedCpc = other.EnhancedCpc.Clone(); - break; - case SchemeOneofCase.MaximizeConversionValue: - MaximizeConversionValue = other.MaximizeConversionValue.Clone(); - break; - case SchemeOneofCase.MaximizeConversions: - MaximizeConversions = other.MaximizeConversions.Clone(); - break; - case SchemeOneofCase.TargetCpa: - TargetCpa = other.TargetCpa.Clone(); - break; - case SchemeOneofCase.TargetImpressionShare: - TargetImpressionShare = other.TargetImpressionShare.Clone(); - break; - case SchemeOneofCase.TargetRoas: - TargetRoas = other.TargetRoas.Clone(); - break; - case SchemeOneofCase.TargetSpend: - TargetSpend = other.TargetSpend.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategy Clone() { - return new BiddingStrategy(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the bidding strategy. - /// Bidding strategy resource names have the form: - /// - /// `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 16; - private long id_; - /// - /// Output only. The ID of the bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 17; - private string name_; - /// - /// The name of the bidding strategy. - /// All bidding strategies within an account must be named distinctly. - /// - /// The length of this string should be between 1 and 255, inclusive, - /// in UTF-8 bytes, (trimmed). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 15; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified; - /// - /// Output only. The status of the bidding strategy. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType type_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified; - /// - /// Output only. The type of the bidding strategy. - /// Create a bidding strategy by setting the bidding scheme. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 23; - private string currencyCode_ = ""; - /// - /// Immutable. The currency used by the bidding strategy (ISO 4217 three-letter code). - /// - /// For bidding strategies in manager customers, this currency can be set on - /// creation and defaults to the manager customer's currency. For serving - /// customers, this field cannot be set; all strategies in a serving customer - /// implicitly use the serving customer's currency. In all cases the - /// effective_currency_code field returns the currency used by the strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "effective_currency_code" field. - public const int EffectiveCurrencyCodeFieldNumber = 20; - private string effectiveCurrencyCode_; - /// - /// Output only. The currency used by the bidding strategy (ISO 4217 three-letter code). - /// - /// For bidding strategies in manager customers, this is the currency set by - /// the advertiser when creating the strategy. For serving customers, this is - /// the customer's currency_code. - /// - /// Bidding strategy metrics are reported in this currency. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EffectiveCurrencyCode { - get { return effectiveCurrencyCode_ ?? ""; } - set { - effectiveCurrencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "effective_currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEffectiveCurrencyCode { - get { return effectiveCurrencyCode_ != null; } - } - /// Clears the value of the "effective_currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEffectiveCurrencyCode() { - effectiveCurrencyCode_ = null; - } - - /// Field number for the "aligned_campaign_budget_id" field. - public const int AlignedCampaignBudgetIdFieldNumber = 25; - private long alignedCampaignBudgetId_; - /// - /// ID of the campaign budget that this portfolio bidding strategy - /// is aligned with. When a portfolio and a campaign budget are aligned, that - /// means that they are attached to the same set of campaigns. After a bidding - /// strategy is aligned with a campaign budget, campaigns that are added to the - /// bidding strategy must also use the aligned campaign budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AlignedCampaignBudgetId { - get { return alignedCampaignBudgetId_; } - set { - alignedCampaignBudgetId_ = value; - } - } - - /// Field number for the "campaign_count" field. - public const int CampaignCountFieldNumber = 18; - private long campaignCount_; - /// - /// Output only. The number of campaigns attached to this bidding strategy. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CampaignCount { - get { if ((_hasBits0 & 2) != 0) { return campaignCount_; } else { return 0L; } } - set { - _hasBits0 |= 2; - campaignCount_ = value; - } - } - /// Gets whether the "campaign_count" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignCount { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "campaign_count" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignCount() { - _hasBits0 &= ~2; - } - - /// Field number for the "non_removed_campaign_count" field. - public const int NonRemovedCampaignCountFieldNumber = 19; - private long nonRemovedCampaignCount_; - /// - /// Output only. The number of non-removed campaigns attached to this bidding strategy. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long NonRemovedCampaignCount { - get { if ((_hasBits0 & 4) != 0) { return nonRemovedCampaignCount_; } else { return 0L; } } - set { - _hasBits0 |= 4; - nonRemovedCampaignCount_ = value; - } - } - /// Gets whether the "non_removed_campaign_count" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNonRemovedCampaignCount { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "non_removed_campaign_count" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNonRemovedCampaignCount() { - _hasBits0 &= ~4; - } - - /// Field number for the "enhanced_cpc" field. - public const int EnhancedCpcFieldNumber = 7; - /// - /// A bidding strategy that raises bids for clicks that seem more likely to - /// lead to a conversion and lowers them for clicks where they seem less - /// likely. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc EnhancedCpc { - get { return schemeCase_ == SchemeOneofCase.EnhancedCpc ? (global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.EnhancedCpc; - } - } - - /// Field number for the "maximize_conversion_value" field. - public const int MaximizeConversionValueFieldNumber = 21; - /// - /// An automated bidding strategy to help get the most conversion value for - /// your campaigns while spending your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue MaximizeConversionValue { - get { return schemeCase_ == SchemeOneofCase.MaximizeConversionValue ? (global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.MaximizeConversionValue; - } - } - - /// Field number for the "maximize_conversions" field. - public const int MaximizeConversionsFieldNumber = 22; - /// - /// An automated bidding strategy to help get the most conversions for your - /// campaigns while spending your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions MaximizeConversions { - get { return schemeCase_ == SchemeOneofCase.MaximizeConversions ? (global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.MaximizeConversions; - } - } - - /// Field number for the "target_cpa" field. - public const int TargetCpaFieldNumber = 9; - /// - /// A bidding strategy that sets bids to help get as many conversions as - /// possible at the target cost-per-acquisition (CPA) you set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetCpa TargetCpa { - get { return schemeCase_ == SchemeOneofCase.TargetCpa ? (global::Google.Ads.GoogleAds.V12.Common.TargetCpa) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetCpa; - } - } - - /// Field number for the "target_impression_share" field. - public const int TargetImpressionShareFieldNumber = 48; - /// - /// A bidding strategy that automatically optimizes towards a chosen - /// percentage of impressions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare TargetImpressionShare { - get { return schemeCase_ == SchemeOneofCase.TargetImpressionShare ? (global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetImpressionShare; - } - } - - /// Field number for the "target_roas" field. - public const int TargetRoasFieldNumber = 11; - /// - /// A bidding strategy that helps you maximize revenue while averaging a - /// specific target Return On Ad Spend (ROAS). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetRoas TargetRoas { - get { return schemeCase_ == SchemeOneofCase.TargetRoas ? (global::Google.Ads.GoogleAds.V12.Common.TargetRoas) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetRoas; - } - } - - /// Field number for the "target_spend" field. - public const int TargetSpendFieldNumber = 12; - /// - /// A bid strategy that sets your bids to help get as many clicks as - /// possible within your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetSpend TargetSpend { - get { return schemeCase_ == SchemeOneofCase.TargetSpend ? (global::Google.Ads.GoogleAds.V12.Common.TargetSpend) scheme_ : null; } - set { - scheme_ = value; - schemeCase_ = value == null ? SchemeOneofCase.None : SchemeOneofCase.TargetSpend; - } - } - - private object scheme_; - /// Enum of possible cases for the "scheme" oneof. - public enum SchemeOneofCase { - None = 0, - EnhancedCpc = 7, - MaximizeConversionValue = 21, - MaximizeConversions = 22, - TargetCpa = 9, - TargetImpressionShare = 48, - TargetRoas = 11, - TargetSpend = 12, - } - private SchemeOneofCase schemeCase_ = SchemeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SchemeOneofCase SchemeCase { - get { return schemeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearScheme() { - schemeCase_ = SchemeOneofCase.None; - scheme_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingStrategy); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingStrategy other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Status != other.Status) return false; - if (Type != other.Type) return false; - if (CurrencyCode != other.CurrencyCode) return false; - if (EffectiveCurrencyCode != other.EffectiveCurrencyCode) return false; - if (AlignedCampaignBudgetId != other.AlignedCampaignBudgetId) return false; - if (CampaignCount != other.CampaignCount) return false; - if (NonRemovedCampaignCount != other.NonRemovedCampaignCount) return false; - if (!object.Equals(EnhancedCpc, other.EnhancedCpc)) return false; - if (!object.Equals(MaximizeConversionValue, other.MaximizeConversionValue)) return false; - if (!object.Equals(MaximizeConversions, other.MaximizeConversions)) return false; - if (!object.Equals(TargetCpa, other.TargetCpa)) return false; - if (!object.Equals(TargetImpressionShare, other.TargetImpressionShare)) return false; - if (!object.Equals(TargetRoas, other.TargetRoas)) return false; - if (!object.Equals(TargetSpend, other.TargetSpend)) return false; - if (SchemeCase != other.SchemeCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) hash ^= Type.GetHashCode(); - if (CurrencyCode.Length != 0) hash ^= CurrencyCode.GetHashCode(); - if (HasEffectiveCurrencyCode) hash ^= EffectiveCurrencyCode.GetHashCode(); - if (AlignedCampaignBudgetId != 0L) hash ^= AlignedCampaignBudgetId.GetHashCode(); - if (HasCampaignCount) hash ^= CampaignCount.GetHashCode(); - if (HasNonRemovedCampaignCount) hash ^= NonRemovedCampaignCount.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.EnhancedCpc) hash ^= EnhancedCpc.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) hash ^= MaximizeConversionValue.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) hash ^= MaximizeConversions.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetCpa) hash ^= TargetCpa.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) hash ^= TargetImpressionShare.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetRoas) hash ^= TargetRoas.GetHashCode(); - if (schemeCase_ == SchemeOneofCase.TargetSpend) hash ^= TargetSpend.GetHashCode(); - hash ^= (int) schemeCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (schemeCase_ == SchemeOneofCase.EnhancedCpc) { - output.WriteRawTag(58); - output.WriteMessage(EnhancedCpc); - } - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - output.WriteRawTag(74); - output.WriteMessage(TargetCpa); - } - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - output.WriteRawTag(90); - output.WriteMessage(TargetRoas); - } - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - output.WriteRawTag(98); - output.WriteMessage(TargetSpend); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified) { - output.WriteRawTag(120); - output.WriteEnum((int) Status); - } - if (HasId) { - output.WriteRawTag(128, 1); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(138, 1); - output.WriteString(Name); - } - if (HasCampaignCount) { - output.WriteRawTag(144, 1); - output.WriteInt64(CampaignCount); - } - if (HasNonRemovedCampaignCount) { - output.WriteRawTag(152, 1); - output.WriteInt64(NonRemovedCampaignCount); - } - if (HasEffectiveCurrencyCode) { - output.WriteRawTag(162, 1); - output.WriteString(EffectiveCurrencyCode); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - output.WriteRawTag(170, 1); - output.WriteMessage(MaximizeConversionValue); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - output.WriteRawTag(178, 1); - output.WriteMessage(MaximizeConversions); - } - if (CurrencyCode.Length != 0) { - output.WriteRawTag(186, 1); - output.WriteString(CurrencyCode); - } - if (AlignedCampaignBudgetId != 0L) { - output.WriteRawTag(200, 1); - output.WriteInt64(AlignedCampaignBudgetId); - } - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - output.WriteRawTag(130, 3); - output.WriteMessage(TargetImpressionShare); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (schemeCase_ == SchemeOneofCase.EnhancedCpc) { - output.WriteRawTag(58); - output.WriteMessage(EnhancedCpc); - } - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - output.WriteRawTag(74); - output.WriteMessage(TargetCpa); - } - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - output.WriteRawTag(90); - output.WriteMessage(TargetRoas); - } - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - output.WriteRawTag(98); - output.WriteMessage(TargetSpend); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified) { - output.WriteRawTag(120); - output.WriteEnum((int) Status); - } - if (HasId) { - output.WriteRawTag(128, 1); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(138, 1); - output.WriteString(Name); - } - if (HasCampaignCount) { - output.WriteRawTag(144, 1); - output.WriteInt64(CampaignCount); - } - if (HasNonRemovedCampaignCount) { - output.WriteRawTag(152, 1); - output.WriteInt64(NonRemovedCampaignCount); - } - if (HasEffectiveCurrencyCode) { - output.WriteRawTag(162, 1); - output.WriteString(EffectiveCurrencyCode); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - output.WriteRawTag(170, 1); - output.WriteMessage(MaximizeConversionValue); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - output.WriteRawTag(178, 1); - output.WriteMessage(MaximizeConversions); - } - if (CurrencyCode.Length != 0) { - output.WriteRawTag(186, 1); - output.WriteString(CurrencyCode); - } - if (AlignedCampaignBudgetId != 0L) { - output.WriteRawTag(200, 1); - output.WriteInt64(AlignedCampaignBudgetId); - } - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - output.WriteRawTag(130, 3); - output.WriteMessage(TargetImpressionShare); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (CurrencyCode.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - if (HasEffectiveCurrencyCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(EffectiveCurrencyCode); - } - if (AlignedCampaignBudgetId != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AlignedCampaignBudgetId); - } - if (HasCampaignCount) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CampaignCount); - } - if (HasNonRemovedCampaignCount) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(NonRemovedCampaignCount); - } - if (schemeCase_ == SchemeOneofCase.EnhancedCpc) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnhancedCpc); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversionValue); - } - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversions); - } - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpa); - } - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetImpressionShare); - } - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoas); - } - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetSpend); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingStrategy other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified) { - Status = other.Status; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - Type = other.Type; - } - if (other.CurrencyCode.Length != 0) { - CurrencyCode = other.CurrencyCode; - } - if (other.HasEffectiveCurrencyCode) { - EffectiveCurrencyCode = other.EffectiveCurrencyCode; - } - if (other.AlignedCampaignBudgetId != 0L) { - AlignedCampaignBudgetId = other.AlignedCampaignBudgetId; - } - if (other.HasCampaignCount) { - CampaignCount = other.CampaignCount; - } - if (other.HasNonRemovedCampaignCount) { - NonRemovedCampaignCount = other.NonRemovedCampaignCount; - } - switch (other.SchemeCase) { - case SchemeOneofCase.EnhancedCpc: - if (EnhancedCpc == null) { - EnhancedCpc = new global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc(); - } - EnhancedCpc.MergeFrom(other.EnhancedCpc); - break; - case SchemeOneofCase.MaximizeConversionValue: - if (MaximizeConversionValue == null) { - MaximizeConversionValue = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue(); - } - MaximizeConversionValue.MergeFrom(other.MaximizeConversionValue); - break; - case SchemeOneofCase.MaximizeConversions: - if (MaximizeConversions == null) { - MaximizeConversions = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions(); - } - MaximizeConversions.MergeFrom(other.MaximizeConversions); - break; - case SchemeOneofCase.TargetCpa: - if (TargetCpa == null) { - TargetCpa = new global::Google.Ads.GoogleAds.V12.Common.TargetCpa(); - } - TargetCpa.MergeFrom(other.TargetCpa); - break; - case SchemeOneofCase.TargetImpressionShare: - if (TargetImpressionShare == null) { - TargetImpressionShare = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare(); - } - TargetImpressionShare.MergeFrom(other.TargetImpressionShare); - break; - case SchemeOneofCase.TargetRoas: - if (TargetRoas == null) { - TargetRoas = new global::Google.Ads.GoogleAds.V12.Common.TargetRoas(); - } - TargetRoas.MergeFrom(other.TargetRoas); - break; - case SchemeOneofCase.TargetSpend: - if (TargetSpend == null) { - TargetSpend = new global::Google.Ads.GoogleAds.V12.Common.TargetSpend(); - } - TargetSpend.MergeFrom(other.TargetSpend); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType) input.ReadEnum(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc subBuilder = new global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc(); - if (schemeCase_ == SchemeOneofCase.EnhancedCpc) { - subBuilder.MergeFrom(EnhancedCpc); - } - input.ReadMessage(subBuilder); - EnhancedCpc = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpa(); - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - subBuilder.MergeFrom(TargetCpa); - } - input.ReadMessage(subBuilder); - TargetCpa = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoas(); - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - subBuilder.MergeFrom(TargetRoas); - } - input.ReadMessage(subBuilder); - TargetRoas = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetSpend(); - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - subBuilder.MergeFrom(TargetSpend); - } - input.ReadMessage(subBuilder); - TargetSpend = subBuilder; - break; - } - case 120: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus) input.ReadEnum(); - break; - } - case 128: { - Id = input.ReadInt64(); - break; - } - case 138: { - Name = input.ReadString(); - break; - } - case 144: { - CampaignCount = input.ReadInt64(); - break; - } - case 152: { - NonRemovedCampaignCount = input.ReadInt64(); - break; - } - case 162: { - EffectiveCurrencyCode = input.ReadString(); - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - subBuilder.MergeFrom(MaximizeConversionValue); - } - input.ReadMessage(subBuilder); - MaximizeConversionValue = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - subBuilder.MergeFrom(MaximizeConversions); - } - input.ReadMessage(subBuilder); - MaximizeConversions = subBuilder; - break; - } - case 186: { - CurrencyCode = input.ReadString(); - break; - } - case 200: { - AlignedCampaignBudgetId = input.ReadInt64(); - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare(); - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - subBuilder.MergeFrom(TargetImpressionShare); - } - input.ReadMessage(subBuilder); - TargetImpressionShare = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType) input.ReadEnum(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc subBuilder = new global::Google.Ads.GoogleAds.V12.Common.EnhancedCpc(); - if (schemeCase_ == SchemeOneofCase.EnhancedCpc) { - subBuilder.MergeFrom(EnhancedCpc); - } - input.ReadMessage(subBuilder); - EnhancedCpc = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpa(); - if (schemeCase_ == SchemeOneofCase.TargetCpa) { - subBuilder.MergeFrom(TargetCpa); - } - input.ReadMessage(subBuilder); - TargetCpa = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoas(); - if (schemeCase_ == SchemeOneofCase.TargetRoas) { - subBuilder.MergeFrom(TargetRoas); - } - input.ReadMessage(subBuilder); - TargetRoas = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetSpend(); - if (schemeCase_ == SchemeOneofCase.TargetSpend) { - subBuilder.MergeFrom(TargetSpend); - } - input.ReadMessage(subBuilder); - TargetSpend = subBuilder; - break; - } - case 120: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus) input.ReadEnum(); - break; - } - case 128: { - Id = input.ReadInt64(); - break; - } - case 138: { - Name = input.ReadString(); - break; - } - case 144: { - CampaignCount = input.ReadInt64(); - break; - } - case 152: { - NonRemovedCampaignCount = input.ReadInt64(); - break; - } - case 162: { - EffectiveCurrencyCode = input.ReadString(); - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversionValue) { - subBuilder.MergeFrom(MaximizeConversionValue); - } - input.ReadMessage(subBuilder); - MaximizeConversionValue = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions(); - if (schemeCase_ == SchemeOneofCase.MaximizeConversions) { - subBuilder.MergeFrom(MaximizeConversions); - } - input.ReadMessage(subBuilder); - MaximizeConversions = subBuilder; - break; - } - case 186: { - CurrencyCode = input.ReadString(); - break; - } - case 200: { - AlignedCampaignBudgetId = input.ReadInt64(); - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare(); - if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { - subBuilder.MergeFrom(TargetImpressionShare); - } - input.ReadMessage(subBuilder); - TargetImpressionShare = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyError.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyError.g.cs deleted file mode 100755 index 46bac1f17..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyError.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/bidding_strategy_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/bidding_strategy_error.proto - public static partial class BiddingStrategyErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/bidding_strategy_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingStrategyErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2JpZGRpbmdfc3Ry", - "YXRlZ3lfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMimwIKGEJpZGRpbmdTdHJhdGVneUVycm9yRW51bSL+AQoUQmlkZGlu", - "Z1N0cmF0ZWd5RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "EgoORFVQTElDQVRFX05BTUUQAhInCiNDQU5OT1RfQ0hBTkdFX0JJRERJTkdf", - "U1RSQVRFR1lfVFlQRRADEiUKIUNBTk5PVF9SRU1PVkVfQVNTT0NJQVRFRF9T", - "VFJBVEVHWRAEEiIKHkJJRERJTkdfU1RSQVRFR1lfTk9UX1NVUFBPUlRFRBAF", - "EkAKPElOQ09NUEFUSUJMRV9CSURESU5HX1NUUkFURUdZX0FORF9CSURESU5H", - "X1NUUkFURUdZX0dPQUxfVFlQRRAGQvkBCiNjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVycm9yc0IZQmlkZGluZ1N0cmF0ZWd5RXJyb3JQcm90b1AB", - "WkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJy", - "b3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorEnum.Types.BiddingStrategyError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible bidding strategy errors. - /// - public sealed partial class BiddingStrategyErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingStrategyErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyErrorEnum(BiddingStrategyErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyErrorEnum Clone() { - return new BiddingStrategyErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingStrategyErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingStrategyErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingStrategyErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BiddingStrategyErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible bidding strategy errors. - /// - public enum BiddingStrategyError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Each bidding strategy must have a unique name. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 2, - /// - /// Bidding strategy type is immutable. - /// - [pbr::OriginalName("CANNOT_CHANGE_BIDDING_STRATEGY_TYPE")] CannotChangeBiddingStrategyType = 3, - /// - /// Only bidding strategies not linked to campaigns, adgroups or adgroup - /// criteria can be removed. - /// - [pbr::OriginalName("CANNOT_REMOVE_ASSOCIATED_STRATEGY")] CannotRemoveAssociatedStrategy = 4, - /// - /// The specified bidding strategy is not supported. - /// - [pbr::OriginalName("BIDDING_STRATEGY_NOT_SUPPORTED")] BiddingStrategyNotSupported = 5, - /// - /// The bidding strategy is incompatible with the campaign's bidding - /// strategy goal type. - /// - [pbr::OriginalName("INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE")] IncompatibleBiddingStrategyAndBiddingStrategyGoalType = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyResourceNames.g.cs deleted file mode 100755 index 3a11de42f..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyResourceNames.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the BiddingStrategy resource. - public sealed partial class BiddingStrategyName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/biddingStrategies/{bidding_strategy_id}. - /// - CustomerBiddingStrategy = 1, - } - - private static gax::PathTemplate s_customerBiddingStrategy = new gax::PathTemplate("customers/{customer_id}/biddingStrategies/{bidding_strategy_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static BiddingStrategyName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new BiddingStrategyName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static BiddingStrategyName FromCustomerBiddingStrategy(string customerId, string biddingStrategyId) => - new BiddingStrategyName(ResourceNameType.CustomerBiddingStrategy, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), biddingStrategyId: gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id}. - /// - public static string Format(string customerId, string biddingStrategyId) => - FormatCustomerBiddingStrategy(customerId, biddingStrategyId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id}. - /// - public static string FormatCustomerBiddingStrategy(string customerId, string biddingStrategyId) => - s_customerBiddingStrategy.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static BiddingStrategyName Parse(string biddingStrategyName) => Parse(biddingStrategyName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static BiddingStrategyName Parse(string biddingStrategyName, bool allowUnparsed) => - TryParse(biddingStrategyName, allowUnparsed, out BiddingStrategyName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingStrategyName, out BiddingStrategyName result) => - TryParse(biddingStrategyName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingStrategyName, bool allowUnparsed, out BiddingStrategyName result) - { - gax::GaxPreconditions.CheckNotNull(biddingStrategyName, nameof(biddingStrategyName)); - gax::TemplatedResourceName resourceName; - if (s_customerBiddingStrategy.TryParseName(biddingStrategyName, out resourceName)) - { - result = FromCustomerBiddingStrategy(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(biddingStrategyName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private BiddingStrategyName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string biddingStrategyId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - BiddingStrategyId = biddingStrategyId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/biddingStrategies/{bidding_strategy_id} - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - public BiddingStrategyName(string customerId, string biddingStrategyId) : this(ResourceNameType.CustomerBiddingStrategy, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), biddingStrategyId: gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The BiddingStrategy ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string BiddingStrategyId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerBiddingStrategy: return s_customerBiddingStrategy.Expand(CustomerId, BiddingStrategyId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as BiddingStrategyName); - - /// - public bool Equals(BiddingStrategyName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(BiddingStrategyName a, BiddingStrategyName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(BiddingStrategyName a, BiddingStrategyName b) => !(a == b); - } - - public partial class BiddingStrategy - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::BiddingStrategyName ResourceNameAsBiddingStrategyName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BiddingStrategyName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::BiddingStrategyName BiddingStrategyName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::BiddingStrategyName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyService.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyService.g.cs deleted file mode 100755 index a15a953b7..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyService.g.cs +++ /dev/null @@ -1,1310 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/bidding_strategy_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/bidding_strategy_service.proto - public static partial class BiddingStrategyServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/bidding_strategy_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingStrategyServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYmlkZGluZ19z", - "dHJhdGVneV9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9y", - "ZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9yZXNvdXJjZXMvYmlkZGluZ19zdHJhdGVneS5wcm90bxocZ29v", - "Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQu", - "cHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9t", - "YXNrLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKsAgoeTXV0YXRl", - "QmlkZGluZ1N0cmF0ZWdpZXNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJ", - "QgPgQQISVAoKb3BlcmF0aW9ucxgCIAMoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5CaWRkaW5nU3RyYXRlZ3lPcGVyYXRpb25CA+BB", - "AhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgE", - "IAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVu", - "dW0uUmVzcG9uc2VDb250ZW50VHlwZSKnAgoYQmlkZGluZ1N0cmF0ZWd5T3Bl", - "cmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQgASgLMhouZ29vZ2xlLnByb3RvYnVm", - "LkZpZWxkTWFzaxJFCgZjcmVhdGUYASABKAsyMy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzLkJpZGRpbmdTdHJhdGVneUgAEkUKBnVwZGF0", - "ZRgCIAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "QmlkZGluZ1N0cmF0ZWd5SAASPwoGcmVtb3ZlGAMgASgJQi36QSoKKGdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9CaWRkaW5nU3RyYXRlZ3lIAEILCglvcGVy", - "YXRpb24ipQEKH011dGF0ZUJpZGRpbmdTdHJhdGVnaWVzUmVzcG9uc2USMQoV", - "cGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0", - "dXMSTwoHcmVzdWx0cxgCIAMoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVCaWRkaW5nU3RyYXRlZ3lSZXN1bHQisgEKG011", - "dGF0ZUJpZGRpbmdTdHJhdGVneVJlc3VsdBJECg1yZXNvdXJjZV9uYW1lGAEg", - "ASgJQi36QSoKKGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9CaWRkaW5nU3Ry", - "YXRlZ3kSTQoQYmlkZGluZ19zdHJhdGVneRgCIAEoCzIzLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQmlkZGluZ1N0cmF0ZWd5Mt8CChZC", - "aWRkaW5nU3RyYXRlZ3lTZXJ2aWNlEv0BChdNdXRhdGVCaWRkaW5nU3RyYXRl", - "Z2llcxJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRh", - "dGVCaWRkaW5nU3RyYXRlZ2llc1JlcXVlc3QaQi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQmlkZGluZ1N0cmF0ZWdpZXNSZXNw", - "b25zZSJbgtPkkwI8IjcvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0v", - "YmlkZGluZ1N0cmF0ZWdpZXM6bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3Bl", - "cmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6", - "Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQocCCiVjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQhtCaWRkaW5nU3RyYXRl", - "Z3lTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNl", - "c6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oC", - "IUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategyReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation), global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesResponse), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult), global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult.Parser, new[]{ "ResourceName", "BiddingStrategy" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [BiddingStrategyService.MutateBiddingStrategies][google.ads.googleads.v12.services.BiddingStrategyService.MutateBiddingStrategies]. - /// - public sealed partial class MutateBiddingStrategiesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingStrategiesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategiesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategiesRequest(MutateBiddingStrategiesRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategiesRequest Clone() { - return new MutateBiddingStrategiesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose bidding strategies are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual bidding strategies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingStrategiesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingStrategiesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingStrategiesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a bidding strategy. - /// - public sealed partial class BiddingStrategyOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingStrategyOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyOperation(BiddingStrategyOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyOperation Clone() { - return new BiddingStrategyOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new bidding - /// strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The bidding strategy is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed bidding strategy is - /// expected, in this format: - /// - /// `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingStrategyOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingStrategyOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingStrategyOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for bidding strategy mutate. - /// - public sealed partial class MutateBiddingStrategiesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingStrategiesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategiesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategiesResponse(MutateBiddingStrategiesResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategiesResponse Clone() { - return new MutateBiddingStrategiesResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingStrategiesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingStrategiesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingStrategiesResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the bidding strategy mutate. - /// - public sealed partial class MutateBiddingStrategyResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBiddingStrategyResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategyResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategyResult(MutateBiddingStrategyResult other) : this() { - resourceName_ = other.resourceName_; - biddingStrategy_ = other.biddingStrategy_ != null ? other.biddingStrategy_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBiddingStrategyResult Clone() { - return new MutateBiddingStrategyResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "bidding_strategy" field. - public const int BiddingStrategyFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy biddingStrategy_; - /// - /// The mutated bidding strategy with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy BiddingStrategy { - get { return biddingStrategy_; } - set { - biddingStrategy_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBiddingStrategyResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBiddingStrategyResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(BiddingStrategy, other.BiddingStrategy)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (biddingStrategy_ != null) hash ^= BiddingStrategy.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (biddingStrategy_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BiddingStrategy); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (biddingStrategy_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BiddingStrategy); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (biddingStrategy_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BiddingStrategy); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBiddingStrategyResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.biddingStrategy_ != null) { - if (biddingStrategy_ == null) { - BiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - BiddingStrategy.MergeFrom(other.BiddingStrategy); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (biddingStrategy_ == null) { - BiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - input.ReadMessage(BiddingStrategy); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (biddingStrategy_ == null) { - BiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - input.ReadMessage(BiddingStrategy); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceClient.g.cs deleted file mode 100755 index f43cccb1b..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceClient.g.cs +++ /dev/null @@ -1,598 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class BiddingStrategyServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static BiddingStrategyServiceSettings GetDefault() => new BiddingStrategyServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public BiddingStrategyServiceSettings() - { - } - - private BiddingStrategyServiceSettings(BiddingStrategyServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateBiddingStrategiesSettings = existing.MutateBiddingStrategiesSettings; - OnCopy(existing); - } - - partial void OnCopy(BiddingStrategyServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// BiddingStrategyServiceClient.MutateBiddingStrategies and - /// BiddingStrategyServiceClient.MutateBiddingStrategiesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateBiddingStrategiesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public BiddingStrategyServiceSettings Clone() => new BiddingStrategyServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class BiddingStrategyServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public BiddingStrategyServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public BiddingStrategyServiceClientBuilder() : base(BiddingStrategyServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref BiddingStrategyServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override BiddingStrategyServiceClient Build() - { - BiddingStrategyServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private BiddingStrategyServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return BiddingStrategyServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return BiddingStrategyServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => BiddingStrategyServiceClient.ChannelPool; - } - - /// BiddingStrategyService client wrapper, for convenient use. - /// - /// Service to manage bidding strategies. - /// - public abstract partial class BiddingStrategyServiceClient - { - /// - /// The default endpoint for the BiddingStrategyService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default BiddingStrategyService scopes. - /// - /// The default BiddingStrategyService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(BiddingStrategyService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new BiddingStrategyServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static BiddingStrategyServiceClient Create() => new BiddingStrategyServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static BiddingStrategyServiceClient Create(grpccore::CallInvoker callInvoker, BiddingStrategyServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - BiddingStrategyService.BiddingStrategyServiceClient grpcClient = new BiddingStrategyService.BiddingStrategyServiceClient(callInvoker); - return new BiddingStrategyServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC BiddingStrategyService client - public virtual BiddingStrategyService.BiddingStrategyServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBiddingStrategiesResponse MutateBiddingStrategies(MutateBiddingStrategiesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingStrategiesAsync(MutateBiddingStrategiesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingStrategiesAsync(MutateBiddingStrategiesRequest request, st::CancellationToken cancellationToken) => - MutateBiddingStrategiesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose bidding strategies are being modified. - /// - /// - /// Required. The list of operations to perform on individual bidding strategies. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBiddingStrategiesResponse MutateBiddingStrategies(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateBiddingStrategies(new MutateBiddingStrategiesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose bidding strategies are being modified. - /// - /// - /// Required. The list of operations to perform on individual bidding strategies. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingStrategiesAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateBiddingStrategiesAsync(new MutateBiddingStrategiesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose bidding strategies are being modified. - /// - /// - /// Required. The list of operations to perform on individual bidding strategies. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBiddingStrategiesAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateBiddingStrategiesAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// BiddingStrategyService client wrapper implementation, for convenient use. - /// - /// Service to manage bidding strategies. - /// - public sealed partial class BiddingStrategyServiceClientImpl : BiddingStrategyServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateBiddingStrategies; - - /// - /// Constructs a client wrapper for the BiddingStrategyService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public BiddingStrategyServiceClientImpl(BiddingStrategyService.BiddingStrategyServiceClient grpcClient, BiddingStrategyServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - BiddingStrategyServiceSettings effectiveSettings = settings ?? BiddingStrategyServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateBiddingStrategies = clientHelper.BuildApiCall("MutateBiddingStrategies", grpcClient.MutateBiddingStrategiesAsync, grpcClient.MutateBiddingStrategies, effectiveSettings.MutateBiddingStrategiesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateBiddingStrategies); - Modify_MutateBiddingStrategiesApiCall(ref _callMutateBiddingStrategies); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateBiddingStrategiesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(BiddingStrategyService.BiddingStrategyServiceClient grpcClient, BiddingStrategyServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC BiddingStrategyService client - public override BiddingStrategyService.BiddingStrategyServiceClient GrpcClient { get; } - - partial void Modify_MutateBiddingStrategiesRequest(ref MutateBiddingStrategiesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateBiddingStrategiesResponse MutateBiddingStrategies(MutateBiddingStrategiesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBiddingStrategiesRequest(ref request, ref callSettings); - return _callMutateBiddingStrategies.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateBiddingStrategiesAsync(MutateBiddingStrategiesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBiddingStrategiesRequest(ref request, ref callSettings); - return _callMutateBiddingStrategies.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceGrpc.g.cs deleted file mode 100755 index ac63611a6..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceGrpc.g.cs +++ /dev/null @@ -1,352 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/bidding_strategy_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage bidding strategies. - /// - public static partial class BiddingStrategyService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.BiddingStrategyService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBiddingStrategiesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBiddingStrategiesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateBiddingStrategies = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateBiddingStrategies", - __Marshaller_google_ads_googleads_v12_services_MutateBiddingStrategiesRequest, - __Marshaller_google_ads_googleads_v12_services_MutateBiddingStrategiesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of BiddingStrategyService - [grpc::BindServiceMethod(typeof(BiddingStrategyService), "BindService")] - public abstract partial class BiddingStrategyServiceBase - { - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateBiddingStrategies(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for BiddingStrategyService - public partial class BiddingStrategyServiceClient : grpc::ClientBase - { - /// Creates a new client for BiddingStrategyService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BiddingStrategyServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for BiddingStrategyService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BiddingStrategyServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BiddingStrategyServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BiddingStrategyServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesResponse MutateBiddingStrategies(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBiddingStrategies(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesResponse MutateBiddingStrategies(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateBiddingStrategies, null, options, request); - } - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBiddingStrategiesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBiddingStrategiesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes bidding strategies. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBiddingStrategiesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategiesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateBiddingStrategies, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override BiddingStrategyServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new BiddingStrategyServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(BiddingStrategyServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateBiddingStrategies, serviceImpl.MutateBiddingStrategies).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, BiddingStrategyServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateBiddingStrategies, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateBiddingStrategies)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceResourceNames.g.cs deleted file mode 100755 index 1f70ef3d1..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class BiddingStrategyOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BiddingStrategyName RemoveAsBiddingStrategyName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::BiddingStrategyName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateBiddingStrategyResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::BiddingStrategyName ResourceNameAsBiddingStrategyName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BiddingStrategyName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategySimulation.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategySimulation.g.cs deleted file mode 100755 index 3bd874bae..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategySimulation.g.cs +++ /dev/null @@ -1,614 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/bidding_strategy_simulation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/bidding_strategy_simulation.proto - public static partial class BiddingStrategySimulationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/bidding_strategy_simulation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingStrategySimulationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2JpZGRpbmdf", - "c3RyYXRlZ3lfc2ltdWxhdGlvbi5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcxowZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Nv", - "bW1vbi9zaW11bGF0aW9uLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXMvc2ltdWxhdGlvbl9tb2RpZmljYXRpb25fbWV0aG9kLnByb3Rv", - "GjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvc2ltdWxhdGlvbl90", - "eXBlLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvIqsGChlCaWRkaW5nU3RyYXRlZ3lT", - "aW11bGF0aW9uElEKDXJlc291cmNlX25hbWUYASABKAlCOuBBA/pBNAoyZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0JpZGRpbmdTdHJhdGVneVNpbXVsYXRp", - "b24SIAoTYmlkZGluZ19zdHJhdGVneV9pZBgCIAEoA0ID4EEDElQKBHR5cGUY", - "AyABKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuU2ltdWxh", - "dGlvblR5cGVFbnVtLlNpbXVsYXRpb25UeXBlQgPgQQMSfwoTbW9kaWZpY2F0", - "aW9uX21ldGhvZBgEIAEoDjJdLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5TaW11bGF0aW9uTW9kaWZpY2F0aW9uTWV0aG9kRW51bS5TaW11bGF0", - "aW9uTW9kaWZpY2F0aW9uTWV0aG9kQgPgQQMSFwoKc3RhcnRfZGF0ZRgFIAEo", - "CUID4EEDEhUKCGVuZF9kYXRlGAYgASgJQgPgQQMSYwoVdGFyZ2V0X2NwYV9w", - "b2ludF9saXN0GAcgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5UYXJnZXRDcGFTaW11bGF0aW9uUG9pbnRMaXN0QgPgQQNIABJlChZ0", - "YXJnZXRfcm9hc19wb2ludF9saXN0GAggASgLMj4uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5UYXJnZXRSb2FzU2ltdWxhdGlvblBvaW50TGlz", - "dEID4EEDSAA6twHqQbMBCjJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQmlk", - "ZGluZ1N0cmF0ZWd5U2ltdWxhdGlvbhJ9Y3VzdG9tZXJzL3tjdXN0b21lcl9p", - "ZH0vYmlkZGluZ1N0cmF0ZWd5U2ltdWxhdGlvbnMve2JpZGRpbmdfc3RyYXRl", - "Z3lfaWR9fnt0eXBlfX57bW9kaWZpY2F0aW9uX21ldGhvZH1+e3N0YXJ0X2Rh", - "dGV9fntlbmRfZGF0ZX1CDAoKcG9pbnRfbGlzdEKQAgomY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCHkJpZGRpbmdTdHJhdGVneVNp", - "bXVsYXRpb25Qcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJj", - "ZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2Vz", - "ygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.SimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulation), global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulation.Parser, new[]{ "ResourceName", "BiddingStrategyId", "Type", "ModificationMethod", "StartDate", "EndDate", "TargetCpaPointList", "TargetRoasPointList" }, new[]{ "PointList" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A bidding strategy simulation. Supported combinations of simulation type - /// and simulation modification method are detailed below respectively. - /// - /// 1. TARGET_CPA - UNIFORM - /// 2. TARGET_ROAS - UNIFORM - /// - public sealed partial class BiddingStrategySimulation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingStrategySimulation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategySimulation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategySimulation(BiddingStrategySimulation other) : this() { - resourceName_ = other.resourceName_; - biddingStrategyId_ = other.biddingStrategyId_; - type_ = other.type_; - modificationMethod_ = other.modificationMethod_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - switch (other.PointListCase) { - case PointListOneofCase.TargetCpaPointList: - TargetCpaPointList = other.TargetCpaPointList.Clone(); - break; - case PointListOneofCase.TargetRoasPointList: - TargetRoasPointList = other.TargetRoasPointList.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategySimulation Clone() { - return new BiddingStrategySimulation(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the bidding strategy simulation. - /// Bidding strategy simulation resource names have the form: - /// - /// `customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "bidding_strategy_id" field. - public const int BiddingStrategyIdFieldNumber = 2; - private long biddingStrategyId_; - /// - /// Output only. Bidding strategy shared set id of the simulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long BiddingStrategyId { - get { return biddingStrategyId_; } - set { - biddingStrategyId_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType type_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified; - /// - /// Output only. The field that the simulation modifies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "modification_method" field. - public const int ModificationMethodFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod modificationMethod_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified; - /// - /// Output only. How the simulation modifies the field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod ModificationMethod { - get { return modificationMethod_; } - set { - modificationMethod_ = value; - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 5; - private string startDate_ = ""; - /// - /// Output only. First day on which the simulation is based, in YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 6; - private string endDate_ = ""; - /// - /// Output only. Last day on which the simulation is based, in YYYY-MM-DD format - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "target_cpa_point_list" field. - public const int TargetCpaPointListFieldNumber = 7; - /// - /// Output only. Simulation points if the simulation type is TARGET_CPA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList TargetCpaPointList { - get { return pointListCase_ == PointListOneofCase.TargetCpaPointList ? (global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.TargetCpaPointList; - } - } - - /// Field number for the "target_roas_point_list" field. - public const int TargetRoasPointListFieldNumber = 8; - /// - /// Output only. Simulation points if the simulation type is TARGET_ROAS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList TargetRoasPointList { - get { return pointListCase_ == PointListOneofCase.TargetRoasPointList ? (global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.TargetRoasPointList; - } - } - - private object pointList_; - /// Enum of possible cases for the "point_list" oneof. - public enum PointListOneofCase { - None = 0, - TargetCpaPointList = 7, - TargetRoasPointList = 8, - } - private PointListOneofCase pointListCase_ = PointListOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PointListOneofCase PointListCase { - get { return pointListCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPointList() { - pointListCase_ = PointListOneofCase.None; - pointList_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingStrategySimulation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingStrategySimulation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (BiddingStrategyId != other.BiddingStrategyId) return false; - if (Type != other.Type) return false; - if (ModificationMethod != other.ModificationMethod) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if (!object.Equals(TargetCpaPointList, other.TargetCpaPointList)) return false; - if (!object.Equals(TargetRoasPointList, other.TargetRoasPointList)) return false; - if (PointListCase != other.PointListCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (BiddingStrategyId != 0L) hash ^= BiddingStrategyId.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) hash ^= Type.GetHashCode(); - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) hash ^= ModificationMethod.GetHashCode(); - if (StartDate.Length != 0) hash ^= StartDate.GetHashCode(); - if (EndDate.Length != 0) hash ^= EndDate.GetHashCode(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) hash ^= TargetCpaPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) hash ^= TargetRoasPointList.GetHashCode(); - hash ^= (int) pointListCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (BiddingStrategyId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(BiddingStrategyId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ModificationMethod); - } - if (StartDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDate); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - output.WriteRawTag(58); - output.WriteMessage(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - output.WriteRawTag(66); - output.WriteMessage(TargetRoasPointList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (BiddingStrategyId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(BiddingStrategyId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ModificationMethod); - } - if (StartDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDate); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - output.WriteRawTag(58); - output.WriteMessage(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - output.WriteRawTag(66); - output.WriteMessage(TargetRoasPointList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (BiddingStrategyId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(BiddingStrategyId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod); - } - if (StartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (EndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoasPointList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingStrategySimulation other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.BiddingStrategyId != 0L) { - BiddingStrategyId = other.BiddingStrategyId; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - Type = other.Type; - } - if (other.ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - ModificationMethod = other.ModificationMethod; - } - if (other.StartDate.Length != 0) { - StartDate = other.StartDate; - } - if (other.EndDate.Length != 0) { - EndDate = other.EndDate; - } - switch (other.PointListCase) { - case PointListOneofCase.TargetCpaPointList: - if (TargetCpaPointList == null) { - TargetCpaPointList = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - } - TargetCpaPointList.MergeFrom(other.TargetCpaPointList); - break; - case PointListOneofCase.TargetRoasPointList: - if (TargetRoasPointList == null) { - TargetRoasPointList = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - } - TargetRoasPointList.MergeFrom(other.TargetRoasPointList); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - BiddingStrategyId = input.ReadInt64(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 32: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 42: { - StartDate = input.ReadString(); - break; - } - case 50: { - EndDate = input.ReadString(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - subBuilder.MergeFrom(TargetCpaPointList); - } - input.ReadMessage(subBuilder); - TargetCpaPointList = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - subBuilder.MergeFrom(TargetRoasPointList); - } - input.ReadMessage(subBuilder); - TargetRoasPointList = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - BiddingStrategyId = input.ReadInt64(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 32: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 42: { - StartDate = input.ReadString(); - break; - } - case 50: { - EndDate = input.ReadString(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - subBuilder.MergeFrom(TargetCpaPointList); - } - input.ReadMessage(subBuilder); - TargetCpaPointList = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - subBuilder.MergeFrom(TargetRoasPointList); - } - input.ReadMessage(subBuilder); - TargetRoasPointList = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategySimulationResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategySimulationResourceNames.g.cs deleted file mode 100755 index c5bd4e2a5..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategySimulationResourceNames.g.cs +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the BiddingStrategySimulation resource. - public sealed partial class BiddingStrategySimulationName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - CustomerBiddingStrategyTypeModificationMethodStartDateEndDate = 1, - } - - private static gax::PathTemplate s_customerBiddingStrategyTypeModificationMethodStartDateEndDate = new gax::PathTemplate("customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id_type_modification_method_start_date_end_date}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static BiddingStrategySimulationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new BiddingStrategySimulationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static BiddingStrategySimulationName FromCustomerBiddingStrategyTypeModificationMethodStartDateEndDate(string customerId, string biddingStrategyId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - new BiddingStrategySimulationName(ResourceNameType.CustomerBiddingStrategyTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), biddingStrategyId: gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string Format(string customerId, string biddingStrategyId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - FormatCustomerBiddingStrategyTypeModificationMethodStartDateEndDate(customerId, biddingStrategyId, typeId, modificationMethodId, startDateId, endDateId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string FormatCustomerBiddingStrategyTypeModificationMethodStartDateEndDate(string customerId, string biddingStrategyId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - s_customerBiddingStrategyTypeModificationMethodStartDateEndDate.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static BiddingStrategySimulationName Parse(string biddingStrategySimulationName) => - Parse(biddingStrategySimulationName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static BiddingStrategySimulationName Parse(string biddingStrategySimulationName, bool allowUnparsed) => - TryParse(biddingStrategySimulationName, allowUnparsed, out BiddingStrategySimulationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingStrategySimulationName, out BiddingStrategySimulationName result) => - TryParse(biddingStrategySimulationName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string biddingStrategySimulationName, bool allowUnparsed, out BiddingStrategySimulationName result) - { - gax::GaxPreconditions.CheckNotNull(biddingStrategySimulationName, nameof(biddingStrategySimulationName)); - gax::TemplatedResourceName resourceName; - if (s_customerBiddingStrategyTypeModificationMethodStartDateEndDate.TryParseName(biddingStrategySimulationName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerBiddingStrategyTypeModificationMethodStartDateEndDate(resourceName[0], split1[0], split1[1], split1[2], split1[3], split1[4]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(biddingStrategySimulationName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private BiddingStrategySimulationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string biddingStrategyId = null, string customerId = null, string endDateId = null, string modificationMethodId = null, string startDateId = null, string typeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - BiddingStrategyId = biddingStrategyId; - CustomerId = customerId; - EndDateId = endDateId; - ModificationMethodId = modificationMethodId; - StartDateId = startDateId; - TypeId = typeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern - /// - /// customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// The Customer ID. Must not be null or empty. - /// The BiddingStrategy ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - public BiddingStrategySimulationName(string customerId, string biddingStrategyId, string typeId, string modificationMethodId, string startDateId, string endDateId) : this(ResourceNameType.CustomerBiddingStrategyTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), biddingStrategyId: gax::GaxPreconditions.CheckNotNullOrEmpty(biddingStrategyId, nameof(biddingStrategyId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The BiddingStrategy ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string BiddingStrategyId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The EndDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string EndDateId { get; } - - /// - /// The ModificationMethod ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ModificationMethodId { get; } - - /// - /// The StartDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string StartDateId { get; } - - /// - /// The Type ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerBiddingStrategyTypeModificationMethodStartDateEndDate: return s_customerBiddingStrategyTypeModificationMethodStartDateEndDate.Expand(CustomerId, $"{BiddingStrategyId}~{TypeId}~{ModificationMethodId}~{StartDateId}~{EndDateId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as BiddingStrategySimulationName); - - /// - public bool Equals(BiddingStrategySimulationName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(BiddingStrategySimulationName a, BiddingStrategySimulationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(BiddingStrategySimulationName a, BiddingStrategySimulationName b) => !(a == b); - } - - public partial class BiddingStrategySimulation - { - /// - /// -typed view over the resource name - /// property. - /// - internal BiddingStrategySimulationName ResourceNameAsBiddingStrategySimulationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : BiddingStrategySimulationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyStatus.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyStatus.g.cs deleted file mode 100755 index 0d334d144..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyStatus.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/bidding_strategy_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/bidding_strategy_status.proto - public static partial class BiddingStrategyStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/bidding_strategy_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingStrategyStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmlkZGluZ19zdHJh", - "dGVneV9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJsChlCaWRkaW5nU3RyYXRlZ3lTdGF0dXNFbnVtIk8KFUJpZGRpbmdT", - "dHJhdGVneVN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIL", - "CgdFTkFCTEVEEAISCwoHUkVNT1ZFRBAEQvQBCiJjb20uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zQhpCaWRkaW5nU3RyYXRlZ3lTdGF0dXNQcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing BiddingStrategy statuses. - /// - public sealed partial class BiddingStrategyStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingStrategyStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyStatusEnum(BiddingStrategyStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyStatusEnum Clone() { - return new BiddingStrategyStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingStrategyStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingStrategyStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingStrategyStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BiddingStrategyStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of a BiddingStrategy. - /// - public enum BiddingStrategyStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The bidding strategy is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The bidding strategy is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategySystemStatus.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategySystemStatus.g.cs deleted file mode 100755 index 2aa7f58bd..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategySystemStatus.g.cs +++ /dev/null @@ -1,366 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/bidding_strategy_system_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/bidding_strategy_system_status.proto - public static partial class BiddingStrategySystemStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/bidding_strategy_system_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingStrategySystemStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmlkZGluZ19zdHJh", - "dGVneV9zeXN0ZW1fc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMijQYKH0JpZGRpbmdTdHJhdGVneVN5c3RlbVN0YXR1c0Vu", - "dW0i6QUKG0JpZGRpbmdTdHJhdGVneVN5c3RlbVN0YXR1cxIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISEAoMTEVBUk5JTkdf", - "TkVXEAMSGwoXTEVBUk5JTkdfU0VUVElOR19DSEFOR0UQBBIaChZMRUFSTklO", - "R19CVURHRVRfQ0hBTkdFEAUSHwobTEVBUk5JTkdfQ09NUE9TSVRJT05fQ0hB", - "TkdFEAYSIwofTEVBUk5JTkdfQ09OVkVSU0lPTl9UWVBFX0NIQU5HRRAHEiYK", - "IkxFQVJOSU5HX0NPTlZFUlNJT05fU0VUVElOR19DSEFOR0UQCBIeChpMSU1J", - "VEVEX0JZX0NQQ19CSURfQ0VJTElORxAJEhwKGExJTUlURURfQllfQ1BDX0JJ", - "RF9GTE9PUhAKEhMKD0xJTUlURURfQllfREFUQRALEhUKEUxJTUlURURfQllf", - "QlVER0VUEAwSIQodTElNSVRFRF9CWV9MT1dfUFJJT1JJVFlfU1BFTkQQDRIa", - "ChZMSU1JVEVEX0JZX0xPV19RVUFMSVRZEA4SGAoUTElNSVRFRF9CWV9JTlZF", - "TlRPUlkQDxIiCh5NSVNDT05GSUdVUkVEX1pFUk9fRUxJR0lCSUxJVFkQEBIi", - "Ch5NSVNDT05GSUdVUkVEX0NPTlZFUlNJT05fVFlQRVMQERIlCiFNSVNDT05G", - "SUdVUkVEX0NPTlZFUlNJT05fU0VUVElOR1MQEhIfChtNSVNDT05GSUdVUkVE", - "X1NIQVJFRF9CVURHRVQQExIfChtNSVNDT05GSUdVUkVEX1NUUkFURUdZX1RZ", - "UEUQFBIKCgZQQVVTRUQQFRIPCgtVTkFWQUlMQUJMRRAWEhUKEU1VTFRJUExF", - "X0xFQVJOSU5HEBcSFAoQTVVMVElQTEVfTElNSVRFRBAYEhoKFk1VTFRJUExF", - "X01JU0NPTkZJR1VSRUQQGRIMCghNVUxUSVBMRRAaQvoBCiJjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zQiBCaWRkaW5nU3RyYXRlZ3lTeXN0", - "ZW1TdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FB", - "qgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing BiddingStrategy system statuses. - /// - public sealed partial class BiddingStrategySystemStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingStrategySystemStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategySystemStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategySystemStatusEnum(BiddingStrategySystemStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategySystemStatusEnum Clone() { - return new BiddingStrategySystemStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingStrategySystemStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingStrategySystemStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingStrategySystemStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BiddingStrategySystemStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible system statuses of a BiddingStrategy. - /// - public enum BiddingStrategySystemStatus { - /// - /// Signals that an unexpected error occurred, for example, no bidding - /// strategy type was found, or no status information was found. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The bid strategy is active, and AdWords cannot find any specific issues - /// with the strategy. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The bid strategy is learning because it has been recently created or - /// recently reactivated. - /// - [pbr::OriginalName("LEARNING_NEW")] LearningNew = 3, - /// - /// The bid strategy is learning because of a recent setting change. - /// - [pbr::OriginalName("LEARNING_SETTING_CHANGE")] LearningSettingChange = 4, - /// - /// The bid strategy is learning because of a recent budget change. - /// - [pbr::OriginalName("LEARNING_BUDGET_CHANGE")] LearningBudgetChange = 5, - /// - /// The bid strategy is learning because of recent change in number of - /// campaigns, ad groups or keywords attached to it. - /// - [pbr::OriginalName("LEARNING_COMPOSITION_CHANGE")] LearningCompositionChange = 6, - /// - /// The bid strategy depends on conversion reporting and the customer - /// recently modified conversion types that were relevant to the - /// bid strategy. - /// - [pbr::OriginalName("LEARNING_CONVERSION_TYPE_CHANGE")] LearningConversionTypeChange = 7, - /// - /// The bid strategy depends on conversion reporting and the customer - /// recently changed their conversion settings. - /// - [pbr::OriginalName("LEARNING_CONVERSION_SETTING_CHANGE")] LearningConversionSettingChange = 8, - /// - /// The bid strategy is limited by its bid ceiling. - /// - [pbr::OriginalName("LIMITED_BY_CPC_BID_CEILING")] LimitedByCpcBidCeiling = 9, - /// - /// The bid strategy is limited by its bid floor. - /// - [pbr::OriginalName("LIMITED_BY_CPC_BID_FLOOR")] LimitedByCpcBidFloor = 10, - /// - /// The bid strategy is limited because there was not enough conversion - /// traffic over the past weeks. - /// - [pbr::OriginalName("LIMITED_BY_DATA")] LimitedByData = 11, - /// - /// A significant fraction of keywords in this bid strategy are limited by - /// budget. - /// - [pbr::OriginalName("LIMITED_BY_BUDGET")] LimitedByBudget = 12, - /// - /// The bid strategy cannot reach its target spend because its spend has - /// been de-prioritized. - /// - [pbr::OriginalName("LIMITED_BY_LOW_PRIORITY_SPEND")] LimitedByLowPrioritySpend = 13, - /// - /// A significant fraction of keywords in this bid strategy have a low - /// Quality Score. - /// - [pbr::OriginalName("LIMITED_BY_LOW_QUALITY")] LimitedByLowQuality = 14, - /// - /// The bid strategy cannot fully spend its budget because of narrow - /// targeting. - /// - [pbr::OriginalName("LIMITED_BY_INVENTORY")] LimitedByInventory = 15, - /// - /// Missing conversion tracking (no pings present) and/or remarketing lists - /// for SSC. - /// - [pbr::OriginalName("MISCONFIGURED_ZERO_ELIGIBILITY")] MisconfiguredZeroEligibility = 16, - /// - /// The bid strategy depends on conversion reporting and the customer is - /// lacking conversion types that might be reported against this strategy. - /// - [pbr::OriginalName("MISCONFIGURED_CONVERSION_TYPES")] MisconfiguredConversionTypes = 17, - /// - /// The bid strategy depends on conversion reporting and the customer's - /// conversion settings are misconfigured. - /// - [pbr::OriginalName("MISCONFIGURED_CONVERSION_SETTINGS")] MisconfiguredConversionSettings = 18, - /// - /// There are campaigns outside the bid strategy that share budgets with - /// campaigns included in the strategy. - /// - [pbr::OriginalName("MISCONFIGURED_SHARED_BUDGET")] MisconfiguredSharedBudget = 19, - /// - /// The campaign has an invalid strategy type and is not serving. - /// - [pbr::OriginalName("MISCONFIGURED_STRATEGY_TYPE")] MisconfiguredStrategyType = 20, - /// - /// The bid strategy is not active. Either there are no active campaigns, - /// ad groups or keywords attached to the bid strategy. Or there are no - /// active budgets connected to the bid strategy. - /// - [pbr::OriginalName("PAUSED")] Paused = 21, - /// - /// This bid strategy currently does not support status reporting. - /// - [pbr::OriginalName("UNAVAILABLE")] Unavailable = 22, - /// - /// There were multiple LEARNING_* system statuses for this bid strategy - /// during the time in question. - /// - [pbr::OriginalName("MULTIPLE_LEARNING")] MultipleLearning = 23, - /// - /// There were multiple LIMITED_* system statuses for this bid strategy - /// during the time in question. - /// - [pbr::OriginalName("MULTIPLE_LIMITED")] MultipleLimited = 24, - /// - /// There were multiple MISCONFIGURED_* system statuses for this bid strategy - /// during the time in question. - /// - [pbr::OriginalName("MULTIPLE_MISCONFIGURED")] MultipleMisconfigured = 25, - /// - /// There were multiple system statuses for this bid strategy during the - /// time in question. - /// - [pbr::OriginalName("MULTIPLE")] Multiple = 26, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BiddingStrategyType.g.cs b/Google.Ads.GoogleAds/src/V12/BiddingStrategyType.g.cs deleted file mode 100755 index 898b9879e..000000000 --- a/Google.Ads.GoogleAds/src/V12/BiddingStrategyType.g.cs +++ /dev/null @@ -1,331 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/bidding_strategy_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/bidding_strategy_type.proto - public static partial class BiddingStrategyTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/bidding_strategy_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BiddingStrategyTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmlkZGluZ19zdHJh", - "dGVneV90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMimQMKF0JpZGRpbmdTdHJhdGVneVR5cGVFbnVtIv0CChNCaWRkaW5nU3Ry", - "YXRlZ3lUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEg4KCkNP", - "TU1JU1NJT04QEBIQCgxFTkhBTkNFRF9DUEMQAhILCgdJTlZBTElEEBESDgoK", - "TUFOVUFMX0NQQRASEg4KCk1BTlVBTF9DUEMQAxIOCgpNQU5VQUxfQ1BNEAQS", - "DgoKTUFOVUFMX0NQVhANEhgKFE1BWElNSVpFX0NPTlZFUlNJT05TEAoSHQoZ", - "TUFYSU1JWkVfQ09OVkVSU0lPTl9WQUxVRRALEhUKEVBBR0VfT05FX1BST01P", - "VEVEEAUSDwoLUEVSQ0VOVF9DUEMQDBIOCgpUQVJHRVRfQ1BBEAYSDgoKVEFS", - "R0VUX0NQTRAOEhsKF1RBUkdFVF9JTVBSRVNTSU9OX1NIQVJFEA8SGAoUVEFS", - "R0VUX09VVFJBTktfU0hBUkUQBxIPCgtUQVJHRVRfUk9BUxAIEhAKDFRBUkdF", - "VF9TUEVORBAJQvIBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zQhhCaWRkaW5nU3RyYXRlZ3lUeXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5F", - "bnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible bidding strategy types. - /// - public sealed partial class BiddingStrategyTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BiddingStrategyTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyTypeEnum(BiddingStrategyTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BiddingStrategyTypeEnum Clone() { - return new BiddingStrategyTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BiddingStrategyTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BiddingStrategyTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BiddingStrategyTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BiddingStrategyTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible bidding strategy types. - /// - public enum BiddingStrategyType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Commission is an automatic bidding strategy in which the advertiser pays - /// a certain portion of the conversion value. - /// - [pbr::OriginalName("COMMISSION")] Commission = 16, - /// - /// Enhanced CPC is a bidding strategy that raises bids for clicks - /// that seem more likely to lead to a conversion and lowers - /// them for clicks where they seem less likely. - /// - [pbr::OriginalName("ENHANCED_CPC")] EnhancedCpc = 2, - /// - /// Used for return value only. Indicates that a campaign does not have a - /// bidding strategy. This prevents the campaign from serving. For example, - /// a campaign may be attached to a manager bidding strategy and the serving - /// account is subsequently unlinked from the manager account. In this case - /// the campaign will automatically be detached from the now inaccessible - /// manager bidding strategy and transition to the INVALID bidding strategy - /// type. - /// - [pbr::OriginalName("INVALID")] Invalid = 17, - /// - /// Manual bidding strategy that allows advertiser to set the bid per - /// advertiser-specified action. - /// - [pbr::OriginalName("MANUAL_CPA")] ManualCpa = 18, - /// - /// Manual click based bidding where user pays per click. - /// - [pbr::OriginalName("MANUAL_CPC")] ManualCpc = 3, - /// - /// Manual impression based bidding - /// where user pays per thousand impressions. - /// - [pbr::OriginalName("MANUAL_CPM")] ManualCpm = 4, - /// - /// A bidding strategy that pays a configurable amount per video view. - /// - [pbr::OriginalName("MANUAL_CPV")] ManualCpv = 13, - /// - /// A bidding strategy that automatically maximizes number of conversions - /// given a daily budget. - /// - [pbr::OriginalName("MAXIMIZE_CONVERSIONS")] MaximizeConversions = 10, - /// - /// An automated bidding strategy that automatically sets bids to maximize - /// revenue while spending your budget. - /// - [pbr::OriginalName("MAXIMIZE_CONVERSION_VALUE")] MaximizeConversionValue = 11, - /// - /// Page-One Promoted bidding scheme, which sets max cpc bids to - /// target impressions on page one or page one promoted slots on google.com. - /// This enum value is deprecated. - /// - [pbr::OriginalName("PAGE_ONE_PROMOTED")] PageOnePromoted = 5, - /// - /// Percent Cpc is bidding strategy where bids are a fraction of the - /// advertised price for some good or service. - /// - [pbr::OriginalName("PERCENT_CPC")] PercentCpc = 12, - /// - /// Target CPA is an automated bid strategy that sets bids - /// to help get as many conversions as possible - /// at the target cost-per-acquisition (CPA) you set. - /// - [pbr::OriginalName("TARGET_CPA")] TargetCpa = 6, - /// - /// Target CPM is an automated bid strategy that sets bids to help get - /// as many impressions as possible at the target cost per one thousand - /// impressions (CPM) you set. - /// - [pbr::OriginalName("TARGET_CPM")] TargetCpm = 14, - /// - /// An automated bidding strategy that sets bids so that a certain percentage - /// of search ads are shown at the top of the first page (or other targeted - /// location). - /// - [pbr::OriginalName("TARGET_IMPRESSION_SHARE")] TargetImpressionShare = 15, - /// - /// Target Outrank Share is an automated bidding strategy that sets bids - /// based on the target fraction of auctions where the advertiser - /// should outrank a specific competitor. - /// This enum value is deprecated. - /// - [pbr::OriginalName("TARGET_OUTRANK_SHARE")] TargetOutrankShare = 7, - /// - /// Target ROAS is an automated bidding strategy - /// that helps you maximize revenue while averaging - /// a specific target Return On Average Spend (ROAS). - /// - [pbr::OriginalName("TARGET_ROAS")] TargetRoas = 8, - /// - /// Target Spend is an automated bid strategy that sets your bids - /// to help get as many clicks as possible within your budget. - /// - [pbr::OriginalName("TARGET_SPEND")] TargetSpend = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetup.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetup.g.cs deleted file mode 100755 index 0ee1d93be..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetup.g.cs +++ /dev/null @@ -1,1153 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/billing_setup.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/billing_setup.proto - public static partial class BillingSetupReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/billing_setup.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BillingSetupReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2JpbGxpbmdf", - "c2V0dXAucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMaOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9iaWxsaW5nX3Nl", - "dHVwX3N0YXR1cy5wcm90bxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL3RpbWVfdHlwZS5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv", - "ci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byL6CAoMQmlsbGlu", - "Z1NldHVwEkQKDXJlc291cmNlX25hbWUYASABKAlCLeBBBfpBJwolZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0JpbGxpbmdTZXR1cBIUCgJpZBgPIAEoA0ID", - "4EEDSAKIAQESXgoGc3RhdHVzGAMgASgOMkkuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLkJpbGxpbmdTZXR1cFN0YXR1c0VudW0uQmlsbGluZ1Nl", - "dHVwU3RhdHVzQgPgQQMSTwoQcGF5bWVudHNfYWNjb3VudBgSIAEoCUIw4EEF", - "+kEqCihnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vUGF5bWVudHNBY2NvdW50", - "SAOIAQESaAoVcGF5bWVudHNfYWNjb3VudF9pbmZvGAwgASgLMkQuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5CaWxsaW5nU2V0dXAuUGF5", - "bWVudHNBY2NvdW50SW5mb0ID4EEFEh4KD3N0YXJ0X2RhdGVfdGltZRgQIAEo", - "CUID4EEFSAASVQoPc3RhcnRfdGltZV90eXBlGAogASgOMjUuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLlRpbWVUeXBlRW51bS5UaW1lVHlwZUID", - "4EEFSAASHAoNZW5kX2RhdGVfdGltZRgRIAEoCUID4EEDSAESUwoNZW5kX3Rp", - "bWVfdHlwZRgOIAEoDjI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5UaW1lVHlwZUVudW0uVGltZVR5cGVCA+BBA0gBGuwCChNQYXltZW50c0Fj", - "Y291bnRJbmZvEiUKE3BheW1lbnRzX2FjY291bnRfaWQYBiABKAlCA+BBA0gA", - "iAEBEicKFXBheW1lbnRzX2FjY291bnRfbmFtZRgHIAEoCUID4EEFSAGIAQES", - "JQoTcGF5bWVudHNfcHJvZmlsZV9pZBgIIAEoCUID4EEFSAKIAQESJwoVcGF5", - "bWVudHNfcHJvZmlsZV9uYW1lGAkgASgJQgPgQQNIA4gBARIvCh1zZWNvbmRh", - "cnlfcGF5bWVudHNfcHJvZmlsZV9pZBgKIAEoCUID4EEDSASIAQFCFgoUX3Bh", - "eW1lbnRzX2FjY291bnRfaWRCGAoWX3BheW1lbnRzX2FjY291bnRfbmFtZUIW", - "ChRfcGF5bWVudHNfcHJvZmlsZV9pZEIYChZfcGF5bWVudHNfcHJvZmlsZV9u", - "YW1lQiAKHl9zZWNvbmRhcnlfcGF5bWVudHNfcHJvZmlsZV9pZDpk6kFhCiVn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQmlsbGluZ1NldHVwEjhjdXN0b21l", - "cnMve2N1c3RvbWVyX2lkfS9iaWxsaW5nU2V0dXBzL3tiaWxsaW5nX3NldHVw", - "X2lkfUIMCgpzdGFydF90aW1lQgoKCGVuZF90aW1lQgUKA19pZEITChFfcGF5", - "bWVudHNfYWNjb3VudEKDAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXNCEUJpbGxpbmdTZXR1cFByb3RvUAFaS2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "UmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNv", - "dXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.TimeTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BillingSetup), global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Parser, new[]{ "ResourceName", "Id", "Status", "PaymentsAccount", "PaymentsAccountInfo", "StartDateTime", "StartTimeType", "EndDateTime", "EndTimeType" }, new[]{ "StartTime", "EndTime", "Id", "PaymentsAccount" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Types.PaymentsAccountInfo), global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Types.PaymentsAccountInfo.Parser, new[]{ "PaymentsAccountId", "PaymentsAccountName", "PaymentsProfileId", "PaymentsProfileName", "SecondaryPaymentsProfileId" }, new[]{ "PaymentsAccountId", "PaymentsAccountName", "PaymentsProfileId", "PaymentsProfileName", "SecondaryPaymentsProfileId" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// A billing setup, which associates a payments account and an advertiser. A - /// billing setup is specific to one advertiser. - /// - public sealed partial class BillingSetup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BillingSetup()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BillingSetupReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetup(BillingSetup other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - status_ = other.status_; - paymentsAccount_ = other.paymentsAccount_; - paymentsAccountInfo_ = other.paymentsAccountInfo_ != null ? other.paymentsAccountInfo_.Clone() : null; - switch (other.StartTimeCase) { - case StartTimeOneofCase.StartDateTime: - StartDateTime = other.StartDateTime; - break; - case StartTimeOneofCase.StartTimeType: - StartTimeType = other.StartTimeType; - break; - } - - switch (other.EndTimeCase) { - case EndTimeOneofCase.EndDateTime: - EndDateTime = other.EndDateTime; - break; - case EndTimeOneofCase.EndTimeType: - EndTimeType = other.EndTimeType; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetup Clone() { - return new BillingSetup(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the billing setup. - /// BillingSetup resource names have the form: - /// - /// `customers/{customer_id}/billingSetups/{billing_setup_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 15; - private long id_; - /// - /// Output only. The ID of the billing setup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified; - /// - /// Output only. The status of the billing setup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "payments_account" field. - public const int PaymentsAccountFieldNumber = 18; - private string paymentsAccount_; - /// - /// Immutable. The resource name of the payments account associated with this billing - /// setup. Payments resource names have the form: - /// - /// `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - /// When setting up billing, this is used to signup with an existing payments - /// account (and then payments_account_info should not be set). - /// When getting a billing setup, this and payments_account_info will be - /// populated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PaymentsAccount { - get { return paymentsAccount_ ?? ""; } - set { - paymentsAccount_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "payments_account" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPaymentsAccount { - get { return paymentsAccount_ != null; } - } - /// Clears the value of the "payments_account" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPaymentsAccount() { - paymentsAccount_ = null; - } - - /// Field number for the "payments_account_info" field. - public const int PaymentsAccountInfoFieldNumber = 12; - private global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Types.PaymentsAccountInfo paymentsAccountInfo_; - /// - /// Immutable. The payments account information associated with this billing setup. - /// When setting up billing, this is used to signup with a new payments account - /// (and then payments_account should not be set). - /// When getting a billing setup, this and payments_account will be - /// populated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Types.PaymentsAccountInfo PaymentsAccountInfo { - get { return paymentsAccountInfo_; } - set { - paymentsAccountInfo_ = value; - } - } - - /// Field number for the "start_date_time" field. - public const int StartDateTimeFieldNumber = 16; - /// - /// Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a - /// future time is allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDateTime { - get { return startTimeCase_ == StartTimeOneofCase.StartDateTime ? (string) startTime_ : ""; } - set { - startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - startTimeCase_ = StartTimeOneofCase.StartDateTime; - } - } - - /// Field number for the "start_time_type" field. - public const int StartTimeTypeFieldNumber = 10; - /// - /// Immutable. The start time as a type. Only NOW is allowed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType StartTimeType { - get { return startTimeCase_ == StartTimeOneofCase.StartTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) startTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - startTime_ = value; - startTimeCase_ = StartTimeOneofCase.StartTimeType; - } - } - - /// Field number for the "end_date_time" field. - public const int EndDateTimeFieldNumber = 17; - /// - /// Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDateTime { - get { return endTimeCase_ == EndTimeOneofCase.EndDateTime ? (string) endTime_ : ""; } - set { - endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - endTimeCase_ = EndTimeOneofCase.EndDateTime; - } - } - - /// Field number for the "end_time_type" field. - public const int EndTimeTypeFieldNumber = 14; - /// - /// Output only. The end time as a type. The only possible value is FOREVER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType EndTimeType { - get { return endTimeCase_ == EndTimeOneofCase.EndTimeType ? (global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType) endTime_ : global::Google.Ads.GoogleAds.V12.Enums.TimeTypeEnum.Types.TimeType.Unspecified; } - set { - endTime_ = value; - endTimeCase_ = EndTimeOneofCase.EndTimeType; - } - } - - private object startTime_; - /// Enum of possible cases for the "start_time" oneof. - public enum StartTimeOneofCase { - None = 0, - StartDateTime = 16, - StartTimeType = 10, - } - private StartTimeOneofCase startTimeCase_ = StartTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StartTimeOneofCase StartTimeCase { - get { return startTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartTime() { - startTimeCase_ = StartTimeOneofCase.None; - startTime_ = null; - } - - private object endTime_; - /// Enum of possible cases for the "end_time" oneof. - public enum EndTimeOneofCase { - None = 0, - EndDateTime = 17, - EndTimeType = 14, - } - private EndTimeOneofCase endTimeCase_ = EndTimeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EndTimeOneofCase EndTimeCase { - get { return endTimeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndTime() { - endTimeCase_ = EndTimeOneofCase.None; - endTime_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BillingSetup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BillingSetup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Status != other.Status) return false; - if (PaymentsAccount != other.PaymentsAccount) return false; - if (!object.Equals(PaymentsAccountInfo, other.PaymentsAccountInfo)) return false; - if (StartDateTime != other.StartDateTime) return false; - if (StartTimeType != other.StartTimeType) return false; - if (EndDateTime != other.EndDateTime) return false; - if (EndTimeType != other.EndTimeType) return false; - if (StartTimeCase != other.StartTimeCase) return false; - if (EndTimeCase != other.EndTimeCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasPaymentsAccount) hash ^= PaymentsAccount.GetHashCode(); - if (paymentsAccountInfo_ != null) hash ^= PaymentsAccountInfo.GetHashCode(); - if (startTimeCase_ == StartTimeOneofCase.StartDateTime) hash ^= StartDateTime.GetHashCode(); - if (startTimeCase_ == StartTimeOneofCase.StartTimeType) hash ^= StartTimeType.GetHashCode(); - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) hash ^= EndDateTime.GetHashCode(); - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) hash ^= EndTimeType.GetHashCode(); - hash ^= (int) startTimeCase_; - hash ^= (int) endTimeCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (startTimeCase_ == StartTimeOneofCase.StartTimeType) { - output.WriteRawTag(80); - output.WriteEnum((int) StartTimeType); - } - if (paymentsAccountInfo_ != null) { - output.WriteRawTag(98); - output.WriteMessage(PaymentsAccountInfo); - } - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) { - output.WriteRawTag(112); - output.WriteEnum((int) EndTimeType); - } - if (HasId) { - output.WriteRawTag(120); - output.WriteInt64(Id); - } - if (startTimeCase_ == StartTimeOneofCase.StartDateTime) { - output.WriteRawTag(130, 1); - output.WriteString(StartDateTime); - } - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) { - output.WriteRawTag(138, 1); - output.WriteString(EndDateTime); - } - if (HasPaymentsAccount) { - output.WriteRawTag(146, 1); - output.WriteString(PaymentsAccount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (startTimeCase_ == StartTimeOneofCase.StartTimeType) { - output.WriteRawTag(80); - output.WriteEnum((int) StartTimeType); - } - if (paymentsAccountInfo_ != null) { - output.WriteRawTag(98); - output.WriteMessage(PaymentsAccountInfo); - } - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) { - output.WriteRawTag(112); - output.WriteEnum((int) EndTimeType); - } - if (HasId) { - output.WriteRawTag(120); - output.WriteInt64(Id); - } - if (startTimeCase_ == StartTimeOneofCase.StartDateTime) { - output.WriteRawTag(130, 1); - output.WriteString(StartDateTime); - } - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) { - output.WriteRawTag(138, 1); - output.WriteString(EndDateTime); - } - if (HasPaymentsAccount) { - output.WriteRawTag(146, 1); - output.WriteString(PaymentsAccount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasPaymentsAccount) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PaymentsAccount); - } - if (paymentsAccountInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PaymentsAccountInfo); - } - if (startTimeCase_ == StartTimeOneofCase.StartDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(StartDateTime); - } - if (startTimeCase_ == StartTimeOneofCase.StartTimeType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StartTimeType); - } - if (endTimeCase_ == EndTimeOneofCase.EndDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(EndDateTime); - } - if (endTimeCase_ == EndTimeOneofCase.EndTimeType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndTimeType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BillingSetup other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus.Unspecified) { - Status = other.Status; - } - if (other.HasPaymentsAccount) { - PaymentsAccount = other.PaymentsAccount; - } - if (other.paymentsAccountInfo_ != null) { - if (paymentsAccountInfo_ == null) { - PaymentsAccountInfo = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Types.PaymentsAccountInfo(); - } - PaymentsAccountInfo.MergeFrom(other.PaymentsAccountInfo); - } - switch (other.StartTimeCase) { - case StartTimeOneofCase.StartDateTime: - StartDateTime = other.StartDateTime; - break; - case StartTimeOneofCase.StartTimeType: - StartTimeType = other.StartTimeType; - break; - } - - switch (other.EndTimeCase) { - case EndTimeOneofCase.EndDateTime: - EndDateTime = other.EndDateTime; - break; - case EndTimeOneofCase.EndTimeType: - EndTimeType = other.EndTimeType; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus) input.ReadEnum(); - break; - } - case 80: { - startTime_ = input.ReadEnum(); - startTimeCase_ = StartTimeOneofCase.StartTimeType; - break; - } - case 98: { - if (paymentsAccountInfo_ == null) { - PaymentsAccountInfo = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Types.PaymentsAccountInfo(); - } - input.ReadMessage(PaymentsAccountInfo); - break; - } - case 112: { - endTime_ = input.ReadEnum(); - endTimeCase_ = EndTimeOneofCase.EndTimeType; - break; - } - case 120: { - Id = input.ReadInt64(); - break; - } - case 130: { - StartDateTime = input.ReadString(); - break; - } - case 138: { - EndDateTime = input.ReadString(); - break; - } - case 146: { - PaymentsAccount = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus) input.ReadEnum(); - break; - } - case 80: { - startTime_ = input.ReadEnum(); - startTimeCase_ = StartTimeOneofCase.StartTimeType; - break; - } - case 98: { - if (paymentsAccountInfo_ == null) { - PaymentsAccountInfo = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Types.PaymentsAccountInfo(); - } - input.ReadMessage(PaymentsAccountInfo); - break; - } - case 112: { - endTime_ = input.ReadEnum(); - endTimeCase_ = EndTimeOneofCase.EndTimeType; - break; - } - case 120: { - Id = input.ReadInt64(); - break; - } - case 130: { - StartDateTime = input.ReadString(); - break; - } - case 138: { - EndDateTime = input.ReadString(); - break; - } - case 146: { - PaymentsAccount = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BillingSetup message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Container of payments account information for this billing. - /// - public sealed partial class PaymentsAccountInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PaymentsAccountInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.BillingSetup.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PaymentsAccountInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PaymentsAccountInfo(PaymentsAccountInfo other) : this() { - paymentsAccountId_ = other.paymentsAccountId_; - paymentsAccountName_ = other.paymentsAccountName_; - paymentsProfileId_ = other.paymentsProfileId_; - paymentsProfileName_ = other.paymentsProfileName_; - secondaryPaymentsProfileId_ = other.secondaryPaymentsProfileId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PaymentsAccountInfo Clone() { - return new PaymentsAccountInfo(this); - } - - /// Field number for the "payments_account_id" field. - public const int PaymentsAccountIdFieldNumber = 6; - private string paymentsAccountId_; - /// - /// Output only. A 16 digit id used to identify the payments account associated with the - /// billing setup. - /// - /// This must be passed as a string with dashes, for example, - /// "1234-5678-9012-3456". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PaymentsAccountId { - get { return paymentsAccountId_ ?? ""; } - set { - paymentsAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "payments_account_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPaymentsAccountId { - get { return paymentsAccountId_ != null; } - } - /// Clears the value of the "payments_account_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPaymentsAccountId() { - paymentsAccountId_ = null; - } - - /// Field number for the "payments_account_name" field. - public const int PaymentsAccountNameFieldNumber = 7; - private string paymentsAccountName_; - /// - /// Immutable. The name of the payments account associated with the billing setup. - /// - /// This enables the user to specify a meaningful name for a payments account - /// to aid in reconciling monthly invoices. - /// - /// This name will be printed in the monthly invoices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PaymentsAccountName { - get { return paymentsAccountName_ ?? ""; } - set { - paymentsAccountName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "payments_account_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPaymentsAccountName { - get { return paymentsAccountName_ != null; } - } - /// Clears the value of the "payments_account_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPaymentsAccountName() { - paymentsAccountName_ = null; - } - - /// Field number for the "payments_profile_id" field. - public const int PaymentsProfileIdFieldNumber = 8; - private string paymentsProfileId_; - /// - /// Immutable. A 12 digit id used to identify the payments profile associated with the - /// billing setup. - /// - /// This must be passed in as a string with dashes, for example, - /// "1234-5678-9012". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PaymentsProfileId { - get { return paymentsProfileId_ ?? ""; } - set { - paymentsProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "payments_profile_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPaymentsProfileId { - get { return paymentsProfileId_ != null; } - } - /// Clears the value of the "payments_profile_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPaymentsProfileId() { - paymentsProfileId_ = null; - } - - /// Field number for the "payments_profile_name" field. - public const int PaymentsProfileNameFieldNumber = 9; - private string paymentsProfileName_; - /// - /// Output only. The name of the payments profile associated with the billing setup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PaymentsProfileName { - get { return paymentsProfileName_ ?? ""; } - set { - paymentsProfileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "payments_profile_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPaymentsProfileName { - get { return paymentsProfileName_ != null; } - } - /// Clears the value of the "payments_profile_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPaymentsProfileName() { - paymentsProfileName_ = null; - } - - /// Field number for the "secondary_payments_profile_id" field. - public const int SecondaryPaymentsProfileIdFieldNumber = 10; - private string secondaryPaymentsProfileId_; - /// - /// Output only. A secondary payments profile id present in uncommon situations, for - /// example, when a sequential liability agreement has been arranged. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SecondaryPaymentsProfileId { - get { return secondaryPaymentsProfileId_ ?? ""; } - set { - secondaryPaymentsProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "secondary_payments_profile_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSecondaryPaymentsProfileId { - get { return secondaryPaymentsProfileId_ != null; } - } - /// Clears the value of the "secondary_payments_profile_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSecondaryPaymentsProfileId() { - secondaryPaymentsProfileId_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PaymentsAccountInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PaymentsAccountInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PaymentsAccountId != other.PaymentsAccountId) return false; - if (PaymentsAccountName != other.PaymentsAccountName) return false; - if (PaymentsProfileId != other.PaymentsProfileId) return false; - if (PaymentsProfileName != other.PaymentsProfileName) return false; - if (SecondaryPaymentsProfileId != other.SecondaryPaymentsProfileId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasPaymentsAccountId) hash ^= PaymentsAccountId.GetHashCode(); - if (HasPaymentsAccountName) hash ^= PaymentsAccountName.GetHashCode(); - if (HasPaymentsProfileId) hash ^= PaymentsProfileId.GetHashCode(); - if (HasPaymentsProfileName) hash ^= PaymentsProfileName.GetHashCode(); - if (HasSecondaryPaymentsProfileId) hash ^= SecondaryPaymentsProfileId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasPaymentsAccountId) { - output.WriteRawTag(50); - output.WriteString(PaymentsAccountId); - } - if (HasPaymentsAccountName) { - output.WriteRawTag(58); - output.WriteString(PaymentsAccountName); - } - if (HasPaymentsProfileId) { - output.WriteRawTag(66); - output.WriteString(PaymentsProfileId); - } - if (HasPaymentsProfileName) { - output.WriteRawTag(74); - output.WriteString(PaymentsProfileName); - } - if (HasSecondaryPaymentsProfileId) { - output.WriteRawTag(82); - output.WriteString(SecondaryPaymentsProfileId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasPaymentsAccountId) { - output.WriteRawTag(50); - output.WriteString(PaymentsAccountId); - } - if (HasPaymentsAccountName) { - output.WriteRawTag(58); - output.WriteString(PaymentsAccountName); - } - if (HasPaymentsProfileId) { - output.WriteRawTag(66); - output.WriteString(PaymentsProfileId); - } - if (HasPaymentsProfileName) { - output.WriteRawTag(74); - output.WriteString(PaymentsProfileName); - } - if (HasSecondaryPaymentsProfileId) { - output.WriteRawTag(82); - output.WriteString(SecondaryPaymentsProfileId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasPaymentsAccountId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsAccountId); - } - if (HasPaymentsAccountName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsAccountName); - } - if (HasPaymentsProfileId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsProfileId); - } - if (HasPaymentsProfileName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PaymentsProfileName); - } - if (HasSecondaryPaymentsProfileId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SecondaryPaymentsProfileId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PaymentsAccountInfo other) { - if (other == null) { - return; - } - if (other.HasPaymentsAccountId) { - PaymentsAccountId = other.PaymentsAccountId; - } - if (other.HasPaymentsAccountName) { - PaymentsAccountName = other.PaymentsAccountName; - } - if (other.HasPaymentsProfileId) { - PaymentsProfileId = other.PaymentsProfileId; - } - if (other.HasPaymentsProfileName) { - PaymentsProfileName = other.PaymentsProfileName; - } - if (other.HasSecondaryPaymentsProfileId) { - SecondaryPaymentsProfileId = other.SecondaryPaymentsProfileId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 50: { - PaymentsAccountId = input.ReadString(); - break; - } - case 58: { - PaymentsAccountName = input.ReadString(); - break; - } - case 66: { - PaymentsProfileId = input.ReadString(); - break; - } - case 74: { - PaymentsProfileName = input.ReadString(); - break; - } - case 82: { - SecondaryPaymentsProfileId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 50: { - PaymentsAccountId = input.ReadString(); - break; - } - case 58: { - PaymentsAccountName = input.ReadString(); - break; - } - case 66: { - PaymentsProfileId = input.ReadString(); - break; - } - case 74: { - PaymentsProfileName = input.ReadString(); - break; - } - case 82: { - SecondaryPaymentsProfileId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetupError.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetupError.g.cs deleted file mode 100755 index a95c45454..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetupError.g.cs +++ /dev/null @@ -1,331 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/billing_setup_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/billing_setup_error.proto - public static partial class BillingSetupErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/billing_setup_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BillingSetupErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2JpbGxpbmdfc2V0", - "dXBfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMirQYKFUJpbGxpbmdTZXR1cEVycm9yRW51bSKTBgoRQmlsbGluZ1NldHVw", - "RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESJwojQ0FOTk9U", - "X1VTRV9FWElTVElOR19BTkRfTkVXX0FDQ09VTlQQAhInCiNDQU5OT1RfUkVN", - "T1ZFX1NUQVJURURfQklMTElOR19TRVRVUBADEjIKLkNBTk5PVF9DSEFOR0Vf", - "QklMTElOR19UT19TQU1FX1BBWU1FTlRTX0FDQ09VTlQQBBIzCi9CSUxMSU5H", - "X1NFVFVQX05PVF9QRVJNSVRURURfRk9SX0NVU1RPTUVSX1NUQVRVUxAFEhwK", - "GElOVkFMSURfUEFZTUVOVFNfQUNDT1VOVBAGEjUKMUJJTExJTkdfU0VUVVBf", - "Tk9UX1BFUk1JVFRFRF9GT1JfQ1VTVE9NRVJfQ0FURUdPUlkQBxIbChdJTlZB", - "TElEX1NUQVJUX1RJTUVfVFlQRRAIEiMKH1RISVJEX1BBUlRZX0FMUkVBRFlf", - "SEFTX0JJTExJTkcQCRIdChlCSUxMSU5HX1NFVFVQX0lOX1BST0dSRVNTEAoS", - "GAoUTk9fU0lHTlVQX1BFUk1JU1NJT04QCxIhCh1DSEFOR0VfT0ZfQklMTF9U", - "T19JTl9QUk9HUkVTUxAMEh4KGlBBWU1FTlRTX1BST0ZJTEVfTk9UX0ZPVU5E", - "EA0SHgoaUEFZTUVOVFNfQUNDT1VOVF9OT1RfRk9VTkQQDhIfChtQQVlNRU5U", - "U19QUk9GSUxFX0lORUxJR0lCTEUQDxIfChtQQVlNRU5UU19BQ0NPVU5UX0lO", - "RUxJR0lCTEUQEBIkCiBDVVNUT01FUl9ORUVEU19JTlRFUk5BTF9BUFBST1ZB", - "TBAREjYKMlBBWU1FTlRTX0FDQ09VTlRfSU5FTElHSUJMRV9DVVJSRU5DWV9D", - "T0RFX01JU01BVENIEBMSIAocRlVUVVJFX1NUQVJUX1RJTUVfUFJPSElCSVRF", - "RBAUEjAKLFRPT19NQU5ZX0JJTExJTkdfU0VUVVBTX0ZPUl9QQVlNRU5UU19B", - "Q0NPVU5UEBVC9gEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJy", - "b3JzQhZCaWxsaW5nU2V0dXBFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJy", - "b3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5F", - "cnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorEnum.Types.BillingSetupError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible billing setup errors. - /// - public sealed partial class BillingSetupErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BillingSetupErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupErrorEnum(BillingSetupErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupErrorEnum Clone() { - return new BillingSetupErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BillingSetupErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BillingSetupErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BillingSetupErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BillingSetupErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible billing setup errors. - /// - public enum BillingSetupError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Cannot specify both an existing payments account and a new payments - /// account when setting up billing. - /// - [pbr::OriginalName("CANNOT_USE_EXISTING_AND_NEW_ACCOUNT")] CannotUseExistingAndNewAccount = 2, - /// - /// Cannot cancel an approved billing setup whose start time has passed. - /// - [pbr::OriginalName("CANNOT_REMOVE_STARTED_BILLING_SETUP")] CannotRemoveStartedBillingSetup = 3, - /// - /// Cannot perform a Change of Bill-To (CBT) to the same payments account. - /// - [pbr::OriginalName("CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT")] CannotChangeBillingToSamePaymentsAccount = 4, - /// - /// Billing setups can only be used by customers with ENABLED or DRAFT - /// status. - /// - [pbr::OriginalName("BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS")] BillingSetupNotPermittedForCustomerStatus = 5, - /// - /// Billing setups must either include a correctly formatted existing - /// payments account id, or a non-empty new payments account name. - /// - [pbr::OriginalName("INVALID_PAYMENTS_ACCOUNT")] InvalidPaymentsAccount = 6, - /// - /// Only billable and third-party customers can create billing setups. - /// - [pbr::OriginalName("BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY")] BillingSetupNotPermittedForCustomerCategory = 7, - /// - /// Billing setup creations can only use NOW for start time type. - /// - [pbr::OriginalName("INVALID_START_TIME_TYPE")] InvalidStartTimeType = 8, - /// - /// Billing setups can only be created for a third-party customer if they do - /// not already have a setup. - /// - [pbr::OriginalName("THIRD_PARTY_ALREADY_HAS_BILLING")] ThirdPartyAlreadyHasBilling = 9, - /// - /// Billing setups cannot be created if there is already a pending billing in - /// progress. - /// - [pbr::OriginalName("BILLING_SETUP_IN_PROGRESS")] BillingSetupInProgress = 10, - /// - /// Billing setups can only be created by customers who have permission to - /// setup billings. Users can contact a representative for help setting up - /// permissions. - /// - [pbr::OriginalName("NO_SIGNUP_PERMISSION")] NoSignupPermission = 11, - /// - /// Billing setups cannot be created if there is already a future-approved - /// billing. - /// - [pbr::OriginalName("CHANGE_OF_BILL_TO_IN_PROGRESS")] ChangeOfBillToInProgress = 12, - /// - /// Requested payments profile not found. - /// - [pbr::OriginalName("PAYMENTS_PROFILE_NOT_FOUND")] PaymentsProfileNotFound = 13, - /// - /// Requested payments account not found. - /// - [pbr::OriginalName("PAYMENTS_ACCOUNT_NOT_FOUND")] PaymentsAccountNotFound = 14, - /// - /// Billing setup creation failed because the payments profile is ineligible. - /// - [pbr::OriginalName("PAYMENTS_PROFILE_INELIGIBLE")] PaymentsProfileIneligible = 15, - /// - /// Billing setup creation failed because the payments account is ineligible. - /// - [pbr::OriginalName("PAYMENTS_ACCOUNT_INELIGIBLE")] PaymentsAccountIneligible = 16, - /// - /// Billing setup creation failed because the payments profile needs internal - /// approval. - /// - [pbr::OriginalName("CUSTOMER_NEEDS_INTERNAL_APPROVAL")] CustomerNeedsInternalApproval = 17, - /// - /// Payments account has different currency code than the current customer - /// and hence cannot be used to setup billing. - /// - [pbr::OriginalName("PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH")] PaymentsAccountIneligibleCurrencyCodeMismatch = 19, - /// - /// A start time in the future cannot be used because there is currently no - /// active billing setup for this customer. - /// - [pbr::OriginalName("FUTURE_START_TIME_PROHIBITED")] FutureStartTimeProhibited = 20, - /// - /// The payments account has maximum number of billing setups. - /// - [pbr::OriginalName("TOO_MANY_BILLING_SETUPS_FOR_PAYMENTS_ACCOUNT")] TooManyBillingSetupsForPaymentsAccount = 21, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetupResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetupResourceNames.g.cs deleted file mode 100755 index d9b288328..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetupResourceNames.g.cs +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the BillingSetup resource. - public sealed partial class BillingSetupName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/billingSetups/{billing_setup_id}. - /// - CustomerBillingSetup = 1, - } - - private static gax::PathTemplate s_customerBillingSetup = new gax::PathTemplate("customers/{customer_id}/billingSetups/{billing_setup_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static BillingSetupName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new BillingSetupName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/billingSetups/{billing_setup_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BillingSetup ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static BillingSetupName FromCustomerBillingSetup(string customerId, string billingSetupId) => - new BillingSetupName(ResourceNameType.CustomerBillingSetup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), billingSetupId: gax::GaxPreconditions.CheckNotNullOrEmpty(billingSetupId, nameof(billingSetupId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/billingSetups/{billing_setup_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BillingSetup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/billingSetups/{billing_setup_id}. - /// - public static string Format(string customerId, string billingSetupId) => - FormatCustomerBillingSetup(customerId, billingSetupId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/billingSetups/{billing_setup_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BillingSetup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/billingSetups/{billing_setup_id}. - /// - public static string FormatCustomerBillingSetup(string customerId, string billingSetupId) => - s_customerBillingSetup.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(billingSetupId, nameof(billingSetupId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/billingSetups/{billing_setup_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static BillingSetupName Parse(string billingSetupName) => Parse(billingSetupName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/billingSetups/{billing_setup_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static BillingSetupName Parse(string billingSetupName, bool allowUnparsed) => - TryParse(billingSetupName, allowUnparsed, out BillingSetupName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/billingSetups/{billing_setup_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string billingSetupName, out BillingSetupName result) => - TryParse(billingSetupName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/billingSetups/{billing_setup_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string billingSetupName, bool allowUnparsed, out BillingSetupName result) - { - gax::GaxPreconditions.CheckNotNull(billingSetupName, nameof(billingSetupName)); - gax::TemplatedResourceName resourceName; - if (s_customerBillingSetup.TryParseName(billingSetupName, out resourceName)) - { - result = FromCustomerBillingSetup(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(billingSetupName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private BillingSetupName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string billingSetupId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - BillingSetupId = billingSetupId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/billingSetups/{billing_setup_id} - /// - /// The Customer ID. Must not be null or empty. - /// The BillingSetup ID. Must not be null or empty. - public BillingSetupName(string customerId, string billingSetupId) : this(ResourceNameType.CustomerBillingSetup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), billingSetupId: gax::GaxPreconditions.CheckNotNullOrEmpty(billingSetupId, nameof(billingSetupId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The BillingSetup ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string BillingSetupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerBillingSetup: return s_customerBillingSetup.Expand(CustomerId, BillingSetupId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as BillingSetupName); - - /// - public bool Equals(BillingSetupName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(BillingSetupName a, BillingSetupName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(BillingSetupName a, BillingSetupName b) => !(a == b); - } - - public partial class BillingSetup - { - /// - /// -typed view over the resource name property. - /// - internal BillingSetupName ResourceNameAsBillingSetupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : BillingSetupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal PaymentsAccountName PaymentsAccountAsPaymentsAccountName - { - get => string.IsNullOrEmpty(PaymentsAccount) ? null : PaymentsAccountName.Parse(PaymentsAccount, allowUnparsed: true); - set => PaymentsAccount = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetupService.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetupService.g.cs deleted file mode 100755 index 15431f2b0..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetupService.g.cs +++ /dev/null @@ -1,1004 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/billing_setup_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/billing_setup_service.proto - public static partial class BillingSetupServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/billing_setup_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BillingSetupServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYmlsbGluZ19z", - "ZXR1cF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMaNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMv", - "YmlsbGluZ19zZXR1cC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5w", - "cm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmll", - "bGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i", - "hwEKGU11dGF0ZUJpbGxpbmdTZXR1cFJlcXVlc3QSGAoLY3VzdG9tZXJfaWQY", - "ASABKAlCA+BBAhJQCglvcGVyYXRpb24YAiABKAsyOC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuQmlsbGluZ1NldHVwT3BlcmF0aW9uQgPg", - "QQIipgEKFUJpbGxpbmdTZXR1cE9wZXJhdGlvbhJCCgZjcmVhdGUYAiABKAsy", - "MC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJpbGxpbmdT", - "ZXR1cEgAEjwKBnJlbW92ZRgBIAEoCUIq+kEnCiVnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQmlsbGluZ1NldHVwSABCCwoJb3BlcmF0aW9uImkKGk11dGF0", - "ZUJpbGxpbmdTZXR1cFJlc3BvbnNlEksKBnJlc3VsdBgBIAEoCzI7Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVCaWxsaW5nU2V0", - "dXBSZXN1bHQiXQoYTXV0YXRlQmlsbGluZ1NldHVwUmVzdWx0EkEKDXJlc291", - "cmNlX25hbWUYASABKAlCKvpBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0JpbGxpbmdTZXR1cDLIAgoTQmlsbGluZ1NldHVwU2VydmljZRLpAQoSTXV0", - "YXRlQmlsbGluZ1NldHVwEjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUJpbGxpbmdTZXR1cFJlcXVlc3QaPS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQmlsbGluZ1NldHVwUmVz", - "cG9uc2UiVoLT5JMCOCIzL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9", - "L2JpbGxpbmdTZXR1cHM6bXV0YXRlOgEq2kEVY3VzdG9tZXJfaWQsb3BlcmF0", - "aW9uGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNChAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCGEJpbGxpbmdTZXR1cFNlcnZp", - "Y2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FB", - "qgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.BillingSetupReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest), global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest.Parser, new[]{ "CustomerId", "Operation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.BillingSetupOperation), global::Google.Ads.GoogleAds.V12.Services.BillingSetupOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResponse), global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResult), global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for billing setup mutate operations. - /// - public sealed partial class MutateBillingSetupRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBillingSetupRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BillingSetupServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupRequest(MutateBillingSetupRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupRequest Clone() { - return new MutateBillingSetupRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. Id of the customer to apply the billing setup mutate operation to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.BillingSetupOperation operation_; - /// - /// Required. The operation to perform. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.BillingSetupOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBillingSetupRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBillingSetupRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBillingSetupRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.BillingSetupOperation(); - } - Operation.MergeFrom(other.Operation); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.BillingSetupOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.BillingSetupOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation on a billing setup, which describes the cancellation of an - /// existing billing setup. - /// - public sealed partial class BillingSetupOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BillingSetupOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BillingSetupServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupOperation(BillingSetupOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupOperation Clone() { - return new BillingSetupOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 2; - /// - /// Creates a billing setup. No resource name is expected for the new billing - /// setup. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BillingSetup Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.BillingSetup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 1; - /// - /// Resource name of the billing setup to remove. A setup cannot be - /// removed unless it is in a pending state or its scheduled start time is in - /// the future. The resource name looks like - /// `customers/{customer_id}/billingSetups/{billing_id}`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 2, - Remove = 1, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BillingSetupOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BillingSetupOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(10); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(18); - output.WriteMessage(Create); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(10); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(18); - output.WriteMessage(Create); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BillingSetupOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Remove = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BillingSetup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Remove = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.BillingSetup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a billing setup operation. - /// - public sealed partial class MutateBillingSetupResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBillingSetupResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BillingSetupServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupResponse(MutateBillingSetupResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupResponse Clone() { - return new MutateBillingSetupResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResult result_; - /// - /// A result that identifies the resource affected by the mutate request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResult Result { - get { return result_; } - set { - result_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBillingSetupResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBillingSetupResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBillingSetupResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResult(); - } - Result.MergeFrom(other.Result); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResult(); - } - input.ReadMessage(Result); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResult(); - } - input.ReadMessage(Result); - break; - } - } - } - } - #endif - - } - - /// - /// Result for a single billing setup mutate. - /// - public sealed partial class MutateBillingSetupResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateBillingSetupResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.BillingSetupServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupResult(MutateBillingSetupResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateBillingSetupResult Clone() { - return new MutateBillingSetupResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateBillingSetupResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateBillingSetupResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateBillingSetupResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetupServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetupServiceClient.g.cs deleted file mode 100755 index e947ad5d9..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetupServiceClient.g.cs +++ /dev/null @@ -1,468 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class BillingSetupServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static BillingSetupServiceSettings GetDefault() => new BillingSetupServiceSettings(); - - /// Constructs a new object with default settings. - public BillingSetupServiceSettings() - { - } - - private BillingSetupServiceSettings(BillingSetupServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateBillingSetupSettings = existing.MutateBillingSetupSettings; - OnCopy(existing); - } - - partial void OnCopy(BillingSetupServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// BillingSetupServiceClient.MutateBillingSetup and BillingSetupServiceClient.MutateBillingSetupAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateBillingSetupSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public BillingSetupServiceSettings Clone() => new BillingSetupServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class BillingSetupServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public BillingSetupServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public BillingSetupServiceClientBuilder() : base(BillingSetupServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref BillingSetupServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override BillingSetupServiceClient Build() - { - BillingSetupServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private BillingSetupServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return BillingSetupServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return BillingSetupServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => BillingSetupServiceClient.ChannelPool; - } - - /// BillingSetupService client wrapper, for convenient use. - /// - /// A service for designating the business entity responsible for accrued costs. - /// - /// A billing setup is associated with a payments account. Billing-related - /// activity for all billing setups associated with a particular payments account - /// will appear on a single invoice generated monthly. - /// - /// Mutates: - /// The REMOVE operation cancels a pending billing setup. - /// The CREATE operation creates a new billing setup. - /// - public abstract partial class BillingSetupServiceClient - { - /// - /// The default endpoint for the BillingSetupService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default BillingSetupService scopes. - /// - /// The default BillingSetupService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(BillingSetupService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new BillingSetupServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static BillingSetupServiceClient Create() => new BillingSetupServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static BillingSetupServiceClient Create(grpccore::CallInvoker callInvoker, BillingSetupServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - BillingSetupService.BillingSetupServiceClient grpcClient = new BillingSetupService.BillingSetupServiceClient(callInvoker); - return new BillingSetupServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC BillingSetupService client - public virtual BillingSetupService.BillingSetupServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBillingSetupResponse MutateBillingSetup(MutateBillingSetupRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBillingSetupAsync(MutateBillingSetupRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBillingSetupAsync(MutateBillingSetupRequest request, st::CancellationToken cancellationToken) => - MutateBillingSetupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. Id of the customer to apply the billing setup mutate operation to. - /// - /// - /// Required. The operation to perform. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateBillingSetupResponse MutateBillingSetup(string customerId, BillingSetupOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateBillingSetup(new MutateBillingSetupRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. Id of the customer to apply the billing setup mutate operation to. - /// - /// - /// Required. The operation to perform. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateBillingSetupAsync(string customerId, BillingSetupOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateBillingSetupAsync(new MutateBillingSetupRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. Id of the customer to apply the billing setup mutate operation to. - /// - /// - /// Required. The operation to perform. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateBillingSetupAsync(string customerId, BillingSetupOperation operation, st::CancellationToken cancellationToken) => - MutateBillingSetupAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// BillingSetupService client wrapper implementation, for convenient use. - /// - /// A service for designating the business entity responsible for accrued costs. - /// - /// A billing setup is associated with a payments account. Billing-related - /// activity for all billing setups associated with a particular payments account - /// will appear on a single invoice generated monthly. - /// - /// Mutates: - /// The REMOVE operation cancels a pending billing setup. - /// The CREATE operation creates a new billing setup. - /// - public sealed partial class BillingSetupServiceClientImpl : BillingSetupServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateBillingSetup; - - /// - /// Constructs a client wrapper for the BillingSetupService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public BillingSetupServiceClientImpl(BillingSetupService.BillingSetupServiceClient grpcClient, BillingSetupServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - BillingSetupServiceSettings effectiveSettings = settings ?? BillingSetupServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateBillingSetup = clientHelper.BuildApiCall("MutateBillingSetup", grpcClient.MutateBillingSetupAsync, grpcClient.MutateBillingSetup, effectiveSettings.MutateBillingSetupSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateBillingSetup); - Modify_MutateBillingSetupApiCall(ref _callMutateBillingSetup); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateBillingSetupApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(BillingSetupService.BillingSetupServiceClient grpcClient, BillingSetupServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC BillingSetupService client - public override BillingSetupService.BillingSetupServiceClient GrpcClient { get; } - - partial void Modify_MutateBillingSetupRequest(ref MutateBillingSetupRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateBillingSetupResponse MutateBillingSetup(MutateBillingSetupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBillingSetupRequest(ref request, ref callSettings); - return _callMutateBillingSetup.Sync(request, callSettings); - } - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateBillingSetupAsync(MutateBillingSetupRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateBillingSetupRequest(ref request, ref callSettings); - return _callMutateBillingSetup.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetupServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetupServiceGrpc.g.cs deleted file mode 100755 index 757e0c6a5..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetupServiceGrpc.g.cs +++ /dev/null @@ -1,275 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/billing_setup_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// A service for designating the business entity responsible for accrued costs. - /// - /// A billing setup is associated with a payments account. Billing-related - /// activity for all billing setups associated with a particular payments account - /// will appear on a single invoice generated monthly. - /// - /// Mutates: - /// The REMOVE operation cancels a pending billing setup. - /// The CREATE operation creates a new billing setup. - /// - public static partial class BillingSetupService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.BillingSetupService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBillingSetupRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateBillingSetupResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateBillingSetup = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateBillingSetup", - __Marshaller_google_ads_googleads_v12_services_MutateBillingSetupRequest, - __Marshaller_google_ads_googleads_v12_services_MutateBillingSetupResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.BillingSetupServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of BillingSetupService - [grpc::BindServiceMethod(typeof(BillingSetupService), "BindService")] - public abstract partial class BillingSetupServiceBase - { - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateBillingSetup(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for BillingSetupService - public partial class BillingSetupServiceClient : grpc::ClientBase - { - /// Creates a new client for BillingSetupService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BillingSetupServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for BillingSetupService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public BillingSetupServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BillingSetupServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected BillingSetupServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResponse MutateBillingSetup(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBillingSetup(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupResponse MutateBillingSetup(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateBillingSetup, null, options, request); - } - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBillingSetupAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateBillingSetupAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a billing setup, or cancels an existing billing setup. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BillingSetupError]() - /// [DateError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateBillingSetupAsync(global::Google.Ads.GoogleAds.V12.Services.MutateBillingSetupRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateBillingSetup, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override BillingSetupServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new BillingSetupServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(BillingSetupServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateBillingSetup, serviceImpl.MutateBillingSetup).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, BillingSetupServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateBillingSetup, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateBillingSetup)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetupServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetupServiceResourceNames.g.cs deleted file mode 100755 index d5829bf02..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetupServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class BillingSetupOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BillingSetupName RemoveAsBillingSetupName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::BillingSetupName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateBillingSetupResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::BillingSetupName ResourceNameAsBillingSetupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::BillingSetupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/BillingSetupStatus.g.cs b/Google.Ads.GoogleAds/src/V12/BillingSetupStatus.g.cs deleted file mode 100755 index b48f4afe5..000000000 --- a/Google.Ads.GoogleAds/src/V12/BillingSetupStatus.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/billing_setup_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/billing_setup_status.proto - public static partial class BillingSetupStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/billing_setup_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BillingSetupStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYmlsbGluZ19zZXR1", - "cF9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cyKJAQoWQmlsbGluZ1NldHVwU3RhdHVzRW51bSJvChJCaWxsaW5nU2V0dXBT", - "dGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHUEVORElO", - "RxACEhEKDUFQUFJPVkVEX0hFTEQQAxIMCghBUFBST1ZFRBAEEg0KCUNBTkNF", - "TExFRBAFQvEBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "QhdCaWxsaW5nU2V0dXBTdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "O2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1z", - "ygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusEnum.Types.BillingSetupStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing BillingSetup statuses. - /// - public sealed partial class BillingSetupStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BillingSetupStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BillingSetupStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupStatusEnum(BillingSetupStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BillingSetupStatusEnum Clone() { - return new BillingSetupStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BillingSetupStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BillingSetupStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BillingSetupStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BillingSetupStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of a BillingSetup. - /// - public enum BillingSetupStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The billing setup is pending approval. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// The billing setup has been approved but the corresponding first budget - /// has not. This can only occur for billing setups configured for monthly - /// invoicing. - /// - [pbr::OriginalName("APPROVED_HELD")] ApprovedHeld = 3, - /// - /// The billing setup has been approved. - /// - [pbr::OriginalName("APPROVED")] Approved = 4, - /// - /// The billing setup was cancelled by the user prior to approval. - /// - [pbr::OriginalName("CANCELLED")] Cancelled = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BrandSafetySuitability.g.cs b/Google.Ads.GoogleAds/src/V12/BrandSafetySuitability.g.cs deleted file mode 100755 index ecd2ff9fa..000000000 --- a/Google.Ads.GoogleAds/src/V12/BrandSafetySuitability.g.cs +++ /dev/null @@ -1,262 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/brand_safety_suitability.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/brand_safety_suitability.proto - public static partial class BrandSafetySuitabilityReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/brand_safety_suitability.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BrandSafetySuitabilityReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYnJhbmRfc2FmZXR5", - "X3N1aXRhYmlsaXR5LnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMimwEKGkJyYW5kU2FmZXR5U3VpdGFiaWxpdHlFbnVtIn0KFkJyYW5k", - "U2FmZXR5U3VpdGFiaWxpdHkSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESFgoSRVhQQU5ERURfSU5WRU5UT1JZEAISFgoSU1RBTkRBUkRfSU5WRU5U", - "T1JZEAMSFQoRTElNSVRFRF9JTlZFTlRPUlkQBEL1AQoiY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IbQnJhbmRTYWZldHlTdWl0YWJpbGl0", - "eVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum), global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum with 3-Tier brand safety suitability control. - /// - public sealed partial class BrandSafetySuitabilityEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BrandSafetySuitabilityEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BrandSafetySuitabilityEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BrandSafetySuitabilityEnum(BrandSafetySuitabilityEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BrandSafetySuitabilityEnum Clone() { - return new BrandSafetySuitabilityEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BrandSafetySuitabilityEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BrandSafetySuitabilityEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BrandSafetySuitabilityEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BrandSafetySuitabilityEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// 3-Tier brand safety suitability control. - /// - public enum BrandSafetySuitability { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// This option lets you show ads across all inventory on YouTube and video - /// partners that meet our standards for monetization. This option may be an - /// appropriate choice for brands that want maximum access to the full - /// breadth of videos eligible for ads, including, for example, videos that - /// have strong profanity in the context of comedy or a documentary, or - /// excessive violence as featured in video games. - /// - [pbr::OriginalName("EXPANDED_INVENTORY")] ExpandedInventory = 2, - /// - /// This option lets you show ads across a wide range of content that's - /// appropriate for most brands, such as popular music videos, documentaries, - /// and movie trailers. The content you can show ads on is based on YouTube's - /// advertiser-friendly content guidelines that take into account, for - /// example, the strength or frequency of profanity, or the appropriateness - /// of subject matter like sensitive events. Ads won't show, for example, on - /// content with repeated strong profanity, strong sexual content, or graphic - /// violence. - /// - [pbr::OriginalName("STANDARD_INVENTORY")] StandardInventory = 3, - /// - /// This option lets you show ads on a reduced range of content that's - /// appropriate for brands with particularly strict guidelines around - /// inappropriate language and sexual suggestiveness; above and beyond what - /// YouTube's advertiser-friendly content guidelines address. The videos - /// accessible in this sensitive category meet heightened requirements, - /// especially for inappropriate language and sexual suggestiveness. For - /// example, your ads will be excluded from showing on some of YouTube's most - /// popular music videos and other pop culture content across YouTube and - /// Google video partners. - /// - [pbr::OriginalName("LIMITED_INVENTORY")] LimitedInventory = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BudgetCampaignAssociationStatus.g.cs b/Google.Ads.GoogleAds/src/V12/BudgetCampaignAssociationStatus.g.cs deleted file mode 100755 index b5114707a..000000000 --- a/Google.Ads.GoogleAds/src/V12/BudgetCampaignAssociationStatus.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/budget_campaign_association_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/budget_campaign_association_status.proto - public static partial class BudgetCampaignAssociationStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/budget_campaign_association_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BudgetCampaignAssociationStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYnVkZ2V0X2NhbXBh", - "aWduX2Fzc29jaWF0aW9uX3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zIoABCiNCdWRnZXRDYW1wYWlnbkFzc29jaWF0aW9u", - "U3RhdHVzRW51bSJZCh9CdWRnZXRDYW1wYWlnbkFzc29jaWF0aW9uU3RhdHVz", - "Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0VOQUJMRUQQAhIL", - "CgdSRU1PVkVEEANC/gEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXNCJEJ1ZGdldENhbXBhaWduQXNzb2NpYXRpb25TdGF0dXNQcm90b1AB", - "WkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetCampaignAssociationStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.BudgetCampaignAssociationStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetCampaignAssociationStatusEnum.Types.BudgetCampaignAssociationStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing the status of the association between the Budget and the - /// Campaign. - /// - public sealed partial class BudgetCampaignAssociationStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BudgetCampaignAssociationStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BudgetCampaignAssociationStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetCampaignAssociationStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetCampaignAssociationStatusEnum(BudgetCampaignAssociationStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetCampaignAssociationStatusEnum Clone() { - return new BudgetCampaignAssociationStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BudgetCampaignAssociationStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BudgetCampaignAssociationStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BudgetCampaignAssociationStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BudgetCampaignAssociationStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of the association between the Budget and the Campaign. - /// - public enum BudgetCampaignAssociationStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The campaign is currently using the budget. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The campaign is no longer using the budget. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BudgetDeliveryMethod.g.cs b/Google.Ads.GoogleAds/src/V12/BudgetDeliveryMethod.g.cs deleted file mode 100755 index d87193761..000000000 --- a/Google.Ads.GoogleAds/src/V12/BudgetDeliveryMethod.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/budget_delivery_method.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/budget_delivery_method.proto - public static partial class BudgetDeliveryMethodReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/budget_delivery_method.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BudgetDeliveryMethodReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYnVkZ2V0X2RlbGl2", - "ZXJ5X21ldGhvZC5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zIm8KGEJ1ZGdldERlbGl2ZXJ5TWV0aG9kRW51bSJTChRCdWRnZXREZWxp", - "dmVyeU1ldGhvZBIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIMCghT", - "VEFOREFSRBACEg8KC0FDQ0VMRVJBVEVEEANC8wEKImNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXNCGUJ1ZGdldERlbGl2ZXJ5TWV0aG9kUHJv", - "dG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51", - "bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum), global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing Budget delivery methods. A delivery method determines the - /// rate at which the Budget is spent. - /// - public sealed partial class BudgetDeliveryMethodEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BudgetDeliveryMethodEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetDeliveryMethodEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetDeliveryMethodEnum(BudgetDeliveryMethodEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetDeliveryMethodEnum Clone() { - return new BudgetDeliveryMethodEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BudgetDeliveryMethodEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BudgetDeliveryMethodEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BudgetDeliveryMethodEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BudgetDeliveryMethodEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible delivery methods of a Budget. - /// - public enum BudgetDeliveryMethod { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The budget server will throttle serving evenly across - /// the entire time period. - /// - [pbr::OriginalName("STANDARD")] Standard = 2, - /// - /// The budget server will not throttle serving, - /// and ads will serve as fast as possible. - /// - [pbr::OriginalName("ACCELERATED")] Accelerated = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BudgetPeriod.g.cs b/Google.Ads.GoogleAds/src/V12/BudgetPeriod.g.cs deleted file mode 100755 index 1c2192e1e..000000000 --- a/Google.Ads.GoogleAds/src/V12/BudgetPeriod.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/budget_period.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/budget_period.proto - public static partial class BudgetPeriodReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/budget_period.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BudgetPeriodReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYnVkZ2V0X3Blcmlv", - "ZC5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIl4KEEJ1", - "ZGdldFBlcmlvZEVudW0iSgoMQnVkZ2V0UGVyaW9kEg8KC1VOU1BFQ0lGSUVE", - "EAASCwoHVU5LTk9XThABEgkKBURBSUxZEAISEQoNQ1VTVE9NX1BFUklPRBAF", - "QusBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhFCdWRn", - "ZXRQZXJpb2RQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FB", - "qgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum), global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing Budget period. - /// - public sealed partial class BudgetPeriodEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BudgetPeriodEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetPeriodEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetPeriodEnum(BudgetPeriodEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetPeriodEnum Clone() { - return new BudgetPeriodEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BudgetPeriodEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BudgetPeriodEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BudgetPeriodEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BudgetPeriodEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible period of a Budget. - /// - public enum BudgetPeriod { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Daily budget. - /// - [pbr::OriginalName("DAILY")] Daily = 2, - /// - /// Custom budget, added back in V5. - /// Custom bugdet can be used with total_amount to specify lifetime budget - /// limit. See: https://support.google.com/google-ads/answer/6385083 for more - /// info. - /// - [pbr::OriginalName("CUSTOM_PERIOD")] CustomPeriod = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BudgetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/BudgetStatus.g.cs deleted file mode 100755 index c2785a138..000000000 --- a/Google.Ads.GoogleAds/src/V12/BudgetStatus.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/budget_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/budget_status.proto - public static partial class BudgetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/budget_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BudgetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYnVkZ2V0X3N0YXR1", - "cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIloKEEJ1", - "ZGdldFN0YXR1c0VudW0iRgoMQnVkZ2V0U3RhdHVzEg8KC1VOU1BFQ0lGSUVE", - "EAASCwoHVU5LTk9XThABEgsKB0VOQUJMRUQQAhILCgdSRU1PVkVEEANC6wEK", - "ImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCEUJ1ZGdldFN0", - "YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing a Budget status - /// - public sealed partial class BudgetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BudgetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetStatusEnum(BudgetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetStatusEnum Clone() { - return new BudgetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BudgetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BudgetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BudgetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BudgetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a Budget. - /// - public enum BudgetStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Budget is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Budget is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/BudgetType.g.cs b/Google.Ads.GoogleAds/src/V12/BudgetType.g.cs deleted file mode 100755 index f44b2929f..000000000 --- a/Google.Ads.GoogleAds/src/V12/BudgetType.g.cs +++ /dev/null @@ -1,262 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/budget_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/budget_type.proto - public static partial class BudgetTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/budget_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static BudgetTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYnVkZ2V0X3R5cGUu", - "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKBAQoOQnVk", - "Z2V0VHlwZUVudW0ibwoKQnVkZ2V0VHlwZRIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARIMCghTVEFOREFSRBACEg0KCUZJWEVEX0NQQRAEEhIKDlNN", - "QVJUX0NBTVBBSUdOEAUSEgoOTE9DQUxfU0VSVklDRVMQBkLpAQoiY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IPQnVkZ2V0VHlwZVByb3Rv", - "UAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1z", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Describes Budget types. - /// - public sealed partial class BudgetTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BudgetTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetTypeEnum(BudgetTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BudgetTypeEnum Clone() { - return new BudgetTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BudgetTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BudgetTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BudgetTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the BudgetTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible Budget types. - /// - public enum BudgetType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Budget type for standard Google Ads usage. - /// Caps daily spend at two times the specified budget amount. - /// Full details: https://support.google.com/google-ads/answer/6385083 - /// - [pbr::OriginalName("STANDARD")] Standard = 2, - /// - /// Budget type with a fixed cost-per-acquisition (conversion). - /// Full details: https://support.google.com/google-ads/answer/7528254 - /// - /// This type is only supported by campaigns with - /// AdvertisingChannelType.DISPLAY (excluding - /// AdvertisingChannelSubType.DISPLAY_GMAIL), - /// BiddingStrategyType.TARGET_CPA and PaymentMode.CONVERSIONS. - /// - [pbr::OriginalName("FIXED_CPA")] FixedCpa = 4, - /// - /// Budget type for Smart Campaign. - /// Full details: https://support.google.com/google-ads/answer/7653509 - /// - /// This type is only supported by campaigns with - /// AdvertisingChannelType.SMART and - /// AdvertisingChannelSubType.SMART_CAMPAIGN. - /// - [pbr::OriginalName("SMART_CAMPAIGN")] SmartCampaign = 5, - /// - /// Budget type for Local Services Campaign. - /// Full details: https://support.google.com/localservices/answer/7434558 - /// - /// This type is only supported by campaigns with - /// AdvertisingChannelType.LOCAL_SERVICES. - /// - [pbr::OriginalName("LOCAL_SERVICES")] LocalServices = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CallConversionReportingState.g.cs b/Google.Ads.GoogleAds/src/V12/CallConversionReportingState.g.cs deleted file mode 100755 index 9a12d5aba..000000000 --- a/Google.Ads.GoogleAds/src/V12/CallConversionReportingState.g.cs +++ /dev/null @@ -1,246 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/call_conversion_reporting_state.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/call_conversion_reporting_state.proto - public static partial class CallConversionReportingStateReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/call_conversion_reporting_state.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CallConversionReportingStateReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbF9jb252ZXJz", - "aW9uX3JlcG9ydGluZ19zdGF0ZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zIswBCiBDYWxsQ29udmVyc2lvblJlcG9ydGluZ1N0YXRl", - "RW51bSKnAQocQ2FsbENvbnZlcnNpb25SZXBvcnRpbmdTdGF0ZRIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARIMCghESVNBQkxFRBACEiwKKFVTRV9B", - "Q0NPVU5UX0xFVkVMX0NBTExfQ09OVkVSU0lPTl9BQ1RJT04QAxItCilVU0Vf", - "UkVTT1VSQ0VfTEVWRUxfQ0FMTF9DT05WRVJTSU9OX0FDVElPThAEQvsBCiJj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQiFDYWxsQ29udmVy", - "c2lvblJlcG9ydGluZ1N0YXRlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztl", - "bnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oC", - "Hkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum), global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible data types for call conversion - /// reporting state. - /// - public sealed partial class CallConversionReportingStateEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallConversionReportingStateEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversionReportingStateEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversionReportingStateEnum(CallConversionReportingStateEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversionReportingStateEnum Clone() { - return new CallConversionReportingStateEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallConversionReportingStateEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallConversionReportingStateEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallConversionReportingStateEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CallConversionReportingStateEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible data types for a call conversion action state. - /// - public enum CallConversionReportingState { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Call conversion action is disabled. - /// - [pbr::OriginalName("DISABLED")] Disabled = 2, - /// - /// Call conversion action will use call conversion type set at the - /// account level. - /// - [pbr::OriginalName("USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION")] UseAccountLevelCallConversionAction = 3, - /// - /// Call conversion action will use call conversion type set at the resource - /// (call only ads/call extensions) level. - /// - [pbr::OriginalName("USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION")] UseResourceLevelCallConversionAction = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CallPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/CallPlaceholderField.g.cs deleted file mode 100755 index ceb068432..000000000 --- a/Google.Ads.GoogleAds/src/V12/CallPlaceholderField.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/call_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/call_placeholder_field.proto - public static partial class CallPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/call_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CallPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbF9wbGFjZWhv", - "bGRlcl9maWVsZC5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zIroBChhDYWxsUGxhY2Vob2xkZXJGaWVsZEVudW0inQEKFENhbGxQbGFj", - "ZWhvbGRlckZpZWxkEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhAK", - "DFBIT05FX05VTUJFUhACEhAKDENPVU5UUllfQ09ERRADEgsKB1RSQUNLRUQQ", - "BBIWChJDT05WRVJTSU9OX1RZUEVfSUQQBRIeChpDT05WRVJTSU9OX1JFUE9S", - "VElOR19TVEFURRAGQvMBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQhlDYWxsUGxhY2Vob2xkZXJGaWVsZFByb3RvUAFaQ2dvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldEnum.Types.CallPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Call placeholder fields. - /// - public sealed partial class CallPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallPlaceholderFieldEnum(CallPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallPlaceholderFieldEnum Clone() { - return new CallPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CallPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Call placeholder fields. - /// - public enum CallPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. The advertiser's phone number to append to the ad. - /// - [pbr::OriginalName("PHONE_NUMBER")] PhoneNumber = 2, - /// - /// Data Type: STRING. Uppercase two-letter country code of the advertiser's - /// phone number. - /// - [pbr::OriginalName("COUNTRY_CODE")] CountryCode = 3, - /// - /// Data Type: BOOLEAN. Indicates whether call tracking is enabled. Default: - /// true. - /// - [pbr::OriginalName("TRACKED")] Tracked = 4, - /// - /// Data Type: INT64. The ID of an AdCallMetricsConversion object. This - /// object contains the phoneCallDurationfield which is the minimum duration - /// (in seconds) of a call to be considered a conversion. - /// - [pbr::OriginalName("CONVERSION_TYPE_ID")] ConversionTypeId = 5, - /// - /// Data Type: STRING. Indicates whether this call extension uses its own - /// call conversion setting or follows the account level setting. - /// Valid values are: USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION and - /// USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. - /// - [pbr::OriginalName("CONVERSION_REPORTING_STATE")] ConversionReportingState = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CallToActionType.g.cs b/Google.Ads.GoogleAds/src/V12/CallToActionType.g.cs deleted file mode 100755 index 3146b212f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CallToActionType.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/call_to_action_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/call_to_action_type.proto - public static partial class CallToActionTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/call_to_action_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CallToActionTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbF90b19hY3Rp", - "b25fdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "Is0BChRDYWxsVG9BY3Rpb25UeXBlRW51bSK0AQoQQ2FsbFRvQWN0aW9uVHlw", - "ZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIOCgpMRUFSTl9NT1JF", - "EAISDQoJR0VUX1FVT1RFEAMSDQoJQVBQTFlfTk9XEAQSCwoHU0lHTl9VUBAF", - "Eg4KCkNPTlRBQ1RfVVMQBhINCglTVUJTQ1JJQkUQBxIMCghET1dOTE9BRBAI", - "EgwKCEJPT0tfTk9XEAkSDAoIU0hPUF9OT1cQCkLvAQoiY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IVQ2FsbFRvQWN0aW9uVHlwZVByb3Rv", - "UAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1z", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeEnum.Types.CallToActionType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the call to action types. - /// - public sealed partial class CallToActionTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallToActionTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CallToActionTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallToActionTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallToActionTypeEnum(CallToActionTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallToActionTypeEnum Clone() { - return new CallToActionTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallToActionTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallToActionTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallToActionTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CallToActionTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible types of call to action. - /// - public enum CallToActionType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The call to action type is learn more. - /// - [pbr::OriginalName("LEARN_MORE")] LearnMore = 2, - /// - /// The call to action type is get quote. - /// - [pbr::OriginalName("GET_QUOTE")] GetQuote = 3, - /// - /// The call to action type is apply now. - /// - [pbr::OriginalName("APPLY_NOW")] ApplyNow = 4, - /// - /// The call to action type is sign up. - /// - [pbr::OriginalName("SIGN_UP")] SignUp = 5, - /// - /// The call to action type is contact us. - /// - [pbr::OriginalName("CONTACT_US")] ContactUs = 6, - /// - /// The call to action type is subscribe. - /// - [pbr::OriginalName("SUBSCRIBE")] Subscribe = 7, - /// - /// The call to action type is download. - /// - [pbr::OriginalName("DOWNLOAD")] Download = 8, - /// - /// The call to action type is book now. - /// - [pbr::OriginalName("BOOK_NOW")] BookNow = 9, - /// - /// The call to action type is shop now. - /// - [pbr::OriginalName("SHOP_NOW")] ShopNow = 10, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CallTrackingDisplayLocation.g.cs b/Google.Ads.GoogleAds/src/V12/CallTrackingDisplayLocation.g.cs deleted file mode 100755 index d3111068b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CallTrackingDisplayLocation.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/call_tracking_display_location.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/call_tracking_display_location.proto - public static partial class CallTrackingDisplayLocationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/call_tracking_display_location.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CallTrackingDisplayLocationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbF90cmFja2lu", - "Z19kaXNwbGF5X2xvY2F0aW9uLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMieAofQ2FsbFRyYWNraW5nRGlzcGxheUxvY2F0aW9uRW51", - "bSJVChtDYWxsVHJhY2tpbmdEaXNwbGF5TG9jYXRpb24SDwoLVU5TUEVDSUZJ", - "RUQQABILCgdVTktOT1dOEAESBgoCQUQQAhIQCgxMQU5ESU5HX1BBR0UQA0L6", - "AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IgQ2FsbFRy", - "YWNraW5nRGlzcGxheUxvY2F0aW9uUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVt", - "c8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum), global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible call tracking display locations. - /// - public sealed partial class CallTrackingDisplayLocationEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallTrackingDisplayLocationEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallTrackingDisplayLocationEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallTrackingDisplayLocationEnum(CallTrackingDisplayLocationEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallTrackingDisplayLocationEnum Clone() { - return new CallTrackingDisplayLocationEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallTrackingDisplayLocationEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallTrackingDisplayLocationEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallTrackingDisplayLocationEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CallTrackingDisplayLocationEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible call tracking display locations. - /// - public enum CallTrackingDisplayLocation { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The phone call placed from the ad. - /// - [pbr::OriginalName("AD")] Ad = 2, - /// - /// The phone call placed from the landing page ad points to. - /// - [pbr::OriginalName("LANDING_PAGE")] LandingPage = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CallType.g.cs b/Google.Ads.GoogleAds/src/V12/CallType.g.cs deleted file mode 100755 index aa1b71f6a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CallType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/call_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/call_type.proto - public static partial class CallTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/call_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CallTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbF90eXBlLnBy", - "b3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiaQoMQ2FsbFR5", - "cGVFbnVtIlkKCENhbGxUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEhMKD01BTlVBTExZX0RJQUxFRBACEhoKFkhJR0hfRU5EX01PQklMRV9T", - "RUFSQ0gQA0LnAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "c0INQ2FsbFR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogID", - "R0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible types of property from where the call - /// was made. - /// - public sealed partial class CallTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CallTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallTypeEnum(CallTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallTypeEnum Clone() { - return new CallTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CallTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible types of property from where the call was made. - /// - public enum CallType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The phone call was manually dialed. - /// - [pbr::OriginalName("MANUALLY_DIALED")] ManuallyDialed = 2, - /// - /// The phone call was a mobile click-to-call. - /// - [pbr::OriginalName("HIGH_END_MOBILE_SEARCH")] HighEndMobileSearch = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CallView.g.cs b/Google.Ads.GoogleAds/src/V12/CallView.g.cs deleted file mode 100755 index 1fdf6aca9..000000000 --- a/Google.Ads.GoogleAds/src/V12/CallView.g.cs +++ /dev/null @@ -1,589 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/call_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/call_view.proto - public static partial class CallViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/call_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CallViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbGxfdmll", - "dy5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcxpD", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2NhbGxfdHJhY2tpbmdf", - "ZGlzcGxheV9sb2NhdGlvbi5wcm90bxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL2NhbGxfdHlwZS5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2dvb2dsZV92b2ljZV9jYWxsX3N0YXR1cy5wcm90bxof", - "Z29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9y", - "ZXNvdXJjZS5wcm90byKRBQoIQ2FsbFZpZXcSQAoNcmVzb3VyY2VfbmFtZRgB", - "IAEoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FsbFZp", - "ZXcSIAoTY2FsbGVyX2NvdW50cnlfY29kZRgCIAEoCUID4EEDEh0KEGNhbGxl", - "cl9hcmVhX2NvZGUYAyABKAlCA+BBAxIiChVjYWxsX2R1cmF0aW9uX3NlY29u", - "ZHMYBCABKANCA+BBAxIhChRzdGFydF9jYWxsX2RhdGVfdGltZRgFIAEoCUID", - "4EEDEh8KEmVuZF9jYWxsX2RhdGVfdGltZRgGIAEoCUID4EEDEogBCh5jYWxs", - "X3RyYWNraW5nX2Rpc3BsYXlfbG9jYXRpb24YByABKA4yWy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQ2FsbFRyYWNraW5nRGlzcGxheUxvY2F0", - "aW9uRW51bS5DYWxsVHJhY2tpbmdEaXNwbGF5TG9jYXRpb25CA+BBAxJICgR0", - "eXBlGAggASgOMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkNh", - "bGxUeXBlRW51bS5DYWxsVHlwZUID4EEDEmkKC2NhbGxfc3RhdHVzGAkgASgO", - "Mk8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkdvb2dsZVZvaWNl", - "Q2FsbFN0YXR1c0VudW0uR29vZ2xlVm9pY2VDYWxsU3RhdHVzQgPgQQM6WupB", - "VwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbGxWaWV3EjJjdXN0b21l", - "cnMve2N1c3RvbWVyX2lkfS9jYWxsVmlld3Mve2NhbGxfZGV0YWlsX2lkfUL/", - "AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCDUNh", - "bGxWaWV3UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2Vz", - "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oC", - "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CallTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CallView), global::Google.Ads.GoogleAds.V12.Resources.CallView.Parser, new[]{ "ResourceName", "CallerCountryCode", "CallerAreaCode", "CallDurationSeconds", "StartCallDateTime", "EndCallDateTime", "CallTrackingDisplayLocation", "Type", "CallStatus" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A call view that includes data for call tracking of call-only ads or call - /// extensions. - /// - public sealed partial class CallView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CallViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallView(CallView other) : this() { - resourceName_ = other.resourceName_; - callerCountryCode_ = other.callerCountryCode_; - callerAreaCode_ = other.callerAreaCode_; - callDurationSeconds_ = other.callDurationSeconds_; - startCallDateTime_ = other.startCallDateTime_; - endCallDateTime_ = other.endCallDateTime_; - callTrackingDisplayLocation_ = other.callTrackingDisplayLocation_; - type_ = other.type_; - callStatus_ = other.callStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallView Clone() { - return new CallView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the call view. - /// Call view resource names have the form: - /// - /// `customers/{customer_id}/callViews/{call_detail_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "caller_country_code" field. - public const int CallerCountryCodeFieldNumber = 2; - private string callerCountryCode_ = ""; - /// - /// Output only. Country code of the caller. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallerCountryCode { - get { return callerCountryCode_; } - set { - callerCountryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "caller_area_code" field. - public const int CallerAreaCodeFieldNumber = 3; - private string callerAreaCode_ = ""; - /// - /// Output only. Area code of the caller. Null if the call duration is shorter than 15 - /// seconds. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallerAreaCode { - get { return callerAreaCode_; } - set { - callerAreaCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "call_duration_seconds" field. - public const int CallDurationSecondsFieldNumber = 4; - private long callDurationSeconds_; - /// - /// Output only. The advertiser-provided call duration in seconds. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CallDurationSeconds { - get { return callDurationSeconds_; } - set { - callDurationSeconds_ = value; - } - } - - /// Field number for the "start_call_date_time" field. - public const int StartCallDateTimeFieldNumber = 5; - private string startCallDateTime_ = ""; - /// - /// Output only. The advertiser-provided call start date time. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartCallDateTime { - get { return startCallDateTime_; } - set { - startCallDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_call_date_time" field. - public const int EndCallDateTimeFieldNumber = 6; - private string endCallDateTime_ = ""; - /// - /// Output only. The advertiser-provided call end date time. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndCallDateTime { - get { return endCallDateTime_; } - set { - endCallDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "call_tracking_display_location" field. - public const int CallTrackingDisplayLocationFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation callTrackingDisplayLocation_ = global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation.Unspecified; - /// - /// Output only. The call tracking display location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation CallTrackingDisplayLocation { - get { return callTrackingDisplayLocation_; } - set { - callTrackingDisplayLocation_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType type_ = global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType.Unspecified; - /// - /// Output only. The type of the call. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "call_status" field. - public const int CallStatusFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus callStatus_ = global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus.Unspecified; - /// - /// Output only. The status of the call. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus CallStatus { - get { return callStatus_; } - set { - callStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (CallerCountryCode != other.CallerCountryCode) return false; - if (CallerAreaCode != other.CallerAreaCode) return false; - if (CallDurationSeconds != other.CallDurationSeconds) return false; - if (StartCallDateTime != other.StartCallDateTime) return false; - if (EndCallDateTime != other.EndCallDateTime) return false; - if (CallTrackingDisplayLocation != other.CallTrackingDisplayLocation) return false; - if (Type != other.Type) return false; - if (CallStatus != other.CallStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (CallerCountryCode.Length != 0) hash ^= CallerCountryCode.GetHashCode(); - if (CallerAreaCode.Length != 0) hash ^= CallerAreaCode.GetHashCode(); - if (CallDurationSeconds != 0L) hash ^= CallDurationSeconds.GetHashCode(); - if (StartCallDateTime.Length != 0) hash ^= StartCallDateTime.GetHashCode(); - if (EndCallDateTime.Length != 0) hash ^= EndCallDateTime.GetHashCode(); - if (CallTrackingDisplayLocation != global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation.Unspecified) hash ^= CallTrackingDisplayLocation.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType.Unspecified) hash ^= Type.GetHashCode(); - if (CallStatus != global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus.Unspecified) hash ^= CallStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CallerCountryCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CallerCountryCode); - } - if (CallerAreaCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CallerAreaCode); - } - if (CallDurationSeconds != 0L) { - output.WriteRawTag(32); - output.WriteInt64(CallDurationSeconds); - } - if (StartCallDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartCallDateTime); - } - if (EndCallDateTime.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndCallDateTime); - } - if (CallTrackingDisplayLocation != global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) CallTrackingDisplayLocation); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Type); - } - if (CallStatus != global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) CallStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CallerCountryCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CallerCountryCode); - } - if (CallerAreaCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CallerAreaCode); - } - if (CallDurationSeconds != 0L) { - output.WriteRawTag(32); - output.WriteInt64(CallDurationSeconds); - } - if (StartCallDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartCallDateTime); - } - if (EndCallDateTime.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndCallDateTime); - } - if (CallTrackingDisplayLocation != global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) CallTrackingDisplayLocation); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Type); - } - if (CallStatus != global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) CallStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (CallerCountryCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerCountryCode); - } - if (CallerAreaCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerAreaCode); - } - if (CallDurationSeconds != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CallDurationSeconds); - } - if (StartCallDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartCallDateTime); - } - if (EndCallDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndCallDateTime); - } - if (CallTrackingDisplayLocation != global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallTrackingDisplayLocation); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (CallStatus != global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.CallerCountryCode.Length != 0) { - CallerCountryCode = other.CallerCountryCode; - } - if (other.CallerAreaCode.Length != 0) { - CallerAreaCode = other.CallerAreaCode; - } - if (other.CallDurationSeconds != 0L) { - CallDurationSeconds = other.CallDurationSeconds; - } - if (other.StartCallDateTime.Length != 0) { - StartCallDateTime = other.StartCallDateTime; - } - if (other.EndCallDateTime.Length != 0) { - EndCallDateTime = other.EndCallDateTime; - } - if (other.CallTrackingDisplayLocation != global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation.Unspecified) { - CallTrackingDisplayLocation = other.CallTrackingDisplayLocation; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType.Unspecified) { - Type = other.Type; - } - if (other.CallStatus != global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus.Unspecified) { - CallStatus = other.CallStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CallerCountryCode = input.ReadString(); - break; - } - case 26: { - CallerAreaCode = input.ReadString(); - break; - } - case 32: { - CallDurationSeconds = input.ReadInt64(); - break; - } - case 42: { - StartCallDateTime = input.ReadString(); - break; - } - case 50: { - EndCallDateTime = input.ReadString(); - break; - } - case 56: { - CallTrackingDisplayLocation = (global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation) input.ReadEnum(); - break; - } - case 64: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType) input.ReadEnum(); - break; - } - case 72: { - CallStatus = (global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CallerCountryCode = input.ReadString(); - break; - } - case 26: { - CallerAreaCode = input.ReadString(); - break; - } - case 32: { - CallDurationSeconds = input.ReadInt64(); - break; - } - case 42: { - StartCallDateTime = input.ReadString(); - break; - } - case 50: { - EndCallDateTime = input.ReadString(); - break; - } - case 56: { - CallTrackingDisplayLocation = (global::Google.Ads.GoogleAds.V12.Enums.CallTrackingDisplayLocationEnum.Types.CallTrackingDisplayLocation) input.ReadEnum(); - break; - } - case 64: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CallTypeEnum.Types.CallType) input.ReadEnum(); - break; - } - case 72: { - CallStatus = (global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CallViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CallViewResourceNames.g.cs deleted file mode 100755 index 030fc29d4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CallViewResourceNames.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CallView resource. - public sealed partial class CallViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/callViews/{call_detail_id}. - /// - CustomerCallDetail = 1, - } - - private static gax::PathTemplate s_customerCallDetail = new gax::PathTemplate("customers/{customer_id}/callViews/{call_detail_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CallViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CallViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/callViews/{call_detail_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The CallDetail ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CallViewName FromCustomerCallDetail(string customerId, string callDetailId) => - new CallViewName(ResourceNameType.CustomerCallDetail, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), callDetailId: gax::GaxPreconditions.CheckNotNullOrEmpty(callDetailId, nameof(callDetailId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/callViews/{call_detail_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CallDetail ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/callViews/{call_detail_id}. - /// - public static string Format(string customerId, string callDetailId) => - FormatCustomerCallDetail(customerId, callDetailId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/callViews/{call_detail_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CallDetail ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/callViews/{call_detail_id}. - /// - public static string FormatCustomerCallDetail(string customerId, string callDetailId) => - s_customerCallDetail.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(callDetailId, nameof(callDetailId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/callViews/{call_detail_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CallViewName Parse(string callViewName) => Parse(callViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/callViews/{call_detail_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CallViewName Parse(string callViewName, bool allowUnparsed) => - TryParse(callViewName, allowUnparsed, out CallViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/callViews/{call_detail_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string callViewName, out CallViewName result) => TryParse(callViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/callViews/{call_detail_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string callViewName, bool allowUnparsed, out CallViewName result) - { - gax::GaxPreconditions.CheckNotNull(callViewName, nameof(callViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerCallDetail.TryParseName(callViewName, out resourceName)) - { - result = FromCustomerCallDetail(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(callViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CallViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string callDetailId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CallDetailId = callDetailId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/callViews/{call_detail_id} - /// - /// The Customer ID. Must not be null or empty. - /// The CallDetail ID. Must not be null or empty. - public CallViewName(string customerId, string callDetailId) : this(ResourceNameType.CustomerCallDetail, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), callDetailId: gax::GaxPreconditions.CheckNotNullOrEmpty(callDetailId, nameof(callDetailId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CallDetail ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CallDetailId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCallDetail: return s_customerCallDetail.Expand(CustomerId, CallDetailId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CallViewName); - - /// - public bool Equals(CallViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CallViewName a, CallViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CallViewName a, CallViewName b) => !(a == b); - } - - public partial class CallView - { - /// - /// -typed view over the resource name property. - /// - internal CallViewName ResourceNameAsCallViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CallViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CalloutPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/CalloutPlaceholderField.g.cs deleted file mode 100755 index adc36149f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CalloutPlaceholderField.g.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/callout_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/callout_placeholder_field.proto - public static partial class CalloutPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/callout_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CalloutPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbG91dF9wbGFj", - "ZWhvbGRlcl9maWVsZC5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zImgKG0NhbGxvdXRQbGFjZWhvbGRlckZpZWxkRW51bSJJChdDYWxs", - "b3V0UGxhY2Vob2xkZXJGaWVsZBIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QARIQCgxDQUxMT1VUX1RFWFQQAkL2AQoiY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtc0IcQ2FsbG91dFBsYWNlaG9sZGVyRmllbGRQcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldEnum.Types.CalloutPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Callout placeholder fields. - /// - public sealed partial class CalloutPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalloutPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutPlaceholderFieldEnum(CalloutPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutPlaceholderFieldEnum Clone() { - return new CalloutPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CalloutPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CalloutPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CalloutPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CalloutPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Callout placeholder fields. - /// - public enum CalloutPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. Callout text. - /// - [pbr::OriginalName("CALLOUT_TEXT")] CalloutText = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Campaign.g.cs b/Google.Ads.GoogleAds/src/V12/Campaign.g.cs deleted file mode 100755 index 0fe351c86..000000000 --- a/Google.Ads.GoogleAds/src/V12/Campaign.g.cs +++ /dev/null @@ -1,7238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign.proto - public static partial class CampaignReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGi1n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2JpZGRpbmcucHJvdG8a", - "Nmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3VzdG9tX3BhcmFt", - "ZXRlci5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9m", - "cmVxdWVuY3lfY2FwLnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "Y29tbW9uL3JlYWxfdGltZV9iaWRkaW5nX3NldHRpbmcucHJvdG8aN2dvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vdGFyZ2V0aW5nX3NldHRpbmcu", - "cHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hZF9zZXJ2", - "aW5nX29wdGltaXphdGlvbl9zdGF0dXMucHJvdG8aQWdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9hZHZlcnRpc2luZ19jaGFubmVsX3N1Yl90eXBl", - "LnByb3RvGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWR2ZXJ0", - "aXNpbmdfY2hhbm5lbF90eXBlLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvYXBwX2NhbXBhaWduX2FwcF9zdG9yZS5wcm90bxpMZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2FwcF9jYW1wYWlnbl9iaWRk", - "aW5nX3N0cmF0ZWd5X2dvYWxfdHlwZS5wcm90bxo1Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zL2Fzc2V0X2ZpZWxkX3R5cGUucHJvdG8aM2dvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hc3NldF9zZXRfdHlwZS5wcm90", - "bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2JpZGRpbmdfc3Ry", - "YXRlZ3lfc3lzdGVtX3N0YXR1cy5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2JpZGRpbmdfc3RyYXRlZ3lfdHlwZS5wcm90bxo9Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2JyYW5kX3NhZmV0eV9zdWl0", - "YWJpbGl0eS5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2NhbXBhaWduX2V4cGVyaW1lbnRfdHlwZS5wcm90bxo8Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL2VudW1zL2NhbXBhaWduX3ByaW1hcnlfc3RhdHVzLnBy", - "b3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25f", - "cHJpbWFyeV9zdGF0dXNfcmVhc29uLnByb3RvGjxnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fc2VydmluZ19zdGF0dXMucHJvdG8a", - "NGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jYW1wYWlnbl9zdGF0", - "dXMucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9sb2Nh", - "dGlvbl9zb3VyY2VfdHlwZS5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL25lZ2F0aXZlX2dlb190YXJnZXRfdHlwZS5wcm90bxo7Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL29wdGltaXphdGlvbl9nb2Fs", - "X3R5cGUucHJvdG8aMWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9w", - "YXltZW50X21vZGUucHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcy9wZXJmb3JtYW5jZV9tYXhfdXBncmFkZV9zdGF0dXMucHJvdG8aPWdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wb3NpdGl2ZV9nZW9fdGFy", - "Z2V0X3R5cGUucHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy92YW5pdHlfcGhhcm1hX2Rpc3BsYXlfdXJsX21vZGUucHJvdG8aN2dvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy92YW5pdHlfcGhhcm1hX3RleHQu", - "cHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8i3j4KCENhbXBhaWduEkAKDXJlc291cmNl", - "X25hbWUYASABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0NhbXBhaWduEhQKAmlkGDsgASgDQgPgQQNIAYgBARIRCgRuYW1lGDogASgJ", - "SAKIAQESbAoOcHJpbWFyeV9zdGF0dXMYUSABKA4yTy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuQ2FtcGFpZ25QcmltYXJ5U3RhdHVzRW51bS5D", - "YW1wYWlnblByaW1hcnlTdGF0dXNCA+BBAxKAAQoWcHJpbWFyeV9zdGF0dXNf", - "cmVhc29ucxhSIAMoDjJbLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5DYW1wYWlnblByaW1hcnlTdGF0dXNSZWFzb25FbnVtLkNhbXBhaWduUHJp", - "bWFyeVN0YXR1c1JlYXNvbkID4EEDElEKBnN0YXR1cxgFIAEoDjJBLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DYW1wYWlnblN0YXR1c0VudW0u", - "Q2FtcGFpZ25TdGF0dXMSbAoOc2VydmluZ19zdGF0dXMYFSABKA4yTy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQ2FtcGFpZ25TZXJ2aW5nU3Rh", - "dHVzRW51bS5DYW1wYWlnblNlcnZpbmdTdGF0dXNCA+BBAxKIAQoeYmlkZGlu", - "Z19zdHJhdGVneV9zeXN0ZW1fc3RhdHVzGE4gASgOMlsuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLkJpZGRpbmdTdHJhdGVneVN5c3RlbVN0YXR1", - "c0VudW0uQmlkZGluZ1N0cmF0ZWd5U3lzdGVtU3RhdHVzQgPgQQMSgwEKHmFk", - "X3NlcnZpbmdfb3B0aW1pemF0aW9uX3N0YXR1cxgIIAEoDjJbLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5BZFNlcnZpbmdPcHRpbWl6YXRpb25T", - "dGF0dXNFbnVtLkFkU2VydmluZ09wdGltaXphdGlvblN0YXR1cxJ4ChhhZHZl", - "cnRpc2luZ19jaGFubmVsX3R5cGUYCSABKA4yUS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuQWR2ZXJ0aXNpbmdDaGFubmVsVHlwZUVudW0uQWR2", - "ZXJ0aXNpbmdDaGFubmVsVHlwZUID4EEFEoIBChxhZHZlcnRpc2luZ19jaGFu", - "bmVsX3N1Yl90eXBlGAogASgOMlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkFkdmVydGlzaW5nQ2hhbm5lbFN1YlR5cGVFbnVtLkFkdmVydGlz", - "aW5nQ2hhbm5lbFN1YlR5cGVCA+BBBRIiChV0cmFja2luZ191cmxfdGVtcGxh", - "dGUYPCABKAlIA4gBARJPChV1cmxfY3VzdG9tX3BhcmFtZXRlcnMYDCADKAsy", - "MC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkN1c3RvbVBhcmFt", - "ZXRlchJ0CiBsb2NhbF9zZXJ2aWNlc19jYW1wYWlnbl9zZXR0aW5ncxhLIAEo", - "CzJKLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFp", - "Z24uTG9jYWxTZXJ2aWNlc0NhbXBhaWduU2V0dGluZ3MSWgoZcmVhbF90aW1l", - "X2JpZGRpbmdfc2V0dGluZxgnIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5jb21tb24uUmVhbFRpbWVCaWRkaW5nU2V0dGluZxJWChBuZXR3b3Jr", - "X3NldHRpbmdzGA4gASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5DYW1wYWlnbi5OZXR3b3JrU2V0dGluZ3MSWQoNaG90ZWxfc2V0", - "dGluZxggIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQ2FtcGFpZ24uSG90ZWxTZXR0aW5nSW5mb0ID4EEFEmgKGmR5bmFtaWNf", - "c2VhcmNoX2Fkc19zZXR0aW5nGCEgASgLMkQuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbi5EeW5hbWljU2VhcmNoQWRzU2V0", - "dGluZxJWChBzaG9wcGluZ19zZXR0aW5nGCQgASgLMjwuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbi5TaG9wcGluZ1NldHRp", - "bmcSTAoRdGFyZ2V0aW5nX3NldHRpbmcYKyABKAsyMS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLlRhcmdldGluZ1NldHRpbmcSYAoQYXVkaWVu", - "Y2Vfc2V0dGluZxhJIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQ2FtcGFpZ24uQXVkaWVuY2VTZXR0aW5nQgPgQQVIBIgBARJi", - "ChdnZW9fdGFyZ2V0X3R5cGVfc2V0dGluZxgvIAEoCzJBLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ24uR2VvVGFyZ2V0VHlw", - "ZVNldHRpbmcSYQoWbG9jYWxfY2FtcGFpZ25fc2V0dGluZxgyIAEoCzJBLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ24uTG9j", - "YWxDYW1wYWlnblNldHRpbmcSXQoUYXBwX2NhbXBhaWduX3NldHRpbmcYMyAB", - "KAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBh", - "aWduLkFwcENhbXBhaWduU2V0dGluZxI+CgZsYWJlbHMYPSADKAlCLuBBA/pB", - "KAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduTGFiZWwSbwoP", - "ZXhwZXJpbWVudF90eXBlGBEgASgOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLkNhbXBhaWduRXhwZXJpbWVudFR5cGVFbnVtLkNhbXBhaWdu", - "RXhwZXJpbWVudFR5cGVCA+BBAxJFCg1iYXNlX2NhbXBhaWduGDggASgJQing", - "QQP6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkgFiAEB", - "EkoKD2NhbXBhaWduX2J1ZGdldBg+IAEoCUIs+kEpCidnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ2FtcGFpZ25CdWRnZXRIBogBARJvChViaWRkaW5nX3N0", - "cmF0ZWd5X3R5cGUYFiABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuQmlkZGluZ1N0cmF0ZWd5VHlwZUVudW0uQmlkZGluZ1N0cmF0ZWd5", - "VHlwZUID4EEDEl8KG2FjY2Vzc2libGVfYmlkZGluZ19zdHJhdGVneRhHIAEo", - "CUI64EED+kE0CjJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWNjZXNzaWJs", - "ZUJpZGRpbmdTdHJhdGVneRIXCgpzdGFydF9kYXRlGD8gASgJSAeIAQESSAoO", - "Y2FtcGFpZ25fZ3JvdXAYTCABKAlCK/pBKAomZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NhbXBhaWduR3JvdXBICIgBARIVCghlbmRfZGF0ZRhAIAEoCUgJ", - "iAEBEh0KEGZpbmFsX3VybF9zdWZmaXgYQSABKAlICogBARJKCg5mcmVxdWVu", - "Y3lfY2FwcxgoIAMoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uRnJlcXVlbmN5Q2FwRW50cnkSfgoedmlkZW9fYnJhbmRfc2FmZXR5X3N1", - "aXRhYmlsaXR5GCogASgOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLkJyYW5kU2FmZXR5U3VpdGFiaWxpdHlFbnVtLkJyYW5kU2FmZXR5U3Vp", - "dGFiaWxpdHlCA+BBAxJQCg12YW5pdHlfcGhhcm1hGCwgASgLMjkuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbi5WYW5pdHlQ", - "aGFybWESYgoWc2VsZWN0aXZlX29wdGltaXphdGlvbhgtIAEoCzJCLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ24uU2VsZWN0", - "aXZlT3B0aW1pemF0aW9uEmcKGW9wdGltaXphdGlvbl9nb2FsX3NldHRpbmcY", - "NiABKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNh", - "bXBhaWduLk9wdGltaXphdGlvbkdvYWxTZXR0aW5nElsKEHRyYWNraW5nX3Nl", - "dHRpbmcYLiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzLkNhbXBhaWduLlRyYWNraW5nU2V0dGluZ0ID4EEDElEKDHBheW1lbnRf", - "bW9kZRg0IAEoDjI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Q", - "YXltZW50TW9kZUVudW0uUGF5bWVudE1vZGUSJAoSb3B0aW1pemF0aW9uX3Nj", - "b3JlGEIgASgBQgPgQQNIC4gBARJsCiFleGNsdWRlZF9wYXJlbnRfYXNzZXRf", - "ZmllbGRfdHlwZXMYRSADKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuQXNzZXRGaWVsZFR5cGVFbnVtLkFzc2V0RmllbGRUeXBlEmYKH2V4", - "Y2x1ZGVkX3BhcmVudF9hc3NldF9zZXRfdHlwZXMYUCADKA4yPS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRTZXRUeXBlRW51bS5Bc3Nl", - "dFNldFR5cGUSIgoVdXJsX2V4cGFuc2lvbl9vcHRfb3V0GEggASgISAyIAQES", - "aAoXcGVyZm9ybWFuY2VfbWF4X3VwZ3JhZGUYTSABKAsyQi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWduLlBlcmZvcm1hbmNl", - "TWF4VXBncmFkZUID4EEDEkkKEGJpZGRpbmdfc3RyYXRlZ3kYQyABKAlCLfpB", - "KgooZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0JpZGRpbmdTdHJhdGVneUgA", - "EkEKCmNvbW1pc3Npb24YMSABKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLkNvbW1pc3Npb25IABJACgptYW51YWxfY3BhGEogASgLMiou", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5NYW51YWxDcGFIABJA", - "CgptYW51YWxfY3BjGBggASgLMiouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5NYW51YWxDcGNIABJACgptYW51YWxfY3BtGBkgASgLMiouZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5NYW51YWxDcG1IABJFCgpt", - "YW51YWxfY3B2GCUgASgLMiouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5NYW51YWxDcHZCA+BBA0gAElQKFG1heGltaXplX2NvbnZlcnNpb25z", - "GB4gASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5NYXhp", - "bWl6ZUNvbnZlcnNpb25zSAASXQoZbWF4aW1pemVfY29udmVyc2lvbl92YWx1", - "ZRgfIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uTWF4", - "aW1pemVDb252ZXJzaW9uVmFsdWVIABJACgp0YXJnZXRfY3BhGBogASgLMiou", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5UYXJnZXRDcGFIABJZ", - "Chd0YXJnZXRfaW1wcmVzc2lvbl9zaGFyZRgwIAEoCzI2Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5jb21tb24uVGFyZ2V0SW1wcmVzc2lvblNoYXJlSAAS", - "QgoLdGFyZ2V0X3JvYXMYHSABKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLlRhcmdldFJvYXNIABJECgx0YXJnZXRfc3BlbmQYGyABKAsy", - "LC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlRhcmdldFNwZW5k", - "SAASQgoLcGVyY2VudF9jcGMYIiABKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLlBlcmNlbnRDcGNIABJACgp0YXJnZXRfY3BtGCkgASgL", - "MiouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5UYXJnZXRDcG1I", - "ABqfAgoVUGVyZm9ybWFuY2VNYXhVcGdyYWRlEksKGHBlcmZvcm1hbmNlX21h", - "eF9jYW1wYWlnbhgBIAEoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ2FtcGFpZ24SRwoUcHJlX3VwZ3JhZGVfY2FtcGFpZ24YAiABKAlC", - "KeBBA/pBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduEnAK", - "BnN0YXR1cxgDIAEoDjJbLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5QZXJmb3JtYW5jZU1heFVwZ3JhZGVTdGF0dXNFbnVtLlBlcmZvcm1hbmNl", - "TWF4VXBncmFkZVN0YXR1c0ID4EEDGpkCCg9OZXR3b3JrU2V0dGluZ3MSIQoU", - "dGFyZ2V0X2dvb2dsZV9zZWFyY2gYBSABKAhIAIgBARIiChV0YXJnZXRfc2Vh", - "cmNoX25ldHdvcmsYBiABKAhIAYgBARIjChZ0YXJnZXRfY29udGVudF9uZXR3", - "b3JrGAcgASgISAKIAQESKgoddGFyZ2V0X3BhcnRuZXJfc2VhcmNoX25ldHdv", - "cmsYCCABKAhIA4gBAUIXChVfdGFyZ2V0X2dvb2dsZV9zZWFyY2hCGAoWX3Rh", - "cmdldF9zZWFyY2hfbmV0d29ya0IZChdfdGFyZ2V0X2NvbnRlbnRfbmV0d29y", - "a0IgCh5fdGFyZ2V0X3BhcnRuZXJfc2VhcmNoX25ldHdvcmsaSQoQSG90ZWxT", - "ZXR0aW5nSW5mbxIhCg9ob3RlbF9jZW50ZXJfaWQYAiABKANCA+BBBUgAiAEB", - "QhIKEF9ob3RlbF9jZW50ZXJfaWQawgEKF0R5bmFtaWNTZWFyY2hBZHNTZXR0", - "aW5nEhgKC2RvbWFpbl9uYW1lGAYgASgJQgPgQQISGgoNbGFuZ3VhZ2VfY29k", - "ZRgHIAEoCUID4EECEiMKFnVzZV9zdXBwbGllZF91cmxzX29ubHkYCCABKAhI", - "AIgBARIxCgVmZWVkcxgJIAMoCUIi+kEfCh1nb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vRmVlZEIZChdfdXNlX3N1cHBsaWVkX3VybHNfb25seRqIAgoPU2hv", - "cHBpbmdTZXR0aW5nEh0KC21lcmNoYW50X2lkGAUgASgDQgPgQQVIAIgBARIa", - "Cg1zYWxlc19jb3VudHJ5GAYgASgJSAGIAQESEgoKZmVlZF9sYWJlbBgKIAEo", - "CRIeChFjYW1wYWlnbl9wcmlvcml0eRgHIAEoBUgCiAEBEhkKDGVuYWJsZV9s", - "b2NhbBgIIAEoCEgDiAEBEiIKFXVzZV92ZWhpY2xlX2ludmVudG9yeRgJIAEo", - "CEID4EEFQg4KDF9tZXJjaGFudF9pZEIQCg5fc2FsZXNfY291bnRyeUIUChJf", - "Y2FtcGFpZ25fcHJpb3JpdHlCDwoNX2VuYWJsZV9sb2NhbBpCCg9UcmFja2lu", - "Z1NldHRpbmcSHgoMdHJhY2tpbmdfdXJsGAIgASgJQgPgQQNIAIgBAUIPCg1f", - "dHJhY2tpbmdfdXJsGvwBChRHZW9UYXJnZXRUeXBlU2V0dGluZxJxChhwb3Np", - "dGl2ZV9nZW9fdGFyZ2V0X3R5cGUYASABKA4yTy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuUG9zaXRpdmVHZW9UYXJnZXRUeXBlRW51bS5Qb3Np", - "dGl2ZUdlb1RhcmdldFR5cGUScQoYbmVnYXRpdmVfZ2VvX3RhcmdldF90eXBl", - "GAIgASgOMk8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLk5lZ2F0", - "aXZlR2VvVGFyZ2V0VHlwZUVudW0uTmVnYXRpdmVHZW9UYXJnZXRUeXBlGn8K", - "FExvY2FsQ2FtcGFpZ25TZXR0aW5nEmcKFGxvY2F0aW9uX3NvdXJjZV90eXBl", - "GAEgASgOMkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkxvY2F0", - "aW9uU291cmNlVHlwZUVudW0uTG9jYXRpb25Tb3VyY2VUeXBlGq4CChJBcHBD", - "YW1wYWlnblNldHRpbmcSjQEKGmJpZGRpbmdfc3RyYXRlZ3lfZ29hbF90eXBl", - "GAEgASgOMmkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFwcENh", - "bXBhaWduQmlkZGluZ1N0cmF0ZWd5R29hbFR5cGVFbnVtLkFwcENhbXBhaWdu", - "QmlkZGluZ1N0cmF0ZWd5R29hbFR5cGUSGAoGYXBwX2lkGAQgASgJQgPgQQVI", - "AIgBARJjCglhcHBfc3RvcmUYAyABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuQXBwQ2FtcGFpZ25BcHBTdG9yZUVudW0uQXBwQ2FtcGFp", - "Z25BcHBTdG9yZUID4EEFQgkKB19hcHBfaWQa9QEKDFZhbml0eVBoYXJtYRKB", - "AQoedmFuaXR5X3BoYXJtYV9kaXNwbGF5X3VybF9tb2RlGAEgASgOMlkuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlZhbml0eVBoYXJtYURpc3Bs", - "YXlVcmxNb2RlRW51bS5WYW5pdHlQaGFybWFEaXNwbGF5VXJsTW9kZRJhChJ2", - "YW5pdHlfcGhhcm1hX3RleHQYAiABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuVmFuaXR5UGhhcm1hVGV4dEVudW0uVmFuaXR5UGhhcm1h", - "VGV4dBpjChVTZWxlY3RpdmVPcHRpbWl6YXRpb24SSgoSY29udmVyc2lvbl9h", - "Y3Rpb25zGAIgAygJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "b252ZXJzaW9uQWN0aW9uGokBChdPcHRpbWl6YXRpb25Hb2FsU2V0dGluZxJu", - "ChdvcHRpbWl6YXRpb25fZ29hbF90eXBlcxgBIAMoDjJNLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lbnVtcy5PcHRpbWl6YXRpb25Hb2FsVHlwZUVudW0u", - "T3B0aW1pemF0aW9uR29hbFR5cGUaUgoPQXVkaWVuY2VTZXR0aW5nEiYKFHVz", - "ZV9hdWRpZW5jZV9ncm91cGVkGAEgASgIQgPgQQVIAIgBAUIXChVfdXNlX2F1", - "ZGllbmNlX2dyb3VwZWQacAodTG9jYWxTZXJ2aWNlc0NhbXBhaWduU2V0dGlu", - "Z3MSTwoNY2F0ZWdvcnlfYmlkcxgBIAMoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ24uQ2F0ZWdvcnlCaWQadQoLQ2F0", - "ZWdvcnlCaWQSGAoLY2F0ZWdvcnlfaWQYASABKAlIAIgBARIiChVtYW51YWxf", - "Y3BhX2JpZF9taWNyb3MYAiABKANIAYgBAUIOCgxfY2F0ZWdvcnlfaWRCGAoW", - "X21hbnVhbF9jcGFfYmlkX21pY3JvczpX6kFUCiFnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQ2FtcGFpZ24SL2N1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Nh", - "bXBhaWducy97Y2FtcGFpZ25faWR9QhsKGWNhbXBhaWduX2JpZGRpbmdfc3Ry", - "YXRlZ3lCBQoDX2lkQgcKBV9uYW1lQhgKFl90cmFja2luZ191cmxfdGVtcGxh", - "dGVCEwoRX2F1ZGllbmNlX3NldHRpbmdCEAoOX2Jhc2VfY2FtcGFpZ25CEgoQ", - "X2NhbXBhaWduX2J1ZGdldEINCgtfc3RhcnRfZGF0ZUIRCg9fY2FtcGFpZ25f", - "Z3JvdXBCCwoJX2VuZF9kYXRlQhMKEV9maW5hbF91cmxfc3VmZml4QhUKE19v", - "cHRpbWl6YXRpb25fc2NvcmVCGAoWX3VybF9leHBhbnNpb25fb3B0X291dEL/", - "AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCDUNh", - "bXBhaWduUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2Vz", - "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oC", - "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.BiddingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.FrequencyCapReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.RealTimeBiddingSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.TargetingSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReasonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.OptimizationGoalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PaymentModeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Parser, new[]{ "ResourceName", "Id", "Name", "PrimaryStatus", "PrimaryStatusReasons", "Status", "ServingStatus", "BiddingStrategySystemStatus", "AdServingOptimizationStatus", "AdvertisingChannelType", "AdvertisingChannelSubType", "TrackingUrlTemplate", "UrlCustomParameters", "LocalServicesCampaignSettings", "RealTimeBiddingSetting", "NetworkSettings", "HotelSetting", "DynamicSearchAdsSetting", "ShoppingSetting", "TargetingSetting", "AudienceSetting", "GeoTargetTypeSetting", "LocalCampaignSetting", "AppCampaignSetting", "Labels", "ExperimentType", "BaseCampaign", "CampaignBudget", "BiddingStrategyType", "AccessibleBiddingStrategy", "StartDate", "CampaignGroup", "EndDate", "FinalUrlSuffix", "FrequencyCaps", "VideoBrandSafetySuitability", "VanityPharma", "SelectiveOptimization", "OptimizationGoalSetting", "TrackingSetting", "PaymentMode", "OptimizationScore", "ExcludedParentAssetFieldTypes", "ExcludedParentAssetSetTypes", "UrlExpansionOptOut", "PerformanceMaxUpgrade", "BiddingStrategy", "Commission", "ManualCpa", "ManualCpc", "ManualCpm", "ManualCpv", "MaximizeConversions", "MaximizeConversionValue", "TargetCpa", "TargetImpressionShare", "TargetRoas", "TargetSpend", "PercentCpc", "TargetCpm" }, new[]{ "CampaignBiddingStrategy", "Id", "Name", "TrackingUrlTemplate", "AudienceSetting", "BaseCampaign", "CampaignBudget", "StartDate", "CampaignGroup", "EndDate", "FinalUrlSuffix", "OptimizationScore", "UrlExpansionOptOut" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.PerformanceMaxUpgrade), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.PerformanceMaxUpgrade.Parser, new[]{ "PerformanceMaxCampaign", "PreUpgradeCampaign", "Status" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.NetworkSettings), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.NetworkSettings.Parser, new[]{ "TargetGoogleSearch", "TargetSearchNetwork", "TargetContentNetwork", "TargetPartnerSearchNetwork" }, new[]{ "TargetGoogleSearch", "TargetSearchNetwork", "TargetContentNetwork", "TargetPartnerSearchNetwork" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.HotelSettingInfo), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.HotelSettingInfo.Parser, new[]{ "HotelCenterId" }, new[]{ "HotelCenterId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.DynamicSearchAdsSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.DynamicSearchAdsSetting.Parser, new[]{ "DomainName", "LanguageCode", "UseSuppliedUrlsOnly", "Feeds" }, new[]{ "UseSuppliedUrlsOnly" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.ShoppingSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.ShoppingSetting.Parser, new[]{ "MerchantId", "SalesCountry", "FeedLabel", "CampaignPriority", "EnableLocal", "UseVehicleInventory" }, new[]{ "MerchantId", "SalesCountry", "CampaignPriority", "EnableLocal" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.TrackingSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.TrackingSetting.Parser, new[]{ "TrackingUrl" }, new[]{ "TrackingUrl" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.GeoTargetTypeSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.GeoTargetTypeSetting.Parser, new[]{ "PositiveGeoTargetType", "NegativeGeoTargetType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalCampaignSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalCampaignSetting.Parser, new[]{ "LocationSourceType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AppCampaignSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AppCampaignSetting.Parser, new[]{ "BiddingStrategyGoalType", "AppId", "AppStore" }, new[]{ "AppId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.VanityPharma), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.VanityPharma.Parser, new[]{ "VanityPharmaDisplayUrlMode", "VanityPharmaText" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.SelectiveOptimization), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.SelectiveOptimization.Parser, new[]{ "ConversionActions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.OptimizationGoalSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.OptimizationGoalSetting.Parser, new[]{ "OptimizationGoalTypes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AudienceSetting), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AudienceSetting.Parser, new[]{ "UseAudienceGrouped" }, new[]{ "UseAudienceGrouped" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalServicesCampaignSettings), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalServicesCampaignSettings.Parser, new[]{ "CategoryBids" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.CategoryBid), global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.CategoryBid.Parser, new[]{ "CategoryId", "ManualCpaBidMicros" }, new[]{ "CategoryId", "ManualCpaBidMicros" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign. - /// - public sealed partial class Campaign : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Campaign()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaign() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaign(Campaign other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - primaryStatus_ = other.primaryStatus_; - primaryStatusReasons_ = other.primaryStatusReasons_.Clone(); - status_ = other.status_; - servingStatus_ = other.servingStatus_; - biddingStrategySystemStatus_ = other.biddingStrategySystemStatus_; - adServingOptimizationStatus_ = other.adServingOptimizationStatus_; - advertisingChannelType_ = other.advertisingChannelType_; - advertisingChannelSubType_ = other.advertisingChannelSubType_; - trackingUrlTemplate_ = other.trackingUrlTemplate_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - localServicesCampaignSettings_ = other.localServicesCampaignSettings_ != null ? other.localServicesCampaignSettings_.Clone() : null; - realTimeBiddingSetting_ = other.realTimeBiddingSetting_ != null ? other.realTimeBiddingSetting_.Clone() : null; - networkSettings_ = other.networkSettings_ != null ? other.networkSettings_.Clone() : null; - hotelSetting_ = other.hotelSetting_ != null ? other.hotelSetting_.Clone() : null; - dynamicSearchAdsSetting_ = other.dynamicSearchAdsSetting_ != null ? other.dynamicSearchAdsSetting_.Clone() : null; - shoppingSetting_ = other.shoppingSetting_ != null ? other.shoppingSetting_.Clone() : null; - targetingSetting_ = other.targetingSetting_ != null ? other.targetingSetting_.Clone() : null; - audienceSetting_ = other.audienceSetting_ != null ? other.audienceSetting_.Clone() : null; - geoTargetTypeSetting_ = other.geoTargetTypeSetting_ != null ? other.geoTargetTypeSetting_.Clone() : null; - localCampaignSetting_ = other.localCampaignSetting_ != null ? other.localCampaignSetting_.Clone() : null; - appCampaignSetting_ = other.appCampaignSetting_ != null ? other.appCampaignSetting_.Clone() : null; - labels_ = other.labels_.Clone(); - experimentType_ = other.experimentType_; - baseCampaign_ = other.baseCampaign_; - campaignBudget_ = other.campaignBudget_; - biddingStrategyType_ = other.biddingStrategyType_; - accessibleBiddingStrategy_ = other.accessibleBiddingStrategy_; - startDate_ = other.startDate_; - campaignGroup_ = other.campaignGroup_; - endDate_ = other.endDate_; - finalUrlSuffix_ = other.finalUrlSuffix_; - frequencyCaps_ = other.frequencyCaps_.Clone(); - videoBrandSafetySuitability_ = other.videoBrandSafetySuitability_; - vanityPharma_ = other.vanityPharma_ != null ? other.vanityPharma_.Clone() : null; - selectiveOptimization_ = other.selectiveOptimization_ != null ? other.selectiveOptimization_.Clone() : null; - optimizationGoalSetting_ = other.optimizationGoalSetting_ != null ? other.optimizationGoalSetting_.Clone() : null; - trackingSetting_ = other.trackingSetting_ != null ? other.trackingSetting_.Clone() : null; - paymentMode_ = other.paymentMode_; - optimizationScore_ = other.optimizationScore_; - excludedParentAssetFieldTypes_ = other.excludedParentAssetFieldTypes_.Clone(); - excludedParentAssetSetTypes_ = other.excludedParentAssetSetTypes_.Clone(); - urlExpansionOptOut_ = other.urlExpansionOptOut_; - performanceMaxUpgrade_ = other.performanceMaxUpgrade_ != null ? other.performanceMaxUpgrade_.Clone() : null; - switch (other.CampaignBiddingStrategyCase) { - case CampaignBiddingStrategyOneofCase.BiddingStrategy: - BiddingStrategy = other.BiddingStrategy; - break; - case CampaignBiddingStrategyOneofCase.Commission: - Commission = other.Commission.Clone(); - break; - case CampaignBiddingStrategyOneofCase.ManualCpa: - ManualCpa = other.ManualCpa.Clone(); - break; - case CampaignBiddingStrategyOneofCase.ManualCpc: - ManualCpc = other.ManualCpc.Clone(); - break; - case CampaignBiddingStrategyOneofCase.ManualCpm: - ManualCpm = other.ManualCpm.Clone(); - break; - case CampaignBiddingStrategyOneofCase.ManualCpv: - ManualCpv = other.ManualCpv.Clone(); - break; - case CampaignBiddingStrategyOneofCase.MaximizeConversions: - MaximizeConversions = other.MaximizeConversions.Clone(); - break; - case CampaignBiddingStrategyOneofCase.MaximizeConversionValue: - MaximizeConversionValue = other.MaximizeConversionValue.Clone(); - break; - case CampaignBiddingStrategyOneofCase.TargetCpa: - TargetCpa = other.TargetCpa.Clone(); - break; - case CampaignBiddingStrategyOneofCase.TargetImpressionShare: - TargetImpressionShare = other.TargetImpressionShare.Clone(); - break; - case CampaignBiddingStrategyOneofCase.TargetRoas: - TargetRoas = other.TargetRoas.Clone(); - break; - case CampaignBiddingStrategyOneofCase.TargetSpend: - TargetSpend = other.TargetSpend.Clone(); - break; - case CampaignBiddingStrategyOneofCase.PercentCpc: - PercentCpc = other.PercentCpc.Clone(); - break; - case CampaignBiddingStrategyOneofCase.TargetCpm: - TargetCpm = other.TargetCpm.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Campaign Clone() { - return new Campaign(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign. - /// Campaign resource names have the form: - /// - /// `customers/{customer_id}/campaigns/{campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 59; - private long id_; - /// - /// Output only. The ID of the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 58; - private string name_; - /// - /// The name of the campaign. - /// - /// This field is required and should not be empty when creating new - /// campaigns. - /// - /// It must not contain any null (code point 0x0), NL line feed - /// (code point 0xA) or carriage return (code point 0xD) characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "primary_status" field. - public const int PrimaryStatusFieldNumber = 81; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus primaryStatus_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus.Unspecified; - /// - /// Output only. The primary status of the campaign. - /// - /// Provides insight into why a campaign is not serving or not serving - /// optimally. Modification to the campaign and its related entities might take - /// a while to be reflected in this status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus PrimaryStatus { - get { return primaryStatus_; } - set { - primaryStatus_ = value; - } - } - - /// Field number for the "primary_status_reasons" field. - public const int PrimaryStatusReasonsFieldNumber = 82; - private static readonly pb::FieldCodec _repeated_primaryStatusReasons_codec - = pb::FieldCodec.ForEnum(658, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReasonEnum.Types.CampaignPrimaryStatusReason) x); - private readonly pbc::RepeatedField primaryStatusReasons_ = new pbc::RepeatedField(); - /// - /// Output only. The primary status reasons of the campaign. - /// - /// Provides insight into why a campaign is not serving or not serving - /// optimally. These reasons are aggregated to determine an overall - /// CampaignPrimaryStatus. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PrimaryStatusReasons { - get { return primaryStatusReasons_; } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus.Unspecified; - /// - /// The status of the campaign. - /// - /// When a new campaign is added, the status defaults to ENABLED. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "serving_status" field. - public const int ServingStatusFieldNumber = 21; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus servingStatus_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus.Unspecified; - /// - /// Output only. The ad serving status of the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus ServingStatus { - get { return servingStatus_; } - set { - servingStatus_ = value; - } - } - - /// Field number for the "bidding_strategy_system_status" field. - public const int BiddingStrategySystemStatusFieldNumber = 78; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus biddingStrategySystemStatus_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus.Unspecified; - /// - /// Output only. The system status of the campaign's bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus BiddingStrategySystemStatus { - get { return biddingStrategySystemStatus_; } - set { - biddingStrategySystemStatus_ = value; - } - } - - /// Field number for the "ad_serving_optimization_status" field. - public const int AdServingOptimizationStatusFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus adServingOptimizationStatus_ = global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus.Unspecified; - /// - /// The ad serving optimization status of the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus AdServingOptimizationStatus { - get { return adServingOptimizationStatus_; } - set { - adServingOptimizationStatus_ = value; - } - } - - /// Field number for the "advertising_channel_type" field. - public const int AdvertisingChannelTypeFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType advertisingChannelType_ = global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified; - /// - /// Immutable. The primary serving target for ads within the campaign. - /// The targeting options can be refined in `network_settings`. - /// - /// This field is required and should not be empty when creating new - /// campaigns. - /// - /// Can be set only when creating campaigns. - /// After the campaign is created, the field can not be changed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType AdvertisingChannelType { - get { return advertisingChannelType_; } - set { - advertisingChannelType_ = value; - } - } - - /// Field number for the "advertising_channel_sub_type" field. - public const int AdvertisingChannelSubTypeFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType advertisingChannelSubType_ = global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType.Unspecified; - /// - /// Immutable. Optional refinement to `advertising_channel_type`. - /// Must be a valid sub-type of the parent channel type. - /// - /// Can be set only when creating campaigns. - /// After campaign is created, the field can not be changed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType AdvertisingChannelSubType { - get { return advertisingChannelSubType_; } - set { - advertisingChannelSubType_ = value; - } - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 60; - private string trackingUrlTemplate_; - /// - /// The URL template for constructing a tracking URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(98, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// The list of mappings used to substitute custom parameter tags in a - /// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "local_services_campaign_settings" field. - public const int LocalServicesCampaignSettingsFieldNumber = 75; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalServicesCampaignSettings localServicesCampaignSettings_; - /// - /// The Local Services Campaign related settings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalServicesCampaignSettings LocalServicesCampaignSettings { - get { return localServicesCampaignSettings_; } - set { - localServicesCampaignSettings_ = value; - } - } - - /// Field number for the "real_time_bidding_setting" field. - public const int RealTimeBiddingSettingFieldNumber = 39; - private global::Google.Ads.GoogleAds.V12.Common.RealTimeBiddingSetting realTimeBiddingSetting_; - /// - /// Settings for Real-Time Bidding, a feature only available for campaigns - /// targeting the Ad Exchange network. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.RealTimeBiddingSetting RealTimeBiddingSetting { - get { return realTimeBiddingSetting_; } - set { - realTimeBiddingSetting_ = value; - } - } - - /// Field number for the "network_settings" field. - public const int NetworkSettingsFieldNumber = 14; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.NetworkSettings networkSettings_; - /// - /// The network settings for the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.NetworkSettings NetworkSettings { - get { return networkSettings_; } - set { - networkSettings_ = value; - } - } - - /// Field number for the "hotel_setting" field. - public const int HotelSettingFieldNumber = 32; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.HotelSettingInfo hotelSetting_; - /// - /// Immutable. The hotel setting for the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.HotelSettingInfo HotelSetting { - get { return hotelSetting_; } - set { - hotelSetting_ = value; - } - } - - /// Field number for the "dynamic_search_ads_setting" field. - public const int DynamicSearchAdsSettingFieldNumber = 33; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.DynamicSearchAdsSetting dynamicSearchAdsSetting_; - /// - /// The setting for controlling Dynamic Search Ads (DSA). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.DynamicSearchAdsSetting DynamicSearchAdsSetting { - get { return dynamicSearchAdsSetting_; } - set { - dynamicSearchAdsSetting_ = value; - } - } - - /// Field number for the "shopping_setting" field. - public const int ShoppingSettingFieldNumber = 36; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.ShoppingSetting shoppingSetting_; - /// - /// The setting for controlling Shopping campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.ShoppingSetting ShoppingSetting { - get { return shoppingSetting_; } - set { - shoppingSetting_ = value; - } - } - - /// Field number for the "targeting_setting" field. - public const int TargetingSettingFieldNumber = 43; - private global::Google.Ads.GoogleAds.V12.Common.TargetingSetting targetingSetting_; - /// - /// Setting for targeting related features. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetingSetting TargetingSetting { - get { return targetingSetting_; } - set { - targetingSetting_ = value; - } - } - - /// Field number for the "audience_setting" field. - public const int AudienceSettingFieldNumber = 73; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AudienceSetting audienceSetting_; - /// - /// Immutable. Setting for audience related features. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AudienceSetting AudienceSetting { - get { return audienceSetting_; } - set { - audienceSetting_ = value; - } - } - - /// Field number for the "geo_target_type_setting" field. - public const int GeoTargetTypeSettingFieldNumber = 47; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.GeoTargetTypeSetting geoTargetTypeSetting_; - /// - /// The setting for ads geotargeting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.GeoTargetTypeSetting GeoTargetTypeSetting { - get { return geoTargetTypeSetting_; } - set { - geoTargetTypeSetting_ = value; - } - } - - /// Field number for the "local_campaign_setting" field. - public const int LocalCampaignSettingFieldNumber = 50; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalCampaignSetting localCampaignSetting_; - /// - /// The setting for local campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalCampaignSetting LocalCampaignSetting { - get { return localCampaignSetting_; } - set { - localCampaignSetting_ = value; - } - } - - /// Field number for the "app_campaign_setting" field. - public const int AppCampaignSettingFieldNumber = 51; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AppCampaignSetting appCampaignSetting_; - /// - /// The setting related to App Campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AppCampaignSetting AppCampaignSetting { - get { return appCampaignSetting_; } - set { - appCampaignSetting_ = value; - } - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 61; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForString(490); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); - /// - /// Output only. The resource names of labels attached to this campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } - } - - /// Field number for the "experiment_type" field. - public const int ExperimentTypeFieldNumber = 17; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType experimentType_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType.Unspecified; - /// - /// Output only. The type of campaign: normal, draft, or experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType ExperimentType { - get { return experimentType_; } - set { - experimentType_ = value; - } - } - - /// Field number for the "base_campaign" field. - public const int BaseCampaignFieldNumber = 56; - private string baseCampaign_; - /// - /// Output only. The resource name of the base campaign of a draft or experiment campaign. - /// For base campaigns, this is equal to `resource_name`. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BaseCampaign { - get { return baseCampaign_ ?? ""; } - set { - baseCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "base_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBaseCampaign { - get { return baseCampaign_ != null; } - } - /// Clears the value of the "base_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBaseCampaign() { - baseCampaign_ = null; - } - - /// Field number for the "campaign_budget" field. - public const int CampaignBudgetFieldNumber = 62; - private string campaignBudget_; - /// - /// The budget of the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignBudget { - get { return campaignBudget_ ?? ""; } - set { - campaignBudget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign_budget" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignBudget { - get { return campaignBudget_ != null; } - } - /// Clears the value of the "campaign_budget" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignBudget() { - campaignBudget_ = null; - } - - /// Field number for the "bidding_strategy_type" field. - public const int BiddingStrategyTypeFieldNumber = 22; - private global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType biddingStrategyType_ = global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified; - /// - /// Output only. The type of bidding strategy. - /// - /// A bidding strategy can be created by setting either the bidding scheme to - /// create a standard bidding strategy or the `bidding_strategy` field to - /// create a portfolio bidding strategy. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType BiddingStrategyType { - get { return biddingStrategyType_; } - set { - biddingStrategyType_ = value; - } - } - - /// Field number for the "accessible_bidding_strategy" field. - public const int AccessibleBiddingStrategyFieldNumber = 71; - private string accessibleBiddingStrategy_ = ""; - /// - /// Output only. Resource name of AccessibleBiddingStrategy, a read-only view of the - /// unrestricted attributes of the attached portfolio bidding - /// strategy identified by 'bidding_strategy'. Empty, if the campaign does not - /// use a portfolio strategy. - /// Unrestricted strategy attributes are available to all customers - /// with whom the strategy is shared and are read from the - /// AccessibleBiddingStrategy resource. In contrast, restricted attributes are - /// only available to the owner customer of the strategy and their managers. - /// Restricted attributes can only be read from the BiddingStrategy resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccessibleBiddingStrategy { - get { return accessibleBiddingStrategy_; } - set { - accessibleBiddingStrategy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 63; - private string startDate_; - /// - /// The date when campaign started in serving customer's timezone in YYYY-MM-DD - /// format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_ ?? ""; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDate { - get { return startDate_ != null; } - } - /// Clears the value of the "start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDate() { - startDate_ = null; - } - - /// Field number for the "campaign_group" field. - public const int CampaignGroupFieldNumber = 76; - private string campaignGroup_; - /// - /// The campaign group this campaign belongs to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignGroup { - get { return campaignGroup_ ?? ""; } - set { - campaignGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignGroup { - get { return campaignGroup_ != null; } - } - /// Clears the value of the "campaign_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignGroup() { - campaignGroup_ = null; - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 64; - private string endDate_; - /// - /// The last day of the campaign in serving customer's timezone in YYYY-MM-DD - /// format. On create, defaults to 2037-12-30, which means the campaign will - /// run indefinitely. To set an existing campaign to run indefinitely, set this - /// field to 2037-12-30. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_ ?? ""; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDate { - get { return endDate_ != null; } - } - /// Clears the value of the "end_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDate() { - endDate_ = null; - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 65; - private string finalUrlSuffix_; - /// - /// Suffix used to append query parameters to landing pages that are served - /// with parallel tracking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - /// Field number for the "frequency_caps" field. - public const int FrequencyCapsFieldNumber = 40; - private static readonly pb::FieldCodec _repeated_frequencyCaps_codec - = pb::FieldCodec.ForMessage(322, global::Google.Ads.GoogleAds.V12.Common.FrequencyCapEntry.Parser); - private readonly pbc::RepeatedField frequencyCaps_ = new pbc::RepeatedField(); - /// - /// A list that limits how often each user will see this campaign's ads. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FrequencyCaps { - get { return frequencyCaps_; } - } - - /// Field number for the "video_brand_safety_suitability" field. - public const int VideoBrandSafetySuitabilityFieldNumber = 42; - private global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability videoBrandSafetySuitability_ = global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability.Unspecified; - /// - /// Output only. 3-Tier Brand Safety setting for the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability VideoBrandSafetySuitability { - get { return videoBrandSafetySuitability_; } - set { - videoBrandSafetySuitability_ = value; - } - } - - /// Field number for the "vanity_pharma" field. - public const int VanityPharmaFieldNumber = 44; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.VanityPharma vanityPharma_; - /// - /// Describes how unbranded pharma ads will be displayed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.VanityPharma VanityPharma { - get { return vanityPharma_; } - set { - vanityPharma_ = value; - } - } - - /// Field number for the "selective_optimization" field. - public const int SelectiveOptimizationFieldNumber = 45; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.SelectiveOptimization selectiveOptimization_; - /// - /// Selective optimization setting for this campaign, which includes a set of - /// conversion actions to optimize this campaign towards. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.SelectiveOptimization SelectiveOptimization { - get { return selectiveOptimization_; } - set { - selectiveOptimization_ = value; - } - } - - /// Field number for the "optimization_goal_setting" field. - public const int OptimizationGoalSettingFieldNumber = 54; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.OptimizationGoalSetting optimizationGoalSetting_; - /// - /// Optimization goal setting for this campaign, which includes a set of - /// optimization goal types. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.OptimizationGoalSetting OptimizationGoalSetting { - get { return optimizationGoalSetting_; } - set { - optimizationGoalSetting_ = value; - } - } - - /// Field number for the "tracking_setting" field. - public const int TrackingSettingFieldNumber = 46; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.TrackingSetting trackingSetting_; - /// - /// Output only. Campaign-level settings for tracking information. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.TrackingSetting TrackingSetting { - get { return trackingSetting_; } - set { - trackingSetting_ = value; - } - } - - /// Field number for the "payment_mode" field. - public const int PaymentModeFieldNumber = 52; - private global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode paymentMode_ = global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode.Unspecified; - /// - /// Payment mode for the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode PaymentMode { - get { return paymentMode_; } - set { - paymentMode_ = value; - } - } - - /// Field number for the "optimization_score" field. - public const int OptimizationScoreFieldNumber = 66; - private double optimizationScore_; - /// - /// Output only. Optimization score of the campaign. - /// - /// Optimization score is an estimate of how well a campaign is set to perform. - /// It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the - /// campaign is performing at full potential. This field is null for unscored - /// campaigns. - /// - /// See "About optimization score" at - /// https://support.google.com/google-ads/answer/9061546. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double OptimizationScore { - get { if ((_hasBits0 & 2) != 0) { return optimizationScore_; } else { return 0D; } } - set { - _hasBits0 |= 2; - optimizationScore_ = value; - } - } - /// Gets whether the "optimization_score" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOptimizationScore { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "optimization_score" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOptimizationScore() { - _hasBits0 &= ~2; - } - - /// Field number for the "excluded_parent_asset_field_types" field. - public const int ExcludedParentAssetFieldTypesFieldNumber = 69; - private static readonly pb::FieldCodec _repeated_excludedParentAssetFieldTypes_codec - = pb::FieldCodec.ForEnum(554, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) x); - private readonly pbc::RepeatedField excludedParentAssetFieldTypes_ = new pbc::RepeatedField(); - /// - /// The asset field types that should be excluded from this campaign. Asset - /// links with these field types will not be inherited by this campaign from - /// the upper level. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExcludedParentAssetFieldTypes { - get { return excludedParentAssetFieldTypes_; } - } - - /// Field number for the "excluded_parent_asset_set_types" field. - public const int ExcludedParentAssetSetTypesFieldNumber = 80; - private static readonly pb::FieldCodec _repeated_excludedParentAssetSetTypes_codec - = pb::FieldCodec.ForEnum(642, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AssetSetTypeEnum.Types.AssetSetType) x); - private readonly pbc::RepeatedField excludedParentAssetSetTypes_ = new pbc::RepeatedField(); - /// - /// The asset set types that should be excluded from this campaign. Asset set - /// links with these types will not be inherited by this campaign from - /// the upper level. - /// Location group types (GMB_DYNAMIC_LOCATION_GROUP, - /// CHAIN_DYNAMIC_LOCATION_GROUP, and STATIC_LOCATION_GROUP) are child types of - /// LOCATION_SYNC. Therefore, if LOCATION_SYNC is set for this field, all - /// location group asset sets are not allowed to be linked to this campaign, - /// and all Location Extension (LE) and Affiliate Location Extensions (ALE) - /// will not be served under this campaign. - /// Only LOCATION_SYNC is currently supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExcludedParentAssetSetTypes { - get { return excludedParentAssetSetTypes_; } - } - - /// Field number for the "url_expansion_opt_out" field. - public const int UrlExpansionOptOutFieldNumber = 72; - private bool urlExpansionOptOut_; - /// - /// Represents opting out of URL expansion to more targeted URLs. If opted out - /// (true), only the final URLs in the asset group or URLs specified in the - /// advertiser's Google Merchant Center or business data feeds are targeted. - /// If opted in (false), the entire domain will be targeted. This field can - /// only be set for Performance Max campaigns, where the default value is - /// false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool UrlExpansionOptOut { - get { if ((_hasBits0 & 4) != 0) { return urlExpansionOptOut_; } else { return false; } } - set { - _hasBits0 |= 4; - urlExpansionOptOut_ = value; - } - } - /// Gets whether the "url_expansion_opt_out" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUrlExpansionOptOut { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "url_expansion_opt_out" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUrlExpansionOptOut() { - _hasBits0 &= ~4; - } - - /// Field number for the "performance_max_upgrade" field. - public const int PerformanceMaxUpgradeFieldNumber = 77; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.PerformanceMaxUpgrade performanceMaxUpgrade_; - /// - /// Output only. Information about campaigns being upgraded to Performance Max. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.PerformanceMaxUpgrade PerformanceMaxUpgrade { - get { return performanceMaxUpgrade_; } - set { - performanceMaxUpgrade_ = value; - } - } - - /// Field number for the "bidding_strategy" field. - public const int BiddingStrategyFieldNumber = 67; - /// - /// Portfolio bidding strategy used by campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BiddingStrategy { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.BiddingStrategy ? (string) campaignBiddingStrategy_ : ""; } - set { - campaignBiddingStrategy_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - campaignBiddingStrategyCase_ = CampaignBiddingStrategyOneofCase.BiddingStrategy; - } - } - - /// Field number for the "commission" field. - public const int CommissionFieldNumber = 49; - /// - /// Commission is an automatic bidding strategy in which the advertiser pays - /// a certain portion of the conversion value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Commission Commission { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.Commission ? (global::Google.Ads.GoogleAds.V12.Common.Commission) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.Commission; - } - } - - /// Field number for the "manual_cpa" field. - public const int ManualCpaFieldNumber = 74; - /// - /// Standard Manual CPA bidding strategy. - /// Manual bidding strategy that allows advertiser to set the bid per - /// advertiser-specified action. Supported only for Local Services campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ManualCpa ManualCpa { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpa ? (global::Google.Ads.GoogleAds.V12.Common.ManualCpa) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.ManualCpa; - } - } - - /// Field number for the "manual_cpc" field. - public const int ManualCpcFieldNumber = 24; - /// - /// Standard Manual CPC bidding strategy. - /// Manual click-based bidding where user pays per click. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ManualCpc ManualCpc { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpc ? (global::Google.Ads.GoogleAds.V12.Common.ManualCpc) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.ManualCpc; - } - } - - /// Field number for the "manual_cpm" field. - public const int ManualCpmFieldNumber = 25; - /// - /// Standard Manual CPM bidding strategy. - /// Manual impression-based bidding where user pays per thousand - /// impressions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ManualCpm ManualCpm { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpm ? (global::Google.Ads.GoogleAds.V12.Common.ManualCpm) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.ManualCpm; - } - } - - /// Field number for the "manual_cpv" field. - public const int ManualCpvFieldNumber = 37; - /// - /// Output only. A bidding strategy that pays a configurable amount per video view. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ManualCpv ManualCpv { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpv ? (global::Google.Ads.GoogleAds.V12.Common.ManualCpv) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.ManualCpv; - } - } - - /// Field number for the "maximize_conversions" field. - public const int MaximizeConversionsFieldNumber = 30; - /// - /// Standard Maximize Conversions bidding strategy that automatically - /// maximizes number of conversions while spending your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions MaximizeConversions { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversions ? (global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.MaximizeConversions; - } - } - - /// Field number for the "maximize_conversion_value" field. - public const int MaximizeConversionValueFieldNumber = 31; - /// - /// Standard Maximize Conversion Value bidding strategy that automatically - /// sets bids to maximize revenue while spending your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue MaximizeConversionValue { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversionValue ? (global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.MaximizeConversionValue; - } - } - - /// Field number for the "target_cpa" field. - public const int TargetCpaFieldNumber = 26; - /// - /// Standard Target CPA bidding strategy that automatically sets bids to - /// help get as many conversions as possible at the target - /// cost-per-acquisition (CPA) you set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetCpa TargetCpa { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpa ? (global::Google.Ads.GoogleAds.V12.Common.TargetCpa) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.TargetCpa; - } - } - - /// Field number for the "target_impression_share" field. - public const int TargetImpressionShareFieldNumber = 48; - /// - /// Target Impression Share bidding strategy. An automated bidding strategy - /// that sets bids to achieve a chosen percentage of impressions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare TargetImpressionShare { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetImpressionShare ? (global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.TargetImpressionShare; - } - } - - /// Field number for the "target_roas" field. - public const int TargetRoasFieldNumber = 29; - /// - /// Standard Target ROAS bidding strategy that automatically maximizes - /// revenue while averaging a specific target return on ad spend (ROAS). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetRoas TargetRoas { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetRoas ? (global::Google.Ads.GoogleAds.V12.Common.TargetRoas) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.TargetRoas; - } - } - - /// Field number for the "target_spend" field. - public const int TargetSpendFieldNumber = 27; - /// - /// Standard Target Spend bidding strategy that automatically sets your bids - /// to help get as many clicks as possible within your budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetSpend TargetSpend { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetSpend ? (global::Google.Ads.GoogleAds.V12.Common.TargetSpend) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.TargetSpend; - } - } - - /// Field number for the "percent_cpc" field. - public const int PercentCpcFieldNumber = 34; - /// - /// Standard Percent Cpc bidding strategy where bids are a fraction of the - /// advertised price for some good or service. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PercentCpc PercentCpc { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.PercentCpc ? (global::Google.Ads.GoogleAds.V12.Common.PercentCpc) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.PercentCpc; - } - } - - /// Field number for the "target_cpm" field. - public const int TargetCpmFieldNumber = 41; - /// - /// A bidding strategy that automatically optimizes cost per thousand - /// impressions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetCpm TargetCpm { - get { return campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpm ? (global::Google.Ads.GoogleAds.V12.Common.TargetCpm) campaignBiddingStrategy_ : null; } - set { - campaignBiddingStrategy_ = value; - campaignBiddingStrategyCase_ = value == null ? CampaignBiddingStrategyOneofCase.None : CampaignBiddingStrategyOneofCase.TargetCpm; - } - } - - private object campaignBiddingStrategy_; - /// Enum of possible cases for the "campaign_bidding_strategy" oneof. - public enum CampaignBiddingStrategyOneofCase { - None = 0, - BiddingStrategy = 67, - Commission = 49, - ManualCpa = 74, - ManualCpc = 24, - ManualCpm = 25, - ManualCpv = 37, - MaximizeConversions = 30, - MaximizeConversionValue = 31, - TargetCpa = 26, - TargetImpressionShare = 48, - TargetRoas = 29, - TargetSpend = 27, - PercentCpc = 34, - TargetCpm = 41, - } - private CampaignBiddingStrategyOneofCase campaignBiddingStrategyCase_ = CampaignBiddingStrategyOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBiddingStrategyOneofCase CampaignBiddingStrategyCase { - get { return campaignBiddingStrategyCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignBiddingStrategy() { - campaignBiddingStrategyCase_ = CampaignBiddingStrategyOneofCase.None; - campaignBiddingStrategy_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Campaign); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Campaign other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (PrimaryStatus != other.PrimaryStatus) return false; - if(!primaryStatusReasons_.Equals(other.primaryStatusReasons_)) return false; - if (Status != other.Status) return false; - if (ServingStatus != other.ServingStatus) return false; - if (BiddingStrategySystemStatus != other.BiddingStrategySystemStatus) return false; - if (AdServingOptimizationStatus != other.AdServingOptimizationStatus) return false; - if (AdvertisingChannelType != other.AdvertisingChannelType) return false; - if (AdvertisingChannelSubType != other.AdvertisingChannelSubType) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (!object.Equals(LocalServicesCampaignSettings, other.LocalServicesCampaignSettings)) return false; - if (!object.Equals(RealTimeBiddingSetting, other.RealTimeBiddingSetting)) return false; - if (!object.Equals(NetworkSettings, other.NetworkSettings)) return false; - if (!object.Equals(HotelSetting, other.HotelSetting)) return false; - if (!object.Equals(DynamicSearchAdsSetting, other.DynamicSearchAdsSetting)) return false; - if (!object.Equals(ShoppingSetting, other.ShoppingSetting)) return false; - if (!object.Equals(TargetingSetting, other.TargetingSetting)) return false; - if (!object.Equals(AudienceSetting, other.AudienceSetting)) return false; - if (!object.Equals(GeoTargetTypeSetting, other.GeoTargetTypeSetting)) return false; - if (!object.Equals(LocalCampaignSetting, other.LocalCampaignSetting)) return false; - if (!object.Equals(AppCampaignSetting, other.AppCampaignSetting)) return false; - if(!labels_.Equals(other.labels_)) return false; - if (ExperimentType != other.ExperimentType) return false; - if (BaseCampaign != other.BaseCampaign) return false; - if (CampaignBudget != other.CampaignBudget) return false; - if (BiddingStrategyType != other.BiddingStrategyType) return false; - if (AccessibleBiddingStrategy != other.AccessibleBiddingStrategy) return false; - if (StartDate != other.StartDate) return false; - if (CampaignGroup != other.CampaignGroup) return false; - if (EndDate != other.EndDate) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - if(!frequencyCaps_.Equals(other.frequencyCaps_)) return false; - if (VideoBrandSafetySuitability != other.VideoBrandSafetySuitability) return false; - if (!object.Equals(VanityPharma, other.VanityPharma)) return false; - if (!object.Equals(SelectiveOptimization, other.SelectiveOptimization)) return false; - if (!object.Equals(OptimizationGoalSetting, other.OptimizationGoalSetting)) return false; - if (!object.Equals(TrackingSetting, other.TrackingSetting)) return false; - if (PaymentMode != other.PaymentMode) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptimizationScore, other.OptimizationScore)) return false; - if(!excludedParentAssetFieldTypes_.Equals(other.excludedParentAssetFieldTypes_)) return false; - if(!excludedParentAssetSetTypes_.Equals(other.excludedParentAssetSetTypes_)) return false; - if (UrlExpansionOptOut != other.UrlExpansionOptOut) return false; - if (!object.Equals(PerformanceMaxUpgrade, other.PerformanceMaxUpgrade)) return false; - if (BiddingStrategy != other.BiddingStrategy) return false; - if (!object.Equals(Commission, other.Commission)) return false; - if (!object.Equals(ManualCpa, other.ManualCpa)) return false; - if (!object.Equals(ManualCpc, other.ManualCpc)) return false; - if (!object.Equals(ManualCpm, other.ManualCpm)) return false; - if (!object.Equals(ManualCpv, other.ManualCpv)) return false; - if (!object.Equals(MaximizeConversions, other.MaximizeConversions)) return false; - if (!object.Equals(MaximizeConversionValue, other.MaximizeConversionValue)) return false; - if (!object.Equals(TargetCpa, other.TargetCpa)) return false; - if (!object.Equals(TargetImpressionShare, other.TargetImpressionShare)) return false; - if (!object.Equals(TargetRoas, other.TargetRoas)) return false; - if (!object.Equals(TargetSpend, other.TargetSpend)) return false; - if (!object.Equals(PercentCpc, other.PercentCpc)) return false; - if (!object.Equals(TargetCpm, other.TargetCpm)) return false; - if (CampaignBiddingStrategyCase != other.CampaignBiddingStrategyCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (PrimaryStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus.Unspecified) hash ^= PrimaryStatus.GetHashCode(); - hash ^= primaryStatusReasons_.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus.Unspecified) hash ^= Status.GetHashCode(); - if (ServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus.Unspecified) hash ^= ServingStatus.GetHashCode(); - if (BiddingStrategySystemStatus != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus.Unspecified) hash ^= BiddingStrategySystemStatus.GetHashCode(); - if (AdServingOptimizationStatus != global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus.Unspecified) hash ^= AdServingOptimizationStatus.GetHashCode(); - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) hash ^= AdvertisingChannelType.GetHashCode(); - if (AdvertisingChannelSubType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType.Unspecified) hash ^= AdvertisingChannelSubType.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (localServicesCampaignSettings_ != null) hash ^= LocalServicesCampaignSettings.GetHashCode(); - if (realTimeBiddingSetting_ != null) hash ^= RealTimeBiddingSetting.GetHashCode(); - if (networkSettings_ != null) hash ^= NetworkSettings.GetHashCode(); - if (hotelSetting_ != null) hash ^= HotelSetting.GetHashCode(); - if (dynamicSearchAdsSetting_ != null) hash ^= DynamicSearchAdsSetting.GetHashCode(); - if (shoppingSetting_ != null) hash ^= ShoppingSetting.GetHashCode(); - if (targetingSetting_ != null) hash ^= TargetingSetting.GetHashCode(); - if (audienceSetting_ != null) hash ^= AudienceSetting.GetHashCode(); - if (geoTargetTypeSetting_ != null) hash ^= GeoTargetTypeSetting.GetHashCode(); - if (localCampaignSetting_ != null) hash ^= LocalCampaignSetting.GetHashCode(); - if (appCampaignSetting_ != null) hash ^= AppCampaignSetting.GetHashCode(); - hash ^= labels_.GetHashCode(); - if (ExperimentType != global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType.Unspecified) hash ^= ExperimentType.GetHashCode(); - if (HasBaseCampaign) hash ^= BaseCampaign.GetHashCode(); - if (HasCampaignBudget) hash ^= CampaignBudget.GetHashCode(); - if (BiddingStrategyType != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) hash ^= BiddingStrategyType.GetHashCode(); - if (AccessibleBiddingStrategy.Length != 0) hash ^= AccessibleBiddingStrategy.GetHashCode(); - if (HasStartDate) hash ^= StartDate.GetHashCode(); - if (HasCampaignGroup) hash ^= CampaignGroup.GetHashCode(); - if (HasEndDate) hash ^= EndDate.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - hash ^= frequencyCaps_.GetHashCode(); - if (VideoBrandSafetySuitability != global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability.Unspecified) hash ^= VideoBrandSafetySuitability.GetHashCode(); - if (vanityPharma_ != null) hash ^= VanityPharma.GetHashCode(); - if (selectiveOptimization_ != null) hash ^= SelectiveOptimization.GetHashCode(); - if (optimizationGoalSetting_ != null) hash ^= OptimizationGoalSetting.GetHashCode(); - if (trackingSetting_ != null) hash ^= TrackingSetting.GetHashCode(); - if (PaymentMode != global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode.Unspecified) hash ^= PaymentMode.GetHashCode(); - if (HasOptimizationScore) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptimizationScore); - hash ^= excludedParentAssetFieldTypes_.GetHashCode(); - hash ^= excludedParentAssetSetTypes_.GetHashCode(); - if (HasUrlExpansionOptOut) hash ^= UrlExpansionOptOut.GetHashCode(); - if (performanceMaxUpgrade_ != null) hash ^= PerformanceMaxUpgrade.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.BiddingStrategy) hash ^= BiddingStrategy.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.Commission) hash ^= Commission.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpa) hash ^= ManualCpa.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpc) hash ^= ManualCpc.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpm) hash ^= ManualCpm.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpv) hash ^= ManualCpv.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversions) hash ^= MaximizeConversions.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversionValue) hash ^= MaximizeConversionValue.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpa) hash ^= TargetCpa.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetImpressionShare) hash ^= TargetImpressionShare.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetRoas) hash ^= TargetRoas.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetSpend) hash ^= TargetSpend.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.PercentCpc) hash ^= PercentCpc.GetHashCode(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpm) hash ^= TargetCpm.GetHashCode(); - hash ^= (int) campaignBiddingStrategyCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (AdServingOptimizationStatus != global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) AdServingOptimizationStatus); - } - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) AdvertisingChannelType); - } - if (AdvertisingChannelSubType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) AdvertisingChannelSubType); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (networkSettings_ != null) { - output.WriteRawTag(114); - output.WriteMessage(NetworkSettings); - } - if (ExperimentType != global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) ExperimentType); - } - if (ServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) ServingStatus); - } - if (BiddingStrategyType != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) BiddingStrategyType); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpc) { - output.WriteRawTag(194, 1); - output.WriteMessage(ManualCpc); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpm) { - output.WriteRawTag(202, 1); - output.WriteMessage(ManualCpm); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpa) { - output.WriteRawTag(210, 1); - output.WriteMessage(TargetCpa); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetSpend) { - output.WriteRawTag(218, 1); - output.WriteMessage(TargetSpend); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetRoas) { - output.WriteRawTag(234, 1); - output.WriteMessage(TargetRoas); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversions) { - output.WriteRawTag(242, 1); - output.WriteMessage(MaximizeConversions); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversionValue) { - output.WriteRawTag(250, 1); - output.WriteMessage(MaximizeConversionValue); - } - if (hotelSetting_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(HotelSetting); - } - if (dynamicSearchAdsSetting_ != null) { - output.WriteRawTag(138, 2); - output.WriteMessage(DynamicSearchAdsSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.PercentCpc) { - output.WriteRawTag(146, 2); - output.WriteMessage(PercentCpc); - } - if (shoppingSetting_ != null) { - output.WriteRawTag(162, 2); - output.WriteMessage(ShoppingSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpv) { - output.WriteRawTag(170, 2); - output.WriteMessage(ManualCpv); - } - if (realTimeBiddingSetting_ != null) { - output.WriteRawTag(186, 2); - output.WriteMessage(RealTimeBiddingSetting); - } - frequencyCaps_.WriteTo(output, _repeated_frequencyCaps_codec); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpm) { - output.WriteRawTag(202, 2); - output.WriteMessage(TargetCpm); - } - if (VideoBrandSafetySuitability != global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability.Unspecified) { - output.WriteRawTag(208, 2); - output.WriteEnum((int) VideoBrandSafetySuitability); - } - if (targetingSetting_ != null) { - output.WriteRawTag(218, 2); - output.WriteMessage(TargetingSetting); - } - if (vanityPharma_ != null) { - output.WriteRawTag(226, 2); - output.WriteMessage(VanityPharma); - } - if (selectiveOptimization_ != null) { - output.WriteRawTag(234, 2); - output.WriteMessage(SelectiveOptimization); - } - if (trackingSetting_ != null) { - output.WriteRawTag(242, 2); - output.WriteMessage(TrackingSetting); - } - if (geoTargetTypeSetting_ != null) { - output.WriteRawTag(250, 2); - output.WriteMessage(GeoTargetTypeSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetImpressionShare) { - output.WriteRawTag(130, 3); - output.WriteMessage(TargetImpressionShare); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.Commission) { - output.WriteRawTag(138, 3); - output.WriteMessage(Commission); - } - if (localCampaignSetting_ != null) { - output.WriteRawTag(146, 3); - output.WriteMessage(LocalCampaignSetting); - } - if (appCampaignSetting_ != null) { - output.WriteRawTag(154, 3); - output.WriteMessage(AppCampaignSetting); - } - if (PaymentMode != global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode.Unspecified) { - output.WriteRawTag(160, 3); - output.WriteEnum((int) PaymentMode); - } - if (optimizationGoalSetting_ != null) { - output.WriteRawTag(178, 3); - output.WriteMessage(OptimizationGoalSetting); - } - if (HasBaseCampaign) { - output.WriteRawTag(194, 3); - output.WriteString(BaseCampaign); - } - if (HasName) { - output.WriteRawTag(210, 3); - output.WriteString(Name); - } - if (HasId) { - output.WriteRawTag(216, 3); - output.WriteInt64(Id); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(226, 3); - output.WriteString(TrackingUrlTemplate); - } - labels_.WriteTo(output, _repeated_labels_codec); - if (HasCampaignBudget) { - output.WriteRawTag(242, 3); - output.WriteString(CampaignBudget); - } - if (HasStartDate) { - output.WriteRawTag(250, 3); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(130, 4); - output.WriteString(EndDate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(138, 4); - output.WriteString(FinalUrlSuffix); - } - if (HasOptimizationScore) { - output.WriteRawTag(145, 4); - output.WriteDouble(OptimizationScore); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.BiddingStrategy) { - output.WriteRawTag(154, 4); - output.WriteString(BiddingStrategy); - } - excludedParentAssetFieldTypes_.WriteTo(output, _repeated_excludedParentAssetFieldTypes_codec); - if (AccessibleBiddingStrategy.Length != 0) { - output.WriteRawTag(186, 4); - output.WriteString(AccessibleBiddingStrategy); - } - if (HasUrlExpansionOptOut) { - output.WriteRawTag(192, 4); - output.WriteBool(UrlExpansionOptOut); - } - if (audienceSetting_ != null) { - output.WriteRawTag(202, 4); - output.WriteMessage(AudienceSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpa) { - output.WriteRawTag(210, 4); - output.WriteMessage(ManualCpa); - } - if (localServicesCampaignSettings_ != null) { - output.WriteRawTag(218, 4); - output.WriteMessage(LocalServicesCampaignSettings); - } - if (HasCampaignGroup) { - output.WriteRawTag(226, 4); - output.WriteString(CampaignGroup); - } - if (performanceMaxUpgrade_ != null) { - output.WriteRawTag(234, 4); - output.WriteMessage(PerformanceMaxUpgrade); - } - if (BiddingStrategySystemStatus != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus.Unspecified) { - output.WriteRawTag(240, 4); - output.WriteEnum((int) BiddingStrategySystemStatus); - } - excludedParentAssetSetTypes_.WriteTo(output, _repeated_excludedParentAssetSetTypes_codec); - if (PrimaryStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus.Unspecified) { - output.WriteRawTag(136, 5); - output.WriteEnum((int) PrimaryStatus); - } - primaryStatusReasons_.WriteTo(output, _repeated_primaryStatusReasons_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (AdServingOptimizationStatus != global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) AdServingOptimizationStatus); - } - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) AdvertisingChannelType); - } - if (AdvertisingChannelSubType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) AdvertisingChannelSubType); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (networkSettings_ != null) { - output.WriteRawTag(114); - output.WriteMessage(NetworkSettings); - } - if (ExperimentType != global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) ExperimentType); - } - if (ServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus.Unspecified) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) ServingStatus); - } - if (BiddingStrategyType != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) BiddingStrategyType); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpc) { - output.WriteRawTag(194, 1); - output.WriteMessage(ManualCpc); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpm) { - output.WriteRawTag(202, 1); - output.WriteMessage(ManualCpm); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpa) { - output.WriteRawTag(210, 1); - output.WriteMessage(TargetCpa); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetSpend) { - output.WriteRawTag(218, 1); - output.WriteMessage(TargetSpend); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetRoas) { - output.WriteRawTag(234, 1); - output.WriteMessage(TargetRoas); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversions) { - output.WriteRawTag(242, 1); - output.WriteMessage(MaximizeConversions); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversionValue) { - output.WriteRawTag(250, 1); - output.WriteMessage(MaximizeConversionValue); - } - if (hotelSetting_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(HotelSetting); - } - if (dynamicSearchAdsSetting_ != null) { - output.WriteRawTag(138, 2); - output.WriteMessage(DynamicSearchAdsSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.PercentCpc) { - output.WriteRawTag(146, 2); - output.WriteMessage(PercentCpc); - } - if (shoppingSetting_ != null) { - output.WriteRawTag(162, 2); - output.WriteMessage(ShoppingSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpv) { - output.WriteRawTag(170, 2); - output.WriteMessage(ManualCpv); - } - if (realTimeBiddingSetting_ != null) { - output.WriteRawTag(186, 2); - output.WriteMessage(RealTimeBiddingSetting); - } - frequencyCaps_.WriteTo(ref output, _repeated_frequencyCaps_codec); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpm) { - output.WriteRawTag(202, 2); - output.WriteMessage(TargetCpm); - } - if (VideoBrandSafetySuitability != global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability.Unspecified) { - output.WriteRawTag(208, 2); - output.WriteEnum((int) VideoBrandSafetySuitability); - } - if (targetingSetting_ != null) { - output.WriteRawTag(218, 2); - output.WriteMessage(TargetingSetting); - } - if (vanityPharma_ != null) { - output.WriteRawTag(226, 2); - output.WriteMessage(VanityPharma); - } - if (selectiveOptimization_ != null) { - output.WriteRawTag(234, 2); - output.WriteMessage(SelectiveOptimization); - } - if (trackingSetting_ != null) { - output.WriteRawTag(242, 2); - output.WriteMessage(TrackingSetting); - } - if (geoTargetTypeSetting_ != null) { - output.WriteRawTag(250, 2); - output.WriteMessage(GeoTargetTypeSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetImpressionShare) { - output.WriteRawTag(130, 3); - output.WriteMessage(TargetImpressionShare); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.Commission) { - output.WriteRawTag(138, 3); - output.WriteMessage(Commission); - } - if (localCampaignSetting_ != null) { - output.WriteRawTag(146, 3); - output.WriteMessage(LocalCampaignSetting); - } - if (appCampaignSetting_ != null) { - output.WriteRawTag(154, 3); - output.WriteMessage(AppCampaignSetting); - } - if (PaymentMode != global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode.Unspecified) { - output.WriteRawTag(160, 3); - output.WriteEnum((int) PaymentMode); - } - if (optimizationGoalSetting_ != null) { - output.WriteRawTag(178, 3); - output.WriteMessage(OptimizationGoalSetting); - } - if (HasBaseCampaign) { - output.WriteRawTag(194, 3); - output.WriteString(BaseCampaign); - } - if (HasName) { - output.WriteRawTag(210, 3); - output.WriteString(Name); - } - if (HasId) { - output.WriteRawTag(216, 3); - output.WriteInt64(Id); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(226, 3); - output.WriteString(TrackingUrlTemplate); - } - labels_.WriteTo(ref output, _repeated_labels_codec); - if (HasCampaignBudget) { - output.WriteRawTag(242, 3); - output.WriteString(CampaignBudget); - } - if (HasStartDate) { - output.WriteRawTag(250, 3); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(130, 4); - output.WriteString(EndDate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(138, 4); - output.WriteString(FinalUrlSuffix); - } - if (HasOptimizationScore) { - output.WriteRawTag(145, 4); - output.WriteDouble(OptimizationScore); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.BiddingStrategy) { - output.WriteRawTag(154, 4); - output.WriteString(BiddingStrategy); - } - excludedParentAssetFieldTypes_.WriteTo(ref output, _repeated_excludedParentAssetFieldTypes_codec); - if (AccessibleBiddingStrategy.Length != 0) { - output.WriteRawTag(186, 4); - output.WriteString(AccessibleBiddingStrategy); - } - if (HasUrlExpansionOptOut) { - output.WriteRawTag(192, 4); - output.WriteBool(UrlExpansionOptOut); - } - if (audienceSetting_ != null) { - output.WriteRawTag(202, 4); - output.WriteMessage(AudienceSetting); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpa) { - output.WriteRawTag(210, 4); - output.WriteMessage(ManualCpa); - } - if (localServicesCampaignSettings_ != null) { - output.WriteRawTag(218, 4); - output.WriteMessage(LocalServicesCampaignSettings); - } - if (HasCampaignGroup) { - output.WriteRawTag(226, 4); - output.WriteString(CampaignGroup); - } - if (performanceMaxUpgrade_ != null) { - output.WriteRawTag(234, 4); - output.WriteMessage(PerformanceMaxUpgrade); - } - if (BiddingStrategySystemStatus != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus.Unspecified) { - output.WriteRawTag(240, 4); - output.WriteEnum((int) BiddingStrategySystemStatus); - } - excludedParentAssetSetTypes_.WriteTo(ref output, _repeated_excludedParentAssetSetTypes_codec); - if (PrimaryStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus.Unspecified) { - output.WriteRawTag(136, 5); - output.WriteEnum((int) PrimaryStatus); - } - primaryStatusReasons_.WriteTo(ref output, _repeated_primaryStatusReasons_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (PrimaryStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PrimaryStatus); - } - size += primaryStatusReasons_.CalculateSize(_repeated_primaryStatusReasons_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (ServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ServingStatus); - } - if (BiddingStrategySystemStatus != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BiddingStrategySystemStatus); - } - if (AdServingOptimizationStatus != global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdServingOptimizationStatus); - } - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdvertisingChannelType); - } - if (AdvertisingChannelSubType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdvertisingChannelSubType); - } - if (HasTrackingUrlTemplate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (localServicesCampaignSettings_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocalServicesCampaignSettings); - } - if (realTimeBiddingSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RealTimeBiddingSetting); - } - if (networkSettings_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NetworkSettings); - } - if (hotelSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelSetting); - } - if (dynamicSearchAdsSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicSearchAdsSetting); - } - if (shoppingSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShoppingSetting); - } - if (targetingSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetingSetting); - } - if (audienceSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AudienceSetting); - } - if (geoTargetTypeSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GeoTargetTypeSetting); - } - if (localCampaignSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocalCampaignSetting); - } - if (appCampaignSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AppCampaignSetting); - } - size += labels_.CalculateSize(_repeated_labels_codec); - if (ExperimentType != global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ExperimentType); - } - if (HasBaseCampaign) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseCampaign); - } - if (HasCampaignBudget) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignBudget); - } - if (BiddingStrategyType != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BiddingStrategyType); - } - if (AccessibleBiddingStrategy.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AccessibleBiddingStrategy); - } - if (HasStartDate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (HasCampaignGroup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignGroup); - } - if (HasEndDate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (HasFinalUrlSuffix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - size += frequencyCaps_.CalculateSize(_repeated_frequencyCaps_codec); - if (VideoBrandSafetySuitability != global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) VideoBrandSafetySuitability); - } - if (vanityPharma_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(VanityPharma); - } - if (selectiveOptimization_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SelectiveOptimization); - } - if (optimizationGoalSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(OptimizationGoalSetting); - } - if (trackingSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TrackingSetting); - } - if (PaymentMode != global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PaymentMode); - } - if (HasOptimizationScore) { - size += 2 + 8; - } - size += excludedParentAssetFieldTypes_.CalculateSize(_repeated_excludedParentAssetFieldTypes_codec); - size += excludedParentAssetSetTypes_.CalculateSize(_repeated_excludedParentAssetSetTypes_codec); - if (HasUrlExpansionOptOut) { - size += 2 + 1; - } - if (performanceMaxUpgrade_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerformanceMaxUpgrade); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.BiddingStrategy) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BiddingStrategy); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.Commission) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Commission); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpa) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ManualCpa); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpc) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ManualCpc); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpm) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ManualCpm); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpv) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ManualCpv); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversions) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversions); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversionValue) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MaximizeConversionValue); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpa) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetCpa); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetImpressionShare) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetImpressionShare); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetRoas) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetRoas); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetSpend) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetSpend); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.PercentCpc) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PercentCpc); - } - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpm) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetCpm); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Campaign other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.PrimaryStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus.Unspecified) { - PrimaryStatus = other.PrimaryStatus; - } - primaryStatusReasons_.Add(other.primaryStatusReasons_); - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus.Unspecified) { - Status = other.Status; - } - if (other.ServingStatus != global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus.Unspecified) { - ServingStatus = other.ServingStatus; - } - if (other.BiddingStrategySystemStatus != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus.Unspecified) { - BiddingStrategySystemStatus = other.BiddingStrategySystemStatus; - } - if (other.AdServingOptimizationStatus != global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus.Unspecified) { - AdServingOptimizationStatus = other.AdServingOptimizationStatus; - } - if (other.AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - AdvertisingChannelType = other.AdvertisingChannelType; - } - if (other.AdvertisingChannelSubType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType.Unspecified) { - AdvertisingChannelSubType = other.AdvertisingChannelSubType; - } - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.localServicesCampaignSettings_ != null) { - if (localServicesCampaignSettings_ == null) { - LocalServicesCampaignSettings = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalServicesCampaignSettings(); - } - LocalServicesCampaignSettings.MergeFrom(other.LocalServicesCampaignSettings); - } - if (other.realTimeBiddingSetting_ != null) { - if (realTimeBiddingSetting_ == null) { - RealTimeBiddingSetting = new global::Google.Ads.GoogleAds.V12.Common.RealTimeBiddingSetting(); - } - RealTimeBiddingSetting.MergeFrom(other.RealTimeBiddingSetting); - } - if (other.networkSettings_ != null) { - if (networkSettings_ == null) { - NetworkSettings = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.NetworkSettings(); - } - NetworkSettings.MergeFrom(other.NetworkSettings); - } - if (other.hotelSetting_ != null) { - if (hotelSetting_ == null) { - HotelSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.HotelSettingInfo(); - } - HotelSetting.MergeFrom(other.HotelSetting); - } - if (other.dynamicSearchAdsSetting_ != null) { - if (dynamicSearchAdsSetting_ == null) { - DynamicSearchAdsSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.DynamicSearchAdsSetting(); - } - DynamicSearchAdsSetting.MergeFrom(other.DynamicSearchAdsSetting); - } - if (other.shoppingSetting_ != null) { - if (shoppingSetting_ == null) { - ShoppingSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.ShoppingSetting(); - } - ShoppingSetting.MergeFrom(other.ShoppingSetting); - } - if (other.targetingSetting_ != null) { - if (targetingSetting_ == null) { - TargetingSetting = new global::Google.Ads.GoogleAds.V12.Common.TargetingSetting(); - } - TargetingSetting.MergeFrom(other.TargetingSetting); - } - if (other.audienceSetting_ != null) { - if (audienceSetting_ == null) { - AudienceSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AudienceSetting(); - } - AudienceSetting.MergeFrom(other.AudienceSetting); - } - if (other.geoTargetTypeSetting_ != null) { - if (geoTargetTypeSetting_ == null) { - GeoTargetTypeSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.GeoTargetTypeSetting(); - } - GeoTargetTypeSetting.MergeFrom(other.GeoTargetTypeSetting); - } - if (other.localCampaignSetting_ != null) { - if (localCampaignSetting_ == null) { - LocalCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalCampaignSetting(); - } - LocalCampaignSetting.MergeFrom(other.LocalCampaignSetting); - } - if (other.appCampaignSetting_ != null) { - if (appCampaignSetting_ == null) { - AppCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AppCampaignSetting(); - } - AppCampaignSetting.MergeFrom(other.AppCampaignSetting); - } - labels_.Add(other.labels_); - if (other.ExperimentType != global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType.Unspecified) { - ExperimentType = other.ExperimentType; - } - if (other.HasBaseCampaign) { - BaseCampaign = other.BaseCampaign; - } - if (other.HasCampaignBudget) { - CampaignBudget = other.CampaignBudget; - } - if (other.BiddingStrategyType != global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { - BiddingStrategyType = other.BiddingStrategyType; - } - if (other.AccessibleBiddingStrategy.Length != 0) { - AccessibleBiddingStrategy = other.AccessibleBiddingStrategy; - } - if (other.HasStartDate) { - StartDate = other.StartDate; - } - if (other.HasCampaignGroup) { - CampaignGroup = other.CampaignGroup; - } - if (other.HasEndDate) { - EndDate = other.EndDate; - } - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - frequencyCaps_.Add(other.frequencyCaps_); - if (other.VideoBrandSafetySuitability != global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability.Unspecified) { - VideoBrandSafetySuitability = other.VideoBrandSafetySuitability; - } - if (other.vanityPharma_ != null) { - if (vanityPharma_ == null) { - VanityPharma = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.VanityPharma(); - } - VanityPharma.MergeFrom(other.VanityPharma); - } - if (other.selectiveOptimization_ != null) { - if (selectiveOptimization_ == null) { - SelectiveOptimization = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.SelectiveOptimization(); - } - SelectiveOptimization.MergeFrom(other.SelectiveOptimization); - } - if (other.optimizationGoalSetting_ != null) { - if (optimizationGoalSetting_ == null) { - OptimizationGoalSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.OptimizationGoalSetting(); - } - OptimizationGoalSetting.MergeFrom(other.OptimizationGoalSetting); - } - if (other.trackingSetting_ != null) { - if (trackingSetting_ == null) { - TrackingSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.TrackingSetting(); - } - TrackingSetting.MergeFrom(other.TrackingSetting); - } - if (other.PaymentMode != global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode.Unspecified) { - PaymentMode = other.PaymentMode; - } - if (other.HasOptimizationScore) { - OptimizationScore = other.OptimizationScore; - } - excludedParentAssetFieldTypes_.Add(other.excludedParentAssetFieldTypes_); - excludedParentAssetSetTypes_.Add(other.excludedParentAssetSetTypes_); - if (other.HasUrlExpansionOptOut) { - UrlExpansionOptOut = other.UrlExpansionOptOut; - } - if (other.performanceMaxUpgrade_ != null) { - if (performanceMaxUpgrade_ == null) { - PerformanceMaxUpgrade = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.PerformanceMaxUpgrade(); - } - PerformanceMaxUpgrade.MergeFrom(other.PerformanceMaxUpgrade); - } - switch (other.CampaignBiddingStrategyCase) { - case CampaignBiddingStrategyOneofCase.BiddingStrategy: - BiddingStrategy = other.BiddingStrategy; - break; - case CampaignBiddingStrategyOneofCase.Commission: - if (Commission == null) { - Commission = new global::Google.Ads.GoogleAds.V12.Common.Commission(); - } - Commission.MergeFrom(other.Commission); - break; - case CampaignBiddingStrategyOneofCase.ManualCpa: - if (ManualCpa == null) { - ManualCpa = new global::Google.Ads.GoogleAds.V12.Common.ManualCpa(); - } - ManualCpa.MergeFrom(other.ManualCpa); - break; - case CampaignBiddingStrategyOneofCase.ManualCpc: - if (ManualCpc == null) { - ManualCpc = new global::Google.Ads.GoogleAds.V12.Common.ManualCpc(); - } - ManualCpc.MergeFrom(other.ManualCpc); - break; - case CampaignBiddingStrategyOneofCase.ManualCpm: - if (ManualCpm == null) { - ManualCpm = new global::Google.Ads.GoogleAds.V12.Common.ManualCpm(); - } - ManualCpm.MergeFrom(other.ManualCpm); - break; - case CampaignBiddingStrategyOneofCase.ManualCpv: - if (ManualCpv == null) { - ManualCpv = new global::Google.Ads.GoogleAds.V12.Common.ManualCpv(); - } - ManualCpv.MergeFrom(other.ManualCpv); - break; - case CampaignBiddingStrategyOneofCase.MaximizeConversions: - if (MaximizeConversions == null) { - MaximizeConversions = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions(); - } - MaximizeConversions.MergeFrom(other.MaximizeConversions); - break; - case CampaignBiddingStrategyOneofCase.MaximizeConversionValue: - if (MaximizeConversionValue == null) { - MaximizeConversionValue = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue(); - } - MaximizeConversionValue.MergeFrom(other.MaximizeConversionValue); - break; - case CampaignBiddingStrategyOneofCase.TargetCpa: - if (TargetCpa == null) { - TargetCpa = new global::Google.Ads.GoogleAds.V12.Common.TargetCpa(); - } - TargetCpa.MergeFrom(other.TargetCpa); - break; - case CampaignBiddingStrategyOneofCase.TargetImpressionShare: - if (TargetImpressionShare == null) { - TargetImpressionShare = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare(); - } - TargetImpressionShare.MergeFrom(other.TargetImpressionShare); - break; - case CampaignBiddingStrategyOneofCase.TargetRoas: - if (TargetRoas == null) { - TargetRoas = new global::Google.Ads.GoogleAds.V12.Common.TargetRoas(); - } - TargetRoas.MergeFrom(other.TargetRoas); - break; - case CampaignBiddingStrategyOneofCase.TargetSpend: - if (TargetSpend == null) { - TargetSpend = new global::Google.Ads.GoogleAds.V12.Common.TargetSpend(); - } - TargetSpend.MergeFrom(other.TargetSpend); - break; - case CampaignBiddingStrategyOneofCase.PercentCpc: - if (PercentCpc == null) { - PercentCpc = new global::Google.Ads.GoogleAds.V12.Common.PercentCpc(); - } - PercentCpc.MergeFrom(other.PercentCpc); - break; - case CampaignBiddingStrategyOneofCase.TargetCpm: - if (TargetCpm == null) { - TargetCpm = new global::Google.Ads.GoogleAds.V12.Common.TargetCpm(); - } - TargetCpm.MergeFrom(other.TargetCpm); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus) input.ReadEnum(); - break; - } - case 64: { - AdServingOptimizationStatus = (global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus) input.ReadEnum(); - break; - } - case 72: { - AdvertisingChannelType = (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType) input.ReadEnum(); - break; - } - case 80: { - AdvertisingChannelSubType = (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType) input.ReadEnum(); - break; - } - case 98: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 114: { - if (networkSettings_ == null) { - NetworkSettings = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.NetworkSettings(); - } - input.ReadMessage(NetworkSettings); - break; - } - case 136: { - ExperimentType = (global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType) input.ReadEnum(); - break; - } - case 168: { - ServingStatus = (global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus) input.ReadEnum(); - break; - } - case 176: { - BiddingStrategyType = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType) input.ReadEnum(); - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpc subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpc(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpc) { - subBuilder.MergeFrom(ManualCpc); - } - input.ReadMessage(subBuilder); - ManualCpc = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpm subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpm(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpm) { - subBuilder.MergeFrom(ManualCpm); - } - input.ReadMessage(subBuilder); - ManualCpm = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpa(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpa) { - subBuilder.MergeFrom(TargetCpa); - } - input.ReadMessage(subBuilder); - TargetCpa = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetSpend(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetSpend) { - subBuilder.MergeFrom(TargetSpend); - } - input.ReadMessage(subBuilder); - TargetSpend = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoas(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetRoas) { - subBuilder.MergeFrom(TargetRoas); - } - input.ReadMessage(subBuilder); - TargetRoas = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversions) { - subBuilder.MergeFrom(MaximizeConversions); - } - input.ReadMessage(subBuilder); - MaximizeConversions = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversionValue) { - subBuilder.MergeFrom(MaximizeConversionValue); - } - input.ReadMessage(subBuilder); - MaximizeConversionValue = subBuilder; - break; - } - case 258: { - if (hotelSetting_ == null) { - HotelSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.HotelSettingInfo(); - } - input.ReadMessage(HotelSetting); - break; - } - case 266: { - if (dynamicSearchAdsSetting_ == null) { - DynamicSearchAdsSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.DynamicSearchAdsSetting(); - } - input.ReadMessage(DynamicSearchAdsSetting); - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.PercentCpc subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PercentCpc(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.PercentCpc) { - subBuilder.MergeFrom(PercentCpc); - } - input.ReadMessage(subBuilder); - PercentCpc = subBuilder; - break; - } - case 290: { - if (shoppingSetting_ == null) { - ShoppingSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.ShoppingSetting(); - } - input.ReadMessage(ShoppingSetting); - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpv subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpv(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpv) { - subBuilder.MergeFrom(ManualCpv); - } - input.ReadMessage(subBuilder); - ManualCpv = subBuilder; - break; - } - case 314: { - if (realTimeBiddingSetting_ == null) { - RealTimeBiddingSetting = new global::Google.Ads.GoogleAds.V12.Common.RealTimeBiddingSetting(); - } - input.ReadMessage(RealTimeBiddingSetting); - break; - } - case 322: { - frequencyCaps_.AddEntriesFrom(input, _repeated_frequencyCaps_codec); - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpm subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpm(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpm) { - subBuilder.MergeFrom(TargetCpm); - } - input.ReadMessage(subBuilder); - TargetCpm = subBuilder; - break; - } - case 336: { - VideoBrandSafetySuitability = (global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability) input.ReadEnum(); - break; - } - case 346: { - if (targetingSetting_ == null) { - TargetingSetting = new global::Google.Ads.GoogleAds.V12.Common.TargetingSetting(); - } - input.ReadMessage(TargetingSetting); - break; - } - case 354: { - if (vanityPharma_ == null) { - VanityPharma = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.VanityPharma(); - } - input.ReadMessage(VanityPharma); - break; - } - case 362: { - if (selectiveOptimization_ == null) { - SelectiveOptimization = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.SelectiveOptimization(); - } - input.ReadMessage(SelectiveOptimization); - break; - } - case 370: { - if (trackingSetting_ == null) { - TrackingSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.TrackingSetting(); - } - input.ReadMessage(TrackingSetting); - break; - } - case 378: { - if (geoTargetTypeSetting_ == null) { - GeoTargetTypeSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.GeoTargetTypeSetting(); - } - input.ReadMessage(GeoTargetTypeSetting); - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetImpressionShare) { - subBuilder.MergeFrom(TargetImpressionShare); - } - input.ReadMessage(subBuilder); - TargetImpressionShare = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Common.Commission subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Commission(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.Commission) { - subBuilder.MergeFrom(Commission); - } - input.ReadMessage(subBuilder); - Commission = subBuilder; - break; - } - case 402: { - if (localCampaignSetting_ == null) { - LocalCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalCampaignSetting(); - } - input.ReadMessage(LocalCampaignSetting); - break; - } - case 410: { - if (appCampaignSetting_ == null) { - AppCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AppCampaignSetting(); - } - input.ReadMessage(AppCampaignSetting); - break; - } - case 416: { - PaymentMode = (global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode) input.ReadEnum(); - break; - } - case 434: { - if (optimizationGoalSetting_ == null) { - OptimizationGoalSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.OptimizationGoalSetting(); - } - input.ReadMessage(OptimizationGoalSetting); - break; - } - case 450: { - BaseCampaign = input.ReadString(); - break; - } - case 466: { - Name = input.ReadString(); - break; - } - case 472: { - Id = input.ReadInt64(); - break; - } - case 482: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 490: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); - break; - } - case 498: { - CampaignBudget = input.ReadString(); - break; - } - case 506: { - StartDate = input.ReadString(); - break; - } - case 514: { - EndDate = input.ReadString(); - break; - } - case 522: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 529: { - OptimizationScore = input.ReadDouble(); - break; - } - case 538: { - BiddingStrategy = input.ReadString(); - break; - } - case 554: - case 552: { - excludedParentAssetFieldTypes_.AddEntriesFrom(input, _repeated_excludedParentAssetFieldTypes_codec); - break; - } - case 570: { - AccessibleBiddingStrategy = input.ReadString(); - break; - } - case 576: { - UrlExpansionOptOut = input.ReadBool(); - break; - } - case 586: { - if (audienceSetting_ == null) { - AudienceSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AudienceSetting(); - } - input.ReadMessage(AudienceSetting); - break; - } - case 594: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpa(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpa) { - subBuilder.MergeFrom(ManualCpa); - } - input.ReadMessage(subBuilder); - ManualCpa = subBuilder; - break; - } - case 602: { - if (localServicesCampaignSettings_ == null) { - LocalServicesCampaignSettings = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalServicesCampaignSettings(); - } - input.ReadMessage(LocalServicesCampaignSettings); - break; - } - case 610: { - CampaignGroup = input.ReadString(); - break; - } - case 618: { - if (performanceMaxUpgrade_ == null) { - PerformanceMaxUpgrade = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.PerformanceMaxUpgrade(); - } - input.ReadMessage(PerformanceMaxUpgrade); - break; - } - case 624: { - BiddingStrategySystemStatus = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus) input.ReadEnum(); - break; - } - case 642: - case 640: { - excludedParentAssetSetTypes_.AddEntriesFrom(input, _repeated_excludedParentAssetSetTypes_codec); - break; - } - case 648: { - PrimaryStatus = (global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus) input.ReadEnum(); - break; - } - case 658: - case 656: { - primaryStatusReasons_.AddEntriesFrom(input, _repeated_primaryStatusReasons_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus) input.ReadEnum(); - break; - } - case 64: { - AdServingOptimizationStatus = (global::Google.Ads.GoogleAds.V12.Enums.AdServingOptimizationStatusEnum.Types.AdServingOptimizationStatus) input.ReadEnum(); - break; - } - case 72: { - AdvertisingChannelType = (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType) input.ReadEnum(); - break; - } - case 80: { - AdvertisingChannelSubType = (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType) input.ReadEnum(); - break; - } - case 98: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 114: { - if (networkSettings_ == null) { - NetworkSettings = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.NetworkSettings(); - } - input.ReadMessage(NetworkSettings); - break; - } - case 136: { - ExperimentType = (global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType) input.ReadEnum(); - break; - } - case 168: { - ServingStatus = (global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus) input.ReadEnum(); - break; - } - case 176: { - BiddingStrategyType = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType) input.ReadEnum(); - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpc subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpc(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpc) { - subBuilder.MergeFrom(ManualCpc); - } - input.ReadMessage(subBuilder); - ManualCpc = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpm subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpm(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpm) { - subBuilder.MergeFrom(ManualCpm); - } - input.ReadMessage(subBuilder); - ManualCpm = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpa(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpa) { - subBuilder.MergeFrom(TargetCpa); - } - input.ReadMessage(subBuilder); - TargetCpa = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.TargetSpend subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetSpend(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetSpend) { - subBuilder.MergeFrom(TargetSpend); - } - input.ReadMessage(subBuilder); - TargetSpend = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoas subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoas(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetRoas) { - subBuilder.MergeFrom(TargetRoas); - } - input.ReadMessage(subBuilder); - TargetRoas = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversions(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversions) { - subBuilder.MergeFrom(MaximizeConversions); - } - input.ReadMessage(subBuilder); - MaximizeConversions = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MaximizeConversionValue(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.MaximizeConversionValue) { - subBuilder.MergeFrom(MaximizeConversionValue); - } - input.ReadMessage(subBuilder); - MaximizeConversionValue = subBuilder; - break; - } - case 258: { - if (hotelSetting_ == null) { - HotelSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.HotelSettingInfo(); - } - input.ReadMessage(HotelSetting); - break; - } - case 266: { - if (dynamicSearchAdsSetting_ == null) { - DynamicSearchAdsSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.DynamicSearchAdsSetting(); - } - input.ReadMessage(DynamicSearchAdsSetting); - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.PercentCpc subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PercentCpc(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.PercentCpc) { - subBuilder.MergeFrom(PercentCpc); - } - input.ReadMessage(subBuilder); - PercentCpc = subBuilder; - break; - } - case 290: { - if (shoppingSetting_ == null) { - ShoppingSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.ShoppingSetting(); - } - input.ReadMessage(ShoppingSetting); - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpv subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpv(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpv) { - subBuilder.MergeFrom(ManualCpv); - } - input.ReadMessage(subBuilder); - ManualCpv = subBuilder; - break; - } - case 314: { - if (realTimeBiddingSetting_ == null) { - RealTimeBiddingSetting = new global::Google.Ads.GoogleAds.V12.Common.RealTimeBiddingSetting(); - } - input.ReadMessage(RealTimeBiddingSetting); - break; - } - case 322: { - frequencyCaps_.AddEntriesFrom(ref input, _repeated_frequencyCaps_codec); - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpm subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpm(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetCpm) { - subBuilder.MergeFrom(TargetCpm); - } - input.ReadMessage(subBuilder); - TargetCpm = subBuilder; - break; - } - case 336: { - VideoBrandSafetySuitability = (global::Google.Ads.GoogleAds.V12.Enums.BrandSafetySuitabilityEnum.Types.BrandSafetySuitability) input.ReadEnum(); - break; - } - case 346: { - if (targetingSetting_ == null) { - TargetingSetting = new global::Google.Ads.GoogleAds.V12.Common.TargetingSetting(); - } - input.ReadMessage(TargetingSetting); - break; - } - case 354: { - if (vanityPharma_ == null) { - VanityPharma = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.VanityPharma(); - } - input.ReadMessage(VanityPharma); - break; - } - case 362: { - if (selectiveOptimization_ == null) { - SelectiveOptimization = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.SelectiveOptimization(); - } - input.ReadMessage(SelectiveOptimization); - break; - } - case 370: { - if (trackingSetting_ == null) { - TrackingSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.TrackingSetting(); - } - input.ReadMessage(TrackingSetting); - break; - } - case 378: { - if (geoTargetTypeSetting_ == null) { - GeoTargetTypeSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.GeoTargetTypeSetting(); - } - input.ReadMessage(GeoTargetTypeSetting); - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShare(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.TargetImpressionShare) { - subBuilder.MergeFrom(TargetImpressionShare); - } - input.ReadMessage(subBuilder); - TargetImpressionShare = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Common.Commission subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Commission(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.Commission) { - subBuilder.MergeFrom(Commission); - } - input.ReadMessage(subBuilder); - Commission = subBuilder; - break; - } - case 402: { - if (localCampaignSetting_ == null) { - LocalCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalCampaignSetting(); - } - input.ReadMessage(LocalCampaignSetting); - break; - } - case 410: { - if (appCampaignSetting_ == null) { - AppCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AppCampaignSetting(); - } - input.ReadMessage(AppCampaignSetting); - break; - } - case 416: { - PaymentMode = (global::Google.Ads.GoogleAds.V12.Enums.PaymentModeEnum.Types.PaymentMode) input.ReadEnum(); - break; - } - case 434: { - if (optimizationGoalSetting_ == null) { - OptimizationGoalSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.OptimizationGoalSetting(); - } - input.ReadMessage(OptimizationGoalSetting); - break; - } - case 450: { - BaseCampaign = input.ReadString(); - break; - } - case 466: { - Name = input.ReadString(); - break; - } - case 472: { - Id = input.ReadInt64(); - break; - } - case 482: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 490: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); - break; - } - case 498: { - CampaignBudget = input.ReadString(); - break; - } - case 506: { - StartDate = input.ReadString(); - break; - } - case 514: { - EndDate = input.ReadString(); - break; - } - case 522: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 529: { - OptimizationScore = input.ReadDouble(); - break; - } - case 538: { - BiddingStrategy = input.ReadString(); - break; - } - case 554: - case 552: { - excludedParentAssetFieldTypes_.AddEntriesFrom(ref input, _repeated_excludedParentAssetFieldTypes_codec); - break; - } - case 570: { - AccessibleBiddingStrategy = input.ReadString(); - break; - } - case 576: { - UrlExpansionOptOut = input.ReadBool(); - break; - } - case 586: { - if (audienceSetting_ == null) { - AudienceSetting = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.AudienceSetting(); - } - input.ReadMessage(AudienceSetting); - break; - } - case 594: { - global::Google.Ads.GoogleAds.V12.Common.ManualCpa subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ManualCpa(); - if (campaignBiddingStrategyCase_ == CampaignBiddingStrategyOneofCase.ManualCpa) { - subBuilder.MergeFrom(ManualCpa); - } - input.ReadMessage(subBuilder); - ManualCpa = subBuilder; - break; - } - case 602: { - if (localServicesCampaignSettings_ == null) { - LocalServicesCampaignSettings = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.LocalServicesCampaignSettings(); - } - input.ReadMessage(LocalServicesCampaignSettings); - break; - } - case 610: { - CampaignGroup = input.ReadString(); - break; - } - case 618: { - if (performanceMaxUpgrade_ == null) { - PerformanceMaxUpgrade = new global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.PerformanceMaxUpgrade(); - } - input.ReadMessage(PerformanceMaxUpgrade); - break; - } - case 624: { - BiddingStrategySystemStatus = (global::Google.Ads.GoogleAds.V12.Enums.BiddingStrategySystemStatusEnum.Types.BiddingStrategySystemStatus) input.ReadEnum(); - break; - } - case 642: - case 640: { - excludedParentAssetSetTypes_.AddEntriesFrom(ref input, _repeated_excludedParentAssetSetTypes_codec); - break; - } - case 648: { - PrimaryStatus = (global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus) input.ReadEnum(); - break; - } - case 658: - case 656: { - primaryStatusReasons_.AddEntriesFrom(ref input, _repeated_primaryStatusReasons_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Campaign message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Information about a campaign being upgraded to Performance Max. - /// - public sealed partial class PerformanceMaxUpgrade : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerformanceMaxUpgrade()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerformanceMaxUpgrade() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerformanceMaxUpgrade(PerformanceMaxUpgrade other) : this() { - performanceMaxCampaign_ = other.performanceMaxCampaign_; - preUpgradeCampaign_ = other.preUpgradeCampaign_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PerformanceMaxUpgrade Clone() { - return new PerformanceMaxUpgrade(this); - } - - /// Field number for the "performance_max_campaign" field. - public const int PerformanceMaxCampaignFieldNumber = 1; - private string performanceMaxCampaign_ = ""; - /// - /// Output only. Indicates which Performance Max campaign the campaign is upgraded to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PerformanceMaxCampaign { - get { return performanceMaxCampaign_; } - set { - performanceMaxCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "pre_upgrade_campaign" field. - public const int PreUpgradeCampaignFieldNumber = 2; - private string preUpgradeCampaign_ = ""; - /// - /// Output only. Indicates legacy campaign upgraded to Performance Max. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PreUpgradeCampaign { - get { return preUpgradeCampaign_; } - set { - preUpgradeCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus.Unspecified; - /// - /// Output only. The upgrade status of a campaign requested to be upgraded to Performance - /// Max. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PerformanceMaxUpgrade); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PerformanceMaxUpgrade other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PerformanceMaxCampaign != other.PerformanceMaxCampaign) return false; - if (PreUpgradeCampaign != other.PreUpgradeCampaign) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PerformanceMaxCampaign.Length != 0) hash ^= PerformanceMaxCampaign.GetHashCode(); - if (PreUpgradeCampaign.Length != 0) hash ^= PreUpgradeCampaign.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PerformanceMaxCampaign.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PerformanceMaxCampaign); - } - if (PreUpgradeCampaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PreUpgradeCampaign); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PerformanceMaxCampaign.Length != 0) { - output.WriteRawTag(10); - output.WriteString(PerformanceMaxCampaign); - } - if (PreUpgradeCampaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PreUpgradeCampaign); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PerformanceMaxCampaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PerformanceMaxCampaign); - } - if (PreUpgradeCampaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PreUpgradeCampaign); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PerformanceMaxUpgrade other) { - if (other == null) { - return; - } - if (other.PerformanceMaxCampaign.Length != 0) { - PerformanceMaxCampaign = other.PerformanceMaxCampaign; - } - if (other.PreUpgradeCampaign.Length != 0) { - PreUpgradeCampaign = other.PreUpgradeCampaign; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - PerformanceMaxCampaign = input.ReadString(); - break; - } - case 18: { - PreUpgradeCampaign = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - PerformanceMaxCampaign = input.ReadString(); - break; - } - case 18: { - PreUpgradeCampaign = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.PerformanceMaxUpgradeStatusEnum.Types.PerformanceMaxUpgradeStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// The network settings for the campaign. - /// - public sealed partial class NetworkSettings : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkSettings()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NetworkSettings() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NetworkSettings(NetworkSettings other) : this() { - _hasBits0 = other._hasBits0; - targetGoogleSearch_ = other.targetGoogleSearch_; - targetSearchNetwork_ = other.targetSearchNetwork_; - targetContentNetwork_ = other.targetContentNetwork_; - targetPartnerSearchNetwork_ = other.targetPartnerSearchNetwork_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public NetworkSettings Clone() { - return new NetworkSettings(this); - } - - /// Field number for the "target_google_search" field. - public const int TargetGoogleSearchFieldNumber = 5; - private bool targetGoogleSearch_; - /// - /// Whether ads will be served with google.com search results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool TargetGoogleSearch { - get { if ((_hasBits0 & 1) != 0) { return targetGoogleSearch_; } else { return false; } } - set { - _hasBits0 |= 1; - targetGoogleSearch_ = value; - } - } - /// Gets whether the "target_google_search" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetGoogleSearch { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "target_google_search" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetGoogleSearch() { - _hasBits0 &= ~1; - } - - /// Field number for the "target_search_network" field. - public const int TargetSearchNetworkFieldNumber = 6; - private bool targetSearchNetwork_; - /// - /// Whether ads will be served on partner sites in the Google Search Network - /// (requires `target_google_search` to also be `true`). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool TargetSearchNetwork { - get { if ((_hasBits0 & 2) != 0) { return targetSearchNetwork_; } else { return false; } } - set { - _hasBits0 |= 2; - targetSearchNetwork_ = value; - } - } - /// Gets whether the "target_search_network" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetSearchNetwork { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "target_search_network" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetSearchNetwork() { - _hasBits0 &= ~2; - } - - /// Field number for the "target_content_network" field. - public const int TargetContentNetworkFieldNumber = 7; - private bool targetContentNetwork_; - /// - /// Whether ads will be served on specified placements in the Google Display - /// Network. Placements are specified using the Placement criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool TargetContentNetwork { - get { if ((_hasBits0 & 4) != 0) { return targetContentNetwork_; } else { return false; } } - set { - _hasBits0 |= 4; - targetContentNetwork_ = value; - } - } - /// Gets whether the "target_content_network" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetContentNetwork { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "target_content_network" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetContentNetwork() { - _hasBits0 &= ~4; - } - - /// Field number for the "target_partner_search_network" field. - public const int TargetPartnerSearchNetworkFieldNumber = 8; - private bool targetPartnerSearchNetwork_; - /// - /// Whether ads will be served on the Google Partner Network. - /// This is available only to some select Google partner accounts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool TargetPartnerSearchNetwork { - get { if ((_hasBits0 & 8) != 0) { return targetPartnerSearchNetwork_; } else { return false; } } - set { - _hasBits0 |= 8; - targetPartnerSearchNetwork_ = value; - } - } - /// Gets whether the "target_partner_search_network" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetPartnerSearchNetwork { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "target_partner_search_network" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetPartnerSearchNetwork() { - _hasBits0 &= ~8; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as NetworkSettings); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(NetworkSettings other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TargetGoogleSearch != other.TargetGoogleSearch) return false; - if (TargetSearchNetwork != other.TargetSearchNetwork) return false; - if (TargetContentNetwork != other.TargetContentNetwork) return false; - if (TargetPartnerSearchNetwork != other.TargetPartnerSearchNetwork) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTargetGoogleSearch) hash ^= TargetGoogleSearch.GetHashCode(); - if (HasTargetSearchNetwork) hash ^= TargetSearchNetwork.GetHashCode(); - if (HasTargetContentNetwork) hash ^= TargetContentNetwork.GetHashCode(); - if (HasTargetPartnerSearchNetwork) hash ^= TargetPartnerSearchNetwork.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTargetGoogleSearch) { - output.WriteRawTag(40); - output.WriteBool(TargetGoogleSearch); - } - if (HasTargetSearchNetwork) { - output.WriteRawTag(48); - output.WriteBool(TargetSearchNetwork); - } - if (HasTargetContentNetwork) { - output.WriteRawTag(56); - output.WriteBool(TargetContentNetwork); - } - if (HasTargetPartnerSearchNetwork) { - output.WriteRawTag(64); - output.WriteBool(TargetPartnerSearchNetwork); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTargetGoogleSearch) { - output.WriteRawTag(40); - output.WriteBool(TargetGoogleSearch); - } - if (HasTargetSearchNetwork) { - output.WriteRawTag(48); - output.WriteBool(TargetSearchNetwork); - } - if (HasTargetContentNetwork) { - output.WriteRawTag(56); - output.WriteBool(TargetContentNetwork); - } - if (HasTargetPartnerSearchNetwork) { - output.WriteRawTag(64); - output.WriteBool(TargetPartnerSearchNetwork); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTargetGoogleSearch) { - size += 1 + 1; - } - if (HasTargetSearchNetwork) { - size += 1 + 1; - } - if (HasTargetContentNetwork) { - size += 1 + 1; - } - if (HasTargetPartnerSearchNetwork) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(NetworkSettings other) { - if (other == null) { - return; - } - if (other.HasTargetGoogleSearch) { - TargetGoogleSearch = other.TargetGoogleSearch; - } - if (other.HasTargetSearchNetwork) { - TargetSearchNetwork = other.TargetSearchNetwork; - } - if (other.HasTargetContentNetwork) { - TargetContentNetwork = other.TargetContentNetwork; - } - if (other.HasTargetPartnerSearchNetwork) { - TargetPartnerSearchNetwork = other.TargetPartnerSearchNetwork; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 40: { - TargetGoogleSearch = input.ReadBool(); - break; - } - case 48: { - TargetSearchNetwork = input.ReadBool(); - break; - } - case 56: { - TargetContentNetwork = input.ReadBool(); - break; - } - case 64: { - TargetPartnerSearchNetwork = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 40: { - TargetGoogleSearch = input.ReadBool(); - break; - } - case 48: { - TargetSearchNetwork = input.ReadBool(); - break; - } - case 56: { - TargetContentNetwork = input.ReadBool(); - break; - } - case 64: { - TargetPartnerSearchNetwork = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Campaign-level settings for hotel ads. - /// - public sealed partial class HotelSettingInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelSettingInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelSettingInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelSettingInfo(HotelSettingInfo other) : this() { - _hasBits0 = other._hasBits0; - hotelCenterId_ = other.hotelCenterId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelSettingInfo Clone() { - return new HotelSettingInfo(this); - } - - /// Field number for the "hotel_center_id" field. - public const int HotelCenterIdFieldNumber = 2; - private long hotelCenterId_; - /// - /// Immutable. The linked Hotel Center account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long HotelCenterId { - get { if ((_hasBits0 & 1) != 0) { return hotelCenterId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - hotelCenterId_ = value; - } - } - /// Gets whether the "hotel_center_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHotelCenterId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "hotel_center_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHotelCenterId() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelSettingInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelSettingInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (HotelCenterId != other.HotelCenterId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHotelCenterId) hash ^= HotelCenterId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasHotelCenterId) { - output.WriteRawTag(16); - output.WriteInt64(HotelCenterId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasHotelCenterId) { - output.WriteRawTag(16); - output.WriteInt64(HotelCenterId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHotelCenterId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(HotelCenterId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelSettingInfo other) { - if (other == null) { - return; - } - if (other.HasHotelCenterId) { - HotelCenterId = other.HotelCenterId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - HotelCenterId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - HotelCenterId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// The setting for controlling Dynamic Search Ads (DSA). - /// - public sealed partial class DynamicSearchAdsSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicSearchAdsSetting()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicSearchAdsSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicSearchAdsSetting(DynamicSearchAdsSetting other) : this() { - _hasBits0 = other._hasBits0; - domainName_ = other.domainName_; - languageCode_ = other.languageCode_; - useSuppliedUrlsOnly_ = other.useSuppliedUrlsOnly_; - feeds_ = other.feeds_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicSearchAdsSetting Clone() { - return new DynamicSearchAdsSetting(this); - } - - /// Field number for the "domain_name" field. - public const int DomainNameFieldNumber = 6; - private string domainName_ = ""; - /// - /// Required. The Internet domain name that this setting represents, for example, - /// "google.com" or "www.google.com". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DomainName { - get { return domainName_; } - set { - domainName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 7; - private string languageCode_ = ""; - /// - /// Required. The language code specifying the language of the domain, for example, - /// "en". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "use_supplied_urls_only" field. - public const int UseSuppliedUrlsOnlyFieldNumber = 8; - private bool useSuppliedUrlsOnly_; - /// - /// Whether the campaign uses advertiser supplied URLs exclusively. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool UseSuppliedUrlsOnly { - get { if ((_hasBits0 & 1) != 0) { return useSuppliedUrlsOnly_; } else { return false; } } - set { - _hasBits0 |= 1; - useSuppliedUrlsOnly_ = value; - } - } - /// Gets whether the "use_supplied_urls_only" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUseSuppliedUrlsOnly { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "use_supplied_urls_only" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUseSuppliedUrlsOnly() { - _hasBits0 &= ~1; - } - - /// Field number for the "feeds" field. - public const int FeedsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_feeds_codec - = pb::FieldCodec.ForString(74); - private readonly pbc::RepeatedField feeds_ = new pbc::RepeatedField(); - /// - /// The list of page feeds associated with the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Feeds { - get { return feeds_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicSearchAdsSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicSearchAdsSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DomainName != other.DomainName) return false; - if (LanguageCode != other.LanguageCode) return false; - if (UseSuppliedUrlsOnly != other.UseSuppliedUrlsOnly) return false; - if(!feeds_.Equals(other.feeds_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DomainName.Length != 0) hash ^= DomainName.GetHashCode(); - if (LanguageCode.Length != 0) hash ^= LanguageCode.GetHashCode(); - if (HasUseSuppliedUrlsOnly) hash ^= UseSuppliedUrlsOnly.GetHashCode(); - hash ^= feeds_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DomainName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DomainName); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(58); - output.WriteString(LanguageCode); - } - if (HasUseSuppliedUrlsOnly) { - output.WriteRawTag(64); - output.WriteBool(UseSuppliedUrlsOnly); - } - feeds_.WriteTo(output, _repeated_feeds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DomainName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DomainName); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(58); - output.WriteString(LanguageCode); - } - if (HasUseSuppliedUrlsOnly) { - output.WriteRawTag(64); - output.WriteBool(UseSuppliedUrlsOnly); - } - feeds_.WriteTo(ref output, _repeated_feeds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DomainName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DomainName); - } - if (LanguageCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (HasUseSuppliedUrlsOnly) { - size += 1 + 1; - } - size += feeds_.CalculateSize(_repeated_feeds_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicSearchAdsSetting other) { - if (other == null) { - return; - } - if (other.DomainName.Length != 0) { - DomainName = other.DomainName; - } - if (other.LanguageCode.Length != 0) { - LanguageCode = other.LanguageCode; - } - if (other.HasUseSuppliedUrlsOnly) { - UseSuppliedUrlsOnly = other.UseSuppliedUrlsOnly; - } - feeds_.Add(other.feeds_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 50: { - DomainName = input.ReadString(); - break; - } - case 58: { - LanguageCode = input.ReadString(); - break; - } - case 64: { - UseSuppliedUrlsOnly = input.ReadBool(); - break; - } - case 74: { - feeds_.AddEntriesFrom(input, _repeated_feeds_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 50: { - DomainName = input.ReadString(); - break; - } - case 58: { - LanguageCode = input.ReadString(); - break; - } - case 64: { - UseSuppliedUrlsOnly = input.ReadBool(); - break; - } - case 74: { - feeds_.AddEntriesFrom(ref input, _repeated_feeds_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The setting for Shopping campaigns. Defines the universe of products that - /// can be advertised by the campaign, and how this campaign interacts with - /// other Shopping campaigns. - /// - public sealed partial class ShoppingSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ShoppingSetting()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingSetting(ShoppingSetting other) : this() { - _hasBits0 = other._hasBits0; - merchantId_ = other.merchantId_; - salesCountry_ = other.salesCountry_; - feedLabel_ = other.feedLabel_; - campaignPriority_ = other.campaignPriority_; - enableLocal_ = other.enableLocal_; - useVehicleInventory_ = other.useVehicleInventory_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ShoppingSetting Clone() { - return new ShoppingSetting(this); - } - - /// Field number for the "merchant_id" field. - public const int MerchantIdFieldNumber = 5; - private long merchantId_; - /// - /// Immutable. ID of the Merchant Center account. - /// This field is required for create operations. This field is immutable for - /// Shopping campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MerchantId { - get { if ((_hasBits0 & 1) != 0) { return merchantId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - merchantId_ = value; - } - } - /// Gets whether the "merchant_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMerchantId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "merchant_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMerchantId() { - _hasBits0 &= ~1; - } - - /// Field number for the "sales_country" field. - public const int SalesCountryFieldNumber = 6; - private string salesCountry_; - /// - /// Sales country of products to include in the campaign. - /// Only one of feed_label or sales_country can be set. - /// Field is immutable except for clearing. - /// Once this field is cleared, you must use feed_label if you - /// want to set the sales country. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SalesCountry { - get { return salesCountry_ ?? ""; } - set { - salesCountry_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "sales_country" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSalesCountry { - get { return salesCountry_ != null; } - } - /// Clears the value of the "sales_country" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSalesCountry() { - salesCountry_ = null; - } - - /// Field number for the "feed_label" field. - public const int FeedLabelFieldNumber = 10; - private string feedLabel_ = ""; - /// - /// Feed label of products to include in the campaign. - /// Only one of feed_label or sales_country can be set. - /// If used instead of sales_country, the feed_label field accepts country - /// codes in the same format for example: 'XX'. - /// Otherwise can be any string used for feed label in Google Merchant - /// Center. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedLabel { - get { return feedLabel_; } - set { - feedLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_priority" field. - public const int CampaignPriorityFieldNumber = 7; - private int campaignPriority_; - /// - /// Priority of the campaign. Campaigns with numerically higher priorities - /// take precedence over those with lower priorities. - /// This field is required for Shopping campaigns, with values between 0 and - /// 2, inclusive. - /// This field is optional for Smart Shopping campaigns, but must be equal to - /// 3 if set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CampaignPriority { - get { if ((_hasBits0 & 2) != 0) { return campaignPriority_; } else { return 0; } } - set { - _hasBits0 |= 2; - campaignPriority_ = value; - } - } - /// Gets whether the "campaign_priority" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignPriority { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "campaign_priority" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignPriority() { - _hasBits0 &= ~2; - } - - /// Field number for the "enable_local" field. - public const int EnableLocalFieldNumber = 8; - private bool enableLocal_; - /// - /// Whether to include local products. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnableLocal { - get { if ((_hasBits0 & 4) != 0) { return enableLocal_; } else { return false; } } - set { - _hasBits0 |= 4; - enableLocal_ = value; - } - } - /// Gets whether the "enable_local" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEnableLocal { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "enable_local" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEnableLocal() { - _hasBits0 &= ~4; - } - - /// Field number for the "use_vehicle_inventory" field. - public const int UseVehicleInventoryFieldNumber = 9; - private bool useVehicleInventory_; - /// - /// Immutable. Whether to target Vehicle Listing inventory. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool UseVehicleInventory { - get { return useVehicleInventory_; } - set { - useVehicleInventory_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ShoppingSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ShoppingSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MerchantId != other.MerchantId) return false; - if (SalesCountry != other.SalesCountry) return false; - if (FeedLabel != other.FeedLabel) return false; - if (CampaignPriority != other.CampaignPriority) return false; - if (EnableLocal != other.EnableLocal) return false; - if (UseVehicleInventory != other.UseVehicleInventory) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMerchantId) hash ^= MerchantId.GetHashCode(); - if (HasSalesCountry) hash ^= SalesCountry.GetHashCode(); - if (FeedLabel.Length != 0) hash ^= FeedLabel.GetHashCode(); - if (HasCampaignPriority) hash ^= CampaignPriority.GetHashCode(); - if (HasEnableLocal) hash ^= EnableLocal.GetHashCode(); - if (UseVehicleInventory != false) hash ^= UseVehicleInventory.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasMerchantId) { - output.WriteRawTag(40); - output.WriteInt64(MerchantId); - } - if (HasSalesCountry) { - output.WriteRawTag(50); - output.WriteString(SalesCountry); - } - if (HasCampaignPriority) { - output.WriteRawTag(56); - output.WriteInt32(CampaignPriority); - } - if (HasEnableLocal) { - output.WriteRawTag(64); - output.WriteBool(EnableLocal); - } - if (UseVehicleInventory != false) { - output.WriteRawTag(72); - output.WriteBool(UseVehicleInventory); - } - if (FeedLabel.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FeedLabel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasMerchantId) { - output.WriteRawTag(40); - output.WriteInt64(MerchantId); - } - if (HasSalesCountry) { - output.WriteRawTag(50); - output.WriteString(SalesCountry); - } - if (HasCampaignPriority) { - output.WriteRawTag(56); - output.WriteInt32(CampaignPriority); - } - if (HasEnableLocal) { - output.WriteRawTag(64); - output.WriteBool(EnableLocal); - } - if (UseVehicleInventory != false) { - output.WriteRawTag(72); - output.WriteBool(UseVehicleInventory); - } - if (FeedLabel.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FeedLabel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMerchantId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MerchantId); - } - if (HasSalesCountry) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SalesCountry); - } - if (FeedLabel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedLabel); - } - if (HasCampaignPriority) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(CampaignPriority); - } - if (HasEnableLocal) { - size += 1 + 1; - } - if (UseVehicleInventory != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ShoppingSetting other) { - if (other == null) { - return; - } - if (other.HasMerchantId) { - MerchantId = other.MerchantId; - } - if (other.HasSalesCountry) { - SalesCountry = other.SalesCountry; - } - if (other.FeedLabel.Length != 0) { - FeedLabel = other.FeedLabel; - } - if (other.HasCampaignPriority) { - CampaignPriority = other.CampaignPriority; - } - if (other.HasEnableLocal) { - EnableLocal = other.EnableLocal; - } - if (other.UseVehicleInventory != false) { - UseVehicleInventory = other.UseVehicleInventory; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 40: { - MerchantId = input.ReadInt64(); - break; - } - case 50: { - SalesCountry = input.ReadString(); - break; - } - case 56: { - CampaignPriority = input.ReadInt32(); - break; - } - case 64: { - EnableLocal = input.ReadBool(); - break; - } - case 72: { - UseVehicleInventory = input.ReadBool(); - break; - } - case 82: { - FeedLabel = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 40: { - MerchantId = input.ReadInt64(); - break; - } - case 50: { - SalesCountry = input.ReadString(); - break; - } - case 56: { - CampaignPriority = input.ReadInt32(); - break; - } - case 64: { - EnableLocal = input.ReadBool(); - break; - } - case 72: { - UseVehicleInventory = input.ReadBool(); - break; - } - case 82: { - FeedLabel = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Campaign-level settings for tracking information. - /// - public sealed partial class TrackingSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TrackingSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackingSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackingSetting(TrackingSetting other) : this() { - trackingUrl_ = other.trackingUrl_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TrackingSetting Clone() { - return new TrackingSetting(this); - } - - /// Field number for the "tracking_url" field. - public const int TrackingUrlFieldNumber = 2; - private string trackingUrl_; - /// - /// Output only. The url used for dynamic tracking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrl { - get { return trackingUrl_ ?? ""; } - set { - trackingUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrl { - get { return trackingUrl_ != null; } - } - /// Clears the value of the "tracking_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrl() { - trackingUrl_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TrackingSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TrackingSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TrackingUrl != other.TrackingUrl) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTrackingUrl) hash ^= TrackingUrl.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTrackingUrl) { - output.WriteRawTag(18); - output.WriteString(TrackingUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTrackingUrl) { - output.WriteRawTag(18); - output.WriteString(TrackingUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTrackingUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackingUrl); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TrackingSetting other) { - if (other == null) { - return; - } - if (other.HasTrackingUrl) { - TrackingUrl = other.TrackingUrl; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - TrackingUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - TrackingUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a collection of settings related to ads geotargeting. - /// - public sealed partial class GeoTargetTypeSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargetTypeSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetTypeSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetTypeSetting(GeoTargetTypeSetting other) : this() { - positiveGeoTargetType_ = other.positiveGeoTargetType_; - negativeGeoTargetType_ = other.negativeGeoTargetType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetTypeSetting Clone() { - return new GeoTargetTypeSetting(this); - } - - /// Field number for the "positive_geo_target_type" field. - public const int PositiveGeoTargetTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType positiveGeoTargetType_ = global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType.Unspecified; - /// - /// The setting used for positive geotargeting in this particular campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType PositiveGeoTargetType { - get { return positiveGeoTargetType_; } - set { - positiveGeoTargetType_ = value; - } - } - - /// Field number for the "negative_geo_target_type" field. - public const int NegativeGeoTargetTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType negativeGeoTargetType_ = global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType.Unspecified; - /// - /// The setting used for negative geotargeting in this particular campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType NegativeGeoTargetType { - get { return negativeGeoTargetType_; } - set { - negativeGeoTargetType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargetTypeSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargetTypeSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PositiveGeoTargetType != other.PositiveGeoTargetType) return false; - if (NegativeGeoTargetType != other.NegativeGeoTargetType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PositiveGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType.Unspecified) hash ^= PositiveGeoTargetType.GetHashCode(); - if (NegativeGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType.Unspecified) hash ^= NegativeGeoTargetType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (PositiveGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) PositiveGeoTargetType); - } - if (NegativeGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) NegativeGeoTargetType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PositiveGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) PositiveGeoTargetType); - } - if (NegativeGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) NegativeGeoTargetType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PositiveGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PositiveGeoTargetType); - } - if (NegativeGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NegativeGeoTargetType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargetTypeSetting other) { - if (other == null) { - return; - } - if (other.PositiveGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType.Unspecified) { - PositiveGeoTargetType = other.PositiveGeoTargetType; - } - if (other.NegativeGeoTargetType != global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType.Unspecified) { - NegativeGeoTargetType = other.NegativeGeoTargetType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - PositiveGeoTargetType = (global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType) input.ReadEnum(); - break; - } - case 16: { - NegativeGeoTargetType = (global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - PositiveGeoTargetType = (global::Google.Ads.GoogleAds.V12.Enums.PositiveGeoTargetTypeEnum.Types.PositiveGeoTargetType) input.ReadEnum(); - break; - } - case 16: { - NegativeGeoTargetType = (global::Google.Ads.GoogleAds.V12.Enums.NegativeGeoTargetTypeEnum.Types.NegativeGeoTargetType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Campaign setting for local campaigns. - /// - public sealed partial class LocalCampaignSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalCampaignSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalCampaignSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalCampaignSetting(LocalCampaignSetting other) : this() { - locationSourceType_ = other.locationSourceType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalCampaignSetting Clone() { - return new LocalCampaignSetting(this); - } - - /// Field number for the "location_source_type" field. - public const int LocationSourceTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType locationSourceType_ = global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType.Unspecified; - /// - /// The location source type for this local campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType LocationSourceType { - get { return locationSourceType_; } - set { - locationSourceType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocalCampaignSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalCampaignSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LocationSourceType != other.LocationSourceType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (LocationSourceType != global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType.Unspecified) hash ^= LocationSourceType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (LocationSourceType != global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) LocationSourceType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (LocationSourceType != global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) LocationSourceType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (LocationSourceType != global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationSourceType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalCampaignSetting other) { - if (other == null) { - return; - } - if (other.LocationSourceType != global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType.Unspecified) { - LocationSourceType = other.LocationSourceType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - LocationSourceType = (global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - LocationSourceType = (global::Google.Ads.GoogleAds.V12.Enums.LocationSourceTypeEnum.Types.LocationSourceType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Campaign-level settings for App Campaigns. - /// - public sealed partial class AppCampaignSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppCampaignSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignSetting(AppCampaignSetting other) : this() { - biddingStrategyGoalType_ = other.biddingStrategyGoalType_; - appId_ = other.appId_; - appStore_ = other.appStore_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppCampaignSetting Clone() { - return new AppCampaignSetting(this); - } - - /// Field number for the "bidding_strategy_goal_type" field. - public const int BiddingStrategyGoalTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType biddingStrategyGoalType_ = global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType.Unspecified; - /// - /// Represents the goal which the bidding strategy of this app campaign - /// should optimize towards. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType BiddingStrategyGoalType { - get { return biddingStrategyGoalType_; } - set { - biddingStrategyGoalType_ = value; - } - } - - /// Field number for the "app_id" field. - public const int AppIdFieldNumber = 4; - private string appId_; - /// - /// Immutable. A string that uniquely identifies a mobile application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppId { - get { return appId_ ?? ""; } - set { - appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "app_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppId { - get { return appId_ != null; } - } - /// Clears the value of the "app_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppId() { - appId_ = null; - } - - /// Field number for the "app_store" field. - public const int AppStoreFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore appStore_ = global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore.Unspecified; - /// - /// Immutable. The application store that distributes this specific app. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore AppStore { - get { return appStore_; } - set { - appStore_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppCampaignSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppCampaignSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BiddingStrategyGoalType != other.BiddingStrategyGoalType) return false; - if (AppId != other.AppId) return false; - if (AppStore != other.AppStore) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BiddingStrategyGoalType != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType.Unspecified) hash ^= BiddingStrategyGoalType.GetHashCode(); - if (HasAppId) hash ^= AppId.GetHashCode(); - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore.Unspecified) hash ^= AppStore.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BiddingStrategyGoalType != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) BiddingStrategyGoalType); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AppStore); - } - if (HasAppId) { - output.WriteRawTag(34); - output.WriteString(AppId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BiddingStrategyGoalType != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) BiddingStrategyGoalType); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AppStore); - } - if (HasAppId) { - output.WriteRawTag(34); - output.WriteString(AppId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BiddingStrategyGoalType != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BiddingStrategyGoalType); - } - if (HasAppId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppStore); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppCampaignSetting other) { - if (other == null) { - return; - } - if (other.BiddingStrategyGoalType != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType.Unspecified) { - BiddingStrategyGoalType = other.BiddingStrategyGoalType; - } - if (other.HasAppId) { - AppId = other.AppId; - } - if (other.AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore.Unspecified) { - AppStore = other.AppStore; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - BiddingStrategyGoalType = (global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType) input.ReadEnum(); - break; - } - case 24: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore) input.ReadEnum(); - break; - } - case 34: { - AppId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - BiddingStrategyGoalType = (global::Google.Ads.GoogleAds.V12.Enums.AppCampaignBiddingStrategyGoalTypeEnum.Types.AppCampaignBiddingStrategyGoalType) input.ReadEnum(); - break; - } - case 24: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.AppCampaignAppStoreEnum.Types.AppCampaignAppStore) input.ReadEnum(); - break; - } - case 34: { - AppId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Describes how unbranded pharma ads will be displayed. - /// - public sealed partial class VanityPharma : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VanityPharma()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VanityPharma() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VanityPharma(VanityPharma other) : this() { - vanityPharmaDisplayUrlMode_ = other.vanityPharmaDisplayUrlMode_; - vanityPharmaText_ = other.vanityPharmaText_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VanityPharma Clone() { - return new VanityPharma(this); - } - - /// Field number for the "vanity_pharma_display_url_mode" field. - public const int VanityPharmaDisplayUrlModeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode vanityPharmaDisplayUrlMode_ = global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode.Unspecified; - /// - /// The display mode for vanity pharma URLs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode VanityPharmaDisplayUrlMode { - get { return vanityPharmaDisplayUrlMode_; } - set { - vanityPharmaDisplayUrlMode_ = value; - } - } - - /// Field number for the "vanity_pharma_text" field. - public const int VanityPharmaTextFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText vanityPharmaText_ = global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText.Unspecified; - /// - /// The text that will be displayed in display URL of the text ad when - /// website description is the selected display mode for vanity pharma URLs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText VanityPharmaText { - get { return vanityPharmaText_; } - set { - vanityPharmaText_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as VanityPharma); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(VanityPharma other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (VanityPharmaDisplayUrlMode != other.VanityPharmaDisplayUrlMode) return false; - if (VanityPharmaText != other.VanityPharmaText) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (VanityPharmaDisplayUrlMode != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode.Unspecified) hash ^= VanityPharmaDisplayUrlMode.GetHashCode(); - if (VanityPharmaText != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText.Unspecified) hash ^= VanityPharmaText.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (VanityPharmaDisplayUrlMode != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) VanityPharmaDisplayUrlMode); - } - if (VanityPharmaText != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) VanityPharmaText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (VanityPharmaDisplayUrlMode != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) VanityPharmaDisplayUrlMode); - } - if (VanityPharmaText != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) VanityPharmaText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (VanityPharmaDisplayUrlMode != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VanityPharmaDisplayUrlMode); - } - if (VanityPharmaText != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VanityPharmaText); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(VanityPharma other) { - if (other == null) { - return; - } - if (other.VanityPharmaDisplayUrlMode != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode.Unspecified) { - VanityPharmaDisplayUrlMode = other.VanityPharmaDisplayUrlMode; - } - if (other.VanityPharmaText != global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText.Unspecified) { - VanityPharmaText = other.VanityPharmaText; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - VanityPharmaDisplayUrlMode = (global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode) input.ReadEnum(); - break; - } - case 16: { - VanityPharmaText = (global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - VanityPharmaDisplayUrlMode = (global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaDisplayUrlModeEnum.Types.VanityPharmaDisplayUrlMode) input.ReadEnum(); - break; - } - case 16: { - VanityPharmaText = (global::Google.Ads.GoogleAds.V12.Enums.VanityPharmaTextEnum.Types.VanityPharmaText) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Selective optimization setting for this campaign, which includes a set of - /// conversion actions to optimize this campaign towards. - /// - public sealed partial class SelectiveOptimization : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SelectiveOptimization()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectiveOptimization() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectiveOptimization(SelectiveOptimization other) : this() { - conversionActions_ = other.conversionActions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SelectiveOptimization Clone() { - return new SelectiveOptimization(this); - } - - /// Field number for the "conversion_actions" field. - public const int ConversionActionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_conversionActions_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField conversionActions_ = new pbc::RepeatedField(); - /// - /// The selected set of conversion actions for optimizing this campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ConversionActions { - get { return conversionActions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SelectiveOptimization); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SelectiveOptimization other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!conversionActions_.Equals(other.conversionActions_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= conversionActions_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - conversionActions_.WriteTo(output, _repeated_conversionActions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - conversionActions_.WriteTo(ref output, _repeated_conversionActions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += conversionActions_.CalculateSize(_repeated_conversionActions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SelectiveOptimization other) { - if (other == null) { - return; - } - conversionActions_.Add(other.conversionActions_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - conversionActions_.AddEntriesFrom(input, _repeated_conversionActions_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - conversionActions_.AddEntriesFrom(ref input, _repeated_conversionActions_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Optimization goal setting for this campaign, which includes a set of - /// optimization goal types. - /// - public sealed partial class OptimizationGoalSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OptimizationGoalSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OptimizationGoalSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OptimizationGoalSetting(OptimizationGoalSetting other) : this() { - optimizationGoalTypes_ = other.optimizationGoalTypes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OptimizationGoalSetting Clone() { - return new OptimizationGoalSetting(this); - } - - /// Field number for the "optimization_goal_types" field. - public const int OptimizationGoalTypesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_optimizationGoalTypes_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.OptimizationGoalTypeEnum.Types.OptimizationGoalType) x); - private readonly pbc::RepeatedField optimizationGoalTypes_ = new pbc::RepeatedField(); - /// - /// The list of optimization goal types. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField OptimizationGoalTypes { - get { return optimizationGoalTypes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as OptimizationGoalSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OptimizationGoalSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!optimizationGoalTypes_.Equals(other.optimizationGoalTypes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= optimizationGoalTypes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - optimizationGoalTypes_.WriteTo(output, _repeated_optimizationGoalTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - optimizationGoalTypes_.WriteTo(ref output, _repeated_optimizationGoalTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += optimizationGoalTypes_.CalculateSize(_repeated_optimizationGoalTypes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OptimizationGoalSetting other) { - if (other == null) { - return; - } - optimizationGoalTypes_.Add(other.optimizationGoalTypes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: - case 8: { - optimizationGoalTypes_.AddEntriesFrom(input, _repeated_optimizationGoalTypes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - case 8: { - optimizationGoalTypes_.AddEntriesFrom(ref input, _repeated_optimizationGoalTypes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Settings for the audience targeting. - /// - public sealed partial class AudienceSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceSetting()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSetting(AudienceSetting other) : this() { - _hasBits0 = other._hasBits0; - useAudienceGrouped_ = other.useAudienceGrouped_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceSetting Clone() { - return new AudienceSetting(this); - } - - /// Field number for the "use_audience_grouped" field. - public const int UseAudienceGroupedFieldNumber = 1; - private bool useAudienceGrouped_; - /// - /// Immutable. If true, this campaign uses an Audience resource for audience targeting. - /// If false, this campaign may use audience segment criteria instead. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool UseAudienceGrouped { - get { if ((_hasBits0 & 1) != 0) { return useAudienceGrouped_; } else { return false; } } - set { - _hasBits0 |= 1; - useAudienceGrouped_ = value; - } - } - /// Gets whether the "use_audience_grouped" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUseAudienceGrouped { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "use_audience_grouped" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUseAudienceGrouped() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UseAudienceGrouped != other.UseAudienceGrouped) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUseAudienceGrouped) hash ^= UseAudienceGrouped.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUseAudienceGrouped) { - output.WriteRawTag(8); - output.WriteBool(UseAudienceGrouped); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUseAudienceGrouped) { - output.WriteRawTag(8); - output.WriteBool(UseAudienceGrouped); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUseAudienceGrouped) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceSetting other) { - if (other == null) { - return; - } - if (other.HasUseAudienceGrouped) { - UseAudienceGrouped = other.UseAudienceGrouped; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - UseAudienceGrouped = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - UseAudienceGrouped = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Settings for LocalServicesCampaign subresource. - /// - public sealed partial class LocalServicesCampaignSettings : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocalServicesCampaignSettings()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalServicesCampaignSettings() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalServicesCampaignSettings(LocalServicesCampaignSettings other) : this() { - categoryBids_ = other.categoryBids_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocalServicesCampaignSettings Clone() { - return new LocalServicesCampaignSettings(this); - } - - /// Field number for the "category_bids" field. - public const int CategoryBidsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_categoryBids_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Resources.Campaign.Types.CategoryBid.Parser); - private readonly pbc::RepeatedField categoryBids_ = new pbc::RepeatedField(); - /// - /// Categorical level bids associated with MANUAL_CPA bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CategoryBids { - get { return categoryBids_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocalServicesCampaignSettings); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocalServicesCampaignSettings other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!categoryBids_.Equals(other.categoryBids_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= categoryBids_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - categoryBids_.WriteTo(output, _repeated_categoryBids_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - categoryBids_.WriteTo(ref output, _repeated_categoryBids_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += categoryBids_.CalculateSize(_repeated_categoryBids_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocalServicesCampaignSettings other) { - if (other == null) { - return; - } - categoryBids_.Add(other.categoryBids_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - categoryBids_.AddEntriesFrom(input, _repeated_categoryBids_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - categoryBids_.AddEntriesFrom(ref input, _repeated_categoryBids_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Category bids in LocalServicesReportingCampaignSettings. - /// - public sealed partial class CategoryBid : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CategoryBid()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Campaign.Descriptor.NestedTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CategoryBid() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CategoryBid(CategoryBid other) : this() { - _hasBits0 = other._hasBits0; - categoryId_ = other.categoryId_; - manualCpaBidMicros_ = other.manualCpaBidMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CategoryBid Clone() { - return new CategoryBid(this); - } - - /// Field number for the "category_id" field. - public const int CategoryIdFieldNumber = 1; - private string categoryId_; - /// - /// Category for which the bid will be associated with. For example, - /// xcat:service_area_business_plumber. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CategoryId { - get { return categoryId_ ?? ""; } - set { - categoryId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "category_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCategoryId { - get { return categoryId_ != null; } - } - /// Clears the value of the "category_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCategoryId() { - categoryId_ = null; - } - - /// Field number for the "manual_cpa_bid_micros" field. - public const int ManualCpaBidMicrosFieldNumber = 2; - private long manualCpaBidMicros_; - /// - /// Manual CPA bid for the category. Bid must be greater than the - /// reserve price associated for that category. Value is in micros - /// and in the advertiser's currency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ManualCpaBidMicros { - get { if ((_hasBits0 & 1) != 0) { return manualCpaBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - manualCpaBidMicros_ = value; - } - } - /// Gets whether the "manual_cpa_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasManualCpaBidMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "manual_cpa_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearManualCpaBidMicros() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CategoryBid); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CategoryBid other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CategoryId != other.CategoryId) return false; - if (ManualCpaBidMicros != other.ManualCpaBidMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCategoryId) hash ^= CategoryId.GetHashCode(); - if (HasManualCpaBidMicros) hash ^= ManualCpaBidMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCategoryId) { - output.WriteRawTag(10); - output.WriteString(CategoryId); - } - if (HasManualCpaBidMicros) { - output.WriteRawTag(16); - output.WriteInt64(ManualCpaBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCategoryId) { - output.WriteRawTag(10); - output.WriteString(CategoryId); - } - if (HasManualCpaBidMicros) { - output.WriteRawTag(16); - output.WriteInt64(ManualCpaBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCategoryId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CategoryId); - } - if (HasManualCpaBidMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ManualCpaBidMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CategoryBid other) { - if (other == null) { - return; - } - if (other.HasCategoryId) { - CategoryId = other.CategoryId; - } - if (other.HasManualCpaBidMicros) { - ManualCpaBidMicros = other.ManualCpaBidMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CategoryId = input.ReadString(); - break; - } - case 16: { - ManualCpaBidMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CategoryId = input.ReadString(); - break; - } - case 16: { - ManualCpaBidMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAsset.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAsset.g.cs deleted file mode 100755 index 9b457721e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAsset.g.cs +++ /dev/null @@ -1,491 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_asset.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_asset.proto - public static partial class CampaignAssetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_asset.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignAssetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2Fzc2V0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfZmll", - "bGRfdHlwZS5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2Fzc2V0X2xpbmtfc3RhdHVzLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvYXNzZXRfc291cmNlLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "IukECg1DYW1wYWlnbkFzc2V0EkUKDXJlc291cmNlX25hbWUYASABKAlCLuBB", - "BfpBKAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQXNzZXQS", - "QAoIY2FtcGFpZ24YBiABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NhbXBhaWduSACIAQESOgoFYXNzZXQYByABKAlCJuBBBfpBIAoe", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0SAGIAQESWgoKZmllbGRf", - "dHlwZRgEIAEoDjJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5B", - "c3NldEZpZWxkVHlwZUVudW0uQXNzZXRGaWVsZFR5cGVCA+BBBRJQCgZzb3Vy", - "Y2UYCCABKA4yOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXNz", - "ZXRTb3VyY2VFbnVtLkFzc2V0U291cmNlQgPgQQMSUwoGc3RhdHVzGAUgASgO", - "MkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFzc2V0TGlua1N0", - "YXR1c0VudW0uQXNzZXRMaW5rU3RhdHVzOnnqQXYKJmdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9DYW1wYWlnbkFzc2V0EkxjdXN0b21lcnMve2N1c3RvbWVy", - "X2lkfS9jYW1wYWlnbkFzc2V0cy97Y2FtcGFpZ25faWR9fnthc3NldF9pZH1+", - "e2ZpZWxkX3R5cGV9QgsKCV9jYW1wYWlnbkIICgZfYXNzZXRChAIKJmNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhJDYW1wYWlnbkFz", - "c2V0UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogID", - "R0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSourceReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset), global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset.Parser, new[]{ "ResourceName", "Campaign", "Asset", "FieldType", "Source", "Status" }, new[]{ "Campaign", "Asset" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A link between a Campaign and an Asset. - /// - public sealed partial class CampaignAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAsset(CampaignAsset other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - asset_ = other.asset_; - fieldType_ = other.fieldType_; - source_ = other.source_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAsset Clone() { - return new CampaignAsset(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign asset. - /// CampaignAsset resource names have the form: - /// - /// `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 6; - private string campaign_; - /// - /// Immutable. The campaign to which the asset is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 7; - private string asset_; - /// - /// Immutable. The asset which is linked to the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_ ?? ""; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "asset" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAsset { - get { return asset_ != null; } - } - /// Clears the value of the "asset" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAsset() { - asset_ = null; - } - - /// Field number for the "field_type" field. - public const int FieldTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType fieldType_ = global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified; - /// - /// Immutable. Role that the asset takes under the linked campaign. - /// Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType FieldType { - get { return fieldType_; } - set { - fieldType_ = value; - } - } - - /// Field number for the "source" field. - public const int SourceFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource source_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified; - /// - /// Output only. Source of the campaign asset link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource Source { - get { return source_; } - set { - source_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified; - /// - /// Status of the campaign asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (Asset != other.Asset) return false; - if (FieldType != other.FieldType) return false; - if (Source != other.Source) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasAsset) hash ^= Asset.GetHashCode(); - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) hash ^= FieldType.GetHashCode(); - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) hash ^= Source.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasCampaign) { - output.WriteRawTag(50); - output.WriteString(Campaign); - } - if (HasAsset) { - output.WriteRawTag(58); - output.WriteString(Asset); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Source); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasCampaign) { - output.WriteRawTag(50); - output.WriteString(Campaign); - } - if (HasAsset) { - output.WriteRawTag(58); - output.WriteString(Asset); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Source); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasAsset) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignAsset other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasAsset) { - Asset = other.Asset; - } - if (other.FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - FieldType = other.FieldType; - } - if (other.Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - Source = other.Source; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 50: { - Campaign = input.ReadString(); - break; - } - case 58: { - Asset = input.ReadString(); - break; - } - case 64: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 50: { - Campaign = input.ReadString(); - break; - } - case 58: { - Asset = input.ReadString(); - break; - } - case 64: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetResourceNames.g.cs deleted file mode 100755 index 2956a22b5..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetResourceNames.g.cs +++ /dev/null @@ -1,333 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignAsset resource. - public sealed partial class CampaignAssetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}. - /// - CustomerCampaignAssetFieldType = 1, - } - - private static gax::PathTemplate s_customerCampaignAssetFieldType = new gax::PathTemplate("customers/{customer_id}/campaignAssets/{campaign_id_asset_id_field_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignAssetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignAssetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignAssetName FromCustomerCampaignAssetFieldType(string customerId, string campaignId, string assetId, string fieldTypeId) => - new CampaignAssetName(ResourceNameType.CustomerCampaignAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}. - /// - public static string Format(string customerId, string campaignId, string assetId, string fieldTypeId) => - FormatCustomerCampaignAssetFieldType(customerId, campaignId, assetId, fieldTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}. - /// - public static string FormatCustomerCampaignAssetFieldType(string customerId, string campaignId, string assetId, string fieldTypeId) => - s_customerCampaignAssetFieldType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignAssetName Parse(string campaignAssetName) => Parse(campaignAssetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignAssetName Parse(string campaignAssetName, bool allowUnparsed) => - TryParse(campaignAssetName, allowUnparsed, out CampaignAssetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignAssetName, out CampaignAssetName result) => - TryParse(campaignAssetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignAssetName, bool allowUnparsed, out CampaignAssetName result) - { - gax::GaxPreconditions.CheckNotNull(campaignAssetName, nameof(campaignAssetName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignAssetFieldType.TryParseName(campaignAssetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignAssetFieldType(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignAssetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignAssetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetId = null, string campaignId = null, string customerId = null, string fieldTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetId = assetId; - CampaignId = campaignId; - CustomerId = customerId; - FieldTypeId = fieldTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - public CampaignAssetName(string customerId, string campaignId, string assetId, string fieldTypeId) : this(ResourceNameType.CustomerCampaignAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Asset ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetId { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The FieldType ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FieldTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignAssetFieldType: return s_customerCampaignAssetFieldType.Expand(CustomerId, $"{CampaignId}~{AssetId}~{FieldTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignAssetName); - - /// - public bool Equals(CampaignAssetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignAssetName a, CampaignAssetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignAssetName a, CampaignAssetName b) => !(a == b); - } - - public partial class CampaignAsset - { - /// - /// -typed view over the resource name property. - /// - internal CampaignAssetName ResourceNameAsCampaignAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetService.g.cs deleted file mode 100755 index 2070a1988..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetService.g.cs +++ /dev/null @@ -1,1309 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_asset_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_asset_service.proto - public static partial class CampaignAssetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_asset_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignAssetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "YXNzZXRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVz", - "cG9uc2VfY29udGVudF90eXBlLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2NhbXBhaWduX2Fzc2V0LnByb3RvGhxnb29nbGUv", - "YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", - "cHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIqcCChtNdXRhdGVDYW1w", - "YWlnbkFzc2V0c1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJS", - "CgpvcGVyYXRpb25zGAIgAygLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLkNhbXBhaWduQXNzZXRPcGVyYXRpb25CA+BBAhIXCg9wYXJ0", - "aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCBJqChVy", - "ZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9u", - "c2VDb250ZW50VHlwZSKfAgoWQ2FtcGFpZ25Bc3NldE9wZXJhdGlvbhIvCgt1", - "cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sS", - "QwoGY3JlYXRlGAEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5DYW1wYWlnbkFzc2V0SAASQwoGdXBkYXRlGAMgASgLMjEuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkFzc2V0", - "SAASPQoGcmVtb3ZlGAIgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DYW1wYWlnbkFzc2V0SABCCwoJb3BlcmF0aW9uIqABChxNdXRhdGVD", - "YW1wYWlnbkFzc2V0c1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJv", - "chgBIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEk0KB3Jlc3VsdHMYAiADKAsy", - "PC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ2Ft", - "cGFpZ25Bc3NldFJlc3VsdCKqAQoZTXV0YXRlQ2FtcGFpZ25Bc3NldFJlc3Vs", - "dBJCCg1yZXNvdXJjZV9uYW1lGAEgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9DYW1wYWlnbkFzc2V0EkkKDmNhbXBhaWduX2Fzc2V0GAIg", - "ASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1w", - "YWlnbkFzc2V0MtECChRDYW1wYWlnbkFzc2V0U2VydmljZRLxAQoUTXV0YXRl", - "Q2FtcGFpZ25Bc3NldHMSPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlQ2FtcGFpZ25Bc3NldHNSZXF1ZXN0Gj8uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQXNzZXRz", - "UmVzcG9uc2UiWILT5JMCOSI0L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lk", - "PSp9L2NhbXBhaWduQXNzZXRzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9w", - "ZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBz", - "Oi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KFAgolY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IZQ2FtcGFpZ25Bc3Nl", - "dFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2Vz", - "ogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIh", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult.Parser, new[]{ "ResourceName", "CampaignAsset" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignAssetService.MutateCampaignAssets][google.ads.googleads.v12.services.CampaignAssetService.MutateCampaignAssets]. - /// - public sealed partial class MutateCampaignAssetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignAssetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetsRequest(MutateCampaignAssetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetsRequest Clone() { - return new MutateCampaignAssetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign assets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignAssetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignAssetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignAssetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign asset. - /// - public sealed partial class CampaignAssetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignAssetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetOperation(CampaignAssetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetOperation Clone() { - return new CampaignAssetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign - /// asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 3; - /// - /// Update operation: The campaign asset is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed campaign asset is - /// expected, in this format: - /// - /// `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 3, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignAssetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignAssetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(26); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(26); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignAssetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a campaign asset mutate. - /// - public sealed partial class MutateCampaignAssetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignAssetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetsResponse(MutateCampaignAssetsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetsResponse Clone() { - return new MutateCampaignAssetsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignAssetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignAssetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignAssetsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign asset mutate. - /// - public sealed partial class MutateCampaignAssetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignAssetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetResult(MutateCampaignAssetResult other) : this() { - resourceName_ = other.resourceName_; - campaignAsset_ = other.campaignAsset_ != null ? other.campaignAsset_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetResult Clone() { - return new MutateCampaignAssetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_asset" field. - public const int CampaignAssetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset campaignAsset_; - /// - /// The mutated campaign asset with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset CampaignAsset { - get { return campaignAsset_; } - set { - campaignAsset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignAssetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignAssetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignAsset, other.CampaignAsset)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignAsset_ != null) hash ^= CampaignAsset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignAsset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignAsset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignAssetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignAsset_ != null) { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - CampaignAsset.MergeFrom(other.CampaignAsset); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - input.ReadMessage(CampaignAsset); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - input.ReadMessage(CampaignAsset); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceClient.g.cs deleted file mode 100755 index 34ff76525..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceClient.g.cs +++ /dev/null @@ -1,482 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignAssetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignAssetServiceSettings GetDefault() => new CampaignAssetServiceSettings(); - - /// Constructs a new object with default settings. - public CampaignAssetServiceSettings() - { - } - - private CampaignAssetServiceSettings(CampaignAssetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignAssetsSettings = existing.MutateCampaignAssetsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignAssetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignAssetServiceClient.MutateCampaignAssets and - /// CampaignAssetServiceClient.MutateCampaignAssetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignAssetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignAssetServiceSettings Clone() => new CampaignAssetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignAssetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignAssetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignAssetServiceClientBuilder() : base(CampaignAssetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignAssetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignAssetServiceClient Build() - { - CampaignAssetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignAssetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignAssetServiceClient.ChannelPool; - } - - /// CampaignAssetService client wrapper, for convenient use. - /// - /// Service to manage campaign assets. - /// - public abstract partial class CampaignAssetServiceClient - { - /// - /// The default endpoint for the CampaignAssetService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignAssetService scopes. - /// - /// The default CampaignAssetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignAssetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignAssetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignAssetServiceClient Create() => new CampaignAssetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignAssetServiceClient Create(grpccore::CallInvoker callInvoker, CampaignAssetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignAssetService.CampaignAssetServiceClient grpcClient = new CampaignAssetService.CampaignAssetServiceClient(callInvoker); - return new CampaignAssetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignAssetService client - public virtual CampaignAssetService.CampaignAssetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignAssetsResponse MutateCampaignAssets(MutateCampaignAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetsAsync(MutateCampaignAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetsAsync(MutateCampaignAssetsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose campaign assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign assets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignAssetsResponse MutateCampaignAssets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignAssets(new MutateCampaignAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose campaign assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign assets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignAssetsAsync(new MutateCampaignAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose campaign assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign assets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignAssetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignAssetService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign assets. - /// - public sealed partial class CampaignAssetServiceClientImpl : CampaignAssetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignAssets; - - /// - /// Constructs a client wrapper for the CampaignAssetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CampaignAssetServiceClientImpl(CampaignAssetService.CampaignAssetServiceClient grpcClient, CampaignAssetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignAssetServiceSettings effectiveSettings = settings ?? CampaignAssetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignAssets = clientHelper.BuildApiCall("MutateCampaignAssets", grpcClient.MutateCampaignAssetsAsync, grpcClient.MutateCampaignAssets, effectiveSettings.MutateCampaignAssetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignAssets); - Modify_MutateCampaignAssetsApiCall(ref _callMutateCampaignAssets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignAssetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignAssetService.CampaignAssetServiceClient grpcClient, CampaignAssetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignAssetService client - public override CampaignAssetService.CampaignAssetServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignAssetsRequest(ref MutateCampaignAssetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignAssetsResponse MutateCampaignAssets(MutateCampaignAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignAssetsRequest(ref request, ref callSettings); - return _callMutateCampaignAssets.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignAssetsAsync(MutateCampaignAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignAssetsRequest(ref request, ref callSettings); - return _callMutateCampaignAssets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceGrpc.g.cs deleted file mode 100755 index d3e27275d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceGrpc.g.cs +++ /dev/null @@ -1,282 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_asset_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign assets. - /// - public static partial class CampaignAssetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignAssetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignAssets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignAssets", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignAssetService - [grpc::BindServiceMethod(typeof(CampaignAssetService), "BindService")] - public abstract partial class CampaignAssetServiceBase - { - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignAssets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignAssetService - public partial class CampaignAssetServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignAssetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignAssetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignAssetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignAssetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignAssetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignAssetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsResponse MutateCampaignAssets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignAssets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsResponse MutateCampaignAssets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignAssets, null, options, request); - } - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignAssetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NotAllowlistedError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignAssets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignAssetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignAssetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignAssetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignAssets, serviceImpl.MutateCampaignAssets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignAssetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignAssets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceResourceNames.g.cs deleted file mode 100755 index fca350618..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignAssetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignAssetName RemoveAsCampaignAssetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignAssetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignAssetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignAssetName ResourceNameAsCampaignAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetSet.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetSet.g.cs deleted file mode 100755 index 006a54631..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetSet.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_asset_set.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_asset_set.proto - public static partial class CampaignAssetSetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_asset_set.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignAssetSetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2Fzc2V0X3NldC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fzc2V0", - "X3NldF9saW5rX3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhh", - "dmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKvAwoQQ2Ft", - "cGFpZ25Bc3NldFNldBJICg1yZXNvdXJjZV9uYW1lGAEgASgJQjHgQQX6QSsK", - "KWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkFzc2V0U2V0EjsK", - "CGNhbXBhaWduGAIgASgJQingQQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DYW1wYWlnbhI8Cglhc3NldF9zZXQYAyABKAlCKeBBBfpBIwohZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0U2V0El4KBnN0YXR1cxgEIAEo", - "DjJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Bc3NldFNldExp", - "bmtTdGF0dXNFbnVtLkFzc2V0U2V0TGlua1N0YXR1c0ID4EEDOnbqQXMKKWdv", - "b2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkFzc2V0U2V0EkZjdXN0", - "b21lcnMve2N1c3RvbWVyX2lkfS9jYW1wYWlnbkFzc2V0U2V0cy97Y2FtcGFp", - "Z25faWR9fnthc3NldF9zZXRfaWR9QocCCiZjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlc0IVQ2FtcGFpZ25Bc3NldFNldFByb3RvUAFa", - "S2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet), global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet.Parser, new[]{ "ResourceName", "Campaign", "AssetSet", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// CampaignAssetSet is the linkage between a campaign and an asset set. - /// Adding a CampaignAssetSet links an asset set with a campaign. - /// - public sealed partial class CampaignAssetSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignAssetSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetSet(CampaignAssetSet other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - assetSet_ = other.assetSet_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetSet Clone() { - return new CampaignAssetSet(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign asset set. - /// Asset set asset resource names have the form: - /// - /// `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private string campaign_ = ""; - /// - /// Immutable. The campaign to which this asset set is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_set" field. - public const int AssetSetFieldNumber = 3; - private string assetSet_ = ""; - /// - /// Immutable. The asset set which is linked to the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetSet { - get { return assetSet_; } - set { - assetSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified; - /// - /// Output only. The status of the campaign asset set asset. Read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignAssetSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignAssetSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (AssetSet != other.AssetSet) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (AssetSet.Length != 0) hash ^= AssetSet.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AssetSet); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AssetSet); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (AssetSet.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetSet); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignAssetSet other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.AssetSet.Length != 0) { - AssetSet = other.AssetSet; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 26: { - AssetSet = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 26: { - AssetSet = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetSetResourceNames.g.cs deleted file mode 100755 index d1871d56f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetResourceNames.g.cs +++ /dev/null @@ -1,317 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignAssetSet resource. - public sealed partial class CampaignAssetSetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id} - /// . - /// - CustomerCampaignAssetSet = 1, - } - - private static gax::PathTemplate s_customerCampaignAssetSet = new gax::PathTemplate("customers/{customer_id}/campaignAssetSets/{campaign_id_asset_set_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignAssetSetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignAssetSetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignAssetSetName FromCustomerCampaignAssetSet(string customerId, string campaignId, string assetSetId) => - new CampaignAssetSetName(ResourceNameType.CustomerCampaignAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}. - /// - public static string Format(string customerId, string campaignId, string assetSetId) => - FormatCustomerCampaignAssetSet(customerId, campaignId, assetSetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}. - /// - public static string FormatCustomerCampaignAssetSet(string customerId, string campaignId, string assetSetId) => - s_customerCampaignAssetSet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignAssetSetName Parse(string campaignAssetSetName) => Parse(campaignAssetSetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignAssetSetName Parse(string campaignAssetSetName, bool allowUnparsed) => - TryParse(campaignAssetSetName, allowUnparsed, out CampaignAssetSetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignAssetSetName, out CampaignAssetSetName result) => - TryParse(campaignAssetSetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignAssetSetName, bool allowUnparsed, out CampaignAssetSetName result) - { - gax::GaxPreconditions.CheckNotNull(campaignAssetSetName, nameof(campaignAssetSetName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignAssetSet.TryParseName(campaignAssetSetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignAssetSet(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignAssetSetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignAssetSetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetSetId = null, string campaignId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetSetId = assetSetId; - CampaignId = campaignId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - public CampaignAssetSetName(string customerId, string campaignId, string assetSetId) : this(ResourceNameType.CustomerCampaignAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetSetId { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignAssetSet: return s_customerCampaignAssetSet.Expand(CustomerId, $"{CampaignId}~{AssetSetId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignAssetSetName); - - /// - public bool Equals(CampaignAssetSetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignAssetSetName a, CampaignAssetSetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignAssetSetName a, CampaignAssetSetName b) => !(a == b); - } - - public partial class CampaignAssetSet - { - /// - /// -typed view over the resource name property. - /// - internal CampaignAssetSetName ResourceNameAsCampaignAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignAssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetSetName AssetSetAsAssetSetName - { - get => string.IsNullOrEmpty(AssetSet) ? null : AssetSetName.Parse(AssetSet, allowUnparsed: true); - set => AssetSet = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetSetService.g.cs deleted file mode 100755 index 0b620ae23..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetService.g.cs +++ /dev/null @@ -1,1200 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_asset_set_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_asset_set_service.proto - public static partial class CampaignAssetSetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_asset_set_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignAssetSetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "YXNzZXRfc2V0X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9hc3NldF9zZXQucHJvdG8a", - "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xp", - "ZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5w", - "cm90byKtAgoeTXV0YXRlQ2FtcGFpZ25Bc3NldFNldHNSZXF1ZXN0EhgKC2N1", - "c3RvbWVyX2lkGAEgASgJQgPgQQISVQoKb3BlcmF0aW9ucxgCIAMoCzI8Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DYW1wYWlnbkFzc2V0", - "U2V0T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUK", - "DXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBl", - "GAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3Bv", - "bnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUisgEKGUNh", - "bXBhaWduQXNzZXRTZXRPcGVyYXRpb24SRgoGY3JlYXRlGAEgASgLMjQuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkFzc2V0", - "U2V0SAASQAoGcmVtb3ZlGAIgASgJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DYW1wYWlnbkFzc2V0U2V0SABCCwoJb3BlcmF0aW9uIqYBCh9N", - "dXRhdGVDYW1wYWlnbkFzc2V0U2V0c1Jlc3BvbnNlElAKB3Jlc3VsdHMYASAD", - "KAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "Q2FtcGFpZ25Bc3NldFNldFJlc3VsdBIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJy", - "b3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1cyK3AQocTXV0YXRlQ2FtcGFp", - "Z25Bc3NldFNldFJlc3VsdBJFCg1yZXNvdXJjZV9uYW1lGAEgASgJQi76QSsK", - "KWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkFzc2V0U2V0ElAK", - "EmNhbXBhaWduX2Fzc2V0X3NldBgCIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25Bc3NldFNldDLgAgoXQ2FtcGFp", - "Z25Bc3NldFNldFNlcnZpY2US/QEKF011dGF0ZUNhbXBhaWduQXNzZXRTZXRz", - "EkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNh", - "bXBhaWduQXNzZXRTZXRzUmVxdWVzdBpCLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkFzc2V0U2V0c1Jlc3BvbnNl", - "IluC0+STAjwiNy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9jYW1w", - "YWlnbkFzc2V0U2V0czptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCiAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCHENhbXBhaWduQXNzZXRTZXRT", - "ZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6IC", - "A0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult.Parser, new[]{ "ResourceName", "CampaignAssetSet" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignAssetSetService.MutateCampaignAssetSets][google.ads.googleads.v12.services.CampaignAssetSetService.MutateCampaignAssetSets]. - /// - public sealed partial class MutateCampaignAssetSetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignAssetSetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetsRequest(MutateCampaignAssetSetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetsRequest Clone() { - return new MutateCampaignAssetSetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign asset sets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign asset sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignAssetSetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignAssetSetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignAssetSetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on a campaign asset set. - /// - public sealed partial class CampaignAssetSetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignAssetSetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetSetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetSetOperation(CampaignAssetSetOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAssetSetOperation Clone() { - return new CampaignAssetSetOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign asset - /// set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed campaign asset set is - /// expected, in this format: - /// `customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignAssetSetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignAssetSetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignAssetSetOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a campaign asset set mutate. - /// - public sealed partial class MutateCampaignAssetSetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignAssetSetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetsResponse(MutateCampaignAssetSetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetsResponse Clone() { - return new MutateCampaignAssetSetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignAssetSetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignAssetSetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignAssetSetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign asset set mutate. - /// - public sealed partial class MutateCampaignAssetSetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignAssetSetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetResult(MutateCampaignAssetSetResult other) : this() { - resourceName_ = other.resourceName_; - campaignAssetSet_ = other.campaignAssetSet_ != null ? other.campaignAssetSet_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignAssetSetResult Clone() { - return new MutateCampaignAssetSetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_asset_set" field. - public const int CampaignAssetSetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet campaignAssetSet_; - /// - /// The mutated campaign asset set with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet CampaignAssetSet { - get { return campaignAssetSet_; } - set { - campaignAssetSet_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignAssetSetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignAssetSetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignAssetSet, other.CampaignAssetSet)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignAssetSet_ != null) hash ^= CampaignAssetSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignAssetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignAssetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignAssetSet_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignAssetSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignAssetSetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignAssetSet_ != null) { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - CampaignAssetSet.MergeFrom(other.CampaignAssetSet); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - input.ReadMessage(CampaignAssetSet); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - input.ReadMessage(CampaignAssetSet); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceClient.g.cs deleted file mode 100755 index 96cdc1a4b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignAssetSetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignAssetSetServiceSettings GetDefault() => new CampaignAssetSetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignAssetSetServiceSettings() - { - } - - private CampaignAssetSetServiceSettings(CampaignAssetSetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignAssetSetsSettings = existing.MutateCampaignAssetSetsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignAssetSetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignAssetSetServiceClient.MutateCampaignAssetSets and - /// CampaignAssetSetServiceClient.MutateCampaignAssetSetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignAssetSetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignAssetSetServiceSettings Clone() => new CampaignAssetSetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignAssetSetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignAssetSetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignAssetSetServiceClientBuilder() : base(CampaignAssetSetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignAssetSetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignAssetSetServiceClient Build() - { - CampaignAssetSetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignAssetSetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignAssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignAssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignAssetSetServiceClient.ChannelPool; - } - - /// CampaignAssetSetService client wrapper, for convenient use. - /// - /// Service to manage campaign asset set - /// - public abstract partial class CampaignAssetSetServiceClient - { - /// - /// The default endpoint for the CampaignAssetSetService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignAssetSetService scopes. - /// - /// The default CampaignAssetSetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignAssetSetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignAssetSetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignAssetSetServiceClient Create() => new CampaignAssetSetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignAssetSetServiceClient Create(grpccore::CallInvoker callInvoker, CampaignAssetSetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignAssetSetService.CampaignAssetSetServiceClient grpcClient = new CampaignAssetSetService.CampaignAssetSetServiceClient(callInvoker); - return new CampaignAssetSetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignAssetSetService client - public virtual CampaignAssetSetService.CampaignAssetSetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignAssetSetsResponse MutateCampaignAssetSets(MutateCampaignAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetSetsAsync(MutateCampaignAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetSetsAsync(MutateCampaignAssetSetsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignAssetSetsResponse MutateCampaignAssetSets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignAssetSets(new MutateCampaignAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetSetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignAssetSetsAsync(new MutateCampaignAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign asset sets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignAssetSetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignAssetSetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignAssetSetService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign asset set - /// - public sealed partial class CampaignAssetSetServiceClientImpl : CampaignAssetSetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignAssetSets; - - /// - /// Constructs a client wrapper for the CampaignAssetSetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CampaignAssetSetServiceClientImpl(CampaignAssetSetService.CampaignAssetSetServiceClient grpcClient, CampaignAssetSetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignAssetSetServiceSettings effectiveSettings = settings ?? CampaignAssetSetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignAssetSets = clientHelper.BuildApiCall("MutateCampaignAssetSets", grpcClient.MutateCampaignAssetSetsAsync, grpcClient.MutateCampaignAssetSets, effectiveSettings.MutateCampaignAssetSetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignAssetSets); - Modify_MutateCampaignAssetSetsApiCall(ref _callMutateCampaignAssetSets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignAssetSetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignAssetSetService.CampaignAssetSetServiceClient grpcClient, CampaignAssetSetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignAssetSetService client - public override CampaignAssetSetService.CampaignAssetSetServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignAssetSetsRequest(ref MutateCampaignAssetSetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignAssetSetsResponse MutateCampaignAssetSets(MutateCampaignAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignAssetSetsRequest(ref request, ref callSettings); - return _callMutateCampaignAssetSets.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignAssetSetsAsync(MutateCampaignAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignAssetSetsRequest(ref request, ref callSettings); - return _callMutateCampaignAssetSets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceGrpc.g.cs deleted file mode 100755 index 6f7b07412..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_asset_set_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign asset set - /// - public static partial class CampaignAssetSetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignAssetSetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetSetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetSetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignAssetSets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignAssetSets", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetSetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignAssetSetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignAssetSetService - [grpc::BindServiceMethod(typeof(CampaignAssetSetService), "BindService")] - public abstract partial class CampaignAssetSetServiceBase - { - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignAssetSetService - public partial class CampaignAssetSetServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignAssetSetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignAssetSetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignAssetSetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignAssetSetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignAssetSetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignAssetSetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsResponse MutateCampaignAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignAssetSets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsResponse MutateCampaignAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignAssetSets, null, options, request); - } - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignAssetSetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes campaign asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignAssetSets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignAssetSetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignAssetSetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignAssetSetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignAssetSets, serviceImpl.MutateCampaignAssetSets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignAssetSetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignAssetSets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignAssetSets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceResourceNames.g.cs deleted file mode 100755 index b17992079..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAssetSetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignAssetSetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignAssetSetName RemoveAsCampaignAssetSetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignAssetSetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignAssetSetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignAssetSetName ResourceNameAsCampaignAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignAssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAudienceView.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAudienceView.g.cs deleted file mode 100755 index 95601d3b3..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAudienceView.g.cs +++ /dev/null @@ -1,258 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_audience_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_audience_view.proto - public static partial class CampaignAudienceViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_audience_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignAudienceViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2F1ZGllbmNlX3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i5AEKFENhbXBhaWduQXVkaWVu", - "Y2VWaWV3EkwKDXJlc291cmNlX25hbWUYASABKAlCNeBBA/pBLwotZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQXVkaWVuY2VWaWV3On7qQXsK", - "LWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkF1ZGllbmNlVmll", - "dxJKY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY2FtcGFpZ25BdWRpZW5jZVZp", - "ZXdzL3tjYW1wYWlnbl9pZH1+e2NyaXRlcmlvbl9pZH1CiwIKJmNvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhlDYW1wYWlnbkF1ZGll", - "bmNlVmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNl", - "c6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPK", - "AiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceView), global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign audience view. - /// Includes performance data from interests and remarketing lists for Display - /// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), - /// aggregated by campaign and audience criterion. This view only includes - /// audiences attached at the campaign level. - /// - public sealed partial class CampaignAudienceView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignAudienceView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAudienceView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAudienceView(CampaignAudienceView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignAudienceView Clone() { - return new CampaignAudienceView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the campaign audience view. - /// Campaign audience view resource names have the form: - /// - /// `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignAudienceView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignAudienceView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignAudienceView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignAudienceViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignAudienceViewResourceNames.g.cs deleted file mode 100755 index 9fcfaf3dd..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignAudienceViewResourceNames.g.cs +++ /dev/null @@ -1,313 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignAudienceView resource. - public sealed partial class CampaignAudienceViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}. - /// - CustomerCampaignCriterion = 1, - } - - private static gax::PathTemplate s_customerCampaignCriterion = new gax::PathTemplate("customers/{customer_id}/campaignAudienceViews/{campaign_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignAudienceViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignAudienceViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CampaignAudienceViewName FromCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - new CampaignAudienceViewName(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}. - /// - public static string Format(string customerId, string campaignId, string criterionId) => - FormatCustomerCampaignCriterion(customerId, campaignId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}. - /// - public static string FormatCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - s_customerCampaignCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignAudienceViewName Parse(string campaignAudienceViewName) => - Parse(campaignAudienceViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignAudienceViewName Parse(string campaignAudienceViewName, bool allowUnparsed) => - TryParse(campaignAudienceViewName, allowUnparsed, out CampaignAudienceViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignAudienceViewName, out CampaignAudienceViewName result) => - TryParse(campaignAudienceViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignAudienceViewName, bool allowUnparsed, out CampaignAudienceViewName result) - { - gax::GaxPreconditions.CheckNotNull(campaignAudienceViewName, nameof(campaignAudienceViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignCriterion.TryParseName(campaignAudienceViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignAudienceViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignAudienceViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public CampaignAudienceViewName(string customerId, string campaignId, string criterionId) : this(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignCriterion: return s_customerCampaignCriterion.Expand(CustomerId, $"{CampaignId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignAudienceViewName); - - /// - public bool Equals(CampaignAudienceViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignAudienceViewName a, CampaignAudienceViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignAudienceViewName a, CampaignAudienceViewName b) => !(a == b); - } - - public partial class CampaignAudienceView - { - /// - /// -typed view over the resource name - /// property. - /// - internal CampaignAudienceViewName ResourceNameAsCampaignAudienceViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignAudienceViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBidModifier.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBidModifier.g.cs deleted file mode 100755 index c7e94e601..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBidModifier.g.cs +++ /dev/null @@ -1,506 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_bid_modifier.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_bid_modifier.proto - public static partial class CampaignBidModifierReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_bid_modifier.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignBidModifierReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2JpZF9tb2RpZmllci5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9j", - "cml0ZXJpYS5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90", - "bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byLwAwoTQ2FtcGFpZ25CaWRN", - "b2RpZmllchJLCg1yZXNvdXJjZV9uYW1lGAEgASgJQjTgQQX6QS4KLGdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkJpZE1vZGlmaWVyEkAKCGNh", - "bXBhaWduGAYgASgJQingQQP6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9DYW1wYWlnbkgBiAEBEh4KDGNyaXRlcmlvbl9pZBgHIAEoA0ID4EEDSAKI", - "AQESGQoMYmlkX21vZGlmaWVyGAggASgBSAOIAQESVQoQaW50ZXJhY3Rpb25f", - "dHlwZRgFIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "SW50ZXJhY3Rpb25UeXBlSW5mb0ID4EEFSAA6fOpBeQosZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0NhbXBhaWduQmlkTW9kaWZpZXISSWN1c3RvbWVycy97", - "Y3VzdG9tZXJfaWR9L2NhbXBhaWduQmlkTW9kaWZpZXJzL3tjYW1wYWlnbl9p", - "ZH1+e2NyaXRlcmlvbl9pZH1CCwoJY3JpdGVyaW9uQgsKCV9jYW1wYWlnbkIP", - "Cg1fY3JpdGVyaW9uX2lkQg8KDV9iaWRfbW9kaWZpZXJCigIKJmNvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhhDYW1wYWlnbkJpZE1v", - "ZGlmaWVyUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2Vz", - "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oC", - "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier), global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier.Parser, new[]{ "ResourceName", "Campaign", "CriterionId", "BidModifier", "InteractionType" }, new[]{ "Criterion", "Campaign", "CriterionId", "BidModifier" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a bid-modifiable only criterion at the campaign level. - /// - public sealed partial class CampaignBidModifier : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignBidModifier()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifierReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBidModifier() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBidModifier(CampaignBidModifier other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - criterionId_ = other.criterionId_; - bidModifier_ = other.bidModifier_; - switch (other.CriterionCase) { - case CriterionOneofCase.InteractionType: - InteractionType = other.InteractionType.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBidModifier Clone() { - return new CampaignBidModifier(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign bid modifier. - /// Campaign bid modifier resource names have the form: - /// - /// `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 6; - private string campaign_; - /// - /// Output only. The campaign to which this criterion belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "criterion_id" field. - public const int CriterionIdFieldNumber = 7; - private long criterionId_; - /// - /// Output only. The ID of the criterion to bid modify. - /// - /// This field is ignored for mutates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CriterionId { - get { if ((_hasBits0 & 1) != 0) { return criterionId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - criterionId_ = value; - } - } - /// Gets whether the "criterion_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCriterionId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "criterion_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterionId() { - _hasBits0 &= ~1; - } - - /// Field number for the "bid_modifier" field. - public const int BidModifierFieldNumber = 8; - private double bidModifier_; - /// - /// The modifier for the bid when the criterion matches. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double BidModifier { - get { if ((_hasBits0 & 2) != 0) { return bidModifier_; } else { return 0D; } } - set { - _hasBits0 |= 2; - bidModifier_ = value; - } - } - /// Gets whether the "bid_modifier" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBidModifier { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "bid_modifier" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBidModifier() { - _hasBits0 &= ~2; - } - - /// Field number for the "interaction_type" field. - public const int InteractionTypeFieldNumber = 5; - /// - /// Immutable. Criterion for interaction type. Only supported for search campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo InteractionType { - get { return criterionCase_ == CriterionOneofCase.InteractionType ? (global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.InteractionType; - } - } - - private object criterion_; - /// Enum of possible cases for the "criterion" oneof. - public enum CriterionOneofCase { - None = 0, - InteractionType = 5, - } - private CriterionOneofCase criterionCase_ = CriterionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionOneofCase CriterionCase { - get { return criterionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterion() { - criterionCase_ = CriterionOneofCase.None; - criterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignBidModifier); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignBidModifier other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (CriterionId != other.CriterionId) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BidModifier, other.BidModifier)) return false; - if (!object.Equals(InteractionType, other.InteractionType)) return false; - if (CriterionCase != other.CriterionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasCriterionId) hash ^= CriterionId.GetHashCode(); - if (HasBidModifier) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BidModifier); - if (criterionCase_ == CriterionOneofCase.InteractionType) hash ^= InteractionType.GetHashCode(); - hash ^= (int) criterionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (criterionCase_ == CriterionOneofCase.InteractionType) { - output.WriteRawTag(42); - output.WriteMessage(InteractionType); - } - if (HasCampaign) { - output.WriteRawTag(50); - output.WriteString(Campaign); - } - if (HasCriterionId) { - output.WriteRawTag(56); - output.WriteInt64(CriterionId); - } - if (HasBidModifier) { - output.WriteRawTag(65); - output.WriteDouble(BidModifier); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (criterionCase_ == CriterionOneofCase.InteractionType) { - output.WriteRawTag(42); - output.WriteMessage(InteractionType); - } - if (HasCampaign) { - output.WriteRawTag(50); - output.WriteString(Campaign); - } - if (HasCriterionId) { - output.WriteRawTag(56); - output.WriteInt64(CriterionId); - } - if (HasBidModifier) { - output.WriteRawTag(65); - output.WriteDouble(BidModifier); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasCriterionId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId); - } - if (HasBidModifier) { - size += 1 + 8; - } - if (criterionCase_ == CriterionOneofCase.InteractionType) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(InteractionType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignBidModifier other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasCriterionId) { - CriterionId = other.CriterionId; - } - if (other.HasBidModifier) { - BidModifier = other.BidModifier; - } - switch (other.CriterionCase) { - case CriterionOneofCase.InteractionType: - if (InteractionType == null) { - InteractionType = new global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo(); - } - InteractionType.MergeFrom(other.InteractionType); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo(); - if (criterionCase_ == CriterionOneofCase.InteractionType) { - subBuilder.MergeFrom(InteractionType); - } - input.ReadMessage(subBuilder); - InteractionType = subBuilder; - break; - } - case 50: { - Campaign = input.ReadString(); - break; - } - case 56: { - CriterionId = input.ReadInt64(); - break; - } - case 65: { - BidModifier = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo(); - if (criterionCase_ == CriterionOneofCase.InteractionType) { - subBuilder.MergeFrom(InteractionType); - } - input.ReadMessage(subBuilder); - InteractionType = subBuilder; - break; - } - case 50: { - Campaign = input.ReadString(); - break; - } - case 56: { - CriterionId = input.ReadInt64(); - break; - } - case 65: { - BidModifier = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBidModifierResourceNames.g.cs deleted file mode 100755 index f5e0d6302..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierResourceNames.g.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignBidModifier resource. - public sealed partial class CampaignBidModifierName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}. - /// - CustomerCampaignCriterion = 1, - } - - private static gax::PathTemplate s_customerCampaignCriterion = new gax::PathTemplate("customers/{customer_id}/campaignBidModifiers/{campaign_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignBidModifierName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignBidModifierName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CampaignBidModifierName FromCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - new CampaignBidModifierName(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}. - /// - public static string Format(string customerId, string campaignId, string criterionId) => - FormatCustomerCampaignCriterion(customerId, campaignId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}. - /// - public static string FormatCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - s_customerCampaignCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignBidModifierName Parse(string campaignBidModifierName) => Parse(campaignBidModifierName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignBidModifierName Parse(string campaignBidModifierName, bool allowUnparsed) => - TryParse(campaignBidModifierName, allowUnparsed, out CampaignBidModifierName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignBidModifierName, out CampaignBidModifierName result) => - TryParse(campaignBidModifierName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignBidModifierName, bool allowUnparsed, out CampaignBidModifierName result) - { - gax::GaxPreconditions.CheckNotNull(campaignBidModifierName, nameof(campaignBidModifierName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignCriterion.TryParseName(campaignBidModifierName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignBidModifierName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignBidModifierName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public CampaignBidModifierName(string customerId, string campaignId, string criterionId) : this(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignCriterion: return s_customerCampaignCriterion.Expand(CustomerId, $"{CampaignId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignBidModifierName); - - /// - public bool Equals(CampaignBidModifierName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignBidModifierName a, CampaignBidModifierName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignBidModifierName a, CampaignBidModifierName b) => !(a == b); - } - - public partial class CampaignBidModifier - { - /// - /// -typed view over the resource name property. - /// - internal CampaignBidModifierName ResourceNameAsCampaignBidModifierName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignBidModifierName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBidModifierService.g.cs deleted file mode 100755 index 7c6818f4e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierService.g.cs +++ /dev/null @@ -1,1313 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_bid_modifier_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_bid_modifier_service.proto - public static partial class CampaignBidModifierServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_bid_modifier_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignBidModifierServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "YmlkX21vZGlmaWVyX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo+Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9iaWRfbW9kaWZpZXIu", - "cHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9h", - "cGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", - "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9i", - "dWYvZmllbGRfbWFzay5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8i", - "swIKIU11dGF0ZUNhbXBhaWduQmlkTW9kaWZpZXJzUmVxdWVzdBIYCgtjdXN0", - "b21lcl9pZBgBIAEoCUID4EECElgKCm9wZXJhdGlvbnMYAiADKAsyPy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ2FtcGFpZ25CaWRNb2Rp", - "Zmllck9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIV", - "Cg12YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlw", - "ZRgFIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNw", - "b25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIrcCChxD", - "YW1wYWlnbkJpZE1vZGlmaWVyT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJJCgZjcmVhdGUYASAB", - "KAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBh", - "aWduQmlkTW9kaWZpZXJIABJJCgZ1cGRhdGUYAiABKAsyNy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWduQmlkTW9kaWZpZXJI", - "ABJDCgZyZW1vdmUYAyABKAlCMfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0NhbXBhaWduQmlkTW9kaWZpZXJIAEILCglvcGVyYXRpb24irAEKIk11", - "dGF0ZUNhbXBhaWduQmlkTW9kaWZpZXJzUmVzcG9uc2USMQoVcGFydGlhbF9m", - "YWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSUwoHcmVz", - "dWx0cxgCIAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVDYW1wYWlnbkJpZE1vZGlmaWVyUmVzdWx0IsMBCh9NdXRhdGVD", - "YW1wYWlnbkJpZE1vZGlmaWVyUmVzdWx0EkgKDXJlc291cmNlX25hbWUYASAB", - "KAlCMfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQmlk", - "TW9kaWZpZXISVgoVY2FtcGFpZ25fYmlkX21vZGlmaWVyGAIgASgLMjcuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkJpZE1v", - "ZGlmaWVyMu8CChpDYW1wYWlnbkJpZE1vZGlmaWVyU2VydmljZRKJAgoaTXV0", - "YXRlQ2FtcGFpZ25CaWRNb2RpZmllcnMSRC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25CaWRNb2RpZmllcnNSZXF1", - "ZXN0GkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUNhbXBhaWduQmlkTW9kaWZpZXJzUmVzcG9uc2UiXoLT5JMCPyI6L3YxMi9j", - "dXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2NhbXBhaWduQmlkTW9kaWZpZXJz", - "Om11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMu", - "Y29tL2F1dGgvYWR3b3Jkc0KLAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlc0IfQ2FtcGFpZ25CaWRNb2RpZmllclNlcnZpY2VQcm90", - "b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifierReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult.Parser, new[]{ "ResourceName", "CampaignBidModifier" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CampaignBidModifierService.MutateCampaignBidModifiers][google.ads.googleads.v12.services.CampaignBidModifierService.MutateCampaignBidModifiers]. - /// - public sealed partial class MutateCampaignBidModifiersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignBidModifiersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifiersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifiersRequest(MutateCampaignBidModifiersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifiersRequest Clone() { - return new MutateCampaignBidModifiersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose campaign bid modifiers are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign bid modifiers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignBidModifiersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignBidModifiersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignBidModifiersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove, update) on a campaign bid modifier. - /// - public sealed partial class CampaignBidModifierOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignBidModifierOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBidModifierOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBidModifierOperation(CampaignBidModifierOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBidModifierOperation Clone() { - return new CampaignBidModifierOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign bid - /// modifier. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The campaign bid modifier is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed campaign bid modifier - /// is expected, in this format: - /// - /// `customers/{customer_id}/CampaignBidModifiers/{campaign_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignBidModifierOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignBidModifierOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignBidModifierOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for campaign bid modifiers mutate. - /// - public sealed partial class MutateCampaignBidModifiersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignBidModifiersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifiersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifiersResponse(MutateCampaignBidModifiersResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifiersResponse Clone() { - return new MutateCampaignBidModifiersResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignBidModifiersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignBidModifiersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignBidModifiersResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the criterion mutate. - /// - public sealed partial class MutateCampaignBidModifierResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignBidModifierResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifierResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifierResult(MutateCampaignBidModifierResult other) : this() { - resourceName_ = other.resourceName_; - campaignBidModifier_ = other.campaignBidModifier_ != null ? other.campaignBidModifier_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBidModifierResult Clone() { - return new MutateCampaignBidModifierResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_bid_modifier" field. - public const int CampaignBidModifierFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier campaignBidModifier_; - /// - /// The mutated campaign bid modifier with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier CampaignBidModifier { - get { return campaignBidModifier_; } - set { - campaignBidModifier_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignBidModifierResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignBidModifierResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignBidModifier, other.CampaignBidModifier)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignBidModifier_ != null) hash ^= CampaignBidModifier.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignBidModifier_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignBidModifier); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignBidModifier_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignBidModifier); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignBidModifier_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignBidModifier); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignBidModifierResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignBidModifier_ != null) { - if (campaignBidModifier_ == null) { - CampaignBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - CampaignBidModifier.MergeFrom(other.CampaignBidModifier); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignBidModifier_ == null) { - CampaignBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - input.ReadMessage(CampaignBidModifier); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignBidModifier_ == null) { - CampaignBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - input.ReadMessage(CampaignBidModifier); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceClient.g.cs deleted file mode 100755 index 9091d974f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceClient.g.cs +++ /dev/null @@ -1,566 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignBidModifierServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignBidModifierServiceSettings GetDefault() => new CampaignBidModifierServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignBidModifierServiceSettings() - { - } - - private CampaignBidModifierServiceSettings(CampaignBidModifierServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignBidModifiersSettings = existing.MutateCampaignBidModifiersSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignBidModifierServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignBidModifierServiceClient.MutateCampaignBidModifiers and - /// CampaignBidModifierServiceClient.MutateCampaignBidModifiersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignBidModifiersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignBidModifierServiceSettings Clone() => new CampaignBidModifierServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignBidModifierServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignBidModifierServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignBidModifierServiceClientBuilder() : base(CampaignBidModifierServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignBidModifierServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignBidModifierServiceClient Build() - { - CampaignBidModifierServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignBidModifierServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignBidModifierServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignBidModifierServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignBidModifierServiceClient.ChannelPool; - } - - /// CampaignBidModifierService client wrapper, for convenient use. - /// - /// Service to manage campaign bid modifiers. - /// - public abstract partial class CampaignBidModifierServiceClient - { - /// - /// The default endpoint for the CampaignBidModifierService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignBidModifierService scopes. - /// - /// The default CampaignBidModifierService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignBidModifierService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignBidModifierServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignBidModifierServiceClient Create() => new CampaignBidModifierServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignBidModifierServiceClient Create(grpccore::CallInvoker callInvoker, CampaignBidModifierServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignBidModifierService.CampaignBidModifierServiceClient grpcClient = new CampaignBidModifierService.CampaignBidModifierServiceClient(callInvoker); - return new CampaignBidModifierServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignBidModifierService client - public virtual CampaignBidModifierService.CampaignBidModifierServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignBidModifiersResponse MutateCampaignBidModifiers(MutateCampaignBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBidModifiersAsync(MutateCampaignBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBidModifiersAsync(MutateCampaignBidModifiersRequest request, st::CancellationToken cancellationToken) => - MutateCampaignBidModifiersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. ID of the customer whose campaign bid modifiers are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign bid modifiers. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignBidModifiersResponse MutateCampaignBidModifiers(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignBidModifiers(new MutateCampaignBidModifiersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. ID of the customer whose campaign bid modifiers are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign bid modifiers. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBidModifiersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignBidModifiersAsync(new MutateCampaignBidModifiersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. ID of the customer whose campaign bid modifiers are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign bid modifiers. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBidModifiersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignBidModifiersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignBidModifierService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign bid modifiers. - /// - public sealed partial class CampaignBidModifierServiceClientImpl : CampaignBidModifierServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignBidModifiers; - - /// - /// Constructs a client wrapper for the CampaignBidModifierService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CampaignBidModifierServiceClientImpl(CampaignBidModifierService.CampaignBidModifierServiceClient grpcClient, CampaignBidModifierServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignBidModifierServiceSettings effectiveSettings = settings ?? CampaignBidModifierServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignBidModifiers = clientHelper.BuildApiCall("MutateCampaignBidModifiers", grpcClient.MutateCampaignBidModifiersAsync, grpcClient.MutateCampaignBidModifiers, effectiveSettings.MutateCampaignBidModifiersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignBidModifiers); - Modify_MutateCampaignBidModifiersApiCall(ref _callMutateCampaignBidModifiers); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignBidModifiersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignBidModifierService.CampaignBidModifierServiceClient grpcClient, CampaignBidModifierServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignBidModifierService client - public override CampaignBidModifierService.CampaignBidModifierServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignBidModifiersRequest(ref MutateCampaignBidModifiersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignBidModifiersResponse MutateCampaignBidModifiers(MutateCampaignBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignBidModifiersRequest(ref request, ref callSettings); - return _callMutateCampaignBidModifiers.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignBidModifiersAsync(MutateCampaignBidModifiersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignBidModifiersRequest(ref request, ref callSettings); - return _callMutateCampaignBidModifiers.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceGrpc.g.cs deleted file mode 100755 index 84486b6a2..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceGrpc.g.cs +++ /dev/null @@ -1,332 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_bid_modifier_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign bid modifiers. - /// - public static partial class CampaignBidModifierService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignBidModifierService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignBidModifiersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignBidModifiersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignBidModifiers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignBidModifiers", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignBidModifiersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignBidModifiersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignBidModifierService - [grpc::BindServiceMethod(typeof(CampaignBidModifierService), "BindService")] - public abstract partial class CampaignBidModifierServiceBase - { - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignBidModifiers(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignBidModifierService - public partial class CampaignBidModifierServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignBidModifierService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignBidModifierServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignBidModifierService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignBidModifierServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignBidModifierServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignBidModifierServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersResponse MutateCampaignBidModifiers(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignBidModifiers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersResponse MutateCampaignBidModifiers(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignBidModifiers, null, options, request); - } - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignBidModifiersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignBidModifiersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign bid modifiers. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignBidModifiersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifiersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignBidModifiers, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignBidModifierServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignBidModifierServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignBidModifierServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignBidModifiers, serviceImpl.MutateCampaignBidModifiers).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignBidModifierServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignBidModifiers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignBidModifiers)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceResourceNames.g.cs deleted file mode 100755 index 2b4efc076..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBidModifierServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignBidModifierOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignBidModifierName RemoveAsCampaignBidModifierName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignBidModifierName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignBidModifierResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignBidModifierName ResourceNameAsCampaignBidModifierName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignBidModifierName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBudget.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBudget.g.cs deleted file mode 100755 index 03095481e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBudget.g.cs +++ /dev/null @@ -1,1182 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_budget.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_budget.proto - public static partial class CampaignBudgetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_budget.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignBudgetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2J1ZGdldC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2J1ZGdldF9k", - "ZWxpdmVyeV9tZXRob2QucHJvdG8aMmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcy9idWRnZXRfcGVyaW9kLnByb3RvGjJnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvYnVkZ2V0X3N0YXR1cy5wcm90bxowZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL2J1ZGdldF90eXBlLnByb3RvGh9nb29n", - "bGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291", - "cmNlLnByb3RvIvMLCg5DYW1wYWlnbkJ1ZGdldBJGCg1yZXNvdXJjZV9uYW1l", - "GAEgASgJQi/gQQX6QSkKJ2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1w", - "YWlnbkJ1ZGdldBIUCgJpZBgTIAEoA0ID4EEDSACIAQESEQoEbmFtZRgUIAEo", - "CUgBiAEBEhoKDWFtb3VudF9taWNyb3MYFSABKANIAogBARIgChN0b3RhbF9h", - "bW91bnRfbWljcm9zGBYgASgDSAOIAQESUgoGc3RhdHVzGAYgASgOMj0uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkJ1ZGdldFN0YXR1c0VudW0u", - "QnVkZ2V0U3RhdHVzQgPgQQMSZgoPZGVsaXZlcnlfbWV0aG9kGAcgASgOMk0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkJ1ZGdldERlbGl2ZXJ5", - "TWV0aG9kRW51bS5CdWRnZXREZWxpdmVyeU1ldGhvZBIeChFleHBsaWNpdGx5", - "X3NoYXJlZBgXIAEoCEgEiAEBEiEKD3JlZmVyZW5jZV9jb3VudBgYIAEoA0ID", - "4EEDSAWIAQESKAoWaGFzX3JlY29tbWVuZGVkX2J1ZGdldBgZIAEoCEID4EED", - "SAaIAQESMgogcmVjb21tZW5kZWRfYnVkZ2V0X2Ftb3VudF9taWNyb3MYGiAB", - "KANCA+BBA0gHiAEBElIKBnBlcmlvZBgNIAEoDjI9Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtcy5CdWRnZXRQZXJpb2RFbnVtLkJ1ZGdldFBlcmlv", - "ZEID4EEFEkMKMXJlY29tbWVuZGVkX2J1ZGdldF9lc3RpbWF0ZWRfY2hhbmdl", - "X3dlZWtseV9jbGlja3MYGyABKANCA+BBA0gIiAEBEkgKNnJlY29tbWVuZGVk", - "X2J1ZGdldF9lc3RpbWF0ZWRfY2hhbmdlX3dlZWtseV9jb3N0X21pY3Jvcxgc", - "IAEoA0ID4EEDSAmIAQESSQo3cmVjb21tZW5kZWRfYnVkZ2V0X2VzdGltYXRl", - "ZF9jaGFuZ2Vfd2Vla2x5X2ludGVyYWN0aW9ucxgdIAEoA0ID4EEDSAqIAQES", - "QgowcmVjb21tZW5kZWRfYnVkZ2V0X2VzdGltYXRlZF9jaGFuZ2Vfd2Vla2x5", - "X3ZpZXdzGB4gASgDQgPgQQNIC4gBARJMCgR0eXBlGBIgASgOMjkuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkJ1ZGdldFR5cGVFbnVtLkJ1ZGdl", - "dFR5cGVCA+BBBRIjChthbGlnbmVkX2JpZGRpbmdfc3RyYXRlZ3lfaWQYHyAB", - "KAM6aupBZwonZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQnVk", - "Z2V0EjxjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9jYW1wYWlnbkJ1ZGdldHMv", - "e2NhbXBhaWduX2J1ZGdldF9pZH1CBQoDX2lkQgcKBV9uYW1lQhAKDl9hbW91", - "bnRfbWljcm9zQhYKFF90b3RhbF9hbW91bnRfbWljcm9zQhQKEl9leHBsaWNp", - "dGx5X3NoYXJlZEISChBfcmVmZXJlbmNlX2NvdW50QhkKF19oYXNfcmVjb21t", - "ZW5kZWRfYnVkZ2V0QiMKIV9yZWNvbW1lbmRlZF9idWRnZXRfYW1vdW50X21p", - "Y3Jvc0I0CjJfcmVjb21tZW5kZWRfYnVkZ2V0X2VzdGltYXRlZF9jaGFuZ2Vf", - "d2Vla2x5X2NsaWNrc0I5CjdfcmVjb21tZW5kZWRfYnVkZ2V0X2VzdGltYXRl", - "ZF9jaGFuZ2Vfd2Vla2x5X2Nvc3RfbWljcm9zQjoKOF9yZWNvbW1lbmRlZF9i", - "dWRnZXRfZXN0aW1hdGVkX2NoYW5nZV93ZWVrbHlfaW50ZXJhY3Rpb25zQjMK", - "MV9yZWNvbW1lbmRlZF9idWRnZXRfZXN0aW1hdGVkX2NoYW5nZV93ZWVrbHlf", - "dmlld3NChQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzQhNDYW1wYWlnbkJ1ZGdldFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3Vy", - "Y2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3Vy", - "Y2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget), global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget.Parser, new[]{ "ResourceName", "Id", "Name", "AmountMicros", "TotalAmountMicros", "Status", "DeliveryMethod", "ExplicitlyShared", "ReferenceCount", "HasRecommendedBudget", "RecommendedBudgetAmountMicros", "Period", "RecommendedBudgetEstimatedChangeWeeklyClicks", "RecommendedBudgetEstimatedChangeWeeklyCostMicros", "RecommendedBudgetEstimatedChangeWeeklyInteractions", "RecommendedBudgetEstimatedChangeWeeklyViews", "Type", "AlignedBiddingStrategyId" }, new[]{ "Id", "Name", "AmountMicros", "TotalAmountMicros", "ExplicitlyShared", "ReferenceCount", "HasRecommendedBudget", "RecommendedBudgetAmountMicros", "RecommendedBudgetEstimatedChangeWeeklyClicks", "RecommendedBudgetEstimatedChangeWeeklyCostMicros", "RecommendedBudgetEstimatedChangeWeeklyInteractions", "RecommendedBudgetEstimatedChangeWeeklyViews" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign budget. - /// - public sealed partial class CampaignBudget : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignBudget()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignBudgetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudget() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudget(CampaignBudget other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - amountMicros_ = other.amountMicros_; - totalAmountMicros_ = other.totalAmountMicros_; - status_ = other.status_; - deliveryMethod_ = other.deliveryMethod_; - explicitlyShared_ = other.explicitlyShared_; - referenceCount_ = other.referenceCount_; - hasRecommendedBudget_ = other.hasRecommendedBudget_; - recommendedBudgetAmountMicros_ = other.recommendedBudgetAmountMicros_; - period_ = other.period_; - recommendedBudgetEstimatedChangeWeeklyClicks_ = other.recommendedBudgetEstimatedChangeWeeklyClicks_; - recommendedBudgetEstimatedChangeWeeklyCostMicros_ = other.recommendedBudgetEstimatedChangeWeeklyCostMicros_; - recommendedBudgetEstimatedChangeWeeklyInteractions_ = other.recommendedBudgetEstimatedChangeWeeklyInteractions_; - recommendedBudgetEstimatedChangeWeeklyViews_ = other.recommendedBudgetEstimatedChangeWeeklyViews_; - type_ = other.type_; - alignedBiddingStrategyId_ = other.alignedBiddingStrategyId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudget Clone() { - return new CampaignBudget(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign budget. - /// Campaign budget resource names have the form: - /// - /// `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 19; - private long id_; - /// - /// Output only. The ID of the campaign budget. - /// - /// A campaign budget is created using the CampaignBudgetService create - /// operation and is assigned a budget ID. A budget ID can be shared across - /// different campaigns; the system will then allocate the campaign budget - /// among different campaigns to get optimum results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 20; - private string name_; - /// - /// The name of the campaign budget. - /// - /// When creating a campaign budget through CampaignBudgetService, every - /// explicitly shared campaign budget must have a non-null, non-empty name. - /// Campaign budgets that are not explicitly shared derive their name from the - /// attached campaign's name. - /// - /// The length of this string must be between 1 and 255, inclusive, - /// in UTF-8 bytes, (trimmed). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "amount_micros" field. - public const int AmountMicrosFieldNumber = 21; - private long amountMicros_; - /// - /// The amount of the budget, in the local currency for the account. - /// Amount is specified in micros, where one million is equivalent to one - /// currency unit. Monthly spend is capped at 30.4 times this amount. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AmountMicros { - get { if ((_hasBits0 & 2) != 0) { return amountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - amountMicros_ = value; - } - } - /// Gets whether the "amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAmountMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAmountMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "total_amount_micros" field. - public const int TotalAmountMicrosFieldNumber = 22; - private long totalAmountMicros_; - /// - /// The lifetime amount of the budget, in the local currency for the account. - /// Amount is specified in micros, where one million is equivalent to one - /// currency unit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalAmountMicros { - get { if ((_hasBits0 & 4) != 0) { return totalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - totalAmountMicros_ = value; - } - } - /// Gets whether the "total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTotalAmountMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTotalAmountMicros() { - _hasBits0 &= ~4; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus.Unspecified; - /// - /// Output only. The status of this campaign budget. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "delivery_method" field. - public const int DeliveryMethodFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod deliveryMethod_ = global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod.Unspecified; - /// - /// The delivery method that determines the rate at which the campaign budget - /// is spent. - /// - /// Defaults to STANDARD if unspecified in a create operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod DeliveryMethod { - get { return deliveryMethod_; } - set { - deliveryMethod_ = value; - } - } - - /// Field number for the "explicitly_shared" field. - public const int ExplicitlySharedFieldNumber = 23; - private bool explicitlyShared_; - /// - /// Specifies whether the budget is explicitly shared. Defaults to true if - /// unspecified in a create operation. - /// - /// If true, the budget was created with the purpose of sharing - /// across one or more campaigns. - /// - /// If false, the budget was created with the intention of only being used - /// with a single campaign. The budget's name and status will stay in sync - /// with the campaign's name and status. Attempting to share the budget with a - /// second campaign will result in an error. - /// - /// A non-shared budget can become an explicitly shared. The same operation - /// must also assign the budget a name. - /// - /// A shared campaign budget can never become non-shared. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ExplicitlyShared { - get { if ((_hasBits0 & 8) != 0) { return explicitlyShared_; } else { return false; } } - set { - _hasBits0 |= 8; - explicitlyShared_ = value; - } - } - /// Gets whether the "explicitly_shared" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExplicitlyShared { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "explicitly_shared" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExplicitlyShared() { - _hasBits0 &= ~8; - } - - /// Field number for the "reference_count" field. - public const int ReferenceCountFieldNumber = 24; - private long referenceCount_; - /// - /// Output only. The number of campaigns actively using the budget. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ReferenceCount { - get { if ((_hasBits0 & 16) != 0) { return referenceCount_; } else { return 0L; } } - set { - _hasBits0 |= 16; - referenceCount_ = value; - } - } - /// Gets whether the "reference_count" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasReferenceCount { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "reference_count" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearReferenceCount() { - _hasBits0 &= ~16; - } - - /// Field number for the "has_recommended_budget" field. - public const int HasRecommendedBudgetFieldNumber = 25; - private bool hasRecommendedBudget_; - /// - /// Output only. Indicates whether there is a recommended budget for this campaign budget. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecommendedBudget { - get { if ((_hasBits0 & 32) != 0) { return hasRecommendedBudget_; } else { return false; } } - set { - _hasBits0 |= 32; - hasRecommendedBudget_ = value; - } - } - /// Gets whether the "has_recommended_budget" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasRecommendedBudget { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "has_recommended_budget" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasRecommendedBudget() { - _hasBits0 &= ~32; - } - - /// Field number for the "recommended_budget_amount_micros" field. - public const int RecommendedBudgetAmountMicrosFieldNumber = 26; - private long recommendedBudgetAmountMicros_; - /// - /// Output only. The recommended budget amount. If no recommendation is available, this will - /// be set to the budget amount. - /// Amount is specified in micros, where one million is equivalent to one - /// currency unit. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RecommendedBudgetAmountMicros { - get { if ((_hasBits0 & 64) != 0) { return recommendedBudgetAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 64; - recommendedBudgetAmountMicros_ = value; - } - } - /// Gets whether the "recommended_budget_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecommendedBudgetAmountMicros { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "recommended_budget_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecommendedBudgetAmountMicros() { - _hasBits0 &= ~64; - } - - /// Field number for the "period" field. - public const int PeriodFieldNumber = 13; - private global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod period_ = global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod.Unspecified; - /// - /// Immutable. Period over which to spend the budget. Defaults to DAILY if not specified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod Period { - get { return period_; } - set { - period_ = value; - } - } - - /// Field number for the "recommended_budget_estimated_change_weekly_clicks" field. - public const int RecommendedBudgetEstimatedChangeWeeklyClicksFieldNumber = 27; - private long recommendedBudgetEstimatedChangeWeeklyClicks_; - /// - /// Output only. The estimated change in weekly clicks if the recommended budget is applied. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RecommendedBudgetEstimatedChangeWeeklyClicks { - get { if ((_hasBits0 & 128) != 0) { return recommendedBudgetEstimatedChangeWeeklyClicks_; } else { return 0L; } } - set { - _hasBits0 |= 128; - recommendedBudgetEstimatedChangeWeeklyClicks_ = value; - } - } - /// Gets whether the "recommended_budget_estimated_change_weekly_clicks" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecommendedBudgetEstimatedChangeWeeklyClicks { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "recommended_budget_estimated_change_weekly_clicks" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecommendedBudgetEstimatedChangeWeeklyClicks() { - _hasBits0 &= ~128; - } - - /// Field number for the "recommended_budget_estimated_change_weekly_cost_micros" field. - public const int RecommendedBudgetEstimatedChangeWeeklyCostMicrosFieldNumber = 28; - private long recommendedBudgetEstimatedChangeWeeklyCostMicros_; - /// - /// Output only. The estimated change in weekly cost in micros if the recommended budget is - /// applied. One million is equivalent to one currency unit. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RecommendedBudgetEstimatedChangeWeeklyCostMicros { - get { if ((_hasBits0 & 256) != 0) { return recommendedBudgetEstimatedChangeWeeklyCostMicros_; } else { return 0L; } } - set { - _hasBits0 |= 256; - recommendedBudgetEstimatedChangeWeeklyCostMicros_ = value; - } - } - /// Gets whether the "recommended_budget_estimated_change_weekly_cost_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecommendedBudgetEstimatedChangeWeeklyCostMicros { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "recommended_budget_estimated_change_weekly_cost_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecommendedBudgetEstimatedChangeWeeklyCostMicros() { - _hasBits0 &= ~256; - } - - /// Field number for the "recommended_budget_estimated_change_weekly_interactions" field. - public const int RecommendedBudgetEstimatedChangeWeeklyInteractionsFieldNumber = 29; - private long recommendedBudgetEstimatedChangeWeeklyInteractions_; - /// - /// Output only. The estimated change in weekly interactions if the recommended budget is - /// applied. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RecommendedBudgetEstimatedChangeWeeklyInteractions { - get { if ((_hasBits0 & 512) != 0) { return recommendedBudgetEstimatedChangeWeeklyInteractions_; } else { return 0L; } } - set { - _hasBits0 |= 512; - recommendedBudgetEstimatedChangeWeeklyInteractions_ = value; - } - } - /// Gets whether the "recommended_budget_estimated_change_weekly_interactions" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecommendedBudgetEstimatedChangeWeeklyInteractions { - get { return (_hasBits0 & 512) != 0; } - } - /// Clears the value of the "recommended_budget_estimated_change_weekly_interactions" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecommendedBudgetEstimatedChangeWeeklyInteractions() { - _hasBits0 &= ~512; - } - - /// Field number for the "recommended_budget_estimated_change_weekly_views" field. - public const int RecommendedBudgetEstimatedChangeWeeklyViewsFieldNumber = 30; - private long recommendedBudgetEstimatedChangeWeeklyViews_; - /// - /// Output only. The estimated change in weekly views if the recommended budget is applied. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RecommendedBudgetEstimatedChangeWeeklyViews { - get { if ((_hasBits0 & 1024) != 0) { return recommendedBudgetEstimatedChangeWeeklyViews_; } else { return 0L; } } - set { - _hasBits0 |= 1024; - recommendedBudgetEstimatedChangeWeeklyViews_ = value; - } - } - /// Gets whether the "recommended_budget_estimated_change_weekly_views" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecommendedBudgetEstimatedChangeWeeklyViews { - get { return (_hasBits0 & 1024) != 0; } - } - /// Clears the value of the "recommended_budget_estimated_change_weekly_views" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecommendedBudgetEstimatedChangeWeeklyViews() { - _hasBits0 &= ~1024; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 18; - private global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType type_ = global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType.Unspecified; - /// - /// Immutable. The type of the campaign budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "aligned_bidding_strategy_id" field. - public const int AlignedBiddingStrategyIdFieldNumber = 31; - private long alignedBiddingStrategyId_; - /// - /// ID of the portfolio bidding strategy that this shared campaign budget - /// is aligned with. When a bidding strategy and a campaign budget are aligned, - /// they are attached to the same set of campaigns. After a campaign budget is - /// aligned with a bidding strategy, campaigns that are added to the campaign - /// budget must also use the aligned bidding strategy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AlignedBiddingStrategyId { - get { return alignedBiddingStrategyId_; } - set { - alignedBiddingStrategyId_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignBudget); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignBudget other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (AmountMicros != other.AmountMicros) return false; - if (TotalAmountMicros != other.TotalAmountMicros) return false; - if (Status != other.Status) return false; - if (DeliveryMethod != other.DeliveryMethod) return false; - if (ExplicitlyShared != other.ExplicitlyShared) return false; - if (ReferenceCount != other.ReferenceCount) return false; - if (HasRecommendedBudget != other.HasRecommendedBudget) return false; - if (RecommendedBudgetAmountMicros != other.RecommendedBudgetAmountMicros) return false; - if (Period != other.Period) return false; - if (RecommendedBudgetEstimatedChangeWeeklyClicks != other.RecommendedBudgetEstimatedChangeWeeklyClicks) return false; - if (RecommendedBudgetEstimatedChangeWeeklyCostMicros != other.RecommendedBudgetEstimatedChangeWeeklyCostMicros) return false; - if (RecommendedBudgetEstimatedChangeWeeklyInteractions != other.RecommendedBudgetEstimatedChangeWeeklyInteractions) return false; - if (RecommendedBudgetEstimatedChangeWeeklyViews != other.RecommendedBudgetEstimatedChangeWeeklyViews) return false; - if (Type != other.Type) return false; - if (AlignedBiddingStrategyId != other.AlignedBiddingStrategyId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasAmountMicros) hash ^= AmountMicros.GetHashCode(); - if (HasTotalAmountMicros) hash ^= TotalAmountMicros.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus.Unspecified) hash ^= Status.GetHashCode(); - if (DeliveryMethod != global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod.Unspecified) hash ^= DeliveryMethod.GetHashCode(); - if (HasExplicitlyShared) hash ^= ExplicitlyShared.GetHashCode(); - if (HasReferenceCount) hash ^= ReferenceCount.GetHashCode(); - if (HasHasRecommendedBudget) hash ^= HasRecommendedBudget.GetHashCode(); - if (HasRecommendedBudgetAmountMicros) hash ^= RecommendedBudgetAmountMicros.GetHashCode(); - if (Period != global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod.Unspecified) hash ^= Period.GetHashCode(); - if (HasRecommendedBudgetEstimatedChangeWeeklyClicks) hash ^= RecommendedBudgetEstimatedChangeWeeklyClicks.GetHashCode(); - if (HasRecommendedBudgetEstimatedChangeWeeklyCostMicros) hash ^= RecommendedBudgetEstimatedChangeWeeklyCostMicros.GetHashCode(); - if (HasRecommendedBudgetEstimatedChangeWeeklyInteractions) hash ^= RecommendedBudgetEstimatedChangeWeeklyInteractions.GetHashCode(); - if (HasRecommendedBudgetEstimatedChangeWeeklyViews) hash ^= RecommendedBudgetEstimatedChangeWeeklyViews.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType.Unspecified) hash ^= Type.GetHashCode(); - if (AlignedBiddingStrategyId != 0L) hash ^= AlignedBiddingStrategyId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (DeliveryMethod != global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) DeliveryMethod); - } - if (Period != global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) Period); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType.Unspecified) { - output.WriteRawTag(144, 1); - output.WriteEnum((int) Type); - } - if (HasId) { - output.WriteRawTag(152, 1); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(162, 1); - output.WriteString(Name); - } - if (HasAmountMicros) { - output.WriteRawTag(168, 1); - output.WriteInt64(AmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(176, 1); - output.WriteInt64(TotalAmountMicros); - } - if (HasExplicitlyShared) { - output.WriteRawTag(184, 1); - output.WriteBool(ExplicitlyShared); - } - if (HasReferenceCount) { - output.WriteRawTag(192, 1); - output.WriteInt64(ReferenceCount); - } - if (HasHasRecommendedBudget) { - output.WriteRawTag(200, 1); - output.WriteBool(HasRecommendedBudget); - } - if (HasRecommendedBudgetAmountMicros) { - output.WriteRawTag(208, 1); - output.WriteInt64(RecommendedBudgetAmountMicros); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyClicks) { - output.WriteRawTag(216, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyClicks); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyCostMicros) { - output.WriteRawTag(224, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyCostMicros); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyInteractions) { - output.WriteRawTag(232, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyInteractions); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyViews) { - output.WriteRawTag(240, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyViews); - } - if (AlignedBiddingStrategyId != 0L) { - output.WriteRawTag(248, 1); - output.WriteInt64(AlignedBiddingStrategyId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (DeliveryMethod != global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) DeliveryMethod); - } - if (Period != global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) Period); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType.Unspecified) { - output.WriteRawTag(144, 1); - output.WriteEnum((int) Type); - } - if (HasId) { - output.WriteRawTag(152, 1); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(162, 1); - output.WriteString(Name); - } - if (HasAmountMicros) { - output.WriteRawTag(168, 1); - output.WriteInt64(AmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(176, 1); - output.WriteInt64(TotalAmountMicros); - } - if (HasExplicitlyShared) { - output.WriteRawTag(184, 1); - output.WriteBool(ExplicitlyShared); - } - if (HasReferenceCount) { - output.WriteRawTag(192, 1); - output.WriteInt64(ReferenceCount); - } - if (HasHasRecommendedBudget) { - output.WriteRawTag(200, 1); - output.WriteBool(HasRecommendedBudget); - } - if (HasRecommendedBudgetAmountMicros) { - output.WriteRawTag(208, 1); - output.WriteInt64(RecommendedBudgetAmountMicros); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyClicks) { - output.WriteRawTag(216, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyClicks); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyCostMicros) { - output.WriteRawTag(224, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyCostMicros); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyInteractions) { - output.WriteRawTag(232, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyInteractions); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyViews) { - output.WriteRawTag(240, 1); - output.WriteInt64(RecommendedBudgetEstimatedChangeWeeklyViews); - } - if (AlignedBiddingStrategyId != 0L) { - output.WriteRawTag(248, 1); - output.WriteInt64(AlignedBiddingStrategyId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AmountMicros); - } - if (HasTotalAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TotalAmountMicros); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (DeliveryMethod != global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeliveryMethod); - } - if (HasExplicitlyShared) { - size += 2 + 1; - } - if (HasReferenceCount) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ReferenceCount); - } - if (HasHasRecommendedBudget) { - size += 2 + 1; - } - if (HasRecommendedBudgetAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RecommendedBudgetAmountMicros); - } - if (Period != global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Period); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyClicks) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RecommendedBudgetEstimatedChangeWeeklyClicks); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyCostMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RecommendedBudgetEstimatedChangeWeeklyCostMicros); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyInteractions) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RecommendedBudgetEstimatedChangeWeeklyInteractions); - } - if (HasRecommendedBudgetEstimatedChangeWeeklyViews) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RecommendedBudgetEstimatedChangeWeeklyViews); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (AlignedBiddingStrategyId != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AlignedBiddingStrategyId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignBudget other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasAmountMicros) { - AmountMicros = other.AmountMicros; - } - if (other.HasTotalAmountMicros) { - TotalAmountMicros = other.TotalAmountMicros; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus.Unspecified) { - Status = other.Status; - } - if (other.DeliveryMethod != global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod.Unspecified) { - DeliveryMethod = other.DeliveryMethod; - } - if (other.HasExplicitlyShared) { - ExplicitlyShared = other.ExplicitlyShared; - } - if (other.HasReferenceCount) { - ReferenceCount = other.ReferenceCount; - } - if (other.HasHasRecommendedBudget) { - HasRecommendedBudget = other.HasRecommendedBudget; - } - if (other.HasRecommendedBudgetAmountMicros) { - RecommendedBudgetAmountMicros = other.RecommendedBudgetAmountMicros; - } - if (other.Period != global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod.Unspecified) { - Period = other.Period; - } - if (other.HasRecommendedBudgetEstimatedChangeWeeklyClicks) { - RecommendedBudgetEstimatedChangeWeeklyClicks = other.RecommendedBudgetEstimatedChangeWeeklyClicks; - } - if (other.HasRecommendedBudgetEstimatedChangeWeeklyCostMicros) { - RecommendedBudgetEstimatedChangeWeeklyCostMicros = other.RecommendedBudgetEstimatedChangeWeeklyCostMicros; - } - if (other.HasRecommendedBudgetEstimatedChangeWeeklyInteractions) { - RecommendedBudgetEstimatedChangeWeeklyInteractions = other.RecommendedBudgetEstimatedChangeWeeklyInteractions; - } - if (other.HasRecommendedBudgetEstimatedChangeWeeklyViews) { - RecommendedBudgetEstimatedChangeWeeklyViews = other.RecommendedBudgetEstimatedChangeWeeklyViews; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType.Unspecified) { - Type = other.Type; - } - if (other.AlignedBiddingStrategyId != 0L) { - AlignedBiddingStrategyId = other.AlignedBiddingStrategyId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus) input.ReadEnum(); - break; - } - case 56: { - DeliveryMethod = (global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod) input.ReadEnum(); - break; - } - case 104: { - Period = (global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod) input.ReadEnum(); - break; - } - case 144: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType) input.ReadEnum(); - break; - } - case 152: { - Id = input.ReadInt64(); - break; - } - case 162: { - Name = input.ReadString(); - break; - } - case 168: { - AmountMicros = input.ReadInt64(); - break; - } - case 176: { - TotalAmountMicros = input.ReadInt64(); - break; - } - case 184: { - ExplicitlyShared = input.ReadBool(); - break; - } - case 192: { - ReferenceCount = input.ReadInt64(); - break; - } - case 200: { - HasRecommendedBudget = input.ReadBool(); - break; - } - case 208: { - RecommendedBudgetAmountMicros = input.ReadInt64(); - break; - } - case 216: { - RecommendedBudgetEstimatedChangeWeeklyClicks = input.ReadInt64(); - break; - } - case 224: { - RecommendedBudgetEstimatedChangeWeeklyCostMicros = input.ReadInt64(); - break; - } - case 232: { - RecommendedBudgetEstimatedChangeWeeklyInteractions = input.ReadInt64(); - break; - } - case 240: { - RecommendedBudgetEstimatedChangeWeeklyViews = input.ReadInt64(); - break; - } - case 248: { - AlignedBiddingStrategyId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.BudgetStatusEnum.Types.BudgetStatus) input.ReadEnum(); - break; - } - case 56: { - DeliveryMethod = (global::Google.Ads.GoogleAds.V12.Enums.BudgetDeliveryMethodEnum.Types.BudgetDeliveryMethod) input.ReadEnum(); - break; - } - case 104: { - Period = (global::Google.Ads.GoogleAds.V12.Enums.BudgetPeriodEnum.Types.BudgetPeriod) input.ReadEnum(); - break; - } - case 144: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.BudgetTypeEnum.Types.BudgetType) input.ReadEnum(); - break; - } - case 152: { - Id = input.ReadInt64(); - break; - } - case 162: { - Name = input.ReadString(); - break; - } - case 168: { - AmountMicros = input.ReadInt64(); - break; - } - case 176: { - TotalAmountMicros = input.ReadInt64(); - break; - } - case 184: { - ExplicitlyShared = input.ReadBool(); - break; - } - case 192: { - ReferenceCount = input.ReadInt64(); - break; - } - case 200: { - HasRecommendedBudget = input.ReadBool(); - break; - } - case 208: { - RecommendedBudgetAmountMicros = input.ReadInt64(); - break; - } - case 216: { - RecommendedBudgetEstimatedChangeWeeklyClicks = input.ReadInt64(); - break; - } - case 224: { - RecommendedBudgetEstimatedChangeWeeklyCostMicros = input.ReadInt64(); - break; - } - case 232: { - RecommendedBudgetEstimatedChangeWeeklyInteractions = input.ReadInt64(); - break; - } - case 240: { - RecommendedBudgetEstimatedChangeWeeklyViews = input.ReadInt64(); - break; - } - case 248: { - AlignedBiddingStrategyId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBudgetError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBudgetError.g.cs deleted file mode 100755 index 1670dfa87..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBudgetError.g.cs +++ /dev/null @@ -1,318 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_budget_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_budget_error.proto - public static partial class CampaignBudgetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_budget_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignBudgetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2J1", - "ZGdldF9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVy", - "cm9ycyKzBgoXQ2FtcGFpZ25CdWRnZXRFcnJvckVudW0ilwYKE0NhbXBhaWdu", - "QnVkZ2V0RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESJAog", - "Q0FNUEFJR05fQlVER0VUX0NBTk5PVF9CRV9TSEFSRUQQERIbChdDQU1QQUlH", - "Tl9CVURHRVRfUkVNT1ZFRBACEhoKFkNBTVBBSUdOX0JVREdFVF9JTl9VU0UQ", - "AxIoCiRDQU1QQUlHTl9CVURHRVRfUEVSSU9EX05PVF9BVkFJTEFCTEUQBBI8", - "CjhDQU5OT1RfTU9ESUZZX0ZJRUxEX09GX0lNUExJQ0lUTFlfU0hBUkVEX0NB", - "TVBBSUdOX0JVREdFVBAGEjYKMkNBTk5PVF9VUERBVEVfQ0FNUEFJR05fQlVE", - "R0VUX1RPX0lNUExJQ0lUTFlfU0hBUkVEEAcSQwo/Q0FOTk9UX1VQREFURV9D", - "QU1QQUlHTl9CVURHRVRfVE9fRVhQTElDSVRMWV9TSEFSRURfV0lUSE9VVF9O", - "QU1FEAgSNgoyQ0FOTk9UX1VQREFURV9DQU1QQUlHTl9CVURHRVRfVE9fRVhQ", - "TElDSVRMWV9TSEFSRUQQCRJICkRDQU5OT1RfVVNFX0lNUExJQ0lUTFlfU0hB", - "UkVEX0NBTVBBSUdOX0JVREdFVF9XSVRIX01VTFRJUExFX0NBTVBBSUdOUxAK", - "EhIKDkRVUExJQ0FURV9OQU1FEAsSIgoeTU9ORVlfQU1PVU5UX0lOX1dST05H", - "X0NVUlJFTkNZEAwSLworTU9ORVlfQU1PVU5UX0xFU1NfVEhBTl9DVVJSRU5D", - "WV9NSU5JTVVNX0NQQxANEhoKFk1PTkVZX0FNT1VOVF9UT09fTEFSR0UQDhIZ", - "ChVORUdBVElWRV9NT05FWV9BTU9VTlQQDxIpCiVOT05fTVVMVElQTEVfT0Zf", - "TUlOSU1VTV9DVVJSRU5DWV9VTklUEBASPQo5VE9UQUxfQlVER0VUX0FNT1VO", - "VF9NVVNUX0JFX1VOU0VUX0ZPUl9CVURHRVRfUEVSSU9EX0RBSUxZEBISEgoO", - "SU5WQUxJRF9QRVJJT0QQE0L4AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnNCGENhbXBhaWduQnVkZ2V0RXJyb3JQcm90b1ABWkVnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVy", - "cm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorEnum.Types.CampaignBudgetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign budget errors. - /// - public sealed partial class CampaignBudgetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignBudgetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetErrorEnum(CampaignBudgetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetErrorEnum Clone() { - return new CampaignBudgetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignBudgetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignBudgetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignBudgetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignBudgetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign budget errors. - /// - public enum CampaignBudgetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The campaign budget cannot be shared. - /// - [pbr::OriginalName("CAMPAIGN_BUDGET_CANNOT_BE_SHARED")] CampaignBudgetCannotBeShared = 17, - /// - /// The requested campaign budget no longer exists. - /// - [pbr::OriginalName("CAMPAIGN_BUDGET_REMOVED")] CampaignBudgetRemoved = 2, - /// - /// The campaign budget is associated with at least one campaign, and so the - /// campaign budget cannot be removed. - /// - [pbr::OriginalName("CAMPAIGN_BUDGET_IN_USE")] CampaignBudgetInUse = 3, - /// - /// Customer is not on the allow-list for this campaign budget period. - /// - [pbr::OriginalName("CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE")] CampaignBudgetPeriodNotAvailable = 4, - /// - /// This field is not mutable on implicitly shared campaign budgets - /// - [pbr::OriginalName("CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET")] CannotModifyFieldOfImplicitlySharedCampaignBudget = 6, - /// - /// Cannot change explicitly shared campaign budgets back to implicitly - /// shared ones. - /// - [pbr::OriginalName("CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED")] CannotUpdateCampaignBudgetToImplicitlyShared = 7, - /// - /// An implicit campaign budget without a name cannot be changed to - /// explicitly shared campaign budget. - /// - [pbr::OriginalName("CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME")] CannotUpdateCampaignBudgetToExplicitlySharedWithoutName = 8, - /// - /// Cannot change an implicitly shared campaign budget to an explicitly - /// shared one. - /// - [pbr::OriginalName("CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED")] CannotUpdateCampaignBudgetToExplicitlyShared = 9, - /// - /// Only explicitly shared campaign budgets can be used with multiple - /// campaigns. - /// - [pbr::OriginalName("CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS")] CannotUseImplicitlySharedCampaignBudgetWithMultipleCampaigns = 10, - /// - /// A campaign budget with this name already exists. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 11, - /// - /// A money amount was not in the expected currency. - /// - [pbr::OriginalName("MONEY_AMOUNT_IN_WRONG_CURRENCY")] MoneyAmountInWrongCurrency = 12, - /// - /// A money amount was less than the minimum CPC for currency. - /// - [pbr::OriginalName("MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC")] MoneyAmountLessThanCurrencyMinimumCpc = 13, - /// - /// A money amount was greater than the maximum allowed. - /// - [pbr::OriginalName("MONEY_AMOUNT_TOO_LARGE")] MoneyAmountTooLarge = 14, - /// - /// A money amount was negative. - /// - [pbr::OriginalName("NEGATIVE_MONEY_AMOUNT")] NegativeMoneyAmount = 15, - /// - /// A money amount was not a multiple of a minimum unit. - /// - [pbr::OriginalName("NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT")] NonMultipleOfMinimumCurrencyUnit = 16, - /// - /// Total budget amount must be unset when BudgetPeriod is DAILY. - /// - [pbr::OriginalName("TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY")] TotalBudgetAmountMustBeUnsetForBudgetPeriodDaily = 18, - /// - /// The period of the budget is not allowed. - /// - [pbr::OriginalName("INVALID_PERIOD")] InvalidPeriod = 19, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBudgetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBudgetResourceNames.g.cs deleted file mode 100755 index 6a02f9cb7..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBudgetResourceNames.g.cs +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignBudget resource. - public sealed partial class CampaignBudgetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignBudgets/{campaign_budget_id}. - /// - CustomerCampaignBudget = 1, - } - - private static gax::PathTemplate s_customerCampaignBudget = new gax::PathTemplate("customers/{customer_id}/campaignBudgets/{campaign_budget_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignBudgetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignBudgetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignBudget ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignBudgetName FromCustomerCampaignBudget(string customerId, string campaignBudgetId) => - new CampaignBudgetName(ResourceNameType.CustomerCampaignBudget, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignBudgetId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignBudgetId, nameof(campaignBudgetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignBudget ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id}. - /// - public static string Format(string customerId, string campaignBudgetId) => - FormatCustomerCampaignBudget(customerId, campaignBudgetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignBudget ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id}. - /// - public static string FormatCustomerCampaignBudget(string customerId, string campaignBudgetId) => - s_customerCampaignBudget.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(campaignBudgetId, nameof(campaignBudgetId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignBudgetName Parse(string campaignBudgetName) => Parse(campaignBudgetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignBudgetName Parse(string campaignBudgetName, bool allowUnparsed) => - TryParse(campaignBudgetName, allowUnparsed, out CampaignBudgetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignBudgetName, out CampaignBudgetName result) => - TryParse(campaignBudgetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignBudgetName, bool allowUnparsed, out CampaignBudgetName result) - { - gax::GaxPreconditions.CheckNotNull(campaignBudgetName, nameof(campaignBudgetName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignBudget.TryParseName(campaignBudgetName, out resourceName)) - { - result = FromCustomerCampaignBudget(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignBudgetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CampaignBudgetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignBudgetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignBudgetId = campaignBudgetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignBudgets/{campaign_budget_id} - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignBudget ID. Must not be null or empty. - public CampaignBudgetName(string customerId, string campaignBudgetId) : this(ResourceNameType.CustomerCampaignBudget, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignBudgetId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignBudgetId, nameof(campaignBudgetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CampaignBudget ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string CampaignBudgetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignBudget: return s_customerCampaignBudget.Expand(CustomerId, CampaignBudgetId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignBudgetName); - - /// - public bool Equals(CampaignBudgetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignBudgetName a, CampaignBudgetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignBudgetName a, CampaignBudgetName b) => !(a == b); - } - - public partial class CampaignBudget - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignBudgetName ResourceNameAsCampaignBudgetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignBudgetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignBudgetName CampaignBudgetName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CampaignBudgetName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBudgetService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBudgetService.g.cs deleted file mode 100755 index 18af0128b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBudgetService.g.cs +++ /dev/null @@ -1,1309 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_budget_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_budget_service.proto - public static partial class CampaignBudgetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_budget_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignBudgetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "YnVkZ2V0X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jl", - "c3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9idWRnZXQucHJvdG8aHGdvb2ds", - "ZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnBy", - "b3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFz", - "ay5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8iqQIKHE11dGF0ZUNh", - "bXBhaWduQnVkZ2V0c1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BB", - "AhJTCgpvcGVyYXRpb25zGAIgAygLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLkNhbXBhaWduQnVkZ2V0T3BlcmF0aW9uQgPgQQISFwoP", - "cGFydGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgS", - "agoVcmVzcG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJl", - "c3BvbnNlQ29udGVudFR5cGUiowIKF0NhbXBhaWduQnVkZ2V0T3BlcmF0aW9u", - "Ei8KC3VwZGF0ZV9tYXNrGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxk", - "TWFzaxJECgZjcmVhdGUYASABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkNhbXBhaWduQnVkZ2V0SAASRAoGdXBkYXRlGAIgASgL", - "MjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWln", - "bkJ1ZGdldEgAEj4KBnJlbW92ZRgDIAEoCUIs+kEpCidnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ2FtcGFpZ25CdWRnZXRIAEILCglvcGVyYXRpb24iogEK", - "HU11dGF0ZUNhbXBhaWduQnVkZ2V0c1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFp", - "bHVyZV9lcnJvchgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEk4KB3Jlc3Vs", - "dHMYAiADKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQ2FtcGFpZ25CdWRnZXRSZXN1bHQirgEKGk11dGF0ZUNhbXBhaWdu", - "QnVkZ2V0UmVzdWx0EkMKDXJlc291cmNlX25hbWUYASABKAlCLPpBKQonZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQnVkZ2V0EksKD2NhbXBh", - "aWduX2J1ZGdldBgCIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQ2FtcGFpZ25CdWRnZXQy1gIKFUNhbXBhaWduQnVkZ2V0U2Vy", - "dmljZRL1AQoVTXV0YXRlQ2FtcGFpZ25CdWRnZXRzEj8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQnVkZ2V0c1Jl", - "cXVlc3QaQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0", - "YXRlQ2FtcGFpZ25CdWRnZXRzUmVzcG9uc2UiWYLT5JMCOiI1L3YxMi9jdXN0", - "b21lcnMve2N1c3RvbWVyX2lkPSp9L2NhbXBhaWduQnVkZ2V0czptdXRhdGU6", - "ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRo", - "L2Fkd29yZHNChgIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXNCGkNhbXBhaWduQnVkZ2V0U2VydmljZVByb3RvUAFaSWdvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "U2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZp", - "Y2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignBudgetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult.Parser, new[]{ "ResourceName", "CampaignBudget" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignBudgetService.MutateCampaignBudgets][google.ads.googleads.v12.services.CampaignBudgetService.MutateCampaignBudgets]. - /// - public sealed partial class MutateCampaignBudgetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignBudgetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetsRequest(MutateCampaignBudgetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetsRequest Clone() { - return new MutateCampaignBudgetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign budgets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign budgets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignBudgetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignBudgetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignBudgetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign budget. - /// - public sealed partial class CampaignBudgetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignBudgetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetOperation(CampaignBudgetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetOperation Clone() { - return new CampaignBudgetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The campaign budget is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed budget is expected, in - /// this format: - /// - /// `customers/{customer_id}/campaignBudgets/{budget_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignBudgetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignBudgetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignBudgetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for campaign budget mutate. - /// - public sealed partial class MutateCampaignBudgetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignBudgetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetsResponse(MutateCampaignBudgetsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetsResponse Clone() { - return new MutateCampaignBudgetsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignBudgetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignBudgetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignBudgetsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign budget mutate. - /// - public sealed partial class MutateCampaignBudgetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignBudgetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetResult(MutateCampaignBudgetResult other) : this() { - resourceName_ = other.resourceName_; - campaignBudget_ = other.campaignBudget_ != null ? other.campaignBudget_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignBudgetResult Clone() { - return new MutateCampaignBudgetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_budget" field. - public const int CampaignBudgetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget campaignBudget_; - /// - /// The mutated campaign budget with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget CampaignBudget { - get { return campaignBudget_; } - set { - campaignBudget_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignBudgetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignBudgetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignBudget, other.CampaignBudget)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignBudget_ != null) hash ^= CampaignBudget.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignBudget_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignBudget); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignBudget_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignBudget); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignBudget_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignBudget); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignBudgetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignBudget_ != null) { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - CampaignBudget.MergeFrom(other.CampaignBudget); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - input.ReadMessage(CampaignBudget); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - input.ReadMessage(CampaignBudget); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceClient.g.cs deleted file mode 100755 index 1adde0210..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceClient.g.cs +++ /dev/null @@ -1,524 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignBudgetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignBudgetServiceSettings GetDefault() => new CampaignBudgetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignBudgetServiceSettings() - { - } - - private CampaignBudgetServiceSettings(CampaignBudgetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignBudgetsSettings = existing.MutateCampaignBudgetsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignBudgetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignBudgetServiceClient.MutateCampaignBudgets and - /// CampaignBudgetServiceClient.MutateCampaignBudgetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignBudgetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignBudgetServiceSettings Clone() => new CampaignBudgetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignBudgetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignBudgetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignBudgetServiceClientBuilder() : base(CampaignBudgetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignBudgetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignBudgetServiceClient Build() - { - CampaignBudgetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignBudgetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignBudgetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignBudgetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignBudgetServiceClient.ChannelPool; - } - - /// CampaignBudgetService client wrapper, for convenient use. - /// - /// Service to manage campaign budgets. - /// - public abstract partial class CampaignBudgetServiceClient - { - /// - /// The default endpoint for the CampaignBudgetService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignBudgetService scopes. - /// - /// The default CampaignBudgetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignBudgetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignBudgetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignBudgetServiceClient Create() => new CampaignBudgetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignBudgetServiceClient Create(grpccore::CallInvoker callInvoker, CampaignBudgetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignBudgetService.CampaignBudgetServiceClient grpcClient = new CampaignBudgetService.CampaignBudgetServiceClient(callInvoker); - return new CampaignBudgetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignBudgetService client - public virtual CampaignBudgetService.CampaignBudgetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignBudgetsResponse MutateCampaignBudgets(MutateCampaignBudgetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBudgetsAsync(MutateCampaignBudgetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBudgetsAsync(MutateCampaignBudgetsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignBudgetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign budgets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign budgets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignBudgetsResponse MutateCampaignBudgets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignBudgets(new MutateCampaignBudgetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign budgets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign budgets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBudgetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignBudgetsAsync(new MutateCampaignBudgetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign budgets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign budgets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignBudgetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignBudgetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignBudgetService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign budgets. - /// - public sealed partial class CampaignBudgetServiceClientImpl : CampaignBudgetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignBudgets; - - /// - /// Constructs a client wrapper for the CampaignBudgetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CampaignBudgetServiceClientImpl(CampaignBudgetService.CampaignBudgetServiceClient grpcClient, CampaignBudgetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignBudgetServiceSettings effectiveSettings = settings ?? CampaignBudgetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignBudgets = clientHelper.BuildApiCall("MutateCampaignBudgets", grpcClient.MutateCampaignBudgetsAsync, grpcClient.MutateCampaignBudgets, effectiveSettings.MutateCampaignBudgetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignBudgets); - Modify_MutateCampaignBudgetsApiCall(ref _callMutateCampaignBudgets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignBudgetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignBudgetService.CampaignBudgetServiceClient grpcClient, CampaignBudgetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignBudgetService client - public override CampaignBudgetService.CampaignBudgetServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignBudgetsRequest(ref MutateCampaignBudgetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignBudgetsResponse MutateCampaignBudgets(MutateCampaignBudgetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignBudgetsRequest(ref request, ref callSettings); - return _callMutateCampaignBudgets.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignBudgetsAsync(MutateCampaignBudgetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignBudgetsRequest(ref request, ref callSettings); - return _callMutateCampaignBudgets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceGrpc.g.cs deleted file mode 100755 index 0f4331edc..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceGrpc.g.cs +++ /dev/null @@ -1,307 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_budget_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign budgets. - /// - public static partial class CampaignBudgetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignBudgetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignBudgetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignBudgetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignBudgets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignBudgets", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignBudgetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignBudgetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignBudgetService - [grpc::BindServiceMethod(typeof(CampaignBudgetService), "BindService")] - public abstract partial class CampaignBudgetServiceBase - { - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignBudgets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignBudgetService - public partial class CampaignBudgetServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignBudgetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignBudgetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignBudgetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignBudgetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignBudgetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignBudgetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsResponse MutateCampaignBudgets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignBudgets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsResponse MutateCampaignBudgets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignBudgets, null, options, request); - } - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignBudgetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignBudgetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign budgets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignBudgetError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignBudgetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignBudgets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignBudgetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignBudgetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignBudgetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignBudgets, serviceImpl.MutateCampaignBudgets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignBudgetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignBudgets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignBudgets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceResourceNames.g.cs deleted file mode 100755 index 9ac153d8f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignBudgetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignBudgetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignBudgetName RemoveAsCampaignBudgetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignBudgetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignBudgetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignBudgetName ResourceNameAsCampaignBudgetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignBudgetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoal.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignConversionGoal.g.cs deleted file mode 100755 index 9384c4781..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoal.g.cs +++ /dev/null @@ -1,425 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_conversion_goal.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_conversion_goal.proto - public static partial class CampaignConversionGoalReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_conversion_goal.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignConversionGoalReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2NvbnZlcnNpb25fZ29hbC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnJlc291cmNlcxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2NvbnZlcnNpb25fYWN0aW9uX2NhdGVnb3J5LnByb3RvGjZnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9vcmlnaW4ucHJvdG8a", - "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkv", - "cmVzb3VyY2UucHJvdG8iggQKFkNhbXBhaWduQ29udmVyc2lvbkdvYWwSTgoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUI34EEF+kExCi9nb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQ2FtcGFpZ25Db252ZXJzaW9uR29hbBI7CghjYW1wYWlnbhgC", - "IAEoCUIp4EEF+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFp", - "Z24SZwoIY2F0ZWdvcnkYAyABKA4yVS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuQ29udmVyc2lvbkFjdGlvbkNhdGVnb3J5RW51bS5Db252ZXJz", - "aW9uQWN0aW9uQ2F0ZWdvcnkSVQoGb3JpZ2luGAQgASgOMkUuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLkNvbnZlcnNpb25PcmlnaW5FbnVtLkNv", - "bnZlcnNpb25PcmlnaW4SEAoIYmlkZGFibGUYBSABKAg6iAHqQYQBCi9nb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25Db252ZXJzaW9uR29hbBJR", - "Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY2FtcGFpZ25Db252ZXJzaW9uR29h", - "bHMve2NhbXBhaWduX2lkfX57Y2F0ZWdvcnl9fntzb3VyY2V9Qo0CCiZjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0IbQ2FtcGFpZ25D", - "b252ZXJzaW9uR29hbFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal), global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal.Parser, new[]{ "ResourceName", "Campaign", "Category", "Origin", "Biddable" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The biddability setting for the specified campaign only for all - /// conversion actions with a matching category and origin. - /// - public sealed partial class CampaignConversionGoal : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignConversionGoal()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoalReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoal() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoal(CampaignConversionGoal other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - category_ = other.category_; - origin_ = other.origin_; - biddable_ = other.biddable_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoal Clone() { - return new CampaignConversionGoal(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign conversion goal. - /// Campaign conversion goal resource names have the form: - /// - /// `customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private string campaign_ = ""; - /// - /// Immutable. The campaign with which this campaign conversion goal is associated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory category_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified; - /// - /// The conversion category of this campaign conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory Category { - get { return category_; } - set { - category_ = value; - } - } - - /// Field number for the "origin" field. - public const int OriginFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin origin_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified; - /// - /// The conversion origin of this campaign conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin Origin { - get { return origin_; } - set { - origin_ = value; - } - } - - /// Field number for the "biddable" field. - public const int BiddableFieldNumber = 5; - private bool biddable_; - /// - /// The biddability of the campaign conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Biddable { - get { return biddable_; } - set { - biddable_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignConversionGoal); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignConversionGoal other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (Category != other.Category) return false; - if (Origin != other.Origin) return false; - if (Biddable != other.Biddable) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) hash ^= Category.GetHashCode(); - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) hash ^= Origin.GetHashCode(); - if (Biddable != false) hash ^= Biddable.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Category); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Origin); - } - if (Biddable != false) { - output.WriteRawTag(40); - output.WriteBool(Biddable); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Category); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Origin); - } - if (Biddable != false) { - output.WriteRawTag(40); - output.WriteBool(Biddable); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Origin); - } - if (Biddable != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignConversionGoal other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - Category = other.Category; - } - if (other.Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - Origin = other.Origin; - } - if (other.Biddable != false) { - Biddable = other.Biddable; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 24: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) input.ReadEnum(); - break; - } - case 32: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin) input.ReadEnum(); - break; - } - case 40: { - Biddable = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 24: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) input.ReadEnum(); - break; - } - case 32: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin) input.ReadEnum(); - break; - } - case 40: { - Biddable = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalError.g.cs deleted file mode 100755 index 83ea1de24..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalError.g.cs +++ /dev/null @@ -1,234 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_conversion_goal_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_conversion_goal_error.proto - public static partial class CampaignConversionGoalErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_conversion_goal_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignConversionGoalErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2Nv", - "bnZlcnNpb25fZ29hbF9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVycm9ycyKgAQofQ2FtcGFpZ25Db252ZXJzaW9uR29hbEVycm9y", - "RW51bSJ9ChtDYW1wYWlnbkNvbnZlcnNpb25Hb2FsRXJyb3ISDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESQAo8Q0FOTk9UX1VTRV9DQU1QQUlHTl9H", - "T0FMX0ZPUl9TRUFSQ0hfQURTXzM2MF9NQU5BR0VEX0NBTVBBSUdOEAJCgAIK", - "I2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQiBDYW1wYWln", - "bkNvbnZlcnNpb25Hb2FsRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9y", - "cztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJy", - "b3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorEnum.Types.CampaignConversionGoalError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign conversion goal errors. - /// - public sealed partial class CampaignConversionGoalErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignConversionGoalErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoalErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoalErrorEnum(CampaignConversionGoalErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoalErrorEnum Clone() { - return new CampaignConversionGoalErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignConversionGoalErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignConversionGoalErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignConversionGoalErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignConversionGoalErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign conversion goal errors. - /// - public enum CampaignConversionGoalError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Campaign is managed by Search Ads 360 but uses Unified Goal. - /// - [pbr::OriginalName("CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN")] CannotUseCampaignGoalForSearchAds360ManagedCampaign = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalResourceNames.g.cs deleted file mode 100755 index 9e2bcdeb1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalResourceNames.g.cs +++ /dev/null @@ -1,332 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignConversionGoal resource. - public sealed partial class CampaignConversionGoalName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}. - /// - CustomerCampaignCategorySource = 1, - } - - private static gax::PathTemplate s_customerCampaignCategorySource = new gax::PathTemplate("customers/{customer_id}/campaignConversionGoals/{campaign_id_category_source}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignConversionGoalName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignConversionGoalName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CampaignConversionGoalName FromCustomerCampaignCategorySource(string customerId, string campaignId, string categoryId, string sourceId) => - new CampaignConversionGoalName(ResourceNameType.CustomerCampaignCategorySource, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), categoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(categoryId, nameof(categoryId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}. - /// - public static string Format(string customerId, string campaignId, string categoryId, string sourceId) => - FormatCustomerCampaignCategorySource(customerId, campaignId, categoryId, sourceId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source}. - /// - public static string FormatCustomerCampaignCategorySource(string customerId, string campaignId, string categoryId, string sourceId) => - s_customerCampaignCategorySource.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(categoryId, nameof(categoryId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignConversionGoalName Parse(string campaignConversionGoalName) => - Parse(campaignConversionGoalName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignConversionGoalName Parse(string campaignConversionGoalName, bool allowUnparsed) => - TryParse(campaignConversionGoalName, allowUnparsed, out CampaignConversionGoalName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignConversionGoalName, out CampaignConversionGoalName result) => - TryParse(campaignConversionGoalName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignConversionGoalName, bool allowUnparsed, out CampaignConversionGoalName result) - { - gax::GaxPreconditions.CheckNotNull(campaignConversionGoalName, nameof(campaignConversionGoalName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignCategorySource.TryParseName(campaignConversionGoalName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignCategorySource(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignConversionGoalName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignConversionGoalName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string categoryId = null, string customerId = null, string sourceId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CategoryId = categoryId; - CustomerId = customerId; - SourceId = sourceId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{source} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - public CampaignConversionGoalName(string customerId, string campaignId, string categoryId, string sourceId) : this(ResourceNameType.CustomerCampaignCategorySource, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), categoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(categoryId, nameof(categoryId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Category ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CategoryId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Source ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string SourceId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignCategorySource: return s_customerCampaignCategorySource.Expand(CustomerId, $"{CampaignId}~{CategoryId}~{SourceId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignConversionGoalName); - - /// - public bool Equals(CampaignConversionGoalName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignConversionGoalName a, CampaignConversionGoalName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignConversionGoalName a, CampaignConversionGoalName b) => !(a == b); - } - - public partial class CampaignConversionGoal - { - /// - /// -typed view over the resource name - /// property. - /// - internal CampaignConversionGoalName ResourceNameAsCampaignConversionGoalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignConversionGoalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalService.g.cs deleted file mode 100755 index cd3249fdf..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalService.g.cs +++ /dev/null @@ -1,1013 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_conversion_goal_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_conversion_goal_service.proto - public static partial class CampaignConversionGoalServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_conversion_goal_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignConversionGoalServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "Y29udmVyc2lvbl9nb2FsX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcxpBZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9jYW1wYWlnbl9jb252ZXJzaW9uX2dvYWwucHJvdG8aHGdv", - "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50", - "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRf", - "bWFzay5wcm90byK0AQokTXV0YXRlQ2FtcGFpZ25Db252ZXJzaW9uR29hbHNS", - "ZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISWwoKb3BlcmF0aW9u", - "cxgCIAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5D", - "YW1wYWlnbkNvbnZlcnNpb25Hb2FsT3BlcmF0aW9uQgPgQQISFQoNdmFsaWRh", - "dGVfb25seRgDIAEoCCKtAQofQ2FtcGFpZ25Db252ZXJzaW9uR29hbE9wZXJh", - "dGlvbhIvCgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5G", - "aWVsZE1hc2sSTAoGdXBkYXRlGAEgASgLMjouZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkNvbnZlcnNpb25Hb2FsSABCCwoJ", - "b3BlcmF0aW9uIn8KJU11dGF0ZUNhbXBhaWduQ29udmVyc2lvbkdvYWxzUmVz", - "cG9uc2USVgoHcmVzdWx0cxgBIAMoCzJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkNvbnZlcnNpb25Hb2FsUmVz", - "dWx0InEKIk11dGF0ZUNhbXBhaWduQ29udmVyc2lvbkdvYWxSZXN1bHQSSwoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUI0+kExCi9nb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ2FtcGFpZ25Db252ZXJzaW9uR29hbDL+AgodQ2FtcGFpZ25Db252", - "ZXJzaW9uR29hbFNlcnZpY2USlQIKHU11dGF0ZUNhbXBhaWduQ29udmVyc2lv", - "bkdvYWxzEkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUNhbXBhaWduQ29udmVyc2lvbkdvYWxzUmVxdWVzdBpILmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkNvbnZl", - "cnNpb25Hb2Fsc1Jlc3BvbnNlImGC0+STAkIiPS92MTIvY3VzdG9tZXJzL3tj", - "dXN0b21lcl9pZD0qfS9jYW1wYWlnbkNvbnZlcnNpb25Hb2FsczptdXRhdGU6", - "ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRo", - "L2Fkd29yZHNCjgIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXNCIkNhbXBhaWduQ29udmVyc2lvbkdvYWxTZXJ2aWNlUHJvdG9QAVpJ", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoalReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation.Parser, new[]{ "UpdateMask", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CampaignConversionGoalService.MutateCampaignConversionGoals][google.ads.googleads.v12.services.CampaignConversionGoalService.MutateCampaignConversionGoals]. - /// - public sealed partial class MutateCampaignConversionGoalsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignConversionGoalsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalsRequest(MutateCampaignConversionGoalsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalsRequest Clone() { - return new MutateCampaignConversionGoalsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign conversion goals are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignConversionGoalsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignConversionGoalsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignConversionGoalsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (update) on a campaign conversion goal. - /// - public sealed partial class CampaignConversionGoalOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignConversionGoalOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoalOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoalOperation(CampaignConversionGoalOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignConversionGoalOperation Clone() { - return new CampaignConversionGoalOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 1; - /// - /// Update operation: The customer conversion goal is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Update = 1, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignConversionGoalOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignConversionGoalOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignConversionGoalOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a campaign conversion goal mutate. - /// - public sealed partial class MutateCampaignConversionGoalsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignConversionGoalsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalsResponse(MutateCampaignConversionGoalsResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalsResponse Clone() { - return new MutateCampaignConversionGoalsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignConversionGoalsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignConversionGoalsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignConversionGoalsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign conversion goal mutate. - /// - public sealed partial class MutateCampaignConversionGoalResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignConversionGoalResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalResult(MutateCampaignConversionGoalResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignConversionGoalResult Clone() { - return new MutateCampaignConversionGoalResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignConversionGoalResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignConversionGoalResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignConversionGoalResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceClient.g.cs deleted file mode 100755 index 3b40dddf7..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceClient.g.cs +++ /dev/null @@ -1,375 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignConversionGoalServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignConversionGoalServiceSettings GetDefault() => new CampaignConversionGoalServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignConversionGoalServiceSettings() - { - } - - private CampaignConversionGoalServiceSettings(CampaignConversionGoalServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignConversionGoalsSettings = existing.MutateCampaignConversionGoalsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignConversionGoalServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignConversionGoalServiceClient.MutateCampaignConversionGoals and - /// CampaignConversionGoalServiceClient.MutateCampaignConversionGoalsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignConversionGoalsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignConversionGoalServiceSettings Clone() => new CampaignConversionGoalServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class CampaignConversionGoalServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignConversionGoalServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignConversionGoalServiceClientBuilder() : base(CampaignConversionGoalServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignConversionGoalServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignConversionGoalServiceClient Build() - { - CampaignConversionGoalServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignConversionGoalServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignConversionGoalServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignConversionGoalServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignConversionGoalServiceClient.ChannelPool; - } - - /// CampaignConversionGoalService client wrapper, for convenient use. - /// - /// Service to manage campaign conversion goal. - /// - public abstract partial class CampaignConversionGoalServiceClient - { - /// - /// The default endpoint for the CampaignConversionGoalService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignConversionGoalService scopes. - /// - /// The default CampaignConversionGoalService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignConversionGoalService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignConversionGoalServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignConversionGoalServiceClient Create() => - new CampaignConversionGoalServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignConversionGoalServiceClient Create(grpccore::CallInvoker callInvoker, CampaignConversionGoalServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignConversionGoalService.CampaignConversionGoalServiceClient grpcClient = new CampaignConversionGoalService.CampaignConversionGoalServiceClient(callInvoker); - return new CampaignConversionGoalServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignConversionGoalService client - public virtual CampaignConversionGoalService.CampaignConversionGoalServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignConversionGoalsResponse MutateCampaignConversionGoals(MutateCampaignConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignConversionGoalsAsync(MutateCampaignConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignConversionGoalsAsync(MutateCampaignConversionGoalsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignConversionGoalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose campaign conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign conversion goal. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignConversionGoalsResponse MutateCampaignConversionGoals(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignConversionGoals(new MutateCampaignConversionGoalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose campaign conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign conversion goal. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignConversionGoalsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignConversionGoalsAsync(new MutateCampaignConversionGoalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose campaign conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign conversion goal. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignConversionGoalsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignConversionGoalsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignConversionGoalService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign conversion goal. - /// - public sealed partial class CampaignConversionGoalServiceClientImpl : CampaignConversionGoalServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignConversionGoals; - - /// - /// Constructs a client wrapper for the CampaignConversionGoalService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CampaignConversionGoalServiceClientImpl(CampaignConversionGoalService.CampaignConversionGoalServiceClient grpcClient, CampaignConversionGoalServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignConversionGoalServiceSettings effectiveSettings = settings ?? CampaignConversionGoalServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignConversionGoals = clientHelper.BuildApiCall("MutateCampaignConversionGoals", grpcClient.MutateCampaignConversionGoalsAsync, grpcClient.MutateCampaignConversionGoals, effectiveSettings.MutateCampaignConversionGoalsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignConversionGoals); - Modify_MutateCampaignConversionGoalsApiCall(ref _callMutateCampaignConversionGoals); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignConversionGoalsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignConversionGoalService.CampaignConversionGoalServiceClient grpcClient, CampaignConversionGoalServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignConversionGoalService client - public override CampaignConversionGoalService.CampaignConversionGoalServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignConversionGoalsRequest(ref MutateCampaignConversionGoalsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignConversionGoalsResponse MutateCampaignConversionGoals(MutateCampaignConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignConversionGoalsRequest(ref request, ref callSettings); - return _callMutateCampaignConversionGoals.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignConversionGoalsAsync(MutateCampaignConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignConversionGoalsRequest(ref request, ref callSettings); - return _callMutateCampaignConversionGoals.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceGrpc.g.cs deleted file mode 100755 index d281b025a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_conversion_goal_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign conversion goal. - /// - public static partial class CampaignConversionGoalService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignConversionGoalService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignConversionGoalsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignConversionGoalsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignConversionGoals = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignConversionGoals", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignConversionGoalsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignConversionGoalsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignConversionGoalService - [grpc::BindServiceMethod(typeof(CampaignConversionGoalService), "BindService")] - public abstract partial class CampaignConversionGoalServiceBase - { - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignConversionGoalService - public partial class CampaignConversionGoalServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignConversionGoalService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignConversionGoalServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignConversionGoalService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignConversionGoalServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignConversionGoalServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignConversionGoalServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsResponse MutateCampaignConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignConversionGoals(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsResponse MutateCampaignConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignConversionGoals, null, options, request); - } - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignConversionGoalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignConversionGoalsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes campaign conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignConversionGoalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignConversionGoals, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignConversionGoalServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignConversionGoalServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignConversionGoalServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignConversionGoals, serviceImpl.MutateCampaignConversionGoals).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignConversionGoalServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignConversionGoals, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignConversionGoals)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceResourceNames.g.cs deleted file mode 100755 index 24eaf0ada..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignConversionGoalServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateCampaignConversionGoalResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignConversionGoalName ResourceNameAsCampaignConversionGoalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignConversionGoalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterion.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterion.g.cs deleted file mode 100755 index 1f2727bfb..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterion.g.cs +++ /dev/null @@ -1,2366 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_criterion.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_criterion.proto - public static partial class CampaignCriterionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_criterion.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCriterionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2NyaXRlcmlvbi5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9jcml0", - "ZXJpYS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Nh", - "bXBhaWduX2NyaXRlcmlvbl9zdGF0dXMucHJvdG8aM2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9jcml0ZXJpb25fdHlwZS5wcm90bxofZ29vZ2xl", - "L2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJj", - "ZS5wcm90byLEFwoRQ2FtcGFpZ25Dcml0ZXJpb24SSQoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUIy4EEF+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2Ft", - "cGFpZ25Dcml0ZXJpb24SQAoIY2FtcGFpZ24YJSABKAlCKeBBBfpBIwohZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduSAGIAQESHgoMY3JpdGVy", - "aW9uX2lkGCYgASgDQgPgQQNIAogBARIZCgxkaXNwbGF5X25hbWUYKyABKAlC", - "A+BBAxIZCgxiaWRfbW9kaWZpZXIYJyABKAJIA4gBARIaCghuZWdhdGl2ZRgo", - "IAEoCEID4EEFSASIAQESUgoEdHlwZRgGIAEoDjI/Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtcy5Dcml0ZXJpb25UeXBlRW51bS5Dcml0ZXJpb25U", - "eXBlQgPgQQMSYwoGc3RhdHVzGCMgASgOMlMuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLkNhbXBhaWduQ3JpdGVyaW9uU3RhdHVzRW51bS5DYW1w", - "YWlnbkNyaXRlcmlvblN0YXR1cxJECgdrZXl3b3JkGAggASgLMiwuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5LZXl3b3JkSW5mb0ID4EEFSAAS", - "SAoJcGxhY2VtZW50GAkgASgLMi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5QbGFjZW1lbnRJbmZvQgPgQQVIABJaChNtb2JpbGVfYXBwX2Nh", - "dGVnb3J5GAogASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5Nb2JpbGVBcHBDYXRlZ29yeUluZm9CA+BBBUgAElkKEm1vYmlsZV9hcHBs", - "aWNhdGlvbhgLIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uTW9iaWxlQXBwbGljYXRpb25JbmZvQgPgQQVIABJGCghsb2NhdGlvbhgM", - "IAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uTG9jYXRp", - "b25JbmZvQgPgQQVIABJCCgZkZXZpY2UYDSABKAsyKy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLkRldmljZUluZm9CA+BBBUgAEksKC2FkX3Nj", - "aGVkdWxlGA8gASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5BZFNjaGVkdWxlSW5mb0ID4EEFSAASRwoJYWdlX3JhbmdlGBAgASgLMi0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5BZ2VSYW5nZUluZm9C", - "A+BBBUgAEkIKBmdlbmRlchgRIAEoCzIrLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5jb21tb24uR2VuZGVySW5mb0ID4EEFSAASTQoMaW5jb21lX3Jhbmdl", - "GBIgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5JbmNv", - "bWVSYW5nZUluZm9CA+BBBUgAElMKD3BhcmVudGFsX3N0YXR1cxgTIAEoCzIz", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUGFyZW50YWxTdGF0", - "dXNJbmZvQgPgQQVIABJHCgl1c2VyX2xpc3QYFiABKAsyLS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuY29tbW9uLlVzZXJMaXN0SW5mb0ID4EEFSAASTwoN", - "eW91dHViZV92aWRlbxgUIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uWW91VHViZVZpZGVvSW5mb0ID4EEFSAASUwoPeW91dHViZV9j", - "aGFubmVsGBUgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5Zb3VUdWJlQ2hhbm5lbEluZm9CA+BBBUgAEkgKCXByb3hpbWl0eRgXIAEo", - "CzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUHJveGltaXR5", - "SW5mb0ID4EEFSAASQAoFdG9waWMYGCABKAsyKi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uLlRvcGljSW5mb0ID4EEFSAASTwoNbGlzdGluZ19z", - "Y29wZRgZIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "TGlzdGluZ1Njb3BlSW5mb0ID4EEFSAASRgoIbGFuZ3VhZ2UYGiABKAsyLS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkxhbmd1YWdlSW5mb0ID", - "4EEFSAASRQoIaXBfYmxvY2sYGyABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLklwQmxvY2tJbmZvQgPgQQVIABJPCg1jb250ZW50X2xh", - "YmVsGBwgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5D", - "b250ZW50TGFiZWxJbmZvQgPgQQVIABJECgdjYXJyaWVyGB0gASgLMiwuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DYXJyaWVySW5mb0ID4EEF", - "SAASTwoNdXNlcl9pbnRlcmVzdBgeIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24uVXNlckludGVyZXN0SW5mb0ID4EEFSAASRAoHd2Vi", - "cGFnZRgfIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "V2VicGFnZUluZm9CA+BBBUgAEmQKGG9wZXJhdGluZ19zeXN0ZW1fdmVyc2lv", - "bhggIAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uT3Bl", - "cmF0aW5nU3lzdGVtVmVyc2lvbkluZm9CA+BBBUgAEk8KDW1vYmlsZV9kZXZp", - "Y2UYISABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLk1v", - "YmlsZURldmljZUluZm9CA+BBBUgAElEKDmxvY2F0aW9uX2dyb3VwGCIgASgL", - "MjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Mb2NhdGlvbkdy", - "b3VwSW5mb0ID4EEFSAASUwoPY3VzdG9tX2FmZmluaXR5GCQgASgLMjMuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DdXN0b21BZmZpbml0eUlu", - "Zm9CA+BBBUgAElMKD2N1c3RvbV9hdWRpZW5jZRgpIAEoCzIzLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQ3VzdG9tQXVkaWVuY2VJbmZvQgPg", - "QQVIABJXChFjb21iaW5lZF9hdWRpZW5jZRgqIAEoCzI1Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5jb21tb24uQ29tYmluZWRBdWRpZW5jZUluZm9CA+BB", - "BUgAEk8KDWtleXdvcmRfdGhlbWUYLSABKAsyMS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uLktleXdvcmRUaGVtZUluZm9CA+BBBUgAOnbqQXMK", - "Kmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkNyaXRlcmlvbhJF", - "Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY2FtcGFpZ25Dcml0ZXJpYS97Y2Ft", - "cGFpZ25faWR9fntjcml0ZXJpb25faWR9QgsKCWNyaXRlcmlvbkILCglfY2Ft", - "cGFpZ25CDwoNX2NyaXRlcmlvbl9pZEIPCg1fYmlkX21vZGlmaWVyQgsKCV9u", - "ZWdhdGl2ZUKIAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXNCFkNhbXBhaWduQ3JpdGVyaW9uUHJvdG9QAVpLZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVB", - "ZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxS", - "ZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291", - "cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion), global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion.Parser, new[]{ "ResourceName", "Campaign", "CriterionId", "DisplayName", "BidModifier", "Negative", "Type", "Status", "Keyword", "Placement", "MobileAppCategory", "MobileApplication", "Location", "Device", "AdSchedule", "AgeRange", "Gender", "IncomeRange", "ParentalStatus", "UserList", "YoutubeVideo", "YoutubeChannel", "Proximity", "Topic", "ListingScope", "Language", "IpBlock", "ContentLabel", "Carrier", "UserInterest", "Webpage", "OperatingSystemVersion", "MobileDevice", "LocationGroup", "CustomAffinity", "CustomAudience", "CombinedAudience", "KeywordTheme" }, new[]{ "Criterion", "Campaign", "CriterionId", "BidModifier", "Negative" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign criterion. - /// - public sealed partial class CampaignCriterion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCriterion()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterion(CampaignCriterion other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - criterionId_ = other.criterionId_; - displayName_ = other.displayName_; - bidModifier_ = other.bidModifier_; - negative_ = other.negative_; - type_ = other.type_; - status_ = other.status_; - switch (other.CriterionCase) { - case CriterionOneofCase.Keyword: - Keyword = other.Keyword.Clone(); - break; - case CriterionOneofCase.Placement: - Placement = other.Placement.Clone(); - break; - case CriterionOneofCase.MobileAppCategory: - MobileAppCategory = other.MobileAppCategory.Clone(); - break; - case CriterionOneofCase.MobileApplication: - MobileApplication = other.MobileApplication.Clone(); - break; - case CriterionOneofCase.Location: - Location = other.Location.Clone(); - break; - case CriterionOneofCase.Device: - Device = other.Device.Clone(); - break; - case CriterionOneofCase.AdSchedule: - AdSchedule = other.AdSchedule.Clone(); - break; - case CriterionOneofCase.AgeRange: - AgeRange = other.AgeRange.Clone(); - break; - case CriterionOneofCase.Gender: - Gender = other.Gender.Clone(); - break; - case CriterionOneofCase.IncomeRange: - IncomeRange = other.IncomeRange.Clone(); - break; - case CriterionOneofCase.ParentalStatus: - ParentalStatus = other.ParentalStatus.Clone(); - break; - case CriterionOneofCase.UserList: - UserList = other.UserList.Clone(); - break; - case CriterionOneofCase.YoutubeVideo: - YoutubeVideo = other.YoutubeVideo.Clone(); - break; - case CriterionOneofCase.YoutubeChannel: - YoutubeChannel = other.YoutubeChannel.Clone(); - break; - case CriterionOneofCase.Proximity: - Proximity = other.Proximity.Clone(); - break; - case CriterionOneofCase.Topic: - Topic = other.Topic.Clone(); - break; - case CriterionOneofCase.ListingScope: - ListingScope = other.ListingScope.Clone(); - break; - case CriterionOneofCase.Language: - Language = other.Language.Clone(); - break; - case CriterionOneofCase.IpBlock: - IpBlock = other.IpBlock.Clone(); - break; - case CriterionOneofCase.ContentLabel: - ContentLabel = other.ContentLabel.Clone(); - break; - case CriterionOneofCase.Carrier: - Carrier = other.Carrier.Clone(); - break; - case CriterionOneofCase.UserInterest: - UserInterest = other.UserInterest.Clone(); - break; - case CriterionOneofCase.Webpage: - Webpage = other.Webpage.Clone(); - break; - case CriterionOneofCase.OperatingSystemVersion: - OperatingSystemVersion = other.OperatingSystemVersion.Clone(); - break; - case CriterionOneofCase.MobileDevice: - MobileDevice = other.MobileDevice.Clone(); - break; - case CriterionOneofCase.LocationGroup: - LocationGroup = other.LocationGroup.Clone(); - break; - case CriterionOneofCase.CustomAffinity: - CustomAffinity = other.CustomAffinity.Clone(); - break; - case CriterionOneofCase.CustomAudience: - CustomAudience = other.CustomAudience.Clone(); - break; - case CriterionOneofCase.CombinedAudience: - CombinedAudience = other.CombinedAudience.Clone(); - break; - case CriterionOneofCase.KeywordTheme: - KeywordTheme = other.KeywordTheme.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterion Clone() { - return new CampaignCriterion(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign criterion. - /// Campaign criterion resource names have the form: - /// - /// `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 37; - private string campaign_; - /// - /// Immutable. The campaign to which the criterion belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "criterion_id" field. - public const int CriterionIdFieldNumber = 38; - private long criterionId_; - /// - /// Output only. The ID of the criterion. - /// - /// This field is ignored during mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CriterionId { - get { if ((_hasBits0 & 1) != 0) { return criterionId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - criterionId_ = value; - } - } - /// Gets whether the "criterion_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCriterionId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "criterion_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterionId() { - _hasBits0 &= ~1; - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 43; - private string displayName_ = ""; - /// - /// Output only. The display name of the criterion. - /// - /// This field is ignored for mutates. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_; } - set { - displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "bid_modifier" field. - public const int BidModifierFieldNumber = 39; - private float bidModifier_; - /// - /// The modifier for the bids when the criterion matches. The modifier must be - /// in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. - /// Use 0 to opt out of a Device type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public float BidModifier { - get { if ((_hasBits0 & 2) != 0) { return bidModifier_; } else { return 0F; } } - set { - _hasBits0 |= 2; - bidModifier_ = value; - } - } - /// Gets whether the "bid_modifier" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBidModifier { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "bid_modifier" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBidModifier() { - _hasBits0 &= ~2; - } - - /// Field number for the "negative" field. - public const int NegativeFieldNumber = 40; - private bool negative_; - /// - /// Immutable. Whether to target (`false`) or exclude (`true`) the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Negative { - get { if ((_hasBits0 & 4) != 0) { return negative_; } else { return false; } } - set { - _hasBits0 |= 4; - negative_ = value; - } - } - /// Gets whether the "negative" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNegative { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "negative" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNegative() { - _hasBits0 &= ~4; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType type_ = global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified; - /// - /// Output only. The type of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 35; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus.Unspecified; - /// - /// The status of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "keyword" field. - public const int KeywordFieldNumber = 8; - /// - /// Immutable. Keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordInfo Keyword { - get { return criterionCase_ == CriterionOneofCase.Keyword ? (global::Google.Ads.GoogleAds.V12.Common.KeywordInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Keyword; - } - } - - /// Field number for the "placement" field. - public const int PlacementFieldNumber = 9; - /// - /// Immutable. Placement. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PlacementInfo Placement { - get { return criterionCase_ == CriterionOneofCase.Placement ? (global::Google.Ads.GoogleAds.V12.Common.PlacementInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Placement; - } - } - - /// Field number for the "mobile_app_category" field. - public const int MobileAppCategoryFieldNumber = 10; - /// - /// Immutable. Mobile app category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo MobileAppCategory { - get { return criterionCase_ == CriterionOneofCase.MobileAppCategory ? (global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.MobileAppCategory; - } - } - - /// Field number for the "mobile_application" field. - public const int MobileApplicationFieldNumber = 11; - /// - /// Immutable. Mobile application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo MobileApplication { - get { return criterionCase_ == CriterionOneofCase.MobileApplication ? (global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.MobileApplication; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 12; - /// - /// Immutable. Location. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationInfo Location { - get { return criterionCase_ == CriterionOneofCase.Location ? (global::Google.Ads.GoogleAds.V12.Common.LocationInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Location; - } - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 13; - /// - /// Immutable. Device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DeviceInfo Device { - get { return criterionCase_ == CriterionOneofCase.Device ? (global::Google.Ads.GoogleAds.V12.Common.DeviceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Device; - } - } - - /// Field number for the "ad_schedule" field. - public const int AdScheduleFieldNumber = 15; - /// - /// Immutable. Ad Schedule. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo AdSchedule { - get { return criterionCase_ == CriterionOneofCase.AdSchedule ? (global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.AdSchedule; - } - } - - /// Field number for the "age_range" field. - public const int AgeRangeFieldNumber = 16; - /// - /// Immutable. Age range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo AgeRange { - get { return criterionCase_ == CriterionOneofCase.AgeRange ? (global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.AgeRange; - } - } - - /// Field number for the "gender" field. - public const int GenderFieldNumber = 17; - /// - /// Immutable. Gender. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.GenderInfo Gender { - get { return criterionCase_ == CriterionOneofCase.Gender ? (global::Google.Ads.GoogleAds.V12.Common.GenderInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Gender; - } - } - - /// Field number for the "income_range" field. - public const int IncomeRangeFieldNumber = 18; - /// - /// Immutable. Income range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo IncomeRange { - get { return criterionCase_ == CriterionOneofCase.IncomeRange ? (global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.IncomeRange; - } - } - - /// Field number for the "parental_status" field. - public const int ParentalStatusFieldNumber = 19; - /// - /// Immutable. Parental status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo ParentalStatus { - get { return criterionCase_ == CriterionOneofCase.ParentalStatus ? (global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.ParentalStatus; - } - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 22; - /// - /// Immutable. User List. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserListInfo UserList { - get { return criterionCase_ == CriterionOneofCase.UserList ? (global::Google.Ads.GoogleAds.V12.Common.UserListInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.UserList; - } - } - - /// Field number for the "youtube_video" field. - public const int YoutubeVideoFieldNumber = 20; - /// - /// Immutable. YouTube Video. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo YoutubeVideo { - get { return criterionCase_ == CriterionOneofCase.YoutubeVideo ? (global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.YoutubeVideo; - } - } - - /// Field number for the "youtube_channel" field. - public const int YoutubeChannelFieldNumber = 21; - /// - /// Immutable. YouTube Channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo YoutubeChannel { - get { return criterionCase_ == CriterionOneofCase.YoutubeChannel ? (global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.YoutubeChannel; - } - } - - /// Field number for the "proximity" field. - public const int ProximityFieldNumber = 23; - /// - /// Immutable. Proximity. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProximityInfo Proximity { - get { return criterionCase_ == CriterionOneofCase.Proximity ? (global::Google.Ads.GoogleAds.V12.Common.ProximityInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Proximity; - } - } - - /// Field number for the "topic" field. - public const int TopicFieldNumber = 24; - /// - /// Immutable. Topic. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TopicInfo Topic { - get { return criterionCase_ == CriterionOneofCase.Topic ? (global::Google.Ads.GoogleAds.V12.Common.TopicInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Topic; - } - } - - /// Field number for the "listing_scope" field. - public const int ListingScopeFieldNumber = 25; - /// - /// Immutable. Listing scope. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo ListingScope { - get { return criterionCase_ == CriterionOneofCase.ListingScope ? (global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.ListingScope; - } - } - - /// Field number for the "language" field. - public const int LanguageFieldNumber = 26; - /// - /// Immutable. Language. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LanguageInfo Language { - get { return criterionCase_ == CriterionOneofCase.Language ? (global::Google.Ads.GoogleAds.V12.Common.LanguageInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Language; - } - } - - /// Field number for the "ip_block" field. - public const int IpBlockFieldNumber = 27; - /// - /// Immutable. IpBlock. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo IpBlock { - get { return criterionCase_ == CriterionOneofCase.IpBlock ? (global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.IpBlock; - } - } - - /// Field number for the "content_label" field. - public const int ContentLabelFieldNumber = 28; - /// - /// Immutable. ContentLabel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo ContentLabel { - get { return criterionCase_ == CriterionOneofCase.ContentLabel ? (global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.ContentLabel; - } - } - - /// Field number for the "carrier" field. - public const int CarrierFieldNumber = 29; - /// - /// Immutable. Carrier. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CarrierInfo Carrier { - get { return criterionCase_ == CriterionOneofCase.Carrier ? (global::Google.Ads.GoogleAds.V12.Common.CarrierInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Carrier; - } - } - - /// Field number for the "user_interest" field. - public const int UserInterestFieldNumber = 30; - /// - /// Immutable. User Interest. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo UserInterest { - get { return criterionCase_ == CriterionOneofCase.UserInterest ? (global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.UserInterest; - } - } - - /// Field number for the "webpage" field. - public const int WebpageFieldNumber = 31; - /// - /// Immutable. Webpage. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.WebpageInfo Webpage { - get { return criterionCase_ == CriterionOneofCase.Webpage ? (global::Google.Ads.GoogleAds.V12.Common.WebpageInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Webpage; - } - } - - /// Field number for the "operating_system_version" field. - public const int OperatingSystemVersionFieldNumber = 32; - /// - /// Immutable. Operating system version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo OperatingSystemVersion { - get { return criterionCase_ == CriterionOneofCase.OperatingSystemVersion ? (global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.OperatingSystemVersion; - } - } - - /// Field number for the "mobile_device" field. - public const int MobileDeviceFieldNumber = 33; - /// - /// Immutable. Mobile Device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo MobileDevice { - get { return criterionCase_ == CriterionOneofCase.MobileDevice ? (global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.MobileDevice; - } - } - - /// Field number for the "location_group" field. - public const int LocationGroupFieldNumber = 34; - /// - /// Immutable. Location Group - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo LocationGroup { - get { return criterionCase_ == CriterionOneofCase.LocationGroup ? (global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.LocationGroup; - } - } - - /// Field number for the "custom_affinity" field. - public const int CustomAffinityFieldNumber = 36; - /// - /// Immutable. Custom Affinity. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo CustomAffinity { - get { return criterionCase_ == CriterionOneofCase.CustomAffinity ? (global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.CustomAffinity; - } - } - - /// Field number for the "custom_audience" field. - public const int CustomAudienceFieldNumber = 41; - /// - /// Immutable. Custom Audience - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo CustomAudience { - get { return criterionCase_ == CriterionOneofCase.CustomAudience ? (global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.CustomAudience; - } - } - - /// Field number for the "combined_audience" field. - public const int CombinedAudienceFieldNumber = 42; - /// - /// Immutable. Combined Audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo CombinedAudience { - get { return criterionCase_ == CriterionOneofCase.CombinedAudience ? (global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.CombinedAudience; - } - } - - /// Field number for the "keyword_theme" field. - public const int KeywordThemeFieldNumber = 45; - /// - /// Immutable. Smart Campaign Keyword Theme. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo KeywordTheme { - get { return criterionCase_ == CriterionOneofCase.KeywordTheme ? (global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.KeywordTheme; - } - } - - private object criterion_; - /// Enum of possible cases for the "criterion" oneof. - public enum CriterionOneofCase { - None = 0, - Keyword = 8, - Placement = 9, - MobileAppCategory = 10, - MobileApplication = 11, - Location = 12, - Device = 13, - AdSchedule = 15, - AgeRange = 16, - Gender = 17, - IncomeRange = 18, - ParentalStatus = 19, - UserList = 22, - YoutubeVideo = 20, - YoutubeChannel = 21, - Proximity = 23, - Topic = 24, - ListingScope = 25, - Language = 26, - IpBlock = 27, - ContentLabel = 28, - Carrier = 29, - UserInterest = 30, - Webpage = 31, - OperatingSystemVersion = 32, - MobileDevice = 33, - LocationGroup = 34, - CustomAffinity = 36, - CustomAudience = 41, - CombinedAudience = 42, - KeywordTheme = 45, - } - private CriterionOneofCase criterionCase_ = CriterionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionOneofCase CriterionCase { - get { return criterionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterion() { - criterionCase_ = CriterionOneofCase.None; - criterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCriterion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCriterion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (CriterionId != other.CriterionId) return false; - if (DisplayName != other.DisplayName) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BidModifier, other.BidModifier)) return false; - if (Negative != other.Negative) return false; - if (Type != other.Type) return false; - if (Status != other.Status) return false; - if (!object.Equals(Keyword, other.Keyword)) return false; - if (!object.Equals(Placement, other.Placement)) return false; - if (!object.Equals(MobileAppCategory, other.MobileAppCategory)) return false; - if (!object.Equals(MobileApplication, other.MobileApplication)) return false; - if (!object.Equals(Location, other.Location)) return false; - if (!object.Equals(Device, other.Device)) return false; - if (!object.Equals(AdSchedule, other.AdSchedule)) return false; - if (!object.Equals(AgeRange, other.AgeRange)) return false; - if (!object.Equals(Gender, other.Gender)) return false; - if (!object.Equals(IncomeRange, other.IncomeRange)) return false; - if (!object.Equals(ParentalStatus, other.ParentalStatus)) return false; - if (!object.Equals(UserList, other.UserList)) return false; - if (!object.Equals(YoutubeVideo, other.YoutubeVideo)) return false; - if (!object.Equals(YoutubeChannel, other.YoutubeChannel)) return false; - if (!object.Equals(Proximity, other.Proximity)) return false; - if (!object.Equals(Topic, other.Topic)) return false; - if (!object.Equals(ListingScope, other.ListingScope)) return false; - if (!object.Equals(Language, other.Language)) return false; - if (!object.Equals(IpBlock, other.IpBlock)) return false; - if (!object.Equals(ContentLabel, other.ContentLabel)) return false; - if (!object.Equals(Carrier, other.Carrier)) return false; - if (!object.Equals(UserInterest, other.UserInterest)) return false; - if (!object.Equals(Webpage, other.Webpage)) return false; - if (!object.Equals(OperatingSystemVersion, other.OperatingSystemVersion)) return false; - if (!object.Equals(MobileDevice, other.MobileDevice)) return false; - if (!object.Equals(LocationGroup, other.LocationGroup)) return false; - if (!object.Equals(CustomAffinity, other.CustomAffinity)) return false; - if (!object.Equals(CustomAudience, other.CustomAudience)) return false; - if (!object.Equals(CombinedAudience, other.CombinedAudience)) return false; - if (!object.Equals(KeywordTheme, other.KeywordTheme)) return false; - if (CriterionCase != other.CriterionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasCriterionId) hash ^= CriterionId.GetHashCode(); - if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); - if (HasBidModifier) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BidModifier); - if (HasNegative) hash ^= Negative.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) hash ^= Type.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus.Unspecified) hash ^= Status.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Keyword) hash ^= Keyword.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Placement) hash ^= Placement.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) hash ^= MobileAppCategory.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) hash ^= MobileApplication.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Location) hash ^= Location.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Device) hash ^= Device.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.AdSchedule) hash ^= AdSchedule.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.AgeRange) hash ^= AgeRange.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Gender) hash ^= Gender.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.IncomeRange) hash ^= IncomeRange.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.ParentalStatus) hash ^= ParentalStatus.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.UserList) hash ^= UserList.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) hash ^= YoutubeVideo.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) hash ^= YoutubeChannel.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Proximity) hash ^= Proximity.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Topic) hash ^= Topic.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.ListingScope) hash ^= ListingScope.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Language) hash ^= Language.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.IpBlock) hash ^= IpBlock.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.ContentLabel) hash ^= ContentLabel.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Carrier) hash ^= Carrier.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.UserInterest) hash ^= UserInterest.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Webpage) hash ^= Webpage.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.OperatingSystemVersion) hash ^= OperatingSystemVersion.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.MobileDevice) hash ^= MobileDevice.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.LocationGroup) hash ^= LocationGroup.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.CustomAffinity) hash ^= CustomAffinity.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.CustomAudience) hash ^= CustomAudience.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.CombinedAudience) hash ^= CombinedAudience.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.KeywordTheme) hash ^= KeywordTheme.GetHashCode(); - hash ^= (int) criterionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Type); - } - if (criterionCase_ == CriterionOneofCase.Keyword) { - output.WriteRawTag(66); - output.WriteMessage(Keyword); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - output.WriteRawTag(74); - output.WriteMessage(Placement); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - output.WriteRawTag(82); - output.WriteMessage(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - output.WriteRawTag(90); - output.WriteMessage(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.Location) { - output.WriteRawTag(98); - output.WriteMessage(Location); - } - if (criterionCase_ == CriterionOneofCase.Device) { - output.WriteRawTag(106); - output.WriteMessage(Device); - } - if (criterionCase_ == CriterionOneofCase.AdSchedule) { - output.WriteRawTag(122); - output.WriteMessage(AdSchedule); - } - if (criterionCase_ == CriterionOneofCase.AgeRange) { - output.WriteRawTag(130, 1); - output.WriteMessage(AgeRange); - } - if (criterionCase_ == CriterionOneofCase.Gender) { - output.WriteRawTag(138, 1); - output.WriteMessage(Gender); - } - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - output.WriteRawTag(146, 1); - output.WriteMessage(IncomeRange); - } - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - output.WriteRawTag(154, 1); - output.WriteMessage(ParentalStatus); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - output.WriteRawTag(162, 1); - output.WriteMessage(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - output.WriteRawTag(170, 1); - output.WriteMessage(YoutubeChannel); - } - if (criterionCase_ == CriterionOneofCase.UserList) { - output.WriteRawTag(178, 1); - output.WriteMessage(UserList); - } - if (criterionCase_ == CriterionOneofCase.Proximity) { - output.WriteRawTag(186, 1); - output.WriteMessage(Proximity); - } - if (criterionCase_ == CriterionOneofCase.Topic) { - output.WriteRawTag(194, 1); - output.WriteMessage(Topic); - } - if (criterionCase_ == CriterionOneofCase.ListingScope) { - output.WriteRawTag(202, 1); - output.WriteMessage(ListingScope); - } - if (criterionCase_ == CriterionOneofCase.Language) { - output.WriteRawTag(210, 1); - output.WriteMessage(Language); - } - if (criterionCase_ == CriterionOneofCase.IpBlock) { - output.WriteRawTag(218, 1); - output.WriteMessage(IpBlock); - } - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - output.WriteRawTag(226, 1); - output.WriteMessage(ContentLabel); - } - if (criterionCase_ == CriterionOneofCase.Carrier) { - output.WriteRawTag(234, 1); - output.WriteMessage(Carrier); - } - if (criterionCase_ == CriterionOneofCase.UserInterest) { - output.WriteRawTag(242, 1); - output.WriteMessage(UserInterest); - } - if (criterionCase_ == CriterionOneofCase.Webpage) { - output.WriteRawTag(250, 1); - output.WriteMessage(Webpage); - } - if (criterionCase_ == CriterionOneofCase.OperatingSystemVersion) { - output.WriteRawTag(130, 2); - output.WriteMessage(OperatingSystemVersion); - } - if (criterionCase_ == CriterionOneofCase.MobileDevice) { - output.WriteRawTag(138, 2); - output.WriteMessage(MobileDevice); - } - if (criterionCase_ == CriterionOneofCase.LocationGroup) { - output.WriteRawTag(146, 2); - output.WriteMessage(LocationGroup); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus.Unspecified) { - output.WriteRawTag(152, 2); - output.WriteEnum((int) Status); - } - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - output.WriteRawTag(162, 2); - output.WriteMessage(CustomAffinity); - } - if (HasCampaign) { - output.WriteRawTag(170, 2); - output.WriteString(Campaign); - } - if (HasCriterionId) { - output.WriteRawTag(176, 2); - output.WriteInt64(CriterionId); - } - if (HasBidModifier) { - output.WriteRawTag(189, 2); - output.WriteFloat(BidModifier); - } - if (HasNegative) { - output.WriteRawTag(192, 2); - output.WriteBool(Negative); - } - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - output.WriteRawTag(202, 2); - output.WriteMessage(CustomAudience); - } - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - output.WriteRawTag(210, 2); - output.WriteMessage(CombinedAudience); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(218, 2); - output.WriteString(DisplayName); - } - if (criterionCase_ == CriterionOneofCase.KeywordTheme) { - output.WriteRawTag(234, 2); - output.WriteMessage(KeywordTheme); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Type); - } - if (criterionCase_ == CriterionOneofCase.Keyword) { - output.WriteRawTag(66); - output.WriteMessage(Keyword); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - output.WriteRawTag(74); - output.WriteMessage(Placement); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - output.WriteRawTag(82); - output.WriteMessage(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - output.WriteRawTag(90); - output.WriteMessage(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.Location) { - output.WriteRawTag(98); - output.WriteMessage(Location); - } - if (criterionCase_ == CriterionOneofCase.Device) { - output.WriteRawTag(106); - output.WriteMessage(Device); - } - if (criterionCase_ == CriterionOneofCase.AdSchedule) { - output.WriteRawTag(122); - output.WriteMessage(AdSchedule); - } - if (criterionCase_ == CriterionOneofCase.AgeRange) { - output.WriteRawTag(130, 1); - output.WriteMessage(AgeRange); - } - if (criterionCase_ == CriterionOneofCase.Gender) { - output.WriteRawTag(138, 1); - output.WriteMessage(Gender); - } - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - output.WriteRawTag(146, 1); - output.WriteMessage(IncomeRange); - } - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - output.WriteRawTag(154, 1); - output.WriteMessage(ParentalStatus); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - output.WriteRawTag(162, 1); - output.WriteMessage(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - output.WriteRawTag(170, 1); - output.WriteMessage(YoutubeChannel); - } - if (criterionCase_ == CriterionOneofCase.UserList) { - output.WriteRawTag(178, 1); - output.WriteMessage(UserList); - } - if (criterionCase_ == CriterionOneofCase.Proximity) { - output.WriteRawTag(186, 1); - output.WriteMessage(Proximity); - } - if (criterionCase_ == CriterionOneofCase.Topic) { - output.WriteRawTag(194, 1); - output.WriteMessage(Topic); - } - if (criterionCase_ == CriterionOneofCase.ListingScope) { - output.WriteRawTag(202, 1); - output.WriteMessage(ListingScope); - } - if (criterionCase_ == CriterionOneofCase.Language) { - output.WriteRawTag(210, 1); - output.WriteMessage(Language); - } - if (criterionCase_ == CriterionOneofCase.IpBlock) { - output.WriteRawTag(218, 1); - output.WriteMessage(IpBlock); - } - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - output.WriteRawTag(226, 1); - output.WriteMessage(ContentLabel); - } - if (criterionCase_ == CriterionOneofCase.Carrier) { - output.WriteRawTag(234, 1); - output.WriteMessage(Carrier); - } - if (criterionCase_ == CriterionOneofCase.UserInterest) { - output.WriteRawTag(242, 1); - output.WriteMessage(UserInterest); - } - if (criterionCase_ == CriterionOneofCase.Webpage) { - output.WriteRawTag(250, 1); - output.WriteMessage(Webpage); - } - if (criterionCase_ == CriterionOneofCase.OperatingSystemVersion) { - output.WriteRawTag(130, 2); - output.WriteMessage(OperatingSystemVersion); - } - if (criterionCase_ == CriterionOneofCase.MobileDevice) { - output.WriteRawTag(138, 2); - output.WriteMessage(MobileDevice); - } - if (criterionCase_ == CriterionOneofCase.LocationGroup) { - output.WriteRawTag(146, 2); - output.WriteMessage(LocationGroup); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus.Unspecified) { - output.WriteRawTag(152, 2); - output.WriteEnum((int) Status); - } - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - output.WriteRawTag(162, 2); - output.WriteMessage(CustomAffinity); - } - if (HasCampaign) { - output.WriteRawTag(170, 2); - output.WriteString(Campaign); - } - if (HasCriterionId) { - output.WriteRawTag(176, 2); - output.WriteInt64(CriterionId); - } - if (HasBidModifier) { - output.WriteRawTag(189, 2); - output.WriteFloat(BidModifier); - } - if (HasNegative) { - output.WriteRawTag(192, 2); - output.WriteBool(Negative); - } - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - output.WriteRawTag(202, 2); - output.WriteMessage(CustomAudience); - } - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - output.WriteRawTag(210, 2); - output.WriteMessage(CombinedAudience); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(218, 2); - output.WriteString(DisplayName); - } - if (criterionCase_ == CriterionOneofCase.KeywordTheme) { - output.WriteRawTag(234, 2); - output.WriteMessage(KeywordTheme); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCampaign) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasCriterionId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(CriterionId); - } - if (DisplayName.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (HasBidModifier) { - size += 2 + 4; - } - if (HasNegative) { - size += 2 + 1; - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (criterionCase_ == CriterionOneofCase.Keyword) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Keyword); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Placement); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.Location) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (criterionCase_ == CriterionOneofCase.Device) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); - } - if (criterionCase_ == CriterionOneofCase.AdSchedule) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdSchedule); - } - if (criterionCase_ == CriterionOneofCase.AgeRange) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AgeRange); - } - if (criterionCase_ == CriterionOneofCase.Gender) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Gender); - } - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(IncomeRange); - } - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParentalStatus); - } - if (criterionCase_ == CriterionOneofCase.UserList) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserList); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(YoutubeChannel); - } - if (criterionCase_ == CriterionOneofCase.Proximity) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Proximity); - } - if (criterionCase_ == CriterionOneofCase.Topic) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Topic); - } - if (criterionCase_ == CriterionOneofCase.ListingScope) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ListingScope); - } - if (criterionCase_ == CriterionOneofCase.Language) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Language); - } - if (criterionCase_ == CriterionOneofCase.IpBlock) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(IpBlock); - } - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ContentLabel); - } - if (criterionCase_ == CriterionOneofCase.Carrier) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Carrier); - } - if (criterionCase_ == CriterionOneofCase.UserInterest) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserInterest); - } - if (criterionCase_ == CriterionOneofCase.Webpage) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Webpage); - } - if (criterionCase_ == CriterionOneofCase.OperatingSystemVersion) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(OperatingSystemVersion); - } - if (criterionCase_ == CriterionOneofCase.MobileDevice) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MobileDevice); - } - if (criterionCase_ == CriterionOneofCase.LocationGroup) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocationGroup); - } - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomAffinity); - } - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomAudience); - } - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CombinedAudience); - } - if (criterionCase_ == CriterionOneofCase.KeywordTheme) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordTheme); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCriterion other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasCriterionId) { - CriterionId = other.CriterionId; - } - if (other.DisplayName.Length != 0) { - DisplayName = other.DisplayName; - } - if (other.HasBidModifier) { - BidModifier = other.BidModifier; - } - if (other.HasNegative) { - Negative = other.Negative; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - Type = other.Type; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus.Unspecified) { - Status = other.Status; - } - switch (other.CriterionCase) { - case CriterionOneofCase.Keyword: - if (Keyword == null) { - Keyword = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - Keyword.MergeFrom(other.Keyword); - break; - case CriterionOneofCase.Placement: - if (Placement == null) { - Placement = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - } - Placement.MergeFrom(other.Placement); - break; - case CriterionOneofCase.MobileAppCategory: - if (MobileAppCategory == null) { - MobileAppCategory = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - } - MobileAppCategory.MergeFrom(other.MobileAppCategory); - break; - case CriterionOneofCase.MobileApplication: - if (MobileApplication == null) { - MobileApplication = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - } - MobileApplication.MergeFrom(other.MobileApplication); - break; - case CriterionOneofCase.Location: - if (Location == null) { - Location = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - } - Location.MergeFrom(other.Location); - break; - case CriterionOneofCase.Device: - if (Device == null) { - Device = new global::Google.Ads.GoogleAds.V12.Common.DeviceInfo(); - } - Device.MergeFrom(other.Device); - break; - case CriterionOneofCase.AdSchedule: - if (AdSchedule == null) { - AdSchedule = new global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo(); - } - AdSchedule.MergeFrom(other.AdSchedule); - break; - case CriterionOneofCase.AgeRange: - if (AgeRange == null) { - AgeRange = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - } - AgeRange.MergeFrom(other.AgeRange); - break; - case CriterionOneofCase.Gender: - if (Gender == null) { - Gender = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - } - Gender.MergeFrom(other.Gender); - break; - case CriterionOneofCase.IncomeRange: - if (IncomeRange == null) { - IncomeRange = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - } - IncomeRange.MergeFrom(other.IncomeRange); - break; - case CriterionOneofCase.ParentalStatus: - if (ParentalStatus == null) { - ParentalStatus = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - } - ParentalStatus.MergeFrom(other.ParentalStatus); - break; - case CriterionOneofCase.UserList: - if (UserList == null) { - UserList = new global::Google.Ads.GoogleAds.V12.Common.UserListInfo(); - } - UserList.MergeFrom(other.UserList); - break; - case CriterionOneofCase.YoutubeVideo: - if (YoutubeVideo == null) { - YoutubeVideo = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - } - YoutubeVideo.MergeFrom(other.YoutubeVideo); - break; - case CriterionOneofCase.YoutubeChannel: - if (YoutubeChannel == null) { - YoutubeChannel = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - } - YoutubeChannel.MergeFrom(other.YoutubeChannel); - break; - case CriterionOneofCase.Proximity: - if (Proximity == null) { - Proximity = new global::Google.Ads.GoogleAds.V12.Common.ProximityInfo(); - } - Proximity.MergeFrom(other.Proximity); - break; - case CriterionOneofCase.Topic: - if (Topic == null) { - Topic = new global::Google.Ads.GoogleAds.V12.Common.TopicInfo(); - } - Topic.MergeFrom(other.Topic); - break; - case CriterionOneofCase.ListingScope: - if (ListingScope == null) { - ListingScope = new global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo(); - } - ListingScope.MergeFrom(other.ListingScope); - break; - case CriterionOneofCase.Language: - if (Language == null) { - Language = new global::Google.Ads.GoogleAds.V12.Common.LanguageInfo(); - } - Language.MergeFrom(other.Language); - break; - case CriterionOneofCase.IpBlock: - if (IpBlock == null) { - IpBlock = new global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo(); - } - IpBlock.MergeFrom(other.IpBlock); - break; - case CriterionOneofCase.ContentLabel: - if (ContentLabel == null) { - ContentLabel = new global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo(); - } - ContentLabel.MergeFrom(other.ContentLabel); - break; - case CriterionOneofCase.Carrier: - if (Carrier == null) { - Carrier = new global::Google.Ads.GoogleAds.V12.Common.CarrierInfo(); - } - Carrier.MergeFrom(other.Carrier); - break; - case CriterionOneofCase.UserInterest: - if (UserInterest == null) { - UserInterest = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - } - UserInterest.MergeFrom(other.UserInterest); - break; - case CriterionOneofCase.Webpage: - if (Webpage == null) { - Webpage = new global::Google.Ads.GoogleAds.V12.Common.WebpageInfo(); - } - Webpage.MergeFrom(other.Webpage); - break; - case CriterionOneofCase.OperatingSystemVersion: - if (OperatingSystemVersion == null) { - OperatingSystemVersion = new global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo(); - } - OperatingSystemVersion.MergeFrom(other.OperatingSystemVersion); - break; - case CriterionOneofCase.MobileDevice: - if (MobileDevice == null) { - MobileDevice = new global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo(); - } - MobileDevice.MergeFrom(other.MobileDevice); - break; - case CriterionOneofCase.LocationGroup: - if (LocationGroup == null) { - LocationGroup = new global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo(); - } - LocationGroup.MergeFrom(other.LocationGroup); - break; - case CriterionOneofCase.CustomAffinity: - if (CustomAffinity == null) { - CustomAffinity = new global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo(); - } - CustomAffinity.MergeFrom(other.CustomAffinity); - break; - case CriterionOneofCase.CustomAudience: - if (CustomAudience == null) { - CustomAudience = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo(); - } - CustomAudience.MergeFrom(other.CustomAudience); - break; - case CriterionOneofCase.CombinedAudience: - if (CombinedAudience == null) { - CombinedAudience = new global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo(); - } - CombinedAudience.MergeFrom(other.CombinedAudience); - break; - case CriterionOneofCase.KeywordTheme: - if (KeywordTheme == null) { - KeywordTheme = new global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo(); - } - KeywordTheme.MergeFrom(other.KeywordTheme); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - if (criterionCase_ == CriterionOneofCase.Keyword) { - subBuilder.MergeFrom(Keyword); - } - input.ReadMessage(subBuilder); - Keyword = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - if (criterionCase_ == CriterionOneofCase.Placement) { - subBuilder.MergeFrom(Placement); - } - input.ReadMessage(subBuilder); - Placement = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - subBuilder.MergeFrom(MobileAppCategory); - } - input.ReadMessage(subBuilder); - MobileAppCategory = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - subBuilder.MergeFrom(MobileApplication); - } - input.ReadMessage(subBuilder); - MobileApplication = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.LocationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - if (criterionCase_ == CriterionOneofCase.Location) { - subBuilder.MergeFrom(Location); - } - input.ReadMessage(subBuilder); - Location = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Common.DeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DeviceInfo(); - if (criterionCase_ == CriterionOneofCase.Device) { - subBuilder.MergeFrom(Device); - } - input.ReadMessage(subBuilder); - Device = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo(); - if (criterionCase_ == CriterionOneofCase.AdSchedule) { - subBuilder.MergeFrom(AdSchedule); - } - input.ReadMessage(subBuilder); - AdSchedule = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.AgeRange) { - subBuilder.MergeFrom(AgeRange); - } - input.ReadMessage(subBuilder); - AgeRange = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.GenderInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - if (criterionCase_ == CriterionOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - subBuilder.MergeFrom(IncomeRange); - } - input.ReadMessage(subBuilder); - IncomeRange = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - subBuilder.MergeFrom(YoutubeVideo); - } - input.ReadMessage(subBuilder); - YoutubeVideo = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.UserListInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListInfo(); - if (criterionCase_ == CriterionOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Common.ProximityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProximityInfo(); - if (criterionCase_ == CriterionOneofCase.Proximity) { - subBuilder.MergeFrom(Proximity); - } - input.ReadMessage(subBuilder); - Proximity = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.TopicInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TopicInfo(); - if (criterionCase_ == CriterionOneofCase.Topic) { - subBuilder.MergeFrom(Topic); - } - input.ReadMessage(subBuilder); - Topic = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo(); - if (criterionCase_ == CriterionOneofCase.ListingScope) { - subBuilder.MergeFrom(ListingScope); - } - input.ReadMessage(subBuilder); - ListingScope = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Common.LanguageInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LanguageInfo(); - if (criterionCase_ == CriterionOneofCase.Language) { - subBuilder.MergeFrom(Language); - } - input.ReadMessage(subBuilder); - Language = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo(); - if (criterionCase_ == CriterionOneofCase.IpBlock) { - subBuilder.MergeFrom(IpBlock); - } - input.ReadMessage(subBuilder); - IpBlock = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo(); - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - subBuilder.MergeFrom(ContentLabel); - } - input.ReadMessage(subBuilder); - ContentLabel = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.CarrierInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CarrierInfo(); - if (criterionCase_ == CriterionOneofCase.Carrier) { - subBuilder.MergeFrom(Carrier); - } - input.ReadMessage(subBuilder); - Carrier = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - if (criterionCase_ == CriterionOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.WebpageInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.WebpageInfo(); - if (criterionCase_ == CriterionOneofCase.Webpage) { - subBuilder.MergeFrom(Webpage); - } - input.ReadMessage(subBuilder); - Webpage = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo(); - if (criterionCase_ == CriterionOneofCase.OperatingSystemVersion) { - subBuilder.MergeFrom(OperatingSystemVersion); - } - input.ReadMessage(subBuilder); - OperatingSystemVersion = subBuilder; - break; - } - case 266: { - global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo(); - if (criterionCase_ == CriterionOneofCase.MobileDevice) { - subBuilder.MergeFrom(MobileDevice); - } - input.ReadMessage(subBuilder); - MobileDevice = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo(); - if (criterionCase_ == CriterionOneofCase.LocationGroup) { - subBuilder.MergeFrom(LocationGroup); - } - input.ReadMessage(subBuilder); - LocationGroup = subBuilder; - break; - } - case 280: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus) input.ReadEnum(); - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - subBuilder.MergeFrom(CustomAffinity); - } - input.ReadMessage(subBuilder); - CustomAffinity = subBuilder; - break; - } - case 298: { - Campaign = input.ReadString(); - break; - } - case 304: { - CriterionId = input.ReadInt64(); - break; - } - case 317: { - BidModifier = input.ReadFloat(); - break; - } - case 320: { - Negative = input.ReadBool(); - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - subBuilder.MergeFrom(CustomAudience); - } - input.ReadMessage(subBuilder); - CustomAudience = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - subBuilder.MergeFrom(CombinedAudience); - } - input.ReadMessage(subBuilder); - CombinedAudience = subBuilder; - break; - } - case 346: { - DisplayName = input.ReadString(); - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo(); - if (criterionCase_ == CriterionOneofCase.KeywordTheme) { - subBuilder.MergeFrom(KeywordTheme); - } - input.ReadMessage(subBuilder); - KeywordTheme = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - if (criterionCase_ == CriterionOneofCase.Keyword) { - subBuilder.MergeFrom(Keyword); - } - input.ReadMessage(subBuilder); - Keyword = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - if (criterionCase_ == CriterionOneofCase.Placement) { - subBuilder.MergeFrom(Placement); - } - input.ReadMessage(subBuilder); - Placement = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - subBuilder.MergeFrom(MobileAppCategory); - } - input.ReadMessage(subBuilder); - MobileAppCategory = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - subBuilder.MergeFrom(MobileApplication); - } - input.ReadMessage(subBuilder); - MobileApplication = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.LocationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationInfo(); - if (criterionCase_ == CriterionOneofCase.Location) { - subBuilder.MergeFrom(Location); - } - input.ReadMessage(subBuilder); - Location = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Common.DeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DeviceInfo(); - if (criterionCase_ == CriterionOneofCase.Device) { - subBuilder.MergeFrom(Device); - } - input.ReadMessage(subBuilder); - Device = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo(); - if (criterionCase_ == CriterionOneofCase.AdSchedule) { - subBuilder.MergeFrom(AdSchedule); - } - input.ReadMessage(subBuilder); - AdSchedule = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.AgeRange) { - subBuilder.MergeFrom(AgeRange); - } - input.ReadMessage(subBuilder); - AgeRange = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.GenderInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.GenderInfo(); - if (criterionCase_ == CriterionOneofCase.Gender) { - subBuilder.MergeFrom(Gender); - } - input.ReadMessage(subBuilder); - Gender = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo(); - if (criterionCase_ == CriterionOneofCase.IncomeRange) { - subBuilder.MergeFrom(IncomeRange); - } - input.ReadMessage(subBuilder); - IncomeRange = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo(); - if (criterionCase_ == CriterionOneofCase.ParentalStatus) { - subBuilder.MergeFrom(ParentalStatus); - } - input.ReadMessage(subBuilder); - ParentalStatus = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - subBuilder.MergeFrom(YoutubeVideo); - } - input.ReadMessage(subBuilder); - YoutubeVideo = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Common.UserListInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserListInfo(); - if (criterionCase_ == CriterionOneofCase.UserList) { - subBuilder.MergeFrom(UserList); - } - input.ReadMessage(subBuilder); - UserList = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Common.ProximityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProximityInfo(); - if (criterionCase_ == CriterionOneofCase.Proximity) { - subBuilder.MergeFrom(Proximity); - } - input.ReadMessage(subBuilder); - Proximity = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Common.TopicInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TopicInfo(); - if (criterionCase_ == CriterionOneofCase.Topic) { - subBuilder.MergeFrom(Topic); - } - input.ReadMessage(subBuilder); - Topic = subBuilder; - break; - } - case 202: { - global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo(); - if (criterionCase_ == CriterionOneofCase.ListingScope) { - subBuilder.MergeFrom(ListingScope); - } - input.ReadMessage(subBuilder); - ListingScope = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Common.LanguageInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LanguageInfo(); - if (criterionCase_ == CriterionOneofCase.Language) { - subBuilder.MergeFrom(Language); - } - input.ReadMessage(subBuilder); - Language = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo(); - if (criterionCase_ == CriterionOneofCase.IpBlock) { - subBuilder.MergeFrom(IpBlock); - } - input.ReadMessage(subBuilder); - IpBlock = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo(); - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - subBuilder.MergeFrom(ContentLabel); - } - input.ReadMessage(subBuilder); - ContentLabel = subBuilder; - break; - } - case 234: { - global::Google.Ads.GoogleAds.V12.Common.CarrierInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CarrierInfo(); - if (criterionCase_ == CriterionOneofCase.Carrier) { - subBuilder.MergeFrom(Carrier); - } - input.ReadMessage(subBuilder); - Carrier = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo(); - if (criterionCase_ == CriterionOneofCase.UserInterest) { - subBuilder.MergeFrom(UserInterest); - } - input.ReadMessage(subBuilder); - UserInterest = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.WebpageInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.WebpageInfo(); - if (criterionCase_ == CriterionOneofCase.Webpage) { - subBuilder.MergeFrom(Webpage); - } - input.ReadMessage(subBuilder); - Webpage = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo(); - if (criterionCase_ == CriterionOneofCase.OperatingSystemVersion) { - subBuilder.MergeFrom(OperatingSystemVersion); - } - input.ReadMessage(subBuilder); - OperatingSystemVersion = subBuilder; - break; - } - case 266: { - global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo(); - if (criterionCase_ == CriterionOneofCase.MobileDevice) { - subBuilder.MergeFrom(MobileDevice); - } - input.ReadMessage(subBuilder); - MobileDevice = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo(); - if (criterionCase_ == CriterionOneofCase.LocationGroup) { - subBuilder.MergeFrom(LocationGroup); - } - input.ReadMessage(subBuilder); - LocationGroup = subBuilder; - break; - } - case 280: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus) input.ReadEnum(); - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAffinity) { - subBuilder.MergeFrom(CustomAffinity); - } - input.ReadMessage(subBuilder); - CustomAffinity = subBuilder; - break; - } - case 298: { - Campaign = input.ReadString(); - break; - } - case 304: { - CriterionId = input.ReadInt64(); - break; - } - case 317: { - BidModifier = input.ReadFloat(); - break; - } - case 320: { - Negative = input.ReadBool(); - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CustomAudience) { - subBuilder.MergeFrom(CustomAudience); - } - input.ReadMessage(subBuilder); - CustomAudience = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo(); - if (criterionCase_ == CriterionOneofCase.CombinedAudience) { - subBuilder.MergeFrom(CombinedAudience); - } - input.ReadMessage(subBuilder); - CombinedAudience = subBuilder; - break; - } - case 346: { - DisplayName = input.ReadString(); - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo(); - if (criterionCase_ == CriterionOneofCase.KeywordTheme) { - subBuilder.MergeFrom(KeywordTheme); - } - input.ReadMessage(subBuilder); - KeywordTheme = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionError.g.cs deleted file mode 100755 index d2e7d2748..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionError.g.cs +++ /dev/null @@ -1,348 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_criterion_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_criterion_error.proto - public static partial class CampaignCriterionErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_criterion_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCriterionErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2Ny", - "aXRlcmlvbl9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9ycyKFCQoaQ2FtcGFpZ25Dcml0ZXJpb25FcnJvckVudW0i5ggKFkNh", - "bXBhaWduQ3JpdGVyaW9uRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktO", - "T1dOEAESGgoWQ09OQ1JFVEVfVFlQRV9SRVFVSVJFRBACEhkKFUlOVkFMSURf", - "UExBQ0VNRU5UX1VSTBADEiAKHENBTk5PVF9FWENMVURFX0NSSVRFUklBX1RZ", - "UEUQBBInCiNDQU5OT1RfU0VUX1NUQVRVU19GT1JfQ1JJVEVSSUFfVFlQRRAF", - "EisKJ0NBTk5PVF9TRVRfU1RBVFVTX0ZPUl9FWENMVURFRF9DUklURVJJQRAG", - "Eh0KGUNBTk5PVF9UQVJHRVRfQU5EX0VYQ0xVREUQBxIXChNUT09fTUFOWV9P", - "UEVSQVRJT05TEAgSLQopT1BFUkFUT1JfTk9UX1NVUFBPUlRFRF9GT1JfQ1JJ", - "VEVSSU9OX1RZUEUQCRJDCj9TSE9QUElOR19DQU1QQUlHTl9TQUxFU19DT1VO", - "VFJZX05PVF9TVVBQT1JURURfRk9SX1NBTEVTX0NIQU5ORUwQChIdChlDQU5O", - "T1RfQUREX0VYSVNUSU5HX0ZJRUxEEAsSJAogQ0FOTk9UX1VQREFURV9ORUdB", - "VElWRV9DUklURVJJT04QDBI4CjRDQU5OT1RfU0VUX05FR0FUSVZFX0tFWVdP", - "UkRfVEhFTUVfQ09OU1RBTlRfQ1JJVEVSSU9OEA0SIgoeSU5WQUxJRF9LRVlX", - "T1JEX1RIRU1FX0NPTlNUQU5UEA4SPQo5TUlTU0lOR19LRVlXT1JEX1RIRU1F", - "X0NPTlNUQU5UX09SX0ZSRUVfRk9STV9LRVlXT1JEX1RIRU1FEA8SSQpFQ0FO", - "Tk9UX1RBUkdFVF9CT1RIX1BST1hJTUlUWV9BTkRfTE9DQVRJT05fQ1JJVEVS", - "SUFfRk9SX1NNQVJUX0NBTVBBSUdOEBASQAo8Q0FOTk9UX1RBUkdFVF9NVUxU", - "SVBMRV9QUk9YSU1JVFlfQ1JJVEVSSUFfRk9SX1NNQVJUX0NBTVBBSUdOEBES", - "NQoxTE9DQVRJT05fTk9UX0xBVU5DSEVEX0ZPUl9MT0NBTF9TRVJWSUNFU19D", - "QU1QQUlHThASEjAKLExPQ0FUSU9OX0lOVkFMSURfRk9SX0xPQ0FMX1NFUlZJ", - "Q0VTX0NBTVBBSUdOEBMSNQoxQ0FOTk9UX1RBUkdFVF9DT1VOVFJZX0ZPUl9M", - "T0NBTF9TRVJWSUNFU19DQU1QQUlHThAUEjwKOExPQ0FUSU9OX05PVF9JTl9I", - "T01FX0NPVU5UUllfRk9SX0xPQ0FMX1NFUlZJQ0VTX0NBTVBBSUdOEBUSPQo5", - "Q0FOTk9UX0FERF9PUl9SRU1PVkVfTE9DQVRJT05fRk9SX0xPQ0FMX1NFUlZJ", - "Q0VTX0NBTVBBSUdOEBYSRwpDQVRfTEVBU1RfT05FX1BPU0lUSVZFX0xPQ0FU", - "SU9OX1JFUVVJUkVEX0ZPUl9MT0NBTF9TRVJWSUNFU19DQU1QQUlHThAXQvsB", - "CiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9yc0IbQ2FtcGFp", - "Z25Dcml0ZXJpb25FcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vy", - "cm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPK", - "Ah9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorEnum.Types.CampaignCriterionError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign criterion errors. - /// - public sealed partial class CampaignCriterionErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCriterionErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionErrorEnum(CampaignCriterionErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionErrorEnum Clone() { - return new CampaignCriterionErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCriterionErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCriterionErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCriterionErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignCriterionErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign criterion errors. - /// - public enum CampaignCriterionError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Concrete type of criterion (keyword v.s. placement) is required for - /// CREATE and UPDATE operations. - /// - [pbr::OriginalName("CONCRETE_TYPE_REQUIRED")] ConcreteTypeRequired = 2, - /// - /// Invalid placement URL. - /// - [pbr::OriginalName("INVALID_PLACEMENT_URL")] InvalidPlacementUrl = 3, - /// - /// Criteria type can not be excluded for the campaign by the customer. like - /// AOL account type cannot target site type criteria - /// - [pbr::OriginalName("CANNOT_EXCLUDE_CRITERIA_TYPE")] CannotExcludeCriteriaType = 4, - /// - /// Cannot set the campaign criterion status for this criteria type. - /// - [pbr::OriginalName("CANNOT_SET_STATUS_FOR_CRITERIA_TYPE")] CannotSetStatusForCriteriaType = 5, - /// - /// Cannot set the campaign criterion status for an excluded criteria. - /// - [pbr::OriginalName("CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA")] CannotSetStatusForExcludedCriteria = 6, - /// - /// Cannot target and exclude the same criterion. - /// - [pbr::OriginalName("CANNOT_TARGET_AND_EXCLUDE")] CannotTargetAndExclude = 7, - /// - /// The mutate contained too many operations. - /// - [pbr::OriginalName("TOO_MANY_OPERATIONS")] TooManyOperations = 8, - /// - /// This operator cannot be applied to a criterion of this type. - /// - [pbr::OriginalName("OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE")] OperatorNotSupportedForCriterionType = 9, - /// - /// The Shopping campaign sales country is not supported for - /// ProductSalesChannel targeting. - /// - [pbr::OriginalName("SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL")] ShoppingCampaignSalesCountryNotSupportedForSalesChannel = 10, - /// - /// The existing field can't be updated with CREATE operation. It can be - /// updated with UPDATE operation only. - /// - [pbr::OriginalName("CANNOT_ADD_EXISTING_FIELD")] CannotAddExistingField = 11, - /// - /// Negative criteria are immutable, so updates are not allowed. - /// - [pbr::OriginalName("CANNOT_UPDATE_NEGATIVE_CRITERION")] CannotUpdateNegativeCriterion = 12, - /// - /// Only free form names are allowed for negative Smart campaign keyword - /// theme. - /// - [pbr::OriginalName("CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION")] CannotSetNegativeKeywordThemeConstantCriterion = 13, - /// - /// Invalid Smart campaign keyword theme constant criterion. - /// - [pbr::OriginalName("INVALID_KEYWORD_THEME_CONSTANT")] InvalidKeywordThemeConstant = 14, - /// - /// A Smart campaign keyword theme constant or free-form Smart campaign - /// keyword theme is required. - /// - [pbr::OriginalName("MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME")] MissingKeywordThemeConstantOrFreeFormKeywordTheme = 15, - /// - /// A Smart campaign may not target proximity and location criteria - /// simultaneously. - /// - [pbr::OriginalName("CANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN")] CannotTargetBothProximityAndLocationCriteriaForSmartCampaign = 16, - /// - /// A Smart campaign may not target multiple proximity criteria. - /// - [pbr::OriginalName("CANNOT_TARGET_MULTIPLE_PROXIMITY_CRITERIA_FOR_SMART_CAMPAIGN")] CannotTargetMultipleProximityCriteriaForSmartCampaign = 17, - /// - /// Location is not launched for Local Services Campaigns. - /// - [pbr::OriginalName("LOCATION_NOT_LAUNCHED_FOR_LOCAL_SERVICES_CAMPAIGN")] LocationNotLaunchedForLocalServicesCampaign = 18, - /// - /// A Local Services campaign may not target certain criteria types. - /// - [pbr::OriginalName("LOCATION_INVALID_FOR_LOCAL_SERVICES_CAMPAIGN")] LocationInvalidForLocalServicesCampaign = 19, - /// - /// Country locations are not supported for Local Services campaign. - /// - [pbr::OriginalName("CANNOT_TARGET_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN")] CannotTargetCountryForLocalServicesCampaign = 20, - /// - /// Location is not within the home country of Local Services campaign. - /// - [pbr::OriginalName("LOCATION_NOT_IN_HOME_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN")] LocationNotInHomeCountryForLocalServicesCampaign = 21, - /// - /// Local Services profile does not exist for a particular Local Services - /// campaign. - /// - [pbr::OriginalName("CANNOT_ADD_OR_REMOVE_LOCATION_FOR_LOCAL_SERVICES_CAMPAIGN")] CannotAddOrRemoveLocationForLocalServicesCampaign = 22, - /// - /// Local Services campaign must have at least one target location. - /// - [pbr::OriginalName("AT_LEAST_ONE_POSITIVE_LOCATION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN")] AtLeastOnePositiveLocationRequiredForLocalServicesCampaign = 23, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionResourceNames.g.cs deleted file mode 100755 index d6812cf44..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionResourceNames.g.cs +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignCriterion resource. - public sealed partial class CampaignCriterionName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id} - /// . - /// - CustomerCampaignCriterion = 1, - } - - private static gax::PathTemplate s_customerCampaignCriterion = new gax::PathTemplate("customers/{customer_id}/campaignCriteria/{campaign_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignCriterionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignCriterionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignCriterionName FromCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - new CampaignCriterionName(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}. - /// - public static string Format(string customerId, string campaignId, string criterionId) => - FormatCustomerCampaignCriterion(customerId, campaignId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}. - /// - public static string FormatCustomerCampaignCriterion(string customerId, string campaignId, string criterionId) => - s_customerCampaignCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignCriterionName Parse(string campaignCriterionName) => Parse(campaignCriterionName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignCriterionName Parse(string campaignCriterionName, bool allowUnparsed) => - TryParse(campaignCriterionName, allowUnparsed, out CampaignCriterionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignCriterionName, out CampaignCriterionName result) => - TryParse(campaignCriterionName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignCriterionName, bool allowUnparsed, out CampaignCriterionName result) - { - gax::GaxPreconditions.CheckNotNull(campaignCriterionName, nameof(campaignCriterionName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignCriterion.TryParseName(campaignCriterionName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignCriterionName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignCriterionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public CampaignCriterionName(string customerId, string campaignId, string criterionId) : this(ResourceNameType.CustomerCampaignCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignCriterion: return s_customerCampaignCriterion.Expand(CustomerId, $"{CampaignId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignCriterionName); - - /// - public bool Equals(CampaignCriterionName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignCriterionName a, CampaignCriterionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignCriterionName a, CampaignCriterionName b) => !(a == b); - } - - public partial class CampaignCriterion - { - /// - /// -typed view over the resource name property. - /// - internal CampaignCriterionName ResourceNameAsCampaignCriterionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignCriterionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionService.g.cs deleted file mode 100755 index 8e3291146..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionService.g.cs +++ /dev/null @@ -1,1310 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_criterion_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_criterion_service.proto - public static partial class CampaignCriterionServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_criterion_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCriterionServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "Y3JpdGVyaW9uX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9jcml0ZXJpb24ucHJvdG8a", - "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xp", - "ZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmll", - "bGRfbWFzay5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8irQIKHU11", - "dGF0ZUNhbXBhaWduQ3JpdGVyaWFSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEg", - "ASgJQgPgQQISVgoKb3BlcmF0aW9ucxgCIAMoCzI9Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5DYW1wYWlnbkNyaXRlcmlvbk9wZXJhdGlv", - "bkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9v", - "bmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgFIAEoDjJLLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25zZUNvbnRlbnRU", - "eXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIq8CChpDYW1wYWlnbkNyaXRl", - "cmlvbk9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5w", - "cm90b2J1Zi5GaWVsZE1hc2sSRwoGY3JlYXRlGAEgASgLMjUuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkNyaXRlcmlvbkgA", - "EkcKBnVwZGF0ZRgCIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQ2FtcGFpZ25Dcml0ZXJpb25IABJBCgZyZW1vdmUYAyABKAlC", - "L/pBLAoqZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQ3JpdGVy", - "aW9uSABCCwoJb3BlcmF0aW9uIqYBCh5NdXRhdGVDYW1wYWlnbkNyaXRlcmlh", - "UmVzcG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgLMhIuZ29v", - "Z2xlLnJwYy5TdGF0dXMSUQoHcmVzdWx0cxgCIAMoCzJALmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkNyaXRlcmlv", - "blJlc3VsdCK6AQodTXV0YXRlQ2FtcGFpZ25Dcml0ZXJpb25SZXN1bHQSRgoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUIv+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ2FtcGFpZ25Dcml0ZXJpb24SUQoSY2FtcGFpZ25fY3JpdGVyaW9u", - "GAIgASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5D", - "YW1wYWlnbkNyaXRlcmlvbjLdAgoYQ2FtcGFpZ25Dcml0ZXJpb25TZXJ2aWNl", - "EvkBChZNdXRhdGVDYW1wYWlnbkNyaXRlcmlhEkAuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQ3JpdGVyaWFSZXF1", - "ZXN0GkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUNhbXBhaWduQ3JpdGVyaWFSZXNwb25zZSJagtPkkwI7IjYvdjEyL2N1c3Rv", - "bWVycy97Y3VzdG9tZXJfaWQ9Kn0vY2FtcGFpZ25Dcml0ZXJpYTptdXRhdGU6", - "ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRo", - "L2Fkd29yZHNCiQIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXNCHUNhbXBhaWduQ3JpdGVyaW9uU2VydmljZVByb3RvUAFaSWdvb2ds", - "ZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFk", - "cy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNl", - "cnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult.Parser, new[]{ "ResourceName", "CampaignCriterion" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignCriterionService.MutateCampaignCriteria][google.ads.googleads.v12.services.CampaignCriterionService.MutateCampaignCriteria]. - /// - public sealed partial class MutateCampaignCriteriaRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignCriteriaRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriteriaRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriteriaRequest(MutateCampaignCriteriaRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriteriaRequest Clone() { - return new MutateCampaignCriteriaRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual criteria. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignCriteriaRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignCriteriaRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignCriteriaRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign criterion. - /// - public sealed partial class CampaignCriterionOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCriterionOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionOperation(CampaignCriterionOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionOperation Clone() { - return new CampaignCriterionOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The criterion is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed criterion is expected, - /// in this format: - /// - /// `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCriterionOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCriterionOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCriterionOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for campaign criterion mutate. - /// - public sealed partial class MutateCampaignCriteriaResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignCriteriaResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriteriaResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriteriaResponse(MutateCampaignCriteriaResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriteriaResponse Clone() { - return new MutateCampaignCriteriaResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignCriteriaResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignCriteriaResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignCriteriaResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the criterion mutate. - /// - public sealed partial class MutateCampaignCriterionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignCriterionResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriterionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriterionResult(MutateCampaignCriterionResult other) : this() { - resourceName_ = other.resourceName_; - campaignCriterion_ = other.campaignCriterion_ != null ? other.campaignCriterion_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCriterionResult Clone() { - return new MutateCampaignCriterionResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_criterion" field. - public const int CampaignCriterionFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion campaignCriterion_; - /// - /// The mutated campaign criterion with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion CampaignCriterion { - get { return campaignCriterion_; } - set { - campaignCriterion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignCriterionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignCriterionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignCriterion, other.CampaignCriterion)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignCriterion_ != null) hash ^= CampaignCriterion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignCriterion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignCriterion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignCriterion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignCriterion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignCriterionResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignCriterion_ != null) { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - CampaignCriterion.MergeFrom(other.CampaignCriterion); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - input.ReadMessage(CampaignCriterion); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - input.ReadMessage(CampaignCriterion); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceClient.g.cs deleted file mode 100755 index 2d7a1ccd6..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceClient.g.cs +++ /dev/null @@ -1,614 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignCriterionServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignCriterionServiceSettings GetDefault() => new CampaignCriterionServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignCriterionServiceSettings() - { - } - - private CampaignCriterionServiceSettings(CampaignCriterionServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignCriteriaSettings = existing.MutateCampaignCriteriaSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignCriterionServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignCriterionServiceClient.MutateCampaignCriteria and - /// CampaignCriterionServiceClient.MutateCampaignCriteriaAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignCriteriaSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignCriterionServiceSettings Clone() => new CampaignCriterionServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignCriterionServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignCriterionServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignCriterionServiceClientBuilder() : base(CampaignCriterionServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignCriterionServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignCriterionServiceClient Build() - { - CampaignCriterionServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignCriterionServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignCriterionServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignCriterionServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignCriterionServiceClient.ChannelPool; - } - - /// CampaignCriterionService client wrapper, for convenient use. - /// - /// Service to manage campaign criteria. - /// - public abstract partial class CampaignCriterionServiceClient - { - /// - /// The default endpoint for the CampaignCriterionService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignCriterionService scopes. - /// - /// The default CampaignCriterionService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignCriterionService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignCriterionServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignCriterionServiceClient Create() => new CampaignCriterionServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignCriterionServiceClient Create(grpccore::CallInvoker callInvoker, CampaignCriterionServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignCriterionService.CampaignCriterionServiceClient grpcClient = new CampaignCriterionService.CampaignCriterionServiceClient(callInvoker); - return new CampaignCriterionServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignCriterionService client - public virtual CampaignCriterionService.CampaignCriterionServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignCriteriaResponse MutateCampaignCriteria(MutateCampaignCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCriteriaAsync(MutateCampaignCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCriteriaAsync(MutateCampaignCriteriaRequest request, st::CancellationToken cancellationToken) => - MutateCampaignCriteriaAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignCriteriaResponse MutateCampaignCriteria(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignCriteria(new MutateCampaignCriteriaRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCriteriaAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignCriteriaAsync(new MutateCampaignCriteriaRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCriteriaAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignCriteriaAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignCriterionService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign criteria. - /// - public sealed partial class CampaignCriterionServiceClientImpl : CampaignCriterionServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignCriteria; - - /// - /// Constructs a client wrapper for the CampaignCriterionService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CampaignCriterionServiceClientImpl(CampaignCriterionService.CampaignCriterionServiceClient grpcClient, CampaignCriterionServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignCriterionServiceSettings effectiveSettings = settings ?? CampaignCriterionServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignCriteria = clientHelper.BuildApiCall("MutateCampaignCriteria", grpcClient.MutateCampaignCriteriaAsync, grpcClient.MutateCampaignCriteria, effectiveSettings.MutateCampaignCriteriaSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignCriteria); - Modify_MutateCampaignCriteriaApiCall(ref _callMutateCampaignCriteria); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignCriteriaApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignCriterionService.CampaignCriterionServiceClient grpcClient, CampaignCriterionServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignCriterionService client - public override CampaignCriterionService.CampaignCriterionServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignCriteriaRequest(ref MutateCampaignCriteriaRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignCriteriaResponse MutateCampaignCriteria(MutateCampaignCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignCriteriaRequest(ref request, ref callSettings); - return _callMutateCampaignCriteria.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignCriteriaAsync(MutateCampaignCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignCriteriaRequest(ref request, ref callSettings); - return _callMutateCampaignCriteria.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceGrpc.g.cs deleted file mode 100755 index 9476e7a81..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceGrpc.g.cs +++ /dev/null @@ -1,362 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_criterion_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign criteria. - /// - public static partial class CampaignCriterionService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignCriterionService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignCriteriaRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignCriteriaResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignCriteria = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignCriteria", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignCriteriaRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignCriteriaResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignCriterionService - [grpc::BindServiceMethod(typeof(CampaignCriterionService), "BindService")] - public abstract partial class CampaignCriterionServiceBase - { - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignCriterionService - public partial class CampaignCriterionServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignCriterionService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignCriterionServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignCriterionService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignCriterionServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignCriterionServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignCriterionServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaResponse MutateCampaignCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignCriteria(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaResponse MutateCampaignCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignCriteria, null, options, request); - } - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignCriteriaAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignCriteriaAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignCriterionError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignCriteriaAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriteriaRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignCriteria, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignCriterionServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignCriterionServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignCriterionServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignCriteria, serviceImpl.MutateCampaignCriteria).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignCriterionServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignCriteria, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignCriteria)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceResourceNames.g.cs deleted file mode 100755 index 1d563f9d3..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignCriterionOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignCriterionName RemoveAsCampaignCriterionName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignCriterionName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignCriterionResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignCriterionName ResourceNameAsCampaignCriterionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignCriterionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionSimulation.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionSimulation.g.cs deleted file mode 100755 index 67d82f593..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionSimulation.g.cs +++ /dev/null @@ -1,652 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_criterion_simulation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_criterion_simulation.proto - public static partial class CampaignCriterionSimulationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_criterion_simulation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCriterionSimulationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2NyaXRlcmlvbl9zaW11bGF0aW9uLnByb3RvEiJnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzGjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "Y29tbW9uL3NpbXVsYXRpb24ucHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcy9zaW11bGF0aW9uX21vZGlmaWNhdGlvbl9tZXRob2QucHJv", - "dG8aNGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9zaW11bGF0aW9u", - "X3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8ivAYKG0NhbXBhaWduQ3JpdGVy", - "aW9uU2ltdWxhdGlvbhJTCg1yZXNvdXJjZV9uYW1lGAEgASgJQjzgQQP6QTYK", - "NGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkNyaXRlcmlvblNp", - "bXVsYXRpb24SHQoLY2FtcGFpZ25faWQYCSABKANCA+BBA0gBiAEBEh4KDGNy", - "aXRlcmlvbl9pZBgKIAEoA0ID4EEDSAKIAQESVAoEdHlwZRgEIAEoDjJBLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TaW11bGF0aW9uVHlwZUVu", - "dW0uU2ltdWxhdGlvblR5cGVCA+BBAxJ/ChNtb2RpZmljYXRpb25fbWV0aG9k", - "GAUgASgOMl0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlNpbXVs", - "YXRpb25Nb2RpZmljYXRpb25NZXRob2RFbnVtLlNpbXVsYXRpb25Nb2RpZmlj", - "YXRpb25NZXRob2RCA+BBAxIcCgpzdGFydF9kYXRlGAsgASgJQgPgQQNIA4gB", - "ARIaCghlbmRfZGF0ZRgMIAEoCUID4EEDSASIAQESZwoXYmlkX21vZGlmaWVy", - "X3BvaW50X2xpc3QYCCABKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "Y29tbW9uLkJpZE1vZGlmaWVyU2ltdWxhdGlvblBvaW50TGlzdEID4EEDSAA6", - "wwHqQb8BCjRnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25Dcml0", - "ZXJpb25TaW11bGF0aW9uEoYBY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY2Ft", - "cGFpZ25Dcml0ZXJpb25TaW11bGF0aW9ucy97Y2FtcGFpZ25faWR9fntjcml0", - "ZXJpb25faWR9fnt0eXBlfX57bW9kaWZpY2F0aW9uX21ldGhvZH1+e3N0YXJ0", - "X2RhdGV9fntlbmRfZGF0ZX1CDAoKcG9pbnRfbGlzdEIOCgxfY2FtcGFpZ25f", - "aWRCDwoNX2NyaXRlcmlvbl9pZEINCgtfc3RhcnRfZGF0ZUILCglfZW5kX2Rh", - "dGVCkgIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "QiBDYW1wYWlnbkNyaXRlcmlvblNpbXVsYXRpb25Qcm90b1ABWktnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.SimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulation), global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulation.Parser, new[]{ "ResourceName", "CampaignId", "CriterionId", "Type", "ModificationMethod", "StartDate", "EndDate", "BidModifierPointList" }, new[]{ "PointList", "CampaignId", "CriterionId", "StartDate", "EndDate" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign criterion simulation. Supported combinations of advertising - /// channel type, criterion ids, simulation type and simulation modification - /// method is detailed below respectively. - /// - /// 1. SEARCH - 30000,30001,30002 - BID_MODIFIER - UNIFORM - /// 2. DISPLAY - 30001 - BID_MODIFIER - UNIFORM - /// - public sealed partial class CampaignCriterionSimulation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCriterionSimulation()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionSimulation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionSimulation(CampaignCriterionSimulation other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - campaignId_ = other.campaignId_; - criterionId_ = other.criterionId_; - type_ = other.type_; - modificationMethod_ = other.modificationMethod_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - switch (other.PointListCase) { - case PointListOneofCase.BidModifierPointList: - BidModifierPointList = other.BidModifierPointList.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionSimulation Clone() { - return new CampaignCriterionSimulation(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the campaign criterion simulation. - /// Campaign criterion simulation resource names have the form: - /// - /// `customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_id" field. - public const int CampaignIdFieldNumber = 9; - private long campaignId_; - /// - /// Output only. Campaign ID of the simulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CampaignId { - get { if ((_hasBits0 & 1) != 0) { return campaignId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - campaignId_ = value; - } - } - /// Gets whether the "campaign_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "campaign_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignId() { - _hasBits0 &= ~1; - } - - /// Field number for the "criterion_id" field. - public const int CriterionIdFieldNumber = 10; - private long criterionId_; - /// - /// Output only. Criterion ID of the simulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CriterionId { - get { if ((_hasBits0 & 2) != 0) { return criterionId_; } else { return 0L; } } - set { - _hasBits0 |= 2; - criterionId_ = value; - } - } - /// Gets whether the "criterion_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCriterionId { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "criterion_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterionId() { - _hasBits0 &= ~2; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType type_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified; - /// - /// Output only. The field that the simulation modifies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "modification_method" field. - public const int ModificationMethodFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod modificationMethod_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified; - /// - /// Output only. How the simulation modifies the field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod ModificationMethod { - get { return modificationMethod_; } - set { - modificationMethod_ = value; - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 11; - private string startDate_; - /// - /// Output only. First day on which the simulation is based, in YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_ ?? ""; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDate { - get { return startDate_ != null; } - } - /// Clears the value of the "start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDate() { - startDate_ = null; - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 12; - private string endDate_; - /// - /// Output only. Last day on which the simulation is based, in YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_ ?? ""; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDate { - get { return endDate_ != null; } - } - /// Clears the value of the "end_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDate() { - endDate_ = null; - } - - /// Field number for the "bid_modifier_point_list" field. - public const int BidModifierPointListFieldNumber = 8; - /// - /// Output only. Simulation points if the simulation type is BID_MODIFIER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.BidModifierSimulationPointList BidModifierPointList { - get { return pointListCase_ == PointListOneofCase.BidModifierPointList ? (global::Google.Ads.GoogleAds.V12.Common.BidModifierSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.BidModifierPointList; - } - } - - private object pointList_; - /// Enum of possible cases for the "point_list" oneof. - public enum PointListOneofCase { - None = 0, - BidModifierPointList = 8, - } - private PointListOneofCase pointListCase_ = PointListOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PointListOneofCase PointListCase { - get { return pointListCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPointList() { - pointListCase_ = PointListOneofCase.None; - pointList_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCriterionSimulation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCriterionSimulation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (CampaignId != other.CampaignId) return false; - if (CriterionId != other.CriterionId) return false; - if (Type != other.Type) return false; - if (ModificationMethod != other.ModificationMethod) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if (!object.Equals(BidModifierPointList, other.BidModifierPointList)) return false; - if (PointListCase != other.PointListCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCampaignId) hash ^= CampaignId.GetHashCode(); - if (HasCriterionId) hash ^= CriterionId.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) hash ^= Type.GetHashCode(); - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) hash ^= ModificationMethod.GetHashCode(); - if (HasStartDate) hash ^= StartDate.GetHashCode(); - if (HasEndDate) hash ^= EndDate.GetHashCode(); - if (pointListCase_ == PointListOneofCase.BidModifierPointList) hash ^= BidModifierPointList.GetHashCode(); - hash ^= (int) pointListCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ModificationMethod); - } - if (pointListCase_ == PointListOneofCase.BidModifierPointList) { - output.WriteRawTag(66); - output.WriteMessage(BidModifierPointList); - } - if (HasCampaignId) { - output.WriteRawTag(72); - output.WriteInt64(CampaignId); - } - if (HasCriterionId) { - output.WriteRawTag(80); - output.WriteInt64(CriterionId); - } - if (HasStartDate) { - output.WriteRawTag(90); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(98); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ModificationMethod); - } - if (pointListCase_ == PointListOneofCase.BidModifierPointList) { - output.WriteRawTag(66); - output.WriteMessage(BidModifierPointList); - } - if (HasCampaignId) { - output.WriteRawTag(72); - output.WriteInt64(CampaignId); - } - if (HasCriterionId) { - output.WriteRawTag(80); - output.WriteInt64(CriterionId); - } - if (HasStartDate) { - output.WriteRawTag(90); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(98); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCampaignId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CampaignId); - } - if (HasCriterionId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CriterionId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod); - } - if (HasStartDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (HasEndDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (pointListCase_ == PointListOneofCase.BidModifierPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BidModifierPointList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCriterionSimulation other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCampaignId) { - CampaignId = other.CampaignId; - } - if (other.HasCriterionId) { - CriterionId = other.CriterionId; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - Type = other.Type; - } - if (other.ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - ModificationMethod = other.ModificationMethod; - } - if (other.HasStartDate) { - StartDate = other.StartDate; - } - if (other.HasEndDate) { - EndDate = other.EndDate; - } - switch (other.PointListCase) { - case PointListOneofCase.BidModifierPointList: - if (BidModifierPointList == null) { - BidModifierPointList = new global::Google.Ads.GoogleAds.V12.Common.BidModifierSimulationPointList(); - } - BidModifierPointList.MergeFrom(other.BidModifierPointList); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 40: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.BidModifierSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BidModifierSimulationPointList(); - if (pointListCase_ == PointListOneofCase.BidModifierPointList) { - subBuilder.MergeFrom(BidModifierPointList); - } - input.ReadMessage(subBuilder); - BidModifierPointList = subBuilder; - break; - } - case 72: { - CampaignId = input.ReadInt64(); - break; - } - case 80: { - CriterionId = input.ReadInt64(); - break; - } - case 90: { - StartDate = input.ReadString(); - break; - } - case 98: { - EndDate = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 40: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.BidModifierSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BidModifierSimulationPointList(); - if (pointListCase_ == PointListOneofCase.BidModifierPointList) { - subBuilder.MergeFrom(BidModifierPointList); - } - input.ReadMessage(subBuilder); - BidModifierPointList = subBuilder; - break; - } - case 72: { - CampaignId = input.ReadInt64(); - break; - } - case 80: { - CriterionId = input.ReadInt64(); - break; - } - case 90: { - StartDate = input.ReadString(); - break; - } - case 98: { - EndDate = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionSimulationResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionSimulationResourceNames.g.cs deleted file mode 100755 index ed3981f64..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionSimulationResourceNames.g.cs +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignCriterionSimulation resource. - public sealed partial class CampaignCriterionSimulationName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - CustomerCampaignCriterionTypeModificationMethodStartDateEndDate = 1, - } - - private static gax::PathTemplate s_customerCampaignCriterionTypeModificationMethodStartDateEndDate = new gax::PathTemplate("customers/{customer_id}/campaignCriterionSimulations/{campaign_id_criterion_id_type_modification_method_start_date_end_date}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignCriterionSimulationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignCriterionSimulationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CampaignCriterionSimulationName FromCustomerCampaignCriterionTypeModificationMethodStartDateEndDate(string customerId, string campaignId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - new CampaignCriterionSimulationName(ResourceNameType.CustomerCampaignCriterionTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string Format(string customerId, string campaignId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - FormatCustomerCampaignCriterionTypeModificationMethodStartDateEndDate(customerId, campaignId, criterionId, typeId, modificationMethodId, startDateId, endDateId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string FormatCustomerCampaignCriterionTypeModificationMethodStartDateEndDate(string customerId, string campaignId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - s_customerCampaignCriterionTypeModificationMethodStartDateEndDate.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static CampaignCriterionSimulationName Parse(string campaignCriterionSimulationName) => - Parse(campaignCriterionSimulationName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignCriterionSimulationName Parse(string campaignCriterionSimulationName, bool allowUnparsed) => - TryParse(campaignCriterionSimulationName, allowUnparsed, out CampaignCriterionSimulationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignCriterionSimulationName, out CampaignCriterionSimulationName result) => - TryParse(campaignCriterionSimulationName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignCriterionSimulationName, bool allowUnparsed, out CampaignCriterionSimulationName result) - { - gax::GaxPreconditions.CheckNotNull(campaignCriterionSimulationName, nameof(campaignCriterionSimulationName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignCriterionTypeModificationMethodStartDateEndDate.TryParseName(campaignCriterionSimulationName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] - { - '~', - '~', - '~', - '~', - '~', - }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignCriterionTypeModificationMethodStartDateEndDate(resourceName[0], split1[0], split1[1], split1[2], split1[3], split1[4], split1[5]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignCriterionSimulationName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignCriterionSimulationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string criterionId = null, string customerId = null, string endDateId = null, string modificationMethodId = null, string startDateId = null, string typeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CriterionId = criterionId; - CustomerId = customerId; - EndDateId = endDateId; - ModificationMethodId = modificationMethodId; - StartDateId = startDateId; - TypeId = typeId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern - /// - /// customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - public CampaignCriterionSimulationName(string customerId, string campaignId, string criterionId, string typeId, string modificationMethodId, string startDateId, string endDateId) : this(ResourceNameType.CustomerCampaignCriterionTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The EndDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string EndDateId { get; } - - /// - /// The ModificationMethod ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ModificationMethodId { get; } - - /// - /// The StartDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string StartDateId { get; } - - /// - /// The Type ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignCriterionTypeModificationMethodStartDateEndDate: return s_customerCampaignCriterionTypeModificationMethodStartDateEndDate.Expand(CustomerId, $"{CampaignId}~{CriterionId}~{TypeId}~{ModificationMethodId}~{StartDateId}~{EndDateId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignCriterionSimulationName); - - /// - public bool Equals(CampaignCriterionSimulationName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignCriterionSimulationName a, CampaignCriterionSimulationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignCriterionSimulationName a, CampaignCriterionSimulationName b) => !(a == b); - } - - public partial class CampaignCriterionSimulation - { - /// - /// -typed view over the resource name - /// property. - /// - internal CampaignCriterionSimulationName ResourceNameAsCampaignCriterionSimulationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignCriterionSimulationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCriterionStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCriterionStatus.g.cs deleted file mode 100755 index 264bb9b37..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCriterionStatus.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_criterion_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_criterion_status.proto - public static partial class CampaignCriterionStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_criterion_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCriterionStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fY3Jp", - "dGVyaW9uX3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zInwKG0NhbXBhaWduQ3JpdGVyaW9uU3RhdHVzRW51bSJdChdDYW1w", - "YWlnbkNyaXRlcmlvblN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QARILCgdFTkFCTEVEEAISCgoGUEFVU0VEEAMSCwoHUkVNT1ZFRBAEQvYB", - "CiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhxDYW1wYWln", - "bkNyaXRlcmlvblN0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51", - "bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5H", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusEnum.Types.CampaignCriterionStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing CampaignCriterion statuses. - /// - public sealed partial class CampaignCriterionStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCriterionStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignCriterionStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionStatusEnum(CampaignCriterionStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCriterionStatusEnum Clone() { - return new CampaignCriterionStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCriterionStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCriterionStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCriterionStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignCriterionStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of a CampaignCriterion. - /// - public enum CampaignCriterionStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The campaign criterion is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The campaign criterion is paused. - /// - [pbr::OriginalName("PAUSED")] Paused = 3, - /// - /// The campaign criterion is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCustomizer.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCustomizer.g.cs deleted file mode 100755 index 225f209b9..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCustomizer.g.cs +++ /dev/null @@ -1,435 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_customizer.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_customizer.proto - public static partial class CampaignCustomizerReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_customizer.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCustomizerReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2N1c3RvbWl6ZXIucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3Vz", - "dG9taXplcl92YWx1ZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2N1c3RvbWl6ZXJfdmFsdWVfc3RhdHVzLnByb3RvGh9nb29nbGUv", - "YXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNl", - "LnByb3RvIqkEChJDYW1wYWlnbkN1c3RvbWl6ZXISSgoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUIz4EEF+kEtCitnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2Ft", - "cGFpZ25DdXN0b21pemVyEjsKCGNhbXBhaWduGAIgASgJQingQQX6QSMKIWdv", - "b2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbhJVChRjdXN0b21pemVy", - "X2F0dHJpYnV0ZRgDIAEoCUI34EEC4EEF+kEuCixnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQ3VzdG9taXplckF0dHJpYnV0ZRJkCgZzdGF0dXMYBCABKA4y", - "Ty5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQ3VzdG9taXplclZh", - "bHVlU3RhdHVzRW51bS5DdXN0b21pemVyVmFsdWVTdGF0dXNCA+BBAxJECgV2", - "YWx1ZRgFIAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "Q3VzdG9taXplclZhbHVlQgPgQQI6hgHqQYIBCitnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQ2FtcGFpZ25DdXN0b21pemVyElNjdXN0b21lcnMve2N1c3Rv", - "bWVyX2lkfS9jYW1wYWlnbkN1c3RvbWl6ZXJzL3tjYW1wYWlnbl9pZH1+e2N1", - "c3RvbWl6ZXJfYXR0cmlidXRlX2lkfUKJAgomY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXNCF0NhbXBhaWduQ3VzdG9taXplclByb3Rv", - "UAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CustomizerValueReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer), global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer.Parser, new[]{ "ResourceName", "Campaign", "CustomizerAttribute", "Status", "Value" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customizer value for the associated CustomizerAttribute at the Campaign - /// level. - /// - public sealed partial class CampaignCustomizer : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCustomizer()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizerReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizer() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizer(CampaignCustomizer other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - customizerAttribute_ = other.customizerAttribute_; - status_ = other.status_; - value_ = other.value_ != null ? other.value_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizer Clone() { - return new CampaignCustomizer(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign customizer. - /// Campaign customizer resource names have the form: - /// - /// `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private string campaign_ = ""; - /// - /// Immutable. The campaign to which the customizer attribute is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customizer_attribute" field. - public const int CustomizerAttributeFieldNumber = 3; - private string customizerAttribute_ = ""; - /// - /// Required. Immutable. The customizer attribute which is linked to the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomizerAttribute { - get { return customizerAttribute_; } - set { - customizerAttribute_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified; - /// - /// Output only. The status of the campaign customizer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.CustomizerValue value_; - /// - /// Required. The value to associate with the customizer attribute at this level. The - /// value must be of the type specified for the CustomizerAttribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomizerValue Value { - get { return value_; } - set { - value_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCustomizer); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCustomizer other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (CustomizerAttribute != other.CustomizerAttribute) return false; - if (Status != other.Status) return false; - if (!object.Equals(Value, other.Value)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (CustomizerAttribute.Length != 0) hash ^= CustomizerAttribute.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) hash ^= Status.GetHashCode(); - if (value_ != null) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(26); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (CustomizerAttribute.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (value_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCustomizer other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.CustomizerAttribute.Length != 0) { - CustomizerAttribute = other.CustomizerAttribute; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - Status = other.Status; - } - if (other.value_ != null) { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - Value.MergeFrom(other.Value); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 26: { - CustomizerAttribute = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 42: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 26: { - CustomizerAttribute = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 42: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCustomizerError.g.cs deleted file mode 100755 index 34081b1bc..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerError.g.cs +++ /dev/null @@ -1,228 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_customizer_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_customizer_error.proto - public static partial class CampaignCustomizerErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_customizer_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCustomizerErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2N1", - "c3RvbWl6ZXJfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMiVgobQ2FtcGFpZ25DdXN0b21pemVyRXJyb3JFbnVtIjcKF0Nh", - "bXBhaWduQ3VzdG9taXplckVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5L", - "Tk9XThABQvwBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "c0IcQ2FtcGFpZ25DdXN0b21pemVyRXJyb3JQcm90b1ABWkVnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oC", - "I0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorEnum.Types.CampaignCustomizerError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign customizer errors. - /// - public sealed partial class CampaignCustomizerErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCustomizerErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizerErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizerErrorEnum(CampaignCustomizerErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizerErrorEnum Clone() { - return new CampaignCustomizerErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCustomizerErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCustomizerErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCustomizerErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignCustomizerErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign customizer errors. - /// - public enum CampaignCustomizerError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCustomizerResourceNames.g.cs deleted file mode 100755 index 419ef547d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerResourceNames.g.cs +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignCustomizer resource. - public sealed partial class CampaignCustomizerName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}. - /// - CustomerCampaignCustomizerAttribute = 1, - } - - private static gax::PathTemplate s_customerCampaignCustomizerAttribute = new gax::PathTemplate("customers/{customer_id}/campaignCustomizers/{campaign_id_customizer_attribute_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignCustomizerName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignCustomizerName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - public static CampaignCustomizerName FromCustomerCampaignCustomizerAttribute(string customerId, string campaignId, string customizerAttributeId) => - new CampaignCustomizerName(ResourceNameType.CustomerCampaignCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}. - /// - public static string Format(string customerId, string campaignId, string customizerAttributeId) => - FormatCustomerCampaignCustomizerAttribute(customerId, campaignId, customizerAttributeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}. - /// - public static string FormatCustomerCampaignCustomizerAttribute(string customerId, string campaignId, string customizerAttributeId) => - s_customerCampaignCustomizerAttribute.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignCustomizerName Parse(string campaignCustomizerName) => Parse(campaignCustomizerName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignCustomizerName Parse(string campaignCustomizerName, bool allowUnparsed) => - TryParse(campaignCustomizerName, allowUnparsed, out CampaignCustomizerName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignCustomizerName, out CampaignCustomizerName result) => - TryParse(campaignCustomizerName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignCustomizerName, bool allowUnparsed, out CampaignCustomizerName result) - { - gax::GaxPreconditions.CheckNotNull(campaignCustomizerName, nameof(campaignCustomizerName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignCustomizerAttribute.TryParseName(campaignCustomizerName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignCustomizerAttribute(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignCustomizerName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignCustomizerName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null, string customizerAttributeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - CustomizerAttributeId = customizerAttributeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - public CampaignCustomizerName(string customerId, string campaignId, string customizerAttributeId) : this(ResourceNameType.CustomerCampaignCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The CustomizerAttribute ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string CustomizerAttributeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignCustomizerAttribute: return s_customerCampaignCustomizerAttribute.Expand(CustomerId, $"{CampaignId}~{CustomizerAttributeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignCustomizerName); - - /// - public bool Equals(CampaignCustomizerName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignCustomizerName a, CampaignCustomizerName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignCustomizerName a, CampaignCustomizerName b) => !(a == b); - } - - public partial class CampaignCustomizer - { - /// - /// -typed view over the resource name property. - /// - internal CampaignCustomizerName ResourceNameAsCampaignCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal CustomizerAttributeName CustomizerAttributeAsCustomizerAttributeName - { - get => string.IsNullOrEmpty(CustomizerAttribute) ? null : CustomizerAttributeName.Parse(CustomizerAttribute, allowUnparsed: true); - set => CustomizerAttribute = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCustomizerService.g.cs deleted file mode 100755 index 47d391328..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerService.g.cs +++ /dev/null @@ -1,1202 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_customizer_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_customizer_service.proto - public static partial class CampaignCustomizerServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_customizer_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignCustomizerServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "Y3VzdG9taXplcl9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aPGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvY2FtcGFpZ25fY3VzdG9taXplci5wcm90", - "bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9j", - "bGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVz", - "LnByb3RvIrECCiBNdXRhdGVDYW1wYWlnbkN1c3RvbWl6ZXJzUmVxdWVzdBIY", - "CgtjdXN0b21lcl9pZBgBIAEoCUID4EECElcKCm9wZXJhdGlvbnMYAiADKAsy", - "Pi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ2FtcGFpZ25D", - "dXN0b21pemVyT3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMg", - "ASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVu", - "dF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUi", - "uAEKG0NhbXBhaWduQ3VzdG9taXplck9wZXJhdGlvbhJICgZjcmVhdGUYASAB", - "KAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBh", - "aWduQ3VzdG9taXplckgAEkIKBnJlbW92ZRgCIAEoCUIw+kEtCitnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25DdXN0b21pemVySABCCwoJb3Bl", - "cmF0aW9uIqoBCiFNdXRhdGVDYW1wYWlnbkN1c3RvbWl6ZXJzUmVzcG9uc2US", - "UgoHcmVzdWx0cxgBIAMoCzJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkN1c3RvbWl6ZXJSZXN1bHQSMQoVcGFy", - "dGlhbF9mYWlsdXJlX2Vycm9yGAIgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMi", - "vgEKHk11dGF0ZUNhbXBhaWduQ3VzdG9taXplclJlc3VsdBJHCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQjD6QS0KK2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "YW1wYWlnbkN1c3RvbWl6ZXISUwoTY2FtcGFpZ25fY3VzdG9taXplchgCIAEo", - "CzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFp", - "Z25DdXN0b21pemVyMuoCChlDYW1wYWlnbkN1c3RvbWl6ZXJTZXJ2aWNlEoUC", - "ChlNdXRhdGVDYW1wYWlnbkN1c3RvbWl6ZXJzEkMuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQ3VzdG9taXplcnNS", - "ZXF1ZXN0GkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUNhbXBhaWduQ3VzdG9taXplcnNSZXNwb25zZSJdgtPkkwI+IjkvdjEy", - "L2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vY2FtcGFpZ25DdXN0b21pemVy", - "czptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlz", - "LmNvbS9hdXRoL2Fkd29yZHNCigIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXNCHkNhbXBhaWduQ3VzdG9taXplclNlcnZpY2VQcm90", - "b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizerReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult.Parser, new[]{ "ResourceName", "CampaignCustomizer" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CampaignCustomizerService.MutateCampaignCustomizers][google.ads.googleads.v12.services.CampaignCustomizerService.MutateCampaignCustomizers]. - /// - public sealed partial class MutateCampaignCustomizersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignCustomizersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizersRequest(MutateCampaignCustomizersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizersRequest Clone() { - return new MutateCampaignCustomizersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign customizers are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign customizers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignCustomizersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignCustomizersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignCustomizersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an customizer attribute. - /// - public sealed partial class CampaignCustomizerOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignCustomizerOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizerOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizerOperation(CampaignCustomizerOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignCustomizerOperation Clone() { - return new CampaignCustomizerOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign - /// customizer - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed campaign customizer is - /// expected, in this format: - /// `customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignCustomizerOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignCustomizerOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignCustomizerOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an campaign customizer mutate. - /// - public sealed partial class MutateCampaignCustomizersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignCustomizersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizersResponse(MutateCampaignCustomizersResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizersResponse Clone() { - return new MutateCampaignCustomizersResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignCustomizersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignCustomizersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignCustomizersResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign customizer mutate. - /// - public sealed partial class MutateCampaignCustomizerResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignCustomizerResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizerResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizerResult(MutateCampaignCustomizerResult other) : this() { - resourceName_ = other.resourceName_; - campaignCustomizer_ = other.campaignCustomizer_ != null ? other.campaignCustomizer_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignCustomizerResult Clone() { - return new MutateCampaignCustomizerResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_customizer" field. - public const int CampaignCustomizerFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer campaignCustomizer_; - /// - /// The mutated CampaignCustomizer with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer CampaignCustomizer { - get { return campaignCustomizer_; } - set { - campaignCustomizer_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignCustomizerResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignCustomizerResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignCustomizer, other.CampaignCustomizer)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignCustomizer_ != null) hash ^= CampaignCustomizer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignCustomizer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignCustomizer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignCustomizerResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignCustomizer_ != null) { - if (campaignCustomizer_ == null) { - CampaignCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - } - CampaignCustomizer.MergeFrom(other.CampaignCustomizer); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignCustomizer_ == null) { - CampaignCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - } - input.ReadMessage(CampaignCustomizer); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignCustomizer_ == null) { - CampaignCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - } - input.ReadMessage(CampaignCustomizer); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceClient.g.cs deleted file mode 100755 index b820cdeac..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignCustomizerServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignCustomizerServiceSettings GetDefault() => new CampaignCustomizerServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignCustomizerServiceSettings() - { - } - - private CampaignCustomizerServiceSettings(CampaignCustomizerServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignCustomizersSettings = existing.MutateCampaignCustomizersSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignCustomizerServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignCustomizerServiceClient.MutateCampaignCustomizers and - /// CampaignCustomizerServiceClient.MutateCampaignCustomizersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignCustomizersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignCustomizerServiceSettings Clone() => new CampaignCustomizerServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignCustomizerServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignCustomizerServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignCustomizerServiceClientBuilder() : base(CampaignCustomizerServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignCustomizerServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignCustomizerServiceClient Build() - { - CampaignCustomizerServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignCustomizerServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignCustomizerServiceClient.ChannelPool; - } - - /// CampaignCustomizerService client wrapper, for convenient use. - /// - /// Service to manage campaign customizer - /// - public abstract partial class CampaignCustomizerServiceClient - { - /// - /// The default endpoint for the CampaignCustomizerService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignCustomizerService scopes. - /// - /// The default CampaignCustomizerService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignCustomizerService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignCustomizerServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignCustomizerServiceClient Create() => new CampaignCustomizerServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignCustomizerServiceClient Create(grpccore::CallInvoker callInvoker, CampaignCustomizerServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignCustomizerService.CampaignCustomizerServiceClient grpcClient = new CampaignCustomizerService.CampaignCustomizerServiceClient(callInvoker); - return new CampaignCustomizerServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignCustomizerService client - public virtual CampaignCustomizerService.CampaignCustomizerServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignCustomizersResponse MutateCampaignCustomizers(MutateCampaignCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCustomizersAsync(MutateCampaignCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCustomizersAsync(MutateCampaignCustomizersRequest request, st::CancellationToken cancellationToken) => - MutateCampaignCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign customizers. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignCustomizersResponse MutateCampaignCustomizers(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignCustomizers(new MutateCampaignCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign customizers. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCustomizersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignCustomizersAsync(new MutateCampaignCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign customizers. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignCustomizersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignCustomizersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignCustomizerService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign customizer - /// - public sealed partial class CampaignCustomizerServiceClientImpl : CampaignCustomizerServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignCustomizers; - - /// - /// Constructs a client wrapper for the CampaignCustomizerService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CampaignCustomizerServiceClientImpl(CampaignCustomizerService.CampaignCustomizerServiceClient grpcClient, CampaignCustomizerServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignCustomizerServiceSettings effectiveSettings = settings ?? CampaignCustomizerServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignCustomizers = clientHelper.BuildApiCall("MutateCampaignCustomizers", grpcClient.MutateCampaignCustomizersAsync, grpcClient.MutateCampaignCustomizers, effectiveSettings.MutateCampaignCustomizersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignCustomizers); - Modify_MutateCampaignCustomizersApiCall(ref _callMutateCampaignCustomizers); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignCustomizersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignCustomizerService.CampaignCustomizerServiceClient grpcClient, CampaignCustomizerServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignCustomizerService client - public override CampaignCustomizerService.CampaignCustomizerServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignCustomizersRequest(ref MutateCampaignCustomizersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignCustomizersResponse MutateCampaignCustomizers(MutateCampaignCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignCustomizersRequest(ref request, ref callSettings); - return _callMutateCampaignCustomizers.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignCustomizersAsync(MutateCampaignCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignCustomizersRequest(ref request, ref callSettings); - return _callMutateCampaignCustomizers.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceGrpc.g.cs deleted file mode 100755 index 551cfab26..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_customizer_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign customizer - /// - public static partial class CampaignCustomizerService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignCustomizerService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignCustomizersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignCustomizersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignCustomizers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignCustomizers", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignCustomizersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignCustomizersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignCustomizerService - [grpc::BindServiceMethod(typeof(CampaignCustomizerService), "BindService")] - public abstract partial class CampaignCustomizerServiceBase - { - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignCustomizerService - public partial class CampaignCustomizerServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignCustomizerService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignCustomizerServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignCustomizerService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignCustomizerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignCustomizerServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignCustomizerServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersResponse MutateCampaignCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignCustomizers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersResponse MutateCampaignCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignCustomizers, null, options, request); - } - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignCustomizersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes campaign customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignCustomizers, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignCustomizerServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignCustomizerServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignCustomizerServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignCustomizers, serviceImpl.MutateCampaignCustomizers).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignCustomizerServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignCustomizers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignCustomizers)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceResourceNames.g.cs deleted file mode 100755 index a398b523e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignCustomizerServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignCustomizerOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignCustomizerName RemoveAsCampaignCustomizerName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignCustomizerName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignCustomizerResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignCustomizerName ResourceNameAsCampaignCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraft.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraft.g.cs deleted file mode 100755 index 427bc409f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraft.g.cs +++ /dev/null @@ -1,637 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_draft.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_draft.proto - public static partial class CampaignDraftReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_draft.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignDraftReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2RyYWZ0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25f", - "ZHJhZnRfc3RhdHVzLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9y", - "LnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIq4FCg1DYW1wYWln", - "bkRyYWZ0EkUKDXJlc291cmNlX25hbWUYASABKAlCLuBBBfpBKAomZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduRHJhZnQSGgoIZHJhZnRfaWQY", - "CSABKANCA+BBA0gAiAEBEkUKDWJhc2VfY2FtcGFpZ24YCiABKAlCKeBBBfpB", - "IwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduSAGIAQESEQoE", - "bmFtZRgLIAEoCUgCiAEBEkYKDmRyYWZ0X2NhbXBhaWduGAwgASgJQingQQP6", - "QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkgDiAEBEmAK", - "BnN0YXR1cxgGIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5DYW1wYWlnbkRyYWZ0U3RhdHVzRW51bS5DYW1wYWlnbkRyYWZ0U3RhdHVz", - "QgPgQQMSKAoWaGFzX2V4cGVyaW1lbnRfcnVubmluZxgNIAEoCEID4EEDSASI", - "AQESKAoWbG9uZ19ydW5uaW5nX29wZXJhdGlvbhgOIAEoCUID4EEDSAWIAQE6", - "cepBbgomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduRHJhZnQS", - "RGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2NhbXBhaWduRHJhZnRzL3tiYXNl", - "X2NhbXBhaWduX2lkfX57ZHJhZnRfaWR9QgsKCV9kcmFmdF9pZEIQCg5fYmFz", - "ZV9jYW1wYWlnbkIHCgVfbmFtZUIRCg9fZHJhZnRfY2FtcGFpZ25CGQoXX2hh", - "c19leHBlcmltZW50X3J1bm5pbmdCGQoXX2xvbmdfcnVubmluZ19vcGVyYXRp", - "b25ChAIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "QhJDYW1wYWlnbkRyYWZ0UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2Vu", - "cHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7", - "cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJl", - "c291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPq", - "AiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJv", - "dG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft), global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft.Parser, new[]{ "ResourceName", "DraftId", "BaseCampaign", "Name", "DraftCampaign", "Status", "HasExperimentRunning", "LongRunningOperation" }, new[]{ "DraftId", "BaseCampaign", "Name", "DraftCampaign", "HasExperimentRunning", "LongRunningOperation" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign draft. - /// - public sealed partial class CampaignDraft : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignDraft()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignDraftReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraft() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraft(CampaignDraft other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - draftId_ = other.draftId_; - baseCampaign_ = other.baseCampaign_; - name_ = other.name_; - draftCampaign_ = other.draftCampaign_; - status_ = other.status_; - hasExperimentRunning_ = other.hasExperimentRunning_; - longRunningOperation_ = other.longRunningOperation_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraft Clone() { - return new CampaignDraft(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign draft. - /// Campaign draft resource names have the form: - /// - /// `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "draft_id" field. - public const int DraftIdFieldNumber = 9; - private long draftId_; - /// - /// Output only. The ID of the draft. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long DraftId { - get { if ((_hasBits0 & 1) != 0) { return draftId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - draftId_ = value; - } - } - /// Gets whether the "draft_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDraftId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "draft_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDraftId() { - _hasBits0 &= ~1; - } - - /// Field number for the "base_campaign" field. - public const int BaseCampaignFieldNumber = 10; - private string baseCampaign_; - /// - /// Immutable. The base campaign to which the draft belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BaseCampaign { - get { return baseCampaign_ ?? ""; } - set { - baseCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "base_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBaseCampaign { - get { return baseCampaign_ != null; } - } - /// Clears the value of the "base_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBaseCampaign() { - baseCampaign_ = null; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 11; - private string name_; - /// - /// The name of the campaign draft. - /// - /// This field is required and should not be empty when creating new - /// campaign drafts. - /// - /// It must not contain any null (code point 0x0), NL line feed - /// (code point 0xA) or carriage return (code point 0xD) characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "draft_campaign" field. - public const int DraftCampaignFieldNumber = 12; - private string draftCampaign_; - /// - /// Output only. Resource name of the Campaign that results from overlaying the draft - /// changes onto the base campaign. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DraftCampaign { - get { return draftCampaign_ ?? ""; } - set { - draftCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "draft_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDraftCampaign { - get { return draftCampaign_ != null; } - } - /// Clears the value of the "draft_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDraftCampaign() { - draftCampaign_ = null; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified; - /// - /// Output only. The status of the campaign draft. This field is read-only. - /// - /// When a new campaign draft is added, the status defaults to PROPOSED. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "has_experiment_running" field. - public const int HasExperimentRunningFieldNumber = 13; - private bool hasExperimentRunning_; - /// - /// Output only. Whether there is an experiment based on this draft currently serving. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExperimentRunning { - get { if ((_hasBits0 & 2) != 0) { return hasExperimentRunning_; } else { return false; } } - set { - _hasBits0 |= 2; - hasExperimentRunning_ = value; - } - } - /// Gets whether the "has_experiment_running" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasExperimentRunning { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "has_experiment_running" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasExperimentRunning() { - _hasBits0 &= ~2; - } - - /// Field number for the "long_running_operation" field. - public const int LongRunningOperationFieldNumber = 14; - private string longRunningOperation_; - /// - /// Output only. The resource name of the long-running operation that can be used to poll - /// for completion of draft promotion. This is only set if the draft promotion - /// is in progress or finished. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LongRunningOperation { - get { return longRunningOperation_ ?? ""; } - set { - longRunningOperation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "long_running_operation" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLongRunningOperation { - get { return longRunningOperation_ != null; } - } - /// Clears the value of the "long_running_operation" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLongRunningOperation() { - longRunningOperation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignDraft); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignDraft other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (DraftId != other.DraftId) return false; - if (BaseCampaign != other.BaseCampaign) return false; - if (Name != other.Name) return false; - if (DraftCampaign != other.DraftCampaign) return false; - if (Status != other.Status) return false; - if (HasExperimentRunning != other.HasExperimentRunning) return false; - if (LongRunningOperation != other.LongRunningOperation) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasDraftId) hash ^= DraftId.GetHashCode(); - if (HasBaseCampaign) hash ^= BaseCampaign.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasDraftCampaign) hash ^= DraftCampaign.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasHasExperimentRunning) hash ^= HasExperimentRunning.GetHashCode(); - if (HasLongRunningOperation) hash ^= LongRunningOperation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasDraftId) { - output.WriteRawTag(72); - output.WriteInt64(DraftId); - } - if (HasBaseCampaign) { - output.WriteRawTag(82); - output.WriteString(BaseCampaign); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - if (HasDraftCampaign) { - output.WriteRawTag(98); - output.WriteString(DraftCampaign); - } - if (HasHasExperimentRunning) { - output.WriteRawTag(104); - output.WriteBool(HasExperimentRunning); - } - if (HasLongRunningOperation) { - output.WriteRawTag(114); - output.WriteString(LongRunningOperation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasDraftId) { - output.WriteRawTag(72); - output.WriteInt64(DraftId); - } - if (HasBaseCampaign) { - output.WriteRawTag(82); - output.WriteString(BaseCampaign); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - if (HasDraftCampaign) { - output.WriteRawTag(98); - output.WriteString(DraftCampaign); - } - if (HasHasExperimentRunning) { - output.WriteRawTag(104); - output.WriteBool(HasExperimentRunning); - } - if (HasLongRunningOperation) { - output.WriteRawTag(114); - output.WriteString(LongRunningOperation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasDraftId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(DraftId); - } - if (HasBaseCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BaseCampaign); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasDraftCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DraftCampaign); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasHasExperimentRunning) { - size += 1 + 1; - } - if (HasLongRunningOperation) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LongRunningOperation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignDraft other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasDraftId) { - DraftId = other.DraftId; - } - if (other.HasBaseCampaign) { - BaseCampaign = other.BaseCampaign; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasDraftCampaign) { - DraftCampaign = other.DraftCampaign; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus.Unspecified) { - Status = other.Status; - } - if (other.HasHasExperimentRunning) { - HasExperimentRunning = other.HasExperimentRunning; - } - if (other.HasLongRunningOperation) { - LongRunningOperation = other.LongRunningOperation; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus) input.ReadEnum(); - break; - } - case 72: { - DraftId = input.ReadInt64(); - break; - } - case 82: { - BaseCampaign = input.ReadString(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 98: { - DraftCampaign = input.ReadString(); - break; - } - case 104: { - HasExperimentRunning = input.ReadBool(); - break; - } - case 114: { - LongRunningOperation = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus) input.ReadEnum(); - break; - } - case 72: { - DraftId = input.ReadInt64(); - break; - } - case 82: { - BaseCampaign = input.ReadString(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 98: { - DraftCampaign = input.ReadString(); - break; - } - case 104: { - HasExperimentRunning = input.ReadBool(); - break; - } - case 114: { - LongRunningOperation = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraftError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraftError.g.cs deleted file mode 100755 index 2f1c8bf4f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraftError.g.cs +++ /dev/null @@ -1,281 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_draft_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_draft_error.proto - public static partial class CampaignDraftErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_draft_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignDraftErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2Ry", - "YWZ0X2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJy", - "b3JzIsgDChZDYW1wYWlnbkRyYWZ0RXJyb3JFbnVtIq0DChJDYW1wYWlnbkRy", - "YWZ0RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESGAoURFVQ", - "TElDQVRFX0RSQUZUX05BTUUQAhIqCiZJTlZBTElEX1NUQVRVU19UUkFOU0lU", - "SU9OX0ZST01fUkVNT1ZFRBADEisKJ0lOVkFMSURfU1RBVFVTX1RSQU5TSVRJ", - "T05fRlJPTV9QUk9NT1RFRBAEEjEKLUlOVkFMSURfU1RBVFVTX1RSQU5TSVRJ", - "T05fRlJPTV9QUk9NT1RFX0ZBSUxFRBAFEiAKHENVU1RPTUVSX0NBTk5PVF9D", - "UkVBVEVfRFJBRlQQBhIgChxDQU1QQUlHTl9DQU5OT1RfQ1JFQVRFX0RSQUZU", - "EAcSGAoUSU5WQUxJRF9EUkFGVF9DSEFOR0UQCBIdChlJTlZBTElEX1NUQVRV", - "U19UUkFOU0lUSU9OEAkSLQopTUFYX05VTUJFUl9PRl9EUkFGVFNfUEVSX0NB", - "TVBBSUdOX1JFQUNIRUQQChInCiNMSVNUX0VSUk9SU19GT1JfUFJPTU9URURf", - "RFJBRlRfT05MWRALQvcBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9yc0IXQ2FtcGFpZ25EcmFmdEVycm9yUHJvdG9QAVpFZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPq", - "AiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorEnum.Types.CampaignDraftError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign draft errors. - /// - public sealed partial class CampaignDraftErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignDraftErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftErrorEnum(CampaignDraftErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftErrorEnum Clone() { - return new CampaignDraftErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignDraftErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignDraftErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignDraftErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignDraftErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign draft errors. - /// - public enum CampaignDraftError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A draft with this name already exists for this campaign. - /// - [pbr::OriginalName("DUPLICATE_DRAFT_NAME")] DuplicateDraftName = 2, - /// - /// The draft is removed and cannot be transitioned to another status. - /// - [pbr::OriginalName("INVALID_STATUS_TRANSITION_FROM_REMOVED")] InvalidStatusTransitionFromRemoved = 3, - /// - /// The draft has been promoted and cannot be transitioned to the specified - /// status. - /// - [pbr::OriginalName("INVALID_STATUS_TRANSITION_FROM_PROMOTED")] InvalidStatusTransitionFromPromoted = 4, - /// - /// The draft has failed to be promoted and cannot be transitioned to the - /// specified status. - /// - [pbr::OriginalName("INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED")] InvalidStatusTransitionFromPromoteFailed = 5, - /// - /// This customer is not allowed to create drafts. - /// - [pbr::OriginalName("CUSTOMER_CANNOT_CREATE_DRAFT")] CustomerCannotCreateDraft = 6, - /// - /// This campaign is not allowed to create drafts. - /// - [pbr::OriginalName("CAMPAIGN_CANNOT_CREATE_DRAFT")] CampaignCannotCreateDraft = 7, - /// - /// This modification cannot be made on a draft. - /// - [pbr::OriginalName("INVALID_DRAFT_CHANGE")] InvalidDraftChange = 8, - /// - /// The draft cannot be transitioned to the specified status from its - /// current status. - /// - [pbr::OriginalName("INVALID_STATUS_TRANSITION")] InvalidStatusTransition = 9, - /// - /// The campaign has reached the maximum number of drafts that can be created - /// for a campaign throughout its lifetime. No additional drafts can be - /// created for this campaign. Removed drafts also count towards this limit. - /// - [pbr::OriginalName("MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED")] MaxNumberOfDraftsPerCampaignReached = 10, - /// - /// ListAsyncErrors was called without first promoting the draft. - /// - [pbr::OriginalName("LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY")] ListErrorsForPromotedDraftOnly = 11, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraftResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraftResourceNames.g.cs deleted file mode 100755 index bd4745f18..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraftResourceNames.g.cs +++ /dev/null @@ -1,329 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignDraft resource. - public sealed partial class CampaignDraftName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id} - /// . - /// - CustomerBaseCampaignDraft = 1, - } - - private static gax::PathTemplate s_customerBaseCampaignDraft = new gax::PathTemplate("customers/{customer_id}/campaignDrafts/{base_campaign_id_draft_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignDraftName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignDraftName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BaseCampaign ID. Must not be null or empty. - /// The Draft ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignDraftName FromCustomerBaseCampaignDraft(string customerId, string baseCampaignId, string draftId) => - new CampaignDraftName(ResourceNameType.CustomerBaseCampaignDraft, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), baseCampaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(baseCampaignId, nameof(baseCampaignId)), draftId: gax::GaxPreconditions.CheckNotNullOrEmpty(draftId, nameof(draftId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BaseCampaign ID. Must not be null or empty. - /// The Draft ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}. - /// - public static string Format(string customerId, string baseCampaignId, string draftId) => - FormatCustomerBaseCampaignDraft(customerId, baseCampaignId, draftId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The BaseCampaign ID. Must not be null or empty. - /// The Draft ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}. - /// - public static string FormatCustomerBaseCampaignDraft(string customerId, string baseCampaignId, string draftId) => - s_customerBaseCampaignDraft.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(baseCampaignId, nameof(baseCampaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(draftId, nameof(draftId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignDraftName Parse(string campaignDraftName) => Parse(campaignDraftName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignDraftName Parse(string campaignDraftName, bool allowUnparsed) => - TryParse(campaignDraftName, allowUnparsed, out CampaignDraftName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignDraftName, out CampaignDraftName result) => - TryParse(campaignDraftName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignDraftName, bool allowUnparsed, out CampaignDraftName result) - { - gax::GaxPreconditions.CheckNotNull(campaignDraftName, nameof(campaignDraftName)); - gax::TemplatedResourceName resourceName; - if (s_customerBaseCampaignDraft.TryParseName(campaignDraftName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerBaseCampaignDraft(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignDraftName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignDraftName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string baseCampaignId = null, string customerId = null, string draftId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - BaseCampaignId = baseCampaignId; - CustomerId = customerId; - DraftId = draftId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id} - /// - /// The Customer ID. Must not be null or empty. - /// The BaseCampaign ID. Must not be null or empty. - /// The Draft ID. Must not be null or empty. - public CampaignDraftName(string customerId, string baseCampaignId, string draftId) : this(ResourceNameType.CustomerBaseCampaignDraft, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), baseCampaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(baseCampaignId, nameof(baseCampaignId)), draftId: gax::GaxPreconditions.CheckNotNullOrEmpty(draftId, nameof(draftId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The BaseCampaign ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string BaseCampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Draft ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string DraftId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerBaseCampaignDraft: return s_customerBaseCampaignDraft.Expand(CustomerId, $"{BaseCampaignId}~{DraftId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignDraftName); - - /// - public bool Equals(CampaignDraftName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignDraftName a, CampaignDraftName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignDraftName a, CampaignDraftName b) => !(a == b); - } - - public partial class CampaignDraft - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignDraftName ResourceNameAsCampaignDraftName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignDraftName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName BaseCampaignAsCampaignName - { - get => string.IsNullOrEmpty(BaseCampaign) ? null : CampaignName.Parse(BaseCampaign, allowUnparsed: true); - set => BaseCampaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignDraftName CampaignDraftName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CampaignDraftName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName DraftCampaignAsCampaignName - { - get => string.IsNullOrEmpty(DraftCampaign) ? null : CampaignName.Parse(DraftCampaign, allowUnparsed: true); - set => DraftCampaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraftService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraftService.g.cs deleted file mode 100755 index ffd6ef9a4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraftService.g.cs +++ /dev/null @@ -1,2076 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_draft_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_draft_service.proto - public static partial class CampaignDraftServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_draft_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignDraftServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "ZHJhZnRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVz", - "cG9uc2VfY29udGVudF90eXBlLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2NhbXBhaWduX2RyYWZ0LnByb3RvGhxnb29nbGUv", - "YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90bxojZ29vZ2xlL2xvbmdydW5uaW5nL29wZXJhdGlv", - "bnMucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGhdn", - "b29nbGUvcnBjL3N0YXR1cy5wcm90byKnAgobTXV0YXRlQ2FtcGFpZ25EcmFm", - "dHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISUgoKb3BlcmF0", - "aW9ucxgCIAMoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5DYW1wYWlnbkRyYWZ0T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWls", - "dXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2Vf", - "Y29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVu", - "dFR5cGUifAobUHJvbW90ZUNhbXBhaWduRHJhZnRSZXF1ZXN0EkYKDmNhbXBh", - "aWduX2RyYWZ0GAEgASgJQi7gQQL6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DYW1wYWlnbkRyYWZ0EhUKDXZhbGlkYXRlX29ubHkYAiABKAginwIK", - "FkNhbXBhaWduRHJhZnRPcGVyYXRpb24SLwoLdXBkYXRlX21hc2sYBCABKAsy", - "Gi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkMKBmNyZWF0ZRgBIAEoCzIx", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25E", - "cmFmdEgAEkMKBnVwZGF0ZRgCIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25EcmFmdEgAEj0KBnJlbW92ZRgDIAEo", - "CUIr+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25EcmFm", - "dEgAQgsKCW9wZXJhdGlvbiKgAQocTXV0YXRlQ2FtcGFpZ25EcmFmdHNSZXNw", - "b25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAyABKAsyEi5nb29nbGUu", - "cnBjLlN0YXR1cxJNCgdyZXN1bHRzGAIgAygLMjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduRHJhZnRSZXN1bHQi", - "qgEKGU11dGF0ZUNhbXBhaWduRHJhZnRSZXN1bHQSQgoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUIr+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFp", - "Z25EcmFmdBJJCg5jYW1wYWlnbl9kcmFmdBgCIAEoCzIxLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25EcmFmdCKTAQojTGlz", - "dENhbXBhaWduRHJhZnRBc3luY0Vycm9yc1JlcXVlc3QSRQoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIu4EEC+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q2FtcGFpZ25EcmFmdBISCgpwYWdlX3Rva2VuGAIgASgJEhEKCXBhZ2Vfc2l6", - "ZRgDIAEoBSJjCiRMaXN0Q2FtcGFpZ25EcmFmdEFzeW5jRXJyb3JzUmVzcG9u", - "c2USIgoGZXJyb3JzGAEgAygLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSFwoPbmV4", - "dF9wYWdlX3Rva2VuGAIgASgJMuAGChRDYW1wYWlnbkRyYWZ0U2VydmljZRLx", - "AQoUTXV0YXRlQ2FtcGFpZ25EcmFmdHMSPi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25EcmFmdHNSZXF1ZXN0Gj8u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBh", - "aWduRHJhZnRzUmVzcG9uc2UiWILT5JMCOSI0L3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2NhbXBhaWduRHJhZnRzOm11dGF0ZToBKtpBFmN1c3Rv", - "bWVyX2lkLG9wZXJhdGlvbnMS/wEKFFByb21vdGVDYW1wYWlnbkRyYWZ0Ej4u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLlByb21vdGVDYW1w", - "YWlnbkRyYWZ0UmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVyYXRp", - "b24ihwGC0+STAj8iOi92MTIve2NhbXBhaWduX2RyYWZ0PWN1c3RvbWVycy8q", - "L2NhbXBhaWduRHJhZnRzLyp9OnByb21vdGU6ASraQQ5jYW1wYWlnbl9kcmFm", - "dMpBLgoVZ29vZ2xlLnByb3RvYnVmLkVtcHR5EhVnb29nbGUucHJvdG9idWYu", - "RW1wdHkSigIKHExpc3RDYW1wYWlnbkRyYWZ0QXN5bmNFcnJvcnMSRi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTGlzdENhbXBhaWduRHJh", - "ZnRBc3luY0Vycm9yc1JlcXVlc3QaRy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuTGlzdENhbXBhaWduRHJhZnRBc3luY0Vycm9yc1Jlc3Bv", - "bnNlIlmC0+STAkMSQS92MTIve3Jlc291cmNlX25hbWU9Y3VzdG9tZXJzLyov", - "Y2FtcGFpZ25EcmFmdHMvKn06bGlzdEFzeW5jRXJyb3Jz2kENcmVzb3VyY2Vf", - "bmFtZRpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93", - "d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQoUCCiVjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQhlDYW1wYWlnbkRyYWZ0U2Vy", - "dmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNH", - "QUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignDraftReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest), global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest.Parser, new[]{ "CampaignDraft", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult.Parser, new[]{ "ResourceName", "CampaignDraft" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest), global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest.Parser, new[]{ "ResourceName", "PageToken", "PageSize" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsResponse), global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsResponse.Parser, new[]{ "Errors", "NextPageToken" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignDraftService.MutateCampaignDrafts][google.ads.googleads.v12.services.CampaignDraftService.MutateCampaignDrafts]. - /// - public sealed partial class MutateCampaignDraftsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignDraftsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftsRequest(MutateCampaignDraftsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftsRequest Clone() { - return new MutateCampaignDraftsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign drafts are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign drafts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignDraftsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignDraftsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignDraftsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [CampaignDraftService.PromoteCampaignDraft][google.ads.googleads.v12.services.CampaignDraftService.PromoteCampaignDraft]. - /// - public sealed partial class PromoteCampaignDraftRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PromoteCampaignDraftRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteCampaignDraftRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteCampaignDraftRequest(PromoteCampaignDraftRequest other) : this() { - campaignDraft_ = other.campaignDraft_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteCampaignDraftRequest Clone() { - return new PromoteCampaignDraftRequest(this); - } - - /// Field number for the "campaign_draft" field. - public const int CampaignDraftFieldNumber = 1; - private string campaignDraft_ = ""; - /// - /// Required. The resource name of the campaign draft to promote. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignDraft { - get { return campaignDraft_; } - set { - campaignDraft_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 2; - private bool validateOnly_; - /// - /// If true, the request is validated but no Long Running Operation is created. - /// Only errors are returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PromoteCampaignDraftRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PromoteCampaignDraftRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CampaignDraft != other.CampaignDraft) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CampaignDraft.Length != 0) hash ^= CampaignDraft.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CampaignDraft.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CampaignDraft); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CampaignDraft.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CampaignDraft); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CampaignDraft.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignDraft); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PromoteCampaignDraftRequest other) { - if (other == null) { - return; - } - if (other.CampaignDraft.Length != 0) { - CampaignDraft = other.CampaignDraft; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CampaignDraft = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CampaignDraft = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign draft. - /// - public sealed partial class CampaignDraftOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignDraftOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftOperation(CampaignDraftOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftOperation Clone() { - return new CampaignDraftOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign - /// draft. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The campaign draft is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: The campaign draft is expected to have a valid - /// resource name, in this format: - /// - /// `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignDraftOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignDraftOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignDraftOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for campaign draft mutate. - /// - public sealed partial class MutateCampaignDraftsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignDraftsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftsResponse(MutateCampaignDraftsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftsResponse Clone() { - return new MutateCampaignDraftsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignDraftsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignDraftsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignDraftsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign draft mutate. - /// - public sealed partial class MutateCampaignDraftResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignDraftResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftResult(MutateCampaignDraftResult other) : this() { - resourceName_ = other.resourceName_; - campaignDraft_ = other.campaignDraft_ != null ? other.campaignDraft_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignDraftResult Clone() { - return new MutateCampaignDraftResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_draft" field. - public const int CampaignDraftFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft campaignDraft_; - /// - /// The mutated campaign draft with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft CampaignDraft { - get { return campaignDraft_; } - set { - campaignDraft_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignDraftResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignDraftResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignDraft, other.CampaignDraft)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignDraft_ != null) hash ^= CampaignDraft.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignDraft_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignDraft); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignDraft_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignDraft); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignDraft_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignDraft); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignDraftResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignDraft_ != null) { - if (campaignDraft_ == null) { - CampaignDraft = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - CampaignDraft.MergeFrom(other.CampaignDraft); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignDraft_ == null) { - CampaignDraft = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - input.ReadMessage(CampaignDraft); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignDraft_ == null) { - CampaignDraft = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - input.ReadMessage(CampaignDraft); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. - /// - public sealed partial class ListCampaignDraftAsyncErrorsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCampaignDraftAsyncErrorsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListCampaignDraftAsyncErrorsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListCampaignDraftAsyncErrorsRequest(ListCampaignDraftAsyncErrorsRequest other) : this() { - resourceName_ = other.resourceName_; - pageToken_ = other.pageToken_; - pageSize_ = other.pageSize_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListCampaignDraftAsyncErrorsRequest Clone() { - return new ListCampaignDraftAsyncErrorsRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The name of the campaign draft from which to retrieve the async errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 2; - private string pageToken_ = ""; - /// - /// Token of the page to retrieve. If not specified, the first - /// page of results will be returned. Use the value obtained from - /// `next_page_token` in the previous response in order to request - /// the next page of results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 3; - private int pageSize_; - /// - /// Number of elements to retrieve in a single page. - /// When a page request is too large, the server may decide to - /// further limit the number of returned resources. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListCampaignDraftAsyncErrorsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListCampaignDraftAsyncErrorsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (PageToken != other.PageToken) return false; - if (PageSize != other.PageSize) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListCampaignDraftAsyncErrorsRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. - /// - public sealed partial class ListCampaignDraftAsyncErrorsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListCampaignDraftAsyncErrorsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListCampaignDraftAsyncErrorsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListCampaignDraftAsyncErrorsResponse(ListCampaignDraftAsyncErrorsResponse other) : this() { - errors_ = other.errors_.Clone(); - nextPageToken_ = other.nextPageToken_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListCampaignDraftAsyncErrorsResponse Clone() { - return new ListCampaignDraftAsyncErrorsResponse(this); - } - - /// Field number for the "errors" field. - public const int ErrorsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_errors_codec - = pb::FieldCodec.ForMessage(10, global::Google.Rpc.Status.Parser); - private readonly pbc::RepeatedField errors_ = new pbc::RepeatedField(); - /// - /// Details of the errors when performing the asynchronous operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Errors { - get { return errors_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Pagination token used to retrieve the next page of results. - /// Pass the content of this string as the `page_token` attribute of - /// the next request. `next_page_token` is not returned for the last - /// page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListCampaignDraftAsyncErrorsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListCampaignDraftAsyncErrorsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!errors_.Equals(other.errors_)) return false; - if (NextPageToken != other.NextPageToken) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= errors_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - errors_.WriteTo(output, _repeated_errors_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - errors_.WriteTo(ref output, _repeated_errors_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += errors_.CalculateSize(_repeated_errors_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListCampaignDraftAsyncErrorsResponse other) { - if (other == null) { - return; - } - errors_.Add(other.errors_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - errors_.AddEntriesFrom(input, _repeated_errors_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - errors_.AddEntriesFrom(ref input, _repeated_errors_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceClient.g.cs deleted file mode 100755 index d3889c8bf..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceClient.g.cs +++ /dev/null @@ -1,1145 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using lro = Google.LongRunning; -using proto = Google.Protobuf; -using wkt = Google.Protobuf.WellKnownTypes; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignDraftServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignDraftServiceSettings GetDefault() => new CampaignDraftServiceSettings(); - - /// Constructs a new object with default settings. - public CampaignDraftServiceSettings() - { - } - - private CampaignDraftServiceSettings(CampaignDraftServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignDraftsSettings = existing.MutateCampaignDraftsSettings; - PromoteCampaignDraftSettings = existing.PromoteCampaignDraftSettings; - PromoteCampaignDraftOperationsSettings = existing.PromoteCampaignDraftOperationsSettings.Clone(); - ListCampaignDraftAsyncErrorsSettings = existing.ListCampaignDraftAsyncErrorsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignDraftServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignDraftServiceClient.MutateCampaignDrafts and - /// CampaignDraftServiceClient.MutateCampaignDraftsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignDraftsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// CampaignDraftServiceClient.PromoteCampaignDraft and - /// CampaignDraftServiceClient.PromoteCampaignDraftAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings PromoteCampaignDraftSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// Long Running Operation settings for calls to CampaignDraftServiceClient.PromoteCampaignDraft and - /// CampaignDraftServiceClient.PromoteCampaignDraftAsync. - /// - /// - /// Uses default of: - /// - /// Initial delay: 20 seconds. - /// Delay multiplier: 1.5 - /// Maximum delay: 45 seconds. - /// Total timeout: 24 hours. - /// - /// - public lro::OperationsSettings PromoteCampaignDraftOperationsSettings { get; set; } = new lro::OperationsSettings - { - DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), - }; - - /// - /// for synchronous and asynchronous calls to - /// CampaignDraftServiceClient.ListCampaignDraftAsyncErrors and - /// CampaignDraftServiceClient.ListCampaignDraftAsyncErrorsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ListCampaignDraftAsyncErrorsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignDraftServiceSettings Clone() => new CampaignDraftServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignDraftServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignDraftServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignDraftServiceClientBuilder() : base(CampaignDraftServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignDraftServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignDraftServiceClient Build() - { - CampaignDraftServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignDraftServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignDraftServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignDraftServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignDraftServiceClient.ChannelPool; - } - - /// CampaignDraftService client wrapper, for convenient use. - /// - /// Service to manage campaign drafts. - /// - public abstract partial class CampaignDraftServiceClient - { - /// - /// The default endpoint for the CampaignDraftService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignDraftService scopes. - /// - /// The default CampaignDraftService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignDraftService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignDraftServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignDraftServiceClient Create() => new CampaignDraftServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignDraftServiceClient Create(grpccore::CallInvoker callInvoker, CampaignDraftServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignDraftService.CampaignDraftServiceClient grpcClient = new CampaignDraftService.CampaignDraftServiceClient(callInvoker); - return new CampaignDraftServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignDraftService client - public virtual CampaignDraftService.CampaignDraftServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignDraftsResponse MutateCampaignDrafts(MutateCampaignDraftsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignDraftsAsync(MutateCampaignDraftsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignDraftsAsync(MutateCampaignDraftsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignDraftsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose campaign drafts are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign drafts. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignDraftsResponse MutateCampaignDrafts(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignDrafts(new MutateCampaignDraftsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose campaign drafts are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign drafts. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignDraftsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignDraftsAsync(new MutateCampaignDraftsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose campaign drafts are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign drafts. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignDraftsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignDraftsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation PromoteCampaignDraft(PromoteCampaignDraftRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteCampaignDraftAsync(PromoteCampaignDraftRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteCampaignDraftAsync(PromoteCampaignDraftRequest request, st::CancellationToken cancellationToken) => - PromoteCampaignDraftAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// The long-running operations client for PromoteCampaignDraft. - public virtual lro::OperationsClient PromoteCampaignDraftOperationsClient => throw new sys::NotImplementedException(); - - /// - /// Poll an operation once, using an operationName from a previous invocation of PromoteCampaignDraft - /// . - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// The result of polling the operation. - public virtual lro::Operation PollOncePromoteCampaignDraft(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PromoteCampaignDraftOperationsClient, callSettings); - - /// - /// Asynchronously poll an operation once, using an operationName from a previous invocation of - /// PromoteCampaignDraft. - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// A task representing the result of polling the operation. - public virtual stt::Task> PollOncePromoteCampaignDraftAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PromoteCampaignDraftOperationsClient, callSettings); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign draft to promote. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation PromoteCampaignDraft(string campaignDraft, gaxgrpc::CallSettings callSettings = null) => - PromoteCampaignDraft(new PromoteCampaignDraftRequest - { - CampaignDraft = gax::GaxPreconditions.CheckNotNullOrEmpty(campaignDraft, nameof(campaignDraft)), - }, callSettings); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign draft to promote. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteCampaignDraftAsync(string campaignDraft, gaxgrpc::CallSettings callSettings = null) => - PromoteCampaignDraftAsync(new PromoteCampaignDraftRequest - { - CampaignDraft = gax::GaxPreconditions.CheckNotNullOrEmpty(campaignDraft, nameof(campaignDraft)), - }, callSettings); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign draft to promote. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteCampaignDraftAsync(string campaignDraft, st::CancellationToken cancellationToken) => - PromoteCampaignDraftAsync(campaignDraft, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign draft to promote. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation PromoteCampaignDraft(gagvr::CampaignDraftName campaignDraft, gaxgrpc::CallSettings callSettings = null) => - PromoteCampaignDraft(new PromoteCampaignDraftRequest - { - CampaignDraftAsCampaignDraftName = gax::GaxPreconditions.CheckNotNull(campaignDraft, nameof(campaignDraft)), - }, callSettings); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign draft to promote. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteCampaignDraftAsync(gagvr::CampaignDraftName campaignDraft, gaxgrpc::CallSettings callSettings = null) => - PromoteCampaignDraftAsync(new PromoteCampaignDraftRequest - { - CampaignDraftAsCampaignDraftName = gax::GaxPreconditions.CheckNotNull(campaignDraft, nameof(campaignDraft)), - }, callSettings); - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign draft to promote. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteCampaignDraftAsync(gagvr::CampaignDraftName campaignDraft, st::CancellationToken cancellationToken) => - PromoteCampaignDraftAsync(campaignDraft, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListCampaignDraftAsyncErrors(ListCampaignDraftAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListCampaignDraftAsyncErrorsAsync(ListCampaignDraftAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the campaign draft from which to retrieve the async errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListCampaignDraftAsyncErrors(string resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListCampaignDraftAsyncErrors(new ListCampaignDraftAsyncErrorsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the campaign draft from which to retrieve the async errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListCampaignDraftAsyncErrorsAsync(string resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListCampaignDraftAsyncErrorsAsync(new ListCampaignDraftAsyncErrorsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the campaign draft from which to retrieve the async errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListCampaignDraftAsyncErrors(gagvr::CampaignDraftName resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListCampaignDraftAsyncErrors(new ListCampaignDraftAsyncErrorsRequest - { - ResourceNameAsCampaignDraftName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the campaign draft from which to retrieve the async errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListCampaignDraftAsyncErrorsAsync(gagvr::CampaignDraftName resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListCampaignDraftAsyncErrorsAsync(new ListCampaignDraftAsyncErrorsRequest - { - ResourceNameAsCampaignDraftName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - } - - /// CampaignDraftService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign drafts. - /// - public sealed partial class CampaignDraftServiceClientImpl : CampaignDraftServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignDrafts; - - private readonly gaxgrpc::ApiCall _callPromoteCampaignDraft; - - private readonly gaxgrpc::ApiCall _callListCampaignDraftAsyncErrors; - - /// - /// Constructs a client wrapper for the CampaignDraftService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CampaignDraftServiceClientImpl(CampaignDraftService.CampaignDraftServiceClient grpcClient, CampaignDraftServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignDraftServiceSettings effectiveSettings = settings ?? CampaignDraftServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - PromoteCampaignDraftOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.PromoteCampaignDraftOperationsSettings, logger); - _callMutateCampaignDrafts = clientHelper.BuildApiCall("MutateCampaignDrafts", grpcClient.MutateCampaignDraftsAsync, grpcClient.MutateCampaignDrafts, effectiveSettings.MutateCampaignDraftsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignDrafts); - Modify_MutateCampaignDraftsApiCall(ref _callMutateCampaignDrafts); - _callPromoteCampaignDraft = clientHelper.BuildApiCall("PromoteCampaignDraft", grpcClient.PromoteCampaignDraftAsync, grpcClient.PromoteCampaignDraft, effectiveSettings.PromoteCampaignDraftSettings).WithGoogleRequestParam("campaign_draft", request => request.CampaignDraft); - Modify_ApiCall(ref _callPromoteCampaignDraft); - Modify_PromoteCampaignDraftApiCall(ref _callPromoteCampaignDraft); - _callListCampaignDraftAsyncErrors = clientHelper.BuildApiCall("ListCampaignDraftAsyncErrors", grpcClient.ListCampaignDraftAsyncErrorsAsync, grpcClient.ListCampaignDraftAsyncErrors, effectiveSettings.ListCampaignDraftAsyncErrorsSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callListCampaignDraftAsyncErrors); - Modify_ListCampaignDraftAsyncErrorsApiCall(ref _callListCampaignDraftAsyncErrors); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignDraftsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_PromoteCampaignDraftApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ListCampaignDraftAsyncErrorsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignDraftService.CampaignDraftServiceClient grpcClient, CampaignDraftServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignDraftService client - public override CampaignDraftService.CampaignDraftServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignDraftsRequest(ref MutateCampaignDraftsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_PromoteCampaignDraftRequest(ref PromoteCampaignDraftRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ListCampaignDraftAsyncErrorsRequest(ref ListCampaignDraftAsyncErrorsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignDraftsResponse MutateCampaignDrafts(MutateCampaignDraftsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignDraftsRequest(ref request, ref callSettings); - return _callMutateCampaignDrafts.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignDraftsAsync(MutateCampaignDraftsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignDraftsRequest(ref request, ref callSettings); - return _callMutateCampaignDrafts.Async(request, callSettings); - } - - /// The long-running operations client for PromoteCampaignDraft. - public override lro::OperationsClient PromoteCampaignDraftOperationsClient { get; } - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override lro::Operation PromoteCampaignDraft(PromoteCampaignDraftRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_PromoteCampaignDraftRequest(ref request, ref callSettings); - return new lro::Operation(_callPromoteCampaignDraft.Sync(request, callSettings), PromoteCampaignDraftOperationsClient); - } - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override async stt::Task> PromoteCampaignDraftAsync(PromoteCampaignDraftRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_PromoteCampaignDraftRequest(ref request, ref callSettings); - return new lro::Operation(await _callPromoteCampaignDraft.Async(request, callSettings).ConfigureAwait(false), PromoteCampaignDraftOperationsClient); - } - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable ListCampaignDraftAsyncErrors(ListCampaignDraftAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListCampaignDraftAsyncErrorsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callListCampaignDraftAsyncErrors, request, callSettings); - } - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable ListCampaignDraftAsyncErrorsAsync(ListCampaignDraftAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListCampaignDraftAsyncErrorsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListCampaignDraftAsyncErrors, request, callSettings); - } - } - - public partial class ListCampaignDraftAsyncErrorsRequest : gaxgrpc::IPageRequest - { - } - - public partial class ListCampaignDraftAsyncErrorsResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Errors.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } - - public static partial class CampaignDraftService - { - public partial class CampaignDraftServiceClient - { - /// - /// Creates a new instance of using the same call invoker as - /// this client. - /// - /// A new Operations client for the same target as this client. - public virtual lro::Operations.OperationsClient CreateOperationsClient() => - new lro::Operations.OperationsClient(CallInvoker); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceGrpc.g.cs deleted file mode 100755 index eab3730b4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceGrpc.g.cs +++ /dev/null @@ -1,555 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_draft_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign drafts. - /// - public static partial class CampaignDraftService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignDraftService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignDraftsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignDraftsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_PromoteCampaignDraftRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListCampaignDraftAsyncErrorsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListCampaignDraftAsyncErrorsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignDrafts = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignDrafts", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignDraftsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignDraftsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_PromoteCampaignDraft = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "PromoteCampaignDraft", - __Marshaller_google_ads_googleads_v12_services_PromoteCampaignDraftRequest, - __Marshaller_google_longrunning_Operation); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListCampaignDraftAsyncErrors = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListCampaignDraftAsyncErrors", - __Marshaller_google_ads_googleads_v12_services_ListCampaignDraftAsyncErrorsRequest, - __Marshaller_google_ads_googleads_v12_services_ListCampaignDraftAsyncErrorsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignDraftService - [grpc::BindServiceMethod(typeof(CampaignDraftService), "BindService")] - public abstract partial class CampaignDraftServiceBase - { - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignDrafts(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task PromoteCampaignDraft(global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListCampaignDraftAsyncErrors(global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignDraftService - public partial class CampaignDraftServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignDraftService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignDraftServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignDraftService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignDraftServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignDraftServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignDraftServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsResponse MutateCampaignDrafts(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignDrafts(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsResponse MutateCampaignDrafts(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignDrafts, null, options, request); - } - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignDraftsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignDraftsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign drafts. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignDraftsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignDrafts, null, options, request); - } - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation PromoteCampaignDraft(global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PromoteCampaignDraft(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation PromoteCampaignDraft(global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_PromoteCampaignDraft, null, options, request); - } - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PromoteCampaignDraftAsync(global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PromoteCampaignDraftAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Promotes the changes in a draft back to the base campaign. - /// - /// This method returns a Long Running Operation (LRO) indicating if the - /// Promote is done. Use [Operations.GetOperation] to poll the LRO until it - /// is done. Only a done status is returned in the response. See the status - /// in the Campaign Draft resource to determine if the promotion was - /// successful. If the LRO failed, use - /// [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v12.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - /// error reasons. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignDraftError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PromoteCampaignDraftAsync(global::Google.Ads.GoogleAds.V12.Services.PromoteCampaignDraftRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_PromoteCampaignDraft, null, options, request); - } - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsResponse ListCampaignDraftAsyncErrors(global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListCampaignDraftAsyncErrors(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsResponse ListCampaignDraftAsyncErrors(global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListCampaignDraftAsyncErrors, null, options, request); - } - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListCampaignDraftAsyncErrorsAsync(global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListCampaignDraftAsyncErrorsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all errors that occurred during CampaignDraft promote. Throws an - /// error if called before campaign draft is promoted. - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListCampaignDraftAsyncErrorsAsync(global::Google.Ads.GoogleAds.V12.Services.ListCampaignDraftAsyncErrorsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListCampaignDraftAsyncErrors, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignDraftServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignDraftServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignDraftServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignDrafts, serviceImpl.MutateCampaignDrafts) - .AddMethod(__Method_PromoteCampaignDraft, serviceImpl.PromoteCampaignDraft) - .AddMethod(__Method_ListCampaignDraftAsyncErrors, serviceImpl.ListCampaignDraftAsyncErrors).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignDraftServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignDrafts, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignDrafts)); - serviceBinder.AddMethod(__Method_PromoteCampaignDraft, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PromoteCampaignDraft)); - serviceBinder.AddMethod(__Method_ListCampaignDraftAsyncErrors, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListCampaignDraftAsyncErrors)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceResourceNames.g.cs deleted file mode 100755 index f21ca15c1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraftServiceResourceNames.g.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class PromoteCampaignDraftRequest - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignDraftName CampaignDraftAsCampaignDraftName - { - get => string.IsNullOrEmpty(CampaignDraft) ? null : gagvr::CampaignDraftName.Parse(CampaignDraft, allowUnparsed: true); - set => CampaignDraft = value?.ToString() ?? ""; - } - } - - public partial class CampaignDraftOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignDraftName RemoveAsCampaignDraftName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignDraftName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignDraftResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignDraftName ResourceNameAsCampaignDraftName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignDraftName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class ListCampaignDraftAsyncErrorsRequest - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignDraftName ResourceNameAsCampaignDraftName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignDraftName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignDraftStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignDraftStatus.g.cs deleted file mode 100755 index 4a640fa4d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignDraftStatus.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_draft_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_draft_status.proto - public static partial class CampaignDraftStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_draft_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignDraftStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fZHJh", - "ZnRfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMimgEKF0NhbXBhaWduRHJhZnRTdGF0dXNFbnVtIn8KE0NhbXBhaWduRHJh", - "ZnRTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESDAoIUFJP", - "UE9TRUQQAhILCgdSRU1PVkVEEAMSDQoJUFJPTU9USU5HEAUSDAoIUFJPTU9U", - "RUQQBBISCg5QUk9NT1RFX0ZBSUxFRBAGQvIBCiJjb20uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zQhhDYW1wYWlnbkRyYWZ0U3RhdHVzUHJvdG9Q", - "AVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusEnum.Types.CampaignDraftStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a campaign draft. - /// - public sealed partial class CampaignDraftStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignDraftStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignDraftStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftStatusEnum(CampaignDraftStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignDraftStatusEnum Clone() { - return new CampaignDraftStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignDraftStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignDraftStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignDraftStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignDraftStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a campaign draft. - /// - public enum CampaignDraftStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Initial state of the draft, the advertiser can start adding changes with - /// no effect on serving. - /// - [pbr::OriginalName("PROPOSED")] Proposed = 2, - /// - /// The campaign draft is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - /// - /// Advertiser requested to promote draft's changes back into the original - /// campaign. Advertiser can poll the long running operation returned by - /// the promote action to see the status of the promotion. - /// - [pbr::OriginalName("PROMOTING")] Promoting = 5, - /// - /// The process to merge changes in the draft back to the original campaign - /// has completed successfully. - /// - [pbr::OriginalName("PROMOTED")] Promoted = 4, - /// - /// The promotion failed after it was partially applied. Promote cannot be - /// attempted again safely, so the issue must be corrected in the original - /// campaign. - /// - [pbr::OriginalName("PROMOTE_FAILED")] PromoteFailed = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignError.g.cs deleted file mode 100755 index 5dc60f9c3..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignError.g.cs +++ /dev/null @@ -1,491 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_error.proto - public static partial class CampaignErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIswQ", - "ChFDYW1wYWlnbkVycm9yRW51bSK2EAoNQ2FtcGFpZ25FcnJvchIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARIhCh1DQU5OT1RfVEFSR0VUX0NPTlRF", - "TlRfTkVUV09SSxADEiAKHENBTk5PVF9UQVJHRVRfU0VBUkNIX05FVFdPUksQ", - "BBI2CjJDQU5OT1RfVEFSR0VUX1NFQVJDSF9ORVRXT1JLX1dJVEhPVVRfR09P", - "R0xFX1NFQVJDSBAFEjAKLENBTk5PVF9UQVJHRVRfR09PR0xFX1NFQVJDSF9G", - "T1JfQ1BNX0NBTVBBSUdOEAYSLQopQ0FNUEFJR05fTVVTVF9UQVJHRVRfQVRf", - "TEVBU1RfT05FX05FVFdPUksQBxIoCiRDQU5OT1RfVEFSR0VUX1BBUlRORVJf", - "U0VBUkNIX05FVFdPUksQCBJLCkdDQU5OT1RfVEFSR0VUX0NPTlRFTlRfTkVU", - "V09SS19PTkxZX1dJVEhfQ1JJVEVSSUFfTEVWRUxfQklERElOR19TVFJBVEVH", - "WRAJEjYKMkNBTVBBSUdOX0RVUkFUSU9OX01VU1RfQ09OVEFJTl9BTExfUlVO", - "TkFCTEVfVFJJQUxTEAoSJAogQ0FOTk9UX01PRElGWV9GT1JfVFJJQUxfQ0FN", - "UEFJR04QCxIbChdEVVBMSUNBVEVfQ0FNUEFJR05fTkFNRRAMEh8KG0lOQ09N", - "UEFUSUJMRV9DQU1QQUlHTl9GSUVMRBANEhkKFUlOVkFMSURfQ0FNUEFJR05f", - "TkFNRRAOEioKJklOVkFMSURfQURfU0VSVklOR19PUFRJTUlaQVRJT05fU1RB", - "VFVTEA8SGAoUSU5WQUxJRF9UUkFDS0lOR19VUkwQEBI+CjpDQU5OT1RfU0VU", - "X0JPVEhfVFJBQ0tJTkdfVVJMX1RFTVBMQVRFX0FORF9UUkFDS0lOR19TRVRU", - "SU5HEBESIAocTUFYX0lNUFJFU1NJT05TX05PVF9JTl9SQU5HRRASEhsKF1RJ", - "TUVfVU5JVF9OT1RfU1VQUE9SVEVEEBMSMQotSU5WQUxJRF9PUEVSQVRJT05f", - "SUZfU0VSVklOR19TVEFUVVNfSEFTX0VOREVEEBQSGwoXQlVER0VUX0NBTk5P", - "VF9CRV9TSEFSRUQQFRIlCiFDQU1QQUlHTl9DQU5OT1RfVVNFX1NIQVJFRF9C", - "VURHRVQQFhIwCixDQU5OT1RfQ0hBTkdFX0JVREdFVF9PTl9DQU1QQUlHTl9X", - "SVRIX1RSSUFMUxAXEiEKHUNBTVBBSUdOX0xBQkVMX0RPRVNfTk9UX0VYSVNU", - "EBgSIQodQ0FNUEFJR05fTEFCRUxfQUxSRUFEWV9FWElTVFMQGRIcChhNSVNT", - "SU5HX1NIT1BQSU5HX1NFVFRJTkcQGhIiCh5JTlZBTElEX1NIT1BQSU5HX1NB", - "TEVTX0NPVU5UUlkQGxI7CjdBRFZFUlRJU0lOR19DSEFOTkVMX1RZUEVfTk9U", - "X0FWQUlMQUJMRV9GT1JfQUNDT1VOVF9UWVBFEB8SKAokSU5WQUxJRF9BRFZF", - "UlRJU0lOR19DSEFOTkVMX1NVQl9UWVBFECASLAooQVRfTEVBU1RfT05FX0NP", - "TlZFUlNJT05fTVVTVF9CRV9TRUxFQ1RFRBAhEh8KG0NBTk5PVF9TRVRfQURf", - "Uk9UQVRJT05fTU9ERRAiEi8KK0NBTk5PVF9NT0RJRllfU1RBUlRfREFURV9J", - "Rl9BTFJFQURZX1NUQVJURUQQIxIbChdDQU5OT1RfU0VUX0RBVEVfVE9fUEFT", - "VBAkEh8KG01JU1NJTkdfSE9URUxfQ1VTVE9NRVJfTElOSxAlEh8KG0lOVkFM", - "SURfSE9URUxfQ1VTVE9NRVJfTElOSxAmEhkKFU1JU1NJTkdfSE9URUxfU0VU", - "VElORxAnEkIKPkNBTk5PVF9VU0VfU0hBUkVEX0NBTVBBSUdOX0JVREdFVF9X", - "SElMRV9QQVJUX09GX0NBTVBBSUdOX0dST1VQECgSEQoNQVBQX05PVF9GT1VO", - "RBApEjkKNVNIT1BQSU5HX0VOQUJMRV9MT0NBTF9OT1RfU1VQUE9SVEVEX0ZP", - "Ul9DQU1QQUlHTl9UWVBFECoSMwovTUVSQ0hBTlRfTk9UX0FMTE9XRURfRk9S", - "X0NPTVBBUklTT05fTElTVElOR19BRFMQKxIjCh9JTlNVRkZJQ0lFTlRfQVBQ", - "X0lOU1RBTExTX0NPVU5UECwSGgoWU0VOU0lUSVZFX0NBVEVHT1JZX0FQUBAt", - "EhoKFkhFQ19BR1JFRU1FTlRfUkVRVUlSRUQQLhI8CjhOT1RfQ09NUEFUSUJM", - "RV9XSVRIX1ZJRVdfVEhST1VHSF9DT05WRVJTSU9OX09QVElNSVpBVElPThAx", - "EiwKKElOVkFMSURfRVhDTFVERURfUEFSRU5UX0FTU0VUX0ZJRUxEX1RZUEUQ", - "MBI6CjZDQU5OT1RfQ1JFQVRFX0FQUF9QUkVfUkVHSVNUUkFUSU9OX0ZPUl9O", - "T05fQU5EUk9JRF9BUFAQMhI9CjlBUFBfTk9UX0FWQUlMQUJMRV9UT19DUkVB", - "VEVfQVBQX1BSRV9SRUdJU1RSQVRJT05fQ0FNUEFJR04QMxIcChhJTkNPTVBB", - "VElCTEVfQlVER0VUX1RZUEUQNBIpCiVMT0NBTF9TRVJWSUNFU19EVVBMSUNB", - "VEVfQ0FURUdPUllfQklEEDUSJwojTE9DQUxfU0VSVklDRVNfSU5WQUxJRF9D", - "QVRFR09SWV9CSUQQNhInCiNMT0NBTF9TRVJWSUNFU19NSVNTSU5HX0NBVEVH", - "T1JZX0JJRBA3QvIBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVy", - "cm9yc0ISQ2FtcGFpZ25FcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3Jz", - "O2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJv", - "cnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorEnum.Types.CampaignError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign errors. - /// - public sealed partial class CampaignErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignErrorEnum(CampaignErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignErrorEnum Clone() { - return new CampaignErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign errors. - /// - public enum CampaignError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Cannot target content network. - /// - [pbr::OriginalName("CANNOT_TARGET_CONTENT_NETWORK")] CannotTargetContentNetwork = 3, - /// - /// Cannot target search network. - /// - [pbr::OriginalName("CANNOT_TARGET_SEARCH_NETWORK")] CannotTargetSearchNetwork = 4, - /// - /// Cannot cover search network without google search network. - /// - [pbr::OriginalName("CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH")] CannotTargetSearchNetworkWithoutGoogleSearch = 5, - /// - /// Cannot target Google Search network for a CPM campaign. - /// - [pbr::OriginalName("CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN")] CannotTargetGoogleSearchForCpmCampaign = 6, - /// - /// Must target at least one network. - /// - [pbr::OriginalName("CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK")] CampaignMustTargetAtLeastOneNetwork = 7, - /// - /// Only some Google partners are allowed to target partner search network. - /// - [pbr::OriginalName("CANNOT_TARGET_PARTNER_SEARCH_NETWORK")] CannotTargetPartnerSearchNetwork = 8, - /// - /// Cannot target content network only as campaign has criteria-level bidding - /// strategy. - /// - [pbr::OriginalName("CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY")] CannotTargetContentNetworkOnlyWithCriteriaLevelBiddingStrategy = 9, - /// - /// Cannot modify the start or end date such that the campaign duration would - /// not contain the durations of all runnable trials. - /// - [pbr::OriginalName("CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS")] CampaignDurationMustContainAllRunnableTrials = 10, - /// - /// Cannot modify dates, budget or status of a trial campaign. - /// - [pbr::OriginalName("CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN")] CannotModifyForTrialCampaign = 11, - /// - /// Trying to modify the name of an active or paused campaign, where the name - /// is already assigned to another active or paused campaign. - /// - [pbr::OriginalName("DUPLICATE_CAMPAIGN_NAME")] DuplicateCampaignName = 12, - /// - /// Two fields are in conflicting modes. - /// - [pbr::OriginalName("INCOMPATIBLE_CAMPAIGN_FIELD")] IncompatibleCampaignField = 13, - /// - /// Campaign name cannot be used. - /// - [pbr::OriginalName("INVALID_CAMPAIGN_NAME")] InvalidCampaignName = 14, - /// - /// Given status is invalid. - /// - [pbr::OriginalName("INVALID_AD_SERVING_OPTIMIZATION_STATUS")] InvalidAdServingOptimizationStatus = 15, - /// - /// Error in the campaign level tracking URL. - /// - [pbr::OriginalName("INVALID_TRACKING_URL")] InvalidTrackingUrl = 16, - /// - /// Cannot set both tracking URL template and tracking setting. A user has - /// to clear legacy tracking setting in order to add tracking URL template. - /// - [pbr::OriginalName("CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING")] CannotSetBothTrackingUrlTemplateAndTrackingSetting = 17, - /// - /// The maximum number of impressions for Frequency Cap should be an integer - /// greater than 0. - /// - [pbr::OriginalName("MAX_IMPRESSIONS_NOT_IN_RANGE")] MaxImpressionsNotInRange = 18, - /// - /// Only the Day, Week and Month time units are supported. - /// - [pbr::OriginalName("TIME_UNIT_NOT_SUPPORTED")] TimeUnitNotSupported = 19, - /// - /// Operation not allowed on a campaign whose serving status has ended - /// - [pbr::OriginalName("INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED")] InvalidOperationIfServingStatusHasEnded = 20, - /// - /// This budget is exclusively linked to a Campaign that is using experiments - /// so it cannot be shared. - /// - [pbr::OriginalName("BUDGET_CANNOT_BE_SHARED")] BudgetCannotBeShared = 21, - /// - /// Campaigns using experiments cannot use a shared budget. - /// - [pbr::OriginalName("CAMPAIGN_CANNOT_USE_SHARED_BUDGET")] CampaignCannotUseSharedBudget = 22, - /// - /// A different budget cannot be assigned to a campaign when there are - /// running or scheduled trials. - /// - [pbr::OriginalName("CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS")] CannotChangeBudgetOnCampaignWithTrials = 23, - /// - /// No link found between the campaign and the label. - /// - [pbr::OriginalName("CAMPAIGN_LABEL_DOES_NOT_EXIST")] CampaignLabelDoesNotExist = 24, - /// - /// The label has already been attached to the campaign. - /// - [pbr::OriginalName("CAMPAIGN_LABEL_ALREADY_EXISTS")] CampaignLabelAlreadyExists = 25, - /// - /// A ShoppingSetting was not found when creating a shopping campaign. - /// - [pbr::OriginalName("MISSING_SHOPPING_SETTING")] MissingShoppingSetting = 26, - /// - /// The country in shopping setting is not an allowed country. - /// - [pbr::OriginalName("INVALID_SHOPPING_SALES_COUNTRY")] InvalidShoppingSalesCountry = 27, - /// - /// The requested channel type is not available according to the customer's - /// account setting. - /// - [pbr::OriginalName("ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE")] AdvertisingChannelTypeNotAvailableForAccountType = 31, - /// - /// The AdvertisingChannelSubType is not a valid subtype of the primary - /// channel type. - /// - [pbr::OriginalName("INVALID_ADVERTISING_CHANNEL_SUB_TYPE")] InvalidAdvertisingChannelSubType = 32, - /// - /// At least one conversion must be selected. - /// - [pbr::OriginalName("AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED")] AtLeastOneConversionMustBeSelected = 33, - /// - /// Setting ad rotation mode for a campaign is not allowed. Ad rotation mode - /// at campaign is deprecated. - /// - [pbr::OriginalName("CANNOT_SET_AD_ROTATION_MODE")] CannotSetAdRotationMode = 34, - /// - /// Trying to change start date on a campaign that has started. - /// - [pbr::OriginalName("CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED")] CannotModifyStartDateIfAlreadyStarted = 35, - /// - /// Trying to modify a date into the past. - /// - [pbr::OriginalName("CANNOT_SET_DATE_TO_PAST")] CannotSetDateToPast = 36, - /// - /// Hotel center id in the hotel setting does not match any customer links. - /// - [pbr::OriginalName("MISSING_HOTEL_CUSTOMER_LINK")] MissingHotelCustomerLink = 37, - /// - /// Hotel center id in the hotel setting must match an active customer link. - /// - [pbr::OriginalName("INVALID_HOTEL_CUSTOMER_LINK")] InvalidHotelCustomerLink = 38, - /// - /// Hotel setting was not found when creating a hotel ads campaign. - /// - [pbr::OriginalName("MISSING_HOTEL_SETTING")] MissingHotelSetting = 39, - /// - /// A Campaign cannot use shared campaign budgets and be part of a campaign - /// group. - /// - [pbr::OriginalName("CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP")] CannotUseSharedCampaignBudgetWhilePartOfCampaignGroup = 40, - /// - /// The app ID was not found. - /// - [pbr::OriginalName("APP_NOT_FOUND")] AppNotFound = 41, - /// - /// Campaign.shopping_setting.enable_local is not supported for the specified - /// campaign type. - /// - [pbr::OriginalName("SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE")] ShoppingEnableLocalNotSupportedForCampaignType = 42, - /// - /// The merchant does not support the creation of campaigns for Shopping - /// Comparison Listing Ads. - /// - [pbr::OriginalName("MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS")] MerchantNotAllowedForComparisonListingAds = 43, - /// - /// The App campaign for engagement cannot be created because there aren't - /// enough installs. - /// - [pbr::OriginalName("INSUFFICIENT_APP_INSTALLS_COUNT")] InsufficientAppInstallsCount = 44, - /// - /// The App campaign for engagement cannot be created because the app is - /// sensitive. - /// - [pbr::OriginalName("SENSITIVE_CATEGORY_APP")] SensitiveCategoryApp = 45, - /// - /// Customers with Housing, Employment, or Credit ads must accept updated - /// personalized ads policy to continue creating campaigns. - /// - [pbr::OriginalName("HEC_AGREEMENT_REQUIRED")] HecAgreementRequired = 46, - /// - /// The field is not compatible with view through conversion optimization. - /// - [pbr::OriginalName("NOT_COMPATIBLE_WITH_VIEW_THROUGH_CONVERSION_OPTIMIZATION")] NotCompatibleWithViewThroughConversionOptimization = 49, - /// - /// The field type cannot be excluded because an active campaign-asset link - /// of this type exists. - /// - [pbr::OriginalName("INVALID_EXCLUDED_PARENT_ASSET_FIELD_TYPE")] InvalidExcludedParentAssetFieldType = 48, - /// - /// The app pre-registration campaign cannot be created for non-Android - /// applications. - /// - [pbr::OriginalName("CANNOT_CREATE_APP_PRE_REGISTRATION_FOR_NON_ANDROID_APP")] CannotCreateAppPreRegistrationForNonAndroidApp = 50, - /// - /// The campaign cannot be created since the app is not available for - /// pre-registration in any country. - /// - [pbr::OriginalName("APP_NOT_AVAILABLE_TO_CREATE_APP_PRE_REGISTRATION_CAMPAIGN")] AppNotAvailableToCreateAppPreRegistrationCampaign = 51, - /// - /// The type of the Budget is not compatible with this Campaign. - /// - [pbr::OriginalName("INCOMPATIBLE_BUDGET_TYPE")] IncompatibleBudgetType = 52, - /// - /// Category bid list in the local services campaign setting contains - /// multiple bids for the same category ID. - /// - [pbr::OriginalName("LOCAL_SERVICES_DUPLICATE_CATEGORY_BID")] LocalServicesDuplicateCategoryBid = 53, - /// - /// Category bid list in the local services campaign setting contains - /// a bid for an invalid category ID. - /// - [pbr::OriginalName("LOCAL_SERVICES_INVALID_CATEGORY_BID")] LocalServicesInvalidCategoryBid = 54, - /// - /// Category bid list in the local services campaign setting is missing a - /// bid for a category ID that must be present. - /// - [pbr::OriginalName("LOCAL_SERVICES_MISSING_CATEGORY_BID")] LocalServicesMissingCategoryBid = 55, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExperimentError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExperimentError.g.cs deleted file mode 100755 index b99fc3b12..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExperimentError.g.cs +++ /dev/null @@ -1,285 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_experiment_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_experiment_error.proto - public static partial class CampaignExperimentErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_experiment_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignExperimentErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2V4", - "cGVyaW1lbnRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMigAQKG0NhbXBhaWduRXhwZXJpbWVudEVycm9yRW51bSLgAwoX", - "Q2FtcGFpZ25FeHBlcmltZW50RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESEgoORFVQTElDQVRFX05BTUUQAhIWChJJTlZBTElEX1RSQU5T", - "SVRJT04QAxIvCitDQU5OT1RfQ1JFQVRFX0VYUEVSSU1FTlRfV0lUSF9TSEFS", - "RURfQlVER0VUEAQSNgoyQ0FOTk9UX0NSRUFURV9FWFBFUklNRU5UX0ZPUl9S", - "RU1PVkVEX0JBU0VfQ0FNUEFJR04QBRIzCi9DQU5OT1RfQ1JFQVRFX0VYUEVS", - "SU1FTlRfRk9SX05PTl9QUk9QT1NFRF9EUkFGVBAGEiUKIUNVU1RPTUVSX0NB", - "Tk5PVF9DUkVBVEVfRVhQRVJJTUVOVBAHEiUKIUNBTVBBSUdOX0NBTk5PVF9D", - "UkVBVEVfRVhQRVJJTUVOVBAIEikKJUVYUEVSSU1FTlRfRFVSQVRJT05TX01V", - "U1RfTk9UX09WRVJMQVAQCRI4CjRFWFBFUklNRU5UX0RVUkFUSU9OX01VU1Rf", - "QkVfV0lUSElOX0NBTVBBSUdOX0RVUkFUSU9OEAoSKgomQ0FOTk9UX01VVEFU", - "RV9FWFBFUklNRU5UX0RVRV9UT19TVEFUVVMQC0L8AQojY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCHENhbXBhaWduRXhwZXJpbWVudEVy", - "cm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIf", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorEnum.Types.CampaignExperimentError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign experiment errors. - /// - public sealed partial class CampaignExperimentErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignExperimentErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExperimentErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExperimentErrorEnum(CampaignExperimentErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExperimentErrorEnum Clone() { - return new CampaignExperimentErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignExperimentErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignExperimentErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignExperimentErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignExperimentErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign experiment errors. - /// - public enum CampaignExperimentError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An active campaign or experiment with this name already exists. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 2, - /// - /// Experiment cannot be updated from the current state to the - /// requested target state. For example, an experiment can only graduate - /// if its status is ENABLED. - /// - [pbr::OriginalName("INVALID_TRANSITION")] InvalidTransition = 3, - /// - /// Cannot create an experiment from a campaign using an explicitly shared - /// budget. - /// - [pbr::OriginalName("CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET")] CannotCreateExperimentWithSharedBudget = 4, - /// - /// Cannot create an experiment for a removed base campaign. - /// - [pbr::OriginalName("CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN")] CannotCreateExperimentForRemovedBaseCampaign = 5, - /// - /// Cannot create an experiment from a draft, which has a status other than - /// proposed. - /// - [pbr::OriginalName("CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT")] CannotCreateExperimentForNonProposedDraft = 6, - /// - /// This customer is not allowed to create an experiment. - /// - [pbr::OriginalName("CUSTOMER_CANNOT_CREATE_EXPERIMENT")] CustomerCannotCreateExperiment = 7, - /// - /// This campaign is not allowed to create an experiment. - /// - [pbr::OriginalName("CAMPAIGN_CANNOT_CREATE_EXPERIMENT")] CampaignCannotCreateExperiment = 8, - /// - /// Trying to set an experiment duration which overlaps with another - /// experiment. - /// - [pbr::OriginalName("EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP")] ExperimentDurationsMustNotOverlap = 9, - /// - /// All non-removed experiments must start and end within their campaign's - /// duration. - /// - [pbr::OriginalName("EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION")] ExperimentDurationMustBeWithinCampaignDuration = 10, - /// - /// The experiment cannot be modified because its status is in a terminal - /// state, such as REMOVED. - /// - [pbr::OriginalName("CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS")] CannotMutateExperimentDueToStatus = 11, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExperimentType.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExperimentType.g.cs deleted file mode 100755 index 5445e119e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExperimentType.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_experiment_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_experiment_type.proto - public static partial class CampaignExperimentTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_experiment_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignExperimentTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fZXhw", - "ZXJpbWVudF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMieQoaQ2FtcGFpZ25FeHBlcmltZW50VHlwZUVudW0iWwoWQ2FtcGFp", - "Z25FeHBlcmltZW50VHlwZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q", - "ARIICgRCQVNFEAISCQoFRFJBRlQQAxIOCgpFWFBFUklNRU5UEARC9QEKImNv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCG0NhbXBhaWduRXhw", - "ZXJpbWVudFR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogID", - "R0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeEnum.Types.CampaignExperimentType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing campaign experiment type. - /// - public sealed partial class CampaignExperimentTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignExperimentTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignExperimentTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExperimentTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExperimentTypeEnum(CampaignExperimentTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExperimentTypeEnum Clone() { - return new CampaignExperimentTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignExperimentTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignExperimentTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignExperimentTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignExperimentTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Indicates if this campaign is a normal campaign, - /// a draft campaign, or an experiment campaign. - /// - public enum CampaignExperimentType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// This is a regular campaign. - /// - [pbr::OriginalName("BASE")] Base = 2, - /// - /// This is a draft version of a campaign. - /// It has some modifications from a base campaign, - /// but it does not serve or accrue metrics. - /// - [pbr::OriginalName("DRAFT")] Draft = 3, - /// - /// This is an experiment version of a campaign. - /// It has some modifications from a base campaign, - /// and a percentage of traffic is being diverted - /// from the BASE campaign to this experiment campaign. - /// - [pbr::OriginalName("EXPERIMENT")] Experiment = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSetting.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExtensionSetting.g.cs deleted file mode 100755 index 5d4241e54..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSetting.g.cs +++ /dev/null @@ -1,433 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_extension_setting.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_extension_setting.proto - public static partial class CampaignExtensionSettingReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_extension_setting.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignExtensionSettingReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2V4dGVuc2lvbl9zZXR0aW5nLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvZXh0ZW5zaW9uX3NldHRpbmdfZGV2aWNlLnByb3RvGjNnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvZXh0ZW5zaW9uX3R5cGUucHJvdG8aH2dv", - "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", - "b3VyY2UucHJvdG8i1wQKGENhbXBhaWduRXh0ZW5zaW9uU2V0dGluZxJQCg1y", - "ZXNvdXJjZV9uYW1lGAEgASgJQjngQQX6QTMKMWdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DYW1wYWlnbkV4dGVuc2lvblNldHRpbmcSXAoOZXh0ZW5zaW9u", - "X3R5cGUYAiABKA4yPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "RXh0ZW5zaW9uVHlwZUVudW0uRXh0ZW5zaW9uVHlwZUID4EEFEkAKCGNhbXBh", - "aWduGAYgASgJQingQQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "YW1wYWlnbkgAiAEBEk0KFGV4dGVuc2lvbl9mZWVkX2l0ZW1zGAcgAygJQi/6", - "QSwKKmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9FeHRlbnNpb25GZWVkSXRl", - "bRJhCgZkZXZpY2UYBSABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuRXh0ZW5zaW9uU2V0dGluZ0RldmljZUVudW0uRXh0ZW5zaW9uU2V0", - "dGluZ0RldmljZTqJAepBhQEKMWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "YW1wYWlnbkV4dGVuc2lvblNldHRpbmcSUGN1c3RvbWVycy97Y3VzdG9tZXJf", - "aWR9L2NhbXBhaWduRXh0ZW5zaW9uU2V0dGluZ3Mve2NhbXBhaWduX2lkfX57", - "ZXh0ZW5zaW9uX3R5cGV9QgsKCV9jYW1wYWlnbkKPAgomY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCHUNhbXBhaWduRXh0ZW5zaW9u", - "U2V0dGluZ1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNl", - "c6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPK", - "AiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting), global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting.Parser, new[]{ "ResourceName", "ExtensionType", "Campaign", "ExtensionFeedItems", "Device" }, new[]{ "Campaign" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign extension setting. - /// - public sealed partial class CampaignExtensionSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignExtensionSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSettingReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExtensionSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExtensionSetting(CampaignExtensionSetting other) : this() { - resourceName_ = other.resourceName_; - extensionType_ = other.extensionType_; - campaign_ = other.campaign_; - extensionFeedItems_ = other.extensionFeedItems_.Clone(); - device_ = other.device_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExtensionSetting Clone() { - return new CampaignExtensionSetting(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign extension setting. - /// CampaignExtensionSetting resource names have the form: - /// - /// `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "extension_type" field. - public const int ExtensionTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType extensionType_ = global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified; - /// - /// Immutable. The extension type of the customer extension setting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType ExtensionType { - get { return extensionType_; } - set { - extensionType_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 6; - private string campaign_; - /// - /// Immutable. The resource name of the campaign. The linked extension feed items will - /// serve under this campaign. - /// Campaign resource names have the form: - /// - /// `customers/{customer_id}/campaigns/{campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "extension_feed_items" field. - public const int ExtensionFeedItemsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_extensionFeedItems_codec - = pb::FieldCodec.ForString(58); - private readonly pbc::RepeatedField extensionFeedItems_ = new pbc::RepeatedField(); - /// - /// The resource names of the extension feed items to serve under the campaign. - /// ExtensionFeedItem resource names have the form: - /// - /// `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExtensionFeedItems { - get { return extensionFeedItems_; } - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice device_ = global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified; - /// - /// The device for which the extensions will serve. Optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice Device { - get { return device_; } - set { - device_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignExtensionSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignExtensionSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ExtensionType != other.ExtensionType) return false; - if (Campaign != other.Campaign) return false; - if(!extensionFeedItems_.Equals(other.extensionFeedItems_)) return false; - if (Device != other.Device) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) hash ^= ExtensionType.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - hash ^= extensionFeedItems_.GetHashCode(); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) hash ^= Device.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExtensionType); - } - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Device); - } - if (HasCampaign) { - output.WriteRawTag(50); - output.WriteString(Campaign); - } - extensionFeedItems_.WriteTo(output, _repeated_extensionFeedItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExtensionType); - } - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Device); - } - if (HasCampaign) { - output.WriteRawTag(50); - output.WriteString(Campaign); - } - extensionFeedItems_.WriteTo(ref output, _repeated_extensionFeedItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionType); - } - if (HasCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - size += extensionFeedItems_.CalculateSize(_repeated_extensionFeedItems_codec); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Device); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignExtensionSetting other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - ExtensionType = other.ExtensionType; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - extensionFeedItems_.Add(other.extensionFeedItems_); - if (other.Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - Device = other.Device; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 40: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice) input.ReadEnum(); - break; - } - case 50: { - Campaign = input.ReadString(); - break; - } - case 58: { - extensionFeedItems_.AddEntriesFrom(input, _repeated_extensionFeedItems_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 40: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice) input.ReadEnum(); - break; - } - case 50: { - Campaign = input.ReadString(); - break; - } - case 58: { - extensionFeedItems_.AddEntriesFrom(ref input, _repeated_extensionFeedItems_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingResourceNames.g.cs deleted file mode 100755 index 22f76664c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingResourceNames.g.cs +++ /dev/null @@ -1,343 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignExtensionSetting resource. - public sealed partial class CampaignExtensionSettingName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}. - /// - CustomerCampaignExtensionType = 1, - } - - private static gax::PathTemplate s_customerCampaignExtensionType = new gax::PathTemplate("customers/{customer_id}/campaignExtensionSettings/{campaign_id_extension_type}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignExtensionSettingName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignExtensionSettingName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CampaignExtensionSettingName FromCustomerCampaignExtensionType(string customerId, string campaignId, string extensionTypeId) => - new CampaignExtensionSettingName(ResourceNameType.CustomerCampaignExtensionType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), extensionTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}. - /// - public static string Format(string customerId, string campaignId, string extensionTypeId) => - FormatCustomerCampaignExtensionType(customerId, campaignId, extensionTypeId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}. - /// - public static string FormatCustomerCampaignExtensionType(string customerId, string campaignId, string extensionTypeId) => - s_customerCampaignExtensionType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static CampaignExtensionSettingName Parse(string campaignExtensionSettingName) => - Parse(campaignExtensionSettingName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignExtensionSettingName Parse(string campaignExtensionSettingName, bool allowUnparsed) => - TryParse(campaignExtensionSettingName, allowUnparsed, out CampaignExtensionSettingName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignExtensionSettingName, out CampaignExtensionSettingName result) => - TryParse(campaignExtensionSettingName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignExtensionSettingName, bool allowUnparsed, out CampaignExtensionSettingName result) - { - gax::GaxPreconditions.CheckNotNull(campaignExtensionSettingName, nameof(campaignExtensionSettingName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignExtensionType.TryParseName(campaignExtensionSettingName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignExtensionType(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignExtensionSettingName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignExtensionSettingName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null, string extensionTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - ExtensionTypeId = extensionTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - public CampaignExtensionSettingName(string customerId, string campaignId, string extensionTypeId) : this(ResourceNameType.CustomerCampaignExtensionType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), extensionTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ExtensionType ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ExtensionTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignExtensionType: return s_customerCampaignExtensionType.Expand(CustomerId, $"{CampaignId}~{ExtensionTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignExtensionSettingName); - - /// - public bool Equals(CampaignExtensionSettingName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignExtensionSettingName a, CampaignExtensionSettingName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignExtensionSettingName a, CampaignExtensionSettingName b) => !(a == b); - } - - public partial class CampaignExtensionSetting - { - /// - /// -typed view over the resource name - /// property. - /// - internal CampaignExtensionSettingName ResourceNameAsCampaignExtensionSettingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignExtensionSettingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gax::ResourceNameList ExtensionFeedItemsAsExtensionFeedItemNames - { - get => new gax::ResourceNameList(ExtensionFeedItems, s => string.IsNullOrEmpty(s) ? null : ExtensionFeedItemName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingService.g.cs deleted file mode 100755 index 6b24a76c6..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingService.g.cs +++ /dev/null @@ -1,1317 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_extension_setting_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_extension_setting_service.proto - public static partial class CampaignExtensionSettingServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_extension_setting_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignExtensionSettingServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "ZXh0ZW5zaW9uX3NldHRpbmdfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXMvcmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGkNnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWduX2V4dGVuc2lv", - "bl9zZXR0aW5nLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3Rv", - "Ghdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i", - "ZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29v", - "Z2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3Rh", - "dHVzLnByb3RvIr0CCiZNdXRhdGVDYW1wYWlnbkV4dGVuc2lvblNldHRpbmdz", - "UmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECEl0KCm9wZXJhdGlv", - "bnMYAiADKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "Q2FtcGFpZ25FeHRlbnNpb25TZXR0aW5nT3BlcmF0aW9uQgPgQQISFwoPcGFy", - "dGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoV", - "cmVzcG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3Bv", - "bnNlQ29udGVudFR5cGUiywIKIUNhbXBhaWduRXh0ZW5zaW9uU2V0dGluZ09w", - "ZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5GaWVsZE1hc2sSTgoGY3JlYXRlGAEgASgLMjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkV4dGVuc2lvblNldHRpbmdI", - "ABJOCgZ1cGRhdGUYAiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkNhbXBhaWduRXh0ZW5zaW9uU2V0dGluZ0gAEkgKBnJlbW92", - "ZRgDIAEoCUI2+kEzCjFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFp", - "Z25FeHRlbnNpb25TZXR0aW5nSABCCwoJb3BlcmF0aW9uIrYBCidNdXRhdGVD", - "YW1wYWlnbkV4dGVuc2lvblNldHRpbmdzUmVzcG9uc2USMQoVcGFydGlhbF9m", - "YWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSWAoHcmVz", - "dWx0cxgCIAMoCzJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVDYW1wYWlnbkV4dGVuc2lvblNldHRpbmdSZXN1bHQi1wEKJE11", - "dGF0ZUNhbXBhaWduRXh0ZW5zaW9uU2V0dGluZ1Jlc3VsdBJNCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQjb6QTMKMWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "YW1wYWlnbkV4dGVuc2lvblNldHRpbmcSYAoaY2FtcGFpZ25fZXh0ZW5zaW9u", - "X3NldHRpbmcYAiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkNhbXBhaWduRXh0ZW5zaW9uU2V0dGluZzKIAwofQ2FtcGFpZ25F", - "eHRlbnNpb25TZXR0aW5nU2VydmljZRKdAgofTXV0YXRlQ2FtcGFpZ25FeHRl", - "bnNpb25TZXR0aW5ncxJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcy5NdXRhdGVDYW1wYWlnbkV4dGVuc2lvblNldHRpbmdzUmVxdWVzdBpK", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1w", - "YWlnbkV4dGVuc2lvblNldHRpbmdzUmVzcG9uc2UiY4LT5JMCRCI/L3YxMi9j", - "dXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2NhbXBhaWduRXh0ZW5zaW9uU2V0", - "dGluZ3M6bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEY", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xl", - "YXBpcy5jb20vYXV0aC9hZHdvcmRzQpACCiVjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzQiRDYW1wYWlnbkV4dGVuc2lvblNldHRpbmdT", - "ZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6IC", - "A0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSettingReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult.Parser, new[]{ "ResourceName", "CampaignExtensionSetting" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CampaignExtensionSettingService.MutateCampaignExtensionSettings][google.ads.googleads.v12.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings]. - /// - public sealed partial class MutateCampaignExtensionSettingsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignExtensionSettingsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingsRequest(MutateCampaignExtensionSettingsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingsRequest Clone() { - return new MutateCampaignExtensionSettingsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign extension settings are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign extension - /// settings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignExtensionSettingsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignExtensionSettingsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignExtensionSettingsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign extension setting. - /// - public sealed partial class CampaignExtensionSettingOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignExtensionSettingOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExtensionSettingOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExtensionSettingOperation(CampaignExtensionSettingOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignExtensionSettingOperation Clone() { - return new CampaignExtensionSettingOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign - /// extension setting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The campaign extension setting is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed campaign extension - /// setting is expected, in this format: - /// - /// `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignExtensionSettingOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignExtensionSettingOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignExtensionSettingOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a campaign extension setting mutate. - /// - public sealed partial class MutateCampaignExtensionSettingsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignExtensionSettingsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingsResponse(MutateCampaignExtensionSettingsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingsResponse Clone() { - return new MutateCampaignExtensionSettingsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignExtensionSettingsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignExtensionSettingsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignExtensionSettingsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign extension setting mutate. - /// - public sealed partial class MutateCampaignExtensionSettingResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignExtensionSettingResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingResult(MutateCampaignExtensionSettingResult other) : this() { - resourceName_ = other.resourceName_; - campaignExtensionSetting_ = other.campaignExtensionSetting_ != null ? other.campaignExtensionSetting_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignExtensionSettingResult Clone() { - return new MutateCampaignExtensionSettingResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_extension_setting" field. - public const int CampaignExtensionSettingFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting campaignExtensionSetting_; - /// - /// The mutated campaign extension setting with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting CampaignExtensionSetting { - get { return campaignExtensionSetting_; } - set { - campaignExtensionSetting_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignExtensionSettingResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignExtensionSettingResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignExtensionSetting, other.CampaignExtensionSetting)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignExtensionSetting_ != null) hash ^= CampaignExtensionSetting.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignExtensionSetting_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignExtensionSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignExtensionSetting_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignExtensionSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignExtensionSetting_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignExtensionSetting); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignExtensionSettingResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignExtensionSetting_ != null) { - if (campaignExtensionSetting_ == null) { - CampaignExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - CampaignExtensionSetting.MergeFrom(other.CampaignExtensionSetting); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignExtensionSetting_ == null) { - CampaignExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - input.ReadMessage(CampaignExtensionSetting); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignExtensionSetting_ == null) { - CampaignExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - input.ReadMessage(CampaignExtensionSetting); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceClient.g.cs deleted file mode 100755 index c9dbee5cc..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceClient.g.cs +++ /dev/null @@ -1,613 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignExtensionSettingServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignExtensionSettingServiceSettings GetDefault() => new CampaignExtensionSettingServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignExtensionSettingServiceSettings() - { - } - - private CampaignExtensionSettingServiceSettings(CampaignExtensionSettingServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignExtensionSettingsSettings = existing.MutateCampaignExtensionSettingsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignExtensionSettingServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignExtensionSettingServiceClient.MutateCampaignExtensionSettings and - /// CampaignExtensionSettingServiceClient.MutateCampaignExtensionSettingsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignExtensionSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignExtensionSettingServiceSettings Clone() => new CampaignExtensionSettingServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class CampaignExtensionSettingServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignExtensionSettingServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignExtensionSettingServiceClientBuilder() : base(CampaignExtensionSettingServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignExtensionSettingServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignExtensionSettingServiceClient Build() - { - CampaignExtensionSettingServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignExtensionSettingServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignExtensionSettingServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignExtensionSettingServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignExtensionSettingServiceClient.ChannelPool; - } - - /// CampaignExtensionSettingService client wrapper, for convenient use. - /// - /// Service to manage campaign extension settings. - /// - public abstract partial class CampaignExtensionSettingServiceClient - { - /// - /// The default endpoint for the CampaignExtensionSettingService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignExtensionSettingService scopes. - /// - /// The default CampaignExtensionSettingService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignExtensionSettingService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignExtensionSettingServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignExtensionSettingServiceClient Create() => - new CampaignExtensionSettingServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignExtensionSettingServiceClient Create(grpccore::CallInvoker callInvoker, CampaignExtensionSettingServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignExtensionSettingService.CampaignExtensionSettingServiceClient grpcClient = new CampaignExtensionSettingService.CampaignExtensionSettingServiceClient(callInvoker); - return new CampaignExtensionSettingServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignExtensionSettingService client - public virtual CampaignExtensionSettingService.CampaignExtensionSettingServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignExtensionSettingsResponse MutateCampaignExtensionSettings(MutateCampaignExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignExtensionSettingsAsync(MutateCampaignExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignExtensionSettingsAsync(MutateCampaignExtensionSettingsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignExtensionSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose campaign extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual campaign extension - /// settings. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignExtensionSettingsResponse MutateCampaignExtensionSettings(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignExtensionSettings(new MutateCampaignExtensionSettingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose campaign extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual campaign extension - /// settings. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignExtensionSettingsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignExtensionSettingsAsync(new MutateCampaignExtensionSettingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose campaign extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual campaign extension - /// settings. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignExtensionSettingsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignExtensionSettingsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignExtensionSettingService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign extension settings. - /// - public sealed partial class CampaignExtensionSettingServiceClientImpl : CampaignExtensionSettingServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignExtensionSettings; - - /// - /// Constructs a client wrapper for the CampaignExtensionSettingService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CampaignExtensionSettingServiceClientImpl(CampaignExtensionSettingService.CampaignExtensionSettingServiceClient grpcClient, CampaignExtensionSettingServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignExtensionSettingServiceSettings effectiveSettings = settings ?? CampaignExtensionSettingServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignExtensionSettings = clientHelper.BuildApiCall("MutateCampaignExtensionSettings", grpcClient.MutateCampaignExtensionSettingsAsync, grpcClient.MutateCampaignExtensionSettings, effectiveSettings.MutateCampaignExtensionSettingsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignExtensionSettings); - Modify_MutateCampaignExtensionSettingsApiCall(ref _callMutateCampaignExtensionSettings); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignExtensionSettingsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignExtensionSettingService.CampaignExtensionSettingServiceClient grpcClient, CampaignExtensionSettingServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignExtensionSettingService client - public override CampaignExtensionSettingService.CampaignExtensionSettingServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignExtensionSettingsRequest(ref MutateCampaignExtensionSettingsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignExtensionSettingsResponse MutateCampaignExtensionSettings(MutateCampaignExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignExtensionSettingsRequest(ref request, ref callSettings); - return _callMutateCampaignExtensionSettings.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignExtensionSettingsAsync(MutateCampaignExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignExtensionSettingsRequest(ref request, ref callSettings); - return _callMutateCampaignExtensionSettings.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceGrpc.g.cs deleted file mode 100755 index 393c4fb0f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceGrpc.g.cs +++ /dev/null @@ -1,357 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_extension_setting_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign extension settings. - /// - public static partial class CampaignExtensionSettingService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignExtensionSettingService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignExtensionSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignExtensionSettingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignExtensionSettings = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignExtensionSettings", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignExtensionSettingsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignExtensionSettingsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignExtensionSettingService - [grpc::BindServiceMethod(typeof(CampaignExtensionSettingService), "BindService")] - public abstract partial class CampaignExtensionSettingServiceBase - { - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignExtensionSettingService - public partial class CampaignExtensionSettingServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignExtensionSettingService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignExtensionSettingServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignExtensionSettingService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignExtensionSettingServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignExtensionSettingServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignExtensionSettingServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsResponse MutateCampaignExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignExtensionSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsResponse MutateCampaignExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignExtensionSettings, null, options, request); - } - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignExtensionSettingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignExtensionSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignExtensionSettingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignExtensionSettings, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignExtensionSettingServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignExtensionSettingServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignExtensionSettingServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignExtensionSettings, serviceImpl.MutateCampaignExtensionSettings).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignExtensionSettingServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignExtensionSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignExtensionSettings)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceResourceNames.g.cs deleted file mode 100755 index 934e8269b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignExtensionSettingServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignExtensionSettingOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignExtensionSettingName RemoveAsCampaignExtensionSettingName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignExtensionSettingName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignExtensionSettingResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::CampaignExtensionSettingName ResourceNameAsCampaignExtensionSettingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignExtensionSettingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignFeed.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignFeed.g.cs deleted file mode 100755 index 457d2dea8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignFeed.g.cs +++ /dev/null @@ -1,494 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_feed.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_feed.proto - public static partial class CampaignFeedReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_feed.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignFeedReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2ZlZWQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMaN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vbWF0Y2hpbmdf", - "ZnVuY3Rpb24ucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9mZWVkX2xpbmtfc3RhdHVzLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvcGxhY2Vob2xkZXJfdHlwZS5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90byLXBAoMQ2FtcGFpZ25GZWVkEkQKDXJlc291cmNlX25hbWUYASABKAlC", - "LeBBBfpBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduRmVl", - "ZBI4CgRmZWVkGAcgASgJQiXgQQX6QR8KHWdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9GZWVkSACIAQESQAoIY2FtcGFpZ24YCCABKAlCKeBBBfpBIwohZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduSAGIAQESXgoRcGxhY2Vo", - "b2xkZXJfdHlwZXMYBCADKA4yQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuUGxhY2Vob2xkZXJUeXBlRW51bS5QbGFjZWhvbGRlclR5cGUSTAoR", - "bWF0Y2hpbmdfZnVuY3Rpb24YBSABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLk1hdGNoaW5nRnVuY3Rpb24SVgoGc3RhdHVzGAYgASgO", - "MkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZlZWRMaW5rU3Rh", - "dHVzRW51bS5GZWVkTGlua1N0YXR1c0ID4EEDOmnqQWYKJWdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9DYW1wYWlnbkZlZWQSPWN1c3RvbWVycy97Y3VzdG9t", - "ZXJfaWR9L2NhbXBhaWduRmVlZHMve2NhbXBhaWduX2lkfX57ZmVlZF9pZH1C", - "BwoFX2ZlZWRCCwoJX2NhbXBhaWduQoMCCiZjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlc0IRQ2FtcGFpZ25GZWVkUHJvdG9QAVpLZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.MatchingFunctionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed), global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed.Parser, new[]{ "ResourceName", "Feed", "Campaign", "PlaceholderTypes", "MatchingFunction", "Status" }, new[]{ "Feed", "Campaign" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign feed. - /// - public sealed partial class CampaignFeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignFeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignFeedReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeed(CampaignFeed other) : this() { - resourceName_ = other.resourceName_; - feed_ = other.feed_; - campaign_ = other.campaign_; - placeholderTypes_ = other.placeholderTypes_.Clone(); - matchingFunction_ = other.matchingFunction_ != null ? other.matchingFunction_.Clone() : null; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeed Clone() { - return new CampaignFeed(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign feed. - /// Campaign feed resource names have the form: - /// - /// `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 7; - private string feed_; - /// - /// Immutable. The feed to which the CampaignFeed belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_ ?? ""; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeed { - get { return feed_ != null; } - } - /// Clears the value of the "feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeed() { - feed_ = null; - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 8; - private string campaign_; - /// - /// Immutable. The campaign to which the CampaignFeed belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "placeholder_types" field. - public const int PlaceholderTypesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_placeholderTypes_codec - = pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) x); - private readonly pbc::RepeatedField placeholderTypes_ = new pbc::RepeatedField(); - /// - /// Indicates which placeholder types the feed may populate under the connected - /// campaign. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PlaceholderTypes { - get { return placeholderTypes_; } - } - - /// Field number for the "matching_function" field. - public const int MatchingFunctionFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.MatchingFunction matchingFunction_; - /// - /// Matching function associated with the CampaignFeed. - /// The matching function is used to filter the set of feed items selected. - /// Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MatchingFunction MatchingFunction { - get { return matchingFunction_; } - set { - matchingFunction_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified; - /// - /// Output only. Status of the campaign feed. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignFeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignFeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Feed != other.Feed) return false; - if (Campaign != other.Campaign) return false; - if(!placeholderTypes_.Equals(other.placeholderTypes_)) return false; - if (!object.Equals(MatchingFunction, other.MatchingFunction)) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasFeed) hash ^= Feed.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - hash ^= placeholderTypes_.GetHashCode(); - if (matchingFunction_ != null) hash ^= MatchingFunction.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - placeholderTypes_.WriteTo(output, _repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - output.WriteRawTag(42); - output.WriteMessage(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(58); - output.WriteString(Feed); - } - if (HasCampaign) { - output.WriteRawTag(66); - output.WriteString(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - placeholderTypes_.WriteTo(ref output, _repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - output.WriteRawTag(42); - output.WriteMessage(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(58); - output.WriteString(Feed); - } - if (HasCampaign) { - output.WriteRawTag(66); - output.WriteString(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasFeed) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - if (HasCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - size += placeholderTypes_.CalculateSize(_repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignFeed other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasFeed) { - Feed = other.Feed; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - placeholderTypes_.Add(other.placeholderTypes_); - if (other.matchingFunction_ != null) { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - MatchingFunction.MergeFrom(other.MatchingFunction); - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: - case 32: { - placeholderTypes_.AddEntriesFrom(input, _repeated_placeholderTypes_codec); - break; - } - case 42: { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - input.ReadMessage(MatchingFunction); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus) input.ReadEnum(); - break; - } - case 58: { - Feed = input.ReadString(); - break; - } - case 66: { - Campaign = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: - case 32: { - placeholderTypes_.AddEntriesFrom(ref input, _repeated_placeholderTypes_codec); - break; - } - case 42: { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - input.ReadMessage(MatchingFunction); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus) input.ReadEnum(); - break; - } - case 58: { - Feed = input.ReadString(); - break; - } - case 66: { - Campaign = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignFeedError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignFeedError.g.cs deleted file mode 100755 index a98e37def..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignFeedError.g.cs +++ /dev/null @@ -1,269 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_feed_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_feed_error.proto - public static partial class CampaignFeedErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_feed_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignFeedErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2Zl", - "ZWRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMijAMKFUNhbXBhaWduRmVlZEVycm9yRW51bSLyAgoRQ2FtcGFpZ25GZWVk", - "RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESLAooRkVFRF9B", - "TFJFQURZX0VYSVNUU19GT1JfUExBQ0VIT0xERVJfVFlQRRACEiIKHkNBTk5P", - "VF9DUkVBVEVfRk9SX1JFTU9WRURfRkVFRBAEEjAKLENBTk5PVF9DUkVBVEVf", - "QUxSRUFEWV9FWElTVElOR19DQU1QQUlHTl9GRUVEEAUSJwojQ0FOTk9UX01P", - "RElGWV9SRU1PVkVEX0NBTVBBSUdOX0ZFRUQQBhIcChhJTlZBTElEX1BMQUNF", - "SE9MREVSX1RZUEUQBxIsCihNSVNTSU5HX0ZFRURNQVBQSU5HX0ZPUl9QTEFD", - "RUhPTERFUl9UWVBFEAgSJgoiTk9fRVhJU1RJTkdfTE9DQVRJT05fQ1VTVE9N", - "RVJfRkVFRBAJEh4KGkxFR0FDWV9GRUVEX1RZUEVfUkVBRF9PTkxZEApC9gEK", - "I2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhZDYW1wYWln", - "bkZlZWRFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6IC", - "A0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorEnum.Types.CampaignFeedError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign feed errors. - /// - public sealed partial class CampaignFeedErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignFeedErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeedErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeedErrorEnum(CampaignFeedErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeedErrorEnum Clone() { - return new CampaignFeedErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignFeedErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignFeedErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignFeedErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignFeedErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign feed errors. - /// - public enum CampaignFeedError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An active feed already exists for this campaign and placeholder type. - /// - [pbr::OriginalName("FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE")] FeedAlreadyExistsForPlaceholderType = 2, - /// - /// The specified feed is removed. - /// - [pbr::OriginalName("CANNOT_CREATE_FOR_REMOVED_FEED")] CannotCreateForRemovedFeed = 4, - /// - /// The CampaignFeed already exists. UPDATE should be used to modify the - /// existing CampaignFeed. - /// - [pbr::OriginalName("CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED")] CannotCreateAlreadyExistingCampaignFeed = 5, - /// - /// Cannot update removed campaign feed. - /// - [pbr::OriginalName("CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED")] CannotModifyRemovedCampaignFeed = 6, - /// - /// Invalid placeholder type. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_TYPE")] InvalidPlaceholderType = 7, - /// - /// Feed mapping for this placeholder type does not exist. - /// - [pbr::OriginalName("MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE")] MissingFeedmappingForPlaceholderType = 8, - /// - /// Location CampaignFeeds cannot be created unless there is a location - /// CustomerFeed for the specified feed. - /// - [pbr::OriginalName("NO_EXISTING_LOCATION_CUSTOMER_FEED")] NoExistingLocationCustomerFeed = 9, - /// - /// Feed is read only. - /// - [pbr::OriginalName("LEGACY_FEED_TYPE_READ_ONLY")] LegacyFeedTypeReadOnly = 10, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignFeedResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignFeedResourceNames.g.cs deleted file mode 100755 index 0bcf8e29b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignFeedResourceNames.g.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignFeed resource. - public sealed partial class CampaignFeedName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}. - /// - CustomerCampaignFeed = 1, - } - - private static gax::PathTemplate s_customerCampaignFeed = new gax::PathTemplate("customers/{customer_id}/campaignFeeds/{campaign_id_feed_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignFeedName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignFeedName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignFeedName FromCustomerCampaignFeed(string customerId, string campaignId, string feedId) => - new CampaignFeedName(ResourceNameType.CustomerCampaignFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}. - /// - public static string Format(string customerId, string campaignId, string feedId) => - FormatCustomerCampaignFeed(customerId, campaignId, feedId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}. - /// - public static string FormatCustomerCampaignFeed(string customerId, string campaignId, string feedId) => - s_customerCampaignFeed.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignFeedName Parse(string campaignFeedName) => Parse(campaignFeedName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignFeedName Parse(string campaignFeedName, bool allowUnparsed) => - TryParse(campaignFeedName, allowUnparsed, out CampaignFeedName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignFeedName, out CampaignFeedName result) => - TryParse(campaignFeedName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignFeedName, bool allowUnparsed, out CampaignFeedName result) - { - gax::GaxPreconditions.CheckNotNull(campaignFeedName, nameof(campaignFeedName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignFeed.TryParseName(campaignFeedName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignFeed(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignFeedName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignFeedName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null, string feedId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - FeedId = feedId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - public CampaignFeedName(string customerId, string campaignId, string feedId) : this(ResourceNameType.CustomerCampaignFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignFeed: return s_customerCampaignFeed.Expand(CustomerId, $"{CampaignId}~{FeedId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignFeedName); - - /// - public bool Equals(CampaignFeedName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignFeedName a, CampaignFeedName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignFeedName a, CampaignFeedName b) => !(a == b); - } - - public partial class CampaignFeed - { - /// - /// -typed view over the resource name property. - /// - internal CampaignFeedName ResourceNameAsCampaignFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignFeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignFeedService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignFeedService.g.cs deleted file mode 100755 index d9a9d0325..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignFeedService.g.cs +++ /dev/null @@ -1,1308 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_feed_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_feed_service.proto - public static partial class CampaignFeedServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_feed_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignFeedServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "ZmVlZF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9yZXNw", - "b25zZV9jb250ZW50X3R5cGUucHJvdG8aNmdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXMvY2FtcGFpZ25fZmVlZC5wcm90bxocZ29vZ2xlL2Fw", - "aS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8a", - "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkv", - "cmVzb3VyY2UucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnBy", - "b3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKlAgoaTXV0YXRlQ2FtcGFp", - "Z25GZWVkc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJRCgpv", - "cGVyYXRpb25zGAIgAygLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkNhbXBhaWduRmVlZE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxf", - "ZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3Bv", - "bnNlX2NvbnRlbnRfdHlwZRgFIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5SZXNwb25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNv", - "bnRlbnRUeXBlIpsCChVDYW1wYWlnbkZlZWRPcGVyYXRpb24SLwoLdXBkYXRl", - "X21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkIKBmNy", - "ZWF0ZRgBIAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQ2FtcGFpZ25GZWVkSAASQgoGdXBkYXRlGAIgASgLMjAuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkZlZWRIABI8CgZy", - "ZW1vdmUYAyABKAlCKvpBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Nh", - "bXBhaWduRmVlZEgAQgsKCW9wZXJhdGlvbiKeAQobTXV0YXRlQ2FtcGFpZ25G", - "ZWVkc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzIS", - "Lmdvb2dsZS5ycGMuU3RhdHVzEkwKB3Jlc3VsdHMYAiADKAsyOy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25GZWVk", - "UmVzdWx0IqYBChhNdXRhdGVDYW1wYWlnbkZlZWRSZXN1bHQSQQoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUIq+kEnCiVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q2FtcGFpZ25GZWVkEkcKDWNhbXBhaWduX2ZlZWQYAiABKAsyMC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWduRmVlZDLMAgoT", - "Q2FtcGFpZ25GZWVkU2VydmljZRLtAQoTTXV0YXRlQ2FtcGFpZ25GZWVkcxI9", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1w", - "YWlnbkZlZWRzUmVxdWVzdBo+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkZlZWRzUmVzcG9uc2UiV4LT5JMCOCIz", - "L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2NhbXBhaWduRmVlZHM6", - "bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5j", - "b20vYXV0aC9hZHdvcmRzQoQCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzQhhDYW1wYWlnbkZlZWRTZXJ2aWNlUHJvdG9QAVpJZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignFeedReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult.Parser, new[]{ "ResourceName", "CampaignFeed" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignFeedService.MutateCampaignFeeds][google.ads.googleads.v12.services.CampaignFeedService.MutateCampaignFeeds]. - /// - public sealed partial class MutateCampaignFeedsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignFeedsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignFeedServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedsRequest(MutateCampaignFeedsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedsRequest Clone() { - return new MutateCampaignFeedsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign feeds are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign feeds. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignFeedsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignFeedsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignFeedsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign feed. - /// - public sealed partial class CampaignFeedOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignFeedOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignFeedServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeedOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeedOperation(CampaignFeedOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignFeedOperation Clone() { - return new CampaignFeedOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign feed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The campaign feed is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed campaign feed is - /// expected, in this format: - /// - /// `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignFeedOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignFeedOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignFeedOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a campaign feed mutate. - /// - public sealed partial class MutateCampaignFeedsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignFeedsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignFeedServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedsResponse(MutateCampaignFeedsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedsResponse Clone() { - return new MutateCampaignFeedsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignFeedsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignFeedsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignFeedsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign feed mutate. - /// - public sealed partial class MutateCampaignFeedResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignFeedResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignFeedServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedResult(MutateCampaignFeedResult other) : this() { - resourceName_ = other.resourceName_; - campaignFeed_ = other.campaignFeed_ != null ? other.campaignFeed_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignFeedResult Clone() { - return new MutateCampaignFeedResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_feed" field. - public const int CampaignFeedFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed campaignFeed_; - /// - /// The mutated campaign feed with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed CampaignFeed { - get { return campaignFeed_; } - set { - campaignFeed_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignFeedResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignFeedResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignFeed, other.CampaignFeed)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignFeed_ != null) hash ^= CampaignFeed.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignFeed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignFeed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignFeed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignFeed); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignFeedResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignFeed_ != null) { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - CampaignFeed.MergeFrom(other.CampaignFeed); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - input.ReadMessage(CampaignFeed); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - input.ReadMessage(CampaignFeed); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceClient.g.cs deleted file mode 100755 index 80c9ffc06..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceClient.g.cs +++ /dev/null @@ -1,570 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignFeedServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignFeedServiceSettings GetDefault() => new CampaignFeedServiceSettings(); - - /// Constructs a new object with default settings. - public CampaignFeedServiceSettings() - { - } - - private CampaignFeedServiceSettings(CampaignFeedServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignFeedsSettings = existing.MutateCampaignFeedsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignFeedServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignFeedServiceClient.MutateCampaignFeeds and - /// CampaignFeedServiceClient.MutateCampaignFeedsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignFeedsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignFeedServiceSettings Clone() => new CampaignFeedServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignFeedServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignFeedServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignFeedServiceClientBuilder() : base(CampaignFeedServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignFeedServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignFeedServiceClient Build() - { - CampaignFeedServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignFeedServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignFeedServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignFeedServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignFeedServiceClient.ChannelPool; - } - - /// CampaignFeedService client wrapper, for convenient use. - /// - /// Service to manage campaign feeds. - /// - public abstract partial class CampaignFeedServiceClient - { - /// - /// The default endpoint for the CampaignFeedService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignFeedService scopes. - /// - /// The default CampaignFeedService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignFeedService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignFeedServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignFeedServiceClient Create() => new CampaignFeedServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignFeedServiceClient Create(grpccore::CallInvoker callInvoker, CampaignFeedServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignFeedService.CampaignFeedServiceClient grpcClient = new CampaignFeedService.CampaignFeedServiceClient(callInvoker); - return new CampaignFeedServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignFeedService client - public virtual CampaignFeedService.CampaignFeedServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignFeedsResponse MutateCampaignFeeds(MutateCampaignFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignFeedsAsync(MutateCampaignFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignFeedsAsync(MutateCampaignFeedsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign feeds. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignFeedsResponse MutateCampaignFeeds(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignFeeds(new MutateCampaignFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign feeds. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignFeedsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignFeedsAsync(new MutateCampaignFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign feeds. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignFeedsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignFeedsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignFeedService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign feeds. - /// - public sealed partial class CampaignFeedServiceClientImpl : CampaignFeedServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignFeeds; - - /// - /// Constructs a client wrapper for the CampaignFeedService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CampaignFeedServiceClientImpl(CampaignFeedService.CampaignFeedServiceClient grpcClient, CampaignFeedServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignFeedServiceSettings effectiveSettings = settings ?? CampaignFeedServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignFeeds = clientHelper.BuildApiCall("MutateCampaignFeeds", grpcClient.MutateCampaignFeedsAsync, grpcClient.MutateCampaignFeeds, effectiveSettings.MutateCampaignFeedsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignFeeds); - Modify_MutateCampaignFeedsApiCall(ref _callMutateCampaignFeeds); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignFeedsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignFeedService.CampaignFeedServiceClient grpcClient, CampaignFeedServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignFeedService client - public override CampaignFeedService.CampaignFeedServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignFeedsRequest(ref MutateCampaignFeedsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignFeedsResponse MutateCampaignFeeds(MutateCampaignFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignFeedsRequest(ref request, ref callSettings); - return _callMutateCampaignFeeds.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignFeedsAsync(MutateCampaignFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignFeedsRequest(ref request, ref callSettings); - return _callMutateCampaignFeeds.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceGrpc.g.cs deleted file mode 100755 index 72d896edb..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceGrpc.g.cs +++ /dev/null @@ -1,337 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_feed_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign feeds. - /// - public static partial class CampaignFeedService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignFeedService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignFeedsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignFeedsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignFeeds = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignFeeds", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignFeedsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignFeedsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignFeedServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignFeedService - [grpc::BindServiceMethod(typeof(CampaignFeedService), "BindService")] - public abstract partial class CampaignFeedServiceBase - { - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignFeedService - public partial class CampaignFeedServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignFeedService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignFeedServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignFeedService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignFeedServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignFeedServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignFeedServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsResponse MutateCampaignFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignFeeds(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsResponse MutateCampaignFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignFeeds, null, options, request); - } - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignFeedsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignFeedError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignFeeds, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignFeedServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignFeedServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignFeedServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignFeeds, serviceImpl.MutateCampaignFeeds).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignFeedServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignFeeds, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignFeeds)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceResourceNames.g.cs deleted file mode 100755 index d81972510..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignFeedServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignFeedOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignFeedName RemoveAsCampaignFeedName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignFeedName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignFeedResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignFeedName ResourceNameAsCampaignFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignFeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignGroup.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignGroup.g.cs deleted file mode 100755 index 215c4eabc..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignGroup.g.cs +++ /dev/null @@ -1,385 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_group.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_group.proto - public static partial class CampaignGroupReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_group.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignGroupReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2dyb3VwLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25f", - "Z3JvdXBfc3RhdHVzLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9y", - "LnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIrsCCg1DYW1wYWln", - "bkdyb3VwEkUKDXJlc291cmNlX25hbWUYASABKAlCLuBBBfpBKAomZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduR3JvdXASDwoCaWQYAyABKANC", - "A+BBAxIMCgRuYW1lGAQgASgJElsKBnN0YXR1cxgFIAEoDjJLLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DYW1wYWlnbkdyb3VwU3RhdHVzRW51", - "bS5DYW1wYWlnbkdyb3VwU3RhdHVzOmfqQWQKJmdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DYW1wYWlnbkdyb3VwEjpjdXN0b21lcnMve2N1c3RvbWVyX2lk", - "fS9jYW1wYWlnbkdyb3Vwcy97Y2FtcGFpZ25fZ3JvdXBfaWR9QoQCCiZjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0ISQ2FtcGFpZ25H", - "cm91cFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6IC", - "A0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJH", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup), global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup.Parser, new[]{ "ResourceName", "Id", "Name", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign group. - /// - public sealed partial class CampaignGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignGroupReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroup(CampaignGroup other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroup Clone() { - return new CampaignGroup(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign group. - /// Campaign group resource names have the form: - /// - /// `customers/{customer_id}/campaignGroups/{campaign_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 3; - private long id_; - /// - /// Output only. The ID of the campaign group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// The name of the campaign group. - /// - /// This field is required and should not be empty when creating new campaign - /// groups. - /// - /// It must not contain any null (code point 0x0), NL line feed - /// (code point 0xA) or carriage return (code point 0xD) characters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus.Unspecified; - /// - /// The status of the campaign group. - /// - /// When a new campaign group is added, the status defaults to ENABLED. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(24); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignGroup other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Id = input.ReadInt64(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Id = input.ReadInt64(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignGroupResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignGroupResourceNames.g.cs deleted file mode 100755 index 77f4544d8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignGroupResourceNames.g.cs +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignGroup resource. - public sealed partial class CampaignGroupName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignGroups/{campaign_group_id}. - /// - CustomerCampaignGroup = 1, - } - - private static gax::PathTemplate s_customerCampaignGroup = new gax::PathTemplate("customers/{customer_id}/campaignGroups/{campaign_group_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignGroupName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignGroupName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignGroups/{campaign_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignGroup ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignGroupName FromCustomerCampaignGroup(string customerId, string campaignGroupId) => - new CampaignGroupName(ResourceNameType.CustomerCampaignGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignGroupId, nameof(campaignGroupId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignGroups/{campaign_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignGroup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignGroups/{campaign_group_id}. - /// - public static string Format(string customerId, string campaignGroupId) => - FormatCustomerCampaignGroup(customerId, campaignGroupId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignGroups/{campaign_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignGroup ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignGroups/{campaign_group_id}. - /// - public static string FormatCustomerCampaignGroup(string customerId, string campaignGroupId) => - s_customerCampaignGroup.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(campaignGroupId, nameof(campaignGroupId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignGroups/{campaign_group_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignGroupName Parse(string campaignGroupName) => Parse(campaignGroupName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignGroups/{campaign_group_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignGroupName Parse(string campaignGroupName, bool allowUnparsed) => - TryParse(campaignGroupName, allowUnparsed, out CampaignGroupName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignGroups/{campaign_group_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignGroupName, out CampaignGroupName result) => - TryParse(campaignGroupName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaignGroups/{campaign_group_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignGroupName, bool allowUnparsed, out CampaignGroupName result) - { - gax::GaxPreconditions.CheckNotNull(campaignGroupName, nameof(campaignGroupName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignGroup.TryParseName(campaignGroupName, out resourceName)) - { - result = FromCustomerCampaignGroup(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignGroupName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CampaignGroupName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignGroupId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignGroupId = campaignGroupId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignGroups/{campaign_group_id} - /// - /// The Customer ID. Must not be null or empty. - /// The CampaignGroup ID. Must not be null or empty. - public CampaignGroupName(string customerId, string campaignGroupId) : this(ResourceNameType.CustomerCampaignGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignGroupId, nameof(campaignGroupId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CampaignGroup ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string CampaignGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignGroup: return s_customerCampaignGroup.Expand(CustomerId, CampaignGroupId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignGroupName); - - /// - public bool Equals(CampaignGroupName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignGroupName a, CampaignGroupName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignGroupName a, CampaignGroupName b) => !(a == b); - } - - public partial class CampaignGroup - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignGroupName ResourceNameAsCampaignGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignGroupName CampaignGroupName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CampaignGroupName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignGroupService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignGroupService.g.cs deleted file mode 100755 index ae6fd31f8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignGroupService.g.cs +++ /dev/null @@ -1,1309 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_group_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_group_service.proto - public static partial class CampaignGroupServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_group_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignGroupServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "Z3JvdXBfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVz", - "cG9uc2VfY29udGVudF90eXBlLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2NhbXBhaWduX2dyb3VwLnByb3RvGhxnb29nbGUv", - "YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", - "cHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIqcCChtNdXRhdGVDYW1w", - "YWlnbkdyb3Vwc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJS", - "CgpvcGVyYXRpb25zGAIgAygLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLkNhbXBhaWduR3JvdXBPcGVyYXRpb25CA+BBAhIXCg9wYXJ0", - "aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCBJqChVy", - "ZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9u", - "c2VDb250ZW50VHlwZSKfAgoWQ2FtcGFpZ25Hcm91cE9wZXJhdGlvbhIvCgt1", - "cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sS", - "QwoGY3JlYXRlGAEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5DYW1wYWlnbkdyb3VwSAASQwoGdXBkYXRlGAIgASgLMjEuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkdyb3Vw", - "SAASPQoGcmVtb3ZlGAMgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DYW1wYWlnbkdyb3VwSABCCwoJb3BlcmF0aW9uIqABChxNdXRhdGVD", - "YW1wYWlnbkdyb3Vwc1Jlc3BvbnNlEk0KB3Jlc3VsdHMYAiADKAsyPC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25H", - "cm91cFJlc3VsdBIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAyABKAsyEi5n", - "b29nbGUucnBjLlN0YXR1cyKtAQoZTXV0YXRlQ2FtcGFpZ25Hcm91cFJlc3Vs", - "dBJFCg1yZXNvdXJjZV9uYW1lGAEgASgJQi7gQQL6QSgKJmdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9DYW1wYWlnbkdyb3VwEkkKDmNhbXBhaWduX2dyb3Vw", - "GAIgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5D", - "YW1wYWlnbkdyb3VwMtECChRDYW1wYWlnbkdyb3VwU2VydmljZRLxAQoUTXV0", - "YXRlQ2FtcGFpZ25Hcm91cHMSPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuTXV0YXRlQ2FtcGFpZ25Hcm91cHNSZXF1ZXN0Gj8uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduR3Jv", - "dXBzUmVzcG9uc2UiWILT5JMCOSI0L3YxMi9jdXN0b21lcnMve2N1c3RvbWVy", - "X2lkPSp9L2NhbXBhaWduR3JvdXBzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lk", - "LG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0", - "dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KFAgolY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IZQ2FtcGFpZ25H", - "cm91cFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZp", - "Y2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2Vz", - "ygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignGroupReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult.Parser, new[]{ "ResourceName", "CampaignGroup" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignGroupService.MutateCampaignGroups][google.ads.googleads.v12.services.CampaignGroupService.MutateCampaignGroups]. - /// - public sealed partial class MutateCampaignGroupsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignGroupsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignGroupServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupsRequest(MutateCampaignGroupsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupsRequest Clone() { - return new MutateCampaignGroupsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign groups are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign groups. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignGroupsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignGroupsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignGroupsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign group. - /// - public sealed partial class CampaignGroupOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignGroupOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignGroupServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroupOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroupOperation(CampaignGroupOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroupOperation Clone() { - return new CampaignGroupOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign - /// group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The campaign group is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed campaign group is - /// expected, in this format: - /// - /// `customers/{customer_id}/campaignGroups/{campaign_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignGroupOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignGroupOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignGroupOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for campaign group mutate. - /// - public sealed partial class MutateCampaignGroupsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignGroupsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignGroupServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupsResponse(MutateCampaignGroupsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupsResponse Clone() { - return new MutateCampaignGroupsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignGroupsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignGroupsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignGroupsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign group mutate. - /// - public sealed partial class MutateCampaignGroupResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignGroupResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignGroupServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupResult(MutateCampaignGroupResult other) : this() { - resourceName_ = other.resourceName_; - campaignGroup_ = other.campaignGroup_ != null ? other.campaignGroup_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignGroupResult Clone() { - return new MutateCampaignGroupResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_group" field. - public const int CampaignGroupFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup campaignGroup_; - /// - /// The mutated campaign group with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup CampaignGroup { - get { return campaignGroup_; } - set { - campaignGroup_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignGroupResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignGroupResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignGroup, other.CampaignGroup)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignGroup_ != null) hash ^= CampaignGroup.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignGroupResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignGroup_ != null) { - if (campaignGroup_ == null) { - CampaignGroup = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - CampaignGroup.MergeFrom(other.CampaignGroup); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignGroup_ == null) { - CampaignGroup = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - input.ReadMessage(CampaignGroup); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignGroup_ == null) { - CampaignGroup = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - input.ReadMessage(CampaignGroup); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceClient.g.cs deleted file mode 100755 index af2f6ebf5..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceClient.g.cs +++ /dev/null @@ -1,370 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignGroupServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignGroupServiceSettings GetDefault() => new CampaignGroupServiceSettings(); - - /// Constructs a new object with default settings. - public CampaignGroupServiceSettings() - { - } - - private CampaignGroupServiceSettings(CampaignGroupServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignGroupsSettings = existing.MutateCampaignGroupsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignGroupServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignGroupServiceClient.MutateCampaignGroups and - /// CampaignGroupServiceClient.MutateCampaignGroupsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignGroupsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignGroupServiceSettings Clone() => new CampaignGroupServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignGroupServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignGroupServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignGroupServiceClientBuilder() : base(CampaignGroupServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignGroupServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignGroupServiceClient Build() - { - CampaignGroupServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignGroupServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignGroupServiceClient.ChannelPool; - } - - /// CampaignGroupService client wrapper, for convenient use. - /// - /// Service to manage campaign groups. - /// - public abstract partial class CampaignGroupServiceClient - { - /// - /// The default endpoint for the CampaignGroupService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignGroupService scopes. - /// - /// The default CampaignGroupService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignGroupService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignGroupServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignGroupServiceClient Create() => new CampaignGroupServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignGroupServiceClient Create(grpccore::CallInvoker callInvoker, CampaignGroupServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignGroupService.CampaignGroupServiceClient grpcClient = new CampaignGroupService.CampaignGroupServiceClient(callInvoker); - return new CampaignGroupServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignGroupService client - public virtual CampaignGroupService.CampaignGroupServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignGroupsResponse MutateCampaignGroups(MutateCampaignGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignGroupsAsync(MutateCampaignGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignGroupsAsync(MutateCampaignGroupsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign groups. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignGroupsResponse MutateCampaignGroups(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignGroups(new MutateCampaignGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign groups. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignGroupsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignGroupsAsync(new MutateCampaignGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose campaign groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign groups. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignGroupsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignGroupsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignGroupService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign groups. - /// - public sealed partial class CampaignGroupServiceClientImpl : CampaignGroupServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignGroups; - - /// - /// Constructs a client wrapper for the CampaignGroupService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CampaignGroupServiceClientImpl(CampaignGroupService.CampaignGroupServiceClient grpcClient, CampaignGroupServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignGroupServiceSettings effectiveSettings = settings ?? CampaignGroupServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignGroups = clientHelper.BuildApiCall("MutateCampaignGroups", grpcClient.MutateCampaignGroupsAsync, grpcClient.MutateCampaignGroups, effectiveSettings.MutateCampaignGroupsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignGroups); - Modify_MutateCampaignGroupsApiCall(ref _callMutateCampaignGroups); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignGroupsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignGroupService.CampaignGroupServiceClient grpcClient, CampaignGroupServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignGroupService client - public override CampaignGroupService.CampaignGroupServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignGroupsRequest(ref MutateCampaignGroupsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignGroupsResponse MutateCampaignGroups(MutateCampaignGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignGroupsRequest(ref request, ref callSettings); - return _callMutateCampaignGroups.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignGroupsAsync(MutateCampaignGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignGroupsRequest(ref request, ref callSettings); - return _callMutateCampaignGroups.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceGrpc.g.cs deleted file mode 100755 index 558a10142..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_group_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign groups. - /// - public static partial class CampaignGroupService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignGroupService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignGroupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignGroupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignGroups = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignGroups", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignGroupsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignGroupsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignGroupServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignGroupService - [grpc::BindServiceMethod(typeof(CampaignGroupService), "BindService")] - public abstract partial class CampaignGroupServiceBase - { - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignGroups(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignGroupService - public partial class CampaignGroupServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignGroupService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignGroupServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignGroupService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignGroupServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignGroupServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignGroupServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsResponse MutateCampaignGroups(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignGroups(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsResponse MutateCampaignGroups(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignGroups, null, options, request); - } - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignGroupsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaign groups. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignGroups, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignGroupServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignGroupServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignGroupServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignGroups, serviceImpl.MutateCampaignGroups).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignGroupServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignGroups, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignGroups)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceResourceNames.g.cs deleted file mode 100755 index 644cadb7f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignGroupServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignGroupOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignGroupName RemoveAsCampaignGroupName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignGroupName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignGroupResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignGroupName ResourceNameAsCampaignGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignGroupStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignGroupStatus.g.cs deleted file mode 100755 index d6eab364b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignGroupStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_group_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_group_status.proto - public static partial class CampaignGroupStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_group_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignGroupStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fZ3Jv", - "dXBfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMiaAoXQ2FtcGFpZ25Hcm91cFN0YXR1c0VudW0iTQoTQ2FtcGFpZ25Hcm91", - "cFN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFC", - "TEVEEAISCwoHUkVNT1ZFRBADQvIBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zQhhDYW1wYWlnbkdyb3VwU3RhdHVzUHJvdG9QAVpDZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVt", - "c+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusEnum.Types.CampaignGroupStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing CampaignGroup statuses. - /// - public sealed partial class CampaignGroupStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignGroupStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignGroupStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroupStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroupStatusEnum(CampaignGroupStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignGroupStatusEnum Clone() { - return new CampaignGroupStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignGroupStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignGroupStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignGroupStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignGroupStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a CampaignGroup. - /// - public enum CampaignGroupStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The campaign group is active. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The campaign group has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignLabel.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignLabel.g.cs deleted file mode 100755 index 8b5388c4c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignLabel.g.cs +++ /dev/null @@ -1,360 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_label.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_label.proto - public static partial class CampaignLabelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_label.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignLabelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X2xhYmVsLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvItkCCg1DYW1wYWlnbkxhYmVsEkUKDXJlc291", - "cmNlX25hbWUYASABKAlCLuBBBfpBKAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0NhbXBhaWduTGFiZWwSQAoIY2FtcGFpZ24YBCABKAlCKeBBBfpBIwoh", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduSACIAQESOgoFbGFi", - "ZWwYBSABKAlCJuBBBfpBIAoeZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0xh", - "YmVsSAGIAQE6bOpBaQomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBh", - "aWduTGFiZWwSP2N1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2NhbXBhaWduTGFi", - "ZWxzL3tjYW1wYWlnbl9pZH1+e2xhYmVsX2lkfUILCglfY2FtcGFpZ25CCAoG", - "X2xhYmVsQoQCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlc0ISQ2FtcGFpZ25MYWJlbFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3Vy", - "Y2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3Vy", - "Y2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel), global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel.Parser, new[]{ "ResourceName", "Campaign", "Label" }, new[]{ "Campaign", "Label" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a relationship between a campaign and a label. - /// - public sealed partial class CampaignLabel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignLabel()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignLabelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignLabel() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignLabel(CampaignLabel other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - label_ = other.label_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignLabel Clone() { - return new CampaignLabel(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. Name of the resource. - /// Campaign label resource names have the form: - /// `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 4; - private string campaign_; - /// - /// Immutable. The campaign to which the label is attached. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 5; - private string label_; - /// - /// Immutable. The label assigned to the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Label { - get { return label_ ?? ""; } - set { - label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "label" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLabel { - get { return label_ != null; } - } - /// Clears the value of the "label" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLabel() { - label_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignLabel); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignLabel other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (Label != other.Label) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasLabel) hash ^= Label.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCampaign) { - output.WriteRawTag(34); - output.WriteString(Campaign); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCampaign) { - output.WriteRawTag(34); - output.WriteString(Campaign); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasLabel) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignLabel other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasLabel) { - Label = other.Label; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - Campaign = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - Campaign = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignLabelResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignLabelResourceNames.g.cs deleted file mode 100755 index 19f396eeb..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignLabelResourceNames.g.cs +++ /dev/null @@ -1,314 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignLabel resource. - public sealed partial class CampaignLabelName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}. - /// - CustomerCampaignLabel = 1, - } - - private static gax::PathTemplate s_customerCampaignLabel = new gax::PathTemplate("customers/{customer_id}/campaignLabels/{campaign_id_label_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignLabelName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignLabelName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignLabelName FromCustomerCampaignLabel(string customerId, string campaignId, string labelId) => - new CampaignLabelName(ResourceNameType.CustomerCampaignLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}. - /// - public static string Format(string customerId, string campaignId, string labelId) => - FormatCustomerCampaignLabel(customerId, campaignId, labelId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}. - /// - public static string FormatCustomerCampaignLabel(string customerId, string campaignId, string labelId) => - s_customerCampaignLabel.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignLabelName Parse(string campaignLabelName) => Parse(campaignLabelName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignLabelName Parse(string campaignLabelName, bool allowUnparsed) => - TryParse(campaignLabelName, allowUnparsed, out CampaignLabelName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignLabelName, out CampaignLabelName result) => - TryParse(campaignLabelName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignLabelName, bool allowUnparsed, out CampaignLabelName result) - { - gax::GaxPreconditions.CheckNotNull(campaignLabelName, nameof(campaignLabelName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignLabel.TryParseName(campaignLabelName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignLabel(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignLabelName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignLabelName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null, string labelId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - LabelId = labelId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignLabels/{campaign_id}~{label_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - public CampaignLabelName(string customerId, string campaignId, string labelId) : this(ResourceNameType.CustomerCampaignLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Label ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string LabelId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignLabel: return s_customerCampaignLabel.Expand(CustomerId, $"{CampaignId}~{LabelId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignLabelName); - - /// - public bool Equals(CampaignLabelName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignLabelName a, CampaignLabelName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignLabelName a, CampaignLabelName b) => !(a == b); - } - - public partial class CampaignLabel - { - /// - /// -typed view over the resource name property. - /// - internal CampaignLabelName ResourceNameAsCampaignLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal LabelName LabelAsLabelName - { - get => string.IsNullOrEmpty(Label) ? null : LabelName.Parse(Label, allowUnparsed: true); - set => Label = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignLabelService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignLabelService.g.cs deleted file mode 100755 index cf29a122b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignLabelService.g.cs +++ /dev/null @@ -1,1102 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_label_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_label_service.proto - public static partial class CampaignLabelServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_label_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignLabelServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "bGFiZWxfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "L2NhbXBhaWduX2xhYmVsLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", - "LnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9m", - "aWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90", - "bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8iuwEKG011dGF0ZUNhbXBhaWdu", - "TGFiZWxzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECElIKCm9w", - "ZXJhdGlvbnMYAiADKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuQ2FtcGFpZ25MYWJlbE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxf", - "ZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIIqkBChZDYW1w", - "YWlnbkxhYmVsT3BlcmF0aW9uEkMKBmNyZWF0ZRgBIAEoCzIxLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25MYWJlbEgAEj0K", - "BnJlbW92ZRgCIAEoCUIr+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q2FtcGFpZ25MYWJlbEgAQgsKCW9wZXJhdGlvbiKgAQocTXV0YXRlQ2FtcGFp", - "Z25MYWJlbHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAyAB", - "KAsyEi5nb29nbGUucnBjLlN0YXR1cxJNCgdyZXN1bHRzGAIgAygLMjwuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWdu", - "TGFiZWxSZXN1bHQiXwoZTXV0YXRlQ2FtcGFpZ25MYWJlbFJlc3VsdBJCCg1y", - "ZXNvdXJjZV9uYW1lGAEgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DYW1wYWlnbkxhYmVsMtECChRDYW1wYWlnbkxhYmVsU2VydmljZRLx", - "AQoUTXV0YXRlQ2FtcGFpZ25MYWJlbHMSPi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25MYWJlbHNSZXF1ZXN0Gj8u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBh", - "aWduTGFiZWxzUmVzcG9uc2UiWILT5JMCOSI0L3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2NhbXBhaWduTGFiZWxzOm11dGF0ZToBKtpBFmN1c3Rv", - "bWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KF", - "AgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IZQ2Ft", - "cGFpZ25MYWJlbFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2Vz", - "O3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNl", - "cnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIl", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CampaignLabelReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v12.services.CampaignLabelService.MutateCampaignLabels]. - /// - public sealed partial class MutateCampaignLabelsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignLabelsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignLabelServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelsRequest(MutateCampaignLabelsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelsRequest Clone() { - return new MutateCampaignLabelsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose campaign-label relationships are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on campaign-label relationships. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignLabelsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignLabelsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignLabelsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on a campaign-label relationship. - /// - public sealed partial class CampaignLabelOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignLabelOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignLabelServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignLabelOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignLabelOperation(CampaignLabelOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignLabelOperation Clone() { - return new CampaignLabelOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign-label - /// relationship. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the campaign-label relationship - /// being removed, in this format: - /// - /// `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignLabelOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignLabelOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignLabelOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a campaign labels mutate. - /// - public sealed partial class MutateCampaignLabelsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignLabelsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignLabelServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelsResponse(MutateCampaignLabelsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelsResponse Clone() { - return new MutateCampaignLabelsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignLabelsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignLabelsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignLabelsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for a campaign label mutate. - /// - public sealed partial class MutateCampaignLabelResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignLabelResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignLabelServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelResult(MutateCampaignLabelResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignLabelResult Clone() { - return new MutateCampaignLabelResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignLabelResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignLabelResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignLabelResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceClient.g.cs deleted file mode 100755 index 03447a1ba..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceClient.g.cs +++ /dev/null @@ -1,474 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignLabelServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignLabelServiceSettings GetDefault() => new CampaignLabelServiceSettings(); - - /// Constructs a new object with default settings. - public CampaignLabelServiceSettings() - { - } - - private CampaignLabelServiceSettings(CampaignLabelServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignLabelsSettings = existing.MutateCampaignLabelsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignLabelServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignLabelServiceClient.MutateCampaignLabels and - /// CampaignLabelServiceClient.MutateCampaignLabelsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignLabelsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignLabelServiceSettings Clone() => new CampaignLabelServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignLabelServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignLabelServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignLabelServiceClientBuilder() : base(CampaignLabelServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignLabelServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignLabelServiceClient Build() - { - CampaignLabelServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignLabelServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignLabelServiceClient.ChannelPool; - } - - /// CampaignLabelService client wrapper, for convenient use. - /// - /// Service to manage labels on campaigns. - /// - public abstract partial class CampaignLabelServiceClient - { - /// - /// The default endpoint for the CampaignLabelService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignLabelService scopes. - /// - /// The default CampaignLabelService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignLabelService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignLabelServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignLabelServiceClient Create() => new CampaignLabelServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignLabelServiceClient Create(grpccore::CallInvoker callInvoker, CampaignLabelServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignLabelService.CampaignLabelServiceClient grpcClient = new CampaignLabelService.CampaignLabelServiceClient(callInvoker); - return new CampaignLabelServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignLabelService client - public virtual CampaignLabelService.CampaignLabelServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignLabelsResponse MutateCampaignLabels(MutateCampaignLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignLabelsAsync(MutateCampaignLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignLabelsAsync(MutateCampaignLabelsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose campaign-label relationships are being modified. - /// - /// - /// Required. The list of operations to perform on campaign-label relationships. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignLabelsResponse MutateCampaignLabels(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignLabels(new MutateCampaignLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose campaign-label relationships are being modified. - /// - /// - /// Required. The list of operations to perform on campaign-label relationships. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignLabelsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignLabelsAsync(new MutateCampaignLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose campaign-label relationships are being modified. - /// - /// - /// Required. The list of operations to perform on campaign-label relationships. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignLabelsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignLabelsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignLabelService client wrapper implementation, for convenient use. - /// - /// Service to manage labels on campaigns. - /// - public sealed partial class CampaignLabelServiceClientImpl : CampaignLabelServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignLabels; - - /// - /// Constructs a client wrapper for the CampaignLabelService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CampaignLabelServiceClientImpl(CampaignLabelService.CampaignLabelServiceClient grpcClient, CampaignLabelServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignLabelServiceSettings effectiveSettings = settings ?? CampaignLabelServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignLabels = clientHelper.BuildApiCall("MutateCampaignLabels", grpcClient.MutateCampaignLabelsAsync, grpcClient.MutateCampaignLabels, effectiveSettings.MutateCampaignLabelsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignLabels); - Modify_MutateCampaignLabelsApiCall(ref _callMutateCampaignLabels); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignLabelsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignLabelService.CampaignLabelServiceClient grpcClient, CampaignLabelServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignLabelService client - public override CampaignLabelService.CampaignLabelServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignLabelsRequest(ref MutateCampaignLabelsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignLabelsResponse MutateCampaignLabels(MutateCampaignLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignLabelsRequest(ref request, ref callSettings); - return _callMutateCampaignLabels.Sync(request, callSettings); - } - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignLabelsAsync(MutateCampaignLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignLabelsRequest(ref request, ref callSettings); - return _callMutateCampaignLabels.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceGrpc.g.cs deleted file mode 100755 index e2963315c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceGrpc.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_label_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage labels on campaigns. - /// - public static partial class CampaignLabelService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignLabelService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignLabelsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignLabelsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignLabels = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignLabels", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignLabelsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignLabelsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignLabelServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignLabelService - [grpc::BindServiceMethod(typeof(CampaignLabelService), "BindService")] - public abstract partial class CampaignLabelServiceBase - { - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignLabels(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignLabelService - public partial class CampaignLabelServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignLabelService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignLabelServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignLabelService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignLabelServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignLabelServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignLabelServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsResponse MutateCampaignLabels(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignLabels(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsResponse MutateCampaignLabels(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignLabels, null, options, request); - } - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignLabelsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes campaign-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignLabels, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignLabelServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignLabelServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignLabelServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignLabels, serviceImpl.MutateCampaignLabels).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignLabelServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignLabels, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignLabels)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceResourceNames.g.cs deleted file mode 100755 index 575359e1d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignLabelServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignLabelOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignLabelName RemoveAsCampaignLabelName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignLabelName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignLabelResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignLabelName ResourceNameAsCampaignLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignPrimaryStatusReason.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignPrimaryStatusReason.g.cs deleted file mode 100755 index 858fe388f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignPrimaryStatusReason.g.cs +++ /dev/null @@ -1,385 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_primary_status_reason.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_primary_status_reason.proto - public static partial class CampaignPrimaryStatusReasonReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_primary_status_reason.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignPrimaryStatusReasonReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fcHJp", - "bWFyeV9zdGF0dXNfcmVhc29uLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMi1gcKH0NhbXBhaWduUHJpbWFyeVN0YXR1c1JlYXNvbkVu", - "dW0isgcKG0NhbXBhaWduUHJpbWFyeVN0YXR1c1JlYXNvbhIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIUChBDQU1QQUlHTl9SRU1PVkVEEAISEwoP", - "Q0FNUEFJR05fUEFVU0VEEAMSFAoQQ0FNUEFJR05fUEVORElORxAEEhIKDkNB", - "TVBBSUdOX0VOREVEEAUSEgoOQ0FNUEFJR05fRFJBRlQQBhIiCh5CSURESU5H", - "X1NUUkFURUdZX01JU0NPTkZJR1VSRUQQBxIcChhCSURESU5HX1NUUkFURUdZ", - "X0xJTUlURUQQCBIdChlCSURESU5HX1NUUkFURUdZX0xFQVJOSU5HEAkSIAoc", - "QklERElOR19TVFJBVEVHWV9DT05TVFJBSU5FRBAKEhYKEkJVREdFVF9DT05T", - "VFJBSU5FRBALEhgKFEJVREdFVF9NSVNDT05GSUdVUkVEEAwSGQoVU0VBUkNI", - "X1ZPTFVNRV9MSU1JVEVEEA0SFAoQQURfR1JPVVBTX1BBVVNFRBAOEhAKDE5P", - "X0FEX0dST1VQUxAPEhMKD0tFWVdPUkRTX1BBVVNFRBAQEg8KC05PX0tFWVdP", - "UkRTEBESFwoTQURfR1JPVVBfQURTX1BBVVNFRBASEhMKD05PX0FEX0dST1VQ", - "X0FEUxATEh0KGUhBU19BRFNfTElNSVRFRF9CWV9QT0xJQ1kQFBIXChNIQVNf", - "QURTX0RJU0FQUFJPVkVEEBUSGQoVTU9TVF9BRFNfVU5ERVJfUkVWSUVXEBYS", - "HwobTUlTU0lOR19MRUFEX0ZPUk1fRVhURU5TSU9OEBcSGgoWTUlTU0lOR19D", - "QUxMX0VYVEVOU0lPThAYEiQKIExFQURfRk9STV9FWFRFTlNJT05fVU5ERVJf", - "UkVWSUVXEBkSIwofTEVBRF9GT1JNX0VYVEVOU0lPTl9ESVNBUFBST1ZFRBAa", - "Eh8KG0NBTExfRVhURU5TSU9OX1VOREVSX1JFVklFVxAbEh4KGkNBTExfRVhU", - "RU5TSU9OX0RJU0FQUFJPVkVEEBwSKwonTk9fTU9CSUxFX0FQUExJQ0FUSU9O", - "X0FEX0dST1VQX0NSSVRFUklBEB0SGQoVQ0FNUEFJR05fR1JPVVBfUEFVU0VE", - "EB4SKgomQ0FNUEFJR05fR1JPVVBfQUxMX0dST1VQX0JVREdFVFNfRU5ERUQQ", - "HxIUChBBUFBfTk9UX1JFTEVBU0VEECASGgoWQVBQX1BBUlRJQUxMWV9SRUxF", - "QVNFRBAhQvoBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "QiBDYW1wYWlnblByaW1hcnlTdGF0dXNSZWFzb25Qcm90b1ABWkNnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIi", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReasonEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReasonEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReasonEnum.Types.CampaignPrimaryStatusReason) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign primary status reasons. - /// - public sealed partial class CampaignPrimaryStatusReasonEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignPrimaryStatusReasonEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReasonReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignPrimaryStatusReasonEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignPrimaryStatusReasonEnum(CampaignPrimaryStatusReasonEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignPrimaryStatusReasonEnum Clone() { - return new CampaignPrimaryStatusReasonEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignPrimaryStatusReasonEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignPrimaryStatusReasonEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignPrimaryStatusReasonEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignPrimaryStatusReasonEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing the possible campaign primary status reasons. Provides - /// insight into why a campaign is not serving or not serving optimally. These - /// reasons are aggregated to determine an overall campaign primary status. - /// - public enum CampaignPrimaryStatusReason { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The user-specified campaign status is removed. - /// - [pbr::OriginalName("CAMPAIGN_REMOVED")] CampaignRemoved = 2, - /// - /// The user-specified campaign status is paused. - /// - [pbr::OriginalName("CAMPAIGN_PAUSED")] CampaignPaused = 3, - /// - /// The user-specified time for this campaign to start is in the future. - /// - [pbr::OriginalName("CAMPAIGN_PENDING")] CampaignPending = 4, - /// - /// The user-specified time for this campaign to end has passed. - /// - [pbr::OriginalName("CAMPAIGN_ENDED")] CampaignEnded = 5, - /// - /// The campaign is a draft. - /// - [pbr::OriginalName("CAMPAIGN_DRAFT")] CampaignDraft = 6, - /// - /// The bidding strategy has incorrect user-specified settings. - /// - [pbr::OriginalName("BIDDING_STRATEGY_MISCONFIGURED")] BiddingStrategyMisconfigured = 7, - /// - /// The bidding strategy is limited by user-specified settings such as lack - /// of data or similar. - /// - [pbr::OriginalName("BIDDING_STRATEGY_LIMITED")] BiddingStrategyLimited = 8, - /// - /// The automated bidding system is adjusting to user-specified changes to - /// the bidding strategy. - /// - [pbr::OriginalName("BIDDING_STRATEGY_LEARNING")] BiddingStrategyLearning = 9, - /// - /// Campaign could capture more conversion value by adjusting CPA/ROAS - /// targets. - /// - [pbr::OriginalName("BIDDING_STRATEGY_CONSTRAINED")] BiddingStrategyConstrained = 10, - /// - /// The budget is limiting the campaign's ability to serve. - /// - [pbr::OriginalName("BUDGET_CONSTRAINED")] BudgetConstrained = 11, - /// - /// The budget has incorrect user-specified settings. - /// - [pbr::OriginalName("BUDGET_MISCONFIGURED")] BudgetMisconfigured = 12, - /// - /// Campaign is not targeting all relevant queries. - /// - [pbr::OriginalName("SEARCH_VOLUME_LIMITED")] SearchVolumeLimited = 13, - /// - /// The user-specified ad group statuses are all paused. - /// - [pbr::OriginalName("AD_GROUPS_PAUSED")] AdGroupsPaused = 14, - /// - /// No eligible ad groups exist in this campaign. - /// - [pbr::OriginalName("NO_AD_GROUPS")] NoAdGroups = 15, - /// - /// The user-specified keyword statuses are all paused. - /// - [pbr::OriginalName("KEYWORDS_PAUSED")] KeywordsPaused = 16, - /// - /// No eligible keywords exist in this campaign. - /// - [pbr::OriginalName("NO_KEYWORDS")] NoKeywords = 17, - /// - /// The user-specified ad group ad statuses are all paused. - /// - [pbr::OriginalName("AD_GROUP_ADS_PAUSED")] AdGroupAdsPaused = 18, - /// - /// No eligible ad group ads exist in this campaign. - /// - [pbr::OriginalName("NO_AD_GROUP_ADS")] NoAdGroupAds = 19, - /// - /// At least one ad in this campaign is limited by policy. - /// - [pbr::OriginalName("HAS_ADS_LIMITED_BY_POLICY")] HasAdsLimitedByPolicy = 20, - /// - /// At least one ad in this campaign is disapproved. - /// - [pbr::OriginalName("HAS_ADS_DISAPPROVED")] HasAdsDisapproved = 21, - /// - /// Most ads in this campaign are pending review. - /// - [pbr::OriginalName("MOST_ADS_UNDER_REVIEW")] MostAdsUnderReview = 22, - /// - /// The campaign has a lead form goal, and the lead form extension is - /// missing. - /// - [pbr::OriginalName("MISSING_LEAD_FORM_EXTENSION")] MissingLeadFormExtension = 23, - /// - /// The campaign has a call goal, and the call extension is missing. - /// - [pbr::OriginalName("MISSING_CALL_EXTENSION")] MissingCallExtension = 24, - /// - /// The lead form extension is under review. - /// - [pbr::OriginalName("LEAD_FORM_EXTENSION_UNDER_REVIEW")] LeadFormExtensionUnderReview = 25, - /// - /// The lead extension is disapproved. - /// - [pbr::OriginalName("LEAD_FORM_EXTENSION_DISAPPROVED")] LeadFormExtensionDisapproved = 26, - /// - /// The call extension is under review. - /// - [pbr::OriginalName("CALL_EXTENSION_UNDER_REVIEW")] CallExtensionUnderReview = 27, - /// - /// The call extension is disapproved. - /// - [pbr::OriginalName("CALL_EXTENSION_DISAPPROVED")] CallExtensionDisapproved = 28, - /// - /// No eligible mobile application ad group criteria exist in this campaign. - /// - [pbr::OriginalName("NO_MOBILE_APPLICATION_AD_GROUP_CRITERIA")] NoMobileApplicationAdGroupCriteria = 29, - /// - /// The user-specified campaign group status is paused. - /// - [pbr::OriginalName("CAMPAIGN_GROUP_PAUSED")] CampaignGroupPaused = 30, - /// - /// The user-specified times of all group budgets associated with the parent - /// campaign group has passed. - /// - [pbr::OriginalName("CAMPAIGN_GROUP_ALL_GROUP_BUDGETS_ENDED")] CampaignGroupAllGroupBudgetsEnded = 31, - /// - /// The app associated with this ACi campaign is not released in the target - /// countries of the campaign. - /// - [pbr::OriginalName("APP_NOT_RELEASED")] AppNotReleased = 32, - /// - /// The app associated with this ACi campaign is partially released in the - /// target countries of the campaign. - /// - [pbr::OriginalName("APP_PARTIALLY_RELEASED")] AppPartiallyReleased = 33, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignResourceNames.g.cs deleted file mode 100755 index 2ac0aabca..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignResourceNames.g.cs +++ /dev/null @@ -1,315 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Campaign resource. - public sealed partial class CampaignName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/campaigns/{campaign_id}. - CustomerCampaign = 1, - } - - private static gax::PathTemplate s_customerCampaign = new gax::PathTemplate("customers/{customer_id}/campaigns/{campaign_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/campaigns/{campaign_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignName FromCustomerCampaign(string customerId, string campaignId) => - new CampaignName(ResourceNameType.CustomerCampaign, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaigns/{campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaigns/{campaign_id}. - /// - public static string Format(string customerId, string campaignId) => FormatCustomerCampaign(customerId, campaignId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaigns/{campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaigns/{campaign_id}. - /// - public static string FormatCustomerCampaign(string customerId, string campaignId) => - s_customerCampaign.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaigns/{campaign_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignName Parse(string campaignName) => Parse(campaignName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaigns/{campaign_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignName Parse(string campaignName, bool allowUnparsed) => - TryParse(campaignName, allowUnparsed, out CampaignName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaigns/{campaign_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignName, out CampaignName result) => TryParse(campaignName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/campaigns/{campaign_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignName, bool allowUnparsed, out CampaignName result) - { - gax::GaxPreconditions.CheckNotNull(campaignName, nameof(campaignName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaign.TryParseName(campaignName, out resourceName)) - { - result = FromCustomerCampaign(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CampaignName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaigns/{campaign_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - public CampaignName(string customerId, string campaignId) : this(ResourceNameType.CustomerCampaign, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaign: return s_customerCampaign.Expand(CustomerId, CampaignId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignName); - - /// - public bool Equals(CampaignName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignName a, CampaignName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignName a, CampaignName b) => !(a == b); - } - - public partial class Campaign - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignName ResourceNameAsCampaignName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignName BaseCampaignAsCampaignName - { - get => string.IsNullOrEmpty(BaseCampaign) ? null : gagvr::CampaignName.Parse(BaseCampaign, allowUnparsed: true); - set => BaseCampaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignName CampaignName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CampaignName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList LabelsAsCampaignLabelNames - { - get => new gax::ResourceNameList(Labels, s => string.IsNullOrEmpty(s) ? null : CampaignLabelName.Parse(s, allowUnparsed: true)); - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignBudgetName CampaignBudgetAsCampaignBudgetName - { - get => string.IsNullOrEmpty(CampaignBudget) ? null : CampaignBudgetName.Parse(CampaignBudget, allowUnparsed: true); - set => CampaignBudget = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal BiddingStrategyName BiddingStrategyAsBiddingStrategyName - { - get => string.IsNullOrEmpty(BiddingStrategy) ? null : BiddingStrategyName.Parse(BiddingStrategy, allowUnparsed: true); - set => BiddingStrategy = value?.ToString() ?? ""; - } - - /// - /// -typed view over the - /// resource name property. - /// - internal AccessibleBiddingStrategyName AccessibleBiddingStrategyAsAccessibleBiddingStrategyName - { - get => string.IsNullOrEmpty(AccessibleBiddingStrategy) ? null : AccessibleBiddingStrategyName.Parse(AccessibleBiddingStrategy, allowUnparsed: true); - set => AccessibleBiddingStrategy = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignGroupName CampaignGroupAsCampaignGroupName - { - get => string.IsNullOrEmpty(CampaignGroup) ? null : CampaignGroupName.Parse(CampaignGroup, allowUnparsed: true); - set => CampaignGroup = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignService.g.cs deleted file mode 100755 index 48edb6185..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignService.g.cs +++ /dev/null @@ -1,1305 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_service.proto - public static partial class CampaignServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "c2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVzcG9uc2Vf", - "Y29udGVudF90eXBlLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL2NhbXBhaWduLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRp", - "b25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2ds", - "ZS9ycGMvc3RhdHVzLnByb3RvIp0CChZNdXRhdGVDYW1wYWlnbnNSZXF1ZXN0", - "EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISTQoKb3BlcmF0aW9ucxgCIAMo", - "CzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DYW1wYWln", - "bk9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12", - "YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgF", - "IAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25z", - "ZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIosCChFDYW1w", - "YWlnbk9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5w", - "cm90b2J1Zi5GaWVsZE1hc2sSPgoGY3JlYXRlGAEgASgLMiwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkgAEj4KBnVwZGF0", - "ZRgCIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "Q2FtcGFpZ25IABI4CgZyZW1vdmUYAyABKAlCJvpBIwohZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0NhbXBhaWduSABCCwoJb3BlcmF0aW9uIpYBChdNdXRh", - "dGVDYW1wYWlnbnNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IY", - "AyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJICgdyZXN1bHRzGAIgAygLMjcu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNhbXBh", - "aWduUmVzdWx0IpUBChRNdXRhdGVDYW1wYWlnblJlc3VsdBI9Cg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQib6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "YW1wYWlnbhI+CghjYW1wYWlnbhgCIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ24yuAIKD0NhbXBhaWduU2Vydmlj", - "ZRLdAQoPTXV0YXRlQ2FtcGFpZ25zEjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduc1JlcXVlc3QaOi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25zUmVz", - "cG9uc2UiU4LT5JMCNCIvL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9", - "L2NhbXBhaWduczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25z", - "GkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5n", - "b29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCgAIKJWNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXNCFENhbXBhaWduU2VydmljZVByb3Rv", - "UAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult.Parser, new[]{ "ResourceName", "Campaign" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignService.MutateCampaigns][google.ads.googleads.v12.services.CampaignService.MutateCampaigns]. - /// - public sealed partial class MutateCampaignsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignsRequest(MutateCampaignsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignsRequest Clone() { - return new MutateCampaignsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaigns are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a campaign. - /// - public sealed partial class CampaignOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignOperation(CampaignOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignOperation Clone() { - return new CampaignOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.Campaign) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The campaign is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.Campaign) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed campaign is - /// expected, in this format: - /// - /// `customers/{customer_id}/campaigns/{campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Campaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Campaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Campaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Campaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for campaign mutate. - /// - public sealed partial class MutateCampaignsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignsResponse(MutateCampaignsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignsResponse Clone() { - return new MutateCampaignsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign mutate. - /// - public sealed partial class MutateCampaignResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignResult(MutateCampaignResult other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_ != null ? other.campaign_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignResult Clone() { - return new MutateCampaignResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign campaign_; - /// - /// The mutated campaign with only mutable fields after mutate. The field will - /// only be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign Campaign { - get { return campaign_; } - set { - campaign_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(Campaign, other.Campaign)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaign_ != null) hash ^= Campaign.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaign_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaign_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaign_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaign); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaign_ != null) { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - Campaign.MergeFrom(other.Campaign); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - input.ReadMessage(Campaign); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - input.ReadMessage(Campaign); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignServiceClient.g.cs deleted file mode 100755 index 60406ce14..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignServiceClient.g.cs +++ /dev/null @@ -1,653 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignServiceSettings GetDefault() => new CampaignServiceSettings(); - - /// Constructs a new object with default settings. - public CampaignServiceSettings() - { - } - - private CampaignServiceSettings(CampaignServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignsSettings = existing.MutateCampaignsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignServiceClient.MutateCampaigns and CampaignServiceClient.MutateCampaignsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignServiceSettings Clone() => new CampaignServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class CampaignServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignServiceClientBuilder() : base(CampaignServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignServiceClient Build() - { - CampaignServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignServiceClient.ChannelPool; - } - - /// CampaignService client wrapper, for convenient use. - /// - /// Service to manage campaigns. - /// - public abstract partial class CampaignServiceClient - { - /// - /// The default endpoint for the CampaignService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignService scopes. - /// - /// The default CampaignService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static CampaignServiceClient Create() => new CampaignServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignServiceClient Create(grpccore::CallInvoker callInvoker, CampaignServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignService.CampaignServiceClient grpcClient = new CampaignService.CampaignServiceClient(callInvoker); - return new CampaignServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignService client - public virtual CampaignService.CampaignServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignsResponse MutateCampaigns(MutateCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignsAsync(MutateCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignsAsync(MutateCampaignsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose campaigns are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaigns. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignsResponse MutateCampaigns(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaigns(new MutateCampaignsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose campaigns are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaigns. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignsAsync(new MutateCampaignsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose campaigns are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaigns. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignService client wrapper implementation, for convenient use. - /// - /// Service to manage campaigns. - /// - public sealed partial class CampaignServiceClientImpl : CampaignServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaigns; - - /// - /// Constructs a client wrapper for the CampaignService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CampaignServiceClientImpl(CampaignService.CampaignServiceClient grpcClient, CampaignServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignServiceSettings effectiveSettings = settings ?? CampaignServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaigns = clientHelper.BuildApiCall("MutateCampaigns", grpcClient.MutateCampaignsAsync, grpcClient.MutateCampaigns, effectiveSettings.MutateCampaignsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaigns); - Modify_MutateCampaignsApiCall(ref _callMutateCampaigns); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignService.CampaignServiceClient grpcClient, CampaignServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignService client - public override CampaignService.CampaignServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignsRequest(ref MutateCampaignsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignsResponse MutateCampaigns(MutateCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignsRequest(ref request, ref callSettings); - return _callMutateCampaigns.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignsAsync(MutateCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignsRequest(ref request, ref callSettings); - return _callMutateCampaigns.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignServiceGrpc.g.cs deleted file mode 100755 index 2cf969df1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignServiceGrpc.g.cs +++ /dev/null @@ -1,392 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaigns. - /// - public static partial class CampaignService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaigns = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaigns", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignService - [grpc::BindServiceMethod(typeof(CampaignService), "BindService")] - public abstract partial class CampaignServiceBase - { - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaigns(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignService - public partial class CampaignServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsResponse MutateCampaigns(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaigns(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsResponse MutateCampaigns(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaigns, null, options, request); - } - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes campaigns. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AdxError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [BiddingStrategyError]() - /// [CampaignBudgetError]() - /// [CampaignError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotAllowlistedError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RegionCodeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaigns, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaigns, serviceImpl.MutateCampaigns).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaigns, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaigns)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignServiceResourceNames.g.cs deleted file mode 100755 index 9be60a7a0..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignName RemoveAsCampaignName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignName ResourceNameAsCampaignName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignServingStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignServingStatus.g.cs deleted file mode 100755 index a705345e1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignServingStatus.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_serving_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_serving_status.proto - public static partial class CampaignServingStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_serving_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignServingStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fc2Vy", - "dmluZ19zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyKQAQoZQ2FtcGFpZ25TZXJ2aW5nU3RhdHVzRW51bSJzChVDYW1wYWln", - "blNlcnZpbmdTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "CwoHU0VSVklORxACEggKBE5PTkUQAxIJCgVFTkRFRBAEEgsKB1BFTkRJTkcQ", - "BRINCglTVVNQRU5ERUQQBkL0AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtc0IaQ2FtcGFpZ25TZXJ2aW5nU3RhdHVzUHJvdG9QAVpDZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVt", - "c+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusEnum.Types.CampaignServingStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing Campaign serving statuses. - /// - public sealed partial class CampaignServingStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignServingStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignServingStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignServingStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignServingStatusEnum(CampaignServingStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignServingStatusEnum Clone() { - return new CampaignServingStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignServingStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignServingStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignServingStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignServingStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible serving statuses of a campaign. - /// - public enum CampaignServingStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Serving. - /// - [pbr::OriginalName("SERVING")] Serving = 2, - /// - /// None. - /// - [pbr::OriginalName("NONE")] None = 3, - /// - /// Ended. - /// - [pbr::OriginalName("ENDED")] Ended = 4, - /// - /// Pending. - /// - [pbr::OriginalName("PENDING")] Pending = 5, - /// - /// Suspended. - /// - [pbr::OriginalName("SUSPENDED")] Suspended = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSet.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSet.g.cs deleted file mode 100755 index f165238cb..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSet.g.cs +++ /dev/null @@ -1,411 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_shared_set.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_shared_set.proto - public static partial class CampaignSharedSetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_shared_set.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignSharedSetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X3NoYXJlZF9zZXQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jYW1w", - "YWlnbl9zaGFyZWRfc2V0X3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVs", - "ZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byLm", - "AwoRQ2FtcGFpZ25TaGFyZWRTZXQSSQoNcmVzb3VyY2VfbmFtZRgBIAEoCUIy", - "4EEF+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25TaGFy", - "ZWRTZXQSQAoIY2FtcGFpZ24YBSABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0NhbXBhaWduSACIAQESQwoKc2hhcmVkX3NldBgGIAEo", - "CUIq4EEF+kEkCiJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vU2hhcmVkU2V0", - "SAGIAQESaAoGc3RhdHVzGAIgASgOMlMuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLkNhbXBhaWduU2hhcmVkU2V0U3RhdHVzRW51bS5DYW1wYWln", - "blNoYXJlZFNldFN0YXR1c0ID4EEDOnnqQXYKKmdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DYW1wYWlnblNoYXJlZFNldBJIY3VzdG9tZXJzL3tjdXN0b21l", - "cl9pZH0vY2FtcGFpZ25TaGFyZWRTZXRzL3tjYW1wYWlnbl9pZH1+e3NoYXJl", - "ZF9zZXRfaWR9QgsKCV9jYW1wYWlnbkINCgtfc2hhcmVkX3NldEKIAgomY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCFkNhbXBhaWdu", - "U2hhcmVkU2V0UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3Vy", - "Y2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNl", - "c8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet), global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet.Parser, new[]{ "ResourceName", "Campaign", "SharedSet", "Status" }, new[]{ "Campaign", "SharedSet" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// CampaignSharedSets are used for managing the shared sets associated with a - /// campaign. - /// - public sealed partial class CampaignSharedSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignSharedSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSet(CampaignSharedSet other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - sharedSet_ = other.sharedSet_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSet Clone() { - return new CampaignSharedSet(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the campaign shared set. - /// Campaign shared set resource names have the form: - /// - /// `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 5; - private string campaign_; - /// - /// Immutable. The campaign to which the campaign shared set belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "shared_set" field. - public const int SharedSetFieldNumber = 6; - private string sharedSet_; - /// - /// Immutable. The shared set associated with the campaign. This may be a negative keyword - /// shared set of another customer. This customer should be a manager of the - /// other customer, otherwise the campaign shared set will exist but have no - /// serving effect. Only negative keyword shared sets can be associated with - /// Shopping campaigns. Only negative placement shared sets can be associated - /// with Display mobile app campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SharedSet { - get { return sharedSet_ ?? ""; } - set { - sharedSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "shared_set" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSharedSet { - get { return sharedSet_ != null; } - } - /// Clears the value of the "shared_set" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSharedSet() { - sharedSet_ = null; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus.Unspecified; - /// - /// Output only. The status of this campaign shared set. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignSharedSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignSharedSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (SharedSet != other.SharedSet) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasSharedSet) hash ^= SharedSet.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Status); - } - if (HasCampaign) { - output.WriteRawTag(42); - output.WriteString(Campaign); - } - if (HasSharedSet) { - output.WriteRawTag(50); - output.WriteString(SharedSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Status); - } - if (HasCampaign) { - output.WriteRawTag(42); - output.WriteString(Campaign); - } - if (HasSharedSet) { - output.WriteRawTag(50); - output.WriteString(SharedSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasSharedSet) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SharedSet); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignSharedSet other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasSharedSet) { - SharedSet = other.SharedSet; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus) input.ReadEnum(); - break; - } - case 42: { - Campaign = input.ReadString(); - break; - } - case 50: { - SharedSet = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus) input.ReadEnum(); - break; - } - case 42: { - Campaign = input.ReadString(); - break; - } - case 50: { - SharedSet = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetError.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSetError.g.cs deleted file mode 100755 index aae0070e8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetError.g.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/campaign_shared_set_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/campaign_shared_set_error.proto - public static partial class CampaignSharedSetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/campaign_shared_set_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignSharedSetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX3No", - "YXJlZF9zZXRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMicgoaQ2FtcGFpZ25TaGFyZWRTZXRFcnJvckVudW0iVAoWQ2Ft", - "cGFpZ25TaGFyZWRTZXRFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QARIcChhTSEFSRURfU0VUX0FDQ0VTU19ERU5JRUQQAkL7AQojY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCG0NhbXBhaWduU2hhcmVk", - "U2V0RXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNH", - "QUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorEnum.Types.CampaignSharedSetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible campaign shared set errors. - /// - public sealed partial class CampaignSharedSetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignSharedSetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetErrorEnum(CampaignSharedSetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetErrorEnum Clone() { - return new CampaignSharedSetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignSharedSetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignSharedSetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignSharedSetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignSharedSetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible campaign shared set errors. - /// - public enum CampaignSharedSetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The shared set belongs to another customer and permission isn't granted. - /// - [pbr::OriginalName("SHARED_SET_ACCESS_DENIED")] SharedSetAccessDenied = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSetResourceNames.g.cs deleted file mode 100755 index d464b1d5a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetResourceNames.g.cs +++ /dev/null @@ -1,317 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignSharedSet resource. - public sealed partial class CampaignSharedSetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id} - /// . - /// - CustomerCampaignSharedSet = 1, - } - - private static gax::PathTemplate s_customerCampaignSharedSet = new gax::PathTemplate("customers/{customer_id}/campaignSharedSets/{campaign_id_shared_set_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignSharedSetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignSharedSetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The SharedSet ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignSharedSetName FromCustomerCampaignSharedSet(string customerId, string campaignId, string sharedSetId) => - new CampaignSharedSetName(ResourceNameType.CustomerCampaignSharedSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), sharedSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(sharedSetId, nameof(sharedSetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The SharedSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}. - /// - public static string Format(string customerId, string campaignId, string sharedSetId) => - FormatCustomerCampaignSharedSet(customerId, campaignId, sharedSetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The SharedSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}. - /// - public static string FormatCustomerCampaignSharedSet(string customerId, string campaignId, string sharedSetId) => - s_customerCampaignSharedSet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(sharedSetId, nameof(sharedSetId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignSharedSetName Parse(string campaignSharedSetName) => Parse(campaignSharedSetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignSharedSetName Parse(string campaignSharedSetName, bool allowUnparsed) => - TryParse(campaignSharedSetName, allowUnparsed, out CampaignSharedSetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignSharedSetName, out CampaignSharedSetName result) => - TryParse(campaignSharedSetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignSharedSetName, bool allowUnparsed, out CampaignSharedSetName result) - { - gax::GaxPreconditions.CheckNotNull(campaignSharedSetName, nameof(campaignSharedSetName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignSharedSet.TryParseName(campaignSharedSetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignSharedSet(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignSharedSetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignSharedSetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null, string sharedSetId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - SharedSetId = sharedSetId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The SharedSet ID. Must not be null or empty. - public CampaignSharedSetName(string customerId, string campaignId, string sharedSetId) : this(ResourceNameType.CustomerCampaignSharedSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), sharedSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(sharedSetId, nameof(sharedSetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The SharedSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string SharedSetId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignSharedSet: return s_customerCampaignSharedSet.Expand(CustomerId, $"{CampaignId}~{SharedSetId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignSharedSetName); - - /// - public bool Equals(CampaignSharedSetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignSharedSetName a, CampaignSharedSetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignSharedSetName a, CampaignSharedSetName b) => !(a == b); - } - - public partial class CampaignSharedSet - { - /// - /// -typed view over the resource name property. - /// - internal CampaignSharedSetName ResourceNameAsCampaignSharedSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignSharedSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal SharedSetName SharedSetAsSharedSetName - { - get => string.IsNullOrEmpty(SharedSet) ? null : SharedSetName.Parse(SharedSet, allowUnparsed: true); - set => SharedSet = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetService.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSetService.g.cs deleted file mode 100755 index d85d6bb21..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetService.g.cs +++ /dev/null @@ -1,1202 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_shared_set_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/campaign_shared_set_service.proto - public static partial class CampaignSharedSetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/campaign_shared_set_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignSharedSetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "c2hhcmVkX3NldF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aPGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvY2FtcGFpZ25fc2hhcmVkX3NldC5wcm90", - "bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9j", - "bGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVz", - "LnByb3RvIq8CCh9NdXRhdGVDYW1wYWlnblNoYXJlZFNldHNSZXF1ZXN0EhgK", - "C2N1c3RvbWVyX2lkGAEgASgJQgPgQQISVgoKb3BlcmF0aW9ucxgCIAMoCzI9", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DYW1wYWlnblNo", - "YXJlZFNldE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEo", - "CBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRf", - "dHlwZRgFIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5S", - "ZXNwb25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIrUB", - "ChpDYW1wYWlnblNoYXJlZFNldE9wZXJhdGlvbhJHCgZjcmVhdGUYASABKAsy", - "NS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWdu", - "U2hhcmVkU2V0SAASQQoGcmVtb3ZlGAMgASgJQi/6QSwKKmdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9DYW1wYWlnblNoYXJlZFNldEgAQgsKCW9wZXJhdGlv", - "biKoAQogTXV0YXRlQ2FtcGFpZ25TaGFyZWRTZXRzUmVzcG9uc2USMQoVcGFy", - "dGlhbF9mYWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMS", - "UQoHcmVzdWx0cxgCIAMoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVDYW1wYWlnblNoYXJlZFNldFJlc3VsdCK7AQodTXV0", - "YXRlQ2FtcGFpZ25TaGFyZWRTZXRSZXN1bHQSRgoNcmVzb3VyY2VfbmFtZRgB", - "IAEoCUIv+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25T", - "aGFyZWRTZXQSUgoTY2FtcGFpZ25fc2hhcmVkX3NldBgCIAEoCzI1Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25TaGFyZWRT", - "ZXQy5QIKGENhbXBhaWduU2hhcmVkU2V0U2VydmljZRKBAgoYTXV0YXRlQ2Ft", - "cGFpZ25TaGFyZWRTZXRzEkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUNhbXBhaWduU2hhcmVkU2V0c1JlcXVlc3QaQy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25T", - "aGFyZWRTZXRzUmVzcG9uc2UiXILT5JMCPSI4L3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2NhbXBhaWduU2hhcmVkU2V0czptdXRhdGU6ASraQRZj", - "dXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29y", - "ZHNCiQIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNC", - "HUNhbXBhaWduU2hhcmVkU2V0U2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "c2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2Vy", - "dmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2Vz", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation), global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult), global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult.Parser, new[]{ "ResourceName", "CampaignSharedSet" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v12.services.CampaignSharedSetService.MutateCampaignSharedSets]. - /// - public sealed partial class MutateCampaignSharedSetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignSharedSetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetsRequest(MutateCampaignSharedSetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetsRequest Clone() { - return new MutateCampaignSharedSetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign shared sets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual campaign shared sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignSharedSetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignSharedSetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignSharedSetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an campaign shared set. - /// - public sealed partial class CampaignSharedSetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignSharedSetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetOperation(CampaignSharedSetOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetOperation Clone() { - return new CampaignSharedSetOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new campaign - /// shared set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed campaign shared set is - /// expected, in this format: - /// - /// `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignSharedSetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignSharedSetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignSharedSetOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a campaign shared set mutate. - /// - public sealed partial class MutateCampaignSharedSetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignSharedSetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetsResponse(MutateCampaignSharedSetsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetsResponse Clone() { - return new MutateCampaignSharedSetsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignSharedSetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignSharedSetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignSharedSetsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign shared set mutate. - /// - public sealed partial class MutateCampaignSharedSetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCampaignSharedSetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetResult(MutateCampaignSharedSetResult other) : this() { - resourceName_ = other.resourceName_; - campaignSharedSet_ = other.campaignSharedSet_ != null ? other.campaignSharedSet_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCampaignSharedSetResult Clone() { - return new MutateCampaignSharedSetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_shared_set" field. - public const int CampaignSharedSetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet campaignSharedSet_; - /// - /// The mutated campaign shared set with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet CampaignSharedSet { - get { return campaignSharedSet_; } - set { - campaignSharedSet_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCampaignSharedSetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCampaignSharedSetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CampaignSharedSet, other.CampaignSharedSet)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (campaignSharedSet_ != null) hash ^= CampaignSharedSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignSharedSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignSharedSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (campaignSharedSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignSharedSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (campaignSharedSet_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignSharedSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCampaignSharedSetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.campaignSharedSet_ != null) { - if (campaignSharedSet_ == null) { - CampaignSharedSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - } - CampaignSharedSet.MergeFrom(other.CampaignSharedSet); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignSharedSet_ == null) { - CampaignSharedSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - } - input.ReadMessage(CampaignSharedSet); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (campaignSharedSet_ == null) { - CampaignSharedSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - } - input.ReadMessage(CampaignSharedSet); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceClient.g.cs deleted file mode 100755 index 5712d567a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceClient.g.cs +++ /dev/null @@ -1,558 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CampaignSharedSetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CampaignSharedSetServiceSettings GetDefault() => new CampaignSharedSetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CampaignSharedSetServiceSettings() - { - } - - private CampaignSharedSetServiceSettings(CampaignSharedSetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCampaignSharedSetsSettings = existing.MutateCampaignSharedSetsSettings; - OnCopy(existing); - } - - partial void OnCopy(CampaignSharedSetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CampaignSharedSetServiceClient.MutateCampaignSharedSets and - /// CampaignSharedSetServiceClient.MutateCampaignSharedSetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCampaignSharedSetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CampaignSharedSetServiceSettings Clone() => new CampaignSharedSetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CampaignSharedSetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CampaignSharedSetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CampaignSharedSetServiceClientBuilder() : base(CampaignSharedSetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CampaignSharedSetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CampaignSharedSetServiceClient Build() - { - CampaignSharedSetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CampaignSharedSetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CampaignSharedSetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CampaignSharedSetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CampaignSharedSetServiceClient.ChannelPool; - } - - /// CampaignSharedSetService client wrapper, for convenient use. - /// - /// Service to manage campaign shared sets. - /// - public abstract partial class CampaignSharedSetServiceClient - { - /// - /// The default endpoint for the CampaignSharedSetService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CampaignSharedSetService scopes. - /// - /// The default CampaignSharedSetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CampaignSharedSetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CampaignSharedSetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CampaignSharedSetServiceClient Create() => new CampaignSharedSetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CampaignSharedSetServiceClient Create(grpccore::CallInvoker callInvoker, CampaignSharedSetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CampaignSharedSetService.CampaignSharedSetServiceClient grpcClient = new CampaignSharedSetService.CampaignSharedSetServiceClient(callInvoker); - return new CampaignSharedSetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CampaignSharedSetService client - public virtual CampaignSharedSetService.CampaignSharedSetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignSharedSetsResponse MutateCampaignSharedSets(MutateCampaignSharedSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignSharedSetsAsync(MutateCampaignSharedSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignSharedSetsAsync(MutateCampaignSharedSetsRequest request, st::CancellationToken cancellationToken) => - MutateCampaignSharedSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign shared sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign shared sets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCampaignSharedSetsResponse MutateCampaignSharedSets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignSharedSets(new MutateCampaignSharedSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign shared sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign shared sets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignSharedSetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCampaignSharedSetsAsync(new MutateCampaignSharedSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose campaign shared sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual campaign shared sets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCampaignSharedSetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCampaignSharedSetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CampaignSharedSetService client wrapper implementation, for convenient use. - /// - /// Service to manage campaign shared sets. - /// - public sealed partial class CampaignSharedSetServiceClientImpl : CampaignSharedSetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCampaignSharedSets; - - /// - /// Constructs a client wrapper for the CampaignSharedSetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CampaignSharedSetServiceClientImpl(CampaignSharedSetService.CampaignSharedSetServiceClient grpcClient, CampaignSharedSetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CampaignSharedSetServiceSettings effectiveSettings = settings ?? CampaignSharedSetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCampaignSharedSets = clientHelper.BuildApiCall("MutateCampaignSharedSets", grpcClient.MutateCampaignSharedSetsAsync, grpcClient.MutateCampaignSharedSets, effectiveSettings.MutateCampaignSharedSetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCampaignSharedSets); - Modify_MutateCampaignSharedSetsApiCall(ref _callMutateCampaignSharedSets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCampaignSharedSetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CampaignSharedSetService.CampaignSharedSetServiceClient grpcClient, CampaignSharedSetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CampaignSharedSetService client - public override CampaignSharedSetService.CampaignSharedSetServiceClient GrpcClient { get; } - - partial void Modify_MutateCampaignSharedSetsRequest(ref MutateCampaignSharedSetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCampaignSharedSetsResponse MutateCampaignSharedSets(MutateCampaignSharedSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignSharedSetsRequest(ref request, ref callSettings); - return _callMutateCampaignSharedSets.Sync(request, callSettings); - } - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCampaignSharedSetsAsync(MutateCampaignSharedSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCampaignSharedSetsRequest(ref request, ref callSettings); - return _callMutateCampaignSharedSets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceGrpc.g.cs deleted file mode 100755 index 26a8371b1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceGrpc.g.cs +++ /dev/null @@ -1,327 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/campaign_shared_set_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage campaign shared sets. - /// - public static partial class CampaignSharedSetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CampaignSharedSetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignSharedSetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCampaignSharedSetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCampaignSharedSets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCampaignSharedSets", - __Marshaller_google_ads_googleads_v12_services_MutateCampaignSharedSetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCampaignSharedSetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CampaignSharedSetService - [grpc::BindServiceMethod(typeof(CampaignSharedSetService), "BindService")] - public abstract partial class CampaignSharedSetServiceBase - { - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCampaignSharedSets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CampaignSharedSetService - public partial class CampaignSharedSetServiceClient : grpc::ClientBase - { - /// Creates a new client for CampaignSharedSetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignSharedSetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CampaignSharedSetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CampaignSharedSetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignSharedSetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CampaignSharedSetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsResponse MutateCampaignSharedSets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignSharedSets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsResponse MutateCampaignSharedSets(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCampaignSharedSets, null, options, request); - } - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignSharedSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCampaignSharedSetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes campaign shared sets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CampaignSharedSetError]() - /// [ContextError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCampaignSharedSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCampaignSharedSets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CampaignSharedSetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CampaignSharedSetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CampaignSharedSetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCampaignSharedSets, serviceImpl.MutateCampaignSharedSets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignSharedSetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCampaignSharedSets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCampaignSharedSets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceResourceNames.g.cs deleted file mode 100755 index ca7c58284..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CampaignSharedSetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CampaignSharedSetName RemoveAsCampaignSharedSetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CampaignSharedSetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCampaignSharedSetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignSharedSetName ResourceNameAsCampaignSharedSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CampaignSharedSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSharedSetStatus.g.cs deleted file mode 100755 index ef994057e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSharedSetStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_shared_set_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_shared_set_status.proto - public static partial class CampaignSharedSetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_shared_set_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignSharedSetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fc2hh", - "cmVkX3NldF9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyJwChtDYW1wYWlnblNoYXJlZFNldFN0YXR1c0VudW0iUQoXQ2Ft", - "cGFpZ25TaGFyZWRTZXRTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktO", - "T1dOEAESCwoHRU5BQkxFRBACEgsKB1JFTU9WRUQQA0L2AQoiY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IcQ2FtcGFpZ25TaGFyZWRTZXRT", - "dGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIe", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusEnum.Types.CampaignSharedSetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing types of campaign shared set statuses. - /// - public sealed partial class CampaignSharedSetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignSharedSetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignSharedSetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetStatusEnum(CampaignSharedSetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSharedSetStatusEnum Clone() { - return new CampaignSharedSetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignSharedSetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignSharedSetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignSharedSetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignSharedSetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum listing the possible campaign shared set statuses. - /// - public enum CampaignSharedSetStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The campaign shared set is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The campaign shared set is removed and can no longer be used. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSimulation.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSimulation.g.cs deleted file mode 100755 index 8f87f7a24..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSimulation.g.cs +++ /dev/null @@ -1,799 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/campaign_simulation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/campaign_simulation.proto - public static partial class CampaignSimulationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/campaign_simulation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignSimulationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWdu", - "X3NpbXVsYXRpb24ucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaMGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vc2lt", - "dWxhdGlvbi5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3NpbXVsYXRpb25fbW9kaWZpY2F0aW9uX21ldGhvZC5wcm90bxo0Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3NpbXVsYXRpb25fdHlwZS5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90byK6CAoSQ2FtcGFpZ25TaW11bGF0aW9uEkoKDXJl", - "c291cmNlX25hbWUYASABKAlCM+BBA/pBLQorZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NhbXBhaWduU2ltdWxhdGlvbhIYCgtjYW1wYWlnbl9pZBgCIAEo", - "A0ID4EEDElQKBHR5cGUYAyABKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuU2ltdWxhdGlvblR5cGVFbnVtLlNpbXVsYXRpb25UeXBlQgPg", - "QQMSfwoTbW9kaWZpY2F0aW9uX21ldGhvZBgEIAEoDjJdLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lbnVtcy5TaW11bGF0aW9uTW9kaWZpY2F0aW9uTWV0", - "aG9kRW51bS5TaW11bGF0aW9uTW9kaWZpY2F0aW9uTWV0aG9kQgPgQQMSFwoK", - "c3RhcnRfZGF0ZRgFIAEoCUID4EEDEhUKCGVuZF9kYXRlGAYgASgJQgPgQQMS", - "XQoSY3BjX2JpZF9wb2ludF9saXN0GAcgASgLMjouZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5DcGNCaWRTaW11bGF0aW9uUG9pbnRMaXN0QgPg", - "QQNIABJjChV0YXJnZXRfY3BhX3BvaW50X2xpc3QYCCABKAsyPS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlRhcmdldENwYVNpbXVsYXRpb25Q", - "b2ludExpc3RCA+BBA0gAEmUKFnRhcmdldF9yb2FzX3BvaW50X2xpc3QYCSAB", - "KAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlRhcmdldFJv", - "YXNTaW11bGF0aW9uUG9pbnRMaXN0QgPgQQNIABJ8CiJ0YXJnZXRfaW1wcmVz", - "c2lvbl9zaGFyZV9wb2ludF9saXN0GAogASgLMkkuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5UYXJnZXRJbXByZXNzaW9uU2hhcmVTaW11bGF0", - "aW9uUG9pbnRMaXN0QgPgQQNIABJcChFidWRnZXRfcG9pbnRfbGlzdBgLIAEo", - "CzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQnVkZ2V0U2lt", - "dWxhdGlvblBvaW50TGlzdEID4EEDSAA6oQHqQZ0BCitnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ2FtcGFpZ25TaW11bGF0aW9uEm5jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkfS9jYW1wYWlnblNpbXVsYXRpb25zL3tjYW1wYWlnbl9pZH1+", - "e3R5cGV9fnttb2RpZmljYXRpb25fbWV0aG9kfX57c3RhcnRfZGF0ZX1+e2Vu", - "ZF9kYXRlfUIMCgpwb2ludF9saXN0QokCCiZjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlc0IXQ2FtcGFpZ25TaW11bGF0aW9uUHJvdG9Q", - "AVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.SimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulation), global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulation.Parser, new[]{ "ResourceName", "CampaignId", "Type", "ModificationMethod", "StartDate", "EndDate", "CpcBidPointList", "TargetCpaPointList", "TargetRoasPointList", "TargetImpressionSharePointList", "BudgetPointList" }, new[]{ "PointList" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A campaign simulation. Supported combinations of advertising - /// channel type, simulation type and simulation modification - /// method is detailed below respectively. - /// - /// * SEARCH - CPC_BID - UNIFORM - /// * SEARCH - CPC_BID - SCALING - /// * SEARCH - TARGET_CPA - UNIFORM - /// * SEARCH - TARGET_CPA - SCALING - /// * SEARCH - TARGET_ROAS - UNIFORM - /// * SEARCH - TARGET_IMPRESSION_SHARE - UNIFORM - /// * SEARCH - BUDGET - UNIFORM - /// * SHOPPING - BUDGET - UNIFORM - /// * SHOPPING - TARGET_ROAS - UNIFORM - /// * MULTI_CHANNEL - TARGET_CPA - UNIFORM - /// * DISCOVERY - TARGET_CPA - DEFAULT - /// * DISPLAY - TARGET_CPA - UNIFORM - /// - public sealed partial class CampaignSimulation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignSimulation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSimulation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSimulation(CampaignSimulation other) : this() { - resourceName_ = other.resourceName_; - campaignId_ = other.campaignId_; - type_ = other.type_; - modificationMethod_ = other.modificationMethod_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - switch (other.PointListCase) { - case PointListOneofCase.CpcBidPointList: - CpcBidPointList = other.CpcBidPointList.Clone(); - break; - case PointListOneofCase.TargetCpaPointList: - TargetCpaPointList = other.TargetCpaPointList.Clone(); - break; - case PointListOneofCase.TargetRoasPointList: - TargetRoasPointList = other.TargetRoasPointList.Clone(); - break; - case PointListOneofCase.TargetImpressionSharePointList: - TargetImpressionSharePointList = other.TargetImpressionSharePointList.Clone(); - break; - case PointListOneofCase.BudgetPointList: - BudgetPointList = other.BudgetPointList.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignSimulation Clone() { - return new CampaignSimulation(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the campaign simulation. - /// Campaign simulation resource names have the form: - /// - /// `customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_id" field. - public const int CampaignIdFieldNumber = 2; - private long campaignId_; - /// - /// Output only. Campaign id of the simulation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CampaignId { - get { return campaignId_; } - set { - campaignId_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType type_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified; - /// - /// Output only. The field that the simulation modifies. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "modification_method" field. - public const int ModificationMethodFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod modificationMethod_ = global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified; - /// - /// Output only. How the simulation modifies the field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod ModificationMethod { - get { return modificationMethod_; } - set { - modificationMethod_ = value; - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 5; - private string startDate_ = ""; - /// - /// Output only. First day on which the simulation is based, in YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 6; - private string endDate_ = ""; - /// - /// Output only. Last day on which the simulation is based, in YYYY-MM-DD format - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "cpc_bid_point_list" field. - public const int CpcBidPointListFieldNumber = 7; - /// - /// Output only. Simulation points if the simulation type is CPC_BID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList CpcBidPointList { - get { return pointListCase_ == PointListOneofCase.CpcBidPointList ? (global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.CpcBidPointList; - } - } - - /// Field number for the "target_cpa_point_list" field. - public const int TargetCpaPointListFieldNumber = 8; - /// - /// Output only. Simulation points if the simulation type is TARGET_CPA. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList TargetCpaPointList { - get { return pointListCase_ == PointListOneofCase.TargetCpaPointList ? (global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.TargetCpaPointList; - } - } - - /// Field number for the "target_roas_point_list" field. - public const int TargetRoasPointListFieldNumber = 9; - /// - /// Output only. Simulation points if the simulation type is TARGET_ROAS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList TargetRoasPointList { - get { return pointListCase_ == PointListOneofCase.TargetRoasPointList ? (global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.TargetRoasPointList; - } - } - - /// Field number for the "target_impression_share_point_list" field. - public const int TargetImpressionSharePointListFieldNumber = 10; - /// - /// Output only. Simulation points if the simulation type is TARGET_IMPRESSION_SHARE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShareSimulationPointList TargetImpressionSharePointList { - get { return pointListCase_ == PointListOneofCase.TargetImpressionSharePointList ? (global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShareSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.TargetImpressionSharePointList; - } - } - - /// Field number for the "budget_point_list" field. - public const int BudgetPointListFieldNumber = 11; - /// - /// Output only. Simulation points if the simulation type is BUDGET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.BudgetSimulationPointList BudgetPointList { - get { return pointListCase_ == PointListOneofCase.BudgetPointList ? (global::Google.Ads.GoogleAds.V12.Common.BudgetSimulationPointList) pointList_ : null; } - set { - pointList_ = value; - pointListCase_ = value == null ? PointListOneofCase.None : PointListOneofCase.BudgetPointList; - } - } - - private object pointList_; - /// Enum of possible cases for the "point_list" oneof. - public enum PointListOneofCase { - None = 0, - CpcBidPointList = 7, - TargetCpaPointList = 8, - TargetRoasPointList = 9, - TargetImpressionSharePointList = 10, - BudgetPointList = 11, - } - private PointListOneofCase pointListCase_ = PointListOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PointListOneofCase PointListCase { - get { return pointListCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPointList() { - pointListCase_ = PointListOneofCase.None; - pointList_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignSimulation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignSimulation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (CampaignId != other.CampaignId) return false; - if (Type != other.Type) return false; - if (ModificationMethod != other.ModificationMethod) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if (!object.Equals(CpcBidPointList, other.CpcBidPointList)) return false; - if (!object.Equals(TargetCpaPointList, other.TargetCpaPointList)) return false; - if (!object.Equals(TargetRoasPointList, other.TargetRoasPointList)) return false; - if (!object.Equals(TargetImpressionSharePointList, other.TargetImpressionSharePointList)) return false; - if (!object.Equals(BudgetPointList, other.BudgetPointList)) return false; - if (PointListCase != other.PointListCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (CampaignId != 0L) hash ^= CampaignId.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) hash ^= Type.GetHashCode(); - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) hash ^= ModificationMethod.GetHashCode(); - if (StartDate.Length != 0) hash ^= StartDate.GetHashCode(); - if (EndDate.Length != 0) hash ^= EndDate.GetHashCode(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) hash ^= CpcBidPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) hash ^= TargetCpaPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) hash ^= TargetRoasPointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) hash ^= TargetImpressionSharePointList.GetHashCode(); - if (pointListCase_ == PointListOneofCase.BudgetPointList) hash ^= BudgetPointList.GetHashCode(); - hash ^= (int) pointListCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CampaignId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(CampaignId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ModificationMethod); - } - if (StartDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDate); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - output.WriteRawTag(58); - output.WriteMessage(CpcBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - output.WriteRawTag(66); - output.WriteMessage(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - output.WriteRawTag(74); - output.WriteMessage(TargetRoasPointList); - } - if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) { - output.WriteRawTag(82); - output.WriteMessage(TargetImpressionSharePointList); - } - if (pointListCase_ == PointListOneofCase.BudgetPointList) { - output.WriteRawTag(90); - output.WriteMessage(BudgetPointList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CampaignId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(CampaignId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ModificationMethod); - } - if (StartDate.Length != 0) { - output.WriteRawTag(42); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(50); - output.WriteString(EndDate); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - output.WriteRawTag(58); - output.WriteMessage(CpcBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - output.WriteRawTag(66); - output.WriteMessage(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - output.WriteRawTag(74); - output.WriteMessage(TargetRoasPointList); - } - if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) { - output.WriteRawTag(82); - output.WriteMessage(TargetImpressionSharePointList); - } - if (pointListCase_ == PointListOneofCase.BudgetPointList) { - output.WriteRawTag(90); - output.WriteMessage(BudgetPointList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (CampaignId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CampaignId); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModificationMethod); - } - if (StartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (EndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CpcBidPointList); - } - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetCpaPointList); - } - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetRoasPointList); - } - if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetImpressionSharePointList); - } - if (pointListCase_ == PointListOneofCase.BudgetPointList) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BudgetPointList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignSimulation other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.CampaignId != 0L) { - CampaignId = other.CampaignId; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { - Type = other.Type; - } - if (other.ModificationMethod != global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { - ModificationMethod = other.ModificationMethod; - } - if (other.StartDate.Length != 0) { - StartDate = other.StartDate; - } - if (other.EndDate.Length != 0) { - EndDate = other.EndDate; - } - switch (other.PointListCase) { - case PointListOneofCase.CpcBidPointList: - if (CpcBidPointList == null) { - CpcBidPointList = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - } - CpcBidPointList.MergeFrom(other.CpcBidPointList); - break; - case PointListOneofCase.TargetCpaPointList: - if (TargetCpaPointList == null) { - TargetCpaPointList = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - } - TargetCpaPointList.MergeFrom(other.TargetCpaPointList); - break; - case PointListOneofCase.TargetRoasPointList: - if (TargetRoasPointList == null) { - TargetRoasPointList = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - } - TargetRoasPointList.MergeFrom(other.TargetRoasPointList); - break; - case PointListOneofCase.TargetImpressionSharePointList: - if (TargetImpressionSharePointList == null) { - TargetImpressionSharePointList = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShareSimulationPointList(); - } - TargetImpressionSharePointList.MergeFrom(other.TargetImpressionSharePointList); - break; - case PointListOneofCase.BudgetPointList: - if (BudgetPointList == null) { - BudgetPointList = new global::Google.Ads.GoogleAds.V12.Common.BudgetSimulationPointList(); - } - BudgetPointList.MergeFrom(other.BudgetPointList); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - CampaignId = input.ReadInt64(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 32: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 42: { - StartDate = input.ReadString(); - break; - } - case 50: { - EndDate = input.ReadString(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - subBuilder.MergeFrom(CpcBidPointList); - } - input.ReadMessage(subBuilder); - CpcBidPointList = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - subBuilder.MergeFrom(TargetCpaPointList); - } - input.ReadMessage(subBuilder); - TargetCpaPointList = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - subBuilder.MergeFrom(TargetRoasPointList); - } - input.ReadMessage(subBuilder); - TargetRoasPointList = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShareSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShareSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) { - subBuilder.MergeFrom(TargetImpressionSharePointList); - } - input.ReadMessage(subBuilder); - TargetImpressionSharePointList = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.BudgetSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BudgetSimulationPointList(); - if (pointListCase_ == PointListOneofCase.BudgetPointList) { - subBuilder.MergeFrom(BudgetPointList); - } - input.ReadMessage(subBuilder); - BudgetPointList = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - CampaignId = input.ReadInt64(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.SimulationTypeEnum.Types.SimulationType) input.ReadEnum(); - break; - } - case 32: { - ModificationMethod = (global::Google.Ads.GoogleAds.V12.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod) input.ReadEnum(); - break; - } - case 42: { - StartDate = input.ReadString(); - break; - } - case 50: { - EndDate = input.ReadString(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CpcBidSimulationPointList(); - if (pointListCase_ == PointListOneofCase.CpcBidPointList) { - subBuilder.MergeFrom(CpcBidPointList); - } - input.ReadMessage(subBuilder); - CpcBidPointList = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetCpaSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { - subBuilder.MergeFrom(TargetCpaPointList); - } - input.ReadMessage(subBuilder); - TargetCpaPointList = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetRoasSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { - subBuilder.MergeFrom(TargetRoasPointList); - } - input.ReadMessage(subBuilder); - TargetRoasPointList = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShareSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TargetImpressionShareSimulationPointList(); - if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) { - subBuilder.MergeFrom(TargetImpressionSharePointList); - } - input.ReadMessage(subBuilder); - TargetImpressionSharePointList = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.BudgetSimulationPointList subBuilder = new global::Google.Ads.GoogleAds.V12.Common.BudgetSimulationPointList(); - if (pointListCase_ == PointListOneofCase.BudgetPointList) { - subBuilder.MergeFrom(BudgetPointList); - } - input.ReadMessage(subBuilder); - BudgetPointList = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CampaignSimulationResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignSimulationResourceNames.g.cs deleted file mode 100755 index abb9e6c2b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignSimulationResourceNames.g.cs +++ /dev/null @@ -1,364 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CampaignSimulation resource. - public sealed partial class CampaignSimulationName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - CustomerCampaignTypeModificationMethodStartDateEndDate = 1, - } - - private static gax::PathTemplate s_customerCampaignTypeModificationMethodStartDateEndDate = new gax::PathTemplate("customers/{customer_id}/campaignSimulations/{campaign_id_type_modification_method_start_date_end_date}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CampaignSimulationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CampaignSimulationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CampaignSimulationName FromCustomerCampaignTypeModificationMethodStartDateEndDate(string customerId, string campaignId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - new CampaignSimulationName(ResourceNameType.CustomerCampaignTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string Format(string customerId, string campaignId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - FormatCustomerCampaignTypeModificationMethodStartDateEndDate(customerId, campaignId, typeId, modificationMethodId, startDateId, endDateId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// . - /// - public static string FormatCustomerCampaignTypeModificationMethodStartDateEndDate(string customerId, string campaignId, string typeId, string modificationMethodId, string startDateId, string endDateId) => - s_customerCampaignTypeModificationMethodStartDateEndDate.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CampaignSimulationName Parse(string campaignSimulationName) => Parse(campaignSimulationName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CampaignSimulationName Parse(string campaignSimulationName, bool allowUnparsed) => - TryParse(campaignSimulationName, allowUnparsed, out CampaignSimulationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignSimulationName, out CampaignSimulationName result) => - TryParse(campaignSimulationName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string campaignSimulationName, bool allowUnparsed, out CampaignSimulationName result) - { - gax::GaxPreconditions.CheckNotNull(campaignSimulationName, nameof(campaignSimulationName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignTypeModificationMethodStartDateEndDate.TryParseName(campaignSimulationName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignTypeModificationMethodStartDateEndDate(resourceName[0], split1[0], split1[1], split1[2], split1[3], split1[4]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(campaignSimulationName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CampaignSimulationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null, string endDateId = null, string modificationMethodId = null, string startDateId = null, string typeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - EndDateId = endDateId; - ModificationMethodId = modificationMethodId; - StartDateId = startDateId; - TypeId = typeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern - /// - /// customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Type ID. Must not be null or empty. - /// - /// The ModificationMethod ID. Must not be null or empty. - /// - /// The StartDate ID. Must not be null or empty. - /// The EndDate ID. Must not be null or empty. - public CampaignSimulationName(string customerId, string campaignId, string typeId, string modificationMethodId, string startDateId, string endDateId) : this(ResourceNameType.CustomerCampaignTypeModificationMethodStartDateEndDate, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), typeId: gax::GaxPreconditions.CheckNotNullOrEmpty(typeId, nameof(typeId)), modificationMethodId: gax::GaxPreconditions.CheckNotNullOrEmpty(modificationMethodId, nameof(modificationMethodId)), startDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(startDateId, nameof(startDateId)), endDateId: gax::GaxPreconditions.CheckNotNullOrEmpty(endDateId, nameof(endDateId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The EndDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string EndDateId { get; } - - /// - /// The ModificationMethod ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ModificationMethodId { get; } - - /// - /// The StartDate ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string StartDateId { get; } - - /// - /// The Type ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignTypeModificationMethodStartDateEndDate: return s_customerCampaignTypeModificationMethodStartDateEndDate.Expand(CustomerId, $"{CampaignId}~{TypeId}~{ModificationMethodId}~{StartDateId}~{EndDateId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CampaignSimulationName); - - /// - public bool Equals(CampaignSimulationName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CampaignSimulationName a, CampaignSimulationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CampaignSimulationName a, CampaignSimulationName b) => !(a == b); - } - - public partial class CampaignSimulation - { - /// - /// -typed view over the resource name property. - /// - internal CampaignSimulationName ResourceNameAsCampaignSimulationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CampaignSimulationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CampaignStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CampaignStatus.g.cs deleted file mode 100755 index 1fde4acf1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CampaignStatus.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_status.proto - public static partial class CampaignStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CampaignStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fc3Rh", - "dHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiagoS", - "Q2FtcGFpZ25TdGF0dXNFbnVtIlQKDkNhbXBhaWduU3RhdHVzEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0VOQUJMRUQQAhIKCgZQQVVTRUQQ", - "AxILCgdSRU1PVkVEEARC7QEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXNCE0NhbXBhaWduU3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5F", - "bnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusEnum.Types.CampaignStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a campaign. - /// - public sealed partial class CampaignStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignStatusEnum(CampaignStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignStatusEnum Clone() { - return new CampaignStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CampaignStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a campaign. - /// - public enum CampaignStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Campaign is currently serving ads depending on budget information. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Campaign has been paused by the user. - /// - [pbr::OriginalName("PAUSED")] Paused = 3, - /// - /// Campaign has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CarrierConstantResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CarrierConstantResourceNames.g.cs deleted file mode 100755 index cad4f4495..000000000 --- a/Google.Ads.GoogleAds/src/V12/CarrierConstantResourceNames.g.cs +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CarrierConstant resource. - public sealed partial class CarrierConstantName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern carrierConstants/{criterion_id}. - Criterion = 1, - } - - private static gax::PathTemplate s_criterion = new gax::PathTemplate("carrierConstants/{criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CarrierConstantName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CarrierConstantName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern carrierConstants/{criterion_id}. - /// - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CarrierConstantName FromCriterion(string criterionId) => - new CarrierConstantName(ResourceNameType.Criterion, criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// carrierConstants/{criterion_id}. - /// - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// carrierConstants/{criterion_id}. - /// - public static string Format(string criterionId) => FormatCriterion(criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// carrierConstants/{criterion_id}. - /// - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// carrierConstants/{criterion_id}. - /// - public static string FormatCriterion(string criterionId) => - s_criterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// carrierConstants/{criterion_id} - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CarrierConstantName Parse(string carrierConstantName) => Parse(carrierConstantName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// carrierConstants/{criterion_id} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CarrierConstantName Parse(string carrierConstantName, bool allowUnparsed) => - TryParse(carrierConstantName, allowUnparsed, out CarrierConstantName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// carrierConstants/{criterion_id} - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string carrierConstantName, out CarrierConstantName result) => - TryParse(carrierConstantName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// carrierConstants/{criterion_id} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string carrierConstantName, bool allowUnparsed, out CarrierConstantName result) - { - gax::GaxPreconditions.CheckNotNull(carrierConstantName, nameof(carrierConstantName)); - gax::TemplatedResourceName resourceName; - if (s_criterion.TryParseName(carrierConstantName, out resourceName)) - { - result = FromCriterion(resourceName[0]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(carrierConstantName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CarrierConstantName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string criterionId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CriterionId = criterionId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// carrierConstants/{criterion_id} - /// - /// The Criterion ID. Must not be null or empty. - public CarrierConstantName(string criterionId) : this(ResourceNameType.Criterion, criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.Criterion: return s_criterion.Expand(CriterionId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CarrierConstantName); - - /// - public bool Equals(CarrierConstantName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CarrierConstantName a, CarrierConstantName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CarrierConstantName a, CarrierConstantName b) => !(a == b); - } - - public partial class CarrierConstant - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CarrierConstantName ResourceNameAsCarrierConstantName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CarrierConstantName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CarrierConstantName CarrierConstantName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CarrierConstantName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ChainRelationshipType.g.cs b/Google.Ads.GoogleAds/src/V12/ChainRelationshipType.g.cs deleted file mode 100755 index d0d05d27e..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChainRelationshipType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/chain_relationship_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/chain_relationship_type.proto - public static partial class ChainRelationshipTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/chain_relationship_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChainRelationshipTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2hhaW5fcmVsYXRp", - "b25zaGlwX3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJ7ChlDaGFpblJlbGF0aW9uc2hpcFR5cGVFbnVtIl4KFUNoYWluUmVs", - "YXRpb25zaGlwVHlwZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIQ", - "CgxBVVRPX0RFQUxFUlMQAhIVChFHRU5FUkFMX1JFVEFJTEVSUxADQvQBCiJj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhpDaGFpblJlbGF0", - "aW9uc2hpcFR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogID", - "R0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeEnum.Types.ChainRelationshipType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible types of a relationship. - /// - public sealed partial class ChainRelationshipTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChainRelationshipTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ChainRelationshipTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainRelationshipTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainRelationshipTypeEnum(ChainRelationshipTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChainRelationshipTypeEnum Clone() { - return new ChainRelationshipTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChainRelationshipTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChainRelationshipTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChainRelationshipTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChainRelationshipTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible types of a relationship. - /// - public enum ChainRelationshipType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Auto dealer relationship. - /// - [pbr::OriginalName("AUTO_DEALERS")] AutoDealers = 2, - /// - /// General retailer relationship. - /// - [pbr::OriginalName("GENERAL_RETAILERS")] GeneralRetailers = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeClientType.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeClientType.g.cs deleted file mode 100755 index a18b219c6..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeClientType.g.cs +++ /dev/null @@ -1,289 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/change_client_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/change_client_type.proto - public static partial class ChangeClientTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/change_client_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeClientTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2hhbmdlX2NsaWVu", - "dF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi", - "7QIKFENoYW5nZUNsaWVudFR5cGVFbnVtItQCChBDaGFuZ2VDbGllbnRUeXBl", - "Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhkKFUdPT0dMRV9BRFNf", - "V0VCX0NMSUVOVBACEh0KGUdPT0dMRV9BRFNfQVVUT01BVEVEX1JVTEUQAxIW", - "ChJHT09HTEVfQURTX1NDUklQVFMQBBIaChZHT09HTEVfQURTX0JVTEtfVVBM", - "T0FEEAUSEgoOR09PR0xFX0FEU19BUEkQBhIVChFHT09HTEVfQURTX0VESVRP", - "UhAHEhkKFUdPT0dMRV9BRFNfTU9CSUxFX0FQUBAIEh4KGkdPT0dMRV9BRFNf", - "UkVDT01NRU5EQVRJT05TEAkSFwoTU0VBUkNIX0FEU18zNjBfU1lOQxAKEhcK", - "E1NFQVJDSF9BRFNfMzYwX1BPU1QQCxIRCg1JTlRFUk5BTF9UT09MEAwSCQoF", - "T1RIRVIQDULvAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "c0IVQ2hhbmdlQ2xpZW50VHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7", - "ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPK", - "Ah5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the sources that the change event resource - /// was made through. - /// - public sealed partial class ChangeClientTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeClientTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeClientTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeClientTypeEnum(ChangeClientTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeClientTypeEnum Clone() { - return new ChangeClientTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeClientTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeClientTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeClientTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChangeClientTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The source that the change_event resource was made through. - /// - public enum ChangeClientType { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents an unclassified client type - /// unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Changes made through the "ads.google.com". - /// For example, changes made through campaign management. - /// - [pbr::OriginalName("GOOGLE_ADS_WEB_CLIENT")] GoogleAdsWebClient = 2, - /// - /// Changes made through Google Ads automated rules. - /// - [pbr::OriginalName("GOOGLE_ADS_AUTOMATED_RULE")] GoogleAdsAutomatedRule = 3, - /// - /// Changes made through Google Ads scripts. - /// - [pbr::OriginalName("GOOGLE_ADS_SCRIPTS")] GoogleAdsScripts = 4, - /// - /// Changes made by Google Ads bulk upload. - /// - [pbr::OriginalName("GOOGLE_ADS_BULK_UPLOAD")] GoogleAdsBulkUpload = 5, - /// - /// Changes made by Google Ads API. - /// - [pbr::OriginalName("GOOGLE_ADS_API")] GoogleAdsApi = 6, - /// - /// Changes made by Google Ads Editor. This value is a placeholder. - /// The API does not return these changes. - /// - [pbr::OriginalName("GOOGLE_ADS_EDITOR")] GoogleAdsEditor = 7, - /// - /// Changes made by Google Ads mobile app. - /// - [pbr::OriginalName("GOOGLE_ADS_MOBILE_APP")] GoogleAdsMobileApp = 8, - /// - /// Changes made through Google Ads recommendations. - /// - [pbr::OriginalName("GOOGLE_ADS_RECOMMENDATIONS")] GoogleAdsRecommendations = 9, - /// - /// Changes made through Search Ads 360 Sync. - /// - [pbr::OriginalName("SEARCH_ADS_360_SYNC")] SearchAds360Sync = 10, - /// - /// Changes made through Search Ads 360 Post. - /// - [pbr::OriginalName("SEARCH_ADS_360_POST")] SearchAds360Post = 11, - /// - /// Changes made through internal tools. - /// For example, when a user sets a URL template on an entity like a - /// Campaign, it's automatically wrapped with the SA360 Clickserver URL. - /// - [pbr::OriginalName("INTERNAL_TOOL")] InternalTool = 12, - /// - /// Types of changes that are not categorized, for example, - /// changes made by coupon redemption through Google Ads. - /// - [pbr::OriginalName("OTHER")] Other = 13, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeEvent.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeEvent.g.cs deleted file mode 100755 index 3ca32953d..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeEvent.g.cs +++ /dev/null @@ -1,2025 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/change_event.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/change_event.proto - public static partial class ChangeEventReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/change_event.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeEventReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NoYW5nZV9l", - "dmVudC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2NoYW5nZV9jbGll", - "bnRfdHlwZS5wcm90bxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2NoYW5nZV9ldmVudF9yZXNvdXJjZV90eXBlLnByb3RvGj5nb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvcmVzb3VyY2VfY2hhbmdlX29wZXJhdGlv", - "bi5wcm90bxorZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9h", - "ZC5wcm90bxoxZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9h", - "ZF9ncm91cC5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy9hZF9ncm91cF9hZC5wcm90bxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3Jlc291cmNlcy9hZF9ncm91cF9hc3NldC5wcm90bxo+Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9hZF9ncm91cF9iaWRfbW9kaWZp", - "ZXIucHJvdG8aO2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMv", - "YWRfZ3JvdXBfY3JpdGVyaW9uLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2FkX2dyb3VwX2ZlZWQucHJvdG8aLmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYXNzZXQucHJvdG8aMmdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYXNzZXRfc2V0LnByb3Rv", - "Gjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X3Nl", - "dF9hc3NldC5wcm90bxoxZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy9jYW1wYWlnbi5wcm90bxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9jYW1wYWlnbl9hc3NldC5wcm90bxo7Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9hc3NldF9zZXQucHJv", - "dG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY2FtcGFp", - "Z25fYnVkZ2V0LnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL2NhbXBhaWduX2NyaXRlcmlvbi5wcm90bxo2Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9mZWVkLnByb3RvGjdn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVyX2Fz", - "c2V0LnByb3RvGi1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "L2ZlZWQucHJvdG8aMmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJj", - "ZXMvZmVlZF9pdGVtLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9y", - "LnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJv", - "dG9idWYvZmllbGRfbWFzay5wcm90byLRFAoLQ2hhbmdlRXZlbnQSQwoNcmVz", - "b3VyY2VfbmFtZRgBIAEoCUIs4EED+kEmCiRnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ2hhbmdlRXZlbnQSHQoQY2hhbmdlX2RhdGVfdGltZRgCIAEoCUID", - "4EEDEnYKFGNoYW5nZV9yZXNvdXJjZV90eXBlGAMgASgOMlMuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLkNoYW5nZUV2ZW50UmVzb3VyY2VUeXBl", - "RW51bS5DaGFuZ2VFdmVudFJlc291cmNlVHlwZUID4EEDEiEKFGNoYW5nZV9y", - "ZXNvdXJjZV9uYW1lGAQgASgJQgPgQQMSXwoLY2xpZW50X3R5cGUYBSABKA4y", - "RS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQ2hhbmdlQ2xpZW50", - "VHlwZUVudW0uQ2hhbmdlQ2xpZW50VHlwZUID4EEDEhcKCnVzZXJfZW1haWwY", - "BiABKAlCA+BBAxJaCgxvbGRfcmVzb3VyY2UYByABKAsyPy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNoYW5nZUV2ZW50LkNoYW5nZWRS", - "ZXNvdXJjZUID4EEDEloKDG5ld19yZXNvdXJjZRgIIAEoCzI/Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2hhbmdlRXZlbnQuQ2hhbmdl", - "ZFJlc291cmNlQgPgQQMSewoZcmVzb3VyY2VfY2hhbmdlX29wZXJhdGlvbhgJ", - "IAEoDjJTLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNvdXJj", - "ZUNoYW5nZU9wZXJhdGlvbkVudW0uUmVzb3VyY2VDaGFuZ2VPcGVyYXRpb25C", - "A+BBAxI3Cg5jaGFuZ2VkX2ZpZWxkcxgKIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5GaWVsZE1hc2tCA+BBAxI7CghjYW1wYWlnbhgLIAEoCUIp4EED+kEjCiFn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ24SOgoIYWRfZ3JvdXAY", - "DCABKAlCKOBBA/pBIgogZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0FkR3Jv", - "dXASMwoEZmVlZBgNIAEoCUIl4EED+kEfCh1nb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vRmVlZBI8CglmZWVkX2l0ZW0YDiABKAlCKeBBA/pBIwohZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0ZlZWRJdGVtEjUKBWFzc2V0GBQgASgJQibg", - "QQP6QSAKHmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldBqzCwoPQ2hh", - "bmdlZFJlc291cmNlEjcKAmFkGAEgASgLMiYuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5BZEID4EEDEkIKCGFkX2dyb3VwGAIgASgLMisu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwQgPg", - "QQMSVQoSYWRfZ3JvdXBfY3JpdGVyaW9uGAMgASgLMjQuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwQ3JpdGVyaW9uQgPgQQMS", - "QwoIY2FtcGFpZ24YBCABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkNhbXBhaWduQgPgQQMSUAoPY2FtcGFpZ25fYnVkZ2V0GAUg", - "ASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1w", - "YWlnbkJ1ZGdldEID4EEDEloKFWFkX2dyb3VwX2JpZF9tb2RpZmllchgGIAEo", - "CzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91", - "cEJpZE1vZGlmaWVyQgPgQQMSVgoSY2FtcGFpZ25fY3JpdGVyaW9uGAcgASgL", - "MjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWln", - "bkNyaXRlcmlvbkID4EEDEjsKBGZlZWQYCCABKAsyKC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkZlZWRCA+BBAxJECglmZWVkX2l0ZW0Y", - "CSABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkZl", - "ZWRJdGVtQgPgQQMSTAoNY2FtcGFpZ25fZmVlZBgKIAEoCzIwLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25GZWVkQgPgQQMS", - "SwoNYWRfZ3JvdXBfZmVlZBgLIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuQWRHcm91cEZlZWRCA+BBAxJHCgthZF9ncm91cF9h", - "ZBgMIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "QWRHcm91cEFkQgPgQQMSPQoFYXNzZXQYDSABKAsyKS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkFzc2V0QgPgQQMSTgoOY3VzdG9tZXJf", - "YXNzZXQYDiABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzLkN1c3RvbWVyQXNzZXRCA+BBAxJOCg5jYW1wYWlnbl9hc3NldBgPIAEo", - "CzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFp", - "Z25Bc3NldEID4EEDEk0KDmFkX2dyb3VwX2Fzc2V0GBAgASgLMjAuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwQXNzZXRCA+BB", - "AxJECglhc3NldF9zZXQYESABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkFzc2V0U2V0QgPgQQMSTwoPYXNzZXRfc2V0X2Fzc2V0", - "GBIgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5B", - "c3NldFNldEFzc2V0QgPgQQMSVQoSY2FtcGFpZ25fYXNzZXRfc2V0GBMgASgL", - "MjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWln", - "bkFzc2V0U2V0QgPgQQM6gQHqQX4KJGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9DaGFuZ2VFdmVudBJWY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY2hhbmdl", - "RXZlbnRzL3t0aW1lc3RhbXBfbWljcm9zfX57Y29tbWFuZF9pbmRleH1+e211", - "dGF0ZV9pbmRleH1CggIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzQhBDaGFuZ2VFdmVudFByb3RvUAFaS2dvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVz", - "b3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJj", - "ZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetSetAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignBudgetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedItemReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent), global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Parser, new[]{ "ResourceName", "ChangeDateTime", "ChangeResourceType", "ChangeResourceName", "ClientType", "UserEmail", "OldResource", "NewResource", "ResourceChangeOperation", "ChangedFields", "Campaign", "AdGroup", "Feed", "FeedItem", "Asset" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource), global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource.Parser, new[]{ "Ad", "AdGroup", "AdGroupCriterion", "Campaign", "CampaignBudget", "AdGroupBidModifier", "CampaignCriterion", "Feed", "FeedItem", "CampaignFeed", "AdGroupFeed", "AdGroupAd", "Asset", "CustomerAsset", "CampaignAsset", "AdGroupAsset", "AssetSet", "AssetSetAsset", "CampaignAssetSet" }, null, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// Describes the granular change of returned resource of certain resource types. - /// Changes made through UI, API and new versions of Editor - /// by external users (including external users, and internal users that can be - /// shown externally) in the past 30 days will be shown. The change shows the old - /// values of the changed fields before the change and the new values right after - /// the change. ChangeEvent could have up to 3 minutes delay to reflect a new - /// change. - /// - public sealed partial class ChangeEvent : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeEvent()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ChangeEventReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEvent() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEvent(ChangeEvent other) : this() { - resourceName_ = other.resourceName_; - changeDateTime_ = other.changeDateTime_; - changeResourceType_ = other.changeResourceType_; - changeResourceName_ = other.changeResourceName_; - clientType_ = other.clientType_; - userEmail_ = other.userEmail_; - oldResource_ = other.oldResource_ != null ? other.oldResource_.Clone() : null; - newResource_ = other.newResource_ != null ? other.newResource_.Clone() : null; - resourceChangeOperation_ = other.resourceChangeOperation_; - changedFields_ = other.changedFields_ != null ? other.changedFields_.Clone() : null; - campaign_ = other.campaign_; - adGroup_ = other.adGroup_; - feed_ = other.feed_; - feedItem_ = other.feedItem_; - asset_ = other.asset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEvent Clone() { - return new ChangeEvent(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the change event. - /// Change event resource names have the form: - /// - /// `customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "change_date_time" field. - public const int ChangeDateTimeFieldNumber = 2; - private string changeDateTime_ = ""; - /// - /// Output only. Time at which the change was committed on this resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ChangeDateTime { - get { return changeDateTime_; } - set { - changeDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "change_resource_type" field. - public const int ChangeResourceTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType changeResourceType_ = global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType.Unspecified; - /// - /// Output only. The type of the changed resource. This dictates what resource - /// will be set in old_resource and new_resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType ChangeResourceType { - get { return changeResourceType_; } - set { - changeResourceType_ = value; - } - } - - /// Field number for the "change_resource_name" field. - public const int ChangeResourceNameFieldNumber = 4; - private string changeResourceName_ = ""; - /// - /// Output only. The Simply resource this change occurred on. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ChangeResourceName { - get { return changeResourceName_; } - set { - changeResourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "client_type" field. - public const int ClientTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType clientType_ = global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType.Unspecified; - /// - /// Output only. Where the change was made through. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType ClientType { - get { return clientType_; } - set { - clientType_ = value; - } - } - - /// Field number for the "user_email" field. - public const int UserEmailFieldNumber = 6; - private string userEmail_ = ""; - /// - /// Output only. The email of the user who made this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserEmail { - get { return userEmail_; } - set { - userEmail_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "old_resource" field. - public const int OldResourceFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource oldResource_; - /// - /// Output only. The old resource before the change. Only changed fields will be populated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource OldResource { - get { return oldResource_; } - set { - oldResource_ = value; - } - } - - /// Field number for the "new_resource" field. - public const int NewResourceFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource newResource_; - /// - /// Output only. The new resource after the change. Only changed fields will be populated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource NewResource { - get { return newResource_; } - set { - newResource_ = value; - } - } - - /// Field number for the "resource_change_operation" field. - public const int ResourceChangeOperationFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation resourceChangeOperation_ = global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation.Unspecified; - /// - /// Output only. The operation on the changed resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation ResourceChangeOperation { - get { return resourceChangeOperation_; } - set { - resourceChangeOperation_ = value; - } - } - - /// Field number for the "changed_fields" field. - public const int ChangedFieldsFieldNumber = 10; - private global::Google.Protobuf.WellKnownTypes.FieldMask changedFields_; - /// - /// Output only. A list of fields that are changed in the returned resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask ChangedFields { - get { return changedFields_; } - set { - changedFields_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 11; - private string campaign_ = ""; - /// - /// Output only. The Campaign affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 12; - private string adGroup_ = ""; - /// - /// Output only. The AdGroup affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 13; - private string feed_ = ""; - /// - /// Output only. The Feed affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_item" field. - public const int FeedItemFieldNumber = 14; - private string feedItem_ = ""; - /// - /// Output only. The FeedItem affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedItem { - get { return feedItem_; } - set { - feedItem_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 20; - private string asset_ = ""; - /// - /// Output only. The Asset affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeEvent); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeEvent other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ChangeDateTime != other.ChangeDateTime) return false; - if (ChangeResourceType != other.ChangeResourceType) return false; - if (ChangeResourceName != other.ChangeResourceName) return false; - if (ClientType != other.ClientType) return false; - if (UserEmail != other.UserEmail) return false; - if (!object.Equals(OldResource, other.OldResource)) return false; - if (!object.Equals(NewResource, other.NewResource)) return false; - if (ResourceChangeOperation != other.ResourceChangeOperation) return false; - if (!object.Equals(ChangedFields, other.ChangedFields)) return false; - if (Campaign != other.Campaign) return false; - if (AdGroup != other.AdGroup) return false; - if (Feed != other.Feed) return false; - if (FeedItem != other.FeedItem) return false; - if (Asset != other.Asset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (ChangeDateTime.Length != 0) hash ^= ChangeDateTime.GetHashCode(); - if (ChangeResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType.Unspecified) hash ^= ChangeResourceType.GetHashCode(); - if (ChangeResourceName.Length != 0) hash ^= ChangeResourceName.GetHashCode(); - if (ClientType != global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType.Unspecified) hash ^= ClientType.GetHashCode(); - if (UserEmail.Length != 0) hash ^= UserEmail.GetHashCode(); - if (oldResource_ != null) hash ^= OldResource.GetHashCode(); - if (newResource_ != null) hash ^= NewResource.GetHashCode(); - if (ResourceChangeOperation != global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation.Unspecified) hash ^= ResourceChangeOperation.GetHashCode(); - if (changedFields_ != null) hash ^= ChangedFields.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (AdGroup.Length != 0) hash ^= AdGroup.GetHashCode(); - if (Feed.Length != 0) hash ^= Feed.GetHashCode(); - if (FeedItem.Length != 0) hash ^= FeedItem.GetHashCode(); - if (Asset.Length != 0) hash ^= Asset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ChangeDateTime.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ChangeDateTime); - } - if (ChangeResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ChangeResourceType); - } - if (ChangeResourceName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ChangeResourceName); - } - if (ClientType != global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ClientType); - } - if (UserEmail.Length != 0) { - output.WriteRawTag(50); - output.WriteString(UserEmail); - } - if (oldResource_ != null) { - output.WriteRawTag(58); - output.WriteMessage(OldResource); - } - if (newResource_ != null) { - output.WriteRawTag(66); - output.WriteMessage(NewResource); - } - if (ResourceChangeOperation != global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) ResourceChangeOperation); - } - if (changedFields_ != null) { - output.WriteRawTag(82); - output.WriteMessage(ChangedFields); - } - if (Campaign.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Campaign); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(98); - output.WriteString(AdGroup); - } - if (Feed.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Feed); - } - if (FeedItem.Length != 0) { - output.WriteRawTag(114); - output.WriteString(FeedItem); - } - if (Asset.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ChangeDateTime.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ChangeDateTime); - } - if (ChangeResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ChangeResourceType); - } - if (ChangeResourceName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ChangeResourceName); - } - if (ClientType != global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ClientType); - } - if (UserEmail.Length != 0) { - output.WriteRawTag(50); - output.WriteString(UserEmail); - } - if (oldResource_ != null) { - output.WriteRawTag(58); - output.WriteMessage(OldResource); - } - if (newResource_ != null) { - output.WriteRawTag(66); - output.WriteMessage(NewResource); - } - if (ResourceChangeOperation != global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) ResourceChangeOperation); - } - if (changedFields_ != null) { - output.WriteRawTag(82); - output.WriteMessage(ChangedFields); - } - if (Campaign.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Campaign); - } - if (AdGroup.Length != 0) { - output.WriteRawTag(98); - output.WriteString(AdGroup); - } - if (Feed.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Feed); - } - if (FeedItem.Length != 0) { - output.WriteRawTag(114); - output.WriteString(FeedItem); - } - if (Asset.Length != 0) { - output.WriteRawTag(162, 1); - output.WriteString(Asset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (ChangeDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ChangeDateTime); - } - if (ChangeResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChangeResourceType); - } - if (ChangeResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ChangeResourceName); - } - if (ClientType != global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ClientType); - } - if (UserEmail.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserEmail); - } - if (oldResource_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OldResource); - } - if (newResource_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewResource); - } - if (ResourceChangeOperation != global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResourceChangeOperation); - } - if (changedFields_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedFields); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (AdGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (Feed.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - if (FeedItem.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedItem); - } - if (Asset.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeEvent other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.ChangeDateTime.Length != 0) { - ChangeDateTime = other.ChangeDateTime; - } - if (other.ChangeResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType.Unspecified) { - ChangeResourceType = other.ChangeResourceType; - } - if (other.ChangeResourceName.Length != 0) { - ChangeResourceName = other.ChangeResourceName; - } - if (other.ClientType != global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType.Unspecified) { - ClientType = other.ClientType; - } - if (other.UserEmail.Length != 0) { - UserEmail = other.UserEmail; - } - if (other.oldResource_ != null) { - if (oldResource_ == null) { - OldResource = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource(); - } - OldResource.MergeFrom(other.OldResource); - } - if (other.newResource_ != null) { - if (newResource_ == null) { - NewResource = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource(); - } - NewResource.MergeFrom(other.NewResource); - } - if (other.ResourceChangeOperation != global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation.Unspecified) { - ResourceChangeOperation = other.ResourceChangeOperation; - } - if (other.changedFields_ != null) { - if (changedFields_ == null) { - ChangedFields = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - ChangedFields.MergeFrom(other.ChangedFields); - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.AdGroup.Length != 0) { - AdGroup = other.AdGroup; - } - if (other.Feed.Length != 0) { - Feed = other.Feed; - } - if (other.FeedItem.Length != 0) { - FeedItem = other.FeedItem; - } - if (other.Asset.Length != 0) { - Asset = other.Asset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - ChangeDateTime = input.ReadString(); - break; - } - case 24: { - ChangeResourceType = (global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType) input.ReadEnum(); - break; - } - case 34: { - ChangeResourceName = input.ReadString(); - break; - } - case 40: { - ClientType = (global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType) input.ReadEnum(); - break; - } - case 50: { - UserEmail = input.ReadString(); - break; - } - case 58: { - if (oldResource_ == null) { - OldResource = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource(); - } - input.ReadMessage(OldResource); - break; - } - case 66: { - if (newResource_ == null) { - NewResource = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource(); - } - input.ReadMessage(NewResource); - break; - } - case 72: { - ResourceChangeOperation = (global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation) input.ReadEnum(); - break; - } - case 82: { - if (changedFields_ == null) { - ChangedFields = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(ChangedFields); - break; - } - case 90: { - Campaign = input.ReadString(); - break; - } - case 98: { - AdGroup = input.ReadString(); - break; - } - case 106: { - Feed = input.ReadString(); - break; - } - case 114: { - FeedItem = input.ReadString(); - break; - } - case 162: { - Asset = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - ChangeDateTime = input.ReadString(); - break; - } - case 24: { - ChangeResourceType = (global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType) input.ReadEnum(); - break; - } - case 34: { - ChangeResourceName = input.ReadString(); - break; - } - case 40: { - ClientType = (global::Google.Ads.GoogleAds.V12.Enums.ChangeClientTypeEnum.Types.ChangeClientType) input.ReadEnum(); - break; - } - case 50: { - UserEmail = input.ReadString(); - break; - } - case 58: { - if (oldResource_ == null) { - OldResource = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource(); - } - input.ReadMessage(OldResource); - break; - } - case 66: { - if (newResource_ == null) { - NewResource = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Types.ChangedResource(); - } - input.ReadMessage(NewResource); - break; - } - case 72: { - ResourceChangeOperation = (global::Google.Ads.GoogleAds.V12.Enums.ResourceChangeOperationEnum.Types.ResourceChangeOperation) input.ReadEnum(); - break; - } - case 82: { - if (changedFields_ == null) { - ChangedFields = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(ChangedFields); - break; - } - case 90: { - Campaign = input.ReadString(); - break; - } - case 98: { - AdGroup = input.ReadString(); - break; - } - case 106: { - Feed = input.ReadString(); - break; - } - case 114: { - FeedItem = input.ReadString(); - break; - } - case 162: { - Asset = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChangeEvent message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// A wrapper proto presenting all supported resources. - /// Only the resource of the change_resource_type will be set. - /// - public sealed partial class ChangedResource : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangedResource()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangedResource() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangedResource(ChangedResource other) : this() { - ad_ = other.ad_ != null ? other.ad_.Clone() : null; - adGroup_ = other.adGroup_ != null ? other.adGroup_.Clone() : null; - adGroupCriterion_ = other.adGroupCriterion_ != null ? other.adGroupCriterion_.Clone() : null; - campaign_ = other.campaign_ != null ? other.campaign_.Clone() : null; - campaignBudget_ = other.campaignBudget_ != null ? other.campaignBudget_.Clone() : null; - adGroupBidModifier_ = other.adGroupBidModifier_ != null ? other.adGroupBidModifier_.Clone() : null; - campaignCriterion_ = other.campaignCriterion_ != null ? other.campaignCriterion_.Clone() : null; - feed_ = other.feed_ != null ? other.feed_.Clone() : null; - feedItem_ = other.feedItem_ != null ? other.feedItem_.Clone() : null; - campaignFeed_ = other.campaignFeed_ != null ? other.campaignFeed_.Clone() : null; - adGroupFeed_ = other.adGroupFeed_ != null ? other.adGroupFeed_.Clone() : null; - adGroupAd_ = other.adGroupAd_ != null ? other.adGroupAd_.Clone() : null; - asset_ = other.asset_ != null ? other.asset_.Clone() : null; - customerAsset_ = other.customerAsset_ != null ? other.customerAsset_.Clone() : null; - campaignAsset_ = other.campaignAsset_ != null ? other.campaignAsset_.Clone() : null; - adGroupAsset_ = other.adGroupAsset_ != null ? other.adGroupAsset_.Clone() : null; - assetSet_ = other.assetSet_ != null ? other.assetSet_.Clone() : null; - assetSetAsset_ = other.assetSetAsset_ != null ? other.assetSetAsset_.Clone() : null; - campaignAssetSet_ = other.campaignAssetSet_ != null ? other.campaignAssetSet_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangedResource Clone() { - return new ChangedResource(this); - } - - /// Field number for the "ad" field. - public const int AdFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Resources.Ad ad_; - /// - /// Output only. Set if change_resource_type == AD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Ad Ad { - get { return ad_; } - set { - ad_ = value; - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroup adGroup_; - /// - /// Output only. Set if change_resource_type == AD_GROUP. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroup AdGroup { - get { return adGroup_; } - set { - adGroup_ = value; - } - } - - /// Field number for the "ad_group_criterion" field. - public const int AdGroupCriterionFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion adGroupCriterion_; - /// - /// Output only. Set if change_resource_type == AD_GROUP_CRITERION. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion AdGroupCriterion { - get { return adGroupCriterion_; } - set { - adGroupCriterion_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign campaign_; - /// - /// Output only. Set if change_resource_type == CAMPAIGN. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign Campaign { - get { return campaign_; } - set { - campaign_ = value; - } - } - - /// Field number for the "campaign_budget" field. - public const int CampaignBudgetFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget campaignBudget_; - /// - /// Output only. Set if change_resource_type == CAMPAIGN_BUDGET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget CampaignBudget { - get { return campaignBudget_; } - set { - campaignBudget_ = value; - } - } - - /// Field number for the "ad_group_bid_modifier" field. - public const int AdGroupBidModifierFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier adGroupBidModifier_; - /// - /// Output only. Set if change_resource_type == AD_GROUP_BID_MODIFIER. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier AdGroupBidModifier { - get { return adGroupBidModifier_; } - set { - adGroupBidModifier_ = value; - } - } - - /// Field number for the "campaign_criterion" field. - public const int CampaignCriterionFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion campaignCriterion_; - /// - /// Output only. Set if change_resource_type == CAMPAIGN_CRITERION. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion CampaignCriterion { - get { return campaignCriterion_; } - set { - campaignCriterion_ = value; - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Resources.Feed feed_; - /// - /// Output only. Set if change_resource_type == FEED. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed Feed { - get { return feed_; } - set { - feed_ = value; - } - } - - /// Field number for the "feed_item" field. - public const int FeedItemFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Resources.FeedItem feedItem_; - /// - /// Output only. Set if change_resource_type == FEED_ITEM. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItem FeedItem { - get { return feedItem_; } - set { - feedItem_ = value; - } - } - - /// Field number for the "campaign_feed" field. - public const int CampaignFeedFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed campaignFeed_; - /// - /// Output only. Set if change_resource_type == CAMPAIGN_FEED. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed CampaignFeed { - get { return campaignFeed_; } - set { - campaignFeed_ = value; - } - } - - /// Field number for the "ad_group_feed" field. - public const int AdGroupFeedFieldNumber = 11; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed adGroupFeed_; - /// - /// Output only. Set if change_resource_type == AD_GROUP_FEED. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed AdGroupFeed { - get { return adGroupFeed_; } - set { - adGroupFeed_ = value; - } - } - - /// Field number for the "ad_group_ad" field. - public const int AdGroupAdFieldNumber = 12; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd adGroupAd_; - /// - /// Output only. Set if change_resource_type == AD_GROUP_AD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd AdGroupAd { - get { return adGroupAd_; } - set { - adGroupAd_ = value; - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 13; - private global::Google.Ads.GoogleAds.V12.Resources.Asset asset_; - /// - /// Output only. Set if change_resource_type == ASSET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Asset Asset { - get { return asset_; } - set { - asset_ = value; - } - } - - /// Field number for the "customer_asset" field. - public const int CustomerAssetFieldNumber = 14; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset customerAsset_; - /// - /// Output only. Set if change_resource_type == CUSTOMER_ASSET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset CustomerAsset { - get { return customerAsset_; } - set { - customerAsset_ = value; - } - } - - /// Field number for the "campaign_asset" field. - public const int CampaignAssetFieldNumber = 15; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset campaignAsset_; - /// - /// Output only. Set if change_resource_type == CAMPAIGN_ASSET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset CampaignAsset { - get { return campaignAsset_; } - set { - campaignAsset_ = value; - } - } - - /// Field number for the "ad_group_asset" field. - public const int AdGroupAssetFieldNumber = 16; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset adGroupAsset_; - /// - /// Output only. Set if change_resource_type == AD_GROUP_ASSET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset AdGroupAsset { - get { return adGroupAsset_; } - set { - adGroupAsset_ = value; - } - } - - /// Field number for the "asset_set" field. - public const int AssetSetFieldNumber = 17; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSet assetSet_; - /// - /// Output only. Set if change_resource_type == ASSET_SET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSet AssetSet { - get { return assetSet_; } - set { - assetSet_ = value; - } - } - - /// Field number for the "asset_set_asset" field. - public const int AssetSetAssetFieldNumber = 18; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset assetSetAsset_; - /// - /// Output only. Set if change_resource_type == ASSET_SET_ASSET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset AssetSetAsset { - get { return assetSetAsset_; } - set { - assetSetAsset_ = value; - } - } - - /// Field number for the "campaign_asset_set" field. - public const int CampaignAssetSetFieldNumber = 19; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet campaignAssetSet_; - /// - /// Output only. Set if change_resource_type == CAMPAIGN_ASSET_SET. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet CampaignAssetSet { - get { return campaignAssetSet_; } - set { - campaignAssetSet_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangedResource); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangedResource other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Ad, other.Ad)) return false; - if (!object.Equals(AdGroup, other.AdGroup)) return false; - if (!object.Equals(AdGroupCriterion, other.AdGroupCriterion)) return false; - if (!object.Equals(Campaign, other.Campaign)) return false; - if (!object.Equals(CampaignBudget, other.CampaignBudget)) return false; - if (!object.Equals(AdGroupBidModifier, other.AdGroupBidModifier)) return false; - if (!object.Equals(CampaignCriterion, other.CampaignCriterion)) return false; - if (!object.Equals(Feed, other.Feed)) return false; - if (!object.Equals(FeedItem, other.FeedItem)) return false; - if (!object.Equals(CampaignFeed, other.CampaignFeed)) return false; - if (!object.Equals(AdGroupFeed, other.AdGroupFeed)) return false; - if (!object.Equals(AdGroupAd, other.AdGroupAd)) return false; - if (!object.Equals(Asset, other.Asset)) return false; - if (!object.Equals(CustomerAsset, other.CustomerAsset)) return false; - if (!object.Equals(CampaignAsset, other.CampaignAsset)) return false; - if (!object.Equals(AdGroupAsset, other.AdGroupAsset)) return false; - if (!object.Equals(AssetSet, other.AssetSet)) return false; - if (!object.Equals(AssetSetAsset, other.AssetSetAsset)) return false; - if (!object.Equals(CampaignAssetSet, other.CampaignAssetSet)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ad_ != null) hash ^= Ad.GetHashCode(); - if (adGroup_ != null) hash ^= AdGroup.GetHashCode(); - if (adGroupCriterion_ != null) hash ^= AdGroupCriterion.GetHashCode(); - if (campaign_ != null) hash ^= Campaign.GetHashCode(); - if (campaignBudget_ != null) hash ^= CampaignBudget.GetHashCode(); - if (adGroupBidModifier_ != null) hash ^= AdGroupBidModifier.GetHashCode(); - if (campaignCriterion_ != null) hash ^= CampaignCriterion.GetHashCode(); - if (feed_ != null) hash ^= Feed.GetHashCode(); - if (feedItem_ != null) hash ^= FeedItem.GetHashCode(); - if (campaignFeed_ != null) hash ^= CampaignFeed.GetHashCode(); - if (adGroupFeed_ != null) hash ^= AdGroupFeed.GetHashCode(); - if (adGroupAd_ != null) hash ^= AdGroupAd.GetHashCode(); - if (asset_ != null) hash ^= Asset.GetHashCode(); - if (customerAsset_ != null) hash ^= CustomerAsset.GetHashCode(); - if (campaignAsset_ != null) hash ^= CampaignAsset.GetHashCode(); - if (adGroupAsset_ != null) hash ^= AdGroupAsset.GetHashCode(); - if (assetSet_ != null) hash ^= AssetSet.GetHashCode(); - if (assetSetAsset_ != null) hash ^= AssetSetAsset.GetHashCode(); - if (campaignAssetSet_ != null) hash ^= CampaignAssetSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ad_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Ad); - } - if (adGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroup); - } - if (adGroupCriterion_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AdGroupCriterion); - } - if (campaign_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Campaign); - } - if (campaignBudget_ != null) { - output.WriteRawTag(42); - output.WriteMessage(CampaignBudget); - } - if (adGroupBidModifier_ != null) { - output.WriteRawTag(50); - output.WriteMessage(AdGroupBidModifier); - } - if (campaignCriterion_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CampaignCriterion); - } - if (feed_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Feed); - } - if (feedItem_ != null) { - output.WriteRawTag(74); - output.WriteMessage(FeedItem); - } - if (campaignFeed_ != null) { - output.WriteRawTag(82); - output.WriteMessage(CampaignFeed); - } - if (adGroupFeed_ != null) { - output.WriteRawTag(90); - output.WriteMessage(AdGroupFeed); - } - if (adGroupAd_ != null) { - output.WriteRawTag(98); - output.WriteMessage(AdGroupAd); - } - if (asset_ != null) { - output.WriteRawTag(106); - output.WriteMessage(Asset); - } - if (customerAsset_ != null) { - output.WriteRawTag(114); - output.WriteMessage(CustomerAsset); - } - if (campaignAsset_ != null) { - output.WriteRawTag(122); - output.WriteMessage(CampaignAsset); - } - if (adGroupAsset_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AdGroupAsset); - } - if (assetSet_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(AssetSet); - } - if (assetSetAsset_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(AssetSetAsset); - } - if (campaignAssetSet_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(CampaignAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ad_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Ad); - } - if (adGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroup); - } - if (adGroupCriterion_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AdGroupCriterion); - } - if (campaign_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Campaign); - } - if (campaignBudget_ != null) { - output.WriteRawTag(42); - output.WriteMessage(CampaignBudget); - } - if (adGroupBidModifier_ != null) { - output.WriteRawTag(50); - output.WriteMessage(AdGroupBidModifier); - } - if (campaignCriterion_ != null) { - output.WriteRawTag(58); - output.WriteMessage(CampaignCriterion); - } - if (feed_ != null) { - output.WriteRawTag(66); - output.WriteMessage(Feed); - } - if (feedItem_ != null) { - output.WriteRawTag(74); - output.WriteMessage(FeedItem); - } - if (campaignFeed_ != null) { - output.WriteRawTag(82); - output.WriteMessage(CampaignFeed); - } - if (adGroupFeed_ != null) { - output.WriteRawTag(90); - output.WriteMessage(AdGroupFeed); - } - if (adGroupAd_ != null) { - output.WriteRawTag(98); - output.WriteMessage(AdGroupAd); - } - if (asset_ != null) { - output.WriteRawTag(106); - output.WriteMessage(Asset); - } - if (customerAsset_ != null) { - output.WriteRawTag(114); - output.WriteMessage(CustomerAsset); - } - if (campaignAsset_ != null) { - output.WriteRawTag(122); - output.WriteMessage(CampaignAsset); - } - if (adGroupAsset_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AdGroupAsset); - } - if (assetSet_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(AssetSet); - } - if (assetSetAsset_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(AssetSetAsset); - } - if (campaignAssetSet_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(CampaignAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ad_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ad); - } - if (adGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroup); - } - if (adGroupCriterion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterion); - } - if (campaign_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaign); - } - if (campaignBudget_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignBudget); - } - if (adGroupBidModifier_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupBidModifier); - } - if (campaignCriterion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignCriterion); - } - if (feed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Feed); - } - if (feedItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FeedItem); - } - if (campaignFeed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignFeed); - } - if (adGroupFeed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupFeed); - } - if (adGroupAd_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAd); - } - if (asset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Asset); - } - if (customerAsset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerAsset); - } - if (campaignAsset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignAsset); - } - if (adGroupAsset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAsset); - } - if (assetSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSet); - } - if (assetSetAsset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSetAsset); - } - if (campaignAssetSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAssetSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangedResource other) { - if (other == null) { - return; - } - if (other.ad_ != null) { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - Ad.MergeFrom(other.Ad); - } - if (other.adGroup_ != null) { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - AdGroup.MergeFrom(other.AdGroup); - } - if (other.adGroupCriterion_ != null) { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - AdGroupCriterion.MergeFrom(other.AdGroupCriterion); - } - if (other.campaign_ != null) { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - Campaign.MergeFrom(other.Campaign); - } - if (other.campaignBudget_ != null) { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - CampaignBudget.MergeFrom(other.CampaignBudget); - } - if (other.adGroupBidModifier_ != null) { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - AdGroupBidModifier.MergeFrom(other.AdGroupBidModifier); - } - if (other.campaignCriterion_ != null) { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - CampaignCriterion.MergeFrom(other.CampaignCriterion); - } - if (other.feed_ != null) { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - Feed.MergeFrom(other.Feed); - } - if (other.feedItem_ != null) { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - FeedItem.MergeFrom(other.FeedItem); - } - if (other.campaignFeed_ != null) { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - CampaignFeed.MergeFrom(other.CampaignFeed); - } - if (other.adGroupFeed_ != null) { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - AdGroupFeed.MergeFrom(other.AdGroupFeed); - } - if (other.adGroupAd_ != null) { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - AdGroupAd.MergeFrom(other.AdGroupAd); - } - if (other.asset_ != null) { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - Asset.MergeFrom(other.Asset); - } - if (other.customerAsset_ != null) { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - CustomerAsset.MergeFrom(other.CustomerAsset); - } - if (other.campaignAsset_ != null) { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - CampaignAsset.MergeFrom(other.CampaignAsset); - } - if (other.adGroupAsset_ != null) { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - AdGroupAsset.MergeFrom(other.AdGroupAsset); - } - if (other.assetSet_ != null) { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - AssetSet.MergeFrom(other.AssetSet); - } - if (other.assetSetAsset_ != null) { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - AssetSetAsset.MergeFrom(other.AssetSetAsset); - } - if (other.campaignAssetSet_ != null) { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - CampaignAssetSet.MergeFrom(other.CampaignAssetSet); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - input.ReadMessage(Ad); - break; - } - case 18: { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - input.ReadMessage(AdGroup); - break; - } - case 26: { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - input.ReadMessage(AdGroupCriterion); - break; - } - case 34: { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - input.ReadMessage(Campaign); - break; - } - case 42: { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - input.ReadMessage(CampaignBudget); - break; - } - case 50: { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - input.ReadMessage(AdGroupBidModifier); - break; - } - case 58: { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - input.ReadMessage(CampaignCriterion); - break; - } - case 66: { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - input.ReadMessage(Feed); - break; - } - case 74: { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - input.ReadMessage(FeedItem); - break; - } - case 82: { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - input.ReadMessage(CampaignFeed); - break; - } - case 90: { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - input.ReadMessage(AdGroupFeed); - break; - } - case 98: { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - input.ReadMessage(AdGroupAd); - break; - } - case 106: { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - input.ReadMessage(Asset); - break; - } - case 114: { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - input.ReadMessage(CustomerAsset); - break; - } - case 122: { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - input.ReadMessage(CampaignAsset); - break; - } - case 130: { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - input.ReadMessage(AdGroupAsset); - break; - } - case 138: { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - input.ReadMessage(AssetSet); - break; - } - case 146: { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - input.ReadMessage(AssetSetAsset); - break; - } - case 154: { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - input.ReadMessage(CampaignAssetSet); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (ad_ == null) { - Ad = new global::Google.Ads.GoogleAds.V12.Resources.Ad(); - } - input.ReadMessage(Ad); - break; - } - case 18: { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - input.ReadMessage(AdGroup); - break; - } - case 26: { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - input.ReadMessage(AdGroupCriterion); - break; - } - case 34: { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - input.ReadMessage(Campaign); - break; - } - case 42: { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - input.ReadMessage(CampaignBudget); - break; - } - case 50: { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - input.ReadMessage(AdGroupBidModifier); - break; - } - case 58: { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - input.ReadMessage(CampaignCriterion); - break; - } - case 66: { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - input.ReadMessage(Feed); - break; - } - case 74: { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - input.ReadMessage(FeedItem); - break; - } - case 82: { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - input.ReadMessage(CampaignFeed); - break; - } - case 90: { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - input.ReadMessage(AdGroupFeed); - break; - } - case 98: { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - input.ReadMessage(AdGroupAd); - break; - } - case 106: { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - input.ReadMessage(Asset); - break; - } - case 114: { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - input.ReadMessage(CustomerAsset); - break; - } - case 122: { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - input.ReadMessage(CampaignAsset); - break; - } - case 130: { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - input.ReadMessage(AdGroupAsset); - break; - } - case 138: { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - input.ReadMessage(AssetSet); - break; - } - case 146: { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - input.ReadMessage(AssetSetAsset); - break; - } - case 154: { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - input.ReadMessage(CampaignAssetSet); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeEventError.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeEventError.g.cs deleted file mode 100755 index 7dc0ce76f..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeEventError.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/change_event_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/change_event_error.proto - public static partial class ChangeEventErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/change_event_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeEventErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NoYW5nZV9ldmVu", - "dF9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cyLUAQoUQ2hhbmdlRXZlbnRFcnJvckVudW0iuwEKEENoYW5nZUV2ZW50RXJy", - "b3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFgoSU1RBUlRfREFU", - "RV9UT09fT0xEEAISHgoaQ0hBTkdFX0RBVEVfUkFOR0VfSU5GSU5JVEUQAxIe", - "ChpDSEFOR0VfREFURV9SQU5HRV9ORUdBVElWRRAEEhcKE0xJTUlUX05PVF9T", - "UEVDSUZJRUQQBRIYChRJTlZBTElEX0xJTUlUX0NMQVVTRRAGQvUBCiNjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9yc0IVQ2hhbmdlRXZlbnRF", - "cnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoC", - "H0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorEnum.Types.ChangeEventError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible change event errors. - /// - public sealed partial class ChangeEventErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeEventErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEventErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEventErrorEnum(ChangeEventErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEventErrorEnum Clone() { - return new ChangeEventErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeEventErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeEventErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeEventErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChangeEventErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible change event errors. - /// - public enum ChangeEventError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The requested start date is too old. It cannot be older than 30 days. - /// - [pbr::OriginalName("START_DATE_TOO_OLD")] StartDateTooOld = 2, - /// - /// The change_event search request must specify a finite range filter - /// on change_date_time. - /// - [pbr::OriginalName("CHANGE_DATE_RANGE_INFINITE")] ChangeDateRangeInfinite = 3, - /// - /// The change event search request has specified invalid date time filters - /// that can never logically produce any valid results (for example, start - /// time after end time). - /// - [pbr::OriginalName("CHANGE_DATE_RANGE_NEGATIVE")] ChangeDateRangeNegative = 4, - /// - /// The change_event search request must specify a LIMIT. - /// - [pbr::OriginalName("LIMIT_NOT_SPECIFIED")] LimitNotSpecified = 5, - /// - /// The LIMIT specified by change_event request should be less than or equal - /// to 10K. - /// - [pbr::OriginalName("INVALID_LIMIT_CLAUSE")] InvalidLimitClause = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeEventResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeEventResourceNames.g.cs deleted file mode 100755 index 1ca65fe6a..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeEventResourceNames.g.cs +++ /dev/null @@ -1,358 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ChangeEvent resource. - public sealed partial class ChangeEventName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}. - /// - CustomerTimestampMicrosCommandIndexMutateIndex = 1, - } - - private static gax::PathTemplate s_customerTimestampMicrosCommandIndexMutateIndex = new gax::PathTemplate("customers/{customer_id}/changeEvents/{timestamp_micros_command_index_mutate_index}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ChangeEventName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ChangeEventName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}. - /// - /// The Customer ID. Must not be null or empty. - /// The TimestampMicros ID. Must not be null or empty. - /// The CommandIndex ID. Must not be null or empty. - /// The MutateIndex ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static ChangeEventName FromCustomerTimestampMicrosCommandIndexMutateIndex(string customerId, string timestampMicrosId, string commandIndexId, string mutateIndexId) => - new ChangeEventName(ResourceNameType.CustomerTimestampMicrosCommandIndexMutateIndex, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), timestampMicrosId: gax::GaxPreconditions.CheckNotNullOrEmpty(timestampMicrosId, nameof(timestampMicrosId)), commandIndexId: gax::GaxPreconditions.CheckNotNullOrEmpty(commandIndexId, nameof(commandIndexId)), mutateIndexId: gax::GaxPreconditions.CheckNotNullOrEmpty(mutateIndexId, nameof(mutateIndexId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}. - /// - /// The Customer ID. Must not be null or empty. - /// The TimestampMicros ID. Must not be null or empty. - /// The CommandIndex ID. Must not be null or empty. - /// The MutateIndex ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}. - /// - public static string Format(string customerId, string timestampMicrosId, string commandIndexId, string mutateIndexId) => - FormatCustomerTimestampMicrosCommandIndexMutateIndex(customerId, timestampMicrosId, commandIndexId, mutateIndexId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}. - /// - /// The Customer ID. Must not be null or empty. - /// The TimestampMicros ID. Must not be null or empty. - /// The CommandIndex ID. Must not be null or empty. - /// The MutateIndex ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}. - /// - public static string FormatCustomerTimestampMicrosCommandIndexMutateIndex(string customerId, string timestampMicrosId, string commandIndexId, string mutateIndexId) => - s_customerTimestampMicrosCommandIndexMutateIndex.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(timestampMicrosId, nameof(timestampMicrosId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(commandIndexId, nameof(commandIndexId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(mutateIndexId, nameof(mutateIndexId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ChangeEventName Parse(string changeEventName) => Parse(changeEventName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ChangeEventName Parse(string changeEventName, bool allowUnparsed) => - TryParse(changeEventName, allowUnparsed, out ChangeEventName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string changeEventName, out ChangeEventName result) => - TryParse(changeEventName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string changeEventName, bool allowUnparsed, out ChangeEventName result) - { - gax::GaxPreconditions.CheckNotNull(changeEventName, nameof(changeEventName)); - gax::TemplatedResourceName resourceName; - if (s_customerTimestampMicrosCommandIndexMutateIndex.TryParseName(changeEventName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerTimestampMicrosCommandIndexMutateIndex(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(changeEventName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private ChangeEventName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string commandIndexId = null, string customerId = null, string mutateIndexId = null, string timestampMicrosId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CommandIndexId = commandIndexId; - CustomerId = customerId; - MutateIndexId = mutateIndexId; - TimestampMicrosId = timestampMicrosId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index} - /// - /// The Customer ID. Must not be null or empty. - /// The TimestampMicros ID. Must not be null or empty. - /// The CommandIndex ID. Must not be null or empty. - /// The MutateIndex ID. Must not be null or empty. - public ChangeEventName(string customerId, string timestampMicrosId, string commandIndexId, string mutateIndexId) : this(ResourceNameType.CustomerTimestampMicrosCommandIndexMutateIndex, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), timestampMicrosId: gax::GaxPreconditions.CheckNotNullOrEmpty(timestampMicrosId, nameof(timestampMicrosId)), commandIndexId: gax::GaxPreconditions.CheckNotNullOrEmpty(commandIndexId, nameof(commandIndexId)), mutateIndexId: gax::GaxPreconditions.CheckNotNullOrEmpty(mutateIndexId, nameof(mutateIndexId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CommandIndex ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string CommandIndexId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The MutateIndex ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string MutateIndexId { get; } - - /// - /// The TimestampMicros ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string TimestampMicrosId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerTimestampMicrosCommandIndexMutateIndex: return s_customerTimestampMicrosCommandIndexMutateIndex.Expand(CustomerId, $"{TimestampMicrosId}~{CommandIndexId}~{MutateIndexId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ChangeEventName); - - /// - public bool Equals(ChangeEventName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ChangeEventName a, ChangeEventName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ChangeEventName a, ChangeEventName b) => !(a == b); - } - - public partial class ChangeEvent - { - /// - /// -typed view over the resource name property. - /// - internal ChangeEventName ResourceNameAsChangeEventName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ChangeEventName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal FeedItemName FeedItemAsFeedItemName - { - get => string.IsNullOrEmpty(FeedItem) ? null : FeedItemName.Parse(FeedItem, allowUnparsed: true); - set => FeedItem = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ChangeEventResourceType.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeEventResourceType.g.cs deleted file mode 100755 index 606e6d84b..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeEventResourceType.g.cs +++ /dev/null @@ -1,314 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/change_event_resource_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/change_event_resource_type.proto - public static partial class ChangeEventResourceTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/change_event_resource_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeEventResourceTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2hhbmdlX2V2ZW50", - "X3Jlc291cmNlX3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyKuAwobQ2hhbmdlRXZlbnRSZXNvdXJjZVR5cGVFbnVtIo4DChdD", - "aGFuZ2VFdmVudFJlc291cmNlVHlwZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VO", - "S05PV04QARIGCgJBRBACEgwKCEFEX0dST1VQEAMSFgoSQURfR1JPVVBfQ1JJ", - "VEVSSU9OEAQSDAoIQ0FNUEFJR04QBRITCg9DQU1QQUlHTl9CVURHRVQQBhIZ", - "ChVBRF9HUk9VUF9CSURfTU9ESUZJRVIQBxIWChJDQU1QQUlHTl9DUklURVJJ", - "T04QCBIICgRGRUVEEAkSDQoJRkVFRF9JVEVNEAoSEQoNQ0FNUEFJR05fRkVF", - "RBALEhEKDUFEX0dST1VQX0ZFRUQQDBIPCgtBRF9HUk9VUF9BRBANEgkKBUFT", - "U0VUEA4SEgoOQ1VTVE9NRVJfQVNTRVQQDxISCg5DQU1QQUlHTl9BU1NFVBAQ", - "EhIKDkFEX0dST1VQX0FTU0VUEBESDQoJQVNTRVRfU0VUEBISEwoPQVNTRVRf", - "U0VUX0FTU0VUEBMSFgoSQ0FNUEFJR05fQVNTRVRfU0VUEBRC9gEKImNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCHENoYW5nZUV2ZW50UmVz", - "b3VyY2VUeXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dB", - "QaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVB", - "ZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeEnum.Types.ChangeEventResourceType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing supported resource types for the ChangeEvent - /// resource. - /// - public sealed partial class ChangeEventResourceTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeEventResourceTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ChangeEventResourceTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEventResourceTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEventResourceTypeEnum(ChangeEventResourceTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeEventResourceTypeEnum Clone() { - return new ChangeEventResourceTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeEventResourceTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeEventResourceTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeEventResourceTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChangeEventResourceTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum listing the resource types support by the ChangeEvent resource. - /// - public enum ChangeEventResourceType { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents an unclassified resource unknown - /// in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An Ad resource change. - /// - [pbr::OriginalName("AD")] Ad = 2, - /// - /// An AdGroup resource change. - /// - [pbr::OriginalName("AD_GROUP")] AdGroup = 3, - /// - /// An AdGroupCriterion resource change. - /// - [pbr::OriginalName("AD_GROUP_CRITERION")] AdGroupCriterion = 4, - /// - /// A Campaign resource change. - /// - [pbr::OriginalName("CAMPAIGN")] Campaign = 5, - /// - /// A CampaignBudget resource change. - /// - [pbr::OriginalName("CAMPAIGN_BUDGET")] CampaignBudget = 6, - /// - /// An AdGroupBidModifier resource change. - /// - [pbr::OriginalName("AD_GROUP_BID_MODIFIER")] AdGroupBidModifier = 7, - /// - /// A CampaignCriterion resource change. - /// - [pbr::OriginalName("CAMPAIGN_CRITERION")] CampaignCriterion = 8, - /// - /// A Feed resource change. - /// - [pbr::OriginalName("FEED")] Feed = 9, - /// - /// A FeedItem resource change. - /// - [pbr::OriginalName("FEED_ITEM")] FeedItem = 10, - /// - /// A CampaignFeed resource change. - /// - [pbr::OriginalName("CAMPAIGN_FEED")] CampaignFeed = 11, - /// - /// An AdGroupFeed resource change. - /// - [pbr::OriginalName("AD_GROUP_FEED")] AdGroupFeed = 12, - /// - /// An AdGroupAd resource change. - /// - [pbr::OriginalName("AD_GROUP_AD")] AdGroupAd = 13, - /// - /// An Asset resource change. - /// - [pbr::OriginalName("ASSET")] Asset = 14, - /// - /// A CustomerAsset resource change. - /// - [pbr::OriginalName("CUSTOMER_ASSET")] CustomerAsset = 15, - /// - /// A CampaignAsset resource change. - /// - [pbr::OriginalName("CAMPAIGN_ASSET")] CampaignAsset = 16, - /// - /// An AdGroupAsset resource change. - /// - [pbr::OriginalName("AD_GROUP_ASSET")] AdGroupAsset = 17, - /// - /// An AssetSet resource change. - /// - [pbr::OriginalName("ASSET_SET")] AssetSet = 18, - /// - /// An AssetSetAsset resource change. - /// - [pbr::OriginalName("ASSET_SET_ASSET")] AssetSetAsset = 19, - /// - /// A CampaignAssetSet resource change. - /// - [pbr::OriginalName("CAMPAIGN_ASSET_SET")] CampaignAssetSet = 20, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeStatus.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeStatus.g.cs deleted file mode 100755 index af5097cb8..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeStatus.g.cs +++ /dev/null @@ -1,1187 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/change_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/change_status.proto - public static partial class ChangeStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/change_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NoYW5nZV9z", - "dGF0dXMucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMaPGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jaGFuZ2Vfc3Rh", - "dHVzX29wZXJhdGlvbi5wcm90bxpAZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2NoYW5nZV9zdGF0dXNfcmVzb3VyY2VfdHlwZS5wcm90bxofZ29v", - "Z2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNv", - "dXJjZS5wcm90byKHDgoMQ2hhbmdlU3RhdHVzEkQKDXJlc291cmNlX25hbWUY", - "ASABKAlCLeBBA/pBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NoYW5n", - "ZVN0YXR1cxInChVsYXN0X2NoYW5nZV9kYXRlX3RpbWUYGCABKAlCA+BBA0gA", - "iAEBEnEKDXJlc291cmNlX3R5cGUYBCABKA4yVS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuQ2hhbmdlU3RhdHVzUmVzb3VyY2VUeXBlRW51bS5D", - "aGFuZ2VTdGF0dXNSZXNvdXJjZVR5cGVCA+BBAxJACghjYW1wYWlnbhgRIAEo", - "CUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25I", - "AYgBARI/CghhZF9ncm91cBgSIAEoCUIo4EED+kEiCiBnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQWRHcm91cEgCiAEBEm0KD3Jlc291cmNlX3N0YXR1cxgI", - "IAEoDjJPLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DaGFuZ2VT", - "dGF0dXNPcGVyYXRpb25FbnVtLkNoYW5nZVN0YXR1c09wZXJhdGlvbkID4EED", - "EkQKC2FkX2dyb3VwX2FkGBkgASgJQirgQQP6QSQKImdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9BZEdyb3VwQWRIA4gBARJSChJhZF9ncm91cF9jcml0ZXJp", - "b24YGiABKAlCMeBBA/pBKwopZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fk", - "R3JvdXBDcml0ZXJpb25IBIgBARJTChJjYW1wYWlnbl9jcml0ZXJpb24YGyAB", - "KAlCMuBBA/pBLAoqZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWdu", - "Q3JpdGVyaW9uSAWIAQESOAoEZmVlZBgcIAEoCUIl4EED+kEfCh1nb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vRmVlZEgGiAEBEkEKCWZlZWRfaXRlbRgdIAEo", - "CUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRmVlZEl0ZW1I", - "B4gBARJICg1hZF9ncm91cF9mZWVkGB4gASgJQizgQQP6QSYKJGdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwRmVlZEgIiAEBEkkKDWNhbXBhaWdu", - "X2ZlZWQYHyABKAlCLeBBA/pBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0NhbXBhaWduRmVlZEgJiAEBElcKFWFkX2dyb3VwX2JpZF9tb2RpZmllchgg", - "IAEoCUIz4EED+kEtCitnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91", - "cEJpZE1vZGlmaWVySAqIAQESPgoKc2hhcmVkX3NldBghIAEoCUIq4EED+kEk", - "CiJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vU2hhcmVkU2V0Ek8KE2NhbXBh", - "aWduX3NoYXJlZF9zZXQYIiABKAlCMuBBA/pBLAoqZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0NhbXBhaWduU2hhcmVkU2V0EjUKBWFzc2V0GCMgASgJQibg", - "QQP6QSAKHmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldBJGCg5jdXN0", - "b21lcl9hc3NldBgkIAEoCUIu4EED+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ3VzdG9tZXJBc3NldBJGCg5jYW1wYWlnbl9hc3NldBglIAEoCUIu", - "4EED+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25Bc3Nl", - "dBJFCg5hZF9ncm91cF9hc3NldBgmIAEoCUIt4EED+kEnCiVnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQWRHcm91cEFzc2V0OmPqQWAKJWdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9DaGFuZ2VTdGF0dXMSN2N1c3RvbWVycy97Y3VzdG9t", - "ZXJfaWR9L2NoYW5nZVN0YXR1cy97Y2hhbmdlX3N0YXR1c19pZH1CGAoWX2xh", - "c3RfY2hhbmdlX2RhdGVfdGltZUILCglfY2FtcGFpZ25CCwoJX2FkX2dyb3Vw", - "Qg4KDF9hZF9ncm91cF9hZEIVChNfYWRfZ3JvdXBfY3JpdGVyaW9uQhUKE19j", - "YW1wYWlnbl9jcml0ZXJpb25CBwoFX2ZlZWRCDAoKX2ZlZWRfaXRlbUIQCg5f", - "YWRfZ3JvdXBfZmVlZEIQCg5fY2FtcGFpZ25fZmVlZEIYChZfYWRfZ3JvdXBf", - "YmlkX21vZGlmaWVyQoMCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlc0IRQ2hhbmdlU3RhdHVzUHJvdG9QAVpLZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVB", - "ZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxS", - "ZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291", - "cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ChangeStatus), global::Google.Ads.GoogleAds.V12.Resources.ChangeStatus.Parser, new[]{ "ResourceName", "LastChangeDateTime", "ResourceType", "Campaign", "AdGroup", "ResourceStatus", "AdGroupAd", "AdGroupCriterion", "CampaignCriterion", "Feed", "FeedItem", "AdGroupFeed", "CampaignFeed", "AdGroupBidModifier", "SharedSet", "CampaignSharedSet", "Asset", "CustomerAsset", "CampaignAsset", "AdGroupAsset" }, new[]{ "LastChangeDateTime", "Campaign", "AdGroup", "AdGroupAd", "AdGroupCriterion", "CampaignCriterion", "Feed", "FeedItem", "AdGroupFeed", "CampaignFeed", "AdGroupBidModifier" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Describes the status of returned resource. ChangeStatus could have up to 3 - /// minutes delay to reflect a new change. - /// - public sealed partial class ChangeStatus : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeStatus()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ChangeStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatus() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatus(ChangeStatus other) : this() { - resourceName_ = other.resourceName_; - lastChangeDateTime_ = other.lastChangeDateTime_; - resourceType_ = other.resourceType_; - campaign_ = other.campaign_; - adGroup_ = other.adGroup_; - resourceStatus_ = other.resourceStatus_; - adGroupAd_ = other.adGroupAd_; - adGroupCriterion_ = other.adGroupCriterion_; - campaignCriterion_ = other.campaignCriterion_; - feed_ = other.feed_; - feedItem_ = other.feedItem_; - adGroupFeed_ = other.adGroupFeed_; - campaignFeed_ = other.campaignFeed_; - adGroupBidModifier_ = other.adGroupBidModifier_; - sharedSet_ = other.sharedSet_; - campaignSharedSet_ = other.campaignSharedSet_; - asset_ = other.asset_; - customerAsset_ = other.customerAsset_; - campaignAsset_ = other.campaignAsset_; - adGroupAsset_ = other.adGroupAsset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatus Clone() { - return new ChangeStatus(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the change status. - /// Change status resource names have the form: - /// - /// `customers/{customer_id}/changeStatus/{change_status_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "last_change_date_time" field. - public const int LastChangeDateTimeFieldNumber = 24; - private string lastChangeDateTime_; - /// - /// Output only. Time at which the most recent change has occurred on this resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LastChangeDateTime { - get { return lastChangeDateTime_ ?? ""; } - set { - lastChangeDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "last_change_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLastChangeDateTime { - get { return lastChangeDateTime_ != null; } - } - /// Clears the value of the "last_change_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLastChangeDateTime() { - lastChangeDateTime_ = null; - } - - /// Field number for the "resource_type" field. - public const int ResourceTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType resourceType_ = global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified; - /// - /// Output only. Represents the type of the changed resource. This dictates what fields - /// will be set. For example, for AD_GROUP, campaign and ad_group fields will - /// be set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType ResourceType { - get { return resourceType_; } - set { - resourceType_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 17; - private string campaign_; - /// - /// Output only. The Campaign affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 18; - private string adGroup_; - /// - /// Output only. The AdGroup affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_ ?? ""; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroup { - get { return adGroup_ != null; } - } - /// Clears the value of the "ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroup() { - adGroup_ = null; - } - - /// Field number for the "resource_status" field. - public const int ResourceStatusFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation resourceStatus_ = global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified; - /// - /// Output only. Represents the status of the changed resource. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation ResourceStatus { - get { return resourceStatus_; } - set { - resourceStatus_ = value; - } - } - - /// Field number for the "ad_group_ad" field. - public const int AdGroupAdFieldNumber = 25; - private string adGroupAd_; - /// - /// Output only. The AdGroupAd affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupAd { - get { return adGroupAd_ ?? ""; } - set { - adGroupAd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_ad" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupAd { - get { return adGroupAd_ != null; } - } - /// Clears the value of the "ad_group_ad" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupAd() { - adGroupAd_ = null; - } - - /// Field number for the "ad_group_criterion" field. - public const int AdGroupCriterionFieldNumber = 26; - private string adGroupCriterion_; - /// - /// Output only. The AdGroupCriterion affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupCriterion { - get { return adGroupCriterion_ ?? ""; } - set { - adGroupCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupCriterion { - get { return adGroupCriterion_ != null; } - } - /// Clears the value of the "ad_group_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupCriterion() { - adGroupCriterion_ = null; - } - - /// Field number for the "campaign_criterion" field. - public const int CampaignCriterionFieldNumber = 27; - private string campaignCriterion_; - /// - /// Output only. The CampaignCriterion affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignCriterion { - get { return campaignCriterion_ ?? ""; } - set { - campaignCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignCriterion { - get { return campaignCriterion_ != null; } - } - /// Clears the value of the "campaign_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignCriterion() { - campaignCriterion_ = null; - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 28; - private string feed_; - /// - /// Output only. The Feed affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_ ?? ""; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeed { - get { return feed_ != null; } - } - /// Clears the value of the "feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeed() { - feed_ = null; - } - - /// Field number for the "feed_item" field. - public const int FeedItemFieldNumber = 29; - private string feedItem_; - /// - /// Output only. The FeedItem affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedItem { - get { return feedItem_ ?? ""; } - set { - feedItem_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed_item" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeedItem { - get { return feedItem_ != null; } - } - /// Clears the value of the "feed_item" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeedItem() { - feedItem_ = null; - } - - /// Field number for the "ad_group_feed" field. - public const int AdGroupFeedFieldNumber = 30; - private string adGroupFeed_; - /// - /// Output only. The AdGroupFeed affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupFeed { - get { return adGroupFeed_ ?? ""; } - set { - adGroupFeed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupFeed { - get { return adGroupFeed_ != null; } - } - /// Clears the value of the "ad_group_feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupFeed() { - adGroupFeed_ = null; - } - - /// Field number for the "campaign_feed" field. - public const int CampaignFeedFieldNumber = 31; - private string campaignFeed_; - /// - /// Output only. The CampaignFeed affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignFeed { - get { return campaignFeed_ ?? ""; } - set { - campaignFeed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign_feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignFeed { - get { return campaignFeed_ != null; } - } - /// Clears the value of the "campaign_feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignFeed() { - campaignFeed_ = null; - } - - /// Field number for the "ad_group_bid_modifier" field. - public const int AdGroupBidModifierFieldNumber = 32; - private string adGroupBidModifier_; - /// - /// Output only. The AdGroupBidModifier affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupBidModifier { - get { return adGroupBidModifier_ ?? ""; } - set { - adGroupBidModifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_bid_modifier" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupBidModifier { - get { return adGroupBidModifier_ != null; } - } - /// Clears the value of the "ad_group_bid_modifier" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupBidModifier() { - adGroupBidModifier_ = null; - } - - /// Field number for the "shared_set" field. - public const int SharedSetFieldNumber = 33; - private string sharedSet_ = ""; - /// - /// Output only. The SharedSet affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SharedSet { - get { return sharedSet_; } - set { - sharedSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_shared_set" field. - public const int CampaignSharedSetFieldNumber = 34; - private string campaignSharedSet_ = ""; - /// - /// Output only. The CampaignSharedSet affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignSharedSet { - get { return campaignSharedSet_; } - set { - campaignSharedSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 35; - private string asset_ = ""; - /// - /// Output only. The Asset affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_asset" field. - public const int CustomerAssetFieldNumber = 36; - private string customerAsset_ = ""; - /// - /// Output only. The CustomerAsset affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerAsset { - get { return customerAsset_; } - set { - customerAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_asset" field. - public const int CampaignAssetFieldNumber = 37; - private string campaignAsset_ = ""; - /// - /// Output only. The CampaignAsset affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignAsset { - get { return campaignAsset_; } - set { - campaignAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "ad_group_asset" field. - public const int AdGroupAssetFieldNumber = 38; - private string adGroupAsset_ = ""; - /// - /// Output only. The AdGroupAsset affected by this change. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupAsset { - get { return adGroupAsset_; } - set { - adGroupAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeStatus); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeStatus other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (LastChangeDateTime != other.LastChangeDateTime) return false; - if (ResourceType != other.ResourceType) return false; - if (Campaign != other.Campaign) return false; - if (AdGroup != other.AdGroup) return false; - if (ResourceStatus != other.ResourceStatus) return false; - if (AdGroupAd != other.AdGroupAd) return false; - if (AdGroupCriterion != other.AdGroupCriterion) return false; - if (CampaignCriterion != other.CampaignCriterion) return false; - if (Feed != other.Feed) return false; - if (FeedItem != other.FeedItem) return false; - if (AdGroupFeed != other.AdGroupFeed) return false; - if (CampaignFeed != other.CampaignFeed) return false; - if (AdGroupBidModifier != other.AdGroupBidModifier) return false; - if (SharedSet != other.SharedSet) return false; - if (CampaignSharedSet != other.CampaignSharedSet) return false; - if (Asset != other.Asset) return false; - if (CustomerAsset != other.CustomerAsset) return false; - if (CampaignAsset != other.CampaignAsset) return false; - if (AdGroupAsset != other.AdGroupAsset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasLastChangeDateTime) hash ^= LastChangeDateTime.GetHashCode(); - if (ResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified) hash ^= ResourceType.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasAdGroup) hash ^= AdGroup.GetHashCode(); - if (ResourceStatus != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified) hash ^= ResourceStatus.GetHashCode(); - if (HasAdGroupAd) hash ^= AdGroupAd.GetHashCode(); - if (HasAdGroupCriterion) hash ^= AdGroupCriterion.GetHashCode(); - if (HasCampaignCriterion) hash ^= CampaignCriterion.GetHashCode(); - if (HasFeed) hash ^= Feed.GetHashCode(); - if (HasFeedItem) hash ^= FeedItem.GetHashCode(); - if (HasAdGroupFeed) hash ^= AdGroupFeed.GetHashCode(); - if (HasCampaignFeed) hash ^= CampaignFeed.GetHashCode(); - if (HasAdGroupBidModifier) hash ^= AdGroupBidModifier.GetHashCode(); - if (SharedSet.Length != 0) hash ^= SharedSet.GetHashCode(); - if (CampaignSharedSet.Length != 0) hash ^= CampaignSharedSet.GetHashCode(); - if (Asset.Length != 0) hash ^= Asset.GetHashCode(); - if (CustomerAsset.Length != 0) hash ^= CustomerAsset.GetHashCode(); - if (CampaignAsset.Length != 0) hash ^= CampaignAsset.GetHashCode(); - if (AdGroupAsset.Length != 0) hash ^= AdGroupAsset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResourceType); - } - if (ResourceStatus != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) ResourceStatus); - } - if (HasCampaign) { - output.WriteRawTag(138, 1); - output.WriteString(Campaign); - } - if (HasAdGroup) { - output.WriteRawTag(146, 1); - output.WriteString(AdGroup); - } - if (HasLastChangeDateTime) { - output.WriteRawTag(194, 1); - output.WriteString(LastChangeDateTime); - } - if (HasAdGroupAd) { - output.WriteRawTag(202, 1); - output.WriteString(AdGroupAd); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(210, 1); - output.WriteString(AdGroupCriterion); - } - if (HasCampaignCriterion) { - output.WriteRawTag(218, 1); - output.WriteString(CampaignCriterion); - } - if (HasFeed) { - output.WriteRawTag(226, 1); - output.WriteString(Feed); - } - if (HasFeedItem) { - output.WriteRawTag(234, 1); - output.WriteString(FeedItem); - } - if (HasAdGroupFeed) { - output.WriteRawTag(242, 1); - output.WriteString(AdGroupFeed); - } - if (HasCampaignFeed) { - output.WriteRawTag(250, 1); - output.WriteString(CampaignFeed); - } - if (HasAdGroupBidModifier) { - output.WriteRawTag(130, 2); - output.WriteString(AdGroupBidModifier); - } - if (SharedSet.Length != 0) { - output.WriteRawTag(138, 2); - output.WriteString(SharedSet); - } - if (CampaignSharedSet.Length != 0) { - output.WriteRawTag(146, 2); - output.WriteString(CampaignSharedSet); - } - if (Asset.Length != 0) { - output.WriteRawTag(154, 2); - output.WriteString(Asset); - } - if (CustomerAsset.Length != 0) { - output.WriteRawTag(162, 2); - output.WriteString(CustomerAsset); - } - if (CampaignAsset.Length != 0) { - output.WriteRawTag(170, 2); - output.WriteString(CampaignAsset); - } - if (AdGroupAsset.Length != 0) { - output.WriteRawTag(178, 2); - output.WriteString(AdGroupAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResourceType); - } - if (ResourceStatus != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) ResourceStatus); - } - if (HasCampaign) { - output.WriteRawTag(138, 1); - output.WriteString(Campaign); - } - if (HasAdGroup) { - output.WriteRawTag(146, 1); - output.WriteString(AdGroup); - } - if (HasLastChangeDateTime) { - output.WriteRawTag(194, 1); - output.WriteString(LastChangeDateTime); - } - if (HasAdGroupAd) { - output.WriteRawTag(202, 1); - output.WriteString(AdGroupAd); - } - if (HasAdGroupCriterion) { - output.WriteRawTag(210, 1); - output.WriteString(AdGroupCriterion); - } - if (HasCampaignCriterion) { - output.WriteRawTag(218, 1); - output.WriteString(CampaignCriterion); - } - if (HasFeed) { - output.WriteRawTag(226, 1); - output.WriteString(Feed); - } - if (HasFeedItem) { - output.WriteRawTag(234, 1); - output.WriteString(FeedItem); - } - if (HasAdGroupFeed) { - output.WriteRawTag(242, 1); - output.WriteString(AdGroupFeed); - } - if (HasCampaignFeed) { - output.WriteRawTag(250, 1); - output.WriteString(CampaignFeed); - } - if (HasAdGroupBidModifier) { - output.WriteRawTag(130, 2); - output.WriteString(AdGroupBidModifier); - } - if (SharedSet.Length != 0) { - output.WriteRawTag(138, 2); - output.WriteString(SharedSet); - } - if (CampaignSharedSet.Length != 0) { - output.WriteRawTag(146, 2); - output.WriteString(CampaignSharedSet); - } - if (Asset.Length != 0) { - output.WriteRawTag(154, 2); - output.WriteString(Asset); - } - if (CustomerAsset.Length != 0) { - output.WriteRawTag(162, 2); - output.WriteString(CustomerAsset); - } - if (CampaignAsset.Length != 0) { - output.WriteRawTag(170, 2); - output.WriteString(CampaignAsset); - } - if (AdGroupAsset.Length != 0) { - output.WriteRawTag(178, 2); - output.WriteString(AdGroupAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasLastChangeDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(LastChangeDateTime); - } - if (ResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResourceType); - } - if (HasCampaign) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasAdGroup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (ResourceStatus != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResourceStatus); - } - if (HasAdGroupAd) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupAd); - } - if (HasAdGroupCriterion) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupCriterion); - } - if (HasCampaignCriterion) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignCriterion); - } - if (HasFeed) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - if (HasFeedItem) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FeedItem); - } - if (HasAdGroupFeed) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupFeed); - } - if (HasCampaignFeed) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignFeed); - } - if (HasAdGroupBidModifier) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupBidModifier); - } - if (SharedSet.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(SharedSet); - } - if (CampaignSharedSet.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignSharedSet); - } - if (Asset.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (CustomerAsset.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CustomerAsset); - } - if (CampaignAsset.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CampaignAsset); - } - if (AdGroupAsset.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroupAsset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeStatus other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasLastChangeDateTime) { - LastChangeDateTime = other.LastChangeDateTime; - } - if (other.ResourceType != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType.Unspecified) { - ResourceType = other.ResourceType; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasAdGroup) { - AdGroup = other.AdGroup; - } - if (other.ResourceStatus != global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation.Unspecified) { - ResourceStatus = other.ResourceStatus; - } - if (other.HasAdGroupAd) { - AdGroupAd = other.AdGroupAd; - } - if (other.HasAdGroupCriterion) { - AdGroupCriterion = other.AdGroupCriterion; - } - if (other.HasCampaignCriterion) { - CampaignCriterion = other.CampaignCriterion; - } - if (other.HasFeed) { - Feed = other.Feed; - } - if (other.HasFeedItem) { - FeedItem = other.FeedItem; - } - if (other.HasAdGroupFeed) { - AdGroupFeed = other.AdGroupFeed; - } - if (other.HasCampaignFeed) { - CampaignFeed = other.CampaignFeed; - } - if (other.HasAdGroupBidModifier) { - AdGroupBidModifier = other.AdGroupBidModifier; - } - if (other.SharedSet.Length != 0) { - SharedSet = other.SharedSet; - } - if (other.CampaignSharedSet.Length != 0) { - CampaignSharedSet = other.CampaignSharedSet; - } - if (other.Asset.Length != 0) { - Asset = other.Asset; - } - if (other.CustomerAsset.Length != 0) { - CustomerAsset = other.CustomerAsset; - } - if (other.CampaignAsset.Length != 0) { - CampaignAsset = other.CampaignAsset; - } - if (other.AdGroupAsset.Length != 0) { - AdGroupAsset = other.AdGroupAsset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - ResourceType = (global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType) input.ReadEnum(); - break; - } - case 64: { - ResourceStatus = (global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation) input.ReadEnum(); - break; - } - case 138: { - Campaign = input.ReadString(); - break; - } - case 146: { - AdGroup = input.ReadString(); - break; - } - case 194: { - LastChangeDateTime = input.ReadString(); - break; - } - case 202: { - AdGroupAd = input.ReadString(); - break; - } - case 210: { - AdGroupCriterion = input.ReadString(); - break; - } - case 218: { - CampaignCriterion = input.ReadString(); - break; - } - case 226: { - Feed = input.ReadString(); - break; - } - case 234: { - FeedItem = input.ReadString(); - break; - } - case 242: { - AdGroupFeed = input.ReadString(); - break; - } - case 250: { - CampaignFeed = input.ReadString(); - break; - } - case 258: { - AdGroupBidModifier = input.ReadString(); - break; - } - case 266: { - SharedSet = input.ReadString(); - break; - } - case 274: { - CampaignSharedSet = input.ReadString(); - break; - } - case 282: { - Asset = input.ReadString(); - break; - } - case 290: { - CustomerAsset = input.ReadString(); - break; - } - case 298: { - CampaignAsset = input.ReadString(); - break; - } - case 306: { - AdGroupAsset = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - ResourceType = (global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType) input.ReadEnum(); - break; - } - case 64: { - ResourceStatus = (global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation) input.ReadEnum(); - break; - } - case 138: { - Campaign = input.ReadString(); - break; - } - case 146: { - AdGroup = input.ReadString(); - break; - } - case 194: { - LastChangeDateTime = input.ReadString(); - break; - } - case 202: { - AdGroupAd = input.ReadString(); - break; - } - case 210: { - AdGroupCriterion = input.ReadString(); - break; - } - case 218: { - CampaignCriterion = input.ReadString(); - break; - } - case 226: { - Feed = input.ReadString(); - break; - } - case 234: { - FeedItem = input.ReadString(); - break; - } - case 242: { - AdGroupFeed = input.ReadString(); - break; - } - case 250: { - CampaignFeed = input.ReadString(); - break; - } - case 258: { - AdGroupBidModifier = input.ReadString(); - break; - } - case 266: { - SharedSet = input.ReadString(); - break; - } - case 274: { - CampaignSharedSet = input.ReadString(); - break; - } - case 282: { - Asset = input.ReadString(); - break; - } - case 290: { - CustomerAsset = input.ReadString(); - break; - } - case 298: { - CampaignAsset = input.ReadString(); - break; - } - case 306: { - AdGroupAsset = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeStatusError.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeStatusError.g.cs deleted file mode 100755 index 055d6f420..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeStatusError.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/change_status_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/change_status_error.proto - public static partial class ChangeStatusErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/change_status_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeStatusErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NoYW5nZV9zdGF0", - "dXNfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMi1gEKFUNoYW5nZVN0YXR1c0Vycm9yRW51bSK8AQoRQ2hhbmdlU3RhdHVz", - "RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFgoSU1RBUlRf", - "REFURV9UT09fT0xEEAMSHgoaQ0hBTkdFX0RBVEVfUkFOR0VfSU5GSU5JVEUQ", - "BBIeChpDSEFOR0VfREFURV9SQU5HRV9ORUdBVElWRRAFEhcKE0xJTUlUX05P", - "VF9TUEVDSUZJRUQQBhIYChRJTlZBTElEX0xJTUlUX0NMQVVTRRAHQvYBCiNj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9yc0IWQ2hhbmdlU3Rh", - "dHVzRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNH", - "QUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorEnum.Types.ChangeStatusError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible change status errors. - /// - public sealed partial class ChangeStatusErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeStatusErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusErrorEnum(ChangeStatusErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusErrorEnum Clone() { - return new ChangeStatusErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeStatusErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeStatusErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeStatusErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChangeStatusErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible change status errors. - /// - public enum ChangeStatusError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The requested start date is too old. - /// - [pbr::OriginalName("START_DATE_TOO_OLD")] StartDateTooOld = 3, - /// - /// The change_status search request must specify a finite range filter - /// on last_change_date_time. - /// - [pbr::OriginalName("CHANGE_DATE_RANGE_INFINITE")] ChangeDateRangeInfinite = 4, - /// - /// The change status search request has specified invalid date time filters - /// that can never logically produce any valid results (for example, start - /// time after end time). - /// - [pbr::OriginalName("CHANGE_DATE_RANGE_NEGATIVE")] ChangeDateRangeNegative = 5, - /// - /// The change_status search request must specify a LIMIT. - /// - [pbr::OriginalName("LIMIT_NOT_SPECIFIED")] LimitNotSpecified = 6, - /// - /// The LIMIT specified by change_status request should be less than or equal - /// to 10K. - /// - [pbr::OriginalName("INVALID_LIMIT_CLAUSE")] InvalidLimitClause = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeStatusOperation.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeStatusOperation.g.cs deleted file mode 100755 index ae2a3cfd5..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeStatusOperation.g.cs +++ /dev/null @@ -1,242 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/change_status_operation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/change_status_operation.proto - public static partial class ChangeStatusOperationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/change_status_operation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeStatusOperationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2hhbmdlX3N0YXR1", - "c19vcGVyYXRpb24ucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJ3ChlDaGFuZ2VTdGF0dXNPcGVyYXRpb25FbnVtIloKFUNoYW5nZVN0", - "YXR1c09wZXJhdGlvbhIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIJ", - "CgVBRERFRBACEgsKB0NIQU5HRUQQAxILCgdSRU1PVkVEEARC9AEKImNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCGkNoYW5nZVN0YXR1c09w", - "ZXJhdGlvblByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGq", - "Ah5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum), global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationEnum.Types.ChangeStatusOperation) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing operations for the ChangeStatus resource. - /// - public sealed partial class ChangeStatusOperationEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeStatusOperationEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusOperationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusOperationEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusOperationEnum(ChangeStatusOperationEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusOperationEnum Clone() { - return new ChangeStatusOperationEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeStatusOperationEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeStatusOperationEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeStatusOperationEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChangeStatusOperationEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Status of the changed resource - /// - public enum ChangeStatusOperation { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents an unclassified resource unknown - /// in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The resource was created. - /// - [pbr::OriginalName("ADDED")] Added = 2, - /// - /// The resource was modified. - /// - [pbr::OriginalName("CHANGED")] Changed = 3, - /// - /// The resource was removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ChangeStatusResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeStatusResourceNames.g.cs deleted file mode 100755 index a06b7c46c..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeStatusResourceNames.g.cs +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ChangeStatus resource. - public sealed partial class ChangeStatusName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/changeStatus/{change_status_id}. - /// - CustomerChangeStatus = 1, - } - - private static gax::PathTemplate s_customerChangeStatus = new gax::PathTemplate("customers/{customer_id}/changeStatus/{change_status_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ChangeStatusName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ChangeStatusName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/changeStatus/{change_status_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ChangeStatus ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static ChangeStatusName FromCustomerChangeStatus(string customerId, string changeStatusId) => - new ChangeStatusName(ResourceNameType.CustomerChangeStatus, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), changeStatusId: gax::GaxPreconditions.CheckNotNullOrEmpty(changeStatusId, nameof(changeStatusId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/changeStatus/{change_status_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ChangeStatus ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/changeStatus/{change_status_id}. - /// - public static string Format(string customerId, string changeStatusId) => - FormatCustomerChangeStatus(customerId, changeStatusId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/changeStatus/{change_status_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ChangeStatus ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/changeStatus/{change_status_id}. - /// - public static string FormatCustomerChangeStatus(string customerId, string changeStatusId) => - s_customerChangeStatus.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(changeStatusId, nameof(changeStatusId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/changeStatus/{change_status_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ChangeStatusName Parse(string changeStatusName) => Parse(changeStatusName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/changeStatus/{change_status_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ChangeStatusName Parse(string changeStatusName, bool allowUnparsed) => - TryParse(changeStatusName, allowUnparsed, out ChangeStatusName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/changeStatus/{change_status_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string changeStatusName, out ChangeStatusName result) => - TryParse(changeStatusName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/changeStatus/{change_status_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string changeStatusName, bool allowUnparsed, out ChangeStatusName result) - { - gax::GaxPreconditions.CheckNotNull(changeStatusName, nameof(changeStatusName)); - gax::TemplatedResourceName resourceName; - if (s_customerChangeStatus.TryParseName(changeStatusName, out resourceName)) - { - result = FromCustomerChangeStatus(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(changeStatusName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ChangeStatusName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string changeStatusId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ChangeStatusId = changeStatusId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/changeStatus/{change_status_id} - /// - /// The Customer ID. Must not be null or empty. - /// The ChangeStatus ID. Must not be null or empty. - public ChangeStatusName(string customerId, string changeStatusId) : this(ResourceNameType.CustomerChangeStatus, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), changeStatusId: gax::GaxPreconditions.CheckNotNullOrEmpty(changeStatusId, nameof(changeStatusId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ChangeStatus ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ChangeStatusId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerChangeStatus: return s_customerChangeStatus.Expand(CustomerId, ChangeStatusId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ChangeStatusName); - - /// - public bool Equals(ChangeStatusName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ChangeStatusName a, ChangeStatusName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ChangeStatusName a, ChangeStatusName b) => !(a == b); - } - - public partial class ChangeStatus - { - /// - /// -typed view over the resource name property. - /// - internal ChangeStatusName ResourceNameAsChangeStatusName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ChangeStatusName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupAdName AdGroupAdAsAdGroupAdName - { - get => string.IsNullOrEmpty(AdGroupAd) ? null : AdGroupAdName.Parse(AdGroupAd, allowUnparsed: true); - set => AdGroupAd = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupCriterionName AdGroupCriterionAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(AdGroupCriterion) ? null : AdGroupCriterionName.Parse(AdGroupCriterion, allowUnparsed: true); - set => AdGroupCriterion = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal CampaignCriterionName CampaignCriterionAsCampaignCriterionName - { - get => string.IsNullOrEmpty(CampaignCriterion) ? null : CampaignCriterionName.Parse(CampaignCriterion, allowUnparsed: true); - set => CampaignCriterion = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal FeedItemName FeedItemAsFeedItemName - { - get => string.IsNullOrEmpty(FeedItem) ? null : FeedItemName.Parse(FeedItem, allowUnparsed: true); - set => FeedItem = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupFeedName AdGroupFeedAsAdGroupFeedName - { - get => string.IsNullOrEmpty(AdGroupFeed) ? null : AdGroupFeedName.Parse(AdGroupFeed, allowUnparsed: true); - set => AdGroupFeed = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignFeedName CampaignFeedAsCampaignFeedName - { - get => string.IsNullOrEmpty(CampaignFeed) ? null : CampaignFeedName.Parse(CampaignFeed, allowUnparsed: true); - set => CampaignFeed = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal AdGroupBidModifierName AdGroupBidModifierAsAdGroupBidModifierName - { - get => string.IsNullOrEmpty(AdGroupBidModifier) ? null : AdGroupBidModifierName.Parse(AdGroupBidModifier, allowUnparsed: true); - set => AdGroupBidModifier = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal SharedSetName SharedSetAsSharedSetName - { - get => string.IsNullOrEmpty(SharedSet) ? null : SharedSetName.Parse(SharedSet, allowUnparsed: true); - set => SharedSet = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal CampaignSharedSetName CampaignSharedSetAsCampaignSharedSetName - { - get => string.IsNullOrEmpty(CampaignSharedSet) ? null : CampaignSharedSetName.Parse(CampaignSharedSet, allowUnparsed: true); - set => CampaignSharedSet = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerAssetName CustomerAssetAsCustomerAssetName - { - get => string.IsNullOrEmpty(CustomerAsset) ? null : CustomerAssetName.Parse(CustomerAsset, allowUnparsed: true); - set => CustomerAsset = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignAssetName CampaignAssetAsCampaignAssetName - { - get => string.IsNullOrEmpty(CampaignAsset) ? null : CampaignAssetName.Parse(CampaignAsset, allowUnparsed: true); - set => CampaignAsset = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupAssetName AdGroupAssetAsAdGroupAssetName - { - get => string.IsNullOrEmpty(AdGroupAsset) ? null : AdGroupAssetName.Parse(AdGroupAsset, allowUnparsed: true); - set => AdGroupAsset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ChangeStatusResourceType.g.cs b/Google.Ads.GoogleAds/src/V12/ChangeStatusResourceType.g.cs deleted file mode 100755 index b2778b08c..000000000 --- a/Google.Ads.GoogleAds/src/V12/ChangeStatusResourceType.g.cs +++ /dev/null @@ -1,301 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/change_status_resource_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/change_status_resource_type.proto - public static partial class ChangeStatusResourceTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/change_status_resource_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ChangeStatusResourceTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2hhbmdlX3N0YXR1", - "c19yZXNvdXJjZV90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMigAMKHENoYW5nZVN0YXR1c1Jlc291cmNlVHlwZUVudW0i3wIK", - "GENoYW5nZVN0YXR1c1Jlc291cmNlVHlwZRIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARIMCghBRF9HUk9VUBADEg8KC0FEX0dST1VQX0FEEAQSFgoS", - "QURfR1JPVVBfQ1JJVEVSSU9OEAUSDAoIQ0FNUEFJR04QBhIWChJDQU1QQUlH", - "Tl9DUklURVJJT04QBxIICgRGRUVEEAkSDQoJRkVFRF9JVEVNEAoSEQoNQURf", - "R1JPVVBfRkVFRBALEhEKDUNBTVBBSUdOX0ZFRUQQDBIZChVBRF9HUk9VUF9C", - "SURfTU9ESUZJRVIQDRIOCgpTSEFSRURfU0VUEA4SFwoTQ0FNUEFJR05fU0hB", - "UkVEX1NFVBAPEgkKBUFTU0VUEBASEgoOQ1VTVE9NRVJfQVNTRVQQERISCg5D", - "QU1QQUlHTl9BU1NFVBASEhIKDkFEX0dST1VQX0FTU0VUEBNC9wEKImNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCHUNoYW5nZVN0YXR1c1Jl", - "c291cmNlVHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNH", - "QUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVc", - "QWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeEnum.Types.ChangeStatusResourceType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing supported resource types for the ChangeStatus - /// resource. - /// - public sealed partial class ChangeStatusResourceTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ChangeStatusResourceTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ChangeStatusResourceTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusResourceTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusResourceTypeEnum(ChangeStatusResourceTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ChangeStatusResourceTypeEnum Clone() { - return new ChangeStatusResourceTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ChangeStatusResourceTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ChangeStatusResourceTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ChangeStatusResourceTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ChangeStatusResourceTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum listing the resource types support by the ChangeStatus resource. - /// - public enum ChangeStatusResourceType { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents an unclassified resource unknown - /// in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An AdGroup resource change. - /// - [pbr::OriginalName("AD_GROUP")] AdGroup = 3, - /// - /// An AdGroupAd resource change. - /// - [pbr::OriginalName("AD_GROUP_AD")] AdGroupAd = 4, - /// - /// An AdGroupCriterion resource change. - /// - [pbr::OriginalName("AD_GROUP_CRITERION")] AdGroupCriterion = 5, - /// - /// A Campaign resource change. - /// - [pbr::OriginalName("CAMPAIGN")] Campaign = 6, - /// - /// A CampaignCriterion resource change. - /// - [pbr::OriginalName("CAMPAIGN_CRITERION")] CampaignCriterion = 7, - /// - /// A Feed resource change. - /// - [pbr::OriginalName("FEED")] Feed = 9, - /// - /// A FeedItem resource change. - /// - [pbr::OriginalName("FEED_ITEM")] FeedItem = 10, - /// - /// An AdGroupFeed resource change. - /// - [pbr::OriginalName("AD_GROUP_FEED")] AdGroupFeed = 11, - /// - /// A CampaignFeed resource change. - /// - [pbr::OriginalName("CAMPAIGN_FEED")] CampaignFeed = 12, - /// - /// An AdGroupBidModifier resource change. - /// - [pbr::OriginalName("AD_GROUP_BID_MODIFIER")] AdGroupBidModifier = 13, - /// - /// A SharedSet resource change. - /// - [pbr::OriginalName("SHARED_SET")] SharedSet = 14, - /// - /// A CampaignSharedSet resource change. - /// - [pbr::OriginalName("CAMPAIGN_SHARED_SET")] CampaignSharedSet = 15, - /// - /// An Asset resource change. - /// - [pbr::OriginalName("ASSET")] Asset = 16, - /// - /// A CustomerAsset resource change. - /// - [pbr::OriginalName("CUSTOMER_ASSET")] CustomerAsset = 17, - /// - /// A CampaignAsset resource change. - /// - [pbr::OriginalName("CAMPAIGN_ASSET")] CampaignAsset = 18, - /// - /// An AdGroupAsset resource change. - /// - [pbr::OriginalName("AD_GROUP_ASSET")] AdGroupAsset = 19, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ClickLocation.g.cs b/Google.Ads.GoogleAds/src/V12/ClickLocation.g.cs deleted file mode 100755 index b9a35db20..000000000 --- a/Google.Ads.GoogleAds/src/V12/ClickLocation.g.cs +++ /dev/null @@ -1,468 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/click_location.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/click_location.proto - public static partial class ClickLocationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/click_location.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ClickLocationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2NsaWNrX2xvY2F0", - "aW9uLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uIrkB", - "Cg1DbGlja0xvY2F0aW9uEhEKBGNpdHkYBiABKAlIAIgBARIUCgdjb3VudHJ5", - "GAcgASgJSAGIAQESEgoFbWV0cm8YCCABKAlIAogBARIaCg1tb3N0X3NwZWNp", - "ZmljGAkgASgJSAOIAQESEwoGcmVnaW9uGAogASgJSASIAQFCBwoFX2NpdHlC", - "CgoIX2NvdW50cnlCCAoGX21ldHJvQhAKDl9tb3N0X3NwZWNpZmljQgkKB19y", - "ZWdpb25C8gEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "QhJDbGlja0xvY2F0aW9uUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2Vu", - "cHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb247Y29t", - "bW9uogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkNvbW1vbsoC", - "H0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxDb21tb27qAiNHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OkNvbW1vbmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ClickLocation), global::Google.Ads.GoogleAds.V12.Common.ClickLocation.Parser, new[]{ "City", "Country", "Metro", "MostSpecific", "Region" }, new[]{ "City", "Country", "Metro", "MostSpecific", "Region" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Location criteria associated with a click. - /// - public sealed partial class ClickLocation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClickLocation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ClickLocationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickLocation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickLocation(ClickLocation other) : this() { - city_ = other.city_; - country_ = other.country_; - metro_ = other.metro_; - mostSpecific_ = other.mostSpecific_; - region_ = other.region_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickLocation Clone() { - return new ClickLocation(this); - } - - /// Field number for the "city" field. - public const int CityFieldNumber = 6; - private string city_; - /// - /// The city location criterion associated with the impression. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string City { - get { return city_ ?? ""; } - set { - city_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "city" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCity { - get { return city_ != null; } - } - /// Clears the value of the "city" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCity() { - city_ = null; - } - - /// Field number for the "country" field. - public const int CountryFieldNumber = 7; - private string country_; - /// - /// The country location criterion associated with the impression. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Country { - get { return country_ ?? ""; } - set { - country_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountry { - get { return country_ != null; } - } - /// Clears the value of the "country" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountry() { - country_ = null; - } - - /// Field number for the "metro" field. - public const int MetroFieldNumber = 8; - private string metro_; - /// - /// The metro location criterion associated with the impression. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Metro { - get { return metro_ ?? ""; } - set { - metro_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "metro" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMetro { - get { return metro_ != null; } - } - /// Clears the value of the "metro" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMetro() { - metro_ = null; - } - - /// Field number for the "most_specific" field. - public const int MostSpecificFieldNumber = 9; - private string mostSpecific_; - /// - /// The most specific location criterion associated with the impression. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MostSpecific { - get { return mostSpecific_ ?? ""; } - set { - mostSpecific_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "most_specific" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMostSpecific { - get { return mostSpecific_ != null; } - } - /// Clears the value of the "most_specific" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMostSpecific() { - mostSpecific_ = null; - } - - /// Field number for the "region" field. - public const int RegionFieldNumber = 10; - private string region_; - /// - /// The region location criterion associated with the impression. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Region { - get { return region_ ?? ""; } - set { - region_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "region" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRegion { - get { return region_ != null; } - } - /// Clears the value of the "region" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRegion() { - region_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClickLocation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClickLocation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (City != other.City) return false; - if (Country != other.Country) return false; - if (Metro != other.Metro) return false; - if (MostSpecific != other.MostSpecific) return false; - if (Region != other.Region) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCity) hash ^= City.GetHashCode(); - if (HasCountry) hash ^= Country.GetHashCode(); - if (HasMetro) hash ^= Metro.GetHashCode(); - if (HasMostSpecific) hash ^= MostSpecific.GetHashCode(); - if (HasRegion) hash ^= Region.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCity) { - output.WriteRawTag(50); - output.WriteString(City); - } - if (HasCountry) { - output.WriteRawTag(58); - output.WriteString(Country); - } - if (HasMetro) { - output.WriteRawTag(66); - output.WriteString(Metro); - } - if (HasMostSpecific) { - output.WriteRawTag(74); - output.WriteString(MostSpecific); - } - if (HasRegion) { - output.WriteRawTag(82); - output.WriteString(Region); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCity) { - output.WriteRawTag(50); - output.WriteString(City); - } - if (HasCountry) { - output.WriteRawTag(58); - output.WriteString(Country); - } - if (HasMetro) { - output.WriteRawTag(66); - output.WriteString(Metro); - } - if (HasMostSpecific) { - output.WriteRawTag(74); - output.WriteString(MostSpecific); - } - if (HasRegion) { - output.WriteRawTag(82); - output.WriteString(Region); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCity) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(City); - } - if (HasCountry) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Country); - } - if (HasMetro) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Metro); - } - if (HasMostSpecific) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MostSpecific); - } - if (HasRegion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClickLocation other) { - if (other == null) { - return; - } - if (other.HasCity) { - City = other.City; - } - if (other.HasCountry) { - Country = other.Country; - } - if (other.HasMetro) { - Metro = other.Metro; - } - if (other.HasMostSpecific) { - MostSpecific = other.MostSpecific; - } - if (other.HasRegion) { - Region = other.Region; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 50: { - City = input.ReadString(); - break; - } - case 58: { - Country = input.ReadString(); - break; - } - case 66: { - Metro = input.ReadString(); - break; - } - case 74: { - MostSpecific = input.ReadString(); - break; - } - case 82: { - Region = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 50: { - City = input.ReadString(); - break; - } - case 58: { - Country = input.ReadString(); - break; - } - case 66: { - Metro = input.ReadString(); - break; - } - case 74: { - MostSpecific = input.ReadString(); - break; - } - case 82: { - Region = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ClickType.g.cs b/Google.Ads.GoogleAds/src/V12/ClickType.g.cs deleted file mode 100755 index c89acb552..000000000 --- a/Google.Ads.GoogleAds/src/V12/ClickType.g.cs +++ /dev/null @@ -1,477 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/click_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/click_type.proto - public static partial class ClickTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/click_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ClickTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2xpY2tfdHlwZS5w", - "cm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIrkMCg1DbGlj", - "a1R5cGVFbnVtIqcMCglDbGlja1R5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESEAoMQVBQX0RFRVBMSU5LEAISDwoLQlJFQURDUlVNQlMQAxIS", - "Cg5CUk9BREJBTkRfUExBThAEEhEKDUNBTExfVFJBQ0tJTkcQBRIJCgVDQUxM", - "UxAGEhoKFkNMSUNLX09OX0VOR0FHRU1FTlRfQUQQBxISCg5HRVRfRElSRUNU", - "SU9OUxAIEhYKEkxPQ0FUSU9OX0VYUEFOU0lPThAJEhgKFExPQ0FUSU9OX0ZP", - "Uk1BVF9DQUxMEAoSHgoaTE9DQVRJT05fRk9STUFUX0RJUkVDVElPTlMQCxIZ", - "ChVMT0NBVElPTl9GT1JNQVRfSU1BR0UQDBIgChxMT0NBVElPTl9GT1JNQVRf", - "TEFORElOR19QQUdFEA0SFwoTTE9DQVRJT05fRk9STUFUX01BUBAOEh4KGkxP", - "Q0FUSU9OX0ZPUk1BVF9TVE9SRV9JTkZPEA8SGAoUTE9DQVRJT05fRk9STUFU", - "X1RFWFQQEBIYChRNT0JJTEVfQ0FMTF9UUkFDS0lORxAREhAKDE9GRkVSX1BS", - "SU5UUxASEgkKBU9USEVSEBMSHAoYUFJPRFVDVF9FWFRFTlNJT05fQ0xJQ0tT", - "EBQSHQoZUFJPRFVDVF9MSVNUSU5HX0FEX0NMSUNLUxAVEg0KCVNJVEVMSU5L", - "UxAWEhEKDVNUT1JFX0xPQ0FUT1IQFxIOCgpVUkxfQ0xJQ0tTEBkSGgoWVklE", - "RU9fQVBQX1NUT1JFX0NMSUNLUxAaEh8KG1ZJREVPX0NBTExfVE9fQUNUSU9O", - "X0NMSUNLUxAbEiUKIVZJREVPX0NBUkRfQUNUSU9OX0hFQURMSU5FX0NMSUNL", - "UxAcEhgKFFZJREVPX0VORF9DQVBfQ0xJQ0tTEB0SGAoUVklERU9fV0VCU0lU", - "RV9DTElDS1MQHhIUChBWSVNVQUxfU0lURUxJTktTEB8SEQoNV0lSRUxFU1Nf", - "UExBThAgEhwKGFBST0RVQ1RfTElTVElOR19BRF9MT0NBTBAhEikKJVBST0RV", - "Q1RfTElTVElOR19BRF9NVUxUSUNIQU5ORUxfTE9DQUwQIhIqCiZQUk9EVUNU", - "X0xJU1RJTkdfQURfTVVMVElDSEFOTkVMX09OTElORRAjEh4KGlBST0RVQ1Rf", - "TElTVElOR19BRFNfQ09VUE9OECQSIwofUFJPRFVDVF9MSVNUSU5HX0FEX1RS", - "QU5TQUNUQUJMRRAlEhsKF1BST0RVQ1RfQURfQVBQX0RFRVBMSU5LECYSHQoZ", - "U0hPV0NBU0VfQURfQ0FURUdPUllfTElOSxAnEiUKIVNIT1dDQVNFX0FEX0xP", - "Q0FMX1NUT1JFRlJPTlRfTElOSxAoEiMKH1NIT1dDQVNFX0FEX09OTElORV9Q", - "Uk9EVUNUX0xJTksQKhIiCh5TSE9XQ0FTRV9BRF9MT0NBTF9QUk9EVUNUX0xJ", - "TksQKxIXChNQUk9NT1RJT05fRVhURU5TSU9OECwSIQodU1dJUEVBQkxFX0dB", - "TExFUllfQURfSEVBRExJTkUQLRIfChtTV0lQRUFCTEVfR0FMTEVSWV9BRF9T", - "V0lQRVMQLhIhCh1TV0lQRUFCTEVfR0FMTEVSWV9BRF9TRUVfTU9SRRAvEiUK", - "IVNXSVBFQUJMRV9HQUxMRVJZX0FEX1NJVEVMSU5LX09ORRAwEiUKIVNXSVBF", - "QUJMRV9HQUxMRVJZX0FEX1NJVEVMSU5LX1RXTxAxEicKI1NXSVBFQUJMRV9H", - "QUxMRVJZX0FEX1NJVEVMSU5LX1RIUkVFEDISJgoiU1dJUEVBQkxFX0dBTExF", - "UllfQURfU0lURUxJTktfRk9VUhAzEiYKIlNXSVBFQUJMRV9HQUxMRVJZX0FE", - "X1NJVEVMSU5LX0ZJVkUQNBIPCgtIT1RFTF9QUklDRRA1EhMKD1BSSUNFX0VY", - "VEVOU0lPThA2EicKI0hPVEVMX0JPT0tfT05fR09PR0xFX1JPT01fU0VMRUNU", - "SU9OEDcSHwobU0hPUFBJTkdfQ09NUEFSSVNPTl9MSVNUSU5HEDgSEQoNQ1JP", - "U1NfTkVUV09SSxA5QugBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQg5DbGlja1R5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2Vu", - "dW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIe", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ClickTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ClickTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ClickTypeEnum.Types.ClickType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of Google Ads click types. - /// - public sealed partial class ClickTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClickTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ClickTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickTypeEnum(ClickTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickTypeEnum Clone() { - return new ClickTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClickTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClickTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClickTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ClickTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates Google Ads click types. - /// - public enum ClickType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// App engagement ad deep link. - /// - [pbr::OriginalName("APP_DEEPLINK")] AppDeeplink = 2, - /// - /// Breadcrumbs. - /// - [pbr::OriginalName("BREADCRUMBS")] Breadcrumbs = 3, - /// - /// Broadband Plan. - /// - [pbr::OriginalName("BROADBAND_PLAN")] BroadbandPlan = 4, - /// - /// Manually dialed phone calls. - /// - [pbr::OriginalName("CALL_TRACKING")] CallTracking = 5, - /// - /// Phone calls. - /// - [pbr::OriginalName("CALLS")] Calls = 6, - /// - /// Click on engagement ad. - /// - [pbr::OriginalName("CLICK_ON_ENGAGEMENT_AD")] ClickOnEngagementAd = 7, - /// - /// Driving direction. - /// - [pbr::OriginalName("GET_DIRECTIONS")] GetDirections = 8, - /// - /// Get location details. - /// - [pbr::OriginalName("LOCATION_EXPANSION")] LocationExpansion = 9, - /// - /// Call. - /// - [pbr::OriginalName("LOCATION_FORMAT_CALL")] LocationFormatCall = 10, - /// - /// Directions. - /// - [pbr::OriginalName("LOCATION_FORMAT_DIRECTIONS")] LocationFormatDirections = 11, - /// - /// Image(s). - /// - [pbr::OriginalName("LOCATION_FORMAT_IMAGE")] LocationFormatImage = 12, - /// - /// Go to landing page. - /// - [pbr::OriginalName("LOCATION_FORMAT_LANDING_PAGE")] LocationFormatLandingPage = 13, - /// - /// Map. - /// - [pbr::OriginalName("LOCATION_FORMAT_MAP")] LocationFormatMap = 14, - /// - /// Go to store info. - /// - [pbr::OriginalName("LOCATION_FORMAT_STORE_INFO")] LocationFormatStoreInfo = 15, - /// - /// Text. - /// - [pbr::OriginalName("LOCATION_FORMAT_TEXT")] LocationFormatText = 16, - /// - /// Mobile phone calls. - /// - [pbr::OriginalName("MOBILE_CALL_TRACKING")] MobileCallTracking = 17, - /// - /// Print offer. - /// - [pbr::OriginalName("OFFER_PRINTS")] OfferPrints = 18, - /// - /// Other. - /// - [pbr::OriginalName("OTHER")] Other = 19, - /// - /// Product plusbox offer. - /// - [pbr::OriginalName("PRODUCT_EXTENSION_CLICKS")] ProductExtensionClicks = 20, - /// - /// Shopping - Product - Online. - /// - [pbr::OriginalName("PRODUCT_LISTING_AD_CLICKS")] ProductListingAdClicks = 21, - /// - /// Sitelink. - /// - [pbr::OriginalName("SITELINKS")] Sitelinks = 22, - /// - /// Show nearby locations. - /// - [pbr::OriginalName("STORE_LOCATOR")] StoreLocator = 23, - /// - /// Headline. - /// - [pbr::OriginalName("URL_CLICKS")] UrlClicks = 25, - /// - /// App store. - /// - [pbr::OriginalName("VIDEO_APP_STORE_CLICKS")] VideoAppStoreClicks = 26, - /// - /// Call-to-Action overlay. - /// - [pbr::OriginalName("VIDEO_CALL_TO_ACTION_CLICKS")] VideoCallToActionClicks = 27, - /// - /// Cards. - /// - [pbr::OriginalName("VIDEO_CARD_ACTION_HEADLINE_CLICKS")] VideoCardActionHeadlineClicks = 28, - /// - /// End cap. - /// - [pbr::OriginalName("VIDEO_END_CAP_CLICKS")] VideoEndCapClicks = 29, - /// - /// Website. - /// - [pbr::OriginalName("VIDEO_WEBSITE_CLICKS")] VideoWebsiteClicks = 30, - /// - /// Visual Sitelinks. - /// - [pbr::OriginalName("VISUAL_SITELINKS")] VisualSitelinks = 31, - /// - /// Wireless Plan. - /// - [pbr::OriginalName("WIRELESS_PLAN")] WirelessPlan = 32, - /// - /// Shopping - Product - Local. - /// - [pbr::OriginalName("PRODUCT_LISTING_AD_LOCAL")] ProductListingAdLocal = 33, - /// - /// Shopping - Product - MultiChannel Local. - /// - [pbr::OriginalName("PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL")] ProductListingAdMultichannelLocal = 34, - /// - /// Shopping - Product - MultiChannel Online. - /// - [pbr::OriginalName("PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE")] ProductListingAdMultichannelOnline = 35, - /// - /// Shopping - Product - Coupon. - /// - [pbr::OriginalName("PRODUCT_LISTING_ADS_COUPON")] ProductListingAdsCoupon = 36, - /// - /// Shopping - Product - Sell on Google. - /// - [pbr::OriginalName("PRODUCT_LISTING_AD_TRANSACTABLE")] ProductListingAdTransactable = 37, - /// - /// Shopping - Product - App engagement ad deep link. - /// - [pbr::OriginalName("PRODUCT_AD_APP_DEEPLINK")] ProductAdAppDeeplink = 38, - /// - /// Shopping - Showcase - Category. - /// - [pbr::OriginalName("SHOWCASE_AD_CATEGORY_LINK")] ShowcaseAdCategoryLink = 39, - /// - /// Shopping - Showcase - Local storefront. - /// - [pbr::OriginalName("SHOWCASE_AD_LOCAL_STOREFRONT_LINK")] ShowcaseAdLocalStorefrontLink = 40, - /// - /// Shopping - Showcase - Online product. - /// - [pbr::OriginalName("SHOWCASE_AD_ONLINE_PRODUCT_LINK")] ShowcaseAdOnlineProductLink = 42, - /// - /// Shopping - Showcase - Local product. - /// - [pbr::OriginalName("SHOWCASE_AD_LOCAL_PRODUCT_LINK")] ShowcaseAdLocalProductLink = 43, - /// - /// Promotion Extension. - /// - [pbr::OriginalName("PROMOTION_EXTENSION")] PromotionExtension = 44, - /// - /// Ad Headline. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_HEADLINE")] SwipeableGalleryAdHeadline = 45, - /// - /// Swipes. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_SWIPES")] SwipeableGalleryAdSwipes = 46, - /// - /// See More. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_SEE_MORE")] SwipeableGalleryAdSeeMore = 47, - /// - /// Sitelink 1. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_SITELINK_ONE")] SwipeableGalleryAdSitelinkOne = 48, - /// - /// Sitelink 2. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_SITELINK_TWO")] SwipeableGalleryAdSitelinkTwo = 49, - /// - /// Sitelink 3. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_SITELINK_THREE")] SwipeableGalleryAdSitelinkThree = 50, - /// - /// Sitelink 4. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_SITELINK_FOUR")] SwipeableGalleryAdSitelinkFour = 51, - /// - /// Sitelink 5. - /// - [pbr::OriginalName("SWIPEABLE_GALLERY_AD_SITELINK_FIVE")] SwipeableGalleryAdSitelinkFive = 52, - /// - /// Hotel price. - /// - [pbr::OriginalName("HOTEL_PRICE")] HotelPrice = 53, - /// - /// Price Extension. - /// - [pbr::OriginalName("PRICE_EXTENSION")] PriceExtension = 54, - /// - /// Book on Google hotel room selection. - /// - [pbr::OriginalName("HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION")] HotelBookOnGoogleRoomSelection = 55, - /// - /// Shopping - Comparison Listing. - /// - [pbr::OriginalName("SHOPPING_COMPARISON_LISTING")] ShoppingComparisonListing = 56, - /// - /// Cross-network. From Performance Max and Discovery Campaigns. - /// - [pbr::OriginalName("CROSS_NETWORK")] CrossNetwork = 57, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ClickView.g.cs b/Google.Ads.GoogleAds/src/V12/ClickView.g.cs deleted file mode 100755 index e07f080bd..000000000 --- a/Google.Ads.GoogleAds/src/V12/ClickView.g.cs +++ /dev/null @@ -1,728 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/click_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/click_view.proto - public static partial class ClickViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/click_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ClickViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NsaWNrX3Zp", - "ZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMa", - "NGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY2xpY2tfbG9jYXRp", - "b24ucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3Jp", - "dGVyaWEucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iygYKCUNsaWNrVmlldxJBCg1y", - "ZXNvdXJjZV9uYW1lGAEgASgJQirgQQP6QSQKImdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DbGlja1ZpZXcSFwoFZ2NsaWQYCCABKAlCA+BBA0gAiAEBEk0K", - "EGFyZWFfb2ZfaW50ZXJlc3QYAyABKAsyLi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLkNsaWNrTG9jYXRpb25CA+BBAxJRChRsb2NhdGlvbl9v", - "Zl9wcmVzZW5jZRgEIAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5j", - "b21tb24uQ2xpY2tMb2NhdGlvbkID4EEDEh0KC3BhZ2VfbnVtYmVyGAkgASgD", - "QgPgQQNIAYgBARJECgthZF9ncm91cF9hZBgKIAEoCUIq4EED+kEkCiJnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQWRHcm91cEFkSAKIAQESWQoYY2FtcGFp", - "Z25fbG9jYXRpb25fdGFyZ2V0GAsgASgJQjLgQQP6QSwKKmdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9HZW9UYXJnZXRDb25zdGFudEgDiAEBEkEKCXVzZXJf", - "bGlzdBgMIAEoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "VXNlckxpc3RIBIgBARJCCgdrZXl3b3JkGA0gASgJQjHgQQP6QSsKKWdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9BZEdyb3VwQ3JpdGVyaW9uEkcKDGtleXdv", - "cmRfaW5mbxgOIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uS2V5d29yZEluZm9CA+BBAzpa6kFXCiJnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ2xpY2tWaWV3EjFjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9jbGlj", - "a1ZpZXdzL3tkYXRlfX57Z2NsaWR9QggKBl9nY2xpZEIOCgxfcGFnZV9udW1i", - "ZXJCDgoMX2FkX2dyb3VwX2FkQhsKGV9jYW1wYWlnbl9sb2NhdGlvbl90YXJn", - "ZXRCDAoKX3VzZXJfbGlzdEKAAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXNCDkNsaWNrVmlld1Byb3RvUAFaS2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "UmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNv", - "dXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.ClickLocationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ClickView), global::Google.Ads.GoogleAds.V12.Resources.ClickView.Parser, new[]{ "ResourceName", "Gclid", "AreaOfInterest", "LocationOfPresence", "PageNumber", "AdGroupAd", "CampaignLocationTarget", "UserList", "Keyword", "KeywordInfo" }, new[]{ "Gclid", "PageNumber", "AdGroupAd", "CampaignLocationTarget", "UserList" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A click view with metrics aggregated at each click level, including both - /// valid and invalid clicks. For non-Search campaigns, metrics.clicks - /// represents the number of valid and invalid interactions. - /// Queries including ClickView must have a filter limiting the results to one - /// day and can be requested for dates back to 90 days before the time of the - /// request. - /// - public sealed partial class ClickView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClickView()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ClickViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickView(ClickView other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - gclid_ = other.gclid_; - areaOfInterest_ = other.areaOfInterest_ != null ? other.areaOfInterest_.Clone() : null; - locationOfPresence_ = other.locationOfPresence_ != null ? other.locationOfPresence_.Clone() : null; - pageNumber_ = other.pageNumber_; - adGroupAd_ = other.adGroupAd_; - campaignLocationTarget_ = other.campaignLocationTarget_; - userList_ = other.userList_; - keyword_ = other.keyword_; - keywordInfo_ = other.keywordInfo_ != null ? other.keywordInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickView Clone() { - return new ClickView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the click view. - /// Click view resource names have the form: - /// - /// `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "gclid" field. - public const int GclidFieldNumber = 8; - private string gclid_; - /// - /// Output only. The Google Click ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Gclid { - get { return gclid_ ?? ""; } - set { - gclid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "gclid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGclid { - get { return gclid_ != null; } - } - /// Clears the value of the "gclid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGclid() { - gclid_ = null; - } - - /// Field number for the "area_of_interest" field. - public const int AreaOfInterestFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.ClickLocation areaOfInterest_; - /// - /// Output only. The location criteria matching the area of interest associated with the - /// impression. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ClickLocation AreaOfInterest { - get { return areaOfInterest_; } - set { - areaOfInterest_ = value; - } - } - - /// Field number for the "location_of_presence" field. - public const int LocationOfPresenceFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.ClickLocation locationOfPresence_; - /// - /// Output only. The location criteria matching the location of presence associated with the - /// impression. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ClickLocation LocationOfPresence { - get { return locationOfPresence_; } - set { - locationOfPresence_ = value; - } - } - - /// Field number for the "page_number" field. - public const int PageNumberFieldNumber = 9; - private long pageNumber_; - /// - /// Output only. Page number in search results where the ad was shown. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PageNumber { - get { if ((_hasBits0 & 1) != 0) { return pageNumber_; } else { return 0L; } } - set { - _hasBits0 |= 1; - pageNumber_ = value; - } - } - /// Gets whether the "page_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPageNumber { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "page_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPageNumber() { - _hasBits0 &= ~1; - } - - /// Field number for the "ad_group_ad" field. - public const int AdGroupAdFieldNumber = 10; - private string adGroupAd_; - /// - /// Output only. The associated ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroupAd { - get { return adGroupAd_ ?? ""; } - set { - adGroupAd_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ad_group_ad" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdGroupAd { - get { return adGroupAd_ != null; } - } - /// Clears the value of the "ad_group_ad" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdGroupAd() { - adGroupAd_ = null; - } - - /// Field number for the "campaign_location_target" field. - public const int CampaignLocationTargetFieldNumber = 11; - private string campaignLocationTarget_; - /// - /// Output only. The associated campaign location target, if one exists. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignLocationTarget { - get { return campaignLocationTarget_ ?? ""; } - set { - campaignLocationTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign_location_target" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaignLocationTarget { - get { return campaignLocationTarget_ != null; } - } - /// Clears the value of the "campaign_location_target" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaignLocationTarget() { - campaignLocationTarget_ = null; - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 12; - private string userList_; - /// - /// Output only. The associated user list, if one exists. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserList { - get { return userList_ ?? ""; } - set { - userList_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "user_list" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUserList { - get { return userList_ != null; } - } - /// Clears the value of the "user_list" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUserList() { - userList_ = null; - } - - /// Field number for the "keyword" field. - public const int KeywordFieldNumber = 13; - private string keyword_ = ""; - /// - /// Output only. The associated keyword, if one exists and the click corresponds to the - /// SEARCH channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Keyword { - get { return keyword_; } - set { - keyword_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "keyword_info" field. - public const int KeywordInfoFieldNumber = 14; - private global::Google.Ads.GoogleAds.V12.Common.KeywordInfo keywordInfo_; - /// - /// Output only. Basic information about the associated keyword, if it exists. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordInfo KeywordInfo { - get { return keywordInfo_; } - set { - keywordInfo_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClickView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClickView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Gclid != other.Gclid) return false; - if (!object.Equals(AreaOfInterest, other.AreaOfInterest)) return false; - if (!object.Equals(LocationOfPresence, other.LocationOfPresence)) return false; - if (PageNumber != other.PageNumber) return false; - if (AdGroupAd != other.AdGroupAd) return false; - if (CampaignLocationTarget != other.CampaignLocationTarget) return false; - if (UserList != other.UserList) return false; - if (Keyword != other.Keyword) return false; - if (!object.Equals(KeywordInfo, other.KeywordInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasGclid) hash ^= Gclid.GetHashCode(); - if (areaOfInterest_ != null) hash ^= AreaOfInterest.GetHashCode(); - if (locationOfPresence_ != null) hash ^= LocationOfPresence.GetHashCode(); - if (HasPageNumber) hash ^= PageNumber.GetHashCode(); - if (HasAdGroupAd) hash ^= AdGroupAd.GetHashCode(); - if (HasCampaignLocationTarget) hash ^= CampaignLocationTarget.GetHashCode(); - if (HasUserList) hash ^= UserList.GetHashCode(); - if (Keyword.Length != 0) hash ^= Keyword.GetHashCode(); - if (keywordInfo_ != null) hash ^= KeywordInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (areaOfInterest_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AreaOfInterest); - } - if (locationOfPresence_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LocationOfPresence); - } - if (HasGclid) { - output.WriteRawTag(66); - output.WriteString(Gclid); - } - if (HasPageNumber) { - output.WriteRawTag(72); - output.WriteInt64(PageNumber); - } - if (HasAdGroupAd) { - output.WriteRawTag(82); - output.WriteString(AdGroupAd); - } - if (HasCampaignLocationTarget) { - output.WriteRawTag(90); - output.WriteString(CampaignLocationTarget); - } - if (HasUserList) { - output.WriteRawTag(98); - output.WriteString(UserList); - } - if (Keyword.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Keyword); - } - if (keywordInfo_ != null) { - output.WriteRawTag(114); - output.WriteMessage(KeywordInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (areaOfInterest_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AreaOfInterest); - } - if (locationOfPresence_ != null) { - output.WriteRawTag(34); - output.WriteMessage(LocationOfPresence); - } - if (HasGclid) { - output.WriteRawTag(66); - output.WriteString(Gclid); - } - if (HasPageNumber) { - output.WriteRawTag(72); - output.WriteInt64(PageNumber); - } - if (HasAdGroupAd) { - output.WriteRawTag(82); - output.WriteString(AdGroupAd); - } - if (HasCampaignLocationTarget) { - output.WriteRawTag(90); - output.WriteString(CampaignLocationTarget); - } - if (HasUserList) { - output.WriteRawTag(98); - output.WriteString(UserList); - } - if (Keyword.Length != 0) { - output.WriteRawTag(106); - output.WriteString(Keyword); - } - if (keywordInfo_ != null) { - output.WriteRawTag(114); - output.WriteMessage(KeywordInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasGclid) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Gclid); - } - if (areaOfInterest_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AreaOfInterest); - } - if (locationOfPresence_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocationOfPresence); - } - if (HasPageNumber) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PageNumber); - } - if (HasAdGroupAd) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroupAd); - } - if (HasCampaignLocationTarget) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignLocationTarget); - } - if (HasUserList) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserList); - } - if (Keyword.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Keyword); - } - if (keywordInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClickView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasGclid) { - Gclid = other.Gclid; - } - if (other.areaOfInterest_ != null) { - if (areaOfInterest_ == null) { - AreaOfInterest = new global::Google.Ads.GoogleAds.V12.Common.ClickLocation(); - } - AreaOfInterest.MergeFrom(other.AreaOfInterest); - } - if (other.locationOfPresence_ != null) { - if (locationOfPresence_ == null) { - LocationOfPresence = new global::Google.Ads.GoogleAds.V12.Common.ClickLocation(); - } - LocationOfPresence.MergeFrom(other.LocationOfPresence); - } - if (other.HasPageNumber) { - PageNumber = other.PageNumber; - } - if (other.HasAdGroupAd) { - AdGroupAd = other.AdGroupAd; - } - if (other.HasCampaignLocationTarget) { - CampaignLocationTarget = other.CampaignLocationTarget; - } - if (other.HasUserList) { - UserList = other.UserList; - } - if (other.Keyword.Length != 0) { - Keyword = other.Keyword; - } - if (other.keywordInfo_ != null) { - if (keywordInfo_ == null) { - KeywordInfo = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - KeywordInfo.MergeFrom(other.KeywordInfo); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: { - if (areaOfInterest_ == null) { - AreaOfInterest = new global::Google.Ads.GoogleAds.V12.Common.ClickLocation(); - } - input.ReadMessage(AreaOfInterest); - break; - } - case 34: { - if (locationOfPresence_ == null) { - LocationOfPresence = new global::Google.Ads.GoogleAds.V12.Common.ClickLocation(); - } - input.ReadMessage(LocationOfPresence); - break; - } - case 66: { - Gclid = input.ReadString(); - break; - } - case 72: { - PageNumber = input.ReadInt64(); - break; - } - case 82: { - AdGroupAd = input.ReadString(); - break; - } - case 90: { - CampaignLocationTarget = input.ReadString(); - break; - } - case 98: { - UserList = input.ReadString(); - break; - } - case 106: { - Keyword = input.ReadString(); - break; - } - case 114: { - if (keywordInfo_ == null) { - KeywordInfo = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - input.ReadMessage(KeywordInfo); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: { - if (areaOfInterest_ == null) { - AreaOfInterest = new global::Google.Ads.GoogleAds.V12.Common.ClickLocation(); - } - input.ReadMessage(AreaOfInterest); - break; - } - case 34: { - if (locationOfPresence_ == null) { - LocationOfPresence = new global::Google.Ads.GoogleAds.V12.Common.ClickLocation(); - } - input.ReadMessage(LocationOfPresence); - break; - } - case 66: { - Gclid = input.ReadString(); - break; - } - case 72: { - PageNumber = input.ReadInt64(); - break; - } - case 82: { - AdGroupAd = input.ReadString(); - break; - } - case 90: { - CampaignLocationTarget = input.ReadString(); - break; - } - case 98: { - UserList = input.ReadString(); - break; - } - case 106: { - Keyword = input.ReadString(); - break; - } - case 114: { - if (keywordInfo_ == null) { - KeywordInfo = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - input.ReadMessage(KeywordInfo); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ClickViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ClickViewResourceNames.g.cs deleted file mode 100755 index 83fca1865..000000000 --- a/Google.Ads.GoogleAds/src/V12/ClickViewResourceNames.g.cs +++ /dev/null @@ -1,324 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ClickView resource. - public sealed partial class ClickViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/clickViews/{date}~{gclid}. - /// - CustomerDateGclid = 1, - } - - private static gax::PathTemplate s_customerDateGclid = new gax::PathTemplate("customers/{customer_id}/clickViews/{date_gclid}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ClickViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ClickViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/clickViews/{date}~{gclid} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Date ID. Must not be null or empty. - /// The Gclid ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static ClickViewName FromCustomerDateGclid(string customerId, string dateId, string gclidId) => - new ClickViewName(ResourceNameType.CustomerDateGclid, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), dateId: gax::GaxPreconditions.CheckNotNullOrEmpty(dateId, nameof(dateId)), gclidId: gax::GaxPreconditions.CheckNotNullOrEmpty(gclidId, nameof(gclidId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/clickViews/{date}~{gclid}. - /// - /// The Customer ID. Must not be null or empty. - /// The Date ID. Must not be null or empty. - /// The Gclid ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/clickViews/{date}~{gclid}. - /// - public static string Format(string customerId, string dateId, string gclidId) => - FormatCustomerDateGclid(customerId, dateId, gclidId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/clickViews/{date}~{gclid}. - /// - /// The Customer ID. Must not be null or empty. - /// The Date ID. Must not be null or empty. - /// The Gclid ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/clickViews/{date}~{gclid}. - /// - public static string FormatCustomerDateGclid(string customerId, string dateId, string gclidId) => - s_customerDateGclid.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(dateId, nameof(dateId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(gclidId, nameof(gclidId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/clickViews/{date}~{gclid} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ClickViewName Parse(string clickViewName) => Parse(clickViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/clickViews/{date}~{gclid} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ClickViewName Parse(string clickViewName, bool allowUnparsed) => - TryParse(clickViewName, allowUnparsed, out ClickViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/clickViews/{date}~{gclid} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string clickViewName, out ClickViewName result) => TryParse(clickViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/clickViews/{date}~{gclid} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string clickViewName, bool allowUnparsed, out ClickViewName result) - { - gax::GaxPreconditions.CheckNotNull(clickViewName, nameof(clickViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerDateGclid.TryParseName(clickViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerDateGclid(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(clickViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private ClickViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string dateId = null, string gclidId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - DateId = dateId; - GclidId = gclidId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/clickViews/{date}~{gclid} - /// - /// The Customer ID. Must not be null or empty. - /// The Date ID. Must not be null or empty. - /// The Gclid ID. Must not be null or empty. - public ClickViewName(string customerId, string dateId, string gclidId) : this(ResourceNameType.CustomerDateGclid, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), dateId: gax::GaxPreconditions.CheckNotNullOrEmpty(dateId, nameof(dateId)), gclidId: gax::GaxPreconditions.CheckNotNullOrEmpty(gclidId, nameof(gclidId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Date ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string DateId { get; } - - /// - /// The Gclid ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string GclidId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerDateGclid: return s_customerDateGclid.Expand(CustomerId, $"{DateId}~{GclidId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ClickViewName); - - /// - public bool Equals(ClickViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ClickViewName a, ClickViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ClickViewName a, ClickViewName b) => !(a == b); - } - - public partial class ClickView - { - /// - /// -typed view over the resource name property. - /// - internal ClickViewName ResourceNameAsClickViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ClickViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupAdName AdGroupAdAsAdGroupAdName - { - get => string.IsNullOrEmpty(AdGroupAd) ? null : AdGroupAdName.Parse(AdGroupAd, allowUnparsed: true); - set => AdGroupAd = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal GeoTargetConstantName CampaignLocationTargetAsGeoTargetConstantName - { - get => string.IsNullOrEmpty(CampaignLocationTarget) ? null : GeoTargetConstantName.Parse(CampaignLocationTarget, allowUnparsed: true); - set => CampaignLocationTarget = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal UserListName UserListAsUserListName - { - get => string.IsNullOrEmpty(UserList) ? null : UserListName.Parse(UserList, allowUnparsed: true); - set => UserList = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupCriterionName KeywordAsAdGroupCriterionName - { - get => string.IsNullOrEmpty(Keyword) ? null : AdGroupCriterionName.Parse(Keyword, allowUnparsed: true); - set => Keyword = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CollectionSizeError.g.cs b/Google.Ads.GoogleAds/src/V12/CollectionSizeError.g.cs deleted file mode 100755 index 5b87de1ff..000000000 --- a/Google.Ads.GoogleAds/src/V12/CollectionSizeError.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/collection_size_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/collection_size_error.proto - public static partial class CollectionSizeErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/collection_size_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CollectionSizeErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbGxlY3Rpb25f", - "c2l6ZV9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVy", - "cm9ycyJpChdDb2xsZWN0aW9uU2l6ZUVycm9yRW51bSJOChNDb2xsZWN0aW9u", - "U2l6ZUVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsKB1RP", - "T19GRVcQAhIMCghUT09fTUFOWRADQvgBCiNjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVycm9yc0IYQ29sbGVjdGlvblNpemVFcnJvclByb3RvUAFa", - "RWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJv", - "cnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorEnum.Types.CollectionSizeError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible collection size errors. - /// - public sealed partial class CollectionSizeErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CollectionSizeErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CollectionSizeErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CollectionSizeErrorEnum(CollectionSizeErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CollectionSizeErrorEnum Clone() { - return new CollectionSizeErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CollectionSizeErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CollectionSizeErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CollectionSizeErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CollectionSizeErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible collection size errors. - /// - public enum CollectionSizeError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Too few. - /// - [pbr::OriginalName("TOO_FEW")] TooFew = 2, - /// - /// Too many. - /// - [pbr::OriginalName("TOO_MANY")] TooMany = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CombinedAudience.g.cs b/Google.Ads.GoogleAds/src/V12/CombinedAudience.g.cs deleted file mode 100755 index 2794104fe..000000000 --- a/Google.Ads.GoogleAds/src/V12/CombinedAudience.g.cs +++ /dev/null @@ -1,422 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/combined_audience.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/combined_audience.proto - public static partial class CombinedAudienceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/combined_audience.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CombinedAudienceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NvbWJpbmVk", - "X2F1ZGllbmNlLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29tYmlu", - "ZWRfYXVkaWVuY2Vfc3RhdHVzLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2Jl", - "aGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIvQCChBD", - "b21iaW5lZEF1ZGllbmNlEkgKDXJlc291cmNlX25hbWUYASABKAlCMeBBBfpB", - "KwopZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NvbWJpbmVkQXVkaWVuY2US", - "DwoCaWQYAiABKANCA+BBAxJmCgZzdGF0dXMYAyABKA4yUS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQ29tYmluZWRBdWRpZW5jZVN0YXR1c0Vu", - "dW0uQ29tYmluZWRBdWRpZW5jZVN0YXR1c0ID4EEDEhEKBG5hbWUYBCABKAlC", - "A+BBAxIYCgtkZXNjcmlwdGlvbhgFIAEoCUID4EEDOnDqQW0KKWdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9Db21iaW5lZEF1ZGllbmNlEkBjdXN0b21lcnMv", - "e2N1c3RvbWVyX2lkfS9jb21iaW5lZEF1ZGllbmNlcy97Y29tYmluZWRfYXVk", - "aWVuY2VfaWR9QocCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlc0IVQ29tYmluZWRBdWRpZW5jZVByb3RvUAFaS2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "UmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNv", - "dXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CombinedAudience), global::Google.Ads.GoogleAds.V12.Resources.CombinedAudience.Parser, new[]{ "ResourceName", "Id", "Status", "Name", "Description" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Describe a resource for combined audiences which includes different - /// audiences. - /// - public sealed partial class CombinedAudience : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CombinedAudience()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CombinedAudienceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudience() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudience(CombinedAudience other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - status_ = other.status_; - name_ = other.name_; - description_ = other.description_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudience Clone() { - return new CombinedAudience(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the combined audience. - /// Combined audience names have the form: - /// - /// `customers/{customer_id}/combinedAudience/{combined_audience_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. ID of the combined audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus.Unspecified; - /// - /// Output only. Status of this combined audience. Indicates whether the combined audience - /// is enabled or removed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Output only. Name of the combined audience. It should be unique across all combined - /// audiences. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 5; - private string description_ = ""; - /// - /// Output only. Description of this combined audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CombinedAudience); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CombinedAudience other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Status != other.Status) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CombinedAudience other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus.Unspecified) { - Status = other.Status; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus) input.ReadEnum(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus) input.ReadEnum(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 42: { - Description = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CombinedAudienceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CombinedAudienceResourceNames.g.cs deleted file mode 100755 index b374400d2..000000000 --- a/Google.Ads.GoogleAds/src/V12/CombinedAudienceResourceNames.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CombinedAudience resource. - public sealed partial class CombinedAudienceName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/combinedAudiences/{combined_audience_id}. - /// - CustomerCombinedAudience = 1, - } - - private static gax::PathTemplate s_customerCombinedAudience = new gax::PathTemplate("customers/{customer_id}/combinedAudiences/{combined_audience_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CombinedAudienceName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CombinedAudienceName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/combinedAudiences/{combined_audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CombinedAudience ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CombinedAudienceName FromCustomerCombinedAudience(string customerId, string combinedAudienceId) => - new CombinedAudienceName(ResourceNameType.CustomerCombinedAudience, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), combinedAudienceId: gax::GaxPreconditions.CheckNotNullOrEmpty(combinedAudienceId, nameof(combinedAudienceId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/combinedAudiences/{combined_audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CombinedAudience ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/combinedAudiences/{combined_audience_id}. - /// - public static string Format(string customerId, string combinedAudienceId) => - FormatCustomerCombinedAudience(customerId, combinedAudienceId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/combinedAudiences/{combined_audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CombinedAudience ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/combinedAudiences/{combined_audience_id}. - /// - public static string FormatCustomerCombinedAudience(string customerId, string combinedAudienceId) => - s_customerCombinedAudience.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(combinedAudienceId, nameof(combinedAudienceId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/combinedAudiences/{combined_audience_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CombinedAudienceName Parse(string combinedAudienceName) => Parse(combinedAudienceName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/combinedAudiences/{combined_audience_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CombinedAudienceName Parse(string combinedAudienceName, bool allowUnparsed) => - TryParse(combinedAudienceName, allowUnparsed, out CombinedAudienceName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/combinedAudiences/{combined_audience_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string combinedAudienceName, out CombinedAudienceName result) => - TryParse(combinedAudienceName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/combinedAudiences/{combined_audience_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string combinedAudienceName, bool allowUnparsed, out CombinedAudienceName result) - { - gax::GaxPreconditions.CheckNotNull(combinedAudienceName, nameof(combinedAudienceName)); - gax::TemplatedResourceName resourceName; - if (s_customerCombinedAudience.TryParseName(combinedAudienceName, out resourceName)) - { - result = FromCustomerCombinedAudience(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(combinedAudienceName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CombinedAudienceName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string combinedAudienceId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CombinedAudienceId = combinedAudienceId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/combinedAudiences/{combined_audience_id} - /// - /// The Customer ID. Must not be null or empty. - /// The CombinedAudience ID. Must not be null or empty. - public CombinedAudienceName(string customerId, string combinedAudienceId) : this(ResourceNameType.CustomerCombinedAudience, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), combinedAudienceId: gax::GaxPreconditions.CheckNotNullOrEmpty(combinedAudienceId, nameof(combinedAudienceId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CombinedAudience ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string CombinedAudienceId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCombinedAudience: return s_customerCombinedAudience.Expand(CustomerId, CombinedAudienceId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CombinedAudienceName); - - /// - public bool Equals(CombinedAudienceName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CombinedAudienceName a, CombinedAudienceName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CombinedAudienceName a, CombinedAudienceName b) => !(a == b); - } - - public partial class CombinedAudience - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CombinedAudienceName ResourceNameAsCombinedAudienceName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CombinedAudienceName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CombinedAudienceName CombinedAudienceName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CombinedAudienceName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CombinedAudienceStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CombinedAudienceStatus.g.cs deleted file mode 100755 index 0b6580681..000000000 --- a/Google.Ads.GoogleAds/src/V12/CombinedAudienceStatus.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/combined_audience_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/combined_audience_status.proto - public static partial class CombinedAudienceStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/combined_audience_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CombinedAudienceStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29tYmluZWRfYXVk", - "aWVuY2Vfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMibgoaQ29tYmluZWRBdWRpZW5jZVN0YXR1c0VudW0iUAoWQ29tYmlu", - "ZWRBdWRpZW5jZVN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q", - "ARILCgdFTkFCTEVEEAISCwoHUkVNT1ZFRBADQvUBCiJjb20uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zQhtDb21iaW5lZEF1ZGllbmNlU3RhdHVz", - "UHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusEnum.Types.CombinedAudienceStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The status of combined audience. - /// - public sealed partial class CombinedAudienceStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CombinedAudienceStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CombinedAudienceStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudienceStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudienceStatusEnum(CombinedAudienceStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudienceStatusEnum Clone() { - return new CombinedAudienceStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CombinedAudienceStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CombinedAudienceStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CombinedAudienceStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CombinedAudienceStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible combined audience status types. - /// - public enum CombinedAudienceStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Enabled status - combined audience is enabled and can be targeted. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Removed status - combined audience is removed and cannot be used for - /// targeting. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ContentLabelType.g.cs b/Google.Ads.GoogleAds/src/V12/ContentLabelType.g.cs deleted file mode 100755 index a68a196f1..000000000 --- a/Google.Ads.GoogleAds/src/V12/ContentLabelType.g.cs +++ /dev/null @@ -1,294 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/content_label_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/content_label_type.proto - public static partial class ContentLabelTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/content_label_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ContentLabelTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udGVudF9sYWJl", - "bF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi", - "9gIKFENvbnRlbnRMYWJlbFR5cGVFbnVtIt0CChBDb250ZW50TGFiZWxUeXBl", - "Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhcKE1NFWFVBTExZX1NV", - "R0dFU1RJVkUQAhISCg5CRUxPV19USEVfRk9MRBADEhEKDVBBUktFRF9ET01B", - "SU4QBBIMCghKVVZFTklMRRAGEg0KCVBST0ZBTklUWRAHEgsKB1RSQUdFRFkQ", - "CBIJCgVWSURFTxAJEhUKEVZJREVPX1JBVElOR19EVl9HEAoSFgoSVklERU9f", - "UkFUSU5HX0RWX1BHEAsSFQoRVklERU9fUkFUSU5HX0RWX1QQDBIWChJWSURF", - "T19SQVRJTkdfRFZfTUEQDRIXChNWSURFT19OT1RfWUVUX1JBVEVEEA4SEgoO", - "RU1CRURERURfVklERU8QDxIYChRMSVZFX1NUUkVBTUlOR19WSURFTxAQEhEK", - "DVNPQ0lBTF9JU1NVRVMQEULvAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtc0IVQ29udGVudExhYmVsVHlwZVByb3RvUAFaQ2dvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing content label types in ContentLabel. - /// - public sealed partial class ContentLabelTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContentLabelTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContentLabelTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContentLabelTypeEnum(ContentLabelTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContentLabelTypeEnum Clone() { - return new ContentLabelTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ContentLabelTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ContentLabelTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ContentLabelTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ContentLabelTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum listing the content label types supported by ContentLabel criterion. - /// - public enum ContentLabelType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Sexually suggestive content. - /// - [pbr::OriginalName("SEXUALLY_SUGGESTIVE")] SexuallySuggestive = 2, - /// - /// Below the fold placement. - /// - [pbr::OriginalName("BELOW_THE_FOLD")] BelowTheFold = 3, - /// - /// Parked domain. - /// - [pbr::OriginalName("PARKED_DOMAIN")] ParkedDomain = 4, - /// - /// Juvenile, gross & bizarre content. - /// - [pbr::OriginalName("JUVENILE")] Juvenile = 6, - /// - /// Profanity & rough language. - /// - [pbr::OriginalName("PROFANITY")] Profanity = 7, - /// - /// Death & tragedy. - /// - [pbr::OriginalName("TRAGEDY")] Tragedy = 8, - /// - /// Video. - /// - [pbr::OriginalName("VIDEO")] Video = 9, - /// - /// Content rating: G. - /// - [pbr::OriginalName("VIDEO_RATING_DV_G")] VideoRatingDvG = 10, - /// - /// Content rating: PG. - /// - [pbr::OriginalName("VIDEO_RATING_DV_PG")] VideoRatingDvPg = 11, - /// - /// Content rating: T. - /// - [pbr::OriginalName("VIDEO_RATING_DV_T")] VideoRatingDvT = 12, - /// - /// Content rating: MA. - /// - [pbr::OriginalName("VIDEO_RATING_DV_MA")] VideoRatingDvMa = 13, - /// - /// Content rating: not yet rated. - /// - [pbr::OriginalName("VIDEO_NOT_YET_RATED")] VideoNotYetRated = 14, - /// - /// Embedded video. - /// - [pbr::OriginalName("EMBEDDED_VIDEO")] EmbeddedVideo = 15, - /// - /// Live streaming video. - /// - [pbr::OriginalName("LIVE_STREAMING_VIDEO")] LiveStreamingVideo = 16, - /// - /// Sensitive social issues. - /// - [pbr::OriginalName("SOCIAL_ISSUES")] SocialIssues = 17, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ContextError.g.cs b/Google.Ads.GoogleAds/src/V12/ContextError.g.cs deleted file mode 100755 index 219d037e1..000000000 --- a/Google.Ads.GoogleAds/src/V12/ContextError.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/context_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/context_error.proto - public static partial class ContextErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/context_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ContextErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnRleHRfZXJy", - "b3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMinAEK", - "EENvbnRleHRFcnJvckVudW0ihwEKDENvbnRleHRFcnJvchIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARInCiNPUEVSQVRJT05fTk9UX1BFUk1JVFRF", - "RF9GT1JfQ09OVEVYVBACEjAKLE9QRVJBVElPTl9OT1RfUEVSTUlUVEVEX0ZP", - "Ul9SRU1PVkVEX1JFU09VUkNFEANC8QEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzQhFDb250ZXh0RXJyb3JQcm90b1ABWkVnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9y", - "c+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ContextErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ContextErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ContextErrorEnum.Types.ContextError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible context errors. - /// - public sealed partial class ContextErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContextErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ContextErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContextErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContextErrorEnum(ContextErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContextErrorEnum Clone() { - return new ContextErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ContextErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ContextErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ContextErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ContextErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible context errors. - /// - public enum ContextError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The operation is not allowed for the given context. - /// - [pbr::OriginalName("OPERATION_NOT_PERMITTED_FOR_CONTEXT")] OperationNotPermittedForContext = 2, - /// - /// The operation is not allowed for removed resources. - /// - [pbr::OriginalName("OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE")] OperationNotPermittedForRemovedResource = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionAction.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionAction.g.cs deleted file mode 100755 index d422aaf85..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionAction.g.cs +++ /dev/null @@ -1,2435 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/conversion_action.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/conversion_action.proto - public static partial class ConversionActionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/conversion_action.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionActionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NvbnZlcnNp", - "b25fYWN0aW9uLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL3RhZ19z", - "bmlwcGV0LnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "YXR0cmlidXRpb25fbW9kZWwucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcy9jb252ZXJzaW9uX2FjdGlvbl9jYXRlZ29yeS5wcm90bxpE", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2NvbnZlcnNpb25fYWN0", - "aW9uX2NvdW50aW5nX3R5cGUucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcy9jb252ZXJzaW9uX2FjdGlvbl9zdGF0dXMucHJvdG8aO2dv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jb252ZXJzaW9uX2FjdGlv", - "bl90eXBlLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "Y29udmVyc2lvbl9vcmlnaW4ucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcy9kYXRhX2RyaXZlbl9tb2RlbF9zdGF0dXMucHJvdG8aNmdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9tb2JpbGVfYXBwX3ZlbmRv", - "ci5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29v", - "Z2xlL2FwaS9yZXNvdXJjZS5wcm90byKvFAoQQ29udmVyc2lvbkFjdGlvbhJI", - "Cg1yZXNvdXJjZV9uYW1lGAEgASgJQjHgQQX6QSsKKWdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9Db252ZXJzaW9uQWN0aW9uEhQKAmlkGBUgASgDQgPgQQNI", - "AIgBARIRCgRuYW1lGBYgASgJSAGIAQESYQoGc3RhdHVzGAQgASgOMlEuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkNvbnZlcnNpb25BY3Rpb25T", - "dGF0dXNFbnVtLkNvbnZlcnNpb25BY3Rpb25TdGF0dXMSYAoEdHlwZRgFIAEo", - "DjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Db252ZXJzaW9u", - "QWN0aW9uVHlwZUVudW0uQ29udmVyc2lvbkFjdGlvblR5cGVCA+BBBRJaCgZv", - "cmlnaW4YHiABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "Q29udmVyc2lvbk9yaWdpbkVudW0uQ29udmVyc2lvbk9yaWdpbkID4EEDEh0K", - "EHByaW1hcnlfZm9yX2dvYWwYHyABKAhIAogBARJnCghjYXRlZ29yeRgGIAEo", - "DjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Db252ZXJzaW9u", - "QWN0aW9uQ2F0ZWdvcnlFbnVtLkNvbnZlcnNpb25BY3Rpb25DYXRlZ29yeRJG", - "Cg5vd25lcl9jdXN0b21lchgXIAEoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ3VzdG9tZXJIA4gBARIqCh1pbmNsdWRlX2luX2NvbnZl", - "cnNpb25zX21ldHJpYxgYIAEoCEgEiAEBEi8KImNsaWNrX3Rocm91Z2hfbG9v", - "a2JhY2tfd2luZG93X2RheXMYGSABKANIBYgBARIuCiF2aWV3X3Rocm91Z2hf", - "bG9va2JhY2tfd2luZG93X2RheXMYGiABKANIBogBARJaCg52YWx1ZV9zZXR0", - "aW5ncxgLIAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQ29udmVyc2lvbkFjdGlvbi5WYWx1ZVNldHRpbmdzEnQKDWNvdW50aW5n", - "X3R5cGUYDCABKA4yXS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "Q29udmVyc2lvbkFjdGlvbkNvdW50aW5nVHlwZUVudW0uQ29udmVyc2lvbkFj", - "dGlvbkNvdW50aW5nVHlwZRJxChphdHRyaWJ1dGlvbl9tb2RlbF9zZXR0aW5n", - "cxgNIAEoCzJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "Q29udmVyc2lvbkFjdGlvbi5BdHRyaWJ1dGlvbk1vZGVsU2V0dGluZ3MSRgoM", - "dGFnX3NuaXBwZXRzGA4gAygLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5UYWdTbmlwcGV0QgPgQQMSKAobcGhvbmVfY2FsbF9kdXJhdGlv", - "bl9zZWNvbmRzGBsgASgDSAeIAQESEwoGYXBwX2lkGBwgASgJSAiIAQESYwoR", - "bW9iaWxlX2FwcF92ZW5kb3IYESABKA4yQy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuTW9iaWxlQXBwVmVuZG9yRW51bS5Nb2JpbGVBcHBWZW5k", - "b3JCA+BBAxJlChFmaXJlYmFzZV9zZXR0aW5ncxgSIAEoCzJFLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ29udmVyc2lvbkFjdGlvbi5G", - "aXJlYmFzZVNldHRpbmdzQgPgQQMShAEKInRoaXJkX3BhcnR5X2FwcF9hbmFs", - "eXRpY3Nfc2V0dGluZ3MYEyABKAsyUy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkNvbnZlcnNpb25BY3Rpb24uVGhpcmRQYXJ0eUFwcEFu", - "YWx5dGljc1NldHRpbmdzQgPgQQMa9AEKGEF0dHJpYnV0aW9uTW9kZWxTZXR0", - "aW5ncxJgChFhdHRyaWJ1dGlvbl9tb2RlbBgBIAEoDjJFLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lbnVtcy5BdHRyaWJ1dGlvbk1vZGVsRW51bS5BdHRy", - "aWJ1dGlvbk1vZGVsEnYKGGRhdGFfZHJpdmVuX21vZGVsX3N0YXR1cxgCIAEo", - "DjJPLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5EYXRhRHJpdmVu", - "TW9kZWxTdGF0dXNFbnVtLkRhdGFEcml2ZW5Nb2RlbFN0YXR1c0ID4EEDGr8B", - "Cg1WYWx1ZVNldHRpbmdzEhoKDWRlZmF1bHRfdmFsdWUYBCABKAFIAIgBARIi", - "ChVkZWZhdWx0X2N1cnJlbmN5X2NvZGUYBSABKAlIAYgBARIlChhhbHdheXNf", - "dXNlX2RlZmF1bHRfdmFsdWUYBiABKAhIAogBAUIQCg5fZGVmYXVsdF92YWx1", - "ZUIYChZfZGVmYXVsdF9jdXJyZW5jeV9jb2RlQhsKGV9hbHdheXNfdXNlX2Rl", - "ZmF1bHRfdmFsdWUaaQoeVGhpcmRQYXJ0eUFwcEFuYWx5dGljc1NldHRpbmdz", - "EhwKCmV2ZW50X25hbWUYAiABKAlCA+BBA0gAiAEBEhoKDXByb3ZpZGVyX25h", - "bWUYAyABKAlCA+BBA0INCgtfZXZlbnRfbmFtZRqiAQoQRmlyZWJhc2VTZXR0", - "aW5ncxIcCgpldmVudF9uYW1lGAMgASgJQgPgQQNIAIgBARIcCgpwcm9qZWN0", - "X2lkGAQgASgJQgPgQQNIAYgBARIYCgtwcm9wZXJ0eV9pZBgFIAEoA0ID4EED", - "EhoKDXByb3BlcnR5X25hbWUYBiABKAlCA+BBA0INCgtfZXZlbnRfbmFtZUIN", - "CgtfcHJvamVjdF9pZDpw6kFtCilnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q29udmVyc2lvbkFjdGlvbhJAY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY29u", - "dmVyc2lvbkFjdGlvbnMve2NvbnZlcnNpb25fYWN0aW9uX2lkfUIFCgNfaWRC", - "BwoFX25hbWVCEwoRX3ByaW1hcnlfZm9yX2dvYWxCEQoPX293bmVyX2N1c3Rv", - "bWVyQiAKHl9pbmNsdWRlX2luX2NvbnZlcnNpb25zX21ldHJpY0IlCiNfY2xp", - "Y2tfdGhyb3VnaF9sb29rYmFja193aW5kb3dfZGF5c0IkCiJfdmlld190aHJv", - "dWdoX2xvb2tiYWNrX3dpbmRvd19kYXlzQh4KHF9waG9uZV9jYWxsX2R1cmF0", - "aW9uX3NlY29uZHNCCQoHX2FwcF9pZEKHAgomY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXNCFUNvbnZlcnNpb25BY3Rpb25Qcm90b1AB", - "Wktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVB", - "ZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.TagSnippetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AttributionModelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionAction), global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Parser, new[]{ "ResourceName", "Id", "Name", "Status", "Type", "Origin", "PrimaryForGoal", "Category", "OwnerCustomer", "IncludeInConversionsMetric", "ClickThroughLookbackWindowDays", "ViewThroughLookbackWindowDays", "ValueSettings", "CountingType", "AttributionModelSettings", "TagSnippets", "PhoneCallDurationSeconds", "AppId", "MobileAppVendor", "FirebaseSettings", "ThirdPartyAppAnalyticsSettings" }, new[]{ "Id", "Name", "PrimaryForGoal", "OwnerCustomer", "IncludeInConversionsMetric", "ClickThroughLookbackWindowDays", "ViewThroughLookbackWindowDays", "PhoneCallDurationSeconds", "AppId" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.AttributionModelSettings), global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.AttributionModelSettings.Parser, new[]{ "AttributionModel", "DataDrivenModelStatus" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ValueSettings), global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ValueSettings.Parser, new[]{ "DefaultValue", "DefaultCurrencyCode", "AlwaysUseDefaultValue" }, new[]{ "DefaultValue", "DefaultCurrencyCode", "AlwaysUseDefaultValue" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ThirdPartyAppAnalyticsSettings), global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ThirdPartyAppAnalyticsSettings.Parser, new[]{ "EventName", "ProviderName" }, new[]{ "EventName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.FirebaseSettings), global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.FirebaseSettings.Parser, new[]{ "EventName", "ProjectId", "PropertyId", "PropertyName" }, new[]{ "EventName", "ProjectId" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// A conversion action. - /// - public sealed partial class ConversionAction : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionAction()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionActionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAction() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAction(ConversionAction other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - status_ = other.status_; - type_ = other.type_; - origin_ = other.origin_; - primaryForGoal_ = other.primaryForGoal_; - category_ = other.category_; - ownerCustomer_ = other.ownerCustomer_; - includeInConversionsMetric_ = other.includeInConversionsMetric_; - clickThroughLookbackWindowDays_ = other.clickThroughLookbackWindowDays_; - viewThroughLookbackWindowDays_ = other.viewThroughLookbackWindowDays_; - valueSettings_ = other.valueSettings_ != null ? other.valueSettings_.Clone() : null; - countingType_ = other.countingType_; - attributionModelSettings_ = other.attributionModelSettings_ != null ? other.attributionModelSettings_.Clone() : null; - tagSnippets_ = other.tagSnippets_.Clone(); - phoneCallDurationSeconds_ = other.phoneCallDurationSeconds_; - appId_ = other.appId_; - mobileAppVendor_ = other.mobileAppVendor_; - firebaseSettings_ = other.firebaseSettings_ != null ? other.firebaseSettings_.Clone() : null; - thirdPartyAppAnalyticsSettings_ = other.thirdPartyAppAnalyticsSettings_ != null ? other.thirdPartyAppAnalyticsSettings_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAction Clone() { - return new ConversionAction(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the conversion action. - /// Conversion action resource names have the form: - /// - /// `customers/{customer_id}/conversionActions/{conversion_action_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 21; - private long id_; - /// - /// Output only. The ID of the conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 22; - private string name_; - /// - /// The name of the conversion action. - /// - /// This field is required and should not be empty when creating new - /// conversion actions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus.Unspecified; - /// - /// The status of this conversion action for conversion event accrual. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType type_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType.Unspecified; - /// - /// Immutable. The type of this conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "origin" field. - public const int OriginFieldNumber = 30; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin origin_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified; - /// - /// Output only. The conversion origin of this conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin Origin { - get { return origin_; } - set { - origin_ = value; - } - } - - /// Field number for the "primary_for_goal" field. - public const int PrimaryForGoalFieldNumber = 31; - private bool primaryForGoal_; - /// - /// If a conversion action's primary_for_goal bit is false, the conversion - /// action is non-biddable for all campaigns regardless of their customer - /// conversion goal or campaign conversion goal. - /// However, custom conversion goals do not respect primary_for_goal, so if - /// a campaign has a custom conversion goal configured with a - /// primary_for_goal = false conversion action, that conversion action is - /// still biddable. - /// By default, primary_for_goal will be true if not set. In V9, - /// primary_for_goal can only be set to false after creation through an - /// 'update' operation because it's not declared as optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PrimaryForGoal { - get { if ((_hasBits0 & 32) != 0) { return primaryForGoal_; } else { return false; } } - set { - _hasBits0 |= 32; - primaryForGoal_ = value; - } - } - /// Gets whether the "primary_for_goal" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPrimaryForGoal { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "primary_for_goal" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPrimaryForGoal() { - _hasBits0 &= ~32; - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory category_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified; - /// - /// The category of conversions reported for this conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory Category { - get { return category_; } - set { - category_ = value; - } - } - - /// Field number for the "owner_customer" field. - public const int OwnerCustomerFieldNumber = 23; - private string ownerCustomer_; - /// - /// Output only. The resource name of the conversion action owner customer, or null if this - /// is a system-defined conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OwnerCustomer { - get { return ownerCustomer_ ?? ""; } - set { - ownerCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "owner_customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOwnerCustomer { - get { return ownerCustomer_ != null; } - } - /// Clears the value of the "owner_customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOwnerCustomer() { - ownerCustomer_ = null; - } - - /// Field number for the "include_in_conversions_metric" field. - public const int IncludeInConversionsMetricFieldNumber = 24; - private bool includeInConversionsMetric_; - /// - /// Whether this conversion action should be included in the "conversions" - /// metric. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeInConversionsMetric { - get { if ((_hasBits0 & 2) != 0) { return includeInConversionsMetric_; } else { return false; } } - set { - _hasBits0 |= 2; - includeInConversionsMetric_ = value; - } - } - /// Gets whether the "include_in_conversions_metric" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIncludeInConversionsMetric { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "include_in_conversions_metric" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIncludeInConversionsMetric() { - _hasBits0 &= ~2; - } - - /// Field number for the "click_through_lookback_window_days" field. - public const int ClickThroughLookbackWindowDaysFieldNumber = 25; - private long clickThroughLookbackWindowDays_; - /// - /// The maximum number of days that may elapse between an interaction - /// (for example, a click) and a conversion event. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ClickThroughLookbackWindowDays { - get { if ((_hasBits0 & 4) != 0) { return clickThroughLookbackWindowDays_; } else { return 0L; } } - set { - _hasBits0 |= 4; - clickThroughLookbackWindowDays_ = value; - } - } - /// Gets whether the "click_through_lookback_window_days" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClickThroughLookbackWindowDays { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "click_through_lookback_window_days" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClickThroughLookbackWindowDays() { - _hasBits0 &= ~4; - } - - /// Field number for the "view_through_lookback_window_days" field. - public const int ViewThroughLookbackWindowDaysFieldNumber = 26; - private long viewThroughLookbackWindowDays_; - /// - /// The maximum number of days which may elapse between an impression and a - /// conversion without an interaction. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ViewThroughLookbackWindowDays { - get { if ((_hasBits0 & 8) != 0) { return viewThroughLookbackWindowDays_; } else { return 0L; } } - set { - _hasBits0 |= 8; - viewThroughLookbackWindowDays_ = value; - } - } - /// Gets whether the "view_through_lookback_window_days" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasViewThroughLookbackWindowDays { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "view_through_lookback_window_days" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearViewThroughLookbackWindowDays() { - _hasBits0 &= ~8; - } - - /// Field number for the "value_settings" field. - public const int ValueSettingsFieldNumber = 11; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ValueSettings valueSettings_; - /// - /// Settings related to the value for conversion events associated with this - /// conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ValueSettings ValueSettings { - get { return valueSettings_; } - set { - valueSettings_ = value; - } - } - - /// Field number for the "counting_type" field. - public const int CountingTypeFieldNumber = 12; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType countingType_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType.Unspecified; - /// - /// How to count conversion events for the conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType CountingType { - get { return countingType_; } - set { - countingType_ = value; - } - } - - /// Field number for the "attribution_model_settings" field. - public const int AttributionModelSettingsFieldNumber = 13; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.AttributionModelSettings attributionModelSettings_; - /// - /// Settings related to this conversion action's attribution model. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.AttributionModelSettings AttributionModelSettings { - get { return attributionModelSettings_; } - set { - attributionModelSettings_ = value; - } - } - - /// Field number for the "tag_snippets" field. - public const int TagSnippetsFieldNumber = 14; - private static readonly pb::FieldCodec _repeated_tagSnippets_codec - = pb::FieldCodec.ForMessage(114, global::Google.Ads.GoogleAds.V12.Common.TagSnippet.Parser); - private readonly pbc::RepeatedField tagSnippets_ = new pbc::RepeatedField(); - /// - /// Output only. The snippets used for tracking conversions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TagSnippets { - get { return tagSnippets_; } - } - - /// Field number for the "phone_call_duration_seconds" field. - public const int PhoneCallDurationSecondsFieldNumber = 27; - private long phoneCallDurationSeconds_; - /// - /// The phone call duration in seconds after which a conversion should be - /// reported for this conversion action. - /// - /// The value must be between 0 and 10000, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PhoneCallDurationSeconds { - get { if ((_hasBits0 & 16) != 0) { return phoneCallDurationSeconds_; } else { return 0L; } } - set { - _hasBits0 |= 16; - phoneCallDurationSeconds_ = value; - } - } - /// Gets whether the "phone_call_duration_seconds" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPhoneCallDurationSeconds { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "phone_call_duration_seconds" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPhoneCallDurationSeconds() { - _hasBits0 &= ~16; - } - - /// Field number for the "app_id" field. - public const int AppIdFieldNumber = 28; - private string appId_; - /// - /// App ID for an app conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppId { - get { return appId_ ?? ""; } - set { - appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "app_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppId { - get { return appId_ != null; } - } - /// Clears the value of the "app_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppId() { - appId_ = null; - } - - /// Field number for the "mobile_app_vendor" field. - public const int MobileAppVendorFieldNumber = 17; - private global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor mobileAppVendor_ = global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified; - /// - /// Output only. Mobile app vendor for an app conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor MobileAppVendor { - get { return mobileAppVendor_; } - set { - mobileAppVendor_ = value; - } - } - - /// Field number for the "firebase_settings" field. - public const int FirebaseSettingsFieldNumber = 18; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.FirebaseSettings firebaseSettings_; - /// - /// Output only. Firebase settings for Firebase conversion types. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.FirebaseSettings FirebaseSettings { - get { return firebaseSettings_; } - set { - firebaseSettings_ = value; - } - } - - /// Field number for the "third_party_app_analytics_settings" field. - public const int ThirdPartyAppAnalyticsSettingsFieldNumber = 19; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ThirdPartyAppAnalyticsSettings thirdPartyAppAnalyticsSettings_; - /// - /// Output only. Third Party App Analytics settings for third party conversion types. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ThirdPartyAppAnalyticsSettings ThirdPartyAppAnalyticsSettings { - get { return thirdPartyAppAnalyticsSettings_; } - set { - thirdPartyAppAnalyticsSettings_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionAction); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionAction other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Status != other.Status) return false; - if (Type != other.Type) return false; - if (Origin != other.Origin) return false; - if (PrimaryForGoal != other.PrimaryForGoal) return false; - if (Category != other.Category) return false; - if (OwnerCustomer != other.OwnerCustomer) return false; - if (IncludeInConversionsMetric != other.IncludeInConversionsMetric) return false; - if (ClickThroughLookbackWindowDays != other.ClickThroughLookbackWindowDays) return false; - if (ViewThroughLookbackWindowDays != other.ViewThroughLookbackWindowDays) return false; - if (!object.Equals(ValueSettings, other.ValueSettings)) return false; - if (CountingType != other.CountingType) return false; - if (!object.Equals(AttributionModelSettings, other.AttributionModelSettings)) return false; - if(!tagSnippets_.Equals(other.tagSnippets_)) return false; - if (PhoneCallDurationSeconds != other.PhoneCallDurationSeconds) return false; - if (AppId != other.AppId) return false; - if (MobileAppVendor != other.MobileAppVendor) return false; - if (!object.Equals(FirebaseSettings, other.FirebaseSettings)) return false; - if (!object.Equals(ThirdPartyAppAnalyticsSettings, other.ThirdPartyAppAnalyticsSettings)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType.Unspecified) hash ^= Type.GetHashCode(); - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) hash ^= Origin.GetHashCode(); - if (HasPrimaryForGoal) hash ^= PrimaryForGoal.GetHashCode(); - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) hash ^= Category.GetHashCode(); - if (HasOwnerCustomer) hash ^= OwnerCustomer.GetHashCode(); - if (HasIncludeInConversionsMetric) hash ^= IncludeInConversionsMetric.GetHashCode(); - if (HasClickThroughLookbackWindowDays) hash ^= ClickThroughLookbackWindowDays.GetHashCode(); - if (HasViewThroughLookbackWindowDays) hash ^= ViewThroughLookbackWindowDays.GetHashCode(); - if (valueSettings_ != null) hash ^= ValueSettings.GetHashCode(); - if (CountingType != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType.Unspecified) hash ^= CountingType.GetHashCode(); - if (attributionModelSettings_ != null) hash ^= AttributionModelSettings.GetHashCode(); - hash ^= tagSnippets_.GetHashCode(); - if (HasPhoneCallDurationSeconds) hash ^= PhoneCallDurationSeconds.GetHashCode(); - if (HasAppId) hash ^= AppId.GetHashCode(); - if (MobileAppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) hash ^= MobileAppVendor.GetHashCode(); - if (firebaseSettings_ != null) hash ^= FirebaseSettings.GetHashCode(); - if (thirdPartyAppAnalyticsSettings_ != null) hash ^= ThirdPartyAppAnalyticsSettings.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Category); - } - if (valueSettings_ != null) { - output.WriteRawTag(90); - output.WriteMessage(ValueSettings); - } - if (CountingType != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType.Unspecified) { - output.WriteRawTag(96); - output.WriteEnum((int) CountingType); - } - if (attributionModelSettings_ != null) { - output.WriteRawTag(106); - output.WriteMessage(AttributionModelSettings); - } - tagSnippets_.WriteTo(output, _repeated_tagSnippets_codec); - if (MobileAppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) MobileAppVendor); - } - if (firebaseSettings_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(FirebaseSettings); - } - if (thirdPartyAppAnalyticsSettings_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(ThirdPartyAppAnalyticsSettings); - } - if (HasId) { - output.WriteRawTag(168, 1); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(178, 1); - output.WriteString(Name); - } - if (HasOwnerCustomer) { - output.WriteRawTag(186, 1); - output.WriteString(OwnerCustomer); - } - if (HasIncludeInConversionsMetric) { - output.WriteRawTag(192, 1); - output.WriteBool(IncludeInConversionsMetric); - } - if (HasClickThroughLookbackWindowDays) { - output.WriteRawTag(200, 1); - output.WriteInt64(ClickThroughLookbackWindowDays); - } - if (HasViewThroughLookbackWindowDays) { - output.WriteRawTag(208, 1); - output.WriteInt64(ViewThroughLookbackWindowDays); - } - if (HasPhoneCallDurationSeconds) { - output.WriteRawTag(216, 1); - output.WriteInt64(PhoneCallDurationSeconds); - } - if (HasAppId) { - output.WriteRawTag(226, 1); - output.WriteString(AppId); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - output.WriteRawTag(240, 1); - output.WriteEnum((int) Origin); - } - if (HasPrimaryForGoal) { - output.WriteRawTag(248, 1); - output.WriteBool(PrimaryForGoal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Category); - } - if (valueSettings_ != null) { - output.WriteRawTag(90); - output.WriteMessage(ValueSettings); - } - if (CountingType != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType.Unspecified) { - output.WriteRawTag(96); - output.WriteEnum((int) CountingType); - } - if (attributionModelSettings_ != null) { - output.WriteRawTag(106); - output.WriteMessage(AttributionModelSettings); - } - tagSnippets_.WriteTo(ref output, _repeated_tagSnippets_codec); - if (MobileAppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) MobileAppVendor); - } - if (firebaseSettings_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(FirebaseSettings); - } - if (thirdPartyAppAnalyticsSettings_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(ThirdPartyAppAnalyticsSettings); - } - if (HasId) { - output.WriteRawTag(168, 1); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(178, 1); - output.WriteString(Name); - } - if (HasOwnerCustomer) { - output.WriteRawTag(186, 1); - output.WriteString(OwnerCustomer); - } - if (HasIncludeInConversionsMetric) { - output.WriteRawTag(192, 1); - output.WriteBool(IncludeInConversionsMetric); - } - if (HasClickThroughLookbackWindowDays) { - output.WriteRawTag(200, 1); - output.WriteInt64(ClickThroughLookbackWindowDays); - } - if (HasViewThroughLookbackWindowDays) { - output.WriteRawTag(208, 1); - output.WriteInt64(ViewThroughLookbackWindowDays); - } - if (HasPhoneCallDurationSeconds) { - output.WriteRawTag(216, 1); - output.WriteInt64(PhoneCallDurationSeconds); - } - if (HasAppId) { - output.WriteRawTag(226, 1); - output.WriteString(AppId); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - output.WriteRawTag(240, 1); - output.WriteEnum((int) Origin); - } - if (HasPrimaryForGoal) { - output.WriteRawTag(248, 1); - output.WriteBool(PrimaryForGoal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Origin); - } - if (HasPrimaryForGoal) { - size += 2 + 1; - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); - } - if (HasOwnerCustomer) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(OwnerCustomer); - } - if (HasIncludeInConversionsMetric) { - size += 2 + 1; - } - if (HasClickThroughLookbackWindowDays) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ClickThroughLookbackWindowDays); - } - if (HasViewThroughLookbackWindowDays) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ViewThroughLookbackWindowDays); - } - if (valueSettings_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValueSettings); - } - if (CountingType != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CountingType); - } - if (attributionModelSettings_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AttributionModelSettings); - } - size += tagSnippets_.CalculateSize(_repeated_tagSnippets_codec); - if (HasPhoneCallDurationSeconds) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(PhoneCallDurationSeconds); - } - if (HasAppId) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(AppId); - } - if (MobileAppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) MobileAppVendor); - } - if (firebaseSettings_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FirebaseSettings); - } - if (thirdPartyAppAnalyticsSettings_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ThirdPartyAppAnalyticsSettings); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionAction other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus.Unspecified) { - Status = other.Status; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType.Unspecified) { - Type = other.Type; - } - if (other.Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - Origin = other.Origin; - } - if (other.HasPrimaryForGoal) { - PrimaryForGoal = other.PrimaryForGoal; - } - if (other.Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - Category = other.Category; - } - if (other.HasOwnerCustomer) { - OwnerCustomer = other.OwnerCustomer; - } - if (other.HasIncludeInConversionsMetric) { - IncludeInConversionsMetric = other.IncludeInConversionsMetric; - } - if (other.HasClickThroughLookbackWindowDays) { - ClickThroughLookbackWindowDays = other.ClickThroughLookbackWindowDays; - } - if (other.HasViewThroughLookbackWindowDays) { - ViewThroughLookbackWindowDays = other.ViewThroughLookbackWindowDays; - } - if (other.valueSettings_ != null) { - if (valueSettings_ == null) { - ValueSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ValueSettings(); - } - ValueSettings.MergeFrom(other.ValueSettings); - } - if (other.CountingType != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType.Unspecified) { - CountingType = other.CountingType; - } - if (other.attributionModelSettings_ != null) { - if (attributionModelSettings_ == null) { - AttributionModelSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.AttributionModelSettings(); - } - AttributionModelSettings.MergeFrom(other.AttributionModelSettings); - } - tagSnippets_.Add(other.tagSnippets_); - if (other.HasPhoneCallDurationSeconds) { - PhoneCallDurationSeconds = other.PhoneCallDurationSeconds; - } - if (other.HasAppId) { - AppId = other.AppId; - } - if (other.MobileAppVendor != global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor.Unspecified) { - MobileAppVendor = other.MobileAppVendor; - } - if (other.firebaseSettings_ != null) { - if (firebaseSettings_ == null) { - FirebaseSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.FirebaseSettings(); - } - FirebaseSettings.MergeFrom(other.FirebaseSettings); - } - if (other.thirdPartyAppAnalyticsSettings_ != null) { - if (thirdPartyAppAnalyticsSettings_ == null) { - ThirdPartyAppAnalyticsSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ThirdPartyAppAnalyticsSettings(); - } - ThirdPartyAppAnalyticsSettings.MergeFrom(other.ThirdPartyAppAnalyticsSettings); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus) input.ReadEnum(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType) input.ReadEnum(); - break; - } - case 48: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) input.ReadEnum(); - break; - } - case 90: { - if (valueSettings_ == null) { - ValueSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ValueSettings(); - } - input.ReadMessage(ValueSettings); - break; - } - case 96: { - CountingType = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType) input.ReadEnum(); - break; - } - case 106: { - if (attributionModelSettings_ == null) { - AttributionModelSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.AttributionModelSettings(); - } - input.ReadMessage(AttributionModelSettings); - break; - } - case 114: { - tagSnippets_.AddEntriesFrom(input, _repeated_tagSnippets_codec); - break; - } - case 136: { - MobileAppVendor = (global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor) input.ReadEnum(); - break; - } - case 146: { - if (firebaseSettings_ == null) { - FirebaseSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.FirebaseSettings(); - } - input.ReadMessage(FirebaseSettings); - break; - } - case 154: { - if (thirdPartyAppAnalyticsSettings_ == null) { - ThirdPartyAppAnalyticsSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ThirdPartyAppAnalyticsSettings(); - } - input.ReadMessage(ThirdPartyAppAnalyticsSettings); - break; - } - case 168: { - Id = input.ReadInt64(); - break; - } - case 178: { - Name = input.ReadString(); - break; - } - case 186: { - OwnerCustomer = input.ReadString(); - break; - } - case 192: { - IncludeInConversionsMetric = input.ReadBool(); - break; - } - case 200: { - ClickThroughLookbackWindowDays = input.ReadInt64(); - break; - } - case 208: { - ViewThroughLookbackWindowDays = input.ReadInt64(); - break; - } - case 216: { - PhoneCallDurationSeconds = input.ReadInt64(); - break; - } - case 226: { - AppId = input.ReadString(); - break; - } - case 240: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin) input.ReadEnum(); - break; - } - case 248: { - PrimaryForGoal = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus) input.ReadEnum(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType) input.ReadEnum(); - break; - } - case 48: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) input.ReadEnum(); - break; - } - case 90: { - if (valueSettings_ == null) { - ValueSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ValueSettings(); - } - input.ReadMessage(ValueSettings); - break; - } - case 96: { - CountingType = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType) input.ReadEnum(); - break; - } - case 106: { - if (attributionModelSettings_ == null) { - AttributionModelSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.AttributionModelSettings(); - } - input.ReadMessage(AttributionModelSettings); - break; - } - case 114: { - tagSnippets_.AddEntriesFrom(ref input, _repeated_tagSnippets_codec); - break; - } - case 136: { - MobileAppVendor = (global::Google.Ads.GoogleAds.V12.Enums.MobileAppVendorEnum.Types.MobileAppVendor) input.ReadEnum(); - break; - } - case 146: { - if (firebaseSettings_ == null) { - FirebaseSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.FirebaseSettings(); - } - input.ReadMessage(FirebaseSettings); - break; - } - case 154: { - if (thirdPartyAppAnalyticsSettings_ == null) { - ThirdPartyAppAnalyticsSettings = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Types.ThirdPartyAppAnalyticsSettings(); - } - input.ReadMessage(ThirdPartyAppAnalyticsSettings); - break; - } - case 168: { - Id = input.ReadInt64(); - break; - } - case 178: { - Name = input.ReadString(); - break; - } - case 186: { - OwnerCustomer = input.ReadString(); - break; - } - case 192: { - IncludeInConversionsMetric = input.ReadBool(); - break; - } - case 200: { - ClickThroughLookbackWindowDays = input.ReadInt64(); - break; - } - case 208: { - ViewThroughLookbackWindowDays = input.ReadInt64(); - break; - } - case 216: { - PhoneCallDurationSeconds = input.ReadInt64(); - break; - } - case 226: { - AppId = input.ReadString(); - break; - } - case 240: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin) input.ReadEnum(); - break; - } - case 248: { - PrimaryForGoal = input.ReadBool(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionAction message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Settings related to this conversion action's attribution model. - /// - public sealed partial class AttributionModelSettings : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributionModelSettings()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributionModelSettings() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributionModelSettings(AttributionModelSettings other) : this() { - attributionModel_ = other.attributionModel_; - dataDrivenModelStatus_ = other.dataDrivenModelStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributionModelSettings Clone() { - return new AttributionModelSettings(this); - } - - /// Field number for the "attribution_model" field. - public const int AttributionModelFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel attributionModel_ = global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel.Unspecified; - /// - /// The attribution model type of this conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel AttributionModel { - get { return attributionModel_; } - set { - attributionModel_ = value; - } - } - - /// Field number for the "data_driven_model_status" field. - public const int DataDrivenModelStatusFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus dataDrivenModelStatus_ = global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus.Unspecified; - /// - /// Output only. The status of the data-driven attribution model for the conversion - /// action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus DataDrivenModelStatus { - get { return dataDrivenModelStatus_; } - set { - dataDrivenModelStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AttributionModelSettings); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AttributionModelSettings other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AttributionModel != other.AttributionModel) return false; - if (DataDrivenModelStatus != other.DataDrivenModelStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (AttributionModel != global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel.Unspecified) hash ^= AttributionModel.GetHashCode(); - if (DataDrivenModelStatus != global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus.Unspecified) hash ^= DataDrivenModelStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AttributionModel != global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) AttributionModel); - } - if (DataDrivenModelStatus != global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DataDrivenModelStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AttributionModel != global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) AttributionModel); - } - if (DataDrivenModelStatus != global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DataDrivenModelStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (AttributionModel != global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AttributionModel); - } - if (DataDrivenModelStatus != global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataDrivenModelStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AttributionModelSettings other) { - if (other == null) { - return; - } - if (other.AttributionModel != global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel.Unspecified) { - AttributionModel = other.AttributionModel; - } - if (other.DataDrivenModelStatus != global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus.Unspecified) { - DataDrivenModelStatus = other.DataDrivenModelStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - AttributionModel = (global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel) input.ReadEnum(); - break; - } - case 16: { - DataDrivenModelStatus = (global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - AttributionModel = (global::Google.Ads.GoogleAds.V12.Enums.AttributionModelEnum.Types.AttributionModel) input.ReadEnum(); - break; - } - case 16: { - DataDrivenModelStatus = (global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Settings related to the value for conversion events associated with this - /// conversion action. - /// - public sealed partial class ValueSettings : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValueSettings()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueSettings() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueSettings(ValueSettings other) : this() { - _hasBits0 = other._hasBits0; - defaultValue_ = other.defaultValue_; - defaultCurrencyCode_ = other.defaultCurrencyCode_; - alwaysUseDefaultValue_ = other.alwaysUseDefaultValue_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueSettings Clone() { - return new ValueSettings(this); - } - - /// Field number for the "default_value" field. - public const int DefaultValueFieldNumber = 4; - private double defaultValue_; - /// - /// The value to use when conversion events for this conversion action are - /// sent with an invalid, disallowed or missing value, or when - /// this conversion action is configured to always use the default value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double DefaultValue { - get { if ((_hasBits0 & 1) != 0) { return defaultValue_; } else { return 0D; } } - set { - _hasBits0 |= 1; - defaultValue_ = value; - } - } - /// Gets whether the "default_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDefaultValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "default_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDefaultValue() { - _hasBits0 &= ~1; - } - - /// Field number for the "default_currency_code" field. - public const int DefaultCurrencyCodeFieldNumber = 5; - private string defaultCurrencyCode_; - /// - /// The currency code to use when conversion events for this conversion - /// action are sent with an invalid or missing currency code, or when this - /// conversion action is configured to always use the default value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DefaultCurrencyCode { - get { return defaultCurrencyCode_ ?? ""; } - set { - defaultCurrencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "default_currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDefaultCurrencyCode { - get { return defaultCurrencyCode_ != null; } - } - /// Clears the value of the "default_currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDefaultCurrencyCode() { - defaultCurrencyCode_ = null; - } - - /// Field number for the "always_use_default_value" field. - public const int AlwaysUseDefaultValueFieldNumber = 6; - private bool alwaysUseDefaultValue_; - /// - /// Controls whether the default value and default currency code are used in - /// place of the value and currency code specified in conversion events for - /// this conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AlwaysUseDefaultValue { - get { if ((_hasBits0 & 2) != 0) { return alwaysUseDefaultValue_; } else { return false; } } - set { - _hasBits0 |= 2; - alwaysUseDefaultValue_ = value; - } - } - /// Gets whether the "always_use_default_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAlwaysUseDefaultValue { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "always_use_default_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAlwaysUseDefaultValue() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ValueSettings); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ValueSettings other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DefaultValue, other.DefaultValue)) return false; - if (DefaultCurrencyCode != other.DefaultCurrencyCode) return false; - if (AlwaysUseDefaultValue != other.AlwaysUseDefaultValue) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasDefaultValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DefaultValue); - if (HasDefaultCurrencyCode) hash ^= DefaultCurrencyCode.GetHashCode(); - if (HasAlwaysUseDefaultValue) hash ^= AlwaysUseDefaultValue.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasDefaultValue) { - output.WriteRawTag(33); - output.WriteDouble(DefaultValue); - } - if (HasDefaultCurrencyCode) { - output.WriteRawTag(42); - output.WriteString(DefaultCurrencyCode); - } - if (HasAlwaysUseDefaultValue) { - output.WriteRawTag(48); - output.WriteBool(AlwaysUseDefaultValue); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasDefaultValue) { - output.WriteRawTag(33); - output.WriteDouble(DefaultValue); - } - if (HasDefaultCurrencyCode) { - output.WriteRawTag(42); - output.WriteString(DefaultCurrencyCode); - } - if (HasAlwaysUseDefaultValue) { - output.WriteRawTag(48); - output.WriteBool(AlwaysUseDefaultValue); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasDefaultValue) { - size += 1 + 8; - } - if (HasDefaultCurrencyCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultCurrencyCode); - } - if (HasAlwaysUseDefaultValue) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ValueSettings other) { - if (other == null) { - return; - } - if (other.HasDefaultValue) { - DefaultValue = other.DefaultValue; - } - if (other.HasDefaultCurrencyCode) { - DefaultCurrencyCode = other.DefaultCurrencyCode; - } - if (other.HasAlwaysUseDefaultValue) { - AlwaysUseDefaultValue = other.AlwaysUseDefaultValue; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 33: { - DefaultValue = input.ReadDouble(); - break; - } - case 42: { - DefaultCurrencyCode = input.ReadString(); - break; - } - case 48: { - AlwaysUseDefaultValue = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 33: { - DefaultValue = input.ReadDouble(); - break; - } - case 42: { - DefaultCurrencyCode = input.ReadString(); - break; - } - case 48: { - AlwaysUseDefaultValue = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Settings related to a third party app analytics conversion action. - /// - public sealed partial class ThirdPartyAppAnalyticsSettings : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThirdPartyAppAnalyticsSettings()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThirdPartyAppAnalyticsSettings() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThirdPartyAppAnalyticsSettings(ThirdPartyAppAnalyticsSettings other) : this() { - eventName_ = other.eventName_; - providerName_ = other.providerName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThirdPartyAppAnalyticsSettings Clone() { - return new ThirdPartyAppAnalyticsSettings(this); - } - - /// Field number for the "event_name" field. - public const int EventNameFieldNumber = 2; - private string eventName_; - /// - /// Output only. The event name of a third-party app analytics conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EventName { - get { return eventName_ ?? ""; } - set { - eventName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "event_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEventName { - get { return eventName_ != null; } - } - /// Clears the value of the "event_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEventName() { - eventName_ = null; - } - - /// Field number for the "provider_name" field. - public const int ProviderNameFieldNumber = 3; - private string providerName_ = ""; - /// - /// Output only. Name of the third-party app analytics provider. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProviderName { - get { return providerName_; } - set { - providerName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ThirdPartyAppAnalyticsSettings); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ThirdPartyAppAnalyticsSettings other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EventName != other.EventName) return false; - if (ProviderName != other.ProviderName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasEventName) hash ^= EventName.GetHashCode(); - if (ProviderName.Length != 0) hash ^= ProviderName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasEventName) { - output.WriteRawTag(18); - output.WriteString(EventName); - } - if (ProviderName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ProviderName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasEventName) { - output.WriteRawTag(18); - output.WriteString(EventName); - } - if (ProviderName.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ProviderName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasEventName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EventName); - } - if (ProviderName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProviderName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ThirdPartyAppAnalyticsSettings other) { - if (other == null) { - return; - } - if (other.HasEventName) { - EventName = other.EventName; - } - if (other.ProviderName.Length != 0) { - ProviderName = other.ProviderName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - EventName = input.ReadString(); - break; - } - case 26: { - ProviderName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - EventName = input.ReadString(); - break; - } - case 26: { - ProviderName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Settings related to a Firebase conversion action. - /// - public sealed partial class FirebaseSettings : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FirebaseSettings()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionAction.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FirebaseSettings() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FirebaseSettings(FirebaseSettings other) : this() { - eventName_ = other.eventName_; - projectId_ = other.projectId_; - propertyId_ = other.propertyId_; - propertyName_ = other.propertyName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FirebaseSettings Clone() { - return new FirebaseSettings(this); - } - - /// Field number for the "event_name" field. - public const int EventNameFieldNumber = 3; - private string eventName_; - /// - /// Output only. The event name of a Firebase conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EventName { - get { return eventName_ ?? ""; } - set { - eventName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "event_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEventName { - get { return eventName_ != null; } - } - /// Clears the value of the "event_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEventName() { - eventName_ = null; - } - - /// Field number for the "project_id" field. - public const int ProjectIdFieldNumber = 4; - private string projectId_; - /// - /// Output only. The Firebase project ID of the conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProjectId { - get { return projectId_ ?? ""; } - set { - projectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "project_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProjectId { - get { return projectId_ != null; } - } - /// Clears the value of the "project_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProjectId() { - projectId_ = null; - } - - /// Field number for the "property_id" field. - public const int PropertyIdFieldNumber = 5; - private long propertyId_; - /// - /// Output only. The GA property ID of the conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PropertyId { - get { return propertyId_; } - set { - propertyId_ = value; - } - } - - /// Field number for the "property_name" field. - public const int PropertyNameFieldNumber = 6; - private string propertyName_ = ""; - /// - /// Output only. The GA property name of the conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PropertyName { - get { return propertyName_; } - set { - propertyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FirebaseSettings); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FirebaseSettings other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EventName != other.EventName) return false; - if (ProjectId != other.ProjectId) return false; - if (PropertyId != other.PropertyId) return false; - if (PropertyName != other.PropertyName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasEventName) hash ^= EventName.GetHashCode(); - if (HasProjectId) hash ^= ProjectId.GetHashCode(); - if (PropertyId != 0L) hash ^= PropertyId.GetHashCode(); - if (PropertyName.Length != 0) hash ^= PropertyName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasEventName) { - output.WriteRawTag(26); - output.WriteString(EventName); - } - if (HasProjectId) { - output.WriteRawTag(34); - output.WriteString(ProjectId); - } - if (PropertyId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(PropertyId); - } - if (PropertyName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(PropertyName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasEventName) { - output.WriteRawTag(26); - output.WriteString(EventName); - } - if (HasProjectId) { - output.WriteRawTag(34); - output.WriteString(ProjectId); - } - if (PropertyId != 0L) { - output.WriteRawTag(40); - output.WriteInt64(PropertyId); - } - if (PropertyName.Length != 0) { - output.WriteRawTag(50); - output.WriteString(PropertyName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasEventName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EventName); - } - if (HasProjectId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProjectId); - } - if (PropertyId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PropertyId); - } - if (PropertyName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PropertyName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FirebaseSettings other) { - if (other == null) { - return; - } - if (other.HasEventName) { - EventName = other.EventName; - } - if (other.HasProjectId) { - ProjectId = other.ProjectId; - } - if (other.PropertyId != 0L) { - PropertyId = other.PropertyId; - } - if (other.PropertyName.Length != 0) { - PropertyName = other.PropertyName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - EventName = input.ReadString(); - break; - } - case 34: { - ProjectId = input.ReadString(); - break; - } - case 40: { - PropertyId = input.ReadInt64(); - break; - } - case 50: { - PropertyName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - EventName = input.ReadString(); - break; - } - case 34: { - ProjectId = input.ReadString(); - break; - } - case 40: { - PropertyId = input.ReadInt64(); - break; - } - case 50: { - PropertyName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionCategory.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionCategory.g.cs deleted file mode 100755 index f0cea02fd..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionCategory.g.cs +++ /dev/null @@ -1,332 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_action_category.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_action_category.proto - public static partial class ConversionActionCategoryReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_action_category.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionActionCategoryReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9h", - "Y3Rpb25fY2F0ZWdvcnkucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyLLAwocQ29udmVyc2lvbkFjdGlvbkNhdGVnb3J5RW51bSKqAwoY", - "Q29udmVyc2lvbkFjdGlvbkNhdGVnb3J5Eg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEgsKB0RFRkFVTFQQAhINCglQQUdFX1ZJRVcQAxIMCghQVVJD", - "SEFTRRAEEgoKBlNJR05VUBAFEgwKCERPV05MT0FEEAcSDwoLQUREX1RPX0NB", - "UlQQCBISCg5CRUdJTl9DSEVDS09VVBAJEhIKDlNVQlNDUklCRV9QQUlEEAoS", - "EwoPUEhPTkVfQ0FMTF9MRUFEEAsSEQoNSU1QT1JURURfTEVBRBAMEhQKEFNV", - "Qk1JVF9MRUFEX0ZPUk0QDRIUChBCT09LX0FQUE9JTlRNRU5UEA4SEQoNUkVR", - "VUVTVF9RVU9URRAPEhIKDkdFVF9ESVJFQ1RJT05TEBASEgoOT1VUQk9VTkRf", - "Q0xJQ0sQERILCgdDT05UQUNUEBISDgoKRU5HQUdFTUVOVBATEg8KC1NUT1JF", - "X1ZJU0lUEBQSDgoKU1RPUkVfU0FMRRAVEhIKDlFVQUxJRklFRF9MRUFEEBYS", - "EgoOQ09OVkVSVEVEX0xFQUQQF0L3AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtc0IdQ29udmVyc2lvbkFjdGlvbkNhdGVnb3J5UHJvdG9Q", - "AVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the category of conversions that are associated - /// with a ConversionAction. - /// - public sealed partial class ConversionActionCategoryEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionActionCategoryEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionCategoryEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionCategoryEnum(ConversionActionCategoryEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionCategoryEnum Clone() { - return new ConversionActionCategoryEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionActionCategoryEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionActionCategoryEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionActionCategoryEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionActionCategoryEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The category of conversions that are associated with a ConversionAction. - /// - public enum ConversionActionCategory { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Default category. - /// - [pbr::OriginalName("DEFAULT")] Default = 2, - /// - /// User visiting a page. - /// - [pbr::OriginalName("PAGE_VIEW")] PageView = 3, - /// - /// Purchase, sales, or "order placed" event. - /// - [pbr::OriginalName("PURCHASE")] Purchase = 4, - /// - /// Signup user action. - /// - [pbr::OriginalName("SIGNUP")] Signup = 5, - /// - /// Software download action (as for an app). - /// - [pbr::OriginalName("DOWNLOAD")] Download = 7, - /// - /// The addition of items to a shopping cart or bag on an advertiser site. - /// - [pbr::OriginalName("ADD_TO_CART")] AddToCart = 8, - /// - /// When someone enters the checkout flow on an advertiser site. - /// - [pbr::OriginalName("BEGIN_CHECKOUT")] BeginCheckout = 9, - /// - /// The start of a paid subscription for a product or service. - /// - [pbr::OriginalName("SUBSCRIBE_PAID")] SubscribePaid = 10, - /// - /// A call to indicate interest in an advertiser's offering. - /// - [pbr::OriginalName("PHONE_CALL_LEAD")] PhoneCallLead = 11, - /// - /// A lead conversion imported from an external source into Google Ads. - /// - [pbr::OriginalName("IMPORTED_LEAD")] ImportedLead = 12, - /// - /// A submission of a form on an advertiser site indicating business - /// interest. - /// - [pbr::OriginalName("SUBMIT_LEAD_FORM")] SubmitLeadForm = 13, - /// - /// A booking of an appointment with an advertiser's business. - /// - [pbr::OriginalName("BOOK_APPOINTMENT")] BookAppointment = 14, - /// - /// A quote or price estimate request. - /// - [pbr::OriginalName("REQUEST_QUOTE")] RequestQuote = 15, - /// - /// A search for an advertiser's business location with intention to visit. - /// - [pbr::OriginalName("GET_DIRECTIONS")] GetDirections = 16, - /// - /// A click to an advertiser's partner's site. - /// - [pbr::OriginalName("OUTBOUND_CLICK")] OutboundClick = 17, - /// - /// A call, SMS, email, chat or other type of contact to an advertiser. - /// - [pbr::OriginalName("CONTACT")] Contact = 18, - /// - /// A website engagement event such as long site time or a Google Analytics - /// (GA) Smart Goal. Intended to be used for GA, Firebase, GA Gold goal - /// imports. - /// - [pbr::OriginalName("ENGAGEMENT")] Engagement = 19, - /// - /// A visit to a physical store location. - /// - [pbr::OriginalName("STORE_VISIT")] StoreVisit = 20, - /// - /// A sale occurring in a physical store. - /// - [pbr::OriginalName("STORE_SALE")] StoreSale = 21, - /// - /// A lead conversion imported from an external source into Google Ads, - /// that has been further qualified by the advertiser (marketing/sales team). - /// In the lead-to-sale journey, advertisers get leads, then act on them - /// by reaching out to the consumer. If the consumer is interested and - /// may end up buying their product, the advertiser marks such leads as - /// "qualified leads". - /// - [pbr::OriginalName("QUALIFIED_LEAD")] QualifiedLead = 22, - /// - /// A lead conversion imported from an external source into Google Ads, that - /// has further completed a chosen stage as defined by the lead gen - /// advertiser. - /// - [pbr::OriginalName("CONVERTED_LEAD")] ConvertedLead = 23, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionCountingType.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionCountingType.g.cs deleted file mode 100755 index 1c6c2d4f8..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionCountingType.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_action_counting_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_action_counting_type.proto - public static partial class ConversionActionCountingTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_action_counting_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionActionCountingTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9h", - "Y3Rpb25fY291bnRpbmdfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zIocBCiBDb252ZXJzaW9uQWN0aW9uQ291bnRpbmdUeXBl", - "RW51bSJjChxDb252ZXJzaW9uQWN0aW9uQ291bnRpbmdUeXBlEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEhEKDU9ORV9QRVJfQ0xJQ0sQAhISCg5N", - "QU5ZX1BFUl9DTElDSxADQvsBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQiFDb252ZXJzaW9uQWN0aW9uQ291bnRpbmdUeXBlUHJvdG9Q", - "AVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeEnum.Types.ConversionActionCountingType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the conversion deduplication mode for - /// conversion optimizer. - /// - public sealed partial class ConversionActionCountingTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionActionCountingTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCountingTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionCountingTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionCountingTypeEnum(ConversionActionCountingTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionCountingTypeEnum Clone() { - return new ConversionActionCountingTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionActionCountingTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionActionCountingTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionActionCountingTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionActionCountingTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Indicates how conversions for this action will be counted. For more - /// information, see https://support.google.com/google-ads/answer/3438531. - /// - public enum ConversionActionCountingType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Count only one conversion per click. - /// - [pbr::OriginalName("ONE_PER_CLICK")] OnePerClick = 2, - /// - /// Count all conversions per click. - /// - [pbr::OriginalName("MANY_PER_CLICK")] ManyPerClick = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionError.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionError.g.cs deleted file mode 100755 index 13edcd6f1..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionError.g.cs +++ /dev/null @@ -1,284 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/conversion_action_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/conversion_action_error.proto - public static partial class ConversionActionErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/conversion_action_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionActionErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "YWN0aW9uX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzIqUDChlDb252ZXJzaW9uQWN0aW9uRXJyb3JFbnVtIocDChVDb252", - "ZXJzaW9uQWN0aW9uRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESEgoORFVQTElDQVRFX05BTUUQAhIUChBEVVBMSUNBVEVfQVBQX0lEEAMS", - "NwozVFdPX0NPTlZFUlNJT05fQUNUSU9OU19CSURESU5HX09OX1NBTUVfQVBQ", - "X0RPV05MT0FEEAQSMQotQklERElOR19PTl9TQU1FX0FQUF9ET1dOTE9BRF9B", - "U19HTE9CQUxfQUNUSU9OEAUSKQolREFUQV9EUklWRU5fTU9ERUxfV0FTX05F", - "VkVSX0dFTkVSQVRFRBAGEh0KGURBVEFfRFJJVkVOX01PREVMX0VYUElSRUQQ", - "BxIbChdEQVRBX0RSSVZFTl9NT0RFTF9TVEFMRRAIEh0KGURBVEFfRFJJVkVO", - "X01PREVMX1VOS05PV04QCRIaChZDUkVBVElPTl9OT1RfU1VQUE9SVEVEEAoS", - "GAoUVVBEQVRFX05PVF9TVVBQT1JURUQQC0L6AQojY29tLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lcnJvcnNCGkNvbnZlcnNpb25BY3Rpb25FcnJvclBy", - "b3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorEnum.Types.ConversionActionError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion action errors. - /// - public sealed partial class ConversionActionErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionActionErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionErrorEnum(ConversionActionErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionErrorEnum Clone() { - return new ConversionActionErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionActionErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionActionErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionActionErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionActionErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible conversion action errors. - /// - public enum ConversionActionError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The specified conversion action name already exists. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 2, - /// - /// Another conversion action with the specified app id already exists. - /// - [pbr::OriginalName("DUPLICATE_APP_ID")] DuplicateAppId = 3, - /// - /// Android first open action conflicts with Google play codeless download - /// action tracking the same app. - /// - [pbr::OriginalName("TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD")] TwoConversionActionsBiddingOnSameAppDownload = 4, - /// - /// Android first open action conflicts with Google play codeless download - /// action tracking the same app. - /// - [pbr::OriginalName("BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION")] BiddingOnSameAppDownloadAsGlobalAction = 5, - /// - /// The attribution model cannot be set to DATA_DRIVEN because a data-driven - /// model has never been generated. - /// - [pbr::OriginalName("DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED")] DataDrivenModelWasNeverGenerated = 6, - /// - /// The attribution model cannot be set to DATA_DRIVEN because the - /// data-driven model is expired. - /// - [pbr::OriginalName("DATA_DRIVEN_MODEL_EXPIRED")] DataDrivenModelExpired = 7, - /// - /// The attribution model cannot be set to DATA_DRIVEN because the - /// data-driven model is stale. - /// - [pbr::OriginalName("DATA_DRIVEN_MODEL_STALE")] DataDrivenModelStale = 8, - /// - /// The attribution model cannot be set to DATA_DRIVEN because the - /// data-driven model is unavailable or the conversion action was newly - /// added. - /// - [pbr::OriginalName("DATA_DRIVEN_MODEL_UNKNOWN")] DataDrivenModelUnknown = 9, - /// - /// Creation of this conversion action type isn't supported by Google - /// Ads API. - /// - [pbr::OriginalName("CREATION_NOT_SUPPORTED")] CreationNotSupported = 10, - /// - /// Update of this conversion action isn't supported by Google Ads API. - /// - [pbr::OriginalName("UPDATE_NOT_SUPPORTED")] UpdateNotSupported = 11, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionResourceNames.g.cs deleted file mode 100755 index 687ab62eb..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionResourceNames.g.cs +++ /dev/null @@ -1,286 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ConversionAction resource. - public sealed partial class ConversionActionName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/conversionActions/{conversion_action_id}. - /// - CustomerConversionAction = 1, - } - - private static gax::PathTemplate s_customerConversionAction = new gax::PathTemplate("customers/{customer_id}/conversionActions/{conversion_action_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ConversionActionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ConversionActionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/conversionActions/{conversion_action_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ConversionAction ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static ConversionActionName FromCustomerConversionAction(string customerId, string conversionActionId) => - new ConversionActionName(ResourceNameType.CustomerConversionAction, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionActionId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionActionId, nameof(conversionActionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/conversionActions/{conversion_action_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ConversionAction ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionActions/{conversion_action_id}. - /// - public static string Format(string customerId, string conversionActionId) => - FormatCustomerConversionAction(customerId, conversionActionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/conversionActions/{conversion_action_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ConversionAction ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionActions/{conversion_action_id}. - /// - public static string FormatCustomerConversionAction(string customerId, string conversionActionId) => - s_customerConversionAction.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(conversionActionId, nameof(conversionActionId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionActions/{conversion_action_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ConversionActionName Parse(string conversionActionName) => Parse(conversionActionName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionActions/{conversion_action_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ConversionActionName Parse(string conversionActionName, bool allowUnparsed) => - TryParse(conversionActionName, allowUnparsed, out ConversionActionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionActions/{conversion_action_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionActionName, out ConversionActionName result) => - TryParse(conversionActionName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionActions/{conversion_action_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionActionName, bool allowUnparsed, out ConversionActionName result) - { - gax::GaxPreconditions.CheckNotNull(conversionActionName, nameof(conversionActionName)); - gax::TemplatedResourceName resourceName; - if (s_customerConversionAction.TryParseName(conversionActionName, out resourceName)) - { - result = FromCustomerConversionAction(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(conversionActionName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ConversionActionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string conversionActionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ConversionActionId = conversionActionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/conversionActions/{conversion_action_id} - /// - /// The Customer ID. Must not be null or empty. - /// The ConversionAction ID. Must not be null or empty. - public ConversionActionName(string customerId, string conversionActionId) : this(ResourceNameType.CustomerConversionAction, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionActionId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionActionId, nameof(conversionActionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ConversionAction ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ConversionActionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerConversionAction: return s_customerConversionAction.Expand(CustomerId, ConversionActionId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ConversionActionName); - - /// - public bool Equals(ConversionActionName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ConversionActionName a, ConversionActionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ConversionActionName a, ConversionActionName b) => !(a == b); - } - - public partial class ConversionAction - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ConversionActionName ResourceNameAsConversionActionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ConversionActionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::ConversionActionName ConversionActionName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::ConversionActionName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName OwnerCustomerAsCustomerName - { - get => string.IsNullOrEmpty(OwnerCustomer) ? null : CustomerName.Parse(OwnerCustomer, allowUnparsed: true); - set => OwnerCustomer = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionService.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionService.g.cs deleted file mode 100755 index 1b4cb5f3a..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionService.g.cs +++ /dev/null @@ -1,1311 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_action_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/conversion_action_service.proto - public static partial class ConversionActionServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/conversion_action_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionActionServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lv", - "bl9hY3Rpb25fc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "cmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGjpnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvcmVzb3VyY2VzL2NvbnZlcnNpb25fYWN0aW9uLnByb3RvGhxn", - "b29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVu", - "dC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29v", - "Z2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxk", - "X21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIq0CCh5NdXRh", - "dGVDb252ZXJzaW9uQWN0aW9uc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASAB", - "KAlCA+BBAhJVCgpvcGVyYXRpb25zGAIgAygLMjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLkNvbnZlcnNpb25BY3Rpb25PcGVyYXRpb25C", - "A+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25s", - "eRgEIAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlw", - "ZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSKrAgoZQ29udmVyc2lvbkFjdGlv", - "bk9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90", - "b2J1Zi5GaWVsZE1hc2sSRgoGY3JlYXRlGAEgASgLMjQuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9uQWN0aW9uSAASRgoG", - "dXBkYXRlGAIgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5Db252ZXJzaW9uQWN0aW9uSAASQAoGcmVtb3ZlGAMgASgJQi76QSsK", - "KWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Db252ZXJzaW9uQWN0aW9uSABC", - "CwoJb3BlcmF0aW9uIqYBCh9NdXRhdGVDb252ZXJzaW9uQWN0aW9uc1Jlc3Bv", - "bnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzISLmdvb2dsZS5y", - "cGMuU3RhdHVzElAKB3Jlc3VsdHMYAiADKAsyPy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvbkFjdGlvblJlc3Vs", - "dCK2AQocTXV0YXRlQ29udmVyc2lvbkFjdGlvblJlc3VsdBJFCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "b252ZXJzaW9uQWN0aW9uEk8KEWNvbnZlcnNpb25fYWN0aW9uGAIgASgLMjQu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9u", - "QWN0aW9uMuACChdDb252ZXJzaW9uQWN0aW9uU2VydmljZRL9AQoXTXV0YXRl", - "Q29udmVyc2lvbkFjdGlvbnMSQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuTXV0YXRlQ29udmVyc2lvbkFjdGlvbnNSZXF1ZXN0GkIuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNvbnZlcnNp", - "b25BY3Rpb25zUmVzcG9uc2UiW4LT5JMCPCI3L3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2NvbnZlcnNpb25BY3Rpb25zOm11dGF0ZToBKtpBFmN1", - "c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jk", - "c0KIAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0Ic", - "Q29udmVyc2lvbkFjdGlvblNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Nl", - "cnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZp", - "Y2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionActionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation), global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult), global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult.Parser, new[]{ "ResourceName", "ConversionAction" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v12.services.ConversionActionService.MutateConversionActions]. - /// - public sealed partial class MutateConversionActionsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionActionsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionActionServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionsRequest(MutateConversionActionsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionsRequest Clone() { - return new MutateConversionActionsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose conversion actions are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual conversion actions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionActionsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionActionsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionActionsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a conversion action. - /// - public sealed partial class ConversionActionOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionActionOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionActionServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionOperation(ConversionActionOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionOperation Clone() { - return new ConversionActionOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new conversion - /// action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionAction) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The conversion action is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionAction) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed conversion action is - /// expected, in this format: - /// - /// `customers/{customer_id}/conversionActions/{conversion_action_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionActionOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionActionOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionActionOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionAction subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionAction subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionAction subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionAction subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v12.services.ConversionActionService.MutateConversionActions]. - /// - public sealed partial class MutateConversionActionsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionActionsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionActionServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionsResponse(MutateConversionActionsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionsResponse Clone() { - return new MutateConversionActionsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionActionsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionActionsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionActionsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the conversion action mutate. - /// - public sealed partial class MutateConversionActionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionActionResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionActionServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionResult(MutateConversionActionResult other) : this() { - resourceName_ = other.resourceName_; - conversionAction_ = other.conversionAction_ != null ? other.conversionAction_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionActionResult Clone() { - return new MutateConversionActionResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionAction conversionAction_; - /// - /// The mutated conversion action with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction ConversionAction { - get { return conversionAction_; } - set { - conversionAction_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionActionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionActionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(ConversionAction, other.ConversionAction)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (conversionAction_ != null) hash ^= ConversionAction.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionAction_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionAction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionAction_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionAction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (conversionAction_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionAction); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionActionResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.conversionAction_ != null) { - if (conversionAction_ == null) { - ConversionAction = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - ConversionAction.MergeFrom(other.ConversionAction); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionAction_ == null) { - ConversionAction = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - input.ReadMessage(ConversionAction); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionAction_ == null) { - ConversionAction = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - input.ReadMessage(ConversionAction); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionServiceClient.g.cs deleted file mode 100755 index c0049ef67..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionServiceClient.g.cs +++ /dev/null @@ -1,518 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ConversionActionServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ConversionActionServiceSettings GetDefault() => new ConversionActionServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ConversionActionServiceSettings() - { - } - - private ConversionActionServiceSettings(ConversionActionServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateConversionActionsSettings = existing.MutateConversionActionsSettings; - OnCopy(existing); - } - - partial void OnCopy(ConversionActionServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ConversionActionServiceClient.MutateConversionActions and - /// ConversionActionServiceClient.MutateConversionActionsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateConversionActionsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ConversionActionServiceSettings Clone() => new ConversionActionServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class ConversionActionServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ConversionActionServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ConversionActionServiceClientBuilder() : base(ConversionActionServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ConversionActionServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ConversionActionServiceClient Build() - { - ConversionActionServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ConversionActionServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ConversionActionServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ConversionActionServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ConversionActionServiceClient.ChannelPool; - } - - /// ConversionActionService client wrapper, for convenient use. - /// - /// Service to manage conversion actions. - /// - public abstract partial class ConversionActionServiceClient - { - /// - /// The default endpoint for the ConversionActionService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ConversionActionService scopes. - /// - /// The default ConversionActionService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ConversionActionService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ConversionActionServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ConversionActionServiceClient Create() => new ConversionActionServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ConversionActionServiceClient Create(grpccore::CallInvoker callInvoker, ConversionActionServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ConversionActionService.ConversionActionServiceClient grpcClient = new ConversionActionService.ConversionActionServiceClient(callInvoker); - return new ConversionActionServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ConversionActionService client - public virtual ConversionActionService.ConversionActionServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionActionsResponse MutateConversionActions(MutateConversionActionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionActionsAsync(MutateConversionActionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionActionsAsync(MutateConversionActionsRequest request, st::CancellationToken cancellationToken) => - MutateConversionActionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose conversion actions are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion actions. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionActionsResponse MutateConversionActions(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionActions(new MutateConversionActionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose conversion actions are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion actions. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionActionsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionActionsAsync(new MutateConversionActionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose conversion actions are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion actions. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionActionsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateConversionActionsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ConversionActionService client wrapper implementation, for convenient use. - /// - /// Service to manage conversion actions. - /// - public sealed partial class ConversionActionServiceClientImpl : ConversionActionServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateConversionActions; - - /// - /// Constructs a client wrapper for the ConversionActionService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ConversionActionServiceClientImpl(ConversionActionService.ConversionActionServiceClient grpcClient, ConversionActionServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ConversionActionServiceSettings effectiveSettings = settings ?? ConversionActionServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateConversionActions = clientHelper.BuildApiCall("MutateConversionActions", grpcClient.MutateConversionActionsAsync, grpcClient.MutateConversionActions, effectiveSettings.MutateConversionActionsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateConversionActions); - Modify_MutateConversionActionsApiCall(ref _callMutateConversionActions); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateConversionActionsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ConversionActionService.ConversionActionServiceClient grpcClient, ConversionActionServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ConversionActionService client - public override ConversionActionService.ConversionActionServiceClient GrpcClient { get; } - - partial void Modify_MutateConversionActionsRequest(ref MutateConversionActionsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateConversionActionsResponse MutateConversionActions(MutateConversionActionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionActionsRequest(ref request, ref callSettings); - return _callMutateConversionActions.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateConversionActionsAsync(MutateConversionActionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionActionsRequest(ref request, ref callSettings); - return _callMutateConversionActions.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionServiceGrpc.g.cs deleted file mode 100755 index 80d1d9ffe..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionServiceGrpc.g.cs +++ /dev/null @@ -1,302 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_action_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage conversion actions. - /// - public static partial class ConversionActionService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ConversionActionService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionActionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionActionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateConversionActions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateConversionActions", - __Marshaller_google_ads_googleads_v12_services_MutateConversionActionsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateConversionActionsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionActionServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ConversionActionService - [grpc::BindServiceMethod(typeof(ConversionActionService), "BindService")] - public abstract partial class ConversionActionServiceBase - { - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateConversionActions(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ConversionActionService - public partial class ConversionActionServiceClient : grpc::ClientBase - { - /// Creates a new client for ConversionActionService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionActionServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ConversionActionService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionActionServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionActionServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionActionServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsResponse MutateConversionActions(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionActions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsResponse MutateConversionActions(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateConversionActions, null, options, request); - } - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionActionsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionActionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes conversion actions. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionActionError]() - /// [CurrencyCodeError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionActionsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateConversionActions, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ConversionActionServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ConversionActionServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ConversionActionServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateConversionActions, serviceImpl.MutateConversionActions).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ConversionActionServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateConversionActions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateConversionActions)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionServiceResourceNames.g.cs deleted file mode 100755 index a63e27db0..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class ConversionActionOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ConversionActionName RemoveAsConversionActionName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::ConversionActionName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateConversionActionResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ConversionActionName ResourceNameAsConversionActionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ConversionActionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionStatus.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionStatus.g.cs deleted file mode 100755 index ab03d2550..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionStatus.g.cs +++ /dev/null @@ -1,242 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_action_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_action_status.proto - public static partial class ConversionActionStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_action_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionActionStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9h", - "Y3Rpb25fc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMiegoaQ29udmVyc2lvbkFjdGlvblN0YXR1c0VudW0iXAoWQ29udmVy", - "c2lvbkFjdGlvblN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q", - "ARILCgdFTkFCTEVEEAISCwoHUkVNT1ZFRBADEgoKBkhJRERFThAEQvUBCiJj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhtDb252ZXJzaW9u", - "QWN0aW9uU3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv", - "dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6IC", - "A0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusEnum.Types.ConversionActionStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a conversion action. - /// - public sealed partial class ConversionActionStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionActionStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionActionStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionStatusEnum(ConversionActionStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionStatusEnum Clone() { - return new ConversionActionStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionActionStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionActionStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionActionStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionActionStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a conversion action. - /// - public enum ConversionActionStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversions will be recorded. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Conversions will not be recorded. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - /// - /// Conversions will not be recorded and the conversion action will not - /// appear in the UI. - /// - [pbr::OriginalName("HIDDEN")] Hidden = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionActionType.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionActionType.g.cs deleted file mode 100755 index a736b32de..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionActionType.g.cs +++ /dev/null @@ -1,417 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_action_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_action_type.proto - public static partial class ConversionActionTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_action_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionActionTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9h", - "Y3Rpb25fdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zIukIChhDb252ZXJzaW9uQWN0aW9uVHlwZUVudW0izAgKFENvbnZlcnNp", - "b25BY3Rpb25UeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsK", - "B0FEX0NBTEwQAhIRCg1DTElDS19UT19DQUxMEAMSGAoUR09PR0xFX1BMQVlf", - "RE9XTkxPQUQQBBIfChtHT09HTEVfUExBWV9JTl9BUFBfUFVSQ0hBU0UQBRIQ", - "CgxVUExPQURfQ0FMTFMQBhIRCg1VUExPQURfQ0xJQ0tTEAcSCwoHV0VCUEFH", - "RRAIEhAKDFdFQlNJVEVfQ0FMTBAJEh0KGVNUT1JFX1NBTEVTX0RJUkVDVF9V", - "UExPQUQQChIPCgtTVE9SRV9TQUxFUxALEh8KG0ZJUkVCQVNFX0FORFJPSURf", - "RklSU1RfT1BFThAMEiQKIEZJUkVCQVNFX0FORFJPSURfSU5fQVBQX1BVUkNI", - "QVNFEA0SGwoXRklSRUJBU0VfQU5EUk9JRF9DVVNUT00QDhIbChdGSVJFQkFT", - "RV9JT1NfRklSU1RfT1BFThAPEiAKHEZJUkVCQVNFX0lPU19JTl9BUFBfUFVS", - "Q0hBU0UQEBIXChNGSVJFQkFTRV9JT1NfQ1VTVE9NEBESMAosVEhJUkRfUEFS", - "VFlfQVBQX0FOQUxZVElDU19BTkRST0lEX0ZJUlNUX09QRU4QEhI1CjFUSElS", - "RF9QQVJUWV9BUFBfQU5BTFlUSUNTX0FORFJPSURfSU5fQVBQX1BVUkNIQVNF", - "EBMSLAooVEhJUkRfUEFSVFlfQVBQX0FOQUxZVElDU19BTkRST0lEX0NVU1RP", - "TRAUEiwKKFRISVJEX1BBUlRZX0FQUF9BTkFMWVRJQ1NfSU9TX0ZJUlNUX09Q", - "RU4QFRIxCi1USElSRF9QQVJUWV9BUFBfQU5BTFlUSUNTX0lPU19JTl9BUFBf", - "UFVSQ0hBU0UQFhIoCiRUSElSRF9QQVJUWV9BUFBfQU5BTFlUSUNTX0lPU19D", - "VVNUT00QFxIgChxBTkRST0lEX0FQUF9QUkVfUkVHSVNUUkFUSU9OEBgSIwof", - "QU5EUk9JRF9JTlNUQUxMU19BTExfT1RIRVJfQVBQUxAZEhUKEUZMT09ETElH", - "SFRfQUNUSU9OEBoSGgoWRkxPT0RMSUdIVF9UUkFOU0FDVElPThAbEhEKDUdP", - "T0dMRV9IT1NURUQQHBIUChBMRUFEX0ZPUk1fU1VCTUlUEB0SDgoKU0FMRVNG", - "T1JDRRAeEhIKDlNFQVJDSF9BRFNfMzYwEB8SJAogU01BUlRfQ0FNUEFJR05f", - "QURfQ0xJQ0tTX1RPX0NBTEwQIBIlCiFTTUFSVF9DQU1QQUlHTl9NQVBfQ0xJ", - "Q0tTX1RPX0NBTEwQIRIhCh1TTUFSVF9DQU1QQUlHTl9NQVBfRElSRUNUSU9O", - "UxAiEiAKHFNNQVJUX0NBTVBBSUdOX1RSQUNLRURfQ0FMTFMQIxIQCgxTVE9S", - "RV9WSVNJVFMQJELzAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtc0IZQ29udmVyc2lvbkFjdGlvblR5cGVQcm90b1ABWkNnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeEnum.Types.ConversionActionType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible types of a conversion action. - /// - public sealed partial class ConversionActionTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionActionTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionActionTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionTypeEnum(ConversionActionTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionActionTypeEnum Clone() { - return new ConversionActionTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionActionTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionActionTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionActionTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionActionTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible types of a conversion action. - /// - public enum ConversionActionType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversions that occur when a user clicks on an ad's call extension. - /// - [pbr::OriginalName("AD_CALL")] AdCall = 2, - /// - /// Conversions that occur when a user on a mobile device clicks a phone - /// number. - /// - [pbr::OriginalName("CLICK_TO_CALL")] ClickToCall = 3, - /// - /// Conversions that occur when a user downloads a mobile app from the Google - /// Play Store. - /// - [pbr::OriginalName("GOOGLE_PLAY_DOWNLOAD")] GooglePlayDownload = 4, - /// - /// Conversions that occur when a user makes a purchase in an app through - /// Android billing. - /// - [pbr::OriginalName("GOOGLE_PLAY_IN_APP_PURCHASE")] GooglePlayInAppPurchase = 5, - /// - /// Call conversions that are tracked by the advertiser and uploaded. - /// - [pbr::OriginalName("UPLOAD_CALLS")] UploadCalls = 6, - /// - /// Conversions that are tracked by the advertiser and uploaded with - /// attributed clicks. - /// - [pbr::OriginalName("UPLOAD_CLICKS")] UploadClicks = 7, - /// - /// Conversions that occur on a webpage. - /// - [pbr::OriginalName("WEBPAGE")] Webpage = 8, - /// - /// Conversions that occur when a user calls a dynamically-generated phone - /// number from an advertiser's website. - /// - [pbr::OriginalName("WEBSITE_CALL")] WebsiteCall = 9, - /// - /// Store Sales conversion based on first-party or third-party merchant - /// data uploads. - /// Only customers on the allowlist can use store sales direct upload types. - /// - [pbr::OriginalName("STORE_SALES_DIRECT_UPLOAD")] StoreSalesDirectUpload = 10, - /// - /// Store Sales conversion based on first-party or third-party merchant - /// data uploads and/or from in-store purchases using cards from payment - /// networks. - /// Only customers on the allowlist can use store sales types. - /// Read only. - /// - [pbr::OriginalName("STORE_SALES")] StoreSales = 11, - /// - /// Android app first open conversions tracked through Firebase. - /// - [pbr::OriginalName("FIREBASE_ANDROID_FIRST_OPEN")] FirebaseAndroidFirstOpen = 12, - /// - /// Android app in app purchase conversions tracked through Firebase. - /// - [pbr::OriginalName("FIREBASE_ANDROID_IN_APP_PURCHASE")] FirebaseAndroidInAppPurchase = 13, - /// - /// Android app custom conversions tracked through Firebase. - /// - [pbr::OriginalName("FIREBASE_ANDROID_CUSTOM")] FirebaseAndroidCustom = 14, - /// - /// iOS app first open conversions tracked through Firebase. - /// - [pbr::OriginalName("FIREBASE_IOS_FIRST_OPEN")] FirebaseIosFirstOpen = 15, - /// - /// iOS app in app purchase conversions tracked through Firebase. - /// - [pbr::OriginalName("FIREBASE_IOS_IN_APP_PURCHASE")] FirebaseIosInAppPurchase = 16, - /// - /// iOS app custom conversions tracked through Firebase. - /// - [pbr::OriginalName("FIREBASE_IOS_CUSTOM")] FirebaseIosCustom = 17, - /// - /// Android app first open conversions tracked through Third Party App - /// Analytics. - /// - [pbr::OriginalName("THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN")] ThirdPartyAppAnalyticsAndroidFirstOpen = 18, - /// - /// Android app in app purchase conversions tracked through Third Party App - /// Analytics. - /// - [pbr::OriginalName("THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE")] ThirdPartyAppAnalyticsAndroidInAppPurchase = 19, - /// - /// Android app custom conversions tracked through Third Party App Analytics. - /// - [pbr::OriginalName("THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM")] ThirdPartyAppAnalyticsAndroidCustom = 20, - /// - /// iOS app first open conversions tracked through Third Party App Analytics. - /// - [pbr::OriginalName("THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN")] ThirdPartyAppAnalyticsIosFirstOpen = 21, - /// - /// iOS app in app purchase conversions tracked through Third Party App - /// Analytics. - /// - [pbr::OriginalName("THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE")] ThirdPartyAppAnalyticsIosInAppPurchase = 22, - /// - /// iOS app custom conversions tracked through Third Party App Analytics. - /// - [pbr::OriginalName("THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM")] ThirdPartyAppAnalyticsIosCustom = 23, - /// - /// Conversions that occur when a user pre-registers a mobile app from the - /// Google Play Store. Read only. - /// - [pbr::OriginalName("ANDROID_APP_PRE_REGISTRATION")] AndroidAppPreRegistration = 24, - /// - /// Conversions that track all Google Play downloads which aren't tracked - /// by an app-specific type. Read only. - /// - [pbr::OriginalName("ANDROID_INSTALLS_ALL_OTHER_APPS")] AndroidInstallsAllOtherApps = 25, - /// - /// Floodlight activity that counts the number of times that users have - /// visited a particular webpage after seeing or clicking on one of - /// an advertiser's ads. Read only. - /// - [pbr::OriginalName("FLOODLIGHT_ACTION")] FloodlightAction = 26, - /// - /// Floodlight activity that tracks the number of sales made or the number - /// of items purchased. Can also capture the total value of each sale. - /// Read only. - /// - [pbr::OriginalName("FLOODLIGHT_TRANSACTION")] FloodlightTransaction = 27, - /// - /// Conversions that track local actions from Google's products and - /// services after interacting with an ad. Read only. - /// - [pbr::OriginalName("GOOGLE_HOSTED")] GoogleHosted = 28, - /// - /// Conversions reported when a user submits a lead form. Read only. - /// - [pbr::OriginalName("LEAD_FORM_SUBMIT")] LeadFormSubmit = 29, - /// - /// Conversions that come from Salesforce. Read only. - /// - [pbr::OriginalName("SALESFORCE")] Salesforce = 30, - /// - /// Conversions imported from Search Ads 360 Floodlight data. Read only. - /// - [pbr::OriginalName("SEARCH_ADS_360")] SearchAds360 = 31, - /// - /// Call conversions that occur on Smart campaign Ads without call tracking - /// setup, using Smart campaign custom criteria. Read only. - /// - [pbr::OriginalName("SMART_CAMPAIGN_AD_CLICKS_TO_CALL")] SmartCampaignAdClicksToCall = 32, - /// - /// The user clicks on a call element within Google Maps. Smart campaign - /// only. Read only. - /// - [pbr::OriginalName("SMART_CAMPAIGN_MAP_CLICKS_TO_CALL")] SmartCampaignMapClicksToCall = 33, - /// - /// The user requests directions to a business location within Google Maps. - /// Smart campaign only. Read only. - /// - [pbr::OriginalName("SMART_CAMPAIGN_MAP_DIRECTIONS")] SmartCampaignMapDirections = 34, - /// - /// Call conversions that occur on Smart campaign Ads with call tracking - /// setup, using Smart campaign custom criteria. Read only. - /// - [pbr::OriginalName("SMART_CAMPAIGN_TRACKED_CALLS")] SmartCampaignTrackedCalls = 35, - /// - /// Conversions that occur when a user visits an advertiser's retail store. - /// Read only. - /// - [pbr::OriginalName("STORE_VISITS")] StoreVisits = 36, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentType.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentType.g.cs deleted file mode 100755 index 311797102..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentType.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_adjustment_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_adjustment_type.proto - public static partial class ConversionAdjustmentTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_adjustment_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionAdjustmentTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9h", - "ZGp1c3RtZW50X3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyKKAQocQ29udmVyc2lvbkFkanVzdG1lbnRUeXBlRW51bSJqChhD", - "b252ZXJzaW9uQWRqdXN0bWVudFR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESDgoKUkVUUkFDVElPThACEg8KC1JFU1RBVEVNRU5UEAMSDwoL", - "RU5IQU5DRU1FTlQQBEL3AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtc0IdQ29udmVyc2lvbkFkanVzdG1lbnRUeXBlUHJvdG9QAVpDZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVt", - "c+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing conversion adjustment types. - /// - public sealed partial class ConversionAdjustmentTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionAdjustmentTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentTypeEnum(ConversionAdjustmentTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentTypeEnum Clone() { - return new ConversionAdjustmentTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionAdjustmentTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionAdjustmentTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionAdjustmentTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionAdjustmentTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The different actions advertisers can take to adjust the conversions that - /// they already reported. Retractions negate a conversion. Restatements change - /// the value of a conversion. - /// - public enum ConversionAdjustmentType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Negates a conversion so that its total value and count are both zero. - /// - [pbr::OriginalName("RETRACTION")] Retraction = 2, - /// - /// Changes the value of a conversion. - /// - [pbr::OriginalName("RESTATEMENT")] Restatement = 3, - /// - /// Supplements an existing conversion with provided user identifiers and - /// user agent, which can be used by Google to enhance the conversion count. - /// - [pbr::OriginalName("ENHANCEMENT")] Enhancement = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadError.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadError.g.cs deleted file mode 100755 index b626be494..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadError.g.cs +++ /dev/null @@ -1,363 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/conversion_adjustment_upload_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/conversion_adjustment_upload_error.proto - public static partial class ConversionAdjustmentUploadErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/conversion_adjustment_upload_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionAdjustmentUploadErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "YWRqdXN0bWVudF91cGxvYWRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lcnJvcnMitwcKI0NvbnZlcnNpb25BZGp1c3RtZW50VXBs", - "b2FkRXJyb3JFbnVtIo8HCh9Db252ZXJzaW9uQWRqdXN0bWVudFVwbG9hZEVy", - "cm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEiAKHFRPT19SRUNF", - "TlRfQ09OVkVSU0lPTl9BQ1RJT04QAhIdChlJTlZBTElEX0NPTlZFUlNJT05f", - "QUNUSU9OEAMSIAocQ09OVkVSU0lPTl9BTFJFQURZX1JFVFJBQ1RFRBAEEhgK", - "FENPTlZFUlNJT05fTk9UX0ZPVU5EEAUSFgoSQ09OVkVSU0lPTl9FWFBJUkVE", - "EAYSIgoeQURKVVNUTUVOVF9QUkVDRURFU19DT05WRVJTSU9OEAcSIQodTU9S", - "RV9SRUNFTlRfUkVTVEFURU1FTlRfRk9VTkQQCBIZChVUT09fUkVDRU5UX0NP", - "TlZFUlNJT04QCRJOCkpDQU5OT1RfUkVTVEFURV9DT05WRVJTSU9OX0FDVElP", - "Tl9USEFUX0FMV0FZU19VU0VTX0RFRkFVTFRfQ09OVkVSU0lPTl9WQUxVRRAK", - "EiMKH1RPT19NQU5ZX0FESlVTVE1FTlRTX0lOX1JFUVVFU1QQCxIYChRUT09f", - "TUFOWV9BREpVU1RNRU5UUxAMEh4KGlJFU1RBVEVNRU5UX0FMUkVBRFlfRVhJ", - "U1RTEA0SIwofRFVQTElDQVRFX0FESlVTVE1FTlRfSU5fUkVRVUVTVBAOEi0K", - "KUNVU1RPTUVSX05PVF9BQ0NFUFRFRF9DVVNUT01FUl9EQVRBX1RFUk1TEA8S", - "MgouQ09OVkVSU0lPTl9BQ1RJT05fTk9UX0VMSUdJQkxFX0ZPUl9FTkhBTkNF", - "TUVOVBAQEhsKF0lOVkFMSURfVVNFUl9JREVOVElGSUVSEBESHwobVU5TVVBQ", - "T1JURURfVVNFUl9JREVOVElGSUVSEBISLgoqR0NMSURfREFURV9USU1FX1BB", - "SVJfQU5EX09SREVSX0lEX0JPVEhfU0VUEBQSHwobQ09OVkVSU0lPTl9BTFJF", - "QURZX0VOSEFOQ0VEEBUSJAogRFVQTElDQVRFX0VOSEFOQ0VNRU5UX0lOX1JF", - "UVVFU1QQFhIuCipDVVNUT01FUl9EQVRBX1BPTElDWV9QUk9ISUJJVFNfRU5I", - "QU5DRU1FTlQQFxIgChxNSVNTSU5HX09SREVSX0lEX0ZPUl9XRUJQQUdFEBgS", - "GQoVT1JERVJfSURfQ09OVEFJTlNfUElJEBlChAIKI2NvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzQiRDb252ZXJzaW9uQWRqdXN0bWVudFVw", - "bG9hZEVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogID", - "R0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorEnum.Types.ConversionAdjustmentUploadError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion adjustment upload errors. - /// - public sealed partial class ConversionAdjustmentUploadErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionAdjustmentUploadErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentUploadErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentUploadErrorEnum(ConversionAdjustmentUploadErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentUploadErrorEnum Clone() { - return new ConversionAdjustmentUploadErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionAdjustmentUploadErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionAdjustmentUploadErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionAdjustmentUploadErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionAdjustmentUploadErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible conversion adjustment upload errors. - /// - public enum ConversionAdjustmentUploadError { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The specified conversion action was created too recently. - /// Try the upload again after 4-6 hours have passed since the - /// conversion action was created. - /// - [pbr::OriginalName("TOO_RECENT_CONVERSION_ACTION")] TooRecentConversionAction = 2, - /// - /// No conversion action of a supported ConversionActionType that matches the - /// provided information can be found for the customer. - /// - [pbr::OriginalName("INVALID_CONVERSION_ACTION")] InvalidConversionAction = 3, - /// - /// A retraction was already reported for this conversion. - /// - [pbr::OriginalName("CONVERSION_ALREADY_RETRACTED")] ConversionAlreadyRetracted = 4, - /// - /// A conversion for the supplied combination of conversion - /// action and conversion identifier could not be found. - /// - [pbr::OriginalName("CONVERSION_NOT_FOUND")] ConversionNotFound = 5, - /// - /// The specified conversion has already expired. Conversions expire after 55 - /// days, after which adjustments cannot be reported against them. - /// - [pbr::OriginalName("CONVERSION_EXPIRED")] ConversionExpired = 6, - /// - /// The supplied adjustment date time precedes that of the original - /// conversion. - /// - [pbr::OriginalName("ADJUSTMENT_PRECEDES_CONVERSION")] AdjustmentPrecedesConversion = 7, - /// - /// A restatement with a more recent adjustment date time was already - /// reported for this conversion. - /// - [pbr::OriginalName("MORE_RECENT_RESTATEMENT_FOUND")] MoreRecentRestatementFound = 8, - /// - /// The conversion was created too recently. - /// - [pbr::OriginalName("TOO_RECENT_CONVERSION")] TooRecentConversion = 9, - /// - /// Restatements cannot be reported for a conversion action that always uses - /// the default value. - /// - [pbr::OriginalName("CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE")] CannotRestateConversionActionThatAlwaysUsesDefaultConversionValue = 10, - /// - /// The request contained more than 2000 adjustments. - /// - [pbr::OriginalName("TOO_MANY_ADJUSTMENTS_IN_REQUEST")] TooManyAdjustmentsInRequest = 11, - /// - /// The conversion has been adjusted too many times. - /// - [pbr::OriginalName("TOO_MANY_ADJUSTMENTS")] TooManyAdjustments = 12, - /// - /// A restatement with this timestamp already exists for this conversion. To - /// upload another adjustment, use a different timestamp. - /// - [pbr::OriginalName("RESTATEMENT_ALREADY_EXISTS")] RestatementAlreadyExists = 13, - /// - /// This adjustment has the same timestamp as another adjustment in the - /// request for this conversion. To upload another adjustment, use a - /// different timestamp. - /// - [pbr::OriginalName("DUPLICATE_ADJUSTMENT_IN_REQUEST")] DuplicateAdjustmentInRequest = 14, - /// - /// The customer has not accepted the customer data terms in the conversion - /// settings page. - /// - [pbr::OriginalName("CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS")] CustomerNotAcceptedCustomerDataTerms = 15, - /// - /// The enhanced conversion settings of the conversion action supplied is - /// not eligible for enhancements. - /// - [pbr::OriginalName("CONVERSION_ACTION_NOT_ELIGIBLE_FOR_ENHANCEMENT")] ConversionActionNotEligibleForEnhancement = 16, - /// - /// The provided user identifier is not a SHA-256 hash. It is either unhashed - /// or hashed using a different hash function. - /// - [pbr::OriginalName("INVALID_USER_IDENTIFIER")] InvalidUserIdentifier = 17, - /// - /// The provided user identifier is not supported. - /// ConversionAdjustmentUploadService only supports hashed_email, - /// hashed_phone_number, and address_info. - /// - [pbr::OriginalName("UNSUPPORTED_USER_IDENTIFIER")] UnsupportedUserIdentifier = 18, - /// - /// Cannot set both gclid_date_time_pair and order_id. - /// - [pbr::OriginalName("GCLID_DATE_TIME_PAIR_AND_ORDER_ID_BOTH_SET")] GclidDateTimePairAndOrderIdBothSet = 20, - /// - /// An enhancement with this conversion action and order_id already exists - /// for this conversion. - /// - [pbr::OriginalName("CONVERSION_ALREADY_ENHANCED")] ConversionAlreadyEnhanced = 21, - /// - /// This enhancement has the same conversion action and order_id as - /// another enhancement in the request. - /// - [pbr::OriginalName("DUPLICATE_ENHANCEMENT_IN_REQUEST")] DuplicateEnhancementInRequest = 22, - /// - /// Per our customer data policies, enhancement has been prohibited in your - /// account. If you have any questions, contact your Google - /// representative. - /// - [pbr::OriginalName("CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCEMENT")] CustomerDataPolicyProhibitsEnhancement = 23, - /// - /// The conversion adjustment is for a conversion action of type WEBPAGE, but - /// does not have an order_id. The order_id is required for an adjustment for - /// a WEBPAGE conversion action. - /// - [pbr::OriginalName("MISSING_ORDER_ID_FOR_WEBPAGE")] MissingOrderIdForWebpage = 24, - /// - /// The order_id contains personally identifiable information (PII), such as - /// an email address or phone number. - /// - [pbr::OriginalName("ORDER_ID_CONTAINS_PII")] OrderIdContainsPii = 25, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadService.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadService.g.cs deleted file mode 100755 index 606da9a33..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadService.g.cs +++ /dev/null @@ -1,2135 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_adjustment_upload_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/conversion_adjustment_upload_service.proto - public static partial class ConversionAdjustmentUploadServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/conversion_adjustment_upload_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionAdjustmentUploadServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lv", - "bl9hZGp1c3RtZW50X3VwbG9hZF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMaN2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9jb21tb24vb2ZmbGluZV91c2VyX2RhdGEucHJvdG8aP2dvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jb252ZXJzaW9uX2FkanVzdG1lbnRf", - "dHlwZS5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29v", - "Z2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZp", - "b3IucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvItEBCiJVcGxvYWRD", - "b252ZXJzaW9uQWRqdXN0bWVudHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEg", - "ASgJQgPgQQISXAoWY29udmVyc2lvbl9hZGp1c3RtZW50cxgCIAMoCzI3Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Db252ZXJzaW9uQWRq", - "dXN0bWVudEID4EECEhwKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCEID4EECEhUK", - "DXZhbGlkYXRlX29ubHkYBCABKAgiqAEKI1VwbG9hZENvbnZlcnNpb25BZGp1", - "c3RtZW50c1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgBIAEo", - "CzISLmdvb2dsZS5ycGMuU3RhdHVzEk4KB3Jlc3VsdHMYAiADKAsyPS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ29udmVyc2lvbkFkanVz", - "dG1lbnRSZXN1bHQiswQKFENvbnZlcnNpb25BZGp1c3RtZW50ElIKFGdjbGlk", - "X2RhdGVfdGltZV9wYWlyGAwgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLkdjbGlkRGF0ZVRpbWVQYWlyEhUKCG9yZGVyX2lkGA0g", - "ASgJSACIAQESHgoRY29udmVyc2lvbl9hY3Rpb24YCCABKAlIAYgBARIhChRh", - "ZGp1c3RtZW50X2RhdGVfdGltZRgJIAEoCUgCiAEBEm4KD2FkanVzdG1lbnRf", - "dHlwZRgFIAEoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5D", - "b252ZXJzaW9uQWRqdXN0bWVudFR5cGVFbnVtLkNvbnZlcnNpb25BZGp1c3Rt", - "ZW50VHlwZRJOChFyZXN0YXRlbWVudF92YWx1ZRgGIAEoCzIzLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5SZXN0YXRlbWVudFZhbHVlEkkK", - "EHVzZXJfaWRlbnRpZmllcnMYCiADKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLlVzZXJJZGVudGlmaWVyEhcKCnVzZXJfYWdlbnQYCyAB", - "KAlIA4gBAUILCglfb3JkZXJfaWRCFAoSX2NvbnZlcnNpb25fYWN0aW9uQhcK", - "FV9hZGp1c3RtZW50X2RhdGVfdGltZUINCgtfdXNlcl9hZ2VudCJwChBSZXN0", - "YXRlbWVudFZhbHVlEhsKDmFkanVzdGVkX3ZhbHVlGAMgASgBSACIAQESGgoN", - "Y3VycmVuY3lfY29kZRgEIAEoCUgBiAEBQhEKD19hZGp1c3RlZF92YWx1ZUIQ", - "Cg5fY3VycmVuY3lfY29kZSJtChFHY2xpZERhdGVUaW1lUGFpchISCgVnY2xp", - "ZBgDIAEoCUgAiAEBEiEKFGNvbnZlcnNpb25fZGF0ZV90aW1lGAQgASgJSAGI", - "AQFCCAoGX2djbGlkQhcKFV9jb252ZXJzaW9uX2RhdGVfdGltZSLkAgoaQ29u", - "dmVyc2lvbkFkanVzdG1lbnRSZXN1bHQSUgoUZ2NsaWRfZGF0ZV90aW1lX3Bh", - "aXIYCSABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "R2NsaWREYXRlVGltZVBhaXISEAoIb3JkZXJfaWQYCiABKAkSHgoRY29udmVy", - "c2lvbl9hY3Rpb24YByABKAlIAIgBARIhChRhZGp1c3RtZW50X2RhdGVfdGlt", - "ZRgIIAEoCUgBiAEBEm4KD2FkanVzdG1lbnRfdHlwZRgFIAEoDjJVLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Db252ZXJzaW9uQWRqdXN0bWVu", - "dFR5cGVFbnVtLkNvbnZlcnNpb25BZGp1c3RtZW50VHlwZUIUChJfY29udmVy", - "c2lvbl9hY3Rpb25CFwoVX2FkanVzdG1lbnRfZGF0ZV90aW1lMpUDCiFDb252", - "ZXJzaW9uQWRqdXN0bWVudFVwbG9hZFNlcnZpY2USqAIKG1VwbG9hZENvbnZl", - "cnNpb25BZGp1c3RtZW50cxJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5VcGxvYWRDb252ZXJzaW9uQWRqdXN0bWVudHNSZXF1ZXN0GkYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLlVwbG9hZENvbnZl", - "cnNpb25BZGp1c3RtZW50c1Jlc3BvbnNlInqC0+STAj8iOi92MTIvY3VzdG9t", - "ZXJzL3tjdXN0b21lcl9pZD0qfTp1cGxvYWRDb252ZXJzaW9uQWRqdXN0bWVu", - "dHM6ASraQTJjdXN0b21lcl9pZCxjb252ZXJzaW9uX2FkanVzdG1lbnRzLHBh", - "cnRpYWxfZmFpbHVyZRpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEn", - "aHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQpICCiVj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQiZDb252ZXJz", - "aW9uQWRqdXN0bWVudFVwbG9hZFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVB", - "ZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNl", - "cnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNl", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.OfflineUserDataReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest), global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest.Parser, new[]{ "CustomerId", "ConversionAdjustments", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsResponse), global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustment), global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustment.Parser, new[]{ "GclidDateTimePair", "OrderId", "ConversionAction", "AdjustmentDateTime", "AdjustmentType", "RestatementValue", "UserIdentifiers", "UserAgent" }, new[]{ "OrderId", "ConversionAction", "AdjustmentDateTime", "UserAgent" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.RestatementValue), global::Google.Ads.GoogleAds.V12.Services.RestatementValue.Parser, new[]{ "AdjustedValue", "CurrencyCode" }, new[]{ "AdjustedValue", "CurrencyCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair), global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair.Parser, new[]{ "Gclid", "ConversionDateTime" }, new[]{ "Gclid", "ConversionDateTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentResult), global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentResult.Parser, new[]{ "GclidDateTimePair", "OrderId", "ConversionAction", "AdjustmentDateTime", "AdjustmentType" }, new[]{ "ConversionAction", "AdjustmentDateTime" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v12.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. - /// - public sealed partial class UploadConversionAdjustmentsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UploadConversionAdjustmentsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentUploadServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadConversionAdjustmentsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadConversionAdjustmentsRequest(UploadConversionAdjustmentsRequest other) : this() { - customerId_ = other.customerId_; - conversionAdjustments_ = other.conversionAdjustments_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadConversionAdjustmentsRequest Clone() { - return new UploadConversionAdjustmentsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer performing the upload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_adjustments" field. - public const int ConversionAdjustmentsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_conversionAdjustments_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustment.Parser); - private readonly pbc::RepeatedField conversionAdjustments_ = new pbc::RepeatedField(); - /// - /// Required. The conversion adjustments that are being uploaded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ConversionAdjustments { - get { return conversionAdjustments_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried out - /// in one transaction if and only if they are all valid. This should always be - /// set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UploadConversionAdjustmentsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UploadConversionAdjustmentsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!conversionAdjustments_.Equals(other.conversionAdjustments_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= conversionAdjustments_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - conversionAdjustments_.WriteTo(output, _repeated_conversionAdjustments_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - conversionAdjustments_.WriteTo(ref output, _repeated_conversionAdjustments_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += conversionAdjustments_.CalculateSize(_repeated_conversionAdjustments_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UploadConversionAdjustmentsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - conversionAdjustments_.Add(other.conversionAdjustments_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - conversionAdjustments_.AddEntriesFrom(input, _repeated_conversionAdjustments_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - conversionAdjustments_.AddEntriesFrom(ref input, _repeated_conversionAdjustments_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v12.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. - /// - public sealed partial class UploadConversionAdjustmentsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UploadConversionAdjustmentsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentUploadServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadConversionAdjustmentsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadConversionAdjustmentsResponse(UploadConversionAdjustmentsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadConversionAdjustmentsResponse Clone() { - return new UploadConversionAdjustmentsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to conversion adjustment failures in the partial - /// failure mode. Returned when all errors occur inside the adjustments. If any - /// errors occur outside the adjustments (for example, auth errors), we return - /// an RPC level error. See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// Returned for successfully processed conversion adjustments. Proto will be - /// empty for rows that received an error. Results are not returned when - /// validate_only is true. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UploadConversionAdjustmentsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UploadConversionAdjustmentsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UploadConversionAdjustmentsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A conversion adjustment. - /// - public sealed partial class ConversionAdjustment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionAdjustment()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentUploadServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustment(ConversionAdjustment other) : this() { - gclidDateTimePair_ = other.gclidDateTimePair_ != null ? other.gclidDateTimePair_.Clone() : null; - orderId_ = other.orderId_; - conversionAction_ = other.conversionAction_; - adjustmentDateTime_ = other.adjustmentDateTime_; - adjustmentType_ = other.adjustmentType_; - restatementValue_ = other.restatementValue_ != null ? other.restatementValue_.Clone() : null; - userIdentifiers_ = other.userIdentifiers_.Clone(); - userAgent_ = other.userAgent_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustment Clone() { - return new ConversionAdjustment(this); - } - - /// Field number for the "gclid_date_time_pair" field. - public const int GclidDateTimePairFieldNumber = 12; - private global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair gclidDateTimePair_; - /// - /// For adjustments, uniquely identifies a conversion that was reported - /// without an order ID specified. If the adjustment_type is ENHANCEMENT, this - /// value is optional but may be set in addition to the order_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair GclidDateTimePair { - get { return gclidDateTimePair_; } - set { - gclidDateTimePair_ = value; - } - } - - /// Field number for the "order_id" field. - public const int OrderIdFieldNumber = 13; - private string orderId_; - /// - /// The order ID of the conversion to be adjusted. If the conversion was - /// reported with an order ID specified, that order ID must be used as the - /// identifier here. The order ID is required for enhancements. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OrderId { - get { return orderId_ ?? ""; } - set { - orderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "order_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOrderId { - get { return orderId_ != null; } - } - /// Clears the value of the "order_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOrderId() { - orderId_ = null; - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 8; - private string conversionAction_; - /// - /// Resource name of the conversion action associated with this conversion - /// adjustment. Note: Although this resource name consists of a customer id and - /// a conversion action id, validation will ignore the customer id and use the - /// conversion action id as the sole identifier of the conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionAction { - get { return conversionAction_ ?? ""; } - set { - conversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionAction { - get { return conversionAction_ != null; } - } - /// Clears the value of the "conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionAction() { - conversionAction_ = null; - } - - /// Field number for the "adjustment_date_time" field. - public const int AdjustmentDateTimeFieldNumber = 9; - private string adjustmentDateTime_; - /// - /// The date time at which the adjustment occurred. Must be after the - /// conversion_date_time. The timezone must be specified. The format is - /// "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdjustmentDateTime { - get { return adjustmentDateTime_ ?? ""; } - set { - adjustmentDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "adjustment_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdjustmentDateTime { - get { return adjustmentDateTime_ != null; } - } - /// Clears the value of the "adjustment_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdjustmentDateTime() { - adjustmentDateTime_ = null; - } - - /// Field number for the "adjustment_type" field. - public const int AdjustmentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType adjustmentType_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified; - /// - /// The adjustment type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType AdjustmentType { - get { return adjustmentType_; } - set { - adjustmentType_ = value; - } - } - - /// Field number for the "restatement_value" field. - public const int RestatementValueFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Services.RestatementValue restatementValue_; - /// - /// Information needed to restate the conversion's value. - /// Required for restatements. Should not be supplied for retractions. An error - /// will be returned if provided for a retraction. - /// NOTE: If you want to upload a second restatement with a different adjusted - /// value, it must have a new, more recent, adjustment occurrence time. - /// Otherwise, it will be treated as a duplicate of the previous restatement - /// and ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.RestatementValue RestatementValue { - get { return restatementValue_; } - set { - restatementValue_ = value; - } - } - - /// Field number for the "user_identifiers" field. - public const int UserIdentifiersFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_userIdentifiers_codec - = pb::FieldCodec.ForMessage(82, global::Google.Ads.GoogleAds.V12.Common.UserIdentifier.Parser); - private readonly pbc::RepeatedField userIdentifiers_ = new pbc::RepeatedField(); - /// - /// The user identifiers to enhance the original conversion. - /// ConversionAdjustmentUploadService only accepts user identifiers in - /// enhancements. The maximum number of user identifiers for each - /// enhancement is 5. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserIdentifiers { - get { return userIdentifiers_; } - } - - /// Field number for the "user_agent" field. - public const int UserAgentFieldNumber = 11; - private string userAgent_; - /// - /// The user agent to enhance the original conversion. This can be found in - /// your user's HTTP request header when they convert on your web page. - /// Example, "Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X)". User - /// agent can only be specified in enhancements with user identifiers. This - /// should match the user agent of the request that sent the original - /// conversion so the conversion and its enhancement are either both attributed - /// as same-device or both attributed as cross-device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserAgent { - get { return userAgent_ ?? ""; } - set { - userAgent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "user_agent" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUserAgent { - get { return userAgent_ != null; } - } - /// Clears the value of the "user_agent" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUserAgent() { - userAgent_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionAdjustment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionAdjustment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(GclidDateTimePair, other.GclidDateTimePair)) return false; - if (OrderId != other.OrderId) return false; - if (ConversionAction != other.ConversionAction) return false; - if (AdjustmentDateTime != other.AdjustmentDateTime) return false; - if (AdjustmentType != other.AdjustmentType) return false; - if (!object.Equals(RestatementValue, other.RestatementValue)) return false; - if(!userIdentifiers_.Equals(other.userIdentifiers_)) return false; - if (UserAgent != other.UserAgent) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (gclidDateTimePair_ != null) hash ^= GclidDateTimePair.GetHashCode(); - if (HasOrderId) hash ^= OrderId.GetHashCode(); - if (HasConversionAction) hash ^= ConversionAction.GetHashCode(); - if (HasAdjustmentDateTime) hash ^= AdjustmentDateTime.GetHashCode(); - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) hash ^= AdjustmentType.GetHashCode(); - if (restatementValue_ != null) hash ^= RestatementValue.GetHashCode(); - hash ^= userIdentifiers_.GetHashCode(); - if (HasUserAgent) hash ^= UserAgent.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) AdjustmentType); - } - if (restatementValue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(RestatementValue); - } - if (HasConversionAction) { - output.WriteRawTag(66); - output.WriteString(ConversionAction); - } - if (HasAdjustmentDateTime) { - output.WriteRawTag(74); - output.WriteString(AdjustmentDateTime); - } - userIdentifiers_.WriteTo(output, _repeated_userIdentifiers_codec); - if (HasUserAgent) { - output.WriteRawTag(90); - output.WriteString(UserAgent); - } - if (gclidDateTimePair_ != null) { - output.WriteRawTag(98); - output.WriteMessage(GclidDateTimePair); - } - if (HasOrderId) { - output.WriteRawTag(106); - output.WriteString(OrderId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) AdjustmentType); - } - if (restatementValue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(RestatementValue); - } - if (HasConversionAction) { - output.WriteRawTag(66); - output.WriteString(ConversionAction); - } - if (HasAdjustmentDateTime) { - output.WriteRawTag(74); - output.WriteString(AdjustmentDateTime); - } - userIdentifiers_.WriteTo(ref output, _repeated_userIdentifiers_codec); - if (HasUserAgent) { - output.WriteRawTag(90); - output.WriteString(UserAgent); - } - if (gclidDateTimePair_ != null) { - output.WriteRawTag(98); - output.WriteMessage(GclidDateTimePair); - } - if (HasOrderId) { - output.WriteRawTag(106); - output.WriteString(OrderId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (gclidDateTimePair_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GclidDateTimePair); - } - if (HasOrderId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderId); - } - if (HasConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionAction); - } - if (HasAdjustmentDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdjustmentDateTime); - } - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdjustmentType); - } - if (restatementValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RestatementValue); - } - size += userIdentifiers_.CalculateSize(_repeated_userIdentifiers_codec); - if (HasUserAgent) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserAgent); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionAdjustment other) { - if (other == null) { - return; - } - if (other.gclidDateTimePair_ != null) { - if (gclidDateTimePair_ == null) { - GclidDateTimePair = new global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair(); - } - GclidDateTimePair.MergeFrom(other.GclidDateTimePair); - } - if (other.HasOrderId) { - OrderId = other.OrderId; - } - if (other.HasConversionAction) { - ConversionAction = other.ConversionAction; - } - if (other.HasAdjustmentDateTime) { - AdjustmentDateTime = other.AdjustmentDateTime; - } - if (other.AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - AdjustmentType = other.AdjustmentType; - } - if (other.restatementValue_ != null) { - if (restatementValue_ == null) { - RestatementValue = new global::Google.Ads.GoogleAds.V12.Services.RestatementValue(); - } - RestatementValue.MergeFrom(other.RestatementValue); - } - userIdentifiers_.Add(other.userIdentifiers_); - if (other.HasUserAgent) { - UserAgent = other.UserAgent; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 40: { - AdjustmentType = (global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType) input.ReadEnum(); - break; - } - case 50: { - if (restatementValue_ == null) { - RestatementValue = new global::Google.Ads.GoogleAds.V12.Services.RestatementValue(); - } - input.ReadMessage(RestatementValue); - break; - } - case 66: { - ConversionAction = input.ReadString(); - break; - } - case 74: { - AdjustmentDateTime = input.ReadString(); - break; - } - case 82: { - userIdentifiers_.AddEntriesFrom(input, _repeated_userIdentifiers_codec); - break; - } - case 90: { - UserAgent = input.ReadString(); - break; - } - case 98: { - if (gclidDateTimePair_ == null) { - GclidDateTimePair = new global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair(); - } - input.ReadMessage(GclidDateTimePair); - break; - } - case 106: { - OrderId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 40: { - AdjustmentType = (global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType) input.ReadEnum(); - break; - } - case 50: { - if (restatementValue_ == null) { - RestatementValue = new global::Google.Ads.GoogleAds.V12.Services.RestatementValue(); - } - input.ReadMessage(RestatementValue); - break; - } - case 66: { - ConversionAction = input.ReadString(); - break; - } - case 74: { - AdjustmentDateTime = input.ReadString(); - break; - } - case 82: { - userIdentifiers_.AddEntriesFrom(ref input, _repeated_userIdentifiers_codec); - break; - } - case 90: { - UserAgent = input.ReadString(); - break; - } - case 98: { - if (gclidDateTimePair_ == null) { - GclidDateTimePair = new global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair(); - } - input.ReadMessage(GclidDateTimePair); - break; - } - case 106: { - OrderId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Contains information needed to restate a conversion's value. - /// - public sealed partial class RestatementValue : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RestatementValue()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentUploadServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RestatementValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RestatementValue(RestatementValue other) : this() { - _hasBits0 = other._hasBits0; - adjustedValue_ = other.adjustedValue_; - currencyCode_ = other.currencyCode_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RestatementValue Clone() { - return new RestatementValue(this); - } - - /// Field number for the "adjusted_value" field. - public const int AdjustedValueFieldNumber = 3; - private double adjustedValue_; - /// - /// The restated conversion value. This is the value of the conversion after - /// restatement. For example, to change the value of a conversion from 100 to - /// 70, an adjusted value of 70 should be reported. - /// NOTE: If you want to upload a second restatement with a different adjusted - /// value, it must have a new, more recent, adjustment occurrence time. - /// Otherwise, it will be treated as a duplicate of the previous restatement - /// and ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double AdjustedValue { - get { if ((_hasBits0 & 1) != 0) { return adjustedValue_; } else { return 0D; } } - set { - _hasBits0 |= 1; - adjustedValue_ = value; - } - } - /// Gets whether the "adjusted_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdjustedValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "adjusted_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdjustedValue() { - _hasBits0 &= ~1; - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 4; - private string currencyCode_; - /// - /// The currency of the restated value. If not provided, then the default - /// currency from the conversion action is used, and if that is not set then - /// the account currency is used. This is the ISO 4217 3-character currency - /// code for example, USD or EUR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_ ?? ""; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyCode { - get { return currencyCode_ != null; } - } - /// Clears the value of the "currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyCode() { - currencyCode_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RestatementValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RestatementValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AdjustedValue, other.AdjustedValue)) return false; - if (CurrencyCode != other.CurrencyCode) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAdjustedValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AdjustedValue); - if (HasCurrencyCode) hash ^= CurrencyCode.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasAdjustedValue) { - output.WriteRawTag(25); - output.WriteDouble(AdjustedValue); - } - if (HasCurrencyCode) { - output.WriteRawTag(34); - output.WriteString(CurrencyCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasAdjustedValue) { - output.WriteRawTag(25); - output.WriteDouble(AdjustedValue); - } - if (HasCurrencyCode) { - output.WriteRawTag(34); - output.WriteString(CurrencyCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAdjustedValue) { - size += 1 + 8; - } - if (HasCurrencyCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RestatementValue other) { - if (other == null) { - return; - } - if (other.HasAdjustedValue) { - AdjustedValue = other.AdjustedValue; - } - if (other.HasCurrencyCode) { - CurrencyCode = other.CurrencyCode; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 25: { - AdjustedValue = input.ReadDouble(); - break; - } - case 34: { - CurrencyCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 25: { - AdjustedValue = input.ReadDouble(); - break; - } - case 34: { - CurrencyCode = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Uniquely identifies a conversion that was reported without an order ID - /// specified. - /// - public sealed partial class GclidDateTimePair : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GclidDateTimePair()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentUploadServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GclidDateTimePair() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GclidDateTimePair(GclidDateTimePair other) : this() { - gclid_ = other.gclid_; - conversionDateTime_ = other.conversionDateTime_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GclidDateTimePair Clone() { - return new GclidDateTimePair(this); - } - - /// Field number for the "gclid" field. - public const int GclidFieldNumber = 3; - private string gclid_; - /// - /// Google click ID (gclid) associated with the original conversion for this - /// adjustment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Gclid { - get { return gclid_ ?? ""; } - set { - gclid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "gclid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGclid { - get { return gclid_ != null; } - } - /// Clears the value of the "gclid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGclid() { - gclid_ = null; - } - - /// Field number for the "conversion_date_time" field. - public const int ConversionDateTimeFieldNumber = 4; - private string conversionDateTime_; - /// - /// The date time at which the original conversion for this adjustment - /// occurred. The timezone must be specified. The format is "yyyy-mm-dd - /// hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionDateTime { - get { return conversionDateTime_ ?? ""; } - set { - conversionDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionDateTime { - get { return conversionDateTime_ != null; } - } - /// Clears the value of the "conversion_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionDateTime() { - conversionDateTime_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GclidDateTimePair); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GclidDateTimePair other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Gclid != other.Gclid) return false; - if (ConversionDateTime != other.ConversionDateTime) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasGclid) hash ^= Gclid.GetHashCode(); - if (HasConversionDateTime) hash ^= ConversionDateTime.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasGclid) { - output.WriteRawTag(26); - output.WriteString(Gclid); - } - if (HasConversionDateTime) { - output.WriteRawTag(34); - output.WriteString(ConversionDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasGclid) { - output.WriteRawTag(26); - output.WriteString(Gclid); - } - if (HasConversionDateTime) { - output.WriteRawTag(34); - output.WriteString(ConversionDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasGclid) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Gclid); - } - if (HasConversionDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionDateTime); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GclidDateTimePair other) { - if (other == null) { - return; - } - if (other.HasGclid) { - Gclid = other.Gclid; - } - if (other.HasConversionDateTime) { - ConversionDateTime = other.ConversionDateTime; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Gclid = input.ReadString(); - break; - } - case 34: { - ConversionDateTime = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Gclid = input.ReadString(); - break; - } - case 34: { - ConversionDateTime = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Information identifying a successfully processed ConversionAdjustment. - /// - public sealed partial class ConversionAdjustmentResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionAdjustmentResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentUploadServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentResult(ConversionAdjustmentResult other) : this() { - gclidDateTimePair_ = other.gclidDateTimePair_ != null ? other.gclidDateTimePair_.Clone() : null; - orderId_ = other.orderId_; - conversionAction_ = other.conversionAction_; - adjustmentDateTime_ = other.adjustmentDateTime_; - adjustmentType_ = other.adjustmentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAdjustmentResult Clone() { - return new ConversionAdjustmentResult(this); - } - - /// Field number for the "gclid_date_time_pair" field. - public const int GclidDateTimePairFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair gclidDateTimePair_; - /// - /// The gclid and conversion date time of the conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair GclidDateTimePair { - get { return gclidDateTimePair_; } - set { - gclidDateTimePair_ = value; - } - } - - /// Field number for the "order_id" field. - public const int OrderIdFieldNumber = 10; - private string orderId_ = ""; - /// - /// The order ID of the conversion to be adjusted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OrderId { - get { return orderId_; } - set { - orderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 7; - private string conversionAction_; - /// - /// Resource name of the conversion action associated with this conversion - /// adjustment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionAction { - get { return conversionAction_ ?? ""; } - set { - conversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionAction { - get { return conversionAction_ != null; } - } - /// Clears the value of the "conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionAction() { - conversionAction_ = null; - } - - /// Field number for the "adjustment_date_time" field. - public const int AdjustmentDateTimeFieldNumber = 8; - private string adjustmentDateTime_; - /// - /// The date time at which the adjustment occurred. The format is - /// "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdjustmentDateTime { - get { return adjustmentDateTime_ ?? ""; } - set { - adjustmentDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "adjustment_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAdjustmentDateTime { - get { return adjustmentDateTime_ != null; } - } - /// Clears the value of the "adjustment_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAdjustmentDateTime() { - adjustmentDateTime_ = null; - } - - /// Field number for the "adjustment_type" field. - public const int AdjustmentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType adjustmentType_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified; - /// - /// The adjustment type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType AdjustmentType { - get { return adjustmentType_; } - set { - adjustmentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionAdjustmentResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionAdjustmentResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(GclidDateTimePair, other.GclidDateTimePair)) return false; - if (OrderId != other.OrderId) return false; - if (ConversionAction != other.ConversionAction) return false; - if (AdjustmentDateTime != other.AdjustmentDateTime) return false; - if (AdjustmentType != other.AdjustmentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (gclidDateTimePair_ != null) hash ^= GclidDateTimePair.GetHashCode(); - if (OrderId.Length != 0) hash ^= OrderId.GetHashCode(); - if (HasConversionAction) hash ^= ConversionAction.GetHashCode(); - if (HasAdjustmentDateTime) hash ^= AdjustmentDateTime.GetHashCode(); - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) hash ^= AdjustmentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) AdjustmentType); - } - if (HasConversionAction) { - output.WriteRawTag(58); - output.WriteString(ConversionAction); - } - if (HasAdjustmentDateTime) { - output.WriteRawTag(66); - output.WriteString(AdjustmentDateTime); - } - if (gclidDateTimePair_ != null) { - output.WriteRawTag(74); - output.WriteMessage(GclidDateTimePair); - } - if (OrderId.Length != 0) { - output.WriteRawTag(82); - output.WriteString(OrderId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) AdjustmentType); - } - if (HasConversionAction) { - output.WriteRawTag(58); - output.WriteString(ConversionAction); - } - if (HasAdjustmentDateTime) { - output.WriteRawTag(66); - output.WriteString(AdjustmentDateTime); - } - if (gclidDateTimePair_ != null) { - output.WriteRawTag(74); - output.WriteMessage(GclidDateTimePair); - } - if (OrderId.Length != 0) { - output.WriteRawTag(82); - output.WriteString(OrderId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (gclidDateTimePair_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GclidDateTimePair); - } - if (OrderId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderId); - } - if (HasConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionAction); - } - if (HasAdjustmentDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdjustmentDateTime); - } - if (AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdjustmentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionAdjustmentResult other) { - if (other == null) { - return; - } - if (other.gclidDateTimePair_ != null) { - if (gclidDateTimePair_ == null) { - GclidDateTimePair = new global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair(); - } - GclidDateTimePair.MergeFrom(other.GclidDateTimePair); - } - if (other.OrderId.Length != 0) { - OrderId = other.OrderId; - } - if (other.HasConversionAction) { - ConversionAction = other.ConversionAction; - } - if (other.HasAdjustmentDateTime) { - AdjustmentDateTime = other.AdjustmentDateTime; - } - if (other.AdjustmentType != global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType.Unspecified) { - AdjustmentType = other.AdjustmentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 40: { - AdjustmentType = (global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType) input.ReadEnum(); - break; - } - case 58: { - ConversionAction = input.ReadString(); - break; - } - case 66: { - AdjustmentDateTime = input.ReadString(); - break; - } - case 74: { - if (gclidDateTimePair_ == null) { - GclidDateTimePair = new global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair(); - } - input.ReadMessage(GclidDateTimePair); - break; - } - case 82: { - OrderId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 40: { - AdjustmentType = (global::Google.Ads.GoogleAds.V12.Enums.ConversionAdjustmentTypeEnum.Types.ConversionAdjustmentType) input.ReadEnum(); - break; - } - case 58: { - ConversionAction = input.ReadString(); - break; - } - case 66: { - AdjustmentDateTime = input.ReadString(); - break; - } - case 74: { - if (gclidDateTimePair_ == null) { - GclidDateTimePair = new global::Google.Ads.GoogleAds.V12.Services.GclidDateTimePair(); - } - input.ReadMessage(GclidDateTimePair); - break; - } - case 82: { - OrderId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadServiceClient.g.cs deleted file mode 100755 index cfab5d31d..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadServiceClient.g.cs +++ /dev/null @@ -1,471 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ConversionAdjustmentUploadServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// - /// Get a new instance of the default . - /// - /// A new instance of the default . - public static ConversionAdjustmentUploadServiceSettings GetDefault() => - new ConversionAdjustmentUploadServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ConversionAdjustmentUploadServiceSettings() - { - } - - private ConversionAdjustmentUploadServiceSettings(ConversionAdjustmentUploadServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - UploadConversionAdjustmentsSettings = existing.UploadConversionAdjustmentsSettings; - OnCopy(existing); - } - - partial void OnCopy(ConversionAdjustmentUploadServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ConversionAdjustmentUploadServiceClient.UploadConversionAdjustments and - /// ConversionAdjustmentUploadServiceClient.UploadConversionAdjustmentsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings UploadConversionAdjustmentsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ConversionAdjustmentUploadServiceSettings Clone() => new ConversionAdjustmentUploadServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class ConversionAdjustmentUploadServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ConversionAdjustmentUploadServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ConversionAdjustmentUploadServiceClientBuilder() : base(ConversionAdjustmentUploadServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ConversionAdjustmentUploadServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ConversionAdjustmentUploadServiceClient Build() - { - ConversionAdjustmentUploadServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ConversionAdjustmentUploadServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ConversionAdjustmentUploadServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ConversionAdjustmentUploadServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ConversionAdjustmentUploadServiceClient.ChannelPool; - } - - /// ConversionAdjustmentUploadService client wrapper, for convenient use. - /// - /// Service to upload conversion adjustments. - /// - public abstract partial class ConversionAdjustmentUploadServiceClient - { - /// - /// The default endpoint for the ConversionAdjustmentUploadService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ConversionAdjustmentUploadService scopes. - /// - /// The default ConversionAdjustmentUploadService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ConversionAdjustmentUploadService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ConversionAdjustmentUploadServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ConversionAdjustmentUploadServiceClient Create() => - new ConversionAdjustmentUploadServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ConversionAdjustmentUploadServiceClient Create(grpccore::CallInvoker callInvoker, ConversionAdjustmentUploadServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ConversionAdjustmentUploadService.ConversionAdjustmentUploadServiceClient grpcClient = new ConversionAdjustmentUploadService.ConversionAdjustmentUploadServiceClient(callInvoker); - return new ConversionAdjustmentUploadServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ConversionAdjustmentUploadService client - public virtual ConversionAdjustmentUploadService.ConversionAdjustmentUploadServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UploadConversionAdjustmentsResponse UploadConversionAdjustments(UploadConversionAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UploadConversionAdjustmentsAsync(UploadConversionAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UploadConversionAdjustmentsAsync(UploadConversionAdjustmentsRequest request, st::CancellationToken cancellationToken) => - UploadConversionAdjustmentsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversion adjustments that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried out - /// in one transaction if and only if they are all valid. This should always be - /// set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UploadConversionAdjustmentsResponse UploadConversionAdjustments(string customerId, scg::IEnumerable conversionAdjustments, bool partialFailure, gaxgrpc::CallSettings callSettings = null) => - UploadConversionAdjustments(new UploadConversionAdjustmentsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - ConversionAdjustments = - { - gax::GaxPreconditions.CheckNotNull(conversionAdjustments, nameof(conversionAdjustments)), - }, - PartialFailure = partialFailure, - }, callSettings); - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversion adjustments that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried out - /// in one transaction if and only if they are all valid. This should always be - /// set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UploadConversionAdjustmentsAsync(string customerId, scg::IEnumerable conversionAdjustments, bool partialFailure, gaxgrpc::CallSettings callSettings = null) => - UploadConversionAdjustmentsAsync(new UploadConversionAdjustmentsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - ConversionAdjustments = - { - gax::GaxPreconditions.CheckNotNull(conversionAdjustments, nameof(conversionAdjustments)), - }, - PartialFailure = partialFailure, - }, callSettings); - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversion adjustments that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried out - /// in one transaction if and only if they are all valid. This should always be - /// set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UploadConversionAdjustmentsAsync(string customerId, scg::IEnumerable conversionAdjustments, bool partialFailure, st::CancellationToken cancellationToken) => - UploadConversionAdjustmentsAsync(customerId, conversionAdjustments, partialFailure, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ConversionAdjustmentUploadService client wrapper implementation, for convenient use. - /// - /// Service to upload conversion adjustments. - /// - public sealed partial class ConversionAdjustmentUploadServiceClientImpl : ConversionAdjustmentUploadServiceClient - { - private readonly gaxgrpc::ApiCall _callUploadConversionAdjustments; - - /// - /// Constructs a client wrapper for the ConversionAdjustmentUploadService service, with the specified gRPC - /// client and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ConversionAdjustmentUploadServiceClientImpl(ConversionAdjustmentUploadService.ConversionAdjustmentUploadServiceClient grpcClient, ConversionAdjustmentUploadServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ConversionAdjustmentUploadServiceSettings effectiveSettings = settings ?? ConversionAdjustmentUploadServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callUploadConversionAdjustments = clientHelper.BuildApiCall("UploadConversionAdjustments", grpcClient.UploadConversionAdjustmentsAsync, grpcClient.UploadConversionAdjustments, effectiveSettings.UploadConversionAdjustmentsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callUploadConversionAdjustments); - Modify_UploadConversionAdjustmentsApiCall(ref _callUploadConversionAdjustments); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_UploadConversionAdjustmentsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ConversionAdjustmentUploadService.ConversionAdjustmentUploadServiceClient grpcClient, ConversionAdjustmentUploadServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ConversionAdjustmentUploadService client - public override ConversionAdjustmentUploadService.ConversionAdjustmentUploadServiceClient GrpcClient { get; } - - partial void Modify_UploadConversionAdjustmentsRequest(ref UploadConversionAdjustmentsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override UploadConversionAdjustmentsResponse UploadConversionAdjustments(UploadConversionAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UploadConversionAdjustmentsRequest(ref request, ref callSettings); - return _callUploadConversionAdjustments.Sync(request, callSettings); - } - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task UploadConversionAdjustmentsAsync(UploadConversionAdjustmentsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UploadConversionAdjustmentsRequest(ref request, ref callSettings); - return _callUploadConversionAdjustments.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadServiceGrpc.g.cs deleted file mode 100755 index bcdc6a808..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionAdjustmentUploadServiceGrpc.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_adjustment_upload_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to upload conversion adjustments. - /// - public static partial class ConversionAdjustmentUploadService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ConversionAdjustmentUploadService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_UploadConversionAdjustmentsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_UploadConversionAdjustmentsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UploadConversionAdjustments = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UploadConversionAdjustments", - __Marshaller_google_ads_googleads_v12_services_UploadConversionAdjustmentsRequest, - __Marshaller_google_ads_googleads_v12_services_UploadConversionAdjustmentsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionAdjustmentUploadServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ConversionAdjustmentUploadService - [grpc::BindServiceMethod(typeof(ConversionAdjustmentUploadService), "BindService")] - public abstract partial class ConversionAdjustmentUploadServiceBase - { - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UploadConversionAdjustments(global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ConversionAdjustmentUploadService - public partial class ConversionAdjustmentUploadServiceClient : grpc::ClientBase - { - /// Creates a new client for ConversionAdjustmentUploadService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionAdjustmentUploadServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ConversionAdjustmentUploadService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionAdjustmentUploadServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionAdjustmentUploadServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionAdjustmentUploadServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsResponse UploadConversionAdjustments(global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UploadConversionAdjustments(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsResponse UploadConversionAdjustments(global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UploadConversionAdjustments, null, options, request); - } - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UploadConversionAdjustmentsAsync(global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UploadConversionAdjustmentsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Processes the given conversion adjustments. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UploadConversionAdjustmentsAsync(global::Google.Ads.GoogleAds.V12.Services.UploadConversionAdjustmentsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UploadConversionAdjustments, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ConversionAdjustmentUploadServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ConversionAdjustmentUploadServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ConversionAdjustmentUploadServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_UploadConversionAdjustments, serviceImpl.UploadConversionAdjustments).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ConversionAdjustmentUploadServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_UploadConversionAdjustments, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UploadConversionAdjustments)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ConversionAttributionEventType.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionAttributionEventType.g.cs deleted file mode 100755 index 4208a4125..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionAttributionEventType.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_attribution_event_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_attribution_event_type.proto - public static partial class ConversionAttributionEventTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_attribution_event_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionAttributionEventTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9h", - "dHRyaWJ1dGlvbl9ldmVudF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMihQEKIkNvbnZlcnNpb25BdHRyaWJ1dGlvbkV2ZW50", - "VHlwZUVudW0iXwoeQ29udmVyc2lvbkF0dHJpYnV0aW9uRXZlbnRUeXBlEg8K", - "C1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEg4KCklNUFJFU1NJT04QAhIP", - "CgtJTlRFUkFDVElPThADQv0BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQiNDb252ZXJzaW9uQXR0cmlidXRpb25FdmVudFR5cGVQcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionAttributionEventTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionAttributionEventTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionAttributionEventTypeEnum.Types.ConversionAttributionEventType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum indicating the event type the conversion is attributed to. - /// - public sealed partial class ConversionAttributionEventTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionAttributionEventTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionAttributionEventTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAttributionEventTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAttributionEventTypeEnum(ConversionAttributionEventTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionAttributionEventTypeEnum Clone() { - return new ConversionAttributionEventTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionAttributionEventTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionAttributionEventTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionAttributionEventTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionAttributionEventTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The event type of conversions that are attributed to. - /// - public enum ConversionAttributionEventType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The conversion is attributed to an impression. - /// - [pbr::OriginalName("IMPRESSION")] Impression = 2, - /// - /// The conversion is attributed to an interaction. - /// - [pbr::OriginalName("INTERACTION")] Interaction = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariable.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariable.g.cs deleted file mode 100755 index d47ccd7c5..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariable.g.cs +++ /dev/null @@ -1,473 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/conversion_custom_variable.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/conversion_custom_variable.proto - public static partial class ConversionCustomVariableReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/conversion_custom_variable.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionCustomVariableReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NvbnZlcnNp", - "b25fY3VzdG9tX3ZhcmlhYmxlLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzGkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvY29udmVyc2lvbl9jdXN0b21fdmFyaWFibGVfc3RhdHVzLnByb3RvGh9n", - "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jl", - "c291cmNlLnByb3RvIugDChhDb252ZXJzaW9uQ3VzdG9tVmFyaWFibGUSUAoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUI54EEF+kEzCjFnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlEg8KAmlkGAIgASgD", - "QgPgQQMSEQoEbmFtZRgDIAEoCUID4EECEhMKA3RhZxgEIAEoCUIG4EEC4EEF", - "EnEKBnN0YXR1cxgFIAEoDjJhLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5Db252ZXJzaW9uQ3VzdG9tVmFyaWFibGVTdGF0dXNFbnVtLkNvbnZl", - "cnNpb25DdXN0b21WYXJpYWJsZVN0YXR1cxJBCg5vd25lcl9jdXN0b21lchgG", - "IAEoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9t", - "ZXI6igHqQYYBCjFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ29udmVyc2lv", - "bkN1c3RvbVZhcmlhYmxlElFjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9jb252", - "ZXJzaW9uQ3VzdG9tVmFyaWFibGVzL3tjb252ZXJzaW9uX2N1c3RvbV92YXJp", - "YWJsZV9pZH1CjwIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzQh1Db252ZXJzaW9uQ3VzdG9tVmFyaWFibGVQcm90b1ABWktnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable), global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable.Parser, new[]{ "ResourceName", "Id", "Name", "Tag", "Status", "OwnerCustomer" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A conversion custom variable - /// See "About custom variables for conversions" at - /// https://support.google.com/google-ads/answer/9964350 - /// - public sealed partial class ConversionCustomVariable : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionCustomVariable()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariableReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariable() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariable(ConversionCustomVariable other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - tag_ = other.tag_; - status_ = other.status_; - ownerCustomer_ = other.ownerCustomer_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariable Clone() { - return new ConversionCustomVariable(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the conversion custom variable. - /// Conversion custom variable resource names have the form: - /// - /// `customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. The ID of the conversion custom variable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. The name of the conversion custom variable. - /// Name should be unique. The maximum length of name is 100 characters. - /// There should not be any extra spaces before and after. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "tag" field. - public const int TagFieldNumber = 4; - private string tag_ = ""; - /// - /// Required. Immutable. The tag of the conversion custom variable. It is used in the event snippet - /// and sent to Google Ads along with conversion pings. For conversion uploads - /// in Google Ads API, the resource name of the conversion custom variable is - /// used. - /// Tag should be unique. The maximum size of tag is 100 bytes. - /// There should not be any extra spaces before and after. - /// Currently only lowercase letters, numbers and underscores are allowed in - /// the tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Tag { - get { return tag_; } - set { - tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus.Unspecified; - /// - /// The status of the conversion custom variable for conversion event accrual. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "owner_customer" field. - public const int OwnerCustomerFieldNumber = 6; - private string ownerCustomer_ = ""; - /// - /// Output only. The resource name of the customer that owns the conversion custom variable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OwnerCustomer { - get { return ownerCustomer_; } - set { - ownerCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionCustomVariable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionCustomVariable other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Tag != other.Tag) return false; - if (Status != other.Status) return false; - if (OwnerCustomer != other.OwnerCustomer) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Tag.Length != 0) hash ^= Tag.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus.Unspecified) hash ^= Status.GetHashCode(); - if (OwnerCustomer.Length != 0) hash ^= OwnerCustomer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Tag.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Tag); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (OwnerCustomer.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OwnerCustomer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Tag.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Tag); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (OwnerCustomer.Length != 0) { - output.WriteRawTag(50); - output.WriteString(OwnerCustomer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Tag.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Tag); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (OwnerCustomer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerCustomer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionCustomVariable other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Tag.Length != 0) { - Tag = other.Tag; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus.Unspecified) { - Status = other.Status; - } - if (other.OwnerCustomer.Length != 0) { - OwnerCustomer = other.OwnerCustomer; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Tag = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus) input.ReadEnum(); - break; - } - case 50: { - OwnerCustomer = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Tag = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus) input.ReadEnum(); - break; - } - case 50: { - OwnerCustomer = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableError.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableError.g.cs deleted file mode 100755 index 177f050a5..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableError.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/conversion_custom_variable_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/conversion_custom_variable_error.proto - public static partial class ConversionCustomVariableErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/conversion_custom_variable_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionCustomVariableErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "Y3VzdG9tX3ZhcmlhYmxlX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzIpsBCiFDb252ZXJzaW9uQ3VzdG9tVmFyaWFibGVF", - "cnJvckVudW0idgodQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlRXJyb3ISDwoL", - "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESEgoORFVQTElDQVRFX05BTUUQ", - "AhIRCg1EVVBMSUNBVEVfVEFHEAMSEAoMUkVTRVJWRURfVEFHEARCggIKI2Nv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQiJDb252ZXJzaW9u", - "Q3VzdG9tVmFyaWFibGVFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3Jz", - "O2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJv", - "cnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorEnum.Types.ConversionCustomVariableError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion custom variable errors. - /// - public sealed partial class ConversionCustomVariableErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionCustomVariableErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableErrorEnum(ConversionCustomVariableErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableErrorEnum Clone() { - return new ConversionCustomVariableErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionCustomVariableErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionCustomVariableErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionCustomVariableErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionCustomVariableErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible conversion custom variable errors. - /// - public enum ConversionCustomVariableError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A conversion custom variable with the specified name already exists. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 2, - /// - /// A conversion custom variable with the specified tag already exists. - /// - [pbr::OriginalName("DUPLICATE_TAG")] DuplicateTag = 3, - /// - /// A conversion custom variable with the specified tag is reserved for other - /// uses. - /// - [pbr::OriginalName("RESERVED_TAG")] ReservedTag = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableResourceNames.g.cs deleted file mode 100755 index d2c7ea19d..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableResourceNames.g.cs +++ /dev/null @@ -1,320 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ConversionCustomVariable resource. - public sealed partial class ConversionCustomVariableName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}. - /// - CustomerConversionCustomVariable = 1, - } - - private static gax::PathTemplate s_customerConversionCustomVariable = new gax::PathTemplate("customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ConversionCustomVariableName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ConversionCustomVariableName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionCustomVariable ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static ConversionCustomVariableName FromCustomerConversionCustomVariable(string customerId, string conversionCustomVariableId) => - new ConversionCustomVariableName(ResourceNameType.CustomerConversionCustomVariable, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionCustomVariableId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionCustomVariableId, nameof(conversionCustomVariableId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionCustomVariable ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}. - /// - public static string Format(string customerId, string conversionCustomVariableId) => - FormatCustomerConversionCustomVariable(customerId, conversionCustomVariableId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionCustomVariable ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}. - /// - public static string FormatCustomerConversionCustomVariable(string customerId, string conversionCustomVariableId) => - s_customerConversionCustomVariable.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(conversionCustomVariableId, nameof(conversionCustomVariableId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static ConversionCustomVariableName Parse(string conversionCustomVariableName) => - Parse(conversionCustomVariableName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ConversionCustomVariableName Parse(string conversionCustomVariableName, bool allowUnparsed) => - TryParse(conversionCustomVariableName, allowUnparsed, out ConversionCustomVariableName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionCustomVariableName, out ConversionCustomVariableName result) => - TryParse(conversionCustomVariableName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionCustomVariableName, bool allowUnparsed, out ConversionCustomVariableName result) - { - gax::GaxPreconditions.CheckNotNull(conversionCustomVariableName, nameof(conversionCustomVariableName)); - gax::TemplatedResourceName resourceName; - if (s_customerConversionCustomVariable.TryParseName(conversionCustomVariableName, out resourceName)) - { - result = FromCustomerConversionCustomVariable(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(conversionCustomVariableName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ConversionCustomVariableName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string conversionCustomVariableId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ConversionCustomVariableId = conversionCustomVariableId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionCustomVariable ID. Must not be null or empty. - /// - public ConversionCustomVariableName(string customerId, string conversionCustomVariableId) : this(ResourceNameType.CustomerConversionCustomVariable, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionCustomVariableId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionCustomVariableId, nameof(conversionCustomVariableId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ConversionCustomVariable ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ConversionCustomVariableId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerConversionCustomVariable: return s_customerConversionCustomVariable.Expand(CustomerId, ConversionCustomVariableId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ConversionCustomVariableName); - - /// - public bool Equals(ConversionCustomVariableName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ConversionCustomVariableName a, ConversionCustomVariableName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ConversionCustomVariableName a, ConversionCustomVariableName b) => !(a == b); - } - - public partial class ConversionCustomVariable - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::ConversionCustomVariableName ResourceNameAsConversionCustomVariableName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ConversionCustomVariableName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ConversionCustomVariableName ConversionCustomVariableName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::ConversionCustomVariableName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName OwnerCustomerAsCustomerName - { - get => string.IsNullOrEmpty(OwnerCustomer) ? null : CustomerName.Parse(OwnerCustomer, allowUnparsed: true); - set => OwnerCustomer = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableService.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableService.g.cs deleted file mode 100755 index 153a82822..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableService.g.cs +++ /dev/null @@ -1,1271 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_custom_variable_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/conversion_custom_variable_service.proto - public static partial class ConversionCustomVariableServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/conversion_custom_variable_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionCustomVariableServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lv", - "bl9jdXN0b21fdmFyaWFibGVfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXMvcmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGkNnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NvbnZlcnNpb25fY3VzdG9t", - "X3ZhcmlhYmxlLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3Rv", - "Ghdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i", - "ZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29v", - "Z2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3Rh", - "dHVzLnByb3RvIr0CCiZNdXRhdGVDb252ZXJzaW9uQ3VzdG9tVmFyaWFibGVz", - "UmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECEl0KCm9wZXJhdGlv", - "bnMYAiADKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "Q29udmVyc2lvbkN1c3RvbVZhcmlhYmxlT3BlcmF0aW9uQgPgQQISFwoPcGFy", - "dGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoV", - "cmVzcG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3Bv", - "bnNlQ29udGVudFR5cGUigQIKIUNvbnZlcnNpb25DdXN0b21WYXJpYWJsZU9w", - "ZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5GaWVsZE1hc2sSTgoGY3JlYXRlGAEgASgLMjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9uQ3VzdG9tVmFyaWFibGVI", - "ABJOCgZ1cGRhdGUYAiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkNvbnZlcnNpb25DdXN0b21WYXJpYWJsZUgAQgsKCW9wZXJh", - "dGlvbiK2AQonTXV0YXRlQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlc1Jlc3Bv", - "bnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgBIAEoCzISLmdvb2dsZS5y", - "cGMuU3RhdHVzElgKB3Jlc3VsdHMYAiADKAsyRy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvbkN1c3RvbVZhcmlh", - "YmxlUmVzdWx0ItcBCiRNdXRhdGVDb252ZXJzaW9uQ3VzdG9tVmFyaWFibGVS", - "ZXN1bHQSTQoNcmVzb3VyY2VfbmFtZRgBIAEoCUI2+kEzCjFnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlEmAKGmNv", - "bnZlcnNpb25fY3VzdG9tX3ZhcmlhYmxlGAIgASgLMjwuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9uQ3VzdG9tVmFyaWFi", - "bGUyiAMKH0NvbnZlcnNpb25DdXN0b21WYXJpYWJsZVNlcnZpY2USnQIKH011", - "dGF0ZUNvbnZlcnNpb25DdXN0b21WYXJpYWJsZXMSSS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvbkN1c3RvbVZh", - "cmlhYmxlc1JlcXVlc3QaSi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlc1Jlc3BvbnNl", - "ImOC0+STAkQiPy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9jb252", - "ZXJzaW9uQ3VzdG9tVmFyaWFibGVzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lk", - "LG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0", - "dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KQAgolY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IkQ29udmVyc2lv", - "bkN1c3RvbVZhcmlhYmxlU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2Vy", - "dmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2Vydmlj", - "ZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariableReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest), global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation), global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation.Parser, new[]{ "UpdateMask", "Create", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesResponse), global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult), global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult.Parser, new[]{ "ResourceName", "ConversionCustomVariable" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [ConversionCustomVariableService.MutateConversionCustomVariables][google.ads.googleads.v12.services.ConversionCustomVariableService.MutateConversionCustomVariables]. - /// - public sealed partial class MutateConversionCustomVariablesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionCustomVariablesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariablesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariablesRequest(MutateConversionCustomVariablesRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariablesRequest Clone() { - return new MutateConversionCustomVariablesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose conversion custom variables are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual conversion custom - /// variables. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionCustomVariablesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionCustomVariablesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionCustomVariablesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update) on a conversion custom variable. - /// - public sealed partial class ConversionCustomVariableOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionCustomVariableOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableOperation(ConversionCustomVariableOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableOperation Clone() { - return new ConversionCustomVariableOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new conversion - /// custom variable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The conversion custom variable is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionCustomVariableOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionCustomVariableOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionCustomVariableOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [ConversionCustomVariableService.MutateConversionCustomVariables][google.ads.googleads.v12.services.ConversionCustomVariableService.MutateConversionCustomVariables]. - /// - public sealed partial class MutateConversionCustomVariablesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionCustomVariablesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariablesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariablesResponse(MutateConversionCustomVariablesResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariablesResponse Clone() { - return new MutateConversionCustomVariablesResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionCustomVariablesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionCustomVariablesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionCustomVariablesResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the conversion custom variable mutate. - /// - public sealed partial class MutateConversionCustomVariableResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionCustomVariableResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariableResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariableResult(MutateConversionCustomVariableResult other) : this() { - resourceName_ = other.resourceName_; - conversionCustomVariable_ = other.conversionCustomVariable_ != null ? other.conversionCustomVariable_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionCustomVariableResult Clone() { - return new MutateConversionCustomVariableResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_custom_variable" field. - public const int ConversionCustomVariableFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable conversionCustomVariable_; - /// - /// The mutated conversion custom variable with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable ConversionCustomVariable { - get { return conversionCustomVariable_; } - set { - conversionCustomVariable_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionCustomVariableResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionCustomVariableResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(ConversionCustomVariable, other.ConversionCustomVariable)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (conversionCustomVariable_ != null) hash ^= ConversionCustomVariable.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionCustomVariable_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionCustomVariable); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionCustomVariable_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionCustomVariable); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (conversionCustomVariable_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionCustomVariable); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionCustomVariableResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.conversionCustomVariable_ != null) { - if (conversionCustomVariable_ == null) { - ConversionCustomVariable = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - ConversionCustomVariable.MergeFrom(other.ConversionCustomVariable); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionCustomVariable_ == null) { - ConversionCustomVariable = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - input.ReadMessage(ConversionCustomVariable); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionCustomVariable_ == null) { - ConversionCustomVariable = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - input.ReadMessage(ConversionCustomVariable); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceClient.g.cs deleted file mode 100755 index fd3cb1640..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceClient.g.cs +++ /dev/null @@ -1,461 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ConversionCustomVariableServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ConversionCustomVariableServiceSettings GetDefault() => new ConversionCustomVariableServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ConversionCustomVariableServiceSettings() - { - } - - private ConversionCustomVariableServiceSettings(ConversionCustomVariableServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateConversionCustomVariablesSettings = existing.MutateConversionCustomVariablesSettings; - OnCopy(existing); - } - - partial void OnCopy(ConversionCustomVariableServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ConversionCustomVariableServiceClient.MutateConversionCustomVariables and - /// ConversionCustomVariableServiceClient.MutateConversionCustomVariablesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateConversionCustomVariablesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ConversionCustomVariableServiceSettings Clone() => new ConversionCustomVariableServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class ConversionCustomVariableServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ConversionCustomVariableServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ConversionCustomVariableServiceClientBuilder() : base(ConversionCustomVariableServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ConversionCustomVariableServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ConversionCustomVariableServiceClient Build() - { - ConversionCustomVariableServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ConversionCustomVariableServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ConversionCustomVariableServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ConversionCustomVariableServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ConversionCustomVariableServiceClient.ChannelPool; - } - - /// ConversionCustomVariableService client wrapper, for convenient use. - /// - /// Service to manage conversion custom variables. - /// - public abstract partial class ConversionCustomVariableServiceClient - { - /// - /// The default endpoint for the ConversionCustomVariableService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ConversionCustomVariableService scopes. - /// - /// The default ConversionCustomVariableService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ConversionCustomVariableService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ConversionCustomVariableServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ConversionCustomVariableServiceClient Create() => - new ConversionCustomVariableServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ConversionCustomVariableServiceClient Create(grpccore::CallInvoker callInvoker, ConversionCustomVariableServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ConversionCustomVariableService.ConversionCustomVariableServiceClient grpcClient = new ConversionCustomVariableService.ConversionCustomVariableServiceClient(callInvoker); - return new ConversionCustomVariableServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ConversionCustomVariableService client - public virtual ConversionCustomVariableService.ConversionCustomVariableServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionCustomVariablesResponse MutateConversionCustomVariables(MutateConversionCustomVariablesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionCustomVariablesAsync(MutateConversionCustomVariablesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionCustomVariablesAsync(MutateConversionCustomVariablesRequest request, st::CancellationToken cancellationToken) => - MutateConversionCustomVariablesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose conversion custom variables are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual conversion custom - /// variables. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionCustomVariablesResponse MutateConversionCustomVariables(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionCustomVariables(new MutateConversionCustomVariablesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose conversion custom variables are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual conversion custom - /// variables. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionCustomVariablesAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionCustomVariablesAsync(new MutateConversionCustomVariablesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose conversion custom variables are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual conversion custom - /// variables. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionCustomVariablesAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateConversionCustomVariablesAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ConversionCustomVariableService client wrapper implementation, for convenient use. - /// - /// Service to manage conversion custom variables. - /// - public sealed partial class ConversionCustomVariableServiceClientImpl : ConversionCustomVariableServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateConversionCustomVariables; - - /// - /// Constructs a client wrapper for the ConversionCustomVariableService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ConversionCustomVariableServiceClientImpl(ConversionCustomVariableService.ConversionCustomVariableServiceClient grpcClient, ConversionCustomVariableServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ConversionCustomVariableServiceSettings effectiveSettings = settings ?? ConversionCustomVariableServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateConversionCustomVariables = clientHelper.BuildApiCall("MutateConversionCustomVariables", grpcClient.MutateConversionCustomVariablesAsync, grpcClient.MutateConversionCustomVariables, effectiveSettings.MutateConversionCustomVariablesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateConversionCustomVariables); - Modify_MutateConversionCustomVariablesApiCall(ref _callMutateConversionCustomVariables); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateConversionCustomVariablesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ConversionCustomVariableService.ConversionCustomVariableServiceClient grpcClient, ConversionCustomVariableServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ConversionCustomVariableService client - public override ConversionCustomVariableService.ConversionCustomVariableServiceClient GrpcClient { get; } - - partial void Modify_MutateConversionCustomVariablesRequest(ref MutateConversionCustomVariablesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateConversionCustomVariablesResponse MutateConversionCustomVariables(MutateConversionCustomVariablesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionCustomVariablesRequest(ref request, ref callSettings); - return _callMutateConversionCustomVariables.Sync(request, callSettings); - } - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateConversionCustomVariablesAsync(MutateConversionCustomVariablesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionCustomVariablesRequest(ref request, ref callSettings); - return _callMutateConversionCustomVariables.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceGrpc.g.cs deleted file mode 100755 index ef834bfde..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceGrpc.g.cs +++ /dev/null @@ -1,262 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_custom_variable_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage conversion custom variables. - /// - public static partial class ConversionCustomVariableService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ConversionCustomVariableService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionCustomVariablesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionCustomVariablesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateConversionCustomVariables = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateConversionCustomVariables", - __Marshaller_google_ads_googleads_v12_services_MutateConversionCustomVariablesRequest, - __Marshaller_google_ads_googleads_v12_services_MutateConversionCustomVariablesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ConversionCustomVariableService - [grpc::BindServiceMethod(typeof(ConversionCustomVariableService), "BindService")] - public abstract partial class ConversionCustomVariableServiceBase - { - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateConversionCustomVariables(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ConversionCustomVariableService - public partial class ConversionCustomVariableServiceClient : grpc::ClientBase - { - /// Creates a new client for ConversionCustomVariableService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionCustomVariableServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ConversionCustomVariableService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionCustomVariableServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionCustomVariableServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionCustomVariableServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesResponse MutateConversionCustomVariables(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionCustomVariables(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesResponse MutateConversionCustomVariables(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateConversionCustomVariables, null, options, request); - } - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionCustomVariablesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionCustomVariablesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates conversion custom variables. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionCustomVariableError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionCustomVariablesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariablesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateConversionCustomVariables, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ConversionCustomVariableServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ConversionCustomVariableServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ConversionCustomVariableServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateConversionCustomVariables, serviceImpl.MutateConversionCustomVariables).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ConversionCustomVariableServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateConversionCustomVariables, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateConversionCustomVariables)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceResourceNames.g.cs deleted file mode 100755 index 1f0fd2740..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateConversionCustomVariableResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::ConversionCustomVariableName ResourceNameAsConversionCustomVariableName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ConversionCustomVariableName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableStatus.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableStatus.g.cs deleted file mode 100755 index d9626c01e..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionCustomVariableStatus.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_custom_variable_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_custom_variable_status.proto - public static partial class ConversionCustomVariableStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_custom_variable_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionCustomVariableStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9j", - "dXN0b21fdmFyaWFibGVfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMilAEKIkNvbnZlcnNpb25DdXN0b21WYXJpYWJsZVN0", - "YXR1c0VudW0ibgoeQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlU3RhdHVzEg8K", - "C1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhUKEUFDVElWQVRJT05fTkVF", - "REVEEAISCwoHRU5BQkxFRBADEgoKBlBBVVNFRBAEQv0BCiJjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zQiNDb252ZXJzaW9uQ3VzdG9tVmFy", - "aWFibGVTdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogID", - "R0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusEnum.Types.ConversionCustomVariableStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a conversion custom - /// variable. - /// - public sealed partial class ConversionCustomVariableStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionCustomVariableStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionCustomVariableStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableStatusEnum(ConversionCustomVariableStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionCustomVariableStatusEnum Clone() { - return new ConversionCustomVariableStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionCustomVariableStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionCustomVariableStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionCustomVariableStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionCustomVariableStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a conversion custom variable. - /// - public enum ConversionCustomVariableStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The conversion custom variable is pending activation and will not - /// accrue stats until set to ENABLED. - /// - /// This status can't be used in CREATE and UPDATE requests. - /// - [pbr::OriginalName("ACTIVATION_NEEDED")] ActivationNeeded = 2, - /// - /// The conversion custom variable is enabled and will accrue stats. - /// - [pbr::OriginalName("ENABLED")] Enabled = 3, - /// - /// The conversion custom variable is paused and will not accrue stats - /// until set to ENABLED again. - /// - [pbr::OriginalName("PAUSED")] Paused = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionEnvironmentEnum.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionEnvironmentEnum.g.cs deleted file mode 100755 index dea5066db..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionEnvironmentEnum.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_environment_enum.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_environment_enum.proto - public static partial class ConversionEnvironmentEnumReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_environment_enum.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionEnvironmentEnumReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9l", - "bnZpcm9ubWVudF9lbnVtLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMiZAoZQ29udmVyc2lvbkVudmlyb25tZW50RW51bSJHChVDb252", - "ZXJzaW9uRW52aXJvbm1lbnQSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESBwoDQVBQEAISBwoDV0VCEANC+AEKImNvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXNCHkNvbnZlcnNpb25FbnZpcm9ubWVudEVudW1Qcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum representing the conversion environment an uploaded - /// conversion was recorded on, for example, App or Web. - /// - public sealed partial class ConversionEnvironmentEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionEnvironmentEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnumReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionEnvironmentEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionEnvironmentEnum(ConversionEnvironmentEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionEnvironmentEnum Clone() { - return new ConversionEnvironmentEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionEnvironmentEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionEnvironmentEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionEnvironmentEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionEnvironmentEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Conversion environment of the uploaded conversion. - /// - public enum ConversionEnvironment { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The conversion was recorded on an app. - /// - [pbr::OriginalName("APP")] App = 2, - /// - /// The conversion was recorded on a website. - /// - [pbr::OriginalName("WEB")] Web = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfig.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfig.g.cs deleted file mode 100755 index d6a8bcee5..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfig.g.cs +++ /dev/null @@ -1,382 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/conversion_goal_campaign_config.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/conversion_goal_campaign_config.proto - public static partial class ConversionGoalCampaignConfigReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/conversion_goal_campaign_config.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionGoalCampaignConfigReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NvbnZlcnNp", - "b25fZ29hbF9jYW1wYWlnbl9jb25maWcucHJvdG8SImdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMaNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcy9nb2FsX2NvbmZpZ19sZXZlbC5wcm90bxofZ29vZ2xlL2FwaS9m", - "aWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90", - "byLmAwocQ29udmVyc2lvbkdvYWxDYW1wYWlnbkNvbmZpZxJUCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQj3gQQX6QTcKNWdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9Db252ZXJzaW9uR29hbENhbXBhaWduQ29uZmlnEjsKCGNhbXBhaWduGAIg", - "ASgJQingQQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWln", - "bhJeChFnb2FsX2NvbmZpZ19sZXZlbBgDIAEoDjJDLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtcy5Hb2FsQ29uZmlnTGV2ZWxFbnVtLkdvYWxDb25m", - "aWdMZXZlbBJSChZjdXN0b21fY29udmVyc2lvbl9nb2FsGAQgASgJQjL6QS8K", - "LWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21Db252ZXJzaW9uR29h", - "bDp/6kF8CjVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ29udmVyc2lvbkdv", - "YWxDYW1wYWlnbkNvbmZpZxJDY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY29u", - "dmVyc2lvbkdvYWxDYW1wYWlnbkNvbmZpZ3Mve2NhbXBhaWduX2lkfUKTAgom", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCIUNvbnZl", - "cnNpb25Hb2FsQ2FtcGFpZ25Db25maWdQcm90b1ABWktnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJl", - "c291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3Vy", - "Y2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig), global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig.Parser, new[]{ "ResourceName", "Campaign", "GoalConfigLevel", "CustomConversionGoal" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Conversion goal settings for a Campaign. - /// - public sealed partial class ConversionGoalCampaignConfig : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionGoalCampaignConfig()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfigReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfig() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfig(ConversionGoalCampaignConfig other) : this() { - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - goalConfigLevel_ = other.goalConfigLevel_; - customConversionGoal_ = other.customConversionGoal_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfig Clone() { - return new ConversionGoalCampaignConfig(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the conversion goal campaign config. - /// Conversion goal campaign config resource names have the form: - /// - /// `customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private string campaign_ = ""; - /// - /// Immutable. The campaign with which this conversion goal campaign config is associated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "goal_config_level" field. - public const int GoalConfigLevelFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel goalConfigLevel_ = global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel.Unspecified; - /// - /// The level of goal config the campaign is using. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel GoalConfigLevel { - get { return goalConfigLevel_; } - set { - goalConfigLevel_ = value; - } - } - - /// Field number for the "custom_conversion_goal" field. - public const int CustomConversionGoalFieldNumber = 4; - private string customConversionGoal_ = ""; - /// - /// The custom conversion goal the campaign is using for optimization. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomConversionGoal { - get { return customConversionGoal_; } - set { - customConversionGoal_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionGoalCampaignConfig); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionGoalCampaignConfig other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (GoalConfigLevel != other.GoalConfigLevel) return false; - if (CustomConversionGoal != other.CustomConversionGoal) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (GoalConfigLevel != global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel.Unspecified) hash ^= GoalConfigLevel.GetHashCode(); - if (CustomConversionGoal.Length != 0) hash ^= CustomConversionGoal.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (GoalConfigLevel != global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) GoalConfigLevel); - } - if (CustomConversionGoal.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CustomConversionGoal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (GoalConfigLevel != global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) GoalConfigLevel); - } - if (CustomConversionGoal.Length != 0) { - output.WriteRawTag(34); - output.WriteString(CustomConversionGoal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (GoalConfigLevel != global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GoalConfigLevel); - } - if (CustomConversionGoal.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomConversionGoal); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionGoalCampaignConfig other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.GoalConfigLevel != global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel.Unspecified) { - GoalConfigLevel = other.GoalConfigLevel; - } - if (other.CustomConversionGoal.Length != 0) { - CustomConversionGoal = other.CustomConversionGoal; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 24: { - GoalConfigLevel = (global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel) input.ReadEnum(); - break; - } - case 34: { - CustomConversionGoal = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - case 24: { - GoalConfigLevel = (global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel) input.ReadEnum(); - break; - } - case 34: { - CustomConversionGoal = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigError.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigError.g.cs deleted file mode 100755 index 16c3477e9..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigError.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/conversion_goal_campaign_config_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/conversion_goal_campaign_config_error.proto - public static partial class ConversionGoalCampaignConfigErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/conversion_goal_campaign_config_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionGoalCampaignConfigErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cktnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "Z29hbF9jYW1wYWlnbl9jb25maWdfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lcnJvcnMilwIKJUNvbnZlcnNpb25Hb2FsQ2FtcGFp", - "Z25Db25maWdFcnJvckVudW0i7QEKIUNvbnZlcnNpb25Hb2FsQ2FtcGFpZ25D", - "b25maWdFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARJACjxD", - "QU5OT1RfVVNFX0NBTVBBSUdOX0dPQUxfRk9SX1NFQVJDSF9BRFNfMzYwX01B", - "TkFHRURfQ0FNUEFJR04QAhJBCj1DVVNUT01fR09BTF9ET0VTX05PVF9CRUxP", - "TkdfVE9fR09PR0xFX0FEU19DT05WRVJTSU9OX0NVU1RPTUVSEAMSJQohQ0FN", - "UEFJR05fQ0FOTk9UX1VTRV9VTklGSUVEX0dPQUxTEARChgIKI2NvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQiZDb252ZXJzaW9uR29hbENh", - "bXBhaWduQ29uZmlnRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztl", - "cnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3Jz", - "ygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorEnum.Types.ConversionGoalCampaignConfigError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion goal campaign config - /// errors. - /// - public sealed partial class ConversionGoalCampaignConfigErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionGoalCampaignConfigErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfigErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfigErrorEnum(ConversionGoalCampaignConfigErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfigErrorEnum Clone() { - return new ConversionGoalCampaignConfigErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionGoalCampaignConfigErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionGoalCampaignConfigErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionGoalCampaignConfigErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionGoalCampaignConfigErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible conversion goal campaign config errors. - /// - public enum ConversionGoalCampaignConfigError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Campaign is managed by Search Ads 360 but uses Unified Goal. - /// - [pbr::OriginalName("CANNOT_USE_CAMPAIGN_GOAL_FOR_SEARCH_ADS_360_MANAGED_CAMPAIGN")] CannotUseCampaignGoalForSearchAds360ManagedCampaign = 2, - /// - /// The campaign is using a custom goal that does not belong to its Google - /// Ads conversion customer (conversion tracking customer). - /// - [pbr::OriginalName("CUSTOM_GOAL_DOES_NOT_BELONG_TO_GOOGLE_ADS_CONVERSION_CUSTOMER")] CustomGoalDoesNotBelongToGoogleAdsConversionCustomer = 3, - /// - /// The campaign is not allowed to use unified goals. - /// - [pbr::OriginalName("CAMPAIGN_CANNOT_USE_UNIFIED_GOALS")] CampaignCannotUseUnifiedGoals = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigResourceNames.g.cs deleted file mode 100755 index e145ad1df..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigResourceNames.g.cs +++ /dev/null @@ -1,300 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ConversionGoalCampaignConfig resource. - public sealed partial class ConversionGoalCampaignConfigName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}. - /// - CustomerCampaign = 1, - } - - private static gax::PathTemplate s_customerCampaign = new gax::PathTemplate("customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ConversionGoalCampaignConfigName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ConversionGoalCampaignConfigName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static ConversionGoalCampaignConfigName FromCustomerCampaign(string customerId, string campaignId) => - new ConversionGoalCampaignConfigName(ResourceNameType.CustomerCampaign, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}. - /// - public static string Format(string customerId, string campaignId) => FormatCustomerCampaign(customerId, campaignId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}. - /// - public static string FormatCustomerCampaign(string customerId, string campaignId) => - s_customerCampaign.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static ConversionGoalCampaignConfigName Parse(string conversionGoalCampaignConfigName) => - Parse(conversionGoalCampaignConfigName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ConversionGoalCampaignConfigName Parse(string conversionGoalCampaignConfigName, bool allowUnparsed) => - TryParse(conversionGoalCampaignConfigName, allowUnparsed, out ConversionGoalCampaignConfigName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionGoalCampaignConfigName, out ConversionGoalCampaignConfigName result) => - TryParse(conversionGoalCampaignConfigName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionGoalCampaignConfigName, bool allowUnparsed, out ConversionGoalCampaignConfigName result) - { - gax::GaxPreconditions.CheckNotNull(conversionGoalCampaignConfigName, nameof(conversionGoalCampaignConfigName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaign.TryParseName(conversionGoalCampaignConfigName, out resourceName)) - { - result = FromCustomerCampaign(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(conversionGoalCampaignConfigName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ConversionGoalCampaignConfigName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CampaignId = campaignId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - public ConversionGoalCampaignConfigName(string customerId, string campaignId) : this(ResourceNameType.CustomerCampaign, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaign: return s_customerCampaign.Expand(CustomerId, CampaignId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ConversionGoalCampaignConfigName); - - /// - public bool Equals(ConversionGoalCampaignConfigName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ConversionGoalCampaignConfigName a, ConversionGoalCampaignConfigName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ConversionGoalCampaignConfigName a, ConversionGoalCampaignConfigName b) => !(a == b); - } - - public partial class ConversionGoalCampaignConfig - { - /// - /// -typed view over the resource name - /// property. - /// - internal ConversionGoalCampaignConfigName ResourceNameAsConversionGoalCampaignConfigName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ConversionGoalCampaignConfigName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal CustomConversionGoalName CustomConversionGoalAsCustomConversionGoalName - { - get => string.IsNullOrEmpty(CustomConversionGoal) ? null : CustomConversionGoalName.Parse(CustomConversionGoal, allowUnparsed: true); - set => CustomConversionGoal = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigService.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigService.g.cs deleted file mode 100755 index fa0f194f6..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigService.g.cs +++ /dev/null @@ -1,1114 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_goal_campaign_config_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/conversion_goal_campaign_config_service.proto - public static partial class ConversionGoalCampaignConfigServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/conversion_goal_campaign_config_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionGoalCampaignConfigServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ck9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lv", - "bl9nb2FsX2NhbXBhaWduX2NvbmZpZ19zZXJ2aWNlLnByb3RvEiFnb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aSGdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY29udmVyc2lvbl9n", - "b2FsX2NhbXBhaWduX2NvbmZpZy5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0", - "aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9h", - "cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2Uu", - "cHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvIqwCCipN", - "dXRhdGVDb252ZXJzaW9uR29hbENhbXBhaWduQ29uZmlnc1JlcXVlc3QSGAoL", - "Y3VzdG9tZXJfaWQYASABKAlCA+BBAhJhCgpvcGVyYXRpb25zGAIgAygLMkgu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNvbnZlcnNpb25H", - "b2FsQ2FtcGFpZ25Db25maWdPcGVyYXRpb25CA+BBAhIVCg12YWxpZGF0ZV9v", - "bmx5GAMgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgEIAEoDjJLLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25zZUNvbnRlbnRU", - "eXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIrkBCiVDb252ZXJzaW9uR29h", - "bENhbXBhaWduQ29uZmlnT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAIgASgL", - "MhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJSCgZ1cGRhdGUYASABKAsy", - "QC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNvbnZlcnNp", - "b25Hb2FsQ2FtcGFpZ25Db25maWdIAEILCglvcGVyYXRpb24iiwEKK011dGF0", - "ZUNvbnZlcnNpb25Hb2FsQ2FtcGFpZ25Db25maWdzUmVzcG9uc2USXAoHcmVz", - "dWx0cxgBIAMoCzJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVDb252ZXJzaW9uR29hbENhbXBhaWduQ29uZmlnUmVzdWx0IugB", - "CihNdXRhdGVDb252ZXJzaW9uR29hbENhbXBhaWduQ29uZmlnUmVzdWx0ElEK", - "DXJlc291cmNlX25hbWUYASABKAlCOvpBNwo1Z29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NvbnZlcnNpb25Hb2FsQ2FtcGFpZ25Db25maWcSaQofY29udmVy", - "c2lvbl9nb2FsX2NhbXBhaWduX2NvbmZpZxgCIAEoCzJALmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ29udmVyc2lvbkdvYWxDYW1wYWln", - "bkNvbmZpZzKcAwojQ29udmVyc2lvbkdvYWxDYW1wYWlnbkNvbmZpZ1NlcnZp", - "Y2USrQIKI011dGF0ZUNvbnZlcnNpb25Hb2FsQ2FtcGFpZ25Db25maWdzEk0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNvbnZl", - "cnNpb25Hb2FsQ2FtcGFpZ25Db25maWdzUmVxdWVzdBpOLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDb252ZXJzaW9uR29hbENh", - "bXBhaWduQ29uZmlnc1Jlc3BvbnNlImeC0+STAkgiQy92MTIvY3VzdG9tZXJz", - "L3tjdXN0b21lcl9pZD0qfS9jb252ZXJzaW9uR29hbENhbXBhaWduQ29uZmln", - "czptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlz", - "LmNvbS9hdXRoL2Fkd29yZHNClAIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXNCKENvbnZlcnNpb25Hb2FsQ2FtcGFpZ25Db25maWdT", - "ZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6IC", - "A0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfigReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation), global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation.Parser, new[]{ "UpdateMask", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult), global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult.Parser, new[]{ "ResourceName", "ConversionGoalCampaignConfig" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfig][]. - /// - public sealed partial class MutateConversionGoalCampaignConfigsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionGoalCampaignConfigsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigsRequest(MutateConversionGoalCampaignConfigsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigsRequest Clone() { - return new MutateConversionGoalCampaignConfigsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual conversion goal campaign - /// config. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionGoalCampaignConfigsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionGoalCampaignConfigsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionGoalCampaignConfigsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (update) on a conversion goal campaign config. - /// - public sealed partial class ConversionGoalCampaignConfigOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionGoalCampaignConfigOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfigOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfigOperation(ConversionGoalCampaignConfigOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionGoalCampaignConfigOperation Clone() { - return new ConversionGoalCampaignConfigOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 1; - /// - /// Update operation: The conversion goal campaign config is expected to have - /// a valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Update = 1, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionGoalCampaignConfigOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionGoalCampaignConfigOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionGoalCampaignConfigOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a conversion goal campaign config mutate. - /// - public sealed partial class MutateConversionGoalCampaignConfigsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionGoalCampaignConfigsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigsResponse(MutateConversionGoalCampaignConfigsResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigsResponse Clone() { - return new MutateConversionGoalCampaignConfigsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionGoalCampaignConfigsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionGoalCampaignConfigsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionGoalCampaignConfigsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the conversion goal campaign config mutate. - /// - public sealed partial class MutateConversionGoalCampaignConfigResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionGoalCampaignConfigResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigResult(MutateConversionGoalCampaignConfigResult other) : this() { - resourceName_ = other.resourceName_; - conversionGoalCampaignConfig_ = other.conversionGoalCampaignConfig_ != null ? other.conversionGoalCampaignConfig_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionGoalCampaignConfigResult Clone() { - return new MutateConversionGoalCampaignConfigResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_goal_campaign_config" field. - public const int ConversionGoalCampaignConfigFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig conversionGoalCampaignConfig_; - /// - /// The mutated ConversionGoalCampaignConfig with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig ConversionGoalCampaignConfig { - get { return conversionGoalCampaignConfig_; } - set { - conversionGoalCampaignConfig_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionGoalCampaignConfigResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionGoalCampaignConfigResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(ConversionGoalCampaignConfig, other.ConversionGoalCampaignConfig)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (conversionGoalCampaignConfig_ != null) hash ^= ConversionGoalCampaignConfig.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionGoalCampaignConfig_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionGoalCampaignConfig); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionGoalCampaignConfig_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionGoalCampaignConfig); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (conversionGoalCampaignConfig_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionGoalCampaignConfig); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionGoalCampaignConfigResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.conversionGoalCampaignConfig_ != null) { - if (conversionGoalCampaignConfig_ == null) { - ConversionGoalCampaignConfig = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - } - ConversionGoalCampaignConfig.MergeFrom(other.ConversionGoalCampaignConfig); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionGoalCampaignConfig_ == null) { - ConversionGoalCampaignConfig = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - } - input.ReadMessage(ConversionGoalCampaignConfig); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionGoalCampaignConfig_ == null) { - ConversionGoalCampaignConfig = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - } - input.ReadMessage(ConversionGoalCampaignConfig); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceClient.g.cs deleted file mode 100755 index 41ee482b9..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceClient.g.cs +++ /dev/null @@ -1,383 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ConversionGoalCampaignConfigServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// - /// Get a new instance of the default . - /// - /// A new instance of the default . - public static ConversionGoalCampaignConfigServiceSettings GetDefault() => - new ConversionGoalCampaignConfigServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ConversionGoalCampaignConfigServiceSettings() - { - } - - private ConversionGoalCampaignConfigServiceSettings(ConversionGoalCampaignConfigServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateConversionGoalCampaignConfigsSettings = existing.MutateConversionGoalCampaignConfigsSettings; - OnCopy(existing); - } - - partial void OnCopy(ConversionGoalCampaignConfigServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ConversionGoalCampaignConfigServiceClient.MutateConversionGoalCampaignConfigs and - /// ConversionGoalCampaignConfigServiceClient.MutateConversionGoalCampaignConfigsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateConversionGoalCampaignConfigsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ConversionGoalCampaignConfigServiceSettings Clone() => new ConversionGoalCampaignConfigServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class ConversionGoalCampaignConfigServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ConversionGoalCampaignConfigServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ConversionGoalCampaignConfigServiceClientBuilder() : base(ConversionGoalCampaignConfigServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ConversionGoalCampaignConfigServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ConversionGoalCampaignConfigServiceClient Build() - { - ConversionGoalCampaignConfigServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ConversionGoalCampaignConfigServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ConversionGoalCampaignConfigServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ConversionGoalCampaignConfigServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ConversionGoalCampaignConfigServiceClient.ChannelPool; - } - - /// ConversionGoalCampaignConfigService client wrapper, for convenient use. - /// - /// Service to manage conversion goal campaign config. - /// - public abstract partial class ConversionGoalCampaignConfigServiceClient - { - /// - /// The default endpoint for the ConversionGoalCampaignConfigService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ConversionGoalCampaignConfigService scopes. - /// - /// The default ConversionGoalCampaignConfigService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ConversionGoalCampaignConfigService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// - /// The task representing the created . - /// - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ConversionGoalCampaignConfigServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ConversionGoalCampaignConfigServiceClient Create() => - new ConversionGoalCampaignConfigServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ConversionGoalCampaignConfigServiceClient Create(grpccore::CallInvoker callInvoker, ConversionGoalCampaignConfigServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ConversionGoalCampaignConfigService.ConversionGoalCampaignConfigServiceClient grpcClient = new ConversionGoalCampaignConfigService.ConversionGoalCampaignConfigServiceClient(callInvoker); - return new ConversionGoalCampaignConfigServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ConversionGoalCampaignConfigService client - public virtual ConversionGoalCampaignConfigService.ConversionGoalCampaignConfigServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionGoalCampaignConfigsResponse MutateConversionGoalCampaignConfigs(MutateConversionGoalCampaignConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionGoalCampaignConfigsAsync(MutateConversionGoalCampaignConfigsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionGoalCampaignConfigsAsync(MutateConversionGoalCampaignConfigsRequest request, st::CancellationToken cancellationToken) => - MutateConversionGoalCampaignConfigsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion goal campaign - /// config. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionGoalCampaignConfigsResponse MutateConversionGoalCampaignConfigs(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionGoalCampaignConfigs(new MutateConversionGoalCampaignConfigsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion goal campaign - /// config. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionGoalCampaignConfigsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionGoalCampaignConfigsAsync(new MutateConversionGoalCampaignConfigsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion goal campaign - /// config. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionGoalCampaignConfigsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateConversionGoalCampaignConfigsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ConversionGoalCampaignConfigService client wrapper implementation, for convenient use. - /// - /// Service to manage conversion goal campaign config. - /// - public sealed partial class ConversionGoalCampaignConfigServiceClientImpl : ConversionGoalCampaignConfigServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateConversionGoalCampaignConfigs; - - /// - /// Constructs a client wrapper for the ConversionGoalCampaignConfigService service, with the specified gRPC - /// client and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ConversionGoalCampaignConfigServiceClientImpl(ConversionGoalCampaignConfigService.ConversionGoalCampaignConfigServiceClient grpcClient, ConversionGoalCampaignConfigServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ConversionGoalCampaignConfigServiceSettings effectiveSettings = settings ?? ConversionGoalCampaignConfigServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateConversionGoalCampaignConfigs = clientHelper.BuildApiCall("MutateConversionGoalCampaignConfigs", grpcClient.MutateConversionGoalCampaignConfigsAsync, grpcClient.MutateConversionGoalCampaignConfigs, effectiveSettings.MutateConversionGoalCampaignConfigsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateConversionGoalCampaignConfigs); - Modify_MutateConversionGoalCampaignConfigsApiCall(ref _callMutateConversionGoalCampaignConfigs); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateConversionGoalCampaignConfigsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ConversionGoalCampaignConfigService.ConversionGoalCampaignConfigServiceClient grpcClient, ConversionGoalCampaignConfigServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ConversionGoalCampaignConfigService client - public override ConversionGoalCampaignConfigService.ConversionGoalCampaignConfigServiceClient GrpcClient { get; } - - partial void Modify_MutateConversionGoalCampaignConfigsRequest(ref MutateConversionGoalCampaignConfigsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateConversionGoalCampaignConfigsResponse MutateConversionGoalCampaignConfigs(MutateConversionGoalCampaignConfigsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionGoalCampaignConfigsRequest(ref request, ref callSettings); - return _callMutateConversionGoalCampaignConfigs.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateConversionGoalCampaignConfigsAsync(MutateConversionGoalCampaignConfigsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionGoalCampaignConfigsRequest(ref request, ref callSettings); - return _callMutateConversionGoalCampaignConfigs.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceGrpc.g.cs deleted file mode 100755 index 909261981..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_goal_campaign_config_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage conversion goal campaign config. - /// - public static partial class ConversionGoalCampaignConfigService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ConversionGoalCampaignConfigService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionGoalCampaignConfigsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionGoalCampaignConfigsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateConversionGoalCampaignConfigs = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateConversionGoalCampaignConfigs", - __Marshaller_google_ads_googleads_v12_services_MutateConversionGoalCampaignConfigsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateConversionGoalCampaignConfigsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ConversionGoalCampaignConfigService - [grpc::BindServiceMethod(typeof(ConversionGoalCampaignConfigService), "BindService")] - public abstract partial class ConversionGoalCampaignConfigServiceBase - { - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateConversionGoalCampaignConfigs(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ConversionGoalCampaignConfigService - public partial class ConversionGoalCampaignConfigServiceClient : grpc::ClientBase - { - /// Creates a new client for ConversionGoalCampaignConfigService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionGoalCampaignConfigServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ConversionGoalCampaignConfigService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionGoalCampaignConfigServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionGoalCampaignConfigServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionGoalCampaignConfigServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsResponse MutateConversionGoalCampaignConfigs(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionGoalCampaignConfigs(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsResponse MutateConversionGoalCampaignConfigs(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateConversionGoalCampaignConfigs, null, options, request); - } - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionGoalCampaignConfigsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionGoalCampaignConfigsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes conversion goal campaign config. Operation - /// statuses are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionGoalCampaignConfigsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateConversionGoalCampaignConfigs, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ConversionGoalCampaignConfigServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ConversionGoalCampaignConfigServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ConversionGoalCampaignConfigServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateConversionGoalCampaignConfigs, serviceImpl.MutateConversionGoalCampaignConfigs).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ConversionGoalCampaignConfigServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateConversionGoalCampaignConfigs, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateConversionGoalCampaignConfigs)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceResourceNames.g.cs deleted file mode 100755 index fe06fc7b5..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionGoalCampaignConfigServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateConversionGoalCampaignConfigResult - { - /// - /// -typed view over the - /// resource name property. - /// - internal gagvr::ConversionGoalCampaignConfigName ResourceNameAsConversionGoalCampaignConfigName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ConversionGoalCampaignConfigName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionLagBucket.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionLagBucket.g.cs deleted file mode 100755 index f05b87036..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionLagBucket.g.cs +++ /dev/null @@ -1,333 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_lag_bucket.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_lag_bucket.proto - public static partial class ConversionLagBucketReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_lag_bucket.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionLagBucketReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9s", - "YWdfYnVja2V0LnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMiuwQKF0NvbnZlcnNpb25MYWdCdWNrZXRFbnVtIp8EChNDb252ZXJzaW9u", - "TGFnQnVja2V0Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhUKEUxF", - "U1NfVEhBTl9PTkVfREFZEAISEwoPT05FX1RPX1RXT19EQVlTEAMSFQoRVFdP", - "X1RPX1RIUkVFX0RBWVMQBBIWChJUSFJFRV9UT19GT1VSX0RBWVMQBRIVChFG", - "T1VSX1RPX0ZJVkVfREFZUxAGEhQKEEZJVkVfVE9fU0lYX0RBWVMQBxIVChFT", - "SVhfVE9fU0VWRU5fREFZUxAIEhcKE1NFVkVOX1RPX0VJR0hUX0RBWVMQCRIW", - "ChJFSUdIVF9UT19OSU5FX0RBWVMQChIUChBOSU5FX1RPX1RFTl9EQVlTEAsS", - "FgoSVEVOX1RPX0VMRVZFTl9EQVlTEAwSGQoVRUxFVkVOX1RPX1RXRUxWRV9E", - "QVlTEA0SGwoXVFdFTFZFX1RPX1RISVJURUVOX0RBWVMQDhIdChlUSElSVEVF", - "Tl9UT19GT1VSVEVFTl9EQVlTEA8SHwobRk9VUlRFRU5fVE9fVFdFTlRZX09O", - "RV9EQVlTEBASHQoZVFdFTlRZX09ORV9UT19USElSVFlfREFZUxAREh0KGVRI", - "SVJUWV9UT19GT1JUWV9GSVZFX0RBWVMQEhIcChhGT1JUWV9GSVZFX1RPX1NJ", - "WFRZX0RBWVMQExIYChRTSVhUWV9UT19OSU5FVFlfREFZUxAUQvIBCiJjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhhDb252ZXJzaW9uTGFn", - "QnVja2V0UHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoC", - "Hkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionLagBucketEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionLagBucketEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionLagBucketEnum.Types.ConversionLagBucket) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum representing the number of days between impression and - /// conversion. - /// - public sealed partial class ConversionLagBucketEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionLagBucketEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionLagBucketReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionLagBucketEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionLagBucketEnum(ConversionLagBucketEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionLagBucketEnum Clone() { - return new ConversionLagBucketEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionLagBucketEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionLagBucketEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionLagBucketEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionLagBucketEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum representing the number of days between impression and conversion. - /// - public enum ConversionLagBucket { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. - /// - [pbr::OriginalName("LESS_THAN_ONE_DAY")] LessThanOneDay = 2, - /// - /// Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. - /// - [pbr::OriginalName("ONE_TO_TWO_DAYS")] OneToTwoDays = 3, - /// - /// Conversion lag bucket from 2 to 3 days. 2 days is included, - /// 3 days is not. - /// - [pbr::OriginalName("TWO_TO_THREE_DAYS")] TwoToThreeDays = 4, - /// - /// Conversion lag bucket from 3 to 4 days. 3 days is included, - /// 4 days is not. - /// - [pbr::OriginalName("THREE_TO_FOUR_DAYS")] ThreeToFourDays = 5, - /// - /// Conversion lag bucket from 4 to 5 days. 4 days is included, - /// 5 days is not. - /// - [pbr::OriginalName("FOUR_TO_FIVE_DAYS")] FourToFiveDays = 6, - /// - /// Conversion lag bucket from 5 to 6 days. 5 days is included, - /// 6 days is not. - /// - [pbr::OriginalName("FIVE_TO_SIX_DAYS")] FiveToSixDays = 7, - /// - /// Conversion lag bucket from 6 to 7 days. 6 days is included, - /// 7 days is not. - /// - [pbr::OriginalName("SIX_TO_SEVEN_DAYS")] SixToSevenDays = 8, - /// - /// Conversion lag bucket from 7 to 8 days. 7 days is included, - /// 8 days is not. - /// - [pbr::OriginalName("SEVEN_TO_EIGHT_DAYS")] SevenToEightDays = 9, - /// - /// Conversion lag bucket from 8 to 9 days. 8 days is included, - /// 9 days is not. - /// - [pbr::OriginalName("EIGHT_TO_NINE_DAYS")] EightToNineDays = 10, - /// - /// Conversion lag bucket from 9 to 10 days. 9 days is included, - /// 10 days is not. - /// - [pbr::OriginalName("NINE_TO_TEN_DAYS")] NineToTenDays = 11, - /// - /// Conversion lag bucket from 10 to 11 days. 10 days is included, - /// 11 days is not. - /// - [pbr::OriginalName("TEN_TO_ELEVEN_DAYS")] TenToElevenDays = 12, - /// - /// Conversion lag bucket from 11 to 12 days. 11 days is included, - /// 12 days is not. - /// - [pbr::OriginalName("ELEVEN_TO_TWELVE_DAYS")] ElevenToTwelveDays = 13, - /// - /// Conversion lag bucket from 12 to 13 days. 12 days is included, - /// 13 days is not. - /// - [pbr::OriginalName("TWELVE_TO_THIRTEEN_DAYS")] TwelveToThirteenDays = 14, - /// - /// Conversion lag bucket from 13 to 14 days. 13 days is included, - /// 14 days is not. - /// - [pbr::OriginalName("THIRTEEN_TO_FOURTEEN_DAYS")] ThirteenToFourteenDays = 15, - /// - /// Conversion lag bucket from 14 to 21 days. 14 days is included, - /// 21 days is not. - /// - [pbr::OriginalName("FOURTEEN_TO_TWENTY_ONE_DAYS")] FourteenToTwentyOneDays = 16, - /// - /// Conversion lag bucket from 21 to 30 days. 21 days is included, - /// 30 days is not. - /// - [pbr::OriginalName("TWENTY_ONE_TO_THIRTY_DAYS")] TwentyOneToThirtyDays = 17, - /// - /// Conversion lag bucket from 30 to 45 days. 30 days is included, - /// 45 days is not. - /// - [pbr::OriginalName("THIRTY_TO_FORTY_FIVE_DAYS")] ThirtyToFortyFiveDays = 18, - /// - /// Conversion lag bucket from 45 to 60 days. 45 days is included, - /// 60 days is not. - /// - [pbr::OriginalName("FORTY_FIVE_TO_SIXTY_DAYS")] FortyFiveToSixtyDays = 19, - /// - /// Conversion lag bucket from 60 to 90 days. 60 days is included, - /// 90 days is not. - /// - [pbr::OriginalName("SIXTY_TO_NINETY_DAYS")] SixtyToNinetyDays = 20, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionOrAdjustmentLagBucket.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionOrAdjustmentLagBucket.g.cs deleted file mode 100755 index 783beb9ef..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionOrAdjustmentLagBucket.g.cs +++ /dev/null @@ -1,468 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_or_adjustment_lag_bucket.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_or_adjustment_lag_bucket.proto - public static partial class ConversionOrAdjustmentLagBucketReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_or_adjustment_lag_bucket.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionOrAdjustmentLagBucketReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9v", - "cl9hZGp1c3RtZW50X2xhZ19idWNrZXQucHJvdG8SHmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtcyLLDAojQ29udmVyc2lvbk9yQWRqdXN0bWVudExh", - "Z0J1Y2tldEVudW0iowwKH0NvbnZlcnNpb25PckFkanVzdG1lbnRMYWdCdWNr", - "ZXQSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESIAocQ09OVkVSU0lP", - "Tl9MRVNTX1RIQU5fT05FX0RBWRACEh4KGkNPTlZFUlNJT05fT05FX1RPX1RX", - "T19EQVlTEAMSIAocQ09OVkVSU0lPTl9UV09fVE9fVEhSRUVfREFZUxAEEiEK", - "HUNPTlZFUlNJT05fVEhSRUVfVE9fRk9VUl9EQVlTEAUSIAocQ09OVkVSU0lP", - "Tl9GT1VSX1RPX0ZJVkVfREFZUxAGEh8KG0NPTlZFUlNJT05fRklWRV9UT19T", - "SVhfREFZUxAHEiAKHENPTlZFUlNJT05fU0lYX1RPX1NFVkVOX0RBWVMQCBIi", - "Ch5DT05WRVJTSU9OX1NFVkVOX1RPX0VJR0hUX0RBWVMQCRIhCh1DT05WRVJT", - "SU9OX0VJR0hUX1RPX05JTkVfREFZUxAKEh8KG0NPTlZFUlNJT05fTklORV9U", - "T19URU5fREFZUxALEiEKHUNPTlZFUlNJT05fVEVOX1RPX0VMRVZFTl9EQVlT", - "EAwSJAogQ09OVkVSU0lPTl9FTEVWRU5fVE9fVFdFTFZFX0RBWVMQDRImCiJD", - "T05WRVJTSU9OX1RXRUxWRV9UT19USElSVEVFTl9EQVlTEA4SKAokQ09OVkVS", - "U0lPTl9USElSVEVFTl9UT19GT1VSVEVFTl9EQVlTEA8SKgomQ09OVkVSU0lP", - "Tl9GT1VSVEVFTl9UT19UV0VOVFlfT05FX0RBWVMQEBIoCiRDT05WRVJTSU9O", - "X1RXRU5UWV9PTkVfVE9fVEhJUlRZX0RBWVMQERIoCiRDT05WRVJTSU9OX1RI", - "SVJUWV9UT19GT1JUWV9GSVZFX0RBWVMQEhInCiNDT05WRVJTSU9OX0ZPUlRZ", - "X0ZJVkVfVE9fU0lYVFlfREFZUxATEiMKH0NPTlZFUlNJT05fU0lYVFlfVE9f", - "TklORVRZX0RBWVMQFBIgChxBREpVU1RNRU5UX0xFU1NfVEhBTl9PTkVfREFZ", - "EBUSHgoaQURKVVNUTUVOVF9PTkVfVE9fVFdPX0RBWVMQFhIgChxBREpVU1RN", - "RU5UX1RXT19UT19USFJFRV9EQVlTEBcSIQodQURKVVNUTUVOVF9USFJFRV9U", - "T19GT1VSX0RBWVMQGBIgChxBREpVU1RNRU5UX0ZPVVJfVE9fRklWRV9EQVlT", - "EBkSHwobQURKVVNUTUVOVF9GSVZFX1RPX1NJWF9EQVlTEBoSIAocQURKVVNU", - "TUVOVF9TSVhfVE9fU0VWRU5fREFZUxAbEiIKHkFESlVTVE1FTlRfU0VWRU5f", - "VE9fRUlHSFRfREFZUxAcEiEKHUFESlVTVE1FTlRfRUlHSFRfVE9fTklORV9E", - "QVlTEB0SHwobQURKVVNUTUVOVF9OSU5FX1RPX1RFTl9EQVlTEB4SIQodQURK", - "VVNUTUVOVF9URU5fVE9fRUxFVkVOX0RBWVMQHxIkCiBBREpVU1RNRU5UX0VM", - "RVZFTl9UT19UV0VMVkVfREFZUxAgEiYKIkFESlVTVE1FTlRfVFdFTFZFX1RP", - "X1RISVJURUVOX0RBWVMQIRIoCiRBREpVU1RNRU5UX1RISVJURUVOX1RPX0ZP", - "VVJURUVOX0RBWVMQIhIqCiZBREpVU1RNRU5UX0ZPVVJURUVOX1RPX1RXRU5U", - "WV9PTkVfREFZUxAjEigKJEFESlVTVE1FTlRfVFdFTlRZX09ORV9UT19USElS", - "VFlfREFZUxAkEigKJEFESlVTVE1FTlRfVEhJUlRZX1RPX0ZPUlRZX0ZJVkVf", - "REFZUxAlEicKI0FESlVTVE1FTlRfRk9SVFlfRklWRV9UT19TSVhUWV9EQVlT", - "ECYSIwofQURKVVNUTUVOVF9TSVhUWV9UT19OSU5FVFlfREFZUxAnEjgKNEFE", - "SlVTVE1FTlRfTklORVRZX1RPX09ORV9IVU5EUkVEX0FORF9GT1JUWV9GSVZF", - "X0RBWVMQKBIWChJDT05WRVJTSU9OX1VOS05PV04QKRIWChJBREpVU1RNRU5U", - "X1VOS05PV04QKkL+AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtc0IkQ29udmVyc2lvbk9yQWRqdXN0bWVudExhZ0J1Y2tldFByb3RvUAFa", - "Q2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "RW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionOrAdjustmentLagBucketEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionOrAdjustmentLagBucketEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionOrAdjustmentLagBucketEnum.Types.ConversionOrAdjustmentLagBucket) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum representing the number of days between the impression and - /// the conversion or between the impression and adjustments to the conversion. - /// - public sealed partial class ConversionOrAdjustmentLagBucketEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionOrAdjustmentLagBucketEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionOrAdjustmentLagBucketReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionOrAdjustmentLagBucketEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionOrAdjustmentLagBucketEnum(ConversionOrAdjustmentLagBucketEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionOrAdjustmentLagBucketEnum Clone() { - return new ConversionOrAdjustmentLagBucketEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionOrAdjustmentLagBucketEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionOrAdjustmentLagBucketEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionOrAdjustmentLagBucketEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionOrAdjustmentLagBucketEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum representing the number of days between the impression and the - /// conversion or between the impression and adjustments to the conversion. - /// - public enum ConversionOrAdjustmentLagBucket { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. - /// - [pbr::OriginalName("CONVERSION_LESS_THAN_ONE_DAY")] ConversionLessThanOneDay = 2, - /// - /// Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. - /// - [pbr::OriginalName("CONVERSION_ONE_TO_TWO_DAYS")] ConversionOneToTwoDays = 3, - /// - /// Conversion lag bucket from 2 to 3 days. 2 days is included, - /// 3 days is not. - /// - [pbr::OriginalName("CONVERSION_TWO_TO_THREE_DAYS")] ConversionTwoToThreeDays = 4, - /// - /// Conversion lag bucket from 3 to 4 days. 3 days is included, - /// 4 days is not. - /// - [pbr::OriginalName("CONVERSION_THREE_TO_FOUR_DAYS")] ConversionThreeToFourDays = 5, - /// - /// Conversion lag bucket from 4 to 5 days. 4 days is included, - /// 5 days is not. - /// - [pbr::OriginalName("CONVERSION_FOUR_TO_FIVE_DAYS")] ConversionFourToFiveDays = 6, - /// - /// Conversion lag bucket from 5 to 6 days. 5 days is included, - /// 6 days is not. - /// - [pbr::OriginalName("CONVERSION_FIVE_TO_SIX_DAYS")] ConversionFiveToSixDays = 7, - /// - /// Conversion lag bucket from 6 to 7 days. 6 days is included, - /// 7 days is not. - /// - [pbr::OriginalName("CONVERSION_SIX_TO_SEVEN_DAYS")] ConversionSixToSevenDays = 8, - /// - /// Conversion lag bucket from 7 to 8 days. 7 days is included, - /// 8 days is not. - /// - [pbr::OriginalName("CONVERSION_SEVEN_TO_EIGHT_DAYS")] ConversionSevenToEightDays = 9, - /// - /// Conversion lag bucket from 8 to 9 days. 8 days is included, - /// 9 days is not. - /// - [pbr::OriginalName("CONVERSION_EIGHT_TO_NINE_DAYS")] ConversionEightToNineDays = 10, - /// - /// Conversion lag bucket from 9 to 10 days. 9 days is included, - /// 10 days is not. - /// - [pbr::OriginalName("CONVERSION_NINE_TO_TEN_DAYS")] ConversionNineToTenDays = 11, - /// - /// Conversion lag bucket from 10 to 11 days. 10 days is included, - /// 11 days is not. - /// - [pbr::OriginalName("CONVERSION_TEN_TO_ELEVEN_DAYS")] ConversionTenToElevenDays = 12, - /// - /// Conversion lag bucket from 11 to 12 days. 11 days is included, - /// 12 days is not. - /// - [pbr::OriginalName("CONVERSION_ELEVEN_TO_TWELVE_DAYS")] ConversionElevenToTwelveDays = 13, - /// - /// Conversion lag bucket from 12 to 13 days. 12 days is included, - /// 13 days is not. - /// - [pbr::OriginalName("CONVERSION_TWELVE_TO_THIRTEEN_DAYS")] ConversionTwelveToThirteenDays = 14, - /// - /// Conversion lag bucket from 13 to 14 days. 13 days is included, - /// 14 days is not. - /// - [pbr::OriginalName("CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS")] ConversionThirteenToFourteenDays = 15, - /// - /// Conversion lag bucket from 14 to 21 days. 14 days is included, - /// 21 days is not. - /// - [pbr::OriginalName("CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS")] ConversionFourteenToTwentyOneDays = 16, - /// - /// Conversion lag bucket from 21 to 30 days. 21 days is included, - /// 30 days is not. - /// - [pbr::OriginalName("CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS")] ConversionTwentyOneToThirtyDays = 17, - /// - /// Conversion lag bucket from 30 to 45 days. 30 days is included, - /// 45 days is not. - /// - [pbr::OriginalName("CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS")] ConversionThirtyToFortyFiveDays = 18, - /// - /// Conversion lag bucket from 45 to 60 days. 45 days is included, - /// 60 days is not. - /// - [pbr::OriginalName("CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS")] ConversionFortyFiveToSixtyDays = 19, - /// - /// Conversion lag bucket from 60 to 90 days. 60 days is included, - /// 90 days is not. - /// - [pbr::OriginalName("CONVERSION_SIXTY_TO_NINETY_DAYS")] ConversionSixtyToNinetyDays = 20, - /// - /// Conversion adjustment lag bucket from 0 to 1 day. 0 day is included, - /// 1 day is not. - /// - [pbr::OriginalName("ADJUSTMENT_LESS_THAN_ONE_DAY")] AdjustmentLessThanOneDay = 21, - /// - /// Conversion adjustment lag bucket from 1 to 2 days. 1 day is included, - /// 2 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_ONE_TO_TWO_DAYS")] AdjustmentOneToTwoDays = 22, - /// - /// Conversion adjustment lag bucket from 2 to 3 days. 2 days is included, - /// 3 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_TWO_TO_THREE_DAYS")] AdjustmentTwoToThreeDays = 23, - /// - /// Conversion adjustment lag bucket from 3 to 4 days. 3 days is included, - /// 4 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_THREE_TO_FOUR_DAYS")] AdjustmentThreeToFourDays = 24, - /// - /// Conversion adjustment lag bucket from 4 to 5 days. 4 days is included, - /// 5 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_FOUR_TO_FIVE_DAYS")] AdjustmentFourToFiveDays = 25, - /// - /// Conversion adjustment lag bucket from 5 to 6 days. 5 days is included, - /// 6 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_FIVE_TO_SIX_DAYS")] AdjustmentFiveToSixDays = 26, - /// - /// Conversion adjustment lag bucket from 6 to 7 days. 6 days is included, - /// 7 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_SIX_TO_SEVEN_DAYS")] AdjustmentSixToSevenDays = 27, - /// - /// Conversion adjustment lag bucket from 7 to 8 days. 7 days is included, - /// 8 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_SEVEN_TO_EIGHT_DAYS")] AdjustmentSevenToEightDays = 28, - /// - /// Conversion adjustment lag bucket from 8 to 9 days. 8 days is included, - /// 9 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_EIGHT_TO_NINE_DAYS")] AdjustmentEightToNineDays = 29, - /// - /// Conversion adjustment lag bucket from 9 to 10 days. 9 days is included, - /// 10 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_NINE_TO_TEN_DAYS")] AdjustmentNineToTenDays = 30, - /// - /// Conversion adjustment lag bucket from 10 to 11 days. 10 days is included, - /// 11 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_TEN_TO_ELEVEN_DAYS")] AdjustmentTenToElevenDays = 31, - /// - /// Conversion adjustment lag bucket from 11 to 12 days. 11 days is included, - /// 12 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS")] AdjustmentElevenToTwelveDays = 32, - /// - /// Conversion adjustment lag bucket from 12 to 13 days. 12 days is included, - /// 13 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS")] AdjustmentTwelveToThirteenDays = 33, - /// - /// Conversion adjustment lag bucket from 13 to 14 days. 13 days is included, - /// 14 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS")] AdjustmentThirteenToFourteenDays = 34, - /// - /// Conversion adjustment lag bucket from 14 to 21 days. 14 days is included, - /// 21 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS")] AdjustmentFourteenToTwentyOneDays = 35, - /// - /// Conversion adjustment lag bucket from 21 to 30 days. 21 days is included, - /// 30 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS")] AdjustmentTwentyOneToThirtyDays = 36, - /// - /// Conversion adjustment lag bucket from 30 to 45 days. 30 days is included, - /// 45 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS")] AdjustmentThirtyToFortyFiveDays = 37, - /// - /// Conversion adjustment lag bucket from 45 to 60 days. 45 days is included, - /// 60 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS")] AdjustmentFortyFiveToSixtyDays = 38, - /// - /// Conversion adjustment lag bucket from 60 to 90 days. 60 days is included, - /// 90 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_SIXTY_TO_NINETY_DAYS")] AdjustmentSixtyToNinetyDays = 39, - /// - /// Conversion adjustment lag bucket from 90 to 145 days. 90 days is - /// included, 145 days is not. - /// - [pbr::OriginalName("ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS")] AdjustmentNinetyToOneHundredAndFortyFiveDays = 40, - /// - /// Conversion lag bucket UNKNOWN. This is for dates before conversion lag - /// bucket was available in Google Ads. - /// - [pbr::OriginalName("CONVERSION_UNKNOWN")] ConversionUnknown = 41, - /// - /// Conversion adjustment lag bucket UNKNOWN. This is for dates before - /// conversion adjustment lag bucket was available in Google Ads. - /// - [pbr::OriginalName("ADJUSTMENT_UNKNOWN")] AdjustmentUnknown = 42, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionOrigin.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionOrigin.g.cs deleted file mode 100755 index 05418e253..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionOrigin.g.cs +++ /dev/null @@ -1,259 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_origin.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_origin.proto - public static partial class ConversionOriginReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_origin.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionOriginReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9v", - "cmlnaW4ucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKk", - "AQoUQ29udmVyc2lvbk9yaWdpbkVudW0iiwEKEENvbnZlcnNpb25PcmlnaW4S", - "DwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHV0VCU0lURRACEhEK", - "DUdPT0dMRV9IT1NURUQQAxIHCgNBUFAQBBIRCg1DQUxMX0ZST01fQURTEAUS", - "CQoFU1RPUkUQBhISCg5ZT1VUVUJFX0hPU1RFRBAHQu8BCiJjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhVDb252ZXJzaW9uT3JpZ2luUHJv", - "dG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51", - "bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion origins. - /// - public sealed partial class ConversionOriginEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionOriginEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionOriginEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionOriginEnum(ConversionOriginEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionOriginEnum Clone() { - return new ConversionOriginEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionOriginEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionOriginEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionOriginEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionOriginEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible places where a conversion can occur. - /// - public enum ConversionOrigin { - /// - /// The conversion origin has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The conversion origin is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversion that occurs when a user visits a website or takes an action - /// there after viewing an ad. - /// - [pbr::OriginalName("WEBSITE")] Website = 2, - /// - /// Conversions reported by an offline pipeline which collects local actions - /// from Google-hosted pages (for example, Google Maps, Google Place Page, - /// etc) and attributes them to relevant ad events. - /// - [pbr::OriginalName("GOOGLE_HOSTED")] GoogleHosted = 3, - /// - /// Conversion that occurs when a user performs an action through any app - /// platforms. - /// - [pbr::OriginalName("APP")] App = 4, - /// - /// Conversion that occurs when a user makes a call from ads. - /// - [pbr::OriginalName("CALL_FROM_ADS")] CallFromAds = 5, - /// - /// Conversion that occurs when a user visits or makes a purchase at a - /// physical store. - /// - [pbr::OriginalName("STORE")] Store = 6, - /// - /// Conversion that occurs on YouTube. - /// - [pbr::OriginalName("YOUTUBE_HOSTED")] YoutubeHosted = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionUploadError.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionUploadError.g.cs deleted file mode 100755 index 57da71eb7..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionUploadError.g.cs +++ /dev/null @@ -1,471 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/conversion_upload_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/conversion_upload_error.proto - public static partial class ConversionUploadErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/conversion_upload_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionUploadErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "dXBsb2FkX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzItgMChlDb252ZXJzaW9uVXBsb2FkRXJyb3JFbnVtIroMChVDb252", - "ZXJzaW9uVXBsb2FkRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESIwofVE9PX01BTllfQ09OVkVSU0lPTlNfSU5fUkVRVUVTVBACEhUKEVVO", - "UEFSU0VBQkxFX0dDTElEEAMSHQoZQ09OVkVSU0lPTl9QUkVDRURFU19FVkVO", - "VBAqEhEKDUVYUElSRURfRVZFTlQQKxIUChBUT09fUkVDRU5UX0VWRU5UECwS", - "EwoPRVZFTlRfTk9UX0ZPVU5EEC0SGQoVVU5BVVRIT1JJWkVEX0NVU1RPTUVS", - "EAgSHQoZSU5WQUxJRF9DT05WRVJTSU9OX0FDVElPThAJEiAKHFRPT19SRUNF", - "TlRfQ09OVkVSU0lPTl9BQ1RJT04QChI2CjJDT05WRVJTSU9OX1RSQUNLSU5H", - "X05PVF9FTkFCTEVEX0FUX0lNUFJFU1NJT05fVElNRRALElEKTUVYVEVSTkFM", - "X0FUVFJJQlVUSU9OX0RBVEFfU0VUX0ZPUl9OT05fRVhURVJOQUxMWV9BVFRS", - "SUJVVEVEX0NPTlZFUlNJT05fQUNUSU9OEAwSUQpNRVhURVJOQUxfQVRUUklC", - "VVRJT05fREFUQV9OT1RfU0VUX0ZPUl9FWFRFUk5BTExZX0FUVFJJQlVURURf", - "Q09OVkVSU0lPTl9BQ1RJT04QDRJGCkJPUkRFUl9JRF9OT1RfUEVSTUlUVEVE", - "X0ZPUl9FWFRFUk5BTExZX0FUVFJJQlVURURfQ09OVkVSU0lPTl9BQ1RJT04Q", - "DhIbChdPUkRFUl9JRF9BTFJFQURZX0lOX1VTRRAPEhYKEkRVUExJQ0FURV9P", - "UkRFUl9JRBAQEhMKD1RPT19SRUNFTlRfQ0FMTBAREhAKDEVYUElSRURfQ0FM", - "TBASEhIKDkNBTExfTk9UX0ZPVU5EEBMSHAoYQ09OVkVSU0lPTl9QUkVDRURF", - "U19DQUxMEBQSMAosQ09OVkVSU0lPTl9UUkFDS0lOR19OT1RfRU5BQkxFRF9B", - "VF9DQUxMX1RJTUUQFRIkCiBVTlBBUlNFQUJMRV9DQUxMRVJTX1BIT05FX05V", - "TUJFUhAWEiMKH0NMSUNLX0NPTlZFUlNJT05fQUxSRUFEWV9FWElTVFMQFxIi", - "Ch5DQUxMX0NPTlZFUlNJT05fQUxSRUFEWV9FWElTVFMQGBIpCiVEVVBMSUNB", - "VEVfQ0xJQ0tfQ09OVkVSU0lPTl9JTl9SRVFVRVNUEBkSKAokRFVQTElDQVRF", - "X0NBTExfQ09OVkVSU0lPTl9JTl9SRVFVRVNUEBoSHwobQ1VTVE9NX1ZBUklB", - "QkxFX05PVF9FTkFCTEVEEBwSJgoiQ1VTVE9NX1ZBUklBQkxFX1ZBTFVFX0NP", - "TlRBSU5TX1BJSRAdEh4KGklOVkFMSURfQ1VTVE9NRVJfRk9SX0NMSUNLEB4S", - "HQoZSU5WQUxJRF9DVVNUT01FUl9GT1JfQ0FMTBAfEiwKKENPTlZFUlNJT05f", - "Tk9UX0NPTVBMSUFOVF9XSVRIX0FUVF9QT0xJQ1kQIBITCg9DTElDS19OT1Rf", - "Rk9VTkQQIRIbChdJTlZBTElEX1VTRVJfSURFTlRJRklFUhAiEk4KSkVYVEVS", - "TkFMTFlfQVRUUklCVVRFRF9DT05WRVJTSU9OX0FDVElPTl9OT1RfUEVSTUlU", - "VEVEX1dJVEhfVVNFUl9JREVOVElGSUVSECMSHwobVU5TVVBQT1JURURfVVNF", - "Ul9JREVOVElGSUVSECQSGgoWR0JSQUlEX1dCUkFJRF9CT1RIX1NFVBAmEhYK", - "ElVOUEFSU0VBQkxFX1dCUkFJRBAnEhYKElVOUEFSU0VBQkxFX0dCUkFJRBAo", - "EjwKOE9ORV9QRVJfQ0xJQ0tfQ09OVkVSU0lPTl9BQ1RJT05fTk9UX1BFUk1J", - "VFRFRF9XSVRIX0JSQUlEEC4SNwozQ1VTVE9NRVJfREFUQV9QT0xJQ1lfUFJP", - "SElCSVRTX0VOSEFOQ0VEX0NPTlZFUlNJT05TEC8SLQopQ1VTVE9NRVJfTk9U", - "X0FDQ0VQVEVEX0NVU1RPTUVSX0RBVEFfVEVSTVMQMBIZChVPUkRFUl9JRF9D", - "T05UQUlOU19QSUkQMUL6AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnNCGkNvbnZlcnNpb25VcGxvYWRFcnJvclByb3RvUAFaRWdvb2ds", - "ZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFk", - "cy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJy", - "b3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorEnum.Types.ConversionUploadError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion upload errors. - /// - public sealed partial class ConversionUploadErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionUploadErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionUploadErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionUploadErrorEnum(ConversionUploadErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionUploadErrorEnum Clone() { - return new ConversionUploadErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionUploadErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionUploadErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionUploadErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionUploadErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible conversion upload errors. - /// - public enum ConversionUploadError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The request contained more than 2000 conversions. - /// - [pbr::OriginalName("TOO_MANY_CONVERSIONS_IN_REQUEST")] TooManyConversionsInRequest = 2, - /// - /// The specified gclid could not be decoded. - /// - [pbr::OriginalName("UNPARSEABLE_GCLID")] UnparseableGclid = 3, - /// - /// The specified conversion_date_time is before the event time - /// associated with the given identifier or iOS URL parameter. - /// - [pbr::OriginalName("CONVERSION_PRECEDES_EVENT")] ConversionPrecedesEvent = 42, - /// - /// The click associated with the given identifier or iOS URL parameter is - /// either too old to be imported or occurred outside of the click through - /// lookback window for the specified conversion action. - /// - [pbr::OriginalName("EXPIRED_EVENT")] ExpiredEvent = 43, - /// - /// The click associated with the given identifier or iOS URL parameter - /// occurred too recently. Try uploading again after 6 hours have - /// passed since the click occurred. - /// - [pbr::OriginalName("TOO_RECENT_EVENT")] TooRecentEvent = 44, - /// - /// The click associated with the given identifier or iOS URL parameter could - /// not be found in the system. This can happen if the identifier or iOS URL - /// parameter are collected for non Google Ads clicks. - /// - [pbr::OriginalName("EVENT_NOT_FOUND")] EventNotFound = 45, - /// - /// The click associated with the given identifier or iOS URL parameter is - /// owned by a customer account that the uploading customer does not manage. - /// - [pbr::OriginalName("UNAUTHORIZED_CUSTOMER")] UnauthorizedCustomer = 8, - /// - /// No upload eligible conversion action that matches the provided - /// information can be found for the customer. - /// - [pbr::OriginalName("INVALID_CONVERSION_ACTION")] InvalidConversionAction = 9, - /// - /// The specified conversion action was created too recently. - /// Try the upload again after 4-6 hours have passed since the - /// conversion action was created. - /// - [pbr::OriginalName("TOO_RECENT_CONVERSION_ACTION")] TooRecentConversionAction = 10, - /// - /// The click associated with the given identifier does not contain - /// conversion tracking information. - /// - [pbr::OriginalName("CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME")] ConversionTrackingNotEnabledAtImpressionTime = 11, - /// - /// The specified conversion action does not use an external attribution - /// model, but external_attribution_data was set. - /// - [pbr::OriginalName("EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION")] ExternalAttributionDataSetForNonExternallyAttributedConversionAction = 12, - /// - /// The specified conversion action uses an external attribution model, but - /// external_attribution_data or one of its contained fields was not set. - /// Both external_attribution_credit and external_attribution_model must be - /// set for externally attributed conversion actions. - /// - [pbr::OriginalName("EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION")] ExternalAttributionDataNotSetForExternallyAttributedConversionAction = 13, - /// - /// Order IDs are not supported for conversion actions which use an external - /// attribution model. - /// - [pbr::OriginalName("ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION")] OrderIdNotPermittedForExternallyAttributedConversionAction = 14, - /// - /// A conversion with the same order id and conversion action combination - /// already exists in our system. - /// - [pbr::OriginalName("ORDER_ID_ALREADY_IN_USE")] OrderIdAlreadyInUse = 15, - /// - /// The request contained two or more conversions with the same order id and - /// conversion action combination. - /// - [pbr::OriginalName("DUPLICATE_ORDER_ID")] DuplicateOrderId = 16, - /// - /// The call occurred too recently. Try uploading again after 12 hours - /// have passed since the call occurred. - /// - [pbr::OriginalName("TOO_RECENT_CALL")] TooRecentCall = 17, - /// - /// The click that initiated the call is too old for this conversion to be - /// imported. - /// - [pbr::OriginalName("EXPIRED_CALL")] ExpiredCall = 18, - /// - /// The call or the click leading to the call was not found. - /// - [pbr::OriginalName("CALL_NOT_FOUND")] CallNotFound = 19, - /// - /// The specified conversion_date_time is before the call_start_date_time. - /// - [pbr::OriginalName("CONVERSION_PRECEDES_CALL")] ConversionPrecedesCall = 20, - /// - /// The click associated with the call does not contain conversion tracking - /// information. - /// - [pbr::OriginalName("CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME")] ConversionTrackingNotEnabledAtCallTime = 21, - /// - /// The caller's phone number cannot be parsed. It should be formatted either - /// as E.164 "+16502531234", International "+64 3-331 6005" or US national - /// number "6502531234". - /// - [pbr::OriginalName("UNPARSEABLE_CALLERS_PHONE_NUMBER")] UnparseableCallersPhoneNumber = 22, - /// - /// A conversion with this timestamp already exists for this click. To upload - /// another conversion, use a different timestamp. - /// - [pbr::OriginalName("CLICK_CONVERSION_ALREADY_EXISTS")] ClickConversionAlreadyExists = 23, - /// - /// A conversion with this timestamp already exists for this call. To upload - /// another conversion, use a different timestamp. - /// - [pbr::OriginalName("CALL_CONVERSION_ALREADY_EXISTS")] CallConversionAlreadyExists = 24, - /// - /// This conversion has the same click and timestamp as another conversion in - /// the request. To upload another conversion for this click, use a - /// different timestamp. - /// - [pbr::OriginalName("DUPLICATE_CLICK_CONVERSION_IN_REQUEST")] DuplicateClickConversionInRequest = 25, - /// - /// This conversion has the same call and timestamp as another conversion in - /// the request. To upload another conversion for this call, use a - /// different timestamp. - /// - [pbr::OriginalName("DUPLICATE_CALL_CONVERSION_IN_REQUEST")] DuplicateCallConversionInRequest = 26, - /// - /// The custom variable is not enabled. - /// - [pbr::OriginalName("CUSTOM_VARIABLE_NOT_ENABLED")] CustomVariableNotEnabled = 28, - /// - /// The value of the custom variable contains personally identifiable - /// information (PII), such as an email address or phone number. - /// - [pbr::OriginalName("CUSTOM_VARIABLE_VALUE_CONTAINS_PII")] CustomVariableValueContainsPii = 29, - /// - /// The click associated with the given identifier or iOS URL parameter isn't - /// from the account where conversion tracking is set up. - /// - [pbr::OriginalName("INVALID_CUSTOMER_FOR_CLICK")] InvalidCustomerForClick = 30, - /// - /// The click associated with the given call isn't from the account where - /// conversion tracking is set up. - /// - [pbr::OriginalName("INVALID_CUSTOMER_FOR_CALL")] InvalidCustomerForCall = 31, - /// - /// The conversion can't be uploaded because the conversion source didn't - /// comply with the App Tracking Transparency (ATT) policy or the person who - /// converted didn't consent to tracking. - /// - [pbr::OriginalName("CONVERSION_NOT_COMPLIANT_WITH_ATT_POLICY")] ConversionNotCompliantWithAttPolicy = 32, - /// - /// No click was found for the provided user identifiers. This may be because - /// the conversion did not come from a Google Ads campaign. - /// - [pbr::OriginalName("CLICK_NOT_FOUND")] ClickNotFound = 33, - /// - /// The provided user identifier is not a SHA-256 hash. It is either unhashed - /// or hashed using a different hash function. - /// - [pbr::OriginalName("INVALID_USER_IDENTIFIER")] InvalidUserIdentifier = 34, - /// - /// Conversion actions which use an external attribution model cannot be used - /// with UserIdentifier. - /// - [pbr::OriginalName("EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION_NOT_PERMITTED_WITH_USER_IDENTIFIER")] ExternallyAttributedConversionActionNotPermittedWithUserIdentifier = 35, - /// - /// The provided user identifier is not supported. ConversionUploadService - /// only supports hashed_email and hashed_phone_number. - /// - [pbr::OriginalName("UNSUPPORTED_USER_IDENTIFIER")] UnsupportedUserIdentifier = 36, - /// - /// gbraid and wbraid are both set in the request. Only one is allowed. - /// - [pbr::OriginalName("GBRAID_WBRAID_BOTH_SET")] GbraidWbraidBothSet = 38, - /// - /// The specified wbraid could not be decoded. - /// - [pbr::OriginalName("UNPARSEABLE_WBRAID")] UnparseableWbraid = 39, - /// - /// The specified gbraid could not be decoded. - /// - [pbr::OriginalName("UNPARSEABLE_GBRAID")] UnparseableGbraid = 40, - /// - /// Conversion actions which use the one-per-click counting type cannot be - /// used with gbraid or wbraid. - /// - [pbr::OriginalName("ONE_PER_CLICK_CONVERSION_ACTION_NOT_PERMITTED_WITH_BRAID")] OnePerClickConversionActionNotPermittedWithBraid = 46, - /// - /// Per our customer data policies, enhanced conversions have been prohibited - /// in your account. If you have any questions, contact your Google - /// representative. - /// - [pbr::OriginalName("CUSTOMER_DATA_POLICY_PROHIBITS_ENHANCED_CONVERSIONS")] CustomerDataPolicyProhibitsEnhancedConversions = 47, - /// - /// The customer has not accepted the customer data terms in the conversion - /// settings page. - /// - [pbr::OriginalName("CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS")] CustomerNotAcceptedCustomerDataTerms = 48, - /// - /// The order_id contains personally identifiable information (PII), such as - /// an email address or phone number. - /// - [pbr::OriginalName("ORDER_ID_CONTAINS_PII")] OrderIdContainsPii = 49, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionUploadService.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionUploadService.g.cs deleted file mode 100755 index bc758bca2..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionUploadService.g.cs +++ /dev/null @@ -1,4498 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_upload_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/conversion_upload_service.proto - public static partial class ConversionUploadServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/conversion_upload_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionUploadServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lv", - "bl91cGxvYWRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9u", - "L29mZmxpbmVfdXNlcl9kYXRhLnByb3RvGkBnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvY29udmVyc2lvbl9lbnZpcm9ubWVudF9lbnVtLnByb3Rv", - "Ghxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2Ns", - "aWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", - "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMu", - "cHJvdG8i0wEKHVVwbG9hZENsaWNrQ29udmVyc2lvbnNSZXF1ZXN0EhgKC2N1", - "c3RvbWVyX2lkGAEgASgJQgPgQQISTAoLY29udmVyc2lvbnMYAiADKAsyMi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ2xpY2tDb252ZXJz", - "aW9uQgPgQQISHAoPcGFydGlhbF9mYWlsdXJlGAMgASgIQgPgQQISFQoNdmFs", - "aWRhdGVfb25seRgEIAEoCBIVCg1kZWJ1Z19lbmFibGVkGAUgASgIIp4BCh5V", - "cGxvYWRDbGlja0NvbnZlcnNpb25zUmVzcG9uc2USMQoVcGFydGlhbF9mYWls", - "dXJlX2Vycm9yGAEgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSSQoHcmVzdWx0", - "cxgCIAMoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5D", - "bGlja0NvbnZlcnNpb25SZXN1bHQiugEKHFVwbG9hZENhbGxDb252ZXJzaW9u", - "c1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJLCgtjb252ZXJz", - "aW9ucxgCIAMoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5DYWxsQ29udmVyc2lvbkID4EECEhwKD3BhcnRpYWxfZmFpbHVyZRgDIAEo", - "CEID4EECEhUKDXZhbGlkYXRlX29ubHkYBCABKAginAEKHVVwbG9hZENhbGxD", - "b252ZXJzaW9uc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgB", - "IAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEkgKB3Jlc3VsdHMYAiADKAsyNy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ2FsbENvbnZlcnNp", - "b25SZXN1bHQi7wUKD0NsaWNrQ29udmVyc2lvbhISCgVnY2xpZBgJIAEoCUgA", - "iAEBEg4KBmdicmFpZBgSIAEoCRIOCgZ3YnJhaWQYEyABKAkSHgoRY29udmVy", - "c2lvbl9hY3Rpb24YCiABKAlIAYgBARIhChRjb252ZXJzaW9uX2RhdGVfdGlt", - "ZRgLIAEoCUgCiAEBEh0KEGNvbnZlcnNpb25fdmFsdWUYDCABKAFIA4gBARIa", - "Cg1jdXJyZW5jeV9jb2RlGA0gASgJSASIAQESFQoIb3JkZXJfaWQYDiABKAlI", - "BYgBARJdChlleHRlcm5hbF9hdHRyaWJ1dGlvbl9kYXRhGAcgASgLMjouZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkV4dGVybmFsQXR0cmli", - "dXRpb25EYXRhEksKEGN1c3RvbV92YXJpYWJsZXMYDyADKAsyMS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3VzdG9tVmFyaWFibGUSPgoJ", - "Y2FydF9kYXRhGBAgASgLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkNhcnREYXRhEkkKEHVzZXJfaWRlbnRpZmllcnMYESADKAsyLy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlVzZXJJZGVudGlmaWVy", - "Em8KFmNvbnZlcnNpb25fZW52aXJvbm1lbnQYFCABKA4yTy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQ29udmVyc2lvbkVudmlyb25tZW50RW51", - "bS5Db252ZXJzaW9uRW52aXJvbm1lbnRCCAoGX2djbGlkQhQKEl9jb252ZXJz", - "aW9uX2FjdGlvbkIXChVfY29udmVyc2lvbl9kYXRlX3RpbWVCEwoRX2NvbnZl", - "cnNpb25fdmFsdWVCEAoOX2N1cnJlbmN5X2NvZGVCCwoJX29yZGVyX2lkIpMD", - "Cg5DYWxsQ29udmVyc2lvbhIWCgljYWxsZXJfaWQYByABKAlIAIgBARIhChRj", - "YWxsX3N0YXJ0X2RhdGVfdGltZRgIIAEoCUgBiAEBEh4KEWNvbnZlcnNpb25f", - "YWN0aW9uGAkgASgJSAKIAQESIQoUY29udmVyc2lvbl9kYXRlX3RpbWUYCiAB", - "KAlIA4gBARIdChBjb252ZXJzaW9uX3ZhbHVlGAsgASgBSASIAQESGgoNY3Vy", - "cmVuY3lfY29kZRgMIAEoCUgFiAEBEksKEGN1c3RvbV92YXJpYWJsZXMYDSAD", - "KAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3VzdG9t", - "VmFyaWFibGVCDAoKX2NhbGxlcl9pZEIXChVfY2FsbF9zdGFydF9kYXRlX3Rp", - "bWVCFAoSX2NvbnZlcnNpb25fYWN0aW9uQhcKFV9jb252ZXJzaW9uX2RhdGVf", - "dGltZUITChFfY29udmVyc2lvbl92YWx1ZUIQCg5fY3VycmVuY3lfY29kZSKr", - "AQoXRXh0ZXJuYWxBdHRyaWJ1dGlvbkRhdGESKAobZXh0ZXJuYWxfYXR0cmli", - "dXRpb25fY3JlZGl0GAMgASgBSACIAQESJwoaZXh0ZXJuYWxfYXR0cmlidXRp", - "b25fbW9kZWwYBCABKAlIAYgBAUIeChxfZXh0ZXJuYWxfYXR0cmlidXRpb25f", - "Y3JlZGl0Qh0KG19leHRlcm5hbF9hdHRyaWJ1dGlvbl9tb2RlbCKSAgoVQ2xp", - "Y2tDb252ZXJzaW9uUmVzdWx0EhIKBWdjbGlkGAQgASgJSACIAQESDgoGZ2Jy", - "YWlkGAggASgJEg4KBndicmFpZBgJIAEoCRIeChFjb252ZXJzaW9uX2FjdGlv", - "bhgFIAEoCUgBiAEBEiEKFGNvbnZlcnNpb25fZGF0ZV90aW1lGAYgASgJSAKI", - "AQESSQoQdXNlcl9pZGVudGlmaWVycxgHIAMoCzIvLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5jb21tb24uVXNlcklkZW50aWZpZXJCCAoGX2djbGlkQhQK", - "El9jb252ZXJzaW9uX2FjdGlvbkIXChVfY29udmVyc2lvbl9kYXRlX3RpbWUi", - "6gEKFENhbGxDb252ZXJzaW9uUmVzdWx0EhYKCWNhbGxlcl9pZBgFIAEoCUgA", - "iAEBEiEKFGNhbGxfc3RhcnRfZGF0ZV90aW1lGAYgASgJSAGIAQESHgoRY29u", - "dmVyc2lvbl9hY3Rpb24YByABKAlIAogBARIhChRjb252ZXJzaW9uX2RhdGVf", - "dGltZRgIIAEoCUgDiAEBQgwKCl9jYWxsZXJfaWRCFwoVX2NhbGxfc3RhcnRf", - "ZGF0ZV90aW1lQhQKEl9jb252ZXJzaW9uX2FjdGlvbkIXChVfY29udmVyc2lv", - "bl9kYXRlX3RpbWUiewoOQ3VzdG9tVmFyaWFibGUSWgoaY29udmVyc2lvbl9j", - "dXN0b21fdmFyaWFibGUYASABKAlCNvpBMwoxZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NvbnZlcnNpb25DdXN0b21WYXJpYWJsZRINCgV2YWx1ZRgCIAEo", - "CSL5AQoIQ2FydERhdGESEwoLbWVyY2hhbnRfaWQYBiABKAMSGQoRZmVlZF9j", - "b3VudHJ5X2NvZGUYAiABKAkSGgoSZmVlZF9sYW5ndWFnZV9jb2RlGAMgASgJ", - "Eh4KFmxvY2FsX3RyYW5zYWN0aW9uX2Nvc3QYBCABKAESPwoFaXRlbXMYBSAD", - "KAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ2FydERh", - "dGEuSXRlbRpACgRJdGVtEhIKCnByb2R1Y3RfaWQYASABKAkSEAoIcXVhbnRp", - "dHkYAiABKAUSEgoKdW5pdF9wcmljZRgDIAEoATL0BAoXQ29udmVyc2lvblVw", - "bG9hZFNlcnZpY2USiQIKFlVwbG9hZENsaWNrQ29udmVyc2lvbnMSQC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuVXBsb2FkQ2xpY2tDb252", - "ZXJzaW9uc1JlcXVlc3QaQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuVXBsb2FkQ2xpY2tDb252ZXJzaW9uc1Jlc3BvbnNlImqC0+STAjoi", - "NS92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfTp1cGxvYWRDbGlja0Nv", - "bnZlcnNpb25zOgEq2kEnY3VzdG9tZXJfaWQsY29udmVyc2lvbnMscGFydGlh", - "bF9mYWlsdXJlEoUCChVVcGxvYWRDYWxsQ29udmVyc2lvbnMSPy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuVXBsb2FkQ2FsbENvbnZlcnNp", - "b25zUmVxdWVzdBpALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5VcGxvYWRDYWxsQ29udmVyc2lvbnNSZXNwb25zZSJpgtPkkwI5IjQvdjEy", - "L2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn06dXBsb2FkQ2FsbENvbnZlcnNp", - "b25zOgEq2kEnY3VzdG9tZXJfaWQsY29udmVyc2lvbnMscGFydGlhbF9mYWls", - "dXJlGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCiAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCHENvbnZlcnNpb25VcGxvYWRT", - "ZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6IC", - "A0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.OfflineUserDataReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnumReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest), global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest.Parser, new[]{ "CustomerId", "Conversions", "PartialFailure", "ValidateOnly", "DebugEnabled" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsResponse), global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest), global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest.Parser, new[]{ "CustomerId", "Conversions", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsResponse), global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ClickConversion), global::Google.Ads.GoogleAds.V12.Services.ClickConversion.Parser, new[]{ "Gclid", "Gbraid", "Wbraid", "ConversionAction", "ConversionDateTime", "ConversionValue", "CurrencyCode", "OrderId", "ExternalAttributionData", "CustomVariables", "CartData", "UserIdentifiers", "ConversionEnvironment" }, new[]{ "Gclid", "ConversionAction", "ConversionDateTime", "ConversionValue", "CurrencyCode", "OrderId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CallConversion), global::Google.Ads.GoogleAds.V12.Services.CallConversion.Parser, new[]{ "CallerId", "CallStartDateTime", "ConversionAction", "ConversionDateTime", "ConversionValue", "CurrencyCode", "CustomVariables" }, new[]{ "CallerId", "CallStartDateTime", "ConversionAction", "ConversionDateTime", "ConversionValue", "CurrencyCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ExternalAttributionData), global::Google.Ads.GoogleAds.V12.Services.ExternalAttributionData.Parser, new[]{ "ExternalAttributionCredit", "ExternalAttributionModel" }, new[]{ "ExternalAttributionCredit", "ExternalAttributionModel" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ClickConversionResult), global::Google.Ads.GoogleAds.V12.Services.ClickConversionResult.Parser, new[]{ "Gclid", "Gbraid", "Wbraid", "ConversionAction", "ConversionDateTime", "UserIdentifiers" }, new[]{ "Gclid", "ConversionAction", "ConversionDateTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CallConversionResult), global::Google.Ads.GoogleAds.V12.Services.CallConversionResult.Parser, new[]{ "CallerId", "CallStartDateTime", "ConversionAction", "ConversionDateTime" }, new[]{ "CallerId", "CallStartDateTime", "ConversionAction", "ConversionDateTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomVariable), global::Google.Ads.GoogleAds.V12.Services.CustomVariable.Parser, new[]{ "ConversionCustomVariable", "Value" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CartData), global::Google.Ads.GoogleAds.V12.Services.CartData.Parser, new[]{ "MerchantId", "FeedCountryCode", "FeedLanguageCode", "LocalTransactionCost", "Items" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CartData.Types.Item), global::Google.Ads.GoogleAds.V12.Services.CartData.Types.Item.Parser, new[]{ "ProductId", "Quantity", "UnitPrice" }, null, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v12.services.ConversionUploadService.UploadClickConversions]. - /// - public sealed partial class UploadClickConversionsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UploadClickConversionsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadClickConversionsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadClickConversionsRequest(UploadClickConversionsRequest other) : this() { - customerId_ = other.customerId_; - conversions_ = other.conversions_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - debugEnabled_ = other.debugEnabled_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadClickConversionsRequest Clone() { - return new UploadClickConversionsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer performing the upload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversions" field. - public const int ConversionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_conversions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ClickConversion.Parser); - private readonly pbc::RepeatedField conversions_ = new pbc::RepeatedField(); - /// - /// Required. The conversions that are being uploaded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Conversions { - get { return conversions_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "debug_enabled" field. - public const int DebugEnabledFieldNumber = 5; - private bool debugEnabled_; - /// - /// If true, the API will perform all upload checks and return errors if - /// any are found. If false, it will perform only basic input validation, - /// skip subsequent upload checks, and return success even if no click - /// was found for the provided `user_identifiers`. - /// - /// This setting only affects Enhanced conversions for leads uploads that use - /// `user_identifiers` instead of `GCLID`, `GBRAID`, or `WBRAID`. When - /// uploading enhanced conversions for leads, you should upload all conversion - /// events to the API, including those that may not come from Google Ads - /// campaigns. The upload of an event that is not from a Google Ads campaign - /// will result in a `CLICK_NOT_FOUND` error if this field is set to `true`. - /// Since these errors are expected for such events, set this field to `false` - /// so you can confirm your uploads are properly formatted but ignore - /// `CLICK_NOT_FOUND` errors from all of the conversions that are not from a - /// Google Ads campaign. This will allow you to focus only on errors that you - /// can address. - /// - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool DebugEnabled { - get { return debugEnabled_; } - set { - debugEnabled_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UploadClickConversionsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UploadClickConversionsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!conversions_.Equals(other.conversions_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (DebugEnabled != other.DebugEnabled) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= conversions_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (DebugEnabled != false) hash ^= DebugEnabled.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - conversions_.WriteTo(output, _repeated_conversions_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (DebugEnabled != false) { - output.WriteRawTag(40); - output.WriteBool(DebugEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - conversions_.WriteTo(ref output, _repeated_conversions_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (DebugEnabled != false) { - output.WriteRawTag(40); - output.WriteBool(DebugEnabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += conversions_.CalculateSize(_repeated_conversions_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (DebugEnabled != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UploadClickConversionsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - conversions_.Add(other.conversions_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.DebugEnabled != false) { - DebugEnabled = other.DebugEnabled; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - conversions_.AddEntriesFrom(input, _repeated_conversions_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - DebugEnabled = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - conversions_.AddEntriesFrom(ref input, _repeated_conversions_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - DebugEnabled = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v12.services.ConversionUploadService.UploadClickConversions]. - /// - public sealed partial class UploadClickConversionsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UploadClickConversionsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadClickConversionsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadClickConversionsResponse(UploadClickConversionsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadClickConversionsResponse Clone() { - return new UploadClickConversionsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to conversion failures in the partial failure mode. - /// Returned when all errors occur inside the conversions. If any errors occur - /// outside the conversions (for example, auth errors), we return an RPC level - /// error. See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ClickConversionResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// Returned for successfully processed conversions. Proto will be empty for - /// rows that received an error. Results are not returned when validate_only is - /// true. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UploadClickConversionsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UploadClickConversionsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UploadClickConversionsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v12.services.ConversionUploadService.UploadCallConversions]. - /// - public sealed partial class UploadCallConversionsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UploadCallConversionsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadCallConversionsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadCallConversionsRequest(UploadCallConversionsRequest other) : this() { - customerId_ = other.customerId_; - conversions_ = other.conversions_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadCallConversionsRequest Clone() { - return new UploadCallConversionsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer performing the upload. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversions" field. - public const int ConversionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_conversions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CallConversion.Parser); - private readonly pbc::RepeatedField conversions_ = new pbc::RepeatedField(); - /// - /// Required. The conversions that are being uploaded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Conversions { - get { return conversions_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UploadCallConversionsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UploadCallConversionsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!conversions_.Equals(other.conversions_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= conversions_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - conversions_.WriteTo(output, _repeated_conversions_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - conversions_.WriteTo(ref output, _repeated_conversions_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += conversions_.CalculateSize(_repeated_conversions_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UploadCallConversionsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - conversions_.Add(other.conversions_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - conversions_.AddEntriesFrom(input, _repeated_conversions_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - conversions_.AddEntriesFrom(ref input, _repeated_conversions_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v12.services.ConversionUploadService.UploadCallConversions]. - /// - public sealed partial class UploadCallConversionsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UploadCallConversionsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadCallConversionsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadCallConversionsResponse(UploadCallConversionsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UploadCallConversionsResponse Clone() { - return new UploadCallConversionsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to conversion failures in the partial failure mode. - /// Returned when all errors occur inside the conversions. If any errors occur - /// outside the conversions (for example, auth errors), we return an RPC level - /// error. See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CallConversionResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// Returned for successfully processed conversions. Proto will be empty for - /// rows that received an error. Results are not returned when validate_only is - /// true. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UploadCallConversionsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UploadCallConversionsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UploadCallConversionsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A click conversion. - /// - public sealed partial class ClickConversion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClickConversion()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickConversion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickConversion(ClickConversion other) : this() { - _hasBits0 = other._hasBits0; - gclid_ = other.gclid_; - gbraid_ = other.gbraid_; - wbraid_ = other.wbraid_; - conversionAction_ = other.conversionAction_; - conversionDateTime_ = other.conversionDateTime_; - conversionValue_ = other.conversionValue_; - currencyCode_ = other.currencyCode_; - orderId_ = other.orderId_; - externalAttributionData_ = other.externalAttributionData_ != null ? other.externalAttributionData_.Clone() : null; - customVariables_ = other.customVariables_.Clone(); - cartData_ = other.cartData_ != null ? other.cartData_.Clone() : null; - userIdentifiers_ = other.userIdentifiers_.Clone(); - conversionEnvironment_ = other.conversionEnvironment_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickConversion Clone() { - return new ClickConversion(this); - } - - /// Field number for the "gclid" field. - public const int GclidFieldNumber = 9; - private string gclid_; - /// - /// The Google click ID (gclid) associated with this conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Gclid { - get { return gclid_ ?? ""; } - set { - gclid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "gclid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGclid { - get { return gclid_ != null; } - } - /// Clears the value of the "gclid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGclid() { - gclid_ = null; - } - - /// Field number for the "gbraid" field. - public const int GbraidFieldNumber = 18; - private string gbraid_ = ""; - /// - /// The click identifier for clicks associated with app conversions and - /// originating from iOS devices starting with iOS14. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Gbraid { - get { return gbraid_; } - set { - gbraid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "wbraid" field. - public const int WbraidFieldNumber = 19; - private string wbraid_ = ""; - /// - /// The click identifier for clicks associated with web conversions and - /// originating from iOS devices starting with iOS14. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Wbraid { - get { return wbraid_; } - set { - wbraid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 10; - private string conversionAction_; - /// - /// Resource name of the conversion action associated with this conversion. - /// Note: Although this resource name consists of a customer id and a - /// conversion action id, validation will ignore the customer id and use the - /// conversion action id as the sole identifier of the conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionAction { - get { return conversionAction_ ?? ""; } - set { - conversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionAction { - get { return conversionAction_ != null; } - } - /// Clears the value of the "conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionAction() { - conversionAction_ = null; - } - - /// Field number for the "conversion_date_time" field. - public const int ConversionDateTimeFieldNumber = 11; - private string conversionDateTime_; - /// - /// The date time at which the conversion occurred. Must be after - /// the click time. The timezone must be specified. The format is - /// "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionDateTime { - get { return conversionDateTime_ ?? ""; } - set { - conversionDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionDateTime { - get { return conversionDateTime_ != null; } - } - /// Clears the value of the "conversion_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionDateTime() { - conversionDateTime_ = null; - } - - /// Field number for the "conversion_value" field. - public const int ConversionValueFieldNumber = 12; - private double conversionValue_; - /// - /// The value of the conversion for the advertiser. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double ConversionValue { - get { if ((_hasBits0 & 1) != 0) { return conversionValue_; } else { return 0D; } } - set { - _hasBits0 |= 1; - conversionValue_ = value; - } - } - /// Gets whether the "conversion_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "conversion_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionValue() { - _hasBits0 &= ~1; - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 13; - private string currencyCode_; - /// - /// Currency associated with the conversion value. This is the ISO 4217 - /// 3-character currency code. For example: USD, EUR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_ ?? ""; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyCode { - get { return currencyCode_ != null; } - } - /// Clears the value of the "currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyCode() { - currencyCode_ = null; - } - - /// Field number for the "order_id" field. - public const int OrderIdFieldNumber = 14; - private string orderId_; - /// - /// The order ID associated with the conversion. An order id can only be used - /// for one conversion per conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OrderId { - get { return orderId_ ?? ""; } - set { - orderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "order_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOrderId { - get { return orderId_ != null; } - } - /// Clears the value of the "order_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOrderId() { - orderId_ = null; - } - - /// Field number for the "external_attribution_data" field. - public const int ExternalAttributionDataFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Services.ExternalAttributionData externalAttributionData_; - /// - /// Additional data about externally attributed conversions. This field - /// is required for conversions with an externally attributed conversion - /// action, but should not be set otherwise. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ExternalAttributionData ExternalAttributionData { - get { return externalAttributionData_; } - set { - externalAttributionData_ = value; - } - } - - /// Field number for the "custom_variables" field. - public const int CustomVariablesFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_customVariables_codec - = pb::FieldCodec.ForMessage(122, global::Google.Ads.GoogleAds.V12.Services.CustomVariable.Parser); - private readonly pbc::RepeatedField customVariables_ = new pbc::RepeatedField(); - /// - /// The custom variables associated with this conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CustomVariables { - get { return customVariables_; } - } - - /// Field number for the "cart_data" field. - public const int CartDataFieldNumber = 16; - private global::Google.Ads.GoogleAds.V12.Services.CartData cartData_; - /// - /// The cart data associated with this conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CartData CartData { - get { return cartData_; } - set { - cartData_ = value; - } - } - - /// Field number for the "user_identifiers" field. - public const int UserIdentifiersFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_userIdentifiers_codec - = pb::FieldCodec.ForMessage(138, global::Google.Ads.GoogleAds.V12.Common.UserIdentifier.Parser); - private readonly pbc::RepeatedField userIdentifiers_ = new pbc::RepeatedField(); - /// - /// The user identifiers associated with this conversion. Only hashed_email and - /// hashed_phone_number are supported for conversion uploads. The maximum - /// number of user identifiers for each conversion is 5. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserIdentifiers { - get { return userIdentifiers_; } - } - - /// Field number for the "conversion_environment" field. - public const int ConversionEnvironmentFieldNumber = 20; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment conversionEnvironment_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment.Unspecified; - /// - /// The environment this conversion was recorded on, for example, App or Web. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment ConversionEnvironment { - get { return conversionEnvironment_; } - set { - conversionEnvironment_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClickConversion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClickConversion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Gclid != other.Gclid) return false; - if (Gbraid != other.Gbraid) return false; - if (Wbraid != other.Wbraid) return false; - if (ConversionAction != other.ConversionAction) return false; - if (ConversionDateTime != other.ConversionDateTime) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionValue, other.ConversionValue)) return false; - if (CurrencyCode != other.CurrencyCode) return false; - if (OrderId != other.OrderId) return false; - if (!object.Equals(ExternalAttributionData, other.ExternalAttributionData)) return false; - if(!customVariables_.Equals(other.customVariables_)) return false; - if (!object.Equals(CartData, other.CartData)) return false; - if(!userIdentifiers_.Equals(other.userIdentifiers_)) return false; - if (ConversionEnvironment != other.ConversionEnvironment) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasGclid) hash ^= Gclid.GetHashCode(); - if (Gbraid.Length != 0) hash ^= Gbraid.GetHashCode(); - if (Wbraid.Length != 0) hash ^= Wbraid.GetHashCode(); - if (HasConversionAction) hash ^= ConversionAction.GetHashCode(); - if (HasConversionDateTime) hash ^= ConversionDateTime.GetHashCode(); - if (HasConversionValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionValue); - if (HasCurrencyCode) hash ^= CurrencyCode.GetHashCode(); - if (HasOrderId) hash ^= OrderId.GetHashCode(); - if (externalAttributionData_ != null) hash ^= ExternalAttributionData.GetHashCode(); - hash ^= customVariables_.GetHashCode(); - if (cartData_ != null) hash ^= CartData.GetHashCode(); - hash ^= userIdentifiers_.GetHashCode(); - if (ConversionEnvironment != global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment.Unspecified) hash ^= ConversionEnvironment.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (externalAttributionData_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ExternalAttributionData); - } - if (HasGclid) { - output.WriteRawTag(74); - output.WriteString(Gclid); - } - if (HasConversionAction) { - output.WriteRawTag(82); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(90); - output.WriteString(ConversionDateTime); - } - if (HasConversionValue) { - output.WriteRawTag(97); - output.WriteDouble(ConversionValue); - } - if (HasCurrencyCode) { - output.WriteRawTag(106); - output.WriteString(CurrencyCode); - } - if (HasOrderId) { - output.WriteRawTag(114); - output.WriteString(OrderId); - } - customVariables_.WriteTo(output, _repeated_customVariables_codec); - if (cartData_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(CartData); - } - userIdentifiers_.WriteTo(output, _repeated_userIdentifiers_codec); - if (Gbraid.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(Gbraid); - } - if (Wbraid.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(Wbraid); - } - if (ConversionEnvironment != global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment.Unspecified) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) ConversionEnvironment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (externalAttributionData_ != null) { - output.WriteRawTag(58); - output.WriteMessage(ExternalAttributionData); - } - if (HasGclid) { - output.WriteRawTag(74); - output.WriteString(Gclid); - } - if (HasConversionAction) { - output.WriteRawTag(82); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(90); - output.WriteString(ConversionDateTime); - } - if (HasConversionValue) { - output.WriteRawTag(97); - output.WriteDouble(ConversionValue); - } - if (HasCurrencyCode) { - output.WriteRawTag(106); - output.WriteString(CurrencyCode); - } - if (HasOrderId) { - output.WriteRawTag(114); - output.WriteString(OrderId); - } - customVariables_.WriteTo(ref output, _repeated_customVariables_codec); - if (cartData_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(CartData); - } - userIdentifiers_.WriteTo(ref output, _repeated_userIdentifiers_codec); - if (Gbraid.Length != 0) { - output.WriteRawTag(146, 1); - output.WriteString(Gbraid); - } - if (Wbraid.Length != 0) { - output.WriteRawTag(154, 1); - output.WriteString(Wbraid); - } - if (ConversionEnvironment != global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment.Unspecified) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) ConversionEnvironment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasGclid) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Gclid); - } - if (Gbraid.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Gbraid); - } - if (Wbraid.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Wbraid); - } - if (HasConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionAction); - } - if (HasConversionDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionDateTime); - } - if (HasConversionValue) { - size += 1 + 8; - } - if (HasCurrencyCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - if (HasOrderId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderId); - } - if (externalAttributionData_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalAttributionData); - } - size += customVariables_.CalculateSize(_repeated_customVariables_codec); - if (cartData_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CartData); - } - size += userIdentifiers_.CalculateSize(_repeated_userIdentifiers_codec); - if (ConversionEnvironment != global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionEnvironment); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClickConversion other) { - if (other == null) { - return; - } - if (other.HasGclid) { - Gclid = other.Gclid; - } - if (other.Gbraid.Length != 0) { - Gbraid = other.Gbraid; - } - if (other.Wbraid.Length != 0) { - Wbraid = other.Wbraid; - } - if (other.HasConversionAction) { - ConversionAction = other.ConversionAction; - } - if (other.HasConversionDateTime) { - ConversionDateTime = other.ConversionDateTime; - } - if (other.HasConversionValue) { - ConversionValue = other.ConversionValue; - } - if (other.HasCurrencyCode) { - CurrencyCode = other.CurrencyCode; - } - if (other.HasOrderId) { - OrderId = other.OrderId; - } - if (other.externalAttributionData_ != null) { - if (externalAttributionData_ == null) { - ExternalAttributionData = new global::Google.Ads.GoogleAds.V12.Services.ExternalAttributionData(); - } - ExternalAttributionData.MergeFrom(other.ExternalAttributionData); - } - customVariables_.Add(other.customVariables_); - if (other.cartData_ != null) { - if (cartData_ == null) { - CartData = new global::Google.Ads.GoogleAds.V12.Services.CartData(); - } - CartData.MergeFrom(other.CartData); - } - userIdentifiers_.Add(other.userIdentifiers_); - if (other.ConversionEnvironment != global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment.Unspecified) { - ConversionEnvironment = other.ConversionEnvironment; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 58: { - if (externalAttributionData_ == null) { - ExternalAttributionData = new global::Google.Ads.GoogleAds.V12.Services.ExternalAttributionData(); - } - input.ReadMessage(ExternalAttributionData); - break; - } - case 74: { - Gclid = input.ReadString(); - break; - } - case 82: { - ConversionAction = input.ReadString(); - break; - } - case 90: { - ConversionDateTime = input.ReadString(); - break; - } - case 97: { - ConversionValue = input.ReadDouble(); - break; - } - case 106: { - CurrencyCode = input.ReadString(); - break; - } - case 114: { - OrderId = input.ReadString(); - break; - } - case 122: { - customVariables_.AddEntriesFrom(input, _repeated_customVariables_codec); - break; - } - case 130: { - if (cartData_ == null) { - CartData = new global::Google.Ads.GoogleAds.V12.Services.CartData(); - } - input.ReadMessage(CartData); - break; - } - case 138: { - userIdentifiers_.AddEntriesFrom(input, _repeated_userIdentifiers_codec); - break; - } - case 146: { - Gbraid = input.ReadString(); - break; - } - case 154: { - Wbraid = input.ReadString(); - break; - } - case 160: { - ConversionEnvironment = (global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 58: { - if (externalAttributionData_ == null) { - ExternalAttributionData = new global::Google.Ads.GoogleAds.V12.Services.ExternalAttributionData(); - } - input.ReadMessage(ExternalAttributionData); - break; - } - case 74: { - Gclid = input.ReadString(); - break; - } - case 82: { - ConversionAction = input.ReadString(); - break; - } - case 90: { - ConversionDateTime = input.ReadString(); - break; - } - case 97: { - ConversionValue = input.ReadDouble(); - break; - } - case 106: { - CurrencyCode = input.ReadString(); - break; - } - case 114: { - OrderId = input.ReadString(); - break; - } - case 122: { - customVariables_.AddEntriesFrom(ref input, _repeated_customVariables_codec); - break; - } - case 130: { - if (cartData_ == null) { - CartData = new global::Google.Ads.GoogleAds.V12.Services.CartData(); - } - input.ReadMessage(CartData); - break; - } - case 138: { - userIdentifiers_.AddEntriesFrom(ref input, _repeated_userIdentifiers_codec); - break; - } - case 146: { - Gbraid = input.ReadString(); - break; - } - case 154: { - Wbraid = input.ReadString(); - break; - } - case 160: { - ConversionEnvironment = (global::Google.Ads.GoogleAds.V12.Enums.ConversionEnvironmentEnum.Types.ConversionEnvironment) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A call conversion. - /// - public sealed partial class CallConversion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallConversion()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversion(CallConversion other) : this() { - _hasBits0 = other._hasBits0; - callerId_ = other.callerId_; - callStartDateTime_ = other.callStartDateTime_; - conversionAction_ = other.conversionAction_; - conversionDateTime_ = other.conversionDateTime_; - conversionValue_ = other.conversionValue_; - currencyCode_ = other.currencyCode_; - customVariables_ = other.customVariables_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversion Clone() { - return new CallConversion(this); - } - - /// Field number for the "caller_id" field. - public const int CallerIdFieldNumber = 7; - private string callerId_; - /// - /// The caller id from which this call was placed. Caller id is expected to be - /// in E.164 format with preceding '+' sign, for example, "+16502531234". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallerId { - get { return callerId_ ?? ""; } - set { - callerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "caller_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallerId { - get { return callerId_ != null; } - } - /// Clears the value of the "caller_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallerId() { - callerId_ = null; - } - - /// Field number for the "call_start_date_time" field. - public const int CallStartDateTimeFieldNumber = 8; - private string callStartDateTime_; - /// - /// The date time at which the call occurred. The timezone must be specified. - /// The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", - /// for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallStartDateTime { - get { return callStartDateTime_ ?? ""; } - set { - callStartDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "call_start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallStartDateTime { - get { return callStartDateTime_ != null; } - } - /// Clears the value of the "call_start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallStartDateTime() { - callStartDateTime_ = null; - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 9; - private string conversionAction_; - /// - /// Resource name of the conversion action associated with this conversion. - /// Note: Although this resource name consists of a customer id and a - /// conversion action id, validation will ignore the customer id and use the - /// conversion action id as the sole identifier of the conversion action. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionAction { - get { return conversionAction_ ?? ""; } - set { - conversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionAction { - get { return conversionAction_ != null; } - } - /// Clears the value of the "conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionAction() { - conversionAction_ = null; - } - - /// Field number for the "conversion_date_time" field. - public const int ConversionDateTimeFieldNumber = 10; - private string conversionDateTime_; - /// - /// The date time at which the conversion occurred. Must be after the call - /// time. The timezone must be specified. The format is - /// "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionDateTime { - get { return conversionDateTime_ ?? ""; } - set { - conversionDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionDateTime { - get { return conversionDateTime_ != null; } - } - /// Clears the value of the "conversion_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionDateTime() { - conversionDateTime_ = null; - } - - /// Field number for the "conversion_value" field. - public const int ConversionValueFieldNumber = 11; - private double conversionValue_; - /// - /// The value of the conversion for the advertiser. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double ConversionValue { - get { if ((_hasBits0 & 1) != 0) { return conversionValue_; } else { return 0D; } } - set { - _hasBits0 |= 1; - conversionValue_ = value; - } - } - /// Gets whether the "conversion_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "conversion_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionValue() { - _hasBits0 &= ~1; - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 12; - private string currencyCode_; - /// - /// Currency associated with the conversion value. This is the ISO 4217 - /// 3-character currency code. For example: USD, EUR. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_ ?? ""; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyCode { - get { return currencyCode_ != null; } - } - /// Clears the value of the "currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyCode() { - currencyCode_ = null; - } - - /// Field number for the "custom_variables" field. - public const int CustomVariablesFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_customVariables_codec - = pb::FieldCodec.ForMessage(106, global::Google.Ads.GoogleAds.V12.Services.CustomVariable.Parser); - private readonly pbc::RepeatedField customVariables_ = new pbc::RepeatedField(); - /// - /// The custom variables associated with this conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CustomVariables { - get { return customVariables_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallConversion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallConversion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CallerId != other.CallerId) return false; - if (CallStartDateTime != other.CallStartDateTime) return false; - if (ConversionAction != other.ConversionAction) return false; - if (ConversionDateTime != other.ConversionDateTime) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionValue, other.ConversionValue)) return false; - if (CurrencyCode != other.CurrencyCode) return false; - if(!customVariables_.Equals(other.customVariables_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCallerId) hash ^= CallerId.GetHashCode(); - if (HasCallStartDateTime) hash ^= CallStartDateTime.GetHashCode(); - if (HasConversionAction) hash ^= ConversionAction.GetHashCode(); - if (HasConversionDateTime) hash ^= ConversionDateTime.GetHashCode(); - if (HasConversionValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionValue); - if (HasCurrencyCode) hash ^= CurrencyCode.GetHashCode(); - hash ^= customVariables_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCallerId) { - output.WriteRawTag(58); - output.WriteString(CallerId); - } - if (HasCallStartDateTime) { - output.WriteRawTag(66); - output.WriteString(CallStartDateTime); - } - if (HasConversionAction) { - output.WriteRawTag(74); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(82); - output.WriteString(ConversionDateTime); - } - if (HasConversionValue) { - output.WriteRawTag(89); - output.WriteDouble(ConversionValue); - } - if (HasCurrencyCode) { - output.WriteRawTag(98); - output.WriteString(CurrencyCode); - } - customVariables_.WriteTo(output, _repeated_customVariables_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCallerId) { - output.WriteRawTag(58); - output.WriteString(CallerId); - } - if (HasCallStartDateTime) { - output.WriteRawTag(66); - output.WriteString(CallStartDateTime); - } - if (HasConversionAction) { - output.WriteRawTag(74); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(82); - output.WriteString(ConversionDateTime); - } - if (HasConversionValue) { - output.WriteRawTag(89); - output.WriteDouble(ConversionValue); - } - if (HasCurrencyCode) { - output.WriteRawTag(98); - output.WriteString(CurrencyCode); - } - customVariables_.WriteTo(ref output, _repeated_customVariables_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCallerId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerId); - } - if (HasCallStartDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallStartDateTime); - } - if (HasConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionAction); - } - if (HasConversionDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionDateTime); - } - if (HasConversionValue) { - size += 1 + 8; - } - if (HasCurrencyCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - size += customVariables_.CalculateSize(_repeated_customVariables_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallConversion other) { - if (other == null) { - return; - } - if (other.HasCallerId) { - CallerId = other.CallerId; - } - if (other.HasCallStartDateTime) { - CallStartDateTime = other.CallStartDateTime; - } - if (other.HasConversionAction) { - ConversionAction = other.ConversionAction; - } - if (other.HasConversionDateTime) { - ConversionDateTime = other.ConversionDateTime; - } - if (other.HasConversionValue) { - ConversionValue = other.ConversionValue; - } - if (other.HasCurrencyCode) { - CurrencyCode = other.CurrencyCode; - } - customVariables_.Add(other.customVariables_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 58: { - CallerId = input.ReadString(); - break; - } - case 66: { - CallStartDateTime = input.ReadString(); - break; - } - case 74: { - ConversionAction = input.ReadString(); - break; - } - case 82: { - ConversionDateTime = input.ReadString(); - break; - } - case 89: { - ConversionValue = input.ReadDouble(); - break; - } - case 98: { - CurrencyCode = input.ReadString(); - break; - } - case 106: { - customVariables_.AddEntriesFrom(input, _repeated_customVariables_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 58: { - CallerId = input.ReadString(); - break; - } - case 66: { - CallStartDateTime = input.ReadString(); - break; - } - case 74: { - ConversionAction = input.ReadString(); - break; - } - case 82: { - ConversionDateTime = input.ReadString(); - break; - } - case 89: { - ConversionValue = input.ReadDouble(); - break; - } - case 98: { - CurrencyCode = input.ReadString(); - break; - } - case 106: { - customVariables_.AddEntriesFrom(ref input, _repeated_customVariables_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Contains additional information about externally attributed conversions. - /// - public sealed partial class ExternalAttributionData : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalAttributionData()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExternalAttributionData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExternalAttributionData(ExternalAttributionData other) : this() { - _hasBits0 = other._hasBits0; - externalAttributionCredit_ = other.externalAttributionCredit_; - externalAttributionModel_ = other.externalAttributionModel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExternalAttributionData Clone() { - return new ExternalAttributionData(this); - } - - /// Field number for the "external_attribution_credit" field. - public const int ExternalAttributionCreditFieldNumber = 3; - private double externalAttributionCredit_; - /// - /// Represents the fraction of the conversion that is attributed to the - /// Google Ads click. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double ExternalAttributionCredit { - get { if ((_hasBits0 & 1) != 0) { return externalAttributionCredit_; } else { return 0D; } } - set { - _hasBits0 |= 1; - externalAttributionCredit_ = value; - } - } - /// Gets whether the "external_attribution_credit" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExternalAttributionCredit { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "external_attribution_credit" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExternalAttributionCredit() { - _hasBits0 &= ~1; - } - - /// Field number for the "external_attribution_model" field. - public const int ExternalAttributionModelFieldNumber = 4; - private string externalAttributionModel_; - /// - /// Specifies the attribution model name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ExternalAttributionModel { - get { return externalAttributionModel_ ?? ""; } - set { - externalAttributionModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "external_attribution_model" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExternalAttributionModel { - get { return externalAttributionModel_ != null; } - } - /// Clears the value of the "external_attribution_model" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExternalAttributionModel() { - externalAttributionModel_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExternalAttributionData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExternalAttributionData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ExternalAttributionCredit, other.ExternalAttributionCredit)) return false; - if (ExternalAttributionModel != other.ExternalAttributionModel) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasExternalAttributionCredit) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ExternalAttributionCredit); - if (HasExternalAttributionModel) hash ^= ExternalAttributionModel.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasExternalAttributionCredit) { - output.WriteRawTag(25); - output.WriteDouble(ExternalAttributionCredit); - } - if (HasExternalAttributionModel) { - output.WriteRawTag(34); - output.WriteString(ExternalAttributionModel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasExternalAttributionCredit) { - output.WriteRawTag(25); - output.WriteDouble(ExternalAttributionCredit); - } - if (HasExternalAttributionModel) { - output.WriteRawTag(34); - output.WriteString(ExternalAttributionModel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasExternalAttributionCredit) { - size += 1 + 8; - } - if (HasExternalAttributionModel) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalAttributionModel); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExternalAttributionData other) { - if (other == null) { - return; - } - if (other.HasExternalAttributionCredit) { - ExternalAttributionCredit = other.ExternalAttributionCredit; - } - if (other.HasExternalAttributionModel) { - ExternalAttributionModel = other.ExternalAttributionModel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 25: { - ExternalAttributionCredit = input.ReadDouble(); - break; - } - case 34: { - ExternalAttributionModel = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 25: { - ExternalAttributionCredit = input.ReadDouble(); - break; - } - case 34: { - ExternalAttributionModel = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Identifying information for a successfully processed ClickConversion. - /// - public sealed partial class ClickConversionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClickConversionResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickConversionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickConversionResult(ClickConversionResult other) : this() { - gclid_ = other.gclid_; - gbraid_ = other.gbraid_; - wbraid_ = other.wbraid_; - conversionAction_ = other.conversionAction_; - conversionDateTime_ = other.conversionDateTime_; - userIdentifiers_ = other.userIdentifiers_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ClickConversionResult Clone() { - return new ClickConversionResult(this); - } - - /// Field number for the "gclid" field. - public const int GclidFieldNumber = 4; - private string gclid_; - /// - /// The Google Click ID (gclid) associated with this conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Gclid { - get { return gclid_ ?? ""; } - set { - gclid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "gclid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGclid { - get { return gclid_ != null; } - } - /// Clears the value of the "gclid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGclid() { - gclid_ = null; - } - - /// Field number for the "gbraid" field. - public const int GbraidFieldNumber = 8; - private string gbraid_ = ""; - /// - /// The click identifier for clicks associated with app conversions and - /// originating from iOS devices starting with iOS14. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Gbraid { - get { return gbraid_; } - set { - gbraid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "wbraid" field. - public const int WbraidFieldNumber = 9; - private string wbraid_ = ""; - /// - /// The click identifier for clicks associated with web conversions and - /// originating from iOS devices starting with iOS14. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Wbraid { - get { return wbraid_; } - set { - wbraid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 5; - private string conversionAction_; - /// - /// Resource name of the conversion action associated with this conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionAction { - get { return conversionAction_ ?? ""; } - set { - conversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionAction { - get { return conversionAction_ != null; } - } - /// Clears the value of the "conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionAction() { - conversionAction_ = null; - } - - /// Field number for the "conversion_date_time" field. - public const int ConversionDateTimeFieldNumber = 6; - private string conversionDateTime_; - /// - /// The date time at which the conversion occurred. The format is - /// "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionDateTime { - get { return conversionDateTime_ ?? ""; } - set { - conversionDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionDateTime { - get { return conversionDateTime_ != null; } - } - /// Clears the value of the "conversion_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionDateTime() { - conversionDateTime_ = null; - } - - /// Field number for the "user_identifiers" field. - public const int UserIdentifiersFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_userIdentifiers_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Common.UserIdentifier.Parser); - private readonly pbc::RepeatedField userIdentifiers_ = new pbc::RepeatedField(); - /// - /// The user identifiers associated with this conversion. Only hashed_email and - /// hashed_phone_number are supported for conversion uploads. The maximum - /// number of user identifiers for each conversion is 5. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserIdentifiers { - get { return userIdentifiers_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ClickConversionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ClickConversionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Gclid != other.Gclid) return false; - if (Gbraid != other.Gbraid) return false; - if (Wbraid != other.Wbraid) return false; - if (ConversionAction != other.ConversionAction) return false; - if (ConversionDateTime != other.ConversionDateTime) return false; - if(!userIdentifiers_.Equals(other.userIdentifiers_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasGclid) hash ^= Gclid.GetHashCode(); - if (Gbraid.Length != 0) hash ^= Gbraid.GetHashCode(); - if (Wbraid.Length != 0) hash ^= Wbraid.GetHashCode(); - if (HasConversionAction) hash ^= ConversionAction.GetHashCode(); - if (HasConversionDateTime) hash ^= ConversionDateTime.GetHashCode(); - hash ^= userIdentifiers_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasGclid) { - output.WriteRawTag(34); - output.WriteString(Gclid); - } - if (HasConversionAction) { - output.WriteRawTag(42); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(50); - output.WriteString(ConversionDateTime); - } - userIdentifiers_.WriteTo(output, _repeated_userIdentifiers_codec); - if (Gbraid.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Gbraid); - } - if (Wbraid.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Wbraid); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasGclid) { - output.WriteRawTag(34); - output.WriteString(Gclid); - } - if (HasConversionAction) { - output.WriteRawTag(42); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(50); - output.WriteString(ConversionDateTime); - } - userIdentifiers_.WriteTo(ref output, _repeated_userIdentifiers_codec); - if (Gbraid.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Gbraid); - } - if (Wbraid.Length != 0) { - output.WriteRawTag(74); - output.WriteString(Wbraid); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasGclid) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Gclid); - } - if (Gbraid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Gbraid); - } - if (Wbraid.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Wbraid); - } - if (HasConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionAction); - } - if (HasConversionDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionDateTime); - } - size += userIdentifiers_.CalculateSize(_repeated_userIdentifiers_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ClickConversionResult other) { - if (other == null) { - return; - } - if (other.HasGclid) { - Gclid = other.Gclid; - } - if (other.Gbraid.Length != 0) { - Gbraid = other.Gbraid; - } - if (other.Wbraid.Length != 0) { - Wbraid = other.Wbraid; - } - if (other.HasConversionAction) { - ConversionAction = other.ConversionAction; - } - if (other.HasConversionDateTime) { - ConversionDateTime = other.ConversionDateTime; - } - userIdentifiers_.Add(other.userIdentifiers_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 34: { - Gclid = input.ReadString(); - break; - } - case 42: { - ConversionAction = input.ReadString(); - break; - } - case 50: { - ConversionDateTime = input.ReadString(); - break; - } - case 58: { - userIdentifiers_.AddEntriesFrom(input, _repeated_userIdentifiers_codec); - break; - } - case 66: { - Gbraid = input.ReadString(); - break; - } - case 74: { - Wbraid = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - Gclid = input.ReadString(); - break; - } - case 42: { - ConversionAction = input.ReadString(); - break; - } - case 50: { - ConversionDateTime = input.ReadString(); - break; - } - case 58: { - userIdentifiers_.AddEntriesFrom(ref input, _repeated_userIdentifiers_codec); - break; - } - case 66: { - Gbraid = input.ReadString(); - break; - } - case 74: { - Wbraid = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Identifying information for a successfully processed CallConversionUpload. - /// - public sealed partial class CallConversionResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallConversionResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversionResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversionResult(CallConversionResult other) : this() { - callerId_ = other.callerId_; - callStartDateTime_ = other.callStartDateTime_; - conversionAction_ = other.conversionAction_; - conversionDateTime_ = other.conversionDateTime_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallConversionResult Clone() { - return new CallConversionResult(this); - } - - /// Field number for the "caller_id" field. - public const int CallerIdFieldNumber = 5; - private string callerId_; - /// - /// The caller id from which this call was placed. Caller id is expected to be - /// in E.164 format with preceding '+' sign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallerId { - get { return callerId_ ?? ""; } - set { - callerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "caller_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallerId { - get { return callerId_ != null; } - } - /// Clears the value of the "caller_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallerId() { - callerId_ = null; - } - - /// Field number for the "call_start_date_time" field. - public const int CallStartDateTimeFieldNumber = 6; - private string callStartDateTime_; - /// - /// The date time at which the call occurred. The format is - /// "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallStartDateTime { - get { return callStartDateTime_ ?? ""; } - set { - callStartDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "call_start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallStartDateTime { - get { return callStartDateTime_ != null; } - } - /// Clears the value of the "call_start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallStartDateTime() { - callStartDateTime_ = null; - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 7; - private string conversionAction_; - /// - /// Resource name of the conversion action associated with this conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionAction { - get { return conversionAction_ ?? ""; } - set { - conversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionAction { - get { return conversionAction_ != null; } - } - /// Clears the value of the "conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionAction() { - conversionAction_ = null; - } - - /// Field number for the "conversion_date_time" field. - public const int ConversionDateTimeFieldNumber = 8; - private string conversionDateTime_; - /// - /// The date time at which the conversion occurred. The format is - /// "yyyy-mm-dd hh:mm:ss+|-hh:mm", for example, "2019-01-01 12:32:45-08:00". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionDateTime { - get { return conversionDateTime_ ?? ""; } - set { - conversionDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "conversion_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionDateTime { - get { return conversionDateTime_ != null; } - } - /// Clears the value of the "conversion_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionDateTime() { - conversionDateTime_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallConversionResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallConversionResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CallerId != other.CallerId) return false; - if (CallStartDateTime != other.CallStartDateTime) return false; - if (ConversionAction != other.ConversionAction) return false; - if (ConversionDateTime != other.ConversionDateTime) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCallerId) hash ^= CallerId.GetHashCode(); - if (HasCallStartDateTime) hash ^= CallStartDateTime.GetHashCode(); - if (HasConversionAction) hash ^= ConversionAction.GetHashCode(); - if (HasConversionDateTime) hash ^= ConversionDateTime.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCallerId) { - output.WriteRawTag(42); - output.WriteString(CallerId); - } - if (HasCallStartDateTime) { - output.WriteRawTag(50); - output.WriteString(CallStartDateTime); - } - if (HasConversionAction) { - output.WriteRawTag(58); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(66); - output.WriteString(ConversionDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCallerId) { - output.WriteRawTag(42); - output.WriteString(CallerId); - } - if (HasCallStartDateTime) { - output.WriteRawTag(50); - output.WriteString(CallStartDateTime); - } - if (HasConversionAction) { - output.WriteRawTag(58); - output.WriteString(ConversionAction); - } - if (HasConversionDateTime) { - output.WriteRawTag(66); - output.WriteString(ConversionDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCallerId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallerId); - } - if (HasCallStartDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallStartDateTime); - } - if (HasConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionAction); - } - if (HasConversionDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionDateTime); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallConversionResult other) { - if (other == null) { - return; - } - if (other.HasCallerId) { - CallerId = other.CallerId; - } - if (other.HasCallStartDateTime) { - CallStartDateTime = other.CallStartDateTime; - } - if (other.HasConversionAction) { - ConversionAction = other.ConversionAction; - } - if (other.HasConversionDateTime) { - ConversionDateTime = other.ConversionDateTime; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 42: { - CallerId = input.ReadString(); - break; - } - case 50: { - CallStartDateTime = input.ReadString(); - break; - } - case 58: { - ConversionAction = input.ReadString(); - break; - } - case 66: { - ConversionDateTime = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 42: { - CallerId = input.ReadString(); - break; - } - case 50: { - CallStartDateTime = input.ReadString(); - break; - } - case 58: { - ConversionAction = input.ReadString(); - break; - } - case 66: { - ConversionDateTime = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A custom variable. - /// - public sealed partial class CustomVariable : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomVariable()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomVariable() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomVariable(CustomVariable other) : this() { - conversionCustomVariable_ = other.conversionCustomVariable_; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomVariable Clone() { - return new CustomVariable(this); - } - - /// Field number for the "conversion_custom_variable" field. - public const int ConversionCustomVariableFieldNumber = 1; - private string conversionCustomVariable_ = ""; - /// - /// Resource name of the custom variable associated with this conversion. - /// Note: Although this resource name consists of a customer id and a - /// conversion custom variable id, validation will ignore the customer id and - /// use the conversion custom variable id as the sole identifier of the - /// conversion custom variable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ConversionCustomVariable { - get { return conversionCustomVariable_; } - set { - conversionCustomVariable_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - /// - /// The value string of this custom variable. - /// The value of the custom variable should not contain private customer data, - /// such as email addresses or phone numbers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomVariable); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomVariable other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ConversionCustomVariable != other.ConversionCustomVariable) return false; - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ConversionCustomVariable.Length != 0) hash ^= ConversionCustomVariable.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ConversionCustomVariable.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ConversionCustomVariable); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ConversionCustomVariable.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ConversionCustomVariable); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ConversionCustomVariable.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ConversionCustomVariable); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomVariable other) { - if (other == null) { - return; - } - if (other.ConversionCustomVariable.Length != 0) { - ConversionCustomVariable = other.ConversionCustomVariable; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ConversionCustomVariable = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ConversionCustomVariable = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Contains additional information about cart data. - /// - public sealed partial class CartData : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CartData()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CartData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CartData(CartData other) : this() { - merchantId_ = other.merchantId_; - feedCountryCode_ = other.feedCountryCode_; - feedLanguageCode_ = other.feedLanguageCode_; - localTransactionCost_ = other.localTransactionCost_; - items_ = other.items_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CartData Clone() { - return new CartData(this); - } - - /// Field number for the "merchant_id" field. - public const int MerchantIdFieldNumber = 6; - private long merchantId_; - /// - /// The Merchant Center ID where the items are uploaded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MerchantId { - get { return merchantId_; } - set { - merchantId_ = value; - } - } - - /// Field number for the "feed_country_code" field. - public const int FeedCountryCodeFieldNumber = 2; - private string feedCountryCode_ = ""; - /// - /// The country code associated with the feed where the items are uploaded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedCountryCode { - get { return feedCountryCode_; } - set { - feedCountryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_language_code" field. - public const int FeedLanguageCodeFieldNumber = 3; - private string feedLanguageCode_ = ""; - /// - /// The language code associated with the feed where the items are uploaded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedLanguageCode { - get { return feedLanguageCode_; } - set { - feedLanguageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "local_transaction_cost" field. - public const int LocalTransactionCostFieldNumber = 4; - private double localTransactionCost_; - /// - /// Sum of all transaction level discounts, such as free shipping and - /// coupon discounts for the whole cart. The currency code is the same - /// as that in the ClickConversion message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double LocalTransactionCost { - get { return localTransactionCost_; } - set { - localTransactionCost_ = value; - } - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Services.CartData.Types.Item.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - /// - /// Data of the items purchased. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Items { - get { return items_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CartData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CartData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MerchantId != other.MerchantId) return false; - if (FeedCountryCode != other.FeedCountryCode) return false; - if (FeedLanguageCode != other.FeedLanguageCode) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(LocalTransactionCost, other.LocalTransactionCost)) return false; - if(!items_.Equals(other.items_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MerchantId != 0L) hash ^= MerchantId.GetHashCode(); - if (FeedCountryCode.Length != 0) hash ^= FeedCountryCode.GetHashCode(); - if (FeedLanguageCode.Length != 0) hash ^= FeedLanguageCode.GetHashCode(); - if (LocalTransactionCost != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(LocalTransactionCost); - hash ^= items_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (FeedCountryCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FeedCountryCode); - } - if (FeedLanguageCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FeedLanguageCode); - } - if (LocalTransactionCost != 0D) { - output.WriteRawTag(33); - output.WriteDouble(LocalTransactionCost); - } - items_.WriteTo(output, _repeated_items_codec); - if (MerchantId != 0L) { - output.WriteRawTag(48); - output.WriteInt64(MerchantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FeedCountryCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FeedCountryCode); - } - if (FeedLanguageCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FeedLanguageCode); - } - if (LocalTransactionCost != 0D) { - output.WriteRawTag(33); - output.WriteDouble(LocalTransactionCost); - } - items_.WriteTo(ref output, _repeated_items_codec); - if (MerchantId != 0L) { - output.WriteRawTag(48); - output.WriteInt64(MerchantId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MerchantId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MerchantId); - } - if (FeedCountryCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedCountryCode); - } - if (FeedLanguageCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedLanguageCode); - } - if (LocalTransactionCost != 0D) { - size += 1 + 8; - } - size += items_.CalculateSize(_repeated_items_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CartData other) { - if (other == null) { - return; - } - if (other.MerchantId != 0L) { - MerchantId = other.MerchantId; - } - if (other.FeedCountryCode.Length != 0) { - FeedCountryCode = other.FeedCountryCode; - } - if (other.FeedLanguageCode.Length != 0) { - FeedLanguageCode = other.FeedLanguageCode; - } - if (other.LocalTransactionCost != 0D) { - LocalTransactionCost = other.LocalTransactionCost; - } - items_.Add(other.items_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - FeedCountryCode = input.ReadString(); - break; - } - case 26: { - FeedLanguageCode = input.ReadString(); - break; - } - case 33: { - LocalTransactionCost = input.ReadDouble(); - break; - } - case 42: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - case 48: { - MerchantId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - FeedCountryCode = input.ReadString(); - break; - } - case 26: { - FeedLanguageCode = input.ReadString(); - break; - } - case 33: { - LocalTransactionCost = input.ReadDouble(); - break; - } - case 42: { - items_.AddEntriesFrom(ref input, _repeated_items_codec); - break; - } - case 48: { - MerchantId = input.ReadInt64(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CartData message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Contains data of the items purchased. - /// - public sealed partial class Item : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Item()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CartData.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item(Item other) : this() { - productId_ = other.productId_; - quantity_ = other.quantity_; - unitPrice_ = other.unitPrice_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Item Clone() { - return new Item(this); - } - - /// Field number for the "product_id" field. - public const int ProductIdFieldNumber = 1; - private string productId_ = ""; - /// - /// The shopping id of the item. Must be equal to the Merchant Center product - /// identifier. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProductId { - get { return productId_; } - set { - productId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "quantity" field. - public const int QuantityFieldNumber = 2; - private int quantity_; - /// - /// Number of items sold. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Quantity { - get { return quantity_; } - set { - quantity_ = value; - } - } - - /// Field number for the "unit_price" field. - public const int UnitPriceFieldNumber = 3; - private double unitPrice_; - /// - /// Unit price excluding tax, shipping, and any transaction - /// level discounts. The currency code is the same as that in the - /// ClickConversion message. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double UnitPrice { - get { return unitPrice_; } - set { - unitPrice_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Item); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Item other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ProductId != other.ProductId) return false; - if (Quantity != other.Quantity) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UnitPrice, other.UnitPrice)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ProductId.Length != 0) hash ^= ProductId.GetHashCode(); - if (Quantity != 0) hash ^= Quantity.GetHashCode(); - if (UnitPrice != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UnitPrice); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ProductId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ProductId); - } - if (Quantity != 0) { - output.WriteRawTag(16); - output.WriteInt32(Quantity); - } - if (UnitPrice != 0D) { - output.WriteRawTag(25); - output.WriteDouble(UnitPrice); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ProductId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ProductId); - } - if (Quantity != 0) { - output.WriteRawTag(16); - output.WriteInt32(Quantity); - } - if (UnitPrice != 0D) { - output.WriteRawTag(25); - output.WriteDouble(UnitPrice); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ProductId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProductId); - } - if (Quantity != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Quantity); - } - if (UnitPrice != 0D) { - size += 1 + 8; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Item other) { - if (other == null) { - return; - } - if (other.ProductId.Length != 0) { - ProductId = other.ProductId; - } - if (other.Quantity != 0) { - Quantity = other.Quantity; - } - if (other.UnitPrice != 0D) { - UnitPrice = other.UnitPrice; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ProductId = input.ReadString(); - break; - } - case 16: { - Quantity = input.ReadInt32(); - break; - } - case 25: { - UnitPrice = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ProductId = input.ReadString(); - break; - } - case 16: { - Quantity = input.ReadInt32(); - break; - } - case 25: { - UnitPrice = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceClient.g.cs deleted file mode 100755 index 9df110b92..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceClient.g.cs +++ /dev/null @@ -1,715 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ConversionUploadServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ConversionUploadServiceSettings GetDefault() => new ConversionUploadServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ConversionUploadServiceSettings() - { - } - - private ConversionUploadServiceSettings(ConversionUploadServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - UploadClickConversionsSettings = existing.UploadClickConversionsSettings; - UploadCallConversionsSettings = existing.UploadCallConversionsSettings; - OnCopy(existing); - } - - partial void OnCopy(ConversionUploadServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ConversionUploadServiceClient.UploadClickConversions and - /// ConversionUploadServiceClient.UploadClickConversionsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings UploadClickConversionsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// ConversionUploadServiceClient.UploadCallConversions and - /// ConversionUploadServiceClient.UploadCallConversionsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings UploadCallConversionsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ConversionUploadServiceSettings Clone() => new ConversionUploadServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class ConversionUploadServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ConversionUploadServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ConversionUploadServiceClientBuilder() : base(ConversionUploadServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ConversionUploadServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ConversionUploadServiceClient Build() - { - ConversionUploadServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ConversionUploadServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ConversionUploadServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ConversionUploadServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ConversionUploadServiceClient.ChannelPool; - } - - /// ConversionUploadService client wrapper, for convenient use. - /// - /// Service to upload conversions. - /// - public abstract partial class ConversionUploadServiceClient - { - /// - /// The default endpoint for the ConversionUploadService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ConversionUploadService scopes. - /// - /// The default ConversionUploadService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ConversionUploadService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ConversionUploadServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ConversionUploadServiceClient Create() => new ConversionUploadServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ConversionUploadServiceClient Create(grpccore::CallInvoker callInvoker, ConversionUploadServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ConversionUploadService.ConversionUploadServiceClient grpcClient = new ConversionUploadService.ConversionUploadServiceClient(callInvoker); - return new ConversionUploadServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ConversionUploadService client - public virtual ConversionUploadService.ConversionUploadServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UploadClickConversionsResponse UploadClickConversions(UploadClickConversionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UploadClickConversionsAsync(UploadClickConversionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UploadClickConversionsAsync(UploadClickConversionsRequest request, st::CancellationToken cancellationToken) => - UploadClickConversionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversions that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UploadClickConversionsResponse UploadClickConversions(string customerId, scg::IEnumerable conversions, bool partialFailure, gaxgrpc::CallSettings callSettings = null) => - UploadClickConversions(new UploadClickConversionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Conversions = - { - gax::GaxPreconditions.CheckNotNull(conversions, nameof(conversions)), - }, - PartialFailure = partialFailure, - }, callSettings); - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversions that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UploadClickConversionsAsync(string customerId, scg::IEnumerable conversions, bool partialFailure, gaxgrpc::CallSettings callSettings = null) => - UploadClickConversionsAsync(new UploadClickConversionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Conversions = - { - gax::GaxPreconditions.CheckNotNull(conversions, nameof(conversions)), - }, - PartialFailure = partialFailure, - }, callSettings); - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversions that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UploadClickConversionsAsync(string customerId, scg::IEnumerable conversions, bool partialFailure, st::CancellationToken cancellationToken) => - UploadClickConversionsAsync(customerId, conversions, partialFailure, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UploadCallConversionsResponse UploadCallConversions(UploadCallConversionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UploadCallConversionsAsync(UploadCallConversionsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UploadCallConversionsAsync(UploadCallConversionsRequest request, st::CancellationToken cancellationToken) => - UploadCallConversionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversions that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual UploadCallConversionsResponse UploadCallConversions(string customerId, scg::IEnumerable conversions, bool partialFailure, gaxgrpc::CallSettings callSettings = null) => - UploadCallConversions(new UploadCallConversionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Conversions = - { - gax::GaxPreconditions.CheckNotNull(conversions, nameof(conversions)), - }, - PartialFailure = partialFailure, - }, callSettings); - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversions that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task UploadCallConversionsAsync(string customerId, scg::IEnumerable conversions, bool partialFailure, gaxgrpc::CallSettings callSettings = null) => - UploadCallConversionsAsync(new UploadCallConversionsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Conversions = - { - gax::GaxPreconditions.CheckNotNull(conversions, nameof(conversions)), - }, - PartialFailure = partialFailure, - }, callSettings); - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer performing the upload. - /// - /// - /// Required. The conversions that are being uploaded. - /// - /// - /// Required. If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// This should always be set to true. - /// See - /// https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - /// for more information about partial failure. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task UploadCallConversionsAsync(string customerId, scg::IEnumerable conversions, bool partialFailure, st::CancellationToken cancellationToken) => - UploadCallConversionsAsync(customerId, conversions, partialFailure, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ConversionUploadService client wrapper implementation, for convenient use. - /// - /// Service to upload conversions. - /// - public sealed partial class ConversionUploadServiceClientImpl : ConversionUploadServiceClient - { - private readonly gaxgrpc::ApiCall _callUploadClickConversions; - - private readonly gaxgrpc::ApiCall _callUploadCallConversions; - - /// - /// Constructs a client wrapper for the ConversionUploadService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ConversionUploadServiceClientImpl(ConversionUploadService.ConversionUploadServiceClient grpcClient, ConversionUploadServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ConversionUploadServiceSettings effectiveSettings = settings ?? ConversionUploadServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callUploadClickConversions = clientHelper.BuildApiCall("UploadClickConversions", grpcClient.UploadClickConversionsAsync, grpcClient.UploadClickConversions, effectiveSettings.UploadClickConversionsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callUploadClickConversions); - Modify_UploadClickConversionsApiCall(ref _callUploadClickConversions); - _callUploadCallConversions = clientHelper.BuildApiCall("UploadCallConversions", grpcClient.UploadCallConversionsAsync, grpcClient.UploadCallConversions, effectiveSettings.UploadCallConversionsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callUploadCallConversions); - Modify_UploadCallConversionsApiCall(ref _callUploadCallConversions); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_UploadClickConversionsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_UploadCallConversionsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ConversionUploadService.ConversionUploadServiceClient grpcClient, ConversionUploadServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ConversionUploadService client - public override ConversionUploadService.ConversionUploadServiceClient GrpcClient { get; } - - partial void Modify_UploadClickConversionsRequest(ref UploadClickConversionsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_UploadCallConversionsRequest(ref UploadCallConversionsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override UploadClickConversionsResponse UploadClickConversions(UploadClickConversionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UploadClickConversionsRequest(ref request, ref callSettings); - return _callUploadClickConversions.Sync(request, callSettings); - } - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task UploadClickConversionsAsync(UploadClickConversionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UploadClickConversionsRequest(ref request, ref callSettings); - return _callUploadClickConversions.Async(request, callSettings); - } - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override UploadCallConversionsResponse UploadCallConversions(UploadCallConversionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UploadCallConversionsRequest(ref request, ref callSettings); - return _callUploadCallConversions.Sync(request, callSettings); - } - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task UploadCallConversionsAsync(UploadCallConversionsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_UploadCallConversionsRequest(ref request, ref callSettings); - return _callUploadCallConversions.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceGrpc.g.cs deleted file mode 100755 index 8a1a40df0..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceGrpc.g.cs +++ /dev/null @@ -1,376 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_upload_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to upload conversions. - /// - public static partial class ConversionUploadService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ConversionUploadService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_UploadClickConversionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_UploadClickConversionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_UploadCallConversionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_UploadCallConversionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UploadClickConversions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UploadClickConversions", - __Marshaller_google_ads_googleads_v12_services_UploadClickConversionsRequest, - __Marshaller_google_ads_googleads_v12_services_UploadClickConversionsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_UploadCallConversions = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "UploadCallConversions", - __Marshaller_google_ads_googleads_v12_services_UploadCallConversionsRequest, - __Marshaller_google_ads_googleads_v12_services_UploadCallConversionsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionUploadServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ConversionUploadService - [grpc::BindServiceMethod(typeof(ConversionUploadService), "BindService")] - public abstract partial class ConversionUploadServiceBase - { - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UploadClickConversions(global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task UploadCallConversions(global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ConversionUploadService - public partial class ConversionUploadServiceClient : grpc::ClientBase - { - /// Creates a new client for ConversionUploadService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionUploadServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ConversionUploadService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionUploadServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionUploadServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionUploadServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsResponse UploadClickConversions(global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UploadClickConversions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsResponse UploadClickConversions(global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UploadClickConversions, null, options, request); - } - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UploadClickConversionsAsync(global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UploadClickConversionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Processes the given click conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ConversionUploadError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UploadClickConversionsAsync(global::Google.Ads.GoogleAds.V12.Services.UploadClickConversionsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UploadClickConversions, null, options, request); - } - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsResponse UploadCallConversions(global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UploadCallConversions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsResponse UploadCallConversions(global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_UploadCallConversions, null, options, request); - } - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UploadCallConversionsAsync(global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return UploadCallConversionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Processes the given call conversions. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [PartialFailureError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall UploadCallConversionsAsync(global::Google.Ads.GoogleAds.V12.Services.UploadCallConversionsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_UploadCallConversions, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ConversionUploadServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ConversionUploadServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ConversionUploadServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_UploadClickConversions, serviceImpl.UploadClickConversions) - .AddMethod(__Method_UploadCallConversions, serviceImpl.UploadCallConversions).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ConversionUploadServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_UploadClickConversions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UploadClickConversions)); - serviceBinder.AddMethod(__Method_UploadCallConversions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UploadCallConversions)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceResourceNames.g.cs deleted file mode 100755 index 452ac25f5..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionUploadServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomVariable - { - /// - /// -typed view over the - /// resource name property. - /// - internal gagvr::ConversionCustomVariableName ConversionCustomVariableAsConversionCustomVariableName - { - get => string.IsNullOrEmpty(ConversionCustomVariable) ? null : gagvr::ConversionCustomVariableName.Parse(ConversionCustomVariable, allowUnparsed: true); - set => ConversionCustomVariable = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRule.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRule.g.cs deleted file mode 100755 index efbce4a80..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRule.g.cs +++ /dev/null @@ -1,1554 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/conversion_value_rule.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/conversion_value_rule.proto - public static partial class ConversionValueRuleReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/conversion_value_rule.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NvbnZlcnNp", - "b25fdmFsdWVfcnVsZS5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxpBZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Nv", - "bnZlcnNpb25fdmFsdWVfcnVsZV9zdGF0dXMucHJvdG8aO2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcy92YWx1ZV9ydWxlX2RldmljZV90eXBlLnBy", - "b3RvGkdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvdmFsdWVfcnVs", - "ZV9nZW9fbG9jYXRpb25fbWF0Y2hfdHlwZS5wcm90bxo5Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL2VudW1zL3ZhbHVlX3J1bGVfb3BlcmF0aW9uLnByb3Rv", - "Gh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBp", - "L3Jlc291cmNlLnByb3RvIqoNChNDb252ZXJzaW9uVmFsdWVSdWxlEksKDXJl", - "c291cmNlX25hbWUYASABKAlCNOBBBfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NvbnZlcnNpb25WYWx1ZVJ1bGUSDwoCaWQYAiABKANCA+BBAxJX", - "CgZhY3Rpb24YAyABKAsyRy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkNvbnZlcnNpb25WYWx1ZVJ1bGUuVmFsdWVSdWxlQWN0aW9uEnUK", - "Fmdlb19sb2NhdGlvbl9jb25kaXRpb24YBCABKAsyVS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkNvbnZlcnNpb25WYWx1ZVJ1bGUuVmFs", - "dWVSdWxlR2VvTG9jYXRpb25Db25kaXRpb24SagoQZGV2aWNlX2NvbmRpdGlv", - "bhgFIAEoCzJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "Q29udmVyc2lvblZhbHVlUnVsZS5WYWx1ZVJ1bGVEZXZpY2VDb25kaXRpb24S", - "bgoSYXVkaWVuY2VfY29uZGl0aW9uGAYgASgLMlIuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9uVmFsdWVSdWxlLlZhbHVl", - "UnVsZUF1ZGllbmNlQ29uZGl0aW9uEkEKDm93bmVyX2N1c3RvbWVyGAcgASgJ", - "QingQQP6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lchJn", - "CgZzdGF0dXMYCCABKA4yVy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuQ29udmVyc2lvblZhbHVlUnVsZVN0YXR1c0VudW0uQ29udmVyc2lvblZh", - "bHVlUnVsZVN0YXR1cxp+Cg9WYWx1ZVJ1bGVBY3Rpb24SXAoJb3BlcmF0aW9u", - "GAEgASgOMkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlZhbHVl", - "UnVsZU9wZXJhdGlvbkVudW0uVmFsdWVSdWxlT3BlcmF0aW9uEg0KBXZhbHVl", - "GAIgASgBGsIDCh1WYWx1ZVJ1bGVHZW9Mb2NhdGlvbkNvbmRpdGlvbhJWCh1l", - "eGNsdWRlZF9nZW9fdGFyZ2V0X2NvbnN0YW50cxgBIAMoCUIv+kEsCipnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vR2VvVGFyZ2V0Q29uc3RhbnQSgAEKF2V4", - "Y2x1ZGVkX2dlb19tYXRjaF90eXBlGAIgASgOMl8uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zLlZhbHVlUnVsZUdlb0xvY2F0aW9uTWF0Y2hUeXBl", - "RW51bS5WYWx1ZVJ1bGVHZW9Mb2NhdGlvbk1hdGNoVHlwZRJNChRnZW9fdGFy", - "Z2V0X2NvbnN0YW50cxgDIAMoCUIv+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vR2VvVGFyZ2V0Q29uc3RhbnQSdwoOZ2VvX21hdGNoX3R5cGUYBCAB", - "KA4yXy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuVmFsdWVSdWxl", - "R2VvTG9jYXRpb25NYXRjaFR5cGVFbnVtLlZhbHVlUnVsZUdlb0xvY2F0aW9u", - "TWF0Y2hUeXBlGn0KGFZhbHVlUnVsZURldmljZUNvbmRpdGlvbhJhCgxkZXZp", - "Y2VfdHlwZXMYASADKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuVmFsdWVSdWxlRGV2aWNlVHlwZUVudW0uVmFsdWVSdWxlRGV2aWNlVHlw", - "ZRqcAQoaVmFsdWVSdWxlQXVkaWVuY2VDb25kaXRpb24SOgoKdXNlcl9saXN0", - "cxgBIAMoCUIm+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vVXNlckxp", - "c3QSQgoOdXNlcl9pbnRlcmVzdHMYAiADKAlCKvpBJwolZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL1VzZXJJbnRlcmVzdDp66kF3Cixnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ29udmVyc2lvblZhbHVlUnVsZRJHY3VzdG9tZXJzL3tj", - "dXN0b21lcl9pZH0vY29udmVyc2lvblZhbHVlUnVsZXMve2NvbnZlcnNpb25f", - "dmFsdWVfcnVsZV9pZH1CigIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzQhhDb252ZXJzaW9uVmFsdWVSdWxlUHJvdG9QAVpLZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ValueRuleDeviceTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule), global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Parser, new[]{ "ResourceName", "Id", "Action", "GeoLocationCondition", "DeviceCondition", "AudienceCondition", "OwnerCustomer", "Status" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAction), global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAction.Parser, new[]{ "Operation", "Value" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleGeoLocationCondition), global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleGeoLocationCondition.Parser, new[]{ "ExcludedGeoTargetConstants", "ExcludedGeoMatchType", "GeoTargetConstants", "GeoMatchType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleDeviceCondition), global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleDeviceCondition.Parser, new[]{ "DeviceTypes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAudienceCondition), global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAudienceCondition.Parser, new[]{ "UserLists", "UserInterests" }, null, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// A conversion value rule - /// - public sealed partial class ConversionValueRule : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRule()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRule() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRule(ConversionValueRule other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - action_ = other.action_ != null ? other.action_.Clone() : null; - geoLocationCondition_ = other.geoLocationCondition_ != null ? other.geoLocationCondition_.Clone() : null; - deviceCondition_ = other.deviceCondition_ != null ? other.deviceCondition_.Clone() : null; - audienceCondition_ = other.audienceCondition_ != null ? other.audienceCondition_.Clone() : null; - ownerCustomer_ = other.ownerCustomer_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRule Clone() { - return new ConversionValueRule(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the conversion value rule. - /// Conversion value rule resource names have the form: - /// - /// `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. The ID of the conversion value rule. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "action" field. - public const int ActionFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAction action_; - /// - /// Action applied when the rule is triggered. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAction Action { - get { return action_; } - set { - action_ = value; - } - } - - /// Field number for the "geo_location_condition" field. - public const int GeoLocationConditionFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleGeoLocationCondition geoLocationCondition_; - /// - /// Condition for Geo location that must be satisfied for the value rule to - /// apply. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleGeoLocationCondition GeoLocationCondition { - get { return geoLocationCondition_; } - set { - geoLocationCondition_ = value; - } - } - - /// Field number for the "device_condition" field. - public const int DeviceConditionFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleDeviceCondition deviceCondition_; - /// - /// Condition for device type that must be satisfied for the value rule to - /// apply. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleDeviceCondition DeviceCondition { - get { return deviceCondition_; } - set { - deviceCondition_ = value; - } - } - - /// Field number for the "audience_condition" field. - public const int AudienceConditionFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAudienceCondition audienceCondition_; - /// - /// Condition for audience that must be satisfied for the value rule to apply. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAudienceCondition AudienceCondition { - get { return audienceCondition_; } - set { - audienceCondition_ = value; - } - } - - /// Field number for the "owner_customer" field. - public const int OwnerCustomerFieldNumber = 7; - private string ownerCustomer_ = ""; - /// - /// Output only. The resource name of the conversion value rule's owner customer. - /// When the value rule is inherited from a manager - /// customer, owner_customer will be the resource name of the manager whereas - /// the customer in the resource_name will be of the requesting serving - /// customer. - /// ** Read-only ** - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OwnerCustomer { - get { return ownerCustomer_; } - set { - ownerCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus.Unspecified; - /// - /// The status of the conversion value rule. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRule); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRule other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (!object.Equals(Action, other.Action)) return false; - if (!object.Equals(GeoLocationCondition, other.GeoLocationCondition)) return false; - if (!object.Equals(DeviceCondition, other.DeviceCondition)) return false; - if (!object.Equals(AudienceCondition, other.AudienceCondition)) return false; - if (OwnerCustomer != other.OwnerCustomer) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (action_ != null) hash ^= Action.GetHashCode(); - if (geoLocationCondition_ != null) hash ^= GeoLocationCondition.GetHashCode(); - if (deviceCondition_ != null) hash ^= DeviceCondition.GetHashCode(); - if (audienceCondition_ != null) hash ^= AudienceCondition.GetHashCode(); - if (OwnerCustomer.Length != 0) hash ^= OwnerCustomer.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (action_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Action); - } - if (geoLocationCondition_ != null) { - output.WriteRawTag(34); - output.WriteMessage(GeoLocationCondition); - } - if (deviceCondition_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DeviceCondition); - } - if (audienceCondition_ != null) { - output.WriteRawTag(50); - output.WriteMessage(AudienceCondition); - } - if (OwnerCustomer.Length != 0) { - output.WriteRawTag(58); - output.WriteString(OwnerCustomer); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (action_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Action); - } - if (geoLocationCondition_ != null) { - output.WriteRawTag(34); - output.WriteMessage(GeoLocationCondition); - } - if (deviceCondition_ != null) { - output.WriteRawTag(42); - output.WriteMessage(DeviceCondition); - } - if (audienceCondition_ != null) { - output.WriteRawTag(50); - output.WriteMessage(AudienceCondition); - } - if (OwnerCustomer.Length != 0) { - output.WriteRawTag(58); - output.WriteString(OwnerCustomer); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (action_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Action); - } - if (geoLocationCondition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GeoLocationCondition); - } - if (deviceCondition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceCondition); - } - if (audienceCondition_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AudienceCondition); - } - if (OwnerCustomer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerCustomer); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRule other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.action_ != null) { - if (action_ == null) { - Action = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAction(); - } - Action.MergeFrom(other.Action); - } - if (other.geoLocationCondition_ != null) { - if (geoLocationCondition_ == null) { - GeoLocationCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleGeoLocationCondition(); - } - GeoLocationCondition.MergeFrom(other.GeoLocationCondition); - } - if (other.deviceCondition_ != null) { - if (deviceCondition_ == null) { - DeviceCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleDeviceCondition(); - } - DeviceCondition.MergeFrom(other.DeviceCondition); - } - if (other.audienceCondition_ != null) { - if (audienceCondition_ == null) { - AudienceCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAudienceCondition(); - } - AudienceCondition.MergeFrom(other.AudienceCondition); - } - if (other.OwnerCustomer.Length != 0) { - OwnerCustomer = other.OwnerCustomer; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - if (action_ == null) { - Action = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAction(); - } - input.ReadMessage(Action); - break; - } - case 34: { - if (geoLocationCondition_ == null) { - GeoLocationCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleGeoLocationCondition(); - } - input.ReadMessage(GeoLocationCondition); - break; - } - case 42: { - if (deviceCondition_ == null) { - DeviceCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleDeviceCondition(); - } - input.ReadMessage(DeviceCondition); - break; - } - case 50: { - if (audienceCondition_ == null) { - AudienceCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAudienceCondition(); - } - input.ReadMessage(AudienceCondition); - break; - } - case 58: { - OwnerCustomer = input.ReadString(); - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - if (action_ == null) { - Action = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAction(); - } - input.ReadMessage(Action); - break; - } - case 34: { - if (geoLocationCondition_ == null) { - GeoLocationCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleGeoLocationCondition(); - } - input.ReadMessage(GeoLocationCondition); - break; - } - case 42: { - if (deviceCondition_ == null) { - DeviceCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleDeviceCondition(); - } - input.ReadMessage(DeviceCondition); - break; - } - case 50: { - if (audienceCondition_ == null) { - AudienceCondition = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Types.ValueRuleAudienceCondition(); - } - input.ReadMessage(AudienceCondition); - break; - } - case 58: { - OwnerCustomer = input.ReadString(); - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionValueRule message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Action applied when rule is applied. - /// - public sealed partial class ValueRuleAction : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValueRuleAction()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleAction() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleAction(ValueRuleAction other) : this() { - operation_ = other.operation_; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleAction Clone() { - return new ValueRuleAction(this); - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation operation_ = global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation.Unspecified; - /// - /// Specifies applied operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private double value_; - /// - /// Specifies applied value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Value { - get { return value_; } - set { - value_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ValueRuleAction); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ValueRuleAction other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Operation != other.Operation) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Operation != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation.Unspecified) hash ^= Operation.GetHashCode(); - if (Value != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Operation != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Operation); - } - if (Value != 0D) { - output.WriteRawTag(17); - output.WriteDouble(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Operation != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Operation); - } - if (Value != 0D) { - output.WriteRawTag(17); - output.WriteDouble(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Operation != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation); - } - if (Value != 0D) { - size += 1 + 8; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ValueRuleAction other) { - if (other == null) { - return; - } - if (other.Operation != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation.Unspecified) { - Operation = other.Operation; - } - if (other.Value != 0D) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Operation = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation) input.ReadEnum(); - break; - } - case 17: { - Value = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Operation = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleOperationEnum.Types.ValueRuleOperation) input.ReadEnum(); - break; - } - case 17: { - Value = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - /// - /// Condition on Geo dimension. - /// - public sealed partial class ValueRuleGeoLocationCondition : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValueRuleGeoLocationCondition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleGeoLocationCondition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleGeoLocationCondition(ValueRuleGeoLocationCondition other) : this() { - excludedGeoTargetConstants_ = other.excludedGeoTargetConstants_.Clone(); - excludedGeoMatchType_ = other.excludedGeoMatchType_; - geoTargetConstants_ = other.geoTargetConstants_.Clone(); - geoMatchType_ = other.geoMatchType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleGeoLocationCondition Clone() { - return new ValueRuleGeoLocationCondition(this); - } - - /// Field number for the "excluded_geo_target_constants" field. - public const int ExcludedGeoTargetConstantsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_excludedGeoTargetConstants_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField excludedGeoTargetConstants_ = new pbc::RepeatedField(); - /// - /// Geo locations that advertisers want to exclude. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExcludedGeoTargetConstants { - get { return excludedGeoTargetConstants_; } - } - - /// Field number for the "excluded_geo_match_type" field. - public const int ExcludedGeoMatchTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType excludedGeoMatchType_ = global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified; - /// - /// Excluded Geo location match type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType ExcludedGeoMatchType { - get { return excludedGeoMatchType_; } - set { - excludedGeoMatchType_ = value; - } - } - - /// Field number for the "geo_target_constants" field. - public const int GeoTargetConstantsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_geoTargetConstants_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField geoTargetConstants_ = new pbc::RepeatedField(); - /// - /// Geo locations that advertisers want to include. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargetConstants { - get { return geoTargetConstants_; } - } - - /// Field number for the "geo_match_type" field. - public const int GeoMatchTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType geoMatchType_ = global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified; - /// - /// Included Geo location match type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType GeoMatchType { - get { return geoMatchType_; } - set { - geoMatchType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ValueRuleGeoLocationCondition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ValueRuleGeoLocationCondition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!excludedGeoTargetConstants_.Equals(other.excludedGeoTargetConstants_)) return false; - if (ExcludedGeoMatchType != other.ExcludedGeoMatchType) return false; - if(!geoTargetConstants_.Equals(other.geoTargetConstants_)) return false; - if (GeoMatchType != other.GeoMatchType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= excludedGeoTargetConstants_.GetHashCode(); - if (ExcludedGeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) hash ^= ExcludedGeoMatchType.GetHashCode(); - hash ^= geoTargetConstants_.GetHashCode(); - if (GeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) hash ^= GeoMatchType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - excludedGeoTargetConstants_.WriteTo(output, _repeated_excludedGeoTargetConstants_codec); - if (ExcludedGeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExcludedGeoMatchType); - } - geoTargetConstants_.WriteTo(output, _repeated_geoTargetConstants_codec); - if (GeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) GeoMatchType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - excludedGeoTargetConstants_.WriteTo(ref output, _repeated_excludedGeoTargetConstants_codec); - if (ExcludedGeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExcludedGeoMatchType); - } - geoTargetConstants_.WriteTo(ref output, _repeated_geoTargetConstants_codec); - if (GeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) GeoMatchType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += excludedGeoTargetConstants_.CalculateSize(_repeated_excludedGeoTargetConstants_codec); - if (ExcludedGeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExcludedGeoMatchType); - } - size += geoTargetConstants_.CalculateSize(_repeated_geoTargetConstants_codec); - if (GeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GeoMatchType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ValueRuleGeoLocationCondition other) { - if (other == null) { - return; - } - excludedGeoTargetConstants_.Add(other.excludedGeoTargetConstants_); - if (other.ExcludedGeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - ExcludedGeoMatchType = other.ExcludedGeoMatchType; - } - geoTargetConstants_.Add(other.geoTargetConstants_); - if (other.GeoMatchType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType.Unspecified) { - GeoMatchType = other.GeoMatchType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - excludedGeoTargetConstants_.AddEntriesFrom(input, _repeated_excludedGeoTargetConstants_codec); - break; - } - case 16: { - ExcludedGeoMatchType = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType) input.ReadEnum(); - break; - } - case 26: { - geoTargetConstants_.AddEntriesFrom(input, _repeated_geoTargetConstants_codec); - break; - } - case 32: { - GeoMatchType = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - excludedGeoTargetConstants_.AddEntriesFrom(ref input, _repeated_excludedGeoTargetConstants_codec); - break; - } - case 16: { - ExcludedGeoMatchType = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType) input.ReadEnum(); - break; - } - case 26: { - geoTargetConstants_.AddEntriesFrom(ref input, _repeated_geoTargetConstants_codec); - break; - } - case 32: { - GeoMatchType = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleGeoLocationMatchTypeEnum.Types.ValueRuleGeoLocationMatchType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Condition on Device dimension. - /// - public sealed partial class ValueRuleDeviceCondition : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValueRuleDeviceCondition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleDeviceCondition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleDeviceCondition(ValueRuleDeviceCondition other) : this() { - deviceTypes_ = other.deviceTypes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleDeviceCondition Clone() { - return new ValueRuleDeviceCondition(this); - } - - /// Field number for the "device_types" field. - public const int DeviceTypesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_deviceTypes_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleDeviceTypeEnum.Types.ValueRuleDeviceType) x); - private readonly pbc::RepeatedField deviceTypes_ = new pbc::RepeatedField(); - /// - /// Value for device type condition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DeviceTypes { - get { return deviceTypes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ValueRuleDeviceCondition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ValueRuleDeviceCondition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!deviceTypes_.Equals(other.deviceTypes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= deviceTypes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - deviceTypes_.WriteTo(output, _repeated_deviceTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - deviceTypes_.WriteTo(ref output, _repeated_deviceTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += deviceTypes_.CalculateSize(_repeated_deviceTypes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ValueRuleDeviceCondition other) { - if (other == null) { - return; - } - deviceTypes_.Add(other.deviceTypes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: - case 8: { - deviceTypes_.AddEntriesFrom(input, _repeated_deviceTypes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - case 8: { - deviceTypes_.AddEntriesFrom(ref input, _repeated_deviceTypes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Condition on Audience dimension. - /// - public sealed partial class ValueRuleAudienceCondition : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValueRuleAudienceCondition()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleAudienceCondition() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleAudienceCondition(ValueRuleAudienceCondition other) : this() { - userLists_ = other.userLists_.Clone(); - userInterests_ = other.userInterests_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueRuleAudienceCondition Clone() { - return new ValueRuleAudienceCondition(this); - } - - /// Field number for the "user_lists" field. - public const int UserListsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_userLists_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField userLists_ = new pbc::RepeatedField(); - /// - /// User Lists. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserLists { - get { return userLists_; } - } - - /// Field number for the "user_interests" field. - public const int UserInterestsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_userInterests_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField userInterests_ = new pbc::RepeatedField(); - /// - /// User Interests. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UserInterests { - get { return userInterests_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ValueRuleAudienceCondition); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ValueRuleAudienceCondition other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!userLists_.Equals(other.userLists_)) return false; - if(!userInterests_.Equals(other.userInterests_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= userLists_.GetHashCode(); - hash ^= userInterests_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - userLists_.WriteTo(output, _repeated_userLists_codec); - userInterests_.WriteTo(output, _repeated_userInterests_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - userLists_.WriteTo(ref output, _repeated_userLists_codec); - userInterests_.WriteTo(ref output, _repeated_userInterests_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += userLists_.CalculateSize(_repeated_userLists_codec); - size += userInterests_.CalculateSize(_repeated_userInterests_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ValueRuleAudienceCondition other) { - if (other == null) { - return; - } - userLists_.Add(other.userLists_); - userInterests_.Add(other.userInterests_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - userLists_.AddEntriesFrom(input, _repeated_userLists_codec); - break; - } - case 18: { - userInterests_.AddEntriesFrom(input, _repeated_userInterests_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - userLists_.AddEntriesFrom(ref input, _repeated_userLists_codec); - break; - } - case 18: { - userInterests_.AddEntriesFrom(ref input, _repeated_userInterests_codec); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleError.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleError.g.cs deleted file mode 100755 index 2b0d4144d..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleError.g.cs +++ /dev/null @@ -1,298 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/conversion_value_rule_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/conversion_value_rule_error.proto - public static partial class ConversionValueRuleErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/conversion_value_rule_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "dmFsdWVfcnVsZV9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycyKFBAocQ29udmVyc2lvblZhbHVlUnVsZUVycm9yRW51bSLk", - "AwoYQ29udmVyc2lvblZhbHVlUnVsZUVycm9yEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEh8KG0lOVkFMSURfR0VPX1RBUkdFVF9DT05TVEFOVBAC", - "EjAKLENPTkZMSUNUSU5HX0lOQ0xVREVEX0FORF9FWENMVURFRF9HRU9fVEFS", - "R0VUEAMSGgoWQ09ORkxJQ1RJTkdfQ09ORElUSU9OUxAEEi8KK0NBTk5PVF9S", - "RU1PVkVfSUZfSU5DTFVERURfSU5fVkFMVUVfUlVMRV9TRVQQBRIZChVDT05E", - "SVRJT05fTk9UX0FMTE9XRUQQBhIXChNGSUVMRF9NVVNUX0JFX1VOU0VUEAcS", - "MAosQ0FOTk9UX1BBVVNFX1VOTEVTU19WQUxVRV9SVUxFX1NFVF9JU19QQVVT", - "RUQQCBIbChdVTlRBUkdFVEFCTEVfR0VPX1RBUkdFVBAJEh4KGklOVkFMSURf", - "QVVESUVOQ0VfVVNFUl9MSVNUEAoSGgoWSU5BQ0NFU1NJQkxFX1VTRVJfTElT", - "VBALEiIKHklOVkFMSURfQVVESUVOQ0VfVVNFUl9JTlRFUkVTVBAMEicKI0NB", - "Tk5PVF9BRERfUlVMRV9XSVRIX1NUQVRVU19SRU1PVkVEEA1C/QEKI2NvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQh1Db252ZXJzaW9uVmFs", - "dWVSdWxlRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOi", - "AgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpH", - "b29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorEnum.Types.ConversionValueRuleError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion value rule errors. - /// - public sealed partial class ConversionValueRuleErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRuleErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleErrorEnum(ConversionValueRuleErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleErrorEnum Clone() { - return new ConversionValueRuleErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRuleErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRuleErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRuleErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionValueRuleErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible conversion value rule errors. - /// - public enum ConversionValueRuleError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The value rule's geo location condition contains invalid geo target - /// constant(s), for example, there's no matching geo target. - /// - [pbr::OriginalName("INVALID_GEO_TARGET_CONSTANT")] InvalidGeoTargetConstant = 2, - /// - /// The value rule's geo location condition contains conflicting included and - /// excluded geo targets. Specifically, some of the excluded geo target(s) - /// are the same as or contain some of the included geo target(s). For - /// example, the geo location condition includes California but excludes U.S. - /// - [pbr::OriginalName("CONFLICTING_INCLUDED_AND_EXCLUDED_GEO_TARGET")] ConflictingIncludedAndExcludedGeoTarget = 3, - /// - /// User specified conflicting conditions for two value rules in the same - /// value rule set. - /// - [pbr::OriginalName("CONFLICTING_CONDITIONS")] ConflictingConditions = 4, - /// - /// The value rule cannot be removed because it's still included in some - /// value rule set. - /// - [pbr::OriginalName("CANNOT_REMOVE_IF_INCLUDED_IN_VALUE_RULE_SET")] CannotRemoveIfIncludedInValueRuleSet = 5, - /// - /// The value rule contains a condition that's not allowed by the value rule - /// set including this value rule. - /// - [pbr::OriginalName("CONDITION_NOT_ALLOWED")] ConditionNotAllowed = 6, - /// - /// The value rule contains a field that should be unset. - /// - [pbr::OriginalName("FIELD_MUST_BE_UNSET")] FieldMustBeUnset = 7, - /// - /// Pausing the value rule requires pausing the value rule set because the - /// value rule is (one of) the last enabled in the value rule set. - /// - [pbr::OriginalName("CANNOT_PAUSE_UNLESS_VALUE_RULE_SET_IS_PAUSED")] CannotPauseUnlessValueRuleSetIsPaused = 8, - /// - /// The value rule's geo location condition contains untargetable geo target - /// constant(s). - /// - [pbr::OriginalName("UNTARGETABLE_GEO_TARGET")] UntargetableGeoTarget = 9, - /// - /// The value rule's audience condition contains invalid user list(s). In - /// another word, there's no matching user list. - /// - [pbr::OriginalName("INVALID_AUDIENCE_USER_LIST")] InvalidAudienceUserList = 10, - /// - /// The value rule's audience condition contains inaccessible user list(s). - /// - [pbr::OriginalName("INACCESSIBLE_USER_LIST")] InaccessibleUserList = 11, - /// - /// The value rule's audience condition contains invalid user_interest(s). - /// This might be because there is no matching user interest, or the user - /// interest is not visible. - /// - [pbr::OriginalName("INVALID_AUDIENCE_USER_INTEREST")] InvalidAudienceUserInterest = 12, - /// - /// When a value rule is created, it shouldn't have REMOVED status. - /// - [pbr::OriginalName("CANNOT_ADD_RULE_WITH_STATUS_REMOVED")] CannotAddRuleWithStatusRemoved = 13, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRulePrimaryDimension.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRulePrimaryDimension.g.cs deleted file mode 100755 index f02fb9374..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRulePrimaryDimension.g.cs +++ /dev/null @@ -1,261 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_value_rule_primary_dimension.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_value_rule_primary_dimension.proto - public static partial class ConversionValueRulePrimaryDimensionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_value_rule_primary_dimension.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRulePrimaryDimensionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl92", - "YWx1ZV9ydWxlX3ByaW1hcnlfZGltZW5zaW9uLnByb3RvEh5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMi5wEKJ0NvbnZlcnNpb25WYWx1ZVJ1bGVQ", - "cmltYXJ5RGltZW5zaW9uRW51bSK7AQojQ29udmVyc2lvblZhbHVlUnVsZVBy", - "aW1hcnlEaW1lbnNpb24SDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "EwoPTk9fUlVMRV9BUFBMSUVEEAISDAoIT1JJR0lOQUwQAxIZChVORVdfVlNf", - "UkVUVVJOSU5HX1VTRVIQBBIQCgxHRU9fTE9DQVRJT04QBRIKCgZERVZJQ0UQ", - "BhIMCghBVURJRU5DRRAHEgwKCE1VTFRJUExFEAhCggIKImNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXNCKENvbnZlcnNpb25WYWx1ZVJ1bGVQ", - "cmltYXJ5RGltZW5zaW9uUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2Vu", - "cHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVt", - "c6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpH", - "b29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRulePrimaryDimensionEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRulePrimaryDimensionEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRulePrimaryDimensionEnum.Types.ConversionValueRulePrimaryDimension) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing value rule primary dimension for stats. - /// - public sealed partial class ConversionValueRulePrimaryDimensionEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRulePrimaryDimensionEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRulePrimaryDimensionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRulePrimaryDimensionEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRulePrimaryDimensionEnum(ConversionValueRulePrimaryDimensionEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRulePrimaryDimensionEnum Clone() { - return new ConversionValueRulePrimaryDimensionEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRulePrimaryDimensionEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRulePrimaryDimensionEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRulePrimaryDimensionEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionValueRulePrimaryDimensionEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Identifies the primary dimension for conversion value rule stats. - /// - public enum ConversionValueRulePrimaryDimension { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// For no-value-rule-applied conversions after value rule is enabled. - /// - [pbr::OriginalName("NO_RULE_APPLIED")] NoRuleApplied = 2, - /// - /// Below are for value-rule-applied conversions: - /// The original stats. - /// - [pbr::OriginalName("ORIGINAL")] Original = 3, - /// - /// When a new or returning customer condition is satisfied. - /// - [pbr::OriginalName("NEW_VS_RETURNING_USER")] NewVsReturningUser = 4, - /// - /// When a query-time Geo location condition is satisfied. - /// - [pbr::OriginalName("GEO_LOCATION")] GeoLocation = 5, - /// - /// When a query-time browsing device condition is satisfied. - /// - [pbr::OriginalName("DEVICE")] Device = 6, - /// - /// When a query-time audience condition is satisfied. - /// - [pbr::OriginalName("AUDIENCE")] Audience = 7, - /// - /// When multiple rules are applied. - /// - [pbr::OriginalName("MULTIPLE")] Multiple = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleResourceNames.g.cs deleted file mode 100755 index 3cc0db07a..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleResourceNames.g.cs +++ /dev/null @@ -1,288 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ConversionValueRule resource. - public sealed partial class ConversionValueRuleName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/conversionValueRules/{conversion_value_rule_id} - /// . - /// - CustomerConversionValueRule = 1, - } - - private static gax::PathTemplate s_customerConversionValueRule = new gax::PathTemplate("customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ConversionValueRuleName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ConversionValueRuleName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRule ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static ConversionValueRuleName FromCustomerConversionValueRule(string customerId, string conversionValueRuleId) => - new ConversionValueRuleName(ResourceNameType.CustomerConversionValueRule, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionValueRuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionValueRuleId, nameof(conversionValueRuleId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRule ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}. - /// - public static string Format(string customerId, string conversionValueRuleId) => - FormatCustomerConversionValueRule(customerId, conversionValueRuleId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRule ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}. - /// - public static string FormatCustomerConversionValueRule(string customerId, string conversionValueRuleId) => - s_customerConversionValueRule.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(conversionValueRuleId, nameof(conversionValueRuleId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ConversionValueRuleName Parse(string conversionValueRuleName) => Parse(conversionValueRuleName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ConversionValueRuleName Parse(string conversionValueRuleName, bool allowUnparsed) => - TryParse(conversionValueRuleName, allowUnparsed, out ConversionValueRuleName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionValueRuleName, out ConversionValueRuleName result) => - TryParse(conversionValueRuleName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/conversionValueRules/{conversion_value_rule_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionValueRuleName, bool allowUnparsed, out ConversionValueRuleName result) - { - gax::GaxPreconditions.CheckNotNull(conversionValueRuleName, nameof(conversionValueRuleName)); - gax::TemplatedResourceName resourceName; - if (s_customerConversionValueRule.TryParseName(conversionValueRuleName, out resourceName)) - { - result = FromCustomerConversionValueRule(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(conversionValueRuleName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ConversionValueRuleName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string conversionValueRuleId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ConversionValueRuleId = conversionValueRuleId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/conversionValueRules/{conversion_value_rule_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRule ID. Must not be null or empty. - /// - public ConversionValueRuleName(string customerId, string conversionValueRuleId) : this(ResourceNameType.CustomerConversionValueRule, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionValueRuleId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionValueRuleId, nameof(conversionValueRuleId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ConversionValueRule ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ConversionValueRuleId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerConversionValueRule: return s_customerConversionValueRule.Expand(CustomerId, ConversionValueRuleId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ConversionValueRuleName); - - /// - public bool Equals(ConversionValueRuleName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ConversionValueRuleName a, ConversionValueRuleName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ConversionValueRuleName a, ConversionValueRuleName b) => !(a == b); - } - - public partial class ConversionValueRule - { - /// - /// -typed view over the resource name property. - /// - internal ConversionValueRuleName ResourceNameAsConversionValueRuleName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ConversionValueRuleName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName OwnerCustomerAsCustomerName - { - get => string.IsNullOrEmpty(OwnerCustomer) ? null : CustomerName.Parse(OwnerCustomer, allowUnparsed: true); - set => OwnerCustomer = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleService.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleService.g.cs deleted file mode 100755 index 49642e112..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleService.g.cs +++ /dev/null @@ -1,1314 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_value_rule_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/conversion_value_rule_service.proto - public static partial class ConversionValueRuleServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/conversion_value_rule_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lv", - "bl92YWx1ZV9ydWxlX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo+Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL3Jlc291cmNlcy9jb252ZXJzaW9uX3ZhbHVlX3J1bGUu", - "cHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9h", - "cGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", - "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9i", - "dWYvZmllbGRfbWFzay5wcm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8i", - "swIKIU11dGF0ZUNvbnZlcnNpb25WYWx1ZVJ1bGVzUmVxdWVzdBIYCgtjdXN0", - "b21lcl9pZBgBIAEoCUID4EECElgKCm9wZXJhdGlvbnMYAiADKAsyPy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ29udmVyc2lvblZhbHVl", - "UnVsZU9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgFIAEoCBIV", - "Cg12YWxpZGF0ZV9vbmx5GAMgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlw", - "ZRgEIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNw", - "b25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIrcCChxD", - "b252ZXJzaW9uVmFsdWVSdWxlT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJJCgZjcmVhdGUYASAB", - "KAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNvbnZl", - "cnNpb25WYWx1ZVJ1bGVIABJJCgZ1cGRhdGUYAiABKAsyNy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNvbnZlcnNpb25WYWx1ZVJ1bGVI", - "ABJDCgZyZW1vdmUYAyABKAlCMfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0NvbnZlcnNpb25WYWx1ZVJ1bGVIAEILCglvcGVyYXRpb24irAEKIk11", - "dGF0ZUNvbnZlcnNpb25WYWx1ZVJ1bGVzUmVzcG9uc2USUwoHcmVzdWx0cxgC", - "IAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRh", - "dGVDb252ZXJzaW9uVmFsdWVSdWxlUmVzdWx0EjEKFXBhcnRpYWxfZmFpbHVy", - "ZV9lcnJvchgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzIsMBCh9NdXRhdGVD", - "b252ZXJzaW9uVmFsdWVSdWxlUmVzdWx0EkgKDXJlc291cmNlX25hbWUYASAB", - "KAlCMfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NvbnZlcnNpb25W", - "YWx1ZVJ1bGUSVgoVY29udmVyc2lvbl92YWx1ZV9ydWxlGAIgASgLMjcuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9uVmFs", - "dWVSdWxlMu8CChpDb252ZXJzaW9uVmFsdWVSdWxlU2VydmljZRKJAgoaTXV0", - "YXRlQ29udmVyc2lvblZhbHVlUnVsZXMSRC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvblZhbHVlUnVsZXNSZXF1", - "ZXN0GkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUNvbnZlcnNpb25WYWx1ZVJ1bGVzUmVzcG9uc2UiXoLT5JMCPyI6L3YxMi9j", - "dXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2NvbnZlcnNpb25WYWx1ZVJ1bGVz", - "Om11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMu", - "Y29tL2F1dGgvYWR3b3Jkc0KLAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlc0IfQ29udmVyc2lvblZhbHVlUnVsZVNlcnZpY2VQcm90", - "b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest), global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation), global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesResponse), global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult), global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult.Parser, new[]{ "ResourceName", "ConversionValueRule" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [ConversionValueRuleService.MutateConversionValueRules][google.ads.googleads.v12.services.ConversionValueRuleService.MutateConversionValueRules]. - /// - public sealed partial class MutateConversionValueRulesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionValueRulesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRulesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRulesRequest(MutateConversionValueRulesRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRulesRequest Clone() { - return new MutateConversionValueRulesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose conversion value rules are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual conversion value rules. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 5; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionValueRulesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionValueRulesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (PartialFailure != false) { - output.WriteRawTag(40); - output.WriteBool(PartialFailure); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (PartialFailure != false) { - output.WriteRawTag(40); - output.WriteBool(PartialFailure); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionValueRulesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - case 40: { - PartialFailure = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - case 40: { - PartialFailure = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a conversion value rule. - /// - public sealed partial class ConversionValueRuleOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRuleOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleOperation(ConversionValueRuleOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleOperation Clone() { - return new ConversionValueRuleOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new conversion - /// value rule. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The conversion value rule is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed conversion value rule - /// is expected, in this format: - /// - /// `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRuleOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRuleOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRuleOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [ConversionValueRuleService.MutateConversionValueRules][google.ads.googleads.v12.services.ConversionValueRuleService.MutateConversionValueRules]. - /// - public sealed partial class MutateConversionValueRulesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionValueRulesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRulesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRulesResponse(MutateConversionValueRulesResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRulesResponse Clone() { - return new MutateConversionValueRulesResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionValueRulesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionValueRulesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionValueRulesResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the conversion value rule mutate. - /// - public sealed partial class MutateConversionValueRuleResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionValueRuleResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleResult(MutateConversionValueRuleResult other) : this() { - resourceName_ = other.resourceName_; - conversionValueRule_ = other.conversionValueRule_ != null ? other.conversionValueRule_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleResult Clone() { - return new MutateConversionValueRuleResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_value_rule" field. - public const int ConversionValueRuleFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule conversionValueRule_; - /// - /// The mutated conversion value rule with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule ConversionValueRule { - get { return conversionValueRule_; } - set { - conversionValueRule_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionValueRuleResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionValueRuleResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(ConversionValueRule, other.ConversionValueRule)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (conversionValueRule_ != null) hash ^= ConversionValueRule.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionValueRule_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionValueRule); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionValueRule_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionValueRule); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (conversionValueRule_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRule); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionValueRuleResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.conversionValueRule_ != null) { - if (conversionValueRule_ == null) { - ConversionValueRule = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - ConversionValueRule.MergeFrom(other.ConversionValueRule); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionValueRule_ == null) { - ConversionValueRule = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - input.ReadMessage(ConversionValueRule); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionValueRule_ == null) { - ConversionValueRule = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - input.ReadMessage(ConversionValueRule); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceClient.g.cs deleted file mode 100755 index b56425d1f..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ConversionValueRuleServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ConversionValueRuleServiceSettings GetDefault() => new ConversionValueRuleServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ConversionValueRuleServiceSettings() - { - } - - private ConversionValueRuleServiceSettings(ConversionValueRuleServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateConversionValueRulesSettings = existing.MutateConversionValueRulesSettings; - OnCopy(existing); - } - - partial void OnCopy(ConversionValueRuleServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ConversionValueRuleServiceClient.MutateConversionValueRules and - /// ConversionValueRuleServiceClient.MutateConversionValueRulesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateConversionValueRulesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ConversionValueRuleServiceSettings Clone() => new ConversionValueRuleServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class ConversionValueRuleServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ConversionValueRuleServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ConversionValueRuleServiceClientBuilder() : base(ConversionValueRuleServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ConversionValueRuleServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ConversionValueRuleServiceClient Build() - { - ConversionValueRuleServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ConversionValueRuleServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ConversionValueRuleServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ConversionValueRuleServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ConversionValueRuleServiceClient.ChannelPool; - } - - /// ConversionValueRuleService client wrapper, for convenient use. - /// - /// Service to manage conversion value rules. - /// - public abstract partial class ConversionValueRuleServiceClient - { - /// - /// The default endpoint for the ConversionValueRuleService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ConversionValueRuleService scopes. - /// - /// The default ConversionValueRuleService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ConversionValueRuleService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ConversionValueRuleServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ConversionValueRuleServiceClient Create() => new ConversionValueRuleServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ConversionValueRuleServiceClient Create(grpccore::CallInvoker callInvoker, ConversionValueRuleServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ConversionValueRuleService.ConversionValueRuleServiceClient grpcClient = new ConversionValueRuleService.ConversionValueRuleServiceClient(callInvoker); - return new ConversionValueRuleServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ConversionValueRuleService client - public virtual ConversionValueRuleService.ConversionValueRuleServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionValueRulesResponse MutateConversionValueRules(MutateConversionValueRulesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRulesAsync(MutateConversionValueRulesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRulesAsync(MutateConversionValueRulesRequest request, st::CancellationToken cancellationToken) => - MutateConversionValueRulesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose conversion value rules are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion value rules. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionValueRulesResponse MutateConversionValueRules(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionValueRules(new MutateConversionValueRulesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose conversion value rules are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion value rules. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRulesAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionValueRulesAsync(new MutateConversionValueRulesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose conversion value rules are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion value rules. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRulesAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateConversionValueRulesAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ConversionValueRuleService client wrapper implementation, for convenient use. - /// - /// Service to manage conversion value rules. - /// - public sealed partial class ConversionValueRuleServiceClientImpl : ConversionValueRuleServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateConversionValueRules; - - /// - /// Constructs a client wrapper for the ConversionValueRuleService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ConversionValueRuleServiceClientImpl(ConversionValueRuleService.ConversionValueRuleServiceClient grpcClient, ConversionValueRuleServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ConversionValueRuleServiceSettings effectiveSettings = settings ?? ConversionValueRuleServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateConversionValueRules = clientHelper.BuildApiCall("MutateConversionValueRules", grpcClient.MutateConversionValueRulesAsync, grpcClient.MutateConversionValueRules, effectiveSettings.MutateConversionValueRulesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateConversionValueRules); - Modify_MutateConversionValueRulesApiCall(ref _callMutateConversionValueRules); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateConversionValueRulesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ConversionValueRuleService.ConversionValueRuleServiceClient grpcClient, ConversionValueRuleServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ConversionValueRuleService client - public override ConversionValueRuleService.ConversionValueRuleServiceClient GrpcClient { get; } - - partial void Modify_MutateConversionValueRulesRequest(ref MutateConversionValueRulesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateConversionValueRulesResponse MutateConversionValueRules(MutateConversionValueRulesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionValueRulesRequest(ref request, ref callSettings); - return _callMutateConversionValueRules.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateConversionValueRulesAsync(MutateConversionValueRulesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionValueRulesRequest(ref request, ref callSettings); - return _callMutateConversionValueRules.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceGrpc.g.cs deleted file mode 100755 index 513b6d012..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_value_rule_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage conversion value rules. - /// - public static partial class ConversionValueRuleService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ConversionValueRuleService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRulesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRulesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateConversionValueRules = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateConversionValueRules", - __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRulesRequest, - __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRulesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ConversionValueRuleService - [grpc::BindServiceMethod(typeof(ConversionValueRuleService), "BindService")] - public abstract partial class ConversionValueRuleServiceBase - { - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateConversionValueRules(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ConversionValueRuleService - public partial class ConversionValueRuleServiceClient : grpc::ClientBase - { - /// Creates a new client for ConversionValueRuleService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionValueRuleServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ConversionValueRuleService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionValueRuleServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionValueRuleServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionValueRuleServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesResponse MutateConversionValueRules(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionValueRules(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesResponse MutateConversionValueRules(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateConversionValueRules, null, options, request); - } - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionValueRulesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionValueRulesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes conversion value rules. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionValueRulesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRulesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateConversionValueRules, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ConversionValueRuleServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ConversionValueRuleServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ConversionValueRuleServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateConversionValueRules, serviceImpl.MutateConversionValueRules).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ConversionValueRuleServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateConversionValueRules, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateConversionValueRules)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceResourceNames.g.cs deleted file mode 100755 index 167f42e30..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class ConversionValueRuleOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ConversionValueRuleName RemoveAsConversionValueRuleName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::ConversionValueRuleName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateConversionValueRuleResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ConversionValueRuleName ResourceNameAsConversionValueRuleName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ConversionValueRuleName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSet.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSet.g.cs deleted file mode 100755 index e483ac954..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSet.g.cs +++ /dev/null @@ -1,579 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/conversion_value_rule_set.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/conversion_value_rule_set.proto - public static partial class ConversionValueRuleSetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/conversion_value_rule_set.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleSetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NvbnZlcnNp", - "b25fdmFsdWVfcnVsZV9zZXQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMaP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9jb252ZXJzaW9uX2FjdGlvbl9jYXRlZ29yeS5wcm90bxpFZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL2NvbnZlcnNpb25fdmFsdWVfcnVsZV9z", - "ZXRfc3RhdHVzLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvdmFsdWVfcnVsZV9zZXRfYXR0YWNobWVudF90eXBlLnByb3RvGj1nb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvdmFsdWVfcnVsZV9zZXRfZGlt", - "ZW5zaW9uLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", - "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIqYHChZDb252ZXJzaW9uVmFs", - "dWVSdWxlU2V0Ek4KDXJlc291cmNlX25hbWUYASABKAlCN+BBBfpBMQovZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0NvbnZlcnNpb25WYWx1ZVJ1bGVTZXQS", - "DwoCaWQYAiABKANCA+BBAxJRChZjb252ZXJzaW9uX3ZhbHVlX3J1bGVzGAMg", - "AygJQjH6QS4KLGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Db252ZXJzaW9u", - "VmFsdWVSdWxlEmMKCmRpbWVuc2lvbnMYBCADKA4yTy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuVmFsdWVSdWxlU2V0RGltZW5zaW9uRW51bS5W", - "YWx1ZVJ1bGVTZXREaW1lbnNpb24SQQoOb3duZXJfY3VzdG9tZXIYBSABKAlC", - "KeBBA/pBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyEncK", - "D2F0dGFjaG1lbnRfdHlwZRgGIAEoDjJZLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5WYWx1ZVJ1bGVTZXRBdHRhY2htZW50VHlwZUVudW0uVmFs", - "dWVSdWxlU2V0QXR0YWNobWVudFR5cGVCA+BBBRI4CghjYW1wYWlnbhgHIAEo", - "CUIm+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ24ScgoG", - "c3RhdHVzGAggASgOMl0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LkNvbnZlcnNpb25WYWx1ZVJ1bGVTZXRTdGF0dXNFbnVtLkNvbnZlcnNpb25W", - "YWx1ZVJ1bGVTZXRTdGF0dXNCA+BBAxKAAQocY29udmVyc2lvbl9hY3Rpb25f", - "Y2F0ZWdvcmllcxgJIAMoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5Db252ZXJzaW9uQWN0aW9uQ2F0ZWdvcnlFbnVtLkNvbnZlcnNpb25B", - "Y3Rpb25DYXRlZ29yeUID4EEFOoUB6kGBAQovZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NvbnZlcnNpb25WYWx1ZVJ1bGVTZXQSTmN1c3RvbWVycy97Y3Vz", - "dG9tZXJfaWR9L2NvbnZlcnNpb25WYWx1ZVJ1bGVTZXRzL3tjb252ZXJzaW9u", - "X3ZhbHVlX3J1bGVfc2V0X2lkfUKNAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXNCG0NvbnZlcnNpb25WYWx1ZVJ1bGVTZXRQcm90", - "b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetDimensionReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet), global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet.Parser, new[]{ "ResourceName", "Id", "ConversionValueRules", "Dimensions", "OwnerCustomer", "AttachmentType", "Campaign", "Status", "ConversionActionCategories" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A conversion value rule set - /// - public sealed partial class ConversionValueRuleSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRuleSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSet(ConversionValueRuleSet other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - conversionValueRules_ = other.conversionValueRules_.Clone(); - dimensions_ = other.dimensions_.Clone(); - ownerCustomer_ = other.ownerCustomer_; - attachmentType_ = other.attachmentType_; - campaign_ = other.campaign_; - status_ = other.status_; - conversionActionCategories_ = other.conversionActionCategories_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSet Clone() { - return new ConversionValueRuleSet(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the conversion value rule set. - /// Conversion value rule set resource names have the form: - /// - /// `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. The ID of the conversion value rule set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "conversion_value_rules" field. - public const int ConversionValueRulesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_conversionValueRules_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField conversionValueRules_ = new pbc::RepeatedField(); - /// - /// Resource names of rules within the rule set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ConversionValueRules { - get { return conversionValueRules_; } - } - - /// Field number for the "dimensions" field. - public const int DimensionsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_dimensions_codec - = pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetDimensionEnum.Types.ValueRuleSetDimension) x); - private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); - /// - /// Defines dimensions for Value Rule conditions. The condition types of value - /// rules within this value rule set must be of these dimensions. The first - /// entry in this list is the primary dimension of the included value rules. - /// When using value rule primary dimension segmentation, conversion values - /// will be segmented into the values adjusted by value rules and the original - /// values, if some value rules apply. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Dimensions { - get { return dimensions_; } - } - - /// Field number for the "owner_customer" field. - public const int OwnerCustomerFieldNumber = 5; - private string ownerCustomer_ = ""; - /// - /// Output only. The resource name of the conversion value rule set's owner customer. - /// When the value rule set is inherited from a manager - /// customer, owner_customer will be the resource name of the manager whereas - /// the customer in the resource_name will be of the requesting serving - /// customer. - /// ** Read-only ** - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OwnerCustomer { - get { return ownerCustomer_; } - set { - ownerCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "attachment_type" field. - public const int AttachmentTypeFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType attachmentType_ = global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType.Unspecified; - /// - /// Immutable. Defines the scope where the conversion value rule set is attached. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType AttachmentType { - get { return attachmentType_; } - set { - attachmentType_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 7; - private string campaign_ = ""; - /// - /// The resource name of the campaign when the conversion value rule - /// set is attached to a campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus.Unspecified; - /// - /// Output only. The status of the conversion value rule set. - /// ** Read-only ** - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "conversion_action_categories" field. - public const int ConversionActionCategoriesFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_conversionActionCategories_codec - = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) x); - private readonly pbc::RepeatedField conversionActionCategories_ = new pbc::RepeatedField(); - /// - /// Immutable. The conversion action categories of the conversion value rule set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ConversionActionCategories { - get { return conversionActionCategories_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRuleSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRuleSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if(!conversionValueRules_.Equals(other.conversionValueRules_)) return false; - if(!dimensions_.Equals(other.dimensions_)) return false; - if (OwnerCustomer != other.OwnerCustomer) return false; - if (AttachmentType != other.AttachmentType) return false; - if (Campaign != other.Campaign) return false; - if (Status != other.Status) return false; - if(!conversionActionCategories_.Equals(other.conversionActionCategories_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - hash ^= conversionValueRules_.GetHashCode(); - hash ^= dimensions_.GetHashCode(); - if (OwnerCustomer.Length != 0) hash ^= OwnerCustomer.GetHashCode(); - if (AttachmentType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType.Unspecified) hash ^= AttachmentType.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus.Unspecified) hash ^= Status.GetHashCode(); - hash ^= conversionActionCategories_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - conversionValueRules_.WriteTo(output, _repeated_conversionValueRules_codec); - dimensions_.WriteTo(output, _repeated_dimensions_codec); - if (OwnerCustomer.Length != 0) { - output.WriteRawTag(42); - output.WriteString(OwnerCustomer); - } - if (AttachmentType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) AttachmentType); - } - if (Campaign.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Campaign); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - conversionActionCategories_.WriteTo(output, _repeated_conversionActionCategories_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - conversionValueRules_.WriteTo(ref output, _repeated_conversionValueRules_codec); - dimensions_.WriteTo(ref output, _repeated_dimensions_codec); - if (OwnerCustomer.Length != 0) { - output.WriteRawTag(42); - output.WriteString(OwnerCustomer); - } - if (AttachmentType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) AttachmentType); - } - if (Campaign.Length != 0) { - output.WriteRawTag(58); - output.WriteString(Campaign); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - conversionActionCategories_.WriteTo(ref output, _repeated_conversionActionCategories_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - size += conversionValueRules_.CalculateSize(_repeated_conversionValueRules_codec); - size += dimensions_.CalculateSize(_repeated_dimensions_codec); - if (OwnerCustomer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerCustomer); - } - if (AttachmentType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AttachmentType); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - size += conversionActionCategories_.CalculateSize(_repeated_conversionActionCategories_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRuleSet other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - conversionValueRules_.Add(other.conversionValueRules_); - dimensions_.Add(other.dimensions_); - if (other.OwnerCustomer.Length != 0) { - OwnerCustomer = other.OwnerCustomer; - } - if (other.AttachmentType != global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType.Unspecified) { - AttachmentType = other.AttachmentType; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus.Unspecified) { - Status = other.Status; - } - conversionActionCategories_.Add(other.conversionActionCategories_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - conversionValueRules_.AddEntriesFrom(input, _repeated_conversionValueRules_codec); - break; - } - case 34: - case 32: { - dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); - break; - } - case 42: { - OwnerCustomer = input.ReadString(); - break; - } - case 48: { - AttachmentType = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType) input.ReadEnum(); - break; - } - case 58: { - Campaign = input.ReadString(); - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus) input.ReadEnum(); - break; - } - case 74: - case 72: { - conversionActionCategories_.AddEntriesFrom(input, _repeated_conversionActionCategories_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - conversionValueRules_.AddEntriesFrom(ref input, _repeated_conversionValueRules_codec); - break; - } - case 34: - case 32: { - dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); - break; - } - case 42: { - OwnerCustomer = input.ReadString(); - break; - } - case 48: { - AttachmentType = (global::Google.Ads.GoogleAds.V12.Enums.ValueRuleSetAttachmentTypeEnum.Types.ValueRuleSetAttachmentType) input.ReadEnum(); - break; - } - case 58: { - Campaign = input.ReadString(); - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus) input.ReadEnum(); - break; - } - case 74: - case 72: { - conversionActionCategories_.AddEntriesFrom(ref input, _repeated_conversionActionCategories_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetError.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetError.g.cs deleted file mode 100755 index d965b7246..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetError.g.cs +++ /dev/null @@ -1,312 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/conversion_value_rule_set_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/conversion_value_rule_set_error.proto - public static partial class ConversionValueRuleSetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/conversion_value_rule_set_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleSetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "dmFsdWVfcnVsZV9zZXRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnMi6wQKH0NvbnZlcnNpb25WYWx1ZVJ1bGVTZXRFcnJv", - "ckVudW0ixwQKG0NvbnZlcnNpb25WYWx1ZVJ1bGVTZXRFcnJvchIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARIlCiFDT05GTElDVElOR19WQUxVRV9S", - "VUxFX0NPTkRJVElPTlMQAhIWChJJTlZBTElEX1ZBTFVFX1JVTEUQAxInCiNE", - "SU1FTlNJT05TX1VQREFURV9PTkxZX0FMTE9XX0FQUEVORBAEEh4KGkNPTkRJ", - "VElPTl9UWVBFX05PVF9BTExPV0VEEAUSGAoURFVQTElDQVRFX0RJTUVOU0lP", - "TlMQBhIXChNJTlZBTElEX0NBTVBBSUdOX0lEEAcSMgouQ0FOTk9UX1BBVVNF", - "X1VOTEVTU19BTExfVkFMVUVfUlVMRVNfQVJFX1BBVVNFRBAIEjAKLFNIT1VM", - "RF9QQVVTRV9XSEVOX0FMTF9WQUxVRV9SVUxFU19BUkVfUEFVU0VEEAkSLwor", - "VkFMVUVfUlVMRVNfTk9UX1NVUFBPUlRFRF9GT1JfQ0FNUEFJR05fVFlQRRAK", - "EisKJ0lORUxJR0lCTEVfQ09OVkVSU0lPTl9BQ1RJT05fQ0FURUdPUklFUxAL", - "EjUKMURJTUVOU0lPTl9OT19DT05ESVRJT05fVVNFRF9XSVRIX09USEVSX0RJ", - "TUVOU0lPTlMQDBImCiJESU1FTlNJT05fTk9fQ09ORElUSU9OX05PVF9BTExP", - "V0VEEA0SLAooVU5TVVBQT1JURURfQ09OVkVSU0lPTl9BQ1RJT05fQ0FURUdP", - "UklFUxAOQoACCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "c0IgQ29udmVyc2lvblZhbHVlUnVsZVNldEVycm9yUHJvdG9QAVpFZ29vZ2xl", - "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVB", - "ZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJv", - "cnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJv", - "dG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorEnum.Types.ConversionValueRuleSetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible conversion value rule set errors. - /// - public sealed partial class ConversionValueRuleSetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRuleSetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetErrorEnum(ConversionValueRuleSetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetErrorEnum Clone() { - return new ConversionValueRuleSetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRuleSetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRuleSetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRuleSetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionValueRuleSetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible conversion value rule set errors. - /// - public enum ConversionValueRuleSetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Two value rules in this value rule set contain conflicting conditions. - /// - [pbr::OriginalName("CONFLICTING_VALUE_RULE_CONDITIONS")] ConflictingValueRuleConditions = 2, - /// - /// This value rule set includes a value rule that cannot be found, has been - /// permanently removed or belongs to a different customer. - /// - [pbr::OriginalName("INVALID_VALUE_RULE")] InvalidValueRule = 3, - /// - /// An error that's thrown when a mutate operation is trying to - /// replace/remove some existing elements in the dimensions field. In other - /// words, ADD op is always fine and UPDATE op is fine if it's only appending - /// new elements into dimensions list. - /// - [pbr::OriginalName("DIMENSIONS_UPDATE_ONLY_ALLOW_APPEND")] DimensionsUpdateOnlyAllowAppend = 4, - /// - /// An error that's thrown when a mutate is adding new value rule(s) into a - /// value rule set and the added value rule(s) include conditions that are - /// not specified in the dimensions of the value rule set. - /// - [pbr::OriginalName("CONDITION_TYPE_NOT_ALLOWED")] ConditionTypeNotAllowed = 5, - /// - /// The dimensions field contains duplicate elements. - /// - [pbr::OriginalName("DUPLICATE_DIMENSIONS")] DuplicateDimensions = 6, - /// - /// This value rule set is attached to an invalid campaign id. Either a - /// campaign with this campaign id doesn't exist or it belongs to a different - /// customer. - /// - [pbr::OriginalName("INVALID_CAMPAIGN_ID")] InvalidCampaignId = 7, - /// - /// When a mutate request tries to pause a value rule set, the enabled - /// value rules in this set must be paused in the same command, or this error - /// will be thrown. - /// - [pbr::OriginalName("CANNOT_PAUSE_UNLESS_ALL_VALUE_RULES_ARE_PAUSED")] CannotPauseUnlessAllValueRulesArePaused = 8, - /// - /// When a mutate request tries to pause all the value rules in a value rule - /// set, the value rule set must be paused, or this error will be thrown. - /// - [pbr::OriginalName("SHOULD_PAUSE_WHEN_ALL_VALUE_RULES_ARE_PAUSED")] ShouldPauseWhenAllValueRulesArePaused = 9, - /// - /// This value rule set is attached to a campaign that does not support value - /// rules. Currently, campaign level value rule sets can only be created on - /// Search, or Display campaigns. - /// - [pbr::OriginalName("VALUE_RULES_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE")] ValueRulesNotSupportedForCampaignType = 10, - /// - /// To add a value rule set that applies on Store Visits/Store Sales - /// conversion action categories, the customer must have valid Store Visits/ - /// Store Sales conversion actions. - /// - [pbr::OriginalName("INELIGIBLE_CONVERSION_ACTION_CATEGORIES")] IneligibleConversionActionCategories = 11, - /// - /// If NO_CONDITION is used as a dimension of a value rule set, it must be - /// the only dimension. - /// - [pbr::OriginalName("DIMENSION_NO_CONDITION_USED_WITH_OTHER_DIMENSIONS")] DimensionNoConditionUsedWithOtherDimensions = 12, - /// - /// Dimension NO_CONDITION can only be used by Store Visits/Store Sales value - /// rule set. - /// - [pbr::OriginalName("DIMENSION_NO_CONDITION_NOT_ALLOWED")] DimensionNoConditionNotAllowed = 13, - /// - /// Value rule sets defined on the specified conversion action categories are - /// not supported. The list of conversion action categories must be an empty - /// list, only STORE_VISIT, or only STORE_SALE. - /// - [pbr::OriginalName("UNSUPPORTED_CONVERSION_ACTION_CATEGORIES")] UnsupportedConversionActionCategories = 14, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetResourceNames.g.cs deleted file mode 100755 index 25c242e8b..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetResourceNames.g.cs +++ /dev/null @@ -1,316 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ConversionValueRuleSet resource. - public sealed partial class ConversionValueRuleSetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}. - /// - CustomerConversionValueRuleSet = 1, - } - - private static gax::PathTemplate s_customerConversionValueRuleSet = new gax::PathTemplate("customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ConversionValueRuleSetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ConversionValueRuleSetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRuleSet ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static ConversionValueRuleSetName FromCustomerConversionValueRuleSet(string customerId, string conversionValueRuleSetId) => - new ConversionValueRuleSetName(ResourceNameType.CustomerConversionValueRuleSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionValueRuleSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionValueRuleSetId, nameof(conversionValueRuleSetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRuleSet ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}. - /// - public static string Format(string customerId, string conversionValueRuleSetId) => - FormatCustomerConversionValueRuleSet(customerId, conversionValueRuleSetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRuleSet ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}. - /// - public static string FormatCustomerConversionValueRuleSet(string customerId, string conversionValueRuleSetId) => - s_customerConversionValueRuleSet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(conversionValueRuleSetId, nameof(conversionValueRuleSetId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ConversionValueRuleSetName Parse(string conversionValueRuleSetName) => - Parse(conversionValueRuleSetName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ConversionValueRuleSetName Parse(string conversionValueRuleSetName, bool allowUnparsed) => - TryParse(conversionValueRuleSetName, allowUnparsed, out ConversionValueRuleSetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionValueRuleSetName, out ConversionValueRuleSetName result) => - TryParse(conversionValueRuleSetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string conversionValueRuleSetName, bool allowUnparsed, out ConversionValueRuleSetName result) - { - gax::GaxPreconditions.CheckNotNull(conversionValueRuleSetName, nameof(conversionValueRuleSetName)); - gax::TemplatedResourceName resourceName; - if (s_customerConversionValueRuleSet.TryParseName(conversionValueRuleSetName, out resourceName)) - { - result = FromCustomerConversionValueRuleSet(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(conversionValueRuleSetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ConversionValueRuleSetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string conversionValueRuleSetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ConversionValueRuleSetId = conversionValueRuleSetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ConversionValueRuleSet ID. Must not be null or empty. - /// - public ConversionValueRuleSetName(string customerId, string conversionValueRuleSetId) : this(ResourceNameType.CustomerConversionValueRuleSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), conversionValueRuleSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(conversionValueRuleSetId, nameof(conversionValueRuleSetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ConversionValueRuleSet ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ConversionValueRuleSetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerConversionValueRuleSet: return s_customerConversionValueRuleSet.Expand(CustomerId, ConversionValueRuleSetId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ConversionValueRuleSetName); - - /// - public bool Equals(ConversionValueRuleSetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ConversionValueRuleSetName a, ConversionValueRuleSetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ConversionValueRuleSetName a, ConversionValueRuleSetName b) => !(a == b); - } - - public partial class ConversionValueRuleSet - { - /// - /// -typed view over the resource name - /// property. - /// - internal ConversionValueRuleSetName ResourceNameAsConversionValueRuleSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ConversionValueRuleSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gax::ResourceNameList ConversionValueRulesAsConversionValueRuleNames - { - get => new gax::ResourceNameList(ConversionValueRules, s => string.IsNullOrEmpty(s) ? null : ConversionValueRuleName.Parse(s, allowUnparsed: true)); - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName OwnerCustomerAsCustomerName - { - get => string.IsNullOrEmpty(OwnerCustomer) ? null : CustomerName.Parse(OwnerCustomer, allowUnparsed: true); - set => OwnerCustomer = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetService.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetService.g.cs deleted file mode 100755 index 6e6d2f165..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetService.g.cs +++ /dev/null @@ -1,1315 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_value_rule_set_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/conversion_value_rule_set_service.proto - public static partial class ConversionValueRuleSetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/conversion_value_rule_set_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleSetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lv", - "bl92YWx1ZV9ydWxlX3NldF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aQmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY29udmVyc2lvbl92YWx1ZV9y", - "dWxlX3NldC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoX", - "Z29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVo", - "YXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aIGdvb2ds", - "ZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1", - "cy5wcm90byK5AgokTXV0YXRlQ29udmVyc2lvblZhbHVlUnVsZVNldHNSZXF1", - "ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISWwoKb3BlcmF0aW9ucxgC", - "IAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Db252", - "ZXJzaW9uVmFsdWVSdWxlU2V0T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9m", - "YWlsdXJlGAUgASgIEhUKDXZhbGlkYXRlX29ubHkYAyABKAgSagoVcmVzcG9u", - "c2VfY29udGVudF90eXBlGAQgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29u", - "dGVudFR5cGUiwwIKH0NvbnZlcnNpb25WYWx1ZVJ1bGVTZXRPcGVyYXRpb24S", - "LwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN", - "YXNrEkwKBmNyZWF0ZRgBIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMuQ29udmVyc2lvblZhbHVlUnVsZVNldEgAEkwKBnVwZGF0", - "ZRgCIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "Q29udmVyc2lvblZhbHVlUnVsZVNldEgAEkYKBnJlbW92ZRgDIAEoCUI0+kEx", - "Ci9nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ29udmVyc2lvblZhbHVlUnVs", - "ZVNldEgAQgsKCW9wZXJhdGlvbiKyAQolTXV0YXRlQ29udmVyc2lvblZhbHVl", - "UnVsZVNldHNSZXNwb25zZRJWCgdyZXN1bHRzGAEgAygLMkUuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUNvbnZlcnNpb25WYWx1", - "ZVJ1bGVTZXRSZXN1bHQSMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAIgASgL", - "MhIuZ29vZ2xlLnJwYy5TdGF0dXMi0AEKIk11dGF0ZUNvbnZlcnNpb25WYWx1", - "ZVJ1bGVTZXRSZXN1bHQSSwoNcmVzb3VyY2VfbmFtZRgBIAEoCUI0+kExCi9n", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ29udmVyc2lvblZhbHVlUnVsZVNl", - "dBJdChljb252ZXJzaW9uX3ZhbHVlX3J1bGVfc2V0GAIgASgLMjouZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9uVmFsdWVS", - "dWxlU2V0Mv4CCh1Db252ZXJzaW9uVmFsdWVSdWxlU2V0U2VydmljZRKVAgod", - "TXV0YXRlQ29udmVyc2lvblZhbHVlUnVsZVNldHMSRy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvblZhbHVlUnVs", - "ZVNldHNSZXF1ZXN0GkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLk11dGF0ZUNvbnZlcnNpb25WYWx1ZVJ1bGVTZXRzUmVzcG9uc2UiYYLT", - "5JMCQiI9L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2NvbnZlcnNp", - "b25WYWx1ZVJ1bGVTZXRzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9wZXJh", - "dGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8v", - "d3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KOAgolY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IiQ29udmVyc2lvblZhbHVl", - "UnVsZVNldFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3Nl", - "cnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZp", - "Y2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation), global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult), global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult.Parser, new[]{ "ResourceName", "ConversionValueRuleSet" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [ConversionValueRuleSetService.MutateConversionValueRuleSets][google.ads.googleads.v12.services.ConversionValueRuleSetService.MutateConversionValueRuleSets]. - /// - public sealed partial class MutateConversionValueRuleSetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionValueRuleSetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetsRequest(MutateConversionValueRuleSetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetsRequest Clone() { - return new MutateConversionValueRuleSetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose conversion value rule sets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual conversion value rule sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 5; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionValueRuleSetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionValueRuleSetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (PartialFailure != false) { - output.WriteRawTag(40); - output.WriteBool(PartialFailure); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (PartialFailure != false) { - output.WriteRawTag(40); - output.WriteBool(PartialFailure); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionValueRuleSetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - case 40: { - PartialFailure = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - case 40: { - PartialFailure = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a conversion value rule set. - /// - public sealed partial class ConversionValueRuleSetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRuleSetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetOperation(ConversionValueRuleSetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetOperation Clone() { - return new ConversionValueRuleSetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new conversion - /// value rule set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The conversion value rule set is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed conversion value rule - /// set is expected, in this format: - /// - /// `customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRuleSetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRuleSetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRuleSetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [ConversionValueRuleSetService.MutateConversionValueRuleSets][google.ads.googleads.v12.services.ConversionValueRuleSetService.MutateConversionValueRuleSets]. - /// - public sealed partial class MutateConversionValueRuleSetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionValueRuleSetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetsResponse(MutateConversionValueRuleSetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetsResponse Clone() { - return new MutateConversionValueRuleSetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionValueRuleSetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionValueRuleSetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionValueRuleSetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the conversion value rule set mutate. - /// - public sealed partial class MutateConversionValueRuleSetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateConversionValueRuleSetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetResult(MutateConversionValueRuleSetResult other) : this() { - resourceName_ = other.resourceName_; - conversionValueRuleSet_ = other.conversionValueRuleSet_ != null ? other.conversionValueRuleSet_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateConversionValueRuleSetResult Clone() { - return new MutateConversionValueRuleSetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_value_rule_set" field. - public const int ConversionValueRuleSetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet conversionValueRuleSet_; - /// - /// The mutated conversion value rule set with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet ConversionValueRuleSet { - get { return conversionValueRuleSet_; } - set { - conversionValueRuleSet_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateConversionValueRuleSetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateConversionValueRuleSetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(ConversionValueRuleSet, other.ConversionValueRuleSet)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (conversionValueRuleSet_ != null) hash ^= ConversionValueRuleSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionValueRuleSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionValueRuleSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (conversionValueRuleSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConversionValueRuleSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (conversionValueRuleSet_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRuleSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateConversionValueRuleSetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.conversionValueRuleSet_ != null) { - if (conversionValueRuleSet_ == null) { - ConversionValueRuleSet = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - ConversionValueRuleSet.MergeFrom(other.ConversionValueRuleSet); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionValueRuleSet_ == null) { - ConversionValueRuleSet = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - input.ReadMessage(ConversionValueRuleSet); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (conversionValueRuleSet_ == null) { - ConversionValueRuleSet = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - input.ReadMessage(ConversionValueRuleSet); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceClient.g.cs deleted file mode 100755 index 436723fae..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceClient.g.cs +++ /dev/null @@ -1,375 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ConversionValueRuleSetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ConversionValueRuleSetServiceSettings GetDefault() => new ConversionValueRuleSetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ConversionValueRuleSetServiceSettings() - { - } - - private ConversionValueRuleSetServiceSettings(ConversionValueRuleSetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateConversionValueRuleSetsSettings = existing.MutateConversionValueRuleSetsSettings; - OnCopy(existing); - } - - partial void OnCopy(ConversionValueRuleSetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ConversionValueRuleSetServiceClient.MutateConversionValueRuleSets and - /// ConversionValueRuleSetServiceClient.MutateConversionValueRuleSetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateConversionValueRuleSetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ConversionValueRuleSetServiceSettings Clone() => new ConversionValueRuleSetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class ConversionValueRuleSetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ConversionValueRuleSetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ConversionValueRuleSetServiceClientBuilder() : base(ConversionValueRuleSetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ConversionValueRuleSetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ConversionValueRuleSetServiceClient Build() - { - ConversionValueRuleSetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ConversionValueRuleSetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ConversionValueRuleSetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ConversionValueRuleSetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ConversionValueRuleSetServiceClient.ChannelPool; - } - - /// ConversionValueRuleSetService client wrapper, for convenient use. - /// - /// Service to manage conversion value rule sets. - /// - public abstract partial class ConversionValueRuleSetServiceClient - { - /// - /// The default endpoint for the ConversionValueRuleSetService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ConversionValueRuleSetService scopes. - /// - /// The default ConversionValueRuleSetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ConversionValueRuleSetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ConversionValueRuleSetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ConversionValueRuleSetServiceClient Create() => - new ConversionValueRuleSetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ConversionValueRuleSetServiceClient Create(grpccore::CallInvoker callInvoker, ConversionValueRuleSetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ConversionValueRuleSetService.ConversionValueRuleSetServiceClient grpcClient = new ConversionValueRuleSetService.ConversionValueRuleSetServiceClient(callInvoker); - return new ConversionValueRuleSetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ConversionValueRuleSetService client - public virtual ConversionValueRuleSetService.ConversionValueRuleSetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionValueRuleSetsResponse MutateConversionValueRuleSets(MutateConversionValueRuleSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRuleSetsAsync(MutateConversionValueRuleSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRuleSetsAsync(MutateConversionValueRuleSetsRequest request, st::CancellationToken cancellationToken) => - MutateConversionValueRuleSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose conversion value rule sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion value rule sets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateConversionValueRuleSetsResponse MutateConversionValueRuleSets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionValueRuleSets(new MutateConversionValueRuleSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose conversion value rule sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion value rule sets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRuleSetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateConversionValueRuleSetsAsync(new MutateConversionValueRuleSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose conversion value rule sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual conversion value rule sets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateConversionValueRuleSetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateConversionValueRuleSetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ConversionValueRuleSetService client wrapper implementation, for convenient use. - /// - /// Service to manage conversion value rule sets. - /// - public sealed partial class ConversionValueRuleSetServiceClientImpl : ConversionValueRuleSetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateConversionValueRuleSets; - - /// - /// Constructs a client wrapper for the ConversionValueRuleSetService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ConversionValueRuleSetServiceClientImpl(ConversionValueRuleSetService.ConversionValueRuleSetServiceClient grpcClient, ConversionValueRuleSetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ConversionValueRuleSetServiceSettings effectiveSettings = settings ?? ConversionValueRuleSetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateConversionValueRuleSets = clientHelper.BuildApiCall("MutateConversionValueRuleSets", grpcClient.MutateConversionValueRuleSetsAsync, grpcClient.MutateConversionValueRuleSets, effectiveSettings.MutateConversionValueRuleSetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateConversionValueRuleSets); - Modify_MutateConversionValueRuleSetsApiCall(ref _callMutateConversionValueRuleSets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateConversionValueRuleSetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ConversionValueRuleSetService.ConversionValueRuleSetServiceClient grpcClient, ConversionValueRuleSetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ConversionValueRuleSetService client - public override ConversionValueRuleSetService.ConversionValueRuleSetServiceClient GrpcClient { get; } - - partial void Modify_MutateConversionValueRuleSetsRequest(ref MutateConversionValueRuleSetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateConversionValueRuleSetsResponse MutateConversionValueRuleSets(MutateConversionValueRuleSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionValueRuleSetsRequest(ref request, ref callSettings); - return _callMutateConversionValueRuleSets.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateConversionValueRuleSetsAsync(MutateConversionValueRuleSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateConversionValueRuleSetsRequest(ref request, ref callSettings); - return _callMutateConversionValueRuleSets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceGrpc.g.cs deleted file mode 100755 index 64601d82c..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/conversion_value_rule_set_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage conversion value rule sets. - /// - public static partial class ConversionValueRuleSetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ConversionValueRuleSetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRuleSetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRuleSetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateConversionValueRuleSets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateConversionValueRuleSets", - __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRuleSetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateConversionValueRuleSetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ConversionValueRuleSetService - [grpc::BindServiceMethod(typeof(ConversionValueRuleSetService), "BindService")] - public abstract partial class ConversionValueRuleSetServiceBase - { - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateConversionValueRuleSets(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ConversionValueRuleSetService - public partial class ConversionValueRuleSetServiceClient : grpc::ClientBase - { - /// Creates a new client for ConversionValueRuleSetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionValueRuleSetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ConversionValueRuleSetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ConversionValueRuleSetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionValueRuleSetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ConversionValueRuleSetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsResponse MutateConversionValueRuleSets(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionValueRuleSets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsResponse MutateConversionValueRuleSets(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateConversionValueRuleSets, null, options, request); - } - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionValueRuleSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateConversionValueRuleSetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes conversion value rule sets. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateConversionValueRuleSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateConversionValueRuleSets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ConversionValueRuleSetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ConversionValueRuleSetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ConversionValueRuleSetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateConversionValueRuleSets, serviceImpl.MutateConversionValueRuleSets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ConversionValueRuleSetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateConversionValueRuleSets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateConversionValueRuleSets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceResourceNames.g.cs deleted file mode 100755 index d06c16363..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class ConversionValueRuleSetOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ConversionValueRuleSetName RemoveAsConversionValueRuleSetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::ConversionValueRuleSetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateConversionValueRuleSetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ConversionValueRuleSetName ResourceNameAsConversionValueRuleSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ConversionValueRuleSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetStatus.g.cs deleted file mode 100755 index cd158a3c8..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleSetStatus.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_value_rule_set_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_value_rule_set_status.proto - public static partial class ConversionValueRuleSetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_value_rule_set_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleSetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl92", - "YWx1ZV9ydWxlX3NldF9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcyKGAQogQ29udmVyc2lvblZhbHVlUnVsZVNldFN0YXR1", - "c0VudW0iYgocQ29udmVyc2lvblZhbHVlUnVsZVNldFN0YXR1cxIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISCwoHUkVNT1ZF", - "RBADEgoKBlBBVVNFRBAEQvsBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQiFDb252ZXJzaW9uVmFsdWVSdWxlU2V0U3RhdHVzUHJvdG9Q", - "AVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusEnum.Types.ConversionValueRuleSetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a conversion value rule - /// set. - /// - public sealed partial class ConversionValueRuleSetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRuleSetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleSetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetStatusEnum(ConversionValueRuleSetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleSetStatusEnum Clone() { - return new ConversionValueRuleSetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRuleSetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRuleSetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRuleSetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionValueRuleSetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a conversion value rule set. - /// - public enum ConversionValueRuleSetStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversion Value Rule Set is enabled and can be applied. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Conversion Value Rule Set is permanently deleted and can't be applied. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - /// - /// Conversion Value Rule Set is paused and won't be applied. It can be - /// enabled again. - /// - [pbr::OriginalName("PAUSED")] Paused = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleStatus.g.cs b/Google.Ads.GoogleAds/src/V12/ConversionValueRuleStatus.g.cs deleted file mode 100755 index c3808025d..000000000 --- a/Google.Ads.GoogleAds/src/V12/ConversionValueRuleStatus.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_value_rule_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_value_rule_status.proto - public static partial class ConversionValueRuleStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_value_rule_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ConversionValueRuleStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl92", - "YWx1ZV9ydWxlX3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zIoABCh1Db252ZXJzaW9uVmFsdWVSdWxlU3RhdHVzRW51bSJf", - "ChlDb252ZXJzaW9uVmFsdWVSdWxlU3RhdHVzEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEgsKB0VOQUJMRUQQAhILCgdSRU1PVkVEEAMSCgoGUEFV", - "U0VEEARC+AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNC", - "HkNvbnZlcnNpb25WYWx1ZVJ1bGVTdGF0dXNQcm90b1ABWkNnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusEnum.Types.ConversionValueRuleStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a conversion value rule. - /// - public sealed partial class ConversionValueRuleStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionValueRuleStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionValueRuleStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleStatusEnum(ConversionValueRuleStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionValueRuleStatusEnum Clone() { - return new ConversionValueRuleStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionValueRuleStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionValueRuleStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionValueRuleStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ConversionValueRuleStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a conversion value rule. - /// - public enum ConversionValueRuleStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversion Value Rule is enabled and can be applied. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Conversion Value Rule is permanently deleted and can't be applied. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - /// - /// Conversion Value Rule is paused, but can be re-enabled. - /// - [pbr::OriginalName("PAUSED")] Paused = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CountryCodeError.g.cs b/Google.Ads.GoogleAds/src/V12/CountryCodeError.g.cs deleted file mode 100755 index 0b356c84d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CountryCodeError.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/country_code_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/country_code_error.proto - public static partial class CountryCodeErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/country_code_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CountryCodeErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvdW50cnlfY29k", - "ZV9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cyJiChRDb3VudHJ5Q29kZUVycm9yRW51bSJKChBDb3VudHJ5Q29kZUVycm9y", - "Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhgKFElOVkFMSURfQ09V", - "TlRSWV9DT0RFEAJC9QEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzQhVDb3VudHJ5Q29kZUVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorEnum.Types.CountryCodeError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing country code errors. - /// - public sealed partial class CountryCodeErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CountryCodeErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CountryCodeErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CountryCodeErrorEnum(CountryCodeErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CountryCodeErrorEnum Clone() { - return new CountryCodeErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CountryCodeErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CountryCodeErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CountryCodeErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CountryCodeErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing country code errors. - /// - public enum CountryCodeError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The country code is invalid. - /// - [pbr::OriginalName("INVALID_COUNTRY_CODE")] InvalidCountryCode = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Criteria.g.cs b/Google.Ads.GoogleAds/src/V12/Criteria.g.cs deleted file mode 100755 index a961b9dca..000000000 --- a/Google.Ads.GoogleAds/src/V12/Criteria.g.cs +++ /dev/null @@ -1,16072 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/criteria.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/criteria.proto - public static partial class CriteriaReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/criteria.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CriteriaReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2NyaXRlcmlhLnBy", - "b3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uGjNnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWdlX3JhbmdlX3R5cGUucHJvdG8a", - "O2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hcHBfcGF5bWVudF9t", - "b2RlbF90eXBlLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvY29udGVudF9sYWJlbF90eXBlLnByb3RvGjBnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvZGF5X29mX3dlZWsucHJvdG8aK2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcy9kZXZpY2UucHJvdG8aMGdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcy9nZW5kZXJfdHlwZS5wcm90bxo+Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2hvdGVsX2RhdGVfc2VsZWN0aW9u", - "X3R5cGUucHJvdG8aNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9p", - "bmNvbWVfcmFuZ2VfdHlwZS5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL2ludGVyYWN0aW9uX3R5cGUucHJvdG8aN2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcy9rZXl3b3JkX21hdGNoX3R5cGUucHJvdG8a", - "N2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9saXN0aW5nX2dyb3Vw", - "X3R5cGUucHJvdG8aQGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9s", - "b2NhdGlvbl9ncm91cF9yYWRpdXNfdW5pdHMucHJvdG8aM2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lbnVtcy9taW51dGVfb2ZfaG91ci5wcm90bxo5Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3BhcmVudGFsX3N0YXR1c190", - "eXBlLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcHJl", - "ZmVycmVkX2NvbnRlbnRfdHlwZS5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL3Byb2R1Y3RfYmlkZGluZ19jYXRlZ29yeV9sZXZlbC5w", - "cm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Byb2R1Y3Rf", - "Y2hhbm5lbC5wcm90bxpAZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3Byb2R1Y3RfY2hhbm5lbF9leGNsdXNpdml0eS5wcm90bxo2Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL3Byb2R1Y3RfY29uZGl0aW9uLnByb3Rv", - "GkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcHJvZHVjdF9jdXN0", - "b21fYXR0cmlidXRlX2luZGV4LnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvcHJvZHVjdF90eXBlX2xldmVsLnByb3RvGjtnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcHJveGltaXR5X3JhZGl1c191bml0", - "cy5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3dlYnBh", - "Z2VfY29uZGl0aW9uX29wZXJhbmQucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcy93ZWJwYWdlX2NvbmRpdGlvbl9vcGVyYXRvci5wcm90", - "byKEAQoLS2V5d29yZEluZm8SEQoEdGV4dBgDIAEoCUgAiAEBElkKCm1hdGNo", - "X3R5cGUYAiABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "S2V5d29yZE1hdGNoVHlwZUVudW0uS2V5d29yZE1hdGNoVHlwZUIHCgVfdGV4", - "dCIpCg1QbGFjZW1lbnRJbmZvEhAKA3VybBgCIAEoCUgAiAEBQgYKBF91cmwi", - "YwoVTW9iaWxlQXBwQ2F0ZWdvcnlJbmZvEikKHG1vYmlsZV9hcHBfY2F0ZWdv", - "cnlfY29uc3RhbnQYAiABKAlIAIgBAUIfCh1fbW9iaWxlX2FwcF9jYXRlZ29y", - "eV9jb25zdGFudCJTChVNb2JpbGVBcHBsaWNhdGlvbkluZm8SEwoGYXBwX2lk", - "GAQgASgJSACIAQESEQoEbmFtZRgFIAEoCUgBiAEBQgkKB19hcHBfaWRCBwoF", - "X25hbWUiSAoMTG9jYXRpb25JbmZvEiAKE2dlb190YXJnZXRfY29uc3RhbnQY", - "AiABKAlIAIgBAUIWChRfZ2VvX3RhcmdldF9jb25zdGFudCJNCgpEZXZpY2VJ", - "bmZvEj8KBHR5cGUYASABKA4yMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuRGV2aWNlRW51bS5EZXZpY2UicwoUUHJlZmVycmVkQ29udGVudElu", - "Zm8SWwoEdHlwZRgCIAEoDjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5QcmVmZXJyZWRDb250ZW50VHlwZUVudW0uUHJlZmVycmVkQ29udGVu", - "dFR5cGUi+AEKEExpc3RpbmdHcm91cEluZm8SUwoEdHlwZRgBIAEoDjJFLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5MaXN0aW5nR3JvdXBUeXBl", - "RW51bS5MaXN0aW5nR3JvdXBUeXBlEkkKCmNhc2VfdmFsdWUYAiABKAsyNS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkxpc3RpbmdEaW1lbnNp", - "b25JbmZvEiYKGXBhcmVudF9hZF9ncm91cF9jcml0ZXJpb24YBCABKAlIAIgB", - "AUIcChpfcGFyZW50X2FkX2dyb3VwX2NyaXRlcmlvbiJdChBMaXN0aW5nU2Nv", - "cGVJbmZvEkkKCmRpbWVuc2lvbnMYAiADKAsyNS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uLkxpc3RpbmdEaW1lbnNpb25JbmZvIv0LChRMaXN0", - "aW5nRGltZW5zaW9uSW5mbxJACghob3RlbF9pZBgCIAEoCzIsLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uSG90ZWxJZEluZm9IABJGCgtob3Rl", - "bF9jbGFzcxgDIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uSG90ZWxDbGFzc0luZm9IABJXChRob3RlbF9jb3VudHJ5X3JlZ2lvbhgE", - "IAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uSG90ZWxD", - "b3VudHJ5UmVnaW9uSW5mb0gAEkYKC2hvdGVsX3N0YXRlGAUgASgLMi8uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Ib3RlbFN0YXRlSW5mb0gA", - "EkQKCmhvdGVsX2NpdHkYBiABKAsyLi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLkhvdGVsQ2l0eUluZm9IABJfChhwcm9kdWN0X2JpZGRpbmdf", - "Y2F0ZWdvcnkYDSABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLlByb2R1Y3RCaWRkaW5nQ2F0ZWdvcnlJbmZvSAASSgoNcHJvZHVjdF9i", - "cmFuZBgPIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "UHJvZHVjdEJyYW5kSW5mb0gAEk4KD3Byb2R1Y3RfY2hhbm5lbBgIIAEoCzIz", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUHJvZHVjdENoYW5u", - "ZWxJbmZvSAASZQobcHJvZHVjdF9jaGFubmVsX2V4Y2x1c2l2aXR5GAkgASgL", - "Mj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Qcm9kdWN0Q2hh", - "bm5lbEV4Y2x1c2l2aXR5SW5mb0gAElIKEXByb2R1Y3RfY29uZGl0aW9uGAog", - "ASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Qcm9kdWN0", - "Q29uZGl0aW9uSW5mb0gAEl8KGHByb2R1Y3RfY3VzdG9tX2F0dHJpYnV0ZRgQ", - "IAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUHJvZHVj", - "dEN1c3RvbUF0dHJpYnV0ZUluZm9IABJNCg9wcm9kdWN0X2l0ZW1faWQYCyAB", - "KAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLlByb2R1Y3RJ", - "dGVtSWRJbmZvSAASSAoMcHJvZHVjdF90eXBlGAwgASgLMjAuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmNvbW1vbi5Qcm9kdWN0VHlwZUluZm9IABJQChBw", - "cm9kdWN0X2dyb3VwaW5nGBEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5Qcm9kdWN0R3JvdXBpbmdJbmZvSAASTAoOcHJvZHVjdF9s", - "YWJlbHMYEiABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LlByb2R1Y3RMYWJlbHNJbmZvSAASXwoYcHJvZHVjdF9sZWdhY3lfY29uZGl0", - "aW9uGBMgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Q", - "cm9kdWN0TGVnYWN5Q29uZGl0aW9uSW5mb0gAElEKEXByb2R1Y3RfdHlwZV9m", - "dWxsGBQgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Q", - "cm9kdWN0VHlwZUZ1bGxJbmZvSAASYQoZdW5rbm93bl9saXN0aW5nX2RpbWVu", - "c2lvbhgOIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "VW5rbm93bkxpc3RpbmdEaW1lbnNpb25JbmZvSABCCwoJZGltZW5zaW9uIisK", - "C0hvdGVsSWRJbmZvEhIKBXZhbHVlGAIgASgJSACIAQFCCAoGX3ZhbHVlIi4K", - "DkhvdGVsQ2xhc3NJbmZvEhIKBXZhbHVlGAIgASgDSACIAQFCCAoGX3ZhbHVl", - "IlwKFkhvdGVsQ291bnRyeVJlZ2lvbkluZm8SJQoYY291bnRyeV9yZWdpb25f", - "Y3JpdGVyaW9uGAIgASgJSACIAQFCGwoZX2NvdW50cnlfcmVnaW9uX2NyaXRl", - "cmlvbiJCCg5Ib3RlbFN0YXRlSW5mbxIcCg9zdGF0ZV9jcml0ZXJpb24YAiAB", - "KAlIAIgBAUISChBfc3RhdGVfY3JpdGVyaW9uIj8KDUhvdGVsQ2l0eUluZm8S", - "GwoOY2l0eV9jcml0ZXJpb24YAiABKAlIAIgBAUIRCg9fY2l0eV9jcml0ZXJp", - "b24izAEKGlByb2R1Y3RCaWRkaW5nQ2F0ZWdvcnlJbmZvEg8KAmlkGAQgASgD", - "SACIAQESGQoMY291bnRyeV9jb2RlGAUgASgJSAGIAQESagoFbGV2ZWwYAyAB", - "KA4yWy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUHJvZHVjdEJp", - "ZGRpbmdDYXRlZ29yeUxldmVsRW51bS5Qcm9kdWN0QmlkZGluZ0NhdGVnb3J5", - "TGV2ZWxCBQoDX2lkQg8KDV9jb3VudHJ5X2NvZGUiMAoQUHJvZHVjdEJyYW5k", - "SW5mbxISCgV2YWx1ZRgCIAEoCUgAiAEBQggKBl92YWx1ZSJoChJQcm9kdWN0", - "Q2hhbm5lbEluZm8SUgoHY2hhbm5lbBgBIAEoDjJBLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtcy5Qcm9kdWN0Q2hhbm5lbEVudW0uUHJvZHVjdENo", - "YW5uZWwilQEKHVByb2R1Y3RDaGFubmVsRXhjbHVzaXZpdHlJbmZvEnQKE2No", - "YW5uZWxfZXhjbHVzaXZpdHkYASABKA4yVy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuUHJvZHVjdENoYW5uZWxFeGNsdXNpdml0eUVudW0uUHJv", - "ZHVjdENoYW5uZWxFeGNsdXNpdml0eSJwChRQcm9kdWN0Q29uZGl0aW9uSW5m", - "bxJYCgljb25kaXRpb24YASABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuUHJvZHVjdENvbmRpdGlvbkVudW0uUHJvZHVjdENvbmRpdGlv", - "biKmAQoaUHJvZHVjdEN1c3RvbUF0dHJpYnV0ZUluZm8SEgoFdmFsdWUYAyAB", - "KAlIAIgBARJqCgVpbmRleBgCIAEoDjJbLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5Qcm9kdWN0Q3VzdG9tQXR0cmlidXRlSW5kZXhFbnVtLlBy", - "b2R1Y3RDdXN0b21BdHRyaWJ1dGVJbmRleEIICgZfdmFsdWUiMQoRUHJvZHVj", - "dEl0ZW1JZEluZm8SEgoFdmFsdWUYAiABKAlIAIgBAUIICgZfdmFsdWUihQEK", - "D1Byb2R1Y3RUeXBlSW5mbxISCgV2YWx1ZRgDIAEoCUgAiAEBElQKBWxldmVs", - "GAIgASgOMkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlByb2R1", - "Y3RUeXBlTGV2ZWxFbnVtLlByb2R1Y3RUeXBlTGV2ZWxCCAoGX3ZhbHVlIjMK", - "E1Byb2R1Y3RHcm91cGluZ0luZm8SEgoFdmFsdWUYASABKAlIAIgBAUIICgZf", - "dmFsdWUiMQoRUHJvZHVjdExhYmVsc0luZm8SEgoFdmFsdWUYASABKAlIAIgB", - "AUIICgZfdmFsdWUiOgoaUHJvZHVjdExlZ2FjeUNvbmRpdGlvbkluZm8SEgoF", - "dmFsdWUYASABKAlIAIgBAUIICgZfdmFsdWUiMwoTUHJvZHVjdFR5cGVGdWxs", - "SW5mbxISCgV2YWx1ZRgBIAEoCUgAiAEBQggKBl92YWx1ZSIdChtVbmtub3du", - "TGlzdGluZ0RpbWVuc2lvbkluZm8ifQoaSG90ZWxEYXRlU2VsZWN0aW9uVHlw", - "ZUluZm8SXwoEdHlwZRgBIAEoDjJRLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5Ib3RlbERhdGVTZWxlY3Rpb25UeXBlRW51bS5Ib3RlbERhdGVT", - "ZWxlY3Rpb25UeXBlImcKHUhvdGVsQWR2YW5jZUJvb2tpbmdXaW5kb3dJbmZv", - "EhUKCG1pbl9kYXlzGAMgASgDSACIAQESFQoIbWF4X2RheXMYBCABKANIAYgB", - "AUILCglfbWluX2RheXNCCwoJX21heF9kYXlzImcKFUhvdGVsTGVuZ3RoT2ZT", - "dGF5SW5mbxIXCgptaW5fbmlnaHRzGAMgASgDSACIAQESFwoKbWF4X25pZ2h0", - "cxgEIAEoA0gBiAEBQg0KC19taW5fbmlnaHRzQg0KC19tYXhfbmlnaHRzIkEK", - "GUhvdGVsQ2hlY2tJbkRhdGVSYW5nZUluZm8SEgoKc3RhcnRfZGF0ZRgBIAEo", - "CRIQCghlbmRfZGF0ZRgCIAEoCSJjChNIb3RlbENoZWNrSW5EYXlJbmZvEkwK", - "C2RheV9vZl93ZWVrGAEgASgOMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkRheU9mV2Vla0VudW0uRGF5T2ZXZWVrImgKE0ludGVyYWN0aW9u", - "VHlwZUluZm8SUQoEdHlwZRgBIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5JbnRlcmFjdGlvblR5cGVFbnVtLkludGVyYWN0aW9uVHlw", - "ZSLSAgoOQWRTY2hlZHVsZUluZm8SUwoMc3RhcnRfbWludXRlGAEgASgOMj0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLk1pbnV0ZU9mSG91ckVu", - "dW0uTWludXRlT2ZIb3VyElEKCmVuZF9taW51dGUYAiABKA4yPS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuTWludXRlT2ZIb3VyRW51bS5NaW51", - "dGVPZkhvdXISFwoKc3RhcnRfaG91chgGIAEoBUgAiAEBEhUKCGVuZF9ob3Vy", - "GAcgASgFSAGIAQESTAoLZGF5X29mX3dlZWsYBSABKA4yNy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuRGF5T2ZXZWVrRW51bS5EYXlPZldlZWtC", - "DQoLX3N0YXJ0X2hvdXJCCwoJX2VuZF9ob3VyIlsKDEFnZVJhbmdlSW5mbxJL", - "CgR0eXBlGAEgASgOMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LkFnZVJhbmdlVHlwZUVudW0uQWdlUmFuZ2VUeXBlIlUKCkdlbmRlckluZm8S", - "RwoEdHlwZRgBIAEoDjI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5HZW5kZXJUeXBlRW51bS5HZW5kZXJUeXBlImQKD0luY29tZVJhbmdlSW5m", - "bxJRCgR0eXBlGAEgASgOMkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLkluY29tZVJhbmdlVHlwZUVudW0uSW5jb21lUmFuZ2VUeXBlIm0KElBh", - "cmVudGFsU3RhdHVzSW5mbxJXCgR0eXBlGAEgASgOMkkuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLlBhcmVudGFsU3RhdHVzVHlwZUVudW0uUGFy", - "ZW50YWxTdGF0dXNUeXBlIjYKEFlvdVR1YmVWaWRlb0luZm8SFQoIdmlkZW9f", - "aWQYAiABKAlIAIgBAUILCglfdmlkZW9faWQiPAoSWW91VHViZUNoYW5uZWxJ", - "bmZvEhcKCmNoYW5uZWxfaWQYAiABKAlIAIgBAUINCgtfY2hhbm5lbF9pZCI0", - "CgxVc2VyTGlzdEluZm8SFgoJdXNlcl9saXN0GAIgASgJSACIAQFCDAoKX3Vz", - "ZXJfbGlzdCKVAgoNUHJveGltaXR5SW5mbxJACglnZW9fcG9pbnQYASABKAsy", - "LS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkdlb1BvaW50SW5m", - "bxITCgZyYWRpdXMYBSABKAFIAIgBARJjCgxyYWRpdXNfdW5pdHMYAyABKA4y", - "TS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUHJveGltaXR5UmFk", - "aXVzVW5pdHNFbnVtLlByb3hpbWl0eVJhZGl1c1VuaXRzEj0KB2FkZHJlc3MY", - "BCABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkZHJl", - "c3NJbmZvQgkKB19yYWRpdXMinAEKDEdlb1BvaW50SW5mbxInChpsb25naXR1", - "ZGVfaW5fbWljcm9fZGVncmVlcxgDIAEoBUgAiAEBEiYKGWxhdGl0dWRlX2lu", - "X21pY3JvX2RlZ3JlZXMYBCABKAVIAYgBAUIdChtfbG9uZ2l0dWRlX2luX21p", - "Y3JvX2RlZ3JlZXNCHAoaX2xhdGl0dWRlX2luX21pY3JvX2RlZ3JlZXMixwIK", - "C0FkZHJlc3NJbmZvEhgKC3Bvc3RhbF9jb2RlGAggASgJSACIAQESGgoNcHJv", - "dmluY2VfY29kZRgJIAEoCUgBiAEBEhkKDGNvdW50cnlfY29kZRgKIAEoCUgC", - "iAEBEhoKDXByb3ZpbmNlX25hbWUYCyABKAlIA4gBARIbCg5zdHJlZXRfYWRk", - "cmVzcxgMIAEoCUgEiAEBEhwKD3N0cmVldF9hZGRyZXNzMhgNIAEoCUgFiAEB", - "EhYKCWNpdHlfbmFtZRgOIAEoCUgGiAEBQg4KDF9wb3N0YWxfY29kZUIQCg5f", - "cHJvdmluY2VfY29kZUIPCg1fY291bnRyeV9jb2RlQhAKDl9wcm92aW5jZV9u", - "YW1lQhEKD19zdHJlZXRfYWRkcmVzc0ISChBfc3RyZWV0X2FkZHJlc3MyQgwK", - "Cl9jaXR5X25hbWUiSQoJVG9waWNJbmZvEhsKDnRvcGljX2NvbnN0YW50GAMg", - "ASgJSACIAQESDAoEcGF0aBgEIAMoCUIRCg9fdG9waWNfY29uc3RhbnQiRAoM", - "TGFuZ3VhZ2VJbmZvEh4KEWxhbmd1YWdlX2NvbnN0YW50GAIgASgJSACIAQFC", - "FAoSX2xhbmd1YWdlX2NvbnN0YW50IjUKC0lwQmxvY2tJbmZvEhcKCmlwX2Fk", - "ZHJlc3MYAiABKAlIAIgBAUINCgtfaXBfYWRkcmVzcyJnChBDb250ZW50TGFi", - "ZWxJbmZvElMKBHR5cGUYASABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuQ29udGVudExhYmVsVHlwZUVudW0uQ29udGVudExhYmVsVHlw", - "ZSJBCgtDYXJyaWVySW5mbxIdChBjYXJyaWVyX2NvbnN0YW50GAIgASgJSACI", - "AQFCEwoRX2NhcnJpZXJfY29uc3RhbnQiUgoQVXNlckludGVyZXN0SW5mbxIj", - "ChZ1c2VyX2ludGVyZXN0X2NhdGVnb3J5GAIgASgJSACIAQFCGQoXX3VzZXJf", - "aW50ZXJlc3RfY2F0ZWdvcnki6QEKC1dlYnBhZ2VJbmZvEhsKDmNyaXRlcmlv", - "bl9uYW1lGAMgASgJSACIAQESSQoKY29uZGl0aW9ucxgCIAMoCzI1Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uV2VicGFnZUNvbmRpdGlvbklu", - "Zm8SGwoTY292ZXJhZ2VfcGVyY2VudGFnZRgEIAEoARJCCgZzYW1wbGUYBSAB", - "KAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLldlYnBhZ2VT", - "YW1wbGVJbmZvQhEKD19jcml0ZXJpb25fbmFtZSKJAgoUV2VicGFnZUNvbmRp", - "dGlvbkluZm8SZAoHb3BlcmFuZBgBIAEoDjJTLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5XZWJwYWdlQ29uZGl0aW9uT3BlcmFuZEVudW0uV2Vi", - "cGFnZUNvbmRpdGlvbk9wZXJhbmQSZwoIb3BlcmF0b3IYAiABKA4yVS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuV2VicGFnZUNvbmRpdGlvbk9w", - "ZXJhdG9yRW51bS5XZWJwYWdlQ29uZGl0aW9uT3BlcmF0b3ISFQoIYXJndW1l", - "bnQYBCABKAlIAIgBAUILCglfYXJndW1lbnQiKAoRV2VicGFnZVNhbXBsZUlu", - "Zm8SEwoLc2FtcGxlX3VybHMYASADKAkicgoaT3BlcmF0aW5nU3lzdGVtVmVy", - "c2lvbkluZm8SLgohb3BlcmF0aW5nX3N5c3RlbV92ZXJzaW9uX2NvbnN0YW50", - "GAIgASgJSACIAQFCJAoiX29wZXJhdGluZ19zeXN0ZW1fdmVyc2lvbl9jb25z", - "dGFudCJwChNBcHBQYXltZW50TW9kZWxJbmZvElkKBHR5cGUYASABKA4ySy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQXBwUGF5bWVudE1vZGVs", - "VHlwZUVudW0uQXBwUGF5bWVudE1vZGVsVHlwZSJSChBNb2JpbGVEZXZpY2VJ", - "bmZvEiMKFm1vYmlsZV9kZXZpY2VfY29uc3RhbnQYAiABKAlIAIgBAUIZChdf", - "bW9iaWxlX2RldmljZV9jb25zdGFudCJGChJDdXN0b21BZmZpbml0eUluZm8S", - "HAoPY3VzdG9tX2FmZmluaXR5GAIgASgJSACIAQFCEgoQX2N1c3RvbV9hZmZp", - "bml0eSJAChBDdXN0b21JbnRlbnRJbmZvEhoKDWN1c3RvbV9pbnRlbnQYAiAB", - "KAlIAIgBAUIQCg5fY3VzdG9tX2ludGVudCL5AgoRTG9jYXRpb25Hcm91cElu", - "Zm8SEQoEZmVlZBgFIAEoCUgAiAEBEhwKFGdlb190YXJnZXRfY29uc3RhbnRz", - "GAYgAygJEhMKBnJhZGl1cxgHIAEoA0gBiAEBEmsKDHJhZGl1c191bml0cxgE", - "IAEoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Mb2NhdGlv", - "bkdyb3VwUmFkaXVzVW5pdHNFbnVtLkxvY2F0aW9uR3JvdXBSYWRpdXNVbml0", - "cxIWCg5mZWVkX2l0ZW1fc2V0cxgIIAMoCRI1CihlbmFibGVfY3VzdG9tZXJf", - "bGV2ZWxfbG9jYXRpb25fYXNzZXRfc2V0GAkgASgISAKIAQESIQoZbG9jYXRp", - "b25fZ3JvdXBfYXNzZXRfc2V0cxgKIAMoCUIHCgVfZmVlZEIJCgdfcmFkaXVz", - "QisKKV9lbmFibGVfY3VzdG9tZXJfbGV2ZWxfbG9jYXRpb25fYXNzZXRfc2V0", - "Ii0KEkN1c3RvbUF1ZGllbmNlSW5mbxIXCg9jdXN0b21fYXVkaWVuY2UYASAB", - "KAkiMQoUQ29tYmluZWRBdWRpZW5jZUluZm8SGQoRY29tYmluZWRfYXVkaWVu", - "Y2UYASABKAkiIAoMQXVkaWVuY2VJbmZvEhAKCGF1ZGllbmNlGAEgASgJImgK", - "EEtleXdvcmRUaGVtZUluZm8SIAoWa2V5d29yZF90aGVtZV9jb25zdGFudBgB", - "IAEoCUgAEiEKF2ZyZWVfZm9ybV9rZXl3b3JkX3RoZW1lGAIgASgJSABCDwoN", - "a2V5d29yZF90aGVtZULtAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb25CDUNyaXRlcmlhUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb247", - "Y29tbW9uogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkNvbW1v", - "bsoCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxDb21tb27qAiNHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OkNvbW1vbmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.GenderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ProductChannelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ProductConditionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordInfo), global::Google.Ads.GoogleAds.V12.Common.KeywordInfo.Parser, new[]{ "Text", "MatchType" }, new[]{ "Text" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PlacementInfo), global::Google.Ads.GoogleAds.V12.Common.PlacementInfo.Parser, new[]{ "Url" }, new[]{ "Url" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo), global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo.Parser, new[]{ "MobileAppCategoryConstant" }, new[]{ "MobileAppCategoryConstant" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo), global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo.Parser, new[]{ "AppId", "Name" }, new[]{ "AppId", "Name" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LocationInfo), global::Google.Ads.GoogleAds.V12.Common.LocationInfo.Parser, new[]{ "GeoTargetConstant" }, new[]{ "GeoTargetConstant" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DeviceInfo), global::Google.Ads.GoogleAds.V12.Common.DeviceInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo), global::Google.Ads.GoogleAds.V12.Common.PreferredContentInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo), global::Google.Ads.GoogleAds.V12.Common.ListingGroupInfo.Parser, new[]{ "Type", "CaseValue", "ParentAdGroupCriterion" }, new[]{ "ParentAdGroupCriterion" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo), global::Google.Ads.GoogleAds.V12.Common.ListingScopeInfo.Parser, new[]{ "Dimensions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo), global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo.Parser, new[]{ "HotelId", "HotelClass", "HotelCountryRegion", "HotelState", "HotelCity", "ProductBiddingCategory", "ProductBrand", "ProductChannel", "ProductChannelExclusivity", "ProductCondition", "ProductCustomAttribute", "ProductItemId", "ProductType", "ProductGrouping", "ProductLabels", "ProductLegacyCondition", "ProductTypeFull", "UnknownListingDimension" }, new[]{ "Dimension" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo), global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo), global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo), global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo.Parser, new[]{ "CountryRegionCriterion" }, new[]{ "CountryRegionCriterion" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo), global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo.Parser, new[]{ "StateCriterion" }, new[]{ "StateCriterion" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo), global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo.Parser, new[]{ "CityCriterion" }, new[]{ "CityCriterion" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo), global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo.Parser, new[]{ "Id", "CountryCode", "Level" }, new[]{ "Id", "CountryCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo), global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo), global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo.Parser, new[]{ "Channel" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo), global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo.Parser, new[]{ "ChannelExclusivity" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo), global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo.Parser, new[]{ "Condition" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo), global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo.Parser, new[]{ "Value", "Index" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo), global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo), global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo.Parser, new[]{ "Value", "Level" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo), global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo), global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo), global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo), global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo), global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo), global::Google.Ads.GoogleAds.V12.Common.HotelDateSelectionTypeInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo), global::Google.Ads.GoogleAds.V12.Common.HotelAdvanceBookingWindowInfo.Parser, new[]{ "MinDays", "MaxDays" }, new[]{ "MinDays", "MaxDays" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo), global::Google.Ads.GoogleAds.V12.Common.HotelLengthOfStayInfo.Parser, new[]{ "MinNights", "MaxNights" }, new[]{ "MinNights", "MaxNights" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo), global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDateRangeInfo.Parser, new[]{ "StartDate", "EndDate" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo), global::Google.Ads.GoogleAds.V12.Common.HotelCheckInDayInfo.Parser, new[]{ "DayOfWeek" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo), global::Google.Ads.GoogleAds.V12.Common.InteractionTypeInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo), global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo.Parser, new[]{ "StartMinute", "EndMinute", "StartHour", "EndHour", "DayOfWeek" }, new[]{ "StartHour", "EndHour" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo), global::Google.Ads.GoogleAds.V12.Common.AgeRangeInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.GenderInfo), global::Google.Ads.GoogleAds.V12.Common.GenderInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo), global::Google.Ads.GoogleAds.V12.Common.IncomeRangeInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo), global::Google.Ads.GoogleAds.V12.Common.ParentalStatusInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo), global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo.Parser, new[]{ "VideoId" }, new[]{ "VideoId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo), global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo.Parser, new[]{ "ChannelId" }, new[]{ "ChannelId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.UserListInfo), global::Google.Ads.GoogleAds.V12.Common.UserListInfo.Parser, new[]{ "UserList" }, new[]{ "UserList" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ProximityInfo), global::Google.Ads.GoogleAds.V12.Common.ProximityInfo.Parser, new[]{ "GeoPoint", "Radius", "RadiusUnits", "Address" }, new[]{ "Radius" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.GeoPointInfo), global::Google.Ads.GoogleAds.V12.Common.GeoPointInfo.Parser, new[]{ "LongitudeInMicroDegrees", "LatitudeInMicroDegrees" }, new[]{ "LongitudeInMicroDegrees", "LatitudeInMicroDegrees" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AddressInfo), global::Google.Ads.GoogleAds.V12.Common.AddressInfo.Parser, new[]{ "PostalCode", "ProvinceCode", "CountryCode", "ProvinceName", "StreetAddress", "StreetAddress2", "CityName" }, new[]{ "PostalCode", "ProvinceCode", "CountryCode", "ProvinceName", "StreetAddress", "StreetAddress2", "CityName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TopicInfo), global::Google.Ads.GoogleAds.V12.Common.TopicInfo.Parser, new[]{ "TopicConstant", "Path" }, new[]{ "TopicConstant" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LanguageInfo), global::Google.Ads.GoogleAds.V12.Common.LanguageInfo.Parser, new[]{ "LanguageConstant" }, new[]{ "LanguageConstant" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo), global::Google.Ads.GoogleAds.V12.Common.IpBlockInfo.Parser, new[]{ "IpAddress" }, new[]{ "IpAddress" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo), global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CarrierInfo), global::Google.Ads.GoogleAds.V12.Common.CarrierInfo.Parser, new[]{ "CarrierConstant" }, new[]{ "CarrierConstant" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo), global::Google.Ads.GoogleAds.V12.Common.UserInterestInfo.Parser, new[]{ "UserInterestCategory" }, new[]{ "UserInterestCategory" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.WebpageInfo), global::Google.Ads.GoogleAds.V12.Common.WebpageInfo.Parser, new[]{ "CriterionName", "Conditions", "CoveragePercentage", "Sample" }, new[]{ "CriterionName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.WebpageConditionInfo), global::Google.Ads.GoogleAds.V12.Common.WebpageConditionInfo.Parser, new[]{ "Operand", "Operator", "Argument" }, new[]{ "Argument" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.WebpageSampleInfo), global::Google.Ads.GoogleAds.V12.Common.WebpageSampleInfo.Parser, new[]{ "SampleUrls" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo), global::Google.Ads.GoogleAds.V12.Common.OperatingSystemVersionInfo.Parser, new[]{ "OperatingSystemVersionConstant" }, new[]{ "OperatingSystemVersionConstant" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo), global::Google.Ads.GoogleAds.V12.Common.AppPaymentModelInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo), global::Google.Ads.GoogleAds.V12.Common.MobileDeviceInfo.Parser, new[]{ "MobileDeviceConstant" }, new[]{ "MobileDeviceConstant" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo), global::Google.Ads.GoogleAds.V12.Common.CustomAffinityInfo.Parser, new[]{ "CustomAffinity" }, new[]{ "CustomAffinity" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo), global::Google.Ads.GoogleAds.V12.Common.CustomIntentInfo.Parser, new[]{ "CustomIntent" }, new[]{ "CustomIntent" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo), global::Google.Ads.GoogleAds.V12.Common.LocationGroupInfo.Parser, new[]{ "Feed", "GeoTargetConstants", "Radius", "RadiusUnits", "FeedItemSets", "EnableCustomerLevelLocationAssetSet", "LocationGroupAssetSets" }, new[]{ "Feed", "Radius", "EnableCustomerLevelLocationAssetSet" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo), global::Google.Ads.GoogleAds.V12.Common.CustomAudienceInfo.Parser, new[]{ "CustomAudience" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo), global::Google.Ads.GoogleAds.V12.Common.CombinedAudienceInfo.Parser, new[]{ "CombinedAudience" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AudienceInfo), global::Google.Ads.GoogleAds.V12.Common.AudienceInfo.Parser, new[]{ "Audience" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo), global::Google.Ads.GoogleAds.V12.Common.KeywordThemeInfo.Parser, new[]{ "KeywordThemeConstant", "FreeFormKeywordTheme" }, new[]{ "KeywordTheme" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A keyword criterion. - /// - public sealed partial class KeywordInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordInfo(KeywordInfo other) : this() { - text_ = other.text_; - matchType_ = other.matchType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordInfo Clone() { - return new KeywordInfo(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 3; - private string text_; - /// - /// The text of the keyword (at most 80 characters and 10 words). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "match_type" field. - public const int MatchTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType matchType_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified; - /// - /// The match type of the keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType MatchType { - get { return matchType_; } - set { - matchType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) return false; - if (MatchType != other.MatchType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasText) hash ^= Text.GetHashCode(); - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) hash ^= MatchType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) MatchType); - } - if (HasText) { - output.WriteRawTag(26); - output.WriteString(Text); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) MatchType); - } - if (HasText) { - output.WriteRawTag(26); - output.WriteString(Text); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MatchType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordInfo other) { - if (other == null) { - return; - } - if (other.HasText) { - Text = other.Text; - } - if (other.MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - MatchType = other.MatchType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - MatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 26: { - Text = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - MatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 26: { - Text = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A placement criterion. This can be used to modify bids for sites when - /// targeting the content network. - /// - public sealed partial class PlacementInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlacementInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlacementInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlacementInfo(PlacementInfo other) : this() { - url_ = other.url_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlacementInfo Clone() { - return new PlacementInfo(this); - } - - /// Field number for the "url" field. - public const int UrlFieldNumber = 2; - private string url_; - /// - /// URL of the placement. - /// - /// For example, "http://www.domain.com". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Url { - get { return url_ ?? ""; } - set { - url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUrl { - get { return url_ != null; } - } - /// Clears the value of the "url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUrl() { - url_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PlacementInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PlacementInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Url != other.Url) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUrl) hash ^= Url.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUrl) { - output.WriteRawTag(18); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUrl) { - output.WriteRawTag(18); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PlacementInfo other) { - if (other == null) { - return; - } - if (other.HasUrl) { - Url = other.Url; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Url = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Url = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A mobile app category criterion. - /// - public sealed partial class MobileAppCategoryInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MobileAppCategoryInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileAppCategoryInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileAppCategoryInfo(MobileAppCategoryInfo other) : this() { - mobileAppCategoryConstant_ = other.mobileAppCategoryConstant_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileAppCategoryInfo Clone() { - return new MobileAppCategoryInfo(this); - } - - /// Field number for the "mobile_app_category_constant" field. - public const int MobileAppCategoryConstantFieldNumber = 2; - private string mobileAppCategoryConstant_; - /// - /// The mobile app category constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MobileAppCategoryConstant { - get { return mobileAppCategoryConstant_ ?? ""; } - set { - mobileAppCategoryConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "mobile_app_category_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMobileAppCategoryConstant { - get { return mobileAppCategoryConstant_ != null; } - } - /// Clears the value of the "mobile_app_category_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMobileAppCategoryConstant() { - mobileAppCategoryConstant_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MobileAppCategoryInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MobileAppCategoryInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MobileAppCategoryConstant != other.MobileAppCategoryConstant) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMobileAppCategoryConstant) hash ^= MobileAppCategoryConstant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasMobileAppCategoryConstant) { - output.WriteRawTag(18); - output.WriteString(MobileAppCategoryConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasMobileAppCategoryConstant) { - output.WriteRawTag(18); - output.WriteString(MobileAppCategoryConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMobileAppCategoryConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MobileAppCategoryConstant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MobileAppCategoryInfo other) { - if (other == null) { - return; - } - if (other.HasMobileAppCategoryConstant) { - MobileAppCategoryConstant = other.MobileAppCategoryConstant; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - MobileAppCategoryConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - MobileAppCategoryConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A mobile application criterion. - /// - public sealed partial class MobileApplicationInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MobileApplicationInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileApplicationInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileApplicationInfo(MobileApplicationInfo other) : this() { - appId_ = other.appId_; - name_ = other.name_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileApplicationInfo Clone() { - return new MobileApplicationInfo(this); - } - - /// Field number for the "app_id" field. - public const int AppIdFieldNumber = 4; - private string appId_; - /// - /// A string that uniquely identifies a mobile application to Google Ads API. - /// The format of this string is "{platform}-{platform_native_id}", where - /// platform is "1" for iOS apps and "2" for Android apps, and where - /// platform_native_id is the mobile application identifier native to the - /// corresponding platform. - /// For iOS, this native identifier is the 9 digit string that appears at the - /// end of an App Store URL (for example, "476943146" for "Flood-It! 2" whose - /// App Store link is - /// "http://itunes.apple.com/us/app/flood-it!-2/id476943146"). For Android, - /// this native identifier is the application's package name (for example, - /// "com.labpixies.colordrips" for "Color Drips" given Google Play link - /// "https://play.google.com/store/apps/details?id=com.labpixies.colordrips"). - /// A well formed app id for Google Ads API would thus be "1-476943146" for iOS - /// and "2-com.labpixies.colordrips" for Android. - /// This field is required and must be set in CREATE operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppId { - get { return appId_ ?? ""; } - set { - appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "app_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppId { - get { return appId_ != null; } - } - /// Clears the value of the "app_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppId() { - appId_ = null; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 5; - private string name_; - /// - /// Name of this mobile application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MobileApplicationInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MobileApplicationInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AppId != other.AppId) return false; - if (Name != other.Name) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAppId) hash ^= AppId.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasAppId) { - output.WriteRawTag(34); - output.WriteString(AppId); - } - if (HasName) { - output.WriteRawTag(42); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasAppId) { - output.WriteRawTag(34); - output.WriteString(AppId); - } - if (HasName) { - output.WriteRawTag(42); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAppId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MobileApplicationInfo other) { - if (other == null) { - return; - } - if (other.HasAppId) { - AppId = other.AppId; - } - if (other.HasName) { - Name = other.Name; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 34: { - AppId = input.ReadString(); - break; - } - case 42: { - Name = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - AppId = input.ReadString(); - break; - } - case 42: { - Name = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A location criterion. - /// - public sealed partial class LocationInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationInfo(LocationInfo other) : this() { - geoTargetConstant_ = other.geoTargetConstant_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationInfo Clone() { - return new LocationInfo(this); - } - - /// Field number for the "geo_target_constant" field. - public const int GeoTargetConstantFieldNumber = 2; - private string geoTargetConstant_; - /// - /// The geo target constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GeoTargetConstant { - get { return geoTargetConstant_ ?? ""; } - set { - geoTargetConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "geo_target_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGeoTargetConstant { - get { return geoTargetConstant_ != null; } - } - /// Clears the value of the "geo_target_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGeoTargetConstant() { - geoTargetConstant_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GeoTargetConstant != other.GeoTargetConstant) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasGeoTargetConstant) hash ^= GeoTargetConstant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasGeoTargetConstant) { - output.WriteRawTag(18); - output.WriteString(GeoTargetConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasGeoTargetConstant) { - output.WriteRawTag(18); - output.WriteString(GeoTargetConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasGeoTargetConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GeoTargetConstant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationInfo other) { - if (other == null) { - return; - } - if (other.HasGeoTargetConstant) { - GeoTargetConstant = other.GeoTargetConstant; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - GeoTargetConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - GeoTargetConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A device criterion. - /// - public sealed partial class DeviceInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceInfo(DeviceInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceInfo Clone() { - return new DeviceInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device type_ = global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified; - /// - /// Type of the device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A preferred content criterion. - /// - public sealed partial class PreferredContentInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PreferredContentInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PreferredContentInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PreferredContentInfo(PreferredContentInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PreferredContentInfo Clone() { - return new PreferredContentInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType type_ = global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType.Unspecified; - /// - /// Type of the preferred content. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PreferredContentInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PreferredContentInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PreferredContentInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.PreferredContentTypeEnum.Types.PreferredContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A listing group criterion. - /// - public sealed partial class ListingGroupInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListingGroupInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingGroupInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingGroupInfo(ListingGroupInfo other) : this() { - type_ = other.type_; - caseValue_ = other.caseValue_ != null ? other.caseValue_.Clone() : null; - parentAdGroupCriterion_ = other.parentAdGroupCriterion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingGroupInfo Clone() { - return new ListingGroupInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType type_ = global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType.Unspecified; - /// - /// Type of the listing group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "case_value" field. - public const int CaseValueFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo caseValue_; - /// - /// Dimension value with which this listing group is refining its parent. - /// Undefined for the root group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo CaseValue { - get { return caseValue_; } - set { - caseValue_ = value; - } - } - - /// Field number for the "parent_ad_group_criterion" field. - public const int ParentAdGroupCriterionFieldNumber = 4; - private string parentAdGroupCriterion_; - /// - /// Resource name of ad group criterion which is the parent listing group - /// subdivision. Null for the root group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParentAdGroupCriterion { - get { return parentAdGroupCriterion_ ?? ""; } - set { - parentAdGroupCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "parent_ad_group_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasParentAdGroupCriterion { - get { return parentAdGroupCriterion_ != null; } - } - /// Clears the value of the "parent_ad_group_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParentAdGroupCriterion() { - parentAdGroupCriterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListingGroupInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListingGroupInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (!object.Equals(CaseValue, other.CaseValue)) return false; - if (ParentAdGroupCriterion != other.ParentAdGroupCriterion) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType.Unspecified) hash ^= Type.GetHashCode(); - if (caseValue_ != null) hash ^= CaseValue.GetHashCode(); - if (HasParentAdGroupCriterion) hash ^= ParentAdGroupCriterion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (caseValue_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CaseValue); - } - if (HasParentAdGroupCriterion) { - output.WriteRawTag(34); - output.WriteString(ParentAdGroupCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (caseValue_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CaseValue); - } - if (HasParentAdGroupCriterion) { - output.WriteRawTag(34); - output.WriteString(ParentAdGroupCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (caseValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaseValue); - } - if (HasParentAdGroupCriterion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentAdGroupCriterion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListingGroupInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType.Unspecified) { - Type = other.Type; - } - if (other.caseValue_ != null) { - if (caseValue_ == null) { - CaseValue = new global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo(); - } - CaseValue.MergeFrom(other.CaseValue); - } - if (other.HasParentAdGroupCriterion) { - ParentAdGroupCriterion = other.ParentAdGroupCriterion; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType) input.ReadEnum(); - break; - } - case 18: { - if (caseValue_ == null) { - CaseValue = new global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo(); - } - input.ReadMessage(CaseValue); - break; - } - case 34: { - ParentAdGroupCriterion = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ListingGroupTypeEnum.Types.ListingGroupType) input.ReadEnum(); - break; - } - case 18: { - if (caseValue_ == null) { - CaseValue = new global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo(); - } - input.ReadMessage(CaseValue); - break; - } - case 34: { - ParentAdGroupCriterion = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A listing scope criterion. - /// - public sealed partial class ListingScopeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListingScopeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingScopeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingScopeInfo(ListingScopeInfo other) : this() { - dimensions_ = other.dimensions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingScopeInfo Clone() { - return new ListingScopeInfo(this); - } - - /// Field number for the "dimensions" field. - public const int DimensionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_dimensions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.ListingDimensionInfo.Parser); - private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); - /// - /// Scope of the campaign criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Dimensions { - get { return dimensions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListingScopeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListingScopeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!dimensions_.Equals(other.dimensions_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= dimensions_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - dimensions_.WriteTo(output, _repeated_dimensions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - dimensions_.WriteTo(ref output, _repeated_dimensions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += dimensions_.CalculateSize(_repeated_dimensions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListingScopeInfo other) { - if (other == null) { - return; - } - dimensions_.Add(other.dimensions_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Listing dimensions for listing group criterion. - /// - public sealed partial class ListingDimensionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListingDimensionInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingDimensionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingDimensionInfo(ListingDimensionInfo other) : this() { - switch (other.DimensionCase) { - case DimensionOneofCase.HotelId: - HotelId = other.HotelId.Clone(); - break; - case DimensionOneofCase.HotelClass: - HotelClass = other.HotelClass.Clone(); - break; - case DimensionOneofCase.HotelCountryRegion: - HotelCountryRegion = other.HotelCountryRegion.Clone(); - break; - case DimensionOneofCase.HotelState: - HotelState = other.HotelState.Clone(); - break; - case DimensionOneofCase.HotelCity: - HotelCity = other.HotelCity.Clone(); - break; - case DimensionOneofCase.ProductBiddingCategory: - ProductBiddingCategory = other.ProductBiddingCategory.Clone(); - break; - case DimensionOneofCase.ProductBrand: - ProductBrand = other.ProductBrand.Clone(); - break; - case DimensionOneofCase.ProductChannel: - ProductChannel = other.ProductChannel.Clone(); - break; - case DimensionOneofCase.ProductChannelExclusivity: - ProductChannelExclusivity = other.ProductChannelExclusivity.Clone(); - break; - case DimensionOneofCase.ProductCondition: - ProductCondition = other.ProductCondition.Clone(); - break; - case DimensionOneofCase.ProductCustomAttribute: - ProductCustomAttribute = other.ProductCustomAttribute.Clone(); - break; - case DimensionOneofCase.ProductItemId: - ProductItemId = other.ProductItemId.Clone(); - break; - case DimensionOneofCase.ProductType: - ProductType = other.ProductType.Clone(); - break; - case DimensionOneofCase.ProductGrouping: - ProductGrouping = other.ProductGrouping.Clone(); - break; - case DimensionOneofCase.ProductLabels: - ProductLabels = other.ProductLabels.Clone(); - break; - case DimensionOneofCase.ProductLegacyCondition: - ProductLegacyCondition = other.ProductLegacyCondition.Clone(); - break; - case DimensionOneofCase.ProductTypeFull: - ProductTypeFull = other.ProductTypeFull.Clone(); - break; - case DimensionOneofCase.UnknownListingDimension: - UnknownListingDimension = other.UnknownListingDimension.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListingDimensionInfo Clone() { - return new ListingDimensionInfo(this); - } - - /// Field number for the "hotel_id" field. - public const int HotelIdFieldNumber = 2; - /// - /// Advertiser-specific hotel ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo HotelId { - get { return dimensionCase_ == DimensionOneofCase.HotelId ? (global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.HotelId; - } - } - - /// Field number for the "hotel_class" field. - public const int HotelClassFieldNumber = 3; - /// - /// Class of the hotel as a number of stars 1 to 5. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo HotelClass { - get { return dimensionCase_ == DimensionOneofCase.HotelClass ? (global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.HotelClass; - } - } - - /// Field number for the "hotel_country_region" field. - public const int HotelCountryRegionFieldNumber = 4; - /// - /// Country or Region the hotel is located in. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo HotelCountryRegion { - get { return dimensionCase_ == DimensionOneofCase.HotelCountryRegion ? (global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.HotelCountryRegion; - } - } - - /// Field number for the "hotel_state" field. - public const int HotelStateFieldNumber = 5; - /// - /// State the hotel is located in. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo HotelState { - get { return dimensionCase_ == DimensionOneofCase.HotelState ? (global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.HotelState; - } - } - - /// Field number for the "hotel_city" field. - public const int HotelCityFieldNumber = 6; - /// - /// City the hotel is located in. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo HotelCity { - get { return dimensionCase_ == DimensionOneofCase.HotelCity ? (global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.HotelCity; - } - } - - /// Field number for the "product_bidding_category" field. - public const int ProductBiddingCategoryFieldNumber = 13; - /// - /// Bidding category of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo ProductBiddingCategory { - get { return dimensionCase_ == DimensionOneofCase.ProductBiddingCategory ? (global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductBiddingCategory; - } - } - - /// Field number for the "product_brand" field. - public const int ProductBrandFieldNumber = 15; - /// - /// Brand of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo ProductBrand { - get { return dimensionCase_ == DimensionOneofCase.ProductBrand ? (global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductBrand; - } - } - - /// Field number for the "product_channel" field. - public const int ProductChannelFieldNumber = 8; - /// - /// Locality of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo ProductChannel { - get { return dimensionCase_ == DimensionOneofCase.ProductChannel ? (global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductChannel; - } - } - - /// Field number for the "product_channel_exclusivity" field. - public const int ProductChannelExclusivityFieldNumber = 9; - /// - /// Availability of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo ProductChannelExclusivity { - get { return dimensionCase_ == DimensionOneofCase.ProductChannelExclusivity ? (global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductChannelExclusivity; - } - } - - /// Field number for the "product_condition" field. - public const int ProductConditionFieldNumber = 10; - /// - /// Condition of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo ProductCondition { - get { return dimensionCase_ == DimensionOneofCase.ProductCondition ? (global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductCondition; - } - } - - /// Field number for the "product_custom_attribute" field. - public const int ProductCustomAttributeFieldNumber = 16; - /// - /// Custom attribute of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo ProductCustomAttribute { - get { return dimensionCase_ == DimensionOneofCase.ProductCustomAttribute ? (global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductCustomAttribute; - } - } - - /// Field number for the "product_item_id" field. - public const int ProductItemIdFieldNumber = 11; - /// - /// Item id of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo ProductItemId { - get { return dimensionCase_ == DimensionOneofCase.ProductItemId ? (global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductItemId; - } - } - - /// Field number for the "product_type" field. - public const int ProductTypeFieldNumber = 12; - /// - /// Type of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo ProductType { - get { return dimensionCase_ == DimensionOneofCase.ProductType ? (global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductType; - } - } - - /// Field number for the "product_grouping" field. - public const int ProductGroupingFieldNumber = 17; - /// - /// Grouping of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo ProductGrouping { - get { return dimensionCase_ == DimensionOneofCase.ProductGrouping ? (global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductGrouping; - } - } - - /// Field number for the "product_labels" field. - public const int ProductLabelsFieldNumber = 18; - /// - /// Labels of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo ProductLabels { - get { return dimensionCase_ == DimensionOneofCase.ProductLabels ? (global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductLabels; - } - } - - /// Field number for the "product_legacy_condition" field. - public const int ProductLegacyConditionFieldNumber = 19; - /// - /// Legacy condition of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo ProductLegacyCondition { - get { return dimensionCase_ == DimensionOneofCase.ProductLegacyCondition ? (global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductLegacyCondition; - } - } - - /// Field number for the "product_type_full" field. - public const int ProductTypeFullFieldNumber = 20; - /// - /// Full type of a product offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo ProductTypeFull { - get { return dimensionCase_ == DimensionOneofCase.ProductTypeFull ? (global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.ProductTypeFull; - } - } - - /// Field number for the "unknown_listing_dimension" field. - public const int UnknownListingDimensionFieldNumber = 14; - /// - /// Unknown dimension. Set when no other listing dimension is set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo UnknownListingDimension { - get { return dimensionCase_ == DimensionOneofCase.UnknownListingDimension ? (global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo) dimension_ : null; } - set { - dimension_ = value; - dimensionCase_ = value == null ? DimensionOneofCase.None : DimensionOneofCase.UnknownListingDimension; - } - } - - private object dimension_; - /// Enum of possible cases for the "dimension" oneof. - public enum DimensionOneofCase { - None = 0, - HotelId = 2, - HotelClass = 3, - HotelCountryRegion = 4, - HotelState = 5, - HotelCity = 6, - ProductBiddingCategory = 13, - ProductBrand = 15, - ProductChannel = 8, - ProductChannelExclusivity = 9, - ProductCondition = 10, - ProductCustomAttribute = 16, - ProductItemId = 11, - ProductType = 12, - ProductGrouping = 17, - ProductLabels = 18, - ProductLegacyCondition = 19, - ProductTypeFull = 20, - UnknownListingDimension = 14, - } - private DimensionOneofCase dimensionCase_ = DimensionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DimensionOneofCase DimensionCase { - get { return dimensionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDimension() { - dimensionCase_ = DimensionOneofCase.None; - dimension_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListingDimensionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListingDimensionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(HotelId, other.HotelId)) return false; - if (!object.Equals(HotelClass, other.HotelClass)) return false; - if (!object.Equals(HotelCountryRegion, other.HotelCountryRegion)) return false; - if (!object.Equals(HotelState, other.HotelState)) return false; - if (!object.Equals(HotelCity, other.HotelCity)) return false; - if (!object.Equals(ProductBiddingCategory, other.ProductBiddingCategory)) return false; - if (!object.Equals(ProductBrand, other.ProductBrand)) return false; - if (!object.Equals(ProductChannel, other.ProductChannel)) return false; - if (!object.Equals(ProductChannelExclusivity, other.ProductChannelExclusivity)) return false; - if (!object.Equals(ProductCondition, other.ProductCondition)) return false; - if (!object.Equals(ProductCustomAttribute, other.ProductCustomAttribute)) return false; - if (!object.Equals(ProductItemId, other.ProductItemId)) return false; - if (!object.Equals(ProductType, other.ProductType)) return false; - if (!object.Equals(ProductGrouping, other.ProductGrouping)) return false; - if (!object.Equals(ProductLabels, other.ProductLabels)) return false; - if (!object.Equals(ProductLegacyCondition, other.ProductLegacyCondition)) return false; - if (!object.Equals(ProductTypeFull, other.ProductTypeFull)) return false; - if (!object.Equals(UnknownListingDimension, other.UnknownListingDimension)) return false; - if (DimensionCase != other.DimensionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (dimensionCase_ == DimensionOneofCase.HotelId) hash ^= HotelId.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.HotelClass) hash ^= HotelClass.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.HotelCountryRegion) hash ^= HotelCountryRegion.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.HotelState) hash ^= HotelState.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.HotelCity) hash ^= HotelCity.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) hash ^= ProductBiddingCategory.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductBrand) hash ^= ProductBrand.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductChannel) hash ^= ProductChannel.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductChannelExclusivity) hash ^= ProductChannelExclusivity.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductCondition) hash ^= ProductCondition.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) hash ^= ProductCustomAttribute.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductItemId) hash ^= ProductItemId.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductType) hash ^= ProductType.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductGrouping) hash ^= ProductGrouping.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductLabels) hash ^= ProductLabels.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductLegacyCondition) hash ^= ProductLegacyCondition.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.ProductTypeFull) hash ^= ProductTypeFull.GetHashCode(); - if (dimensionCase_ == DimensionOneofCase.UnknownListingDimension) hash ^= UnknownListingDimension.GetHashCode(); - hash ^= (int) dimensionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (dimensionCase_ == DimensionOneofCase.HotelId) { - output.WriteRawTag(18); - output.WriteMessage(HotelId); - } - if (dimensionCase_ == DimensionOneofCase.HotelClass) { - output.WriteRawTag(26); - output.WriteMessage(HotelClass); - } - if (dimensionCase_ == DimensionOneofCase.HotelCountryRegion) { - output.WriteRawTag(34); - output.WriteMessage(HotelCountryRegion); - } - if (dimensionCase_ == DimensionOneofCase.HotelState) { - output.WriteRawTag(42); - output.WriteMessage(HotelState); - } - if (dimensionCase_ == DimensionOneofCase.HotelCity) { - output.WriteRawTag(50); - output.WriteMessage(HotelCity); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - output.WriteRawTag(66); - output.WriteMessage(ProductChannel); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannelExclusivity) { - output.WriteRawTag(74); - output.WriteMessage(ProductChannelExclusivity); - } - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - output.WriteRawTag(82); - output.WriteMessage(ProductCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - output.WriteRawTag(90); - output.WriteMessage(ProductItemId); - } - if (dimensionCase_ == DimensionOneofCase.ProductType) { - output.WriteRawTag(98); - output.WriteMessage(ProductType); - } - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - output.WriteRawTag(106); - output.WriteMessage(ProductBiddingCategory); - } - if (dimensionCase_ == DimensionOneofCase.UnknownListingDimension) { - output.WriteRawTag(114); - output.WriteMessage(UnknownListingDimension); - } - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - output.WriteRawTag(122); - output.WriteMessage(ProductBrand); - } - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - output.WriteRawTag(130, 1); - output.WriteMessage(ProductCustomAttribute); - } - if (dimensionCase_ == DimensionOneofCase.ProductGrouping) { - output.WriteRawTag(138, 1); - output.WriteMessage(ProductGrouping); - } - if (dimensionCase_ == DimensionOneofCase.ProductLabels) { - output.WriteRawTag(146, 1); - output.WriteMessage(ProductLabels); - } - if (dimensionCase_ == DimensionOneofCase.ProductLegacyCondition) { - output.WriteRawTag(154, 1); - output.WriteMessage(ProductLegacyCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductTypeFull) { - output.WriteRawTag(162, 1); - output.WriteMessage(ProductTypeFull); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (dimensionCase_ == DimensionOneofCase.HotelId) { - output.WriteRawTag(18); - output.WriteMessage(HotelId); - } - if (dimensionCase_ == DimensionOneofCase.HotelClass) { - output.WriteRawTag(26); - output.WriteMessage(HotelClass); - } - if (dimensionCase_ == DimensionOneofCase.HotelCountryRegion) { - output.WriteRawTag(34); - output.WriteMessage(HotelCountryRegion); - } - if (dimensionCase_ == DimensionOneofCase.HotelState) { - output.WriteRawTag(42); - output.WriteMessage(HotelState); - } - if (dimensionCase_ == DimensionOneofCase.HotelCity) { - output.WriteRawTag(50); - output.WriteMessage(HotelCity); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - output.WriteRawTag(66); - output.WriteMessage(ProductChannel); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannelExclusivity) { - output.WriteRawTag(74); - output.WriteMessage(ProductChannelExclusivity); - } - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - output.WriteRawTag(82); - output.WriteMessage(ProductCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - output.WriteRawTag(90); - output.WriteMessage(ProductItemId); - } - if (dimensionCase_ == DimensionOneofCase.ProductType) { - output.WriteRawTag(98); - output.WriteMessage(ProductType); - } - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - output.WriteRawTag(106); - output.WriteMessage(ProductBiddingCategory); - } - if (dimensionCase_ == DimensionOneofCase.UnknownListingDimension) { - output.WriteRawTag(114); - output.WriteMessage(UnknownListingDimension); - } - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - output.WriteRawTag(122); - output.WriteMessage(ProductBrand); - } - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - output.WriteRawTag(130, 1); - output.WriteMessage(ProductCustomAttribute); - } - if (dimensionCase_ == DimensionOneofCase.ProductGrouping) { - output.WriteRawTag(138, 1); - output.WriteMessage(ProductGrouping); - } - if (dimensionCase_ == DimensionOneofCase.ProductLabels) { - output.WriteRawTag(146, 1); - output.WriteMessage(ProductLabels); - } - if (dimensionCase_ == DimensionOneofCase.ProductLegacyCondition) { - output.WriteRawTag(154, 1); - output.WriteMessage(ProductLegacyCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductTypeFull) { - output.WriteRawTag(162, 1); - output.WriteMessage(ProductTypeFull); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (dimensionCase_ == DimensionOneofCase.HotelId) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelId); - } - if (dimensionCase_ == DimensionOneofCase.HotelClass) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelClass); - } - if (dimensionCase_ == DimensionOneofCase.HotelCountryRegion) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelCountryRegion); - } - if (dimensionCase_ == DimensionOneofCase.HotelState) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelState); - } - if (dimensionCase_ == DimensionOneofCase.HotelCity) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HotelCity); - } - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductBiddingCategory); - } - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductBrand); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductChannel); - } - if (dimensionCase_ == DimensionOneofCase.ProductChannelExclusivity) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductChannelExclusivity); - } - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ProductCustomAttribute); - } - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductItemId); - } - if (dimensionCase_ == DimensionOneofCase.ProductType) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProductType); - } - if (dimensionCase_ == DimensionOneofCase.ProductGrouping) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ProductGrouping); - } - if (dimensionCase_ == DimensionOneofCase.ProductLabels) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ProductLabels); - } - if (dimensionCase_ == DimensionOneofCase.ProductLegacyCondition) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ProductLegacyCondition); - } - if (dimensionCase_ == DimensionOneofCase.ProductTypeFull) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ProductTypeFull); - } - if (dimensionCase_ == DimensionOneofCase.UnknownListingDimension) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UnknownListingDimension); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListingDimensionInfo other) { - if (other == null) { - return; - } - switch (other.DimensionCase) { - case DimensionOneofCase.HotelId: - if (HotelId == null) { - HotelId = new global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo(); - } - HotelId.MergeFrom(other.HotelId); - break; - case DimensionOneofCase.HotelClass: - if (HotelClass == null) { - HotelClass = new global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo(); - } - HotelClass.MergeFrom(other.HotelClass); - break; - case DimensionOneofCase.HotelCountryRegion: - if (HotelCountryRegion == null) { - HotelCountryRegion = new global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo(); - } - HotelCountryRegion.MergeFrom(other.HotelCountryRegion); - break; - case DimensionOneofCase.HotelState: - if (HotelState == null) { - HotelState = new global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo(); - } - HotelState.MergeFrom(other.HotelState); - break; - case DimensionOneofCase.HotelCity: - if (HotelCity == null) { - HotelCity = new global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo(); - } - HotelCity.MergeFrom(other.HotelCity); - break; - case DimensionOneofCase.ProductBiddingCategory: - if (ProductBiddingCategory == null) { - ProductBiddingCategory = new global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo(); - } - ProductBiddingCategory.MergeFrom(other.ProductBiddingCategory); - break; - case DimensionOneofCase.ProductBrand: - if (ProductBrand == null) { - ProductBrand = new global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo(); - } - ProductBrand.MergeFrom(other.ProductBrand); - break; - case DimensionOneofCase.ProductChannel: - if (ProductChannel == null) { - ProductChannel = new global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo(); - } - ProductChannel.MergeFrom(other.ProductChannel); - break; - case DimensionOneofCase.ProductChannelExclusivity: - if (ProductChannelExclusivity == null) { - ProductChannelExclusivity = new global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo(); - } - ProductChannelExclusivity.MergeFrom(other.ProductChannelExclusivity); - break; - case DimensionOneofCase.ProductCondition: - if (ProductCondition == null) { - ProductCondition = new global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo(); - } - ProductCondition.MergeFrom(other.ProductCondition); - break; - case DimensionOneofCase.ProductCustomAttribute: - if (ProductCustomAttribute == null) { - ProductCustomAttribute = new global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo(); - } - ProductCustomAttribute.MergeFrom(other.ProductCustomAttribute); - break; - case DimensionOneofCase.ProductItemId: - if (ProductItemId == null) { - ProductItemId = new global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo(); - } - ProductItemId.MergeFrom(other.ProductItemId); - break; - case DimensionOneofCase.ProductType: - if (ProductType == null) { - ProductType = new global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo(); - } - ProductType.MergeFrom(other.ProductType); - break; - case DimensionOneofCase.ProductGrouping: - if (ProductGrouping == null) { - ProductGrouping = new global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo(); - } - ProductGrouping.MergeFrom(other.ProductGrouping); - break; - case DimensionOneofCase.ProductLabels: - if (ProductLabels == null) { - ProductLabels = new global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo(); - } - ProductLabels.MergeFrom(other.ProductLabels); - break; - case DimensionOneofCase.ProductLegacyCondition: - if (ProductLegacyCondition == null) { - ProductLegacyCondition = new global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo(); - } - ProductLegacyCondition.MergeFrom(other.ProductLegacyCondition); - break; - case DimensionOneofCase.ProductTypeFull: - if (ProductTypeFull == null) { - ProductTypeFull = new global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo(); - } - ProductTypeFull.MergeFrom(other.ProductTypeFull); - break; - case DimensionOneofCase.UnknownListingDimension: - if (UnknownListingDimension == null) { - UnknownListingDimension = new global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo(); - } - UnknownListingDimension.MergeFrom(other.UnknownListingDimension); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelId) { - subBuilder.MergeFrom(HotelId); - } - input.ReadMessage(subBuilder); - HotelId = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelClass) { - subBuilder.MergeFrom(HotelClass); - } - input.ReadMessage(subBuilder); - HotelClass = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelCountryRegion) { - subBuilder.MergeFrom(HotelCountryRegion); - } - input.ReadMessage(subBuilder); - HotelCountryRegion = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelState) { - subBuilder.MergeFrom(HotelState); - } - input.ReadMessage(subBuilder); - HotelState = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelCity) { - subBuilder.MergeFrom(HotelCity); - } - input.ReadMessage(subBuilder); - HotelCity = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - subBuilder.MergeFrom(ProductChannel); - } - input.ReadMessage(subBuilder); - ProductChannel = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductChannelExclusivity) { - subBuilder.MergeFrom(ProductChannelExclusivity); - } - input.ReadMessage(subBuilder); - ProductChannelExclusivity = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - subBuilder.MergeFrom(ProductCondition); - } - input.ReadMessage(subBuilder); - ProductCondition = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - subBuilder.MergeFrom(ProductItemId); - } - input.ReadMessage(subBuilder); - ProductItemId = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductType) { - subBuilder.MergeFrom(ProductType); - } - input.ReadMessage(subBuilder); - ProductType = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - subBuilder.MergeFrom(ProductBiddingCategory); - } - input.ReadMessage(subBuilder); - ProductBiddingCategory = subBuilder; - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo(); - if (dimensionCase_ == DimensionOneofCase.UnknownListingDimension) { - subBuilder.MergeFrom(UnknownListingDimension); - } - input.ReadMessage(subBuilder); - UnknownListingDimension = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - subBuilder.MergeFrom(ProductBrand); - } - input.ReadMessage(subBuilder); - ProductBrand = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - subBuilder.MergeFrom(ProductCustomAttribute); - } - input.ReadMessage(subBuilder); - ProductCustomAttribute = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductGrouping) { - subBuilder.MergeFrom(ProductGrouping); - } - input.ReadMessage(subBuilder); - ProductGrouping = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductLabels) { - subBuilder.MergeFrom(ProductLabels); - } - input.ReadMessage(subBuilder); - ProductLabels = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductLegacyCondition) { - subBuilder.MergeFrom(ProductLegacyCondition); - } - input.ReadMessage(subBuilder); - ProductLegacyCondition = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductTypeFull) { - subBuilder.MergeFrom(ProductTypeFull); - } - input.ReadMessage(subBuilder); - ProductTypeFull = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelIdInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelId) { - subBuilder.MergeFrom(HotelId); - } - input.ReadMessage(subBuilder); - HotelId = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelClassInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelClass) { - subBuilder.MergeFrom(HotelClass); - } - input.ReadMessage(subBuilder); - HotelClass = subBuilder; - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCountryRegionInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelCountryRegion) { - subBuilder.MergeFrom(HotelCountryRegion); - } - input.ReadMessage(subBuilder); - HotelCountryRegion = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelStateInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelState) { - subBuilder.MergeFrom(HotelState); - } - input.ReadMessage(subBuilder); - HotelState = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCityInfo(); - if (dimensionCase_ == DimensionOneofCase.HotelCity) { - subBuilder.MergeFrom(HotelCity); - } - input.ReadMessage(subBuilder); - HotelCity = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductChannelInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductChannel) { - subBuilder.MergeFrom(ProductChannel); - } - input.ReadMessage(subBuilder); - ProductChannel = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductChannelExclusivityInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductChannelExclusivity) { - subBuilder.MergeFrom(ProductChannelExclusivity); - } - input.ReadMessage(subBuilder); - ProductChannelExclusivity = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductConditionInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductCondition) { - subBuilder.MergeFrom(ProductCondition); - } - input.ReadMessage(subBuilder); - ProductCondition = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductItemIdInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductItemId) { - subBuilder.MergeFrom(ProductItemId); - } - input.ReadMessage(subBuilder); - ProductItemId = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductTypeInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductType) { - subBuilder.MergeFrom(ProductType); - } - input.ReadMessage(subBuilder); - ProductType = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductBiddingCategoryInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductBiddingCategory) { - subBuilder.MergeFrom(ProductBiddingCategory); - } - input.ReadMessage(subBuilder); - ProductBiddingCategory = subBuilder; - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.UnknownListingDimensionInfo(); - if (dimensionCase_ == DimensionOneofCase.UnknownListingDimension) { - subBuilder.MergeFrom(UnknownListingDimension); - } - input.ReadMessage(subBuilder); - UnknownListingDimension = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductBrandInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductBrand) { - subBuilder.MergeFrom(ProductBrand); - } - input.ReadMessage(subBuilder); - ProductBrand = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductCustomAttributeInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductCustomAttribute) { - subBuilder.MergeFrom(ProductCustomAttribute); - } - input.ReadMessage(subBuilder); - ProductCustomAttribute = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductGroupingInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductGrouping) { - subBuilder.MergeFrom(ProductGrouping); - } - input.ReadMessage(subBuilder); - ProductGrouping = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductLabelsInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductLabels) { - subBuilder.MergeFrom(ProductLabels); - } - input.ReadMessage(subBuilder); - ProductLabels = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductLegacyConditionInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductLegacyCondition) { - subBuilder.MergeFrom(ProductLegacyCondition); - } - input.ReadMessage(subBuilder); - ProductLegacyCondition = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ProductTypeFullInfo(); - if (dimensionCase_ == DimensionOneofCase.ProductTypeFull) { - subBuilder.MergeFrom(ProductTypeFull); - } - input.ReadMessage(subBuilder); - ProductTypeFull = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Advertiser-specific hotel ID. - /// - public sealed partial class HotelIdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelIdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelIdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelIdInfo(HotelIdInfo other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelIdInfo Clone() { - return new HotelIdInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_; - /// - /// String value of the hotel ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelIdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelIdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelIdInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Class of the hotel as a number of stars 1 to 5. - /// - public sealed partial class HotelClassInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelClassInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelClassInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelClassInfo(HotelClassInfo other) : this() { - _hasBits0 = other._hasBits0; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelClassInfo Clone() { - return new HotelClassInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private long value_; - /// - /// Long value of the hotel class. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Value { - get { if ((_hasBits0 & 1) != 0) { return value_; } else { return 0L; } } - set { - _hasBits0 |= 1; - value_ = value; - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelClassInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelClassInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(16); - output.WriteInt64(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(16); - output.WriteInt64(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelClassInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - Value = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - Value = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Country or Region the hotel is located in. - /// - public sealed partial class HotelCountryRegionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelCountryRegionInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCountryRegionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCountryRegionInfo(HotelCountryRegionInfo other) : this() { - countryRegionCriterion_ = other.countryRegionCriterion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCountryRegionInfo Clone() { - return new HotelCountryRegionInfo(this); - } - - /// Field number for the "country_region_criterion" field. - public const int CountryRegionCriterionFieldNumber = 2; - private string countryRegionCriterion_; - /// - /// The Geo Target Constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryRegionCriterion { - get { return countryRegionCriterion_ ?? ""; } - set { - countryRegionCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_region_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryRegionCriterion { - get { return countryRegionCriterion_ != null; } - } - /// Clears the value of the "country_region_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryRegionCriterion() { - countryRegionCriterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelCountryRegionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelCountryRegionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CountryRegionCriterion != other.CountryRegionCriterion) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCountryRegionCriterion) hash ^= CountryRegionCriterion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCountryRegionCriterion) { - output.WriteRawTag(18); - output.WriteString(CountryRegionCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCountryRegionCriterion) { - output.WriteRawTag(18); - output.WriteString(CountryRegionCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCountryRegionCriterion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryRegionCriterion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelCountryRegionInfo other) { - if (other == null) { - return; - } - if (other.HasCountryRegionCriterion) { - CountryRegionCriterion = other.CountryRegionCriterion; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - CountryRegionCriterion = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - CountryRegionCriterion = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// State the hotel is located in. - /// - public sealed partial class HotelStateInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelStateInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelStateInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelStateInfo(HotelStateInfo other) : this() { - stateCriterion_ = other.stateCriterion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelStateInfo Clone() { - return new HotelStateInfo(this); - } - - /// Field number for the "state_criterion" field. - public const int StateCriterionFieldNumber = 2; - private string stateCriterion_; - /// - /// The Geo Target Constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StateCriterion { - get { return stateCriterion_ ?? ""; } - set { - stateCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "state_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStateCriterion { - get { return stateCriterion_ != null; } - } - /// Clears the value of the "state_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStateCriterion() { - stateCriterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelStateInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelStateInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StateCriterion != other.StateCriterion) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasStateCriterion) hash ^= StateCriterion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasStateCriterion) { - output.WriteRawTag(18); - output.WriteString(StateCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasStateCriterion) { - output.WriteRawTag(18); - output.WriteString(StateCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasStateCriterion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StateCriterion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelStateInfo other) { - if (other == null) { - return; - } - if (other.HasStateCriterion) { - StateCriterion = other.StateCriterion; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - StateCriterion = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - StateCriterion = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// City the hotel is located in. - /// - public sealed partial class HotelCityInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelCityInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCityInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCityInfo(HotelCityInfo other) : this() { - cityCriterion_ = other.cityCriterion_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCityInfo Clone() { - return new HotelCityInfo(this); - } - - /// Field number for the "city_criterion" field. - public const int CityCriterionFieldNumber = 2; - private string cityCriterion_; - /// - /// The Geo Target Constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CityCriterion { - get { return cityCriterion_ ?? ""; } - set { - cityCriterion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "city_criterion" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCityCriterion { - get { return cityCriterion_ != null; } - } - /// Clears the value of the "city_criterion" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCityCriterion() { - cityCriterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelCityInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelCityInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CityCriterion != other.CityCriterion) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCityCriterion) hash ^= CityCriterion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCityCriterion) { - output.WriteRawTag(18); - output.WriteString(CityCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCityCriterion) { - output.WriteRawTag(18); - output.WriteString(CityCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCityCriterion) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CityCriterion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelCityInfo other) { - if (other == null) { - return; - } - if (other.HasCityCriterion) { - CityCriterion = other.CityCriterion; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - CityCriterion = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - CityCriterion = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Bidding category of a product offer. - /// - public sealed partial class ProductBiddingCategoryInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductBiddingCategoryInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBiddingCategoryInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBiddingCategoryInfo(ProductBiddingCategoryInfo other) : this() { - _hasBits0 = other._hasBits0; - id_ = other.id_; - countryCode_ = other.countryCode_; - level_ = other.level_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBiddingCategoryInfo Clone() { - return new ProductBiddingCategoryInfo(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 4; - private long id_; - /// - /// ID of the product bidding category. - /// - /// This ID is equivalent to the google_product_category ID as described in - /// this article: https://support.google.com/merchants/answer/6324436 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 5; - private string countryCode_; - /// - /// Two-letter upper-case country code of the product bidding category. It must - /// match the campaign.shopping_setting.sales_country field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel level_ = global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified; - /// - /// Level of the product bidding category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel Level { - get { return level_; } - set { - level_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductBiddingCategoryInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductBiddingCategoryInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (CountryCode != other.CountryCode) return false; - if (Level != other.Level) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasId) hash ^= Id.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified) hash ^= Level.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Level); - } - if (HasId) { - output.WriteRawTag(32); - output.WriteInt64(Id); - } - if (HasCountryCode) { - output.WriteRawTag(42); - output.WriteString(CountryCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Level); - } - if (HasId) { - output.WriteRawTag(32); - output.WriteInt64(Id); - } - if (HasCountryCode) { - output.WriteRawTag(42); - output.WriteString(CountryCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductBiddingCategoryInfo other) { - if (other == null) { - return; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.Level != global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified) { - Level = other.Level; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel) input.ReadEnum(); - break; - } - case 32: { - Id = input.ReadInt64(); - break; - } - case 42: { - CountryCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel) input.ReadEnum(); - break; - } - case 32: { - Id = input.ReadInt64(); - break; - } - case 42: { - CountryCode = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Brand of the product. - /// - public sealed partial class ProductBrandInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductBrandInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBrandInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBrandInfo(ProductBrandInfo other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductBrandInfo Clone() { - return new ProductBrandInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_; - /// - /// String value of the product brand. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductBrandInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductBrandInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductBrandInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Locality of a product offer. - /// - public sealed partial class ProductChannelInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductChannelInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannelInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannelInfo(ProductChannelInfo other) : this() { - channel_ = other.channel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannelInfo Clone() { - return new ProductChannelInfo(this); - } - - /// Field number for the "channel" field. - public const int ChannelFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel channel_ = global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel.Unspecified; - /// - /// Value of the locality. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel Channel { - get { return channel_; } - set { - channel_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductChannelInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductChannelInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Channel != other.Channel) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel.Unspecified) hash ^= Channel.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Channel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Channel); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Channel != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Channel); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductChannelInfo other) { - if (other == null) { - return; - } - if (other.Channel != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel.Unspecified) { - Channel = other.Channel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Channel = (global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Channel = (global::Google.Ads.GoogleAds.V12.Enums.ProductChannelEnum.Types.ProductChannel) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Availability of a product offer. - /// - public sealed partial class ProductChannelExclusivityInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductChannelExclusivityInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannelExclusivityInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannelExclusivityInfo(ProductChannelExclusivityInfo other) : this() { - channelExclusivity_ = other.channelExclusivity_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductChannelExclusivityInfo Clone() { - return new ProductChannelExclusivityInfo(this); - } - - /// Field number for the "channel_exclusivity" field. - public const int ChannelExclusivityFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity channelExclusivity_ = global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity.Unspecified; - /// - /// Value of the availability. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity ChannelExclusivity { - get { return channelExclusivity_; } - set { - channelExclusivity_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductChannelExclusivityInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductChannelExclusivityInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ChannelExclusivity != other.ChannelExclusivity) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ChannelExclusivity != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity.Unspecified) hash ^= ChannelExclusivity.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ChannelExclusivity != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) ChannelExclusivity); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ChannelExclusivity != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) ChannelExclusivity); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ChannelExclusivity != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ChannelExclusivity); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductChannelExclusivityInfo other) { - if (other == null) { - return; - } - if (other.ChannelExclusivity != global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity.Unspecified) { - ChannelExclusivity = other.ChannelExclusivity; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - ChannelExclusivity = (global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ChannelExclusivity = (global::Google.Ads.GoogleAds.V12.Enums.ProductChannelExclusivityEnum.Types.ProductChannelExclusivity) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Condition of a product offer. - /// - public sealed partial class ProductConditionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductConditionInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductConditionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductConditionInfo(ProductConditionInfo other) : this() { - condition_ = other.condition_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductConditionInfo Clone() { - return new ProductConditionInfo(this); - } - - /// Field number for the "condition" field. - public const int ConditionFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition condition_ = global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition.Unspecified; - /// - /// Value of the condition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition Condition { - get { return condition_; } - set { - condition_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductConditionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductConditionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Condition != other.Condition) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition.Unspecified) hash ^= Condition.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Condition); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Condition); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Condition != global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Condition); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductConditionInfo other) { - if (other == null) { - return; - } - if (other.Condition != global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition.Unspecified) { - Condition = other.Condition; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Condition = (global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Condition = (global::Google.Ads.GoogleAds.V12.Enums.ProductConditionEnum.Types.ProductCondition) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Custom attribute of a product offer. - /// - public sealed partial class ProductCustomAttributeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductCustomAttributeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCustomAttributeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCustomAttributeInfo(ProductCustomAttributeInfo other) : this() { - value_ = other.value_; - index_ = other.index_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductCustomAttributeInfo Clone() { - return new ProductCustomAttributeInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 3; - private string value_; - /// - /// String value of the product custom attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - /// Field number for the "index" field. - public const int IndexFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex index_ = global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex.Unspecified; - /// - /// Indicates the index of the custom attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex Index { - get { return index_; } - set { - index_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductCustomAttributeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductCustomAttributeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - if (Index != other.Index) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex.Unspecified) hash ^= Index.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Index); - } - if (HasValue) { - output.WriteRawTag(26); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Index); - } - if (HasValue) { - output.WriteRawTag(26); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (Index != global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Index); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductCustomAttributeInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - if (other.Index != global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex.Unspecified) { - Index = other.Index; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - Index = (global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex) input.ReadEnum(); - break; - } - case 26: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - Index = (global::Google.Ads.GoogleAds.V12.Enums.ProductCustomAttributeIndexEnum.Types.ProductCustomAttributeIndex) input.ReadEnum(); - break; - } - case 26: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Item id of a product offer. - /// - public sealed partial class ProductItemIdInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductItemIdInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductItemIdInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductItemIdInfo(ProductItemIdInfo other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductItemIdInfo Clone() { - return new ProductItemIdInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_; - /// - /// Value of the id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductItemIdInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductItemIdInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(18); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductItemIdInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Type of a product offer. - /// - public sealed partial class ProductTypeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductTypeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[22]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductTypeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductTypeInfo(ProductTypeInfo other) : this() { - value_ = other.value_; - level_ = other.level_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductTypeInfo Clone() { - return new ProductTypeInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 3; - private string value_; - /// - /// Value of the type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel level_ = global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel.Unspecified; - /// - /// Level of the type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel Level { - get { return level_; } - set { - level_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductTypeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductTypeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - if (Level != other.Level) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel.Unspecified) hash ^= Level.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Level); - } - if (HasValue) { - output.WriteRawTag(26); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Level); - } - if (HasValue) { - output.WriteRawTag(26); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (Level != global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductTypeInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - if (other.Level != global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel.Unspecified) { - Level = other.Level; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel) input.ReadEnum(); - break; - } - case 26: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.ProductTypeLevelEnum.Types.ProductTypeLevel) input.ReadEnum(); - break; - } - case 26: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Grouping of a product offer. This listing dimension is deprecated and it is - /// supported only in Display campaigns. - /// - public sealed partial class ProductGroupingInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductGroupingInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[23]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductGroupingInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductGroupingInfo(ProductGroupingInfo other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductGroupingInfo Clone() { - return new ProductGroupingInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// String value of the product grouping. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductGroupingInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductGroupingInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductGroupingInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Labels of a product offer. This listing dimension is deprecated and it is - /// supported only in Display campaigns. - /// - public sealed partial class ProductLabelsInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductLabelsInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[24]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductLabelsInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductLabelsInfo(ProductLabelsInfo other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductLabelsInfo Clone() { - return new ProductLabelsInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// String value of the product labels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductLabelsInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductLabelsInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductLabelsInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Legacy condition of a product offer. This listing dimension is deprecated and - /// it is supported only in Display campaigns. - /// - public sealed partial class ProductLegacyConditionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductLegacyConditionInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[25]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductLegacyConditionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductLegacyConditionInfo(ProductLegacyConditionInfo other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductLegacyConditionInfo Clone() { - return new ProductLegacyConditionInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// String value of the product legacy condition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductLegacyConditionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductLegacyConditionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductLegacyConditionInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Full type of a product offer. This listing dimension is deprecated and it is - /// supported only in Display campaigns. - /// - public sealed partial class ProductTypeFullInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProductTypeFullInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[26]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductTypeFullInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductTypeFullInfo(ProductTypeFullInfo other) : this() { - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProductTypeFullInfo Clone() { - return new ProductTypeFullInfo(this); - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 1; - private string value_; - /// - /// String value of the product full type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProductTypeFullInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProductTypeFullInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasValue) { - output.WriteRawTag(10); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProductTypeFullInfo other) { - if (other == null) { - return; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Unknown listing dimension. - /// - public sealed partial class UnknownListingDimensionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnknownListingDimensionInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[27]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnknownListingDimensionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnknownListingDimensionInfo(UnknownListingDimensionInfo other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnknownListingDimensionInfo Clone() { - return new UnknownListingDimensionInfo(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UnknownListingDimensionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnknownListingDimensionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UnknownListingDimensionInfo other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// Criterion for hotel date selection (default dates versus user selected). - /// - public sealed partial class HotelDateSelectionTypeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelDateSelectionTypeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[28]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelDateSelectionTypeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelDateSelectionTypeInfo(HotelDateSelectionTypeInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelDateSelectionTypeInfo Clone() { - return new HotelDateSelectionTypeInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType type_ = global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType.Unspecified; - /// - /// Type of the hotel date selection - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelDateSelectionTypeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelDateSelectionTypeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelDateSelectionTypeInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Criterion for number of days prior to the stay the booking is being made. - /// - public sealed partial class HotelAdvanceBookingWindowInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelAdvanceBookingWindowInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[29]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelAdvanceBookingWindowInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelAdvanceBookingWindowInfo(HotelAdvanceBookingWindowInfo other) : this() { - _hasBits0 = other._hasBits0; - minDays_ = other.minDays_; - maxDays_ = other.maxDays_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelAdvanceBookingWindowInfo Clone() { - return new HotelAdvanceBookingWindowInfo(this); - } - - /// Field number for the "min_days" field. - public const int MinDaysFieldNumber = 3; - private long minDays_; - /// - /// Low end of the number of days prior to the stay. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MinDays { - get { if ((_hasBits0 & 1) != 0) { return minDays_; } else { return 0L; } } - set { - _hasBits0 |= 1; - minDays_ = value; - } - } - /// Gets whether the "min_days" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMinDays { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "min_days" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMinDays() { - _hasBits0 &= ~1; - } - - /// Field number for the "max_days" field. - public const int MaxDaysFieldNumber = 4; - private long maxDays_; - /// - /// High end of the number of days prior to the stay. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MaxDays { - get { if ((_hasBits0 & 2) != 0) { return maxDays_; } else { return 0L; } } - set { - _hasBits0 |= 2; - maxDays_ = value; - } - } - /// Gets whether the "max_days" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxDays { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "max_days" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxDays() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelAdvanceBookingWindowInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelAdvanceBookingWindowInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MinDays != other.MinDays) return false; - if (MaxDays != other.MaxDays) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMinDays) hash ^= MinDays.GetHashCode(); - if (HasMaxDays) hash ^= MaxDays.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasMinDays) { - output.WriteRawTag(24); - output.WriteInt64(MinDays); - } - if (HasMaxDays) { - output.WriteRawTag(32); - output.WriteInt64(MaxDays); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasMinDays) { - output.WriteRawTag(24); - output.WriteInt64(MinDays); - } - if (HasMaxDays) { - output.WriteRawTag(32); - output.WriteInt64(MaxDays); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMinDays) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinDays); - } - if (HasMaxDays) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxDays); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelAdvanceBookingWindowInfo other) { - if (other == null) { - return; - } - if (other.HasMinDays) { - MinDays = other.MinDays; - } - if (other.HasMaxDays) { - MaxDays = other.MaxDays; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - MinDays = input.ReadInt64(); - break; - } - case 32: { - MaxDays = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - MinDays = input.ReadInt64(); - break; - } - case 32: { - MaxDays = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Criterion for length of hotel stay in nights. - /// - public sealed partial class HotelLengthOfStayInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelLengthOfStayInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[30]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelLengthOfStayInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelLengthOfStayInfo(HotelLengthOfStayInfo other) : this() { - _hasBits0 = other._hasBits0; - minNights_ = other.minNights_; - maxNights_ = other.maxNights_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelLengthOfStayInfo Clone() { - return new HotelLengthOfStayInfo(this); - } - - /// Field number for the "min_nights" field. - public const int MinNightsFieldNumber = 3; - private long minNights_; - /// - /// Low end of the number of nights in the stay. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MinNights { - get { if ((_hasBits0 & 1) != 0) { return minNights_; } else { return 0L; } } - set { - _hasBits0 |= 1; - minNights_ = value; - } - } - /// Gets whether the "min_nights" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMinNights { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "min_nights" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMinNights() { - _hasBits0 &= ~1; - } - - /// Field number for the "max_nights" field. - public const int MaxNightsFieldNumber = 4; - private long maxNights_; - /// - /// High end of the number of nights in the stay. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MaxNights { - get { if ((_hasBits0 & 2) != 0) { return maxNights_; } else { return 0L; } } - set { - _hasBits0 |= 2; - maxNights_ = value; - } - } - /// Gets whether the "max_nights" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxNights { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "max_nights" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxNights() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelLengthOfStayInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelLengthOfStayInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MinNights != other.MinNights) return false; - if (MaxNights != other.MaxNights) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMinNights) hash ^= MinNights.GetHashCode(); - if (HasMaxNights) hash ^= MaxNights.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasMinNights) { - output.WriteRawTag(24); - output.WriteInt64(MinNights); - } - if (HasMaxNights) { - output.WriteRawTag(32); - output.WriteInt64(MaxNights); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasMinNights) { - output.WriteRawTag(24); - output.WriteInt64(MinNights); - } - if (HasMaxNights) { - output.WriteRawTag(32); - output.WriteInt64(MaxNights); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMinNights) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinNights); - } - if (HasMaxNights) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxNights); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelLengthOfStayInfo other) { - if (other == null) { - return; - } - if (other.HasMinNights) { - MinNights = other.MinNights; - } - if (other.HasMaxNights) { - MaxNights = other.MaxNights; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - MinNights = input.ReadInt64(); - break; - } - case 32: { - MaxNights = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - MinNights = input.ReadInt64(); - break; - } - case 32: { - MaxNights = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Criterion for a check-in date range. - /// - public sealed partial class HotelCheckInDateRangeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelCheckInDateRangeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[31]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCheckInDateRangeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCheckInDateRangeInfo(HotelCheckInDateRangeInfo other) : this() { - startDate_ = other.startDate_; - endDate_ = other.endDate_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCheckInDateRangeInfo Clone() { - return new HotelCheckInDateRangeInfo(this); - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 1; - private string startDate_ = ""; - /// - /// Start date in the YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 2; - private string endDate_ = ""; - /// - /// End date in the YYYY-MM-DD format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelCheckInDateRangeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelCheckInDateRangeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (StartDate.Length != 0) hash ^= StartDate.GetHashCode(); - if (EndDate.Length != 0) hash ^= EndDate.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (StartDate.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(18); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (StartDate.Length != 0) { - output.WriteRawTag(10); - output.WriteString(StartDate); - } - if (EndDate.Length != 0) { - output.WriteRawTag(18); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (StartDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (EndDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelCheckInDateRangeInfo other) { - if (other == null) { - return; - } - if (other.StartDate.Length != 0) { - StartDate = other.StartDate; - } - if (other.EndDate.Length != 0) { - EndDate = other.EndDate; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - StartDate = input.ReadString(); - break; - } - case 18: { - EndDate = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - StartDate = input.ReadString(); - break; - } - case 18: { - EndDate = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Criterion for day of the week the booking is for. - /// - public sealed partial class HotelCheckInDayInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelCheckInDayInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[32]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCheckInDayInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCheckInDayInfo(HotelCheckInDayInfo other) : this() { - dayOfWeek_ = other.dayOfWeek_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCheckInDayInfo Clone() { - return new HotelCheckInDayInfo(this); - } - - /// Field number for the "day_of_week" field. - public const int DayOfWeekFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek dayOfWeek_ = global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified; - /// - /// The day of the week. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek DayOfWeek { - get { return dayOfWeek_; } - set { - dayOfWeek_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelCheckInDayInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelCheckInDayInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DayOfWeek != other.DayOfWeek) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) hash ^= DayOfWeek.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) DayOfWeek); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) DayOfWeek); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DayOfWeek); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelCheckInDayInfo other) { - if (other == null) { - return; - } - if (other.DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - DayOfWeek = other.DayOfWeek; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - DayOfWeek = (global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - DayOfWeek = (global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Criterion for Interaction Type. - /// - public sealed partial class InteractionTypeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractionTypeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[33]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionTypeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionTypeInfo(InteractionTypeInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionTypeInfo Clone() { - return new InteractionTypeInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType type_ = global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType.Unspecified; - /// - /// The interaction type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InteractionTypeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InteractionTypeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InteractionTypeInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents an AdSchedule criterion. - /// - /// AdSchedule is specified as the day of the week and a time interval - /// within which ads will be shown. - /// - /// No more than six AdSchedules can be added for the same day. - /// - public sealed partial class AdScheduleInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdScheduleInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[34]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdScheduleInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdScheduleInfo(AdScheduleInfo other) : this() { - _hasBits0 = other._hasBits0; - startMinute_ = other.startMinute_; - endMinute_ = other.endMinute_; - startHour_ = other.startHour_; - endHour_ = other.endHour_; - dayOfWeek_ = other.dayOfWeek_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdScheduleInfo Clone() { - return new AdScheduleInfo(this); - } - - /// Field number for the "start_minute" field. - public const int StartMinuteFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour startMinute_ = global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified; - /// - /// Minutes after the start hour at which this schedule starts. - /// - /// This field is required for CREATE operations and is prohibited on UPDATE - /// operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour StartMinute { - get { return startMinute_; } - set { - startMinute_ = value; - } - } - - /// Field number for the "end_minute" field. - public const int EndMinuteFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour endMinute_ = global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified; - /// - /// Minutes after the end hour at which this schedule ends. The schedule is - /// exclusive of the end minute. - /// - /// This field is required for CREATE operations and is prohibited on UPDATE - /// operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour EndMinute { - get { return endMinute_; } - set { - endMinute_ = value; - } - } - - /// Field number for the "start_hour" field. - public const int StartHourFieldNumber = 6; - private int startHour_; - /// - /// Starting hour in 24 hour time. - /// This field must be between 0 and 23, inclusive. - /// - /// This field is required for CREATE operations and is prohibited on UPDATE - /// operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int StartHour { - get { if ((_hasBits0 & 1) != 0) { return startHour_; } else { return 0; } } - set { - _hasBits0 |= 1; - startHour_ = value; - } - } - /// Gets whether the "start_hour" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartHour { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "start_hour" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartHour() { - _hasBits0 &= ~1; - } - - /// Field number for the "end_hour" field. - public const int EndHourFieldNumber = 7; - private int endHour_; - /// - /// Ending hour in 24 hour time; 24 signifies end of the day. - /// This field must be between 0 and 24, inclusive. - /// - /// This field is required for CREATE operations and is prohibited on UPDATE - /// operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int EndHour { - get { if ((_hasBits0 & 2) != 0) { return endHour_; } else { return 0; } } - set { - _hasBits0 |= 2; - endHour_ = value; - } - } - /// Gets whether the "end_hour" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndHour { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "end_hour" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndHour() { - _hasBits0 &= ~2; - } - - /// Field number for the "day_of_week" field. - public const int DayOfWeekFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek dayOfWeek_ = global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified; - /// - /// Day of the week the schedule applies to. - /// - /// This field is required for CREATE operations and is prohibited on UPDATE - /// operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek DayOfWeek { - get { return dayOfWeek_; } - set { - dayOfWeek_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdScheduleInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdScheduleInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartMinute != other.StartMinute) return false; - if (EndMinute != other.EndMinute) return false; - if (StartHour != other.StartHour) return false; - if (EndHour != other.EndHour) return false; - if (DayOfWeek != other.DayOfWeek) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (StartMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) hash ^= StartMinute.GetHashCode(); - if (EndMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) hash ^= EndMinute.GetHashCode(); - if (HasStartHour) hash ^= StartHour.GetHashCode(); - if (HasEndHour) hash ^= EndHour.GetHashCode(); - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) hash ^= DayOfWeek.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (StartMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) StartMinute); - } - if (EndMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) EndMinute); - } - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) DayOfWeek); - } - if (HasStartHour) { - output.WriteRawTag(48); - output.WriteInt32(StartHour); - } - if (HasEndHour) { - output.WriteRawTag(56); - output.WriteInt32(EndHour); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (StartMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) StartMinute); - } - if (EndMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) EndMinute); - } - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) DayOfWeek); - } - if (HasStartHour) { - output.WriteRawTag(48); - output.WriteInt32(StartHour); - } - if (HasEndHour) { - output.WriteRawTag(56); - output.WriteInt32(EndHour); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (StartMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StartMinute); - } - if (EndMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EndMinute); - } - if (HasStartHour) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartHour); - } - if (HasEndHour) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndHour); - } - if (DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DayOfWeek); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdScheduleInfo other) { - if (other == null) { - return; - } - if (other.StartMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - StartMinute = other.StartMinute; - } - if (other.EndMinute != global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour.Unspecified) { - EndMinute = other.EndMinute; - } - if (other.HasStartHour) { - StartHour = other.StartHour; - } - if (other.HasEndHour) { - EndHour = other.EndHour; - } - if (other.DayOfWeek != global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek.Unspecified) { - DayOfWeek = other.DayOfWeek; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - StartMinute = (global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour) input.ReadEnum(); - break; - } - case 16: { - EndMinute = (global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour) input.ReadEnum(); - break; - } - case 40: { - DayOfWeek = (global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek) input.ReadEnum(); - break; - } - case 48: { - StartHour = input.ReadInt32(); - break; - } - case 56: { - EndHour = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - StartMinute = (global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour) input.ReadEnum(); - break; - } - case 16: { - EndMinute = (global::Google.Ads.GoogleAds.V12.Enums.MinuteOfHourEnum.Types.MinuteOfHour) input.ReadEnum(); - break; - } - case 40: { - DayOfWeek = (global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek) input.ReadEnum(); - break; - } - case 48: { - StartHour = input.ReadInt32(); - break; - } - case 56: { - EndHour = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// An age range criterion. - /// - public sealed partial class AgeRangeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AgeRangeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[35]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeInfo(AgeRangeInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AgeRangeInfo Clone() { - return new AgeRangeInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType type_ = global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType.Unspecified; - /// - /// Type of the age range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AgeRangeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AgeRangeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AgeRangeInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AgeRangeTypeEnum.Types.AgeRangeType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A gender criterion. - /// - public sealed partial class GenderInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenderInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[36]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderInfo(GenderInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderInfo Clone() { - return new GenderInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType type_ = global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType.Unspecified; - /// - /// Type of the gender. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenderInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenderInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenderInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// An income range criterion. - /// - public sealed partial class IncomeRangeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IncomeRangeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[37]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeInfo(IncomeRangeInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeInfo Clone() { - return new IncomeRangeInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType type_ = global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType.Unspecified; - /// - /// Type of the income range. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IncomeRangeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IncomeRangeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IncomeRangeInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A parental status criterion. - /// - public sealed partial class ParentalStatusInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ParentalStatusInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[38]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParentalStatusInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParentalStatusInfo(ParentalStatusInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ParentalStatusInfo Clone() { - return new ParentalStatusInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType type_ = global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType.Unspecified; - /// - /// Type of the parental status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ParentalStatusInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ParentalStatusInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ParentalStatusInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ParentalStatusTypeEnum.Types.ParentalStatusType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A YouTube Video criterion. - /// - public sealed partial class YouTubeVideoInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new YouTubeVideoInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[39]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeVideoInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeVideoInfo(YouTubeVideoInfo other) : this() { - videoId_ = other.videoId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeVideoInfo Clone() { - return new YouTubeVideoInfo(this); - } - - /// Field number for the "video_id" field. - public const int VideoIdFieldNumber = 2; - private string videoId_; - /// - /// YouTube video id as it appears on the YouTube watch page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string VideoId { - get { return videoId_ ?? ""; } - set { - videoId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "video_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasVideoId { - get { return videoId_ != null; } - } - /// Clears the value of the "video_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearVideoId() { - videoId_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as YouTubeVideoInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(YouTubeVideoInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (VideoId != other.VideoId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasVideoId) hash ^= VideoId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasVideoId) { - output.WriteRawTag(18); - output.WriteString(VideoId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasVideoId) { - output.WriteRawTag(18); - output.WriteString(VideoId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasVideoId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(VideoId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(YouTubeVideoInfo other) { - if (other == null) { - return; - } - if (other.HasVideoId) { - VideoId = other.VideoId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - VideoId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - VideoId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A YouTube Channel criterion. - /// - public sealed partial class YouTubeChannelInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new YouTubeChannelInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[40]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeChannelInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeChannelInfo(YouTubeChannelInfo other) : this() { - channelId_ = other.channelId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YouTubeChannelInfo Clone() { - return new YouTubeChannelInfo(this); - } - - /// Field number for the "channel_id" field. - public const int ChannelIdFieldNumber = 2; - private string channelId_; - /// - /// The YouTube uploader channel id or the channel code of a YouTube channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ChannelId { - get { return channelId_ ?? ""; } - set { - channelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "channel_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasChannelId { - get { return channelId_ != null; } - } - /// Clears the value of the "channel_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearChannelId() { - channelId_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as YouTubeChannelInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(YouTubeChannelInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ChannelId != other.ChannelId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasChannelId) hash ^= ChannelId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasChannelId) { - output.WriteRawTag(18); - output.WriteString(ChannelId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasChannelId) { - output.WriteRawTag(18); - output.WriteString(ChannelId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasChannelId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(YouTubeChannelInfo other) { - if (other == null) { - return; - } - if (other.HasChannelId) { - ChannelId = other.ChannelId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - ChannelId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - ChannelId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A User List criterion. Represents a user list that is defined by the - /// advertiser to be targeted. - /// - public sealed partial class UserListInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserListInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[41]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListInfo(UserListInfo other) : this() { - userList_ = other.userList_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserListInfo Clone() { - return new UserListInfo(this); - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 2; - private string userList_; - /// - /// The User List resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserList { - get { return userList_ ?? ""; } - set { - userList_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "user_list" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUserList { - get { return userList_ != null; } - } - /// Clears the value of the "user_list" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUserList() { - userList_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserListInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserListInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserList != other.UserList) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUserList) hash ^= UserList.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUserList) { - output.WriteRawTag(18); - output.WriteString(UserList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUserList) { - output.WriteRawTag(18); - output.WriteString(UserList); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUserList) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserList); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserListInfo other) { - if (other == null) { - return; - } - if (other.HasUserList) { - UserList = other.UserList; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - UserList = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - UserList = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A Proximity criterion. The geo point and radius determine what geographical - /// area is included. The address is a description of the geo point that does - /// not affect ad serving. - /// - /// There are two ways to create a proximity. First, by setting an address - /// and radius. The geo point will be automatically computed. Second, by - /// setting a geo point and radius. The address is an optional label that won't - /// be validated. - /// - public sealed partial class ProximityInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProximityInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[42]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProximityInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProximityInfo(ProximityInfo other) : this() { - _hasBits0 = other._hasBits0; - geoPoint_ = other.geoPoint_ != null ? other.geoPoint_.Clone() : null; - radius_ = other.radius_; - radiusUnits_ = other.radiusUnits_; - address_ = other.address_ != null ? other.address_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProximityInfo Clone() { - return new ProximityInfo(this); - } - - /// Field number for the "geo_point" field. - public const int GeoPointFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.GeoPointInfo geoPoint_; - /// - /// Latitude and longitude. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.GeoPointInfo GeoPoint { - get { return geoPoint_; } - set { - geoPoint_ = value; - } - } - - /// Field number for the "radius" field. - public const int RadiusFieldNumber = 5; - private double radius_; - /// - /// The radius of the proximity. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Radius { - get { if ((_hasBits0 & 1) != 0) { return radius_; } else { return 0D; } } - set { - _hasBits0 |= 1; - radius_ = value; - } - } - /// Gets whether the "radius" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRadius { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "radius" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRadius() { - _hasBits0 &= ~1; - } - - /// Field number for the "radius_units" field. - public const int RadiusUnitsFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits radiusUnits_ = global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits.Unspecified; - /// - /// The unit of measurement of the radius. Default is KILOMETERS. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits RadiusUnits { - get { return radiusUnits_; } - set { - radiusUnits_ = value; - } - } - - /// Field number for the "address" field. - public const int AddressFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.AddressInfo address_; - /// - /// Full address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AddressInfo Address { - get { return address_; } - set { - address_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ProximityInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProximityInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(GeoPoint, other.GeoPoint)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Radius, other.Radius)) return false; - if (RadiusUnits != other.RadiusUnits) return false; - if (!object.Equals(Address, other.Address)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (geoPoint_ != null) hash ^= GeoPoint.GetHashCode(); - if (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Radius); - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits.Unspecified) hash ^= RadiusUnits.GetHashCode(); - if (address_ != null) hash ^= Address.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (geoPoint_ != null) { - output.WriteRawTag(10); - output.WriteMessage(GeoPoint); - } - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) RadiusUnits); - } - if (address_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Address); - } - if (HasRadius) { - output.WriteRawTag(41); - output.WriteDouble(Radius); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (geoPoint_ != null) { - output.WriteRawTag(10); - output.WriteMessage(GeoPoint); - } - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) RadiusUnits); - } - if (address_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Address); - } - if (HasRadius) { - output.WriteRawTag(41); - output.WriteDouble(Radius); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (geoPoint_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GeoPoint); - } - if (HasRadius) { - size += 1 + 8; - } - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RadiusUnits); - } - if (address_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Address); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProximityInfo other) { - if (other == null) { - return; - } - if (other.geoPoint_ != null) { - if (geoPoint_ == null) { - GeoPoint = new global::Google.Ads.GoogleAds.V12.Common.GeoPointInfo(); - } - GeoPoint.MergeFrom(other.GeoPoint); - } - if (other.HasRadius) { - Radius = other.Radius; - } - if (other.RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits.Unspecified) { - RadiusUnits = other.RadiusUnits; - } - if (other.address_ != null) { - if (address_ == null) { - Address = new global::Google.Ads.GoogleAds.V12.Common.AddressInfo(); - } - Address.MergeFrom(other.Address); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (geoPoint_ == null) { - GeoPoint = new global::Google.Ads.GoogleAds.V12.Common.GeoPointInfo(); - } - input.ReadMessage(GeoPoint); - break; - } - case 24: { - RadiusUnits = (global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits) input.ReadEnum(); - break; - } - case 34: { - if (address_ == null) { - Address = new global::Google.Ads.GoogleAds.V12.Common.AddressInfo(); - } - input.ReadMessage(Address); - break; - } - case 41: { - Radius = input.ReadDouble(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (geoPoint_ == null) { - GeoPoint = new global::Google.Ads.GoogleAds.V12.Common.GeoPointInfo(); - } - input.ReadMessage(GeoPoint); - break; - } - case 24: { - RadiusUnits = (global::Google.Ads.GoogleAds.V12.Enums.ProximityRadiusUnitsEnum.Types.ProximityRadiusUnits) input.ReadEnum(); - break; - } - case 34: { - if (address_ == null) { - Address = new global::Google.Ads.GoogleAds.V12.Common.AddressInfo(); - } - input.ReadMessage(Address); - break; - } - case 41: { - Radius = input.ReadDouble(); - break; - } - } - } - } - #endif - - } - - /// - /// Geo point for proximity criterion. - /// - public sealed partial class GeoPointInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoPointInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[43]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoPointInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoPointInfo(GeoPointInfo other) : this() { - _hasBits0 = other._hasBits0; - longitudeInMicroDegrees_ = other.longitudeInMicroDegrees_; - latitudeInMicroDegrees_ = other.latitudeInMicroDegrees_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoPointInfo Clone() { - return new GeoPointInfo(this); - } - - /// Field number for the "longitude_in_micro_degrees" field. - public const int LongitudeInMicroDegreesFieldNumber = 3; - private int longitudeInMicroDegrees_; - /// - /// Micro degrees for the longitude. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int LongitudeInMicroDegrees { - get { if ((_hasBits0 & 1) != 0) { return longitudeInMicroDegrees_; } else { return 0; } } - set { - _hasBits0 |= 1; - longitudeInMicroDegrees_ = value; - } - } - /// Gets whether the "longitude_in_micro_degrees" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLongitudeInMicroDegrees { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "longitude_in_micro_degrees" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLongitudeInMicroDegrees() { - _hasBits0 &= ~1; - } - - /// Field number for the "latitude_in_micro_degrees" field. - public const int LatitudeInMicroDegreesFieldNumber = 4; - private int latitudeInMicroDegrees_; - /// - /// Micro degrees for the latitude. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int LatitudeInMicroDegrees { - get { if ((_hasBits0 & 2) != 0) { return latitudeInMicroDegrees_; } else { return 0; } } - set { - _hasBits0 |= 2; - latitudeInMicroDegrees_ = value; - } - } - /// Gets whether the "latitude_in_micro_degrees" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLatitudeInMicroDegrees { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "latitude_in_micro_degrees" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLatitudeInMicroDegrees() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoPointInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoPointInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LongitudeInMicroDegrees != other.LongitudeInMicroDegrees) return false; - if (LatitudeInMicroDegrees != other.LatitudeInMicroDegrees) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLongitudeInMicroDegrees) hash ^= LongitudeInMicroDegrees.GetHashCode(); - if (HasLatitudeInMicroDegrees) hash ^= LatitudeInMicroDegrees.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasLongitudeInMicroDegrees) { - output.WriteRawTag(24); - output.WriteInt32(LongitudeInMicroDegrees); - } - if (HasLatitudeInMicroDegrees) { - output.WriteRawTag(32); - output.WriteInt32(LatitudeInMicroDegrees); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasLongitudeInMicroDegrees) { - output.WriteRawTag(24); - output.WriteInt32(LongitudeInMicroDegrees); - } - if (HasLatitudeInMicroDegrees) { - output.WriteRawTag(32); - output.WriteInt32(LatitudeInMicroDegrees); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLongitudeInMicroDegrees) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(LongitudeInMicroDegrees); - } - if (HasLatitudeInMicroDegrees) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(LatitudeInMicroDegrees); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoPointInfo other) { - if (other == null) { - return; - } - if (other.HasLongitudeInMicroDegrees) { - LongitudeInMicroDegrees = other.LongitudeInMicroDegrees; - } - if (other.HasLatitudeInMicroDegrees) { - LatitudeInMicroDegrees = other.LatitudeInMicroDegrees; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - LongitudeInMicroDegrees = input.ReadInt32(); - break; - } - case 32: { - LatitudeInMicroDegrees = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - LongitudeInMicroDegrees = input.ReadInt32(); - break; - } - case 32: { - LatitudeInMicroDegrees = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Address for proximity criterion. - /// - public sealed partial class AddressInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[44]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddressInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddressInfo(AddressInfo other) : this() { - postalCode_ = other.postalCode_; - provinceCode_ = other.provinceCode_; - countryCode_ = other.countryCode_; - provinceName_ = other.provinceName_; - streetAddress_ = other.streetAddress_; - streetAddress2_ = other.streetAddress2_; - cityName_ = other.cityName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AddressInfo Clone() { - return new AddressInfo(this); - } - - /// Field number for the "postal_code" field. - public const int PostalCodeFieldNumber = 8; - private string postalCode_; - /// - /// Postal code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PostalCode { - get { return postalCode_ ?? ""; } - set { - postalCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "postal_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPostalCode { - get { return postalCode_ != null; } - } - /// Clears the value of the "postal_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPostalCode() { - postalCode_ = null; - } - - /// Field number for the "province_code" field. - public const int ProvinceCodeFieldNumber = 9; - private string provinceCode_; - /// - /// Province or state code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProvinceCode { - get { return provinceCode_ ?? ""; } - set { - provinceCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "province_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProvinceCode { - get { return provinceCode_ != null; } - } - /// Clears the value of the "province_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProvinceCode() { - provinceCode_ = null; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 10; - private string countryCode_; - /// - /// Country code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "province_name" field. - public const int ProvinceNameFieldNumber = 11; - private string provinceName_; - /// - /// Province or state name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ProvinceName { - get { return provinceName_ ?? ""; } - set { - provinceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "province_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProvinceName { - get { return provinceName_ != null; } - } - /// Clears the value of the "province_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProvinceName() { - provinceName_ = null; - } - - /// Field number for the "street_address" field. - public const int StreetAddressFieldNumber = 12; - private string streetAddress_; - /// - /// Street address line 1. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StreetAddress { - get { return streetAddress_ ?? ""; } - set { - streetAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "street_address" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStreetAddress { - get { return streetAddress_ != null; } - } - /// Clears the value of the "street_address" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStreetAddress() { - streetAddress_ = null; - } - - /// Field number for the "street_address2" field. - public const int StreetAddress2FieldNumber = 13; - private string streetAddress2_; - /// - /// Street address line 2. This field is write-only. It is only used for - /// calculating the longitude and latitude of an address when geo_point is - /// empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StreetAddress2 { - get { return streetAddress2_ ?? ""; } - set { - streetAddress2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "street_address2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStreetAddress2 { - get { return streetAddress2_ != null; } - } - /// Clears the value of the "street_address2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStreetAddress2() { - streetAddress2_ = null; - } - - /// Field number for the "city_name" field. - public const int CityNameFieldNumber = 14; - private string cityName_; - /// - /// Name of the city. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CityName { - get { return cityName_ ?? ""; } - set { - cityName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "city_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCityName { - get { return cityName_ != null; } - } - /// Clears the value of the "city_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCityName() { - cityName_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AddressInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AddressInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PostalCode != other.PostalCode) return false; - if (ProvinceCode != other.ProvinceCode) return false; - if (CountryCode != other.CountryCode) return false; - if (ProvinceName != other.ProvinceName) return false; - if (StreetAddress != other.StreetAddress) return false; - if (StreetAddress2 != other.StreetAddress2) return false; - if (CityName != other.CityName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasPostalCode) hash ^= PostalCode.GetHashCode(); - if (HasProvinceCode) hash ^= ProvinceCode.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasProvinceName) hash ^= ProvinceName.GetHashCode(); - if (HasStreetAddress) hash ^= StreetAddress.GetHashCode(); - if (HasStreetAddress2) hash ^= StreetAddress2.GetHashCode(); - if (HasCityName) hash ^= CityName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasPostalCode) { - output.WriteRawTag(66); - output.WriteString(PostalCode); - } - if (HasProvinceCode) { - output.WriteRawTag(74); - output.WriteString(ProvinceCode); - } - if (HasCountryCode) { - output.WriteRawTag(82); - output.WriteString(CountryCode); - } - if (HasProvinceName) { - output.WriteRawTag(90); - output.WriteString(ProvinceName); - } - if (HasStreetAddress) { - output.WriteRawTag(98); - output.WriteString(StreetAddress); - } - if (HasStreetAddress2) { - output.WriteRawTag(106); - output.WriteString(StreetAddress2); - } - if (HasCityName) { - output.WriteRawTag(114); - output.WriteString(CityName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasPostalCode) { - output.WriteRawTag(66); - output.WriteString(PostalCode); - } - if (HasProvinceCode) { - output.WriteRawTag(74); - output.WriteString(ProvinceCode); - } - if (HasCountryCode) { - output.WriteRawTag(82); - output.WriteString(CountryCode); - } - if (HasProvinceName) { - output.WriteRawTag(90); - output.WriteString(ProvinceName); - } - if (HasStreetAddress) { - output.WriteRawTag(98); - output.WriteString(StreetAddress); - } - if (HasStreetAddress2) { - output.WriteRawTag(106); - output.WriteString(StreetAddress2); - } - if (HasCityName) { - output.WriteRawTag(114); - output.WriteString(CityName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasPostalCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PostalCode); - } - if (HasProvinceCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProvinceCode); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasProvinceName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ProvinceName); - } - if (HasStreetAddress) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StreetAddress); - } - if (HasStreetAddress2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StreetAddress2); - } - if (HasCityName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CityName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AddressInfo other) { - if (other == null) { - return; - } - if (other.HasPostalCode) { - PostalCode = other.PostalCode; - } - if (other.HasProvinceCode) { - ProvinceCode = other.ProvinceCode; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasProvinceName) { - ProvinceName = other.ProvinceName; - } - if (other.HasStreetAddress) { - StreetAddress = other.StreetAddress; - } - if (other.HasStreetAddress2) { - StreetAddress2 = other.StreetAddress2; - } - if (other.HasCityName) { - CityName = other.CityName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 66: { - PostalCode = input.ReadString(); - break; - } - case 74: { - ProvinceCode = input.ReadString(); - break; - } - case 82: { - CountryCode = input.ReadString(); - break; - } - case 90: { - ProvinceName = input.ReadString(); - break; - } - case 98: { - StreetAddress = input.ReadString(); - break; - } - case 106: { - StreetAddress2 = input.ReadString(); - break; - } - case 114: { - CityName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 66: { - PostalCode = input.ReadString(); - break; - } - case 74: { - ProvinceCode = input.ReadString(); - break; - } - case 82: { - CountryCode = input.ReadString(); - break; - } - case 90: { - ProvinceName = input.ReadString(); - break; - } - case 98: { - StreetAddress = input.ReadString(); - break; - } - case 106: { - StreetAddress2 = input.ReadString(); - break; - } - case 114: { - CityName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A topic criterion. Use topics to target or exclude placements in the - /// Google Display Network based on the category into which the placement falls - /// (for example, "Pets & Animals/Pets/Dogs"). - /// - public sealed partial class TopicInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TopicInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[45]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopicInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopicInfo(TopicInfo other) : this() { - topicConstant_ = other.topicConstant_; - path_ = other.path_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopicInfo Clone() { - return new TopicInfo(this); - } - - /// Field number for the "topic_constant" field. - public const int TopicConstantFieldNumber = 3; - private string topicConstant_; - /// - /// The Topic Constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TopicConstant { - get { return topicConstant_ ?? ""; } - set { - topicConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "topic_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTopicConstant { - get { return topicConstant_ != null; } - } - /// Clears the value of the "topic_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTopicConstant() { - topicConstant_ = null; - } - - /// Field number for the "path" field. - public const int PathFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_path_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField path_ = new pbc::RepeatedField(); - /// - /// The category to target or exclude. Each subsequent element in the array - /// describes a more specific sub-category. For example, - /// "Pets & Animals", "Pets", "Dogs" represents the "Pets & Animals/Pets/Dogs" - /// category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Path { - get { return path_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TopicInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TopicInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TopicConstant != other.TopicConstant) return false; - if(!path_.Equals(other.path_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasTopicConstant) hash ^= TopicConstant.GetHashCode(); - hash ^= path_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasTopicConstant) { - output.WriteRawTag(26); - output.WriteString(TopicConstant); - } - path_.WriteTo(output, _repeated_path_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasTopicConstant) { - output.WriteRawTag(26); - output.WriteString(TopicConstant); - } - path_.WriteTo(ref output, _repeated_path_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasTopicConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TopicConstant); - } - size += path_.CalculateSize(_repeated_path_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TopicInfo other) { - if (other == null) { - return; - } - if (other.HasTopicConstant) { - TopicConstant = other.TopicConstant; - } - path_.Add(other.path_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - TopicConstant = input.ReadString(); - break; - } - case 34: { - path_.AddEntriesFrom(input, _repeated_path_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - TopicConstant = input.ReadString(); - break; - } - case 34: { - path_.AddEntriesFrom(ref input, _repeated_path_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A language criterion. - /// - public sealed partial class LanguageInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LanguageInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[46]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LanguageInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LanguageInfo(LanguageInfo other) : this() { - languageConstant_ = other.languageConstant_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LanguageInfo Clone() { - return new LanguageInfo(this); - } - - /// Field number for the "language_constant" field. - public const int LanguageConstantFieldNumber = 2; - private string languageConstant_; - /// - /// The language constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageConstant { - get { return languageConstant_ ?? ""; } - set { - languageConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguageConstant { - get { return languageConstant_ != null; } - } - /// Clears the value of the "language_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguageConstant() { - languageConstant_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LanguageInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LanguageInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LanguageConstant != other.LanguageConstant) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLanguageConstant) hash ^= LanguageConstant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasLanguageConstant) { - output.WriteRawTag(18); - output.WriteString(LanguageConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasLanguageConstant) { - output.WriteRawTag(18); - output.WriteString(LanguageConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLanguageConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageConstant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LanguageInfo other) { - if (other == null) { - return; - } - if (other.HasLanguageConstant) { - LanguageConstant = other.LanguageConstant; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - LanguageConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - LanguageConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An IpBlock criterion used for IP exclusions. We allow: - /// - IPv4 and IPv6 addresses - /// - individual addresses (192.168.0.1) - /// - masks for individual addresses (192.168.0.1/32) - /// - masks for Class C networks (192.168.0.1/24) - /// - public sealed partial class IpBlockInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IpBlockInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[47]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IpBlockInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IpBlockInfo(IpBlockInfo other) : this() { - ipAddress_ = other.ipAddress_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IpBlockInfo Clone() { - return new IpBlockInfo(this); - } - - /// Field number for the "ip_address" field. - public const int IpAddressFieldNumber = 2; - private string ipAddress_; - /// - /// The IP address of this IP block. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IpAddress { - get { return ipAddress_ ?? ""; } - set { - ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "ip_address" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIpAddress { - get { return ipAddress_ != null; } - } - /// Clears the value of the "ip_address" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIpAddress() { - ipAddress_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IpBlockInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IpBlockInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (IpAddress != other.IpAddress) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasIpAddress) hash ^= IpAddress.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasIpAddress) { - output.WriteRawTag(18); - output.WriteString(IpAddress); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasIpAddress) { - output.WriteRawTag(18); - output.WriteString(IpAddress); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasIpAddress) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IpAddress); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IpBlockInfo other) { - if (other == null) { - return; - } - if (other.HasIpAddress) { - IpAddress = other.IpAddress; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - IpAddress = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - IpAddress = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Content Label for category exclusion. - /// - public sealed partial class ContentLabelInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ContentLabelInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[48]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContentLabelInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContentLabelInfo(ContentLabelInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ContentLabelInfo Clone() { - return new ContentLabelInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType type_ = global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType.Unspecified; - /// - /// Content label type, required for CREATE operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ContentLabelInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ContentLabelInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ContentLabelInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ContentLabelTypeEnum.Types.ContentLabelType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a Carrier Criterion. - /// - public sealed partial class CarrierInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CarrierInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[49]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CarrierInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CarrierInfo(CarrierInfo other) : this() { - carrierConstant_ = other.carrierConstant_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CarrierInfo Clone() { - return new CarrierInfo(this); - } - - /// Field number for the "carrier_constant" field. - public const int CarrierConstantFieldNumber = 2; - private string carrierConstant_; - /// - /// The Carrier constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CarrierConstant { - get { return carrierConstant_ ?? ""; } - set { - carrierConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "carrier_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCarrierConstant { - get { return carrierConstant_ != null; } - } - /// Clears the value of the "carrier_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCarrierConstant() { - carrierConstant_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CarrierInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CarrierInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CarrierConstant != other.CarrierConstant) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCarrierConstant) hash ^= CarrierConstant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCarrierConstant) { - output.WriteRawTag(18); - output.WriteString(CarrierConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCarrierConstant) { - output.WriteRawTag(18); - output.WriteString(CarrierConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCarrierConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CarrierConstant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CarrierInfo other) { - if (other == null) { - return; - } - if (other.HasCarrierConstant) { - CarrierConstant = other.CarrierConstant; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - CarrierConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - CarrierConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a particular interest-based topic to be targeted. - /// - public sealed partial class UserInterestInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserInterestInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[50]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInterestInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInterestInfo(UserInterestInfo other) : this() { - userInterestCategory_ = other.userInterestCategory_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UserInterestInfo Clone() { - return new UserInterestInfo(this); - } - - /// Field number for the "user_interest_category" field. - public const int UserInterestCategoryFieldNumber = 2; - private string userInterestCategory_; - /// - /// The UserInterest resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UserInterestCategory { - get { return userInterestCategory_ ?? ""; } - set { - userInterestCategory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "user_interest_category" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUserInterestCategory { - get { return userInterestCategory_ != null; } - } - /// Clears the value of the "user_interest_category" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUserInterestCategory() { - userInterestCategory_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UserInterestInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UserInterestInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UserInterestCategory != other.UserInterestCategory) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUserInterestCategory) hash ^= UserInterestCategory.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUserInterestCategory) { - output.WriteRawTag(18); - output.WriteString(UserInterestCategory); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUserInterestCategory) { - output.WriteRawTag(18); - output.WriteString(UserInterestCategory); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUserInterestCategory) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UserInterestCategory); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UserInterestInfo other) { - if (other == null) { - return; - } - if (other.HasUserInterestCategory) { - UserInterestCategory = other.UserInterestCategory; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - UserInterestCategory = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - UserInterestCategory = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a criterion for targeting webpages of an advertiser's website. - /// - public sealed partial class WebpageInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebpageInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[51]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageInfo(WebpageInfo other) : this() { - criterionName_ = other.criterionName_; - conditions_ = other.conditions_.Clone(); - coveragePercentage_ = other.coveragePercentage_; - sample_ = other.sample_ != null ? other.sample_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageInfo Clone() { - return new WebpageInfo(this); - } - - /// Field number for the "criterion_name" field. - public const int CriterionNameFieldNumber = 3; - private string criterionName_; - /// - /// The name of the criterion that is defined by this parameter. The name value - /// will be used for identifying, sorting and filtering criteria with this type - /// of parameters. - /// - /// This field is required for CREATE operations and is prohibited on UPDATE - /// operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CriterionName { - get { return criterionName_ ?? ""; } - set { - criterionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "criterion_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCriterionName { - get { return criterionName_ != null; } - } - /// Clears the value of the "criterion_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterionName() { - criterionName_ = null; - } - - /// Field number for the "conditions" field. - public const int ConditionsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_conditions_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.WebpageConditionInfo.Parser); - private readonly pbc::RepeatedField conditions_ = new pbc::RepeatedField(); - /// - /// Conditions, or logical expressions, for webpage targeting. The list of - /// webpage targeting conditions are and-ed together when evaluated - /// for targeting. An empty list of conditions indicates all pages of the - /// campaign's website are targeted. - /// - /// This field is required for CREATE operations and is prohibited on UPDATE - /// operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Conditions { - get { return conditions_; } - } - - /// Field number for the "coverage_percentage" field. - public const int CoveragePercentageFieldNumber = 4; - private double coveragePercentage_; - /// - /// Website criteria coverage percentage. This is the computed percentage - /// of website coverage based on the website target, negative website target - /// and negative keywords in the ad group and campaign. For instance, when - /// coverage returns as 1, it indicates it has 100% coverage. This field is - /// read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double CoveragePercentage { - get { return coveragePercentage_; } - set { - coveragePercentage_ = value; - } - } - - /// Field number for the "sample" field. - public const int SampleFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Common.WebpageSampleInfo sample_; - /// - /// List of sample urls that match the website target. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.WebpageSampleInfo Sample { - get { return sample_; } - set { - sample_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as WebpageInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebpageInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CriterionName != other.CriterionName) return false; - if(!conditions_.Equals(other.conditions_)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(CoveragePercentage, other.CoveragePercentage)) return false; - if (!object.Equals(Sample, other.Sample)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCriterionName) hash ^= CriterionName.GetHashCode(); - hash ^= conditions_.GetHashCode(); - if (CoveragePercentage != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CoveragePercentage); - if (sample_ != null) hash ^= Sample.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - conditions_.WriteTo(output, _repeated_conditions_codec); - if (HasCriterionName) { - output.WriteRawTag(26); - output.WriteString(CriterionName); - } - if (CoveragePercentage != 0D) { - output.WriteRawTag(33); - output.WriteDouble(CoveragePercentage); - } - if (sample_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Sample); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - conditions_.WriteTo(ref output, _repeated_conditions_codec); - if (HasCriterionName) { - output.WriteRawTag(26); - output.WriteString(CriterionName); - } - if (CoveragePercentage != 0D) { - output.WriteRawTag(33); - output.WriteDouble(CoveragePercentage); - } - if (sample_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Sample); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCriterionName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CriterionName); - } - size += conditions_.CalculateSize(_repeated_conditions_codec); - if (CoveragePercentage != 0D) { - size += 1 + 8; - } - if (sample_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sample); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebpageInfo other) { - if (other == null) { - return; - } - if (other.HasCriterionName) { - CriterionName = other.CriterionName; - } - conditions_.Add(other.conditions_); - if (other.CoveragePercentage != 0D) { - CoveragePercentage = other.CoveragePercentage; - } - if (other.sample_ != null) { - if (sample_ == null) { - Sample = new global::Google.Ads.GoogleAds.V12.Common.WebpageSampleInfo(); - } - Sample.MergeFrom(other.Sample); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - conditions_.AddEntriesFrom(input, _repeated_conditions_codec); - break; - } - case 26: { - CriterionName = input.ReadString(); - break; - } - case 33: { - CoveragePercentage = input.ReadDouble(); - break; - } - case 42: { - if (sample_ == null) { - Sample = new global::Google.Ads.GoogleAds.V12.Common.WebpageSampleInfo(); - } - input.ReadMessage(Sample); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - conditions_.AddEntriesFrom(ref input, _repeated_conditions_codec); - break; - } - case 26: { - CriterionName = input.ReadString(); - break; - } - case 33: { - CoveragePercentage = input.ReadDouble(); - break; - } - case 42: { - if (sample_ == null) { - Sample = new global::Google.Ads.GoogleAds.V12.Common.WebpageSampleInfo(); - } - input.ReadMessage(Sample); - break; - } - } - } - } - #endif - - } - - /// - /// Logical expression for targeting webpages of an advertiser's website. - /// - public sealed partial class WebpageConditionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebpageConditionInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[52]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageConditionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageConditionInfo(WebpageConditionInfo other) : this() { - operand_ = other.operand_; - operator_ = other.operator_; - argument_ = other.argument_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageConditionInfo Clone() { - return new WebpageConditionInfo(this); - } - - /// Field number for the "operand" field. - public const int OperandFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand operand_ = global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand.Unspecified; - /// - /// Operand of webpage targeting condition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand Operand { - get { return operand_; } - set { - operand_ = value; - } - } - - /// Field number for the "operator" field. - public const int OperatorFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator operator_ = global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator.Unspecified; - /// - /// Operator of webpage targeting condition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator Operator { - get { return operator_; } - set { - operator_ = value; - } - } - - /// Field number for the "argument" field. - public const int ArgumentFieldNumber = 4; - private string argument_; - /// - /// Argument of webpage targeting condition. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Argument { - get { return argument_ ?? ""; } - set { - argument_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "argument" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasArgument { - get { return argument_ != null; } - } - /// Clears the value of the "argument" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearArgument() { - argument_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as WebpageConditionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebpageConditionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Operand != other.Operand) return false; - if (Operator != other.Operator) return false; - if (Argument != other.Argument) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Operand != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand.Unspecified) hash ^= Operand.GetHashCode(); - if (Operator != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator.Unspecified) hash ^= Operator.GetHashCode(); - if (HasArgument) hash ^= Argument.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Operand != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Operand); - } - if (Operator != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Operator); - } - if (HasArgument) { - output.WriteRawTag(34); - output.WriteString(Argument); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Operand != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Operand); - } - if (Operator != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Operator); - } - if (HasArgument) { - output.WriteRawTag(34); - output.WriteString(Argument); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Operand != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operand); - } - if (Operator != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operator); - } - if (HasArgument) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Argument); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebpageConditionInfo other) { - if (other == null) { - return; - } - if (other.Operand != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand.Unspecified) { - Operand = other.Operand; - } - if (other.Operator != global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator.Unspecified) { - Operator = other.Operator; - } - if (other.HasArgument) { - Argument = other.Argument; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Operand = (global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand) input.ReadEnum(); - break; - } - case 16: { - Operator = (global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator) input.ReadEnum(); - break; - } - case 34: { - Argument = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Operand = (global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperandEnum.Types.WebpageConditionOperand) input.ReadEnum(); - break; - } - case 16: { - Operator = (global::Google.Ads.GoogleAds.V12.Enums.WebpageConditionOperatorEnum.Types.WebpageConditionOperator) input.ReadEnum(); - break; - } - case 34: { - Argument = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// List of sample urls that match the website target - /// - public sealed partial class WebpageSampleInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WebpageSampleInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[53]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageSampleInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageSampleInfo(WebpageSampleInfo other) : this() { - sampleUrls_ = other.sampleUrls_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public WebpageSampleInfo Clone() { - return new WebpageSampleInfo(this); - } - - /// Field number for the "sample_urls" field. - public const int SampleUrlsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_sampleUrls_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField sampleUrls_ = new pbc::RepeatedField(); - /// - /// Webpage sample urls - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SampleUrls { - get { return sampleUrls_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as WebpageSampleInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(WebpageSampleInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!sampleUrls_.Equals(other.sampleUrls_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= sampleUrls_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - sampleUrls_.WriteTo(output, _repeated_sampleUrls_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - sampleUrls_.WriteTo(ref output, _repeated_sampleUrls_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += sampleUrls_.CalculateSize(_repeated_sampleUrls_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(WebpageSampleInfo other) { - if (other == null) { - return; - } - sampleUrls_.Add(other.sampleUrls_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - sampleUrls_.AddEntriesFrom(input, _repeated_sampleUrls_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - sampleUrls_.AddEntriesFrom(ref input, _repeated_sampleUrls_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Represents an operating system version to be targeted. - /// - public sealed partial class OperatingSystemVersionInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OperatingSystemVersionInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[54]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperatingSystemVersionInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperatingSystemVersionInfo(OperatingSystemVersionInfo other) : this() { - operatingSystemVersionConstant_ = other.operatingSystemVersionConstant_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperatingSystemVersionInfo Clone() { - return new OperatingSystemVersionInfo(this); - } - - /// Field number for the "operating_system_version_constant" field. - public const int OperatingSystemVersionConstantFieldNumber = 2; - private string operatingSystemVersionConstant_; - /// - /// The operating system version constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OperatingSystemVersionConstant { - get { return operatingSystemVersionConstant_ ?? ""; } - set { - operatingSystemVersionConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "operating_system_version_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOperatingSystemVersionConstant { - get { return operatingSystemVersionConstant_ != null; } - } - /// Clears the value of the "operating_system_version_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperatingSystemVersionConstant() { - operatingSystemVersionConstant_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as OperatingSystemVersionInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OperatingSystemVersionInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OperatingSystemVersionConstant != other.OperatingSystemVersionConstant) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasOperatingSystemVersionConstant) hash ^= OperatingSystemVersionConstant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasOperatingSystemVersionConstant) { - output.WriteRawTag(18); - output.WriteString(OperatingSystemVersionConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasOperatingSystemVersionConstant) { - output.WriteRawTag(18); - output.WriteString(OperatingSystemVersionConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasOperatingSystemVersionConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OperatingSystemVersionConstant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OperatingSystemVersionInfo other) { - if (other == null) { - return; - } - if (other.HasOperatingSystemVersionConstant) { - OperatingSystemVersionConstant = other.OperatingSystemVersionConstant; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - OperatingSystemVersionConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - OperatingSystemVersionConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An app payment model criterion. - /// - public sealed partial class AppPaymentModelInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppPaymentModelInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[55]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPaymentModelInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPaymentModelInfo(AppPaymentModelInfo other) : this() { - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppPaymentModelInfo Clone() { - return new AppPaymentModelInfo(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType type_ = global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType.Unspecified; - /// - /// Type of the app payment model. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppPaymentModelInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppPaymentModelInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppPaymentModelInfo other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.AppPaymentModelTypeEnum.Types.AppPaymentModelType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A mobile device criterion. - /// - public sealed partial class MobileDeviceInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MobileDeviceInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[56]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileDeviceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileDeviceInfo(MobileDeviceInfo other) : this() { - mobileDeviceConstant_ = other.mobileDeviceConstant_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MobileDeviceInfo Clone() { - return new MobileDeviceInfo(this); - } - - /// Field number for the "mobile_device_constant" field. - public const int MobileDeviceConstantFieldNumber = 2; - private string mobileDeviceConstant_; - /// - /// The mobile device constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MobileDeviceConstant { - get { return mobileDeviceConstant_ ?? ""; } - set { - mobileDeviceConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "mobile_device_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMobileDeviceConstant { - get { return mobileDeviceConstant_ != null; } - } - /// Clears the value of the "mobile_device_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMobileDeviceConstant() { - mobileDeviceConstant_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MobileDeviceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MobileDeviceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MobileDeviceConstant != other.MobileDeviceConstant) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMobileDeviceConstant) hash ^= MobileDeviceConstant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasMobileDeviceConstant) { - output.WriteRawTag(18); - output.WriteString(MobileDeviceConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasMobileDeviceConstant) { - output.WriteRawTag(18); - output.WriteString(MobileDeviceConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMobileDeviceConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MobileDeviceConstant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MobileDeviceInfo other) { - if (other == null) { - return; - } - if (other.HasMobileDeviceConstant) { - MobileDeviceConstant = other.MobileDeviceConstant; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - MobileDeviceConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - MobileDeviceConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A custom affinity criterion. - /// A criterion of this type is only targetable. - /// - public sealed partial class CustomAffinityInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAffinityInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[57]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAffinityInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAffinityInfo(CustomAffinityInfo other) : this() { - customAffinity_ = other.customAffinity_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAffinityInfo Clone() { - return new CustomAffinityInfo(this); - } - - /// Field number for the "custom_affinity" field. - public const int CustomAffinityFieldNumber = 2; - private string customAffinity_; - /// - /// The CustomInterest resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomAffinity { - get { return customAffinity_ ?? ""; } - set { - customAffinity_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "custom_affinity" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomAffinity { - get { return customAffinity_ != null; } - } - /// Clears the value of the "custom_affinity" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomAffinity() { - customAffinity_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAffinityInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAffinityInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomAffinity != other.CustomAffinity) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCustomAffinity) hash ^= CustomAffinity.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCustomAffinity) { - output.WriteRawTag(18); - output.WriteString(CustomAffinity); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCustomAffinity) { - output.WriteRawTag(18); - output.WriteString(CustomAffinity); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCustomAffinity) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomAffinity); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAffinityInfo other) { - if (other == null) { - return; - } - if (other.HasCustomAffinity) { - CustomAffinity = other.CustomAffinity; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - CustomAffinity = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - CustomAffinity = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A custom intent criterion. - /// A criterion of this type is only targetable. - /// - public sealed partial class CustomIntentInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomIntentInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[58]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomIntentInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomIntentInfo(CustomIntentInfo other) : this() { - customIntent_ = other.customIntent_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomIntentInfo Clone() { - return new CustomIntentInfo(this); - } - - /// Field number for the "custom_intent" field. - public const int CustomIntentFieldNumber = 2; - private string customIntent_; - /// - /// The CustomInterest resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomIntent { - get { return customIntent_ ?? ""; } - set { - customIntent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "custom_intent" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomIntent { - get { return customIntent_ != null; } - } - /// Clears the value of the "custom_intent" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomIntent() { - customIntent_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomIntentInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomIntentInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomIntent != other.CustomIntent) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCustomIntent) hash ^= CustomIntent.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCustomIntent) { - output.WriteRawTag(18); - output.WriteString(CustomIntent); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCustomIntent) { - output.WriteRawTag(18); - output.WriteString(CustomIntent); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCustomIntent) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomIntent); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomIntentInfo other) { - if (other == null) { - return; - } - if (other.HasCustomIntent) { - CustomIntent = other.CustomIntent; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - CustomIntent = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - CustomIntent = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A radius around a list of locations specified through a feed or assetSet. - /// - public sealed partial class LocationGroupInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationGroupInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[59]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationGroupInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationGroupInfo(LocationGroupInfo other) : this() { - _hasBits0 = other._hasBits0; - feed_ = other.feed_; - geoTargetConstants_ = other.geoTargetConstants_.Clone(); - radius_ = other.radius_; - radiusUnits_ = other.radiusUnits_; - feedItemSets_ = other.feedItemSets_.Clone(); - enableCustomerLevelLocationAssetSet_ = other.enableCustomerLevelLocationAssetSet_; - locationGroupAssetSets_ = other.locationGroupAssetSets_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationGroupInfo Clone() { - return new LocationGroupInfo(this); - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 5; - private string feed_; - /// - /// Feed specifying locations for targeting. Cannot be set with AssetSet - /// fields. This is required and must be set in CREATE operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_ ?? ""; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeed { - get { return feed_ != null; } - } - /// Clears the value of the "feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeed() { - feed_ = null; - } - - /// Field number for the "geo_target_constants" field. - public const int GeoTargetConstantsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_geoTargetConstants_codec - = pb::FieldCodec.ForString(50); - private readonly pbc::RepeatedField geoTargetConstants_ = new pbc::RepeatedField(); - /// - /// Geo target constant(s) restricting the scope of the geographic area within - /// the feed. Currently only one geo target constant is allowed. Cannot be set - /// with AssetSet fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargetConstants { - get { return geoTargetConstants_; } - } - - /// Field number for the "radius" field. - public const int RadiusFieldNumber = 7; - private long radius_; - /// - /// Distance in units specifying the radius around targeted locations. - /// This is required and must be set in CREATE operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Radius { - get { if ((_hasBits0 & 1) != 0) { return radius_; } else { return 0L; } } - set { - _hasBits0 |= 1; - radius_ = value; - } - } - /// Gets whether the "radius" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRadius { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "radius" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRadius() { - _hasBits0 &= ~1; - } - - /// Field number for the "radius_units" field. - public const int RadiusUnitsFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits radiusUnits_ = global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits.Unspecified; - /// - /// Unit of the radius. Miles and meters are supported for geo target - /// constants. Milli miles and meters are supported for feed item sets and - /// asset sets. This is required and must be set in CREATE operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits RadiusUnits { - get { return radiusUnits_; } - set { - radiusUnits_ = value; - } - } - - /// Field number for the "feed_item_sets" field. - public const int FeedItemSetsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_feedItemSets_codec - = pb::FieldCodec.ForString(66); - private readonly pbc::RepeatedField feedItemSets_ = new pbc::RepeatedField(); - /// - /// FeedItemSets whose FeedItems are targeted. If multiple IDs are specified, - /// then all items that appear in at least one set are targeted. This field - /// cannot be used with geo_target_constants. This is optional and can only be - /// set in CREATE operations. Cannot be set with AssetSet fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FeedItemSets { - get { return feedItemSets_; } - } - - /// Field number for the "enable_customer_level_location_asset_set" field. - public const int EnableCustomerLevelLocationAssetSetFieldNumber = 9; - private bool enableCustomerLevelLocationAssetSet_; - /// - /// Denotes that the latest customer level asset set is used for targeting. - /// Used with radius and radius_units. Cannot be used with - /// feed, geo target constants or feed item sets. When using asset sets, either - /// this field or location_group_asset_sets should be specified. Both cannot be - /// used at the same time. This can only be set in CREATE operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnableCustomerLevelLocationAssetSet { - get { if ((_hasBits0 & 2) != 0) { return enableCustomerLevelLocationAssetSet_; } else { return false; } } - set { - _hasBits0 |= 2; - enableCustomerLevelLocationAssetSet_ = value; - } - } - /// Gets whether the "enable_customer_level_location_asset_set" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEnableCustomerLevelLocationAssetSet { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "enable_customer_level_location_asset_set" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEnableCustomerLevelLocationAssetSet() { - _hasBits0 &= ~2; - } - - /// Field number for the "location_group_asset_sets" field. - public const int LocationGroupAssetSetsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_locationGroupAssetSets_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField locationGroupAssetSets_ = new pbc::RepeatedField(); - /// - /// AssetSets whose Assets are targeted. If multiple IDs are specified, then - /// all items that appear in at least one set are targeted. This field cannot - /// be used with feed, geo target constants or feed item sets. When using asset - /// sets, either this field or enable_customer_level_location_asset_set should - /// be specified. Both cannot be used at the same time. This can only be set - /// in CREATE operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LocationGroupAssetSets { - get { return locationGroupAssetSets_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationGroupInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationGroupInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Feed != other.Feed) return false; - if(!geoTargetConstants_.Equals(other.geoTargetConstants_)) return false; - if (Radius != other.Radius) return false; - if (RadiusUnits != other.RadiusUnits) return false; - if(!feedItemSets_.Equals(other.feedItemSets_)) return false; - if (EnableCustomerLevelLocationAssetSet != other.EnableCustomerLevelLocationAssetSet) return false; - if(!locationGroupAssetSets_.Equals(other.locationGroupAssetSets_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasFeed) hash ^= Feed.GetHashCode(); - hash ^= geoTargetConstants_.GetHashCode(); - if (HasRadius) hash ^= Radius.GetHashCode(); - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits.Unspecified) hash ^= RadiusUnits.GetHashCode(); - hash ^= feedItemSets_.GetHashCode(); - if (HasEnableCustomerLevelLocationAssetSet) hash ^= EnableCustomerLevelLocationAssetSet.GetHashCode(); - hash ^= locationGroupAssetSets_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) RadiusUnits); - } - if (HasFeed) { - output.WriteRawTag(42); - output.WriteString(Feed); - } - geoTargetConstants_.WriteTo(output, _repeated_geoTargetConstants_codec); - if (HasRadius) { - output.WriteRawTag(56); - output.WriteInt64(Radius); - } - feedItemSets_.WriteTo(output, _repeated_feedItemSets_codec); - if (HasEnableCustomerLevelLocationAssetSet) { - output.WriteRawTag(72); - output.WriteBool(EnableCustomerLevelLocationAssetSet); - } - locationGroupAssetSets_.WriteTo(output, _repeated_locationGroupAssetSets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) RadiusUnits); - } - if (HasFeed) { - output.WriteRawTag(42); - output.WriteString(Feed); - } - geoTargetConstants_.WriteTo(ref output, _repeated_geoTargetConstants_codec); - if (HasRadius) { - output.WriteRawTag(56); - output.WriteInt64(Radius); - } - feedItemSets_.WriteTo(ref output, _repeated_feedItemSets_codec); - if (HasEnableCustomerLevelLocationAssetSet) { - output.WriteRawTag(72); - output.WriteBool(EnableCustomerLevelLocationAssetSet); - } - locationGroupAssetSets_.WriteTo(ref output, _repeated_locationGroupAssetSets_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasFeed) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - size += geoTargetConstants_.CalculateSize(_repeated_geoTargetConstants_codec); - if (HasRadius) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Radius); - } - if (RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RadiusUnits); - } - size += feedItemSets_.CalculateSize(_repeated_feedItemSets_codec); - if (HasEnableCustomerLevelLocationAssetSet) { - size += 1 + 1; - } - size += locationGroupAssetSets_.CalculateSize(_repeated_locationGroupAssetSets_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationGroupInfo other) { - if (other == null) { - return; - } - if (other.HasFeed) { - Feed = other.Feed; - } - geoTargetConstants_.Add(other.geoTargetConstants_); - if (other.HasRadius) { - Radius = other.Radius; - } - if (other.RadiusUnits != global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits.Unspecified) { - RadiusUnits = other.RadiusUnits; - } - feedItemSets_.Add(other.feedItemSets_); - if (other.HasEnableCustomerLevelLocationAssetSet) { - EnableCustomerLevelLocationAssetSet = other.EnableCustomerLevelLocationAssetSet; - } - locationGroupAssetSets_.Add(other.locationGroupAssetSets_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 32: { - RadiusUnits = (global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits) input.ReadEnum(); - break; - } - case 42: { - Feed = input.ReadString(); - break; - } - case 50: { - geoTargetConstants_.AddEntriesFrom(input, _repeated_geoTargetConstants_codec); - break; - } - case 56: { - Radius = input.ReadInt64(); - break; - } - case 66: { - feedItemSets_.AddEntriesFrom(input, _repeated_feedItemSets_codec); - break; - } - case 72: { - EnableCustomerLevelLocationAssetSet = input.ReadBool(); - break; - } - case 82: { - locationGroupAssetSets_.AddEntriesFrom(input, _repeated_locationGroupAssetSets_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 32: { - RadiusUnits = (global::Google.Ads.GoogleAds.V12.Enums.LocationGroupRadiusUnitsEnum.Types.LocationGroupRadiusUnits) input.ReadEnum(); - break; - } - case 42: { - Feed = input.ReadString(); - break; - } - case 50: { - geoTargetConstants_.AddEntriesFrom(ref input, _repeated_geoTargetConstants_codec); - break; - } - case 56: { - Radius = input.ReadInt64(); - break; - } - case 66: { - feedItemSets_.AddEntriesFrom(ref input, _repeated_feedItemSets_codec); - break; - } - case 72: { - EnableCustomerLevelLocationAssetSet = input.ReadBool(); - break; - } - case 82: { - locationGroupAssetSets_.AddEntriesFrom(ref input, _repeated_locationGroupAssetSets_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A custom audience criterion. - /// - public sealed partial class CustomAudienceInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[60]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceInfo(CustomAudienceInfo other) : this() { - customAudience_ = other.customAudience_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceInfo Clone() { - return new CustomAudienceInfo(this); - } - - /// Field number for the "custom_audience" field. - public const int CustomAudienceFieldNumber = 1; - private string customAudience_ = ""; - /// - /// The CustomAudience resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomAudience { - get { return customAudience_; } - set { - customAudience_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomAudience != other.CustomAudience) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomAudience.Length != 0) hash ^= CustomAudience.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomAudience.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomAudience.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomAudience.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomAudience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceInfo other) { - if (other == null) { - return; - } - if (other.CustomAudience.Length != 0) { - CustomAudience = other.CustomAudience; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomAudience = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomAudience = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A combined audience criterion. - /// - public sealed partial class CombinedAudienceInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CombinedAudienceInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[61]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudienceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudienceInfo(CombinedAudienceInfo other) : this() { - combinedAudience_ = other.combinedAudience_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CombinedAudienceInfo Clone() { - return new CombinedAudienceInfo(this); - } - - /// Field number for the "combined_audience" field. - public const int CombinedAudienceFieldNumber = 1; - private string combinedAudience_ = ""; - /// - /// The CombinedAudience resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CombinedAudience { - get { return combinedAudience_; } - set { - combinedAudience_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CombinedAudienceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CombinedAudienceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CombinedAudience != other.CombinedAudience) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CombinedAudience.Length != 0) hash ^= CombinedAudience.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CombinedAudience.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CombinedAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CombinedAudience.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CombinedAudience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CombinedAudience.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CombinedAudience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CombinedAudienceInfo other) { - if (other == null) { - return; - } - if (other.CombinedAudience.Length != 0) { - CombinedAudience = other.CombinedAudience; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CombinedAudience = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CombinedAudience = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An audience criterion. - /// - public sealed partial class AudienceInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudienceInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[62]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInfo(AudienceInfo other) : this() { - audience_ = other.audience_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AudienceInfo Clone() { - return new AudienceInfo(this); - } - - /// Field number for the "audience" field. - public const int AudienceFieldNumber = 1; - private string audience_ = ""; - /// - /// The Audience resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Audience { - get { return audience_; } - set { - audience_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AudienceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AudienceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Audience != other.Audience) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Audience.Length != 0) hash ^= Audience.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Audience.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Audience.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Audience); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Audience.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Audience); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AudienceInfo other) { - if (other == null) { - return; - } - if (other.Audience.Length != 0) { - Audience = other.Audience; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Audience = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Audience = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A Smart Campaign keyword theme. - /// - public sealed partial class KeywordThemeInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordThemeInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor.MessageTypes[63]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordThemeInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordThemeInfo(KeywordThemeInfo other) : this() { - switch (other.KeywordThemeCase) { - case KeywordThemeOneofCase.KeywordThemeConstant: - KeywordThemeConstant = other.KeywordThemeConstant; - break; - case KeywordThemeOneofCase.FreeFormKeywordTheme: - FreeFormKeywordTheme = other.FreeFormKeywordTheme; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordThemeInfo Clone() { - return new KeywordThemeInfo(this); - } - - /// Field number for the "keyword_theme_constant" field. - public const int KeywordThemeConstantFieldNumber = 1; - /// - /// The resource name of a Smart Campaign keyword theme constant. - /// `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordThemeConstant { - get { return keywordThemeCase_ == KeywordThemeOneofCase.KeywordThemeConstant ? (string) keywordTheme_ : ""; } - set { - keywordTheme_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - keywordThemeCase_ = KeywordThemeOneofCase.KeywordThemeConstant; - } - } - - /// Field number for the "free_form_keyword_theme" field. - public const int FreeFormKeywordThemeFieldNumber = 2; - /// - /// Free-form text to be matched to a Smart Campaign keyword theme constant - /// on a best-effort basis. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FreeFormKeywordTheme { - get { return keywordThemeCase_ == KeywordThemeOneofCase.FreeFormKeywordTheme ? (string) keywordTheme_ : ""; } - set { - keywordTheme_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - keywordThemeCase_ = KeywordThemeOneofCase.FreeFormKeywordTheme; - } - } - - private object keywordTheme_; - /// Enum of possible cases for the "keyword_theme" oneof. - public enum KeywordThemeOneofCase { - None = 0, - KeywordThemeConstant = 1, - FreeFormKeywordTheme = 2, - } - private KeywordThemeOneofCase keywordThemeCase_ = KeywordThemeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordThemeOneofCase KeywordThemeCase { - get { return keywordThemeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordTheme() { - keywordThemeCase_ = KeywordThemeOneofCase.None; - keywordTheme_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordThemeInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordThemeInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordThemeConstant != other.KeywordThemeConstant) return false; - if (FreeFormKeywordTheme != other.FreeFormKeywordTheme) return false; - if (KeywordThemeCase != other.KeywordThemeCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (keywordThemeCase_ == KeywordThemeOneofCase.KeywordThemeConstant) hash ^= KeywordThemeConstant.GetHashCode(); - if (keywordThemeCase_ == KeywordThemeOneofCase.FreeFormKeywordTheme) hash ^= FreeFormKeywordTheme.GetHashCode(); - hash ^= (int) keywordThemeCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (keywordThemeCase_ == KeywordThemeOneofCase.KeywordThemeConstant) { - output.WriteRawTag(10); - output.WriteString(KeywordThemeConstant); - } - if (keywordThemeCase_ == KeywordThemeOneofCase.FreeFormKeywordTheme) { - output.WriteRawTag(18); - output.WriteString(FreeFormKeywordTheme); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (keywordThemeCase_ == KeywordThemeOneofCase.KeywordThemeConstant) { - output.WriteRawTag(10); - output.WriteString(KeywordThemeConstant); - } - if (keywordThemeCase_ == KeywordThemeOneofCase.FreeFormKeywordTheme) { - output.WriteRawTag(18); - output.WriteString(FreeFormKeywordTheme); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (keywordThemeCase_ == KeywordThemeOneofCase.KeywordThemeConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordThemeConstant); - } - if (keywordThemeCase_ == KeywordThemeOneofCase.FreeFormKeywordTheme) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FreeFormKeywordTheme); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordThemeInfo other) { - if (other == null) { - return; - } - switch (other.KeywordThemeCase) { - case KeywordThemeOneofCase.KeywordThemeConstant: - KeywordThemeConstant = other.KeywordThemeConstant; - break; - case KeywordThemeOneofCase.FreeFormKeywordTheme: - FreeFormKeywordTheme = other.FreeFormKeywordTheme; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KeywordThemeConstant = input.ReadString(); - break; - } - case 18: { - FreeFormKeywordTheme = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KeywordThemeConstant = input.ReadString(); - break; - } - case 18: { - FreeFormKeywordTheme = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CriterionCategoryAvailability.g.cs b/Google.Ads.GoogleAds/src/V12/CriterionCategoryAvailability.g.cs deleted file mode 100755 index 6be4c3ba7..000000000 --- a/Google.Ads.GoogleAds/src/V12/CriterionCategoryAvailability.g.cs +++ /dev/null @@ -1,946 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/criterion_category_availability.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/criterion_category_availability.proto - public static partial class CriterionCategoryAvailabilityReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/criterion_category_availability.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CriterionCategoryAvailabilityReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2NyaXRlcmlvbl9j", - "YXRlZ29yeV9hdmFpbGFiaWxpdHkucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24aQWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9hZHZlcnRpc2luZ19jaGFubmVsX3N1Yl90eXBlLnByb3RvGj1nb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWR2ZXJ0aXNpbmdfY2hhbm5lbF90", - "eXBlLnByb3RvGlFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3Jp", - "dGVyaW9uX2NhdGVnb3J5X2NoYW5uZWxfYXZhaWxhYmlsaXR5X21vZGUucHJv", - "dG8aUGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jcml0ZXJpb25f", - "Y2F0ZWdvcnlfbG9jYWxlX2F2YWlsYWJpbGl0eV9tb2RlLnByb3RvIs0BCh1D", - "cml0ZXJpb25DYXRlZ29yeUF2YWlsYWJpbGl0eRJWCgdjaGFubmVsGAEgASgL", - "MkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Dcml0ZXJpb25D", - "YXRlZ29yeUNoYW5uZWxBdmFpbGFiaWxpdHkSVAoGbG9jYWxlGAIgAygLMkQu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Dcml0ZXJpb25DYXRl", - "Z29yeUxvY2FsZUF2YWlsYWJpbGl0eSKBBAokQ3JpdGVyaW9uQ2F0ZWdvcnlD", - "aGFubmVsQXZhaWxhYmlsaXR5EpABChFhdmFpbGFiaWxpdHlfbW9kZRgBIAEo", - "DjJ1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Dcml0ZXJpb25D", - "YXRlZ29yeUNoYW5uZWxBdmFpbGFiaWxpdHlNb2RlRW51bS5Dcml0ZXJpb25D", - "YXRlZ29yeUNoYW5uZWxBdmFpbGFiaWxpdHlNb2RlEnMKGGFkdmVydGlzaW5n", - "X2NoYW5uZWxfdHlwZRgCIAEoDjJRLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5BZHZlcnRpc2luZ0NoYW5uZWxUeXBlRW51bS5BZHZlcnRpc2lu", - "Z0NoYW5uZWxUeXBlEn0KHGFkdmVydGlzaW5nX2NoYW5uZWxfc3ViX3R5cGUY", - "AyADKA4yVy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQWR2ZXJ0", - "aXNpbmdDaGFubmVsU3ViVHlwZUVudW0uQWR2ZXJ0aXNpbmdDaGFubmVsU3Vi", - "VHlwZRItCiBpbmNsdWRlX2RlZmF1bHRfY2hhbm5lbF9zdWJfdHlwZRgFIAEo", - "CEgAiAEBQiMKIV9pbmNsdWRlX2RlZmF1bHRfY2hhbm5lbF9zdWJfdHlwZSKQ", - "AgojQ3JpdGVyaW9uQ2F0ZWdvcnlMb2NhbGVBdmFpbGFiaWxpdHkSjgEKEWF2", - "YWlsYWJpbGl0eV9tb2RlGAEgASgOMnMuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLkNyaXRlcmlvbkNhdGVnb3J5TG9jYWxlQXZhaWxhYmlsaXR5", - "TW9kZUVudW0uQ3JpdGVyaW9uQ2F0ZWdvcnlMb2NhbGVBdmFpbGFiaWxpdHlN", - "b2RlEhkKDGNvdW50cnlfY29kZRgEIAEoCUgAiAEBEhoKDWxhbmd1YWdlX2Nv", - "ZGUYBSABKAlIAYgBAUIPCg1fY291bnRyeV9jb2RlQhAKDl9sYW5ndWFnZV9j", - "b2RlQoICCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbkIi", - "Q3JpdGVyaW9uQ2F0ZWdvcnlBdmFpbGFiaWxpdHlQcm90b1ABWkVnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2NvbW1vbjtjb21tb26iAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuQ29tbW9uygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXENvbW1v", - "buoCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6Q29tbW9uYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryAvailability), global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryAvailability.Parser, new[]{ "Channel", "Locale" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryChannelAvailability), global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryChannelAvailability.Parser, new[]{ "AvailabilityMode", "AdvertisingChannelType", "AdvertisingChannelSubType", "IncludeDefaultChannelSubType" }, new[]{ "IncludeDefaultChannelSubType" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryLocaleAvailability), global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryLocaleAvailability.Parser, new[]{ "AvailabilityMode", "CountryCode", "LanguageCode" }, new[]{ "CountryCode", "LanguageCode" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Information of category availability, per advertising channel. - /// - public sealed partial class CriterionCategoryAvailability : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionCategoryAvailability()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryAvailabilityReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryAvailability() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryAvailability(CriterionCategoryAvailability other) : this() { - channel_ = other.channel_ != null ? other.channel_.Clone() : null; - locale_ = other.locale_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryAvailability Clone() { - return new CriterionCategoryAvailability(this); - } - - /// Field number for the "channel" field. - public const int ChannelFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryChannelAvailability channel_; - /// - /// Channel types and subtypes that are available to the category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryChannelAvailability Channel { - get { return channel_; } - set { - channel_ = value; - } - } - - /// Field number for the "locale" field. - public const int LocaleFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_locale_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryLocaleAvailability.Parser); - private readonly pbc::RepeatedField locale_ = new pbc::RepeatedField(); - /// - /// Locales that are available to the category for the channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Locale { - get { return locale_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionCategoryAvailability); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionCategoryAvailability other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Channel, other.Channel)) return false; - if(!locale_.Equals(other.locale_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (channel_ != null) hash ^= Channel.GetHashCode(); - hash ^= locale_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (channel_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Channel); - } - locale_.WriteTo(output, _repeated_locale_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (channel_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Channel); - } - locale_.WriteTo(ref output, _repeated_locale_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (channel_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Channel); - } - size += locale_.CalculateSize(_repeated_locale_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionCategoryAvailability other) { - if (other == null) { - return; - } - if (other.channel_ != null) { - if (channel_ == null) { - Channel = new global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryChannelAvailability(); - } - Channel.MergeFrom(other.Channel); - } - locale_.Add(other.locale_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (channel_ == null) { - Channel = new global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryChannelAvailability(); - } - input.ReadMessage(Channel); - break; - } - case 18: { - locale_.AddEntriesFrom(input, _repeated_locale_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (channel_ == null) { - Channel = new global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryChannelAvailability(); - } - input.ReadMessage(Channel); - break; - } - case 18: { - locale_.AddEntriesFrom(ref input, _repeated_locale_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Information of advertising channel type and subtypes a category is available - /// in. - /// - public sealed partial class CriterionCategoryChannelAvailability : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionCategoryChannelAvailability()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryAvailabilityReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryChannelAvailability() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryChannelAvailability(CriterionCategoryChannelAvailability other) : this() { - _hasBits0 = other._hasBits0; - availabilityMode_ = other.availabilityMode_; - advertisingChannelType_ = other.advertisingChannelType_; - advertisingChannelSubType_ = other.advertisingChannelSubType_.Clone(); - includeDefaultChannelSubType_ = other.includeDefaultChannelSubType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryChannelAvailability Clone() { - return new CriterionCategoryChannelAvailability(this); - } - - /// Field number for the "availability_mode" field. - public const int AvailabilityModeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode availabilityMode_ = global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode.Unspecified; - /// - /// Format of the channel availability. Can be ALL_CHANNELS (the rest of the - /// fields will not be set), CHANNEL_TYPE (only advertising_channel_type type - /// will be set, the category is available to all sub types under it) or - /// CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type, - /// advertising_channel_sub_type, and include_default_channel_sub_type will all - /// be set). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode AvailabilityMode { - get { return availabilityMode_; } - set { - availabilityMode_ = value; - } - } - - /// Field number for the "advertising_channel_type" field. - public const int AdvertisingChannelTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType advertisingChannelType_ = global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified; - /// - /// Channel type the category is available to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType AdvertisingChannelType { - get { return advertisingChannelType_; } - set { - advertisingChannelType_ = value; - } - } - - /// Field number for the "advertising_channel_sub_type" field. - public const int AdvertisingChannelSubTypeFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_advertisingChannelSubType_codec - = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelSubTypeEnum.Types.AdvertisingChannelSubType) x); - private readonly pbc::RepeatedField advertisingChannelSubType_ = new pbc::RepeatedField(); - /// - /// Channel subtypes under the channel type the category is available to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdvertisingChannelSubType { - get { return advertisingChannelSubType_; } - } - - /// Field number for the "include_default_channel_sub_type" field. - public const int IncludeDefaultChannelSubTypeFieldNumber = 5; - private bool includeDefaultChannelSubType_; - /// - /// Whether default channel sub type is included. For example, - /// advertising_channel_type being DISPLAY and include_default_channel_sub_type - /// being false means that the default display campaign where channel sub type - /// is not set is not included in this availability configuration. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeDefaultChannelSubType { - get { if ((_hasBits0 & 1) != 0) { return includeDefaultChannelSubType_; } else { return false; } } - set { - _hasBits0 |= 1; - includeDefaultChannelSubType_ = value; - } - } - /// Gets whether the "include_default_channel_sub_type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIncludeDefaultChannelSubType { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "include_default_channel_sub_type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIncludeDefaultChannelSubType() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionCategoryChannelAvailability); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionCategoryChannelAvailability other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AvailabilityMode != other.AvailabilityMode) return false; - if (AdvertisingChannelType != other.AdvertisingChannelType) return false; - if(!advertisingChannelSubType_.Equals(other.advertisingChannelSubType_)) return false; - if (IncludeDefaultChannelSubType != other.IncludeDefaultChannelSubType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode.Unspecified) hash ^= AvailabilityMode.GetHashCode(); - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) hash ^= AdvertisingChannelType.GetHashCode(); - hash ^= advertisingChannelSubType_.GetHashCode(); - if (HasIncludeDefaultChannelSubType) hash ^= IncludeDefaultChannelSubType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) AvailabilityMode); - } - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) AdvertisingChannelType); - } - advertisingChannelSubType_.WriteTo(output, _repeated_advertisingChannelSubType_codec); - if (HasIncludeDefaultChannelSubType) { - output.WriteRawTag(40); - output.WriteBool(IncludeDefaultChannelSubType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) AvailabilityMode); - } - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) AdvertisingChannelType); - } - advertisingChannelSubType_.WriteTo(ref output, _repeated_advertisingChannelSubType_codec); - if (HasIncludeDefaultChannelSubType) { - output.WriteRawTag(40); - output.WriteBool(IncludeDefaultChannelSubType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvailabilityMode); - } - if (AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdvertisingChannelType); - } - size += advertisingChannelSubType_.CalculateSize(_repeated_advertisingChannelSubType_codec); - if (HasIncludeDefaultChannelSubType) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionCategoryChannelAvailability other) { - if (other == null) { - return; - } - if (other.AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode.Unspecified) { - AvailabilityMode = other.AvailabilityMode; - } - if (other.AdvertisingChannelType != global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType.Unspecified) { - AdvertisingChannelType = other.AdvertisingChannelType; - } - advertisingChannelSubType_.Add(other.advertisingChannelSubType_); - if (other.HasIncludeDefaultChannelSubType) { - IncludeDefaultChannelSubType = other.IncludeDefaultChannelSubType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - AvailabilityMode = (global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode) input.ReadEnum(); - break; - } - case 16: { - AdvertisingChannelType = (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType) input.ReadEnum(); - break; - } - case 26: - case 24: { - advertisingChannelSubType_.AddEntriesFrom(input, _repeated_advertisingChannelSubType_codec); - break; - } - case 40: { - IncludeDefaultChannelSubType = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - AvailabilityMode = (global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode) input.ReadEnum(); - break; - } - case 16: { - AdvertisingChannelType = (global::Google.Ads.GoogleAds.V12.Enums.AdvertisingChannelTypeEnum.Types.AdvertisingChannelType) input.ReadEnum(); - break; - } - case 26: - case 24: { - advertisingChannelSubType_.AddEntriesFrom(ref input, _repeated_advertisingChannelSubType_codec); - break; - } - case 40: { - IncludeDefaultChannelSubType = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Information about which locales a category is available in. - /// - public sealed partial class CriterionCategoryLocaleAvailability : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionCategoryLocaleAvailability()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryAvailabilityReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryLocaleAvailability() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryLocaleAvailability(CriterionCategoryLocaleAvailability other) : this() { - availabilityMode_ = other.availabilityMode_; - countryCode_ = other.countryCode_; - languageCode_ = other.languageCode_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryLocaleAvailability Clone() { - return new CriterionCategoryLocaleAvailability(this); - } - - /// Field number for the "availability_mode" field. - public const int AvailabilityModeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode availabilityMode_ = global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode.Unspecified; - /// - /// Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and - /// language will be empty), COUNTRY (only country will be set), LANGUAGE (only - /// language wil be set), COUNTRY_AND_LANGUAGE (both country and language will - /// be set). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode AvailabilityMode { - get { return availabilityMode_; } - set { - availabilityMode_ = value; - } - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 4; - private string countryCode_; - /// - /// Code of the country. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 5; - private string languageCode_; - /// - /// Code of the language. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_ ?? ""; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguageCode { - get { return languageCode_ != null; } - } - /// Clears the value of the "language_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguageCode() { - languageCode_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionCategoryLocaleAvailability); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionCategoryLocaleAvailability other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AvailabilityMode != other.AvailabilityMode) return false; - if (CountryCode != other.CountryCode) return false; - if (LanguageCode != other.LanguageCode) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode.Unspecified) hash ^= AvailabilityMode.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasLanguageCode) hash ^= LanguageCode.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) AvailabilityMode); - } - if (HasCountryCode) { - output.WriteRawTag(34); - output.WriteString(CountryCode); - } - if (HasLanguageCode) { - output.WriteRawTag(42); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) AvailabilityMode); - } - if (HasCountryCode) { - output.WriteRawTag(34); - output.WriteString(CountryCode); - } - if (HasLanguageCode) { - output.WriteRawTag(42); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvailabilityMode); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasLanguageCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionCategoryLocaleAvailability other) { - if (other == null) { - return; - } - if (other.AvailabilityMode != global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode.Unspecified) { - AvailabilityMode = other.AvailabilityMode; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasLanguageCode) { - LanguageCode = other.LanguageCode; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - AvailabilityMode = (global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode) input.ReadEnum(); - break; - } - case 34: { - CountryCode = input.ReadString(); - break; - } - case 42: { - LanguageCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - AvailabilityMode = (global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode) input.ReadEnum(); - break; - } - case 34: { - CountryCode = input.ReadString(); - break; - } - case 42: { - LanguageCode = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CriterionCategoryChannelAvailabilityMode.g.cs b/Google.Ads.GoogleAds/src/V12/CriterionCategoryChannelAvailabilityMode.g.cs deleted file mode 100755 index c721fd243..000000000 --- a/Google.Ads.GoogleAds/src/V12/CriterionCategoryChannelAvailabilityMode.g.cs +++ /dev/null @@ -1,249 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/criterion_category_channel_availability_mode.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/criterion_category_channel_availability_mode.proto - public static partial class CriterionCategoryChannelAvailabilityModeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/criterion_category_channel_availability_mode.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CriterionCategoryChannelAvailabilityModeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ClFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3JpdGVyaW9uX2Nh", - "dGVnb3J5X2NoYW5uZWxfYXZhaWxhYmlsaXR5X21vZGUucHJvdG8SHmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyLUAQosQ3JpdGVyaW9uQ2F0ZWdv", - "cnlDaGFubmVsQXZhaWxhYmlsaXR5TW9kZUVudW0iowEKKENyaXRlcmlvbkNh", - "dGVnb3J5Q2hhbm5lbEF2YWlsYWJpbGl0eU1vZGUSDwoLVU5TUEVDSUZJRUQQ", - "ABILCgdVTktOT1dOEAESEAoMQUxMX0NIQU5ORUxTEAISIQodQ0hBTk5FTF9U", - "WVBFX0FORF9BTExfU1VCVFlQRVMQAxIkCiBDSEFOTkVMX1RZUEVfQU5EX1NV", - "QlNFVF9TVUJUWVBFUxAEQocCCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQi1Dcml0ZXJpb25DYXRlZ29yeUNoYW5uZWxBdmFpbGFiaWxp", - "dHlNb2RlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoC", - "Hkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum), global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeEnum.Types.CriterionCategoryChannelAvailabilityMode) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Describes channel availability mode for a criterion availability - whether - /// the availability is meant to include all advertising channels, or a - /// particular channel with all its channel subtypes, or a channel with a certain - /// subset of channel subtypes. - /// - public sealed partial class CriterionCategoryChannelAvailabilityModeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionCategoryChannelAvailabilityModeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryChannelAvailabilityModeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryChannelAvailabilityModeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryChannelAvailabilityModeEnum(CriterionCategoryChannelAvailabilityModeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryChannelAvailabilityModeEnum Clone() { - return new CriterionCategoryChannelAvailabilityModeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionCategoryChannelAvailabilityModeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionCategoryChannelAvailabilityModeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionCategoryChannelAvailabilityModeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CriterionCategoryChannelAvailabilityModeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing the possible CriterionCategoryChannelAvailabilityMode. - /// - public enum CriterionCategoryChannelAvailabilityMode { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The category is available to campaigns of all channel types and subtypes. - /// - [pbr::OriginalName("ALL_CHANNELS")] AllChannels = 2, - /// - /// The category is available to campaigns of a specific channel type, - /// including all subtypes under it. - /// - [pbr::OriginalName("CHANNEL_TYPE_AND_ALL_SUBTYPES")] ChannelTypeAndAllSubtypes = 3, - /// - /// The category is available to campaigns of a specific channel type and - /// subtype(s). - /// - [pbr::OriginalName("CHANNEL_TYPE_AND_SUBSET_SUBTYPES")] ChannelTypeAndSubsetSubtypes = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CriterionCategoryLocaleAvailabilityMode.g.cs b/Google.Ads.GoogleAds/src/V12/CriterionCategoryLocaleAvailabilityMode.g.cs deleted file mode 100755 index b3f28a051..000000000 --- a/Google.Ads.GoogleAds/src/V12/CriterionCategoryLocaleAvailabilityMode.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/criterion_category_locale_availability_mode.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/criterion_category_locale_availability_mode.proto - public static partial class CriterionCategoryLocaleAvailabilityModeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/criterion_category_locale_availability_mode.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CriterionCategoryLocaleAvailabilityModeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "ClBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3JpdGVyaW9uX2Nh", - "dGVnb3J5X2xvY2FsZV9hdmFpbGFiaWxpdHlfbW9kZS5wcm90bxIeZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zIuEBCitDcml0ZXJpb25DYXRlZ29y", - "eUxvY2FsZUF2YWlsYWJpbGl0eU1vZGVFbnVtIrEBCidDcml0ZXJpb25DYXRl", - "Z29yeUxvY2FsZUF2YWlsYWJpbGl0eU1vZGUSDwoLVU5TUEVDSUZJRUQQABIL", - "CgdVTktOT1dOEAESDwoLQUxMX0xPQ0FMRVMQAhIdChlDT1VOVFJZX0FORF9B", - "TExfTEFOR1VBR0VTEAMSHgoaTEFOR1VBR0VfQU5EX0FMTF9DT1VOVFJJRVMQ", - "BBIYChRDT1VOVFJZX0FORF9MQU5HVUFHRRAFQoYCCiJjb20uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zQixDcml0ZXJpb25DYXRlZ29yeUxvY2Fs", - "ZUF2YWlsYWJpbGl0eU1vZGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2Vu", - "dW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIe", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum), global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeEnum.Types.CriterionCategoryLocaleAvailabilityMode) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Describes locale availability mode for a criterion availability - whether - /// it's available globally, or a particular country with all languages, or a - /// particular language with all countries, or a country-language pair. - /// - public sealed partial class CriterionCategoryLocaleAvailabilityModeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionCategoryLocaleAvailabilityModeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CriterionCategoryLocaleAvailabilityModeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryLocaleAvailabilityModeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryLocaleAvailabilityModeEnum(CriterionCategoryLocaleAvailabilityModeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionCategoryLocaleAvailabilityModeEnum Clone() { - return new CriterionCategoryLocaleAvailabilityModeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionCategoryLocaleAvailabilityModeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionCategoryLocaleAvailabilityModeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionCategoryLocaleAvailabilityModeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CriterionCategoryLocaleAvailabilityModeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing the possible CriterionCategoryLocaleAvailabilityMode. - /// - public enum CriterionCategoryLocaleAvailabilityMode { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The category is available to campaigns of all locales. - /// - [pbr::OriginalName("ALL_LOCALES")] AllLocales = 2, - /// - /// The category is available to campaigns within a list of countries, - /// regardless of language. - /// - [pbr::OriginalName("COUNTRY_AND_ALL_LANGUAGES")] CountryAndAllLanguages = 3, - /// - /// The category is available to campaigns within a list of languages, - /// regardless of country. - /// - [pbr::OriginalName("LANGUAGE_AND_ALL_COUNTRIES")] LanguageAndAllCountries = 4, - /// - /// The category is available to campaigns within a list of country, language - /// pairs. - /// - [pbr::OriginalName("COUNTRY_AND_LANGUAGE")] CountryAndLanguage = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CriterionError.g.cs b/Google.Ads.GoogleAds/src/V12/CriterionError.g.cs deleted file mode 100755 index a1134f4c0..000000000 --- a/Google.Ads.GoogleAds/src/V12/CriterionError.g.cs +++ /dev/null @@ -1,931 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/criterion_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/criterion_error.proto - public static partial class CriterionErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/criterion_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CriterionErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NyaXRlcmlvbl9l", - "cnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycyKr", - "KwoSQ3JpdGVyaW9uRXJyb3JFbnVtIpQrCg5Dcml0ZXJpb25FcnJvchIPCgtV", - "TlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIaChZDT05DUkVURV9UWVBFX1JF", - "UVVJUkVEEAISHQoZSU5WQUxJRF9FWENMVURFRF9DQVRFR09SWRADEhgKFElO", - "VkFMSURfS0VZV09SRF9URVhUEAQSGQoVS0VZV09SRF9URVhUX1RPT19MT05H", - "EAUSHgoaS0VZV09SRF9IQVNfVE9PX01BTllfV09SRFMQBhIdChlLRVlXT1JE", - "X0hBU19JTlZBTElEX0NIQVJTEAcSGQoVSU5WQUxJRF9QTEFDRU1FTlRfVVJM", - "EAgSFQoRSU5WQUxJRF9VU0VSX0xJU1QQCRIZChVJTlZBTElEX1VTRVJfSU5U", - "RVJFU1QQChIkCiBJTlZBTElEX0ZPUk1BVF9GT1JfUExBQ0VNRU5UX1VSTBAL", - "Eh0KGVBMQUNFTUVOVF9VUkxfSVNfVE9PX0xPTkcQDBIiCh5QTEFDRU1FTlRf", - "VVJMX0hBU19JTExFR0FMX0NIQVIQDRIsCihQTEFDRU1FTlRfVVJMX0hBU19N", - "VUxUSVBMRV9TSVRFU19JTl9MSU5FEA4SOQo1UExBQ0VNRU5UX0lTX05PVF9B", - "VkFJTEFCTEVfRk9SX1RBUkdFVElOR19PUl9FWENMVVNJT04QDxIWChJJTlZB", - "TElEX1RPUElDX1BBVEgQEBIeChpJTlZBTElEX1lPVVRVQkVfQ0hBTk5FTF9J", - "RBAREhwKGElOVkFMSURfWU9VVFVCRV9WSURFT19JRBASEicKI1lPVVRVQkVf", - "VkVSVElDQUxfQ0hBTk5FTF9ERVBSRUNBVEVEEBMSKgomWU9VVFVCRV9ERU1P", - "R1JBUEhJQ19DSEFOTkVMX0RFUFJFQ0FURUQQFBIbChdZT1VUVUJFX1VSTF9V", - "TlNVUFBPUlRFRBAVEiAKHENBTk5PVF9FWENMVURFX0NSSVRFUklBX1RZUEUQ", - "FhIcChhDQU5OT1RfQUREX0NSSVRFUklBX1RZUEUQFxIkCiBDQU5OT1RfRVhD", - "TFVERV9TSU1JTEFSX1VTRVJfTElTVBAaEh8KG0NBTk5PVF9BRERfQ0xPU0VE", - "X1VTRVJfTElTVBAbEjoKNkNBTk5PVF9BRERfRElTUExBWV9PTkxZX0xJU1RT", - "X1RPX1NFQVJDSF9PTkxZX0NBTVBBSUdOUxAcEjUKMUNBTk5PVF9BRERfRElT", - "UExBWV9PTkxZX0xJU1RTX1RPX1NFQVJDSF9DQU1QQUlHTlMQHRI3CjNDQU5O", - "T1RfQUREX0RJU1BMQVlfT05MWV9MSVNUU19UT19TSE9QUElOR19DQU1QQUlH", - "TlMQHhIxCi1DQU5OT1RfQUREX1VTRVJfSU5URVJFU1RTX1RPX1NFQVJDSF9D", - "QU1QQUlHTlMQHxI5CjVDQU5OT1RfU0VUX0JJRFNfT05fQ1JJVEVSSU9OX1RZ", - "UEVfSU5fU0VBUkNIX0NBTVBBSUdOUxAgEjcKM0NBTk5PVF9BRERfVVJMU19U", - "T19DUklURVJJT05fVFlQRV9GT1JfQ0FNUEFJR05fVFlQRRAhEh0KGUlOVkFM", - "SURfQ09NQklORURfQVVESUVOQ0UQehIbChdJTlZBTElEX0NVU1RPTV9BRkZJ", - "TklUWRBgEhkKFUlOVkFMSURfQ1VTVE9NX0lOVEVOVBBhEhsKF0lOVkFMSURf", - "Q1VTVE9NX0FVRElFTkNFEHkSFgoSSU5WQUxJRF9JUF9BRERSRVNTECISFQoR", - "SU5WQUxJRF9JUF9GT1JNQVQQIxIWChJJTlZBTElEX01PQklMRV9BUFAQJBIf", - "ChtJTlZBTElEX01PQklMRV9BUFBfQ0FURUdPUlkQJRIYChRJTlZBTElEX0NS", - "SVRFUklPTl9JRBAmEhsKF0NBTk5PVF9UQVJHRVRfQ1JJVEVSSU9OECcSJAog", - "Q0FOTk9UX1RBUkdFVF9PQlNPTEVURV9DUklURVJJT04QKBIiCh5DUklURVJJ", - "T05fSURfQU5EX1RZUEVfTUlTTUFUQ0gQKRIcChhJTlZBTElEX1BST1hJTUlU", - "WV9SQURJVVMQKhIiCh5JTlZBTElEX1BST1hJTUlUWV9SQURJVVNfVU5JVFMQ", - "KxIgChxJTlZBTElEX1NUUkVFVEFERFJFU1NfTEVOR1RIECwSGwoXSU5WQUxJ", - "RF9DSVRZTkFNRV9MRU5HVEgQLRIdChlJTlZBTElEX1JFR0lPTkNPREVfTEVO", - "R1RIEC4SHQoZSU5WQUxJRF9SRUdJT05OQU1FX0xFTkdUSBAvEh0KGUlOVkFM", - "SURfUE9TVEFMQ09ERV9MRU5HVEgQMBIYChRJTlZBTElEX0NPVU5UUllfQ09E", - "RRAxEhQKEElOVkFMSURfTEFUSVRVREUQMhIVChFJTlZBTElEX0xPTkdJVFVE", - "RRAzEjYKMlBST1hJTUlUWV9HRU9QT0lOVF9BTkRfQUREUkVTU19CT1RIX0NB", - "Tk5PVF9CRV9OVUxMEDQSHQoZSU5WQUxJRF9QUk9YSU1JVFlfQUREUkVTUxA1", - "EhwKGElOVkFMSURfVVNFUl9ET01BSU5fTkFNRRA2EiAKHENSSVRFUklPTl9Q", - "QVJBTUVURVJfVE9PX0xPTkcQNxImCiJBRF9TQ0hFRFVMRV9USU1FX0lOVEVS", - "VkFMU19PVkVSTEFQEDgSMgouQURfU0NIRURVTEVfSU5URVJWQUxfQ0FOTk9U", - "X1NQQU5fTVVMVElQTEVfREFZUxA5EiUKIUFEX1NDSEVEVUxFX0lOVkFMSURf", - "VElNRV9JTlRFUlZBTBA6EjAKLEFEX1NDSEVEVUxFX0VYQ0VFREVEX0lOVEVS", - "VkFMU19QRVJfREFZX0xJTUlUEDsSLworQURfU0NIRURVTEVfQ1JJVEVSSU9O", - "X0lEX01JU01BVENISU5HX0ZJRUxEUxA8EiQKIENBTk5PVF9CSURfTU9ESUZZ", - "X0NSSVRFUklPTl9UWVBFED0SMgouQ0FOTk9UX0JJRF9NT0RJRllfQ1JJVEVS", - "SU9OX0NBTVBBSUdOX09QVEVEX09VVBA+EigKJENBTk5PVF9CSURfTU9ESUZZ", - "X05FR0FUSVZFX0NSSVRFUklPThA/Eh8KG0JJRF9NT0RJRklFUl9BTFJFQURZ", - "X0VYSVNUUxBAEhcKE0ZFRURfSURfTk9UX0FMTE9XRUQQQRIoCiRBQ0NPVU5U", - "X0lORUxJR0lCTEVfRk9SX0NSSVRFUklBX1RZUEUQQhIuCipDUklURVJJQV9U", - "WVBFX0lOVkFMSURfRk9SX0JJRERJTkdfU1RSQVRFR1kQQxIcChhDQU5OT1Rf", - "RVhDTFVERV9DUklURVJJT04QRBIbChdDQU5OT1RfUkVNT1ZFX0NSSVRFUklP", - "ThBFEiQKIElOVkFMSURfUFJPRFVDVF9CSURESU5HX0NBVEVHT1JZEEwSHAoY", - "TUlTU0lOR19TSE9QUElOR19TRVRUSU5HEE0SHQoZSU5WQUxJRF9NQVRDSElO", - "R19GVU5DVElPThBOEh8KG0xPQ0FUSU9OX0ZJTFRFUl9OT1RfQUxMT1dFRBBP", - "EiQKIElOVkFMSURfRkVFRF9GT1JfTE9DQVRJT05fRklMVEVSEGISGwoXTE9D", - "QVRJT05fRklMVEVSX0lOVkFMSUQQUBI3CjNDQU5OT1RfU0VUX0dFT19UQVJH", - "RVRfQ09OU1RBTlRTX1dJVEhfRkVFRF9JVEVNX1NFVFMQexInCiJDQU5OT1Rf", - "U0VUX0JPVEhfQVNTRVRfU0VUX0FORF9GRUVEEIwBEjMKLkNBTk5PVF9TRVRf", - "RkVFRF9PUl9GRUVEX0lURU1fU0VUU19GT1JfQ1VTVE9NRVIQjgESLAonQ0FO", - "Tk9UX1NFVF9BU1NFVF9TRVRfRklFTERfRk9SX0NVU1RPTUVSEJYBEjQKL0NB", - "Tk5PVF9TRVRfR0VPX1RBUkdFVF9DT05TVEFOVFNfV0lUSF9BU1NFVF9TRVRT", - "EI8BEi4KKUNBTk5PVF9TRVRfQVNTRVRfU0VUU19XSVRIX0ZFRURfSVRFTV9T", - "RVRTEJABEiUKIElOVkFMSURfTE9DQVRJT05fR1JPVVBfQVNTRVRfU0VUEI0B", - "EiEKHUlOVkFMSURfTE9DQVRJT05fR1JPVVBfUkFESVVTEHwSJgoiSU5WQUxJ", - "RF9MT0NBVElPTl9HUk9VUF9SQURJVVNfVU5JVBB9EjIKLkNBTk5PVF9BVFRB", - "Q0hfQ1JJVEVSSUFfQVRfQ0FNUEFJR05fQU5EX0FER1JPVVAQURI5CjVIT1RF", - "TF9MRU5HVEhfT0ZfU1RBWV9PVkVSTEFQU19XSVRIX0VYSVNUSU5HX0NSSVRF", - "UklPThBSEkEKPUhPVEVMX0FEVkFOQ0VfQk9PS0lOR19XSU5ET1dfT1ZFUkxB", - "UFNfV0lUSF9FWElTVElOR19DUklURVJJT04QUxIuCipGSUVMRF9JTkNPTVBB", - "VElCTEVfV0lUSF9ORUdBVElWRV9UQVJHRVRJTkcQVBIdChlJTlZBTElEX1dF", - "QlBBR0VfQ09ORElUSU9OEFUSIQodSU5WQUxJRF9XRUJQQUdFX0NPTkRJVElP", - "Tl9VUkwQVhIpCiVXRUJQQUdFX0NPTkRJVElPTl9VUkxfQ0FOTk9UX0JFX0VN", - "UFRZEFcSLgoqV0VCUEFHRV9DT05ESVRJT05fVVJMX1VOU1VQUE9SVEVEX1BS", - "T1RPQ09MEFgSLgoqV0VCUEFHRV9DT05ESVRJT05fVVJMX0NBTk5PVF9CRV9J", - "UF9BRERSRVNTEFkSRQpBV0VCUEFHRV9DT05ESVRJT05fVVJMX0RPTUFJTl9O", - "T1RfQ09OU0lTVEVOVF9XSVRIX0NBTVBBSUdOX1NFVFRJTkcQWhIxCi1XRUJQ", - "QUdFX0NPTkRJVElPTl9VUkxfQ0FOTk9UX0JFX1BVQkxJQ19TVUZGSVgQWxIv", - "CitXRUJQQUdFX0NPTkRJVElPTl9VUkxfSU5WQUxJRF9QVUJMSUNfU1VGRklY", - "EFwSOQo1V0VCUEFHRV9DT05ESVRJT05fVVJMX1ZBTFVFX1RSQUNLX1ZBTFVF", - "X05PVF9TVVBQT1JURUQQXRI8CjhXRUJQQUdFX0NSSVRFUklPTl9VUkxfRVFV", - "QUxTX0NBTl9IQVZFX09OTFlfT05FX0NPTkRJVElPThBeEjcKM1dFQlBBR0Vf", - "Q1JJVEVSSU9OX05PVF9TVVBQT1JURURfT05fTk9OX0RTQV9BRF9HUk9VUBBf", - "EjcKM0NBTk5PVF9UQVJHRVRfVVNFUl9MSVNUX0ZPUl9TTUFSVF9ESVNQTEFZ", - "X0NBTVBBSUdOUxBjEjEKLUNBTk5PVF9UQVJHRVRfUExBQ0VNRU5UU19GT1Jf", - "U0VBUkNIX0NBTVBBSUdOUxB+EioKJkxJU1RJTkdfU0NPUEVfVE9PX01BTllf", - "RElNRU5TSU9OX1RZUEVTEGQSJwojTElTVElOR19TQ09QRV9UT09fTUFOWV9J", - "Tl9PUEVSQVRPUlMQZRIrCidMSVNUSU5HX1NDT1BFX0lOX09QRVJBVE9SX05P", - "VF9TVVBQT1JURUQQZhIkCiBEVVBMSUNBVEVfTElTVElOR19ESU1FTlNJT05f", - "VFlQRRBnEiUKIURVUExJQ0FURV9MSVNUSU5HX0RJTUVOU0lPTl9WQUxVRRBo", - "EjAKLENBTk5PVF9TRVRfQklEU19PTl9MSVNUSU5HX0dST1VQX1NVQkRJVklT", - "SU9OEGkSIwofSU5WQUxJRF9MSVNUSU5HX0dST1VQX0hJRVJBUkNIWRBqEisK", - "J0xJU1RJTkdfR1JPVVBfVU5JVF9DQU5OT1RfSEFWRV9DSElMRFJFThBrEjIK", - "LkxJU1RJTkdfR1JPVVBfU1VCRElWSVNJT05fUkVRVUlSRVNfT1RIRVJTX0NB", - "U0UQbBI6CjZMSVNUSU5HX0dST1VQX1JFUVVJUkVTX1NBTUVfRElNRU5TSU9O", - "X1RZUEVfQVNfU0lCTElOR1MQbRIgChxMSVNUSU5HX0dST1VQX0FMUkVBRFlf", - "RVhJU1RTEG4SIAocTElTVElOR19HUk9VUF9ET0VTX05PVF9FWElTVBBvEiMK", - "H0xJU1RJTkdfR1JPVVBfQ0FOTk9UX0JFX1JFTU9WRUQQcBIeChpJTlZBTElE", - "X0xJU1RJTkdfR1JPVVBfVFlQRRBxEioKJkxJU1RJTkdfR1JPVVBfQUREX01B", - "WV9PTkxZX1VTRV9URU1QX0lEEHISGgoWTElTVElOR19TQ09QRV9UT09fTE9O", - "RxBzEiUKIUxJU1RJTkdfU0NPUEVfVE9PX01BTllfRElNRU5TSU9OUxB0EhoK", - "FkxJU1RJTkdfR1JPVVBfVE9PX0xPTkcQdRIfChtMSVNUSU5HX0dST1VQX1RS", - "RUVfVE9PX0RFRVAQdhIdChlJTlZBTElEX0xJU1RJTkdfRElNRU5TSU9OEHcS", - "IgoeSU5WQUxJRF9MSVNUSU5HX0RJTUVOU0lPTl9UWVBFEHgSQAo8QURWRVJU", - "SVNFUl9OT1RfT05fQUxMT1dMSVNUX0ZPUl9DT01CSU5FRF9BVURJRU5DRV9P", - "Tl9ESVNQTEFZEH8SLAonQ0FOTk9UX1RBUkdFVF9SRU1PVkVEX0NPTUJJTkVE", - "X0FVRElFTkNFEIABEiEKHElOVkFMSURfQ09NQklORURfQVVESUVOQ0VfSUQQ", - "gQESKgolQ0FOTk9UX1RBUkdFVF9SRU1PVkVEX0NVU1RPTV9BVURJRU5DRRCC", - "ARI/CjpIT1RFTF9DSEVDS19JTl9EQVRFX1JBTkdFX09WRVJMQVBTX1dJVEhf", - "RVhJU1RJTkdfQ1JJVEVSSU9OEIMBEjMKLkhPVEVMX0NIRUNLX0lOX0RBVEVf", - "UkFOR0VfU1RBUlRfREFURV9UT09fRUFSTFkQhAESMAorSE9URUxfQ0hFQ0tf", - "SU5fREFURV9SQU5HRV9FTkRfREFURV9UT09fTEFURRCFARInCiJIT1RFTF9D", - "SEVDS19JTl9EQVRFX1JBTkdFX1JFVkVSU0VEEIYBEi0KKEJST0FEX01BVENI", - "X01PRElGSUVSX0tFWVdPUkRfTk9UX0FMTE9XRUQQhwESKQokT05FX0FVRElF", - "TkNFX0FMTE9XRURfUEVSX0FTU0VUX0dST1VQEIgBEiwKJ0FVRElFTkNFX05P", - "VF9FTElHSUJMRV9GT1JfQ0FNUEFJR05fVFlQRRCJARJGCkFBVURJRU5DRV9O", - "T1RfQUxMT1dFRF9UT19BVFRBQ0hfV0hFTl9BVURJRU5DRV9HUk9VUEVEX1NF", - "VF9UT19GQUxTRRCKARIrCiZDQU5OT1RfVEFSR0VUX0NVU1RPTUVSX01BVENI", - "X1VTRVJfTElTVBCLAULzAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnNCE0NyaXRlcmlvbkVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorEnum.Types.CriterionError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible criterion errors. - /// - public sealed partial class CriterionErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionErrorEnum(CriterionErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionErrorEnum Clone() { - return new CriterionErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CriterionErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible criterion errors. - /// - public enum CriterionError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Concrete type of criterion is required for CREATE and UPDATE operations. - /// - [pbr::OriginalName("CONCRETE_TYPE_REQUIRED")] ConcreteTypeRequired = 2, - /// - /// The category requested for exclusion is invalid. - /// - [pbr::OriginalName("INVALID_EXCLUDED_CATEGORY")] InvalidExcludedCategory = 3, - /// - /// Invalid keyword criteria text. - /// - [pbr::OriginalName("INVALID_KEYWORD_TEXT")] InvalidKeywordText = 4, - /// - /// Keyword text should be less than 80 chars. - /// - [pbr::OriginalName("KEYWORD_TEXT_TOO_LONG")] KeywordTextTooLong = 5, - /// - /// Keyword text has too many words. - /// - [pbr::OriginalName("KEYWORD_HAS_TOO_MANY_WORDS")] KeywordHasTooManyWords = 6, - /// - /// Keyword text has invalid characters or symbols. - /// - [pbr::OriginalName("KEYWORD_HAS_INVALID_CHARS")] KeywordHasInvalidChars = 7, - /// - /// Invalid placement URL. - /// - [pbr::OriginalName("INVALID_PLACEMENT_URL")] InvalidPlacementUrl = 8, - /// - /// Invalid user list criterion. - /// - [pbr::OriginalName("INVALID_USER_LIST")] InvalidUserList = 9, - /// - /// Invalid user interest criterion. - /// - [pbr::OriginalName("INVALID_USER_INTEREST")] InvalidUserInterest = 10, - /// - /// Placement URL has wrong format. - /// - [pbr::OriginalName("INVALID_FORMAT_FOR_PLACEMENT_URL")] InvalidFormatForPlacementUrl = 11, - /// - /// Placement URL is too long. - /// - [pbr::OriginalName("PLACEMENT_URL_IS_TOO_LONG")] PlacementUrlIsTooLong = 12, - /// - /// Indicates the URL contains an illegal character. - /// - [pbr::OriginalName("PLACEMENT_URL_HAS_ILLEGAL_CHAR")] PlacementUrlHasIllegalChar = 13, - /// - /// Indicates the URL contains multiple comma separated URLs. - /// - [pbr::OriginalName("PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE")] PlacementUrlHasMultipleSitesInLine = 14, - /// - /// Indicates the domain is blocked. - /// - [pbr::OriginalName("PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION")] PlacementIsNotAvailableForTargetingOrExclusion = 15, - /// - /// Invalid topic path. - /// - [pbr::OriginalName("INVALID_TOPIC_PATH")] InvalidTopicPath = 16, - /// - /// The YouTube Channel Id is invalid. - /// - [pbr::OriginalName("INVALID_YOUTUBE_CHANNEL_ID")] InvalidYoutubeChannelId = 17, - /// - /// The YouTube Video Id is invalid. - /// - [pbr::OriginalName("INVALID_YOUTUBE_VIDEO_ID")] InvalidYoutubeVideoId = 18, - /// - /// Indicates the placement is a YouTube vertical channel, which is no longer - /// supported. - /// - [pbr::OriginalName("YOUTUBE_VERTICAL_CHANNEL_DEPRECATED")] YoutubeVerticalChannelDeprecated = 19, - /// - /// Indicates the placement is a YouTube demographic channel, which is no - /// longer supported. - /// - [pbr::OriginalName("YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED")] YoutubeDemographicChannelDeprecated = 20, - /// - /// YouTube urls are not supported in Placement criterion. Use YouTubeChannel - /// and YouTubeVideo criterion instead. - /// - [pbr::OriginalName("YOUTUBE_URL_UNSUPPORTED")] YoutubeUrlUnsupported = 21, - /// - /// Criteria type can not be excluded by the customer, like AOL account type - /// cannot target site type criteria. - /// - [pbr::OriginalName("CANNOT_EXCLUDE_CRITERIA_TYPE")] CannotExcludeCriteriaType = 22, - /// - /// Criteria type can not be targeted. - /// - [pbr::OriginalName("CANNOT_ADD_CRITERIA_TYPE")] CannotAddCriteriaType = 23, - /// - /// Not allowed to exclude similar user list. - /// - [pbr::OriginalName("CANNOT_EXCLUDE_SIMILAR_USER_LIST")] CannotExcludeSimilarUserList = 26, - /// - /// Not allowed to target a closed user list. - /// - [pbr::OriginalName("CANNOT_ADD_CLOSED_USER_LIST")] CannotAddClosedUserList = 27, - /// - /// Not allowed to add display only UserLists to search only campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS")] CannotAddDisplayOnlyListsToSearchOnlyCampaigns = 28, - /// - /// Not allowed to add display only UserLists to search plus campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS")] CannotAddDisplayOnlyListsToSearchCampaigns = 29, - /// - /// Not allowed to add display only UserLists to shopping campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS")] CannotAddDisplayOnlyListsToShoppingCampaigns = 30, - /// - /// Not allowed to add User interests to search only campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS")] CannotAddUserInterestsToSearchCampaigns = 31, - /// - /// Not allowed to set bids for this criterion type in search campaigns - /// - [pbr::OriginalName("CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS")] CannotSetBidsOnCriterionTypeInSearchCampaigns = 32, - /// - /// Final URLs, URL Templates and CustomParameters cannot be set for the - /// criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and - /// MobileAppCategory in search campaigns and shopping campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE")] CannotAddUrlsToCriterionTypeForCampaignType = 33, - /// - /// Invalid combined audience criterion. - /// - [pbr::OriginalName("INVALID_COMBINED_AUDIENCE")] InvalidCombinedAudience = 122, - /// - /// Invalid custom affinity criterion. - /// - [pbr::OriginalName("INVALID_CUSTOM_AFFINITY")] InvalidCustomAffinity = 96, - /// - /// Invalid custom intent criterion. - /// - [pbr::OriginalName("INVALID_CUSTOM_INTENT")] InvalidCustomIntent = 97, - /// - /// Invalid custom audience criterion. - /// - [pbr::OriginalName("INVALID_CUSTOM_AUDIENCE")] InvalidCustomAudience = 121, - /// - /// IP address is not valid. - /// - [pbr::OriginalName("INVALID_IP_ADDRESS")] InvalidIpAddress = 34, - /// - /// IP format is not valid. - /// - [pbr::OriginalName("INVALID_IP_FORMAT")] InvalidIpFormat = 35, - /// - /// Mobile application is not valid. - /// - [pbr::OriginalName("INVALID_MOBILE_APP")] InvalidMobileApp = 36, - /// - /// Mobile application category is not valid. - /// - [pbr::OriginalName("INVALID_MOBILE_APP_CATEGORY")] InvalidMobileAppCategory = 37, - /// - /// The CriterionId does not exist or is of the incorrect type. - /// - [pbr::OriginalName("INVALID_CRITERION_ID")] InvalidCriterionId = 38, - /// - /// The Criterion is not allowed to be targeted. - /// - [pbr::OriginalName("CANNOT_TARGET_CRITERION")] CannotTargetCriterion = 39, - /// - /// The criterion is not allowed to be targeted as it is deprecated. - /// - [pbr::OriginalName("CANNOT_TARGET_OBSOLETE_CRITERION")] CannotTargetObsoleteCriterion = 40, - /// - /// The CriterionId is not valid for the type. - /// - [pbr::OriginalName("CRITERION_ID_AND_TYPE_MISMATCH")] CriterionIdAndTypeMismatch = 41, - /// - /// Distance for the radius for the proximity criterion is invalid. - /// - [pbr::OriginalName("INVALID_PROXIMITY_RADIUS")] InvalidProximityRadius = 42, - /// - /// Units for the distance for the radius for the proximity criterion is - /// invalid. - /// - [pbr::OriginalName("INVALID_PROXIMITY_RADIUS_UNITS")] InvalidProximityRadiusUnits = 43, - /// - /// Street address in the address is not valid. - /// - [pbr::OriginalName("INVALID_STREETADDRESS_LENGTH")] InvalidStreetaddressLength = 44, - /// - /// City name in the address is not valid. - /// - [pbr::OriginalName("INVALID_CITYNAME_LENGTH")] InvalidCitynameLength = 45, - /// - /// Region code in the address is not valid. - /// - [pbr::OriginalName("INVALID_REGIONCODE_LENGTH")] InvalidRegioncodeLength = 46, - /// - /// Region name in the address is not valid. - /// - [pbr::OriginalName("INVALID_REGIONNAME_LENGTH")] InvalidRegionnameLength = 47, - /// - /// Postal code in the address is not valid. - /// - [pbr::OriginalName("INVALID_POSTALCODE_LENGTH")] InvalidPostalcodeLength = 48, - /// - /// Country code in the address is not valid. - /// - [pbr::OriginalName("INVALID_COUNTRY_CODE")] InvalidCountryCode = 49, - /// - /// Latitude for the GeoPoint is not valid. - /// - [pbr::OriginalName("INVALID_LATITUDE")] InvalidLatitude = 50, - /// - /// Longitude for the GeoPoint is not valid. - /// - [pbr::OriginalName("INVALID_LONGITUDE")] InvalidLongitude = 51, - /// - /// The Proximity input is not valid. Both address and geoPoint cannot be - /// null. - /// - [pbr::OriginalName("PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL")] ProximityGeopointAndAddressBothCannotBeNull = 52, - /// - /// The Proximity address cannot be geocoded to a valid lat/long. - /// - [pbr::OriginalName("INVALID_PROXIMITY_ADDRESS")] InvalidProximityAddress = 53, - /// - /// User domain name is not valid. - /// - [pbr::OriginalName("INVALID_USER_DOMAIN_NAME")] InvalidUserDomainName = 54, - /// - /// Length of serialized criterion parameter exceeded size limit. - /// - [pbr::OriginalName("CRITERION_PARAMETER_TOO_LONG")] CriterionParameterTooLong = 55, - /// - /// Time interval in the AdSchedule overlaps with another AdSchedule. - /// - [pbr::OriginalName("AD_SCHEDULE_TIME_INTERVALS_OVERLAP")] AdScheduleTimeIntervalsOverlap = 56, - /// - /// AdSchedule time interval cannot span multiple days. - /// - [pbr::OriginalName("AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS")] AdScheduleIntervalCannotSpanMultipleDays = 57, - /// - /// AdSchedule time interval specified is invalid, endTime cannot be earlier - /// than startTime. - /// - [pbr::OriginalName("AD_SCHEDULE_INVALID_TIME_INTERVAL")] AdScheduleInvalidTimeInterval = 58, - /// - /// The number of AdSchedule entries in a day exceeds the limit. - /// - [pbr::OriginalName("AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT")] AdScheduleExceededIntervalsPerDayLimit = 59, - /// - /// CriteriaId does not match the interval of the AdSchedule specified. - /// - [pbr::OriginalName("AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS")] AdScheduleCriterionIdMismatchingFields = 60, - /// - /// Cannot set bid modifier for this criterion type. - /// - [pbr::OriginalName("CANNOT_BID_MODIFY_CRITERION_TYPE")] CannotBidModifyCriterionType = 61, - /// - /// Cannot bid modify criterion, since it is opted out of the campaign. - /// - [pbr::OriginalName("CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT")] CannotBidModifyCriterionCampaignOptedOut = 62, - /// - /// Cannot set bid modifier for a negative criterion. - /// - [pbr::OriginalName("CANNOT_BID_MODIFY_NEGATIVE_CRITERION")] CannotBidModifyNegativeCriterion = 63, - /// - /// Bid Modifier already exists. Use SET operation to update. - /// - [pbr::OriginalName("BID_MODIFIER_ALREADY_EXISTS")] BidModifierAlreadyExists = 64, - /// - /// Feed Id is not allowed in these Location Groups. - /// - [pbr::OriginalName("FEED_ID_NOT_ALLOWED")] FeedIdNotAllowed = 65, - /// - /// The account may not use the requested criteria type. For example, some - /// accounts are restricted to keywords only. - /// - [pbr::OriginalName("ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE")] AccountIneligibleForCriteriaType = 66, - /// - /// The requested criteria type cannot be used with campaign or ad group - /// bidding strategy. - /// - [pbr::OriginalName("CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY")] CriteriaTypeInvalidForBiddingStrategy = 67, - /// - /// The Criterion is not allowed to be excluded. - /// - [pbr::OriginalName("CANNOT_EXCLUDE_CRITERION")] CannotExcludeCriterion = 68, - /// - /// The criterion is not allowed to be removed. For example, we cannot remove - /// any of the device criterion. - /// - [pbr::OriginalName("CANNOT_REMOVE_CRITERION")] CannotRemoveCriterion = 69, - /// - /// Bidding categories do not form a valid path in the Shopping bidding - /// category taxonomy. - /// - [pbr::OriginalName("INVALID_PRODUCT_BIDDING_CATEGORY")] InvalidProductBiddingCategory = 76, - /// - /// ShoppingSetting must be added to the campaign before ProductScope - /// criteria can be added. - /// - [pbr::OriginalName("MISSING_SHOPPING_SETTING")] MissingShoppingSetting = 77, - /// - /// Matching function is invalid. - /// - [pbr::OriginalName("INVALID_MATCHING_FUNCTION")] InvalidMatchingFunction = 78, - /// - /// Filter parameters not allowed for location groups targeting. - /// - [pbr::OriginalName("LOCATION_FILTER_NOT_ALLOWED")] LocationFilterNotAllowed = 79, - /// - /// Feed not found, or the feed is not an enabled location feed. - /// - [pbr::OriginalName("INVALID_FEED_FOR_LOCATION_FILTER")] InvalidFeedForLocationFilter = 98, - /// - /// Given location filter parameter is invalid for location groups targeting. - /// - [pbr::OriginalName("LOCATION_FILTER_INVALID")] LocationFilterInvalid = 80, - /// - /// Cannot set geo target constants and feed item sets at the same time. - /// - [pbr::OriginalName("CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS")] CannotSetGeoTargetConstantsWithFeedItemSets = 123, - /// - /// Cannot set both assetset and feed at the same time. - /// - [pbr::OriginalName("CANNOT_SET_BOTH_ASSET_SET_AND_FEED")] CannotSetBothAssetSetAndFeed = 140, - /// - /// Cannot set feed or feed item sets for Customer. - /// - [pbr::OriginalName("CANNOT_SET_FEED_OR_FEED_ITEM_SETS_FOR_CUSTOMER")] CannotSetFeedOrFeedItemSetsForCustomer = 142, - /// - /// Cannot set AssetSet criteria for customer. - /// - [pbr::OriginalName("CANNOT_SET_ASSET_SET_FIELD_FOR_CUSTOMER")] CannotSetAssetSetFieldForCustomer = 150, - /// - /// Cannot set geo target constants and asset sets at the same time. - /// - [pbr::OriginalName("CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_ASSET_SETS")] CannotSetGeoTargetConstantsWithAssetSets = 143, - /// - /// Cannot set asset sets and feed item sets at the same time. - /// - [pbr::OriginalName("CANNOT_SET_ASSET_SETS_WITH_FEED_ITEM_SETS")] CannotSetAssetSetsWithFeedItemSets = 144, - /// - /// The location group asset set id is invalid - /// - [pbr::OriginalName("INVALID_LOCATION_GROUP_ASSET_SET")] InvalidLocationGroupAssetSet = 141, - /// - /// The location group radius is in the range but not at the valid increment. - /// - [pbr::OriginalName("INVALID_LOCATION_GROUP_RADIUS")] InvalidLocationGroupRadius = 124, - /// - /// The location group radius unit is invalid. - /// - [pbr::OriginalName("INVALID_LOCATION_GROUP_RADIUS_UNIT")] InvalidLocationGroupRadiusUnit = 125, - /// - /// Criteria type cannot be associated with a campaign and its ad group(s) - /// simultaneously. - /// - [pbr::OriginalName("CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP")] CannotAttachCriteriaAtCampaignAndAdgroup = 81, - /// - /// Range represented by hotel length of stay's min nights and max nights - /// overlaps with an existing criterion. - /// - [pbr::OriginalName("HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION")] HotelLengthOfStayOverlapsWithExistingCriterion = 82, - /// - /// Range represented by hotel advance booking window's min days and max days - /// overlaps with an existing criterion. - /// - [pbr::OriginalName("HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION")] HotelAdvanceBookingWindowOverlapsWithExistingCriterion = 83, - /// - /// The field is not allowed to be set when the negative field is set to - /// true, for example, we don't allow bids in negative ad group or campaign - /// criteria. - /// - [pbr::OriginalName("FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING")] FieldIncompatibleWithNegativeTargeting = 84, - /// - /// The combination of operand and operator in webpage condition is invalid. - /// - [pbr::OriginalName("INVALID_WEBPAGE_CONDITION")] InvalidWebpageCondition = 85, - /// - /// The URL of webpage condition is invalid. - /// - [pbr::OriginalName("INVALID_WEBPAGE_CONDITION_URL")] InvalidWebpageConditionUrl = 86, - /// - /// The URL of webpage condition cannot be empty or contain white space. - /// - [pbr::OriginalName("WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY")] WebpageConditionUrlCannotBeEmpty = 87, - /// - /// The URL of webpage condition contains an unsupported protocol. - /// - [pbr::OriginalName("WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL")] WebpageConditionUrlUnsupportedProtocol = 88, - /// - /// The URL of webpage condition cannot be an IP address. - /// - [pbr::OriginalName("WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS")] WebpageConditionUrlCannotBeIpAddress = 89, - /// - /// The domain of the URL is not consistent with the domain in campaign - /// setting. - /// - [pbr::OriginalName("WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING")] WebpageConditionUrlDomainNotConsistentWithCampaignSetting = 90, - /// - /// The URL of webpage condition cannot be a public suffix itself. - /// - [pbr::OriginalName("WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX")] WebpageConditionUrlCannotBePublicSuffix = 91, - /// - /// The URL of webpage condition has an invalid public suffix. - /// - [pbr::OriginalName("WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX")] WebpageConditionUrlInvalidPublicSuffix = 92, - /// - /// Value track parameter is not supported in webpage condition URL. - /// - [pbr::OriginalName("WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED")] WebpageConditionUrlValueTrackValueNotSupported = 93, - /// - /// Only one URL-EQUALS webpage condition is allowed in a webpage - /// criterion and it cannot be combined with other conditions. - /// - [pbr::OriginalName("WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION")] WebpageCriterionUrlEqualsCanHaveOnlyOneCondition = 94, - /// - /// A webpage criterion cannot be added to a non-DSA ad group. - /// - [pbr::OriginalName("WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP")] WebpageCriterionNotSupportedOnNonDsaAdGroup = 95, - /// - /// Cannot add positive user list criteria in Smart Display campaigns. - /// - [pbr::OriginalName("CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS")] CannotTargetUserListForSmartDisplayCampaigns = 99, - /// - /// Cannot add positive placement criterion types in search campaigns. - /// - [pbr::OriginalName("CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS")] CannotTargetPlacementsForSearchCampaigns = 126, - /// - /// Listing scope contains too many dimension types. - /// - [pbr::OriginalName("LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES")] ListingScopeTooManyDimensionTypes = 100, - /// - /// Listing scope has too many IN operators. - /// - [pbr::OriginalName("LISTING_SCOPE_TOO_MANY_IN_OPERATORS")] ListingScopeTooManyInOperators = 101, - /// - /// Listing scope contains IN operator on an unsupported dimension type. - /// - [pbr::OriginalName("LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED")] ListingScopeInOperatorNotSupported = 102, - /// - /// There are dimensions with duplicate dimension type. - /// - [pbr::OriginalName("DUPLICATE_LISTING_DIMENSION_TYPE")] DuplicateListingDimensionType = 103, - /// - /// There are dimensions with duplicate dimension value. - /// - [pbr::OriginalName("DUPLICATE_LISTING_DIMENSION_VALUE")] DuplicateListingDimensionValue = 104, - /// - /// Listing group SUBDIVISION nodes cannot have bids. - /// - [pbr::OriginalName("CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION")] CannotSetBidsOnListingGroupSubdivision = 105, - /// - /// Ad group is invalid due to the listing groups it contains. - /// - [pbr::OriginalName("INVALID_LISTING_GROUP_HIERARCHY")] InvalidListingGroupHierarchy = 106, - /// - /// Listing group unit cannot have children. - /// - [pbr::OriginalName("LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN")] ListingGroupUnitCannotHaveChildren = 107, - /// - /// Subdivided listing groups must have an "others" case. - /// - [pbr::OriginalName("LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE")] ListingGroupSubdivisionRequiresOthersCase = 108, - /// - /// Dimension type of listing group must be the same as that of its siblings. - /// - [pbr::OriginalName("LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS")] ListingGroupRequiresSameDimensionTypeAsSiblings = 109, - /// - /// Listing group cannot be added to the ad group because it already exists. - /// - [pbr::OriginalName("LISTING_GROUP_ALREADY_EXISTS")] ListingGroupAlreadyExists = 110, - /// - /// Listing group referenced in the operation was not found in the ad group. - /// - [pbr::OriginalName("LISTING_GROUP_DOES_NOT_EXIST")] ListingGroupDoesNotExist = 111, - /// - /// Recursive removal failed because listing group subdivision is being - /// created or modified in this request. - /// - [pbr::OriginalName("LISTING_GROUP_CANNOT_BE_REMOVED")] ListingGroupCannotBeRemoved = 112, - /// - /// Listing group type is not allowed for specified ad group criterion type. - /// - [pbr::OriginalName("INVALID_LISTING_GROUP_TYPE")] InvalidListingGroupType = 113, - /// - /// Listing group in an ADD operation specifies a non temporary criterion id. - /// - [pbr::OriginalName("LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID")] ListingGroupAddMayOnlyUseTempId = 114, - /// - /// The combined length of dimension values of the Listing scope criterion - /// is too long. - /// - [pbr::OriginalName("LISTING_SCOPE_TOO_LONG")] ListingScopeTooLong = 115, - /// - /// Listing scope contains too many dimensions. - /// - [pbr::OriginalName("LISTING_SCOPE_TOO_MANY_DIMENSIONS")] ListingScopeTooManyDimensions = 116, - /// - /// The combined length of dimension values of the Listing group criterion is - /// too long. - /// - [pbr::OriginalName("LISTING_GROUP_TOO_LONG")] ListingGroupTooLong = 117, - /// - /// Listing group tree is too deep. - /// - [pbr::OriginalName("LISTING_GROUP_TREE_TOO_DEEP")] ListingGroupTreeTooDeep = 118, - /// - /// Listing dimension is invalid (for example, dimension contains illegal - /// value, dimension type is represented with wrong class, etc). Listing - /// dimension value can not contain "==" or "&+". - /// - [pbr::OriginalName("INVALID_LISTING_DIMENSION")] InvalidListingDimension = 119, - /// - /// Listing dimension type is either invalid for campaigns of this type or - /// cannot be used in the current context. BIDDING_CATEGORY_Lx and - /// PRODUCT_TYPE_Lx dimensions must be used in ascending order of their - /// levels: L1, L2, L3, L4, L5... The levels must be specified sequentially - /// and start from L1. Furthermore, an "others" Listing group cannot be - /// subdivided with a dimension of the same type but of a higher level - /// ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND but not with - /// BIDDING_CATEGORY_L4). - /// - [pbr::OriginalName("INVALID_LISTING_DIMENSION_TYPE")] InvalidListingDimensionType = 120, - /// - /// Customer is not on allowlist for composite audience in display campaigns. - /// - [pbr::OriginalName("ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY")] AdvertiserNotOnAllowlistForCombinedAudienceOnDisplay = 127, - /// - /// Cannot target on a removed combined audience. - /// - [pbr::OriginalName("CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE")] CannotTargetRemovedCombinedAudience = 128, - /// - /// Combined audience ID is invalid. - /// - [pbr::OriginalName("INVALID_COMBINED_AUDIENCE_ID")] InvalidCombinedAudienceId = 129, - /// - /// Can not target removed combined audience. - /// - [pbr::OriginalName("CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE")] CannotTargetRemovedCustomAudience = 130, - /// - /// Range represented by hotel check-in date's start date and end date - /// overlaps with an existing criterion. - /// - [pbr::OriginalName("HOTEL_CHECK_IN_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION")] HotelCheckInDateRangeOverlapsWithExistingCriterion = 131, - /// - /// Start date is earlier than earliest allowed value of yesterday UTC. - /// - [pbr::OriginalName("HOTEL_CHECK_IN_DATE_RANGE_START_DATE_TOO_EARLY")] HotelCheckInDateRangeStartDateTooEarly = 132, - /// - /// End date later is than latest allowed day of 330 days in the future UTC. - /// - [pbr::OriginalName("HOTEL_CHECK_IN_DATE_RANGE_END_DATE_TOO_LATE")] HotelCheckInDateRangeEndDateTooLate = 133, - /// - /// Start date is after end date. - /// - [pbr::OriginalName("HOTEL_CHECK_IN_DATE_RANGE_REVERSED")] HotelCheckInDateRangeReversed = 134, - /// - /// Broad match modifier (BMM) keywords can no longer be created. See - /// https://ads-developers.googleblog.com/2021/06/broad-match-modifier-upcoming-changes.html. - /// - [pbr::OriginalName("BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED")] BroadMatchModifierKeywordNotAllowed = 135, - /// - /// Only one audience is allowed in an asset group. - /// - [pbr::OriginalName("ONE_AUDIENCE_ALLOWED_PER_ASSET_GROUP")] OneAudienceAllowedPerAssetGroup = 136, - /// - /// Audience is not supported for the specified campaign type. - /// - [pbr::OriginalName("AUDIENCE_NOT_ELIGIBLE_FOR_CAMPAIGN_TYPE")] AudienceNotEligibleForCampaignType = 137, - /// - /// Audience is not allowed to attach when use_audience_grouped bit is set to - /// false. - /// - [pbr::OriginalName("AUDIENCE_NOT_ALLOWED_TO_ATTACH_WHEN_AUDIENCE_GROUPED_SET_TO_FALSE")] AudienceNotAllowedToAttachWhenAudienceGroupedSetToFalse = 138, - /// - /// Targeting is not allowed for Customer Match lists as per Customer Match - /// policy. See - /// https://support.google.com/google-ads/answer/6299717. - /// - [pbr::OriginalName("CANNOT_TARGET_CUSTOMER_MATCH_USER_LIST")] CannotTargetCustomerMatchUserList = 139, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CriterionSystemServingStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CriterionSystemServingStatus.g.cs deleted file mode 100755 index 3d058e110..000000000 --- a/Google.Ads.GoogleAds/src/V12/CriterionSystemServingStatus.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/criterion_system_serving_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/criterion_system_serving_status.proto - public static partial class CriterionSystemServingStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/criterion_system_serving_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CriterionSystemServingStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3JpdGVyaW9uX3N5", - "c3RlbV9zZXJ2aW5nX3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zIoEBCiBDcml0ZXJpb25TeXN0ZW1TZXJ2aW5nU3RhdHVz", - "RW51bSJdChxDcml0ZXJpb25TeXN0ZW1TZXJ2aW5nU3RhdHVzEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEgwKCEVMSUdJQkxFEAISEQoNUkFSRUxZ", - "X1NFUlZFRBADQvsBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zQiFDcml0ZXJpb25TeXN0ZW1TZXJ2aW5nU3RhdHVzUHJvdG9QAVpDZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVt", - "c+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusEnum.Types.CriterionSystemServingStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible criterion system serving statuses. - /// - public sealed partial class CriterionSystemServingStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionSystemServingStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CriterionSystemServingStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionSystemServingStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionSystemServingStatusEnum(CriterionSystemServingStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionSystemServingStatusEnum Clone() { - return new CriterionSystemServingStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionSystemServingStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionSystemServingStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionSystemServingStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CriterionSystemServingStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates criterion system serving statuses. - /// - public enum CriterionSystemServingStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Eligible. - /// - [pbr::OriginalName("ELIGIBLE")] Eligible = 2, - /// - /// Low search volume. - /// - [pbr::OriginalName("RARELY_SERVED")] RarelyServed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CriterionType.g.cs b/Google.Ads.GoogleAds/src/V12/CriterionType.g.cs deleted file mode 100755 index d17c3d1a8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CriterionType.g.cs +++ /dev/null @@ -1,377 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/criterion_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/criterion_type.proto - public static partial class CriterionTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/criterion_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CriterionTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3JpdGVyaW9uX3R5", - "cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKhBQoR", - "Q3JpdGVyaW9uVHlwZUVudW0iiwUKDUNyaXRlcmlvblR5cGUSDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESCwoHS0VZV09SRBACEg0KCVBMQUNFTUVO", - "VBADEhcKE01PQklMRV9BUFBfQ0FURUdPUlkQBBIWChJNT0JJTEVfQVBQTElD", - "QVRJT04QBRIKCgZERVZJQ0UQBhIMCghMT0NBVElPThAHEhEKDUxJU1RJTkdf", - "R1JPVVAQCBIPCgtBRF9TQ0hFRFVMRRAJEg0KCUFHRV9SQU5HRRAKEgoKBkdF", - "TkRFUhALEhAKDElOQ09NRV9SQU5HRRAMEhMKD1BBUkVOVEFMX1NUQVRVUxAN", - "EhEKDVlPVVRVQkVfVklERU8QDhITCg9ZT1VUVUJFX0NIQU5ORUwQDxINCglV", - "U0VSX0xJU1QQEBINCglQUk9YSU1JVFkQERIJCgVUT1BJQxASEhEKDUxJU1RJ", - "TkdfU0NPUEUQExIMCghMQU5HVUFHRRAUEgwKCElQX0JMT0NLEBUSEQoNQ09O", - "VEVOVF9MQUJFTBAWEgsKB0NBUlJJRVIQFxIRCg1VU0VSX0lOVEVSRVNUEBgS", - "CwoHV0VCUEFHRRAZEhwKGE9QRVJBVElOR19TWVNURU1fVkVSU0lPThAaEhUK", - "EUFQUF9QQVlNRU5UX01PREVMEBsSEQoNTU9CSUxFX0RFVklDRRAcEhMKD0NV", - "U1RPTV9BRkZJTklUWRAdEhEKDUNVU1RPTV9JTlRFTlQQHhISCg5MT0NBVElP", - "Tl9HUk9VUBAfEhMKD0NVU1RPTV9BVURJRU5DRRAgEhUKEUNPTUJJTkVEX0FV", - "RElFTkNFECESEQoNS0VZV09SRF9USEVNRRAiEgwKCEFVRElFTkNFECNC7AEK", - "ImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCEkNyaXRlcmlv", - "blR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIe", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The possible types of a criterion. - /// - public sealed partial class CriterionTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CriterionTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionTypeEnum(CriterionTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionTypeEnum Clone() { - return new CriterionTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CriterionTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CriterionTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CriterionTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CriterionTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible criterion types. - /// - public enum CriterionType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Keyword, for example, 'mars cruise'. - /// - [pbr::OriginalName("KEYWORD")] Keyword = 2, - /// - /// Placement, also known as Website, for example, 'www.flowers4sale.com' - /// - [pbr::OriginalName("PLACEMENT")] Placement = 3, - /// - /// Mobile application categories to target. - /// - [pbr::OriginalName("MOBILE_APP_CATEGORY")] MobileAppCategory = 4, - /// - /// Mobile applications to target. - /// - [pbr::OriginalName("MOBILE_APPLICATION")] MobileApplication = 5, - /// - /// Devices to target. - /// - [pbr::OriginalName("DEVICE")] Device = 6, - /// - /// Locations to target. - /// - [pbr::OriginalName("LOCATION")] Location = 7, - /// - /// Listing groups to target. - /// - [pbr::OriginalName("LISTING_GROUP")] ListingGroup = 8, - /// - /// Ad Schedule. - /// - [pbr::OriginalName("AD_SCHEDULE")] AdSchedule = 9, - /// - /// Age range. - /// - [pbr::OriginalName("AGE_RANGE")] AgeRange = 10, - /// - /// Gender. - /// - [pbr::OriginalName("GENDER")] Gender = 11, - /// - /// Income Range. - /// - [pbr::OriginalName("INCOME_RANGE")] IncomeRange = 12, - /// - /// Parental status. - /// - [pbr::OriginalName("PARENTAL_STATUS")] ParentalStatus = 13, - /// - /// YouTube Video. - /// - [pbr::OriginalName("YOUTUBE_VIDEO")] YoutubeVideo = 14, - /// - /// YouTube Channel. - /// - [pbr::OriginalName("YOUTUBE_CHANNEL")] YoutubeChannel = 15, - /// - /// User list. - /// - [pbr::OriginalName("USER_LIST")] UserList = 16, - /// - /// Proximity. - /// - [pbr::OriginalName("PROXIMITY")] Proximity = 17, - /// - /// A topic target on the display network (for example, "Pets & Animals"). - /// - [pbr::OriginalName("TOPIC")] Topic = 18, - /// - /// Listing scope to target. - /// - [pbr::OriginalName("LISTING_SCOPE")] ListingScope = 19, - /// - /// Language. - /// - [pbr::OriginalName("LANGUAGE")] Language = 20, - /// - /// IpBlock. - /// - [pbr::OriginalName("IP_BLOCK")] IpBlock = 21, - /// - /// Content Label for category exclusion. - /// - [pbr::OriginalName("CONTENT_LABEL")] ContentLabel = 22, - /// - /// Carrier. - /// - [pbr::OriginalName("CARRIER")] Carrier = 23, - /// - /// A category the user is interested in. - /// - [pbr::OriginalName("USER_INTEREST")] UserInterest = 24, - /// - /// Webpage criterion for dynamic search ads. - /// - [pbr::OriginalName("WEBPAGE")] Webpage = 25, - /// - /// Operating system version. - /// - [pbr::OriginalName("OPERATING_SYSTEM_VERSION")] OperatingSystemVersion = 26, - /// - /// App payment model. - /// - [pbr::OriginalName("APP_PAYMENT_MODEL")] AppPaymentModel = 27, - /// - /// Mobile device. - /// - [pbr::OriginalName("MOBILE_DEVICE")] MobileDevice = 28, - /// - /// Custom affinity. - /// - [pbr::OriginalName("CUSTOM_AFFINITY")] CustomAffinity = 29, - /// - /// Custom intent. - /// - [pbr::OriginalName("CUSTOM_INTENT")] CustomIntent = 30, - /// - /// Location group. - /// - [pbr::OriginalName("LOCATION_GROUP")] LocationGroup = 31, - /// - /// Custom audience - /// - [pbr::OriginalName("CUSTOM_AUDIENCE")] CustomAudience = 32, - /// - /// Combined audience - /// - [pbr::OriginalName("COMBINED_AUDIENCE")] CombinedAudience = 33, - /// - /// Smart Campaign keyword theme - /// - [pbr::OriginalName("KEYWORD_THEME")] KeywordTheme = 34, - /// - /// Audience - /// - [pbr::OriginalName("AUDIENCE")] Audience = 35, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CurrencyCodeError.g.cs b/Google.Ads.GoogleAds/src/V12/CurrencyCodeError.g.cs deleted file mode 100755 index aba11fc3b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CurrencyCodeError.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/currency_code_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/currency_code_error.proto - public static partial class CurrencyCodeErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/currency_code_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CurrencyCodeErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1cnJlbmN5X2Nv", - "ZGVfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMiWwoVQ3VycmVuY3lDb2RlRXJyb3JFbnVtIkIKEUN1cnJlbmN5Q29kZUVy", - "cm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEg8KC1VOU1VQUE9S", - "VEVEEAJC9gEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3Jz", - "QhZDdXJyZW5jeUNvZGVFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3Jz", - "O2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJv", - "cnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorEnum.Types.CurrencyCodeError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible currency code errors. - /// - public sealed partial class CurrencyCodeErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurrencyCodeErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyCodeErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyCodeErrorEnum(CurrencyCodeErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyCodeErrorEnum Clone() { - return new CurrencyCodeErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CurrencyCodeErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CurrencyCodeErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CurrencyCodeErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CurrencyCodeErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible currency code errors. - /// - public enum CurrencyCodeError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The currency code is not supported. - /// - [pbr::OriginalName("UNSUPPORTED")] Unsupported = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CurrencyConstant.g.cs b/Google.Ads.GoogleAds/src/V12/CurrencyConstant.g.cs deleted file mode 100755 index c0118fbfc..000000000 --- a/Google.Ads.GoogleAds/src/V12/CurrencyConstant.g.cs +++ /dev/null @@ -1,470 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/currency_constant.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/currency_constant.proto - public static partial class CurrencyConstantReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/currency_constant.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CurrencyConstantReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1cnJlbmN5", - "X2NvbnN0YW50LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvIs4CChBDdXJyZW5jeUNvbnN0YW50EkgK", - "DXJlc291cmNlX25hbWUYASABKAlCMeBBA/pBKwopZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0N1cnJlbmN5Q29uc3RhbnQSFgoEY29kZRgGIAEoCUID4EED", - "SACIAQESFgoEbmFtZRgHIAEoCUID4EEDSAGIAQESGAoGc3ltYm9sGAggASgJ", - "QgPgQQNIAogBARImChRiaWxsYWJsZV91bml0X21pY3JvcxgJIAEoA0ID4EED", - "SAOIAQE6SOpBRQopZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1cnJlbmN5", - "Q29uc3RhbnQSGGN1cnJlbmN5Q29uc3RhbnRzL3tjb2RlfUIHCgVfY29kZUIH", - "CgVfbmFtZUIJCgdfc3ltYm9sQhcKFV9iaWxsYWJsZV91bml0X21pY3Jvc0KH", - "AgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCFUN1", - "cnJlbmN5Q29uc3RhbnRQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlczty", - "ZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVz", - "b3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oC", - "Jkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstant), global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstant.Parser, new[]{ "ResourceName", "Code", "Name", "Symbol", "BillableUnitMicros" }, new[]{ "Code", "Name", "Symbol", "BillableUnitMicros" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A currency constant. - /// - public sealed partial class CurrencyConstant : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurrencyConstant()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstantReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyConstant() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyConstant(CurrencyConstant other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - code_ = other.code_; - name_ = other.name_; - symbol_ = other.symbol_; - billableUnitMicros_ = other.billableUnitMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CurrencyConstant Clone() { - return new CurrencyConstant(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the currency constant. - /// Currency constant resource names have the form: - /// - /// `currencyConstants/{code}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "code" field. - public const int CodeFieldNumber = 6; - private string code_; - /// - /// Output only. ISO 4217 three-letter currency code, for example, "USD" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Code { - get { return code_ ?? ""; } - set { - code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCode { - get { return code_ != null; } - } - /// Clears the value of the "code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCode() { - code_ = null; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 7; - private string name_; - /// - /// Output only. Full English name of the currency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "symbol" field. - public const int SymbolFieldNumber = 8; - private string symbol_; - /// - /// Output only. Standard symbol for describing this currency, for example, '$' for US - /// Dollars. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Symbol { - get { return symbol_ ?? ""; } - set { - symbol_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "symbol" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSymbol { - get { return symbol_ != null; } - } - /// Clears the value of the "symbol" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSymbol() { - symbol_ = null; - } - - /// Field number for the "billable_unit_micros" field. - public const int BillableUnitMicrosFieldNumber = 9; - private long billableUnitMicros_; - /// - /// Output only. The billable unit for this currency. Billed amounts should be multiples of - /// this value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long BillableUnitMicros { - get { if ((_hasBits0 & 1) != 0) { return billableUnitMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - billableUnitMicros_ = value; - } - } - /// Gets whether the "billable_unit_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBillableUnitMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "billable_unit_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBillableUnitMicros() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CurrencyConstant); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CurrencyConstant other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Code != other.Code) return false; - if (Name != other.Name) return false; - if (Symbol != other.Symbol) return false; - if (BillableUnitMicros != other.BillableUnitMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCode) hash ^= Code.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasSymbol) hash ^= Symbol.GetHashCode(); - if (HasBillableUnitMicros) hash ^= BillableUnitMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCode) { - output.WriteRawTag(50); - output.WriteString(Code); - } - if (HasName) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (HasSymbol) { - output.WriteRawTag(66); - output.WriteString(Symbol); - } - if (HasBillableUnitMicros) { - output.WriteRawTag(72); - output.WriteInt64(BillableUnitMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCode) { - output.WriteRawTag(50); - output.WriteString(Code); - } - if (HasName) { - output.WriteRawTag(58); - output.WriteString(Name); - } - if (HasSymbol) { - output.WriteRawTag(66); - output.WriteString(Symbol); - } - if (HasBillableUnitMicros) { - output.WriteRawTag(72); - output.WriteInt64(BillableUnitMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasSymbol) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Symbol); - } - if (HasBillableUnitMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(BillableUnitMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CurrencyConstant other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCode) { - Code = other.Code; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasSymbol) { - Symbol = other.Symbol; - } - if (other.HasBillableUnitMicros) { - BillableUnitMicros = other.BillableUnitMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 50: { - Code = input.ReadString(); - break; - } - case 58: { - Name = input.ReadString(); - break; - } - case 66: { - Symbol = input.ReadString(); - break; - } - case 72: { - BillableUnitMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 50: { - Code = input.ReadString(); - break; - } - case 58: { - Name = input.ReadString(); - break; - } - case 66: { - Symbol = input.ReadString(); - break; - } - case 72: { - BillableUnitMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CurrencyConstantResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CurrencyConstantResourceNames.g.cs deleted file mode 100755 index 2057567b3..000000000 --- a/Google.Ads.GoogleAds/src/V12/CurrencyConstantResourceNames.g.cs +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CurrencyConstant resource. - public sealed partial class CurrencyConstantName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern currencyConstants/{code}. - Code = 1, - } - - private static gax::PathTemplate s_code = new gax::PathTemplate("currencyConstants/{code}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CurrencyConstantName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CurrencyConstantName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern currencyConstants/{code}. - /// - /// The Code ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CurrencyConstantName FromCode(string codeId) => - new CurrencyConstantName(ResourceNameType.Code, codeId: gax::GaxPreconditions.CheckNotNullOrEmpty(codeId, nameof(codeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// currencyConstants/{code}. - /// - /// The Code ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// currencyConstants/{code}. - /// - public static string Format(string codeId) => FormatCode(codeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// currencyConstants/{code}. - /// - /// The Code ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// currencyConstants/{code}. - /// - public static string FormatCode(string codeId) => - s_code.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(codeId, nameof(codeId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// currencyConstants/{code} - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CurrencyConstantName Parse(string currencyConstantName) => Parse(currencyConstantName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// currencyConstants/{code} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CurrencyConstantName Parse(string currencyConstantName, bool allowUnparsed) => - TryParse(currencyConstantName, allowUnparsed, out CurrencyConstantName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// currencyConstants/{code} - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string currencyConstantName, out CurrencyConstantName result) => - TryParse(currencyConstantName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// currencyConstants/{code} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string currencyConstantName, bool allowUnparsed, out CurrencyConstantName result) - { - gax::GaxPreconditions.CheckNotNull(currencyConstantName, nameof(currencyConstantName)); - gax::TemplatedResourceName resourceName; - if (s_code.TryParseName(currencyConstantName, out resourceName)) - { - result = FromCode(resourceName[0]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(currencyConstantName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CurrencyConstantName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string codeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CodeId = codeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// currencyConstants/{code} - /// - /// The Code ID. Must not be null or empty. - public CurrencyConstantName(string codeId) : this(ResourceNameType.Code, codeId: gax::GaxPreconditions.CheckNotNullOrEmpty(codeId, nameof(codeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Code ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CodeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.Code: return s_code.Expand(CodeId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CurrencyConstantName); - - /// - public bool Equals(CurrencyConstantName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CurrencyConstantName a, CurrencyConstantName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CurrencyConstantName a, CurrencyConstantName b) => !(a == b); - } - - public partial class CurrencyConstant - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CurrencyConstantName ResourceNameAsCurrencyConstantName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CurrencyConstantName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CurrencyConstantName CurrencyConstantName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CurrencyConstantName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudience.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudience.g.cs deleted file mode 100755 index 27e13c22a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudience.g.cs +++ /dev/null @@ -1,906 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/custom_audience.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/custom_audience.proto - public static partial class CustomAudienceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/custom_audience.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomAudienceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbV9h", - "dWRpZW5jZS5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcxpAZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2N1c3RvbV9h", - "dWRpZW5jZV9tZW1iZXJfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2N1c3RvbV9hdWRpZW5jZV9zdGF0dXMucHJvdG8aOWdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jdXN0b21fYXVkaWVuY2Vf", - "dHlwZS5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", - "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKABAoOQ3VzdG9tQXVkaWVuY2US", - "RgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIv4EEF+kEpCidnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ3VzdG9tQXVkaWVuY2USDwoCaWQYAiABKANCA+BBAxJi", - "CgZzdGF0dXMYAyABKA4yTS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuQ3VzdG9tQXVkaWVuY2VTdGF0dXNFbnVtLkN1c3RvbUF1ZGllbmNlU3Rh", - "dHVzQgPgQQMSDAoEbmFtZRgEIAEoCRJXCgR0eXBlGAUgASgOMkkuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkN1c3RvbUF1ZGllbmNlVHlwZUVu", - "dW0uQ3VzdG9tQXVkaWVuY2VUeXBlEhMKC2Rlc2NyaXB0aW9uGAYgASgJEkkK", - "B21lbWJlcnMYByADKAsyOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkN1c3RvbUF1ZGllbmNlTWVtYmVyOmrqQWcKJ2dvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9DdXN0b21BdWRpZW5jZRI8Y3VzdG9tZXJzL3tjdXN0", - "b21lcl9pZH0vY3VzdG9tQXVkaWVuY2VzL3tjdXN0b21fYXVkaWVuY2VfaWR9", - "ItYBChRDdXN0b21BdWRpZW5jZU1lbWJlchJqCgttZW1iZXJfdHlwZRgBIAEo", - "DjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DdXN0b21BdWRp", - "ZW5jZU1lbWJlclR5cGVFbnVtLkN1c3RvbUF1ZGllbmNlTWVtYmVyVHlwZRIR", - "CgdrZXl3b3JkGAIgASgJSAASDQoDdXJsGAMgASgJSAASGAoOcGxhY2VfY2F0", - "ZWdvcnkYBCABKANIABINCgNhcHAYBSABKAlIAEIHCgV2YWx1ZUKFAgomY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCE0N1c3RvbUF1", - "ZGllbmNlUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2Vz", - "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oC", - "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomAudience), global::Google.Ads.GoogleAds.V12.Resources.CustomAudience.Parser, new[]{ "ResourceName", "Id", "Status", "Name", "Type", "Description", "Members" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomAudienceMember), global::Google.Ads.GoogleAds.V12.Resources.CustomAudienceMember.Parser, new[]{ "MemberType", "Keyword", "Url", "PlaceCategory", "App" }, new[]{ "Value" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A custom audience. This is a list of users by interest. - /// - public sealed partial class CustomAudience : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudience()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomAudienceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudience() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudience(CustomAudience other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - status_ = other.status_; - name_ = other.name_; - type_ = other.type_; - description_ = other.description_; - members_ = other.members_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudience Clone() { - return new CustomAudience(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the custom audience. - /// Custom audience resource names have the form: - /// - /// `customers/{customer_id}/customAudiences/{custom_audience_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. ID of the custom audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus.Unspecified; - /// - /// Output only. Status of this custom audience. Indicates whether the custom audience is - /// enabled or removed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private string name_ = ""; - /// - /// Name of the custom audience. It should be unique for all custom audiences - /// created by a customer. - /// This field is required for creating operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType type_ = global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType.Unspecified; - /// - /// Type of the custom audience. - /// ("INTEREST" OR "PURCHASE_INTENT" is not allowed for newly created custom - /// audience but kept for existing audiences) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 6; - private string description_ = ""; - /// - /// Description of this custom audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "members" field. - public const int MembersFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_members_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Resources.CustomAudienceMember.Parser); - private readonly pbc::RepeatedField members_ = new pbc::RepeatedField(); - /// - /// List of custom audience members that this custom audience is composed of. - /// Members can be added during CustomAudience creation. If members are - /// presented in UPDATE operation, existing members will be overridden. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Members { - get { return members_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudience); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudience other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Status != other.Status) return false; - if (Name != other.Name) return false; - if (Type != other.Type) return false; - if (Description != other.Description) return false; - if(!members_.Equals(other.members_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus.Unspecified) hash ^= Status.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType.Unspecified) hash ^= Type.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - hash ^= members_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (Description.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Description); - } - members_.WriteTo(output, _repeated_members_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Name.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - if (Description.Length != 0) { - output.WriteRawTag(50); - output.WriteString(Description); - } - members_.WriteTo(ref output, _repeated_members_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - size += members_.CalculateSize(_repeated_members_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudience other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus.Unspecified) { - Status = other.Status; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType.Unspecified) { - Type = other.Type; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - members_.Add(other.members_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus) input.ReadEnum(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType) input.ReadEnum(); - break; - } - case 50: { - Description = input.ReadString(); - break; - } - case 58: { - members_.AddEntriesFrom(input, _repeated_members_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus) input.ReadEnum(); - break; - } - case 34: { - Name = input.ReadString(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType) input.ReadEnum(); - break; - } - case 50: { - Description = input.ReadString(); - break; - } - case 58: { - members_.AddEntriesFrom(ref input, _repeated_members_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A member of custom audience. A member can be a KEYWORD, URL, - /// PLACE_CATEGORY or APP. It can only be created or removed but not changed. - /// - public sealed partial class CustomAudienceMember : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceMember()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomAudienceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceMember() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceMember(CustomAudienceMember other) : this() { - memberType_ = other.memberType_; - switch (other.ValueCase) { - case ValueOneofCase.Keyword: - Keyword = other.Keyword; - break; - case ValueOneofCase.Url: - Url = other.Url; - break; - case ValueOneofCase.PlaceCategory: - PlaceCategory = other.PlaceCategory; - break; - case ValueOneofCase.App: - App = other.App; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceMember Clone() { - return new CustomAudienceMember(this); - } - - /// Field number for the "member_type" field. - public const int MemberTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType memberType_ = global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType.Unspecified; - /// - /// The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType MemberType { - get { return memberType_; } - set { - memberType_ = value; - } - } - - /// Field number for the "keyword" field. - public const int KeywordFieldNumber = 2; - /// - /// A keyword or keyword phrase — at most 10 words and 80 characters. - /// Languages with double-width characters such as Chinese, Japanese, - /// or Korean, are allowed 40 characters, which describes the user's - /// interests or actions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Keyword { - get { return valueCase_ == ValueOneofCase.Keyword ? (string) value_ : ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - valueCase_ = ValueOneofCase.Keyword; - } - } - - /// Field number for the "url" field. - public const int UrlFieldNumber = 3; - /// - /// An HTTP URL, protocol-included — at most 2048 characters, which includes - /// contents users have interests in. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Url { - get { return valueCase_ == ValueOneofCase.Url ? (string) value_ : ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - valueCase_ = ValueOneofCase.Url; - } - } - - /// Field number for the "place_category" field. - public const int PlaceCategoryFieldNumber = 4; - /// - /// A place type described by a place category users visit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PlaceCategory { - get { return valueCase_ == ValueOneofCase.PlaceCategory ? (long) value_ : 0L; } - set { - value_ = value; - valueCase_ = ValueOneofCase.PlaceCategory; - } - } - - /// Field number for the "app" field. - public const int AppFieldNumber = 5; - /// - /// A package name of Android apps which users installed such as - /// com.google.example. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string App { - get { return valueCase_ == ValueOneofCase.App ? (string) value_ : ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - valueCase_ = ValueOneofCase.App; - } - } - - private object value_; - /// Enum of possible cases for the "value" oneof. - public enum ValueOneofCase { - None = 0, - Keyword = 2, - Url = 3, - PlaceCategory = 4, - App = 5, - } - private ValueOneofCase valueCase_ = ValueOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ValueOneofCase ValueCase { - get { return valueCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - valueCase_ = ValueOneofCase.None; - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceMember); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceMember other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MemberType != other.MemberType) return false; - if (Keyword != other.Keyword) return false; - if (Url != other.Url) return false; - if (PlaceCategory != other.PlaceCategory) return false; - if (App != other.App) return false; - if (ValueCase != other.ValueCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType.Unspecified) hash ^= MemberType.GetHashCode(); - if (valueCase_ == ValueOneofCase.Keyword) hash ^= Keyword.GetHashCode(); - if (valueCase_ == ValueOneofCase.Url) hash ^= Url.GetHashCode(); - if (valueCase_ == ValueOneofCase.PlaceCategory) hash ^= PlaceCategory.GetHashCode(); - if (valueCase_ == ValueOneofCase.App) hash ^= App.GetHashCode(); - hash ^= (int) valueCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) MemberType); - } - if (valueCase_ == ValueOneofCase.Keyword) { - output.WriteRawTag(18); - output.WriteString(Keyword); - } - if (valueCase_ == ValueOneofCase.Url) { - output.WriteRawTag(26); - output.WriteString(Url); - } - if (valueCase_ == ValueOneofCase.PlaceCategory) { - output.WriteRawTag(32); - output.WriteInt64(PlaceCategory); - } - if (valueCase_ == ValueOneofCase.App) { - output.WriteRawTag(42); - output.WriteString(App); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) MemberType); - } - if (valueCase_ == ValueOneofCase.Keyword) { - output.WriteRawTag(18); - output.WriteString(Keyword); - } - if (valueCase_ == ValueOneofCase.Url) { - output.WriteRawTag(26); - output.WriteString(Url); - } - if (valueCase_ == ValueOneofCase.PlaceCategory) { - output.WriteRawTag(32); - output.WriteInt64(PlaceCategory); - } - if (valueCase_ == ValueOneofCase.App) { - output.WriteRawTag(42); - output.WriteString(App); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MemberType); - } - if (valueCase_ == ValueOneofCase.Keyword) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Keyword); - } - if (valueCase_ == ValueOneofCase.Url) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); - } - if (valueCase_ == ValueOneofCase.PlaceCategory) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(PlaceCategory); - } - if (valueCase_ == ValueOneofCase.App) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(App); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceMember other) { - if (other == null) { - return; - } - if (other.MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType.Unspecified) { - MemberType = other.MemberType; - } - switch (other.ValueCase) { - case ValueOneofCase.Keyword: - Keyword = other.Keyword; - break; - case ValueOneofCase.Url: - Url = other.Url; - break; - case ValueOneofCase.PlaceCategory: - PlaceCategory = other.PlaceCategory; - break; - case ValueOneofCase.App: - App = other.App; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - MemberType = (global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType) input.ReadEnum(); - break; - } - case 18: { - Keyword = input.ReadString(); - break; - } - case 26: { - Url = input.ReadString(); - break; - } - case 32: { - PlaceCategory = input.ReadInt64(); - break; - } - case 42: { - App = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - MemberType = (global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType) input.ReadEnum(); - break; - } - case 18: { - Keyword = input.ReadString(); - break; - } - case 26: { - Url = input.ReadString(); - break; - } - case 32: { - PlaceCategory = input.ReadInt64(); - break; - } - case 42: { - App = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceError.g.cs deleted file mode 100755 index ecafc6dae..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceError.g.cs +++ /dev/null @@ -1,266 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/custom_audience_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/custom_audience_error.proto - public static partial class CustomAudienceErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/custom_audience_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomAudienceErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbV9hdWRp", - "ZW5jZV9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVy", - "cm9ycyLFAgoXQ3VzdG9tQXVkaWVuY2VFcnJvckVudW0iqQIKE0N1c3RvbUF1", - "ZGllbmNlRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFQoR", - "TkFNRV9BTFJFQURZX1VTRUQQAhIeChpDQU5OT1RfUkVNT1ZFX1dISUxFX0lO", - "X1VTRRADEhwKGFJFU09VUkNFX0FMUkVBRFlfUkVNT1ZFRBAEEi0KKU1FTUJF", - "Ul9UWVBFX0FORF9QQVJBTUVURVJfQUxSRUFEWV9FWElTVEVEEAUSFwoTSU5W", - "QUxJRF9NRU1CRVJfVFlQRRAGEigKJE1FTUJFUl9UWVBFX0FORF9WQUxVRV9E", - "T0VTX05PVF9NQVRDSBAHEhQKEFBPTElDWV9WSU9MQVRJT04QCBIXChNJTlZB", - "TElEX1RZUEVfQ0hBTkdFEAlC+AEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzQhhDdXN0b21BdWRpZW5jZUVycm9yUHJvdG9QAVpFZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "cnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorEnum.Types.CustomAudienceError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible custom audience errors. - /// - public sealed partial class CustomAudienceErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceErrorEnum(CustomAudienceErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceErrorEnum Clone() { - return new CustomAudienceErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomAudienceErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible custom audience errors. - /// - public enum CustomAudienceError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// New name in the custom audience is duplicated ignoring cases. - /// - [pbr::OriginalName("NAME_ALREADY_USED")] NameAlreadyUsed = 2, - /// - /// Cannot remove a custom audience while it's still being used as targeting. - /// - [pbr::OriginalName("CANNOT_REMOVE_WHILE_IN_USE")] CannotRemoveWhileInUse = 3, - /// - /// Cannot update or remove a custom audience that is already removed. - /// - [pbr::OriginalName("RESOURCE_ALREADY_REMOVED")] ResourceAlreadyRemoved = 4, - /// - /// The pair of [type, value] already exists in members. - /// - [pbr::OriginalName("MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED")] MemberTypeAndParameterAlreadyExisted = 5, - /// - /// Member type is invalid. - /// - [pbr::OriginalName("INVALID_MEMBER_TYPE")] InvalidMemberType = 6, - /// - /// Member type does not have associated value. - /// - [pbr::OriginalName("MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH")] MemberTypeAndValueDoesNotMatch = 7, - /// - /// Custom audience contains a member that violates policy. - /// - [pbr::OriginalName("POLICY_VIOLATION")] PolicyViolation = 8, - /// - /// Change in custom audience type is not allowed. - /// - [pbr::OriginalName("INVALID_TYPE_CHANGE")] InvalidTypeChange = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceMemberType.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceMemberType.g.cs deleted file mode 100755 index d89fd8680..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceMemberType.g.cs +++ /dev/null @@ -1,246 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_audience_member_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_audience_member_type.proto - public static partial class CustomAudienceMemberTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_audience_member_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomAudienceMemberTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX2F1ZGll", - "bmNlX21lbWJlcl90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMiiwEKHEN1c3RvbUF1ZGllbmNlTWVtYmVyVHlwZUVudW0iawoY", - "Q3VzdG9tQXVkaWVuY2VNZW1iZXJUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEgsKB0tFWVdPUkQQAhIHCgNVUkwQAxISCg5QTEFDRV9DQVRF", - "R09SWRAEEgcKA0FQUBAFQvcBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQh1DdXN0b21BdWRpZW5jZU1lbWJlclR5cGVQcm90b1ABWkNn", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVu", - "dW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJv", - "dG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeEnum.Types.CustomAudienceMemberType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The type of custom audience member. - /// - public sealed partial class CustomAudienceMemberTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceMemberTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceMemberTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceMemberTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceMemberTypeEnum(CustomAudienceMemberTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceMemberTypeEnum Clone() { - return new CustomAudienceMemberTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceMemberTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceMemberTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceMemberTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomAudienceMemberTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible custom audience member types. - /// - public enum CustomAudienceMemberType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Users whose interests or actions are described by a keyword. - /// - [pbr::OriginalName("KEYWORD")] Keyword = 2, - /// - /// Users who have interests related to the website's content. - /// - [pbr::OriginalName("URL")] Url = 3, - /// - /// Users who visit place types described by a place category. - /// - [pbr::OriginalName("PLACE_CATEGORY")] PlaceCategory = 4, - /// - /// Users who have installed a mobile app. - /// - [pbr::OriginalName("APP")] App = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceResourceNames.g.cs deleted file mode 100755 index f6d9c0eef..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceResourceNames.g.cs +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomAudience resource. - public sealed partial class CustomAudienceName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customAudiences/{custom_audience_id}. - /// - CustomerCustomAudience = 1, - } - - private static gax::PathTemplate s_customerCustomAudience = new gax::PathTemplate("customers/{customer_id}/customAudiences/{custom_audience_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomAudienceName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomAudienceName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customAudiences/{custom_audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CustomAudience ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomAudienceName FromCustomerCustomAudience(string customerId, string customAudienceId) => - new CustomAudienceName(ResourceNameType.CustomerCustomAudience, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customAudienceId: gax::GaxPreconditions.CheckNotNullOrEmpty(customAudienceId, nameof(customAudienceId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customAudiences/{custom_audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CustomAudience ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customAudiences/{custom_audience_id}. - /// - public static string Format(string customerId, string customAudienceId) => - FormatCustomerCustomAudience(customerId, customAudienceId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customAudiences/{custom_audience_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CustomAudience ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customAudiences/{custom_audience_id}. - /// - public static string FormatCustomerCustomAudience(string customerId, string customAudienceId) => - s_customerCustomAudience.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(customAudienceId, nameof(customAudienceId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customAudiences/{custom_audience_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomAudienceName Parse(string customAudienceName) => Parse(customAudienceName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customAudiences/{custom_audience_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomAudienceName Parse(string customAudienceName, bool allowUnparsed) => - TryParse(customAudienceName, allowUnparsed, out CustomAudienceName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customAudiences/{custom_audience_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customAudienceName, out CustomAudienceName result) => - TryParse(customAudienceName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customAudiences/{custom_audience_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customAudienceName, bool allowUnparsed, out CustomAudienceName result) - { - gax::GaxPreconditions.CheckNotNull(customAudienceName, nameof(customAudienceName)); - gax::TemplatedResourceName resourceName; - if (s_customerCustomAudience.TryParseName(customAudienceName, out resourceName)) - { - result = FromCustomerCustomAudience(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customAudienceName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomAudienceName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customAudienceId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomAudienceId = customAudienceId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/customAudiences/{custom_audience_id} - /// - /// The Customer ID. Must not be null or empty. - /// The CustomAudience ID. Must not be null or empty. - public CustomAudienceName(string customerId, string customAudienceId) : this(ResourceNameType.CustomerCustomAudience, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customAudienceId: gax::GaxPreconditions.CheckNotNullOrEmpty(customAudienceId, nameof(customAudienceId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CustomAudience ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string CustomAudienceId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCustomAudience: return s_customerCustomAudience.Expand(CustomerId, CustomAudienceId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomAudienceName); - - /// - public bool Equals(CustomAudienceName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomAudienceName a, CustomAudienceName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomAudienceName a, CustomAudienceName b) => !(a == b); - } - - public partial class CustomAudience - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomAudienceName ResourceNameAsCustomAudienceName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomAudienceName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomAudienceName CustomAudienceName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CustomAudienceName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceService.g.cs deleted file mode 100755 index ac2dd8a49..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceService.g.cs +++ /dev/null @@ -1,1115 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/custom_audience_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/custom_audience_service.proto - public static partial class CustomAudienceServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/custom_audience_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomAudienceServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tX2F1", - "ZGllbmNlX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNl", - "cy9jdXN0b21fYXVkaWVuY2UucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlv", - "bnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBp", - "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", - "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90byKkAQocTXV0", - "YXRlQ3VzdG9tQXVkaWVuY2VzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEo", - "CUID4EECElMKCm9wZXJhdGlvbnMYAiADKAsyOi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuQ3VzdG9tQXVkaWVuY2VPcGVyYXRpb25CA+BB", - "AhIVCg12YWxpZGF0ZV9vbmx5GAMgASgIIqMCChdDdXN0b21BdWRpZW5jZU9w", - "ZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5GaWVsZE1hc2sSRAoGY3JlYXRlGAEgASgLMjIuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21BdWRpZW5jZUgAEkQKBnVwZGF0", - "ZRgCIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "Q3VzdG9tQXVkaWVuY2VIABI+CgZyZW1vdmUYAyABKAlCLPpBKQonZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbUF1ZGllbmNlSABCCwoJb3BlcmF0", - "aW9uIm8KHU11dGF0ZUN1c3RvbUF1ZGllbmNlc1Jlc3BvbnNlEk4KB3Jlc3Vs", - "dHMYASADKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQ3VzdG9tQXVkaWVuY2VSZXN1bHQiYQoaTXV0YXRlQ3VzdG9tQXVk", - "aWVuY2VSZXN1bHQSQwoNcmVzb3VyY2VfbmFtZRgBIAEoCUIs+kEpCidnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tQXVkaWVuY2Uy1gIKFUN1c3Rv", - "bUF1ZGllbmNlU2VydmljZRL1AQoVTXV0YXRlQ3VzdG9tQXVkaWVuY2VzEj8u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3Rv", - "bUF1ZGllbmNlc1JlcXVlc3QaQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuTXV0YXRlQ3VzdG9tQXVkaWVuY2VzUmVzcG9uc2UiWYLT5JMC", - "OiI1L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2N1c3RvbUF1ZGll", - "bmNlczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVh", - "cGlzLmNvbS9hdXRoL2Fkd29yZHNChgIKJWNvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXNCGkN1c3RvbUF1ZGllbmNlU2VydmljZVByb3Rv", - "UAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomAudienceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomAudienceOperation), global::Google.Ads.GoogleAds.V12.Services.CustomAudienceOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudienceResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudienceResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomAudienceService.MutateCustomAudiences][google.ads.googleads.v12.services.CustomAudienceService.MutateCustomAudiences]. - /// - public sealed partial class MutateCustomAudiencesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomAudiencesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudiencesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudiencesRequest(MutateCustomAudiencesRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudiencesRequest Clone() { - return new MutateCustomAudiencesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose custom audiences are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomAudienceOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual custom audiences. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomAudiencesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomAudiencesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomAudiencesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update) on a custom audience. - /// - public sealed partial class CustomAudienceOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceOperation(CustomAudienceOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceOperation Clone() { - return new CustomAudienceOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new custom - /// audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomAudience Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomAudience) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The custom audience is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomAudience Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomAudience) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed custom audience is - /// expected, in this format: - /// - /// `customers/{customer_id}/customAudiences/{custom_audience_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomAudience subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for custom audience mutate. - /// - public sealed partial class MutateCustomAudiencesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomAudiencesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudiencesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudiencesResponse(MutateCustomAudiencesResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudiencesResponse Clone() { - return new MutateCustomAudiencesResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudienceResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomAudiencesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomAudiencesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomAudiencesResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the custom audience mutate. - /// - public sealed partial class MutateCustomAudienceResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomAudienceResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomAudienceServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudienceResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudienceResult(MutateCustomAudienceResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomAudienceResult Clone() { - return new MutateCustomAudienceResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomAudienceResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomAudienceResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomAudienceResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceClient.g.cs deleted file mode 100755 index 0286608c5..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceClient.g.cs +++ /dev/null @@ -1,484 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomAudienceServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomAudienceServiceSettings GetDefault() => new CustomAudienceServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomAudienceServiceSettings() - { - } - - private CustomAudienceServiceSettings(CustomAudienceServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomAudiencesSettings = existing.MutateCustomAudiencesSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomAudienceServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomAudienceServiceClient.MutateCustomAudiences and - /// CustomAudienceServiceClient.MutateCustomAudiencesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomAudiencesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomAudienceServiceSettings Clone() => new CustomAudienceServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomAudienceServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomAudienceServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomAudienceServiceClientBuilder() : base(CustomAudienceServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomAudienceServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomAudienceServiceClient Build() - { - CustomAudienceServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomAudienceServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomAudienceServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomAudienceServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomAudienceServiceClient.ChannelPool; - } - - /// CustomAudienceService client wrapper, for convenient use. - /// - /// Service to manage custom audiences. - /// - public abstract partial class CustomAudienceServiceClient - { - /// - /// The default endpoint for the CustomAudienceService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomAudienceService scopes. - /// - /// The default CustomAudienceService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomAudienceService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomAudienceServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomAudienceServiceClient Create() => new CustomAudienceServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomAudienceServiceClient Create(grpccore::CallInvoker callInvoker, CustomAudienceServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomAudienceService.CustomAudienceServiceClient grpcClient = new CustomAudienceService.CustomAudienceServiceClient(callInvoker); - return new CustomAudienceServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomAudienceService client - public virtual CustomAudienceService.CustomAudienceServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomAudiencesResponse MutateCustomAudiences(MutateCustomAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomAudiencesAsync(MutateCustomAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomAudiencesAsync(MutateCustomAudiencesRequest request, st::CancellationToken cancellationToken) => - MutateCustomAudiencesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose custom audiences are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom audiences. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomAudiencesResponse MutateCustomAudiences(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomAudiences(new MutateCustomAudiencesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose custom audiences are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom audiences. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomAudiencesAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomAudiencesAsync(new MutateCustomAudiencesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose custom audiences are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom audiences. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomAudiencesAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomAudiencesAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomAudienceService client wrapper implementation, for convenient use. - /// - /// Service to manage custom audiences. - /// - public sealed partial class CustomAudienceServiceClientImpl : CustomAudienceServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomAudiences; - - /// - /// Constructs a client wrapper for the CustomAudienceService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CustomAudienceServiceClientImpl(CustomAudienceService.CustomAudienceServiceClient grpcClient, CustomAudienceServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomAudienceServiceSettings effectiveSettings = settings ?? CustomAudienceServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomAudiences = clientHelper.BuildApiCall("MutateCustomAudiences", grpcClient.MutateCustomAudiencesAsync, grpcClient.MutateCustomAudiences, effectiveSettings.MutateCustomAudiencesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomAudiences); - Modify_MutateCustomAudiencesApiCall(ref _callMutateCustomAudiences); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomAudiencesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomAudienceService.CustomAudienceServiceClient grpcClient, CustomAudienceServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomAudienceService client - public override CustomAudienceService.CustomAudienceServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomAudiencesRequest(ref MutateCustomAudiencesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomAudiencesResponse MutateCustomAudiences(MutateCustomAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomAudiencesRequest(ref request, ref callSettings); - return _callMutateCustomAudiences.Sync(request, callSettings); - } - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomAudiencesAsync(MutateCustomAudiencesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomAudiencesRequest(ref request, ref callSettings); - return _callMutateCustomAudiences.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceGrpc.g.cs deleted file mode 100755 index 0ac449016..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceGrpc.g.cs +++ /dev/null @@ -1,282 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/custom_audience_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage custom audiences. - /// - public static partial class CustomAudienceService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomAudienceService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomAudiencesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomAudiencesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomAudiences = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomAudiences", - __Marshaller_google_ads_googleads_v12_services_MutateCustomAudiencesRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomAudiencesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomAudienceServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomAudienceService - [grpc::BindServiceMethod(typeof(CustomAudienceService), "BindService")] - public abstract partial class CustomAudienceServiceBase - { - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomAudiences(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomAudienceService - public partial class CustomAudienceServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomAudienceService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomAudienceServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomAudienceService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomAudienceServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomAudienceServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomAudienceServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesResponse MutateCustomAudiences(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomAudiences(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesResponse MutateCustomAudiences(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomAudiences, null, options, request); - } - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomAudiencesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomAudiencesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates custom audiences. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomAudienceError]() - /// [CustomInterestError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [OperationAccessDeniedError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomAudiencesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomAudiencesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomAudiences, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomAudienceServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomAudienceServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomAudienceServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomAudiences, serviceImpl.MutateCustomAudiences).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomAudienceServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomAudiences, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomAudiences)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceResourceNames.g.cs deleted file mode 100755 index f419147fe..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomAudienceOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomAudienceName RemoveAsCustomAudienceName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomAudienceName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomAudienceResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomAudienceName ResourceNameAsCustomAudienceName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomAudienceName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceStatus.g.cs deleted file mode 100755 index c4905c73e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceStatus.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_audience_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_audience_status.proto - public static partial class CustomAudienceStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_audience_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomAudienceStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX2F1ZGll", - "bmNlX3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zImoKGEN1c3RvbUF1ZGllbmNlU3RhdHVzRW51bSJOChRDdXN0b21BdWRp", - "ZW5jZVN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdF", - "TkFCTEVEEAISCwoHUkVNT1ZFRBADQvMBCiJjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zQhlDdXN0b21BdWRpZW5jZVN0YXR1c1Byb3RvUAFa", - "Q2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "RW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusEnum.Types.CustomAudienceStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The status of custom audience. - /// - public sealed partial class CustomAudienceStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceStatusEnum(CustomAudienceStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceStatusEnum Clone() { - return new CustomAudienceStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomAudienceStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible custom audience statuses. - /// - public enum CustomAudienceStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Enabled status - custom audience is enabled and can be targeted. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Removed status - custom audience is removed and cannot be used for - /// targeting. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomAudienceType.g.cs b/Google.Ads.GoogleAds/src/V12/CustomAudienceType.g.cs deleted file mode 100755 index 1480b93c6..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomAudienceType.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_audience_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_audience_type.proto - public static partial class CustomAudienceTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_audience_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomAudienceTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX2F1ZGll", - "bmNlX3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cyKFAQoWQ3VzdG9tQXVkaWVuY2VUeXBlRW51bSJrChJDdXN0b21BdWRpZW5j", - "ZVR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCAoEQVVUTxAC", - "EgwKCElOVEVSRVNUEAMSEwoPUFVSQ0hBU0VfSU5URU5UEAQSCgoGU0VBUkNI", - "EAVC8QEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCF0N1", - "c3RvbUF1ZGllbmNlVHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51", - "bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5H", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeEnum.Types.CustomAudienceType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The types of custom audience. - /// - public sealed partial class CustomAudienceTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomAudienceTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomAudienceTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceTypeEnum(CustomAudienceTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomAudienceTypeEnum Clone() { - return new CustomAudienceTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomAudienceTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomAudienceTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomAudienceTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomAudienceTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible custom audience types. - /// - public enum CustomAudienceType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Google Ads will auto-select the best interpretation at serving - /// time. - /// - [pbr::OriginalName("AUTO")] Auto = 2, - /// - /// Matches users by their interests. - /// - [pbr::OriginalName("INTEREST")] Interest = 3, - /// - /// Matches users by topics they are researching or products they are - /// considering for purchase. - /// - [pbr::OriginalName("PURCHASE_INTENT")] PurchaseIntent = 4, - /// - /// Matches users by what they searched on Google Search. - /// - [pbr::OriginalName("SEARCH")] Search = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoal.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoal.g.cs deleted file mode 100755 index 0509c50bf..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoal.g.cs +++ /dev/null @@ -1,409 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/custom_conversion_goal.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/custom_conversion_goal.proto - public static partial class CustomConversionGoalReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/custom_conversion_goal.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomConversionGoalReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbV9j", - "b252ZXJzaW9uX2dvYWwucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMaQmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9j", - "dXN0b21fY29udmVyc2lvbl9nb2FsX3N0YXR1cy5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90byKnAwoUQ3VzdG9tQ29udmVyc2lvbkdvYWwSTAoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUI14EEF+kEvCi1nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3Vz", - "dG9tQ29udmVyc2lvbkdvYWwSDwoCaWQYAiABKANCA+BBBRIMCgRuYW1lGAMg", - "ASgJEkoKEmNvbnZlcnNpb25fYWN0aW9ucxgEIAMoCUIu+kErCilnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQ29udmVyc2lvbkFjdGlvbhJpCgZzdGF0dXMY", - "BSABKA4yWS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQ3VzdG9t", - "Q29udmVyc2lvbkdvYWxTdGF0dXNFbnVtLkN1c3RvbUNvbnZlcnNpb25Hb2Fs", - "U3RhdHVzOmvqQWgKLWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21D", - "b252ZXJzaW9uR29hbBI3Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY3VzdG9t", - "Q29udmVyc2lvbkdvYWxzL3tnb2FsX2lkfUKLAgomY29tLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCGUN1c3RvbUNvbnZlcnNpb25Hb2Fs", - "UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FB", - "qgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal), global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal.Parser, new[]{ "ResourceName", "Id", "Name", "ConversionActions", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Custom conversion goal that can make arbitrary conversion actions biddable. - /// - public sealed partial class CustomConversionGoal : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomConversionGoal()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoalReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoal() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoal(CustomConversionGoal other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - conversionActions_ = other.conversionActions_.Clone(); - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoal Clone() { - return new CustomConversionGoal(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the custom conversion goal. - /// Custom conversion goal resource names have the form: - /// - /// `customers/{customer_id}/customConversionGoals/{goal_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Immutable. The ID for this custom conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// The name for this custom conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "conversion_actions" field. - public const int ConversionActionsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_conversionActions_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField conversionActions_ = new pbc::RepeatedField(); - /// - /// Conversion actions that the custom conversion goal makes biddable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ConversionActions { - get { return conversionActions_; } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus.Unspecified; - /// - /// The status of the custom conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomConversionGoal); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomConversionGoal other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if(!conversionActions_.Equals(other.conversionActions_)) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - hash ^= conversionActions_.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - conversionActions_.WriteTo(output, _repeated_conversionActions_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - conversionActions_.WriteTo(ref output, _repeated_conversionActions_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - size += conversionActions_.CalculateSize(_repeated_conversionActions_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomConversionGoal other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - conversionActions_.Add(other.conversionActions_); - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - conversionActions_.AddEntriesFrom(input, _repeated_conversionActions_codec); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - conversionActions_.AddEntriesFrom(ref input, _repeated_conversionActions_codec); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoalError.g.cs deleted file mode 100755 index 04db875ca..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalError.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/custom_conversion_goal_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/custom_conversion_goal_error.proto - public static partial class CustomConversionGoalErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/custom_conversion_goal_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomConversionGoalErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbV9jb252", - "ZXJzaW9uX2dvYWxfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnMilAIKHUN1c3RvbUNvbnZlcnNpb25Hb2FsRXJyb3JFbnVt", - "IvIBChlDdXN0b21Db252ZXJzaW9uR29hbEVycm9yEg8KC1VOU1BFQ0lGSUVE", - "EAASCwoHVU5LTk9XThABEh0KGUlOVkFMSURfQ09OVkVSU0lPTl9BQ1RJT04Q", - "AhIhCh1DT05WRVJTSU9OX0FDVElPTl9OT1RfRU5BQkxFRBADEi8KK0NBTk5P", - "VF9SRU1PVkVfTElOS0VEX0NVU1RPTV9DT05WRVJTSU9OX0dPQUwQBBIeChpD", - "VVNUT01fR09BTF9EVVBMSUNBVEVfTkFNRRAFEiQKIERVUExJQ0FURV9DT05W", - "RVJTSU9OX0FDVElPTl9MSVNUEAZC/gEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzQh5DdXN0b21Db252ZXJzaW9uR29hbEVycm9yUHJv", - "dG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorEnum.Types.CustomConversionGoalError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible custom conversion goal errors. - /// - public sealed partial class CustomConversionGoalErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomConversionGoalErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalErrorEnum(CustomConversionGoalErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalErrorEnum Clone() { - return new CustomConversionGoalErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomConversionGoalErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomConversionGoalErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomConversionGoalErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomConversionGoalErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible custom conversion goal errors. - /// - public enum CustomConversionGoalError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Cannot find a conversion action with the specified id. - /// - [pbr::OriginalName("INVALID_CONVERSION_ACTION")] InvalidConversionAction = 2, - /// - /// The conversion action is not enabled so it cannot be included in a custom - /// conversion goal. - /// - [pbr::OriginalName("CONVERSION_ACTION_NOT_ENABLED")] ConversionActionNotEnabled = 3, - /// - /// The custom conversion goal cannot be removed because it's linked to a - /// campaign. - /// - [pbr::OriginalName("CANNOT_REMOVE_LINKED_CUSTOM_CONVERSION_GOAL")] CannotRemoveLinkedCustomConversionGoal = 4, - /// - /// Custom goal with the same name already exists. - /// - [pbr::OriginalName("CUSTOM_GOAL_DUPLICATE_NAME")] CustomGoalDuplicateName = 5, - /// - /// Custom goal with the same conversion action list already exists. - /// - [pbr::OriginalName("DUPLICATE_CONVERSION_ACTION_LIST")] DuplicateConversionActionList = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoalResourceNames.g.cs deleted file mode 100755 index ab935a187..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalResourceNames.g.cs +++ /dev/null @@ -1,281 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomConversionGoal resource. - public sealed partial class CustomConversionGoalName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customConversionGoals/{goal_id}. - /// - CustomerGoal = 1, - } - - private static gax::PathTemplate s_customerGoal = new gax::PathTemplate("customers/{customer_id}/customConversionGoals/{goal_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomConversionGoalName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomConversionGoalName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customConversionGoals/{goal_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Goal ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CustomConversionGoalName FromCustomerGoal(string customerId, string goalId) => - new CustomConversionGoalName(ResourceNameType.CustomerGoal, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), goalId: gax::GaxPreconditions.CheckNotNullOrEmpty(goalId, nameof(goalId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customConversionGoals/{goal_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Goal ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customConversionGoals/{goal_id}. - /// - public static string Format(string customerId, string goalId) => FormatCustomerGoal(customerId, goalId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customConversionGoals/{goal_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Goal ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customConversionGoals/{goal_id}. - /// - public static string FormatCustomerGoal(string customerId, string goalId) => - s_customerGoal.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(goalId, nameof(goalId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customConversionGoals/{goal_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomConversionGoalName Parse(string customConversionGoalName) => - Parse(customConversionGoalName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customConversionGoals/{goal_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomConversionGoalName Parse(string customConversionGoalName, bool allowUnparsed) => - TryParse(customConversionGoalName, allowUnparsed, out CustomConversionGoalName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customConversionGoals/{goal_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customConversionGoalName, out CustomConversionGoalName result) => - TryParse(customConversionGoalName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customConversionGoals/{goal_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customConversionGoalName, bool allowUnparsed, out CustomConversionGoalName result) - { - gax::GaxPreconditions.CheckNotNull(customConversionGoalName, nameof(customConversionGoalName)); - gax::TemplatedResourceName resourceName; - if (s_customerGoal.TryParseName(customConversionGoalName, out resourceName)) - { - result = FromCustomerGoal(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customConversionGoalName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomConversionGoalName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string goalId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - GoalId = goalId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customConversionGoals/{goal_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Goal ID. Must not be null or empty. - public CustomConversionGoalName(string customerId, string goalId) : this(ResourceNameType.CustomerGoal, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), goalId: gax::GaxPreconditions.CheckNotNullOrEmpty(goalId, nameof(goalId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Goal ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string GoalId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerGoal: return s_customerGoal.Expand(CustomerId, GoalId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomConversionGoalName); - - /// - public bool Equals(CustomConversionGoalName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomConversionGoalName a, CustomConversionGoalName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomConversionGoalName a, CustomConversionGoalName b) => !(a == b); - } - - public partial class CustomConversionGoal - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomConversionGoalName ResourceNameAsCustomConversionGoalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomConversionGoalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomConversionGoalName CustomConversionGoalName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CustomConversionGoalName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gax::ResourceNameList ConversionActionsAsConversionActionNames - { - get => new gax::ResourceNameList(ConversionActions, s => string.IsNullOrEmpty(s) ? null : ConversionActionName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoalService.g.cs deleted file mode 100755 index c6b35d483..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalService.g.cs +++ /dev/null @@ -1,1216 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/custom_conversion_goal_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/custom_conversion_goal_service.proto - public static partial class CustomConversionGoalServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/custom_conversion_goal_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomConversionGoalServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tX2Nv", - "bnZlcnNpb25fZ29hbF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aP2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tX2NvbnZlcnNpb25fZ29h", - "bC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xl", - "L2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", - "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aIGdvb2dsZS9wcm90", - "b2J1Zi9maWVsZF9tYXNrLnByb3RvIpwCCiJNdXRhdGVDdXN0b21Db252ZXJz", - "aW9uR29hbHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISWQoK", - "b3BlcmF0aW9ucxgCIAMoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5DdXN0b21Db252ZXJzaW9uR29hbE9wZXJhdGlvbkID4EECEhUK", - "DXZhbGlkYXRlX29ubHkYAyABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBl", - "GAQgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3Bv", - "bnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUiuwIKHUN1", - "c3RvbUNvbnZlcnNpb25Hb2FsT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJKCgZjcmVhdGUYASAB", - "KAsyOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkN1c3Rv", - "bUNvbnZlcnNpb25Hb2FsSAASSgoGdXBkYXRlGAIgASgLMjguZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21Db252ZXJzaW9uR29h", - "bEgAEkQKBnJlbW92ZRgDIAEoCUIy+kEvCi1nb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ3VzdG9tQ29udmVyc2lvbkdvYWxIAEILCglvcGVyYXRpb24iewoj", - "TXV0YXRlQ3VzdG9tQ29udmVyc2lvbkdvYWxzUmVzcG9uc2USVAoHcmVzdWx0", - "cxgBIAMoCzJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5N", - "dXRhdGVDdXN0b21Db252ZXJzaW9uR29hbFJlc3VsdCLHAQogTXV0YXRlQ3Vz", - "dG9tQ29udmVyc2lvbkdvYWxSZXN1bHQSSQoNcmVzb3VyY2VfbmFtZRgBIAEo", - "CUIy+kEvCi1nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tQ29udmVy", - "c2lvbkdvYWwSWAoWY3VzdG9tX2NvbnZlcnNpb25fZ29hbBgCIAEoCzI4Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tQ29udmVy", - "c2lvbkdvYWwy9AIKG0N1c3RvbUNvbnZlcnNpb25Hb2FsU2VydmljZRKNAgob", - "TXV0YXRlQ3VzdG9tQ29udmVyc2lvbkdvYWxzEkUuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbUNvbnZlcnNpb25Hb2Fs", - "c1JlcXVlc3QaRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQ3VzdG9tQ29udmVyc2lvbkdvYWxzUmVzcG9uc2UiX4LT5JMCQCI7", - "L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2N1c3RvbUNvbnZlcnNp", - "b25Hb2FsczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXK", - "QRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29n", - "bGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCjAIKJWNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXNCIEN1c3RvbUNvbnZlcnNpb25Hb2FsU2Vy", - "dmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNH", - "QUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoalReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation), global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult.Parser, new[]{ "ResourceName", "CustomConversionGoal" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CustomConversionGoalService.MutateCustomConversionGoals][google.ads.googleads.v12.services.CustomConversionGoalService.MutateCustomConversionGoals]. - /// - public sealed partial class MutateCustomConversionGoalsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomConversionGoalsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalsRequest(MutateCustomConversionGoalsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalsRequest Clone() { - return new MutateCustomConversionGoalsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual custom conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomConversionGoalsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomConversionGoalsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomConversionGoalsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on a custom conversion goal. - /// - public sealed partial class CustomConversionGoalOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomConversionGoalOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalOperation(CustomConversionGoalOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalOperation Clone() { - return new CustomConversionGoalOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new custom - /// conversion goal - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The custom conversion goal is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed custom conversion goal - /// is expected, in this format: - /// - /// 'customers/{customer_id}/conversionActions/{ConversionGoal.custom_goal_config.conversion_type_ids}' - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomConversionGoalOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomConversionGoalOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomConversionGoalOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a custom conversion goal mutate. - /// - public sealed partial class MutateCustomConversionGoalsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomConversionGoalsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalsResponse(MutateCustomConversionGoalsResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalsResponse Clone() { - return new MutateCustomConversionGoalsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomConversionGoalsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomConversionGoalsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomConversionGoalsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the custom conversion goal mutate. - /// - public sealed partial class MutateCustomConversionGoalResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomConversionGoalResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalResult(MutateCustomConversionGoalResult other) : this() { - resourceName_ = other.resourceName_; - customConversionGoal_ = other.customConversionGoal_ != null ? other.customConversionGoal_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomConversionGoalResult Clone() { - return new MutateCustomConversionGoalResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "custom_conversion_goal" field. - public const int CustomConversionGoalFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal customConversionGoal_; - /// - /// The mutated CustomConversionGoal with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal CustomConversionGoal { - get { return customConversionGoal_; } - set { - customConversionGoal_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomConversionGoalResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomConversionGoalResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomConversionGoal, other.CustomConversionGoal)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customConversionGoal_ != null) hash ^= CustomConversionGoal.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customConversionGoal_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomConversionGoal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customConversionGoal_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomConversionGoal); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customConversionGoal_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomConversionGoal); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomConversionGoalResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customConversionGoal_ != null) { - if (customConversionGoal_ == null) { - CustomConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - CustomConversionGoal.MergeFrom(other.CustomConversionGoal); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customConversionGoal_ == null) { - CustomConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - input.ReadMessage(CustomConversionGoal); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customConversionGoal_ == null) { - CustomConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - input.ReadMessage(CustomConversionGoal); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceClient.g.cs deleted file mode 100755 index 8653c9f9d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomConversionGoalServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomConversionGoalServiceSettings GetDefault() => new CustomConversionGoalServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomConversionGoalServiceSettings() - { - } - - private CustomConversionGoalServiceSettings(CustomConversionGoalServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomConversionGoalsSettings = existing.MutateCustomConversionGoalsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomConversionGoalServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomConversionGoalServiceClient.MutateCustomConversionGoals and - /// CustomConversionGoalServiceClient.MutateCustomConversionGoalsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomConversionGoalsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomConversionGoalServiceSettings Clone() => new CustomConversionGoalServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class CustomConversionGoalServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomConversionGoalServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomConversionGoalServiceClientBuilder() : base(CustomConversionGoalServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomConversionGoalServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomConversionGoalServiceClient Build() - { - CustomConversionGoalServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomConversionGoalServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomConversionGoalServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomConversionGoalServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomConversionGoalServiceClient.ChannelPool; - } - - /// CustomConversionGoalService client wrapper, for convenient use. - /// - /// Service to manage custom conversion goal. - /// - public abstract partial class CustomConversionGoalServiceClient - { - /// - /// The default endpoint for the CustomConversionGoalService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomConversionGoalService scopes. - /// - /// The default CustomConversionGoalService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomConversionGoalService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomConversionGoalServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomConversionGoalServiceClient Create() => new CustomConversionGoalServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomConversionGoalServiceClient Create(grpccore::CallInvoker callInvoker, CustomConversionGoalServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomConversionGoalService.CustomConversionGoalServiceClient grpcClient = new CustomConversionGoalService.CustomConversionGoalServiceClient(callInvoker); - return new CustomConversionGoalServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomConversionGoalService client - public virtual CustomConversionGoalService.CustomConversionGoalServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomConversionGoalsResponse MutateCustomConversionGoals(MutateCustomConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomConversionGoalsAsync(MutateCustomConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomConversionGoalsAsync(MutateCustomConversionGoalsRequest request, st::CancellationToken cancellationToken) => - MutateCustomConversionGoalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom conversion goal. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomConversionGoalsResponse MutateCustomConversionGoals(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomConversionGoals(new MutateCustomConversionGoalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom conversion goal. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomConversionGoalsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomConversionGoalsAsync(new MutateCustomConversionGoalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose custom conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom conversion goal. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomConversionGoalsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomConversionGoalsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomConversionGoalService client wrapper implementation, for convenient use. - /// - /// Service to manage custom conversion goal. - /// - public sealed partial class CustomConversionGoalServiceClientImpl : CustomConversionGoalServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomConversionGoals; - - /// - /// Constructs a client wrapper for the CustomConversionGoalService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomConversionGoalServiceClientImpl(CustomConversionGoalService.CustomConversionGoalServiceClient grpcClient, CustomConversionGoalServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomConversionGoalServiceSettings effectiveSettings = settings ?? CustomConversionGoalServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomConversionGoals = clientHelper.BuildApiCall("MutateCustomConversionGoals", grpcClient.MutateCustomConversionGoalsAsync, grpcClient.MutateCustomConversionGoals, effectiveSettings.MutateCustomConversionGoalsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomConversionGoals); - Modify_MutateCustomConversionGoalsApiCall(ref _callMutateCustomConversionGoals); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomConversionGoalsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomConversionGoalService.CustomConversionGoalServiceClient grpcClient, CustomConversionGoalServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomConversionGoalService client - public override CustomConversionGoalService.CustomConversionGoalServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomConversionGoalsRequest(ref MutateCustomConversionGoalsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomConversionGoalsResponse MutateCustomConversionGoals(MutateCustomConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomConversionGoalsRequest(ref request, ref callSettings); - return _callMutateCustomConversionGoals.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomConversionGoalsAsync(MutateCustomConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomConversionGoalsRequest(ref request, ref callSettings); - return _callMutateCustomConversionGoals.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceGrpc.g.cs deleted file mode 100755 index caf6f35b4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/custom_conversion_goal_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage custom conversion goal. - /// - public static partial class CustomConversionGoalService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomConversionGoalService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomConversionGoalsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomConversionGoalsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomConversionGoals = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomConversionGoals", - __Marshaller_google_ads_googleads_v12_services_MutateCustomConversionGoalsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomConversionGoalsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomConversionGoalService - [grpc::BindServiceMethod(typeof(CustomConversionGoalService), "BindService")] - public abstract partial class CustomConversionGoalServiceBase - { - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomConversionGoalService - public partial class CustomConversionGoalServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomConversionGoalService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomConversionGoalServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomConversionGoalService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomConversionGoalServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomConversionGoalServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomConversionGoalServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsResponse MutateCustomConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomConversionGoals(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsResponse MutateCustomConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomConversionGoals, null, options, request); - } - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomConversionGoalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomConversionGoalsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes custom conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomConversionGoalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomConversionGoals, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomConversionGoalServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomConversionGoalServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomConversionGoalServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomConversionGoals, serviceImpl.MutateCustomConversionGoals).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomConversionGoalServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomConversionGoals, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomConversionGoals)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceResourceNames.g.cs deleted file mode 100755 index f0b01c4f0..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomConversionGoalOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomConversionGoalName RemoveAsCustomConversionGoalName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomConversionGoalName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomConversionGoalResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomConversionGoalName ResourceNameAsCustomConversionGoalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomConversionGoalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CustomConversionGoalStatus.g.cs deleted file mode 100755 index 1abe79759..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomConversionGoalStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_conversion_goal_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_conversion_goal_status.proto - public static partial class CustomConversionGoalStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_conversion_goal_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomConversionGoalStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX2NvbnZl", - "cnNpb25fZ29hbF9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcyJ2Ch5DdXN0b21Db252ZXJzaW9uR29hbFN0YXR1c0VudW0i", - "VAoaQ3VzdG9tQ29udmVyc2lvbkdvYWxTdGF0dXMSDwoLVU5TUEVDSUZJRUQQ", - "ABILCgdVTktOT1dOEAESCwoHRU5BQkxFRBACEgsKB1JFTU9WRUQQA0L5AQoi", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IfQ3VzdG9tQ29u", - "dmVyc2lvbkdvYWxTdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2Vu", - "dW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIe", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusEnum.Types.CustomConversionGoalStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a custom conversion goal. - /// - public sealed partial class CustomConversionGoalStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomConversionGoalStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomConversionGoalStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalStatusEnum(CustomConversionGoalStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomConversionGoalStatusEnum Clone() { - return new CustomConversionGoalStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomConversionGoalStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomConversionGoalStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomConversionGoalStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomConversionGoalStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of a custom conversion goal. - /// - public enum CustomConversionGoalStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The custom conversion goal is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The custom conversion goal is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterest.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterest.g.cs deleted file mode 100755 index 21661949c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterest.g.cs +++ /dev/null @@ -1,793 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/custom_interest.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/custom_interest.proto - public static partial class CustomInterestReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/custom_interest.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomInterestReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbV9p", - "bnRlcmVzdC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcxpAZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2N1c3RvbV9p", - "bnRlcmVzdF9tZW1iZXJfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2N1c3RvbV9pbnRlcmVzdF9zdGF0dXMucHJvdG8aOWdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jdXN0b21faW50ZXJlc3Rf", - "dHlwZS5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", - "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKqBAoOQ3VzdG9tSW50ZXJlc3QS", - "RgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIv4EEF+kEpCidnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ3VzdG9tSW50ZXJlc3QSFAoCaWQYCCABKANCA+BBA0gA", - "iAEBEl0KBnN0YXR1cxgDIAEoDjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5DdXN0b21JbnRlcmVzdFN0YXR1c0VudW0uQ3VzdG9tSW50ZXJl", - "c3RTdGF0dXMSEQoEbmFtZRgJIAEoCUgBiAEBElcKBHR5cGUYBSABKA4ySS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQ3VzdG9tSW50ZXJlc3RU", - "eXBlRW51bS5DdXN0b21JbnRlcmVzdFR5cGUSGAoLZGVzY3JpcHRpb24YCiAB", - "KAlIAogBARJJCgdtZW1iZXJzGAcgAygLMjguZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5DdXN0b21JbnRlcmVzdE1lbWJlcjpq6kFnCidn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tSW50ZXJlc3QSPGN1c3Rv", - "bWVycy97Y3VzdG9tZXJfaWR9L2N1c3RvbUludGVyZXN0cy97Y3VzdG9tX2lu", - "dGVyZXN0X2lkfUIFCgNfaWRCBwoFX25hbWVCDgoMX2Rlc2NyaXB0aW9uIqgB", - "ChRDdXN0b21JbnRlcmVzdE1lbWJlchJqCgttZW1iZXJfdHlwZRgBIAEoDjJV", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DdXN0b21JbnRlcmVz", - "dE1lbWJlclR5cGVFbnVtLkN1c3RvbUludGVyZXN0TWVtYmVyVHlwZRIWCglw", - "YXJhbWV0ZXIYAyABKAlIAIgBAUIMCgpfcGFyYW1ldGVyQoUCCiZjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0ITQ3VzdG9tSW50ZXJl", - "c3RQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNH", - "QUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomInterest), global::Google.Ads.GoogleAds.V12.Resources.CustomInterest.Parser, new[]{ "ResourceName", "Id", "Status", "Name", "Type", "Description", "Members" }, new[]{ "Id", "Name", "Description" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomInterestMember), global::Google.Ads.GoogleAds.V12.Resources.CustomInterestMember.Parser, new[]{ "MemberType", "Parameter" }, new[]{ "Parameter" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A custom interest. This is a list of users by interest. - /// - public sealed partial class CustomInterest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomInterest()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomInterestReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterest(CustomInterest other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - status_ = other.status_; - name_ = other.name_; - type_ = other.type_; - description_ = other.description_; - members_ = other.members_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterest Clone() { - return new CustomInterest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the custom interest. - /// Custom interest resource names have the form: - /// - /// `customers/{customer_id}/customInterests/{custom_interest_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 8; - private long id_; - /// - /// Output only. Id of the custom interest. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus.Unspecified; - /// - /// Status of this custom interest. Indicates whether the custom interest is - /// enabled or removed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 9; - private string name_; - /// - /// Name of the custom interest. It should be unique across the same custom - /// affinity audience. - /// This field is required for create operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType type_ = global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType.Unspecified; - /// - /// Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT. - /// By default the type is set to CUSTOM_AFFINITY. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 10; - private string description_; - /// - /// Description of this custom interest audience. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_ ?? ""; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() { - description_ = null; - } - - /// Field number for the "members" field. - public const int MembersFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_members_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Resources.CustomInterestMember.Parser); - private readonly pbc::RepeatedField members_ = new pbc::RepeatedField(); - /// - /// List of custom interest members that this custom interest is composed of. - /// Members can be added during CustomInterest creation. If members are - /// presented in UPDATE operation, existing members will be overridden. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Members { - get { return members_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomInterest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomInterest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Status != other.Status) return false; - if (Name != other.Name) return false; - if (Type != other.Type) return false; - if (Description != other.Description) return false; - if(!members_.Equals(other.members_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType.Unspecified) hash ^= Type.GetHashCode(); - if (HasDescription) hash ^= Description.GetHashCode(); - hash ^= members_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - members_.WriteTo(output, _repeated_members_codec); - if (HasId) { - output.WriteRawTag(64); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(74); - output.WriteString(Name); - } - if (HasDescription) { - output.WriteRawTag(82); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Type); - } - members_.WriteTo(ref output, _repeated_members_codec); - if (HasId) { - output.WriteRawTag(64); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(74); - output.WriteString(Name); - } - if (HasDescription) { - output.WriteRawTag(82); - output.WriteString(Description); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (HasDescription) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - size += members_.CalculateSize(_repeated_members_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomInterest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus.Unspecified) { - Status = other.Status; - } - if (other.HasName) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType.Unspecified) { - Type = other.Type; - } - if (other.HasDescription) { - Description = other.Description; - } - members_.Add(other.members_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus) input.ReadEnum(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType) input.ReadEnum(); - break; - } - case 58: { - members_.AddEntriesFrom(input, _repeated_members_codec); - break; - } - case 64: { - Id = input.ReadInt64(); - break; - } - case 74: { - Name = input.ReadString(); - break; - } - case 82: { - Description = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus) input.ReadEnum(); - break; - } - case 40: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType) input.ReadEnum(); - break; - } - case 58: { - members_.AddEntriesFrom(ref input, _repeated_members_codec); - break; - } - case 64: { - Id = input.ReadInt64(); - break; - } - case 74: { - Name = input.ReadString(); - break; - } - case 82: { - Description = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A member of custom interest audience. A member can be a keyword or url. - /// It is immutable, that is, it can only be created or removed but not changed. - /// - public sealed partial class CustomInterestMember : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomInterestMember()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomInterestReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestMember() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestMember(CustomInterestMember other) : this() { - memberType_ = other.memberType_; - parameter_ = other.parameter_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestMember Clone() { - return new CustomInterestMember(this); - } - - /// Field number for the "member_type" field. - public const int MemberTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType memberType_ = global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType.Unspecified; - /// - /// The type of custom interest member, KEYWORD or URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType MemberType { - get { return memberType_; } - set { - memberType_ = value; - } - } - - /// Field number for the "parameter" field. - public const int ParameterFieldNumber = 3; - private string parameter_; - /// - /// Keyword text when member_type is KEYWORD or URL string when - /// member_type is URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Parameter { - get { return parameter_ ?? ""; } - set { - parameter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "parameter" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasParameter { - get { return parameter_ != null; } - } - /// Clears the value of the "parameter" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParameter() { - parameter_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomInterestMember); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomInterestMember other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MemberType != other.MemberType) return false; - if (Parameter != other.Parameter) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType.Unspecified) hash ^= MemberType.GetHashCode(); - if (HasParameter) hash ^= Parameter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) MemberType); - } - if (HasParameter) { - output.WriteRawTag(26); - output.WriteString(Parameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) MemberType); - } - if (HasParameter) { - output.WriteRawTag(26); - output.WriteString(Parameter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MemberType); - } - if (HasParameter) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parameter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomInterestMember other) { - if (other == null) { - return; - } - if (other.MemberType != global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType.Unspecified) { - MemberType = other.MemberType; - } - if (other.HasParameter) { - Parameter = other.Parameter; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - MemberType = (global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType) input.ReadEnum(); - break; - } - case 26: { - Parameter = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - MemberType = (global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType) input.ReadEnum(); - break; - } - case 26: { - Parameter = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestError.g.cs deleted file mode 100755 index 017c33186..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestError.g.cs +++ /dev/null @@ -1,263 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/custom_interest_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/custom_interest_error.proto - public static partial class CustomInterestErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/custom_interest_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomInterestErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbV9pbnRl", - "cmVzdF9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVy", - "cm9ycyLZAgoXQ3VzdG9tSW50ZXJlc3RFcnJvckVudW0ivQIKE0N1c3RvbUlu", - "dGVyZXN0RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFQoR", - "TkFNRV9BTFJFQURZX1VTRUQQAhJGCkJDVVNUT01fSU5URVJFU1RfTUVNQkVS", - "X0lEX0FORF9UWVBFX1BBUkFNRVRFUl9OT1RfUFJFU0VOVF9JTl9SRU1PVkUQ", - "AxIgChxUWVBFX0FORF9QQVJBTUVURVJfTk9UX0ZPVU5EEAQSJgoiVFlQRV9B", - "TkRfUEFSQU1FVEVSX0FMUkVBRFlfRVhJU1RFRBAFEicKI0lOVkFMSURfQ1VT", - "VE9NX0lOVEVSRVNUX01FTUJFUl9UWVBFEAYSHgoaQ0FOTk9UX1JFTU9WRV9X", - "SElMRV9JTl9VU0UQBxIWChJDQU5OT1RfQ0hBTkdFX1RZUEUQCEL4AQojY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCGEN1c3RvbUludGVy", - "ZXN0RXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNH", - "QUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorEnum.Types.CustomInterestError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible custom interest errors. - /// - public sealed partial class CustomInterestErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomInterestErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestErrorEnum(CustomInterestErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestErrorEnum Clone() { - return new CustomInterestErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomInterestErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomInterestErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomInterestErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomInterestErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible custom interest errors. - /// - public enum CustomInterestError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Duplicate custom interest name ignoring case. - /// - [pbr::OriginalName("NAME_ALREADY_USED")] NameAlreadyUsed = 2, - /// - /// In the remove custom interest member operation, both member ID and - /// pair [type, parameter] are not present. - /// - [pbr::OriginalName("CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE")] CustomInterestMemberIdAndTypeParameterNotPresentInRemove = 3, - /// - /// The pair of [type, parameter] does not exist. - /// - [pbr::OriginalName("TYPE_AND_PARAMETER_NOT_FOUND")] TypeAndParameterNotFound = 4, - /// - /// The pair of [type, parameter] already exists. - /// - [pbr::OriginalName("TYPE_AND_PARAMETER_ALREADY_EXISTED")] TypeAndParameterAlreadyExisted = 5, - /// - /// Unsupported custom interest member type. - /// - [pbr::OriginalName("INVALID_CUSTOM_INTEREST_MEMBER_TYPE")] InvalidCustomInterestMemberType = 6, - /// - /// Cannot remove a custom interest while it's still being targeted. - /// - [pbr::OriginalName("CANNOT_REMOVE_WHILE_IN_USE")] CannotRemoveWhileInUse = 7, - /// - /// Cannot mutate custom interest type. - /// - [pbr::OriginalName("CANNOT_CHANGE_TYPE")] CannotChangeType = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestMemberType.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestMemberType.g.cs deleted file mode 100755 index 9ada36631..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestMemberType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_interest_member_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_interest_member_type.proto - public static partial class CustomInterestMemberTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_interest_member_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomInterestMemberTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX2ludGVy", - "ZXN0X21lbWJlcl90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMibgocQ3VzdG9tSW50ZXJlc3RNZW1iZXJUeXBlRW51bSJOChhD", - "dXN0b21JbnRlcmVzdE1lbWJlclR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESCwoHS0VZV09SRBACEgcKA1VSTBADQvcBCiJjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zQh1DdXN0b21JbnRlcmVzdE1lbWJl", - "clR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIe", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeEnum.Types.CustomInterestMemberType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The types of custom interest member, either KEYWORD or URL. - /// - public sealed partial class CustomInterestMemberTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomInterestMemberTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomInterestMemberTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestMemberTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestMemberTypeEnum(CustomInterestMemberTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestMemberTypeEnum Clone() { - return new CustomInterestMemberTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomInterestMemberTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomInterestMemberTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomInterestMemberTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomInterestMemberTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible custom interest member types. - /// - public enum CustomInterestMemberType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Custom interest member type KEYWORD. - /// - [pbr::OriginalName("KEYWORD")] Keyword = 2, - /// - /// Custom interest member type URL. - /// - [pbr::OriginalName("URL")] Url = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestResourceNames.g.cs deleted file mode 100755 index 5ce4d72c9..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestResourceNames.g.cs +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomInterest resource. - public sealed partial class CustomInterestName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customInterests/{custom_interest_id}. - /// - CustomerCustomInterest = 1, - } - - private static gax::PathTemplate s_customerCustomInterest = new gax::PathTemplate("customers/{customer_id}/customInterests/{custom_interest_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomInterestName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomInterestName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customInterests/{custom_interest_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CustomInterest ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomInterestName FromCustomerCustomInterest(string customerId, string customInterestId) => - new CustomInterestName(ResourceNameType.CustomerCustomInterest, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customInterestId: gax::GaxPreconditions.CheckNotNullOrEmpty(customInterestId, nameof(customInterestId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customInterests/{custom_interest_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CustomInterest ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customInterests/{custom_interest_id}. - /// - public static string Format(string customerId, string customInterestId) => - FormatCustomerCustomInterest(customerId, customInterestId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customInterests/{custom_interest_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The CustomInterest ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customInterests/{custom_interest_id}. - /// - public static string FormatCustomerCustomInterest(string customerId, string customInterestId) => - s_customerCustomInterest.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(customInterestId, nameof(customInterestId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customInterests/{custom_interest_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomInterestName Parse(string customInterestName) => Parse(customInterestName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customInterests/{custom_interest_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomInterestName Parse(string customInterestName, bool allowUnparsed) => - TryParse(customInterestName, allowUnparsed, out CustomInterestName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customInterests/{custom_interest_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customInterestName, out CustomInterestName result) => - TryParse(customInterestName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customInterests/{custom_interest_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customInterestName, bool allowUnparsed, out CustomInterestName result) - { - gax::GaxPreconditions.CheckNotNull(customInterestName, nameof(customInterestName)); - gax::TemplatedResourceName resourceName; - if (s_customerCustomInterest.TryParseName(customInterestName, out resourceName)) - { - result = FromCustomerCustomInterest(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customInterestName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomInterestName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customInterestId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomInterestId = customInterestId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/customInterests/{custom_interest_id} - /// - /// The Customer ID. Must not be null or empty. - /// The CustomInterest ID. Must not be null or empty. - public CustomInterestName(string customerId, string customInterestId) : this(ResourceNameType.CustomerCustomInterest, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customInterestId: gax::GaxPreconditions.CheckNotNullOrEmpty(customInterestId, nameof(customInterestId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CustomInterest ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string CustomInterestId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCustomInterest: return s_customerCustomInterest.Expand(CustomerId, CustomInterestId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomInterestName); - - /// - public bool Equals(CustomInterestName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomInterestName a, CustomInterestName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomInterestName a, CustomInterestName b) => !(a == b); - } - - public partial class CustomInterest - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomInterestName ResourceNameAsCustomInterestName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomInterestName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomInterestName CustomInterestName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CustomInterestName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestService.g.cs deleted file mode 100755 index 4e420d0be..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestService.g.cs +++ /dev/null @@ -1,1068 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/custom_interest_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/custom_interest_service.proto - public static partial class CustomInterestServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/custom_interest_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomInterestServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tX2lu", - "dGVyZXN0X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNl", - "cy9jdXN0b21faW50ZXJlc3QucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlv", - "bnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBp", - "L2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnBy", - "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90byKkAQocTXV0", - "YXRlQ3VzdG9tSW50ZXJlc3RzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEo", - "CUID4EECElMKCm9wZXJhdGlvbnMYAiADKAsyOi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuQ3VzdG9tSW50ZXJlc3RPcGVyYXRpb25CA+BB", - "AhIVCg12YWxpZGF0ZV9vbmx5GAQgASgIIuMBChdDdXN0b21JbnRlcmVzdE9w", - "ZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5GaWVsZE1hc2sSRAoGY3JlYXRlGAEgASgLMjIuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21JbnRlcmVzdEgAEkQKBnVwZGF0", - "ZRgCIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "Q3VzdG9tSW50ZXJlc3RIAEILCglvcGVyYXRpb24ibwodTXV0YXRlQ3VzdG9t", - "SW50ZXJlc3RzUmVzcG9uc2USTgoHcmVzdWx0cxgCIAMoCzI9Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21JbnRlcmVz", - "dFJlc3VsdCJhChpNdXRhdGVDdXN0b21JbnRlcmVzdFJlc3VsdBJDCg1yZXNv", - "dXJjZV9uYW1lGAEgASgJQiz6QSkKJ2dvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9DdXN0b21JbnRlcmVzdDLWAgoVQ3VzdG9tSW50ZXJlc3RTZXJ2aWNlEvUB", - "ChVNdXRhdGVDdXN0b21JbnRlcmVzdHMSPy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9tSW50ZXJlc3RzUmVxdWVzdBpA", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0", - "b21JbnRlcmVzdHNSZXNwb25zZSJZgtPkkwI6IjUvdjEyL2N1c3RvbWVycy97", - "Y3VzdG9tZXJfaWQ9Kn0vY3VzdG9tSW50ZXJlc3RzOm11dGF0ZToBKtpBFmN1", - "c3RvbWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jk", - "c0KGAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0Ia", - "Q3VzdG9tSW50ZXJlc3RTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2", - "aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNl", - "c+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomInterestReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomInterestOperation), global::Google.Ads.GoogleAds.V12.Services.CustomInterestOperation.Parser, new[]{ "UpdateMask", "Create", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomInterestService.MutateCustomInterests][google.ads.googleads.v12.services.CustomInterestService.MutateCustomInterests]. - /// - public sealed partial class MutateCustomInterestsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomInterestsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomInterestServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestsRequest(MutateCustomInterestsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestsRequest Clone() { - return new MutateCustomInterestsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose custom interests are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomInterestOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual custom interests. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomInterestsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomInterestsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomInterestsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update) on a custom interest. - /// - public sealed partial class CustomInterestOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomInterestOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomInterestServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestOperation(CustomInterestOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestOperation Clone() { - return new CustomInterestOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new custom - /// interest. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomInterest Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomInterest) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The custom interest is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomInterest Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomInterest) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomInterestOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomInterestOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomInterestOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomInterest subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomInterest subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomInterest subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomInterest subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for custom interest mutate. - /// - public sealed partial class MutateCustomInterestsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomInterestsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomInterestServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestsResponse(MutateCustomInterestsResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestsResponse Clone() { - return new MutateCustomInterestsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomInterestsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomInterestsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomInterestsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the custom interest mutate. - /// - public sealed partial class MutateCustomInterestResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomInterestResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomInterestServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestResult(MutateCustomInterestResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomInterestResult Clone() { - return new MutateCustomInterestResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomInterestResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomInterestResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomInterestResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestServiceClient.g.cs deleted file mode 100755 index a1a508f43..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestServiceClient.g.cs +++ /dev/null @@ -1,468 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomInterestServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomInterestServiceSettings GetDefault() => new CustomInterestServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomInterestServiceSettings() - { - } - - private CustomInterestServiceSettings(CustomInterestServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomInterestsSettings = existing.MutateCustomInterestsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomInterestServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomInterestServiceClient.MutateCustomInterests and - /// CustomInterestServiceClient.MutateCustomInterestsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomInterestsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomInterestServiceSettings Clone() => new CustomInterestServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomInterestServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomInterestServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomInterestServiceClientBuilder() : base(CustomInterestServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomInterestServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomInterestServiceClient Build() - { - CustomInterestServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomInterestServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomInterestServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomInterestServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomInterestServiceClient.ChannelPool; - } - - /// CustomInterestService client wrapper, for convenient use. - /// - /// Service to manage custom interests. - /// - public abstract partial class CustomInterestServiceClient - { - /// - /// The default endpoint for the CustomInterestService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomInterestService scopes. - /// - /// The default CustomInterestService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomInterestService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomInterestServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomInterestServiceClient Create() => new CustomInterestServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomInterestServiceClient Create(grpccore::CallInvoker callInvoker, CustomInterestServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomInterestService.CustomInterestServiceClient grpcClient = new CustomInterestService.CustomInterestServiceClient(callInvoker); - return new CustomInterestServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomInterestService client - public virtual CustomInterestService.CustomInterestServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomInterestsResponse MutateCustomInterests(MutateCustomInterestsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomInterestsAsync(MutateCustomInterestsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomInterestsAsync(MutateCustomInterestsRequest request, st::CancellationToken cancellationToken) => - MutateCustomInterestsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose custom interests are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom interests. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomInterestsResponse MutateCustomInterests(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomInterests(new MutateCustomInterestsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose custom interests are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom interests. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomInterestsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomInterestsAsync(new MutateCustomInterestsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose custom interests are being modified. - /// - /// - /// Required. The list of operations to perform on individual custom interests. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomInterestsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomInterestsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomInterestService client wrapper implementation, for convenient use. - /// - /// Service to manage custom interests. - /// - public sealed partial class CustomInterestServiceClientImpl : CustomInterestServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomInterests; - - /// - /// Constructs a client wrapper for the CustomInterestService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CustomInterestServiceClientImpl(CustomInterestService.CustomInterestServiceClient grpcClient, CustomInterestServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomInterestServiceSettings effectiveSettings = settings ?? CustomInterestServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomInterests = clientHelper.BuildApiCall("MutateCustomInterests", grpcClient.MutateCustomInterestsAsync, grpcClient.MutateCustomInterests, effectiveSettings.MutateCustomInterestsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomInterests); - Modify_MutateCustomInterestsApiCall(ref _callMutateCustomInterests); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomInterestsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomInterestService.CustomInterestServiceClient grpcClient, CustomInterestServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomInterestService client - public override CustomInterestService.CustomInterestServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomInterestsRequest(ref MutateCustomInterestsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomInterestsResponse MutateCustomInterests(MutateCustomInterestsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomInterestsRequest(ref request, ref callSettings); - return _callMutateCustomInterests.Sync(request, callSettings); - } - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomInterestsAsync(MutateCustomInterestsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomInterestsRequest(ref request, ref callSettings); - return _callMutateCustomInterests.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestServiceGrpc.g.cs deleted file mode 100755 index 194fd16d2..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestServiceGrpc.g.cs +++ /dev/null @@ -1,272 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/custom_interest_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage custom interests. - /// - public static partial class CustomInterestService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomInterestService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomInterestsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomInterestsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomInterests = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomInterests", - __Marshaller_google_ads_googleads_v12_services_MutateCustomInterestsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomInterestsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomInterestServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomInterestService - [grpc::BindServiceMethod(typeof(CustomInterestService), "BindService")] - public abstract partial class CustomInterestServiceBase - { - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomInterests(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomInterestService - public partial class CustomInterestServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomInterestService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomInterestServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomInterestService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomInterestServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomInterestServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomInterestServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsResponse MutateCustomInterests(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomInterests(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsResponse MutateCustomInterests(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomInterests, null, options, request); - } - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomInterestsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomInterestsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates custom interests. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [CustomInterestError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomInterestsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomInterestsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomInterests, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomInterestServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomInterestServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomInterestServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomInterests, serviceImpl.MutateCustomInterests).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomInterestServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomInterests, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomInterests)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestServiceResourceNames.g.cs deleted file mode 100755 index 266edde62..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateCustomInterestResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomInterestName ResourceNameAsCustomInterestName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomInterestName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestStatus.g.cs deleted file mode 100755 index fea2be664..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestStatus.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_interest_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_interest_status.proto - public static partial class CustomInterestStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_interest_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomInterestStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX2ludGVy", - "ZXN0X3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zImoKGEN1c3RvbUludGVyZXN0U3RhdHVzRW51bSJOChRDdXN0b21JbnRl", - "cmVzdFN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdF", - "TkFCTEVEEAISCwoHUkVNT1ZFRBADQvMBCiJjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zQhlDdXN0b21JbnRlcmVzdFN0YXR1c1Byb3RvUAFa", - "Q2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "RW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusEnum.Types.CustomInterestStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The status of custom interest. - /// - public sealed partial class CustomInterestStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomInterestStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomInterestStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestStatusEnum(CustomInterestStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestStatusEnum Clone() { - return new CustomInterestStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomInterestStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomInterestStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomInterestStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomInterestStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible custom interest types. - /// - public enum CustomInterestStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Enabled status - custom interest is enabled and can be targeted to. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Removed status - custom interest is removed and cannot be used for - /// targeting. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomInterestType.g.cs b/Google.Ads.GoogleAds/src/V12/CustomInterestType.g.cs deleted file mode 100755 index ad7a5064f..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomInterestType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_interest_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_interest_type.proto - public static partial class CustomInterestTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_interest_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomInterestTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX2ludGVy", - "ZXN0X3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cyJ0ChZDdXN0b21JbnRlcmVzdFR5cGVFbnVtIloKEkN1c3RvbUludGVyZXN0", - "VHlwZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARITCg9DVVNUT01f", - "QUZGSU5JVFkQAhIRCg1DVVNUT01fSU5URU5UEANC8QEKImNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXNCF0N1c3RvbUludGVyZXN0VHlwZVBy", - "b3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUu", - "QWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVu", - "dW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeEnum.Types.CustomInterestType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The types of custom interest. - /// - public sealed partial class CustomInterestTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomInterestTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomInterestTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestTypeEnum(CustomInterestTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomInterestTypeEnum Clone() { - return new CustomInterestTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomInterestTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomInterestTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomInterestTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomInterestTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum containing possible custom interest types. - /// - public enum CustomInterestType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Allows brand advertisers to define custom affinity audience lists. - /// - [pbr::OriginalName("CUSTOM_AFFINITY")] CustomAffinity = 2, - /// - /// Allows advertisers to define custom intent audience lists. - /// - [pbr::OriginalName("CUSTOM_INTENT")] CustomIntent = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomParameter.g.cs b/Google.Ads.GoogleAds/src/V12/CustomParameter.g.cs deleted file mode 100755 index b42e3964d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomParameter.g.cs +++ /dev/null @@ -1,311 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/custom_parameter.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/custom_parameter.proto - public static partial class CustomParameterReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/custom_parameter.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomParameterReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2N1c3RvbV9wYXJh", - "bWV0ZXIucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24i", - "SQoPQ3VzdG9tUGFyYW1ldGVyEhAKA2tleRgDIAEoCUgAiAEBEhIKBXZhbHVl", - "GAQgASgJSAGIAQFCBgoEX2tleUIICgZfdmFsdWVC9AEKI2NvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuY29tbW9uQhRDdXN0b21QYXJhbWV0ZXJQcm90", - "b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2NvbW1vbjtjb21tb26iAgNHQUGqAh9Hb29nbGUu", - "QWRzLkdvb2dsZUFkcy5WMTIuQ29tbW9uygIfR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXENvbW1vbuoCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "Q29tbW9uYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CustomParameter), global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser, new[]{ "Key", "Value" }, new[]{ "Key", "Value" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A mapping that can be used by custom parameter tags in a - /// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - /// - public sealed partial class CustomParameter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomParameter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomParameter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomParameter(CustomParameter other) : this() { - key_ = other.key_; - value_ = other.value_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomParameter Clone() { - return new CustomParameter(this); - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 3; - private string key_; - /// - /// The key matching the parameter tag name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Key { - get { return key_ ?? ""; } - set { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "key" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKey { - get { return key_ != null; } - } - /// Clears the value of the "key" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKey() { - key_ = null; - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 4; - private string value_; - /// - /// The value to be substituted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Value { - get { return value_ ?? ""; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasValue { - get { return value_ != null; } - } - /// Clears the value of the "value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearValue() { - value_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomParameter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomParameter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Key != other.Key) return false; - if (Value != other.Value) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasKey) hash ^= Key.GetHashCode(); - if (HasValue) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasKey) { - output.WriteRawTag(26); - output.WriteString(Key); - } - if (HasValue) { - output.WriteRawTag(34); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasKey) { - output.WriteRawTag(26); - output.WriteString(Key); - } - if (HasValue) { - output.WriteRawTag(34); - output.WriteString(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasKey) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); - } - if (HasValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomParameter other) { - if (other == null) { - return; - } - if (other.HasKey) { - Key = other.Key; - } - if (other.HasValue) { - Value = other.Value; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Key = input.ReadString(); - break; - } - case 34: { - Value = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Key = input.ReadString(); - break; - } - case 34: { - Value = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/CustomPlaceholderField.g.cs deleted file mode 100755 index a604fc88b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomPlaceholderField.g.cs +++ /dev/null @@ -1,341 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/custom_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/custom_placeholder_field.proto - public static partial class CustomPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/custom_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tX3BsYWNl", - "aG9sZGVyX2ZpZWxkLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMivgMKGkN1c3RvbVBsYWNlaG9sZGVyRmllbGRFbnVtIp8DChZDdXN0", - "b21QbGFjZWhvbGRlckZpZWxkEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEgYKAklEEAISBwoDSUQyEAMSDgoKSVRFTV9USVRMRRAEEhEKDUlURU1f", - "U1VCVElUTEUQBRIUChBJVEVNX0RFU0NSSVBUSU9OEAYSEAoMSVRFTV9BRERS", - "RVNTEAcSCQoFUFJJQ0UQCBITCg9GT1JNQVRURURfUFJJQ0UQCRIOCgpTQUxF", - "X1BSSUNFEAoSGAoURk9STUFUVEVEX1NBTEVfUFJJQ0UQCxINCglJTUFHRV9V", - "UkwQDBIRCg1JVEVNX0NBVEVHT1JZEA0SDgoKRklOQUxfVVJMUxAOEhUKEUZJ", - "TkFMX01PQklMRV9VUkxTEA8SEAoMVFJBQ0tJTkdfVVJMEBASFwoTQ09OVEVY", - "VFVBTF9LRVlXT1JEUxAREhQKEEFORFJPSURfQVBQX0xJTksQEhIPCgtTSU1J", - "TEFSX0lEUxATEhAKDElPU19BUFBfTElOSxAUEhQKEElPU19BUFBfU1RPUkVf", - "SUQQFUL1AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0Ib", - "Q3VzdG9tUGxhY2Vob2xkZXJGaWVsZFByb3RvUAFaQ2dvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51", - "bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldEnum.Types.CustomPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Custom placeholder fields. - /// For more information about dynamic remarketing feeds, see - /// https://support.google.com/google-ads/answer/6053288. - /// - public sealed partial class CustomPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomPlaceholderFieldEnum(CustomPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomPlaceholderFieldEnum Clone() { - return new CustomPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Custom placeholder fields. - /// - public enum CustomPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. Required. Combination ID and ID2 must be unique per - /// offer. - /// - [pbr::OriginalName("ID")] Id = 2, - /// - /// Data Type: STRING. Combination ID and ID2 must be unique per offer. - /// - [pbr::OriginalName("ID2")] Id2 = 3, - /// - /// Data Type: STRING. Required. Main headline with product name to be shown - /// in dynamic ad. - /// - [pbr::OriginalName("ITEM_TITLE")] ItemTitle = 4, - /// - /// Data Type: STRING. Optional text to be shown in the image ad. - /// - [pbr::OriginalName("ITEM_SUBTITLE")] ItemSubtitle = 5, - /// - /// Data Type: STRING. Optional description of the product to be shown in the - /// ad. - /// - [pbr::OriginalName("ITEM_DESCRIPTION")] ItemDescription = 6, - /// - /// Data Type: STRING. Full address of your offer or service, including - /// postal code. This will be used to identify the closest product to the - /// user when there are multiple offers in the feed that are relevant to the - /// user. - /// - [pbr::OriginalName("ITEM_ADDRESS")] ItemAddress = 7, - /// - /// Data Type: STRING. Price to be shown in the ad. - /// Example: "100.00 USD" - /// - [pbr::OriginalName("PRICE")] Price = 8, - /// - /// Data Type: STRING. Formatted price to be shown in the ad. - /// Example: "Starting at $100.00 USD", "$80 - $100" - /// - [pbr::OriginalName("FORMATTED_PRICE")] FormattedPrice = 9, - /// - /// Data Type: STRING. Sale price to be shown in the ad. - /// Example: "80.00 USD" - /// - [pbr::OriginalName("SALE_PRICE")] SalePrice = 10, - /// - /// Data Type: STRING. Formatted sale price to be shown in the ad. - /// Example: "On sale for $80.00", "$60 - $80" - /// - [pbr::OriginalName("FORMATTED_SALE_PRICE")] FormattedSalePrice = 11, - /// - /// Data Type: URL. Image to be displayed in the ad. Highly recommended for - /// image ads. - /// - [pbr::OriginalName("IMAGE_URL")] ImageUrl = 12, - /// - /// Data Type: STRING. Used as a recommendation engine signal to serve items - /// in the same category. - /// - [pbr::OriginalName("ITEM_CATEGORY")] ItemCategory = 13, - /// - /// Data Type: URL_LIST. Final URLs for the ad when using Upgraded - /// URLs. User will be redirected to these URLs when they click on an ad, or - /// when they click on a specific product for ads that have multiple - /// products. - /// - [pbr::OriginalName("FINAL_URLS")] FinalUrls = 14, - /// - /// Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - /// URLs. - /// - [pbr::OriginalName("FINAL_MOBILE_URLS")] FinalMobileUrls = 15, - /// - /// Data Type: URL. Tracking template for the ad when using Upgraded URLs. - /// - [pbr::OriginalName("TRACKING_URL")] TrackingUrl = 16, - /// - /// Data Type: STRING_LIST. Keywords used for product retrieval. - /// - [pbr::OriginalName("CONTEXTUAL_KEYWORDS")] ContextualKeywords = 17, - /// - /// Data Type: STRING. Android app link. Must be formatted as: - /// android-app://{package_id}/{scheme}/{host_path}. - /// The components are defined as follows: - /// package_id: app ID as specified in Google Play. - /// scheme: the scheme to pass to the application. Can be HTTP, or a custom - /// scheme. - /// host_path: identifies the specific content within your application. - /// - [pbr::OriginalName("ANDROID_APP_LINK")] AndroidAppLink = 18, - /// - /// Data Type: STRING_LIST. List of recommended IDs to show together with - /// this item. - /// - [pbr::OriginalName("SIMILAR_IDS")] SimilarIds = 19, - /// - /// Data Type: STRING. iOS app link. - /// - [pbr::OriginalName("IOS_APP_LINK")] IosAppLink = 20, - /// - /// Data Type: INT64. iOS app store ID. - /// - [pbr::OriginalName("IOS_APP_STORE_ID")] IosAppStoreId = 21, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Customer.g.cs b/Google.Ads.GoogleAds/src/V12/Customer.g.cs deleted file mode 100755 index 3b64ed654..000000000 --- a/Google.Ads.GoogleAds/src/V12/Customer.g.cs +++ /dev/null @@ -1,2130 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer.proto - public static partial class CustomerReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGkRn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl90cmFj", - "a2luZ19zdGF0dXNfZW51bS5wcm90bxpbZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL2N1c3RvbWVyX3BheV9wZXJfY29udmVyc2lvbl9lbGlnaWJp", - "bGl0eV9mYWlsdXJlX3JlYXNvbi5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2N1c3RvbWVyX3N0YXR1cy5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90byKfCgoIQ3VzdG9tZXISQAoNcmVzb3VyY2VfbmFtZRgBIAEoCUIp4EEF", - "+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXISFAoCaWQY", - "EyABKANCA+BBA0gAiAEBEh0KEGRlc2NyaXB0aXZlX25hbWUYFCABKAlIAYgB", - "ARIfCg1jdXJyZW5jeV9jb2RlGBUgASgJQgPgQQVIAogBARIbCgl0aW1lX3pv", - "bmUYFiABKAlCA+BBBUgDiAEBEiIKFXRyYWNraW5nX3VybF90ZW1wbGF0ZRgX", - "IAEoCUgEiAEBEh0KEGZpbmFsX3VybF9zdWZmaXgYGCABKAlIBYgBARIhChRh", - "dXRvX3RhZ2dpbmdfZW5hYmxlZBgZIAEoCEgGiAEBEiQKEmhhc19wYXJ0bmVy", - "c19iYWRnZRgaIAEoCEID4EEDSAeIAQESGQoHbWFuYWdlchgbIAEoCEID4EED", - "SAiIAQESHgoMdGVzdF9hY2NvdW50GBwgASgIQgPgQQNICYgBARJYChZjYWxs", - "X3JlcG9ydGluZ19zZXR0aW5nGAogASgLMjguZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5DYWxsUmVwb3J0aW5nU2V0dGluZxJnChtjb252", - "ZXJzaW9uX3RyYWNraW5nX3NldHRpbmcYDiABKAsyPS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkNvbnZlcnNpb25UcmFja2luZ1NldHRp", - "bmdCA+BBAxJYChNyZW1hcmtldGluZ19zZXR0aW5nGA8gASgLMjYuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5SZW1hcmtldGluZ1NldHRp", - "bmdCA+BBAxLDAQoucGF5X3Blcl9jb252ZXJzaW9uX2VsaWdpYmlsaXR5X2Zh", - "aWx1cmVfcmVhc29ucxgQIAMoDjKFAS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuQ3VzdG9tZXJQYXlQZXJDb252ZXJzaW9uRWxpZ2liaWxpdHlG", - "YWlsdXJlUmVhc29uRW51bS5DdXN0b21lclBheVBlckNvbnZlcnNpb25FbGln", - "aWJpbGl0eUZhaWx1cmVSZWFzb25CA+BBAxIkChJvcHRpbWl6YXRpb25fc2Nv", - "cmUYHSABKAFCA+BBA0gKiAEBEiYKGW9wdGltaXphdGlvbl9zY29yZV93ZWln", - "aHQYHiABKAFCA+BBAxJWCgZzdGF0dXMYJCABKA4yQS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuQ3VzdG9tZXJTdGF0dXNFbnVtLkN1c3RvbWVy", - "U3RhdHVzQgPgQQM6P+pBPAohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1", - "c3RvbWVyEhdjdXN0b21lcnMve2N1c3RvbWVyX2lkfUIFCgNfaWRCEwoRX2Rl", - "c2NyaXB0aXZlX25hbWVCEAoOX2N1cnJlbmN5X2NvZGVCDAoKX3RpbWVfem9u", - "ZUIYChZfdHJhY2tpbmdfdXJsX3RlbXBsYXRlQhMKEV9maW5hbF91cmxfc3Vm", - "Zml4QhcKFV9hdXRvX3RhZ2dpbmdfZW5hYmxlZEIVChNfaGFzX3BhcnRuZXJz", - "X2JhZGdlQgoKCF9tYW5hZ2VyQg8KDV90ZXN0X2FjY291bnRCFQoTX29wdGlt", - "aXphdGlvbl9zY29yZSKcAgoUQ2FsbFJlcG9ydGluZ1NldHRpbmcSIwoWY2Fs", - "bF9yZXBvcnRpbmdfZW5hYmxlZBgKIAEoCEgAiAEBEi4KIWNhbGxfY29udmVy", - "c2lvbl9yZXBvcnRpbmdfZW5hYmxlZBgLIAEoCEgBiAEBElMKFmNhbGxfY29u", - "dmVyc2lvbl9hY3Rpb24YDCABKAlCLvpBKwopZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0NvbnZlcnNpb25BY3Rpb25IAogBAUIZChdfY2FsbF9yZXBvcnRp", - "bmdfZW5hYmxlZEIkCiJfY2FsbF9jb252ZXJzaW9uX3JlcG9ydGluZ19lbmFi", - "bGVkQhkKF19jYWxsX2NvbnZlcnNpb25fYWN0aW9uIs4DChlDb252ZXJzaW9u", - "VHJhY2tpbmdTZXR0aW5nEigKFmNvbnZlcnNpb25fdHJhY2tpbmdfaWQYAyAB", - "KANCA+BBA0gAiAEBEjYKJGNyb3NzX2FjY291bnRfY29udmVyc2lvbl90cmFj", - "a2luZ19pZBgEIAEoA0ID4EEDSAGIAQESKQocYWNjZXB0ZWRfY3VzdG9tZXJf", - "ZGF0YV90ZXJtcxgFIAEoCEID4EEDEn4KGmNvbnZlcnNpb25fdHJhY2tpbmdf", - "c3RhdHVzGAYgASgOMlUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LkNvbnZlcnNpb25UcmFja2luZ1N0YXR1c0VudW0uQ29udmVyc2lvblRyYWNr", - "aW5nU3RhdHVzQgPgQQMSMwomZW5oYW5jZWRfY29udmVyc2lvbnNfZm9yX2xl", - "YWRzX2VuYWJsZWQYByABKAhCA+BBAxIrCh5nb29nbGVfYWRzX2NvbnZlcnNp", - "b25fY3VzdG9tZXIYCCABKAlCA+BBA0IZChdfY29udmVyc2lvbl90cmFja2lu", - "Z19pZEInCiVfY3Jvc3NfYWNjb3VudF9jb252ZXJzaW9uX3RyYWNraW5nX2lk", - "IlkKElJlbWFya2V0aW5nU2V0dGluZxIoChZnb29nbGVfZ2xvYmFsX3NpdGVf", - "dGFnGAIgASgJQgPgQQNIAIgBAUIZChdfZ29vZ2xlX2dsb2JhbF9zaXRlX3Rh", - "Z0L/AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNC", - "DUN1c3RvbWVyUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3Vy", - "Y2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNl", - "c8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnumReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomerPayPerConversionEligibilityFailureReasonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Customer), global::Google.Ads.GoogleAds.V12.Resources.Customer.Parser, new[]{ "ResourceName", "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "Manager", "TestAccount", "CallReportingSetting", "ConversionTrackingSetting", "RemarketingSetting", "PayPerConversionEligibilityFailureReasons", "OptimizationScore", "OptimizationScoreWeight", "Status" }, new[]{ "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "Manager", "TestAccount", "OptimizationScore" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CallReportingSetting), global::Google.Ads.GoogleAds.V12.Resources.CallReportingSetting.Parser, new[]{ "CallReportingEnabled", "CallConversionReportingEnabled", "CallConversionAction" }, new[]{ "CallReportingEnabled", "CallConversionReportingEnabled", "CallConversionAction" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ConversionTrackingSetting), global::Google.Ads.GoogleAds.V12.Resources.ConversionTrackingSetting.Parser, new[]{ "ConversionTrackingId", "CrossAccountConversionTrackingId", "AcceptedCustomerDataTerms", "ConversionTrackingStatus", "EnhancedConversionsForLeadsEnabled", "GoogleAdsConversionCustomer" }, new[]{ "ConversionTrackingId", "CrossAccountConversionTrackingId" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.RemarketingSetting), global::Google.Ads.GoogleAds.V12.Resources.RemarketingSetting.Parser, new[]{ "GoogleGlobalSiteTag" }, new[]{ "GoogleGlobalSiteTag" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customer. - /// - public sealed partial class Customer : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Customer()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Customer() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Customer(Customer other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - descriptiveName_ = other.descriptiveName_; - currencyCode_ = other.currencyCode_; - timeZone_ = other.timeZone_; - trackingUrlTemplate_ = other.trackingUrlTemplate_; - finalUrlSuffix_ = other.finalUrlSuffix_; - autoTaggingEnabled_ = other.autoTaggingEnabled_; - hasPartnersBadge_ = other.hasPartnersBadge_; - manager_ = other.manager_; - testAccount_ = other.testAccount_; - callReportingSetting_ = other.callReportingSetting_ != null ? other.callReportingSetting_.Clone() : null; - conversionTrackingSetting_ = other.conversionTrackingSetting_ != null ? other.conversionTrackingSetting_.Clone() : null; - remarketingSetting_ = other.remarketingSetting_ != null ? other.remarketingSetting_.Clone() : null; - payPerConversionEligibilityFailureReasons_ = other.payPerConversionEligibilityFailureReasons_.Clone(); - optimizationScore_ = other.optimizationScore_; - optimizationScoreWeight_ = other.optimizationScoreWeight_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Customer Clone() { - return new Customer(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer. - /// Customer resource names have the form: - /// - /// `customers/{customer_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 19; - private long id_; - /// - /// Output only. The ID of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "descriptive_name" field. - public const int DescriptiveNameFieldNumber = 20; - private string descriptiveName_; - /// - /// Optional, non-unique descriptive name of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DescriptiveName { - get { return descriptiveName_ ?? ""; } - set { - descriptiveName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "descriptive_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescriptiveName { - get { return descriptiveName_ != null; } - } - /// Clears the value of the "descriptive_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescriptiveName() { - descriptiveName_ = null; - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 21; - private string currencyCode_; - /// - /// Immutable. The currency in which the account operates. - /// A subset of the currency codes from the ISO 4217 standard is - /// supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_ ?? ""; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyCode { - get { return currencyCode_ != null; } - } - /// Clears the value of the "currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyCode() { - currencyCode_ = null; - } - - /// Field number for the "time_zone" field. - public const int TimeZoneFieldNumber = 22; - private string timeZone_; - /// - /// Immutable. The local timezone ID of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TimeZone { - get { return timeZone_ ?? ""; } - set { - timeZone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "time_zone" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTimeZone { - get { return timeZone_ != null; } - } - /// Clears the value of the "time_zone" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimeZone() { - timeZone_ = null; - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 23; - private string trackingUrlTemplate_; - /// - /// The URL template for constructing a tracking URL out of parameters. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 24; - private string finalUrlSuffix_; - /// - /// The URL template for appending params to the final URL - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - /// Field number for the "auto_tagging_enabled" field. - public const int AutoTaggingEnabledFieldNumber = 25; - private bool autoTaggingEnabled_; - /// - /// Whether auto-tagging is enabled for the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AutoTaggingEnabled { - get { if ((_hasBits0 & 2) != 0) { return autoTaggingEnabled_; } else { return false; } } - set { - _hasBits0 |= 2; - autoTaggingEnabled_ = value; - } - } - /// Gets whether the "auto_tagging_enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAutoTaggingEnabled { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "auto_tagging_enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAutoTaggingEnabled() { - _hasBits0 &= ~2; - } - - /// Field number for the "has_partners_badge" field. - public const int HasPartnersBadgeFieldNumber = 26; - private bool hasPartnersBadge_; - /// - /// Output only. Whether the Customer has a Partners program badge. If the Customer is not - /// associated with the Partners program, this will be false. For more - /// information, see https://support.google.com/partners/answer/3125774. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPartnersBadge { - get { if ((_hasBits0 & 4) != 0) { return hasPartnersBadge_; } else { return false; } } - set { - _hasBits0 |= 4; - hasPartnersBadge_ = value; - } - } - /// Gets whether the "has_partners_badge" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasPartnersBadge { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "has_partners_badge" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasPartnersBadge() { - _hasBits0 &= ~4; - } - - /// Field number for the "manager" field. - public const int ManagerFieldNumber = 27; - private bool manager_; - /// - /// Output only. Whether the customer is a manager. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Manager { - get { if ((_hasBits0 & 8) != 0) { return manager_; } else { return false; } } - set { - _hasBits0 |= 8; - manager_ = value; - } - } - /// Gets whether the "manager" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasManager { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "manager" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearManager() { - _hasBits0 &= ~8; - } - - /// Field number for the "test_account" field. - public const int TestAccountFieldNumber = 28; - private bool testAccount_; - /// - /// Output only. Whether the customer is a test account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool TestAccount { - get { if ((_hasBits0 & 16) != 0) { return testAccount_; } else { return false; } } - set { - _hasBits0 |= 16; - testAccount_ = value; - } - } - /// Gets whether the "test_account" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTestAccount { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "test_account" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTestAccount() { - _hasBits0 &= ~16; - } - - /// Field number for the "call_reporting_setting" field. - public const int CallReportingSettingFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Resources.CallReportingSetting callReportingSetting_; - /// - /// Call reporting setting for a customer. Only mutable in an `update` - /// operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CallReportingSetting CallReportingSetting { - get { return callReportingSetting_; } - set { - callReportingSetting_ = value; - } - } - - /// Field number for the "conversion_tracking_setting" field. - public const int ConversionTrackingSettingFieldNumber = 14; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionTrackingSetting conversionTrackingSetting_; - /// - /// Output only. Conversion tracking setting for a customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionTrackingSetting ConversionTrackingSetting { - get { return conversionTrackingSetting_; } - set { - conversionTrackingSetting_ = value; - } - } - - /// Field number for the "remarketing_setting" field. - public const int RemarketingSettingFieldNumber = 15; - private global::Google.Ads.GoogleAds.V12.Resources.RemarketingSetting remarketingSetting_; - /// - /// Output only. Remarketing setting for a customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.RemarketingSetting RemarketingSetting { - get { return remarketingSetting_; } - set { - remarketingSetting_ = value; - } - } - - /// Field number for the "pay_per_conversion_eligibility_failure_reasons" field. - public const int PayPerConversionEligibilityFailureReasonsFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_payPerConversionEligibilityFailureReasons_codec - = pb::FieldCodec.ForEnum(130, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.CustomerPayPerConversionEligibilityFailureReasonEnum.Types.CustomerPayPerConversionEligibilityFailureReason) x); - private readonly pbc::RepeatedField payPerConversionEligibilityFailureReasons_ = new pbc::RepeatedField(); - /// - /// Output only. Reasons why the customer is not eligible to use PaymentMode.CONVERSIONS. If - /// the list is empty, the customer is eligible. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PayPerConversionEligibilityFailureReasons { - get { return payPerConversionEligibilityFailureReasons_; } - } - - /// Field number for the "optimization_score" field. - public const int OptimizationScoreFieldNumber = 29; - private double optimizationScore_; - /// - /// Output only. Optimization score of the customer. - /// - /// Optimization score is an estimate of how well a customer's campaigns are - /// set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null - /// for all manager customers, and for unscored non-manager customers. - /// - /// See "About optimization score" at - /// https://support.google.com/google-ads/answer/9061546. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double OptimizationScore { - get { if ((_hasBits0 & 32) != 0) { return optimizationScore_; } else { return 0D; } } - set { - _hasBits0 |= 32; - optimizationScore_ = value; - } - } - /// Gets whether the "optimization_score" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOptimizationScore { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "optimization_score" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOptimizationScore() { - _hasBits0 &= ~32; - } - - /// Field number for the "optimization_score_weight" field. - public const int OptimizationScoreWeightFieldNumber = 30; - private double optimizationScoreWeight_; - /// - /// Output only. Optimization score weight of the customer. - /// - /// Optimization score weight can be used to compare/aggregate optimization - /// scores across multiple non-manager customers. The aggregate optimization - /// score of a manager is computed as the sum over all of their customers of - /// `Customer.optimization_score * Customer.optimization_score_weight`. This - /// field is 0 for all manager customers, and for unscored non-manager - /// customers. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double OptimizationScoreWeight { - get { return optimizationScoreWeight_; } - set { - optimizationScoreWeight_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 36; - private global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified; - /// - /// Output only. The status of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Customer); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Customer other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (DescriptiveName != other.DescriptiveName) return false; - if (CurrencyCode != other.CurrencyCode) return false; - if (TimeZone != other.TimeZone) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - if (AutoTaggingEnabled != other.AutoTaggingEnabled) return false; - if (HasPartnersBadge != other.HasPartnersBadge) return false; - if (Manager != other.Manager) return false; - if (TestAccount != other.TestAccount) return false; - if (!object.Equals(CallReportingSetting, other.CallReportingSetting)) return false; - if (!object.Equals(ConversionTrackingSetting, other.ConversionTrackingSetting)) return false; - if (!object.Equals(RemarketingSetting, other.RemarketingSetting)) return false; - if(!payPerConversionEligibilityFailureReasons_.Equals(other.payPerConversionEligibilityFailureReasons_)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptimizationScore, other.OptimizationScore)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptimizationScoreWeight, other.OptimizationScoreWeight)) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasDescriptiveName) hash ^= DescriptiveName.GetHashCode(); - if (HasCurrencyCode) hash ^= CurrencyCode.GetHashCode(); - if (HasTimeZone) hash ^= TimeZone.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (HasAutoTaggingEnabled) hash ^= AutoTaggingEnabled.GetHashCode(); - if (HasHasPartnersBadge) hash ^= HasPartnersBadge.GetHashCode(); - if (HasManager) hash ^= Manager.GetHashCode(); - if (HasTestAccount) hash ^= TestAccount.GetHashCode(); - if (callReportingSetting_ != null) hash ^= CallReportingSetting.GetHashCode(); - if (conversionTrackingSetting_ != null) hash ^= ConversionTrackingSetting.GetHashCode(); - if (remarketingSetting_ != null) hash ^= RemarketingSetting.GetHashCode(); - hash ^= payPerConversionEligibilityFailureReasons_.GetHashCode(); - if (HasOptimizationScore) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptimizationScore); - if (OptimizationScoreWeight != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OptimizationScoreWeight); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (callReportingSetting_ != null) { - output.WriteRawTag(82); - output.WriteMessage(CallReportingSetting); - } - if (conversionTrackingSetting_ != null) { - output.WriteRawTag(114); - output.WriteMessage(ConversionTrackingSetting); - } - if (remarketingSetting_ != null) { - output.WriteRawTag(122); - output.WriteMessage(RemarketingSetting); - } - payPerConversionEligibilityFailureReasons_.WriteTo(output, _repeated_payPerConversionEligibilityFailureReasons_codec); - if (HasId) { - output.WriteRawTag(152, 1); - output.WriteInt64(Id); - } - if (HasDescriptiveName) { - output.WriteRawTag(162, 1); - output.WriteString(DescriptiveName); - } - if (HasCurrencyCode) { - output.WriteRawTag(170, 1); - output.WriteString(CurrencyCode); - } - if (HasTimeZone) { - output.WriteRawTag(178, 1); - output.WriteString(TimeZone); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(186, 1); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(194, 1); - output.WriteString(FinalUrlSuffix); - } - if (HasAutoTaggingEnabled) { - output.WriteRawTag(200, 1); - output.WriteBool(AutoTaggingEnabled); - } - if (HasHasPartnersBadge) { - output.WriteRawTag(208, 1); - output.WriteBool(HasPartnersBadge); - } - if (HasManager) { - output.WriteRawTag(216, 1); - output.WriteBool(Manager); - } - if (HasTestAccount) { - output.WriteRawTag(224, 1); - output.WriteBool(TestAccount); - } - if (HasOptimizationScore) { - output.WriteRawTag(233, 1); - output.WriteDouble(OptimizationScore); - } - if (OptimizationScoreWeight != 0D) { - output.WriteRawTag(241, 1); - output.WriteDouble(OptimizationScoreWeight); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - output.WriteRawTag(160, 2); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (callReportingSetting_ != null) { - output.WriteRawTag(82); - output.WriteMessage(CallReportingSetting); - } - if (conversionTrackingSetting_ != null) { - output.WriteRawTag(114); - output.WriteMessage(ConversionTrackingSetting); - } - if (remarketingSetting_ != null) { - output.WriteRawTag(122); - output.WriteMessage(RemarketingSetting); - } - payPerConversionEligibilityFailureReasons_.WriteTo(ref output, _repeated_payPerConversionEligibilityFailureReasons_codec); - if (HasId) { - output.WriteRawTag(152, 1); - output.WriteInt64(Id); - } - if (HasDescriptiveName) { - output.WriteRawTag(162, 1); - output.WriteString(DescriptiveName); - } - if (HasCurrencyCode) { - output.WriteRawTag(170, 1); - output.WriteString(CurrencyCode); - } - if (HasTimeZone) { - output.WriteRawTag(178, 1); - output.WriteString(TimeZone); - } - if (HasTrackingUrlTemplate) { - output.WriteRawTag(186, 1); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(194, 1); - output.WriteString(FinalUrlSuffix); - } - if (HasAutoTaggingEnabled) { - output.WriteRawTag(200, 1); - output.WriteBool(AutoTaggingEnabled); - } - if (HasHasPartnersBadge) { - output.WriteRawTag(208, 1); - output.WriteBool(HasPartnersBadge); - } - if (HasManager) { - output.WriteRawTag(216, 1); - output.WriteBool(Manager); - } - if (HasTestAccount) { - output.WriteRawTag(224, 1); - output.WriteBool(TestAccount); - } - if (HasOptimizationScore) { - output.WriteRawTag(233, 1); - output.WriteDouble(OptimizationScore); - } - if (OptimizationScoreWeight != 0D) { - output.WriteRawTag(241, 1); - output.WriteDouble(OptimizationScoreWeight); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - output.WriteRawTag(160, 2); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasDescriptiveName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(DescriptiveName); - } - if (HasCurrencyCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - if (HasTimeZone) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TimeZone); - } - if (HasTrackingUrlTemplate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (HasAutoTaggingEnabled) { - size += 2 + 1; - } - if (HasHasPartnersBadge) { - size += 2 + 1; - } - if (HasManager) { - size += 2 + 1; - } - if (HasTestAccount) { - size += 2 + 1; - } - if (callReportingSetting_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallReportingSetting); - } - if (conversionTrackingSetting_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionTrackingSetting); - } - if (remarketingSetting_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemarketingSetting); - } - size += payPerConversionEligibilityFailureReasons_.CalculateSize(_repeated_payPerConversionEligibilityFailureReasons_codec); - if (HasOptimizationScore) { - size += 2 + 8; - } - if (OptimizationScoreWeight != 0D) { - size += 2 + 8; - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Customer other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasDescriptiveName) { - DescriptiveName = other.DescriptiveName; - } - if (other.HasCurrencyCode) { - CurrencyCode = other.CurrencyCode; - } - if (other.HasTimeZone) { - TimeZone = other.TimeZone; - } - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - if (other.HasAutoTaggingEnabled) { - AutoTaggingEnabled = other.AutoTaggingEnabled; - } - if (other.HasHasPartnersBadge) { - HasPartnersBadge = other.HasPartnersBadge; - } - if (other.HasManager) { - Manager = other.Manager; - } - if (other.HasTestAccount) { - TestAccount = other.TestAccount; - } - if (other.callReportingSetting_ != null) { - if (callReportingSetting_ == null) { - CallReportingSetting = new global::Google.Ads.GoogleAds.V12.Resources.CallReportingSetting(); - } - CallReportingSetting.MergeFrom(other.CallReportingSetting); - } - if (other.conversionTrackingSetting_ != null) { - if (conversionTrackingSetting_ == null) { - ConversionTrackingSetting = new global::Google.Ads.GoogleAds.V12.Resources.ConversionTrackingSetting(); - } - ConversionTrackingSetting.MergeFrom(other.ConversionTrackingSetting); - } - if (other.remarketingSetting_ != null) { - if (remarketingSetting_ == null) { - RemarketingSetting = new global::Google.Ads.GoogleAds.V12.Resources.RemarketingSetting(); - } - RemarketingSetting.MergeFrom(other.RemarketingSetting); - } - payPerConversionEligibilityFailureReasons_.Add(other.payPerConversionEligibilityFailureReasons_); - if (other.HasOptimizationScore) { - OptimizationScore = other.OptimizationScore; - } - if (other.OptimizationScoreWeight != 0D) { - OptimizationScoreWeight = other.OptimizationScoreWeight; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 82: { - if (callReportingSetting_ == null) { - CallReportingSetting = new global::Google.Ads.GoogleAds.V12.Resources.CallReportingSetting(); - } - input.ReadMessage(CallReportingSetting); - break; - } - case 114: { - if (conversionTrackingSetting_ == null) { - ConversionTrackingSetting = new global::Google.Ads.GoogleAds.V12.Resources.ConversionTrackingSetting(); - } - input.ReadMessage(ConversionTrackingSetting); - break; - } - case 122: { - if (remarketingSetting_ == null) { - RemarketingSetting = new global::Google.Ads.GoogleAds.V12.Resources.RemarketingSetting(); - } - input.ReadMessage(RemarketingSetting); - break; - } - case 130: - case 128: { - payPerConversionEligibilityFailureReasons_.AddEntriesFrom(input, _repeated_payPerConversionEligibilityFailureReasons_codec); - break; - } - case 152: { - Id = input.ReadInt64(); - break; - } - case 162: { - DescriptiveName = input.ReadString(); - break; - } - case 170: { - CurrencyCode = input.ReadString(); - break; - } - case 178: { - TimeZone = input.ReadString(); - break; - } - case 186: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 194: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 200: { - AutoTaggingEnabled = input.ReadBool(); - break; - } - case 208: { - HasPartnersBadge = input.ReadBool(); - break; - } - case 216: { - Manager = input.ReadBool(); - break; - } - case 224: { - TestAccount = input.ReadBool(); - break; - } - case 233: { - OptimizationScore = input.ReadDouble(); - break; - } - case 241: { - OptimizationScoreWeight = input.ReadDouble(); - break; - } - case 288: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 82: { - if (callReportingSetting_ == null) { - CallReportingSetting = new global::Google.Ads.GoogleAds.V12.Resources.CallReportingSetting(); - } - input.ReadMessage(CallReportingSetting); - break; - } - case 114: { - if (conversionTrackingSetting_ == null) { - ConversionTrackingSetting = new global::Google.Ads.GoogleAds.V12.Resources.ConversionTrackingSetting(); - } - input.ReadMessage(ConversionTrackingSetting); - break; - } - case 122: { - if (remarketingSetting_ == null) { - RemarketingSetting = new global::Google.Ads.GoogleAds.V12.Resources.RemarketingSetting(); - } - input.ReadMessage(RemarketingSetting); - break; - } - case 130: - case 128: { - payPerConversionEligibilityFailureReasons_.AddEntriesFrom(ref input, _repeated_payPerConversionEligibilityFailureReasons_codec); - break; - } - case 152: { - Id = input.ReadInt64(); - break; - } - case 162: { - DescriptiveName = input.ReadString(); - break; - } - case 170: { - CurrencyCode = input.ReadString(); - break; - } - case 178: { - TimeZone = input.ReadString(); - break; - } - case 186: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 194: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 200: { - AutoTaggingEnabled = input.ReadBool(); - break; - } - case 208: { - HasPartnersBadge = input.ReadBool(); - break; - } - case 216: { - Manager = input.ReadBool(); - break; - } - case 224: { - TestAccount = input.ReadBool(); - break; - } - case 233: { - OptimizationScore = input.ReadDouble(); - break; - } - case 241: { - OptimizationScoreWeight = input.ReadDouble(); - break; - } - case 288: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Call reporting setting for a customer. Only mutable in an `update` operation. - /// - public sealed partial class CallReportingSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallReportingSetting()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallReportingSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallReportingSetting(CallReportingSetting other) : this() { - _hasBits0 = other._hasBits0; - callReportingEnabled_ = other.callReportingEnabled_; - callConversionReportingEnabled_ = other.callConversionReportingEnabled_; - callConversionAction_ = other.callConversionAction_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallReportingSetting Clone() { - return new CallReportingSetting(this); - } - - /// Field number for the "call_reporting_enabled" field. - public const int CallReportingEnabledFieldNumber = 10; - private bool callReportingEnabled_; - /// - /// Enable reporting of phone call events by redirecting them through Google - /// System. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CallReportingEnabled { - get { if ((_hasBits0 & 1) != 0) { return callReportingEnabled_; } else { return false; } } - set { - _hasBits0 |= 1; - callReportingEnabled_ = value; - } - } - /// Gets whether the "call_reporting_enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallReportingEnabled { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "call_reporting_enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallReportingEnabled() { - _hasBits0 &= ~1; - } - - /// Field number for the "call_conversion_reporting_enabled" field. - public const int CallConversionReportingEnabledFieldNumber = 11; - private bool callConversionReportingEnabled_; - /// - /// Whether to enable call conversion reporting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CallConversionReportingEnabled { - get { if ((_hasBits0 & 2) != 0) { return callConversionReportingEnabled_; } else { return false; } } - set { - _hasBits0 |= 2; - callConversionReportingEnabled_ = value; - } - } - /// Gets whether the "call_conversion_reporting_enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallConversionReportingEnabled { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "call_conversion_reporting_enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallConversionReportingEnabled() { - _hasBits0 &= ~2; - } - - /// Field number for the "call_conversion_action" field. - public const int CallConversionActionFieldNumber = 12; - private string callConversionAction_; - /// - /// Customer-level call conversion action to attribute a call conversion to. - /// If not set a default conversion action is used. Only in effect when - /// call_conversion_reporting_enabled is set to true. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallConversionAction { - get { return callConversionAction_ ?? ""; } - set { - callConversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "call_conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallConversionAction { - get { return callConversionAction_ != null; } - } - /// Clears the value of the "call_conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallConversionAction() { - callConversionAction_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallReportingSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallReportingSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CallReportingEnabled != other.CallReportingEnabled) return false; - if (CallConversionReportingEnabled != other.CallConversionReportingEnabled) return false; - if (CallConversionAction != other.CallConversionAction) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCallReportingEnabled) hash ^= CallReportingEnabled.GetHashCode(); - if (HasCallConversionReportingEnabled) hash ^= CallConversionReportingEnabled.GetHashCode(); - if (HasCallConversionAction) hash ^= CallConversionAction.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCallReportingEnabled) { - output.WriteRawTag(80); - output.WriteBool(CallReportingEnabled); - } - if (HasCallConversionReportingEnabled) { - output.WriteRawTag(88); - output.WriteBool(CallConversionReportingEnabled); - } - if (HasCallConversionAction) { - output.WriteRawTag(98); - output.WriteString(CallConversionAction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCallReportingEnabled) { - output.WriteRawTag(80); - output.WriteBool(CallReportingEnabled); - } - if (HasCallConversionReportingEnabled) { - output.WriteRawTag(88); - output.WriteBool(CallConversionReportingEnabled); - } - if (HasCallConversionAction) { - output.WriteRawTag(98); - output.WriteString(CallConversionAction); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCallReportingEnabled) { - size += 1 + 1; - } - if (HasCallConversionReportingEnabled) { - size += 1 + 1; - } - if (HasCallConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallConversionAction); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallReportingSetting other) { - if (other == null) { - return; - } - if (other.HasCallReportingEnabled) { - CallReportingEnabled = other.CallReportingEnabled; - } - if (other.HasCallConversionReportingEnabled) { - CallConversionReportingEnabled = other.CallConversionReportingEnabled; - } - if (other.HasCallConversionAction) { - CallConversionAction = other.CallConversionAction; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 80: { - CallReportingEnabled = input.ReadBool(); - break; - } - case 88: { - CallConversionReportingEnabled = input.ReadBool(); - break; - } - case 98: { - CallConversionAction = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 80: { - CallReportingEnabled = input.ReadBool(); - break; - } - case 88: { - CallConversionReportingEnabled = input.ReadBool(); - break; - } - case 98: { - CallConversionAction = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A collection of customer-wide settings related to Google Ads Conversion - /// Tracking. - /// - public sealed partial class ConversionTrackingSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionTrackingSetting()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionTrackingSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionTrackingSetting(ConversionTrackingSetting other) : this() { - _hasBits0 = other._hasBits0; - conversionTrackingId_ = other.conversionTrackingId_; - crossAccountConversionTrackingId_ = other.crossAccountConversionTrackingId_; - acceptedCustomerDataTerms_ = other.acceptedCustomerDataTerms_; - conversionTrackingStatus_ = other.conversionTrackingStatus_; - enhancedConversionsForLeadsEnabled_ = other.enhancedConversionsForLeadsEnabled_; - googleAdsConversionCustomer_ = other.googleAdsConversionCustomer_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConversionTrackingSetting Clone() { - return new ConversionTrackingSetting(this); - } - - /// Field number for the "conversion_tracking_id" field. - public const int ConversionTrackingIdFieldNumber = 3; - private long conversionTrackingId_; - /// - /// Output only. The conversion tracking id used for this account. This id doesn't indicate - /// whether the customer uses conversion tracking (conversion_tracking_status - /// does). This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ConversionTrackingId { - get { if ((_hasBits0 & 1) != 0) { return conversionTrackingId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - conversionTrackingId_ = value; - } - } - /// Gets whether the "conversion_tracking_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasConversionTrackingId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "conversion_tracking_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearConversionTrackingId() { - _hasBits0 &= ~1; - } - - /// Field number for the "cross_account_conversion_tracking_id" field. - public const int CrossAccountConversionTrackingIdFieldNumber = 4; - private long crossAccountConversionTrackingId_; - /// - /// Output only. The conversion tracking id of the customer's manager. This is set when the - /// customer is opted into cross account conversion tracking, and it overrides - /// conversion_tracking_id. This field can only be managed through the Google - /// Ads UI. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CrossAccountConversionTrackingId { - get { if ((_hasBits0 & 2) != 0) { return crossAccountConversionTrackingId_; } else { return 0L; } } - set { - _hasBits0 |= 2; - crossAccountConversionTrackingId_ = value; - } - } - /// Gets whether the "cross_account_conversion_tracking_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCrossAccountConversionTrackingId { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cross_account_conversion_tracking_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCrossAccountConversionTrackingId() { - _hasBits0 &= ~2; - } - - /// Field number for the "accepted_customer_data_terms" field. - public const int AcceptedCustomerDataTermsFieldNumber = 5; - private bool acceptedCustomerDataTerms_; - /// - /// Output only. Whether the customer has accepted customer data terms. If using - /// cross-account conversion tracking, this value is inherited from the - /// manager. This field is read-only. For more - /// information, see https://support.google.com/adspolicy/answer/7475709. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AcceptedCustomerDataTerms { - get { return acceptedCustomerDataTerms_; } - set { - acceptedCustomerDataTerms_ = value; - } - } - - /// Field number for the "conversion_tracking_status" field. - public const int ConversionTrackingStatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus conversionTrackingStatus_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus.Unspecified; - /// - /// Output only. Conversion tracking status. It indicates whether the customer is using - /// conversion tracking, and who is the conversion tracking owner of this - /// customer. If this customer is using cross-account conversion tracking, - /// the value returned will differ based on the `login-customer-id` of the - /// request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus ConversionTrackingStatus { - get { return conversionTrackingStatus_; } - set { - conversionTrackingStatus_ = value; - } - } - - /// Field number for the "enhanced_conversions_for_leads_enabled" field. - public const int EnhancedConversionsForLeadsEnabledFieldNumber = 7; - private bool enhancedConversionsForLeadsEnabled_; - /// - /// Output only. Whether the customer is opted-in for enhanced conversions - /// for leads. If using cross-account conversion tracking, this value is - /// inherited from the manager. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool EnhancedConversionsForLeadsEnabled { - get { return enhancedConversionsForLeadsEnabled_; } - set { - enhancedConversionsForLeadsEnabled_ = value; - } - } - - /// Field number for the "google_ads_conversion_customer" field. - public const int GoogleAdsConversionCustomerFieldNumber = 8; - private string googleAdsConversionCustomer_ = ""; - /// - /// Output only. The resource name of the customer where conversions are created and - /// managed. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GoogleAdsConversionCustomer { - get { return googleAdsConversionCustomer_; } - set { - googleAdsConversionCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConversionTrackingSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConversionTrackingSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ConversionTrackingId != other.ConversionTrackingId) return false; - if (CrossAccountConversionTrackingId != other.CrossAccountConversionTrackingId) return false; - if (AcceptedCustomerDataTerms != other.AcceptedCustomerDataTerms) return false; - if (ConversionTrackingStatus != other.ConversionTrackingStatus) return false; - if (EnhancedConversionsForLeadsEnabled != other.EnhancedConversionsForLeadsEnabled) return false; - if (GoogleAdsConversionCustomer != other.GoogleAdsConversionCustomer) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasConversionTrackingId) hash ^= ConversionTrackingId.GetHashCode(); - if (HasCrossAccountConversionTrackingId) hash ^= CrossAccountConversionTrackingId.GetHashCode(); - if (AcceptedCustomerDataTerms != false) hash ^= AcceptedCustomerDataTerms.GetHashCode(); - if (ConversionTrackingStatus != global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus.Unspecified) hash ^= ConversionTrackingStatus.GetHashCode(); - if (EnhancedConversionsForLeadsEnabled != false) hash ^= EnhancedConversionsForLeadsEnabled.GetHashCode(); - if (GoogleAdsConversionCustomer.Length != 0) hash ^= GoogleAdsConversionCustomer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasConversionTrackingId) { - output.WriteRawTag(24); - output.WriteInt64(ConversionTrackingId); - } - if (HasCrossAccountConversionTrackingId) { - output.WriteRawTag(32); - output.WriteInt64(CrossAccountConversionTrackingId); - } - if (AcceptedCustomerDataTerms != false) { - output.WriteRawTag(40); - output.WriteBool(AcceptedCustomerDataTerms); - } - if (ConversionTrackingStatus != global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) ConversionTrackingStatus); - } - if (EnhancedConversionsForLeadsEnabled != false) { - output.WriteRawTag(56); - output.WriteBool(EnhancedConversionsForLeadsEnabled); - } - if (GoogleAdsConversionCustomer.Length != 0) { - output.WriteRawTag(66); - output.WriteString(GoogleAdsConversionCustomer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasConversionTrackingId) { - output.WriteRawTag(24); - output.WriteInt64(ConversionTrackingId); - } - if (HasCrossAccountConversionTrackingId) { - output.WriteRawTag(32); - output.WriteInt64(CrossAccountConversionTrackingId); - } - if (AcceptedCustomerDataTerms != false) { - output.WriteRawTag(40); - output.WriteBool(AcceptedCustomerDataTerms); - } - if (ConversionTrackingStatus != global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) ConversionTrackingStatus); - } - if (EnhancedConversionsForLeadsEnabled != false) { - output.WriteRawTag(56); - output.WriteBool(EnhancedConversionsForLeadsEnabled); - } - if (GoogleAdsConversionCustomer.Length != 0) { - output.WriteRawTag(66); - output.WriteString(GoogleAdsConversionCustomer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasConversionTrackingId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ConversionTrackingId); - } - if (HasCrossAccountConversionTrackingId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CrossAccountConversionTrackingId); - } - if (AcceptedCustomerDataTerms != false) { - size += 1 + 1; - } - if (ConversionTrackingStatus != global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionTrackingStatus); - } - if (EnhancedConversionsForLeadsEnabled != false) { - size += 1 + 1; - } - if (GoogleAdsConversionCustomer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GoogleAdsConversionCustomer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConversionTrackingSetting other) { - if (other == null) { - return; - } - if (other.HasConversionTrackingId) { - ConversionTrackingId = other.ConversionTrackingId; - } - if (other.HasCrossAccountConversionTrackingId) { - CrossAccountConversionTrackingId = other.CrossAccountConversionTrackingId; - } - if (other.AcceptedCustomerDataTerms != false) { - AcceptedCustomerDataTerms = other.AcceptedCustomerDataTerms; - } - if (other.ConversionTrackingStatus != global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus.Unspecified) { - ConversionTrackingStatus = other.ConversionTrackingStatus; - } - if (other.EnhancedConversionsForLeadsEnabled != false) { - EnhancedConversionsForLeadsEnabled = other.EnhancedConversionsForLeadsEnabled; - } - if (other.GoogleAdsConversionCustomer.Length != 0) { - GoogleAdsConversionCustomer = other.GoogleAdsConversionCustomer; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - ConversionTrackingId = input.ReadInt64(); - break; - } - case 32: { - CrossAccountConversionTrackingId = input.ReadInt64(); - break; - } - case 40: { - AcceptedCustomerDataTerms = input.ReadBool(); - break; - } - case 48: { - ConversionTrackingStatus = (global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus) input.ReadEnum(); - break; - } - case 56: { - EnhancedConversionsForLeadsEnabled = input.ReadBool(); - break; - } - case 66: { - GoogleAdsConversionCustomer = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - ConversionTrackingId = input.ReadInt64(); - break; - } - case 32: { - CrossAccountConversionTrackingId = input.ReadInt64(); - break; - } - case 40: { - AcceptedCustomerDataTerms = input.ReadBool(); - break; - } - case 48: { - ConversionTrackingStatus = (global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus) input.ReadEnum(); - break; - } - case 56: { - EnhancedConversionsForLeadsEnabled = input.ReadBool(); - break; - } - case 66: { - GoogleAdsConversionCustomer = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Remarketing setting for a customer. - /// - public sealed partial class RemarketingSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemarketingSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemarketingSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemarketingSetting(RemarketingSetting other) : this() { - googleGlobalSiteTag_ = other.googleGlobalSiteTag_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public RemarketingSetting Clone() { - return new RemarketingSetting(this); - } - - /// Field number for the "google_global_site_tag" field. - public const int GoogleGlobalSiteTagFieldNumber = 2; - private string googleGlobalSiteTag_; - /// - /// Output only. The Google tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GoogleGlobalSiteTag { - get { return googleGlobalSiteTag_ ?? ""; } - set { - googleGlobalSiteTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "google_global_site_tag" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGoogleGlobalSiteTag { - get { return googleGlobalSiteTag_ != null; } - } - /// Clears the value of the "google_global_site_tag" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGoogleGlobalSiteTag() { - googleGlobalSiteTag_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as RemarketingSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(RemarketingSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GoogleGlobalSiteTag != other.GoogleGlobalSiteTag) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasGoogleGlobalSiteTag) hash ^= GoogleGlobalSiteTag.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasGoogleGlobalSiteTag) { - output.WriteRawTag(18); - output.WriteString(GoogleGlobalSiteTag); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasGoogleGlobalSiteTag) { - output.WriteRawTag(18); - output.WriteString(GoogleGlobalSiteTag); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasGoogleGlobalSiteTag) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GoogleGlobalSiteTag); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(RemarketingSetting other) { - if (other == null) { - return; - } - if (other.HasGoogleGlobalSiteTag) { - GoogleGlobalSiteTag = other.GoogleGlobalSiteTag; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - GoogleGlobalSiteTag = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - GoogleGlobalSiteTag = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAsset.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAsset.g.cs deleted file mode 100755 index 16089431d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAsset.g.cs +++ /dev/null @@ -1,424 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_asset.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_asset.proto - public static partial class CustomerAssetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_asset.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerAssetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2Fzc2V0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYXNzZXRfZmll", - "bGRfdHlwZS5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2Fzc2V0X2xpbmtfc3RhdHVzLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvYXNzZXRfc291cmNlLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "IoMECg1DdXN0b21lckFzc2V0EkUKDXJlc291cmNlX25hbWUYASABKAlCLuBB", - "BfpBKAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyQXNzZXQS", - "OAoFYXNzZXQYAiABKAlCKeBBAuBBBfpBIAoeZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0Fzc2V0El0KCmZpZWxkX3R5cGUYAyABKA4yQS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQXNzZXRGaWVsZFR5cGVFbnVtLkFzc2V0", - "RmllbGRUeXBlQgbgQQLgQQUSUAoGc291cmNlGAUgASgOMjsuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLkFzc2V0U291cmNlRW51bS5Bc3NldFNv", - "dXJjZUID4EEDElMKBnN0YXR1cxgEIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5Bc3NldExpbmtTdGF0dXNFbnVtLkFzc2V0TGlua1N0", - "YXR1czpr6kFoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJB", - "c3NldBI+Y3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY3VzdG9tZXJBc3NldHMv", - "e2Fzc2V0X2lkfX57ZmllbGRfdHlwZX1ChAIKJmNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzQhJDdXN0b21lckFzc2V0UHJvdG9QAVpL", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AssetSourceReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset), global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset.Parser, new[]{ "ResourceName", "Asset", "FieldType", "Source", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A link between a customer and an asset. - /// - public sealed partial class CustomerAsset : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerAsset()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAsset() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAsset(CustomerAsset other) : this() { - resourceName_ = other.resourceName_; - asset_ = other.asset_; - fieldType_ = other.fieldType_; - source_ = other.source_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAsset Clone() { - return new CustomerAsset(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer asset. - /// CustomerAsset resource names have the form: - /// - /// `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 2; - private string asset_ = ""; - /// - /// Required. Immutable. The asset which is linked to the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Asset { - get { return asset_; } - set { - asset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "field_type" field. - public const int FieldTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType fieldType_ = global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified; - /// - /// Required. Immutable. Role that the asset takes for the customer link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType FieldType { - get { return fieldType_; } - set { - fieldType_ = value; - } - } - - /// Field number for the "source" field. - public const int SourceFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource source_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified; - /// - /// Output only. Source of the customer asset link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource Source { - get { return source_; } - set { - source_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified; - /// - /// Status of the customer asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerAsset); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerAsset other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Asset != other.Asset) return false; - if (FieldType != other.FieldType) return false; - if (Source != other.Source) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Asset.Length != 0) hash ^= Asset.GetHashCode(); - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) hash ^= FieldType.GetHashCode(); - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) hash ^= Source.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Asset.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Source); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Asset.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) FieldType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Source); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Asset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Asset); - } - if (FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldType); - } - if (Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerAsset other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Asset.Length != 0) { - Asset = other.Asset; - } - if (other.FieldType != global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { - FieldType = other.FieldType; - } - if (other.Source != global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource.Unspecified) { - Source = other.Source; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Asset = input.ReadString(); - break; - } - case 24: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 40: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Asset = input.ReadString(); - break; - } - case 24: { - FieldType = (global::Google.Ads.GoogleAds.V12.Enums.AssetFieldTypeEnum.Types.AssetFieldType) input.ReadEnum(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus) input.ReadEnum(); - break; - } - case 40: { - Source = (global::Google.Ads.GoogleAds.V12.Enums.AssetSourceEnum.Types.AssetSource) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetResourceNames.g.cs deleted file mode 100755 index bab047dd4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetResourceNames.g.cs +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerAsset resource. - public sealed partial class CustomerAssetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerAssets/{asset_id}~{field_type}. - /// - CustomerAssetFieldType = 1, - } - - private static gax::PathTemplate s_customerAssetFieldType = new gax::PathTemplate("customers/{customer_id}/customerAssets/{asset_id_field_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerAssetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerAssetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerAssetName FromCustomerAssetFieldType(string customerId, string assetId, string fieldTypeId) => - new CustomerAssetName(ResourceNameType.CustomerAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type}. - /// - public static string Format(string customerId, string assetId, string fieldTypeId) => - FormatCustomerAssetFieldType(customerId, assetId, fieldTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type}. - /// - public static string FormatCustomerAssetFieldType(string customerId, string assetId, string fieldTypeId) => - s_customerAssetFieldType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerAssetName Parse(string customerAssetName) => Parse(customerAssetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerAssetName Parse(string customerAssetName, bool allowUnparsed) => - TryParse(customerAssetName, allowUnparsed, out CustomerAssetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerAssetName, out CustomerAssetName result) => - TryParse(customerAssetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerAssetName, bool allowUnparsed, out CustomerAssetName result) - { - gax::GaxPreconditions.CheckNotNull(customerAssetName, nameof(customerAssetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetFieldType.TryParseName(customerAssetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAssetFieldType(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerAssetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CustomerAssetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetId = null, string customerId = null, string fieldTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetId = assetId; - CustomerId = customerId; - FieldTypeId = fieldTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/customerAssets/{asset_id}~{field_type} - /// - /// The Customer ID. Must not be null or empty. - /// The Asset ID. Must not be null or empty. - /// The FieldType ID. Must not be null or empty. - public CustomerAssetName(string customerId, string assetId, string fieldTypeId) : this(ResourceNameType.CustomerAssetFieldType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetId, nameof(assetId)), fieldTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(fieldTypeId, nameof(fieldTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Asset ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The FieldType ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FieldTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetFieldType: return s_customerAssetFieldType.Expand(CustomerId, $"{AssetId}~{FieldTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerAssetName); - - /// - public bool Equals(CustomerAssetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerAssetName a, CustomerAssetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerAssetName a, CustomerAssetName b) => !(a == b); - } - - public partial class CustomerAsset - { - /// - /// -typed view over the resource name property. - /// - internal CustomerAssetName ResourceNameAsCustomerAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal AssetName AssetAsAssetName - { - get => string.IsNullOrEmpty(Asset) ? null : AssetName.Parse(Asset, allowUnparsed: true); - set => Asset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetService.g.cs deleted file mode 100755 index 171ebab89..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetService.g.cs +++ /dev/null @@ -1,1309 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_asset_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_asset_service.proto - public static partial class CustomerAssetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_asset_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerAssetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "YXNzZXRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVz", - "cG9uc2VfY29udGVudF90eXBlLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2N1c3RvbWVyX2Fzc2V0LnByb3RvGhxnb29nbGUv", - "YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", - "cHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIqcCChtNdXRhdGVDdXN0", - "b21lckFzc2V0c1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJS", - "CgpvcGVyYXRpb25zGAIgAygLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLkN1c3RvbWVyQXNzZXRPcGVyYXRpb25CA+BBAhIXCg9wYXJ0", - "aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCBJqChVy", - "ZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9u", - "c2VDb250ZW50VHlwZSKfAgoWQ3VzdG9tZXJBc3NldE9wZXJhdGlvbhIvCgt1", - "cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sS", - "QwoGY3JlYXRlGAEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5DdXN0b21lckFzc2V0SAASQwoGdXBkYXRlGAMgASgLMjEuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckFzc2V0", - "SAASPQoGcmVtb3ZlGAIgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DdXN0b21lckFzc2V0SABCCwoJb3BlcmF0aW9uIqABChxNdXRhdGVD", - "dXN0b21lckFzc2V0c1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJv", - "chgBIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEk0KB3Jlc3VsdHMYAiADKAsy", - "PC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ3Vz", - "dG9tZXJBc3NldFJlc3VsdCKqAQoZTXV0YXRlQ3VzdG9tZXJBc3NldFJlc3Vs", - "dBJCCg1yZXNvdXJjZV9uYW1lGAEgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9DdXN0b21lckFzc2V0EkkKDmN1c3RvbWVyX2Fzc2V0GAIg", - "ASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0", - "b21lckFzc2V0MtECChRDdXN0b21lckFzc2V0U2VydmljZRLxAQoUTXV0YXRl", - "Q3VzdG9tZXJBc3NldHMSPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlQ3VzdG9tZXJBc3NldHNSZXF1ZXN0Gj8uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyQXNzZXRz", - "UmVzcG9uc2UiWILT5JMCOSI0L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lk", - "PSp9L2N1c3RvbWVyQXNzZXRzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9w", - "ZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBz", - "Oi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KFAgolY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IZQ3VzdG9tZXJBc3Nl", - "dFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2Vz", - "ogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIh", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult.Parser, new[]{ "ResourceName", "CustomerAsset" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomerAssetService.MutateCustomerAssets][google.ads.googleads.v12.services.CustomerAssetService.MutateCustomerAssets]. - /// - public sealed partial class MutateCustomerAssetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerAssetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetsRequest(MutateCustomerAssetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetsRequest Clone() { - return new MutateCustomerAssetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer assets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customer assets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerAssetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerAssetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerAssetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a customer asset. - /// - public sealed partial class CustomerAssetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerAssetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetOperation(CustomerAssetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetOperation Clone() { - return new CustomerAssetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new customer - /// asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 3; - /// - /// Update operation: The customer asset is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed customer asset is - /// expected, in this format: - /// - /// `customers/{customer_id}/customerAssets/{asset_id}~{field_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 3, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerAssetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerAssetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(26); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(26); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerAssetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a customer asset mutate. - /// - public sealed partial class MutateCustomerAssetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerAssetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetsResponse(MutateCustomerAssetsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetsResponse Clone() { - return new MutateCustomerAssetsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerAssetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerAssetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerAssetsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer asset mutate. - /// - public sealed partial class MutateCustomerAssetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerAssetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetResult(MutateCustomerAssetResult other) : this() { - resourceName_ = other.resourceName_; - customerAsset_ = other.customerAsset_ != null ? other.customerAsset_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetResult Clone() { - return new MutateCustomerAssetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_asset" field. - public const int CustomerAssetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset customerAsset_; - /// - /// The mutated customer asset with only mutable fields after - /// mutate. The field will only be returned when response_content_type is set - /// to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset CustomerAsset { - get { return customerAsset_; } - set { - customerAsset_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerAssetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerAssetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomerAsset, other.CustomerAsset)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customerAsset_ != null) hash ^= CustomerAsset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerAsset_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customerAsset_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerAsset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerAssetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customerAsset_ != null) { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - CustomerAsset.MergeFrom(other.CustomerAsset); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - input.ReadMessage(CustomerAsset); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - input.ReadMessage(CustomerAsset); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceClient.g.cs deleted file mode 100755 index 6b874bcbe..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceClient.g.cs +++ /dev/null @@ -1,458 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerAssetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerAssetServiceSettings GetDefault() => new CustomerAssetServiceSettings(); - - /// Constructs a new object with default settings. - public CustomerAssetServiceSettings() - { - } - - private CustomerAssetServiceSettings(CustomerAssetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerAssetsSettings = existing.MutateCustomerAssetsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerAssetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerAssetServiceClient.MutateCustomerAssets and - /// CustomerAssetServiceClient.MutateCustomerAssetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerAssetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerAssetServiceSettings Clone() => new CustomerAssetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerAssetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerAssetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerAssetServiceClientBuilder() : base(CustomerAssetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerAssetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerAssetServiceClient Build() - { - CustomerAssetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerAssetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerAssetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerAssetServiceClient.ChannelPool; - } - - /// CustomerAssetService client wrapper, for convenient use. - /// - /// Service to manage customer assets. - /// - public abstract partial class CustomerAssetServiceClient - { - /// - /// The default endpoint for the CustomerAssetService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerAssetService scopes. - /// - /// The default CustomerAssetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerAssetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerAssetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerAssetServiceClient Create() => new CustomerAssetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerAssetServiceClient Create(grpccore::CallInvoker callInvoker, CustomerAssetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerAssetService.CustomerAssetServiceClient grpcClient = new CustomerAssetService.CustomerAssetServiceClient(callInvoker); - return new CustomerAssetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerAssetService client - public virtual CustomerAssetService.CustomerAssetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerAssetsResponse MutateCustomerAssets(MutateCustomerAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetsAsync(MutateCustomerAssetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetsAsync(MutateCustomerAssetsRequest request, st::CancellationToken cancellationToken) => - MutateCustomerAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer assets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerAssetsResponse MutateCustomerAssets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerAssets(new MutateCustomerAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer assets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerAssetsAsync(new MutateCustomerAssetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer assets are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer assets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerAssetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerAssetService client wrapper implementation, for convenient use. - /// - /// Service to manage customer assets. - /// - public sealed partial class CustomerAssetServiceClientImpl : CustomerAssetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerAssets; - - /// - /// Constructs a client wrapper for the CustomerAssetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CustomerAssetServiceClientImpl(CustomerAssetService.CustomerAssetServiceClient grpcClient, CustomerAssetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerAssetServiceSettings effectiveSettings = settings ?? CustomerAssetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerAssets = clientHelper.BuildApiCall("MutateCustomerAssets", grpcClient.MutateCustomerAssetsAsync, grpcClient.MutateCustomerAssets, effectiveSettings.MutateCustomerAssetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerAssets); - Modify_MutateCustomerAssetsApiCall(ref _callMutateCustomerAssets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerAssetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerAssetService.CustomerAssetServiceClient grpcClient, CustomerAssetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerAssetService client - public override CustomerAssetService.CustomerAssetServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerAssetsRequest(ref MutateCustomerAssetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerAssetsResponse MutateCustomerAssets(MutateCustomerAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerAssetsRequest(ref request, ref callSettings); - return _callMutateCustomerAssets.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerAssetsAsync(MutateCustomerAssetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerAssetsRequest(ref request, ref callSettings); - return _callMutateCustomerAssets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceGrpc.g.cs deleted file mode 100755 index 795ce28fe..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceGrpc.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_asset_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer assets. - /// - public static partial class CustomerAssetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerAssetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerAssets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerAssets", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerAssetService - [grpc::BindServiceMethod(typeof(CustomerAssetService), "BindService")] - public abstract partial class CustomerAssetServiceBase - { - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerAssets(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerAssetService - public partial class CustomerAssetServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerAssetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerAssetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerAssetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerAssetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerAssetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerAssetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsResponse MutateCustomerAssets(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerAssets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsResponse MutateCustomerAssets(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerAssets, null, options, request); - } - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerAssetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes customer assets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AssetLinkError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerAssetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerAssets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerAssetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerAssetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerAssetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerAssets, serviceImpl.MutateCustomerAssets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerAssetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerAssets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceResourceNames.g.cs deleted file mode 100755 index 41eb53da4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerAssetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerAssetName RemoveAsCustomerAssetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerAssetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerAssetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerAssetName ResourceNameAsCustomerAssetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerAssetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetSet.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetSet.g.cs deleted file mode 100755 index 990ce39c4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetSet.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_asset_set.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_asset_set.proto - public static partial class CustomerAssetSetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_asset_set.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerAssetSetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2Fzc2V0X3NldC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fzc2V0", - "X3NldF9saW5rX3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhh", - "dmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKhAwoQQ3Vz", - "dG9tZXJBc3NldFNldBJICg1yZXNvdXJjZV9uYW1lGAEgASgJQjHgQQX6QSsK", - "KWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lckFzc2V0U2V0EjwK", - "CWFzc2V0X3NldBgCIAEoCUIp4EEF+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQXNzZXRTZXQSOwoIY3VzdG9tZXIYAyABKAlCKeBBBfpBIwohZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyEl4KBnN0YXR1cxgEIAEo", - "DjJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Bc3NldFNldExp", - "bmtTdGF0dXNFbnVtLkFzc2V0U2V0TGlua1N0YXR1c0ID4EEDOmjqQWUKKWdv", - "b2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lckFzc2V0U2V0EjhjdXN0", - "b21lcnMve2N1c3RvbWVyX2lkfS9jdXN0b21lckFzc2V0U2V0cy97YXNzZXRf", - "c2V0X2lkfUKHAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXNCFUN1c3RvbWVyQXNzZXRTZXRQcm90b1ABWktnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJl", - "c291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3Vy", - "Y2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet), global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet.Parser, new[]{ "ResourceName", "AssetSet", "Customer", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// CustomerAssetSet is the linkage between a customer and an asset set. - /// Adding a CustomerAssetSet links an asset set with a customer. - /// - public sealed partial class CustomerAssetSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerAssetSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetSet(CustomerAssetSet other) : this() { - resourceName_ = other.resourceName_; - assetSet_ = other.assetSet_; - customer_ = other.customer_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetSet Clone() { - return new CustomerAssetSet(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer asset set. - /// Asset set asset resource names have the form: - /// - /// `customers/{customer_id}/customerAssetSets/{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "asset_set" field. - public const int AssetSetFieldNumber = 2; - private string assetSet_ = ""; - /// - /// Immutable. The asset set which is linked to the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AssetSet { - get { return assetSet_; } - set { - assetSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 3; - private string customer_ = ""; - /// - /// Immutable. The customer to which this asset set is linked. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Customer { - get { return customer_; } - set { - customer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified; - /// - /// Output only. The status of the customer asset set asset. Read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerAssetSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerAssetSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (AssetSet != other.AssetSet) return false; - if (Customer != other.Customer) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (AssetSet.Length != 0) hash ^= AssetSet.GetHashCode(); - if (Customer.Length != 0) hash ^= Customer.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetSet); - } - if (Customer.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Customer); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (AssetSet.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AssetSet); - } - if (Customer.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Customer); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (AssetSet.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetSet); - } - if (Customer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Customer); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerAssetSet other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.AssetSet.Length != 0) { - AssetSet = other.AssetSet; - } - if (other.Customer.Length != 0) { - Customer = other.Customer; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetSet = input.ReadString(); - break; - } - case 26: { - Customer = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - AssetSet = input.ReadString(); - break; - } - case 26: { - Customer = input.ReadString(); - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.AssetSetLinkStatusEnum.Types.AssetSetLinkStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetSetResourceNames.g.cs deleted file mode 100755 index 85e24dc3e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetResourceNames.g.cs +++ /dev/null @@ -1,274 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerAssetSet resource. - public sealed partial class CustomerAssetSetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerAssetSets/{asset_set_id}. - /// - CustomerAssetSet = 1, - } - - private static gax::PathTemplate s_customerAssetSet = new gax::PathTemplate("customers/{customer_id}/customerAssetSets/{asset_set_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerAssetSetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerAssetSetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerAssetSets/{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerAssetSetName FromCustomerAssetSet(string customerId, string assetSetId) => - new CustomerAssetSetName(ResourceNameType.CustomerAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerAssetSets/{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerAssetSets/{asset_set_id}. - /// - public static string Format(string customerId, string assetSetId) => FormatCustomerAssetSet(customerId, assetSetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerAssetSets/{asset_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerAssetSets/{asset_set_id}. - /// - public static string FormatCustomerAssetSet(string customerId, string assetSetId) => - s_customerAssetSet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerAssetSets/{asset_set_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerAssetSetName Parse(string customerAssetSetName) => Parse(customerAssetSetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerAssetSets/{asset_set_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerAssetSetName Parse(string customerAssetSetName, bool allowUnparsed) => - TryParse(customerAssetSetName, allowUnparsed, out CustomerAssetSetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerAssetSets/{asset_set_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerAssetSetName, out CustomerAssetSetName result) => - TryParse(customerAssetSetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerAssetSets/{asset_set_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerAssetSetName, bool allowUnparsed, out CustomerAssetSetName result) - { - gax::GaxPreconditions.CheckNotNull(customerAssetSetName, nameof(customerAssetSetName)); - gax::TemplatedResourceName resourceName; - if (s_customerAssetSet.TryParseName(customerAssetSetName, out resourceName)) - { - result = FromCustomerAssetSet(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerAssetSetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerAssetSetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string assetSetId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AssetSetId = assetSetId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/customerAssetSets/{asset_set_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AssetSet ID. Must not be null or empty. - public CustomerAssetSetName(string customerId, string assetSetId) : this(ResourceNameType.CustomerAssetSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), assetSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(assetSetId, nameof(assetSetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AssetSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AssetSetId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAssetSet: return s_customerAssetSet.Expand(CustomerId, AssetSetId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerAssetSetName); - - /// - public bool Equals(CustomerAssetSetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerAssetSetName a, CustomerAssetSetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerAssetSetName a, CustomerAssetSetName b) => !(a == b); - } - - public partial class CustomerAssetSet - { - /// - /// -typed view over the resource name property. - /// - internal CustomerAssetSetName ResourceNameAsCustomerAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerAssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AssetSetName AssetSetAsAssetSetName - { - get => string.IsNullOrEmpty(AssetSet) ? null : AssetSetName.Parse(AssetSet, allowUnparsed: true); - set => AssetSet = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName CustomerAsCustomerName - { - get => string.IsNullOrEmpty(Customer) ? null : CustomerName.Parse(Customer, allowUnparsed: true); - set => Customer = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetSetService.g.cs deleted file mode 100755 index a601b3f53..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetService.g.cs +++ /dev/null @@ -1,1200 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_asset_set_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_asset_set_service.proto - public static partial class CustomerAssetSetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_asset_set_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerAssetSetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "YXNzZXRfc2V0X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9jdXN0b21lcl9hc3NldF9zZXQucHJvdG8a", - "HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xp", - "ZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5w", - "cm90byKtAgoeTXV0YXRlQ3VzdG9tZXJBc3NldFNldHNSZXF1ZXN0EhgKC2N1", - "c3RvbWVyX2lkGAEgASgJQgPgQQISVQoKb3BlcmF0aW9ucxgCIAMoCzI8Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DdXN0b21lckFzc2V0", - "U2V0T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUK", - "DXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBl", - "GAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3Bv", - "bnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUisgEKGUN1", - "c3RvbWVyQXNzZXRTZXRPcGVyYXRpb24SRgoGY3JlYXRlGAEgASgLMjQuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckFzc2V0", - "U2V0SAASQAoGcmVtb3ZlGAIgASgJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DdXN0b21lckFzc2V0U2V0SABCCwoJb3BlcmF0aW9uIqYBCh9N", - "dXRhdGVDdXN0b21lckFzc2V0U2V0c1Jlc3BvbnNlElAKB3Jlc3VsdHMYASAD", - "KAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "Q3VzdG9tZXJBc3NldFNldFJlc3VsdBIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJy", - "b3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1cyK3AQocTXV0YXRlQ3VzdG9t", - "ZXJBc3NldFNldFJlc3VsdBJFCg1yZXNvdXJjZV9uYW1lGAEgASgJQi76QSsK", - "KWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lckFzc2V0U2V0ElAK", - "EmN1c3RvbWVyX2Fzc2V0X3NldBgCIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXJBc3NldFNldDLgAgoXQ3VzdG9t", - "ZXJBc3NldFNldFNlcnZpY2US/QEKF011dGF0ZUN1c3RvbWVyQXNzZXRTZXRz", - "EkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1", - "c3RvbWVyQXNzZXRTZXRzUmVxdWVzdBpCLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckFzc2V0U2V0c1Jlc3BvbnNl", - "IluC0+STAjwiNy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9jdXN0", - "b21lckFzc2V0U2V0czptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCiAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCHEN1c3RvbWVyQXNzZXRTZXRT", - "ZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6IC", - "A0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetResult.Parser, new[]{ "ResourceName", "CustomerAssetSet" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomerAssetSetService.MutateCustomerAssetSets][google.ads.googleads.v12.services.CustomerAssetSetService.MutateCustomerAssetSets]. - /// - public sealed partial class MutateCustomerAssetSetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerAssetSetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetsRequest(MutateCustomerAssetSetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetsRequest Clone() { - return new MutateCustomerAssetSetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer asset sets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customer asset sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerAssetSetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerAssetSetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerAssetSetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on a customer asset set. - /// - public sealed partial class CustomerAssetSetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerAssetSetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetSetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetSetOperation(CustomerAssetSetOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerAssetSetOperation Clone() { - return new CustomerAssetSetOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new customer asset - /// set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed customer asset set is - /// expected, in this format: - /// `customers/{customer_id}/customerAssetSets/{asset_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerAssetSetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerAssetSetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerAssetSetOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a customer asset set mutate. - /// - public sealed partial class MutateCustomerAssetSetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerAssetSetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetsResponse(MutateCustomerAssetSetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetsResponse Clone() { - return new MutateCustomerAssetSetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (e.g. auth errors), - /// we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerAssetSetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerAssetSetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerAssetSetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer asset set mutate. - /// - public sealed partial class MutateCustomerAssetSetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerAssetSetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetResult(MutateCustomerAssetSetResult other) : this() { - resourceName_ = other.resourceName_; - customerAssetSet_ = other.customerAssetSet_ != null ? other.customerAssetSet_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerAssetSetResult Clone() { - return new MutateCustomerAssetSetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_asset_set" field. - public const int CustomerAssetSetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet customerAssetSet_; - /// - /// The mutated customer asset set with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet CustomerAssetSet { - get { return customerAssetSet_; } - set { - customerAssetSet_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerAssetSetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerAssetSetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomerAssetSet, other.CustomerAssetSet)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customerAssetSet_ != null) hash ^= CustomerAssetSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerAssetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerAssetSet_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerAssetSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customerAssetSet_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerAssetSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerAssetSetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customerAssetSet_ != null) { - if (customerAssetSet_ == null) { - CustomerAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - } - CustomerAssetSet.MergeFrom(other.CustomerAssetSet); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerAssetSet_ == null) { - CustomerAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - } - input.ReadMessage(CustomerAssetSet); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerAssetSet_ == null) { - CustomerAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - } - input.ReadMessage(CustomerAssetSet); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceClient.g.cs deleted file mode 100755 index 2266d5f72..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerAssetSetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerAssetSetServiceSettings GetDefault() => new CustomerAssetSetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerAssetSetServiceSettings() - { - } - - private CustomerAssetSetServiceSettings(CustomerAssetSetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerAssetSetsSettings = existing.MutateCustomerAssetSetsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerAssetSetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerAssetSetServiceClient.MutateCustomerAssetSets and - /// CustomerAssetSetServiceClient.MutateCustomerAssetSetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerAssetSetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerAssetSetServiceSettings Clone() => new CustomerAssetSetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerAssetSetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerAssetSetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerAssetSetServiceClientBuilder() : base(CustomerAssetSetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerAssetSetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerAssetSetServiceClient Build() - { - CustomerAssetSetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerAssetSetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerAssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerAssetSetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerAssetSetServiceClient.ChannelPool; - } - - /// CustomerAssetSetService client wrapper, for convenient use. - /// - /// Service to manage customer asset set - /// - public abstract partial class CustomerAssetSetServiceClient - { - /// - /// The default endpoint for the CustomerAssetSetService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerAssetSetService scopes. - /// - /// The default CustomerAssetSetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerAssetSetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerAssetSetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerAssetSetServiceClient Create() => new CustomerAssetSetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerAssetSetServiceClient Create(grpccore::CallInvoker callInvoker, CustomerAssetSetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerAssetSetService.CustomerAssetSetServiceClient grpcClient = new CustomerAssetSetService.CustomerAssetSetServiceClient(callInvoker); - return new CustomerAssetSetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerAssetSetService client - public virtual CustomerAssetSetService.CustomerAssetSetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerAssetSetsResponse MutateCustomerAssetSets(MutateCustomerAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetSetsAsync(MutateCustomerAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetSetsAsync(MutateCustomerAssetSetsRequest request, st::CancellationToken cancellationToken) => - MutateCustomerAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customer asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerAssetSetsResponse MutateCustomerAssetSets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerAssetSets(new MutateCustomerAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customer asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer asset sets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetSetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerAssetSetsAsync(new MutateCustomerAssetSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customer asset sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer asset sets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAssetSetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerAssetSetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerAssetSetService client wrapper implementation, for convenient use. - /// - /// Service to manage customer asset set - /// - public sealed partial class CustomerAssetSetServiceClientImpl : CustomerAssetSetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerAssetSets; - - /// - /// Constructs a client wrapper for the CustomerAssetSetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerAssetSetServiceClientImpl(CustomerAssetSetService.CustomerAssetSetServiceClient grpcClient, CustomerAssetSetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerAssetSetServiceSettings effectiveSettings = settings ?? CustomerAssetSetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerAssetSets = clientHelper.BuildApiCall("MutateCustomerAssetSets", grpcClient.MutateCustomerAssetSetsAsync, grpcClient.MutateCustomerAssetSets, effectiveSettings.MutateCustomerAssetSetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerAssetSets); - Modify_MutateCustomerAssetSetsApiCall(ref _callMutateCustomerAssetSets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerAssetSetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerAssetSetService.CustomerAssetSetServiceClient grpcClient, CustomerAssetSetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerAssetSetService client - public override CustomerAssetSetService.CustomerAssetSetServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerAssetSetsRequest(ref MutateCustomerAssetSetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerAssetSetsResponse MutateCustomerAssetSets(MutateCustomerAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerAssetSetsRequest(ref request, ref callSettings); - return _callMutateCustomerAssetSets.Sync(request, callSettings); - } - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerAssetSetsAsync(MutateCustomerAssetSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerAssetSetsRequest(ref request, ref callSettings); - return _callMutateCustomerAssetSets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceGrpc.g.cs deleted file mode 100755 index 6f9b95f99..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_asset_set_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer asset set - /// - public static partial class CustomerAssetSetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerAssetSetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetSetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetSetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerAssetSets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerAssetSets", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetSetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerAssetSetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerAssetSetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerAssetSetService - [grpc::BindServiceMethod(typeof(CustomerAssetSetService), "BindService")] - public abstract partial class CustomerAssetSetServiceBase - { - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerAssetSetService - public partial class CustomerAssetSetServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerAssetSetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerAssetSetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerAssetSetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerAssetSetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerAssetSetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerAssetSetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsResponse MutateCustomerAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerAssetSets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsResponse MutateCustomerAssetSets(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerAssetSets, null, options, request); - } - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerAssetSetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, or removes customer asset sets. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerAssetSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerAssetSets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerAssetSetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerAssetSetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerAssetSetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerAssetSets, serviceImpl.MutateCustomerAssetSets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerAssetSetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerAssetSets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerAssetSets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceResourceNames.g.cs deleted file mode 100755 index 0577b8fed..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerAssetSetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerAssetSetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerAssetSetName RemoveAsCustomerAssetSetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerAssetSetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerAssetSetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerAssetSetName ResourceNameAsCustomerAssetSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerAssetSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClient.g.cs deleted file mode 100755 index 22abdfaf5..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClient.g.cs +++ /dev/null @@ -1,822 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_client.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_client.proto - public static partial class CustomerClientReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_client.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerClientReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2NsaWVudC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2N1c3RvbWVy", - "X3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90", - "bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKNBgoOQ3VzdG9tZXJDbGll", - "bnQSRgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIv4EED+kEpCidnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJDbGllbnQSRwoPY2xpZW50X2N1c3Rv", - "bWVyGAwgASgJQingQQP6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "dXN0b21lckgAiAEBEhgKBmhpZGRlbhgNIAEoCEID4EEDSAGIAQESFwoFbGV2", - "ZWwYDiABKANCA+BBA0gCiAEBEhsKCXRpbWVfem9uZRgPIAEoCUID4EEDSAOI", - "AQESHgoMdGVzdF9hY2NvdW50GBAgASgIQgPgQQNIBIgBARIZCgdtYW5hZ2Vy", - "GBEgASgIQgPgQQNIBYgBARIiChBkZXNjcmlwdGl2ZV9uYW1lGBIgASgJQgPg", - "QQNIBogBARIfCg1jdXJyZW5jeV9jb2RlGBMgASgJQgPgQQNIB4gBARIUCgJp", - "ZBgUIAEoA0ID4EEDSAiIAQESPgoOYXBwbGllZF9sYWJlbHMYFSADKAlCJuBB", - "A/pBIAoeZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0xhYmVsElYKBnN0YXR1", - "cxgWIAEoDjJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DdXN0", - "b21lclN0YXR1c0VudW0uQ3VzdG9tZXJTdGF0dXNCA+BBAzpq6kFnCidnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJDbGllbnQSPGN1c3RvbWVy", - "cy97Y3VzdG9tZXJfaWR9L2N1c3RvbWVyQ2xpZW50cy97Y2xpZW50X2N1c3Rv", - "bWVyX2lkfUISChBfY2xpZW50X2N1c3RvbWVyQgkKB19oaWRkZW5CCAoGX2xl", - "dmVsQgwKCl90aW1lX3pvbmVCDwoNX3Rlc3RfYWNjb3VudEIKCghfbWFuYWdl", - "ckITChFfZGVzY3JpcHRpdmVfbmFtZUIQCg5fY3VycmVuY3lfY29kZUIFCgNf", - "aWRChQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "QhNDdXN0b21lckNsaWVudFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "O3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5S", - "ZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz", - "6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerClient), global::Google.Ads.GoogleAds.V12.Resources.CustomerClient.Parser, new[]{ "ResourceName", "ClientCustomer", "Hidden", "Level", "TimeZone", "TestAccount", "Manager", "DescriptiveName", "CurrencyCode", "Id", "AppliedLabels", "Status" }, new[]{ "ClientCustomer", "Hidden", "Level", "TimeZone", "TestAccount", "Manager", "DescriptiveName", "CurrencyCode", "Id" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A link between the given customer and a client customer. CustomerClients only - /// exist for manager customers. All direct and indirect client customers are - /// included, as well as the manager itself. - /// - public sealed partial class CustomerClient : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerClient()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerClientReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClient() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClient(CustomerClient other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - clientCustomer_ = other.clientCustomer_; - hidden_ = other.hidden_; - level_ = other.level_; - timeZone_ = other.timeZone_; - testAccount_ = other.testAccount_; - manager_ = other.manager_; - descriptiveName_ = other.descriptiveName_; - currencyCode_ = other.currencyCode_; - id_ = other.id_; - appliedLabels_ = other.appliedLabels_.Clone(); - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClient Clone() { - return new CustomerClient(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the customer client. - /// CustomerClient resource names have the form: - /// `customers/{customer_id}/customerClients/{client_customer_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "client_customer" field. - public const int ClientCustomerFieldNumber = 12; - private string clientCustomer_; - /// - /// Output only. The resource name of the client-customer which is linked to - /// the given customer. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ClientCustomer { - get { return clientCustomer_ ?? ""; } - set { - clientCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "client_customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClientCustomer { - get { return clientCustomer_ != null; } - } - /// Clears the value of the "client_customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClientCustomer() { - clientCustomer_ = null; - } - - /// Field number for the "hidden" field. - public const int HiddenFieldNumber = 13; - private bool hidden_; - /// - /// Output only. Specifies whether this is a - /// [hidden account](https://support.google.com/google-ads/answer/7519830). - /// Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Hidden { - get { if ((_hasBits0 & 1) != 0) { return hidden_; } else { return false; } } - set { - _hasBits0 |= 1; - hidden_ = value; - } - } - /// Gets whether the "hidden" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHidden { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "hidden" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHidden() { - _hasBits0 &= ~1; - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 14; - private long level_; - /// - /// Output only. Distance between given customer and client. For self link, the level value - /// will be 0. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Level { - get { if ((_hasBits0 & 2) != 0) { return level_; } else { return 0L; } } - set { - _hasBits0 |= 2; - level_ = value; - } - } - /// Gets whether the "level" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLevel { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "level" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLevel() { - _hasBits0 &= ~2; - } - - /// Field number for the "time_zone" field. - public const int TimeZoneFieldNumber = 15; - private string timeZone_; - /// - /// Output only. Common Locale Data Repository (CLDR) string representation of the - /// time zone of the client, for example, America/Los_Angeles. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TimeZone { - get { return timeZone_ ?? ""; } - set { - timeZone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "time_zone" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTimeZone { - get { return timeZone_ != null; } - } - /// Clears the value of the "time_zone" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimeZone() { - timeZone_ = null; - } - - /// Field number for the "test_account" field. - public const int TestAccountFieldNumber = 16; - private bool testAccount_; - /// - /// Output only. Identifies if the client is a test account. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool TestAccount { - get { if ((_hasBits0 & 4) != 0) { return testAccount_; } else { return false; } } - set { - _hasBits0 |= 4; - testAccount_ = value; - } - } - /// Gets whether the "test_account" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTestAccount { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "test_account" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTestAccount() { - _hasBits0 &= ~4; - } - - /// Field number for the "manager" field. - public const int ManagerFieldNumber = 17; - private bool manager_; - /// - /// Output only. Identifies if the client is a manager. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Manager { - get { if ((_hasBits0 & 8) != 0) { return manager_; } else { return false; } } - set { - _hasBits0 |= 8; - manager_ = value; - } - } - /// Gets whether the "manager" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasManager { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "manager" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearManager() { - _hasBits0 &= ~8; - } - - /// Field number for the "descriptive_name" field. - public const int DescriptiveNameFieldNumber = 18; - private string descriptiveName_; - /// - /// Output only. Descriptive name for the client. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DescriptiveName { - get { return descriptiveName_ ?? ""; } - set { - descriptiveName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "descriptive_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescriptiveName { - get { return descriptiveName_ != null; } - } - /// Clears the value of the "descriptive_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescriptiveName() { - descriptiveName_ = null; - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 19; - private string currencyCode_; - /// - /// Output only. Currency code (for example, 'USD', 'EUR') for the client. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_ ?? ""; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyCode { - get { return currencyCode_ != null; } - } - /// Clears the value of the "currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyCode() { - currencyCode_ = null; - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 20; - private long id_; - /// - /// Output only. The ID of the client customer. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 16) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 16; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~16; - } - - /// Field number for the "applied_labels" field. - public const int AppliedLabelsFieldNumber = 21; - private static readonly pb::FieldCodec _repeated_appliedLabels_codec - = pb::FieldCodec.ForString(170); - private readonly pbc::RepeatedField appliedLabels_ = new pbc::RepeatedField(); - /// - /// Output only. The resource names of the labels owned by the requesting customer that are - /// applied to the client customer. - /// Label resource names have the form: - /// - /// `customers/{customer_id}/labels/{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AppliedLabels { - get { return appliedLabels_; } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 22; - private global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified; - /// - /// Output only. The status of the client customer. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerClient); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerClient other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ClientCustomer != other.ClientCustomer) return false; - if (Hidden != other.Hidden) return false; - if (Level != other.Level) return false; - if (TimeZone != other.TimeZone) return false; - if (TestAccount != other.TestAccount) return false; - if (Manager != other.Manager) return false; - if (DescriptiveName != other.DescriptiveName) return false; - if (CurrencyCode != other.CurrencyCode) return false; - if (Id != other.Id) return false; - if(!appliedLabels_.Equals(other.appliedLabels_)) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasClientCustomer) hash ^= ClientCustomer.GetHashCode(); - if (HasHidden) hash ^= Hidden.GetHashCode(); - if (HasLevel) hash ^= Level.GetHashCode(); - if (HasTimeZone) hash ^= TimeZone.GetHashCode(); - if (HasTestAccount) hash ^= TestAccount.GetHashCode(); - if (HasManager) hash ^= Manager.GetHashCode(); - if (HasDescriptiveName) hash ^= DescriptiveName.GetHashCode(); - if (HasCurrencyCode) hash ^= CurrencyCode.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - hash ^= appliedLabels_.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasClientCustomer) { - output.WriteRawTag(98); - output.WriteString(ClientCustomer); - } - if (HasHidden) { - output.WriteRawTag(104); - output.WriteBool(Hidden); - } - if (HasLevel) { - output.WriteRawTag(112); - output.WriteInt64(Level); - } - if (HasTimeZone) { - output.WriteRawTag(122); - output.WriteString(TimeZone); - } - if (HasTestAccount) { - output.WriteRawTag(128, 1); - output.WriteBool(TestAccount); - } - if (HasManager) { - output.WriteRawTag(136, 1); - output.WriteBool(Manager); - } - if (HasDescriptiveName) { - output.WriteRawTag(146, 1); - output.WriteString(DescriptiveName); - } - if (HasCurrencyCode) { - output.WriteRawTag(154, 1); - output.WriteString(CurrencyCode); - } - if (HasId) { - output.WriteRawTag(160, 1); - output.WriteInt64(Id); - } - appliedLabels_.WriteTo(output, _repeated_appliedLabels_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasClientCustomer) { - output.WriteRawTag(98); - output.WriteString(ClientCustomer); - } - if (HasHidden) { - output.WriteRawTag(104); - output.WriteBool(Hidden); - } - if (HasLevel) { - output.WriteRawTag(112); - output.WriteInt64(Level); - } - if (HasTimeZone) { - output.WriteRawTag(122); - output.WriteString(TimeZone); - } - if (HasTestAccount) { - output.WriteRawTag(128, 1); - output.WriteBool(TestAccount); - } - if (HasManager) { - output.WriteRawTag(136, 1); - output.WriteBool(Manager); - } - if (HasDescriptiveName) { - output.WriteRawTag(146, 1); - output.WriteString(DescriptiveName); - } - if (HasCurrencyCode) { - output.WriteRawTag(154, 1); - output.WriteString(CurrencyCode); - } - if (HasId) { - output.WriteRawTag(160, 1); - output.WriteInt64(Id); - } - appliedLabels_.WriteTo(ref output, _repeated_appliedLabels_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasClientCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientCustomer); - } - if (HasHidden) { - size += 1 + 1; - } - if (HasLevel) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Level); - } - if (HasTimeZone) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TimeZone); - } - if (HasTestAccount) { - size += 2 + 1; - } - if (HasManager) { - size += 2 + 1; - } - if (HasDescriptiveName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(DescriptiveName); - } - if (HasCurrencyCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - size += appliedLabels_.CalculateSize(_repeated_appliedLabels_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerClient other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasClientCustomer) { - ClientCustomer = other.ClientCustomer; - } - if (other.HasHidden) { - Hidden = other.Hidden; - } - if (other.HasLevel) { - Level = other.Level; - } - if (other.HasTimeZone) { - TimeZone = other.TimeZone; - } - if (other.HasTestAccount) { - TestAccount = other.TestAccount; - } - if (other.HasManager) { - Manager = other.Manager; - } - if (other.HasDescriptiveName) { - DescriptiveName = other.DescriptiveName; - } - if (other.HasCurrencyCode) { - CurrencyCode = other.CurrencyCode; - } - if (other.HasId) { - Id = other.Id; - } - appliedLabels_.Add(other.appliedLabels_); - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 98: { - ClientCustomer = input.ReadString(); - break; - } - case 104: { - Hidden = input.ReadBool(); - break; - } - case 112: { - Level = input.ReadInt64(); - break; - } - case 122: { - TimeZone = input.ReadString(); - break; - } - case 128: { - TestAccount = input.ReadBool(); - break; - } - case 136: { - Manager = input.ReadBool(); - break; - } - case 146: { - DescriptiveName = input.ReadString(); - break; - } - case 154: { - CurrencyCode = input.ReadString(); - break; - } - case 160: { - Id = input.ReadInt64(); - break; - } - case 170: { - appliedLabels_.AddEntriesFrom(input, _repeated_appliedLabels_codec); - break; - } - case 176: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 98: { - ClientCustomer = input.ReadString(); - break; - } - case 104: { - Hidden = input.ReadBool(); - break; - } - case 112: { - Level = input.ReadInt64(); - break; - } - case 122: { - TimeZone = input.ReadString(); - break; - } - case 128: { - TestAccount = input.ReadBool(); - break; - } - case 136: { - Manager = input.ReadBool(); - break; - } - case 146: { - DescriptiveName = input.ReadString(); - break; - } - case 154: { - CurrencyCode = input.ReadString(); - break; - } - case 160: { - Id = input.ReadInt64(); - break; - } - case 170: { - appliedLabels_.AddEntriesFrom(ref input, _repeated_appliedLabels_codec); - break; - } - case 176: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientLink.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientLink.g.cs deleted file mode 100755 index a42671752..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientLink.g.cs +++ /dev/null @@ -1,463 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_client_link.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_client_link.proto - public static partial class CustomerClientLinkReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_client_link.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerClientLinkReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2NsaWVudF9saW5rLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzGjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvbWFu", - "YWdlcl9saW5rX3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhh", - "dmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byL1AwoSQ3Vz", - "dG9tZXJDbGllbnRMaW5rEkoKDXJlc291cmNlX25hbWUYASABKAlCM+BBBfpB", - "LQorZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyQ2xpZW50TGlu", - "axJHCg9jbGllbnRfY3VzdG9tZXIYByABKAlCKeBBBfpBIwohZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0N1c3RvbWVySACIAQESIQoPbWFuYWdlcl9saW5r", - "X2lkGAggASgDQgPgQQNIAYgBARJXCgZzdGF0dXMYBSABKA4yRy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuTWFuYWdlckxpbmtTdGF0dXNFbnVt", - "Lk1hbmFnZXJMaW5rU3RhdHVzEhMKBmhpZGRlbhgJIAEoCEgCiAEBOoUB6kGB", - "AQorZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyQ2xpZW50TGlu", - "axJSY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vY3VzdG9tZXJDbGllbnRMaW5r", - "cy97Y2xpZW50X2N1c3RvbWVyX2lkfX57bWFuYWdlcl9saW5rX2lkfUISChBf", - "Y2xpZW50X2N1c3RvbWVyQhIKEF9tYW5hZ2VyX2xpbmtfaWRCCQoHX2hpZGRl", - "bkKJAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNC", - "F0N1c3RvbWVyQ2xpZW50TGlua1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3Vy", - "Y2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3Vy", - "Y2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink), global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink.Parser, new[]{ "ResourceName", "ClientCustomer", "ManagerLinkId", "Status", "Hidden" }, new[]{ "ClientCustomer", "ManagerLinkId", "Hidden" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents customer client link relationship. - /// - public sealed partial class CustomerClientLink : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerClientLink()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLinkReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLink() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLink(CustomerClientLink other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - clientCustomer_ = other.clientCustomer_; - managerLinkId_ = other.managerLinkId_; - status_ = other.status_; - hidden_ = other.hidden_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLink Clone() { - return new CustomerClientLink(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. Name of the resource. - /// CustomerClientLink resource names have the form: - /// `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "client_customer" field. - public const int ClientCustomerFieldNumber = 7; - private string clientCustomer_; - /// - /// Immutable. The client customer linked to this customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ClientCustomer { - get { return clientCustomer_ ?? ""; } - set { - clientCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "client_customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClientCustomer { - get { return clientCustomer_ != null; } - } - /// Clears the value of the "client_customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClientCustomer() { - clientCustomer_ = null; - } - - /// Field number for the "manager_link_id" field. - public const int ManagerLinkIdFieldNumber = 8; - private long managerLinkId_; - /// - /// Output only. This is uniquely identifies a customer client link. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ManagerLinkId { - get { if ((_hasBits0 & 1) != 0) { return managerLinkId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - managerLinkId_ = value; - } - } - /// Gets whether the "manager_link_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasManagerLinkId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "manager_link_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearManagerLinkId() { - _hasBits0 &= ~1; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified; - /// - /// This is the status of the link between client and manager. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "hidden" field. - public const int HiddenFieldNumber = 9; - private bool hidden_; - /// - /// The visibility of the link. Users can choose whether or not to see hidden - /// links in the Google Ads UI. - /// Default value is false - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Hidden { - get { if ((_hasBits0 & 2) != 0) { return hidden_; } else { return false; } } - set { - _hasBits0 |= 2; - hidden_ = value; - } - } - /// Gets whether the "hidden" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHidden { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "hidden" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHidden() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerClientLink); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerClientLink other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ClientCustomer != other.ClientCustomer) return false; - if (ManagerLinkId != other.ManagerLinkId) return false; - if (Status != other.Status) return false; - if (Hidden != other.Hidden) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasClientCustomer) hash ^= ClientCustomer.GetHashCode(); - if (HasManagerLinkId) hash ^= ManagerLinkId.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasHidden) hash ^= Hidden.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasClientCustomer) { - output.WriteRawTag(58); - output.WriteString(ClientCustomer); - } - if (HasManagerLinkId) { - output.WriteRawTag(64); - output.WriteInt64(ManagerLinkId); - } - if (HasHidden) { - output.WriteRawTag(72); - output.WriteBool(Hidden); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasClientCustomer) { - output.WriteRawTag(58); - output.WriteString(ClientCustomer); - } - if (HasManagerLinkId) { - output.WriteRawTag(64); - output.WriteInt64(ManagerLinkId); - } - if (HasHidden) { - output.WriteRawTag(72); - output.WriteBool(Hidden); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasClientCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientCustomer); - } - if (HasManagerLinkId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ManagerLinkId); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasHidden) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerClientLink other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasClientCustomer) { - ClientCustomer = other.ClientCustomer; - } - if (other.HasManagerLinkId) { - ManagerLinkId = other.ManagerLinkId; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - Status = other.Status; - } - if (other.HasHidden) { - Hidden = other.Hidden; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus) input.ReadEnum(); - break; - } - case 58: { - ClientCustomer = input.ReadString(); - break; - } - case 64: { - ManagerLinkId = input.ReadInt64(); - break; - } - case 72: { - Hidden = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus) input.ReadEnum(); - break; - } - case 58: { - ClientCustomer = input.ReadString(); - break; - } - case 64: { - ManagerLinkId = input.ReadInt64(); - break; - } - case 72: { - Hidden = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientLinkError.g.cs deleted file mode 100755 index bd2a7b6e6..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkError.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/customer_client_link_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/customer_client_link_error.proto - public static partial class CustomerClientLinkErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/customer_client_link_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerClientLinkErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWVyX2Ns", - "aWVudF9saW5rX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZXJyb3JzIo8DChtDdXN0b21lckNsaWVudExpbmtFcnJvckVudW0i7wIK", - "F0N1c3RvbWVyQ2xpZW50TGlua0Vycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEioKJkNMSUVOVF9BTFJFQURZX0lOVklURURfQllfVEhJU19N", - "QU5BR0VSEAISJwojQ0xJRU5UX0FMUkVBRFlfTUFOQUdFRF9JTl9ISUVSQVJD", - "SFkQAxIbChdDWUNMSUNfTElOS19OT1RfQUxMT1dFRBAEEiIKHkNVU1RPTUVS", - "X0hBU19UT09fTUFOWV9BQ0NPVU5UUxAFEiMKH0NMSUVOVF9IQVNfVE9PX01B", - "TllfSU5WSVRBVElPTlMQBhIqCiZDQU5OT1RfSElERV9PUl9VTkhJREVfTUFO", - "QUdFUl9BQ0NPVU5UUxAHEi0KKUNVU1RPTUVSX0hBU19UT09fTUFOWV9BQ0NP", - "VU5UU19BVF9NQU5BR0VSEAgSIAocQ0xJRU5UX0hBU19UT09fTUFOWV9NQU5B", - "R0VSUxAJQvwBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "c0IcQ3VzdG9tZXJDbGllbnRMaW5rRXJyb3JQcm90b1ABWkVnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oC", - "I0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorEnum.Types.CustomerClientLinkError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible CustomeClientLink errors. - /// - public sealed partial class CustomerClientLinkErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerClientLinkErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLinkErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLinkErrorEnum(CustomerClientLinkErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLinkErrorEnum Clone() { - return new CustomerClientLinkErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerClientLinkErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerClientLinkErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerClientLinkErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerClientLinkErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible CustomerClientLink errors. - /// - public enum CustomerClientLinkError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Trying to manage a client that already in being managed by customer. - /// - [pbr::OriginalName("CLIENT_ALREADY_INVITED_BY_THIS_MANAGER")] ClientAlreadyInvitedByThisManager = 2, - /// - /// Already managed by some other manager in the hierarchy. - /// - [pbr::OriginalName("CLIENT_ALREADY_MANAGED_IN_HIERARCHY")] ClientAlreadyManagedInHierarchy = 3, - /// - /// Attempt to create a cycle in the hierarchy. - /// - [pbr::OriginalName("CYCLIC_LINK_NOT_ALLOWED")] CyclicLinkNotAllowed = 4, - /// - /// Managed accounts has the maximum number of linked accounts. - /// - [pbr::OriginalName("CUSTOMER_HAS_TOO_MANY_ACCOUNTS")] CustomerHasTooManyAccounts = 5, - /// - /// Invitor has the maximum pending invitations. - /// - [pbr::OriginalName("CLIENT_HAS_TOO_MANY_INVITATIONS")] ClientHasTooManyInvitations = 6, - /// - /// Attempt to change hidden status of a link that is not active. - /// - [pbr::OriginalName("CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS")] CannotHideOrUnhideManagerAccounts = 7, - /// - /// Parent manager account has the maximum number of linked accounts. - /// - [pbr::OriginalName("CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER")] CustomerHasTooManyAccountsAtManager = 8, - /// - /// Client has too many managers. - /// - [pbr::OriginalName("CLIENT_HAS_TOO_MANY_MANAGERS")] ClientHasTooManyManagers = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientLinkResourceNames.g.cs deleted file mode 100755 index 4104aee7a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkResourceNames.g.cs +++ /dev/null @@ -1,317 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerClientLink resource. - public sealed partial class CustomerClientLinkName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}. - /// - CustomerClientCustomerManagerLink = 1, - } - - private static gax::PathTemplate s_customerClientCustomerManagerLink = new gax::PathTemplate("customers/{customer_id}/customerClientLinks/{client_customer_id_manager_link_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerClientLinkName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerClientLinkName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerClientLinkName FromCustomerClientCustomerManagerLink(string customerId, string clientCustomerId, string managerLinkId) => - new CustomerClientLinkName(ResourceNameType.CustomerClientCustomerManagerLink, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), clientCustomerId: gax::GaxPreconditions.CheckNotNullOrEmpty(clientCustomerId, nameof(clientCustomerId)), managerLinkId: gax::GaxPreconditions.CheckNotNullOrEmpty(managerLinkId, nameof(managerLinkId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}. - /// - public static string Format(string customerId, string clientCustomerId, string managerLinkId) => - FormatCustomerClientCustomerManagerLink(customerId, clientCustomerId, managerLinkId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}. - /// - public static string FormatCustomerClientCustomerManagerLink(string customerId, string clientCustomerId, string managerLinkId) => - s_customerClientCustomerManagerLink.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(clientCustomerId, nameof(clientCustomerId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(managerLinkId, nameof(managerLinkId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerClientLinkName Parse(string customerClientLinkName) => Parse(customerClientLinkName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerClientLinkName Parse(string customerClientLinkName, bool allowUnparsed) => - TryParse(customerClientLinkName, allowUnparsed, out CustomerClientLinkName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerClientLinkName, out CustomerClientLinkName result) => - TryParse(customerClientLinkName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerClientLinkName, bool allowUnparsed, out CustomerClientLinkName result) - { - gax::GaxPreconditions.CheckNotNull(customerClientLinkName, nameof(customerClientLinkName)); - gax::TemplatedResourceName resourceName; - if (s_customerClientCustomerManagerLink.TryParseName(customerClientLinkName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerClientCustomerManagerLink(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerClientLinkName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CustomerClientLinkName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clientCustomerId = null, string customerId = null, string managerLinkId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ClientCustomerId = clientCustomerId; - CustomerId = customerId; - ManagerLinkId = managerLinkId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id} - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - public CustomerClientLinkName(string customerId, string clientCustomerId, string managerLinkId) : this(ResourceNameType.CustomerClientCustomerManagerLink, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), clientCustomerId: gax::GaxPreconditions.CheckNotNullOrEmpty(clientCustomerId, nameof(clientCustomerId)), managerLinkId: gax::GaxPreconditions.CheckNotNullOrEmpty(managerLinkId, nameof(managerLinkId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ClientCustomer ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ClientCustomerId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ManagerLink ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string ManagerLinkId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerClientCustomerManagerLink: return s_customerClientCustomerManagerLink.Expand(CustomerId, $"{ClientCustomerId}~{ManagerLinkId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerClientLinkName); - - /// - public bool Equals(CustomerClientLinkName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerClientLinkName a, CustomerClientLinkName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerClientLinkName a, CustomerClientLinkName b) => !(a == b); - } - - public partial class CustomerClientLink - { - /// - /// -typed view over the resource name property. - /// - internal CustomerClientLinkName ResourceNameAsCustomerClientLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerClientLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName ClientCustomerAsCustomerName - { - get => string.IsNullOrEmpty(ClientCustomer) ? null : CustomerName.Parse(ClientCustomer, allowUnparsed: true); - set => ClientCustomer = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientLinkService.g.cs deleted file mode 100755 index 221567dbb..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkService.g.cs +++ /dev/null @@ -1,1107 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_client_link_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_client_link_service.proto - public static partial class CustomerClientLinkServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_client_link_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerClientLinkServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "Y2xpZW50X2xpbmtfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL2N1c3RvbWVyX2NsaWVudF9saW5rLnByb3RvGhxnb29nbGUvYXBp", - "L2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxof", - "Z29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9y", - "ZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJv", - "dG8iqgEKH011dGF0ZUN1c3RvbWVyQ2xpZW50TGlua1JlcXVlc3QSGAoLY3Vz", - "dG9tZXJfaWQYASABKAlCA+BBAhJWCglvcGVyYXRpb24YAiABKAsyPi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3VzdG9tZXJDbGllbnRM", - "aW5rT3BlcmF0aW9uQgPgQQISFQoNdmFsaWRhdGVfb25seRgDIAEoCCLvAQob", - "Q3VzdG9tZXJDbGllbnRMaW5rT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQg", - "ASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJICgZjcmVhdGUYASAB", - "KAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkN1c3Rv", - "bWVyQ2xpZW50TGlua0gAEkgKBnVwZGF0ZRgCIAEoCzI2Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXJDbGllbnRMaW5rSABC", - "CwoJb3BlcmF0aW9uInUKIE11dGF0ZUN1c3RvbWVyQ2xpZW50TGlua1Jlc3Bv", - "bnNlElEKBnJlc3VsdBgBIAEoCzJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckNsaWVudExpbmtSZXN1bHQiaQoe", - "TXV0YXRlQ3VzdG9tZXJDbGllbnRMaW5rUmVzdWx0EkcKDXJlc291cmNlX25h", - "bWUYASABKAlCMPpBLQorZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3Rv", - "bWVyQ2xpZW50TGluazLmAgoZQ3VzdG9tZXJDbGllbnRMaW5rU2VydmljZRKB", - "AgoYTXV0YXRlQ3VzdG9tZXJDbGllbnRMaW5rEkIuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyQ2xpZW50TGlua1Jl", - "cXVlc3QaQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0", - "YXRlQ3VzdG9tZXJDbGllbnRMaW5rUmVzcG9uc2UiXILT5JMCPiI5L3YxMi9j", - "dXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2N1c3RvbWVyQ2xpZW50TGlua3M6", - "bXV0YXRlOgEq2kEVY3VzdG9tZXJfaWQsb3BlcmF0aW9uGkXKQRhnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNv", - "bS9hdXRoL2Fkd29yZHNCigIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXNCHkN1c3RvbWVyQ2xpZW50TGlua1NlcnZpY2VQcm90b1AB", - "Wklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLinkReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest.Parser, new[]{ "CustomerId", "Operation", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkOperation.Parser, new[]{ "UpdateMask", "Create", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v12.services.CustomerClientLinkService.MutateCustomerClientLink]. - /// - public sealed partial class MutateCustomerClientLinkRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerClientLinkRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkRequest(MutateCustomerClientLinkRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkRequest Clone() { - return new MutateCustomerClientLinkRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer link are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkOperation operation_; - /// - /// Required. The operation to perform on the individual CustomerClientLink. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerClientLinkRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerClientLinkRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerClientLinkRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkOperation(); - } - Operation.MergeFrom(other.Operation); - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkOperation(); - } - input.ReadMessage(Operation); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkOperation(); - } - input.ReadMessage(Operation); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update) on a CustomerClientLink. - /// - public sealed partial class CustomerClientLinkOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerClientLinkOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLinkOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLinkOperation(CustomerClientLinkOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerClientLinkOperation Clone() { - return new CustomerClientLinkOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The link is expected to have a valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerClientLinkOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerClientLinkOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerClientLinkOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a CustomerClientLink mutate. - /// - public sealed partial class MutateCustomerClientLinkResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerClientLinkResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkResponse(MutateCustomerClientLinkResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkResponse Clone() { - return new MutateCustomerClientLinkResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResult result_; - /// - /// A result that identifies the resource affected by the mutate request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResult Result { - get { return result_; } - set { - result_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerClientLinkResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerClientLinkResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerClientLinkResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResult(); - } - Result.MergeFrom(other.Result); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResult(); - } - input.ReadMessage(Result); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResult(); - } - input.ReadMessage(Result); - break; - } - } - } - } - #endif - - } - - /// - /// The result for a single customer client link mutate. - /// - public sealed partial class MutateCustomerClientLinkResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerClientLinkResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkResult(MutateCustomerClientLinkResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerClientLinkResult Clone() { - return new MutateCustomerClientLinkResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerClientLinkResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerClientLinkResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerClientLinkResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceClient.g.cs deleted file mode 100755 index f27fe4b7c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceClient.g.cs +++ /dev/null @@ -1,472 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerClientLinkServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerClientLinkServiceSettings GetDefault() => new CustomerClientLinkServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerClientLinkServiceSettings() - { - } - - private CustomerClientLinkServiceSettings(CustomerClientLinkServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerClientLinkSettings = existing.MutateCustomerClientLinkSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerClientLinkServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerClientLinkServiceClient.MutateCustomerClientLink and - /// CustomerClientLinkServiceClient.MutateCustomerClientLinkAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerClientLinkSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerClientLinkServiceSettings Clone() => new CustomerClientLinkServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerClientLinkServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerClientLinkServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerClientLinkServiceClientBuilder() : base(CustomerClientLinkServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerClientLinkServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerClientLinkServiceClient Build() - { - CustomerClientLinkServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerClientLinkServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerClientLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerClientLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerClientLinkServiceClient.ChannelPool; - } - - /// CustomerClientLinkService client wrapper, for convenient use. - /// - /// Service to manage customer client links. - /// - public abstract partial class CustomerClientLinkServiceClient - { - /// - /// The default endpoint for the CustomerClientLinkService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerClientLinkService scopes. - /// - /// The default CustomerClientLinkService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerClientLinkService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerClientLinkServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerClientLinkServiceClient Create() => new CustomerClientLinkServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerClientLinkServiceClient Create(grpccore::CallInvoker callInvoker, CustomerClientLinkServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerClientLinkService.CustomerClientLinkServiceClient grpcClient = new CustomerClientLinkService.CustomerClientLinkServiceClient(callInvoker); - return new CustomerClientLinkServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerClientLinkService client - public virtual CustomerClientLinkService.CustomerClientLinkServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerClientLinkResponse MutateCustomerClientLink(MutateCustomerClientLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerClientLinkAsync(MutateCustomerClientLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerClientLinkAsync(MutateCustomerClientLinkRequest request, st::CancellationToken cancellationToken) => - MutateCustomerClientLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer link are being modified. - /// - /// - /// Required. The operation to perform on the individual CustomerClientLink. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerClientLinkResponse MutateCustomerClientLink(string customerId, CustomerClientLinkOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerClientLink(new MutateCustomerClientLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer link are being modified. - /// - /// - /// Required. The operation to perform on the individual CustomerClientLink. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerClientLinkAsync(string customerId, CustomerClientLinkOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerClientLinkAsync(new MutateCustomerClientLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer link are being modified. - /// - /// - /// Required. The operation to perform on the individual CustomerClientLink. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerClientLinkAsync(string customerId, CustomerClientLinkOperation operation, st::CancellationToken cancellationToken) => - MutateCustomerClientLinkAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerClientLinkService client wrapper implementation, for convenient use. - /// - /// Service to manage customer client links. - /// - public sealed partial class CustomerClientLinkServiceClientImpl : CustomerClientLinkServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerClientLink; - - /// - /// Constructs a client wrapper for the CustomerClientLinkService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerClientLinkServiceClientImpl(CustomerClientLinkService.CustomerClientLinkServiceClient grpcClient, CustomerClientLinkServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerClientLinkServiceSettings effectiveSettings = settings ?? CustomerClientLinkServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerClientLink = clientHelper.BuildApiCall("MutateCustomerClientLink", grpcClient.MutateCustomerClientLinkAsync, grpcClient.MutateCustomerClientLink, effectiveSettings.MutateCustomerClientLinkSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerClientLink); - Modify_MutateCustomerClientLinkApiCall(ref _callMutateCustomerClientLink); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerClientLinkApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerClientLinkService.CustomerClientLinkServiceClient grpcClient, CustomerClientLinkServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerClientLinkService client - public override CustomerClientLinkService.CustomerClientLinkServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerClientLinkRequest(ref MutateCustomerClientLinkRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerClientLinkResponse MutateCustomerClientLink(MutateCustomerClientLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerClientLinkRequest(ref request, ref callSettings); - return _callMutateCustomerClientLink.Sync(request, callSettings); - } - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerClientLinkAsync(MutateCustomerClientLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerClientLinkRequest(ref request, ref callSettings); - return _callMutateCustomerClientLink.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceGrpc.g.cs deleted file mode 100755 index cf46f9c8c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceGrpc.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_client_link_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer client links. - /// - public static partial class CustomerClientLinkService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerClientLinkService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerClientLinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerClientLinkResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerClientLink = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerClientLink", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerClientLinkRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerClientLinkResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerClientLinkServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerClientLinkService - [grpc::BindServiceMethod(typeof(CustomerClientLinkService), "BindService")] - public abstract partial class CustomerClientLinkServiceBase - { - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerClientLink(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerClientLinkService - public partial class CustomerClientLinkServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerClientLinkService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerClientLinkServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerClientLinkService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerClientLinkServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerClientLinkServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerClientLinkServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResponse MutateCustomerClientLink(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerClientLink(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkResponse MutateCustomerClientLink(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerClientLink, null, options, request); - } - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerClientLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerClientLinkAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or updates a customer client link. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerClientLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerClientLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerClientLink, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerClientLinkServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerClientLinkServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerClientLinkServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerClientLink, serviceImpl.MutateCustomerClientLink).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerClientLinkServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerClientLink, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerClientLink)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceResourceNames.g.cs deleted file mode 100755 index 3fae3c5a4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientLinkServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateCustomerClientLinkResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerClientLinkName ResourceNameAsCustomerClientLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerClientLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerClientResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerClientResourceNames.g.cs deleted file mode 100755 index 529683474..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerClientResourceNames.g.cs +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerClient resource. - public sealed partial class CustomerClientName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerClients/{client_customer_id}. - /// - CustomerClientCustomer = 1, - } - - private static gax::PathTemplate s_customerClientCustomer = new gax::PathTemplate("customers/{customer_id}/customerClients/{client_customer_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerClientName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerClientName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerClients/{client_customer_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerClientName FromCustomerClientCustomer(string customerId, string clientCustomerId) => - new CustomerClientName(ResourceNameType.CustomerClientCustomer, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), clientCustomerId: gax::GaxPreconditions.CheckNotNullOrEmpty(clientCustomerId, nameof(clientCustomerId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerClients/{client_customer_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerClients/{client_customer_id}. - /// - public static string Format(string customerId, string clientCustomerId) => - FormatCustomerClientCustomer(customerId, clientCustomerId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerClients/{client_customer_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerClients/{client_customer_id}. - /// - public static string FormatCustomerClientCustomer(string customerId, string clientCustomerId) => - s_customerClientCustomer.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clientCustomerId, nameof(clientCustomerId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerClients/{client_customer_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerClientName Parse(string customerClientName) => Parse(customerClientName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerClients/{client_customer_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerClientName Parse(string customerClientName, bool allowUnparsed) => - TryParse(customerClientName, allowUnparsed, out CustomerClientName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerClients/{client_customer_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerClientName, out CustomerClientName result) => - TryParse(customerClientName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerClients/{client_customer_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerClientName, bool allowUnparsed, out CustomerClientName result) - { - gax::GaxPreconditions.CheckNotNull(customerClientName, nameof(customerClientName)); - gax::TemplatedResourceName resourceName; - if (s_customerClientCustomer.TryParseName(customerClientName, out resourceName)) - { - result = FromCustomerClientCustomer(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerClientName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerClientName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clientCustomerId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ClientCustomerId = clientCustomerId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/customerClients/{client_customer_id} - /// - /// The Customer ID. Must not be null or empty. - /// The ClientCustomer ID. Must not be null or empty. - public CustomerClientName(string customerId, string clientCustomerId) : this(ResourceNameType.CustomerClientCustomer, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), clientCustomerId: gax::GaxPreconditions.CheckNotNullOrEmpty(clientCustomerId, nameof(clientCustomerId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ClientCustomer ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ClientCustomerId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerClientCustomer: return s_customerClientCustomer.Expand(CustomerId, ClientCustomerId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerClientName); - - /// - public bool Equals(CustomerClientName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerClientName a, CustomerClientName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerClientName a, CustomerClientName b) => !(a == b); - } - - public partial class CustomerClient - { - /// - /// -typed view over the resource name property. - /// - internal CustomerClientName ResourceNameAsCustomerClientName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerClientName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName ClientCustomerAsCustomerName - { - get => string.IsNullOrEmpty(ClientCustomer) ? null : CustomerName.Parse(ClientCustomer, allowUnparsed: true); - set => ClientCustomer = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList AppliedLabelsAsLabelNames - { - get => new gax::ResourceNameList(AppliedLabels, s => string.IsNullOrEmpty(s) ? null : LabelName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoal.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerConversionGoal.g.cs deleted file mode 100755 index 0071e14ba..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoal.g.cs +++ /dev/null @@ -1,386 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_conversion_goal.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_conversion_goal.proto - public static partial class CustomerConversionGoalReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_conversion_goal.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerConversionGoalReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2NvbnZlcnNpb25fZ29hbC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnJlc291cmNlcxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2NvbnZlcnNpb25fYWN0aW9uX2NhdGVnb3J5LnByb3RvGjZnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl9vcmlnaW4ucHJvdG8a", - "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkv", - "cmVzb3VyY2UucHJvdG8itQMKFkN1c3RvbWVyQ29udmVyc2lvbkdvYWwSTgoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUI34EEF+kExCi9nb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vQ3VzdG9tZXJDb252ZXJzaW9uR29hbBJnCghjYXRlZ29yeRgC", - "IAEoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Db252ZXJz", - "aW9uQWN0aW9uQ2F0ZWdvcnlFbnVtLkNvbnZlcnNpb25BY3Rpb25DYXRlZ29y", - "eRJVCgZvcmlnaW4YAyABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuQ29udmVyc2lvbk9yaWdpbkVudW0uQ29udmVyc2lvbk9yaWdpbhIQ", - "CghiaWRkYWJsZRgEIAEoCDp56kF2Ci9nb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b20vQ3VzdG9tZXJDb252ZXJzaW9uR29hbBJDY3VzdG9tZXJzL3tjdXN0b21l", - "cl9pZH0vY3VzdG9tZXJDb252ZXJzaW9uR29hbHMve2NhdGVnb3J5fX57c291", - "cmNlfUKNAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXNCG0N1c3RvbWVyQ29udmVyc2lvbkdvYWxQcm90b1ABWktnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVz", - "b3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal), global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal.Parser, new[]{ "ResourceName", "Category", "Origin", "Biddable" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Biddability control for conversion actions with a matching category and - /// origin. - /// - public sealed partial class CustomerConversionGoal : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerConversionGoal()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoalReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerConversionGoal() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerConversionGoal(CustomerConversionGoal other) : this() { - resourceName_ = other.resourceName_; - category_ = other.category_; - origin_ = other.origin_; - biddable_ = other.biddable_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerConversionGoal Clone() { - return new CustomerConversionGoal(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer conversion goal. - /// Customer conversion goal resource names have the form: - /// - /// `customers/{customer_id}/customerConversionGoals/{category}~{origin}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory category_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified; - /// - /// The conversion category of this customer conversion goal. Only - /// conversion actions that have this category will be included in this goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory Category { - get { return category_; } - set { - category_ = value; - } - } - - /// Field number for the "origin" field. - public const int OriginFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin origin_ = global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified; - /// - /// The conversion origin of this customer conversion goal. Only - /// conversion actions that have this conversion origin will be included in - /// this goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin Origin { - get { return origin_; } - set { - origin_ = value; - } - } - - /// Field number for the "biddable" field. - public const int BiddableFieldNumber = 4; - private bool biddable_; - /// - /// The biddability of the customer conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Biddable { - get { return biddable_; } - set { - biddable_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerConversionGoal); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerConversionGoal other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Category != other.Category) return false; - if (Origin != other.Origin) return false; - if (Biddable != other.Biddable) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) hash ^= Category.GetHashCode(); - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) hash ^= Origin.GetHashCode(); - if (Biddable != false) hash ^= Biddable.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Category); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Origin); - } - if (Biddable != false) { - output.WriteRawTag(32); - output.WriteBool(Biddable); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Category); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Origin); - } - if (Biddable != false) { - output.WriteRawTag(32); - output.WriteBool(Biddable); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); - } - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Origin); - } - if (Biddable != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerConversionGoal other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Category != global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) { - Category = other.Category; - } - if (other.Origin != global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin.Unspecified) { - Origin = other.Origin; - } - if (other.Biddable != false) { - Biddable = other.Biddable; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) input.ReadEnum(); - break; - } - case 24: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin) input.ReadEnum(); - break; - } - case 32: { - Biddable = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory) input.ReadEnum(); - break; - } - case 24: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.ConversionOriginEnum.Types.ConversionOrigin) input.ReadEnum(); - break; - } - case 32: { - Biddable = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalResourceNames.g.cs deleted file mode 100755 index 5b5b1f17a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalResourceNames.g.cs +++ /dev/null @@ -1,304 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerConversionGoal resource. - public sealed partial class CustomerConversionGoalName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerConversionGoals/{category}~{source}. - /// - CustomerCategorySource = 1, - } - - private static gax::PathTemplate s_customerCategorySource = new gax::PathTemplate("customers/{customer_id}/customerConversionGoals/{category_source}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerConversionGoalName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerConversionGoalName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerConversionGoals/{category}~{source}. - /// - /// The Customer ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CustomerConversionGoalName FromCustomerCategorySource(string customerId, string categoryId, string sourceId) => - new CustomerConversionGoalName(ResourceNameType.CustomerCategorySource, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), categoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(categoryId, nameof(categoryId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerConversionGoals/{category}~{source}. - /// - /// The Customer ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerConversionGoals/{category}~{source}. - /// - public static string Format(string customerId, string categoryId, string sourceId) => - FormatCustomerCategorySource(customerId, categoryId, sourceId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerConversionGoals/{category}~{source}. - /// - /// The Customer ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerConversionGoals/{category}~{source}. - /// - public static string FormatCustomerCategorySource(string customerId, string categoryId, string sourceId) => - s_customerCategorySource.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(categoryId, nameof(categoryId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerConversionGoals/{category}~{source} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerConversionGoalName Parse(string customerConversionGoalName) => - Parse(customerConversionGoalName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerConversionGoals/{category}~{source} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerConversionGoalName Parse(string customerConversionGoalName, bool allowUnparsed) => - TryParse(customerConversionGoalName, allowUnparsed, out CustomerConversionGoalName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerConversionGoals/{category}~{source} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerConversionGoalName, out CustomerConversionGoalName result) => - TryParse(customerConversionGoalName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerConversionGoals/{category}~{source} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerConversionGoalName, bool allowUnparsed, out CustomerConversionGoalName result) - { - gax::GaxPreconditions.CheckNotNull(customerConversionGoalName, nameof(customerConversionGoalName)); - gax::TemplatedResourceName resourceName; - if (s_customerCategorySource.TryParseName(customerConversionGoalName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCategorySource(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerConversionGoalName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CustomerConversionGoalName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string categoryId = null, string customerId = null, string sourceId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CategoryId = categoryId; - CustomerId = customerId; - SourceId = sourceId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customerConversionGoals/{category}~{source} - /// - /// The Customer ID. Must not be null or empty. - /// The Category ID. Must not be null or empty. - /// The Source ID. Must not be null or empty. - public CustomerConversionGoalName(string customerId, string categoryId, string sourceId) : this(ResourceNameType.CustomerCategorySource, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), categoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(categoryId, nameof(categoryId)), sourceId: gax::GaxPreconditions.CheckNotNullOrEmpty(sourceId, nameof(sourceId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Category ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CategoryId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Source ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string SourceId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCategorySource: return s_customerCategorySource.Expand(CustomerId, $"{CategoryId}~{SourceId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerConversionGoalName); - - /// - public bool Equals(CustomerConversionGoalName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerConversionGoalName a, CustomerConversionGoalName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerConversionGoalName a, CustomerConversionGoalName b) => !(a == b); - } - - public partial class CustomerConversionGoal - { - /// - /// -typed view over the resource name - /// property. - /// - internal CustomerConversionGoalName ResourceNameAsCustomerConversionGoalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerConversionGoalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalService.g.cs deleted file mode 100755 index a897d895b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalService.g.cs +++ /dev/null @@ -1,1013 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_conversion_goal_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_conversion_goal_service.proto - public static partial class CustomerConversionGoalServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_conversion_goal_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerConversionGoalServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "Y29udmVyc2lvbl9nb2FsX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcxpBZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9jdXN0b21lcl9jb252ZXJzaW9uX2dvYWwucHJvdG8aHGdv", - "b2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50", - "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRf", - "bWFzay5wcm90byK0AQokTXV0YXRlQ3VzdG9tZXJDb252ZXJzaW9uR29hbHNS", - "ZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISWwoKb3BlcmF0aW9u", - "cxgCIAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5D", - "dXN0b21lckNvbnZlcnNpb25Hb2FsT3BlcmF0aW9uQgPgQQISFQoNdmFsaWRh", - "dGVfb25seRgDIAEoCCKtAQofQ3VzdG9tZXJDb252ZXJzaW9uR29hbE9wZXJh", - "dGlvbhIvCgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5G", - "aWVsZE1hc2sSTAoGdXBkYXRlGAEgASgLMjouZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5DdXN0b21lckNvbnZlcnNpb25Hb2FsSABCCwoJ", - "b3BlcmF0aW9uIn8KJU11dGF0ZUN1c3RvbWVyQ29udmVyc2lvbkdvYWxzUmVz", - "cG9uc2USVgoHcmVzdWx0cxgBIAMoCzJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckNvbnZlcnNpb25Hb2FsUmVz", - "dWx0InEKIk11dGF0ZUN1c3RvbWVyQ29udmVyc2lvbkdvYWxSZXN1bHQSSwoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUI0+kExCi9nb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ3VzdG9tZXJDb252ZXJzaW9uR29hbDL+AgodQ3VzdG9tZXJDb252", - "ZXJzaW9uR29hbFNlcnZpY2USlQIKHU11dGF0ZUN1c3RvbWVyQ29udmVyc2lv", - "bkdvYWxzEkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUN1c3RvbWVyQ29udmVyc2lvbkdvYWxzUmVxdWVzdBpILmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckNvbnZl", - "cnNpb25Hb2Fsc1Jlc3BvbnNlImGC0+STAkIiPS92MTIvY3VzdG9tZXJzL3tj", - "dXN0b21lcl9pZD0qfS9jdXN0b21lckNvbnZlcnNpb25Hb2FsczptdXRhdGU6", - "ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRo", - "L2Fkd29yZHNCjgIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXNCIkN1c3RvbWVyQ29udmVyc2lvbkdvYWxTZXJ2aWNlUHJvdG9QAVpJ", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoalReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation.Parser, new[]{ "UpdateMask", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CustomerConversionGoalService.MutateCustomerConversionGoals][google.ads.googleads.v12.services.CustomerConversionGoalService.MutateCustomerConversionGoals]. - /// - public sealed partial class MutateCustomerConversionGoalsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerConversionGoalsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalsRequest(MutateCustomerConversionGoalsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalsRequest Clone() { - return new MutateCustomerConversionGoalsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer conversion goals are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customer conversion goal. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerConversionGoalsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerConversionGoalsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerConversionGoalsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (update) on a customer conversion goal. - /// - public sealed partial class CustomerConversionGoalOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerConversionGoalOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerConversionGoalOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerConversionGoalOperation(CustomerConversionGoalOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerConversionGoalOperation Clone() { - return new CustomerConversionGoalOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 1; - /// - /// Update operation: The customer conversion goal is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Update = 1, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerConversionGoalOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerConversionGoalOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerConversionGoalOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a customer conversion goal mutate. - /// - public sealed partial class MutateCustomerConversionGoalsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerConversionGoalsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalsResponse(MutateCustomerConversionGoalsResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalsResponse Clone() { - return new MutateCustomerConversionGoalsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerConversionGoalsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerConversionGoalsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerConversionGoalsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer conversion goal mutate. - /// - public sealed partial class MutateCustomerConversionGoalResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerConversionGoalResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalResult(MutateCustomerConversionGoalResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerConversionGoalResult Clone() { - return new MutateCustomerConversionGoalResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerConversionGoalResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerConversionGoalResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerConversionGoalResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceClient.g.cs deleted file mode 100755 index 57d89c5a3..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceClient.g.cs +++ /dev/null @@ -1,375 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerConversionGoalServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerConversionGoalServiceSettings GetDefault() => new CustomerConversionGoalServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerConversionGoalServiceSettings() - { - } - - private CustomerConversionGoalServiceSettings(CustomerConversionGoalServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerConversionGoalsSettings = existing.MutateCustomerConversionGoalsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerConversionGoalServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerConversionGoalServiceClient.MutateCustomerConversionGoals and - /// CustomerConversionGoalServiceClient.MutateCustomerConversionGoalsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerConversionGoalsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerConversionGoalServiceSettings Clone() => new CustomerConversionGoalServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class CustomerConversionGoalServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerConversionGoalServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerConversionGoalServiceClientBuilder() : base(CustomerConversionGoalServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerConversionGoalServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerConversionGoalServiceClient Build() - { - CustomerConversionGoalServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerConversionGoalServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerConversionGoalServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerConversionGoalServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerConversionGoalServiceClient.ChannelPool; - } - - /// CustomerConversionGoalService client wrapper, for convenient use. - /// - /// Service to manage customer conversion goal. - /// - public abstract partial class CustomerConversionGoalServiceClient - { - /// - /// The default endpoint for the CustomerConversionGoalService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerConversionGoalService scopes. - /// - /// The default CustomerConversionGoalService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerConversionGoalService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerConversionGoalServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerConversionGoalServiceClient Create() => - new CustomerConversionGoalServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerConversionGoalServiceClient Create(grpccore::CallInvoker callInvoker, CustomerConversionGoalServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerConversionGoalService.CustomerConversionGoalServiceClient grpcClient = new CustomerConversionGoalService.CustomerConversionGoalServiceClient(callInvoker); - return new CustomerConversionGoalServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerConversionGoalService client - public virtual CustomerConversionGoalService.CustomerConversionGoalServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerConversionGoalsResponse MutateCustomerConversionGoals(MutateCustomerConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerConversionGoalsAsync(MutateCustomerConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerConversionGoalsAsync(MutateCustomerConversionGoalsRequest request, st::CancellationToken cancellationToken) => - MutateCustomerConversionGoalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose customer conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer conversion goal. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerConversionGoalsResponse MutateCustomerConversionGoals(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerConversionGoals(new MutateCustomerConversionGoalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose customer conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer conversion goal. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerConversionGoalsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerConversionGoalsAsync(new MutateCustomerConversionGoalsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// - /// Required. The ID of the customer whose customer conversion goals are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer conversion goal. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerConversionGoalsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerConversionGoalsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerConversionGoalService client wrapper implementation, for convenient use. - /// - /// Service to manage customer conversion goal. - /// - public sealed partial class CustomerConversionGoalServiceClientImpl : CustomerConversionGoalServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerConversionGoals; - - /// - /// Constructs a client wrapper for the CustomerConversionGoalService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerConversionGoalServiceClientImpl(CustomerConversionGoalService.CustomerConversionGoalServiceClient grpcClient, CustomerConversionGoalServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerConversionGoalServiceSettings effectiveSettings = settings ?? CustomerConversionGoalServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerConversionGoals = clientHelper.BuildApiCall("MutateCustomerConversionGoals", grpcClient.MutateCustomerConversionGoalsAsync, grpcClient.MutateCustomerConversionGoals, effectiveSettings.MutateCustomerConversionGoalsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerConversionGoals); - Modify_MutateCustomerConversionGoalsApiCall(ref _callMutateCustomerConversionGoals); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerConversionGoalsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerConversionGoalService.CustomerConversionGoalServiceClient grpcClient, CustomerConversionGoalServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerConversionGoalService client - public override CustomerConversionGoalService.CustomerConversionGoalServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerConversionGoalsRequest(ref MutateCustomerConversionGoalsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerConversionGoalsResponse MutateCustomerConversionGoals(MutateCustomerConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerConversionGoalsRequest(ref request, ref callSettings); - return _callMutateCustomerConversionGoals.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerConversionGoalsAsync(MutateCustomerConversionGoalsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerConversionGoalsRequest(ref request, ref callSettings); - return _callMutateCustomerConversionGoals.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceGrpc.g.cs deleted file mode 100755 index ea9e07946..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_conversion_goal_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer conversion goal. - /// - public static partial class CustomerConversionGoalService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerConversionGoalService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerConversionGoalsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerConversionGoalsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerConversionGoals = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerConversionGoals", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerConversionGoalsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerConversionGoalsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerConversionGoalService - [grpc::BindServiceMethod(typeof(CustomerConversionGoalService), "BindService")] - public abstract partial class CustomerConversionGoalServiceBase - { - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerConversionGoalService - public partial class CustomerConversionGoalServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerConversionGoalService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerConversionGoalServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerConversionGoalService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerConversionGoalServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerConversionGoalServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerConversionGoalServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsResponse MutateCustomerConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerConversionGoals(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsResponse MutateCustomerConversionGoals(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerConversionGoals, null, options, request); - } - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerConversionGoalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerConversionGoalsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes customer conversion goals. Operation statuses - /// are returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerConversionGoalsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerConversionGoals, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerConversionGoalServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerConversionGoalServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerConversionGoalServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerConversionGoals, serviceImpl.MutateCustomerConversionGoals).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerConversionGoalServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerConversionGoals, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerConversionGoals)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceResourceNames.g.cs deleted file mode 100755 index 1d37bb5b2..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerConversionGoalServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MutateCustomerConversionGoalResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerConversionGoalName ResourceNameAsCustomerConversionGoalName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerConversionGoalName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerCustomizer.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerCustomizer.g.cs deleted file mode 100755 index e700298a1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerCustomizer.g.cs +++ /dev/null @@ -1,393 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_customizer.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_customizer.proto - public static partial class CustomerCustomizerReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_customizer.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerCustomizerReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2N1c3RvbWl6ZXIucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3Vz", - "dG9taXplcl92YWx1ZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2N1c3RvbWl6ZXJfdmFsdWVfc3RhdHVzLnByb3RvGh9nb29nbGUv", - "YXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNl", - "LnByb3RvItwDChJDdXN0b21lckN1c3RvbWl6ZXISSgoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUIz4EEF+kEtCitnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3Vz", - "dG9tZXJDdXN0b21pemVyElUKFGN1c3RvbWl6ZXJfYXR0cmlidXRlGAIgASgJ", - "QjfgQQLgQQX6QS4KLGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21p", - "emVyQXR0cmlidXRlEmQKBnN0YXR1cxgDIAEoDjJPLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtcy5DdXN0b21pemVyVmFsdWVTdGF0dXNFbnVtLkN1", - "c3RvbWl6ZXJWYWx1ZVN0YXR1c0ID4EEDEkQKBXZhbHVlGAQgASgLMjAuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5DdXN0b21pemVyVmFsdWVC", - "A+BBAjp36kF0Citnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJD", - "dXN0b21pemVyEkVjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9jdXN0b21lckN1", - "c3RvbWl6ZXJzL3tjdXN0b21pemVyX2F0dHJpYnV0ZV9pZH1CiQIKJmNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhdDdXN0b21lckN1", - "c3RvbWl6ZXJQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJj", - "ZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2Vz", - "ygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CustomizerValueReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer), global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer.Parser, new[]{ "ResourceName", "CustomizerAttribute", "Status", "Value" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customizer value for the associated CustomizerAttribute at the Customer - /// level. - /// - public sealed partial class CustomerCustomizer : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerCustomizer()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizerReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizer() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizer(CustomerCustomizer other) : this() { - resourceName_ = other.resourceName_; - customizerAttribute_ = other.customizerAttribute_; - status_ = other.status_; - value_ = other.value_ != null ? other.value_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizer Clone() { - return new CustomerCustomizer(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer customizer. - /// Customer customizer resource names have the form: - /// - /// `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customizer_attribute" field. - public const int CustomizerAttributeFieldNumber = 2; - private string customizerAttribute_ = ""; - /// - /// Required. Immutable. The customizer attribute which is linked to the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomizerAttribute { - get { return customizerAttribute_; } - set { - customizerAttribute_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified; - /// - /// Output only. The status of the customer customizer attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.CustomizerValue value_; - /// - /// Required. The value to associate with the customizer attribute at this level. The - /// value must be of the type specified for the CustomizerAttribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CustomizerValue Value { - get { return value_; } - set { - value_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerCustomizer); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerCustomizer other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (CustomizerAttribute != other.CustomizerAttribute) return false; - if (Status != other.Status) return false; - if (!object.Equals(Value, other.Value)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (CustomizerAttribute.Length != 0) hash ^= CustomizerAttribute.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) hash ^= Status.GetHashCode(); - if (value_ != null) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CustomizerAttribute.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Status); - } - if (value_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (CustomizerAttribute.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomizerAttribute); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (value_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerCustomizer other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.CustomizerAttribute.Length != 0) { - CustomizerAttribute = other.CustomizerAttribute; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus.Unspecified) { - Status = other.Status; - } - if (other.value_ != null) { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - Value.MergeFrom(other.Value); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CustomizerAttribute = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 34: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CustomizerAttribute = input.ReadString(); - break; - } - case 24: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) input.ReadEnum(); - break; - } - case 34: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Common.CustomizerValue(); - } - input.ReadMessage(Value); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerCustomizerError.g.cs deleted file mode 100755 index ed45cac77..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerError.g.cs +++ /dev/null @@ -1,228 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/customer_customizer_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/customer_customizer_error.proto - public static partial class CustomerCustomizerErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/customer_customizer_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerCustomizerErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWVyX2N1", - "c3RvbWl6ZXJfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMiVgobQ3VzdG9tZXJDdXN0b21pemVyRXJyb3JFbnVtIjcKF0N1", - "c3RvbWVyQ3VzdG9taXplckVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5L", - "Tk9XThABQvwBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "c0IcQ3VzdG9tZXJDdXN0b21pemVyRXJyb3JQcm90b1ABWkVnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oC", - "I0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorEnum.Types.CustomerCustomizerError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible customer customizer errors. - /// - public sealed partial class CustomerCustomizerErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerCustomizerErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizerErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizerErrorEnum(CustomerCustomizerErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizerErrorEnum Clone() { - return new CustomerCustomizerErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerCustomizerErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerCustomizerErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerCustomizerErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerCustomizerErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible customer customizer errors. - /// - public enum CustomerCustomizerError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerCustomizerResourceNames.g.cs deleted file mode 100755 index 41d7c56b7..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerResourceNames.g.cs +++ /dev/null @@ -1,285 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerCustomizer resource. - public sealed partial class CustomerCustomizerName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerCustomizers/{customizer_attribute_id} - /// . - /// - CustomerCustomizerAttribute = 1, - } - - private static gax::PathTemplate s_customerCustomizerAttribute = new gax::PathTemplate("customers/{customer_id}/customerCustomizers/{customizer_attribute_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerCustomizerName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerCustomizerName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - public static CustomerCustomizerName FromCustomerCustomizerAttribute(string customerId, string customizerAttributeId) => - new CustomerCustomizerName(ResourceNameType.CustomerCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id}. - /// - public static string Format(string customerId, string customizerAttributeId) => - FormatCustomerCustomizerAttribute(customerId, customizerAttributeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id}. - /// - public static string FormatCustomerCustomizerAttribute(string customerId, string customizerAttributeId) => - s_customerCustomizerAttribute.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerCustomizerName Parse(string customerCustomizerName) => Parse(customerCustomizerName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerCustomizerName Parse(string customerCustomizerName, bool allowUnparsed) => - TryParse(customerCustomizerName, allowUnparsed, out CustomerCustomizerName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerCustomizerName, out CustomerCustomizerName result) => - TryParse(customerCustomizerName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerCustomizers/{customizer_attribute_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerCustomizerName, bool allowUnparsed, out CustomerCustomizerName result) - { - gax::GaxPreconditions.CheckNotNull(customerCustomizerName, nameof(customerCustomizerName)); - gax::TemplatedResourceName resourceName; - if (s_customerCustomizerAttribute.TryParseName(customerCustomizerName, out resourceName)) - { - result = FromCustomerCustomizerAttribute(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerCustomizerName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerCustomizerName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string customizerAttributeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - CustomizerAttributeId = customizerAttributeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customerCustomizers/{customizer_attribute_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - public CustomerCustomizerName(string customerId, string customizerAttributeId) : this(ResourceNameType.CustomerCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The CustomizerAttribute ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string CustomizerAttributeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCustomizerAttribute: return s_customerCustomizerAttribute.Expand(CustomerId, CustomizerAttributeId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerCustomizerName); - - /// - public bool Equals(CustomerCustomizerName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerCustomizerName a, CustomerCustomizerName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerCustomizerName a, CustomerCustomizerName b) => !(a == b); - } - - public partial class CustomerCustomizer - { - /// - /// -typed view over the resource name property. - /// - internal CustomerCustomizerName ResourceNameAsCustomerCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal CustomizerAttributeName CustomizerAttributeAsCustomizerAttributeName - { - get => string.IsNullOrEmpty(CustomizerAttribute) ? null : CustomizerAttributeName.Parse(CustomizerAttribute, allowUnparsed: true); - set => CustomizerAttribute = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerCustomizerService.g.cs deleted file mode 100755 index 0ba4aadce..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerService.g.cs +++ /dev/null @@ -1,1202 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_customizer_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_customizer_service.proto - public static partial class CustomerCustomizerServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_customizer_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerCustomizerServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "Y3VzdG9taXplcl9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aPGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tZXJfY3VzdG9taXplci5wcm90", - "bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9j", - "bGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVz", - "LnByb3RvIrECCiBNdXRhdGVDdXN0b21lckN1c3RvbWl6ZXJzUmVxdWVzdBIY", - "CgtjdXN0b21lcl9pZBgBIAEoCUID4EECElcKCm9wZXJhdGlvbnMYAiADKAsy", - "Pi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3VzdG9tZXJD", - "dXN0b21pemVyT3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMg", - "ASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVu", - "dF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUi", - "uAEKG0N1c3RvbWVyQ3VzdG9taXplck9wZXJhdGlvbhJICgZjcmVhdGUYASAB", - "KAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkN1c3Rv", - "bWVyQ3VzdG9taXplckgAEkIKBnJlbW92ZRgCIAEoCUIw+kEtCitnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJDdXN0b21pemVySABCCwoJb3Bl", - "cmF0aW9uIqoBCiFNdXRhdGVDdXN0b21lckN1c3RvbWl6ZXJzUmVzcG9uc2US", - "UgoHcmVzdWx0cxgBIAMoCzJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVDdXN0b21lckN1c3RvbWl6ZXJSZXN1bHQSMQoVcGFy", - "dGlhbF9mYWlsdXJlX2Vycm9yGAIgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMi", - "vgEKHk11dGF0ZUN1c3RvbWVyQ3VzdG9taXplclJlc3VsdBJHCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQjD6QS0KK2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "dXN0b21lckN1c3RvbWl6ZXISUwoTY3VzdG9tZXJfY3VzdG9taXplchgCIAEo", - "CzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9t", - "ZXJDdXN0b21pemVyMuoCChlDdXN0b21lckN1c3RvbWl6ZXJTZXJ2aWNlEoUC", - "ChlNdXRhdGVDdXN0b21lckN1c3RvbWl6ZXJzEkMuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyQ3VzdG9taXplcnNS", - "ZXF1ZXN0GkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUN1c3RvbWVyQ3VzdG9taXplcnNSZXNwb25zZSJdgtPkkwI+IjkvdjEy", - "L2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vQ3VzdG9tZXJDdXN0b21pemVy", - "czptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlz", - "LmNvbS9hdXRoL2Fkd29yZHNCigIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXNCHkN1c3RvbWVyQ3VzdG9taXplclNlcnZpY2VQcm90", - "b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizerReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult.Parser, new[]{ "ResourceName", "CustomerCustomizer" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CustomerCustomizerService.MutateCustomerCustomizers][google.ads.googleads.v12.services.CustomerCustomizerService.MutateCustomerCustomizers]. - /// - public sealed partial class MutateCustomerCustomizersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerCustomizersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizersRequest(MutateCustomerCustomizersRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizersRequest Clone() { - return new MutateCustomerCustomizersRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer customizers are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customer customizers. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerCustomizersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerCustomizersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerCustomizersRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an customizer attribute. - /// - public sealed partial class CustomerCustomizerOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerCustomizerOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizerOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizerOperation(CustomerCustomizerOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerCustomizerOperation Clone() { - return new CustomerCustomizerOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new customer - /// customizer - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed customer customizer is - /// expected, in this format: - /// `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerCustomizerOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerCustomizerOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerCustomizerOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an customizer attribute mutate. - /// - public sealed partial class MutateCustomerCustomizersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerCustomizersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizersResponse(MutateCustomerCustomizersResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizersResponse Clone() { - return new MutateCustomerCustomizersResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerCustomizersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerCustomizersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerCustomizersResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customizer attribute mutate. - /// - public sealed partial class MutateCustomerCustomizerResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerCustomizerResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizerResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizerResult(MutateCustomerCustomizerResult other) : this() { - resourceName_ = other.resourceName_; - customerCustomizer_ = other.customerCustomizer_ != null ? other.customerCustomizer_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerCustomizerResult Clone() { - return new MutateCustomerCustomizerResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_customizer" field. - public const int CustomerCustomizerFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer customerCustomizer_; - /// - /// The mutated CustomerCustomizer with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer CustomerCustomizer { - get { return customerCustomizer_; } - set { - customerCustomizer_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerCustomizerResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerCustomizerResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomerCustomizer, other.CustomerCustomizer)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customerCustomizer_ != null) hash ^= CustomerCustomizer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerCustomizer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerCustomizer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customerCustomizer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerCustomizer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerCustomizerResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customerCustomizer_ != null) { - if (customerCustomizer_ == null) { - CustomerCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - } - CustomerCustomizer.MergeFrom(other.CustomerCustomizer); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerCustomizer_ == null) { - CustomerCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - } - input.ReadMessage(CustomerCustomizer); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerCustomizer_ == null) { - CustomerCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - } - input.ReadMessage(CustomerCustomizer); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceClient.g.cs deleted file mode 100755 index 4658bb556..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerCustomizerServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerCustomizerServiceSettings GetDefault() => new CustomerCustomizerServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerCustomizerServiceSettings() - { - } - - private CustomerCustomizerServiceSettings(CustomerCustomizerServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerCustomizersSettings = existing.MutateCustomerCustomizersSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerCustomizerServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerCustomizerServiceClient.MutateCustomerCustomizers and - /// CustomerCustomizerServiceClient.MutateCustomerCustomizersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerCustomizersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerCustomizerServiceSettings Clone() => new CustomerCustomizerServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerCustomizerServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerCustomizerServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerCustomizerServiceClientBuilder() : base(CustomerCustomizerServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerCustomizerServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerCustomizerServiceClient Build() - { - CustomerCustomizerServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerCustomizerServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerCustomizerServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerCustomizerServiceClient.ChannelPool; - } - - /// CustomerCustomizerService client wrapper, for convenient use. - /// - /// Service to manage customer customizer - /// - public abstract partial class CustomerCustomizerServiceClient - { - /// - /// The default endpoint for the CustomerCustomizerService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerCustomizerService scopes. - /// - /// The default CustomerCustomizerService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerCustomizerService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerCustomizerServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerCustomizerServiceClient Create() => new CustomerCustomizerServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerCustomizerServiceClient Create(grpccore::CallInvoker callInvoker, CustomerCustomizerServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerCustomizerService.CustomerCustomizerServiceClient grpcClient = new CustomerCustomizerService.CustomerCustomizerServiceClient(callInvoker); - return new CustomerCustomizerServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerCustomizerService client - public virtual CustomerCustomizerService.CustomerCustomizerServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerCustomizersResponse MutateCustomerCustomizers(MutateCustomerCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerCustomizersAsync(MutateCustomerCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerCustomizersAsync(MutateCustomerCustomizersRequest request, st::CancellationToken cancellationToken) => - MutateCustomerCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customer customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer customizers. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerCustomizersResponse MutateCustomerCustomizers(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerCustomizers(new MutateCustomerCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customer customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer customizers. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerCustomizersAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerCustomizersAsync(new MutateCustomerCustomizersRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customer customizers are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer customizers. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerCustomizersAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerCustomizersAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerCustomizerService client wrapper implementation, for convenient use. - /// - /// Service to manage customer customizer - /// - public sealed partial class CustomerCustomizerServiceClientImpl : CustomerCustomizerServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerCustomizers; - - /// - /// Constructs a client wrapper for the CustomerCustomizerService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerCustomizerServiceClientImpl(CustomerCustomizerService.CustomerCustomizerServiceClient grpcClient, CustomerCustomizerServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerCustomizerServiceSettings effectiveSettings = settings ?? CustomerCustomizerServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerCustomizers = clientHelper.BuildApiCall("MutateCustomerCustomizers", grpcClient.MutateCustomerCustomizersAsync, grpcClient.MutateCustomerCustomizers, effectiveSettings.MutateCustomerCustomizersSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerCustomizers); - Modify_MutateCustomerCustomizersApiCall(ref _callMutateCustomerCustomizers); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerCustomizersApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerCustomizerService.CustomerCustomizerServiceClient grpcClient, CustomerCustomizerServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerCustomizerService client - public override CustomerCustomizerService.CustomerCustomizerServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerCustomizersRequest(ref MutateCustomerCustomizersRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerCustomizersResponse MutateCustomerCustomizers(MutateCustomerCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerCustomizersRequest(ref request, ref callSettings); - return _callMutateCustomerCustomizers.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerCustomizersAsync(MutateCustomerCustomizersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerCustomizersRequest(ref request, ref callSettings); - return _callMutateCustomerCustomizers.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceGrpc.g.cs deleted file mode 100755 index b863ff41e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_customizer_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer customizer - /// - public static partial class CustomerCustomizerService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerCustomizerService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerCustomizersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerCustomizersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerCustomizers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerCustomizers", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerCustomizersRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerCustomizersResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerCustomizerService - [grpc::BindServiceMethod(typeof(CustomerCustomizerService), "BindService")] - public abstract partial class CustomerCustomizerServiceBase - { - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerCustomizerService - public partial class CustomerCustomizerServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerCustomizerService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerCustomizerServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerCustomizerService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerCustomizerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerCustomizerServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerCustomizerServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersResponse MutateCustomerCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerCustomizers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersResponse MutateCustomerCustomizers(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerCustomizers, null, options, request); - } - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerCustomizersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes customer customizers. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerCustomizersAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerCustomizers, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerCustomizerServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerCustomizerServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerCustomizerServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerCustomizers, serviceImpl.MutateCustomerCustomizers).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerCustomizerServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerCustomizers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerCustomizers)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceResourceNames.g.cs deleted file mode 100755 index a872c8c0e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerCustomizerServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerCustomizerOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerCustomizerName RemoveAsCustomerCustomizerName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerCustomizerName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerCustomizerResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerCustomizerName ResourceNameAsCustomerCustomizerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerCustomizerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerError.g.cs deleted file mode 100755 index 553bf0494..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerError.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/customer_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/customer_error.proto - public static partial class CustomerErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/customer_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWVyX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIngK", - "EUN1c3RvbWVyRXJyb3JFbnVtImMKDUN1c3RvbWVyRXJyb3ISDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESHAoYU1RBVFVTX0NIQU5HRV9ESVNBTExP", - "V0VEEAISFgoSQUNDT1VOVF9OT1RfU0VUX1VQEANC8gEKI2NvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhJDdXN0b21lckVycm9yUHJvdG9Q", - "AVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVy", - "cm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorEnum.Types.CustomerError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible customer errors. - /// - public sealed partial class CustomerErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerErrorEnum(CustomerErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerErrorEnum Clone() { - return new CustomerErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Set of errors that are related to requests dealing with Customer. - /// - public enum CustomerError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Customer status is not allowed to be changed from DRAFT and CLOSED. - /// Currency code and at least one of country code and time zone needs to be - /// set when status is changed to ENABLED. - /// - [pbr::OriginalName("STATUS_CHANGE_DISALLOWED")] StatusChangeDisallowed = 2, - /// - /// CustomerService cannot get a customer that has not been fully set up. - /// - [pbr::OriginalName("ACCOUNT_NOT_SET_UP")] AccountNotSetUp = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSetting.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerExtensionSetting.g.cs deleted file mode 100755 index 0eece68d8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSetting.g.cs +++ /dev/null @@ -1,375 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_extension_setting.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_extension_setting.proto - public static partial class CustomerExtensionSettingReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_extension_setting.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerExtensionSettingReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2V4dGVuc2lvbl9zZXR0aW5nLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvZXh0ZW5zaW9uX3NldHRpbmdfZGV2aWNlLnByb3RvGjNnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvZXh0ZW5zaW9uX3R5cGUucHJvdG8aH2dv", - "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", - "b3VyY2UucHJvdG8i+AMKGEN1c3RvbWVyRXh0ZW5zaW9uU2V0dGluZxJQCg1y", - "ZXNvdXJjZV9uYW1lGAEgASgJQjngQQX6QTMKMWdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DdXN0b21lckV4dGVuc2lvblNldHRpbmcSXAoOZXh0ZW5zaW9u", - "X3R5cGUYAiABKA4yPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "RXh0ZW5zaW9uVHlwZUVudW0uRXh0ZW5zaW9uVHlwZUID4EEFEk0KFGV4dGVu", - "c2lvbl9mZWVkX2l0ZW1zGAUgAygJQi/6QSwKKmdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9FeHRlbnNpb25GZWVkSXRlbRJhCgZkZXZpY2UYBCABKA4yUS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRXh0ZW5zaW9uU2V0dGlu", - "Z0RldmljZUVudW0uRXh0ZW5zaW9uU2V0dGluZ0RldmljZTp66kF3CjFnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJFeHRlbnNpb25TZXR0aW5n", - "EkJjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9jdXN0b21lckV4dGVuc2lvblNl", - "dHRpbmdzL3tleHRlbnNpb25fdHlwZX1CjwIKJmNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzQh1DdXN0b21lckV4dGVuc2lvblNldHRp", - "bmdQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNH", - "QUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting), global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting.Parser, new[]{ "ResourceName", "ExtensionType", "ExtensionFeedItems", "Device" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customer extension setting. - /// - public sealed partial class CustomerExtensionSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerExtensionSetting()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSettingReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerExtensionSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerExtensionSetting(CustomerExtensionSetting other) : this() { - resourceName_ = other.resourceName_; - extensionType_ = other.extensionType_; - extensionFeedItems_ = other.extensionFeedItems_.Clone(); - device_ = other.device_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerExtensionSetting Clone() { - return new CustomerExtensionSetting(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer extension setting. - /// CustomerExtensionSetting resource names have the form: - /// - /// `customers/{customer_id}/customerExtensionSettings/{extension_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "extension_type" field. - public const int ExtensionTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType extensionType_ = global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified; - /// - /// Immutable. The extension type of the customer extension setting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType ExtensionType { - get { return extensionType_; } - set { - extensionType_ = value; - } - } - - /// Field number for the "extension_feed_items" field. - public const int ExtensionFeedItemsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_extensionFeedItems_codec - = pb::FieldCodec.ForString(42); - private readonly pbc::RepeatedField extensionFeedItems_ = new pbc::RepeatedField(); - /// - /// The resource names of the extension feed items to serve under the customer. - /// ExtensionFeedItem resource names have the form: - /// - /// `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ExtensionFeedItems { - get { return extensionFeedItems_; } - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice device_ = global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified; - /// - /// The device for which the extensions will serve. Optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice Device { - get { return device_; } - set { - device_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerExtensionSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerExtensionSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ExtensionType != other.ExtensionType) return false; - if(!extensionFeedItems_.Equals(other.extensionFeedItems_)) return false; - if (Device != other.Device) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) hash ^= ExtensionType.GetHashCode(); - hash ^= extensionFeedItems_.GetHashCode(); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) hash ^= Device.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExtensionType); - } - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Device); - } - extensionFeedItems_.WriteTo(output, _repeated_extensionFeedItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) ExtensionType); - } - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Device); - } - extensionFeedItems_.WriteTo(ref output, _repeated_extensionFeedItems_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionType); - } - size += extensionFeedItems_.CalculateSize(_repeated_extensionFeedItems_codec); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Device); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerExtensionSetting other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - ExtensionType = other.ExtensionType; - } - extensionFeedItems_.Add(other.extensionFeedItems_); - if (other.Device != global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice.Unspecified) { - Device = other.Device; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 32: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice) input.ReadEnum(); - break; - } - case 42: { - extensionFeedItems_.AddEntriesFrom(input, _repeated_extensionFeedItems_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 32: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice) input.ReadEnum(); - break; - } - case 42: { - extensionFeedItems_.AddEntriesFrom(ref input, _repeated_extensionFeedItems_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingResourceNames.g.cs deleted file mode 100755 index 78fa2b4f8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingResourceNames.g.cs +++ /dev/null @@ -1,292 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerExtensionSetting resource. - public sealed partial class CustomerExtensionSettingName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerExtensionSettings/{extension_type}. - /// - CustomerExtensionType = 1, - } - - private static gax::PathTemplate s_customerExtensionType = new gax::PathTemplate("customers/{customer_id}/customerExtensionSettings/{extension_type}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerExtensionSettingName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerExtensionSettingName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerExtensionSettings/{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CustomerExtensionSettingName FromCustomerExtensionType(string customerId, string extensionTypeId) => - new CustomerExtensionSettingName(ResourceNameType.CustomerExtensionType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), extensionTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/customerExtensionSettings/{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerExtensionSettings/{extension_type}. - /// - public static string Format(string customerId, string extensionTypeId) => - FormatCustomerExtensionType(customerId, extensionTypeId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/customerExtensionSettings/{extension_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerExtensionSettings/{extension_type}. - /// - public static string FormatCustomerExtensionType(string customerId, string extensionTypeId) => - s_customerExtensionType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerExtensionSettings/{extension_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static CustomerExtensionSettingName Parse(string customerExtensionSettingName) => - Parse(customerExtensionSettingName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerExtensionSettings/{extension_type} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerExtensionSettingName Parse(string customerExtensionSettingName, bool allowUnparsed) => - TryParse(customerExtensionSettingName, allowUnparsed, out CustomerExtensionSettingName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerExtensionSettings/{extension_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerExtensionSettingName, out CustomerExtensionSettingName result) => - TryParse(customerExtensionSettingName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerExtensionSettings/{extension_type} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerExtensionSettingName, bool allowUnparsed, out CustomerExtensionSettingName result) - { - gax::GaxPreconditions.CheckNotNull(customerExtensionSettingName, nameof(customerExtensionSettingName)); - gax::TemplatedResourceName resourceName; - if (s_customerExtensionType.TryParseName(customerExtensionSettingName, out resourceName)) - { - result = FromCustomerExtensionType(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerExtensionSettingName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerExtensionSettingName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string extensionTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - ExtensionTypeId = extensionTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customerExtensionSettings/{extension_type} - /// - /// The Customer ID. Must not be null or empty. - /// The ExtensionType ID. Must not be null or empty. - public CustomerExtensionSettingName(string customerId, string extensionTypeId) : this(ResourceNameType.CustomerExtensionType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), extensionTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(extensionTypeId, nameof(extensionTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ExtensionType ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ExtensionTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerExtensionType: return s_customerExtensionType.Expand(CustomerId, ExtensionTypeId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerExtensionSettingName); - - /// - public bool Equals(CustomerExtensionSettingName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerExtensionSettingName a, CustomerExtensionSettingName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerExtensionSettingName a, CustomerExtensionSettingName b) => !(a == b); - } - - public partial class CustomerExtensionSetting - { - /// - /// -typed view over the resource name - /// property. - /// - internal CustomerExtensionSettingName ResourceNameAsCustomerExtensionSettingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerExtensionSettingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gax::ResourceNameList ExtensionFeedItemsAsExtensionFeedItemNames - { - get => new gax::ResourceNameList(ExtensionFeedItems, s => string.IsNullOrEmpty(s) ? null : ExtensionFeedItemName.Parse(s, allowUnparsed: true)); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingService.g.cs deleted file mode 100755 index b0b2b59c9..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingService.g.cs +++ /dev/null @@ -1,1317 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_extension_setting_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_extension_setting_service.proto - public static partial class CustomerExtensionSettingServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_extension_setting_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerExtensionSettingServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "ZXh0ZW5zaW9uX3NldHRpbmdfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXMvcmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGkNnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVyX2V4dGVuc2lv", - "bl9zZXR0aW5nLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3Rv", - "Ghdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i", - "ZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29v", - "Z2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3Rh", - "dHVzLnByb3RvIr0CCiZNdXRhdGVDdXN0b21lckV4dGVuc2lvblNldHRpbmdz", - "UmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECEl0KCm9wZXJhdGlv", - "bnMYAiADKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "Q3VzdG9tZXJFeHRlbnNpb25TZXR0aW5nT3BlcmF0aW9uQgPgQQISFwoPcGFy", - "dGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoV", - "cmVzcG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3Bv", - "bnNlQ29udGVudFR5cGUiywIKIUN1c3RvbWVyRXh0ZW5zaW9uU2V0dGluZ09w", - "ZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1", - "Zi5GaWVsZE1hc2sSTgoGY3JlYXRlGAEgASgLMjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckV4dGVuc2lvblNldHRpbmdI", - "ABJOCgZ1cGRhdGUYAiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkN1c3RvbWVyRXh0ZW5zaW9uU2V0dGluZ0gAEkgKBnJlbW92", - "ZRgDIAEoCUI2+kEzCjFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9t", - "ZXJFeHRlbnNpb25TZXR0aW5nSABCCwoJb3BlcmF0aW9uIrYBCidNdXRhdGVD", - "dXN0b21lckV4dGVuc2lvblNldHRpbmdzUmVzcG9uc2USMQoVcGFydGlhbF9m", - "YWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSWAoHcmVz", - "dWx0cxgCIAMoCzJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVDdXN0b21lckV4dGVuc2lvblNldHRpbmdSZXN1bHQi1wEKJE11", - "dGF0ZUN1c3RvbWVyRXh0ZW5zaW9uU2V0dGluZ1Jlc3VsdBJNCg1yZXNvdXJj", - "ZV9uYW1lGAEgASgJQjb6QTMKMWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9D", - "dXN0b21lckV4dGVuc2lvblNldHRpbmcSYAoaY3VzdG9tZXJfZXh0ZW5zaW9u", - "X3NldHRpbmcYAiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkN1c3RvbWVyRXh0ZW5zaW9uU2V0dGluZzKIAwofQ3VzdG9tZXJF", - "eHRlbnNpb25TZXR0aW5nU2VydmljZRKdAgofTXV0YXRlQ3VzdG9tZXJFeHRl", - "bnNpb25TZXR0aW5ncxJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcy5NdXRhdGVDdXN0b21lckV4dGVuc2lvblNldHRpbmdzUmVxdWVzdBpK", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0", - "b21lckV4dGVuc2lvblNldHRpbmdzUmVzcG9uc2UiY4LT5JMCRCI/L3YxMi9j", - "dXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2N1c3RvbWVyRXh0ZW5zaW9uU2V0", - "dGluZ3M6bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEY", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xl", - "YXBpcy5jb20vYXV0aC9hZHdvcmRzQpACCiVjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzQiRDdXN0b21lckV4dGVuc2lvblNldHRpbmdT", - "ZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6IC", - "A0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSettingReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult.Parser, new[]{ "ResourceName", "CustomerExtensionSetting" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CustomerExtensionSettingService.MutateCustomerExtensionSettings][google.ads.googleads.v12.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings]. - /// - public sealed partial class MutateCustomerExtensionSettingsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerExtensionSettingsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingsRequest(MutateCustomerExtensionSettingsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingsRequest Clone() { - return new MutateCustomerExtensionSettingsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer extension settings are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customer extension - /// settings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerExtensionSettingsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerExtensionSettingsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerExtensionSettingsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a customer extension setting. - /// - public sealed partial class CustomerExtensionSettingOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerExtensionSettingOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerExtensionSettingOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerExtensionSettingOperation(CustomerExtensionSettingOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerExtensionSettingOperation Clone() { - return new CustomerExtensionSettingOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new customer - /// extension setting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The customer extension setting is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed customer extension - /// setting is expected, in this format: - /// - /// `customers/{customer_id}/customerExtensionSettings/{extension_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerExtensionSettingOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerExtensionSettingOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerExtensionSettingOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a customer extension setting mutate. - /// - public sealed partial class MutateCustomerExtensionSettingsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerExtensionSettingsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingsResponse(MutateCustomerExtensionSettingsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingsResponse Clone() { - return new MutateCustomerExtensionSettingsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerExtensionSettingsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerExtensionSettingsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerExtensionSettingsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer extension setting mutate. - /// - public sealed partial class MutateCustomerExtensionSettingResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerExtensionSettingResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingResult(MutateCustomerExtensionSettingResult other) : this() { - resourceName_ = other.resourceName_; - customerExtensionSetting_ = other.customerExtensionSetting_ != null ? other.customerExtensionSetting_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerExtensionSettingResult Clone() { - return new MutateCustomerExtensionSettingResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_extension_setting" field. - public const int CustomerExtensionSettingFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting customerExtensionSetting_; - /// - /// The mutated CustomerExtensionSetting with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting CustomerExtensionSetting { - get { return customerExtensionSetting_; } - set { - customerExtensionSetting_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerExtensionSettingResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerExtensionSettingResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomerExtensionSetting, other.CustomerExtensionSetting)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customerExtensionSetting_ != null) hash ^= CustomerExtensionSetting.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerExtensionSetting_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerExtensionSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerExtensionSetting_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerExtensionSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customerExtensionSetting_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerExtensionSetting); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerExtensionSettingResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customerExtensionSetting_ != null) { - if (customerExtensionSetting_ == null) { - CustomerExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - CustomerExtensionSetting.MergeFrom(other.CustomerExtensionSetting); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerExtensionSetting_ == null) { - CustomerExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - input.ReadMessage(CustomerExtensionSetting); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerExtensionSetting_ == null) { - CustomerExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - input.ReadMessage(CustomerExtensionSetting); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceClient.g.cs deleted file mode 100755 index 734edd626..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceClient.g.cs +++ /dev/null @@ -1,597 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerExtensionSettingServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerExtensionSettingServiceSettings GetDefault() => new CustomerExtensionSettingServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerExtensionSettingServiceSettings() - { - } - - private CustomerExtensionSettingServiceSettings(CustomerExtensionSettingServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerExtensionSettingsSettings = existing.MutateCustomerExtensionSettingsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerExtensionSettingServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerExtensionSettingServiceClient.MutateCustomerExtensionSettings and - /// CustomerExtensionSettingServiceClient.MutateCustomerExtensionSettingsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerExtensionSettingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerExtensionSettingServiceSettings Clone() => new CustomerExtensionSettingServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class CustomerExtensionSettingServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerExtensionSettingServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerExtensionSettingServiceClientBuilder() : base(CustomerExtensionSettingServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerExtensionSettingServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerExtensionSettingServiceClient Build() - { - CustomerExtensionSettingServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerExtensionSettingServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerExtensionSettingServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerExtensionSettingServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerExtensionSettingServiceClient.ChannelPool; - } - - /// CustomerExtensionSettingService client wrapper, for convenient use. - /// - /// Service to manage customer extension settings. - /// - public abstract partial class CustomerExtensionSettingServiceClient - { - /// - /// The default endpoint for the CustomerExtensionSettingService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerExtensionSettingService scopes. - /// - /// The default CustomerExtensionSettingService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerExtensionSettingService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerExtensionSettingServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerExtensionSettingServiceClient Create() => - new CustomerExtensionSettingServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerExtensionSettingServiceClient Create(grpccore::CallInvoker callInvoker, CustomerExtensionSettingServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerExtensionSettingService.CustomerExtensionSettingServiceClient grpcClient = new CustomerExtensionSettingService.CustomerExtensionSettingServiceClient(callInvoker); - return new CustomerExtensionSettingServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerExtensionSettingService client - public virtual CustomerExtensionSettingService.CustomerExtensionSettingServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerExtensionSettingsResponse MutateCustomerExtensionSettings(MutateCustomerExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerExtensionSettingsAsync(MutateCustomerExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerExtensionSettingsAsync(MutateCustomerExtensionSettingsRequest request, st::CancellationToken cancellationToken) => - MutateCustomerExtensionSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose customer extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual customer extension - /// settings. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerExtensionSettingsResponse MutateCustomerExtensionSettings(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerExtensionSettings(new MutateCustomerExtensionSettingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose customer extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual customer extension - /// settings. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerExtensionSettingsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerExtensionSettingsAsync(new MutateCustomerExtensionSettingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose customer extension settings are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual customer extension - /// settings. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerExtensionSettingsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerExtensionSettingsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerExtensionSettingService client wrapper implementation, for convenient use. - /// - /// Service to manage customer extension settings. - /// - public sealed partial class CustomerExtensionSettingServiceClientImpl : CustomerExtensionSettingServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerExtensionSettings; - - /// - /// Constructs a client wrapper for the CustomerExtensionSettingService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerExtensionSettingServiceClientImpl(CustomerExtensionSettingService.CustomerExtensionSettingServiceClient grpcClient, CustomerExtensionSettingServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerExtensionSettingServiceSettings effectiveSettings = settings ?? CustomerExtensionSettingServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerExtensionSettings = clientHelper.BuildApiCall("MutateCustomerExtensionSettings", grpcClient.MutateCustomerExtensionSettingsAsync, grpcClient.MutateCustomerExtensionSettings, effectiveSettings.MutateCustomerExtensionSettingsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerExtensionSettings); - Modify_MutateCustomerExtensionSettingsApiCall(ref _callMutateCustomerExtensionSettings); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerExtensionSettingsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerExtensionSettingService.CustomerExtensionSettingServiceClient grpcClient, CustomerExtensionSettingServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerExtensionSettingService client - public override CustomerExtensionSettingService.CustomerExtensionSettingServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerExtensionSettingsRequest(ref MutateCustomerExtensionSettingsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerExtensionSettingsResponse MutateCustomerExtensionSettings(MutateCustomerExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerExtensionSettingsRequest(ref request, ref callSettings); - return _callMutateCustomerExtensionSettings.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerExtensionSettingsAsync(MutateCustomerExtensionSettingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerExtensionSettingsRequest(ref request, ref callSettings); - return _callMutateCustomerExtensionSettings.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceGrpc.g.cs deleted file mode 100755 index 3df714d15..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceGrpc.g.cs +++ /dev/null @@ -1,347 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_extension_setting_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer extension settings. - /// - public static partial class CustomerExtensionSettingService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerExtensionSettingService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerExtensionSettingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerExtensionSettingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerExtensionSettings = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerExtensionSettings", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerExtensionSettingsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerExtensionSettingsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerExtensionSettingService - [grpc::BindServiceMethod(typeof(CustomerExtensionSettingService), "BindService")] - public abstract partial class CustomerExtensionSettingServiceBase - { - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerExtensionSettingService - public partial class CustomerExtensionSettingServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerExtensionSettingService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerExtensionSettingServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerExtensionSettingService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerExtensionSettingServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerExtensionSettingServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerExtensionSettingServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsResponse MutateCustomerExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerExtensionSettings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsResponse MutateCustomerExtensionSettings(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerExtensionSettings, null, options, request); - } - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerExtensionSettingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerExtensionSettingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes customer extension settings. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionSettingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerExtensionSettingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerExtensionSettings, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerExtensionSettingServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerExtensionSettingServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerExtensionSettingServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerExtensionSettings, serviceImpl.MutateCustomerExtensionSettings).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerExtensionSettingServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerExtensionSettings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerExtensionSettings)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceResourceNames.g.cs deleted file mode 100755 index 04e0e2a39..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerExtensionSettingServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerExtensionSettingOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerExtensionSettingName RemoveAsCustomerExtensionSettingName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerExtensionSettingName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerExtensionSettingResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::CustomerExtensionSettingName ResourceNameAsCustomerExtensionSettingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerExtensionSettingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerFeed.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerFeed.g.cs deleted file mode 100755 index 6d2824761..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerFeed.g.cs +++ /dev/null @@ -1,440 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_feed.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_feed.proto - public static partial class CustomerFeedReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_feed.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerFeedReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2ZlZWQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMaN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vbWF0Y2hpbmdf", - "ZnVuY3Rpb24ucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9mZWVkX2xpbmtfc3RhdHVzLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvcGxhY2Vob2xkZXJfdHlwZS5wcm90bxofZ29vZ2xlL2Fw", - "aS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5w", - "cm90byL6AwoMQ3VzdG9tZXJGZWVkEkQKDXJlc291cmNlX25hbWUYASABKAlC", - "LeBBBfpBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyRmVl", - "ZBI4CgRmZWVkGAYgASgJQiXgQQX6QR8KHWdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9GZWVkSACIAQESXgoRcGxhY2Vob2xkZXJfdHlwZXMYAyADKA4yQy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUGxhY2Vob2xkZXJUeXBl", - "RW51bS5QbGFjZWhvbGRlclR5cGUSTAoRbWF0Y2hpbmdfZnVuY3Rpb24YBCAB", - "KAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLk1hdGNoaW5n", - "RnVuY3Rpb24SVgoGc3RhdHVzGAUgASgOMkEuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLkZlZWRMaW5rU3RhdHVzRW51bS5GZWVkTGlua1N0YXR1", - "c0ID4EEDOlvqQVgKJWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21l", - "ckZlZWQSL2N1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2N1c3RvbWVyRmVlZHMv", - "e2ZlZWRfaWR9QgcKBV9mZWVkQoMCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlc0IRQ3VzdG9tZXJGZWVkUHJvdG9QAVpLZ29vZ2xl", - "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.MatchingFunctionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed), global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed.Parser, new[]{ "ResourceName", "Feed", "PlaceholderTypes", "MatchingFunction", "Status" }, new[]{ "Feed" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customer feed. - /// - public sealed partial class CustomerFeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerFeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerFeedReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeed(CustomerFeed other) : this() { - resourceName_ = other.resourceName_; - feed_ = other.feed_; - placeholderTypes_ = other.placeholderTypes_.Clone(); - matchingFunction_ = other.matchingFunction_ != null ? other.matchingFunction_.Clone() : null; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeed Clone() { - return new CustomerFeed(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer feed. - /// Customer feed resource names have the form: - /// - /// `customers/{customer_id}/customerFeeds/{feed_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 6; - private string feed_; - /// - /// Immutable. The feed being linked to the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_ ?? ""; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeed { - get { return feed_ != null; } - } - /// Clears the value of the "feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeed() { - feed_ = null; - } - - /// Field number for the "placeholder_types" field. - public const int PlaceholderTypesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_placeholderTypes_codec - = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) x); - private readonly pbc::RepeatedField placeholderTypes_ = new pbc::RepeatedField(); - /// - /// Indicates which placeholder types the feed may populate under the connected - /// customer. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PlaceholderTypes { - get { return placeholderTypes_; } - } - - /// Field number for the "matching_function" field. - public const int MatchingFunctionFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.MatchingFunction matchingFunction_; - /// - /// Matching function associated with the CustomerFeed. - /// The matching function is used to filter the set of feed items selected. - /// Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MatchingFunction MatchingFunction { - get { return matchingFunction_; } - set { - matchingFunction_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified; - /// - /// Output only. Status of the customer feed. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerFeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerFeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Feed != other.Feed) return false; - if(!placeholderTypes_.Equals(other.placeholderTypes_)) return false; - if (!object.Equals(MatchingFunction, other.MatchingFunction)) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasFeed) hash ^= Feed.GetHashCode(); - hash ^= placeholderTypes_.GetHashCode(); - if (matchingFunction_ != null) hash ^= MatchingFunction.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - placeholderTypes_.WriteTo(output, _repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - output.WriteRawTag(34); - output.WriteMessage(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(50); - output.WriteString(Feed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - placeholderTypes_.WriteTo(ref output, _repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - output.WriteRawTag(34); - output.WriteMessage(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(50); - output.WriteString(Feed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasFeed) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - size += placeholderTypes_.CalculateSize(_repeated_placeholderTypes_codec); - if (matchingFunction_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MatchingFunction); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerFeed other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasFeed) { - Feed = other.Feed; - } - placeholderTypes_.Add(other.placeholderTypes_); - if (other.matchingFunction_ != null) { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - MatchingFunction.MergeFrom(other.MatchingFunction); - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: - case 24: { - placeholderTypes_.AddEntriesFrom(input, _repeated_placeholderTypes_codec); - break; - } - case 34: { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - input.ReadMessage(MatchingFunction); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus) input.ReadEnum(); - break; - } - case 50: { - Feed = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: - case 24: { - placeholderTypes_.AddEntriesFrom(ref input, _repeated_placeholderTypes_codec); - break; - } - case 34: { - if (matchingFunction_ == null) { - MatchingFunction = new global::Google.Ads.GoogleAds.V12.Common.MatchingFunction(); - } - input.ReadMessage(MatchingFunction); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus) input.ReadEnum(); - break; - } - case 50: { - Feed = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerFeedError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerFeedError.g.cs deleted file mode 100755 index 9c0631106..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerFeedError.g.cs +++ /dev/null @@ -1,264 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/customer_feed_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/customer_feed_error.proto - public static partial class CustomerFeedErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/customer_feed_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerFeedErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWVyX2Zl", - "ZWRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMi9wIKFUN1c3RvbWVyRmVlZEVycm9yRW51bSLdAgoRQ3VzdG9tZXJGZWVk", - "RXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESLAooRkVFRF9B", - "TFJFQURZX0VYSVNUU19GT1JfUExBQ0VIT0xERVJfVFlQRRACEiIKHkNBTk5P", - "VF9DUkVBVEVfRk9SX1JFTU9WRURfRkVFRBADEjAKLENBTk5PVF9DUkVBVEVf", - "QUxSRUFEWV9FWElTVElOR19DVVNUT01FUl9GRUVEEAQSJwojQ0FOTk9UX01P", - "RElGWV9SRU1PVkVEX0NVU1RPTUVSX0ZFRUQQBRIcChhJTlZBTElEX1BMQUNF", - "SE9MREVSX1RZUEUQBhIsCihNSVNTSU5HX0ZFRURNQVBQSU5HX0ZPUl9QTEFD", - "RUhPTERFUl9UWVBFEAcSMQotUExBQ0VIT0xERVJfVFlQRV9OT1RfQUxMT1dF", - "RF9PTl9DVVNUT01FUl9GRUVEEAhC9gEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzQhZDdXN0b21lckZlZWRFcnJvclByb3RvUAFaRWdv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "RXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNi", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorEnum.Types.CustomerFeedError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible customer feed errors. - /// - public sealed partial class CustomerFeedErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerFeedErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeedErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeedErrorEnum(CustomerFeedErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeedErrorEnum Clone() { - return new CustomerFeedErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerFeedErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerFeedErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerFeedErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerFeedErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible customer feed errors. - /// - public enum CustomerFeedError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An active feed already exists for this customer and place holder type. - /// - [pbr::OriginalName("FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE")] FeedAlreadyExistsForPlaceholderType = 2, - /// - /// The specified feed is removed. - /// - [pbr::OriginalName("CANNOT_CREATE_FOR_REMOVED_FEED")] CannotCreateForRemovedFeed = 3, - /// - /// The CustomerFeed already exists. Update should be used to modify the - /// existing CustomerFeed. - /// - [pbr::OriginalName("CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED")] CannotCreateAlreadyExistingCustomerFeed = 4, - /// - /// Cannot update removed customer feed. - /// - [pbr::OriginalName("CANNOT_MODIFY_REMOVED_CUSTOMER_FEED")] CannotModifyRemovedCustomerFeed = 5, - /// - /// Invalid placeholder type. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_TYPE")] InvalidPlaceholderType = 6, - /// - /// Feed mapping for this placeholder type does not exist. - /// - [pbr::OriginalName("MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE")] MissingFeedmappingForPlaceholderType = 7, - /// - /// Placeholder not allowed at the account level. - /// - [pbr::OriginalName("PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED")] PlaceholderTypeNotAllowedOnCustomerFeed = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerFeedResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerFeedResourceNames.g.cs deleted file mode 100755 index 78fe3d489..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerFeedResourceNames.g.cs +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerFeed resource. - public sealed partial class CustomerFeedName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/customerFeeds/{feed_id}. - CustomerFeed = 1, - } - - private static gax::PathTemplate s_customerFeed = new gax::PathTemplate("customers/{customer_id}/customerFeeds/{feed_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerFeedName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerFeedName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/customerFeeds/{feed_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerFeedName FromCustomerFeed(string customerId, string feedId) => - new CustomerFeedName(ResourceNameType.CustomerFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerFeeds/{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerFeeds/{feed_id}. - /// - public static string Format(string customerId, string feedId) => FormatCustomerFeed(customerId, feedId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerFeeds/{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerFeeds/{feed_id}. - /// - public static string FormatCustomerFeed(string customerId, string feedId) => - s_customerFeed.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerFeeds/{feed_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerFeedName Parse(string customerFeedName) => Parse(customerFeedName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerFeeds/{feed_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerFeedName Parse(string customerFeedName, bool allowUnparsed) => - TryParse(customerFeedName, allowUnparsed, out CustomerFeedName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerFeeds/{feed_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerFeedName, out CustomerFeedName result) => - TryParse(customerFeedName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerFeeds/{feed_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerFeedName, bool allowUnparsed, out CustomerFeedName result) - { - gax::GaxPreconditions.CheckNotNull(customerFeedName, nameof(customerFeedName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeed.TryParseName(customerFeedName, out resourceName)) - { - result = FromCustomerFeed(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerFeedName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerFeedName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedId = feedId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/customerFeeds/{feed_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - public CustomerFeedName(string customerId, string feedId) : this(ResourceNameType.CustomerFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeed: return s_customerFeed.Expand(CustomerId, FeedId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerFeedName); - - /// - public bool Equals(CustomerFeedName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerFeedName a, CustomerFeedName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerFeedName a, CustomerFeedName b) => !(a == b); - } - - public partial class CustomerFeed - { - /// - /// -typed view over the resource name property. - /// - internal CustomerFeedName ResourceNameAsCustomerFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerFeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerFeedService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerFeedService.g.cs deleted file mode 100755 index 314aef822..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerFeedService.g.cs +++ /dev/null @@ -1,1308 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_feed_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_feed_service.proto - public static partial class CustomerFeedServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_feed_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerFeedServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "ZmVlZF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9yZXNw", - "b25zZV9jb250ZW50X3R5cGUucHJvdG8aNmdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXMvY3VzdG9tZXJfZmVlZC5wcm90bxocZ29vZ2xlL2Fw", - "aS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8a", - "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkv", - "cmVzb3VyY2UucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnBy", - "b3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKlAgoaTXV0YXRlQ3VzdG9t", - "ZXJGZWVkc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJRCgpv", - "cGVyYXRpb25zGAIgAygLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkN1c3RvbWVyRmVlZE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxf", - "ZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIEmoKFXJlc3Bv", - "bnNlX2NvbnRlbnRfdHlwZRgFIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5SZXNwb25zZUNvbnRlbnRUeXBlRW51bS5SZXNwb25zZUNv", - "bnRlbnRUeXBlIpsCChVDdXN0b21lckZlZWRPcGVyYXRpb24SLwoLdXBkYXRl", - "X21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkIKBmNy", - "ZWF0ZRgBIAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQ3VzdG9tZXJGZWVkSAASQgoGdXBkYXRlGAIgASgLMjAuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckZlZWRIABI8CgZy", - "ZW1vdmUYAyABKAlCKvpBJwolZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1", - "c3RvbWVyRmVlZEgAQgsKCW9wZXJhdGlvbiKeAQobTXV0YXRlQ3VzdG9tZXJG", - "ZWVkc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzIS", - "Lmdvb2dsZS5ycGMuU3RhdHVzEkwKB3Jlc3VsdHMYAiADKAsyOy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJGZWVk", - "UmVzdWx0IqYBChhNdXRhdGVDdXN0b21lckZlZWRSZXN1bHQSQQoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUIq+kEnCiVnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q3VzdG9tZXJGZWVkEkcKDWN1c3RvbWVyX2ZlZWQYAiABKAsyMC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkN1c3RvbWVyRmVlZDLMAgoT", - "Q3VzdG9tZXJGZWVkU2VydmljZRLtAQoTTXV0YXRlQ3VzdG9tZXJGZWVkcxI9", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0", - "b21lckZlZWRzUmVxdWVzdBo+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVDdXN0b21lckZlZWRzUmVzcG9uc2UiV4LT5JMCOCIz", - "L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2N1c3RvbWVyRmVlZHM6", - "bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5j", - "b20vYXV0aC9hZHdvcmRzQoQCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzQhhDdXN0b21lckZlZWRTZXJ2aWNlUHJvdG9QAVpJZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerFeedReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult.Parser, new[]{ "ResourceName", "CustomerFeed" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomerFeedService.MutateCustomerFeeds][google.ads.googleads.v12.services.CustomerFeedService.MutateCustomerFeeds]. - /// - public sealed partial class MutateCustomerFeedsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerFeedsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerFeedServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedsRequest(MutateCustomerFeedsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedsRequest Clone() { - return new MutateCustomerFeedsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer feeds are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customer feeds. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerFeedsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerFeedsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerFeedsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a customer feed. - /// - public sealed partial class CustomerFeedOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerFeedOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerFeedServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeedOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeedOperation(CustomerFeedOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerFeedOperation Clone() { - return new CustomerFeedOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new customer feed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The customer feed is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed customer feed is - /// expected, in this format: - /// - /// `customers/{customer_id}/customerFeeds/{feed_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerFeedOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerFeedOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerFeedOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a customer feed mutate. - /// - public sealed partial class MutateCustomerFeedsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerFeedsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerFeedServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedsResponse(MutateCustomerFeedsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedsResponse Clone() { - return new MutateCustomerFeedsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerFeedsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerFeedsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerFeedsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer feed mutate. - /// - public sealed partial class MutateCustomerFeedResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerFeedResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerFeedServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedResult(MutateCustomerFeedResult other) : this() { - resourceName_ = other.resourceName_; - customerFeed_ = other.customerFeed_ != null ? other.customerFeed_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerFeedResult Clone() { - return new MutateCustomerFeedResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_feed" field. - public const int CustomerFeedFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed customerFeed_; - /// - /// The mutated customer feed with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed CustomerFeed { - get { return customerFeed_; } - set { - customerFeed_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerFeedResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerFeedResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomerFeed, other.CustomerFeed)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customerFeed_ != null) hash ^= CustomerFeed.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerFeed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerFeed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerFeed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customerFeed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerFeed); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerFeedResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customerFeed_ != null) { - if (customerFeed_ == null) { - CustomerFeed = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - CustomerFeed.MergeFrom(other.CustomerFeed); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerFeed_ == null) { - CustomerFeed = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - input.ReadMessage(CustomerFeed); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerFeed_ == null) { - CustomerFeed = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - input.ReadMessage(CustomerFeed); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceClient.g.cs deleted file mode 100755 index 58b87f690..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceClient.g.cs +++ /dev/null @@ -1,562 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerFeedServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerFeedServiceSettings GetDefault() => new CustomerFeedServiceSettings(); - - /// Constructs a new object with default settings. - public CustomerFeedServiceSettings() - { - } - - private CustomerFeedServiceSettings(CustomerFeedServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerFeedsSettings = existing.MutateCustomerFeedsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerFeedServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerFeedServiceClient.MutateCustomerFeeds and - /// CustomerFeedServiceClient.MutateCustomerFeedsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerFeedsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerFeedServiceSettings Clone() => new CustomerFeedServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerFeedServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerFeedServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerFeedServiceClientBuilder() : base(CustomerFeedServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerFeedServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerFeedServiceClient Build() - { - CustomerFeedServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerFeedServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerFeedServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerFeedServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerFeedServiceClient.ChannelPool; - } - - /// CustomerFeedService client wrapper, for convenient use. - /// - /// Service to manage customer feeds. - /// - public abstract partial class CustomerFeedServiceClient - { - /// - /// The default endpoint for the CustomerFeedService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerFeedService scopes. - /// - /// The default CustomerFeedService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerFeedService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerFeedServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerFeedServiceClient Create() => new CustomerFeedServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerFeedServiceClient Create(grpccore::CallInvoker callInvoker, CustomerFeedServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerFeedService.CustomerFeedServiceClient grpcClient = new CustomerFeedService.CustomerFeedServiceClient(callInvoker); - return new CustomerFeedServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerFeedService client - public virtual CustomerFeedService.CustomerFeedServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerFeedsResponse MutateCustomerFeeds(MutateCustomerFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerFeedsAsync(MutateCustomerFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerFeedsAsync(MutateCustomerFeedsRequest request, st::CancellationToken cancellationToken) => - MutateCustomerFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose customer feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer feeds. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerFeedsResponse MutateCustomerFeeds(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerFeeds(new MutateCustomerFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose customer feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer feeds. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerFeedsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerFeedsAsync(new MutateCustomerFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose customer feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer feeds. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerFeedsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerFeedsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerFeedService client wrapper implementation, for convenient use. - /// - /// Service to manage customer feeds. - /// - public sealed partial class CustomerFeedServiceClientImpl : CustomerFeedServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerFeeds; - - /// - /// Constructs a client wrapper for the CustomerFeedService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CustomerFeedServiceClientImpl(CustomerFeedService.CustomerFeedServiceClient grpcClient, CustomerFeedServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerFeedServiceSettings effectiveSettings = settings ?? CustomerFeedServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerFeeds = clientHelper.BuildApiCall("MutateCustomerFeeds", grpcClient.MutateCustomerFeedsAsync, grpcClient.MutateCustomerFeeds, effectiveSettings.MutateCustomerFeedsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerFeeds); - Modify_MutateCustomerFeedsApiCall(ref _callMutateCustomerFeeds); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerFeedsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerFeedService.CustomerFeedServiceClient grpcClient, CustomerFeedServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerFeedService client - public override CustomerFeedService.CustomerFeedServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerFeedsRequest(ref MutateCustomerFeedsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerFeedsResponse MutateCustomerFeeds(MutateCustomerFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerFeedsRequest(ref request, ref callSettings); - return _callMutateCustomerFeeds.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerFeedsAsync(MutateCustomerFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerFeedsRequest(ref request, ref callSettings); - return _callMutateCustomerFeeds.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceGrpc.g.cs deleted file mode 100755 index fad260c2a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceGrpc.g.cs +++ /dev/null @@ -1,332 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_feed_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer feeds. - /// - public static partial class CustomerFeedService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerFeedService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerFeedsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerFeedsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerFeeds = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerFeeds", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerFeedsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerFeedsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerFeedServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerFeedService - [grpc::BindServiceMethod(typeof(CustomerFeedService), "BindService")] - public abstract partial class CustomerFeedServiceBase - { - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerFeedService - public partial class CustomerFeedServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerFeedService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerFeedServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerFeedService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerFeedServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerFeedServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerFeedServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsResponse MutateCustomerFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerFeeds(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsResponse MutateCustomerFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerFeeds, null, options, request); - } - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerFeedsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes customer feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerFeeds, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerFeedServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerFeedServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerFeedServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerFeeds, serviceImpl.MutateCustomerFeeds).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerFeedServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerFeeds, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerFeeds)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceResourceNames.g.cs deleted file mode 100755 index f8ee37f7a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerFeedServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerFeedOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerFeedName RemoveAsCustomerFeedName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerFeedName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerFeedResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerFeedName ResourceNameAsCustomerFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerFeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerLabel.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerLabel.g.cs deleted file mode 100755 index 60082b497..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerLabel.g.cs +++ /dev/null @@ -1,365 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_label.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_label.proto - public static partial class CustomerLabelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_label.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerLabelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X2xhYmVsLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvIssCCg1DdXN0b21lckxhYmVsEkUKDXJlc291", - "cmNlX25hbWUYASABKAlCLuBBBfpBKAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0N1c3RvbWVyTGFiZWwSQAoIY3VzdG9tZXIYBCABKAlCKeBBA/pBIwoh", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVySACIAQESOgoFbGFi", - "ZWwYBSABKAlCJuBBA/pBIAoeZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0xh", - "YmVsSAGIAQE6XupBWwomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3Rv", - "bWVyTGFiZWwSMWN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2N1c3RvbWVyTGFi", - "ZWxzL3tsYWJlbF9pZH1CCwoJX2N1c3RvbWVyQggKBl9sYWJlbEKEAgomY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCEkN1c3RvbWVy", - "TGFiZWxQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOi", - "AgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIi", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel), global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel.Parser, new[]{ "ResourceName", "Customer", "Label" }, new[]{ "Customer", "Label" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a relationship between a customer and a label. This customer may - /// not have access to all the labels attached to it. Additional CustomerLabels - /// may be returned by increasing permissions with login-customer-id. - /// - public sealed partial class CustomerLabel : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerLabel()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerLabelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerLabel() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerLabel(CustomerLabel other) : this() { - resourceName_ = other.resourceName_; - customer_ = other.customer_; - label_ = other.label_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerLabel Clone() { - return new CustomerLabel(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. Name of the resource. - /// Customer label resource names have the form: - /// `customers/{customer_id}/customerLabels/{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 4; - private string customer_; - /// - /// Output only. The resource name of the customer to which the label is attached. - /// Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Customer { - get { return customer_ ?? ""; } - set { - customer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomer { - get { return customer_ != null; } - } - /// Clears the value of the "customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomer() { - customer_ = null; - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 5; - private string label_; - /// - /// Output only. The resource name of the label assigned to the customer. - /// - /// Note: the Customer ID portion of the label resource name is not - /// validated when creating a new CustomerLabel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Label { - get { return label_ ?? ""; } - set { - label_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "label" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLabel { - get { return label_ != null; } - } - /// Clears the value of the "label" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLabel() { - label_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerLabel); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerLabel other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Customer != other.Customer) return false; - if (Label != other.Label) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCustomer) hash ^= Customer.GetHashCode(); - if (HasLabel) hash ^= Label.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCustomer) { - output.WriteRawTag(34); - output.WriteString(Customer); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCustomer) { - output.WriteRawTag(34); - output.WriteString(Customer); - } - if (HasLabel) { - output.WriteRawTag(42); - output.WriteString(Label); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Customer); - } - if (HasLabel) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Label); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerLabel other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCustomer) { - Customer = other.Customer; - } - if (other.HasLabel) { - Label = other.Label; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - Customer = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - Customer = input.ReadString(); - break; - } - case 42: { - Label = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerLabelResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerLabelResourceNames.g.cs deleted file mode 100755 index fe242ae13..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerLabelResourceNames.g.cs +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerLabel resource. - public sealed partial class CustomerLabelName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerLabels/{label_id}. - /// - CustomerLabel = 1, - } - - private static gax::PathTemplate s_customerLabel = new gax::PathTemplate("customers/{customer_id}/customerLabels/{label_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerLabelName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerLabelName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerLabels/{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerLabelName FromCustomerLabel(string customerId, string labelId) => - new CustomerLabelName(ResourceNameType.CustomerLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerLabels/{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerLabels/{label_id}. - /// - public static string Format(string customerId, string labelId) => FormatCustomerLabel(customerId, labelId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerLabels/{label_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerLabels/{label_id}. - /// - public static string FormatCustomerLabel(string customerId, string labelId) => - s_customerLabel.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerLabels/{label_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerLabelName Parse(string customerLabelName) => Parse(customerLabelName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerLabels/{label_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerLabelName Parse(string customerLabelName, bool allowUnparsed) => - TryParse(customerLabelName, allowUnparsed, out CustomerLabelName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerLabels/{label_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerLabelName, out CustomerLabelName result) => - TryParse(customerLabelName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerLabels/{label_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerLabelName, bool allowUnparsed, out CustomerLabelName result) - { - gax::GaxPreconditions.CheckNotNull(customerLabelName, nameof(customerLabelName)); - gax::TemplatedResourceName resourceName; - if (s_customerLabel.TryParseName(customerLabelName, out resourceName)) - { - result = FromCustomerLabel(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerLabelName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerLabelName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string labelId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - LabelId = labelId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/customerLabels/{label_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Label ID. Must not be null or empty. - public CustomerLabelName(string customerId, string labelId) : this(ResourceNameType.CustomerLabel, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), labelId: gax::GaxPreconditions.CheckNotNullOrEmpty(labelId, nameof(labelId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Label ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string LabelId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerLabel: return s_customerLabel.Expand(CustomerId, LabelId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerLabelName); - - /// - public bool Equals(CustomerLabelName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerLabelName a, CustomerLabelName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerLabelName a, CustomerLabelName b) => !(a == b); - } - - public partial class CustomerLabel - { - /// - /// -typed view over the resource name property. - /// - internal CustomerLabelName ResourceNameAsCustomerLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName CustomerAsCustomerName - { - get => string.IsNullOrEmpty(Customer) ? null : CustomerName.Parse(Customer, allowUnparsed: true); - set => Customer = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal LabelName LabelAsLabelName - { - get => string.IsNullOrEmpty(Label) ? null : LabelName.Parse(Label, allowUnparsed: true); - set => Label = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerLabelService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerLabelService.g.cs deleted file mode 100755 index 9d8e42bb9..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerLabelService.g.cs +++ /dev/null @@ -1,1102 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_label_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_label_service.proto - public static partial class CustomerLabelServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_label_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerLabelServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "bGFiZWxfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "L2N1c3RvbWVyX2xhYmVsLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", - "LnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9m", - "aWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90", - "bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8iuwEKG011dGF0ZUN1c3RvbWVy", - "TGFiZWxzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECElIKCm9w", - "ZXJhdGlvbnMYAiADKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuQ3VzdG9tZXJMYWJlbE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxf", - "ZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIIqkBChZDdXN0", - "b21lckxhYmVsT3BlcmF0aW9uEkMKBmNyZWF0ZRgBIAEoCzIxLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXJMYWJlbEgAEj0K", - "BnJlbW92ZRgCIAEoCUIr+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q3VzdG9tZXJMYWJlbEgAQgsKCW9wZXJhdGlvbiKgAQocTXV0YXRlQ3VzdG9t", - "ZXJMYWJlbHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAyAB", - "KAsyEi5nb29nbGUucnBjLlN0YXR1cxJNCgdyZXN1bHRzGAIgAygLMjwuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVy", - "TGFiZWxSZXN1bHQiXwoZTXV0YXRlQ3VzdG9tZXJMYWJlbFJlc3VsdBJCCg1y", - "ZXNvdXJjZV9uYW1lGAEgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DdXN0b21lckxhYmVsMtECChRDdXN0b21lckxhYmVsU2VydmljZRLx", - "AQoUTXV0YXRlQ3VzdG9tZXJMYWJlbHMSPi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJMYWJlbHNSZXF1ZXN0Gj8u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3Rv", - "bWVyTGFiZWxzUmVzcG9uc2UiWILT5JMCOSI0L3YxMi9jdXN0b21lcnMve2N1", - "c3RvbWVyX2lkPSp9L2N1c3RvbWVyTGFiZWxzOm11dGF0ZToBKtpBFmN1c3Rv", - "bWVyX2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KF", - "AgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IZQ3Vz", - "dG9tZXJMYWJlbFNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2Vz", - "O3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNl", - "cnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIl", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomerLabelReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomerLabelService.MutateCustomerLabels][google.ads.googleads.v12.services.CustomerLabelService.MutateCustomerLabels]. - /// - public sealed partial class MutateCustomerLabelsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerLabelsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerLabelServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelsRequest(MutateCustomerLabelsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelsRequest Clone() { - return new MutateCustomerLabelsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. ID of the customer whose customer-label relationships are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on customer-label relationships. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerLabelsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerLabelsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerLabelsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on a customer-label relationship. - /// - public sealed partial class CustomerLabelOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerLabelOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerLabelServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerLabelOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerLabelOperation(CustomerLabelOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerLabelOperation Clone() { - return new CustomerLabelOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new customer-label - /// relationship. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the customer-label relationship - /// being removed, in this format: - /// - /// `customers/{customer_id}/customerLabels/{label_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerLabelOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerLabelOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerLabelOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a customer labels mutate. - /// - public sealed partial class MutateCustomerLabelsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerLabelsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerLabelServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelsResponse(MutateCustomerLabelsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelsResponse Clone() { - return new MutateCustomerLabelsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerLabelsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerLabelsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerLabelsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for a customer label mutate. - /// - public sealed partial class MutateCustomerLabelResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerLabelResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerLabelServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelResult(MutateCustomerLabelResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerLabelResult Clone() { - return new MutateCustomerLabelResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerLabelResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerLabelResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerLabelResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceClient.g.cs deleted file mode 100755 index 48dd7ddd8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceClient.g.cs +++ /dev/null @@ -1,458 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerLabelServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerLabelServiceSettings GetDefault() => new CustomerLabelServiceSettings(); - - /// Constructs a new object with default settings. - public CustomerLabelServiceSettings() - { - } - - private CustomerLabelServiceSettings(CustomerLabelServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerLabelsSettings = existing.MutateCustomerLabelsSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerLabelServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerLabelServiceClient.MutateCustomerLabels and - /// CustomerLabelServiceClient.MutateCustomerLabelsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerLabelsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerLabelServiceSettings Clone() => new CustomerLabelServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerLabelServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerLabelServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerLabelServiceClientBuilder() : base(CustomerLabelServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerLabelServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerLabelServiceClient Build() - { - CustomerLabelServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerLabelServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerLabelServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerLabelServiceClient.ChannelPool; - } - - /// CustomerLabelService client wrapper, for convenient use. - /// - /// Service to manage labels on customers. - /// - public abstract partial class CustomerLabelServiceClient - { - /// - /// The default endpoint for the CustomerLabelService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerLabelService scopes. - /// - /// The default CustomerLabelService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerLabelService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerLabelServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerLabelServiceClient Create() => new CustomerLabelServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerLabelServiceClient Create(grpccore::CallInvoker callInvoker, CustomerLabelServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerLabelService.CustomerLabelServiceClient grpcClient = new CustomerLabelService.CustomerLabelServiceClient(callInvoker); - return new CustomerLabelServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerLabelService client - public virtual CustomerLabelService.CustomerLabelServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerLabelsResponse MutateCustomerLabels(MutateCustomerLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerLabelsAsync(MutateCustomerLabelsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerLabelsAsync(MutateCustomerLabelsRequest request, st::CancellationToken cancellationToken) => - MutateCustomerLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose customer-label relationships are being modified. - /// - /// - /// Required. The list of operations to perform on customer-label relationships. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerLabelsResponse MutateCustomerLabels(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerLabels(new MutateCustomerLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose customer-label relationships are being modified. - /// - /// - /// Required. The list of operations to perform on customer-label relationships. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerLabelsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerLabelsAsync(new MutateCustomerLabelsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. ID of the customer whose customer-label relationships are being modified. - /// - /// - /// Required. The list of operations to perform on customer-label relationships. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerLabelsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerLabelsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerLabelService client wrapper implementation, for convenient use. - /// - /// Service to manage labels on customers. - /// - public sealed partial class CustomerLabelServiceClientImpl : CustomerLabelServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerLabels; - - /// - /// Constructs a client wrapper for the CustomerLabelService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CustomerLabelServiceClientImpl(CustomerLabelService.CustomerLabelServiceClient grpcClient, CustomerLabelServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerLabelServiceSettings effectiveSettings = settings ?? CustomerLabelServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerLabels = clientHelper.BuildApiCall("MutateCustomerLabels", grpcClient.MutateCustomerLabelsAsync, grpcClient.MutateCustomerLabels, effectiveSettings.MutateCustomerLabelsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerLabels); - Modify_MutateCustomerLabelsApiCall(ref _callMutateCustomerLabels); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerLabelsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerLabelService.CustomerLabelServiceClient grpcClient, CustomerLabelServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerLabelService client - public override CustomerLabelService.CustomerLabelServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerLabelsRequest(ref MutateCustomerLabelsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerLabelsResponse MutateCustomerLabels(MutateCustomerLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerLabelsRequest(ref request, ref callSettings); - return _callMutateCustomerLabels.Sync(request, callSettings); - } - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerLabelsAsync(MutateCustomerLabelsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerLabelsRequest(ref request, ref callSettings); - return _callMutateCustomerLabels.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceGrpc.g.cs deleted file mode 100755 index 1ded7976c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceGrpc.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_label_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage labels on customers. - /// - public static partial class CustomerLabelService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerLabelService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerLabelsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerLabelsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerLabels = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerLabels", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerLabelsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerLabelsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerLabelServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerLabelService - [grpc::BindServiceMethod(typeof(CustomerLabelService), "BindService")] - public abstract partial class CustomerLabelServiceBase - { - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerLabels(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerLabelService - public partial class CustomerLabelServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerLabelService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerLabelServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerLabelService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerLabelServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerLabelServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerLabelServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsResponse MutateCustomerLabels(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerLabels(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsResponse MutateCustomerLabels(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerLabels, null, options, request); - } - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerLabelsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates and removes customer-label relationships. - /// Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [HeaderError]() - /// [InternalError]() - /// [LabelError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerLabelsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerLabels, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerLabelServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerLabelServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerLabelServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerLabels, serviceImpl.MutateCustomerLabels).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerLabelServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerLabels, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerLabels)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceResourceNames.g.cs deleted file mode 100755 index 5fc09be90..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerLabelServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerLabelOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerLabelName RemoveAsCustomerLabelName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerLabelName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerLabelResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerLabelName ResourceNameAsCustomerLabelName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerLabelName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerManagerLink.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerManagerLink.g.cs deleted file mode 100755 index 5d299547d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerManagerLink.g.cs +++ /dev/null @@ -1,407 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_manager_link.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_manager_link.proto - public static partial class CustomerManagerLinkReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_manager_link.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerManagerLinkReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X21hbmFnZXJfbGluay5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL21h", - "bmFnZXJfbGlua19zdGF0dXMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVo", - "YXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i3AMKE0N1", - "c3RvbWVyTWFuYWdlckxpbmsSSwoNcmVzb3VyY2VfbmFtZRgBIAEoCUI04EEF", - "+kEuCixnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJNYW5hZ2Vy", - "TGluaxJIChBtYW5hZ2VyX2N1c3RvbWVyGAYgASgJQingQQP6QSMKIWdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lckgAiAEBEiEKD21hbmFnZXJf", - "bGlua19pZBgHIAEoA0ID4EEDSAGIAQESVwoGc3RhdHVzGAUgASgOMkcuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLk1hbmFnZXJMaW5rU3RhdHVz", - "RW51bS5NYW5hZ2VyTGlua1N0YXR1czqIAepBhAEKLGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9DdXN0b21lck1hbmFnZXJMaW5rElRjdXN0b21lcnMve2N1", - "c3RvbWVyX2lkfS9jdXN0b21lck1hbmFnZXJMaW5rcy97bWFuYWdlcl9jdXN0", - "b21lcl9pZH1+e21hbmFnZXJfbGlua19pZH1CEwoRX21hbmFnZXJfY3VzdG9t", - "ZXJCEgoQX21hbmFnZXJfbGlua19pZEKKAgomY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXNCGEN1c3RvbWVyTWFuYWdlckxpbmtQcm90", - "b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink), global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink.Parser, new[]{ "ResourceName", "ManagerCustomer", "ManagerLinkId", "Status" }, new[]{ "ManagerCustomer", "ManagerLinkId" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents customer-manager link relationship. - /// - public sealed partial class CustomerManagerLink : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerManagerLink()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLinkReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLink() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLink(CustomerManagerLink other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - managerCustomer_ = other.managerCustomer_; - managerLinkId_ = other.managerLinkId_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLink Clone() { - return new CustomerManagerLink(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. Name of the resource. - /// CustomerManagerLink resource names have the form: - /// `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "manager_customer" field. - public const int ManagerCustomerFieldNumber = 6; - private string managerCustomer_; - /// - /// Output only. The manager customer linked to the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ManagerCustomer { - get { return managerCustomer_ ?? ""; } - set { - managerCustomer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "manager_customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasManagerCustomer { - get { return managerCustomer_ != null; } - } - /// Clears the value of the "manager_customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearManagerCustomer() { - managerCustomer_ = null; - } - - /// Field number for the "manager_link_id" field. - public const int ManagerLinkIdFieldNumber = 7; - private long managerLinkId_; - /// - /// Output only. ID of the customer-manager link. This field is read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ManagerLinkId { - get { if ((_hasBits0 & 1) != 0) { return managerLinkId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - managerLinkId_ = value; - } - } - /// Gets whether the "manager_link_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasManagerLinkId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "manager_link_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearManagerLinkId() { - _hasBits0 &= ~1; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified; - /// - /// Status of the link between the customer and the manager. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerManagerLink); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerManagerLink other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ManagerCustomer != other.ManagerCustomer) return false; - if (ManagerLinkId != other.ManagerLinkId) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasManagerCustomer) hash ^= ManagerCustomer.GetHashCode(); - if (HasManagerLinkId) hash ^= ManagerLinkId.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasManagerCustomer) { - output.WriteRawTag(50); - output.WriteString(ManagerCustomer); - } - if (HasManagerLinkId) { - output.WriteRawTag(56); - output.WriteInt64(ManagerLinkId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (HasManagerCustomer) { - output.WriteRawTag(50); - output.WriteString(ManagerCustomer); - } - if (HasManagerLinkId) { - output.WriteRawTag(56); - output.WriteInt64(ManagerLinkId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasManagerCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ManagerCustomer); - } - if (HasManagerLinkId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ManagerLinkId); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerManagerLink other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasManagerCustomer) { - ManagerCustomer = other.ManagerCustomer; - } - if (other.HasManagerLinkId) { - ManagerLinkId = other.ManagerLinkId; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus) input.ReadEnum(); - break; - } - case 50: { - ManagerCustomer = input.ReadString(); - break; - } - case 56: { - ManagerLinkId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ManagerLinkStatusEnum.Types.ManagerLinkStatus) input.ReadEnum(); - break; - } - case 50: { - ManagerCustomer = input.ReadString(); - break; - } - case 56: { - ManagerLinkId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkError.g.cs deleted file mode 100755 index b60713644..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkError.g.cs +++ /dev/null @@ -1,277 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/customer_manager_link_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/customer_manager_link_error.proto - public static partial class CustomerManagerLinkErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/customer_manager_link_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerManagerLinkErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWVyX21h", - "bmFnZXJfbGlua19lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycyLQAwocQ3VzdG9tZXJNYW5hZ2VyTGlua0Vycm9yRW51bSKv", - "AwoYQ3VzdG9tZXJNYW5hZ2VyTGlua0Vycm9yEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEhUKEU5PX1BFTkRJTkdfSU5WSVRFEAISJwojU0FNRV9D", - "TElFTlRfTU9SRV9USEFOX09OQ0VfUEVSX0NBTEwQAxItCilNQU5BR0VSX0hB", - "U19NQVhfTlVNQkVSX09GX0xJTktFRF9BQ0NPVU5UUxAEEi0KKUNBTk5PVF9V", - "TkxJTktfQUNDT1VOVF9XSVRIT1VUX0FDVElWRV9VU0VSEAUSKwonQ0FOTk9U", - "X1JFTU9WRV9MQVNUX0NMSUVOVF9BQ0NPVU5UX09XTkVSEAYSKwonQ0FOTk9U", - "X0NIQU5HRV9ST0xFX0JZX05PTl9BQ0NPVU5UX09XTkVSEAcSMgouQ0FOTk9U", - "X0NIQU5HRV9ST0xFX0ZPUl9OT05fQUNUSVZFX0xJTktfQUNDT1VOVBAIEhkK", - "FURVUExJQ0FURV9DSElMRF9GT1VORBAJEi4KKlRFU1RfQUNDT1VOVF9MSU5L", - "U19UT09fTUFOWV9DSElMRF9BQ0NPVU5UUxAKQv0BCiNjb20uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVycm9yc0IdQ3VzdG9tZXJNYW5hZ2VyTGlua0Vy", - "cm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIf", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorEnum.Types.CustomerManagerLinkError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible CustomerManagerLink errors. - /// - public sealed partial class CustomerManagerLinkErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerManagerLinkErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLinkErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLinkErrorEnum(CustomerManagerLinkErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLinkErrorEnum Clone() { - return new CustomerManagerLinkErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerManagerLinkErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerManagerLinkErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerManagerLinkErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerManagerLinkErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible CustomerManagerLink errors. - /// - public enum CustomerManagerLinkError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// No pending invitation. - /// - [pbr::OriginalName("NO_PENDING_INVITE")] NoPendingInvite = 2, - /// - /// Attempt to operate on the same client more than once in the same call. - /// - [pbr::OriginalName("SAME_CLIENT_MORE_THAN_ONCE_PER_CALL")] SameClientMoreThanOncePerCall = 3, - /// - /// Manager account has the maximum number of linked accounts. - /// - [pbr::OriginalName("MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS")] ManagerHasMaxNumberOfLinkedAccounts = 4, - /// - /// If no active user on account it cannot be unlinked from its manager. - /// - [pbr::OriginalName("CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER")] CannotUnlinkAccountWithoutActiveUser = 5, - /// - /// Account should have at least one active owner on it before being - /// unlinked. - /// - [pbr::OriginalName("CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER")] CannotRemoveLastClientAccountOwner = 6, - /// - /// Only account owners may change their permission role. - /// - [pbr::OriginalName("CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER")] CannotChangeRoleByNonAccountOwner = 7, - /// - /// When a client's link to its manager is not active, the link role cannot - /// be changed. - /// - [pbr::OriginalName("CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT")] CannotChangeRoleForNonActiveLinkAccount = 8, - /// - /// Attempt to link a child to a parent that contains or will contain - /// duplicate children. - /// - [pbr::OriginalName("DUPLICATE_CHILD_FOUND")] DuplicateChildFound = 9, - /// - /// The authorized customer is a test account. It can add no more than the - /// allowed number of accounts - /// - [pbr::OriginalName("TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS")] TestAccountLinksTooManyChildAccounts = 10, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkResourceNames.g.cs deleted file mode 100755 index 5f8801184..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkResourceNames.g.cs +++ /dev/null @@ -1,321 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerManagerLink resource. - public sealed partial class CustomerManagerLinkName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}. - /// - CustomerManagerCustomerManagerLink = 1, - } - - private static gax::PathTemplate s_customerManagerCustomerManagerLink = new gax::PathTemplate("customers/{customer_id}/customerManagerLinks/{manager_customer_id_manager_link_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerManagerLinkName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerManagerLinkName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ManagerCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CustomerManagerLinkName FromCustomerManagerCustomerManagerLink(string customerId, string managerCustomerId, string managerLinkId) => - new CustomerManagerLinkName(ResourceNameType.CustomerManagerCustomerManagerLink, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), managerCustomerId: gax::GaxPreconditions.CheckNotNullOrEmpty(managerCustomerId, nameof(managerCustomerId)), managerLinkId: gax::GaxPreconditions.CheckNotNullOrEmpty(managerLinkId, nameof(managerLinkId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ManagerCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}. - /// - public static string Format(string customerId, string managerCustomerId, string managerLinkId) => - FormatCustomerManagerCustomerManagerLink(customerId, managerCustomerId, managerLinkId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The ManagerCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}. - /// - public static string FormatCustomerManagerCustomerManagerLink(string customerId, string managerCustomerId, string managerLinkId) => - s_customerManagerCustomerManagerLink.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(managerCustomerId, nameof(managerCustomerId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(managerLinkId, nameof(managerLinkId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerManagerLinkName Parse(string customerManagerLinkName) => Parse(customerManagerLinkName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerManagerLinkName Parse(string customerManagerLinkName, bool allowUnparsed) => - TryParse(customerManagerLinkName, allowUnparsed, out CustomerManagerLinkName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerManagerLinkName, out CustomerManagerLinkName result) => - TryParse(customerManagerLinkName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerManagerLinkName, bool allowUnparsed, out CustomerManagerLinkName result) - { - gax::GaxPreconditions.CheckNotNull(customerManagerLinkName, nameof(customerManagerLinkName)); - gax::TemplatedResourceName resourceName; - if (s_customerManagerCustomerManagerLink.TryParseName(customerManagerLinkName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerManagerCustomerManagerLink(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerManagerLinkName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private CustomerManagerLinkName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string managerCustomerId = null, string managerLinkId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - ManagerCustomerId = managerCustomerId; - ManagerLinkId = managerLinkId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id} - /// - /// The Customer ID. Must not be null or empty. - /// The ManagerCustomer ID. Must not be null or empty. - /// The ManagerLink ID. Must not be null or empty. - public CustomerManagerLinkName(string customerId, string managerCustomerId, string managerLinkId) : this(ResourceNameType.CustomerManagerCustomerManagerLink, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), managerCustomerId: gax::GaxPreconditions.CheckNotNullOrEmpty(managerCustomerId, nameof(managerCustomerId)), managerLinkId: gax::GaxPreconditions.CheckNotNullOrEmpty(managerLinkId, nameof(managerLinkId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ManagerCustomer ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ManagerCustomerId { get; } - - /// - /// The ManagerLink ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string ManagerLinkId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerManagerCustomerManagerLink: return s_customerManagerCustomerManagerLink.Expand(CustomerId, $"{ManagerCustomerId}~{ManagerLinkId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerManagerLinkName); - - /// - public bool Equals(CustomerManagerLinkName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerManagerLinkName a, CustomerManagerLinkName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerManagerLinkName a, CustomerManagerLinkName b) => !(a == b); - } - - public partial class CustomerManagerLink - { - /// - /// -typed view over the resource name property. - /// - internal CustomerManagerLinkName ResourceNameAsCustomerManagerLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerManagerLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CustomerName ManagerCustomerAsCustomerName - { - get => string.IsNullOrEmpty(ManagerCustomer) ? null : CustomerName.Parse(ManagerCustomer, allowUnparsed: true); - set => ManagerCustomer = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkService.g.cs deleted file mode 100755 index 2f9f50111..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkService.g.cs +++ /dev/null @@ -1,1543 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_manager_link_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_manager_link_service.proto - public static partial class CustomerManagerLinkServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_manager_link_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerManagerLinkServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "bWFuYWdlcl9saW5rX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcy9jdXN0b21lcl9tYW5hZ2VyX2xpbmsucHJvdG8aHGdvb2dsZS9h", - "cGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3Rv", - "Gh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBp", - "L3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5w", - "cm90byKtAQogTXV0YXRlQ3VzdG9tZXJNYW5hZ2VyTGlua1JlcXVlc3QSGAoL", - "Y3VzdG9tZXJfaWQYASABKAlCA+BBAhJYCgpvcGVyYXRpb25zGAIgAygLMj8u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkN1c3RvbWVyTWFu", - "YWdlckxpbmtPcGVyYXRpb25CA+BBAhIVCg12YWxpZGF0ZV9vbmx5GAMgASgI", - "IpABChZNb3ZlTWFuYWdlckxpbmtSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEg", - "ASgJQgPgQQISKwoecHJldmlvdXNfY3VzdG9tZXJfbWFuYWdlcl9saW5rGAIg", - "ASgJQgPgQQISGAoLbmV3X21hbmFnZXIYAyABKAlCA+BBAhIVCg12YWxpZGF0", - "ZV9vbmx5GAQgASgIIqcBChxDdXN0b21lck1hbmFnZXJMaW5rT3BlcmF0aW9u", - "Ei8KC3VwZGF0ZV9tYXNrGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxk", - "TWFzaxJJCgZ1cGRhdGUYAiABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkN1c3RvbWVyTWFuYWdlckxpbmtIAEILCglvcGVyYXRp", - "b24ieAohTXV0YXRlQ3VzdG9tZXJNYW5hZ2VyTGlua1Jlc3BvbnNlElMKB3Jl", - "c3VsdHMYASADKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuTXV0YXRlQ3VzdG9tZXJNYW5hZ2VyTGlua1Jlc3VsdCJjChdNb3ZlTWFu", - "YWdlckxpbmtSZXNwb25zZRJICg1yZXNvdXJjZV9uYW1lGAEgASgJQjH6QS4K", - "LGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lck1hbmFnZXJMaW5r", - "ImsKH011dGF0ZUN1c3RvbWVyTWFuYWdlckxpbmtSZXN1bHQSSAoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUIx+kEuCixnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q3VzdG9tZXJNYW5hZ2VyTGluazKBBQoaQ3VzdG9tZXJNYW5hZ2VyTGlua1Nl", - "cnZpY2UShgIKGU11dGF0ZUN1c3RvbWVyTWFuYWdlckxpbmsSQy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJNYW5h", - "Z2VyTGlua1JlcXVlc3QaRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlQ3VzdG9tZXJNYW5hZ2VyTGlua1Jlc3BvbnNlIl6C0+ST", - "Aj8iOi92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9jdXN0b21lck1h", - "bmFnZXJMaW5rczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25z", - "EpICCg9Nb3ZlTWFuYWdlckxpbmsSOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuTW92ZU1hbmFnZXJMaW5rUmVxdWVzdBo6Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Nb3ZlTWFuYWdlckxpbmtSZXNw", - "b25zZSKHAYLT5JMCSCJDL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9", - "L2N1c3RvbWVyTWFuYWdlckxpbmtzOm1vdmVNYW5hZ2VyTGluazoBKtpBNmN1", - "c3RvbWVyX2lkLHByZXZpb3VzX2N1c3RvbWVyX21hbmFnZXJfbGluayxuZXdf", - "bWFuYWdlchpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6", - "Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQosCCiVjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQh9DdXN0b21lck1hbmFn", - "ZXJMaW5rU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2Vy", - "dmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2Vydmlj", - "ZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLinkReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest.Parser, new[]{ "CustomerId", "Operations", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest), global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest.Parser, new[]{ "CustomerId", "PreviousCustomerManagerLink", "NewManager", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkOperation.Parser, new[]{ "UpdateMask", "Update" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResponse.Parser, new[]{ "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkResponse), global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkResponse.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v12.services.CustomerManagerLinkService.MutateCustomerManagerLink]. - /// - public sealed partial class MutateCustomerManagerLinkRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerManagerLinkRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkRequest(MutateCustomerManagerLinkRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkRequest Clone() { - return new MutateCustomerManagerLinkRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customer manager links are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customer manager links. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerManagerLinkRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerManagerLinkRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerManagerLinkRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [CustomerManagerLinkService.MoveManagerLink][google.ads.googleads.v12.services.CustomerManagerLinkService.MoveManagerLink]. - /// - public sealed partial class MoveManagerLinkRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveManagerLinkRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveManagerLinkRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveManagerLinkRequest(MoveManagerLinkRequest other) : this() { - customerId_ = other.customerId_; - previousCustomerManagerLink_ = other.previousCustomerManagerLink_; - newManager_ = other.newManager_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveManagerLinkRequest Clone() { - return new MoveManagerLinkRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the client customer that is being moved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "previous_customer_manager_link" field. - public const int PreviousCustomerManagerLinkFieldNumber = 2; - private string previousCustomerManagerLink_ = ""; - /// - /// Required. The resource name of the previous CustomerManagerLink. - /// The resource name has the form: - /// `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PreviousCustomerManagerLink { - get { return previousCustomerManagerLink_; } - set { - previousCustomerManagerLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "new_manager" field. - public const int NewManagerFieldNumber = 3; - private string newManager_ = ""; - /// - /// Required. The resource name of the new manager customer that the client wants to move - /// to. Customer resource names have the format: "customers/{customer_id}" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NewManager { - get { return newManager_; } - set { - newManager_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MoveManagerLinkRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MoveManagerLinkRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (PreviousCustomerManagerLink != other.PreviousCustomerManagerLink) return false; - if (NewManager != other.NewManager) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (PreviousCustomerManagerLink.Length != 0) hash ^= PreviousCustomerManagerLink.GetHashCode(); - if (NewManager.Length != 0) hash ^= NewManager.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (PreviousCustomerManagerLink.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PreviousCustomerManagerLink); - } - if (NewManager.Length != 0) { - output.WriteRawTag(26); - output.WriteString(NewManager); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (PreviousCustomerManagerLink.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PreviousCustomerManagerLink); - } - if (NewManager.Length != 0) { - output.WriteRawTag(26); - output.WriteString(NewManager); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (PreviousCustomerManagerLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PreviousCustomerManagerLink); - } - if (NewManager.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NewManager); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MoveManagerLinkRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.PreviousCustomerManagerLink.Length != 0) { - PreviousCustomerManagerLink = other.PreviousCustomerManagerLink; - } - if (other.NewManager.Length != 0) { - NewManager = other.NewManager; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - PreviousCustomerManagerLink = input.ReadString(); - break; - } - case 26: { - NewManager = input.ReadString(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - PreviousCustomerManagerLink = input.ReadString(); - break; - } - case 26: { - NewManager = input.ReadString(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Updates the status of a CustomerManagerLink. - /// The following actions are possible: - /// 1. Update operation with status ACTIVE accepts a pending invitation. - /// 2. Update operation with status REFUSED declines a pending invitation. - /// 3. Update operation with status INACTIVE terminates link to manager. - /// - public sealed partial class CustomerManagerLinkOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerManagerLinkOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLinkOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLinkOperation(CustomerManagerLinkOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerManagerLinkOperation Clone() { - return new CustomerManagerLinkOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The link is expected to have a valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Update = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerManagerLinkOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerManagerLinkOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerManagerLinkOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink(); - } - Update.MergeFrom(other.Update); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a CustomerManagerLink mutate. - /// - public sealed partial class MutateCustomerManagerLinkResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerManagerLinkResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkResponse(MutateCustomerManagerLinkResponse other) : this() { - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkResponse Clone() { - return new MutateCustomerManagerLinkResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// A result that identifies the resource affected by the mutate request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerManagerLinkResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerManagerLinkResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerManagerLinkResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a CustomerManagerLink moveManagerLink. - /// - public sealed partial class MoveManagerLinkResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MoveManagerLinkResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveManagerLinkResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveManagerLinkResponse(MoveManagerLinkResponse other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MoveManagerLinkResponse Clone() { - return new MoveManagerLinkResponse(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. Represents a CustomerManagerLink - /// resource of the newly created link between client customer and new manager - /// customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MoveManagerLinkResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MoveManagerLinkResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MoveManagerLinkResponse other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer manager link mutate. - /// - public sealed partial class MutateCustomerManagerLinkResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerManagerLinkResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkResult(MutateCustomerManagerLinkResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerManagerLinkResult Clone() { - return new MutateCustomerManagerLinkResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerManagerLinkResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerManagerLinkResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerManagerLinkResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceClient.g.cs deleted file mode 100755 index 24935e525..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceClient.g.cs +++ /dev/null @@ -1,743 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerManagerLinkServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerManagerLinkServiceSettings GetDefault() => new CustomerManagerLinkServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerManagerLinkServiceSettings() - { - } - - private CustomerManagerLinkServiceSettings(CustomerManagerLinkServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerManagerLinkSettings = existing.MutateCustomerManagerLinkSettings; - MoveManagerLinkSettings = existing.MoveManagerLinkSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerManagerLinkServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerManagerLinkServiceClient.MutateCustomerManagerLink and - /// CustomerManagerLinkServiceClient.MutateCustomerManagerLinkAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerManagerLinkSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// CustomerManagerLinkServiceClient.MoveManagerLink and - /// CustomerManagerLinkServiceClient.MoveManagerLinkAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MoveManagerLinkSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerManagerLinkServiceSettings Clone() => new CustomerManagerLinkServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerManagerLinkServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerManagerLinkServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerManagerLinkServiceClientBuilder() : base(CustomerManagerLinkServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerManagerLinkServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerManagerLinkServiceClient Build() - { - CustomerManagerLinkServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerManagerLinkServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerManagerLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerManagerLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerManagerLinkServiceClient.ChannelPool; - } - - /// CustomerManagerLinkService client wrapper, for convenient use. - /// - /// Service to manage customer-manager links. - /// - public abstract partial class CustomerManagerLinkServiceClient - { - /// - /// The default endpoint for the CustomerManagerLinkService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerManagerLinkService scopes. - /// - /// The default CustomerManagerLinkService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerManagerLinkService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerManagerLinkServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerManagerLinkServiceClient Create() => new CustomerManagerLinkServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerManagerLinkServiceClient Create(grpccore::CallInvoker callInvoker, CustomerManagerLinkServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerManagerLinkService.CustomerManagerLinkServiceClient grpcClient = new CustomerManagerLinkService.CustomerManagerLinkServiceClient(callInvoker); - return new CustomerManagerLinkServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerManagerLinkService client - public virtual CustomerManagerLinkService.CustomerManagerLinkServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerManagerLinkResponse MutateCustomerManagerLink(MutateCustomerManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerManagerLinkAsync(MutateCustomerManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerManagerLinkAsync(MutateCustomerManagerLinkRequest request, st::CancellationToken cancellationToken) => - MutateCustomerManagerLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer manager links are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer manager links. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerManagerLinkResponse MutateCustomerManagerLink(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerManagerLink(new MutateCustomerManagerLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer manager links are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer manager links. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerManagerLinkAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerManagerLinkAsync(new MutateCustomerManagerLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose customer manager links are being modified. - /// - /// - /// Required. The list of operations to perform on individual customer manager links. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerManagerLinkAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerManagerLinkAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MoveManagerLinkResponse MoveManagerLink(MoveManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MoveManagerLinkAsync(MoveManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MoveManagerLinkAsync(MoveManagerLinkRequest request, st::CancellationToken cancellationToken) => - MoveManagerLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the client customer that is being moved. - /// - /// - /// Required. The resource name of the previous CustomerManagerLink. - /// The resource name has the form: - /// `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - /// - /// - /// Required. The resource name of the new manager customer that the client wants to move - /// to. Customer resource names have the format: "customers/{customer_id}" - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MoveManagerLinkResponse MoveManagerLink(string customerId, string previousCustomerManagerLink, string newManager, gaxgrpc::CallSettings callSettings = null) => - MoveManagerLink(new MoveManagerLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - PreviousCustomerManagerLink = gax::GaxPreconditions.CheckNotNullOrEmpty(previousCustomerManagerLink, nameof(previousCustomerManagerLink)), - NewManager = gax::GaxPreconditions.CheckNotNullOrEmpty(newManager, nameof(newManager)), - }, callSettings); - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the client customer that is being moved. - /// - /// - /// Required. The resource name of the previous CustomerManagerLink. - /// The resource name has the form: - /// `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - /// - /// - /// Required. The resource name of the new manager customer that the client wants to move - /// to. Customer resource names have the format: "customers/{customer_id}" - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MoveManagerLinkAsync(string customerId, string previousCustomerManagerLink, string newManager, gaxgrpc::CallSettings callSettings = null) => - MoveManagerLinkAsync(new MoveManagerLinkRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - PreviousCustomerManagerLink = gax::GaxPreconditions.CheckNotNullOrEmpty(previousCustomerManagerLink, nameof(previousCustomerManagerLink)), - NewManager = gax::GaxPreconditions.CheckNotNullOrEmpty(newManager, nameof(newManager)), - }, callSettings); - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the client customer that is being moved. - /// - /// - /// Required. The resource name of the previous CustomerManagerLink. - /// The resource name has the form: - /// `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - /// - /// - /// Required. The resource name of the new manager customer that the client wants to move - /// to. Customer resource names have the format: "customers/{customer_id}" - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MoveManagerLinkAsync(string customerId, string previousCustomerManagerLink, string newManager, st::CancellationToken cancellationToken) => - MoveManagerLinkAsync(customerId, previousCustomerManagerLink, newManager, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerManagerLinkService client wrapper implementation, for convenient use. - /// - /// Service to manage customer-manager links. - /// - public sealed partial class CustomerManagerLinkServiceClientImpl : CustomerManagerLinkServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerManagerLink; - - private readonly gaxgrpc::ApiCall _callMoveManagerLink; - - /// - /// Constructs a client wrapper for the CustomerManagerLinkService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerManagerLinkServiceClientImpl(CustomerManagerLinkService.CustomerManagerLinkServiceClient grpcClient, CustomerManagerLinkServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerManagerLinkServiceSettings effectiveSettings = settings ?? CustomerManagerLinkServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerManagerLink = clientHelper.BuildApiCall("MutateCustomerManagerLink", grpcClient.MutateCustomerManagerLinkAsync, grpcClient.MutateCustomerManagerLink, effectiveSettings.MutateCustomerManagerLinkSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerManagerLink); - Modify_MutateCustomerManagerLinkApiCall(ref _callMutateCustomerManagerLink); - _callMoveManagerLink = clientHelper.BuildApiCall("MoveManagerLink", grpcClient.MoveManagerLinkAsync, grpcClient.MoveManagerLink, effectiveSettings.MoveManagerLinkSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMoveManagerLink); - Modify_MoveManagerLinkApiCall(ref _callMoveManagerLink); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerManagerLinkApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_MoveManagerLinkApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerManagerLinkService.CustomerManagerLinkServiceClient grpcClient, CustomerManagerLinkServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerManagerLinkService client - public override CustomerManagerLinkService.CustomerManagerLinkServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerManagerLinkRequest(ref MutateCustomerManagerLinkRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_MoveManagerLinkRequest(ref MoveManagerLinkRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerManagerLinkResponse MutateCustomerManagerLink(MutateCustomerManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerManagerLinkRequest(ref request, ref callSettings); - return _callMutateCustomerManagerLink.Sync(request, callSettings); - } - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerManagerLinkAsync(MutateCustomerManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerManagerLinkRequest(ref request, ref callSettings); - return _callMutateCustomerManagerLink.Async(request, callSettings); - } - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MoveManagerLinkResponse MoveManagerLink(MoveManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MoveManagerLinkRequest(ref request, ref callSettings); - return _callMoveManagerLink.Sync(request, callSettings); - } - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MoveManagerLinkAsync(MoveManagerLinkRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MoveManagerLinkRequest(ref request, ref callSettings); - return _callMoveManagerLink.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceGrpc.g.cs deleted file mode 100755 index cea52c1d8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceGrpc.g.cs +++ /dev/null @@ -1,421 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_manager_link_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer-manager links. - /// - public static partial class CustomerManagerLinkService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerManagerLinkService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerManagerLinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerManagerLinkResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MoveManagerLinkRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MoveManagerLinkResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerManagerLink = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerManagerLink", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerManagerLinkRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerManagerLinkResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MoveManagerLink = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MoveManagerLink", - __Marshaller_google_ads_googleads_v12_services_MoveManagerLinkRequest, - __Marshaller_google_ads_googleads_v12_services_MoveManagerLinkResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerManagerLinkServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerManagerLinkService - [grpc::BindServiceMethod(typeof(CustomerManagerLinkService), "BindService")] - public abstract partial class CustomerManagerLinkServiceBase - { - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerManagerLink(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MoveManagerLink(global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerManagerLinkService - public partial class CustomerManagerLinkServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerManagerLinkService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerManagerLinkServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerManagerLinkService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerManagerLinkServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerManagerLinkServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerManagerLinkServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResponse MutateCustomerManagerLink(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerManagerLink(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkResponse MutateCustomerManagerLink(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerManagerLink, null, options, request); - } - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerManagerLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerManagerLinkAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates customer manager links. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerManagerLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerManagerLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerManagerLink, null, options, request); - } - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkResponse MoveManagerLink(global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MoveManagerLink(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkResponse MoveManagerLink(global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MoveManagerLink, null, options, request); - } - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MoveManagerLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MoveManagerLinkAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Moves a client customer to a new manager customer. - /// This simplifies the complex request that requires two operations to move - /// a client customer to a new manager, for example: - /// 1. Update operation with Status INACTIVE (previous manager) and, - /// 2. Update operation with Status ACTIVE (new manager). - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MoveManagerLinkAsync(global::Google.Ads.GoogleAds.V12.Services.MoveManagerLinkRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MoveManagerLink, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerManagerLinkServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerManagerLinkServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerManagerLinkServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerManagerLink, serviceImpl.MutateCustomerManagerLink) - .AddMethod(__Method_MoveManagerLink, serviceImpl.MoveManagerLink).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerManagerLinkServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerManagerLink, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerManagerLink)); - serviceBinder.AddMethod(__Method_MoveManagerLink, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MoveManagerLink)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceResourceNames.g.cs deleted file mode 100755 index c6a9eb8bb..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerManagerLinkServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class MoveManagerLinkResponse - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerManagerLinkName ResourceNameAsCustomerManagerLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerManagerLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerManagerLinkResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerManagerLinkName ResourceNameAsCustomerManagerLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerManagerLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerMatchUploadKeyType.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerMatchUploadKeyType.g.cs deleted file mode 100755 index 7fa984f26..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerMatchUploadKeyType.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/customer_match_upload_key_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/customer_match_upload_key_type.proto - public static partial class CustomerMatchUploadKeyTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/customer_match_upload_key_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerMatchUploadKeyTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tZXJfbWF0", - "Y2hfdXBsb2FkX2tleV90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMilQEKHkN1c3RvbWVyTWF0Y2hVcGxvYWRLZXlUeXBlRW51", - "bSJzChpDdXN0b21lck1hdGNoVXBsb2FkS2V5VHlwZRIPCgtVTlNQRUNJRklF", - "RBAAEgsKB1VOS05PV04QARIQCgxDT05UQUNUX0lORk8QAhIKCgZDUk1fSUQQ", - "AxIZChVNT0JJTEVfQURWRVJUSVNJTkdfSUQQBEL5AQoiY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IfQ3VzdG9tZXJNYXRjaFVwbG9hZEtl", - "eVR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIe", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomerMatchUploadKeyTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomerMatchUploadKeyTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomerMatchUploadKeyTypeEnum.Types.CustomerMatchUploadKeyType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Indicates what type of data are the user list's members matched from. - /// - public sealed partial class CustomerMatchUploadKeyTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerMatchUploadKeyTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomerMatchUploadKeyTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerMatchUploadKeyTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerMatchUploadKeyTypeEnum(CustomerMatchUploadKeyTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerMatchUploadKeyTypeEnum Clone() { - return new CustomerMatchUploadKeyTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerMatchUploadKeyTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerMatchUploadKeyTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerMatchUploadKeyTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerMatchUploadKeyTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible customer match upload key types. - /// - public enum CustomerMatchUploadKeyType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Members are matched from customer info such as email address, phone - /// number or physical address. - /// - [pbr::OriginalName("CONTACT_INFO")] ContactInfo = 2, - /// - /// Members are matched from a user id generated and assigned by the - /// advertiser. - /// - [pbr::OriginalName("CRM_ID")] CrmId = 3, - /// - /// Members are matched from mobile advertising ids. - /// - [pbr::OriginalName("MOBILE_ADVERTISING_ID")] MobileAdvertisingId = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterion.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterion.g.cs deleted file mode 100755 index 54b82704c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterion.g.cs +++ /dev/null @@ -1,729 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_negative_criterion.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_negative_criterion.proto - public static partial class CustomerNegativeCriterionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_negative_criterion.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerNegativeCriterionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X25lZ2F0aXZlX2NyaXRlcmlvbi5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Nv", - "bW1vbi9jcml0ZXJpYS5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zL2NyaXRlcmlvbl90eXBlLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxk", - "X2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIt4G", - "ChlDdXN0b21lck5lZ2F0aXZlQ3JpdGVyaW9uElEKDXJlc291cmNlX25hbWUY", - "ASABKAlCOuBBBfpBNAoyZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3Rv", - "bWVyTmVnYXRpdmVDcml0ZXJpb24SFAoCaWQYCiABKANCA+BBA0gBiAEBElIK", - "BHR5cGUYAyABKA4yPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMu", - "Q3JpdGVyaW9uVHlwZUVudW0uQ3JpdGVyaW9uVHlwZUID4EEDEk8KDWNvbnRl", - "bnRfbGFiZWwYBCABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLkNvbnRlbnRMYWJlbEluZm9CA+BBBUgAElkKEm1vYmlsZV9hcHBsaWNh", - "dGlvbhgFIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24u", - "TW9iaWxlQXBwbGljYXRpb25JbmZvQgPgQQVIABJaChNtb2JpbGVfYXBwX2Nh", - "dGVnb3J5GAYgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5Nb2JpbGVBcHBDYXRlZ29yeUluZm9CA+BBBUgAEkgKCXBsYWNlbWVudBgH", - "IAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUGxhY2Vt", - "ZW50SW5mb0ID4EEFSAASTwoNeW91dHViZV92aWRlbxgIIAEoCzIxLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uWW91VHViZVZpZGVvSW5mb0ID", - "4EEFSAASUwoPeW91dHViZV9jaGFubmVsGAkgASgLMjMuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmNvbW1vbi5Zb3VUdWJlQ2hhbm5lbEluZm9CA+BBBUgA", - "OnjqQXUKMmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lck5lZ2F0", - "aXZlQ3JpdGVyaW9uEj9jdXN0b21lcnMve2N1c3RvbWVyX2lkfS9jdXN0b21l", - "ck5lZ2F0aXZlQ3JpdGVyaWEve2NyaXRlcmlvbl9pZH1CCwoJY3JpdGVyaW9u", - "QgUKA19pZEKQAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXNCHkN1c3RvbWVyTmVnYXRpdmVDcml0ZXJpb25Qcm90b1ABWktnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion), global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion.Parser, new[]{ "ResourceName", "Id", "Type", "ContentLabel", "MobileApplication", "MobileAppCategory", "Placement", "YoutubeVideo", "YoutubeChannel" }, new[]{ "Criterion", "Id" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A negative criterion for exclusions at the customer level. - /// - public sealed partial class CustomerNegativeCriterion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerNegativeCriterion()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerNegativeCriterion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerNegativeCriterion(CustomerNegativeCriterion other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - type_ = other.type_; - switch (other.CriterionCase) { - case CriterionOneofCase.ContentLabel: - ContentLabel = other.ContentLabel.Clone(); - break; - case CriterionOneofCase.MobileApplication: - MobileApplication = other.MobileApplication.Clone(); - break; - case CriterionOneofCase.MobileAppCategory: - MobileAppCategory = other.MobileAppCategory.Clone(); - break; - case CriterionOneofCase.Placement: - Placement = other.Placement.Clone(); - break; - case CriterionOneofCase.YoutubeVideo: - YoutubeVideo = other.YoutubeVideo.Clone(); - break; - case CriterionOneofCase.YoutubeChannel: - YoutubeChannel = other.YoutubeChannel.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerNegativeCriterion Clone() { - return new CustomerNegativeCriterion(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customer negative criterion. - /// Customer negative criterion resource names have the form: - /// - /// `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 10; - private long id_; - /// - /// Output only. The ID of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType type_ = global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified; - /// - /// Output only. The type of the criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "content_label" field. - public const int ContentLabelFieldNumber = 4; - /// - /// Immutable. ContentLabel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo ContentLabel { - get { return criterionCase_ == CriterionOneofCase.ContentLabel ? (global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.ContentLabel; - } - } - - /// Field number for the "mobile_application" field. - public const int MobileApplicationFieldNumber = 5; - /// - /// Immutable. MobileApplication. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo MobileApplication { - get { return criterionCase_ == CriterionOneofCase.MobileApplication ? (global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.MobileApplication; - } - } - - /// Field number for the "mobile_app_category" field. - public const int MobileAppCategoryFieldNumber = 6; - /// - /// Immutable. MobileAppCategory. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo MobileAppCategory { - get { return criterionCase_ == CriterionOneofCase.MobileAppCategory ? (global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.MobileAppCategory; - } - } - - /// Field number for the "placement" field. - public const int PlacementFieldNumber = 7; - /// - /// Immutable. Placement. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PlacementInfo Placement { - get { return criterionCase_ == CriterionOneofCase.Placement ? (global::Google.Ads.GoogleAds.V12.Common.PlacementInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.Placement; - } - } - - /// Field number for the "youtube_video" field. - public const int YoutubeVideoFieldNumber = 8; - /// - /// Immutable. YouTube Video. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo YoutubeVideo { - get { return criterionCase_ == CriterionOneofCase.YoutubeVideo ? (global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.YoutubeVideo; - } - } - - /// Field number for the "youtube_channel" field. - public const int YoutubeChannelFieldNumber = 9; - /// - /// Immutable. YouTube Channel. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo YoutubeChannel { - get { return criterionCase_ == CriterionOneofCase.YoutubeChannel ? (global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo) criterion_ : null; } - set { - criterion_ = value; - criterionCase_ = value == null ? CriterionOneofCase.None : CriterionOneofCase.YoutubeChannel; - } - } - - private object criterion_; - /// Enum of possible cases for the "criterion" oneof. - public enum CriterionOneofCase { - None = 0, - ContentLabel = 4, - MobileApplication = 5, - MobileAppCategory = 6, - Placement = 7, - YoutubeVideo = 8, - YoutubeChannel = 9, - } - private CriterionOneofCase criterionCase_ = CriterionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CriterionOneofCase CriterionCase { - get { return criterionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCriterion() { - criterionCase_ = CriterionOneofCase.None; - criterion_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerNegativeCriterion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerNegativeCriterion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Type != other.Type) return false; - if (!object.Equals(ContentLabel, other.ContentLabel)) return false; - if (!object.Equals(MobileApplication, other.MobileApplication)) return false; - if (!object.Equals(MobileAppCategory, other.MobileAppCategory)) return false; - if (!object.Equals(Placement, other.Placement)) return false; - if (!object.Equals(YoutubeVideo, other.YoutubeVideo)) return false; - if (!object.Equals(YoutubeChannel, other.YoutubeChannel)) return false; - if (CriterionCase != other.CriterionCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) hash ^= Type.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.ContentLabel) hash ^= ContentLabel.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) hash ^= MobileApplication.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) hash ^= MobileAppCategory.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.Placement) hash ^= Placement.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) hash ^= YoutubeVideo.GetHashCode(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) hash ^= YoutubeChannel.GetHashCode(); - hash ^= (int) criterionCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - output.WriteRawTag(34); - output.WriteMessage(ContentLabel); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - output.WriteRawTag(42); - output.WriteMessage(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - output.WriteRawTag(50); - output.WriteMessage(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - output.WriteRawTag(58); - output.WriteMessage(Placement); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - output.WriteRawTag(66); - output.WriteMessage(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - output.WriteRawTag(74); - output.WriteMessage(YoutubeChannel); - } - if (HasId) { - output.WriteRawTag(80); - output.WriteInt64(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - output.WriteRawTag(34); - output.WriteMessage(ContentLabel); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - output.WriteRawTag(42); - output.WriteMessage(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - output.WriteRawTag(50); - output.WriteMessage(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - output.WriteRawTag(58); - output.WriteMessage(Placement); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - output.WriteRawTag(66); - output.WriteMessage(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - output.WriteRawTag(74); - output.WriteMessage(YoutubeChannel); - } - if (HasId) { - output.WriteRawTag(80); - output.WriteInt64(Id); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContentLabel); - } - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MobileApplication); - } - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MobileAppCategory); - } - if (criterionCase_ == CriterionOneofCase.Placement) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Placement); - } - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YoutubeVideo); - } - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YoutubeChannel); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerNegativeCriterion other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType.Unspecified) { - Type = other.Type; - } - switch (other.CriterionCase) { - case CriterionOneofCase.ContentLabel: - if (ContentLabel == null) { - ContentLabel = new global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo(); - } - ContentLabel.MergeFrom(other.ContentLabel); - break; - case CriterionOneofCase.MobileApplication: - if (MobileApplication == null) { - MobileApplication = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - } - MobileApplication.MergeFrom(other.MobileApplication); - break; - case CriterionOneofCase.MobileAppCategory: - if (MobileAppCategory == null) { - MobileAppCategory = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - } - MobileAppCategory.MergeFrom(other.MobileAppCategory); - break; - case CriterionOneofCase.Placement: - if (Placement == null) { - Placement = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - } - Placement.MergeFrom(other.Placement); - break; - case CriterionOneofCase.YoutubeVideo: - if (YoutubeVideo == null) { - YoutubeVideo = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - } - YoutubeVideo.MergeFrom(other.YoutubeVideo); - break; - case CriterionOneofCase.YoutubeChannel: - if (YoutubeChannel == null) { - YoutubeChannel = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - } - YoutubeChannel.MergeFrom(other.YoutubeChannel); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType) input.ReadEnum(); - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo(); - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - subBuilder.MergeFrom(ContentLabel); - } - input.ReadMessage(subBuilder); - ContentLabel = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - subBuilder.MergeFrom(MobileApplication); - } - input.ReadMessage(subBuilder); - MobileApplication = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - subBuilder.MergeFrom(MobileAppCategory); - } - input.ReadMessage(subBuilder); - MobileAppCategory = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - if (criterionCase_ == CriterionOneofCase.Placement) { - subBuilder.MergeFrom(Placement); - } - input.ReadMessage(subBuilder); - Placement = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - subBuilder.MergeFrom(YoutubeVideo); - } - input.ReadMessage(subBuilder); - YoutubeVideo = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - case 80: { - Id = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CriterionTypeEnum.Types.CriterionType) input.ReadEnum(); - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ContentLabelInfo(); - if (criterionCase_ == CriterionOneofCase.ContentLabel) { - subBuilder.MergeFrom(ContentLabel); - } - input.ReadMessage(subBuilder); - ContentLabel = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileApplicationInfo(); - if (criterionCase_ == CriterionOneofCase.MobileApplication) { - subBuilder.MergeFrom(MobileApplication); - } - input.ReadMessage(subBuilder); - MobileApplication = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.MobileAppCategoryInfo(); - if (criterionCase_ == CriterionOneofCase.MobileAppCategory) { - subBuilder.MergeFrom(MobileAppCategory); - } - input.ReadMessage(subBuilder); - MobileAppCategory = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.PlacementInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PlacementInfo(); - if (criterionCase_ == CriterionOneofCase.Placement) { - subBuilder.MergeFrom(Placement); - } - input.ReadMessage(subBuilder); - Placement = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeVideoInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeVideo) { - subBuilder.MergeFrom(YoutubeVideo); - } - input.ReadMessage(subBuilder); - YoutubeVideo = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.YouTubeChannelInfo(); - if (criterionCase_ == CriterionOneofCase.YoutubeChannel) { - subBuilder.MergeFrom(YoutubeChannel); - } - input.ReadMessage(subBuilder); - YoutubeChannel = subBuilder; - break; - } - case 80: { - Id = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionService.g.cs deleted file mode 100755 index 03a347055..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionService.g.cs +++ /dev/null @@ -1,1204 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_negative_criterion_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_negative_criterion_service.proto - public static partial class CustomerNegativeCriterionServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_negative_criterion_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerNegativeCriterionServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cktnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "bmVnYXRpdmVfY3JpdGVyaW9uX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL3Jlc3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxpEZ29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jdXN0b21lcl9uZWdhdGl2", - "ZV9jcml0ZXJpb24ucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJv", - "dG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxk", - "X2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvGhdn", - "b29nbGUvcnBjL3N0YXR1cy5wcm90byK9AgolTXV0YXRlQ3VzdG9tZXJOZWdh", - "dGl2ZUNyaXRlcmlhUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EEC", - "El4KCm9wZXJhdGlvbnMYAiADKAsyRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuQ3VzdG9tZXJOZWdhdGl2ZUNyaXRlcmlvbk9wZXJhdGlv", - "bkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9v", - "bmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgFIAEoDjJLLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNwb25zZUNvbnRlbnRU", - "eXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIs0BCiJDdXN0b21lck5lZ2F0", - "aXZlQ3JpdGVyaW9uT3BlcmF0aW9uEk8KBmNyZWF0ZRgBIAEoCzI9Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXJOZWdhdGl2", - "ZUNyaXRlcmlvbkgAEkkKBnJlbW92ZRgCIAEoCUI3+kE0CjJnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJOZWdhdGl2ZUNyaXRlcmlvbkgAQgsK", - "CW9wZXJhdGlvbiK1AQomTXV0YXRlQ3VzdG9tZXJOZWdhdGl2ZUNyaXRlcmlh", - "UmVzcG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgLMhIuZ29v", - "Z2xlLnJwYy5TdGF0dXMSWAoHcmVzdWx0cxgCIAMoCzJHLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lck5lZ2F0aXZl", - "Q3JpdGVyaWFSZXN1bHQi2gEKJE11dGF0ZUN1c3RvbWVyTmVnYXRpdmVDcml0", - "ZXJpYVJlc3VsdBJOCg1yZXNvdXJjZV9uYW1lGAEgASgJQjf6QTQKMmdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lck5lZ2F0aXZlQ3JpdGVyaW9u", - "EmIKG2N1c3RvbWVyX25lZ2F0aXZlX2NyaXRlcmlvbhgCIAEoCzI9Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXJOZWdhdGl2", - "ZUNyaXRlcmlvbjKFAwogQ3VzdG9tZXJOZWdhdGl2ZUNyaXRlcmlvblNlcnZp", - "Y2USmQIKHk11dGF0ZUN1c3RvbWVyTmVnYXRpdmVDcml0ZXJpYRJILmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lck5l", - "Z2F0aXZlQ3JpdGVyaWFSZXF1ZXN0GkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyTmVnYXRpdmVDcml0ZXJpYVJl", - "c3BvbnNlImKC0+STAkMiPi92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0q", - "fS9jdXN0b21lck5lZ2F0aXZlQ3JpdGVyaWE6bXV0YXRlOgEq2kEWY3VzdG9t", - "ZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQpEC", - "CiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQiVDdXN0", - "b21lck5lZ2F0aXZlQ3JpdGVyaW9uU2VydmljZVByb3RvUAFaSWdvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2ds", - "ZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "U2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZp", - "Y2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterionReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult.Parser, new[]{ "ResourceName", "CustomerNegativeCriterion" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CustomerNegativeCriterionService.MutateCustomerNegativeCriteria][google.ads.googleads.v12.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria]. - /// - public sealed partial class MutateCustomerNegativeCriteriaRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerNegativeCriteriaRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaRequest(MutateCustomerNegativeCriteriaRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaRequest Clone() { - return new MutateCustomerNegativeCriteriaRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual criteria. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerNegativeCriteriaRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerNegativeCriteriaRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerNegativeCriteriaRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create or remove) on a customer level negative criterion. - /// - public sealed partial class CustomerNegativeCriterionOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerNegativeCriterionOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerNegativeCriterionOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerNegativeCriterionOperation(CustomerNegativeCriterionOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerNegativeCriterionOperation Clone() { - return new CustomerNegativeCriterionOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new criterion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed criterion is expected, - /// in this format: - /// - /// `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerNegativeCriterionOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerNegativeCriterionOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerNegativeCriterionOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for customer negative criterion mutate. - /// - public sealed partial class MutateCustomerNegativeCriteriaResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerNegativeCriteriaResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaResponse(MutateCustomerNegativeCriteriaResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaResponse Clone() { - return new MutateCustomerNegativeCriteriaResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerNegativeCriteriaResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerNegativeCriteriaResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerNegativeCriteriaResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the criterion mutate. - /// - public sealed partial class MutateCustomerNegativeCriteriaResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerNegativeCriteriaResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaResult(MutateCustomerNegativeCriteriaResult other) : this() { - resourceName_ = other.resourceName_; - customerNegativeCriterion_ = other.customerNegativeCriterion_ != null ? other.customerNegativeCriterion_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerNegativeCriteriaResult Clone() { - return new MutateCustomerNegativeCriteriaResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_negative_criterion" field. - public const int CustomerNegativeCriterionFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion customerNegativeCriterion_; - /// - /// The mutated criterion with only mutable fields after mutate. The field will - /// only be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion CustomerNegativeCriterion { - get { return customerNegativeCriterion_; } - set { - customerNegativeCriterion_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerNegativeCriteriaResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerNegativeCriteriaResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomerNegativeCriterion, other.CustomerNegativeCriterion)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customerNegativeCriterion_ != null) hash ^= CustomerNegativeCriterion.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerNegativeCriterion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerNegativeCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customerNegativeCriterion_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerNegativeCriterion); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customerNegativeCriterion_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerNegativeCriterion); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerNegativeCriteriaResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customerNegativeCriterion_ != null) { - if (customerNegativeCriterion_ == null) { - CustomerNegativeCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - } - CustomerNegativeCriterion.MergeFrom(other.CustomerNegativeCriterion); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerNegativeCriterion_ == null) { - CustomerNegativeCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - } - input.ReadMessage(CustomerNegativeCriterion); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customerNegativeCriterion_ == null) { - CustomerNegativeCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - } - input.ReadMessage(CustomerNegativeCriterion); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceClient.g.cs deleted file mode 100755 index 0d1a93703..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceClient.g.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerNegativeCriterionServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerNegativeCriterionServiceSettings GetDefault() => new CustomerNegativeCriterionServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerNegativeCriterionServiceSettings() - { - } - - private CustomerNegativeCriterionServiceSettings(CustomerNegativeCriterionServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerNegativeCriteriaSettings = existing.MutateCustomerNegativeCriteriaSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerNegativeCriterionServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerNegativeCriterionServiceClient.MutateCustomerNegativeCriteria and - /// CustomerNegativeCriterionServiceClient.MutateCustomerNegativeCriteriaAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerNegativeCriteriaSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerNegativeCriterionServiceSettings Clone() => new CustomerNegativeCriterionServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class CustomerNegativeCriterionServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerNegativeCriterionServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerNegativeCriterionServiceClientBuilder() : base(CustomerNegativeCriterionServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerNegativeCriterionServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerNegativeCriterionServiceClient Build() - { - CustomerNegativeCriterionServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerNegativeCriterionServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerNegativeCriterionServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerNegativeCriterionServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerNegativeCriterionServiceClient.ChannelPool; - } - - /// CustomerNegativeCriterionService client wrapper, for convenient use. - /// - /// Service to manage customer negative criteria. - /// - public abstract partial class CustomerNegativeCriterionServiceClient - { - /// - /// The default endpoint for the CustomerNegativeCriterionService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerNegativeCriterionService scopes. - /// - /// The default CustomerNegativeCriterionService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerNegativeCriterionService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerNegativeCriterionServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerNegativeCriterionServiceClient Create() => - new CustomerNegativeCriterionServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerNegativeCriterionServiceClient Create(grpccore::CallInvoker callInvoker, CustomerNegativeCriterionServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerNegativeCriterionService.CustomerNegativeCriterionServiceClient grpcClient = new CustomerNegativeCriterionService.CustomerNegativeCriterionServiceClient(callInvoker); - return new CustomerNegativeCriterionServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerNegativeCriterionService client - public virtual CustomerNegativeCriterionService.CustomerNegativeCriterionServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerNegativeCriteriaResponse MutateCustomerNegativeCriteria(MutateCustomerNegativeCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerNegativeCriteriaAsync(MutateCustomerNegativeCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerNegativeCriteriaAsync(MutateCustomerNegativeCriteriaRequest request, st::CancellationToken cancellationToken) => - MutateCustomerNegativeCriteriaAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerNegativeCriteriaResponse MutateCustomerNegativeCriteria(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerNegativeCriteria(new MutateCustomerNegativeCriteriaRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerNegativeCriteriaAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerNegativeCriteriaAsync(new MutateCustomerNegativeCriteriaRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose criteria are being modified. - /// - /// - /// Required. The list of operations to perform on individual criteria. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerNegativeCriteriaAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomerNegativeCriteriaAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerNegativeCriterionService client wrapper implementation, for convenient use. - /// - /// Service to manage customer negative criteria. - /// - public sealed partial class CustomerNegativeCriterionServiceClientImpl : CustomerNegativeCriterionServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerNegativeCriteria; - - /// - /// Constructs a client wrapper for the CustomerNegativeCriterionService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerNegativeCriterionServiceClientImpl(CustomerNegativeCriterionService.CustomerNegativeCriterionServiceClient grpcClient, CustomerNegativeCriterionServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerNegativeCriterionServiceSettings effectiveSettings = settings ?? CustomerNegativeCriterionServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerNegativeCriteria = clientHelper.BuildApiCall("MutateCustomerNegativeCriteria", grpcClient.MutateCustomerNegativeCriteriaAsync, grpcClient.MutateCustomerNegativeCriteria, effectiveSettings.MutateCustomerNegativeCriteriaSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerNegativeCriteria); - Modify_MutateCustomerNegativeCriteriaApiCall(ref _callMutateCustomerNegativeCriteria); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerNegativeCriteriaApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerNegativeCriterionService.CustomerNegativeCriterionServiceClient grpcClient, CustomerNegativeCriterionServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerNegativeCriterionService client - public override CustomerNegativeCriterionService.CustomerNegativeCriterionServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerNegativeCriteriaRequest(ref MutateCustomerNegativeCriteriaRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerNegativeCriteriaResponse MutateCustomerNegativeCriteria(MutateCustomerNegativeCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerNegativeCriteriaRequest(ref request, ref callSettings); - return _callMutateCustomerNegativeCriteria.Sync(request, callSettings); - } - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerNegativeCriteriaAsync(MutateCustomerNegativeCriteriaRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerNegativeCriteriaRequest(ref request, ref callSettings); - return _callMutateCustomerNegativeCriteria.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceGrpc.g.cs deleted file mode 100755 index be40071c0..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceGrpc.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_negative_criterion_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customer negative criteria. - /// - public static partial class CustomerNegativeCriterionService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerNegativeCriterionService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerNegativeCriteriaRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerNegativeCriteriaResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerNegativeCriteria = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerNegativeCriteria", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerNegativeCriteriaRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerNegativeCriteriaResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerNegativeCriterionService - [grpc::BindServiceMethod(typeof(CustomerNegativeCriterionService), "BindService")] - public abstract partial class CustomerNegativeCriterionServiceBase - { - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerNegativeCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerNegativeCriterionService - public partial class CustomerNegativeCriterionServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerNegativeCriterionService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerNegativeCriterionServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerNegativeCriterionService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerNegativeCriterionServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerNegativeCriterionServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerNegativeCriterionServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResponse MutateCustomerNegativeCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerNegativeCriteria(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResponse MutateCustomerNegativeCriteria(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerNegativeCriteria, null, options, request); - } - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerNegativeCriteriaAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerNegativeCriteriaAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes criteria. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerNegativeCriteriaAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerNegativeCriteria, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerNegativeCriterionServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerNegativeCriterionServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerNegativeCriterionServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerNegativeCriteria, serviceImpl.MutateCustomerNegativeCriteria).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerNegativeCriterionServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerNegativeCriteria, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerNegativeCriteria)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceResourceNames.g.cs deleted file mode 100755 index ed5129cc1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerNegativeCriterionOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerNegativeCriterionName RemoveAsCustomerNegativeCriterionName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerNegativeCriterionName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerNegativeCriteriaResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::CustomerNegativeCriterionName ResourceNameAsCustomerNegativeCriterionName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerNegativeCriterionName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerPayPerConversionEligibilityFailureReason.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerPayPerConversionEligibilityFailureReason.g.cs deleted file mode 100755 index a5ee4959a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerPayPerConversionEligibilityFailureReason.g.cs +++ /dev/null @@ -1,266 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason.proto - public static partial class CustomerPayPerConversionEligibilityFailureReasonReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/customer_pay_per_conversion_eligibility_failure_reason.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerPayPerConversionEligibilityFailureReasonReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cltnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tZXJfcGF5", - "X3Blcl9jb252ZXJzaW9uX2VsaWdpYmlsaXR5X2ZhaWx1cmVfcmVhc29uLnBy", - "b3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi0QIKNEN1c3Rv", - "bWVyUGF5UGVyQ29udmVyc2lvbkVsaWdpYmlsaXR5RmFpbHVyZVJlYXNvbkVu", - "dW0imAIKMEN1c3RvbWVyUGF5UGVyQ29udmVyc2lvbkVsaWdpYmlsaXR5RmFp", - "bHVyZVJlYXNvbhIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIaChZO", - "T1RfRU5PVUdIX0NPTlZFUlNJT05TEAISGwoXQ09OVkVSU0lPTl9MQUdfVE9P", - "X0hJR0gQAxIjCh9IQVNfQ0FNUEFJR05fV0lUSF9TSEFSRURfQlVER0VUEAQS", - "IAocSEFTX1VQTE9BRF9DTElDS1NfQ09OVkVSU0lPThAFEiAKHEFWRVJBR0Vf", - "REFJTFlfU1BFTkRfVE9PX0hJR0gQBhIZChVBTkFMWVNJU19OT1RfQ09NUExF", - "VEUQBxIJCgVPVEhFUhAIQo8CCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQjVDdXN0b21lclBheVBlckNvbnZlcnNpb25FbGlnaWJpbGl0", - "eUZhaWx1cmVSZWFzb25Qcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1z", - "ogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomerPayPerConversionEligibilityFailureReasonEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomerPayPerConversionEligibilityFailureReasonEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomerPayPerConversionEligibilityFailureReasonEnum.Types.CustomerPayPerConversionEligibilityFailureReason) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing reasons why a customer is not eligible to use - /// PaymentMode.CONVERSIONS. - /// - public sealed partial class CustomerPayPerConversionEligibilityFailureReasonEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerPayPerConversionEligibilityFailureReasonEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomerPayPerConversionEligibilityFailureReasonReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerPayPerConversionEligibilityFailureReasonEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerPayPerConversionEligibilityFailureReasonEnum(CustomerPayPerConversionEligibilityFailureReasonEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerPayPerConversionEligibilityFailureReasonEnum Clone() { - return new CustomerPayPerConversionEligibilityFailureReasonEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerPayPerConversionEligibilityFailureReasonEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerPayPerConversionEligibilityFailureReasonEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerPayPerConversionEligibilityFailureReasonEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerPayPerConversionEligibilityFailureReasonEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible reasons a customer is not eligible to use - /// PaymentMode.CONVERSIONS. - /// - public enum CustomerPayPerConversionEligibilityFailureReason { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Customer does not have enough conversions. - /// - [pbr::OriginalName("NOT_ENOUGH_CONVERSIONS")] NotEnoughConversions = 2, - /// - /// Customer's conversion lag is too high. - /// - [pbr::OriginalName("CONVERSION_LAG_TOO_HIGH")] ConversionLagTooHigh = 3, - /// - /// Customer uses shared budgets. - /// - [pbr::OriginalName("HAS_CAMPAIGN_WITH_SHARED_BUDGET")] HasCampaignWithSharedBudget = 4, - /// - /// Customer has conversions with ConversionActionType.UPLOAD_CLICKS. - /// - [pbr::OriginalName("HAS_UPLOAD_CLICKS_CONVERSION")] HasUploadClicksConversion = 5, - /// - /// Customer's average daily spend is too high. - /// - [pbr::OriginalName("AVERAGE_DAILY_SPEND_TOO_HIGH")] AverageDailySpendTooHigh = 6, - /// - /// Customer's eligibility has not yet been calculated by the Google Ads - /// backend. Check back soon. - /// - [pbr::OriginalName("ANALYSIS_NOT_COMPLETE")] AnalysisNotComplete = 7, - /// - /// Customer is not eligible due to other reasons. - /// - [pbr::OriginalName("OTHER")] Other = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerResourceNames.g.cs deleted file mode 100755 index d57cb8251..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerResourceNames.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Customer resource. - public sealed partial class CustomerName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}. - Customer = 1, - } - - private static gax::PathTemplate s_customer = new gax::PathTemplate("customers/{customer_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// Creates a with the pattern customers/{customer_id}. - /// The Customer ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerName FromCustomer(string customerId) => - new CustomerName(ResourceNameType.Customer, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The string representation of this with pattern customers/{customer_id}. - /// - public static string Format(string customerId) => FormatCustomer(customerId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The string representation of this with pattern customers/{customer_id}. - /// - public static string FormatCustomer(string customerId) => - s_customer.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// customers/{customer_id} - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerName Parse(string customerName) => Parse(customerName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// customers/{customer_id} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerName Parse(string customerName, bool allowUnparsed) => - TryParse(customerName, allowUnparsed, out CustomerName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// customers/{customer_id} - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerName, out CustomerName result) => TryParse(customerName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// customers/{customer_id} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerName, bool allowUnparsed, out CustomerName result) - { - gax::GaxPreconditions.CheckNotNull(customerName, nameof(customerName)); - gax::TemplatedResourceName resourceName; - if (s_customer.TryParseName(customerName, out resourceName)) - { - result = FromCustomer(resourceName[0]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id} - /// - /// The Customer ID. Must not be null or empty. - public CustomerName(string customerId) : this(ResourceNameType.Customer, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.Customer: return s_customer.Expand(CustomerId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerName); - - /// - public bool Equals(CustomerName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerName a, CustomerName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerName a, CustomerName b) => !(a == b); - } - - public partial class Customer - { - /// - /// -typed view over the resource name property. - /// - internal CustomerName ResourceNameAsCustomerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class CallReportingSetting - { - /// - /// -typed view over the resource name - /// property. - /// - internal ConversionActionName CallConversionActionAsConversionActionName - { - get => string.IsNullOrEmpty(CallConversionAction) ? null : ConversionActionName.Parse(CallConversionAction, allowUnparsed: true); - set => CallConversionAction = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerService.g.cs deleted file mode 100755 index d12ac3598..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerService.g.cs +++ /dev/null @@ -1,2091 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_service.proto - public static partial class CustomerServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "c2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzGjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNjZXNzX3Jv", - "bGUucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9yZXNw", - "b25zZV9jb250ZW50X3R5cGUucHJvdG8aMWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXMvY3VzdG9tZXIucHJvdG8aHGdvb2dsZS9hcGkvYW5u", - "b3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29n", - "bGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291", - "cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90byKC", - "AgoVTXV0YXRlQ3VzdG9tZXJSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJ", - "QgPgQQISTAoJb3BlcmF0aW9uGAQgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLkN1c3RvbWVyT3BlcmF0aW9uQgPgQQISFQoNdmFs", - "aWRhdGVfb25seRgFIAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5cGUYBiAB", - "KA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVzcG9uc2VD", - "b250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSKYAgobQ3JlYXRl", - "Q3VzdG9tZXJDbGllbnRSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPg", - "QQISSgoPY3VzdG9tZXJfY2xpZW50GAIgASgLMiwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckID4EECEhoKDWVtYWlsX2Fk", - "ZHJlc3MYBSABKAlIAIgBARJOCgthY2Nlc3Nfcm9sZRgEIAEoDjI5Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5BY2Nlc3NSb2xlRW51bS5BY2Nl", - "c3NSb2xlEhUKDXZhbGlkYXRlX29ubHkYBiABKAhCEAoOX2VtYWlsX2FkZHJl", - "c3MiggEKEUN1c3RvbWVyT3BlcmF0aW9uEjwKBnVwZGF0ZRgBIAEoCzIsLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXISLwoL", - "dXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNr", - "InYKHENyZWF0ZUN1c3RvbWVyQ2xpZW50UmVzcG9uc2USPQoNcmVzb3VyY2Vf", - "bmFtZRgCIAEoCUIm+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3Vz", - "dG9tZXISFwoPaW52aXRhdGlvbl9saW5rGAMgASgJImEKFk11dGF0ZUN1c3Rv", - "bWVyUmVzcG9uc2USRwoGcmVzdWx0GAIgASgLMjcuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyUmVzdWx0IpUBChRN", - "dXRhdGVDdXN0b21lclJlc3VsdBI9Cg1yZXNvdXJjZV9uYW1lGAEgASgJQib6", - "QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lchI+CghjdXN0", - "b21lchgCIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQ3VzdG9tZXIiIAoeTGlzdEFjY2Vzc2libGVDdXN0b21lcnNSZXF1ZXN0", - "IjkKH0xpc3RBY2Nlc3NpYmxlQ3VzdG9tZXJzUmVzcG9uc2USFgoOcmVzb3Vy", - "Y2VfbmFtZXMYASADKAky9QUKD0N1c3RvbWVyU2VydmljZRLPAQoOTXV0YXRl", - "Q3VzdG9tZXISOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQ3VzdG9tZXJSZXF1ZXN0GjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyUmVzcG9uc2UiSILT5JMCKiIl", - "L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9Om11dGF0ZToBKtpBFWN1", - "c3RvbWVyX2lkLG9wZXJhdGlvbhLQAQoXTGlzdEFjY2Vzc2libGVDdXN0b21l", - "cnMSQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTGlzdEFj", - "Y2Vzc2libGVDdXN0b21lcnNSZXF1ZXN0GkIuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLkxpc3RBY2Nlc3NpYmxlQ3VzdG9tZXJzUmVzcG9u", - "c2UiLoLT5JMCKBImL3YxMi9jdXN0b21lcnM6bGlzdEFjY2Vzc2libGVDdXN0", - "b21lcnMS9QEKFENyZWF0ZUN1c3RvbWVyQ2xpZW50Ej4uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLkNyZWF0ZUN1c3RvbWVyQ2xpZW50UmVx", - "dWVzdBo/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DcmVh", - "dGVDdXN0b21lckNsaWVudFJlc3BvbnNlIlyC0+STAjgiMy92MTIvY3VzdG9t", - "ZXJzL3tjdXN0b21lcl9pZD0qfTpjcmVhdGVDdXN0b21lckNsaWVudDoBKtpB", - "G2N1c3RvbWVyX2lkLGN1c3RvbWVyX2NsaWVudBpFykEYZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0", - "aC9hZHdvcmRzQoACCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzQhRDdXN0b21lclNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Nl", - "cnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZp", - "Y2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AccessRoleReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest.Parser, new[]{ "CustomerId", "Operation", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest), global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest.Parser, new[]{ "CustomerId", "CustomerClient", "EmailAddress", "AccessRole", "ValidateOnly" }, new[]{ "EmailAddress" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerOperation.Parser, new[]{ "Update", "UpdateMask" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientResponse), global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientResponse.Parser, new[]{ "ResourceName", "InvitationLink" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult.Parser, new[]{ "ResourceName", "Customer" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest), global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersResponse), global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersResponse.Parser, new[]{ "ResourceNames" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [CustomerService.MutateCustomer][google.ads.googleads.v12.services.CustomerService.MutateCustomer]. - /// - public sealed partial class MutateCustomerRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerRequest(MutateCustomerRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerRequest Clone() { - return new MutateCustomerRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Services.CustomerOperation operation_; - /// - /// Required. The operation to perform on the customer - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 5; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Operation); - } - if (ValidateOnly != false) { - output.WriteRawTag(40); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Operation); - } - if (ValidateOnly != false) { - output.WriteRawTag(40); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerOperation(); - } - Operation.MergeFrom(other.Operation); - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 34: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerOperation(); - } - input.ReadMessage(Operation); - break; - } - case 40: { - ValidateOnly = input.ReadBool(); - break; - } - case 48: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 34: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerOperation(); - } - input.ReadMessage(Operation); - break; - } - case 40: { - ValidateOnly = input.ReadBool(); - break; - } - case 48: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [CustomerService.CreateCustomerClient][google.ads.googleads.v12.services.CustomerService.CreateCustomerClient]. - /// - public sealed partial class CreateCustomerClientRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCustomerClientRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateCustomerClientRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateCustomerClientRequest(CreateCustomerClientRequest other) : this() { - customerId_ = other.customerId_; - customerClient_ = other.customerClient_ != null ? other.customerClient_.Clone() : null; - emailAddress_ = other.emailAddress_; - accessRole_ = other.accessRole_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateCustomerClientRequest Clone() { - return new CreateCustomerClientRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the Manager under whom client customer is being created. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer_client" field. - public const int CustomerClientFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Customer customerClient_; - /// - /// Required. The new client customer to create. The resource name on this customer - /// will be ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Customer CustomerClient { - get { return customerClient_; } - set { - customerClient_ = value; - } - } - - /// Field number for the "email_address" field. - public const int EmailAddressFieldNumber = 5; - private string emailAddress_; - /// - /// Email address of the user who should be invited on the created client - /// customer. Accessible only to customers on the allow-list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EmailAddress { - get { return emailAddress_ ?? ""; } - set { - emailAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "email_address" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEmailAddress { - get { return emailAddress_ != null; } - } - /// Clears the value of the "email_address" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEmailAddress() { - emailAddress_ = null; - } - - /// Field number for the "access_role" field. - public const int AccessRoleFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole accessRole_ = global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified; - /// - /// The proposed role of user on the created client customer. - /// Accessible only to customers on the allow-list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole AccessRole { - get { return accessRole_; } - set { - accessRole_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 6; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateCustomerClientRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateCustomerClientRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(CustomerClient, other.CustomerClient)) return false; - if (EmailAddress != other.EmailAddress) return false; - if (AccessRole != other.AccessRole) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (customerClient_ != null) hash ^= CustomerClient.GetHashCode(); - if (HasEmailAddress) hash ^= EmailAddress.GetHashCode(); - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) hash ^= AccessRole.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (customerClient_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerClient); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) AccessRole); - } - if (HasEmailAddress) { - output.WriteRawTag(42); - output.WriteString(EmailAddress); - } - if (ValidateOnly != false) { - output.WriteRawTag(48); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (customerClient_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomerClient); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) AccessRole); - } - if (HasEmailAddress) { - output.WriteRawTag(42); - output.WriteString(EmailAddress); - } - if (ValidateOnly != false) { - output.WriteRawTag(48); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (customerClient_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomerClient); - } - if (HasEmailAddress) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EmailAddress); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AccessRole); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateCustomerClientRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.customerClient_ != null) { - if (customerClient_ == null) { - CustomerClient = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - CustomerClient.MergeFrom(other.CustomerClient); - } - if (other.HasEmailAddress) { - EmailAddress = other.EmailAddress; - } - if (other.AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - AccessRole = other.AccessRole; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (customerClient_ == null) { - CustomerClient = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(CustomerClient); - break; - } - case 32: { - AccessRole = (global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole) input.ReadEnum(); - break; - } - case 42: { - EmailAddress = input.ReadString(); - break; - } - case 48: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (customerClient_ == null) { - CustomerClient = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(CustomerClient); - break; - } - case 32: { - AccessRole = (global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole) input.ReadEnum(); - break; - } - case 42: { - EmailAddress = input.ReadString(); - break; - } - case 48: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single update on a customer. - /// - public sealed partial class CustomerOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerOperation(CustomerOperation other) : this() { - update_ = other.update_ != null ? other.update_.Clone() : null; - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerOperation Clone() { - return new CustomerOperation(this); - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Resources.Customer update_; - /// - /// Mutate operation. Only updates are supported for customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Customer Update { - get { return update_; } - set { - update_ = value; - } - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Update, other.Update)) return false; - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (update_ != null) hash ^= Update.GetHashCode(); - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (update_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (update_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (updateMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (update_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerOperation other) { - if (other == null) { - return; - } - if (other.update_ != null) { - if (update_ == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - Update.MergeFrom(other.Update); - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (update_ == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(Update); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (update_ == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(Update); - break; - } - case 18: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for CreateCustomerClient mutate. - /// - public sealed partial class CreateCustomerClientResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCustomerClientResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateCustomerClientResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateCustomerClientResponse(CreateCustomerClientResponse other) : this() { - resourceName_ = other.resourceName_; - invitationLink_ = other.invitationLink_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CreateCustomerClientResponse Clone() { - return new CreateCustomerClientResponse(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 2; - private string resourceName_ = ""; - /// - /// The resource name of the newly created customer. Customer resource names - /// have the form: `customers/{customer_id}`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "invitation_link" field. - public const int InvitationLinkFieldNumber = 3; - private string invitationLink_ = ""; - /// - /// Link for inviting user to access the created customer. Accessible to - /// allowlisted customers only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string InvitationLink { - get { return invitationLink_; } - set { - invitationLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CreateCustomerClientResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CreateCustomerClientResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (InvitationLink != other.InvitationLink) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (InvitationLink.Length != 0) hash ^= InvitationLink.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ResourceName); - } - if (InvitationLink.Length != 0) { - output.WriteRawTag(26); - output.WriteString(InvitationLink); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ResourceName); - } - if (InvitationLink.Length != 0) { - output.WriteRawTag(26); - output.WriteString(InvitationLink); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (InvitationLink.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InvitationLink); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CreateCustomerClientResponse other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.InvitationLink.Length != 0) { - InvitationLink = other.InvitationLink; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - ResourceName = input.ReadString(); - break; - } - case 26: { - InvitationLink = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - ResourceName = input.ReadString(); - break; - } - case 26: { - InvitationLink = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for customer mutate. - /// - public sealed partial class MutateCustomerResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerResponse(MutateCustomerResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerResponse Clone() { - return new MutateCustomerResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult result_; - /// - /// Result for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult Result { - get { return result_; } - set { - result_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult(); - } - Result.MergeFrom(other.Result); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult(); - } - input.ReadMessage(Result); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult(); - } - input.ReadMessage(Result); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer mutate. - /// - public sealed partial class MutateCustomerResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerResult(MutateCustomerResult other) : this() { - resourceName_ = other.resourceName_; - customer_ = other.customer_ != null ? other.customer_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerResult Clone() { - return new MutateCustomerResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Customer customer_; - /// - /// The mutated customer with only mutable fields after mutate. The fields will - /// only be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Customer Customer { - get { return customer_; } - set { - customer_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(Customer, other.Customer)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customer_ != null) hash ^= Customer.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Customer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customer_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Customer); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Customer); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customer_ != null) { - if (customer_ == null) { - Customer = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - Customer.MergeFrom(other.Customer); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customer_ == null) { - Customer = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(Customer); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customer_ == null) { - Customer = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(Customer); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v12.services.CustomerService.ListAccessibleCustomers]. - /// - public sealed partial class ListAccessibleCustomersRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAccessibleCustomersRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAccessibleCustomersRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAccessibleCustomersRequest(ListAccessibleCustomersRequest other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAccessibleCustomersRequest Clone() { - return new ListAccessibleCustomersRequest(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListAccessibleCustomersRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListAccessibleCustomersRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListAccessibleCustomersRequest other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - } - - /// - /// Response message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v12.services.CustomerService.ListAccessibleCustomers]. - /// - public sealed partial class ListAccessibleCustomersResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListAccessibleCustomersResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAccessibleCustomersResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAccessibleCustomersResponse(ListAccessibleCustomersResponse other) : this() { - resourceNames_ = other.resourceNames_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListAccessibleCustomersResponse Clone() { - return new ListAccessibleCustomersResponse(this); - } - - /// Field number for the "resource_names" field. - public const int ResourceNamesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_resourceNames_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField resourceNames_ = new pbc::RepeatedField(); - /// - /// Resource name of customers directly accessible by the - /// user authenticating the call. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ResourceNames { - get { return resourceNames_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListAccessibleCustomersResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListAccessibleCustomersResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!resourceNames_.Equals(other.resourceNames_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= resourceNames_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - resourceNames_.WriteTo(output, _repeated_resourceNames_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - resourceNames_.WriteTo(ref output, _repeated_resourceNames_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += resourceNames_.CalculateSize(_repeated_resourceNames_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListAccessibleCustomersResponse other) { - if (other == null) { - return; - } - resourceNames_.Add(other.resourceNames_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - resourceNames_.AddEntriesFrom(input, _repeated_resourceNames_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - resourceNames_.AddEntriesFrom(ref input, _repeated_resourceNames_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerServiceClient.g.cs deleted file mode 100755 index 5077868c2..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerServiceClient.g.cs +++ /dev/null @@ -1,808 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerServiceSettings GetDefault() => new CustomerServiceSettings(); - - /// Constructs a new object with default settings. - public CustomerServiceSettings() - { - } - - private CustomerServiceSettings(CustomerServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerSettings = existing.MutateCustomerSettings; - ListAccessibleCustomersSettings = existing.ListAccessibleCustomersSettings; - CreateCustomerClientSettings = existing.CreateCustomerClientSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerServiceClient.MutateCustomer and CustomerServiceClient.MutateCustomerAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// CustomerServiceClient.ListAccessibleCustomers and - /// CustomerServiceClient.ListAccessibleCustomersAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ListAccessibleCustomersSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// CustomerServiceClient.CreateCustomerClient and CustomerServiceClient.CreateCustomerClientAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings CreateCustomerClientSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerServiceSettings Clone() => new CustomerServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class CustomerServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerServiceClientBuilder() : base(CustomerServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerServiceClient Build() - { - CustomerServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerServiceClient.ChannelPool; - } - - /// CustomerService client wrapper, for convenient use. - /// - /// Service to manage customers. - /// - public abstract partial class CustomerServiceClient - { - /// - /// The default endpoint for the CustomerService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerService scopes. - /// - /// The default CustomerService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static CustomerServiceClient Create() => new CustomerServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerServiceClient Create(grpccore::CallInvoker callInvoker, CustomerServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerService.CustomerServiceClient grpcClient = new CustomerService.CustomerServiceClient(callInvoker); - return new CustomerServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerService client - public virtual CustomerService.CustomerServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerResponse MutateCustomer(MutateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAsync(MutateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAsync(MutateCustomerRequest request, st::CancellationToken cancellationToken) => - MutateCustomerAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the customer - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerResponse MutateCustomer(string customerId, CustomerOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomer(new MutateCustomerRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the customer - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAsync(string customerId, CustomerOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerAsync(new MutateCustomerRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the customer - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerAsync(string customerId, CustomerOperation operation, st::CancellationToken cancellationToken) => - MutateCustomerAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListAccessibleCustomersResponse ListAccessibleCustomers(ListAccessibleCustomersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListAccessibleCustomersAsync(ListAccessibleCustomersRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListAccessibleCustomersAsync(ListAccessibleCustomersRequest request, st::CancellationToken cancellationToken) => - ListAccessibleCustomersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual CreateCustomerClientResponse CreateCustomerClient(CreateCustomerClientRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateCustomerClientAsync(CreateCustomerClientRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateCustomerClientAsync(CreateCustomerClientRequest request, st::CancellationToken cancellationToken) => - CreateCustomerClientAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// - /// Required. The ID of the Manager under whom client customer is being created. - /// - /// - /// Required. The new client customer to create. The resource name on this customer - /// will be ignored. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual CreateCustomerClientResponse CreateCustomerClient(string customerId, gagvr::Customer customerClient, gaxgrpc::CallSettings callSettings = null) => - CreateCustomerClient(new CreateCustomerClientRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - CustomerClient = gax::GaxPreconditions.CheckNotNull(customerClient, nameof(customerClient)), - }, callSettings); - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// - /// Required. The ID of the Manager under whom client customer is being created. - /// - /// - /// Required. The new client customer to create. The resource name on this customer - /// will be ignored. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task CreateCustomerClientAsync(string customerId, gagvr::Customer customerClient, gaxgrpc::CallSettings callSettings = null) => - CreateCustomerClientAsync(new CreateCustomerClientRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - CustomerClient = gax::GaxPreconditions.CheckNotNull(customerClient, nameof(customerClient)), - }, callSettings); - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// - /// Required. The ID of the Manager under whom client customer is being created. - /// - /// - /// Required. The new client customer to create. The resource name on this customer - /// will be ignored. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task CreateCustomerClientAsync(string customerId, gagvr::Customer customerClient, st::CancellationToken cancellationToken) => - CreateCustomerClientAsync(customerId, customerClient, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerService client wrapper implementation, for convenient use. - /// - /// Service to manage customers. - /// - public sealed partial class CustomerServiceClientImpl : CustomerServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomer; - - private readonly gaxgrpc::ApiCall _callListAccessibleCustomers; - - private readonly gaxgrpc::ApiCall _callCreateCustomerClient; - - /// - /// Constructs a client wrapper for the CustomerService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public CustomerServiceClientImpl(CustomerService.CustomerServiceClient grpcClient, CustomerServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerServiceSettings effectiveSettings = settings ?? CustomerServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomer = clientHelper.BuildApiCall("MutateCustomer", grpcClient.MutateCustomerAsync, grpcClient.MutateCustomer, effectiveSettings.MutateCustomerSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomer); - Modify_MutateCustomerApiCall(ref _callMutateCustomer); - _callListAccessibleCustomers = clientHelper.BuildApiCall("ListAccessibleCustomers", grpcClient.ListAccessibleCustomersAsync, grpcClient.ListAccessibleCustomers, effectiveSettings.ListAccessibleCustomersSettings); - Modify_ApiCall(ref _callListAccessibleCustomers); - Modify_ListAccessibleCustomersApiCall(ref _callListAccessibleCustomers); - _callCreateCustomerClient = clientHelper.BuildApiCall("CreateCustomerClient", grpcClient.CreateCustomerClientAsync, grpcClient.CreateCustomerClient, effectiveSettings.CreateCustomerClientSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callCreateCustomerClient); - Modify_CreateCustomerClientApiCall(ref _callCreateCustomerClient); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ListAccessibleCustomersApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_CreateCustomerClientApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerService.CustomerServiceClient grpcClient, CustomerServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerService client - public override CustomerService.CustomerServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerRequest(ref MutateCustomerRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ListAccessibleCustomersRequest(ref ListAccessibleCustomersRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_CreateCustomerClientRequest(ref CreateCustomerClientRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerResponse MutateCustomer(MutateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerRequest(ref request, ref callSettings); - return _callMutateCustomer.Sync(request, callSettings); - } - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerAsync(MutateCustomerRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerRequest(ref request, ref callSettings); - return _callMutateCustomer.Async(request, callSettings); - } - - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override ListAccessibleCustomersResponse ListAccessibleCustomers(ListAccessibleCustomersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListAccessibleCustomersRequest(ref request, ref callSettings); - return _callListAccessibleCustomers.Sync(request, callSettings); - } - - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task ListAccessibleCustomersAsync(ListAccessibleCustomersRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListAccessibleCustomersRequest(ref request, ref callSettings); - return _callListAccessibleCustomers.Async(request, callSettings); - } - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override CreateCustomerClientResponse CreateCustomerClient(CreateCustomerClientRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateCustomerClientRequest(ref request, ref callSettings); - return _callCreateCustomerClient.Sync(request, callSettings); - } - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task CreateCustomerClientAsync(CreateCustomerClientRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_CreateCustomerClientRequest(ref request, ref callSettings); - return _callCreateCustomerClient.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerServiceGrpc.g.cs deleted file mode 100755 index 1aeeb03a0..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerServiceGrpc.g.cs +++ /dev/null @@ -1,520 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customers. - /// - public static partial class CustomerService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListAccessibleCustomersRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListAccessibleCustomersResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_CreateCustomerClientRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_CreateCustomerClientResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomer = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomer", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListAccessibleCustomers = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListAccessibleCustomers", - __Marshaller_google_ads_googleads_v12_services_ListAccessibleCustomersRequest, - __Marshaller_google_ads_googleads_v12_services_ListAccessibleCustomersResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_CreateCustomerClient = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "CreateCustomerClient", - __Marshaller_google_ads_googleads_v12_services_CreateCustomerClientRequest, - __Marshaller_google_ads_googleads_v12_services_CreateCustomerClientResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerService - [grpc::BindServiceMethod(typeof(CustomerService), "BindService")] - public abstract partial class CustomerServiceBase - { - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomer(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListAccessibleCustomers(global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task CreateCustomerClient(global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerService - public partial class CustomerServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResponse MutateCustomer(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomer(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResponse MutateCustomer(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomer, null, options, request); - } - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates a customer. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomer, null, options, request); - } - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersResponse ListAccessibleCustomers(global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAccessibleCustomers(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersResponse ListAccessibleCustomers(global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListAccessibleCustomers, null, options, request); - } - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAccessibleCustomersAsync(global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListAccessibleCustomersAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns resource names of customers directly accessible by the - /// user authenticating the call. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListAccessibleCustomersAsync(global::Google.Ads.GoogleAds.V12.Services.ListAccessibleCustomersRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListAccessibleCustomers, null, options, request); - } - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientResponse CreateCustomerClient(global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateCustomerClient(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientResponse CreateCustomerClient(global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_CreateCustomerClient, null, options, request); - } - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateCustomerClientAsync(global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return CreateCustomerClientAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates a new client under manager. The new client customer is returned. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CurrencyCodeError]() - /// [HeaderError]() - /// [InternalError]() - /// [ManagerLinkError]() - /// [QuotaError]() - /// [RequestError]() - /// [StringLengthError]() - /// [TimeZoneError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall CreateCustomerClientAsync(global::Google.Ads.GoogleAds.V12.Services.CreateCustomerClientRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_CreateCustomerClient, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomer, serviceImpl.MutateCustomer) - .AddMethod(__Method_ListAccessibleCustomers, serviceImpl.ListAccessibleCustomers) - .AddMethod(__Method_CreateCustomerClient, serviceImpl.CreateCustomerClient).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomer, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomer)); - serviceBinder.AddMethod(__Method_ListAccessibleCustomers, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListAccessibleCustomers)); - serviceBinder.AddMethod(__Method_CreateCustomerClient, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateCustomerClient)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerServiceResourceNames.g.cs deleted file mode 100755 index 0e8db98df..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CreateCustomerClientResponse - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerName ResourceNameAsCustomerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerName ResourceNameAsCustomerName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerStatus.g.cs deleted file mode 100755 index 80d35792e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerStatus.g.cs +++ /dev/null @@ -1,249 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/customer_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/customer_status.proto - public static partial class CustomerStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/customer_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9tZXJfc3Rh", - "dHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiegoS", - "Q3VzdG9tZXJTdGF0dXNFbnVtImQKDkN1c3RvbWVyU3RhdHVzEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0VOQUJMRUQQAhIMCghDQU5DRUxF", - "RBADEg0KCVNVU1BFTkRFRBAEEgoKBkNMT1NFRBAFQu0BCiJjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhNDdXN0b21lclN0YXR1c1Byb3Rv", - "UAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1z", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusEnum.Types.CustomerStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a customer. - /// - public sealed partial class CustomerStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomerStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerStatusEnum(CustomerStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerStatusEnum Clone() { - return new CustomerStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a customer. - /// - public enum CustomerStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Indicates an active account able to serve ads. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Indicates a canceled account unable to serve ads. - /// Can be reactivated by an admin user. - /// - [pbr::OriginalName("CANCELED")] Canceled = 3, - /// - /// Indicates a suspended account unable to serve ads. - /// May only be activated by Google support. - /// - [pbr::OriginalName("SUSPENDED")] Suspended = 4, - /// - /// Indicates a closed account unable to serve ads. - /// Test account will also have CLOSED status. - /// Status is permanent and may not be reopened. - /// - [pbr::OriginalName("CLOSED")] Closed = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccess.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccess.g.cs deleted file mode 100755 index 083175fda..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccess.g.cs +++ /dev/null @@ -1,503 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_user_access.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_user_access.proto - public static partial class CustomerUserAccessReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_user_access.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerUserAccessReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X3VzZXJfYWNjZXNzLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzGjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvYWNj", - "ZXNzX3JvbGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJv", - "dG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i+wMKEkN1c3RvbWVyVXNl", - "ckFjY2VzcxJKCg1yZXNvdXJjZV9uYW1lGAEgASgJQjPgQQX6QS0KK2dvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lclVzZXJBY2Nlc3MSFAoHdXNl", - "cl9pZBgCIAEoA0ID4EEDEh8KDWVtYWlsX2FkZHJlc3MYAyABKAlCA+BBA0gA", - "iAEBEk4KC2FjY2Vzc19yb2xlGAQgASgOMjkuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLkFjY2Vzc1JvbGVFbnVtLkFjY2Vzc1JvbGUSKwoZYWNj", - "ZXNzX2NyZWF0aW9uX2RhdGVfdGltZRgGIAEoCUID4EEDSAGIAQESLAoaaW52", - "aXRlcl91c2VyX2VtYWlsX2FkZHJlc3MYByABKAlCA+BBA0gCiAEBOmjqQWUK", - "K2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DdXN0b21lclVzZXJBY2Nlc3MS", - "NmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2N1c3RvbWVyVXNlckFjY2Vzc2Vz", - "L3t1c2VyX2lkfUIQCg5fZW1haWxfYWRkcmVzc0IcChpfYWNjZXNzX2NyZWF0", - "aW9uX2RhdGVfdGltZUIdChtfaW52aXRlcl91c2VyX2VtYWlsX2FkZHJlc3NC", - "iQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhdD", - "dXN0b21lclVzZXJBY2Nlc3NQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNl", - "cztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "UmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNl", - "c+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AccessRoleReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess), global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess.Parser, new[]{ "ResourceName", "UserId", "EmailAddress", "AccessRole", "AccessCreationDateTime", "InviterUserEmailAddress" }, new[]{ "EmailAddress", "AccessCreationDateTime", "InviterUserEmailAddress" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents the permission of a single user onto a single customer. - /// - public sealed partial class CustomerUserAccess : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerUserAccess()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccess() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccess(CustomerUserAccess other) : this() { - resourceName_ = other.resourceName_; - userId_ = other.userId_; - emailAddress_ = other.emailAddress_; - accessRole_ = other.accessRole_; - accessCreationDateTime_ = other.accessCreationDateTime_; - inviterUserEmailAddress_ = other.inviterUserEmailAddress_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccess Clone() { - return new CustomerUserAccess(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. Name of the resource. - /// Resource names have the form: - /// `customers/{customer_id}/customerUserAccesses/{user_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "user_id" field. - public const int UserIdFieldNumber = 2; - private long userId_; - /// - /// Output only. User id of the user with the customer access. - /// Read only field - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long UserId { - get { return userId_; } - set { - userId_ = value; - } - } - - /// Field number for the "email_address" field. - public const int EmailAddressFieldNumber = 3; - private string emailAddress_; - /// - /// Output only. Email address of the user. - /// Read only field - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EmailAddress { - get { return emailAddress_ ?? ""; } - set { - emailAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "email_address" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEmailAddress { - get { return emailAddress_ != null; } - } - /// Clears the value of the "email_address" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEmailAddress() { - emailAddress_ = null; - } - - /// Field number for the "access_role" field. - public const int AccessRoleFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole accessRole_ = global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified; - /// - /// Access role of the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole AccessRole { - get { return accessRole_; } - set { - accessRole_ = value; - } - } - - /// Field number for the "access_creation_date_time" field. - public const int AccessCreationDateTimeFieldNumber = 6; - private string accessCreationDateTime_; - /// - /// Output only. The customer user access creation time. - /// Read only field - /// The format is "YYYY-MM-DD HH:MM:SS". - /// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccessCreationDateTime { - get { return accessCreationDateTime_ ?? ""; } - set { - accessCreationDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "access_creation_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccessCreationDateTime { - get { return accessCreationDateTime_ != null; } - } - /// Clears the value of the "access_creation_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccessCreationDateTime() { - accessCreationDateTime_ = null; - } - - /// Field number for the "inviter_user_email_address" field. - public const int InviterUserEmailAddressFieldNumber = 7; - private string inviterUserEmailAddress_; - /// - /// Output only. The email address of the inviter user. - /// Read only field - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string InviterUserEmailAddress { - get { return inviterUserEmailAddress_ ?? ""; } - set { - inviterUserEmailAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "inviter_user_email_address" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasInviterUserEmailAddress { - get { return inviterUserEmailAddress_ != null; } - } - /// Clears the value of the "inviter_user_email_address" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearInviterUserEmailAddress() { - inviterUserEmailAddress_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerUserAccess); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerUserAccess other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (UserId != other.UserId) return false; - if (EmailAddress != other.EmailAddress) return false; - if (AccessRole != other.AccessRole) return false; - if (AccessCreationDateTime != other.AccessCreationDateTime) return false; - if (InviterUserEmailAddress != other.InviterUserEmailAddress) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (UserId != 0L) hash ^= UserId.GetHashCode(); - if (HasEmailAddress) hash ^= EmailAddress.GetHashCode(); - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) hash ^= AccessRole.GetHashCode(); - if (HasAccessCreationDateTime) hash ^= AccessCreationDateTime.GetHashCode(); - if (HasInviterUserEmailAddress) hash ^= InviterUserEmailAddress.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (UserId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(UserId); - } - if (HasEmailAddress) { - output.WriteRawTag(26); - output.WriteString(EmailAddress); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) AccessRole); - } - if (HasAccessCreationDateTime) { - output.WriteRawTag(50); - output.WriteString(AccessCreationDateTime); - } - if (HasInviterUserEmailAddress) { - output.WriteRawTag(58); - output.WriteString(InviterUserEmailAddress); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (UserId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(UserId); - } - if (HasEmailAddress) { - output.WriteRawTag(26); - output.WriteString(EmailAddress); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) AccessRole); - } - if (HasAccessCreationDateTime) { - output.WriteRawTag(50); - output.WriteString(AccessCreationDateTime); - } - if (HasInviterUserEmailAddress) { - output.WriteRawTag(58); - output.WriteString(InviterUserEmailAddress); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (UserId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(UserId); - } - if (HasEmailAddress) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EmailAddress); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AccessRole); - } - if (HasAccessCreationDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessCreationDateTime); - } - if (HasInviterUserEmailAddress) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterUserEmailAddress); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerUserAccess other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.UserId != 0L) { - UserId = other.UserId; - } - if (other.HasEmailAddress) { - EmailAddress = other.EmailAddress; - } - if (other.AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - AccessRole = other.AccessRole; - } - if (other.HasAccessCreationDateTime) { - AccessCreationDateTime = other.AccessCreationDateTime; - } - if (other.HasInviterUserEmailAddress) { - InviterUserEmailAddress = other.InviterUserEmailAddress; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - UserId = input.ReadInt64(); - break; - } - case 26: { - EmailAddress = input.ReadString(); - break; - } - case 32: { - AccessRole = (global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole) input.ReadEnum(); - break; - } - case 50: { - AccessCreationDateTime = input.ReadString(); - break; - } - case 58: { - InviterUserEmailAddress = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - UserId = input.ReadInt64(); - break; - } - case 26: { - EmailAddress = input.ReadString(); - break; - } - case 32: { - AccessRole = (global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole) input.ReadEnum(); - break; - } - case 50: { - AccessCreationDateTime = input.ReadString(); - break; - } - case 58: { - InviterUserEmailAddress = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessError.g.cs deleted file mode 100755 index 2104ccd9a..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessError.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/customer_user_access_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/customer_user_access_error.proto - public static partial class CustomerUserAccessErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/customer_user_access_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerUserAccessErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWVyX3Vz", - "ZXJfYWNjZXNzX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZXJyb3JzIukBChtDdXN0b21lclVzZXJBY2Nlc3NFcnJvckVudW0iyQEK", - "F0N1c3RvbWVyVXNlckFjY2Vzc0Vycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEhMKD0lOVkFMSURfVVNFUl9JRBACEhYKElJFTU9WQUxfRElT", - "QUxMT1dFRBADEhoKFkRJU0FMTE9XRURfQUNDRVNTX1JPTEUQBBInCiNMQVNU", - "X0FETUlOX1VTRVJfT0ZfU0VSVklOR19DVVNUT01FUhAFEh4KGkxBU1RfQURN", - "SU5fVVNFUl9PRl9NQU5BR0VSEAZC/AEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzQhxDdXN0b21lclVzZXJBY2Nlc3NFcnJvclByb3Rv", - "UAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpF", - "cnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorEnum.Types.CustomerUserAccessError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible CustomerUserAccess errors. - /// - public sealed partial class CustomerUserAccessErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerUserAccessErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessErrorEnum(CustomerUserAccessErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessErrorEnum Clone() { - return new CustomerUserAccessErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerUserAccessErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerUserAccessErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerUserAccessErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomerUserAccessErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible customer user access errors. - /// - public enum CustomerUserAccessError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// There is no user associated with the user id specified. - /// - [pbr::OriginalName("INVALID_USER_ID")] InvalidUserId = 2, - /// - /// Unable to remove the access between the user and customer. - /// - [pbr::OriginalName("REMOVAL_DISALLOWED")] RemovalDisallowed = 3, - /// - /// Unable to add or update the access role as specified. - /// - [pbr::OriginalName("DISALLOWED_ACCESS_ROLE")] DisallowedAccessRole = 4, - /// - /// The user can't remove itself from an active serving customer if it's the - /// last admin user and the customer doesn't have any owner manager - /// - [pbr::OriginalName("LAST_ADMIN_USER_OF_SERVING_CUSTOMER")] LastAdminUserOfServingCustomer = 5, - /// - /// Last admin user cannot be removed from a manager. - /// - [pbr::OriginalName("LAST_ADMIN_USER_OF_MANAGER")] LastAdminUserOfManager = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitation.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitation.g.cs deleted file mode 100755 index d9235abc0..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitation.g.cs +++ /dev/null @@ -1,469 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customer_user_access_invitation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customer_user_access_invitation.proto - public static partial class CustomerUserAccessInvitationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customer_user_access_invitation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerUserAccessInvitationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVy", - "X3VzZXJfYWNjZXNzX2ludml0YXRpb24ucHJvdG8SImdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMaPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcy9hY2Nlc3NfaW52aXRhdGlvbl9zdGF0dXMucHJvdG8aMGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hY2Nlc3Nfcm9sZS5wcm90bxof", - "Z29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9y", - "ZXNvdXJjZS5wcm90byKZBAocQ3VzdG9tZXJVc2VyQWNjZXNzSW52aXRhdGlv", - "bhJUCg1yZXNvdXJjZV9uYW1lGAEgASgJQj3gQQX6QTcKNWdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9DdXN0b21lclVzZXJBY2Nlc3NJbnZpdGF0aW9uEhoK", - "DWludml0YXRpb25faWQYAiABKANCA+BBAxJTCgthY2Nlc3Nfcm9sZRgDIAEo", - "DjI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5BY2Nlc3NSb2xl", - "RW51bS5BY2Nlc3NSb2xlQgPgQQUSGgoNZW1haWxfYWRkcmVzcxgEIAEoCUID", - "4EEFEh8KEmNyZWF0aW9uX2RhdGVfdGltZRgFIAEoCUID4EEDEnEKEWludml0", - "YXRpb25fc3RhdHVzGAYgASgOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkFjY2Vzc0ludml0YXRpb25TdGF0dXNFbnVtLkFjY2Vzc0ludml0", - "YXRpb25TdGF0dXNCA+BBAzqBAepBfgo1Z29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0N1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRpb24SRWN1c3RvbWVycy97", - "Y3VzdG9tZXJfaWR9L2N1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRpb25zL3tp", - "bnZpdGF0aW9uX2lkfUKTAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXNCIUN1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRpb25Qcm90", - "b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AccessRoleReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation), global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation.Parser, new[]{ "ResourceName", "InvitationId", "AccessRole", "EmailAddress", "CreationDateTime", "InvitationStatus" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represent an invitation to a new user on this customer account. - /// - public sealed partial class CustomerUserAccessInvitation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerUserAccessInvitation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessInvitation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessInvitation(CustomerUserAccessInvitation other) : this() { - resourceName_ = other.resourceName_; - invitationId_ = other.invitationId_; - accessRole_ = other.accessRole_; - emailAddress_ = other.emailAddress_; - creationDateTime_ = other.creationDateTime_; - invitationStatus_ = other.invitationStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessInvitation Clone() { - return new CustomerUserAccessInvitation(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. Name of the resource. - /// Resource names have the form: - /// `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "invitation_id" field. - public const int InvitationIdFieldNumber = 2; - private long invitationId_; - /// - /// Output only. The ID of the invitation. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long InvitationId { - get { return invitationId_; } - set { - invitationId_ = value; - } - } - - /// Field number for the "access_role" field. - public const int AccessRoleFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole accessRole_ = global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified; - /// - /// Immutable. Access role of the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole AccessRole { - get { return accessRole_; } - set { - accessRole_ = value; - } - } - - /// Field number for the "email_address" field. - public const int EmailAddressFieldNumber = 4; - private string emailAddress_ = ""; - /// - /// Immutable. Email address the invitation was sent to. - /// This can differ from the email address of the account - /// that accepts the invite. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EmailAddress { - get { return emailAddress_; } - set { - emailAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "creation_date_time" field. - public const int CreationDateTimeFieldNumber = 5; - private string creationDateTime_ = ""; - /// - /// Output only. Time invitation was created. - /// This field is read-only. - /// The format is "YYYY-MM-DD HH:MM:SS". - /// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CreationDateTime { - get { return creationDateTime_; } - set { - creationDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "invitation_status" field. - public const int InvitationStatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus invitationStatus_ = global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus.Unspecified; - /// - /// Output only. Invitation status of the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus InvitationStatus { - get { return invitationStatus_; } - set { - invitationStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerUserAccessInvitation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerUserAccessInvitation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (InvitationId != other.InvitationId) return false; - if (AccessRole != other.AccessRole) return false; - if (EmailAddress != other.EmailAddress) return false; - if (CreationDateTime != other.CreationDateTime) return false; - if (InvitationStatus != other.InvitationStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (InvitationId != 0L) hash ^= InvitationId.GetHashCode(); - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) hash ^= AccessRole.GetHashCode(); - if (EmailAddress.Length != 0) hash ^= EmailAddress.GetHashCode(); - if (CreationDateTime.Length != 0) hash ^= CreationDateTime.GetHashCode(); - if (InvitationStatus != global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus.Unspecified) hash ^= InvitationStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (InvitationId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(InvitationId); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AccessRole); - } - if (EmailAddress.Length != 0) { - output.WriteRawTag(34); - output.WriteString(EmailAddress); - } - if (CreationDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CreationDateTime); - } - if (InvitationStatus != global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) InvitationStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (InvitationId != 0L) { - output.WriteRawTag(16); - output.WriteInt64(InvitationId); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AccessRole); - } - if (EmailAddress.Length != 0) { - output.WriteRawTag(34); - output.WriteString(EmailAddress); - } - if (CreationDateTime.Length != 0) { - output.WriteRawTag(42); - output.WriteString(CreationDateTime); - } - if (InvitationStatus != global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) InvitationStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (InvitationId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(InvitationId); - } - if (AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AccessRole); - } - if (EmailAddress.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EmailAddress); - } - if (CreationDateTime.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CreationDateTime); - } - if (InvitationStatus != global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InvitationStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerUserAccessInvitation other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.InvitationId != 0L) { - InvitationId = other.InvitationId; - } - if (other.AccessRole != global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole.Unspecified) { - AccessRole = other.AccessRole; - } - if (other.EmailAddress.Length != 0) { - EmailAddress = other.EmailAddress; - } - if (other.CreationDateTime.Length != 0) { - CreationDateTime = other.CreationDateTime; - } - if (other.InvitationStatus != global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus.Unspecified) { - InvitationStatus = other.InvitationStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - InvitationId = input.ReadInt64(); - break; - } - case 24: { - AccessRole = (global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole) input.ReadEnum(); - break; - } - case 34: { - EmailAddress = input.ReadString(); - break; - } - case 42: { - CreationDateTime = input.ReadString(); - break; - } - case 48: { - InvitationStatus = (global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - InvitationId = input.ReadInt64(); - break; - } - case 24: { - AccessRole = (global::Google.Ads.GoogleAds.V12.Enums.AccessRoleEnum.Types.AccessRole) input.ReadEnum(); - break; - } - case 34: { - EmailAddress = input.ReadString(); - break; - } - case 42: { - CreationDateTime = input.ReadString(); - break; - } - case 48: { - InvitationStatus = (global::Google.Ads.GoogleAds.V12.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationResourceNames.g.cs deleted file mode 100755 index c7c187416..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationResourceNames.g.cs +++ /dev/null @@ -1,283 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerUserAccessInvitation resource. - public sealed partial class CustomerUserAccessInvitationName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerUserAccessInvitations/{invitation_id} - /// . - /// - CustomerInvitation = 1, - } - - private static gax::PathTemplate s_customerInvitation = new gax::PathTemplate("customers/{customer_id}/customerUserAccessInvitations/{invitation_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerUserAccessInvitationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerUserAccessInvitationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerUserAccessInvitations/{invitation_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Invitation ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static CustomerUserAccessInvitationName FromCustomerInvitation(string customerId, string invitationId) => - new CustomerUserAccessInvitationName(ResourceNameType.CustomerInvitation, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), invitationId: gax::GaxPreconditions.CheckNotNullOrEmpty(invitationId, nameof(invitationId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/customerUserAccessInvitations/{invitation_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Invitation ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerUserAccessInvitations/{invitation_id}. - /// - public static string Format(string customerId, string invitationId) => - FormatCustomerInvitation(customerId, invitationId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/customerUserAccessInvitations/{invitation_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Invitation ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerUserAccessInvitations/{invitation_id}. - /// - public static string FormatCustomerInvitation(string customerId, string invitationId) => - s_customerInvitation.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(invitationId, nameof(invitationId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerUserAccessInvitations/{invitation_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static CustomerUserAccessInvitationName Parse(string customerUserAccessInvitationName) => - Parse(customerUserAccessInvitationName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerUserAccessInvitations/{invitation_id} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerUserAccessInvitationName Parse(string customerUserAccessInvitationName, bool allowUnparsed) => - TryParse(customerUserAccessInvitationName, allowUnparsed, out CustomerUserAccessInvitationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerUserAccessInvitations/{invitation_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerUserAccessInvitationName, out CustomerUserAccessInvitationName result) => - TryParse(customerUserAccessInvitationName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customerUserAccessInvitations/{invitation_id} - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerUserAccessInvitationName, bool allowUnparsed, out CustomerUserAccessInvitationName result) - { - gax::GaxPreconditions.CheckNotNull(customerUserAccessInvitationName, nameof(customerUserAccessInvitationName)); - gax::TemplatedResourceName resourceName; - if (s_customerInvitation.TryParseName(customerUserAccessInvitationName, out resourceName)) - { - result = FromCustomerInvitation(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerUserAccessInvitationName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerUserAccessInvitationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string invitationId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - InvitationId = invitationId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern customers/{customer_id}/customerUserAccessInvitations/{invitation_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Invitation ID. Must not be null or empty. - public CustomerUserAccessInvitationName(string customerId, string invitationId) : this(ResourceNameType.CustomerInvitation, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), invitationId: gax::GaxPreconditions.CheckNotNullOrEmpty(invitationId, nameof(invitationId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Invitation ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string InvitationId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerInvitation: return s_customerInvitation.Expand(CustomerId, InvitationId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerUserAccessInvitationName); - - /// - public bool Equals(CustomerUserAccessInvitationName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerUserAccessInvitationName a, CustomerUserAccessInvitationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerUserAccessInvitationName a, CustomerUserAccessInvitationName b) => !(a == b); - } - - public partial class CustomerUserAccessInvitation - { - /// - /// -typed view over the resource name - /// property. - /// - internal CustomerUserAccessInvitationName ResourceNameAsCustomerUserAccessInvitationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerUserAccessInvitationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationService.g.cs deleted file mode 100755 index 091dc230b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationService.g.cs +++ /dev/null @@ -1,1010 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_user_access_invitation_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_user_access_invitation_service.proto - public static partial class CustomerUserAccessInvitationServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_user_access_invitation_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerUserAccessInvitationServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ck9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "dXNlcl9hY2Nlc3NfaW52aXRhdGlvbl9zZXJ2aWNlLnByb3RvEiFnb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMaSGdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tZXJfdXNlcl9hY2Nlc3NfaW52aXRh", - "dGlvbi5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29v", - "Z2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZp", - "b3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8ipwEKKU11dGF0", - "ZUN1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRpb25SZXF1ZXN0EhgKC2N1c3Rv", - "bWVyX2lkGAEgASgJQgPgQQISYAoJb3BlcmF0aW9uGAIgASgLMkguZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkN1c3RvbWVyVXNlckFjY2Vz", - "c0ludml0YXRpb25PcGVyYXRpb25CA+BBAiLWAQolQ3VzdG9tZXJVc2VyQWNj", - "ZXNzSW52aXRhdGlvbk9wZXJhdGlvbhJSCgZjcmVhdGUYASABKAsyQC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkN1c3RvbWVyVXNlckFj", - "Y2Vzc0ludml0YXRpb25IABJMCgZyZW1vdmUYAiABKAlCOvpBNwo1Z29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRp", - "b25IAEILCglvcGVyYXRpb24iiQEKKk11dGF0ZUN1c3RvbWVyVXNlckFjY2Vz", - "c0ludml0YXRpb25SZXNwb25zZRJbCgZyZXN1bHQYASABKAsySy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJVc2Vy", - "QWNjZXNzSW52aXRhdGlvblJlc3VsdCJ9CihNdXRhdGVDdXN0b21lclVzZXJB", - "Y2Nlc3NJbnZpdGF0aW9uUmVzdWx0ElEKDXJlc291cmNlX25hbWUYASABKAlC", - "OvpBNwo1Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3RvbWVyVXNlckFj", - "Y2Vzc0ludml0YXRpb24ymAMKI0N1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRp", - "b25TZXJ2aWNlEqkCCiJNdXRhdGVDdXN0b21lclVzZXJBY2Nlc3NJbnZpdGF0", - "aW9uEkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUN1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRpb25SZXF1ZXN0Gk0uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyVXNl", - "ckFjY2Vzc0ludml0YXRpb25SZXNwb25zZSJmgtPkkwJIIkMvdjEyL2N1c3Rv", - "bWVycy97Y3VzdG9tZXJfaWQ9Kn0vY3VzdG9tZXJVc2VyQWNjZXNzSW52aXRh", - "dGlvbnM6bXV0YXRlOgEq2kEVY3VzdG9tZXJfaWQsb3BlcmF0aW9uGkXKQRhn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVh", - "cGlzLmNvbS9hdXRoL2Fkd29yZHNClAIKJWNvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXNCKEN1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRp", - "b25TZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNl", - "c6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oC", - "IUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitationReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest.Parser, new[]{ "CustomerId", "Operation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CustomerUserAccessInvitation.MutateCustomerUserAccessInvitation][] - /// - public sealed partial class MutateCustomerUserAccessInvitationRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerUserAccessInvitationRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationRequest(MutateCustomerUserAccessInvitationRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationRequest Clone() { - return new MutateCustomerUserAccessInvitationRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose access invitation is being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationOperation operation_; - /// - /// Required. The operation to perform on the access invitation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerUserAccessInvitationRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerUserAccessInvitationRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerUserAccessInvitationRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationOperation(); - } - Operation.MergeFrom(other.Operation); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create or remove) on customer user access invitation. - /// - public sealed partial class CustomerUserAccessInvitationOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerUserAccessInvitationOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessInvitationOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessInvitationOperation(CustomerUserAccessInvitationOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessInvitationOperation Clone() { - return new CustomerUserAccessInvitationOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new access - /// invitation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the revoke invitation is - /// expected, in this format: - /// - /// `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerUserAccessInvitationOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerUserAccessInvitationOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerUserAccessInvitationOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for access invitation mutate. - /// - public sealed partial class MutateCustomerUserAccessInvitationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerUserAccessInvitationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationResponse(MutateCustomerUserAccessInvitationResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationResponse Clone() { - return new MutateCustomerUserAccessInvitationResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResult result_; - /// - /// Result for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResult Result { - get { return result_; } - set { - result_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerUserAccessInvitationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerUserAccessInvitationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerUserAccessInvitationResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResult(); - } - Result.MergeFrom(other.Result); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResult(); - } - input.ReadMessage(Result); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResult(); - } - input.ReadMessage(Result); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the access invitation mutate. - /// - public sealed partial class MutateCustomerUserAccessInvitationResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerUserAccessInvitationResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationResult(MutateCustomerUserAccessInvitationResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessInvitationResult Clone() { - return new MutateCustomerUserAccessInvitationResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerUserAccessInvitationResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerUserAccessInvitationResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerUserAccessInvitationResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceClient.g.cs deleted file mode 100755 index 9027c7b9d..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceClient.g.cs +++ /dev/null @@ -1,440 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerUserAccessInvitationServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// - /// Get a new instance of the default . - /// - /// A new instance of the default . - public static CustomerUserAccessInvitationServiceSettings GetDefault() => - new CustomerUserAccessInvitationServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerUserAccessInvitationServiceSettings() - { - } - - private CustomerUserAccessInvitationServiceSettings(CustomerUserAccessInvitationServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerUserAccessInvitationSettings = existing.MutateCustomerUserAccessInvitationSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerUserAccessInvitationServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerUserAccessInvitationServiceClient.MutateCustomerUserAccessInvitation and - /// CustomerUserAccessInvitationServiceClient.MutateCustomerUserAccessInvitationAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerUserAccessInvitationSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerUserAccessInvitationServiceSettings Clone() => new CustomerUserAccessInvitationServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class CustomerUserAccessInvitationServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerUserAccessInvitationServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerUserAccessInvitationServiceClientBuilder() : base(CustomerUserAccessInvitationServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerUserAccessInvitationServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerUserAccessInvitationServiceClient Build() - { - CustomerUserAccessInvitationServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerUserAccessInvitationServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerUserAccessInvitationServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerUserAccessInvitationServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerUserAccessInvitationServiceClient.ChannelPool; - } - - /// CustomerUserAccessInvitationService client wrapper, for convenient use. - /// - /// This service manages the access invitation extended to users for a given - /// customer. - /// - public abstract partial class CustomerUserAccessInvitationServiceClient - { - /// - /// The default endpoint for the CustomerUserAccessInvitationService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerUserAccessInvitationService scopes. - /// - /// The default CustomerUserAccessInvitationService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerUserAccessInvitationService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// - /// The task representing the created . - /// - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerUserAccessInvitationServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerUserAccessInvitationServiceClient Create() => - new CustomerUserAccessInvitationServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerUserAccessInvitationServiceClient Create(grpccore::CallInvoker callInvoker, CustomerUserAccessInvitationServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient grpcClient = new CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient(callInvoker); - return new CustomerUserAccessInvitationServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerUserAccessInvitationService client - public virtual CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerUserAccessInvitationResponse MutateCustomerUserAccessInvitation(MutateCustomerUserAccessInvitationRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessInvitationAsync(MutateCustomerUserAccessInvitationRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessInvitationAsync(MutateCustomerUserAccessInvitationRequest request, st::CancellationToken cancellationToken) => - MutateCustomerUserAccessInvitationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose access invitation is being modified. - /// - /// - /// Required. The operation to perform on the access invitation - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerUserAccessInvitationResponse MutateCustomerUserAccessInvitation(string customerId, CustomerUserAccessInvitationOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerUserAccessInvitation(new MutateCustomerUserAccessInvitationRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose access invitation is being modified. - /// - /// - /// Required. The operation to perform on the access invitation - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessInvitationAsync(string customerId, CustomerUserAccessInvitationOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerUserAccessInvitationAsync(new MutateCustomerUserAccessInvitationRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose access invitation is being modified. - /// - /// - /// Required. The operation to perform on the access invitation - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessInvitationAsync(string customerId, CustomerUserAccessInvitationOperation operation, st::CancellationToken cancellationToken) => - MutateCustomerUserAccessInvitationAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerUserAccessInvitationService client wrapper implementation, for convenient use. - /// - /// This service manages the access invitation extended to users for a given - /// customer. - /// - public sealed partial class CustomerUserAccessInvitationServiceClientImpl : CustomerUserAccessInvitationServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerUserAccessInvitation; - - /// - /// Constructs a client wrapper for the CustomerUserAccessInvitationService service, with the specified gRPC - /// client and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerUserAccessInvitationServiceClientImpl(CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient grpcClient, CustomerUserAccessInvitationServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerUserAccessInvitationServiceSettings effectiveSettings = settings ?? CustomerUserAccessInvitationServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerUserAccessInvitation = clientHelper.BuildApiCall("MutateCustomerUserAccessInvitation", grpcClient.MutateCustomerUserAccessInvitationAsync, grpcClient.MutateCustomerUserAccessInvitation, effectiveSettings.MutateCustomerUserAccessInvitationSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerUserAccessInvitation); - Modify_MutateCustomerUserAccessInvitationApiCall(ref _callMutateCustomerUserAccessInvitation); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerUserAccessInvitationApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient grpcClient, CustomerUserAccessInvitationServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerUserAccessInvitationService client - public override CustomerUserAccessInvitationService.CustomerUserAccessInvitationServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerUserAccessInvitationRequest(ref MutateCustomerUserAccessInvitationRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerUserAccessInvitationResponse MutateCustomerUserAccessInvitation(MutateCustomerUserAccessInvitationRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerUserAccessInvitationRequest(ref request, ref callSettings); - return _callMutateCustomerUserAccessInvitation.Sync(request, callSettings); - } - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerUserAccessInvitationAsync(MutateCustomerUserAccessInvitationRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerUserAccessInvitationRequest(ref request, ref callSettings); - return _callMutateCustomerUserAccessInvitation.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceGrpc.g.cs deleted file mode 100755 index 89c43f3a8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceGrpc.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_user_access_invitation_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// This service manages the access invitation extended to users for a given - /// customer. - /// - public static partial class CustomerUserAccessInvitationService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerUserAccessInvitationService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessInvitationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessInvitationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerUserAccessInvitation = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerUserAccessInvitation", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessInvitationRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessInvitationResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessInvitationServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerUserAccessInvitationService - [grpc::BindServiceMethod(typeof(CustomerUserAccessInvitationService), "BindService")] - public abstract partial class CustomerUserAccessInvitationServiceBase - { - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerUserAccessInvitation(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerUserAccessInvitationService - public partial class CustomerUserAccessInvitationServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerUserAccessInvitationService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerUserAccessInvitationServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerUserAccessInvitationService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerUserAccessInvitationServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerUserAccessInvitationServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerUserAccessInvitationServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResponse MutateCustomerUserAccessInvitation(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerUserAccessInvitation(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationResponse MutateCustomerUserAccessInvitation(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerUserAccessInvitation, null, options, request); - } - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerUserAccessInvitationAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerUserAccessInvitationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes an access invitation. - /// - /// List of thrown errors: - /// [AccessInvitationError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerUserAccessInvitationAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessInvitationRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerUserAccessInvitation, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerUserAccessInvitationServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerUserAccessInvitationServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerUserAccessInvitationServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerUserAccessInvitation, serviceImpl.MutateCustomerUserAccessInvitation).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerUserAccessInvitationServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerUserAccessInvitation, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerUserAccessInvitation)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceResourceNames.g.cs deleted file mode 100755 index 890186713..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessInvitationServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerUserAccessInvitationOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerUserAccessInvitationName RemoveAsCustomerUserAccessInvitationName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerUserAccessInvitationName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerUserAccessInvitationResult - { - /// - /// -typed view over the - /// resource name property. - /// - internal gagvr::CustomerUserAccessInvitationName ResourceNameAsCustomerUserAccessInvitationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerUserAccessInvitationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessResourceNames.g.cs deleted file mode 100755 index e18df4dee..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessResourceNames.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomerUserAccess resource. - public sealed partial class CustomerUserAccessName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customerUserAccesses/{user_id}. - /// - CustomerUser = 1, - } - - private static gax::PathTemplate s_customerUser = new gax::PathTemplate("customers/{customer_id}/customerUserAccesses/{user_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomerUserAccessName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerUserAccessName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customerUserAccesses/{user_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The User ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static CustomerUserAccessName FromCustomerUser(string customerId, string userId) => - new CustomerUserAccessName(ResourceNameType.CustomerUser, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerUserAccesses/{user_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The User ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerUserAccesses/{user_id}. - /// - public static string Format(string customerId, string userId) => FormatCustomerUser(customerId, userId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customerUserAccesses/{user_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The User ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerUserAccesses/{user_id}. - /// - public static string FormatCustomerUser(string customerId, string userId) => - s_customerUser.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerUserAccesses/{user_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomerUserAccessName Parse(string customerUserAccessName) => Parse(customerUserAccessName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerUserAccesses/{user_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomerUserAccessName Parse(string customerUserAccessName, bool allowUnparsed) => - TryParse(customerUserAccessName, allowUnparsed, out CustomerUserAccessName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerUserAccesses/{user_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerUserAccessName, out CustomerUserAccessName result) => - TryParse(customerUserAccessName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/customerUserAccesses/{user_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerUserAccessName, bool allowUnparsed, out CustomerUserAccessName result) - { - gax::GaxPreconditions.CheckNotNull(customerUserAccessName, nameof(customerUserAccessName)); - gax::TemplatedResourceName resourceName; - if (s_customerUser.TryParseName(customerUserAccessName, out resourceName)) - { - result = FromCustomerUser(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customerUserAccessName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomerUserAccessName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string userId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - UserId = userId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customerUserAccesses/{user_id} - /// - /// The Customer ID. Must not be null or empty. - /// The User ID. Must not be null or empty. - public CustomerUserAccessName(string customerId, string userId) : this(ResourceNameType.CustomerUser, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), userId: gax::GaxPreconditions.CheckNotNullOrEmpty(userId, nameof(userId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The User ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string UserId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerUser: return s_customerUser.Expand(CustomerId, UserId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomerUserAccessName); - - /// - public bool Equals(CustomerUserAccessName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomerUserAccessName a, CustomerUserAccessName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomerUserAccessName a, CustomerUserAccessName b) => !(a == b); - } - - public partial class CustomerUserAccess - { - /// - /// -typed view over the resource name property. - /// - internal CustomerUserAccessName ResourceNameAsCustomerUserAccessName - { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerUserAccessName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessService.g.cs deleted file mode 100755 index 78cacc64c..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessService.g.cs +++ /dev/null @@ -1,1057 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_user_access_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customer_user_access_service.proto - public static partial class CustomerUserAccessServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customer_user_access_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomerUserAccessServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJf", - "dXNlcl9hY2Nlc3Nfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL2N1c3RvbWVyX3VzZXJfYWNjZXNzLnByb3RvGhxnb29nbGUvYXBp", - "L2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxof", - "Z29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9y", - "ZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJv", - "dG8ikwEKH011dGF0ZUN1c3RvbWVyVXNlckFjY2Vzc1JlcXVlc3QSGAoLY3Vz", - "dG9tZXJfaWQYASABKAlCA+BBAhJWCglvcGVyYXRpb24YAiABKAsyPi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3VzdG9tZXJVc2VyQWNj", - "ZXNzT3BlcmF0aW9uQgPgQQIi6QEKG0N1c3RvbWVyVXNlckFjY2Vzc09wZXJh", - "dGlvbhIvCgt1cGRhdGVfbWFzaxgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5G", - "aWVsZE1hc2sSSAoGdXBkYXRlGAEgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5DdXN0b21lclVzZXJBY2Nlc3NIABJCCgZyZW1v", - "dmUYAiABKAlCMPpBLQorZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0N1c3Rv", - "bWVyVXNlckFjY2Vzc0gAQgsKCW9wZXJhdGlvbiJ1CiBNdXRhdGVDdXN0b21l", - "clVzZXJBY2Nlc3NSZXNwb25zZRJRCgZyZXN1bHQYASABKAsyQS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJVc2Vy", - "QWNjZXNzUmVzdWx0ImkKHk11dGF0ZUN1c3RvbWVyVXNlckFjY2Vzc1Jlc3Vs", - "dBJHCg1yZXNvdXJjZV9uYW1lGAEgASgJQjD6QS0KK2dvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9DdXN0b21lclVzZXJBY2Nlc3My5wIKGUN1c3RvbWVyVXNl", - "ckFjY2Vzc1NlcnZpY2USggIKGE11dGF0ZUN1c3RvbWVyVXNlckFjY2VzcxJC", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0", - "b21lclVzZXJBY2Nlc3NSZXF1ZXN0GkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyVXNlckFjY2Vzc1Jlc3BvbnNl", - "Il2C0+STAj8iOi92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9jdXN0", - "b21lclVzZXJBY2Nlc3NlczptdXRhdGU6ASraQRVjdXN0b21lcl9pZCxvcGVy", - "YXRpb24aRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8v", - "d3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KKAgolY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IeQ3VzdG9tZXJVc2VyQWNj", - "ZXNzU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2Vydmlj", - "ZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPK", - "AiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest.Parser, new[]{ "CustomerId", "Operation" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessOperation), global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessOperation.Parser, new[]{ "UpdateMask", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResponse.Parser, new[]{ "Result" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Mutate Request for - /// [CustomerUserAccessService.MutateCustomerUserAccess][google.ads.googleads.v12.services.CustomerUserAccessService.MutateCustomerUserAccess]. - /// - public sealed partial class MutateCustomerUserAccessRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerUserAccessRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessRequest(MutateCustomerUserAccessRequest other) : this() { - customerId_ = other.customerId_; - operation_ = other.operation_ != null ? other.operation_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessRequest Clone() { - return new MutateCustomerUserAccessRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operation" field. - public const int OperationFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessOperation operation_; - /// - /// Required. The operation to perform on the customer - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessOperation Operation { - get { return operation_; } - set { - operation_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerUserAccessRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerUserAccessRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (!object.Equals(Operation, other.Operation)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (operation_ != null) hash ^= Operation.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (operation_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Operation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (operation_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Operation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerUserAccessRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.operation_ != null) { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessOperation(); - } - Operation.MergeFrom(other.Operation); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - if (operation_ == null) { - Operation = new global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessOperation(); - } - input.ReadMessage(Operation); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (update, remove) on customer user access. - /// - public sealed partial class CustomerUserAccessOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerUserAccessOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessOperation(CustomerUserAccessOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomerUserAccessOperation Clone() { - return new CustomerUserAccessOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 1; - /// - /// Update operation: The customer user access is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed access is - /// expected, in this format: - /// - /// `customers/{customer_id}/customerUserAccesses/{CustomerUserAccess.user_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Update = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomerUserAccessOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomerUserAccessOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(10); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(26); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomerUserAccessOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 26: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for customer user access mutate. - /// - public sealed partial class MutateCustomerUserAccessResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerUserAccessResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessResponse(MutateCustomerUserAccessResponse other) : this() { - result_ = other.result_ != null ? other.result_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessResponse Clone() { - return new MutateCustomerUserAccessResponse(this); - } - - /// Field number for the "result" field. - public const int ResultFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResult result_; - /// - /// Result for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResult Result { - get { return result_; } - set { - result_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerUserAccessResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerUserAccessResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Result, other.Result)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (result_ != null) hash ^= Result.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (result_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Result); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (result_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerUserAccessResponse other) { - if (other == null) { - return; - } - if (other.result_ != null) { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResult(); - } - Result.MergeFrom(other.Result); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResult(); - } - input.ReadMessage(Result); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (result_ == null) { - Result = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResult(); - } - input.ReadMessage(Result); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customer user access mutate. - /// - public sealed partial class MutateCustomerUserAccessResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomerUserAccessResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessResult(MutateCustomerUserAccessResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomerUserAccessResult Clone() { - return new MutateCustomerUserAccessResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomerUserAccessResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomerUserAccessResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomerUserAccessResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceClient.g.cs deleted file mode 100755 index 28a63c6a5..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceClient.g.cs +++ /dev/null @@ -1,456 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomerUserAccessServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomerUserAccessServiceSettings GetDefault() => new CustomerUserAccessServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomerUserAccessServiceSettings() - { - } - - private CustomerUserAccessServiceSettings(CustomerUserAccessServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomerUserAccessSettings = existing.MutateCustomerUserAccessSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomerUserAccessServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomerUserAccessServiceClient.MutateCustomerUserAccess and - /// CustomerUserAccessServiceClient.MutateCustomerUserAccessAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomerUserAccessSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomerUserAccessServiceSettings Clone() => new CustomerUserAccessServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomerUserAccessServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomerUserAccessServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomerUserAccessServiceClientBuilder() : base(CustomerUserAccessServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomerUserAccessServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomerUserAccessServiceClient Build() - { - CustomerUserAccessServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomerUserAccessServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomerUserAccessServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomerUserAccessServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomerUserAccessServiceClient.ChannelPool; - } - - /// CustomerUserAccessService client wrapper, for convenient use. - /// - /// This service manages the permissions of a user on a given customer. - /// - public abstract partial class CustomerUserAccessServiceClient - { - /// - /// The default endpoint for the CustomerUserAccessService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomerUserAccessService scopes. - /// - /// The default CustomerUserAccessService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomerUserAccessService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomerUserAccessServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomerUserAccessServiceClient Create() => new CustomerUserAccessServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomerUserAccessServiceClient Create(grpccore::CallInvoker callInvoker, CustomerUserAccessServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomerUserAccessService.CustomerUserAccessServiceClient grpcClient = new CustomerUserAccessService.CustomerUserAccessServiceClient(callInvoker); - return new CustomerUserAccessServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomerUserAccessService client - public virtual CustomerUserAccessService.CustomerUserAccessServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerUserAccessResponse MutateCustomerUserAccess(MutateCustomerUserAccessRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessAsync(MutateCustomerUserAccessRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessAsync(MutateCustomerUserAccessRequest request, st::CancellationToken cancellationToken) => - MutateCustomerUserAccessAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the customer - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomerUserAccessResponse MutateCustomerUserAccess(string customerId, CustomerUserAccessOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerUserAccess(new MutateCustomerUserAccessRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the customer - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessAsync(string customerId, CustomerUserAccessOperation operation, gaxgrpc::CallSettings callSettings = null) => - MutateCustomerUserAccessAsync(new MutateCustomerUserAccessRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operation = gax::GaxPreconditions.CheckNotNull(operation, nameof(operation)), - }, callSettings); - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being modified. - /// - /// - /// Required. The operation to perform on the customer - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomerUserAccessAsync(string customerId, CustomerUserAccessOperation operation, st::CancellationToken cancellationToken) => - MutateCustomerUserAccessAsync(customerId, operation, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomerUserAccessService client wrapper implementation, for convenient use. - /// - /// This service manages the permissions of a user on a given customer. - /// - public sealed partial class CustomerUserAccessServiceClientImpl : CustomerUserAccessServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomerUserAccess; - - /// - /// Constructs a client wrapper for the CustomerUserAccessService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomerUserAccessServiceClientImpl(CustomerUserAccessService.CustomerUserAccessServiceClient grpcClient, CustomerUserAccessServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomerUserAccessServiceSettings effectiveSettings = settings ?? CustomerUserAccessServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomerUserAccess = clientHelper.BuildApiCall("MutateCustomerUserAccess", grpcClient.MutateCustomerUserAccessAsync, grpcClient.MutateCustomerUserAccess, effectiveSettings.MutateCustomerUserAccessSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomerUserAccess); - Modify_MutateCustomerUserAccessApiCall(ref _callMutateCustomerUserAccess); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomerUserAccessApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomerUserAccessService.CustomerUserAccessServiceClient grpcClient, CustomerUserAccessServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomerUserAccessService client - public override CustomerUserAccessService.CustomerUserAccessServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomerUserAccessRequest(ref MutateCustomerUserAccessRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomerUserAccessResponse MutateCustomerUserAccess(MutateCustomerUserAccessRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerUserAccessRequest(ref request, ref callSettings); - return _callMutateCustomerUserAccess.Sync(request, callSettings); - } - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomerUserAccessAsync(MutateCustomerUserAccessRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomerUserAccessRequest(ref request, ref callSettings); - return _callMutateCustomerUserAccess.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceGrpc.g.cs deleted file mode 100755 index ed0db31f4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceGrpc.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customer_user_access_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// This service manages the permissions of a user on a given customer. - /// - public static partial class CustomerUserAccessService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomerUserAccessService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomerUserAccess = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomerUserAccess", - __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomerUserAccessResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomerUserAccessServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomerUserAccessService - [grpc::BindServiceMethod(typeof(CustomerUserAccessService), "BindService")] - public abstract partial class CustomerUserAccessServiceBase - { - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomerUserAccess(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomerUserAccessService - public partial class CustomerUserAccessServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomerUserAccessService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerUserAccessServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomerUserAccessService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomerUserAccessServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerUserAccessServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomerUserAccessServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResponse MutateCustomerUserAccess(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerUserAccess(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessResponse MutateCustomerUserAccess(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomerUserAccess, null, options, request); - } - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerUserAccessAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomerUserAccessAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Updates, removes permission of a user on a given customer. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CustomerUserAccessError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomerUserAccessAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomerUserAccessRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomerUserAccess, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomerUserAccessServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomerUserAccessServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomerUserAccessServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomerUserAccess, serviceImpl.MutateCustomerUserAccess).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomerUserAccessServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomerUserAccess, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomerUserAccess)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceResourceNames.g.cs deleted file mode 100755 index 1a044a6c4..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomerUserAccessServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomerUserAccessOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomerUserAccessName RemoveAsCustomerUserAccessName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomerUserAccessName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomerUserAccessResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomerUserAccessName ResourceNameAsCustomerUserAccessName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomerUserAccessName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttribute.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttribute.g.cs deleted file mode 100755 index a0d2f1fd9..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttribute.g.cs +++ /dev/null @@ -1,429 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/customizer_attribute.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/customizer_attribute.proto - public static partial class CustomizerAttributeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/customizer_attribute.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomizerAttributeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWl6", - "ZXJfYXR0cmlidXRlLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzGkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3Vz", - "dG9taXplcl9hdHRyaWJ1dGVfc3RhdHVzLnByb3RvGj5nb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXMvY3VzdG9taXplcl9hdHRyaWJ1dGVfdHlwZS5w", - "cm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl", - "L2FwaS9yZXNvdXJjZS5wcm90byLaAwoTQ3VzdG9taXplckF0dHJpYnV0ZRJL", - "Cg1yZXNvdXJjZV9uYW1lGAEgASgJQjTgQQX6QS4KLGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9DdXN0b21pemVyQXR0cmlidXRlEg8KAmlkGAIgASgDQgPg", - "QQMSFAoEbmFtZRgDIAEoCUIG4EEC4EEFEmYKBHR5cGUYBCABKA4yUy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuQ3VzdG9taXplckF0dHJpYnV0", - "ZVR5cGVFbnVtLkN1c3RvbWl6ZXJBdHRyaWJ1dGVUeXBlQgPgQQUSbAoGc3Rh", - "dHVzGAUgASgOMlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkN1", - "c3RvbWl6ZXJBdHRyaWJ1dGVTdGF0dXNFbnVtLkN1c3RvbWl6ZXJBdHRyaWJ1", - "dGVTdGF0dXNCA+BBAzp56kF2Cixnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q3VzdG9taXplckF0dHJpYnV0ZRJGY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0v", - "Y3VzdG9taXplckF0dHJpYnV0ZXMve2N1c3RvbWl6ZXJfYXR0cmlidXRlX2lk", - "fUKKAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNC", - "GEN1c3RvbWl6ZXJBdHRyaWJ1dGVQcm90b1ABWktnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291", - "cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2Vz", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute), global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute.Parser, new[]{ "ResourceName", "Id", "Name", "Type", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customizer attribute. - /// Use CustomerCustomizer, CampaignCustomizer, AdGroupCustomizer, or - /// AdGroupCriterionCustomizer to associate a customizer attribute and - /// set its value at the customer, campaign, ad group, or ad group criterion - /// level, respectively. - /// - public sealed partial class CustomizerAttribute : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomizerAttribute()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttributeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttribute() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttribute(CustomizerAttribute other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - type_ = other.type_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttribute Clone() { - return new CustomizerAttribute(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the customizer attribute. - /// Customizer Attribute resource names have the form: - /// - /// `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. The ID of the customizer attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. Immutable. Name of the customizer attribute. Required. It must have a minimum length - /// of 1 and maximum length of 40. Name of an enabled customizer attribute must - /// be unique (case insensitive). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType type_ = global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified; - /// - /// Immutable. The type of the customizer attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus.Unspecified; - /// - /// Output only. The status of the customizer attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomizerAttribute); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomizerAttribute other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Type != other.Type) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) hash ^= Type.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomizerAttribute other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - Type = other.Type; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType) input.ReadEnum(); - break; - } - case 40: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeError.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeError.g.cs deleted file mode 100755 index 328cbafe2..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeError.g.cs +++ /dev/null @@ -1,234 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/customizer_attribute_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/customizer_attribute_error.proto - public static partial class CustomizerAttributeErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/customizer_attribute_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomizerAttributeErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWl6ZXJf", - "YXR0cmlidXRlX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZXJyb3JzIoEBChxDdXN0b21pemVyQXR0cmlidXRlRXJyb3JFbnVtImEK", - "GEN1c3RvbWl6ZXJBdHRyaWJ1dGVFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARInCiNEVVBMSUNBVEVfQ1VTVE9NSVpFUl9BVFRSSUJVVEVf", - "TkFNRRACQv0BCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "c0IdQ3VzdG9taXplckF0dHJpYnV0ZUVycm9yUHJvdG9QAVpFZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPq", - "AiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorEnum.Types.CustomizerAttributeError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible customizer attribute errors. - /// - public sealed partial class CustomizerAttributeErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomizerAttributeErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeErrorEnum(CustomizerAttributeErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeErrorEnum Clone() { - return new CustomizerAttributeErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomizerAttributeErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomizerAttributeErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomizerAttributeErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomizerAttributeErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible customizer attribute errors. - /// - public enum CustomizerAttributeError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// CustomizerAttribute name matches that of another active - /// CustomizerAttribute. - /// - [pbr::OriginalName("DUPLICATE_CUSTOMIZER_ATTRIBUTE_NAME")] DuplicateCustomizerAttributeName = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeResourceNames.g.cs deleted file mode 100755 index e3e7bb510..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeResourceNames.g.cs +++ /dev/null @@ -1,290 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the CustomizerAttribute resource. - public sealed partial class CustomizerAttributeName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/customizerAttributes/{customizer_attribute_id} - /// . - /// - CustomerCustomizerAttribute = 1, - } - - private static gax::PathTemplate s_customerCustomizerAttribute = new gax::PathTemplate("customers/{customer_id}/customizerAttributes/{customizer_attribute_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static CustomizerAttributeName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomizerAttributeName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static CustomizerAttributeName FromCustomerCustomizerAttribute(string customerId, string customizerAttributeId) => - new CustomizerAttributeName(ResourceNameType.CustomerCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id}. - /// - public static string Format(string customerId, string customizerAttributeId) => - FormatCustomerCustomizerAttribute(customerId, customizerAttributeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id}. - /// - public static string FormatCustomerCustomizerAttribute(string customerId, string customizerAttributeId) => - s_customerCustomizerAttribute.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static CustomizerAttributeName Parse(string customizerAttributeName) => Parse(customizerAttributeName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static CustomizerAttributeName Parse(string customizerAttributeName, bool allowUnparsed) => - TryParse(customizerAttributeName, allowUnparsed, out CustomizerAttributeName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customizerAttributeName, out CustomizerAttributeName result) => - TryParse(customizerAttributeName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/customizerAttributes/{customizer_attribute_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customizerAttributeName, bool allowUnparsed, out CustomizerAttributeName result) - { - gax::GaxPreconditions.CheckNotNull(customizerAttributeName, nameof(customizerAttributeName)); - gax::TemplatedResourceName resourceName; - if (s_customerCustomizerAttribute.TryParseName(customizerAttributeName, out resourceName)) - { - result = FromCustomerCustomizerAttribute(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(customizerAttributeName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private CustomizerAttributeName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string customizerAttributeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - CustomizerAttributeId = customizerAttributeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customizerAttributes/{customizer_attribute_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The CustomizerAttribute ID. Must not be null or empty. - /// - public CustomizerAttributeName(string customerId, string customizerAttributeId) : this(ResourceNameType.CustomerCustomizerAttribute, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), customizerAttributeId: gax::GaxPreconditions.CheckNotNullOrEmpty(customizerAttributeId, nameof(customizerAttributeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The CustomizerAttribute ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string CustomizerAttributeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCustomizerAttribute: return s_customerCustomizerAttribute.Expand(CustomerId, CustomizerAttributeId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as CustomizerAttributeName); - - /// - public bool Equals(CustomizerAttributeName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(CustomizerAttributeName a, CustomizerAttributeName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(CustomizerAttributeName a, CustomizerAttributeName b) => !(a == b); - } - - public partial class CustomizerAttribute - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomizerAttributeName ResourceNameAsCustomizerAttributeName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomizerAttributeName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::CustomizerAttributeName CustomizerAttributeName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::CustomizerAttributeName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeService.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeService.g.cs deleted file mode 100755 index 490ecade8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeService.g.cs +++ /dev/null @@ -1,1253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customizer_attribute_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/customizer_attribute_service.proto - public static partial class CustomizerAttributeServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/customizer_attribute_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomizerAttributeServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9taXpl", - "cl9hdHRyaWJ1dGVfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXMvcmVzcG9uc2VfY29udGVudF90eXBlLnByb3RvGj1nb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWl6ZXJfYXR0cmlidXRlLnBy", - "b3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBp", - "L2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90", - "bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVm", - "L2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIrMC", - "CiFNdXRhdGVDdXN0b21pemVyQXR0cmlidXRlc1JlcXVlc3QSGAoLY3VzdG9t", - "ZXJfaWQYASABKAlCA+BBAhJYCgpvcGVyYXRpb25zGAIgAygLMj8uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkN1c3RvbWl6ZXJBdHRyaWJ1", - "dGVPcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoN", - "dmFsaWRhdGVfb25seRgEIAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5cGUY", - "BSABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVzcG9u", - "c2VDb250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSLsAQocQ3Vz", - "dG9taXplckF0dHJpYnV0ZU9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgEIAEo", - "CzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSSQoGY3JlYXRlGAEgASgL", - "MjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21p", - "emVyQXR0cmlidXRlSAASQwoGcmVtb3ZlGAIgASgJQjH6QS4KLGdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9DdXN0b21pemVyQXR0cmlidXRlSABCCwoJb3Bl", - "cmF0aW9uIqwBCiJNdXRhdGVDdXN0b21pemVyQXR0cmlidXRlc1Jlc3BvbnNl", - "ElMKB3Jlc3VsdHMYASADKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuTXV0YXRlQ3VzdG9taXplckF0dHJpYnV0ZVJlc3VsdBIxChVw", - "YXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAiABKAsyEi5nb29nbGUucnBjLlN0YXR1", - "cyLCAQofTXV0YXRlQ3VzdG9taXplckF0dHJpYnV0ZVJlc3VsdBJICg1yZXNv", - "dXJjZV9uYW1lGAEgASgJQjH6QS4KLGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9DdXN0b21pemVyQXR0cmlidXRlElUKFGN1c3RvbWl6ZXJfYXR0cmlidXRl", - "GAIgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5D", - "dXN0b21pemVyQXR0cmlidXRlMu8CChpDdXN0b21pemVyQXR0cmlidXRlU2Vy", - "dmljZRKJAgoaTXV0YXRlQ3VzdG9taXplckF0dHJpYnV0ZXMSRC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9taXplckF0", - "dHJpYnV0ZXNSZXF1ZXN0GkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUN1c3RvbWl6ZXJBdHRyaWJ1dGVzUmVzcG9uc2UiXoLT", - "5JMCPyI6L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2N1c3RvbWl6", - "ZXJBdHRyaWJ1dGVzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9wZXJhdGlv", - "bnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3", - "Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KLAgolY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IfQ3VzdG9taXplckF0dHJpYnV0", - "ZVNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2Vz", - "ogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIh", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttributeReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest), global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation), global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation.Parser, new[]{ "UpdateMask", "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesResponse), global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult), global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult.Parser, new[]{ "ResourceName", "CustomizerAttribute" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [CustomizerAttributeService.MutateCustomizerAttributes][google.ads.googleads.v12.services.CustomizerAttributeService.MutateCustomizerAttributes]. - /// - public sealed partial class MutateCustomizerAttributesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomizerAttributesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributesRequest(MutateCustomizerAttributesRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributesRequest Clone() { - return new MutateCustomizerAttributesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose customizer attributes are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual customizer attributes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomizerAttributesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomizerAttributesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomizerAttributesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an customizer attribute. - /// - public sealed partial class CustomizerAttributeOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomizerAttributeOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeOperation(CustomizerAttributeOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeOperation Clone() { - return new CustomizerAttributeOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new customizer - /// attribute - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed customizer attribute is - /// expected, in this format: - /// `customers/{customer_id}/customizerAttributes/{customizer_attribute_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomizerAttributeOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomizerAttributeOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomizerAttributeOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an customizer attribute mutate. - /// - public sealed partial class MutateCustomizerAttributesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomizerAttributesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributesResponse(MutateCustomizerAttributesResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributesResponse Clone() { - return new MutateCustomizerAttributesResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomizerAttributesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomizerAttributesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomizerAttributesResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the customizer attribute mutate. - /// - public sealed partial class MutateCustomizerAttributeResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateCustomizerAttributeResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributeResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributeResult(MutateCustomizerAttributeResult other) : this() { - resourceName_ = other.resourceName_; - customizerAttribute_ = other.customizerAttribute_ != null ? other.customizerAttribute_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateCustomizerAttributeResult Clone() { - return new MutateCustomizerAttributeResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "customizer_attribute" field. - public const int CustomizerAttributeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute customizerAttribute_; - /// - /// The mutated CustomizerAttribute with only mutable fields after mutate. - /// The field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute CustomizerAttribute { - get { return customizerAttribute_; } - set { - customizerAttribute_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateCustomizerAttributeResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateCustomizerAttributeResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(CustomizerAttribute, other.CustomizerAttribute)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (customizerAttribute_ != null) hash ^= CustomizerAttribute.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customizerAttribute_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomizerAttribute); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (customizerAttribute_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CustomizerAttribute); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (customizerAttribute_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CustomizerAttribute); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateCustomizerAttributeResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.customizerAttribute_ != null) { - if (customizerAttribute_ == null) { - CustomizerAttribute = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - } - CustomizerAttribute.MergeFrom(other.CustomizerAttribute); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customizerAttribute_ == null) { - CustomizerAttribute = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - } - input.ReadMessage(CustomizerAttribute); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (customizerAttribute_ == null) { - CustomizerAttribute = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - } - input.ReadMessage(CustomizerAttribute); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceClient.g.cs deleted file mode 100755 index 9a0c99d8b..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceClient.g.cs +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class CustomizerAttributeServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static CustomizerAttributeServiceSettings GetDefault() => new CustomizerAttributeServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public CustomizerAttributeServiceSettings() - { - } - - private CustomizerAttributeServiceSettings(CustomizerAttributeServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateCustomizerAttributesSettings = existing.MutateCustomizerAttributesSettings; - OnCopy(existing); - } - - partial void OnCopy(CustomizerAttributeServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// CustomizerAttributeServiceClient.MutateCustomizerAttributes and - /// CustomizerAttributeServiceClient.MutateCustomizerAttributesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateCustomizerAttributesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public CustomizerAttributeServiceSettings Clone() => new CustomizerAttributeServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class CustomizerAttributeServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public CustomizerAttributeServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public CustomizerAttributeServiceClientBuilder() : base(CustomizerAttributeServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref CustomizerAttributeServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override CustomizerAttributeServiceClient Build() - { - CustomizerAttributeServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private CustomizerAttributeServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return CustomizerAttributeServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return CustomizerAttributeServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => CustomizerAttributeServiceClient.ChannelPool; - } - - /// CustomizerAttributeService client wrapper, for convenient use. - /// - /// Service to manage customizer attribute - /// - public abstract partial class CustomizerAttributeServiceClient - { - /// - /// The default endpoint for the CustomizerAttributeService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default CustomizerAttributeService scopes. - /// - /// The default CustomizerAttributeService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(CustomizerAttributeService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new CustomizerAttributeServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static CustomizerAttributeServiceClient Create() => new CustomizerAttributeServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static CustomizerAttributeServiceClient Create(grpccore::CallInvoker callInvoker, CustomizerAttributeServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - CustomizerAttributeService.CustomizerAttributeServiceClient grpcClient = new CustomizerAttributeService.CustomizerAttributeServiceClient(callInvoker); - return new CustomizerAttributeServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC CustomizerAttributeService client - public virtual CustomizerAttributeService.CustomizerAttributeServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomizerAttributesResponse MutateCustomizerAttributes(MutateCustomizerAttributesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomizerAttributesAsync(MutateCustomizerAttributesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomizerAttributesAsync(MutateCustomizerAttributesRequest request, st::CancellationToken cancellationToken) => - MutateCustomizerAttributesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customizer attributes are being modified. - /// - /// - /// Required. The list of operations to perform on individual customizer attributes. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateCustomizerAttributesResponse MutateCustomizerAttributes(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomizerAttributes(new MutateCustomizerAttributesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customizer attributes are being modified. - /// - /// - /// Required. The list of operations to perform on individual customizer attributes. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomizerAttributesAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateCustomizerAttributesAsync(new MutateCustomizerAttributesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// - /// Required. The ID of the customer whose customizer attributes are being modified. - /// - /// - /// Required. The list of operations to perform on individual customizer attributes. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateCustomizerAttributesAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateCustomizerAttributesAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// CustomizerAttributeService client wrapper implementation, for convenient use. - /// - /// Service to manage customizer attribute - /// - public sealed partial class CustomizerAttributeServiceClientImpl : CustomizerAttributeServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateCustomizerAttributes; - - /// - /// Constructs a client wrapper for the CustomizerAttributeService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public CustomizerAttributeServiceClientImpl(CustomizerAttributeService.CustomizerAttributeServiceClient grpcClient, CustomizerAttributeServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - CustomizerAttributeServiceSettings effectiveSettings = settings ?? CustomizerAttributeServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateCustomizerAttributes = clientHelper.BuildApiCall("MutateCustomizerAttributes", grpcClient.MutateCustomizerAttributesAsync, grpcClient.MutateCustomizerAttributes, effectiveSettings.MutateCustomizerAttributesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateCustomizerAttributes); - Modify_MutateCustomizerAttributesApiCall(ref _callMutateCustomizerAttributes); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateCustomizerAttributesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(CustomizerAttributeService.CustomizerAttributeServiceClient grpcClient, CustomizerAttributeServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC CustomizerAttributeService client - public override CustomizerAttributeService.CustomizerAttributeServiceClient GrpcClient { get; } - - partial void Modify_MutateCustomizerAttributesRequest(ref MutateCustomizerAttributesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateCustomizerAttributesResponse MutateCustomizerAttributes(MutateCustomizerAttributesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomizerAttributesRequest(ref request, ref callSettings); - return _callMutateCustomizerAttributes.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateCustomizerAttributesAsync(MutateCustomizerAttributesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateCustomizerAttributesRequest(ref request, ref callSettings); - return _callMutateCustomizerAttributes.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceGrpc.g.cs deleted file mode 100755 index d8fe4959e..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceGrpc.g.cs +++ /dev/null @@ -1,212 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/customizer_attribute_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage customizer attribute - /// - public static partial class CustomizerAttributeService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.CustomizerAttributeService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomizerAttributesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateCustomizerAttributesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateCustomizerAttributes = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateCustomizerAttributes", - __Marshaller_google_ads_googleads_v12_services_MutateCustomizerAttributesRequest, - __Marshaller_google_ads_googleads_v12_services_MutateCustomizerAttributesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of CustomizerAttributeService - [grpc::BindServiceMethod(typeof(CustomizerAttributeService), "BindService")] - public abstract partial class CustomizerAttributeServiceBase - { - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateCustomizerAttributes(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for CustomizerAttributeService - public partial class CustomizerAttributeServiceClient : grpc::ClientBase - { - /// Creates a new client for CustomizerAttributeService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomizerAttributeServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for CustomizerAttributeService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public CustomizerAttributeServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomizerAttributeServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected CustomizerAttributeServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesResponse MutateCustomizerAttributes(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomizerAttributes(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesResponse MutateCustomizerAttributes(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateCustomizerAttributes, null, options, request); - } - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomizerAttributesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateCustomizerAttributesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes customizer attributes. Operation statuses are - /// returned. - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateCustomizerAttributesAsync(global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateCustomizerAttributes, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override CustomizerAttributeServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new CustomizerAttributeServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(CustomizerAttributeServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateCustomizerAttributes, serviceImpl.MutateCustomizerAttributes).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, CustomizerAttributeServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateCustomizerAttributes, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateCustomizerAttributes)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceResourceNames.g.cs deleted file mode 100755 index 3ea40c535..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class CustomizerAttributeOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomizerAttributeName RemoveAsCustomizerAttributeName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::CustomizerAttributeName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateCustomizerAttributeResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CustomizerAttributeName ResourceNameAsCustomizerAttributeName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::CustomizerAttributeName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeStatus.g.cs deleted file mode 100755 index 05b80f1a8..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/customizer_attribute_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/customizer_attribute_status.proto - public static partial class CustomizerAttributeStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/customizer_attribute_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomizerAttributeStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9taXplcl9h", - "dHRyaWJ1dGVfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMidAodQ3VzdG9taXplckF0dHJpYnV0ZVN0YXR1c0VudW0iUwoZ", - "Q3VzdG9taXplckF0dHJpYnV0ZVN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARILCgdFTkFCTEVEEAISCwoHUkVNT1ZFRBADQvgBCiJjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQh5DdXN0b21pemVyQXR0", - "cmlidXRlU3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv", - "dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6IC", - "A0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusEnum.Types.CustomizerAttributeStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a customizer attribute. - /// - public sealed partial class CustomizerAttributeStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomizerAttributeStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeStatusEnum(CustomizerAttributeStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeStatusEnum Clone() { - return new CustomizerAttributeStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomizerAttributeStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomizerAttributeStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomizerAttributeStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomizerAttributeStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of a customizer attribute. - /// - public enum CustomizerAttributeStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The customizer attribute is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The customizer attribute is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeType.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerAttributeType.g.cs deleted file mode 100755 index 7eb34fba1..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerAttributeType.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/customizer_attribute_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/customizer_attribute_type.proto - public static partial class CustomizerAttributeTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/customizer_attribute_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomizerAttributeTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9taXplcl9h", - "dHRyaWJ1dGVfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zIoQBChtDdXN0b21pemVyQXR0cmlidXRlVHlwZUVudW0iZQoXQ3Vz", - "dG9taXplckF0dHJpYnV0ZVR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktO", - "T1dOEAESCAoEVEVYVBACEgoKBk5VTUJFUhADEgkKBVBSSUNFEAQSCwoHUEVS", - "Q0VOVBAFQvYBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "QhxDdXN0b21pemVyQXR0cmlidXRlVHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible types of a customizer attribute. - /// - public sealed partial class CustomizerAttributeTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomizerAttributeTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeTypeEnum(CustomizerAttributeTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerAttributeTypeEnum Clone() { - return new CustomizerAttributeTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomizerAttributeTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomizerAttributeTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomizerAttributeTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomizerAttributeTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible types of a customizer attribute. - /// - public enum CustomizerAttributeType { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Text customizer. - /// - [pbr::OriginalName("TEXT")] Text = 2, - /// - /// Number customizer. - /// - [pbr::OriginalName("NUMBER")] Number = 3, - /// - /// Price customizer consisting of a number and a currency. - /// - [pbr::OriginalName("PRICE")] Price = 4, - /// - /// Percentage customizer consisting of a number and a '%'. - /// - [pbr::OriginalName("PERCENT")] Percent = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerValue.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerValue.g.cs deleted file mode 100755 index aad083dd9..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerValue.g.cs +++ /dev/null @@ -1,294 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/customizer_value.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/customizer_value.proto - public static partial class CustomizerValueReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/customizer_value.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomizerValueReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2N1c3RvbWl6ZXJf", - "dmFsdWUucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24a", - "Pmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9jdXN0b21pemVyX2F0", - "dHJpYnV0ZV90eXBlLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9y", - "LnByb3RvIpQBCg9DdXN0b21pemVyVmFsdWUSZgoEdHlwZRgBIAEoDjJTLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DdXN0b21pemVyQXR0cmli", - "dXRlVHlwZUVudW0uQ3VzdG9taXplckF0dHJpYnV0ZVR5cGVCA+BBAhIZCgxz", - "dHJpbmdfdmFsdWUYAiABKAlCA+BBAkL0AQojY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5jb21tb25CFEN1c3RvbWl6ZXJWYWx1ZVByb3RvUAFaRWdv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvY29tbW9uO2NvbW1vbqICA0dBQaoCH0dvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5Db21tb27KAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "Q29tbW9u6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpDb21tb25i", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CustomizerValue), global::Google.Ads.GoogleAds.V12.Common.CustomizerValue.Parser, new[]{ "Type", "StringValue" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A customizer value that is referenced in customizer linkage entities - /// like CustomerCustomizer, CampaignCustomizer, etc. - /// - public sealed partial class CustomizerValue : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomizerValue()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.CustomizerValueReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerValue(CustomizerValue other) : this() { - type_ = other.type_; - stringValue_ = other.stringValue_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerValue Clone() { - return new CustomizerValue(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType type_ = global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified; - /// - /// Required. The data type for the customizer value. It must match the attribute type. - /// The string_value content must match the constraints associated with the - /// type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "string_value" field. - public const int StringValueFieldNumber = 2; - private string stringValue_ = ""; - /// - /// Required. Value to insert in creative text. Customizer values of all types are stored - /// as string to make formatting unambiguous. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StringValue { - get { return stringValue_; } - set { - stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomizerValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomizerValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (StringValue != other.StringValue) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) hash ^= Type.GetHashCode(); - if (StringValue.Length != 0) hash ^= StringValue.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (StringValue.Length != 0) { - output.WriteRawTag(18); - output.WriteString(StringValue); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (StringValue.Length != 0) { - output.WriteRawTag(18); - output.WriteString(StringValue); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (StringValue.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomizerValue other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType.Unspecified) { - Type = other.Type; - } - if (other.StringValue.Length != 0) { - StringValue = other.StringValue; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType) input.ReadEnum(); - break; - } - case 18: { - StringValue = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.CustomizerAttributeTypeEnum.Types.CustomizerAttributeType) input.ReadEnum(); - break; - } - case 18: { - StringValue = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/CustomizerValueStatus.g.cs b/Google.Ads.GoogleAds/src/V12/CustomizerValueStatus.g.cs deleted file mode 100755 index 0a383f950..000000000 --- a/Google.Ads.GoogleAds/src/V12/CustomizerValueStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/customizer_value_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/customizer_value_status.proto - public static partial class CustomizerValueStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/customizer_value_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static CustomizerValueStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY3VzdG9taXplcl92", - "YWx1ZV9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJsChlDdXN0b21pemVyVmFsdWVTdGF0dXNFbnVtIk8KFUN1c3RvbWl6", - "ZXJWYWx1ZVN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIL", - "CgdFTkFCTEVEEAISCwoHUkVNT1ZFRBADQvQBCiJjb20uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zQhpDdXN0b21pemVyVmFsdWVTdGF0dXNQcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusEnum.Types.CustomizerValueStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a customizer value. - /// - public sealed partial class CustomizerValueStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomizerValueStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CustomizerValueStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerValueStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerValueStatusEnum(CustomizerValueStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CustomizerValueStatusEnum Clone() { - return new CustomizerValueStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CustomizerValueStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CustomizerValueStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CustomizerValueStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the CustomizerValueStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of a customizer value. - /// - public enum CustomizerValueStatus { - /// - /// The status has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The customizer value is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The customizer value is removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DataDrivenModelStatus.g.cs b/Google.Ads.GoogleAds/src/V12/DataDrivenModelStatus.g.cs deleted file mode 100755 index 5c11fd17b..000000000 --- a/Google.Ads.GoogleAds/src/V12/DataDrivenModelStatus.g.cs +++ /dev/null @@ -1,251 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/data_driven_model_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/data_driven_model_status.proto - public static partial class DataDrivenModelStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/data_driven_model_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DataDrivenModelStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZGF0YV9kcml2ZW5f", - "bW9kZWxfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMijgEKGURhdGFEcml2ZW5Nb2RlbFN0YXR1c0VudW0icQoVRGF0YURy", - "aXZlbk1vZGVsU3RhdHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThAB", - "Eg0KCUFWQUlMQUJMRRACEgkKBVNUQUxFEAMSCwoHRVhQSVJFRBAEEhMKD05F", - "VkVSX0dFTkVSQVRFRBAFQvQBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQhpEYXRhRHJpdmVuTW9kZWxTdGF0dXNQcm90b1ABWkNnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVB", - "ZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z", - "6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusEnum.Types.DataDrivenModelStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum indicating data driven model status. - /// - public sealed partial class DataDrivenModelStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataDrivenModelStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.DataDrivenModelStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataDrivenModelStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataDrivenModelStatusEnum(DataDrivenModelStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DataDrivenModelStatusEnum Clone() { - return new DataDrivenModelStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DataDrivenModelStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DataDrivenModelStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DataDrivenModelStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DataDrivenModelStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates data driven model statuses. - /// - public enum DataDrivenModelStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The data driven model is available. - /// - [pbr::OriginalName("AVAILABLE")] Available = 2, - /// - /// The data driven model is stale. It hasn't been updated for at least 7 - /// days. It is still being used, but will become expired if it does not get - /// updated for 30 days. - /// - [pbr::OriginalName("STALE")] Stale = 3, - /// - /// The data driven model expired. It hasn't been updated for at least 30 - /// days and cannot be used. Most commonly this is because there hasn't been - /// the required number of events in a recent 30-day period. - /// - [pbr::OriginalName("EXPIRED")] Expired = 4, - /// - /// The data driven model has never been generated. Most commonly this is - /// because there has never been the required number of events in any 30-day - /// period. - /// - [pbr::OriginalName("NEVER_GENERATED")] NeverGenerated = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DatabaseError.g.cs b/Google.Ads.GoogleAds/src/V12/DatabaseError.g.cs deleted file mode 100755 index c63b9f6a9..000000000 --- a/Google.Ads.GoogleAds/src/V12/DatabaseError.g.cs +++ /dev/null @@ -1,244 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/database_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/database_error.proto - public static partial class DatabaseErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/database_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DatabaseErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2RhdGFiYXNlX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIpYB", - "ChFEYXRhYmFzZUVycm9yRW51bSKAAQoNRGF0YWJhc2VFcnJvchIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARIbChdDT05DVVJSRU5UX01PRElGSUNB", - "VElPThACEh0KGURBVEFfQ09OU1RSQUlOVF9WSU9MQVRJT04QAxIVChFSRVFV", - "RVNUX1RPT19MQVJHRRAEQvIBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9yc0ISRGF0YWJhc2VFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIj", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorEnum.Types.DatabaseError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible database errors. - /// - public sealed partial class DatabaseErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DatabaseErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DatabaseErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DatabaseErrorEnum(DatabaseErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DatabaseErrorEnum Clone() { - return new DatabaseErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DatabaseErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DatabaseErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DatabaseErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DatabaseErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible database errors. - /// - public enum DatabaseError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Multiple requests were attempting to modify the same resource at once. - /// Retry the request. - /// - [pbr::OriginalName("CONCURRENT_MODIFICATION")] ConcurrentModification = 2, - /// - /// The request conflicted with existing data. This error will usually be - /// replaced with a more specific error if the request is retried. - /// - [pbr::OriginalName("DATA_CONSTRAINT_VIOLATION")] DataConstraintViolation = 3, - /// - /// The data written is too large. Split the request into smaller - /// requests. - /// - [pbr::OriginalName("REQUEST_TOO_LARGE")] RequestTooLarge = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DateError.g.cs b/Google.Ads.GoogleAds/src/V12/DateError.g.cs deleted file mode 100755 index 5650a7544..000000000 --- a/Google.Ads.GoogleAds/src/V12/DateError.g.cs +++ /dev/null @@ -1,276 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/date_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/date_error.proto - public static partial class DateErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/date_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DateErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2RhdGVfZXJyb3Iu", - "cHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMivwMKDURh", - "dGVFcnJvckVudW0irQMKCURhdGVFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARIgChxJTlZBTElEX0ZJRUxEX1ZBTFVFU19JTl9EQVRFEAIS", - "JQohSU5WQUxJRF9GSUVMRF9WQUxVRVNfSU5fREFURV9USU1FEAMSFwoTSU5W", - "QUxJRF9TVFJJTkdfREFURRAEEiMKH0lOVkFMSURfU1RSSU5HX0RBVEVfVElN", - "RV9NSUNST1MQBhIkCiBJTlZBTElEX1NUUklOR19EQVRFX1RJTUVfU0VDT05E", - "UxALEjAKLElOVkFMSURfU1RSSU5HX0RBVEVfVElNRV9TRUNPTkRTX1dJVEhf", - "T0ZGU0VUEAwSHQoZRUFSTElFUl9USEFOX01JTklNVU1fREFURRAHEhsKF0xB", - "VEVSX1RIQU5fTUFYSU1VTV9EQVRFEAgSMwovREFURV9SQU5HRV9NSU5JTVVN", - "X0RBVEVfTEFURVJfVEhBTl9NQVhJTVVNX0RBVEUQCRIyCi5EQVRFX1JBTkdF", - "X01JTklNVU1fQU5EX01BWElNVU1fREFURVNfQk9USF9OVUxMEApC7gEKI2Nv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQg5EYXRlRXJyb3JQ", - "cm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.DateErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.DateErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.DateErrorEnum.Types.DateError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible date errors. - /// - public sealed partial class DateErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DateErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.DateErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateErrorEnum(DateErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateErrorEnum Clone() { - return new DateErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DateErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DateErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DateErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DateErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible date errors. - /// - public enum DateError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Given field values do not correspond to a valid date. - /// - [pbr::OriginalName("INVALID_FIELD_VALUES_IN_DATE")] InvalidFieldValuesInDate = 2, - /// - /// Given field values do not correspond to a valid date time. - /// - [pbr::OriginalName("INVALID_FIELD_VALUES_IN_DATE_TIME")] InvalidFieldValuesInDateTime = 3, - /// - /// The string date's format should be yyyy-mm-dd. - /// - [pbr::OriginalName("INVALID_STRING_DATE")] InvalidStringDate = 4, - /// - /// The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss. - /// - [pbr::OriginalName("INVALID_STRING_DATE_TIME_MICROS")] InvalidStringDateTimeMicros = 6, - /// - /// The string date time's format should be yyyy-mm-dd hh:mm:ss. - /// - [pbr::OriginalName("INVALID_STRING_DATE_TIME_SECONDS")] InvalidStringDateTimeSeconds = 11, - /// - /// The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm. - /// - [pbr::OriginalName("INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET")] InvalidStringDateTimeSecondsWithOffset = 12, - /// - /// Date is before allowed minimum. - /// - [pbr::OriginalName("EARLIER_THAN_MINIMUM_DATE")] EarlierThanMinimumDate = 7, - /// - /// Date is after allowed maximum. - /// - [pbr::OriginalName("LATER_THAN_MAXIMUM_DATE")] LaterThanMaximumDate = 8, - /// - /// Date range bounds are not in order. - /// - [pbr::OriginalName("DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE")] DateRangeMinimumDateLaterThanMaximumDate = 9, - /// - /// Both dates in range are null. - /// - [pbr::OriginalName("DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL")] DateRangeMinimumAndMaximumDatesBothNull = 10, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DateRangeError.g.cs b/Google.Ads.GoogleAds/src/V12/DateRangeError.g.cs deleted file mode 100755 index ba1a9e649..000000000 --- a/Google.Ads.GoogleAds/src/V12/DateRangeError.g.cs +++ /dev/null @@ -1,251 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/date_range_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/date_range_error.proto - public static partial class DateRangeErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/date_range_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DateRangeErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2RhdGVfcmFuZ2Vf", - "ZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMi", - "5gEKEkRhdGVSYW5nZUVycm9yRW51bSLPAQoORGF0ZVJhbmdlRXJyb3ISDwoL", - "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESEAoMSU5WQUxJRF9EQVRFEAIS", - "HQoZU1RBUlRfREFURV9BRlRFUl9FTkRfREFURRADEhsKF0NBTk5PVF9TRVRf", - "REFURV9UT19QQVNUEAQSIAocQUZURVJfTUFYSU1VTV9BTExPV0FCTEVfREFU", - "RRAFEi8KK0NBTk5PVF9NT0RJRllfU1RBUlRfREFURV9JRl9BTFJFQURZX1NU", - "QVJURUQQBkLzAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnNCE0RhdGVSYW5nZUVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcv", - "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7", - "ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9y", - "c8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorEnum.Types.DateRangeError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible date range errors. - /// - public sealed partial class DateRangeErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DateRangeErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateRangeErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateRangeErrorEnum(DateRangeErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateRangeErrorEnum Clone() { - return new DateRangeErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DateRangeErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DateRangeErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DateRangeErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DateRangeErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible date range errors. - /// - public enum DateRangeError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Invalid date. - /// - [pbr::OriginalName("INVALID_DATE")] InvalidDate = 2, - /// - /// The start date was after the end date. - /// - [pbr::OriginalName("START_DATE_AFTER_END_DATE")] StartDateAfterEndDate = 3, - /// - /// Cannot set date to past time - /// - [pbr::OriginalName("CANNOT_SET_DATE_TO_PAST")] CannotSetDateToPast = 4, - /// - /// A date was used that is past the system "last" date. - /// - [pbr::OriginalName("AFTER_MAXIMUM_ALLOWABLE_DATE")] AfterMaximumAllowableDate = 5, - /// - /// Trying to change start date on a resource that has started. - /// - [pbr::OriginalName("CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED")] CannotModifyStartDateIfAlreadyStarted = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Dates.g.cs b/Google.Ads.GoogleAds/src/V12/Dates.g.cs deleted file mode 100755 index 46c5d8405..000000000 --- a/Google.Ads.GoogleAds/src/V12/Dates.g.cs +++ /dev/null @@ -1,807 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/dates.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/dates.proto - public static partial class DatesReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/dates.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DatesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Citnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2RhdGVzLnByb3Rv", - "Eh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uGjJnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvbW9udGhfb2ZfeWVhci5wcm90byJXCglE", - "YXRlUmFuZ2USFwoKc3RhcnRfZGF0ZRgDIAEoCUgAiAEBEhUKCGVuZF9kYXRl", - "GAQgASgJSAGIAQFCDQoLX3N0YXJ0X2RhdGVCCwoJX2VuZF9kYXRlIoQBCg5Z", - "ZWFyTW9udGhSYW5nZRI5CgVzdGFydBgBIAEoCzIqLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5jb21tb24uWWVhck1vbnRoEjcKA2VuZBgCIAEoCzIqLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uWWVhck1vbnRoImUKCVll", - "YXJNb250aBIMCgR5ZWFyGAEgASgDEkoKBW1vbnRoGAIgASgOMjsuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLk1vbnRoT2ZZZWFyRW51bS5Nb250", - "aE9mWWVhckLqAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b25CCkRhdGVzUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb247Y29tbW9uogID", - "R0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkNvbW1vbsoCH0dvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxDb21tb27qAiNHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkNvbW1vbmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DateRange), global::Google.Ads.GoogleAds.V12.Common.DateRange.Parser, new[]{ "StartDate", "EndDate" }, new[]{ "StartDate", "EndDate" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.YearMonthRange), global::Google.Ads.GoogleAds.V12.Common.YearMonthRange.Parser, new[]{ "Start", "End" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.YearMonth), global::Google.Ads.GoogleAds.V12.Common.YearMonth.Parser, new[]{ "Year", "Month" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A date range. - /// - public sealed partial class DateRange : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DateRange()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.DatesReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateRange() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateRange(DateRange other) : this() { - startDate_ = other.startDate_; - endDate_ = other.endDate_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DateRange Clone() { - return new DateRange(this); - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 3; - private string startDate_; - /// - /// The start date, in yyyy-mm-dd format. This date is inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_ ?? ""; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDate { - get { return startDate_ != null; } - } - /// Clears the value of the "start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDate() { - startDate_ = null; - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 4; - private string endDate_; - /// - /// The end date, in yyyy-mm-dd format. This date is inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_ ?? ""; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDate { - get { return endDate_ != null; } - } - /// Clears the value of the "end_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDate() { - endDate_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DateRange); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DateRange other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasStartDate) hash ^= StartDate.GetHashCode(); - if (HasEndDate) hash ^= EndDate.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasStartDate) { - output.WriteRawTag(26); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(34); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasStartDate) { - output.WriteRawTag(26); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(34); - output.WriteString(EndDate); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasStartDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (HasEndDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DateRange other) { - if (other == null) { - return; - } - if (other.HasStartDate) { - StartDate = other.StartDate; - } - if (other.HasEndDate) { - EndDate = other.EndDate; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - StartDate = input.ReadString(); - break; - } - case 34: { - EndDate = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - StartDate = input.ReadString(); - break; - } - case 34: { - EndDate = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The year month range inclusive of the start and end months. - /// Eg: A year month range to represent Jan 2020 would be: (Jan 2020, Jan 2020). - /// - public sealed partial class YearMonthRange : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new YearMonthRange()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.DatesReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YearMonthRange() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YearMonthRange(YearMonthRange other) : this() { - start_ = other.start_ != null ? other.start_.Clone() : null; - end_ = other.end_ != null ? other.end_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YearMonthRange Clone() { - return new YearMonthRange(this); - } - - /// Field number for the "start" field. - public const int StartFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.YearMonth start_; - /// - /// The inclusive start year month. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YearMonth Start { - get { return start_; } - set { - start_ = value; - } - } - - /// Field number for the "end" field. - public const int EndFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.YearMonth end_; - /// - /// The inclusive end year month. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YearMonth End { - get { return end_; } - set { - end_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as YearMonthRange); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(YearMonthRange other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Start, other.Start)) return false; - if (!object.Equals(End, other.End)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (start_ != null) hash ^= Start.GetHashCode(); - if (end_ != null) hash ^= End.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (start_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(18); - output.WriteMessage(End); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (start_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Start); - } - if (end_ != null) { - output.WriteRawTag(18); - output.WriteMessage(End); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (start_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start); - } - if (end_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(End); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(YearMonthRange other) { - if (other == null) { - return; - } - if (other.start_ != null) { - if (start_ == null) { - Start = new global::Google.Ads.GoogleAds.V12.Common.YearMonth(); - } - Start.MergeFrom(other.Start); - } - if (other.end_ != null) { - if (end_ == null) { - End = new global::Google.Ads.GoogleAds.V12.Common.YearMonth(); - } - End.MergeFrom(other.End); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (start_ == null) { - Start = new global::Google.Ads.GoogleAds.V12.Common.YearMonth(); - } - input.ReadMessage(Start); - break; - } - case 18: { - if (end_ == null) { - End = new global::Google.Ads.GoogleAds.V12.Common.YearMonth(); - } - input.ReadMessage(End); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (start_ == null) { - Start = new global::Google.Ads.GoogleAds.V12.Common.YearMonth(); - } - input.ReadMessage(Start); - break; - } - case 18: { - if (end_ == null) { - End = new global::Google.Ads.GoogleAds.V12.Common.YearMonth(); - } - input.ReadMessage(End); - break; - } - } - } - } - #endif - - } - - /// - /// Year month. - /// - public sealed partial class YearMonth : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new YearMonth()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.DatesReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YearMonth() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YearMonth(YearMonth other) : this() { - year_ = other.year_; - month_ = other.month_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public YearMonth Clone() { - return new YearMonth(this); - } - - /// Field number for the "year" field. - public const int YearFieldNumber = 1; - private long year_; - /// - /// The year (for example, 2020). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Year { - get { return year_; } - set { - year_ = value; - } - } - - /// Field number for the "month" field. - public const int MonthFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear month_ = global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified; - /// - /// The month of the year. (for example, FEBRUARY). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear Month { - get { return month_; } - set { - month_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as YearMonth); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(YearMonth other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Year != other.Year) return false; - if (Month != other.Month) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Year != 0L) hash ^= Year.GetHashCode(); - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) hash ^= Month.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Year != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Year); - } - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Month); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Year != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Year); - } - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Month); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Year != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Year); - } - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Month); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(YearMonth other) { - if (other == null) { - return; - } - if (other.Year != 0L) { - Year = other.Year; - } - if (other.Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - Month = other.Month; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Year = input.ReadInt64(); - break; - } - case 16: { - Month = (global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Year = input.ReadInt64(); - break; - } - case 16: { - Month = (global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DayOfWeek.g.cs b/Google.Ads.GoogleAds/src/V12/DayOfWeek.g.cs deleted file mode 100755 index 12e0d37e3..000000000 --- a/Google.Ads.GoogleAds/src/V12/DayOfWeek.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/day_of_week.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/day_of_week.proto - public static partial class DayOfWeekReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/day_of_week.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DayOfWeekReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZGF5X29mX3dlZWsu", - "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKXAQoNRGF5", - "T2ZXZWVrRW51bSKFAQoJRGF5T2ZXZWVrEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEgoKBk1PTkRBWRACEgsKB1RVRVNEQVkQAxINCglXRURORVNE", - "QVkQBBIMCghUSFVSU0RBWRAFEgoKBkZSSURBWRAGEgwKCFNBVFVSREFZEAcS", - "CgoGU1VOREFZEAhC6AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXNCDkRheU9mV2Vla1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51", - "bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5H", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum), global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekEnum.Types.DayOfWeek) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of days of the week, for example, "Monday". - /// - public sealed partial class DayOfWeekEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DayOfWeekEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.DayOfWeekReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DayOfWeekEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DayOfWeekEnum(DayOfWeekEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DayOfWeekEnum Clone() { - return new DayOfWeekEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DayOfWeekEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DayOfWeekEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DayOfWeekEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DayOfWeekEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates days of the week, for example, "Monday". - /// - public enum DayOfWeek { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Monday. - /// - [pbr::OriginalName("MONDAY")] Monday = 2, - /// - /// Tuesday. - /// - [pbr::OriginalName("TUESDAY")] Tuesday = 3, - /// - /// Wednesday. - /// - [pbr::OriginalName("WEDNESDAY")] Wednesday = 4, - /// - /// Thursday. - /// - [pbr::OriginalName("THURSDAY")] Thursday = 5, - /// - /// Friday. - /// - [pbr::OriginalName("FRIDAY")] Friday = 6, - /// - /// Saturday. - /// - [pbr::OriginalName("SATURDAY")] Saturday = 7, - /// - /// Sunday. - /// - [pbr::OriginalName("SUNDAY")] Sunday = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DetailPlacementView.g.cs b/Google.Ads.GoogleAds/src/V12/DetailPlacementView.g.cs deleted file mode 100755 index 8d8be4bd6..000000000 --- a/Google.Ads.GoogleAds/src/V12/DetailPlacementView.g.cs +++ /dev/null @@ -1,515 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/detail_placement_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/detail_placement_view.proto - public static partial class DetailPlacementViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/detail_placement_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DetailPlacementViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2RldGFpbF9w", - "bGFjZW1lbnRfdmlldy5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Bs", - "YWNlbWVudF90eXBlLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9y", - "LnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIpkEChNEZXRhaWxQ", - "bGFjZW1lbnRWaWV3EksKDXJlc291cmNlX25hbWUYASABKAlCNOBBA/pBLgos", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0RldGFpbFBsYWNlbWVudFZpZXcS", - "GwoJcGxhY2VtZW50GAcgASgJQgPgQQNIAIgBARIeCgxkaXNwbGF5X25hbWUY", - "CCABKAlCA+BBA0gBiAEBEiwKGmdyb3VwX3BsYWNlbWVudF90YXJnZXRfdXJs", - "GAkgASgJQgPgQQNIAogBARIcCgp0YXJnZXRfdXJsGAogASgJQgPgQQNIA4gB", - "ARJcCg5wbGFjZW1lbnRfdHlwZRgGIAEoDjI/Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5QbGFjZW1lbnRUeXBlRW51bS5QbGFjZW1lbnRUeXBl", - "QgPgQQM6gAHqQX0KLGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9EZXRhaWxQ", - "bGFjZW1lbnRWaWV3Ek1jdXN0b21lcnMve2N1c3RvbWVyX2lkfS9kZXRhaWxQ", - "bGFjZW1lbnRWaWV3cy97YWRfZ3JvdXBfaWR9fntiYXNlNjRfcGxhY2VtZW50", - "fUIMCgpfcGxhY2VtZW50Qg8KDV9kaXNwbGF5X25hbWVCHQobX2dyb3VwX3Bs", - "YWNlbWVudF90YXJnZXRfdXJsQg0KC190YXJnZXRfdXJsQooCCiZjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0IYRGV0YWlsUGxhY2Vt", - "ZW50Vmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNl", - "c6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPK", - "AiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xl", - "OjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementView), global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementView.Parser, new[]{ "ResourceName", "Placement", "DisplayName", "GroupPlacementTargetUrl", "TargetUrl", "PlacementType" }, new[]{ "Placement", "DisplayName", "GroupPlacementTargetUrl", "TargetUrl" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A view with metrics aggregated by ad group and URL or YouTube video. - /// - public sealed partial class DetailPlacementView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetailPlacementView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailPlacementView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailPlacementView(DetailPlacementView other) : this() { - resourceName_ = other.resourceName_; - placement_ = other.placement_; - displayName_ = other.displayName_; - groupPlacementTargetUrl_ = other.groupPlacementTargetUrl_; - targetUrl_ = other.targetUrl_; - placementType_ = other.placementType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailPlacementView Clone() { - return new DetailPlacementView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the detail placement view. - /// Detail placement view resource names have the form: - /// - /// `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "placement" field. - public const int PlacementFieldNumber = 7; - private string placement_; - /// - /// Output only. The automatic placement string at detail level, e. g. website URL, mobile - /// application ID, or a YouTube video ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Placement { - get { return placement_ ?? ""; } - set { - placement_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "placement" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlacement { - get { return placement_ != null; } - } - /// Clears the value of the "placement" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlacement() { - placement_ = null; - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 8; - private string displayName_; - /// - /// Output only. The display name is URL name for websites, YouTube video name for YouTube - /// videos, and translated mobile app name for mobile apps. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_ ?? ""; } - set { - displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "display_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDisplayName { - get { return displayName_ != null; } - } - /// Clears the value of the "display_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDisplayName() { - displayName_ = null; - } - - /// Field number for the "group_placement_target_url" field. - public const int GroupPlacementTargetUrlFieldNumber = 9; - private string groupPlacementTargetUrl_; - /// - /// Output only. URL of the group placement, for example, domain, link to the mobile - /// application in app store, or a YouTube channel URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GroupPlacementTargetUrl { - get { return groupPlacementTargetUrl_ ?? ""; } - set { - groupPlacementTargetUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "group_placement_target_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGroupPlacementTargetUrl { - get { return groupPlacementTargetUrl_ != null; } - } - /// Clears the value of the "group_placement_target_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGroupPlacementTargetUrl() { - groupPlacementTargetUrl_ = null; - } - - /// Field number for the "target_url" field. - public const int TargetUrlFieldNumber = 10; - private string targetUrl_; - /// - /// Output only. URL of the placement, for example, website, link to the mobile application - /// in app store, or a YouTube video URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetUrl { - get { return targetUrl_ ?? ""; } - set { - targetUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "target_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetUrl { - get { return targetUrl_ != null; } - } - /// Clears the value of the "target_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetUrl() { - targetUrl_ = null; - } - - /// Field number for the "placement_type" field. - public const int PlacementTypeFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType placementType_ = global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified; - /// - /// Output only. Type of the placement, for example, Website, YouTube Video, and Mobile - /// Application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType PlacementType { - get { return placementType_; } - set { - placementType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DetailPlacementView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DetailPlacementView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Placement != other.Placement) return false; - if (DisplayName != other.DisplayName) return false; - if (GroupPlacementTargetUrl != other.GroupPlacementTargetUrl) return false; - if (TargetUrl != other.TargetUrl) return false; - if (PlacementType != other.PlacementType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasPlacement) hash ^= Placement.GetHashCode(); - if (HasDisplayName) hash ^= DisplayName.GetHashCode(); - if (HasGroupPlacementTargetUrl) hash ^= GroupPlacementTargetUrl.GetHashCode(); - if (HasTargetUrl) hash ^= TargetUrl.GetHashCode(); - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) hash ^= PlacementType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) PlacementType); - } - if (HasPlacement) { - output.WriteRawTag(58); - output.WriteString(Placement); - } - if (HasDisplayName) { - output.WriteRawTag(66); - output.WriteString(DisplayName); - } - if (HasGroupPlacementTargetUrl) { - output.WriteRawTag(74); - output.WriteString(GroupPlacementTargetUrl); - } - if (HasTargetUrl) { - output.WriteRawTag(82); - output.WriteString(TargetUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) PlacementType); - } - if (HasPlacement) { - output.WriteRawTag(58); - output.WriteString(Placement); - } - if (HasDisplayName) { - output.WriteRawTag(66); - output.WriteString(DisplayName); - } - if (HasGroupPlacementTargetUrl) { - output.WriteRawTag(74); - output.WriteString(GroupPlacementTargetUrl); - } - if (HasTargetUrl) { - output.WriteRawTag(82); - output.WriteString(TargetUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasPlacement) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Placement); - } - if (HasDisplayName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (HasGroupPlacementTargetUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupPlacementTargetUrl); - } - if (HasTargetUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetUrl); - } - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlacementType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DetailPlacementView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasPlacement) { - Placement = other.Placement; - } - if (other.HasDisplayName) { - DisplayName = other.DisplayName; - } - if (other.HasGroupPlacementTargetUrl) { - GroupPlacementTargetUrl = other.GroupPlacementTargetUrl; - } - if (other.HasTargetUrl) { - TargetUrl = other.TargetUrl; - } - if (other.PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - PlacementType = other.PlacementType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - PlacementType = (global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType) input.ReadEnum(); - break; - } - case 58: { - Placement = input.ReadString(); - break; - } - case 66: { - DisplayName = input.ReadString(); - break; - } - case 74: { - GroupPlacementTargetUrl = input.ReadString(); - break; - } - case 82: { - TargetUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - PlacementType = (global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType) input.ReadEnum(); - break; - } - case 58: { - Placement = input.ReadString(); - break; - } - case 66: { - DisplayName = input.ReadString(); - break; - } - case 74: { - GroupPlacementTargetUrl = input.ReadString(); - break; - } - case 82: { - TargetUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DetailPlacementViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/DetailPlacementViewResourceNames.g.cs deleted file mode 100755 index 2d4dfc023..000000000 --- a/Google.Ads.GoogleAds/src/V12/DetailPlacementViewResourceNames.g.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the DetailPlacementView resource. - public sealed partial class DetailPlacementViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}. - /// - CustomerAdGroupBase64Placement = 1, - } - - private static gax::PathTemplate s_customerAdGroupBase64Placement = new gax::PathTemplate("customers/{customer_id}/detailPlacementViews/{ad_group_id_base64_placement}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static DetailPlacementViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new DetailPlacementViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static DetailPlacementViewName FromCustomerAdGroupBase64Placement(string customerId, string adGroupId, string base64PlacementId) => - new DetailPlacementViewName(ResourceNameType.CustomerAdGroupBase64Placement, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), base64PlacementId: gax::GaxPreconditions.CheckNotNullOrEmpty(base64PlacementId, nameof(base64PlacementId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}. - /// - public static string Format(string customerId, string adGroupId, string base64PlacementId) => - FormatCustomerAdGroupBase64Placement(customerId, adGroupId, base64PlacementId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}. - /// - public static string FormatCustomerAdGroupBase64Placement(string customerId, string adGroupId, string base64PlacementId) => - s_customerAdGroupBase64Placement.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(base64PlacementId, nameof(base64PlacementId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static DetailPlacementViewName Parse(string detailPlacementViewName) => Parse(detailPlacementViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static DetailPlacementViewName Parse(string detailPlacementViewName, bool allowUnparsed) => - TryParse(detailPlacementViewName, allowUnparsed, out DetailPlacementViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string detailPlacementViewName, out DetailPlacementViewName result) => - TryParse(detailPlacementViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string detailPlacementViewName, bool allowUnparsed, out DetailPlacementViewName result) - { - gax::GaxPreconditions.CheckNotNull(detailPlacementViewName, nameof(detailPlacementViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupBase64Placement.TryParseName(detailPlacementViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupBase64Placement(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(detailPlacementViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private DetailPlacementViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string base64PlacementId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - Base64PlacementId = base64PlacementId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - public DetailPlacementViewName(string customerId, string adGroupId, string base64PlacementId) : this(ResourceNameType.CustomerAdGroupBase64Placement, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), base64PlacementId: gax::GaxPreconditions.CheckNotNullOrEmpty(base64PlacementId, nameof(base64PlacementId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Base64Placement ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string Base64PlacementId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupBase64Placement: return s_customerAdGroupBase64Placement.Expand(CustomerId, $"{AdGroupId}~{Base64PlacementId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as DetailPlacementViewName); - - /// - public bool Equals(DetailPlacementViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(DetailPlacementViewName a, DetailPlacementViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(DetailPlacementViewName a, DetailPlacementViewName b) => !(a == b); - } - - public partial class DetailPlacementView - { - /// - /// -typed view over the resource name property. - /// - internal DetailPlacementViewName ResourceNameAsDetailPlacementViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : DetailPlacementViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/DetailedDemographic.g.cs b/Google.Ads.GoogleAds/src/V12/DetailedDemographic.g.cs deleted file mode 100755 index 04319d1bf..000000000 --- a/Google.Ads.GoogleAds/src/V12/DetailedDemographic.g.cs +++ /dev/null @@ -1,452 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/detailed_demographic.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/detailed_demographic.proto - public static partial class DetailedDemographicReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/detailed_demographic.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DetailedDemographicReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2RldGFpbGVk", - "X2RlbW9ncmFwaGljLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzGkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Ny", - "aXRlcmlvbl9jYXRlZ29yeV9hdmFpbGFiaWxpdHkucHJvdG8aH2dvb2dsZS9h", - "cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2Uu", - "cHJvdG8iwgMKE0RldGFpbGVkRGVtb2dyYXBoaWMSSwoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUI04EED+kEuCixnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRGV0", - "YWlsZWREZW1vZ3JhcGhpYxIPCgJpZBgCIAEoA0ID4EEDEhEKBG5hbWUYAyAB", - "KAlCA+BBAxJECgZwYXJlbnQYBCABKAlCNOBBA/pBLgosZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0RldGFpbGVkRGVtb2dyYXBoaWMSHAoPbGF1bmNoZWRf", - "dG9fYWxsGAUgASgIQgPgQQMSWwoOYXZhaWxhYmlsaXRpZXMYBiADKAsyPi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkNyaXRlcmlvbkNhdGVn", - "b3J5QXZhaWxhYmlsaXR5QgPgQQM6eepBdgosZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0RldGFpbGVkRGVtb2dyYXBoaWMSRmN1c3RvbWVycy97Y3VzdG9t", - "ZXJfaWR9L2RldGFpbGVkRGVtb2dyYXBoaWNzL3tkZXRhaWxlZF9kZW1vZ3Jh", - "cGhpY19pZH1CigIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzQhhEZXRhaWxlZERlbW9ncmFwaGljUHJvdG9QAVpLZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJl", - "c291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryAvailabilityReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographic), global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographic.Parser, new[]{ "ResourceName", "Id", "Name", "Parent", "LaunchedToAll", "Availabilities" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A detailed demographic: a particular interest-based vertical to be targeted - /// to reach users based on long-term life facts. - /// - public sealed partial class DetailedDemographic : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetailedDemographic()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographicReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailedDemographic() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailedDemographic(DetailedDemographic other) : this() { - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - parent_ = other.parent_; - launchedToAll_ = other.launchedToAll_; - availabilities_ = other.availabilities_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DetailedDemographic Clone() { - return new DetailedDemographic(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the detailed demographic. - /// Detailed demographic resource names have the form: - /// - /// `customers/{customer_id}/detailedDemographics/{detailed_demographic_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private long id_; - /// - /// Output only. The ID of the detailed demographic. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { return id_; } - set { - id_ = value; - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Output only. The name of the detailed demographic. For example,"Highest Level of - /// Educational Attainment" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "parent" field. - public const int ParentFieldNumber = 4; - private string parent_ = ""; - /// - /// Output only. The parent of the detailed_demographic. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Parent { - get { return parent_; } - set { - parent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "launched_to_all" field. - public const int LaunchedToAllFieldNumber = 5; - private bool launchedToAll_; - /// - /// Output only. True if the detailed demographic is launched to all channels and locales. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool LaunchedToAll { - get { return launchedToAll_; } - set { - launchedToAll_ = value; - } - } - - /// Field number for the "availabilities" field. - public const int AvailabilitiesFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_availabilities_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.CriterionCategoryAvailability.Parser); - private readonly pbc::RepeatedField availabilities_ = new pbc::RepeatedField(); - /// - /// Output only. Availability information of the detailed demographic. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Availabilities { - get { return availabilities_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DetailedDemographic); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DetailedDemographic other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Parent != other.Parent) return false; - if (LaunchedToAll != other.LaunchedToAll) return false; - if(!availabilities_.Equals(other.availabilities_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Id != 0L) hash ^= Id.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Parent.Length != 0) hash ^= Parent.GetHashCode(); - if (LaunchedToAll != false) hash ^= LaunchedToAll.GetHashCode(); - hash ^= availabilities_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Parent.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Parent); - } - if (LaunchedToAll != false) { - output.WriteRawTag(40); - output.WriteBool(LaunchedToAll); - } - availabilities_.WriteTo(output, _repeated_availabilities_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Id != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Id); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Parent.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Parent); - } - if (LaunchedToAll != false) { - output.WriteRawTag(40); - output.WriteBool(LaunchedToAll); - } - availabilities_.WriteTo(ref output, _repeated_availabilities_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Id != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Parent.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Parent); - } - if (LaunchedToAll != false) { - size += 1 + 1; - } - size += availabilities_.CalculateSize(_repeated_availabilities_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DetailedDemographic other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Id != 0L) { - Id = other.Id; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Parent.Length != 0) { - Parent = other.Parent; - } - if (other.LaunchedToAll != false) { - LaunchedToAll = other.LaunchedToAll; - } - availabilities_.Add(other.availabilities_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Parent = input.ReadString(); - break; - } - case 40: { - LaunchedToAll = input.ReadBool(); - break; - } - case 50: { - availabilities_.AddEntriesFrom(input, _repeated_availabilities_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - Id = input.ReadInt64(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 34: { - Parent = input.ReadString(); - break; - } - case 40: { - LaunchedToAll = input.ReadBool(); - break; - } - case 50: { - availabilities_.AddEntriesFrom(ref input, _repeated_availabilities_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DetailedDemographicResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/DetailedDemographicResourceNames.g.cs deleted file mode 100755 index 7fac1fda6..000000000 --- a/Google.Ads.GoogleAds/src/V12/DetailedDemographicResourceNames.g.cs +++ /dev/null @@ -1,300 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the DetailedDemographic resource. - public sealed partial class DetailedDemographicName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/detailedDemographics/{detailed_demographic_id} - /// . - /// - CustomerDetailedDemographic = 1, - } - - private static gax::PathTemplate s_customerDetailedDemographic = new gax::PathTemplate("customers/{customer_id}/detailedDemographics/{detailed_demographic_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static DetailedDemographicName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new DetailedDemographicName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The DetailedDemographic ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static DetailedDemographicName FromCustomerDetailedDemographic(string customerId, string detailedDemographicId) => - new DetailedDemographicName(ResourceNameType.CustomerDetailedDemographic, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), detailedDemographicId: gax::GaxPreconditions.CheckNotNullOrEmpty(detailedDemographicId, nameof(detailedDemographicId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The DetailedDemographic ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id}. - /// - public static string Format(string customerId, string detailedDemographicId) => - FormatCustomerDetailedDemographic(customerId, detailedDemographicId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The DetailedDemographic ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id}. - /// - public static string FormatCustomerDetailedDemographic(string customerId, string detailedDemographicId) => - s_customerDetailedDemographic.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(detailedDemographicId, nameof(detailedDemographicId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static DetailedDemographicName Parse(string detailedDemographicName) => Parse(detailedDemographicName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static DetailedDemographicName Parse(string detailedDemographicName, bool allowUnparsed) => - TryParse(detailedDemographicName, allowUnparsed, out DetailedDemographicName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string detailedDemographicName, out DetailedDemographicName result) => - TryParse(detailedDemographicName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/detailedDemographics/{detailed_demographic_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string detailedDemographicName, bool allowUnparsed, out DetailedDemographicName result) - { - gax::GaxPreconditions.CheckNotNull(detailedDemographicName, nameof(detailedDemographicName)); - gax::TemplatedResourceName resourceName; - if (s_customerDetailedDemographic.TryParseName(detailedDemographicName, out resourceName)) - { - result = FromCustomerDetailedDemographic(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(detailedDemographicName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private DetailedDemographicName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string detailedDemographicId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - DetailedDemographicId = detailedDemographicId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/detailedDemographics/{detailed_demographic_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The DetailedDemographic ID. Must not be null or empty. - /// - public DetailedDemographicName(string customerId, string detailedDemographicId) : this(ResourceNameType.CustomerDetailedDemographic, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), detailedDemographicId: gax::GaxPreconditions.CheckNotNullOrEmpty(detailedDemographicId, nameof(detailedDemographicId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The DetailedDemographic ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string DetailedDemographicId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerDetailedDemographic: return s_customerDetailedDemographic.Expand(CustomerId, DetailedDemographicId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as DetailedDemographicName); - - /// - public bool Equals(DetailedDemographicName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(DetailedDemographicName a, DetailedDemographicName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(DetailedDemographicName a, DetailedDemographicName b) => !(a == b); - } - - public partial class DetailedDemographic - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::DetailedDemographicName ResourceNameAsDetailedDemographicName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::DetailedDemographicName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::DetailedDemographicName DetailedDemographicName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::DetailedDemographicName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::DetailedDemographicName ParentAsDetailedDemographicName - { - get => string.IsNullOrEmpty(Parent) ? null : gagvr::DetailedDemographicName.Parse(Parent, allowUnparsed: true); - set => Parent = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/Device.g.cs b/Google.Ads.GoogleAds/src/V12/Device.g.cs deleted file mode 100755 index d9bc39175..000000000 --- a/Google.Ads.GoogleAds/src/V12/Device.g.cs +++ /dev/null @@ -1,248 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/device.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/device.proto - public static partial class DeviceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/device.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DeviceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Citnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZGV2aWNlLnByb3Rv", - "Eh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMidgoKRGV2aWNlRW51", - "bSJoCgZEZXZpY2USDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCgoG", - "TU9CSUxFEAISCgoGVEFCTEVUEAMSCwoHREVTS1RPUBAEEhAKDENPTk5FQ1RF", - "RF9UVhAGEgkKBU9USEVSEAVC5QEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXNCC0RldmljZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7", - "ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPK", - "Ah5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum), global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of Google Ads devices available for targeting. - /// - public sealed partial class DeviceEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.DeviceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceEnum(DeviceEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DeviceEnum Clone() { - return new DeviceEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DeviceEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeviceEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeviceEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DeviceEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates Google Ads devices available for targeting. - /// - public enum Device { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Mobile devices with full browsers. - /// - [pbr::OriginalName("MOBILE")] Mobile = 2, - /// - /// Tablets with full browsers. - /// - [pbr::OriginalName("TABLET")] Tablet = 3, - /// - /// Computers. - /// - [pbr::OriginalName("DESKTOP")] Desktop = 4, - /// - /// Smart TVs and game consoles. - /// - [pbr::OriginalName("CONNECTED_TV")] ConnectedTv = 6, - /// - /// Other device types. - /// - [pbr::OriginalName("OTHER")] Other = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DismissRecommendationResponsePartialFailureSupport.cs b/Google.Ads.GoogleAds/src/V12/DismissRecommendationResponsePartialFailureSupport.cs deleted file mode 100644 index 32f86095d..000000000 --- a/Google.Ads.GoogleAds/src/V12/DismissRecommendationResponsePartialFailureSupport.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 Google LLC. All Rights Reserved. -// -// 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 -// -// http://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 - -using Google.Ads.GoogleAds.V12.Errors; -using System.Collections.Generic; -using Google.Protobuf.WellKnownTypes; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public sealed partial class DismissRecommendationResponse - { - /// - /// Gets a GoogleAdsFailure instance that combines all the errors - /// from a failed API call. - /// - public GoogleAdsFailure PartialFailure - { - get - { - if (this.PartialFailureError == null) - { - return null; - } - GoogleAdsFailure retval = new GoogleAdsFailure(); - foreach (Any any in this.PartialFailureError.Details) - { - GoogleAdsFailure failure = any.Unpack(); - retval.Errors.AddRange(failure.Errors); - } - return retval; - } - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/DisplayAdFormatSetting.g.cs b/Google.Ads.GoogleAds/src/V12/DisplayAdFormatSetting.g.cs deleted file mode 100755 index 7dd568859..000000000 --- a/Google.Ads.GoogleAds/src/V12/DisplayAdFormatSetting.g.cs +++ /dev/null @@ -1,242 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/display_ad_format_setting.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/display_ad_format_setting.proto - public static partial class DisplayAdFormatSettingReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/display_ad_format_setting.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DisplayAdFormatSettingReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZGlzcGxheV9hZF9m", - "b3JtYXRfc2V0dGluZy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zIoEBChpEaXNwbGF5QWRGb3JtYXRTZXR0aW5nRW51bSJjChZEaXNw", - "bGF5QWRGb3JtYXRTZXR0aW5nEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEg8KC0FMTF9GT1JNQVRTEAISDgoKTk9OX05BVElWRRADEgoKBk5BVElW", - "RRAEQvUBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhtE", - "aXNwbGF5QWRGb3JtYXRTZXR0aW5nUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVt", - "c8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum), global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingEnum.Types.DisplayAdFormatSetting) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for display ad format settings. - /// - public sealed partial class DisplayAdFormatSettingEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisplayAdFormatSettingEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.DisplayAdFormatSettingReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayAdFormatSettingEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayAdFormatSettingEnum(DisplayAdFormatSettingEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayAdFormatSettingEnum Clone() { - return new DisplayAdFormatSettingEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DisplayAdFormatSettingEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisplayAdFormatSettingEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisplayAdFormatSettingEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DisplayAdFormatSettingEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates display ad format settings. - /// - public enum DisplayAdFormatSetting { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Text, image and native formats. - /// - [pbr::OriginalName("ALL_FORMATS")] AllFormats = 2, - /// - /// Text and image formats. - /// - [pbr::OriginalName("NON_NATIVE")] NonNative = 3, - /// - /// Native format, for example, the format rendering is controlled by the - /// publisher and not by Google. - /// - [pbr::OriginalName("NATIVE")] Native = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DisplayKeywordView.g.cs b/Google.Ads.GoogleAds/src/V12/DisplayKeywordView.g.cs deleted file mode 100755 index df1581744..000000000 --- a/Google.Ads.GoogleAds/src/V12/DisplayKeywordView.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/display_keyword_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/display_keyword_view.proto - public static partial class DisplayKeywordViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/display_keyword_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DisplayKeywordViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Rpc3BsYXlf", - "a2V5d29yZF92aWV3LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvItwBChJEaXNwbGF5S2V5d29yZFZp", - "ZXcSSgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIz4EED+kEtCitnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vRGlzcGxheUtleXdvcmRWaWV3OnrqQXcKK2dvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9EaXNwbGF5S2V5d29yZFZpZXcSSGN1c3Rv", - "bWVycy97Y3VzdG9tZXJfaWR9L2Rpc3BsYXlLZXl3b3JkVmlld3Mve2FkX2dy", - "b3VwX2lkfX57Y3JpdGVyaW9uX2lkfUKJAgomY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXNCF0Rpc3BsYXlLZXl3b3JkVmlld1Byb3Rv", - "UAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordView), global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A display keyword view. - /// - public sealed partial class DisplayKeywordView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisplayKeywordView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayKeywordView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayKeywordView(DisplayKeywordView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayKeywordView Clone() { - return new DisplayKeywordView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the display keyword view. - /// Display Keyword view resource names have the form: - /// - /// `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DisplayKeywordView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisplayKeywordView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisplayKeywordView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DisplayKeywordViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/DisplayKeywordViewResourceNames.g.cs deleted file mode 100755 index d3672f338..000000000 --- a/Google.Ads.GoogleAds/src/V12/DisplayKeywordViewResourceNames.g.cs +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the DisplayKeywordView resource. - public sealed partial class DisplayKeywordViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id} - /// . - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/displayKeywordViews/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static DisplayKeywordViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new DisplayKeywordViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static DisplayKeywordViewName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new DisplayKeywordViewName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static DisplayKeywordViewName Parse(string displayKeywordViewName) => Parse(displayKeywordViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static DisplayKeywordViewName Parse(string displayKeywordViewName, bool allowUnparsed) => - TryParse(displayKeywordViewName, allowUnparsed, out DisplayKeywordViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string displayKeywordViewName, out DisplayKeywordViewName result) => - TryParse(displayKeywordViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string displayKeywordViewName, bool allowUnparsed, out DisplayKeywordViewName result) - { - gax::GaxPreconditions.CheckNotNull(displayKeywordViewName, nameof(displayKeywordViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(displayKeywordViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(displayKeywordViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private DisplayKeywordViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public DisplayKeywordViewName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as DisplayKeywordViewName); - - /// - public bool Equals(DisplayKeywordViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(DisplayKeywordViewName a, DisplayKeywordViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(DisplayKeywordViewName a, DisplayKeywordViewName b) => !(a == b); - } - - public partial class DisplayKeywordView - { - /// - /// -typed view over the resource name property. - /// - internal DisplayKeywordViewName ResourceNameAsDisplayKeywordViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : DisplayKeywordViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/DisplayUploadProductType.g.cs b/Google.Ads.GoogleAds/src/V12/DisplayUploadProductType.g.cs deleted file mode 100755 index 3ce90e4b8..000000000 --- a/Google.Ads.GoogleAds/src/V12/DisplayUploadProductType.g.cs +++ /dev/null @@ -1,298 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/display_upload_product_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/display_upload_product_type.proto - public static partial class DisplayUploadProductTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/display_upload_product_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DisplayUploadProductTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZGlzcGxheV91cGxv", - "YWRfcHJvZHVjdF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMi/AIKHERpc3BsYXlVcGxvYWRQcm9kdWN0VHlwZUVudW0i2wIK", - "GERpc3BsYXlVcGxvYWRQcm9kdWN0VHlwZRIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARITCg9IVE1MNV9VUExPQURfQUQQAhIeChpEWU5BTUlDX0hU", - "TUw1X0VEVUNBVElPTl9BRBADEhsKF0RZTkFNSUNfSFRNTDVfRkxJR0hUX0FE", - "EAQSIQodRFlOQU1JQ19IVE1MNV9IT1RFTF9SRU5UQUxfQUQQBRIYChREWU5B", - "TUlDX0hUTUw1X0pPQl9BRBAGEhoKFkRZTkFNSUNfSFRNTDVfTE9DQUxfQUQQ", - "BxIgChxEWU5BTUlDX0hUTUw1X1JFQUxfRVNUQVRFX0FEEAgSGwoXRFlOQU1J", - "Q19IVE1MNV9DVVNUT01fQUQQCRIbChdEWU5BTUlDX0hUTUw1X1RSQVZFTF9B", - "RBAKEhoKFkRZTkFNSUNfSFRNTDVfSE9URUxfQUQQC0L3AQoiY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IdRGlzcGxheVVwbG9hZFByb2R1", - "Y3RUeXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoC", - "Hkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeEnum.Types.DisplayUploadProductType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for display upload product types. Product types that have the word - /// "DYNAMIC" in them must be associated with a campaign that has a dynamic - /// remarketing feed. See https://support.google.com/google-ads/answer/6053288 - /// for more info about dynamic remarketing. Other product types are regarded - /// as "static" and do not have this requirement. - /// - public sealed partial class DisplayUploadProductTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisplayUploadProductTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.DisplayUploadProductTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayUploadProductTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayUploadProductTypeEnum(DisplayUploadProductTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DisplayUploadProductTypeEnum Clone() { - return new DisplayUploadProductTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DisplayUploadProductTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DisplayUploadProductTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DisplayUploadProductTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DisplayUploadProductTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates display upload product types. - /// - public enum DisplayUploadProductType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// HTML5 upload ad. This product type requires the upload_media_bundle - /// field in DisplayUploadAdInfo to be set. - /// - [pbr::OriginalName("HTML5_UPLOAD_AD")] Html5UploadAd = 2, - /// - /// Dynamic HTML5 education ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in an education campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_EDUCATION_AD")] DynamicHtml5EducationAd = 3, - /// - /// Dynamic HTML5 flight ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a flight campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_FLIGHT_AD")] DynamicHtml5FlightAd = 4, - /// - /// Dynamic HTML5 hotel and rental ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a hotel campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_HOTEL_RENTAL_AD")] DynamicHtml5HotelRentalAd = 5, - /// - /// Dynamic HTML5 job ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a job campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_JOB_AD")] DynamicHtml5JobAd = 6, - /// - /// Dynamic HTML5 local ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a local campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_LOCAL_AD")] DynamicHtml5LocalAd = 7, - /// - /// Dynamic HTML5 real estate ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a real estate campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_REAL_ESTATE_AD")] DynamicHtml5RealEstateAd = 8, - /// - /// Dynamic HTML5 custom ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a custom campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_CUSTOM_AD")] DynamicHtml5CustomAd = 9, - /// - /// Dynamic HTML5 travel ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a travel campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_TRAVEL_AD")] DynamicHtml5TravelAd = 10, - /// - /// Dynamic HTML5 hotel ad. This product type requires the - /// upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - /// used in a hotel campaign. - /// - [pbr::OriginalName("DYNAMIC_HTML5_HOTEL_AD")] DynamicHtml5HotelAd = 11, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DistanceBucket.g.cs b/Google.Ads.GoogleAds/src/V12/DistanceBucket.g.cs deleted file mode 100755 index f6b1e15c8..000000000 --- a/Google.Ads.GoogleAds/src/V12/DistanceBucket.g.cs +++ /dev/null @@ -1,348 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/distance_bucket.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/distance_bucket.proto - public static partial class DistanceBucketReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/distance_bucket.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DistanceBucketReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZGlzdGFuY2VfYnVj", - "a2V0LnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMirQQK", - "EkRpc3RhbmNlQnVja2V0RW51bSKWBAoORGlzdGFuY2VCdWNrZXQSDwoLVU5T", - "UEVDSUZJRUQQABILCgdVTktOT1dOEAESDwoLV0lUSElOXzcwME0QAhIOCgpX", - "SVRISU5fMUtNEAMSDgoKV0lUSElOXzVLTRAEEg8KC1dJVEhJTl8xMEtNEAUS", - "DwoLV0lUSElOXzE1S00QBhIPCgtXSVRISU5fMjBLTRAHEg8KC1dJVEhJTl8y", - "NUtNEAgSDwoLV0lUSElOXzMwS00QCRIPCgtXSVRISU5fMzVLTRAKEg8KC1dJ", - "VEhJTl80MEtNEAsSDwoLV0lUSElOXzQ1S00QDBIPCgtXSVRISU5fNTBLTRAN", - "Eg8KC1dJVEhJTl81NUtNEA4SDwoLV0lUSElOXzYwS00QDxIPCgtXSVRISU5f", - "NjVLTRAQEg8KC0JFWU9ORF82NUtNEBESEwoPV0lUSElOXzBfN01JTEVTEBIS", - "EAoMV0lUSElOXzFNSUxFEBMSEQoNV0lUSElOXzVNSUxFUxAUEhIKDldJVEhJ", - "Tl8xME1JTEVTEBUSEgoOV0lUSElOXzE1TUlMRVMQFhISCg5XSVRISU5fMjBN", - "SUxFUxAXEhIKDldJVEhJTl8yNU1JTEVTEBgSEgoOV0lUSElOXzMwTUlMRVMQ", - "GRISCg5XSVRISU5fMzVNSUxFUxAaEhIKDldJVEhJTl80ME1JTEVTEBsSEgoO", - "QkVZT05EXzQwTUlMRVMQHELtAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtc0ITRGlzdGFuY2VCdWNrZXRQcm90b1ABWkNnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum), global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for distance buckets of a user's distance from an advertiser's - /// location extension. - /// - public sealed partial class DistanceBucketEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DistanceBucketEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistanceBucketEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistanceBucketEnum(DistanceBucketEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistanceBucketEnum Clone() { - return new DistanceBucketEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DistanceBucketEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DistanceBucketEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DistanceBucketEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DistanceBucketEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The distance bucket for a user's distance from an advertiser's location - /// extension. - /// - public enum DistanceBucket { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// User was within 700m of the location. - /// - [pbr::OriginalName("WITHIN_700M")] Within700M = 2, - /// - /// User was within 1KM of the location. - /// - [pbr::OriginalName("WITHIN_1KM")] Within1Km = 3, - /// - /// User was within 5KM of the location. - /// - [pbr::OriginalName("WITHIN_5KM")] Within5Km = 4, - /// - /// User was within 10KM of the location. - /// - [pbr::OriginalName("WITHIN_10KM")] Within10Km = 5, - /// - /// User was within 15KM of the location. - /// - [pbr::OriginalName("WITHIN_15KM")] Within15Km = 6, - /// - /// User was within 20KM of the location. - /// - [pbr::OriginalName("WITHIN_20KM")] Within20Km = 7, - /// - /// User was within 25KM of the location. - /// - [pbr::OriginalName("WITHIN_25KM")] Within25Km = 8, - /// - /// User was within 30KM of the location. - /// - [pbr::OriginalName("WITHIN_30KM")] Within30Km = 9, - /// - /// User was within 35KM of the location. - /// - [pbr::OriginalName("WITHIN_35KM")] Within35Km = 10, - /// - /// User was within 40KM of the location. - /// - [pbr::OriginalName("WITHIN_40KM")] Within40Km = 11, - /// - /// User was within 45KM of the location. - /// - [pbr::OriginalName("WITHIN_45KM")] Within45Km = 12, - /// - /// User was within 50KM of the location. - /// - [pbr::OriginalName("WITHIN_50KM")] Within50Km = 13, - /// - /// User was within 55KM of the location. - /// - [pbr::OriginalName("WITHIN_55KM")] Within55Km = 14, - /// - /// User was within 60KM of the location. - /// - [pbr::OriginalName("WITHIN_60KM")] Within60Km = 15, - /// - /// User was within 65KM of the location. - /// - [pbr::OriginalName("WITHIN_65KM")] Within65Km = 16, - /// - /// User was beyond 65KM of the location. - /// - [pbr::OriginalName("BEYOND_65KM")] Beyond65Km = 17, - /// - /// User was within 0.7 miles of the location. - /// - [pbr::OriginalName("WITHIN_0_7MILES")] Within07Miles = 18, - /// - /// User was within 1 mile of the location. - /// - [pbr::OriginalName("WITHIN_1MILE")] Within1Mile = 19, - /// - /// User was within 5 miles of the location. - /// - [pbr::OriginalName("WITHIN_5MILES")] Within5Miles = 20, - /// - /// User was within 10 miles of the location. - /// - [pbr::OriginalName("WITHIN_10MILES")] Within10Miles = 21, - /// - /// User was within 15 miles of the location. - /// - [pbr::OriginalName("WITHIN_15MILES")] Within15Miles = 22, - /// - /// User was within 20 miles of the location. - /// - [pbr::OriginalName("WITHIN_20MILES")] Within20Miles = 23, - /// - /// User was within 25 miles of the location. - /// - [pbr::OriginalName("WITHIN_25MILES")] Within25Miles = 24, - /// - /// User was within 30 miles of the location. - /// - [pbr::OriginalName("WITHIN_30MILES")] Within30Miles = 25, - /// - /// User was within 35 miles of the location. - /// - [pbr::OriginalName("WITHIN_35MILES")] Within35Miles = 26, - /// - /// User was within 40 miles of the location. - /// - [pbr::OriginalName("WITHIN_40MILES")] Within40Miles = 27, - /// - /// User was beyond 40 miles of the location. - /// - [pbr::OriginalName("BEYOND_40MILES")] Beyond40Miles = 28, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DistanceView.g.cs b/Google.Ads.GoogleAds/src/V12/DistanceView.g.cs deleted file mode 100755 index c1014c845..000000000 --- a/Google.Ads.GoogleAds/src/V12/DistanceView.g.cs +++ /dev/null @@ -1,357 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/distance_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/distance_view.proto - public static partial class DistanceViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/distance_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DistanceViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Rpc3RhbmNl", - "X3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMaNGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9kaXN0YW5jZV9i", - "dWNrZXQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i5AIKDERpc3RhbmNlVmlldxJE", - "Cg1yZXNvdXJjZV9uYW1lGAEgASgJQi3gQQP6QScKJWdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9EaXN0YW5jZVZpZXcSXwoPZGlzdGFuY2VfYnVja2V0GAIg", - "ASgOMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkRpc3RhbmNl", - "QnVja2V0RW51bS5EaXN0YW5jZUJ1Y2tldEID4EEDEh8KDW1ldHJpY19zeXN0", - "ZW0YBCABKAhCA+BBA0gAiAEBOnrqQXcKJWdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9EaXN0YW5jZVZpZXcSTmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Rp", - "c3RhbmNlVmlld3Mve3BsYWNlaG9sZGVyX2NoYWluX2lkfX57ZGlzdGFuY2Vf", - "YnVja2V0fUIQCg5fbWV0cmljX3N5c3RlbUKDAgomY29tLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCEURpc3RhbmNlVmlld1Byb3RvUAFa", - "S2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.DistanceView), global::Google.Ads.GoogleAds.V12.Resources.DistanceView.Parser, new[]{ "ResourceName", "DistanceBucket", "MetricSystem" }, new[]{ "MetricSystem" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A distance view with metrics aggregated by the user's distance from an - /// advertiser's location extensions. Each DistanceBucket includes all - /// impressions that fall within its distance and a single impression will - /// contribute to the metrics for all DistanceBuckets that include the user's - /// distance. - /// - public sealed partial class DistanceView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DistanceView()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.DistanceViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistanceView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistanceView(DistanceView other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - distanceBucket_ = other.distanceBucket_; - metricSystem_ = other.metricSystem_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistanceView Clone() { - return new DistanceView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the distance view. - /// Distance view resource names have the form: - /// - /// `customers/{customer_id}/distanceViews/1~{distance_bucket}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "distance_bucket" field. - public const int DistanceBucketFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket distanceBucket_ = global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket.Unspecified; - /// - /// Output only. Grouping of user distance from location extensions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket DistanceBucket { - get { return distanceBucket_; } - set { - distanceBucket_ = value; - } - } - - /// Field number for the "metric_system" field. - public const int MetricSystemFieldNumber = 4; - private bool metricSystem_; - /// - /// Output only. True if the DistanceBucket is using the metric system, false otherwise. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool MetricSystem { - get { if ((_hasBits0 & 1) != 0) { return metricSystem_; } else { return false; } } - set { - _hasBits0 |= 1; - metricSystem_ = value; - } - } - /// Gets whether the "metric_system" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMetricSystem { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "metric_system" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMetricSystem() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DistanceView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DistanceView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (DistanceBucket != other.DistanceBucket) return false; - if (MetricSystem != other.MetricSystem) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (DistanceBucket != global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket.Unspecified) hash ^= DistanceBucket.GetHashCode(); - if (HasMetricSystem) hash ^= MetricSystem.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (DistanceBucket != global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DistanceBucket); - } - if (HasMetricSystem) { - output.WriteRawTag(32); - output.WriteBool(MetricSystem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (DistanceBucket != global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DistanceBucket); - } - if (HasMetricSystem) { - output.WriteRawTag(32); - output.WriteBool(MetricSystem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (DistanceBucket != global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DistanceBucket); - } - if (HasMetricSystem) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DistanceView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.DistanceBucket != global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket.Unspecified) { - DistanceBucket = other.DistanceBucket; - } - if (other.HasMetricSystem) { - MetricSystem = other.MetricSystem; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - DistanceBucket = (global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket) input.ReadEnum(); - break; - } - case 32: { - MetricSystem = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - DistanceBucket = (global::Google.Ads.GoogleAds.V12.Enums.DistanceBucketEnum.Types.DistanceBucket) input.ReadEnum(); - break; - } - case 32: { - MetricSystem = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DistanceViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/DistanceViewResourceNames.g.cs deleted file mode 100755 index e044bc7da..000000000 --- a/Google.Ads.GoogleAds/src/V12/DistanceViewResourceNames.g.cs +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the DistanceView resource. - public sealed partial class DistanceViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}. - /// - CustomerPlaceholderChainDistanceBucket = 1, - } - - private static gax::PathTemplate s_customerPlaceholderChainDistanceBucket = new gax::PathTemplate("customers/{customer_id}/distanceViews/{placeholder_chain_id_distance_bucket}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static DistanceViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new DistanceViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}. - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderChain ID. Must not be null or empty. - /// The DistanceBucket ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static DistanceViewName FromCustomerPlaceholderChainDistanceBucket(string customerId, string placeholderChainId, string distanceBucketId) => - new DistanceViewName(ResourceNameType.CustomerPlaceholderChainDistanceBucket, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), placeholderChainId: gax::GaxPreconditions.CheckNotNullOrEmpty(placeholderChainId, nameof(placeholderChainId)), distanceBucketId: gax::GaxPreconditions.CheckNotNullOrEmpty(distanceBucketId, nameof(distanceBucketId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}. - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderChain ID. Must not be null or empty. - /// The DistanceBucket ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}. - /// - public static string Format(string customerId, string placeholderChainId, string distanceBucketId) => - FormatCustomerPlaceholderChainDistanceBucket(customerId, placeholderChainId, distanceBucketId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}. - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderChain ID. Must not be null or empty. - /// The DistanceBucket ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}. - /// - public static string FormatCustomerPlaceholderChainDistanceBucket(string customerId, string placeholderChainId, string distanceBucketId) => - s_customerPlaceholderChainDistanceBucket.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(placeholderChainId, nameof(placeholderChainId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(distanceBucketId, nameof(distanceBucketId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static DistanceViewName Parse(string distanceViewName) => Parse(distanceViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static DistanceViewName Parse(string distanceViewName, bool allowUnparsed) => - TryParse(distanceViewName, allowUnparsed, out DistanceViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string distanceViewName, out DistanceViewName result) => - TryParse(distanceViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string distanceViewName, bool allowUnparsed, out DistanceViewName result) - { - gax::GaxPreconditions.CheckNotNull(distanceViewName, nameof(distanceViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerPlaceholderChainDistanceBucket.TryParseName(distanceViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerPlaceholderChainDistanceBucket(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(distanceViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private DistanceViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string distanceBucketId = null, string placeholderChainId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - DistanceBucketId = distanceBucketId; - PlaceholderChainId = placeholderChainId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket} - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderChain ID. Must not be null or empty. - /// The DistanceBucket ID. Must not be null or empty. - public DistanceViewName(string customerId, string placeholderChainId, string distanceBucketId) : this(ResourceNameType.CustomerPlaceholderChainDistanceBucket, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), placeholderChainId: gax::GaxPreconditions.CheckNotNullOrEmpty(placeholderChainId, nameof(placeholderChainId)), distanceBucketId: gax::GaxPreconditions.CheckNotNullOrEmpty(distanceBucketId, nameof(distanceBucketId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The DistanceBucket ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string DistanceBucketId { get; } - - /// - /// The PlaceholderChain ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string PlaceholderChainId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerPlaceholderChainDistanceBucket: return s_customerPlaceholderChainDistanceBucket.Expand(CustomerId, $"{PlaceholderChainId}~{DistanceBucketId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as DistanceViewName); - - /// - public bool Equals(DistanceViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(DistanceViewName a, DistanceViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(DistanceViewName a, DistanceViewName b) => !(a == b); - } - - public partial class DistanceView - { - /// - /// -typed view over the resource name property. - /// - internal DistanceViewName ResourceNameAsDistanceViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : DistanceViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/DistinctError.g.cs b/Google.Ads.GoogleAds/src/V12/DistinctError.g.cs deleted file mode 100755 index b8a3fb82d..000000000 --- a/Google.Ads.GoogleAds/src/V12/DistinctError.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/distinct_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/distinct_error.proto - public static partial class DistinctErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/distinct_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DistinctErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Rpc3RpbmN0X2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIm0K", - "EURpc3RpbmN0RXJyb3JFbnVtIlgKDURpc3RpbmN0RXJyb3ISDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESFQoRRFVQTElDQVRFX0VMRU1FTlQQAhIS", - "Cg5EVVBMSUNBVEVfVFlQRRADQvIBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVycm9yc0ISRGlzdGluY3RFcnJvclByb3RvUAFaRWdvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz", - "6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorEnum.Types.DistinctError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible distinct errors. - /// - public sealed partial class DistinctErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DistinctErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistinctErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistinctErrorEnum(DistinctErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DistinctErrorEnum Clone() { - return new DistinctErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DistinctErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DistinctErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DistinctErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DistinctErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible distinct errors. - /// - public enum DistinctError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Duplicate element. - /// - [pbr::OriginalName("DUPLICATE_ELEMENT")] DuplicateElement = 2, - /// - /// Duplicate type. - /// - [pbr::OriginalName("DUPLICATE_TYPE")] DuplicateType = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DomainCategory.g.cs b/Google.Ads.GoogleAds/src/V12/DomainCategory.g.cs deleted file mode 100755 index 6ee7b9447..000000000 --- a/Google.Ads.GoogleAds/src/V12/DomainCategory.g.cs +++ /dev/null @@ -1,697 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/domain_category.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/domain_category.proto - public static partial class DomainCategoryReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/domain_category.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DomainCategoryReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2RvbWFpbl9j", - "YXRlZ29yeS5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl", - "L2FwaS9yZXNvdXJjZS5wcm90byKeBQoORG9tYWluQ2F0ZWdvcnkSRgoNcmVz", - "b3VyY2VfbmFtZRgBIAEoCUIv4EED+kEpCidnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vRG9tYWluQ2F0ZWdvcnkSQAoIY2FtcGFpZ24YCiABKAlCKeBBA/pB", - "IwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduSACIAQESGgoI", - "Y2F0ZWdvcnkYCyABKAlCA+BBA0gBiAEBEh8KDWxhbmd1YWdlX2NvZGUYDCAB", - "KAlCA+BBA0gCiAEBEhgKBmRvbWFpbhgNIAEoCUID4EEDSAOIAQESIwoRY292", - "ZXJhZ2VfZnJhY3Rpb24YDiABKAFCA+BBA0gEiAEBEh8KDWNhdGVnb3J5X3Jh", - "bmsYDyABKANCA+BBA0gFiAEBEh4KDGhhc19jaGlsZHJlbhgQIAEoCEID4EED", - "SAaIAQESLAoacmVjb21tZW5kZWRfY3BjX2JpZF9taWNyb3MYESABKANCA+BB", - "A0gHiAEBOocB6kGDAQonZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0RvbWFp", - "bkNhdGVnb3J5ElhjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9kb21haW5DYXRl", - "Z29yaWVzL3tjYW1wYWlnbl9pZH1+e2Jhc2U2NF9jYXRlZ29yeX1+e2xhbmd1", - "YWdlX2NvZGV9QgsKCV9jYW1wYWlnbkILCglfY2F0ZWdvcnlCEAoOX2xhbmd1", - "YWdlX2NvZGVCCQoHX2RvbWFpbkIUChJfY292ZXJhZ2VfZnJhY3Rpb25CEAoO", - "X2NhdGVnb3J5X3JhbmtCDwoNX2hhc19jaGlsZHJlbkIdChtfcmVjb21tZW5k", - "ZWRfY3BjX2JpZF9taWNyb3NChQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzQhNEb21haW5DYXRlZ29yeVByb3RvUAFaS2dvb2ds", - "ZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMu", - "R29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.DomainCategory), global::Google.Ads.GoogleAds.V12.Resources.DomainCategory.Parser, new[]{ "ResourceName", "Campaign", "Category", "LanguageCode", "Domain", "CoverageFraction", "CategoryRank", "HasChildren", "RecommendedCpcBidMicros" }, new[]{ "Campaign", "Category", "LanguageCode", "Domain", "CoverageFraction", "CategoryRank", "HasChildren", "RecommendedCpcBidMicros" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A category generated automatically by crawling a domain. If a campaign uses - /// the DynamicSearchAdsSetting, then domain categories will be generated for - /// the domain. The categories can be targeted using WebpageConditionInfo. - /// See: https://support.google.com/google-ads/answer/2471185 - /// - public sealed partial class DomainCategory : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DomainCategory()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.DomainCategoryReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DomainCategory() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DomainCategory(DomainCategory other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - campaign_ = other.campaign_; - category_ = other.category_; - languageCode_ = other.languageCode_; - domain_ = other.domain_; - coverageFraction_ = other.coverageFraction_; - categoryRank_ = other.categoryRank_; - hasChildren_ = other.hasChildren_; - recommendedCpcBidMicros_ = other.recommendedCpcBidMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DomainCategory Clone() { - return new DomainCategory(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the domain category. - /// Domain category resource names have the form: - /// - /// `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 10; - private string campaign_; - /// - /// Output only. The campaign this category is recommended for. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_ ?? ""; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCampaign { - get { return campaign_ != null; } - } - /// Clears the value of the "campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCampaign() { - campaign_ = null; - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 11; - private string category_; - /// - /// Output only. Recommended category for the website domain, for example, if you have a - /// website about electronics, the categories could be "cameras", - /// "televisions", etc. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Category { - get { return category_ ?? ""; } - set { - category_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "category" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCategory { - get { return category_ != null; } - } - /// Clears the value of the "category" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCategory() { - category_ = null; - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 12; - private string languageCode_; - /// - /// Output only. The language code specifying the language of the website, for example, "en" - /// for English. The language can be specified in the DynamicSearchAdsSetting - /// required for dynamic search ads. This is the language of the pages from - /// your website that you want Google Ads to find, create ads for, - /// and match searches with. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_ ?? ""; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguageCode { - get { return languageCode_ != null; } - } - /// Clears the value of the "language_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguageCode() { - languageCode_ = null; - } - - /// Field number for the "domain" field. - public const int DomainFieldNumber = 13; - private string domain_; - /// - /// Output only. The domain for the website. The domain can be specified in the - /// DynamicSearchAdsSetting required for dynamic search ads. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Domain { - get { return domain_ ?? ""; } - set { - domain_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "domain" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDomain { - get { return domain_ != null; } - } - /// Clears the value of the "domain" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDomain() { - domain_ = null; - } - - /// Field number for the "coverage_fraction" field. - public const int CoverageFractionFieldNumber = 14; - private double coverageFraction_; - /// - /// Output only. Fraction of pages on your site that this category matches. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double CoverageFraction { - get { if ((_hasBits0 & 1) != 0) { return coverageFraction_; } else { return 0D; } } - set { - _hasBits0 |= 1; - coverageFraction_ = value; - } - } - /// Gets whether the "coverage_fraction" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCoverageFraction { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "coverage_fraction" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCoverageFraction() { - _hasBits0 &= ~1; - } - - /// Field number for the "category_rank" field. - public const int CategoryRankFieldNumber = 15; - private long categoryRank_; - /// - /// Output only. The position of this category in the set of categories. Lower numbers - /// indicate a better match for the domain. null indicates not recommended. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CategoryRank { - get { if ((_hasBits0 & 2) != 0) { return categoryRank_; } else { return 0L; } } - set { - _hasBits0 |= 2; - categoryRank_ = value; - } - } - /// Gets whether the "category_rank" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCategoryRank { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "category_rank" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCategoryRank() { - _hasBits0 &= ~2; - } - - /// Field number for the "has_children" field. - public const int HasChildrenFieldNumber = 16; - private bool hasChildren_; - /// - /// Output only. Indicates whether this category has sub-categories. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasChildren { - get { if ((_hasBits0 & 4) != 0) { return hasChildren_; } else { return false; } } - set { - _hasBits0 |= 4; - hasChildren_ = value; - } - } - /// Gets whether the "has_children" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasChildren { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "has_children" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasChildren() { - _hasBits0 &= ~4; - } - - /// Field number for the "recommended_cpc_bid_micros" field. - public const int RecommendedCpcBidMicrosFieldNumber = 17; - private long recommendedCpcBidMicros_; - /// - /// Output only. The recommended cost per click for the category. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RecommendedCpcBidMicros { - get { if ((_hasBits0 & 8) != 0) { return recommendedCpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 8; - recommendedCpcBidMicros_ = value; - } - } - /// Gets whether the "recommended_cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRecommendedCpcBidMicros { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "recommended_cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRecommendedCpcBidMicros() { - _hasBits0 &= ~8; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DomainCategory); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DomainCategory other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Campaign != other.Campaign) return false; - if (Category != other.Category) return false; - if (LanguageCode != other.LanguageCode) return false; - if (Domain != other.Domain) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(CoverageFraction, other.CoverageFraction)) return false; - if (CategoryRank != other.CategoryRank) return false; - if (HasChildren != other.HasChildren) return false; - if (RecommendedCpcBidMicros != other.RecommendedCpcBidMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCampaign) hash ^= Campaign.GetHashCode(); - if (HasCategory) hash ^= Category.GetHashCode(); - if (HasLanguageCode) hash ^= LanguageCode.GetHashCode(); - if (HasDomain) hash ^= Domain.GetHashCode(); - if (HasCoverageFraction) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CoverageFraction); - if (HasCategoryRank) hash ^= CategoryRank.GetHashCode(); - if (HasHasChildren) hash ^= HasChildren.GetHashCode(); - if (HasRecommendedCpcBidMicros) hash ^= RecommendedCpcBidMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCampaign) { - output.WriteRawTag(82); - output.WriteString(Campaign); - } - if (HasCategory) { - output.WriteRawTag(90); - output.WriteString(Category); - } - if (HasLanguageCode) { - output.WriteRawTag(98); - output.WriteString(LanguageCode); - } - if (HasDomain) { - output.WriteRawTag(106); - output.WriteString(Domain); - } - if (HasCoverageFraction) { - output.WriteRawTag(113); - output.WriteDouble(CoverageFraction); - } - if (HasCategoryRank) { - output.WriteRawTag(120); - output.WriteInt64(CategoryRank); - } - if (HasHasChildren) { - output.WriteRawTag(128, 1); - output.WriteBool(HasChildren); - } - if (HasRecommendedCpcBidMicros) { - output.WriteRawTag(136, 1); - output.WriteInt64(RecommendedCpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCampaign) { - output.WriteRawTag(82); - output.WriteString(Campaign); - } - if (HasCategory) { - output.WriteRawTag(90); - output.WriteString(Category); - } - if (HasLanguageCode) { - output.WriteRawTag(98); - output.WriteString(LanguageCode); - } - if (HasDomain) { - output.WriteRawTag(106); - output.WriteString(Domain); - } - if (HasCoverageFraction) { - output.WriteRawTag(113); - output.WriteDouble(CoverageFraction); - } - if (HasCategoryRank) { - output.WriteRawTag(120); - output.WriteInt64(CategoryRank); - } - if (HasHasChildren) { - output.WriteRawTag(128, 1); - output.WriteBool(HasChildren); - } - if (HasRecommendedCpcBidMicros) { - output.WriteRawTag(136, 1); - output.WriteInt64(RecommendedCpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HasCategory) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Category); - } - if (HasLanguageCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (HasDomain) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Domain); - } - if (HasCoverageFraction) { - size += 1 + 8; - } - if (HasCategoryRank) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CategoryRank); - } - if (HasHasChildren) { - size += 2 + 1; - } - if (HasRecommendedCpcBidMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RecommendedCpcBidMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DomainCategory other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCampaign) { - Campaign = other.Campaign; - } - if (other.HasCategory) { - Category = other.Category; - } - if (other.HasLanguageCode) { - LanguageCode = other.LanguageCode; - } - if (other.HasDomain) { - Domain = other.Domain; - } - if (other.HasCoverageFraction) { - CoverageFraction = other.CoverageFraction; - } - if (other.HasCategoryRank) { - CategoryRank = other.CategoryRank; - } - if (other.HasHasChildren) { - HasChildren = other.HasChildren; - } - if (other.HasRecommendedCpcBidMicros) { - RecommendedCpcBidMicros = other.RecommendedCpcBidMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 82: { - Campaign = input.ReadString(); - break; - } - case 90: { - Category = input.ReadString(); - break; - } - case 98: { - LanguageCode = input.ReadString(); - break; - } - case 106: { - Domain = input.ReadString(); - break; - } - case 113: { - CoverageFraction = input.ReadDouble(); - break; - } - case 120: { - CategoryRank = input.ReadInt64(); - break; - } - case 128: { - HasChildren = input.ReadBool(); - break; - } - case 136: { - RecommendedCpcBidMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 82: { - Campaign = input.ReadString(); - break; - } - case 90: { - Category = input.ReadString(); - break; - } - case 98: { - LanguageCode = input.ReadString(); - break; - } - case 106: { - Domain = input.ReadString(); - break; - } - case 113: { - CoverageFraction = input.ReadDouble(); - break; - } - case 120: { - CategoryRank = input.ReadInt64(); - break; - } - case 128: { - HasChildren = input.ReadBool(); - break; - } - case 136: { - RecommendedCpcBidMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DomainCategoryResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/DomainCategoryResourceNames.g.cs deleted file mode 100755 index ea1115616..000000000 --- a/Google.Ads.GoogleAds/src/V12/DomainCategoryResourceNames.g.cs +++ /dev/null @@ -1,328 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the DomainCategory resource. - public sealed partial class DomainCategoryName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}. - /// - CustomerCampaignBase64CategoryLanguageCode = 1, - } - - private static gax::PathTemplate s_customerCampaignBase64CategoryLanguageCode = new gax::PathTemplate("customers/{customer_id}/domainCategories/{campaign_id_base64_category_language_code}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static DomainCategoryName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new DomainCategoryName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Base64Category ID. Must not be null or empty. - /// The LanguageCode ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static DomainCategoryName FromCustomerCampaignBase64CategoryLanguageCode(string customerId, string campaignId, string base64CategoryId, string languageCodeId) => - new DomainCategoryName(ResourceNameType.CustomerCampaignBase64CategoryLanguageCode, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), base64CategoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(base64CategoryId, nameof(base64CategoryId)), languageCodeId: gax::GaxPreconditions.CheckNotNullOrEmpty(languageCodeId, nameof(languageCodeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Base64Category ID. Must not be null or empty. - /// The LanguageCode ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}. - /// - public static string Format(string customerId, string campaignId, string base64CategoryId, string languageCodeId) => - FormatCustomerCampaignBase64CategoryLanguageCode(customerId, campaignId, base64CategoryId, languageCodeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}. - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Base64Category ID. Must not be null or empty. - /// The LanguageCode ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}. - /// - public static string FormatCustomerCampaignBase64CategoryLanguageCode(string customerId, string campaignId, string base64CategoryId, string languageCodeId) => - s_customerCampaignBase64CategoryLanguageCode.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(base64CategoryId, nameof(base64CategoryId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(languageCodeId, nameof(languageCodeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static DomainCategoryName Parse(string domainCategoryName) => Parse(domainCategoryName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static DomainCategoryName Parse(string domainCategoryName, bool allowUnparsed) => - TryParse(domainCategoryName, allowUnparsed, out DomainCategoryName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string domainCategoryName, out DomainCategoryName result) => - TryParse(domainCategoryName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string domainCategoryName, bool allowUnparsed, out DomainCategoryName result) - { - gax::GaxPreconditions.CheckNotNull(domainCategoryName, nameof(domainCategoryName)); - gax::TemplatedResourceName resourceName; - if (s_customerCampaignBase64CategoryLanguageCode.TryParseName(domainCategoryName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCampaignBase64CategoryLanguageCode(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(domainCategoryName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private DomainCategoryName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string base64CategoryId = null, string campaignId = null, string customerId = null, string languageCodeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - Base64CategoryId = base64CategoryId; - CampaignId = campaignId; - CustomerId = customerId; - LanguageCodeId = languageCodeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code} - /// - /// The Customer ID. Must not be null or empty. - /// The Campaign ID. Must not be null or empty. - /// The Base64Category ID. Must not be null or empty. - /// The LanguageCode ID. Must not be null or empty. - public DomainCategoryName(string customerId, string campaignId, string base64CategoryId, string languageCodeId) : this(ResourceNameType.CustomerCampaignBase64CategoryLanguageCode, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), base64CategoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(base64CategoryId, nameof(base64CategoryId)), languageCodeId: gax::GaxPreconditions.CheckNotNullOrEmpty(languageCodeId, nameof(languageCodeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Base64Category ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string Base64CategoryId { get; } - - /// - /// The Campaign ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CampaignId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The LanguageCode ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string LanguageCodeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignBase64CategoryLanguageCode: return s_customerCampaignBase64CategoryLanguageCode.Expand(CustomerId, $"{CampaignId}~{Base64CategoryId}~{LanguageCodeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as DomainCategoryName); - - /// - public bool Equals(DomainCategoryName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(DomainCategoryName a, DomainCategoryName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(DomainCategoryName a, DomainCategoryName b) => !(a == b); - } - - public partial class DomainCategory - { - /// - /// -typed view over the resource name property. - /// - internal DomainCategoryName ResourceNameAsDomainCategoryName - { - get => string.IsNullOrEmpty(ResourceName) ? null : DomainCategoryName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/DsaPageFeedCriterionField.g.cs b/Google.Ads.GoogleAds/src/V12/DsaPageFeedCriterionField.g.cs deleted file mode 100755 index a4e75a80b..000000000 --- a/Google.Ads.GoogleAds/src/V12/DsaPageFeedCriterionField.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/dsa_page_feed_criterion_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/dsa_page_feed_criterion_field.proto - public static partial class DsaPageFeedCriterionFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/dsa_page_feed_criterion_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DsaPageFeedCriterionFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZHNhX3BhZ2VfZmVl", - "ZF9jcml0ZXJpb25fZmllbGQucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcyJzCh1Ec2FQYWdlRmVlZENyaXRlcmlvbkZpZWxkRW51bSJS", - "ChlEc2FQYWdlRmVlZENyaXRlcmlvbkZpZWxkEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEgwKCFBBR0VfVVJMEAISCQoFTEFCRUwQA0L4AQoiY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IeRHNhUGFnZUZlZWRD", - "cml0ZXJpb25GaWVsZFByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOi", - "AgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldEnum.Types.DsaPageFeedCriterionField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Dynamic Search Ad Page Feed criterion fields. - /// - public sealed partial class DsaPageFeedCriterionFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DsaPageFeedCriterionFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DsaPageFeedCriterionFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DsaPageFeedCriterionFieldEnum(DsaPageFeedCriterionFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DsaPageFeedCriterionFieldEnum Clone() { - return new DsaPageFeedCriterionFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DsaPageFeedCriterionFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DsaPageFeedCriterionFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DsaPageFeedCriterionFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the DsaPageFeedCriterionFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Dynamic Search Ad Page Feed criterion fields. - /// - public enum DsaPageFeedCriterionField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: URL or URL_LIST. URL of the web page you want to target. - /// - [pbr::OriginalName("PAGE_URL")] PageUrl = 2, - /// - /// Data Type: STRING_LIST. The labels that will help you target ads within - /// your page feed. - /// - [pbr::OriginalName("LABEL")] Label = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DynamicSearchAdsSearchTermView.g.cs b/Google.Ads.GoogleAds/src/V12/DynamicSearchAdsSearchTermView.g.cs deleted file mode 100755 index 94920c075..000000000 --- a/Google.Ads.GoogleAds/src/V12/DynamicSearchAdsSearchTermView.g.cs +++ /dev/null @@ -1,649 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/dynamic_search_ads_search_term_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/dynamic_search_ads_search_term_view.proto - public static partial class DynamicSearchAdsSearchTermViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/dynamic_search_ads_search_term_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static DynamicSearchAdsSearchTermViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2R5bmFtaWNf", - "c2VhcmNoX2Fkc19zZWFyY2hfdGVybV92aWV3LnByb3RvEiJnb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGh9nb29nbGUvYXBpL2ZpZWxkX2Jl", - "aGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvItAFCh5E", - "eW5hbWljU2VhcmNoQWRzU2VhcmNoVGVybVZpZXcSVgoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUI/4EED+kE5Cjdnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRHlu", - "YW1pY1NlYXJjaEFkc1NlYXJjaFRlcm1WaWV3Eh0KC3NlYXJjaF90ZXJtGAkg", - "ASgJQgPgQQNIAIgBARIaCghoZWFkbGluZRgKIAEoCUID4EEDSAGIAQESHgoM", - "bGFuZGluZ19wYWdlGAsgASgJQgPgQQNIAogBARIaCghwYWdlX3VybBgMIAEo", - "CUID4EEDSAOIAQESJgoUaGFzX25lZ2F0aXZlX2tleXdvcmQYDSABKAhCA+BB", - "A0gEiAEBEiYKFGhhc19tYXRjaGluZ19rZXl3b3JkGA4gASgIQgPgQQNIBYgB", - "ARIiChBoYXNfbmVnYXRpdmVfdXJsGA8gASgIQgPgQQNIBogBATroAepB5AEK", - "N2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9EeW5hbWljU2VhcmNoQWRzU2Vh", - "cmNoVGVybVZpZXcSqAFjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9keW5hbWlj", - "U2VhcmNoQWRzU2VhcmNoVGVybVZpZXdzL3thZF9ncm91cF9pZH1+e3NlYXJj", - "aF90ZXJtX2ZpbmdlcnByaW50fX57aGVhZGxpbmVfZmluZ2VycHJpbnR9fnts", - "YW5kaW5nX3BhZ2VfZmluZ2VycHJpbnR9fntwYWdlX3VybF9maW5nZXJwcmlu", - "dH1CDgoMX3NlYXJjaF90ZXJtQgsKCV9oZWFkbGluZUIPCg1fbGFuZGluZ19w", - "YWdlQgsKCV9wYWdlX3VybEIXChVfaGFzX25lZ2F0aXZlX2tleXdvcmRCFwoV", - "X2hhc19tYXRjaGluZ19rZXl3b3JkQhMKEV9oYXNfbmVnYXRpdmVfdXJsQpUC", - "CiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0IjRHlu", - "YW1pY1NlYXJjaEFkc1NlYXJjaFRlcm1WaWV3UHJvdG9QAVpLZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJl", - "c291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermView), global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermView.Parser, new[]{ "ResourceName", "SearchTerm", "Headline", "LandingPage", "PageUrl", "HasNegativeKeyword", "HasMatchingKeyword", "HasNegativeUrl" }, new[]{ "SearchTerm", "Headline", "LandingPage", "PageUrl", "HasNegativeKeyword", "HasMatchingKeyword", "HasNegativeUrl" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A dynamic search ads search term view. - /// - public sealed partial class DynamicSearchAdsSearchTermView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicSearchAdsSearchTermView()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicSearchAdsSearchTermView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicSearchAdsSearchTermView(DynamicSearchAdsSearchTermView other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - searchTerm_ = other.searchTerm_; - headline_ = other.headline_; - landingPage_ = other.landingPage_; - pageUrl_ = other.pageUrl_; - hasNegativeKeyword_ = other.hasNegativeKeyword_; - hasMatchingKeyword_ = other.hasMatchingKeyword_; - hasNegativeUrl_ = other.hasNegativeUrl_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicSearchAdsSearchTermView Clone() { - return new DynamicSearchAdsSearchTermView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the dynamic search ads search term view. - /// Dynamic search ads search term view resource names have the form: - /// - /// `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "search_term" field. - public const int SearchTermFieldNumber = 9; - private string searchTerm_; - /// - /// Output only. Search term - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SearchTerm { - get { return searchTerm_ ?? ""; } - set { - searchTerm_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "search_term" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSearchTerm { - get { return searchTerm_ != null; } - } - /// Clears the value of the "search_term" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSearchTerm() { - searchTerm_ = null; - } - - /// Field number for the "headline" field. - public const int HeadlineFieldNumber = 10; - private string headline_; - /// - /// Output only. The dynamically generated headline of the Dynamic Search Ad. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Headline { - get { return headline_ ?? ""; } - set { - headline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "headline" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeadline { - get { return headline_ != null; } - } - /// Clears the value of the "headline" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeadline() { - headline_ = null; - } - - /// Field number for the "landing_page" field. - public const int LandingPageFieldNumber = 11; - private string landingPage_; - /// - /// Output only. The dynamically selected landing page URL of the impression. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LandingPage { - get { return landingPage_ ?? ""; } - set { - landingPage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "landing_page" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLandingPage { - get { return landingPage_ != null; } - } - /// Clears the value of the "landing_page" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLandingPage() { - landingPage_ = null; - } - - /// Field number for the "page_url" field. - public const int PageUrlFieldNumber = 12; - private string pageUrl_; - /// - /// Output only. The URL of page feed item served for the impression. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageUrl { - get { return pageUrl_ ?? ""; } - set { - pageUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "page_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPageUrl { - get { return pageUrl_ != null; } - } - /// Clears the value of the "page_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPageUrl() { - pageUrl_ = null; - } - - /// Field number for the "has_negative_keyword" field. - public const int HasNegativeKeywordFieldNumber = 13; - private bool hasNegativeKeyword_; - /// - /// Output only. True if query matches a negative keyword. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNegativeKeyword { - get { if ((_hasBits0 & 1) != 0) { return hasNegativeKeyword_; } else { return false; } } - set { - _hasBits0 |= 1; - hasNegativeKeyword_ = value; - } - } - /// Gets whether the "has_negative_keyword" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasNegativeKeyword { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "has_negative_keyword" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasNegativeKeyword() { - _hasBits0 &= ~1; - } - - /// Field number for the "has_matching_keyword" field. - public const int HasMatchingKeywordFieldNumber = 14; - private bool hasMatchingKeyword_; - /// - /// Output only. True if query is added to targeted keywords. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMatchingKeyword { - get { if ((_hasBits0 & 2) != 0) { return hasMatchingKeyword_; } else { return false; } } - set { - _hasBits0 |= 2; - hasMatchingKeyword_ = value; - } - } - /// Gets whether the "has_matching_keyword" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasMatchingKeyword { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "has_matching_keyword" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasMatchingKeyword() { - _hasBits0 &= ~2; - } - - /// Field number for the "has_negative_url" field. - public const int HasNegativeUrlFieldNumber = 15; - private bool hasNegativeUrl_; - /// - /// Output only. True if query matches a negative url. - /// - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNegativeUrl { - get { if ((_hasBits0 & 4) != 0) { return hasNegativeUrl_; } else { return false; } } - set { - _hasBits0 |= 4; - hasNegativeUrl_ = value; - } - } - /// Gets whether the "has_negative_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHasNegativeUrl { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "has_negative_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHasNegativeUrl() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicSearchAdsSearchTermView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicSearchAdsSearchTermView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (SearchTerm != other.SearchTerm) return false; - if (Headline != other.Headline) return false; - if (LandingPage != other.LandingPage) return false; - if (PageUrl != other.PageUrl) return false; - if (HasNegativeKeyword != other.HasNegativeKeyword) return false; - if (HasMatchingKeyword != other.HasMatchingKeyword) return false; - if (HasNegativeUrl != other.HasNegativeUrl) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasSearchTerm) hash ^= SearchTerm.GetHashCode(); - if (HasHeadline) hash ^= Headline.GetHashCode(); - if (HasLandingPage) hash ^= LandingPage.GetHashCode(); - if (HasPageUrl) hash ^= PageUrl.GetHashCode(); - if (HasHasNegativeKeyword) hash ^= HasNegativeKeyword.GetHashCode(); - if (HasHasMatchingKeyword) hash ^= HasMatchingKeyword.GetHashCode(); - if (HasHasNegativeUrl) hash ^= HasNegativeUrl.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasSearchTerm) { - output.WriteRawTag(74); - output.WriteString(SearchTerm); - } - if (HasHeadline) { - output.WriteRawTag(82); - output.WriteString(Headline); - } - if (HasLandingPage) { - output.WriteRawTag(90); - output.WriteString(LandingPage); - } - if (HasPageUrl) { - output.WriteRawTag(98); - output.WriteString(PageUrl); - } - if (HasHasNegativeKeyword) { - output.WriteRawTag(104); - output.WriteBool(HasNegativeKeyword); - } - if (HasHasMatchingKeyword) { - output.WriteRawTag(112); - output.WriteBool(HasMatchingKeyword); - } - if (HasHasNegativeUrl) { - output.WriteRawTag(120); - output.WriteBool(HasNegativeUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasSearchTerm) { - output.WriteRawTag(74); - output.WriteString(SearchTerm); - } - if (HasHeadline) { - output.WriteRawTag(82); - output.WriteString(Headline); - } - if (HasLandingPage) { - output.WriteRawTag(90); - output.WriteString(LandingPage); - } - if (HasPageUrl) { - output.WriteRawTag(98); - output.WriteString(PageUrl); - } - if (HasHasNegativeKeyword) { - output.WriteRawTag(104); - output.WriteBool(HasNegativeKeyword); - } - if (HasHasMatchingKeyword) { - output.WriteRawTag(112); - output.WriteBool(HasMatchingKeyword); - } - if (HasHasNegativeUrl) { - output.WriteRawTag(120); - output.WriteBool(HasNegativeUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasSearchTerm) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SearchTerm); - } - if (HasHeadline) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Headline); - } - if (HasLandingPage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LandingPage); - } - if (HasPageUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageUrl); - } - if (HasHasNegativeKeyword) { - size += 1 + 1; - } - if (HasHasMatchingKeyword) { - size += 1 + 1; - } - if (HasHasNegativeUrl) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicSearchAdsSearchTermView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasSearchTerm) { - SearchTerm = other.SearchTerm; - } - if (other.HasHeadline) { - Headline = other.Headline; - } - if (other.HasLandingPage) { - LandingPage = other.LandingPage; - } - if (other.HasPageUrl) { - PageUrl = other.PageUrl; - } - if (other.HasHasNegativeKeyword) { - HasNegativeKeyword = other.HasNegativeKeyword; - } - if (other.HasHasMatchingKeyword) { - HasMatchingKeyword = other.HasMatchingKeyword; - } - if (other.HasHasNegativeUrl) { - HasNegativeUrl = other.HasNegativeUrl; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 74: { - SearchTerm = input.ReadString(); - break; - } - case 82: { - Headline = input.ReadString(); - break; - } - case 90: { - LandingPage = input.ReadString(); - break; - } - case 98: { - PageUrl = input.ReadString(); - break; - } - case 104: { - HasNegativeKeyword = input.ReadBool(); - break; - } - case 112: { - HasMatchingKeyword = input.ReadBool(); - break; - } - case 120: { - HasNegativeUrl = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 74: { - SearchTerm = input.ReadString(); - break; - } - case 82: { - Headline = input.ReadString(); - break; - } - case 90: { - LandingPage = input.ReadString(); - break; - } - case 98: { - PageUrl = input.ReadString(); - break; - } - case 104: { - HasNegativeKeyword = input.ReadBool(); - break; - } - case 112: { - HasMatchingKeyword = input.ReadBool(); - break; - } - case 120: { - HasNegativeUrl = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/DynamicSearchAdsSearchTermViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/DynamicSearchAdsSearchTermViewResourceNames.g.cs deleted file mode 100755 index c05e98834..000000000 --- a/Google.Ads.GoogleAds/src/V12/DynamicSearchAdsSearchTermViewResourceNames.g.cs +++ /dev/null @@ -1,410 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the DynamicSearchAdsSearchTermView resource. - public sealed partial class DynamicSearchAdsSearchTermViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// . - /// - CustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint = 1, - } - - private static gax::PathTemplate s_customerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint = new gax::PathTemplate("customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id_search_term_fingerprint_headline_fingerprint_landing_page_fingerprint_page_url_fingerprint}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static DynamicSearchAdsSearchTermViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new DynamicSearchAdsSearchTermViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The SearchTermFingerprint ID. Must not be null or empty. - /// - /// - /// The HeadlineFingerprint ID. Must not be null or empty. - /// - /// - /// The LandingPageFingerprint ID. Must not be null or empty. - /// - /// - /// The PageUrlFingerprint ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static DynamicSearchAdsSearchTermViewName FromCustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint(string customerId, string adGroupId, string searchTermFingerprintId, string headlineFingerprintId, string landingPageFingerprintId, string pageUrlFingerprintId) => - new DynamicSearchAdsSearchTermViewName(ResourceNameType.CustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), searchTermFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(searchTermFingerprintId, nameof(searchTermFingerprintId)), headlineFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(headlineFingerprintId, nameof(headlineFingerprintId)), landingPageFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(landingPageFingerprintId, nameof(landingPageFingerprintId)), pageUrlFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(pageUrlFingerprintId, nameof(pageUrlFingerprintId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The SearchTermFingerprint ID. Must not be null or empty. - /// - /// - /// The HeadlineFingerprint ID. Must not be null or empty. - /// - /// - /// The LandingPageFingerprint ID. Must not be null or empty. - /// - /// - /// The PageUrlFingerprint ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// . - /// - public static string Format(string customerId, string adGroupId, string searchTermFingerprintId, string headlineFingerprintId, string landingPageFingerprintId, string pageUrlFingerprintId) => - FormatCustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint(customerId, adGroupId, searchTermFingerprintId, headlineFingerprintId, landingPageFingerprintId, pageUrlFingerprintId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The SearchTermFingerprint ID. Must not be null or empty. - /// - /// - /// The HeadlineFingerprint ID. Must not be null or empty. - /// - /// - /// The LandingPageFingerprint ID. Must not be null or empty. - /// - /// - /// The PageUrlFingerprint ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// . - /// - public static string FormatCustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint(string customerId, string adGroupId, string searchTermFingerprintId, string headlineFingerprintId, string landingPageFingerprintId, string pageUrlFingerprintId) => - s_customerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(searchTermFingerprintId, nameof(searchTermFingerprintId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(headlineFingerprintId, nameof(headlineFingerprintId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(landingPageFingerprintId, nameof(landingPageFingerprintId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(pageUrlFingerprintId, nameof(pageUrlFingerprintId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static DynamicSearchAdsSearchTermViewName Parse(string dynamicSearchAdsSearchTermViewName) => - Parse(dynamicSearchAdsSearchTermViewName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static DynamicSearchAdsSearchTermViewName Parse(string dynamicSearchAdsSearchTermViewName, bool allowUnparsed) => - TryParse(dynamicSearchAdsSearchTermViewName, allowUnparsed, out DynamicSearchAdsSearchTermViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string dynamicSearchAdsSearchTermViewName, out DynamicSearchAdsSearchTermViewName result) => - TryParse(dynamicSearchAdsSearchTermViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if - /// parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string dynamicSearchAdsSearchTermViewName, bool allowUnparsed, out DynamicSearchAdsSearchTermViewName result) - { - gax::GaxPreconditions.CheckNotNull(dynamicSearchAdsSearchTermViewName, nameof(dynamicSearchAdsSearchTermViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint.TryParseName(dynamicSearchAdsSearchTermViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint(resourceName[0], split1[0], split1[1], split1[2], split1[3], split1[4]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(dynamicSearchAdsSearchTermViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private DynamicSearchAdsSearchTermViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string customerId = null, string headlineFingerprintId = null, string landingPageFingerprintId = null, string pageUrlFingerprintId = null, string searchTermFingerprintId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CustomerId = customerId; - HeadlineFingerprintId = headlineFingerprintId; - LandingPageFingerprintId = landingPageFingerprintId; - PageUrlFingerprintId = pageUrlFingerprintId; - SearchTermFingerprintId = searchTermFingerprintId; - } - - /// - /// Constructs a new instance of a class from the component - /// parts of pattern - /// - /// customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// - /// The SearchTermFingerprint ID. Must not be null or empty. - /// - /// - /// The HeadlineFingerprint ID. Must not be null or empty. - /// - /// - /// The LandingPageFingerprint ID. Must not be null or empty. - /// - /// - /// The PageUrlFingerprint ID. Must not be null or empty. - /// - public DynamicSearchAdsSearchTermViewName(string customerId, string adGroupId, string searchTermFingerprintId, string headlineFingerprintId, string landingPageFingerprintId, string pageUrlFingerprintId) : this(ResourceNameType.CustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), searchTermFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(searchTermFingerprintId, nameof(searchTermFingerprintId)), headlineFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(headlineFingerprintId, nameof(headlineFingerprintId)), landingPageFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(landingPageFingerprintId, nameof(landingPageFingerprintId)), pageUrlFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(pageUrlFingerprintId, nameof(pageUrlFingerprintId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The HeadlineFingerprint ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string HeadlineFingerprintId { get; } - - /// - /// The LandingPageFingerprint ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string LandingPageFingerprintId { get; } - - /// - /// The PageUrlFingerprint ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string PageUrlFingerprintId { get; } - - /// - /// The SearchTermFingerprint ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string SearchTermFingerprintId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint: return s_customerAdGroupSearchTermFingerprintHeadlineFingerprintLandingPageFingerprintPageUrlFingerprint.Expand(CustomerId, $"{AdGroupId}~{SearchTermFingerprintId}~{HeadlineFingerprintId}~{LandingPageFingerprintId}~{PageUrlFingerprintId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as DynamicSearchAdsSearchTermViewName); - - /// - public bool Equals(DynamicSearchAdsSearchTermViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(DynamicSearchAdsSearchTermViewName a, DynamicSearchAdsSearchTermViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(DynamicSearchAdsSearchTermViewName a, DynamicSearchAdsSearchTermViewName b) => !(a == b); - } - - public partial class DynamicSearchAdsSearchTermView - { - /// - /// -typed view over the resource - /// name property. - /// - internal DynamicSearchAdsSearchTermViewName ResourceNameAsDynamicSearchAdsSearchTermViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : DynamicSearchAdsSearchTermViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/EducationPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/EducationPlaceholderField.g.cs deleted file mode 100755 index 5161b6881..000000000 --- a/Google.Ads.GoogleAds/src/V12/EducationPlaceholderField.g.cs +++ /dev/null @@ -1,320 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/education_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/education_placeholder_field.proto - public static partial class EducationPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/education_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static EducationPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZWR1Y2F0aW9uX3Bs", - "YWNlaG9sZGVyX2ZpZWxkLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMivwMKHUVkdWNhdGlvblBsYWNlaG9sZGVyRmllbGRFbnVtIp0D", - "ChlFZHVjYXRpb25QbGFjZWhvbGRlckZpZWxkEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEg4KClBST0dSQU1fSUQQAhIPCgtMT0NBVElPTl9JRBAD", - "EhAKDFBST0dSQU1fTkFNRRAEEhEKDUFSRUFfT0ZfU1RVRFkQBRIXChNQUk9H", - "UkFNX0RFU0NSSVBUSU9OEAYSDwoLU0NIT09MX05BTUUQBxILCgdBRERSRVNT", - "EAgSFwoTVEhVTUJOQUlMX0lNQUdFX1VSTBAJEiMKH0FMVEVSTkFUSVZFX1RI", - "VU1CTkFJTF9JTUFHRV9VUkwQChIOCgpGSU5BTF9VUkxTEAsSFQoRRklOQUxf", - "TU9CSUxFX1VSTFMQDBIQCgxUUkFDS0lOR19VUkwQDRIXChNDT05URVhUVUFM", - "X0tFWVdPUkRTEA4SFAoQQU5EUk9JRF9BUFBfTElOSxAPEhcKE1NJTUlMQVJf", - "UFJPR1JBTV9JRFMQEBIQCgxJT1NfQVBQX0xJTksQERIUChBJT1NfQVBQX1NU", - "T1JFX0lEEBJC+AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXNCHkVkdWNhdGlvblBsYWNlaG9sZGVyRmllbGRQcm90b1ABWkNnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIi", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldEnum.Types.EducationPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Education placeholder fields. - /// For more information about dynamic remarketing feeds, see - /// https://support.google.com/google-ads/answer/6053288. - /// - public sealed partial class EducationPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EducationPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EducationPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EducationPlaceholderFieldEnum(EducationPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EducationPlaceholderFieldEnum Clone() { - return new EducationPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EducationPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EducationPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EducationPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the EducationPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Education placeholder fields. - /// - public enum EducationPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. Required. Combination of PROGRAM ID and LOCATION ID - /// must be unique per offer. - /// - [pbr::OriginalName("PROGRAM_ID")] ProgramId = 2, - /// - /// Data Type: STRING. Combination of PROGRAM ID and LOCATION ID must be - /// unique per offer. - /// - [pbr::OriginalName("LOCATION_ID")] LocationId = 3, - /// - /// Data Type: STRING. Required. Main headline with program name to be shown - /// in dynamic ad. - /// - [pbr::OriginalName("PROGRAM_NAME")] ProgramName = 4, - /// - /// Data Type: STRING. Area of study that can be shown in dynamic ad. - /// - [pbr::OriginalName("AREA_OF_STUDY")] AreaOfStudy = 5, - /// - /// Data Type: STRING. Description of program that can be shown in dynamic - /// ad. - /// - [pbr::OriginalName("PROGRAM_DESCRIPTION")] ProgramDescription = 6, - /// - /// Data Type: STRING. Name of school that can be shown in dynamic ad. - /// - [pbr::OriginalName("SCHOOL_NAME")] SchoolName = 7, - /// - /// Data Type: STRING. Complete school address, including postal code. - /// - [pbr::OriginalName("ADDRESS")] Address = 8, - /// - /// Data Type: URL. Image to be displayed in ads. - /// - [pbr::OriginalName("THUMBNAIL_IMAGE_URL")] ThumbnailImageUrl = 9, - /// - /// Data Type: URL. Alternative hosted file of image to be used in the ad. - /// - [pbr::OriginalName("ALTERNATIVE_THUMBNAIL_IMAGE_URL")] AlternativeThumbnailImageUrl = 10, - /// - /// Data Type: URL_LIST. Required. Final URLs to be used in ad when using - /// Upgraded URLs; the more specific the better (for example, the individual - /// URL of a specific program and its location). - /// - [pbr::OriginalName("FINAL_URLS")] FinalUrls = 11, - /// - /// Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - /// URLs. - /// - [pbr::OriginalName("FINAL_MOBILE_URLS")] FinalMobileUrls = 12, - /// - /// Data Type: URL. Tracking template for the ad when using Upgraded URLs. - /// - [pbr::OriginalName("TRACKING_URL")] TrackingUrl = 13, - /// - /// Data Type: STRING_LIST. Keywords used for product retrieval. - /// - [pbr::OriginalName("CONTEXTUAL_KEYWORDS")] ContextualKeywords = 14, - /// - /// Data Type: STRING. Android app link. Must be formatted as: - /// android-app://{package_id}/{scheme}/{host_path}. - /// The components are defined as follows: - /// package_id: app ID as specified in Google Play. - /// scheme: the scheme to pass to the application. Can be HTTP, or a custom - /// scheme. - /// host_path: identifies the specific content within your application. - /// - [pbr::OriginalName("ANDROID_APP_LINK")] AndroidAppLink = 15, - /// - /// Data Type: STRING_LIST. List of recommended program IDs to show together - /// with this item. - /// - [pbr::OriginalName("SIMILAR_PROGRAM_IDS")] SimilarProgramIds = 16, - /// - /// Data Type: STRING. iOS app link. - /// - [pbr::OriginalName("IOS_APP_LINK")] IosAppLink = 17, - /// - /// Data Type: INT64. iOS app store ID. - /// - [pbr::OriginalName("IOS_APP_STORE_ID")] IosAppStoreId = 18, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/EnumError.g.cs b/Google.Ads.GoogleAds/src/V12/EnumError.g.cs deleted file mode 100755 index 2a8379a5c..000000000 --- a/Google.Ads.GoogleAds/src/V12/EnumError.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/enum_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/enum_error.proto - public static partial class EnumErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/enum_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static EnumErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2VudW1fZXJyb3Iu", - "cHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMiWAoNRW51", - "bUVycm9yRW51bSJHCglFbnVtRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESHAoYRU5VTV9WQUxVRV9OT1RfUEVSTUlUVEVEEANC7gEKI2Nv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQg5FbnVtRXJyb3JQ", - "cm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.EnumErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.EnumErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.EnumErrorEnum.Types.EnumError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible enum errors. - /// - public sealed partial class EnumErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EnumErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.EnumErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnumErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnumErrorEnum(EnumErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EnumErrorEnum Clone() { - return new EnumErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EnumErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EnumErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EnumErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the EnumErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible enum errors. - /// - public enum EnumError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The enum value is not permitted. - /// - [pbr::OriginalName("ENUM_VALUE_NOT_PERMITTED")] EnumValueNotPermitted = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Errors.g.cs b/Google.Ads.GoogleAds/src/V12/Errors.g.cs deleted file mode 100755 index f2bd31c7a..000000000 --- a/Google.Ads.GoogleAds/src/V12/Errors.g.cs +++ /dev/null @@ -1,9795 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/errors.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/errors.proto - public static partial class ErrorsReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/errors.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ErrorsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cixnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Vycm9ycy5wcm90", - "bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycxosZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2NvbW1vbi9wb2xpY3kucHJvdG8aK2dvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vdmFsdWUucHJvdG8aOGdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9yZXNvdXJjZV9saW1pdF90eXBlLnBy", - "b3RvGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FjY2Vzc19p", - "bnZpdGF0aW9uX2Vycm9yLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzL2FjY291bnRfYnVkZ2V0X3Byb3Bvc2FsX2Vycm9yLnByb3Rv", - "Gjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FjY291bnRfbGlu", - "a19lcnJvci5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9y", - "cy9hZF9jdXN0b21pemVyX2Vycm9yLnByb3RvGi5nb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZXJyb3JzL2FkX2Vycm9yLnByb3RvGjdnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2FkX2Vycm9yLnByb3RvGkFn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkX2dyb3VwX2JpZF9t", - "b2RpZmllcl9lcnJvci5wcm90bxpJZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycy9hZF9ncm91cF9jcml0ZXJpb25fY3VzdG9taXplcl9lcnJvci5w", - "cm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9hZF9ncm91", - "cF9jcml0ZXJpb25fZXJyb3IucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lcnJvcnMvYWRfZ3JvdXBfY3VzdG9taXplcl9lcnJvci5wcm90bxo0", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9hZF9ncm91cF9lcnJv", - "ci5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9hZF9n", - "cm91cF9mZWVkX2Vycm9yLnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzL2FkX3BhcmFtZXRlcl9lcnJvci5wcm90bxo2Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2Vycm9ycy9hZF9zaGFyaW5nX2Vycm9yLnByb3Rv", - "Gi9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2FkeF9lcnJvci5w", - "cm90bxoxZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9hc3NldF9l", - "cnJvci5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9h", - "c3NldF9ncm91cF9hc3NldF9lcnJvci5wcm90bxo3Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycy9hc3NldF9ncm91cF9lcnJvci5wcm90bxpMZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9hc3NldF9ncm91cF9saXN0", - "aW5nX2dyb3VwX2ZpbHRlcl9lcnJvci5wcm90bxo2Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycy9hc3NldF9saW5rX2Vycm9yLnByb3RvGjtnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Fzc2V0X3NldF9hc3NldF9l", - "cnJvci5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9h", - "c3NldF9zZXRfZXJyb3IucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lcnJvcnMvYXNzZXRfc2V0X2xpbmtfZXJyb3IucHJvdG8aNGdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvYXVkaWVuY2VfZXJyb3IucHJvdG8a", - "PWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvYXVkaWVuY2VfaW5z", - "aWdodHNfZXJyb3IucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnMvYXV0aGVudGljYXRpb25fZXJyb3IucHJvdG8aOWdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lcnJvcnMvYXV0aG9yaXphdGlvbl9lcnJvci5wcm90", - "bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9iYXRjaF9qb2Jf", - "ZXJyb3IucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMv", - "YmlkZGluZ19lcnJvci5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycy9iaWRkaW5nX3N0cmF0ZWd5X2Vycm9yLnByb3RvGjlnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2JpbGxpbmdfc2V0dXBfZXJyb3Iu", - "cHJvdG8aO2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvY2FtcGFp", - "Z25fYnVkZ2V0X2Vycm9yLnByb3RvGkRnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzL2NhbXBhaWduX2NvbnZlcnNpb25fZ29hbF9lcnJvci5wcm90", - "bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9jYW1wYWlnbl9j", - "cml0ZXJpb25fZXJyb3IucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lcnJvcnMvY2FtcGFpZ25fY3VzdG9taXplcl9lcnJvci5wcm90bxo6Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9jYW1wYWlnbl9kcmFmdF9l", - "cnJvci5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9j", - "YW1wYWlnbl9lcnJvci5wcm90bxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycy9jYW1wYWlnbl9leHBlcmltZW50X2Vycm9yLnByb3RvGjlnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NhbXBhaWduX2ZlZWRfZXJy", - "b3IucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvY2Ft", - "cGFpZ25fc2hhcmVkX3NldF9lcnJvci5wcm90bxo4Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycy9jaGFuZ2VfZXZlbnRfZXJyb3IucHJvdG8aOWdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvY2hhbmdlX3N0YXR1c19l", - "cnJvci5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9j", - "b2xsZWN0aW9uX3NpemVfZXJyb3IucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lcnJvcnMvY29udGV4dF9lcnJvci5wcm90bxo9Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2Vycm9ycy9jb252ZXJzaW9uX2FjdGlvbl9lcnJv", - "ci5wcm90bxpIZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9jb252", - "ZXJzaW9uX2FkanVzdG1lbnRfdXBsb2FkX2Vycm9yLnByb3RvGkZnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25fY3VzdG9tX3Zh", - "cmlhYmxlX2Vycm9yLnByb3RvGktnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzL2NvbnZlcnNpb25fZ29hbF9jYW1wYWlnbl9jb25maWdfZXJyb3Iu", - "cHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvY29udmVy", - "c2lvbl91cGxvYWRfZXJyb3IucHJvdG8aQWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lcnJvcnMvY29udmVyc2lvbl92YWx1ZV9ydWxlX2Vycm9yLnByb3Rv", - "GkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NvbnZlcnNpb25f", - "dmFsdWVfcnVsZV9zZXRfZXJyb3IucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lcnJvcnMvY291bnRyeV9jb2RlX2Vycm9yLnByb3RvGjVnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2NyaXRlcmlvbl9lcnJvci5w", - "cm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9jdXJyZW5j", - "eV9jb2RlX2Vycm9yLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzL2N1c3RvbV9hdWRpZW5jZV9lcnJvci5wcm90bxpCZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2Vycm9ycy9jdXN0b21fY29udmVyc2lvbl9nb2Fs", - "X2Vycm9yLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3Jz", - "L2N1c3RvbV9pbnRlcmVzdF9lcnJvci5wcm90bxpAZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycy9jdXN0b21lcl9jbGllbnRfbGlua19lcnJvci5w", - "cm90bxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9jdXN0b21l", - "cl9jdXN0b21pemVyX2Vycm9yLnByb3RvGjRnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZXJyb3JzL2N1c3RvbWVyX2Vycm9yLnByb3RvGjlnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWVyX2ZlZWRfZXJyb3IucHJv", - "dG8aQWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvY3VzdG9tZXJf", - "bWFuYWdlcl9saW5rX2Vycm9yLnByb3RvGkBnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZXJyb3JzL2N1c3RvbWVyX3VzZXJfYWNjZXNzX2Vycm9yLnByb3Rv", - "GkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2N1c3RvbWl6ZXJf", - "YXR0cmlidXRlX2Vycm9yLnByb3RvGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzL2RhdGFiYXNlX2Vycm9yLnByb3RvGjBnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZXJyb3JzL2RhdGVfZXJyb3IucHJvdG8aNmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvZGF0ZV9yYW5nZV9lcnJvci5wcm90", - "bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9kaXN0aW5jdF9l", - "cnJvci5wcm90bxowZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9l", - "bnVtX2Vycm9yLnByb3RvGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJy", - "b3JzL2V4cGVyaW1lbnRfYXJtX2Vycm9yLnByb3RvGjZnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZXJyb3JzL2V4cGVyaW1lbnRfZXJyb3IucHJvdG8aP2dv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvZXh0ZW5zaW9uX2ZlZWRf", - "aXRlbV9lcnJvci5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vy", - "cm9ycy9leHRlbnNpb25fc2V0dGluZ19lcnJvci5wcm90bxpEZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2Vycm9ycy9mZWVkX2F0dHJpYnV0ZV9yZWZlcmVu", - "Y2VfZXJyb3IucHJvdG8aMGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJv", - "cnMvZmVlZF9lcnJvci5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycy9mZWVkX2l0ZW1fZXJyb3IucHJvdG8aOWdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lcnJvcnMvZmVlZF9pdGVtX3NldF9lcnJvci5wcm90bxo+", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9mZWVkX2l0ZW1fc2V0", - "X2xpbmtfZXJyb3IucHJvdG8aPGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnMvZmVlZF9pdGVtX3RhcmdldF9lcnJvci5wcm90bxpAZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2Vycm9ycy9mZWVkX2l0ZW1fdmFsaWRhdGlvbl9l", - "cnJvci5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9m", - "ZWVkX21hcHBpbmdfZXJyb3IucHJvdG8aMWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lcnJvcnMvZmllbGRfZXJyb3IucHJvdG8aNmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lcnJvcnMvZmllbGRfbWFza19lcnJvci5wcm90bxo0Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9mdW5jdGlvbl9lcnJvci5w", - "cm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9mdW5jdGlv", - "bl9wYXJzaW5nX2Vycm9yLnByb3RvGkpnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzL2dlb190YXJnZXRfY29uc3RhbnRfc3VnZ2VzdGlvbl9lcnJv", - "ci5wcm90bxoyZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9oZWFk", - "ZXJfZXJyb3IucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJv", - "cnMvaWRfZXJyb3IucHJvdG8aMWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnMvaW1hZ2VfZXJyb3IucHJvdG8aNGdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lcnJvcnMvaW50ZXJuYWxfZXJyb3IucHJvdG8aM2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lcnJvcnMvaW52b2ljZV9lcnJvci5wcm90bxpBZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9rZXl3b3JkX3BsYW5fYWRf", - "Z3JvdXBfZXJyb3IucHJvdG8aSWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnMva2V5d29yZF9wbGFuX2FkX2dyb3VwX2tleXdvcmRfZXJyb3IucHJv", - "dG8aQWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMva2V5d29yZF9w", - "bGFuX2NhbXBhaWduX2Vycm9yLnByb3RvGklnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZXJyb3JzL2tleXdvcmRfcGxhbl9jYW1wYWlnbl9rZXl3b3JkX2Vy", - "cm9yLnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2tl", - "eXdvcmRfcGxhbl9lcnJvci5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2Vycm9ycy9rZXl3b3JkX3BsYW5faWRlYV9lcnJvci5wcm90bxoxZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9sYWJlbF9lcnJvci5wcm90", - "bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9sYW5ndWFnZV9j", - "b2RlX2Vycm9yLnByb3RvGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJy", - "b3JzL2xpc3Rfb3BlcmF0aW9uX2Vycm9yLnByb3RvGjhnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZXJyb3JzL21hbmFnZXJfbGlua19lcnJvci5wcm90bxo4", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9tZWRpYV9idW5kbGVf", - "ZXJyb3IucHJvdG8aNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMv", - "bWVkaWFfZmlsZV9lcnJvci5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2Vycm9ycy9tZWRpYV91cGxvYWRfZXJyb3IucHJvdG8aO2dvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvbWVyY2hhbnRfY2VudGVyX2Vycm9y", - "LnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL211bHRp", - "cGxpZXJfZXJyb3IucHJvdG8aMmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnMvbXV0YXRlX2Vycm9yLnByb3RvGkFnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZXJyb3JzL25ld19yZXNvdXJjZV9jcmVhdGlvbl9lcnJvci5wcm90", - "bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9ub3RfYWxsb3ds", - "aXN0ZWRfZXJyb3IucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "cnJvcnMvbm90X2VtcHR5X2Vycm9yLnByb3RvGjBnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZXJyb3JzL251bGxfZXJyb3IucHJvdG8aQWdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9lcnJvcnMvb2ZmbGluZV91c2VyX2RhdGFfam9iX2Vy", - "cm9yLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL29w", - "ZXJhdGlvbl9hY2Nlc3NfZGVuaWVkX2Vycm9yLnByb3RvGjRnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZXJyb3JzL29wZXJhdG9yX2Vycm9yLnByb3RvGjtn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL3BhcnRpYWxfZmFpbHVy", - "ZV9lcnJvci5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9y", - "cy9wYXltZW50c19hY2NvdW50X2Vycm9yLnByb3RvGjpnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZXJyb3JzL3BvbGljeV9maW5kaW5nX2Vycm9yLnByb3Rv", - "Gkdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL3BvbGljeV92YWxp", - "ZGF0aW9uX3BhcmFtZXRlcl9lcnJvci5wcm90bxo8Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycy9wb2xpY3lfdmlvbGF0aW9uX2Vycm9yLnByb3Rv", - "GjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL3F1ZXJ5X2Vycm9y", - "LnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL3F1b3Rh", - "X2Vycm9yLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3Jz", - "L3JhbmdlX2Vycm9yLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzL3JlYWNoX3BsYW5fZXJyb3IucHJvdG8aOmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lcnJvcnMvcmVjb21tZW5kYXRpb25fZXJyb3IucHJvdG8a", - "N2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvcmVnaW9uX2NvZGVf", - "ZXJyb3IucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMv", - "cmVxdWVzdF9lcnJvci5wcm90bxpCZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycy9yZXNvdXJjZV9hY2Nlc3NfZGVuaWVkX2Vycm9yLnByb3RvGkln", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL3Jlc291cmNlX2NvdW50", - "X2xpbWl0X2V4Y2VlZGVkX2Vycm9yLnByb3RvGjNnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZXJyb3JzL3NldHRpbmdfZXJyb3IucHJvdG8aPGdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvc2hhcmVkX2NyaXRlcmlvbl9lcnJv", - "ci5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy9zaGFy", - "ZWRfc2V0X2Vycm9yLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzL3NpemVfbGltaXRfZXJyb3IucHJvdG8aOmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lcnJvcnMvc21hcnRfY2FtcGFpZ25fZXJyb3IucHJvdG8a", - "OWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMvc3RyaW5nX2Zvcm1h", - "dF9lcnJvci5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9y", - "cy9zdHJpbmdfbGVuZ3RoX2Vycm9yLnByb3RvGkpnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZXJyb3JzL3RoaXJkX3BhcnR5X2FwcF9hbmFseXRpY3NfbGlu", - "a19lcnJvci5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9y", - "cy90aW1lX3pvbmVfZXJyb3IucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lcnJvcnMvdXJsX2ZpZWxkX2Vycm9yLnByb3RvGjVnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZXJyb3JzL3VzZXJfZGF0YV9lcnJvci5wcm90bxo1", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycy91c2VyX2xpc3RfZXJy", - "b3IucHJvdG8aRmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnMveW91", - "dHViZV92aWRlb19yZWdpc3RyYXRpb25fZXJyb3IucHJvdG8aHmdvb2dsZS9w", - "cm90b2J1Zi9kdXJhdGlvbi5wcm90byJnChBHb29nbGVBZHNGYWlsdXJlEj8K", - "BmVycm9ycxgBIAMoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuR29vZ2xlQWRzRXJyb3ISEgoKcmVxdWVzdF9pZBgCIAEoCSKcAgoOR29v", - "Z2xlQWRzRXJyb3ISPgoKZXJyb3JfY29kZRgBIAEoCzIqLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lcnJvcnMuRXJyb3JDb2RlEg8KB21lc3NhZ2UYAiAB", - "KAkSNwoHdHJpZ2dlchgDIAEoCzImLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uVmFsdWUSQAoIbG9jYXRpb24YBCABKAsyLi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzLkVycm9yTG9jYXRpb24SPgoHZGV0YWls", - "cxgFIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuRXJy", - "b3JEZXRhaWxzIv53CglFcnJvckNvZGUSVwoNcmVxdWVzdF9lcnJvchgBIAEo", - "DjI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuUmVxdWVzdEVy", - "cm9yRW51bS5SZXF1ZXN0RXJyb3JIABJwChZiaWRkaW5nX3N0cmF0ZWd5X2Vy", - "cm9yGAIgASgOMk4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5C", - "aWRkaW5nU3RyYXRlZ3lFcnJvckVudW0uQmlkZGluZ1N0cmF0ZWd5RXJyb3JI", - "ABJbCg91cmxfZmllbGRfZXJyb3IYAyABKA4yQC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzLlVybEZpZWxkRXJyb3JFbnVtLlVybEZpZWxkRXJy", - "b3JIABJqChRsaXN0X29wZXJhdGlvbl9lcnJvchgEIAEoDjJKLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuTGlzdE9wZXJhdGlvbkVycm9yRW51", - "bS5MaXN0T3BlcmF0aW9uRXJyb3JIABJRCgtxdWVyeV9lcnJvchgFIAEoDjI6", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuUXVlcnlFcnJvckVu", - "dW0uUXVlcnlFcnJvckgAElQKDG11dGF0ZV9lcnJvchgHIAEoDjI8Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuTXV0YXRlRXJyb3JFbnVtLk11", - "dGF0ZUVycm9ySAASXgoQZmllbGRfbWFza19lcnJvchgIIAEoDjJCLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuRmllbGRNYXNrRXJyb3JFbnVt", - "LkZpZWxkTWFza0Vycm9ySAASaQoTYXV0aG9yaXphdGlvbl9lcnJvchgJIAEo", - "DjJKLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQXV0aG9yaXph", - "dGlvbkVycm9yRW51bS5BdXRob3JpemF0aW9uRXJyb3JIABJaCg5pbnRlcm5h", - "bF9lcnJvchgKIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuSW50ZXJuYWxFcnJvckVudW0uSW50ZXJuYWxFcnJvckgAElEKC3F1b3Rh", - "X2Vycm9yGAsgASgOMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cy5RdW90YUVycm9yRW51bS5RdW90YUVycm9ySAASSAoIYWRfZXJyb3IYDCAB", - "KA4yNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkFkRXJyb3JF", - "bnVtLkFkRXJyb3JIABJYCg5hZF9ncm91cF9lcnJvchgNIAEoDjI+Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQWRHcm91cEVycm9yRW51bS5B", - "ZEdyb3VwRXJyb3JIABJtChVjYW1wYWlnbl9idWRnZXRfZXJyb3IYDiABKA4y", - "TC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkNhbXBhaWduQnVk", - "Z2V0RXJyb3JFbnVtLkNhbXBhaWduQnVkZ2V0RXJyb3JIABJaCg5jYW1wYWln", - "bl9lcnJvchgPIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuQ2FtcGFpZ25FcnJvckVudW0uQ2FtcGFpZ25FcnJvckgAEmwKFGF1dGhl", - "bnRpY2F0aW9uX2Vycm9yGBEgASgOMkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycy5BdXRoZW50aWNhdGlvbkVycm9yRW51bS5BdXRoZW50aWNh", - "dGlvbkVycm9ySAASlAEKI2FkX2dyb3VwX2NyaXRlcmlvbl9jdXN0b21pemVy", - "X2Vycm9yGKEBIAEoDjJkLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuQWRHcm91cENyaXRlcmlvbkN1c3RvbWl6ZXJFcnJvckVudW0uQWRHcm91", - "cENyaXRlcmlvbkN1c3RvbWl6ZXJFcnJvckgAEnQKGGFkX2dyb3VwX2NyaXRl", - "cmlvbl9lcnJvchgSIAEoDjJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMuQWRHcm91cENyaXRlcmlvbkVycm9yRW51bS5BZEdyb3VwQ3JpdGVy", - "aW9uRXJyb3JIABJ4ChlhZF9ncm91cF9jdXN0b21pemVyX2Vycm9yGJ8BIAEo", - "DjJSLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQWRHcm91cEN1", - "c3RvbWl6ZXJFcnJvckVudW0uQWRHcm91cEN1c3RvbWl6ZXJFcnJvckgAEmcK", - "E2FkX2N1c3RvbWl6ZXJfZXJyb3IYEyABKA4ySC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzLkFkQ3VzdG9taXplckVycm9yRW51bS5BZEN1c3Rv", - "bWl6ZXJFcnJvckgAEl8KEWFkX2dyb3VwX2FkX2Vycm9yGBUgASgOMkIuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5BZEdyb3VwQWRFcnJvckVu", - "dW0uQWRHcm91cEFkRXJyb3JIABJeChBhZF9zaGFyaW5nX2Vycm9yGBggASgO", - "MkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5BZFNoYXJpbmdF", - "cnJvckVudW0uQWRTaGFyaW5nRXJyb3JIABJLCglhZHhfZXJyb3IYGSABKA4y", - "Ni5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkFkeEVycm9yRW51", - "bS5BZHhFcnJvckgAElEKC2Fzc2V0X2Vycm9yGGsgASgOMjouZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVycm9ycy5Bc3NldEVycm9yRW51bS5Bc3NldEVy", - "cm9ySAAScgoXYXNzZXRfZ3JvdXBfYXNzZXRfZXJyb3IYlQEgASgOMk4uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5Bc3NldEdyb3VwQXNzZXRF", - "cnJvckVudW0uQXNzZXRHcm91cEFzc2V0RXJyb3JIABKbAQomYXNzZXRfZ3Jv", - "dXBfbGlzdGluZ19ncm91cF9maWx0ZXJfZXJyb3IYmwEgASgOMmguZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5Bc3NldEdyb3VwTGlzdGluZ0dy", - "b3VwRmlsdGVyRXJyb3JFbnVtLkFzc2V0R3JvdXBMaXN0aW5nR3JvdXBGaWx0", - "ZXJFcnJvckgAEmIKEWFzc2V0X2dyb3VwX2Vycm9yGJQBIAEoDjJELmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQXNzZXRHcm91cEVycm9yRW51", - "bS5Bc3NldEdyb3VwRXJyb3JIABJsChVhc3NldF9zZXRfYXNzZXRfZXJyb3IY", - "mQEgASgOMkouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5Bc3Nl", - "dFNldEFzc2V0RXJyb3JFbnVtLkFzc2V0U2V0QXNzZXRFcnJvckgAEmkKFGFz", - "c2V0X3NldF9saW5rX2Vycm9yGJoBIAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnMuQXNzZXRTZXRMaW5rRXJyb3JFbnVtLkFzc2V0U2V0", - "TGlua0Vycm9ySAASXAoPYXNzZXRfc2V0X2Vycm9yGJgBIAEoDjJALmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQXNzZXRTZXRFcnJvckVudW0u", - "QXNzZXRTZXRFcnJvckgAElcKDWJpZGRpbmdfZXJyb3IYGiABKA4yPi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkJpZGRpbmdFcnJvckVudW0u", - "QmlkZGluZ0Vycm9ySAASdgoYY2FtcGFpZ25fY3JpdGVyaW9uX2Vycm9yGB0g", - "ASgOMlIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5DYW1wYWln", - "bkNyaXRlcmlvbkVycm9yRW51bS5DYW1wYWlnbkNyaXRlcmlvbkVycm9ySAAS", - "hwEKHmNhbXBhaWduX2NvbnZlcnNpb25fZ29hbF9lcnJvchimASABKA4yXC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkNhbXBhaWduQ29udmVy", - "c2lvbkdvYWxFcnJvckVudW0uQ2FtcGFpZ25Db252ZXJzaW9uR29hbEVycm9y", - "SAASegoZY2FtcGFpZ25fY3VzdG9taXplcl9lcnJvchigASABKA4yVC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkNhbXBhaWduQ3VzdG9taXpl", - "ckVycm9yRW51bS5DYW1wYWlnbkN1c3RvbWl6ZXJFcnJvckgAEm0KFWNvbGxl", - "Y3Rpb25fc2l6ZV9lcnJvchgfIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnMuQ29sbGVjdGlvblNpemVFcnJvckVudW0uQ29sbGVjdGlv", - "blNpemVFcnJvckgAEpoBCiVjb252ZXJzaW9uX2dvYWxfY2FtcGFpZ25fY29u", - "ZmlnX2Vycm9yGKUBIAEoDjJoLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMuQ29udmVyc2lvbkdvYWxDYW1wYWlnbkNvbmZpZ0Vycm9yRW51bS5D", - "b252ZXJzaW9uR29hbENhbXBhaWduQ29uZmlnRXJyb3JIABJkChJjb3VudHJ5", - "X2NvZGVfZXJyb3IYbSABKA4yRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzLkNvdW50cnlDb2RlRXJyb3JFbnVtLkNvdW50cnlDb2RlRXJyb3JI", - "ABJdCg9jcml0ZXJpb25fZXJyb3IYICABKA4yQi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzLkNyaXRlcmlvbkVycm9yRW51bS5Dcml0ZXJpb25F", - "cnJvckgAEoEBChxjdXN0b21fY29udmVyc2lvbl9nb2FsX2Vycm9yGJYBIAEo", - "DjJYLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQ3VzdG9tQ29u", - "dmVyc2lvbkdvYWxFcnJvckVudW0uQ3VzdG9tQ29udmVyc2lvbkdvYWxFcnJv", - "ckgAEnoKGWN1c3RvbWVyX2N1c3RvbWl6ZXJfZXJyb3IYngEgASgOMlQuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5DdXN0b21lckN1c3RvbWl6", - "ZXJFcnJvckVudW0uQ3VzdG9tZXJDdXN0b21pemVyRXJyb3JIABJaCg5jdXN0", - "b21lcl9lcnJvchhaIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMuQ3VzdG9tZXJFcnJvckVudW0uQ3VzdG9tZXJFcnJvckgAEn0KGmN1", - "c3RvbWl6ZXJfYXR0cmlidXRlX2Vycm9yGJcBIAEoDjJWLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lcnJvcnMuQ3VzdG9taXplckF0dHJpYnV0ZUVycm9y", - "RW51bS5DdXN0b21pemVyQXR0cmlidXRlRXJyb3JIABJOCgpkYXRlX2Vycm9y", - "GCEgASgOMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5EYXRl", - "RXJyb3JFbnVtLkRhdGVFcnJvckgAEl4KEGRhdGVfcmFuZ2VfZXJyb3IYIiAB", - "KA4yQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkRhdGVSYW5n", - "ZUVycm9yRW51bS5EYXRlUmFuZ2VFcnJvckgAEloKDmRpc3RpbmN0X2Vycm9y", - "GCMgASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5EaXN0", - "aW5jdEVycm9yRW51bS5EaXN0aW5jdEVycm9ySAAShgEKHmZlZWRfYXR0cmli", - "dXRlX3JlZmVyZW5jZV9lcnJvchgkIAEoDjJcLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnMuRmVlZEF0dHJpYnV0ZVJlZmVyZW5jZUVycm9yRW51", - "bS5GZWVkQXR0cmlidXRlUmVmZXJlbmNlRXJyb3JIABJaCg5mdW5jdGlvbl9l", - "cnJvchglIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMu", - "RnVuY3Rpb25FcnJvckVudW0uRnVuY3Rpb25FcnJvckgAEnAKFmZ1bmN0aW9u", - "X3BhcnNpbmdfZXJyb3IYJiABKA4yTi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZXJyb3JzLkZ1bmN0aW9uUGFyc2luZ0Vycm9yRW51bS5GdW5jdGlvblBh", - "cnNpbmdFcnJvckgAEkgKCGlkX2Vycm9yGCcgASgOMjQuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVycm9ycy5JZEVycm9yRW51bS5JZEVycm9ySAASUQoL", - "aW1hZ2VfZXJyb3IYKCABKA4yOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzLkltYWdlRXJyb3JFbnVtLkltYWdlRXJyb3JIABJnChNsYW5ndWFn", - "ZV9jb2RlX2Vycm9yGG4gASgOMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9ycy5MYW5ndWFnZUNvZGVFcnJvckVudW0uTGFuZ3VhZ2VDb2RlRXJy", - "b3JIABJkChJtZWRpYV9idW5kbGVfZXJyb3IYKiABKA4yRi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzLk1lZGlhQnVuZGxlRXJyb3JFbnVtLk1l", - "ZGlhQnVuZGxlRXJyb3JIABJkChJtZWRpYV91cGxvYWRfZXJyb3IYdCABKA4y", - "Ri5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLk1lZGlhVXBsb2Fk", - "RXJyb3JFbnVtLk1lZGlhVXBsb2FkRXJyb3JIABJeChBtZWRpYV9maWxlX2Vy", - "cm9yGFYgASgOMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5N", - "ZWRpYUZpbGVFcnJvckVudW0uTWVkaWFGaWxlRXJyb3JIABJuChVtZXJjaGFu", - "dF9jZW50ZXJfZXJyb3IYogEgASgOMkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycy5NZXJjaGFudENlbnRlckVycm9yRW51bS5NZXJjaGFudENl", - "bnRlckVycm9ySAASYAoQbXVsdGlwbGllcl9lcnJvchgsIAEoDjJELmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuTXVsdGlwbGllckVycm9yRW51", - "bS5NdWx0aXBsaWVyRXJyb3JIABJ9ChtuZXdfcmVzb3VyY2VfY3JlYXRpb25f", - "ZXJyb3IYLSABKA4yVi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3Jz", - "Lk5ld1Jlc291cmNlQ3JlYXRpb25FcnJvckVudW0uTmV3UmVzb3VyY2VDcmVh", - "dGlvbkVycm9ySAASWwoPbm90X2VtcHR5X2Vycm9yGC4gASgOMkAuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5Ob3RFbXB0eUVycm9yRW51bS5O", - "b3RFbXB0eUVycm9ySAASTgoKbnVsbF9lcnJvchgvIAEoDjI4Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuTnVsbEVycm9yRW51bS5OdWxsRXJy", - "b3JIABJaCg5vcGVyYXRvcl9lcnJvchgwIAEoDjJALmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lcnJvcnMuT3BlcmF0b3JFcnJvckVudW0uT3BlcmF0b3JF", - "cnJvckgAElEKC3JhbmdlX2Vycm9yGDEgASgOMjouZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVycm9ycy5SYW5nZUVycm9yRW51bS5SYW5nZUVycm9ySAAS", - "bAoUcmVjb21tZW5kYXRpb25fZXJyb3IYOiABKA4yTC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZXJyb3JzLlJlY29tbWVuZGF0aW9uRXJyb3JFbnVtLlJl", - "Y29tbWVuZGF0aW9uRXJyb3JIABJhChFyZWdpb25fY29kZV9lcnJvchgzIAEo", - "DjJELmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuUmVnaW9uQ29k", - "ZUVycm9yRW51bS5SZWdpb25Db2RlRXJyb3JIABJXCg1zZXR0aW5nX2Vycm9y", - "GDQgASgOMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5TZXR0", - "aW5nRXJyb3JFbnVtLlNldHRpbmdFcnJvckgAEmcKE3N0cmluZ19mb3JtYXRf", - "ZXJyb3IYNSABKA4ySC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3Jz", - "LlN0cmluZ0Zvcm1hdEVycm9yRW51bS5TdHJpbmdGb3JtYXRFcnJvckgAEmcK", - "E3N0cmluZ19sZW5ndGhfZXJyb3IYNiABKA4ySC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzLlN0cmluZ0xlbmd0aEVycm9yRW51bS5TdHJpbmdM", - "ZW5ndGhFcnJvckgAEoMBCh1vcGVyYXRpb25fYWNjZXNzX2RlbmllZF9lcnJv", - "chg3IAEoDjJaLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuT3Bl", - "cmF0aW9uQWNjZXNzRGVuaWVkRXJyb3JFbnVtLk9wZXJhdGlvbkFjY2Vzc0Rl", - "bmllZEVycm9ySAASgAEKHHJlc291cmNlX2FjY2Vzc19kZW5pZWRfZXJyb3IY", - "OCABKA4yWC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLlJlc291", - "cmNlQWNjZXNzRGVuaWVkRXJyb3JFbnVtLlJlc291cmNlQWNjZXNzRGVuaWVk", - "RXJyb3JIABKTAQojcmVzb3VyY2VfY291bnRfbGltaXRfZXhjZWVkZWRfZXJy", - "b3IYOSABKA4yZC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLlJl", - "c291cmNlQ291bnRMaW1pdEV4Y2VlZGVkRXJyb3JFbnVtLlJlc291cmNlQ291", - "bnRMaW1pdEV4Y2VlZGVkRXJyb3JIABKMAQogeW91dHViZV92aWRlb19yZWdp", - "c3RyYXRpb25fZXJyb3IYdSABKA4yYC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZXJyb3JzLllvdXR1YmVWaWRlb1JlZ2lzdHJhdGlvbkVycm9yRW51bS5Z", - "b3V0dWJlVmlkZW9SZWdpc3RyYXRpb25FcnJvckgAEnsKG2FkX2dyb3VwX2Jp", - "ZF9tb2RpZmllcl9lcnJvchg7IAEoDjJULmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnMuQWRHcm91cEJpZE1vZGlmaWVyRXJyb3JFbnVtLkFkR3Jv", - "dXBCaWRNb2RpZmllckVycm9ySAASVwoNY29udGV4dF9lcnJvchg8IAEoDjI+", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQ29udGV4dEVycm9y", - "RW51bS5Db250ZXh0RXJyb3JIABJRCgtmaWVsZF9lcnJvchg9IAEoDjI6Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuRmllbGRFcnJvckVudW0u", - "RmllbGRFcnJvckgAEl4KEHNoYXJlZF9zZXRfZXJyb3IYPiABKA4yQi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLlNoYXJlZFNldEVycm9yRW51", - "bS5TaGFyZWRTZXRFcnJvckgAEnAKFnNoYXJlZF9jcml0ZXJpb25fZXJyb3IY", - "PyABKA4yTi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLlNoYXJl", - "ZENyaXRlcmlvbkVycm9yRW51bS5TaGFyZWRDcml0ZXJpb25FcnJvckgAEncK", - "GWNhbXBhaWduX3NoYXJlZF9zZXRfZXJyb3IYQCABKA4yUi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzLkNhbXBhaWduU2hhcmVkU2V0RXJyb3JF", - "bnVtLkNhbXBhaWduU2hhcmVkU2V0RXJyb3JIABJzChdjb252ZXJzaW9uX2Fj", - "dGlvbl9lcnJvchhBIAEoDjJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMuQ29udmVyc2lvbkFjdGlvbkVycm9yRW51bS5Db252ZXJzaW9uQWN0", - "aW9uRXJyb3JIABKSAQoiY29udmVyc2lvbl9hZGp1c3RtZW50X3VwbG9hZF9l", - "cnJvchhzIAEoDjJkLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMu", - "Q29udmVyc2lvbkFkanVzdG1lbnRVcGxvYWRFcnJvckVudW0uQ29udmVyc2lv", - "bkFkanVzdG1lbnRVcGxvYWRFcnJvckgAEo0BCiBjb252ZXJzaW9uX2N1c3Rv", - "bV92YXJpYWJsZV9lcnJvchiPASABKA4yYC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzLkNvbnZlcnNpb25DdXN0b21WYXJpYWJsZUVycm9yRW51", - "bS5Db252ZXJzaW9uQ3VzdG9tVmFyaWFibGVFcnJvckgAEnMKF2NvbnZlcnNp", - "b25fdXBsb2FkX2Vycm9yGG8gASgOMlAuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycy5Db252ZXJzaW9uVXBsb2FkRXJyb3JFbnVtLkNvbnZlcnNp", - "b25VcGxvYWRFcnJvckgAEn4KG2NvbnZlcnNpb25fdmFsdWVfcnVsZV9lcnJv", - "chiRASABKA4yVi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkNv", - "bnZlcnNpb25WYWx1ZVJ1bGVFcnJvckVudW0uQ29udmVyc2lvblZhbHVlUnVs", - "ZUVycm9ySAASiAEKH2NvbnZlcnNpb25fdmFsdWVfcnVsZV9zZXRfZXJyb3IY", - "kgEgASgOMlwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5Db252", - "ZXJzaW9uVmFsdWVSdWxlU2V0RXJyb3JFbnVtLkNvbnZlcnNpb25WYWx1ZVJ1", - "bGVTZXRFcnJvckgAElQKDGhlYWRlcl9lcnJvchhCIAEoDjI8Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuSGVhZGVyRXJyb3JFbnVtLkhlYWRl", - "ckVycm9ySAASWgoOZGF0YWJhc2VfZXJyb3IYQyABKA4yQC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzLkRhdGFiYXNlRXJyb3JFbnVtLkRhdGFi", - "YXNlRXJyb3JIABJqChRwb2xpY3lfZmluZGluZ19lcnJvchhEIAEoDjJKLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuUG9saWN5RmluZGluZ0Vy", - "cm9yRW51bS5Qb2xpY3lGaW5kaW5nRXJyb3JIABJOCgplbnVtX2Vycm9yGEYg", - "ASgOMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5FbnVtRXJy", - "b3JFbnVtLkVudW1FcnJvckgAEmQKEmtleXdvcmRfcGxhbl9lcnJvchhHIAEo", - "DjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuS2V5d29yZFBs", - "YW5FcnJvckVudW0uS2V5d29yZFBsYW5FcnJvckgAEn0KG2tleXdvcmRfcGxh", - "bl9jYW1wYWlnbl9lcnJvchhIIAEoDjJWLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnMuS2V5d29yZFBsYW5DYW1wYWlnbkVycm9yRW51bS5LZXl3", - "b3JkUGxhbkNhbXBhaWduRXJyb3JIABKUAQoja2V5d29yZF9wbGFuX2NhbXBh", - "aWduX2tleXdvcmRfZXJyb3IYhAEgASgOMmQuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVycm9ycy5LZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZEVycm9y", - "RW51bS5LZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZEVycm9ySAASewoba2V5", - "d29yZF9wbGFuX2FkX2dyb3VwX2Vycm9yGEogASgOMlQuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVycm9ycy5LZXl3b3JkUGxhbkFkR3JvdXBFcnJvckVu", - "dW0uS2V5d29yZFBsYW5BZEdyb3VwRXJyb3JIABKSAQoja2V5d29yZF9wbGFu", - "X2FkX2dyb3VwX2tleXdvcmRfZXJyb3IYhQEgASgOMmIuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVycm9ycy5LZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3Jk", - "RXJyb3JFbnVtLktleXdvcmRQbGFuQWRHcm91cEtleXdvcmRFcnJvckgAEnEK", - "F2tleXdvcmRfcGxhbl9pZGVhX2Vycm9yGEwgASgOMk4uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVycm9ycy5LZXl3b3JkUGxhbklkZWFFcnJvckVudW0u", - "S2V5d29yZFBsYW5JZGVhRXJyb3JIABKDAQodYWNjb3VudF9idWRnZXRfcHJv", - "cG9zYWxfZXJyb3IYTSABKA4yWi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzLkFjY291bnRCdWRnZXRQcm9wb3NhbEVycm9yRW51bS5BY2NvdW50", - "QnVkZ2V0UHJvcG9zYWxFcnJvckgAElsKD3VzZXJfbGlzdF9lcnJvchhOIAEo", - "DjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuVXNlckxpc3RF", - "cnJvckVudW0uVXNlckxpc3RFcnJvckgAEmUKEmNoYW5nZV9ldmVudF9lcnJv", - "chiIASABKA4yRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkNo", - "YW5nZUV2ZW50RXJyb3JFbnVtLkNoYW5nZUV2ZW50RXJyb3JIABJnChNjaGFu", - "Z2Vfc3RhdHVzX2Vycm9yGE8gASgOMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycy5DaGFuZ2VTdGF0dXNFcnJvckVudW0uQ2hhbmdlU3RhdHVz", - "RXJyb3JIABJOCgpmZWVkX2Vycm9yGFAgASgOMjguZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVycm9ycy5GZWVkRXJyb3JFbnVtLkZlZWRFcnJvckgAEpYB", - "CiRnZW9fdGFyZ2V0X2NvbnN0YW50X3N1Z2dlc3Rpb25fZXJyb3IYUSABKA4y", - "Zi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkdlb1RhcmdldENv", - "bnN0YW50U3VnZ2VzdGlvbkVycm9yRW51bS5HZW9UYXJnZXRDb25zdGFudFN1", - "Z2dlc3Rpb25FcnJvckgAEmoKFGNhbXBhaWduX2RyYWZ0X2Vycm9yGFIgASgO", - "MkouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5DYW1wYWlnbkRy", - "YWZ0RXJyb3JFbnVtLkNhbXBhaWduRHJhZnRFcnJvckgAElsKD2ZlZWRfaXRl", - "bV9lcnJvchhTIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuRmVlZEl0ZW1FcnJvckVudW0uRmVlZEl0ZW1FcnJvckgAElEKC2xhYmVs", - "X2Vycm9yGFQgASgOMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cy5MYWJlbEVycm9yRW51bS5MYWJlbEVycm9ySAASZwoTYmlsbGluZ19zZXR1", - "cF9lcnJvchhXIAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuQmlsbGluZ1NldHVwRXJyb3JFbnVtLkJpbGxpbmdTZXR1cEVycm9ySAAS", - "egoaY3VzdG9tZXJfY2xpZW50X2xpbmtfZXJyb3IYWCABKA4yVC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkN1c3RvbWVyQ2xpZW50TGlua0Vy", - "cm9yRW51bS5DdXN0b21lckNsaWVudExpbmtFcnJvckgAEn0KG2N1c3RvbWVy", - "X21hbmFnZXJfbGlua19lcnJvchhbIAEoDjJWLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnMuQ3VzdG9tZXJNYW5hZ2VyTGlua0Vycm9yRW51bS5D", - "dXN0b21lck1hbmFnZXJMaW5rRXJyb3JIABJkChJmZWVkX21hcHBpbmdfZXJy", - "b3IYXCABKA4yRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkZl", - "ZWRNYXBwaW5nRXJyb3JFbnVtLkZlZWRNYXBwaW5nRXJyb3JIABJnChNjdXN0", - "b21lcl9mZWVkX2Vycm9yGF0gASgOMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycy5DdXN0b21lckZlZWRFcnJvckVudW0uQ3VzdG9tZXJGZWVk", - "RXJyb3JIABJlChNhZF9ncm91cF9mZWVkX2Vycm9yGF4gASgOMkYuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5BZEdyb3VwRmVlZEVycm9yRW51", - "bS5BZEdyb3VwRmVlZEVycm9ySAASZwoTY2FtcGFpZ25fZmVlZF9lcnJvchhg", - "IAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQ2FtcGFp", - "Z25GZWVkRXJyb3JFbnVtLkNhbXBhaWduRmVlZEVycm9ySAASbQoVY3VzdG9t", - "X2ludGVyZXN0X2Vycm9yGGEgASgOMkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycy5DdXN0b21JbnRlcmVzdEVycm9yRW51bS5DdXN0b21JbnRl", - "cmVzdEVycm9ySAASeQoZY2FtcGFpZ25fZXhwZXJpbWVudF9lcnJvchhiIAEo", - "DjJULmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuQ2FtcGFpZ25F", - "eHBlcmltZW50RXJyb3JFbnVtLkNhbXBhaWduRXhwZXJpbWVudEVycm9ySAAS", - "dwoZZXh0ZW5zaW9uX2ZlZWRfaXRlbV9lcnJvchhkIAEoDjJSLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuRXh0ZW5zaW9uRmVlZEl0ZW1FcnJv", - "ckVudW0uRXh0ZW5zaW9uRmVlZEl0ZW1FcnJvckgAEmQKEmFkX3BhcmFtZXRl", - "cl9lcnJvchhlIAEoDjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuQWRQYXJhbWV0ZXJFcnJvckVudW0uQWRQYXJhbWV0ZXJFcnJvckgAEnoK", - "GmZlZWRfaXRlbV92YWxpZGF0aW9uX2Vycm9yGGYgASgOMlQuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVycm9ycy5GZWVkSXRlbVZhbGlkYXRpb25FcnJv", - "ckVudW0uRmVlZEl0ZW1WYWxpZGF0aW9uRXJyb3JIABJzChdleHRlbnNpb25f", - "c2V0dGluZ19lcnJvchhnIAEoDjJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMuRXh0ZW5zaW9uU2V0dGluZ0Vycm9yRW51bS5FeHRlbnNpb25T", - "ZXR0aW5nRXJyb3JIABJmChNmZWVkX2l0ZW1fc2V0X2Vycm9yGIwBIAEoDjJG", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuRmVlZEl0ZW1TZXRF", - "cnJvckVudW0uRmVlZEl0ZW1TZXRFcnJvckgAEnMKGGZlZWRfaXRlbV9zZXRf", - "bGlua19lcnJvchiNASABKA4yTi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzLkZlZWRJdGVtU2V0TGlua0Vycm9yRW51bS5GZWVkSXRlbVNldExp", - "bmtFcnJvckgAEm4KFmZlZWRfaXRlbV90YXJnZXRfZXJyb3IYaCABKA4yTC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkZlZWRJdGVtVGFyZ2V0", - "RXJyb3JFbnVtLkZlZWRJdGVtVGFyZ2V0RXJyb3JIABJwChZwb2xpY3lfdmlv", - "bGF0aW9uX2Vycm9yGGkgASgOMk4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9ycy5Qb2xpY3lWaW9sYXRpb25FcnJvckVudW0uUG9saWN5VmlvbGF0", - "aW9uRXJyb3JIABJtChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYcCABKA4yTC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLlBhcnRpYWxGYWlsdXJl", - "RXJyb3JFbnVtLlBhcnRpYWxGYWlsdXJlRXJyb3JIABKPAQohcG9saWN5X3Zh", - "bGlkYXRpb25fcGFyYW1ldGVyX2Vycm9yGHIgASgOMmIuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVycm9ycy5Qb2xpY3lWYWxpZGF0aW9uUGFyYW1ldGVy", - "RXJyb3JFbnVtLlBvbGljeVZhbGlkYXRpb25QYXJhbWV0ZXJFcnJvckgAEl4K", - "EHNpemVfbGltaXRfZXJyb3IYdiABKA4yQi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzLlNpemVMaW1pdEVycm9yRW51bS5TaXplTGltaXRFcnJv", - "ckgAEnsKG29mZmxpbmVfdXNlcl9kYXRhX2pvYl9lcnJvchh3IAEoDjJULmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuT2ZmbGluZVVzZXJEYXRh", - "Sm9iRXJyb3JFbnVtLk9mZmxpbmVVc2VyRGF0YUpvYkVycm9ySAASbgoVbm90", - "X2FsbG93bGlzdGVkX2Vycm9yGIkBIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnMuTm90QWxsb3dsaXN0ZWRFcnJvckVudW0uTm90QWxs", - "b3dsaXN0ZWRFcnJvckgAEmQKEm1hbmFnZXJfbGlua19lcnJvchh5IAEoDjJG", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuTWFuYWdlckxpbmtF", - "cnJvckVudW0uTWFuYWdlckxpbmtFcnJvckgAEmcKE2N1cnJlbmN5X2NvZGVf", - "ZXJyb3IYeiABKA4ySC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3Jz", - "LkN1cnJlbmN5Q29kZUVycm9yRW51bS5DdXJyZW5jeUNvZGVFcnJvckgAEmAK", - "EGV4cGVyaW1lbnRfZXJyb3IYeyABKA4yRC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzLkV4cGVyaW1lbnRFcnJvckVudW0uRXhwZXJpbWVudEVy", - "cm9ySAAScwoXYWNjZXNzX2ludml0YXRpb25fZXJyb3IYfCABKA4yUC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkFjY2Vzc0ludml0YXRpb25F", - "cnJvckVudW0uQWNjZXNzSW52aXRhdGlvbkVycm9ySAASXgoQcmVhY2hfcGxh", - "bl9lcnJvchh9IAEoDjJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuUmVhY2hQbGFuRXJyb3JFbnVtLlJlYWNoUGxhbkVycm9ySAASVwoNaW52", - "b2ljZV9lcnJvchh+IAEoDjI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMuSW52b2ljZUVycm9yRW51bS5JbnZvaWNlRXJyb3JIABJwChZwYXlt", - "ZW50c19hY2NvdW50X2Vycm9yGH8gASgOMk4uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVycm9ycy5QYXltZW50c0FjY291bnRFcnJvckVudW0uUGF5bWVu", - "dHNBY2NvdW50RXJyb3JIABJcCg90aW1lX3pvbmVfZXJyb3IYgAEgASgOMkAu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5UaW1lWm9uZUVycm9y", - "RW51bS5UaW1lWm9uZUVycm9ySAASXwoQYXNzZXRfbGlua19lcnJvchiBASAB", - "KA4yQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLkFzc2V0TGlu", - "a0Vycm9yRW51bS5Bc3NldExpbmtFcnJvckgAElwKD3VzZXJfZGF0YV9lcnJv", - "chiCASABKA4yQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzLlVz", - "ZXJEYXRhRXJyb3JFbnVtLlVzZXJEYXRhRXJyb3JIABJcCg9iYXRjaF9qb2Jf", - "ZXJyb3IYgwEgASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cy5CYXRjaEpvYkVycm9yRW51bS5CYXRjaEpvYkVycm9ySAASZQoSYWNjb3Vu", - "dF9saW5rX2Vycm9yGIYBIAEoDjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMuQWNjb3VudExpbmtFcnJvckVudW0uQWNjb3VudExpbmtFcnJv", - "ckgAEpUBCiR0aGlyZF9wYXJ0eV9hcHBfYW5hbHl0aWNzX2xpbmtfZXJyb3IY", - "hwEgASgOMmQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5UaGly", - "ZFBhcnR5QXBwQW5hbHl0aWNzTGlua0Vycm9yRW51bS5UaGlyZFBhcnR5QXBw", - "QW5hbHl0aWNzTGlua0Vycm9ySAASewoaY3VzdG9tZXJfdXNlcl9hY2Nlc3Nf", - "ZXJyb3IYigEgASgOMlQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cy5DdXN0b21lclVzZXJBY2Nlc3NFcnJvckVudW0uQ3VzdG9tZXJVc2VyQWNj", - "ZXNzRXJyb3JIABJuChVjdXN0b21fYXVkaWVuY2VfZXJyb3IYiwEgASgOMkwu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5DdXN0b21BdWRpZW5j", - "ZUVycm9yRW51bS5DdXN0b21BdWRpZW5jZUVycm9ySAASWwoOYXVkaWVuY2Vf", - "ZXJyb3IYpAEgASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cy5BdWRpZW5jZUVycm9yRW51bS5BdWRpZW5jZUVycm9ySAASawoUc21hcnRf", - "Y2FtcGFpZ25fZXJyb3IYkwEgASgOMkouZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycy5TbWFydENhbXBhaWduRXJyb3JFbnVtLlNtYXJ0Q2FtcGFp", - "Z25FcnJvckgAEmsKFGV4cGVyaW1lbnRfYXJtX2Vycm9yGJwBIAEoDjJKLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuRXhwZXJpbWVudEFybUVy", - "cm9yRW51bS5FeHBlcmltZW50QXJtRXJyb3JIABJ0ChdhdWRpZW5jZV9pbnNp", - "Z2h0c19lcnJvchinASABKA4yUC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzLkF1ZGllbmNlSW5zaWdodHNFcnJvckVudW0uQXVkaWVuY2VJbnNp", - "Z2h0c0Vycm9ySABCDAoKZXJyb3JfY29kZSKzAQoNRXJyb3JMb2NhdGlvbhJc", - "ChNmaWVsZF9wYXRoX2VsZW1lbnRzGAIgAygLMj8uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVycm9ycy5FcnJvckxvY2F0aW9uLkZpZWxkUGF0aEVsZW1l", - "bnQaRAoQRmllbGRQYXRoRWxlbWVudBISCgpmaWVsZF9uYW1lGAEgASgJEhIK", - "BWluZGV4GAMgASgFSACIAQFCCAoGX2luZGV4IogDCgxFcnJvckRldGFpbHMS", - "HgoWdW5wdWJsaXNoZWRfZXJyb3JfY29kZRgBIAEoCRJZChhwb2xpY3lfdmlv", - "bGF0aW9uX2RldGFpbHMYAiABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZXJyb3JzLlBvbGljeVZpb2xhdGlvbkRldGFpbHMSVQoWcG9saWN5X2Zp", - "bmRpbmdfZGV0YWlscxgDIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMuUG9saWN5RmluZGluZ0RldGFpbHMSTwoTcXVvdGFfZXJyb3Jf", - "ZGV0YWlscxgEIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMuUXVvdGFFcnJvckRldGFpbHMSVQoWcmVzb3VyY2VfY291bnRfZGV0YWls", - "cxgFIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMuUmVz", - "b3VyY2VDb3VudERldGFpbHMitAEKFlBvbGljeVZpb2xhdGlvbkRldGFpbHMS", - "IwobZXh0ZXJuYWxfcG9saWN5X2Rlc2NyaXB0aW9uGAIgASgJEkAKA2tleRgE", - "IAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUG9saWN5", - "VmlvbGF0aW9uS2V5EhwKFGV4dGVybmFsX3BvbGljeV9uYW1lGAUgASgJEhUK", - "DWlzX2V4ZW1wdGlibGUYBiABKAgiZwoUUG9saWN5RmluZGluZ0RldGFpbHMS", - "TwoUcG9saWN5X3RvcGljX2VudHJpZXMYASADKAsyMS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uLlBvbGljeVRvcGljRW50cnki+QEKEVF1b3Rh", - "RXJyb3JEZXRhaWxzElUKCnJhdGVfc2NvcGUYASABKA4yQS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzLlF1b3RhRXJyb3JEZXRhaWxzLlF1b3Rh", - "UmF0ZVNjb3BlEhEKCXJhdGVfbmFtZRgCIAEoCRIuCgtyZXRyeV9kZWxheRgD", - "IAEoCzIZLmdvb2dsZS5wcm90b2J1Zi5EdXJhdGlvbiJKCg5RdW90YVJhdGVT", - "Y29wZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdBQ0NPVU5U", - "EAISDQoJREVWRUxPUEVSEAMizAEKFFJlc291cmNlQ291bnREZXRhaWxzEhQK", - "DGVuY2xvc2luZ19pZBgBIAEoCRIaChJlbmNsb3NpbmdfcmVzb3VyY2UYBSAB", - "KAkSDQoFbGltaXQYAiABKAUSWwoKbGltaXRfdHlwZRgDIAEoDjJHLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5SZXNvdXJjZUxpbWl0VHlwZUVu", - "dW0uUmVzb3VyY2VMaW1pdFR5cGUSFgoOZXhpc3RpbmdfY291bnQYBCABKAVC", - "6wEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQgtFcnJv", - "cnNQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.ValueReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AdxErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ContextErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.DateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.EnumErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FieldErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.IdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ImageErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.InternalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.LabelErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.LanguageCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ListOperationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ManagerLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.MediaBundleErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.MediaFileErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.MediaUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.MerchantCenterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.MultiplierErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.MutateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.NewResourceCreationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.NotAllowlistedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.NotEmptyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.NullErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.OfflineUserDataJobErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.OperationAccessDeniedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.OperatorErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.PartialFailureErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.PaymentsAccountErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.PolicyValidationParameterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.QueryErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.RangeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ReachPlanErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.RecommendationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.RegionCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.RequestErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ResourceAccessDeniedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ResourceCountLimitExceededErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.SettingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.SharedCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.SharedSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.SizeLimitErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.SmartCampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.StringFormatErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.StringLengthErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.ThirdPartyAppAnalyticsLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.TimeZoneErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.UrlFieldErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.UserDataErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.UserListErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.YoutubeVideoRegistrationErrorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.GoogleAdsFailure), global::Google.Ads.GoogleAds.V12.Errors.GoogleAdsFailure.Parser, new[]{ "Errors", "RequestId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.GoogleAdsError), global::Google.Ads.GoogleAds.V12.Errors.GoogleAdsError.Parser, new[]{ "ErrorCode", "Message", "Trigger", "Location", "Details" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ErrorCode), global::Google.Ads.GoogleAds.V12.Errors.ErrorCode.Parser, new[]{ "RequestError", "BiddingStrategyError", "UrlFieldError", "ListOperationError", "QueryError", "MutateError", "FieldMaskError", "AuthorizationError", "InternalError", "QuotaError", "AdError", "AdGroupError", "CampaignBudgetError", "CampaignError", "AuthenticationError", "AdGroupCriterionCustomizerError", "AdGroupCriterionError", "AdGroupCustomizerError", "AdCustomizerError", "AdGroupAdError", "AdSharingError", "AdxError", "AssetError", "AssetGroupAssetError", "AssetGroupListingGroupFilterError", "AssetGroupError", "AssetSetAssetError", "AssetSetLinkError", "AssetSetError", "BiddingError", "CampaignCriterionError", "CampaignConversionGoalError", "CampaignCustomizerError", "CollectionSizeError", "ConversionGoalCampaignConfigError", "CountryCodeError", "CriterionError", "CustomConversionGoalError", "CustomerCustomizerError", "CustomerError", "CustomizerAttributeError", "DateError", "DateRangeError", "DistinctError", "FeedAttributeReferenceError", "FunctionError", "FunctionParsingError", "IdError", "ImageError", "LanguageCodeError", "MediaBundleError", "MediaUploadError", "MediaFileError", "MerchantCenterError", "MultiplierError", "NewResourceCreationError", "NotEmptyError", "NullError", "OperatorError", "RangeError", "RecommendationError", "RegionCodeError", "SettingError", "StringFormatError", "StringLengthError", "OperationAccessDeniedError", "ResourceAccessDeniedError", "ResourceCountLimitExceededError", "YoutubeVideoRegistrationError", "AdGroupBidModifierError", "ContextError", "FieldError", "SharedSetError", "SharedCriterionError", "CampaignSharedSetError", "ConversionActionError", "ConversionAdjustmentUploadError", "ConversionCustomVariableError", "ConversionUploadError", "ConversionValueRuleError", "ConversionValueRuleSetError", "HeaderError", "DatabaseError", "PolicyFindingError", "EnumError", "KeywordPlanError", "KeywordPlanCampaignError", "KeywordPlanCampaignKeywordError", "KeywordPlanAdGroupError", "KeywordPlanAdGroupKeywordError", "KeywordPlanIdeaError", "AccountBudgetProposalError", "UserListError", "ChangeEventError", "ChangeStatusError", "FeedError", "GeoTargetConstantSuggestionError", "CampaignDraftError", "FeedItemError", "LabelError", "BillingSetupError", "CustomerClientLinkError", "CustomerManagerLinkError", "FeedMappingError", "CustomerFeedError", "AdGroupFeedError", "CampaignFeedError", "CustomInterestError", "CampaignExperimentError", "ExtensionFeedItemError", "AdParameterError", "FeedItemValidationError", "ExtensionSettingError", "FeedItemSetError", "FeedItemSetLinkError", "FeedItemTargetError", "PolicyViolationError", "PartialFailureError", "PolicyValidationParameterError", "SizeLimitError", "OfflineUserDataJobError", "NotAllowlistedError", "ManagerLinkError", "CurrencyCodeError", "ExperimentError", "AccessInvitationError", "ReachPlanError", "InvoiceError", "PaymentsAccountError", "TimeZoneError", "AssetLinkError", "UserDataError", "BatchJobError", "AccountLinkError", "ThirdPartyAppAnalyticsLinkError", "CustomerUserAccessError", "CustomAudienceError", "AudienceError", "SmartCampaignError", "ExperimentArmError", "AudienceInsightsError" }, new[]{ "ErrorCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation), global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation.Parser, new[]{ "FieldPathElements" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation.Types.FieldPathElement), global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation.Types.FieldPathElement.Parser, new[]{ "FieldName", "Index" }, new[]{ "Index" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ErrorDetails), global::Google.Ads.GoogleAds.V12.Errors.ErrorDetails.Parser, new[]{ "UnpublishedErrorCode", "PolicyViolationDetails", "PolicyFindingDetails", "QuotaErrorDetails", "ResourceCountDetails" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationDetails), global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationDetails.Parser, new[]{ "ExternalPolicyDescription", "Key", "ExternalPolicyName", "IsExemptible" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingDetails), global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingDetails.Parser, new[]{ "PolicyTopicEntries" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails), global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Parser, new[]{ "RateScope", "RateName", "RetryDelay" }, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope) }, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ResourceCountDetails), global::Google.Ads.GoogleAds.V12.Errors.ResourceCountDetails.Parser, new[]{ "EnclosingId", "EnclosingResource", "Limit", "LimitType", "ExistingCount" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Describes how a GoogleAds API call failed. It's returned inside - /// google.rpc.Status.details when a call fails. - /// - public sealed partial class GoogleAdsFailure : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleAdsFailure()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFailure() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFailure(GoogleAdsFailure other) : this() { - errors_ = other.errors_.Clone(); - requestId_ = other.requestId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFailure Clone() { - return new GoogleAdsFailure(this); - } - - /// Field number for the "errors" field. - public const int ErrorsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_errors_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Errors.GoogleAdsError.Parser); - private readonly pbc::RepeatedField errors_ = new pbc::RepeatedField(); - /// - /// The list of errors that occurred. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Errors { - get { return errors_; } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 2; - private string requestId_ = ""; - /// - /// The unique ID of the request that is used for debugging purposes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleAdsFailure); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleAdsFailure other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!errors_.Equals(other.errors_)) return false; - if (RequestId != other.RequestId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= errors_.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - errors_.WriteTo(output, _repeated_errors_codec); - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - errors_.WriteTo(ref output, _repeated_errors_codec); - if (RequestId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += errors_.CalculateSize(_repeated_errors_codec); - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleAdsFailure other) { - if (other == null) { - return; - } - errors_.Add(other.errors_); - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - errors_.AddEntriesFrom(input, _repeated_errors_codec); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - errors_.AddEntriesFrom(ref input, _repeated_errors_codec); - break; - } - case 18: { - RequestId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// GoogleAds-specific error. - /// - public sealed partial class GoogleAdsError : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleAdsError()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsError() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsError(GoogleAdsError other) : this() { - errorCode_ = other.errorCode_ != null ? other.errorCode_.Clone() : null; - message_ = other.message_; - trigger_ = other.trigger_ != null ? other.trigger_.Clone() : null; - location_ = other.location_ != null ? other.location_.Clone() : null; - details_ = other.details_ != null ? other.details_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsError Clone() { - return new GoogleAdsError(this); - } - - /// Field number for the "error_code" field. - public const int ErrorCodeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Errors.ErrorCode errorCode_; - /// - /// An enum value that indicates which error occurred. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ErrorCode ErrorCode { - get { return errorCode_; } - set { - errorCode_ = value; - } - } - - /// Field number for the "message" field. - public const int MessageFieldNumber = 2; - private string message_ = ""; - /// - /// A human-readable description of the error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Message { - get { return message_; } - set { - message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "trigger" field. - public const int TriggerFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.Value trigger_; - /// - /// The value that triggered the error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Value Trigger { - get { return trigger_; } - set { - trigger_ = value; - } - } - - /// Field number for the "location" field. - public const int LocationFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation location_; - /// - /// Describes the part of the request proto that caused the error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation Location { - get { return location_; } - set { - location_ = value; - } - } - - /// Field number for the "details" field. - public const int DetailsFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Errors.ErrorDetails details_; - /// - /// Additional error details, which are returned by certain error codes. Most - /// error codes do not include details. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ErrorDetails Details { - get { return details_; } - set { - details_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleAdsError); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleAdsError other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(ErrorCode, other.ErrorCode)) return false; - if (Message != other.Message) return false; - if (!object.Equals(Trigger, other.Trigger)) return false; - if (!object.Equals(Location, other.Location)) return false; - if (!object.Equals(Details, other.Details)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (errorCode_ != null) hash ^= ErrorCode.GetHashCode(); - if (Message.Length != 0) hash ^= Message.GetHashCode(); - if (trigger_ != null) hash ^= Trigger.GetHashCode(); - if (location_ != null) hash ^= Location.GetHashCode(); - if (details_ != null) hash ^= Details.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (errorCode_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ErrorCode); - } - if (Message.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Message); - } - if (trigger_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Trigger); - } - if (location_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Location); - } - if (details_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Details); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (errorCode_ != null) { - output.WriteRawTag(10); - output.WriteMessage(ErrorCode); - } - if (Message.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Message); - } - if (trigger_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Trigger); - } - if (location_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Location); - } - if (details_ != null) { - output.WriteRawTag(42); - output.WriteMessage(Details); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (errorCode_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ErrorCode); - } - if (Message.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); - } - if (trigger_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Trigger); - } - if (location_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); - } - if (details_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Details); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleAdsError other) { - if (other == null) { - return; - } - if (other.errorCode_ != null) { - if (errorCode_ == null) { - ErrorCode = new global::Google.Ads.GoogleAds.V12.Errors.ErrorCode(); - } - ErrorCode.MergeFrom(other.ErrorCode); - } - if (other.Message.Length != 0) { - Message = other.Message; - } - if (other.trigger_ != null) { - if (trigger_ == null) { - Trigger = new global::Google.Ads.GoogleAds.V12.Common.Value(); - } - Trigger.MergeFrom(other.Trigger); - } - if (other.location_ != null) { - if (location_ == null) { - Location = new global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation(); - } - Location.MergeFrom(other.Location); - } - if (other.details_ != null) { - if (details_ == null) { - Details = new global::Google.Ads.GoogleAds.V12.Errors.ErrorDetails(); - } - Details.MergeFrom(other.Details); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (errorCode_ == null) { - ErrorCode = new global::Google.Ads.GoogleAds.V12.Errors.ErrorCode(); - } - input.ReadMessage(ErrorCode); - break; - } - case 18: { - Message = input.ReadString(); - break; - } - case 26: { - if (trigger_ == null) { - Trigger = new global::Google.Ads.GoogleAds.V12.Common.Value(); - } - input.ReadMessage(Trigger); - break; - } - case 34: { - if (location_ == null) { - Location = new global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation(); - } - input.ReadMessage(Location); - break; - } - case 42: { - if (details_ == null) { - Details = new global::Google.Ads.GoogleAds.V12.Errors.ErrorDetails(); - } - input.ReadMessage(Details); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (errorCode_ == null) { - ErrorCode = new global::Google.Ads.GoogleAds.V12.Errors.ErrorCode(); - } - input.ReadMessage(ErrorCode); - break; - } - case 18: { - Message = input.ReadString(); - break; - } - case 26: { - if (trigger_ == null) { - Trigger = new global::Google.Ads.GoogleAds.V12.Common.Value(); - } - input.ReadMessage(Trigger); - break; - } - case 34: { - if (location_ == null) { - Location = new global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation(); - } - input.ReadMessage(Location); - break; - } - case 42: { - if (details_ == null) { - Details = new global::Google.Ads.GoogleAds.V12.Errors.ErrorDetails(); - } - input.ReadMessage(Details); - break; - } - } - } - } - #endif - - } - - /// - /// The error reason represented by type and enum. - /// - public sealed partial class ErrorCode : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorCode()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorCode() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorCode(ErrorCode other) : this() { - switch (other.ErrorCodeCase) { - case ErrorCodeOneofCase.RequestError: - RequestError = other.RequestError; - break; - case ErrorCodeOneofCase.BiddingStrategyError: - BiddingStrategyError = other.BiddingStrategyError; - break; - case ErrorCodeOneofCase.UrlFieldError: - UrlFieldError = other.UrlFieldError; - break; - case ErrorCodeOneofCase.ListOperationError: - ListOperationError = other.ListOperationError; - break; - case ErrorCodeOneofCase.QueryError: - QueryError = other.QueryError; - break; - case ErrorCodeOneofCase.MutateError: - MutateError = other.MutateError; - break; - case ErrorCodeOneofCase.FieldMaskError: - FieldMaskError = other.FieldMaskError; - break; - case ErrorCodeOneofCase.AuthorizationError: - AuthorizationError = other.AuthorizationError; - break; - case ErrorCodeOneofCase.InternalError: - InternalError = other.InternalError; - break; - case ErrorCodeOneofCase.QuotaError: - QuotaError = other.QuotaError; - break; - case ErrorCodeOneofCase.AdError: - AdError = other.AdError; - break; - case ErrorCodeOneofCase.AdGroupError: - AdGroupError = other.AdGroupError; - break; - case ErrorCodeOneofCase.CampaignBudgetError: - CampaignBudgetError = other.CampaignBudgetError; - break; - case ErrorCodeOneofCase.CampaignError: - CampaignError = other.CampaignError; - break; - case ErrorCodeOneofCase.AuthenticationError: - AuthenticationError = other.AuthenticationError; - break; - case ErrorCodeOneofCase.AdGroupCriterionCustomizerError: - AdGroupCriterionCustomizerError = other.AdGroupCriterionCustomizerError; - break; - case ErrorCodeOneofCase.AdGroupCriterionError: - AdGroupCriterionError = other.AdGroupCriterionError; - break; - case ErrorCodeOneofCase.AdGroupCustomizerError: - AdGroupCustomizerError = other.AdGroupCustomizerError; - break; - case ErrorCodeOneofCase.AdCustomizerError: - AdCustomizerError = other.AdCustomizerError; - break; - case ErrorCodeOneofCase.AdGroupAdError: - AdGroupAdError = other.AdGroupAdError; - break; - case ErrorCodeOneofCase.AdSharingError: - AdSharingError = other.AdSharingError; - break; - case ErrorCodeOneofCase.AdxError: - AdxError = other.AdxError; - break; - case ErrorCodeOneofCase.AssetError: - AssetError = other.AssetError; - break; - case ErrorCodeOneofCase.AssetGroupAssetError: - AssetGroupAssetError = other.AssetGroupAssetError; - break; - case ErrorCodeOneofCase.AssetGroupListingGroupFilterError: - AssetGroupListingGroupFilterError = other.AssetGroupListingGroupFilterError; - break; - case ErrorCodeOneofCase.AssetGroupError: - AssetGroupError = other.AssetGroupError; - break; - case ErrorCodeOneofCase.AssetSetAssetError: - AssetSetAssetError = other.AssetSetAssetError; - break; - case ErrorCodeOneofCase.AssetSetLinkError: - AssetSetLinkError = other.AssetSetLinkError; - break; - case ErrorCodeOneofCase.AssetSetError: - AssetSetError = other.AssetSetError; - break; - case ErrorCodeOneofCase.BiddingError: - BiddingError = other.BiddingError; - break; - case ErrorCodeOneofCase.CampaignCriterionError: - CampaignCriterionError = other.CampaignCriterionError; - break; - case ErrorCodeOneofCase.CampaignConversionGoalError: - CampaignConversionGoalError = other.CampaignConversionGoalError; - break; - case ErrorCodeOneofCase.CampaignCustomizerError: - CampaignCustomizerError = other.CampaignCustomizerError; - break; - case ErrorCodeOneofCase.CollectionSizeError: - CollectionSizeError = other.CollectionSizeError; - break; - case ErrorCodeOneofCase.ConversionGoalCampaignConfigError: - ConversionGoalCampaignConfigError = other.ConversionGoalCampaignConfigError; - break; - case ErrorCodeOneofCase.CountryCodeError: - CountryCodeError = other.CountryCodeError; - break; - case ErrorCodeOneofCase.CriterionError: - CriterionError = other.CriterionError; - break; - case ErrorCodeOneofCase.CustomConversionGoalError: - CustomConversionGoalError = other.CustomConversionGoalError; - break; - case ErrorCodeOneofCase.CustomerCustomizerError: - CustomerCustomizerError = other.CustomerCustomizerError; - break; - case ErrorCodeOneofCase.CustomerError: - CustomerError = other.CustomerError; - break; - case ErrorCodeOneofCase.CustomizerAttributeError: - CustomizerAttributeError = other.CustomizerAttributeError; - break; - case ErrorCodeOneofCase.DateError: - DateError = other.DateError; - break; - case ErrorCodeOneofCase.DateRangeError: - DateRangeError = other.DateRangeError; - break; - case ErrorCodeOneofCase.DistinctError: - DistinctError = other.DistinctError; - break; - case ErrorCodeOneofCase.FeedAttributeReferenceError: - FeedAttributeReferenceError = other.FeedAttributeReferenceError; - break; - case ErrorCodeOneofCase.FunctionError: - FunctionError = other.FunctionError; - break; - case ErrorCodeOneofCase.FunctionParsingError: - FunctionParsingError = other.FunctionParsingError; - break; - case ErrorCodeOneofCase.IdError: - IdError = other.IdError; - break; - case ErrorCodeOneofCase.ImageError: - ImageError = other.ImageError; - break; - case ErrorCodeOneofCase.LanguageCodeError: - LanguageCodeError = other.LanguageCodeError; - break; - case ErrorCodeOneofCase.MediaBundleError: - MediaBundleError = other.MediaBundleError; - break; - case ErrorCodeOneofCase.MediaUploadError: - MediaUploadError = other.MediaUploadError; - break; - case ErrorCodeOneofCase.MediaFileError: - MediaFileError = other.MediaFileError; - break; - case ErrorCodeOneofCase.MerchantCenterError: - MerchantCenterError = other.MerchantCenterError; - break; - case ErrorCodeOneofCase.MultiplierError: - MultiplierError = other.MultiplierError; - break; - case ErrorCodeOneofCase.NewResourceCreationError: - NewResourceCreationError = other.NewResourceCreationError; - break; - case ErrorCodeOneofCase.NotEmptyError: - NotEmptyError = other.NotEmptyError; - break; - case ErrorCodeOneofCase.NullError: - NullError = other.NullError; - break; - case ErrorCodeOneofCase.OperatorError: - OperatorError = other.OperatorError; - break; - case ErrorCodeOneofCase.RangeError: - RangeError = other.RangeError; - break; - case ErrorCodeOneofCase.RecommendationError: - RecommendationError = other.RecommendationError; - break; - case ErrorCodeOneofCase.RegionCodeError: - RegionCodeError = other.RegionCodeError; - break; - case ErrorCodeOneofCase.SettingError: - SettingError = other.SettingError; - break; - case ErrorCodeOneofCase.StringFormatError: - StringFormatError = other.StringFormatError; - break; - case ErrorCodeOneofCase.StringLengthError: - StringLengthError = other.StringLengthError; - break; - case ErrorCodeOneofCase.OperationAccessDeniedError: - OperationAccessDeniedError = other.OperationAccessDeniedError; - break; - case ErrorCodeOneofCase.ResourceAccessDeniedError: - ResourceAccessDeniedError = other.ResourceAccessDeniedError; - break; - case ErrorCodeOneofCase.ResourceCountLimitExceededError: - ResourceCountLimitExceededError = other.ResourceCountLimitExceededError; - break; - case ErrorCodeOneofCase.YoutubeVideoRegistrationError: - YoutubeVideoRegistrationError = other.YoutubeVideoRegistrationError; - break; - case ErrorCodeOneofCase.AdGroupBidModifierError: - AdGroupBidModifierError = other.AdGroupBidModifierError; - break; - case ErrorCodeOneofCase.ContextError: - ContextError = other.ContextError; - break; - case ErrorCodeOneofCase.FieldError: - FieldError = other.FieldError; - break; - case ErrorCodeOneofCase.SharedSetError: - SharedSetError = other.SharedSetError; - break; - case ErrorCodeOneofCase.SharedCriterionError: - SharedCriterionError = other.SharedCriterionError; - break; - case ErrorCodeOneofCase.CampaignSharedSetError: - CampaignSharedSetError = other.CampaignSharedSetError; - break; - case ErrorCodeOneofCase.ConversionActionError: - ConversionActionError = other.ConversionActionError; - break; - case ErrorCodeOneofCase.ConversionAdjustmentUploadError: - ConversionAdjustmentUploadError = other.ConversionAdjustmentUploadError; - break; - case ErrorCodeOneofCase.ConversionCustomVariableError: - ConversionCustomVariableError = other.ConversionCustomVariableError; - break; - case ErrorCodeOneofCase.ConversionUploadError: - ConversionUploadError = other.ConversionUploadError; - break; - case ErrorCodeOneofCase.ConversionValueRuleError: - ConversionValueRuleError = other.ConversionValueRuleError; - break; - case ErrorCodeOneofCase.ConversionValueRuleSetError: - ConversionValueRuleSetError = other.ConversionValueRuleSetError; - break; - case ErrorCodeOneofCase.HeaderError: - HeaderError = other.HeaderError; - break; - case ErrorCodeOneofCase.DatabaseError: - DatabaseError = other.DatabaseError; - break; - case ErrorCodeOneofCase.PolicyFindingError: - PolicyFindingError = other.PolicyFindingError; - break; - case ErrorCodeOneofCase.EnumError: - EnumError = other.EnumError; - break; - case ErrorCodeOneofCase.KeywordPlanError: - KeywordPlanError = other.KeywordPlanError; - break; - case ErrorCodeOneofCase.KeywordPlanCampaignError: - KeywordPlanCampaignError = other.KeywordPlanCampaignError; - break; - case ErrorCodeOneofCase.KeywordPlanCampaignKeywordError: - KeywordPlanCampaignKeywordError = other.KeywordPlanCampaignKeywordError; - break; - case ErrorCodeOneofCase.KeywordPlanAdGroupError: - KeywordPlanAdGroupError = other.KeywordPlanAdGroupError; - break; - case ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError: - KeywordPlanAdGroupKeywordError = other.KeywordPlanAdGroupKeywordError; - break; - case ErrorCodeOneofCase.KeywordPlanIdeaError: - KeywordPlanIdeaError = other.KeywordPlanIdeaError; - break; - case ErrorCodeOneofCase.AccountBudgetProposalError: - AccountBudgetProposalError = other.AccountBudgetProposalError; - break; - case ErrorCodeOneofCase.UserListError: - UserListError = other.UserListError; - break; - case ErrorCodeOneofCase.ChangeEventError: - ChangeEventError = other.ChangeEventError; - break; - case ErrorCodeOneofCase.ChangeStatusError: - ChangeStatusError = other.ChangeStatusError; - break; - case ErrorCodeOneofCase.FeedError: - FeedError = other.FeedError; - break; - case ErrorCodeOneofCase.GeoTargetConstantSuggestionError: - GeoTargetConstantSuggestionError = other.GeoTargetConstantSuggestionError; - break; - case ErrorCodeOneofCase.CampaignDraftError: - CampaignDraftError = other.CampaignDraftError; - break; - case ErrorCodeOneofCase.FeedItemError: - FeedItemError = other.FeedItemError; - break; - case ErrorCodeOneofCase.LabelError: - LabelError = other.LabelError; - break; - case ErrorCodeOneofCase.BillingSetupError: - BillingSetupError = other.BillingSetupError; - break; - case ErrorCodeOneofCase.CustomerClientLinkError: - CustomerClientLinkError = other.CustomerClientLinkError; - break; - case ErrorCodeOneofCase.CustomerManagerLinkError: - CustomerManagerLinkError = other.CustomerManagerLinkError; - break; - case ErrorCodeOneofCase.FeedMappingError: - FeedMappingError = other.FeedMappingError; - break; - case ErrorCodeOneofCase.CustomerFeedError: - CustomerFeedError = other.CustomerFeedError; - break; - case ErrorCodeOneofCase.AdGroupFeedError: - AdGroupFeedError = other.AdGroupFeedError; - break; - case ErrorCodeOneofCase.CampaignFeedError: - CampaignFeedError = other.CampaignFeedError; - break; - case ErrorCodeOneofCase.CustomInterestError: - CustomInterestError = other.CustomInterestError; - break; - case ErrorCodeOneofCase.CampaignExperimentError: - CampaignExperimentError = other.CampaignExperimentError; - break; - case ErrorCodeOneofCase.ExtensionFeedItemError: - ExtensionFeedItemError = other.ExtensionFeedItemError; - break; - case ErrorCodeOneofCase.AdParameterError: - AdParameterError = other.AdParameterError; - break; - case ErrorCodeOneofCase.FeedItemValidationError: - FeedItemValidationError = other.FeedItemValidationError; - break; - case ErrorCodeOneofCase.ExtensionSettingError: - ExtensionSettingError = other.ExtensionSettingError; - break; - case ErrorCodeOneofCase.FeedItemSetError: - FeedItemSetError = other.FeedItemSetError; - break; - case ErrorCodeOneofCase.FeedItemSetLinkError: - FeedItemSetLinkError = other.FeedItemSetLinkError; - break; - case ErrorCodeOneofCase.FeedItemTargetError: - FeedItemTargetError = other.FeedItemTargetError; - break; - case ErrorCodeOneofCase.PolicyViolationError: - PolicyViolationError = other.PolicyViolationError; - break; - case ErrorCodeOneofCase.PartialFailureError: - PartialFailureError = other.PartialFailureError; - break; - case ErrorCodeOneofCase.PolicyValidationParameterError: - PolicyValidationParameterError = other.PolicyValidationParameterError; - break; - case ErrorCodeOneofCase.SizeLimitError: - SizeLimitError = other.SizeLimitError; - break; - case ErrorCodeOneofCase.OfflineUserDataJobError: - OfflineUserDataJobError = other.OfflineUserDataJobError; - break; - case ErrorCodeOneofCase.NotAllowlistedError: - NotAllowlistedError = other.NotAllowlistedError; - break; - case ErrorCodeOneofCase.ManagerLinkError: - ManagerLinkError = other.ManagerLinkError; - break; - case ErrorCodeOneofCase.CurrencyCodeError: - CurrencyCodeError = other.CurrencyCodeError; - break; - case ErrorCodeOneofCase.ExperimentError: - ExperimentError = other.ExperimentError; - break; - case ErrorCodeOneofCase.AccessInvitationError: - AccessInvitationError = other.AccessInvitationError; - break; - case ErrorCodeOneofCase.ReachPlanError: - ReachPlanError = other.ReachPlanError; - break; - case ErrorCodeOneofCase.InvoiceError: - InvoiceError = other.InvoiceError; - break; - case ErrorCodeOneofCase.PaymentsAccountError: - PaymentsAccountError = other.PaymentsAccountError; - break; - case ErrorCodeOneofCase.TimeZoneError: - TimeZoneError = other.TimeZoneError; - break; - case ErrorCodeOneofCase.AssetLinkError: - AssetLinkError = other.AssetLinkError; - break; - case ErrorCodeOneofCase.UserDataError: - UserDataError = other.UserDataError; - break; - case ErrorCodeOneofCase.BatchJobError: - BatchJobError = other.BatchJobError; - break; - case ErrorCodeOneofCase.AccountLinkError: - AccountLinkError = other.AccountLinkError; - break; - case ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError: - ThirdPartyAppAnalyticsLinkError = other.ThirdPartyAppAnalyticsLinkError; - break; - case ErrorCodeOneofCase.CustomerUserAccessError: - CustomerUserAccessError = other.CustomerUserAccessError; - break; - case ErrorCodeOneofCase.CustomAudienceError: - CustomAudienceError = other.CustomAudienceError; - break; - case ErrorCodeOneofCase.AudienceError: - AudienceError = other.AudienceError; - break; - case ErrorCodeOneofCase.SmartCampaignError: - SmartCampaignError = other.SmartCampaignError; - break; - case ErrorCodeOneofCase.ExperimentArmError: - ExperimentArmError = other.ExperimentArmError; - break; - case ErrorCodeOneofCase.AudienceInsightsError: - AudienceInsightsError = other.AudienceInsightsError; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorCode Clone() { - return new ErrorCode(this); - } - - /// Field number for the "request_error" field. - public const int RequestErrorFieldNumber = 1; - /// - /// An error caused by the request - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.RequestErrorEnum.Types.RequestError RequestError { - get { return errorCodeCase_ == ErrorCodeOneofCase.RequestError ? (global::Google.Ads.GoogleAds.V12.Errors.RequestErrorEnum.Types.RequestError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.RequestErrorEnum.Types.RequestError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.RequestError; - } - } - - /// Field number for the "bidding_strategy_error" field. - public const int BiddingStrategyErrorFieldNumber = 2; - /// - /// An error with a Bidding Strategy mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorEnum.Types.BiddingStrategyError BiddingStrategyError { - get { return errorCodeCase_ == ErrorCodeOneofCase.BiddingStrategyError ? (global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorEnum.Types.BiddingStrategyError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.BiddingStrategyErrorEnum.Types.BiddingStrategyError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.BiddingStrategyError; - } - } - - /// Field number for the "url_field_error" field. - public const int UrlFieldErrorFieldNumber = 3; - /// - /// An error with a URL field mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.UrlFieldErrorEnum.Types.UrlFieldError UrlFieldError { - get { return errorCodeCase_ == ErrorCodeOneofCase.UrlFieldError ? (global::Google.Ads.GoogleAds.V12.Errors.UrlFieldErrorEnum.Types.UrlFieldError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.UrlFieldErrorEnum.Types.UrlFieldError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.UrlFieldError; - } - } - - /// Field number for the "list_operation_error" field. - public const int ListOperationErrorFieldNumber = 4; - /// - /// An error with a list operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ListOperationErrorEnum.Types.ListOperationError ListOperationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ListOperationError ? (global::Google.Ads.GoogleAds.V12.Errors.ListOperationErrorEnum.Types.ListOperationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ListOperationErrorEnum.Types.ListOperationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ListOperationError; - } - } - - /// Field number for the "query_error" field. - public const int QueryErrorFieldNumber = 5; - /// - /// An error with an AWQL query - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.QueryErrorEnum.Types.QueryError QueryError { - get { return errorCodeCase_ == ErrorCodeOneofCase.QueryError ? (global::Google.Ads.GoogleAds.V12.Errors.QueryErrorEnum.Types.QueryError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.QueryErrorEnum.Types.QueryError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.QueryError; - } - } - - /// Field number for the "mutate_error" field. - public const int MutateErrorFieldNumber = 7; - /// - /// An error with a mutate - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.MutateErrorEnum.Types.MutateError MutateError { - get { return errorCodeCase_ == ErrorCodeOneofCase.MutateError ? (global::Google.Ads.GoogleAds.V12.Errors.MutateErrorEnum.Types.MutateError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.MutateErrorEnum.Types.MutateError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.MutateError; - } - } - - /// Field number for the "field_mask_error" field. - public const int FieldMaskErrorFieldNumber = 8; - /// - /// An error with a field mask - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorEnum.Types.FieldMaskError FieldMaskError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FieldMaskError ? (global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorEnum.Types.FieldMaskError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorEnum.Types.FieldMaskError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FieldMaskError; - } - } - - /// Field number for the "authorization_error" field. - public const int AuthorizationErrorFieldNumber = 9; - /// - /// An error encountered when trying to authorize a user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorEnum.Types.AuthorizationError AuthorizationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AuthorizationError ? (global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorEnum.Types.AuthorizationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AuthorizationErrorEnum.Types.AuthorizationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AuthorizationError; - } - } - - /// Field number for the "internal_error" field. - public const int InternalErrorFieldNumber = 10; - /// - /// An unexpected server-side error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.InternalErrorEnum.Types.InternalError InternalError { - get { return errorCodeCase_ == ErrorCodeOneofCase.InternalError ? (global::Google.Ads.GoogleAds.V12.Errors.InternalErrorEnum.Types.InternalError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.InternalErrorEnum.Types.InternalError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.InternalError; - } - } - - /// Field number for the "quota_error" field. - public const int QuotaErrorFieldNumber = 11; - /// - /// An error with the amonut of quota remaining. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorEnum.Types.QuotaError QuotaError { - get { return errorCodeCase_ == ErrorCodeOneofCase.QuotaError ? (global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorEnum.Types.QuotaError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorEnum.Types.QuotaError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.QuotaError; - } - } - - /// Field number for the "ad_error" field. - public const int AdErrorFieldNumber = 12; - /// - /// An error with an Ad Group Ad mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdErrorEnum.Types.AdError AdError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdError ? (global::Google.Ads.GoogleAds.V12.Errors.AdErrorEnum.Types.AdError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdErrorEnum.Types.AdError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdError; - } - } - - /// Field number for the "ad_group_error" field. - public const int AdGroupErrorFieldNumber = 13; - /// - /// An error with an Ad Group mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorEnum.Types.AdGroupError AdGroupError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdGroupError ? (global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorEnum.Types.AdGroupError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdGroupErrorEnum.Types.AdGroupError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdGroupError; - } - } - - /// Field number for the "campaign_budget_error" field. - public const int CampaignBudgetErrorFieldNumber = 14; - /// - /// An error with a Campaign Budget mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorEnum.Types.CampaignBudgetError CampaignBudgetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignBudgetError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorEnum.Types.CampaignBudgetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignBudgetErrorEnum.Types.CampaignBudgetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignBudgetError; - } - } - - /// Field number for the "campaign_error" field. - public const int CampaignErrorFieldNumber = 15; - /// - /// An error with a Campaign mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorEnum.Types.CampaignError CampaignError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorEnum.Types.CampaignError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignErrorEnum.Types.CampaignError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignError; - } - } - - /// Field number for the "authentication_error" field. - public const int AuthenticationErrorFieldNumber = 17; - /// - /// Indicates failure to properly authenticate user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorEnum.Types.AuthenticationError AuthenticationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AuthenticationError ? (global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorEnum.Types.AuthenticationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AuthenticationErrorEnum.Types.AuthenticationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AuthenticationError; - } - } - - /// Field number for the "ad_group_criterion_customizer_error" field. - public const int AdGroupCriterionCustomizerErrorFieldNumber = 161; - /// - /// The reasons for the ad group criterion customizer error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorEnum.Types.AdGroupCriterionCustomizerError AdGroupCriterionCustomizerError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionCustomizerError ? (global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorEnum.Types.AdGroupCriterionCustomizerError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionCustomizerErrorEnum.Types.AdGroupCriterionCustomizerError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCriterionCustomizerError; - } - } - - /// Field number for the "ad_group_criterion_error" field. - public const int AdGroupCriterionErrorFieldNumber = 18; - /// - /// Indicates failure to properly authenticate user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorEnum.Types.AdGroupCriterionError AdGroupCriterionError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionError ? (global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorEnum.Types.AdGroupCriterionError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdGroupCriterionErrorEnum.Types.AdGroupCriterionError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCriterionError; - } - } - - /// Field number for the "ad_group_customizer_error" field. - public const int AdGroupCustomizerErrorFieldNumber = 159; - /// - /// The reasons for the ad group customizer error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorEnum.Types.AdGroupCustomizerError AdGroupCustomizerError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdGroupCustomizerError ? (global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorEnum.Types.AdGroupCustomizerError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdGroupCustomizerErrorEnum.Types.AdGroupCustomizerError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCustomizerError; - } - } - - /// Field number for the "ad_customizer_error" field. - public const int AdCustomizerErrorFieldNumber = 19; - /// - /// The reasons for the ad customizer error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorEnum.Types.AdCustomizerError AdCustomizerError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdCustomizerError ? (global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorEnum.Types.AdCustomizerError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdCustomizerErrorEnum.Types.AdCustomizerError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdCustomizerError; - } - } - - /// Field number for the "ad_group_ad_error" field. - public const int AdGroupAdErrorFieldNumber = 21; - /// - /// The reasons for the ad group ad error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorEnum.Types.AdGroupAdError AdGroupAdError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdGroupAdError ? (global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorEnum.Types.AdGroupAdError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdGroupAdErrorEnum.Types.AdGroupAdError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdGroupAdError; - } - } - - /// Field number for the "ad_sharing_error" field. - public const int AdSharingErrorFieldNumber = 24; - /// - /// The reasons for the ad sharing error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorEnum.Types.AdSharingError AdSharingError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdSharingError ? (global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorEnum.Types.AdSharingError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdSharingErrorEnum.Types.AdSharingError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdSharingError; - } - } - - /// Field number for the "adx_error" field. - public const int AdxErrorFieldNumber = 25; - /// - /// The reasons for the adx error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdxErrorEnum.Types.AdxError AdxError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdxError ? (global::Google.Ads.GoogleAds.V12.Errors.AdxErrorEnum.Types.AdxError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdxErrorEnum.Types.AdxError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdxError; - } - } - - /// Field number for the "asset_error" field. - public const int AssetErrorFieldNumber = 107; - /// - /// The reasons for the asset error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetErrorEnum.Types.AssetError AssetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetErrorEnum.Types.AssetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetErrorEnum.Types.AssetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetError; - } - } - - /// Field number for the "asset_group_asset_error" field. - public const int AssetGroupAssetErrorFieldNumber = 149; - /// - /// The reasons for the asset group asset error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorEnum.Types.AssetGroupAssetError AssetGroupAssetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetGroupAssetError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorEnum.Types.AssetGroupAssetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetGroupAssetErrorEnum.Types.AssetGroupAssetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupAssetError; - } - } - - /// Field number for the "asset_group_listing_group_filter_error" field. - public const int AssetGroupListingGroupFilterErrorFieldNumber = 155; - /// - /// The reasons for the asset group listing group filter error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorEnum.Types.AssetGroupListingGroupFilterError AssetGroupListingGroupFilterError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetGroupListingGroupFilterError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorEnum.Types.AssetGroupListingGroupFilterError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetGroupListingGroupFilterErrorEnum.Types.AssetGroupListingGroupFilterError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupListingGroupFilterError; - } - } - - /// Field number for the "asset_group_error" field. - public const int AssetGroupErrorFieldNumber = 148; - /// - /// The reasons for the asset group error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorEnum.Types.AssetGroupError AssetGroupError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetGroupError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorEnum.Types.AssetGroupError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetGroupErrorEnum.Types.AssetGroupError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupError; - } - } - - /// Field number for the "asset_set_asset_error" field. - public const int AssetSetAssetErrorFieldNumber = 153; - /// - /// The reasons for the asset set asset error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorEnum.Types.AssetSetAssetError AssetSetAssetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetSetAssetError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorEnum.Types.AssetSetAssetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetSetAssetErrorEnum.Types.AssetSetAssetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetSetAssetError; - } - } - - /// Field number for the "asset_set_link_error" field. - public const int AssetSetLinkErrorFieldNumber = 154; - /// - /// The reasons for the asset set link error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorEnum.Types.AssetSetLinkError AssetSetLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetSetLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorEnum.Types.AssetSetLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetSetLinkErrorEnum.Types.AssetSetLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetSetLinkError; - } - } - - /// Field number for the "asset_set_error" field. - public const int AssetSetErrorFieldNumber = 152; - /// - /// The reasons for the asset set error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorEnum.Types.AssetSetError AssetSetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetSetError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorEnum.Types.AssetSetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetSetErrorEnum.Types.AssetSetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetSetError; - } - } - - /// Field number for the "bidding_error" field. - public const int BiddingErrorFieldNumber = 26; - /// - /// The reasons for the bidding errors - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorEnum.Types.BiddingError BiddingError { - get { return errorCodeCase_ == ErrorCodeOneofCase.BiddingError ? (global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorEnum.Types.BiddingError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.BiddingErrorEnum.Types.BiddingError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.BiddingError; - } - } - - /// Field number for the "campaign_criterion_error" field. - public const int CampaignCriterionErrorFieldNumber = 29; - /// - /// The reasons for the campaign criterion error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorEnum.Types.CampaignCriterionError CampaignCriterionError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignCriterionError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorEnum.Types.CampaignCriterionError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignCriterionErrorEnum.Types.CampaignCriterionError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignCriterionError; - } - } - - /// Field number for the "campaign_conversion_goal_error" field. - public const int CampaignConversionGoalErrorFieldNumber = 166; - /// - /// The reasons for the campaign conversion goal error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorEnum.Types.CampaignConversionGoalError CampaignConversionGoalError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignConversionGoalError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorEnum.Types.CampaignConversionGoalError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignConversionGoalErrorEnum.Types.CampaignConversionGoalError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignConversionGoalError; - } - } - - /// Field number for the "campaign_customizer_error" field. - public const int CampaignCustomizerErrorFieldNumber = 160; - /// - /// The reasons for the campaign customizer error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorEnum.Types.CampaignCustomizerError CampaignCustomizerError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignCustomizerError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorEnum.Types.CampaignCustomizerError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignCustomizerErrorEnum.Types.CampaignCustomizerError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignCustomizerError; - } - } - - /// Field number for the "collection_size_error" field. - public const int CollectionSizeErrorFieldNumber = 31; - /// - /// The reasons for the collection size error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorEnum.Types.CollectionSizeError CollectionSizeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CollectionSizeError ? (global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorEnum.Types.CollectionSizeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CollectionSizeErrorEnum.Types.CollectionSizeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CollectionSizeError; - } - } - - /// Field number for the "conversion_goal_campaign_config_error" field. - public const int ConversionGoalCampaignConfigErrorFieldNumber = 165; - /// - /// The reasons for the conversion goal campaign config error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorEnum.Types.ConversionGoalCampaignConfigError ConversionGoalCampaignConfigError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ConversionGoalCampaignConfigError ? (global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorEnum.Types.ConversionGoalCampaignConfigError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ConversionGoalCampaignConfigErrorEnum.Types.ConversionGoalCampaignConfigError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ConversionGoalCampaignConfigError; - } - } - - /// Field number for the "country_code_error" field. - public const int CountryCodeErrorFieldNumber = 109; - /// - /// The reasons for the country code error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorEnum.Types.CountryCodeError CountryCodeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CountryCodeError ? (global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorEnum.Types.CountryCodeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CountryCodeErrorEnum.Types.CountryCodeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CountryCodeError; - } - } - - /// Field number for the "criterion_error" field. - public const int CriterionErrorFieldNumber = 32; - /// - /// The reasons for the criterion error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorEnum.Types.CriterionError CriterionError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CriterionError ? (global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorEnum.Types.CriterionError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CriterionErrorEnum.Types.CriterionError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CriterionError; - } - } - - /// Field number for the "custom_conversion_goal_error" field. - public const int CustomConversionGoalErrorFieldNumber = 150; - /// - /// The reasons for the custom conversion goal error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorEnum.Types.CustomConversionGoalError CustomConversionGoalError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomConversionGoalError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorEnum.Types.CustomConversionGoalError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomConversionGoalErrorEnum.Types.CustomConversionGoalError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomConversionGoalError; - } - } - - /// Field number for the "customer_customizer_error" field. - public const int CustomerCustomizerErrorFieldNumber = 158; - /// - /// The reasons for the customer customizer error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorEnum.Types.CustomerCustomizerError CustomerCustomizerError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomerCustomizerError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorEnum.Types.CustomerCustomizerError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomerCustomizerErrorEnum.Types.CustomerCustomizerError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomerCustomizerError; - } - } - - /// Field number for the "customer_error" field. - public const int CustomerErrorFieldNumber = 90; - /// - /// The reasons for the customer error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorEnum.Types.CustomerError CustomerError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomerError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorEnum.Types.CustomerError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomerErrorEnum.Types.CustomerError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomerError; - } - } - - /// Field number for the "customizer_attribute_error" field. - public const int CustomizerAttributeErrorFieldNumber = 151; - /// - /// The reasons for the customizer attribute error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorEnum.Types.CustomizerAttributeError CustomizerAttributeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomizerAttributeError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorEnum.Types.CustomizerAttributeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomizerAttributeErrorEnum.Types.CustomizerAttributeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomizerAttributeError; - } - } - - /// Field number for the "date_error" field. - public const int DateErrorFieldNumber = 33; - /// - /// The reasons for the date error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.DateErrorEnum.Types.DateError DateError { - get { return errorCodeCase_ == ErrorCodeOneofCase.DateError ? (global::Google.Ads.GoogleAds.V12.Errors.DateErrorEnum.Types.DateError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.DateErrorEnum.Types.DateError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.DateError; - } - } - - /// Field number for the "date_range_error" field. - public const int DateRangeErrorFieldNumber = 34; - /// - /// The reasons for the date range error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorEnum.Types.DateRangeError DateRangeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.DateRangeError ? (global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorEnum.Types.DateRangeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.DateRangeErrorEnum.Types.DateRangeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.DateRangeError; - } - } - - /// Field number for the "distinct_error" field. - public const int DistinctErrorFieldNumber = 35; - /// - /// The reasons for the distinct error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorEnum.Types.DistinctError DistinctError { - get { return errorCodeCase_ == ErrorCodeOneofCase.DistinctError ? (global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorEnum.Types.DistinctError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.DistinctErrorEnum.Types.DistinctError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.DistinctError; - } - } - - /// Field number for the "feed_attribute_reference_error" field. - public const int FeedAttributeReferenceErrorFieldNumber = 36; - /// - /// The reasons for the feed attribute reference error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorEnum.Types.FeedAttributeReferenceError FeedAttributeReferenceError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedAttributeReferenceError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorEnum.Types.FeedAttributeReferenceError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorEnum.Types.FeedAttributeReferenceError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedAttributeReferenceError; - } - } - - /// Field number for the "function_error" field. - public const int FunctionErrorFieldNumber = 37; - /// - /// The reasons for the function error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorEnum.Types.FunctionError FunctionError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FunctionError ? (global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorEnum.Types.FunctionError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorEnum.Types.FunctionError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FunctionError; - } - } - - /// Field number for the "function_parsing_error" field. - public const int FunctionParsingErrorFieldNumber = 38; - /// - /// The reasons for the function parsing error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorEnum.Types.FunctionParsingError FunctionParsingError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FunctionParsingError ? (global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorEnum.Types.FunctionParsingError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorEnum.Types.FunctionParsingError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FunctionParsingError; - } - } - - /// Field number for the "id_error" field. - public const int IdErrorFieldNumber = 39; - /// - /// The reasons for the id error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.IdErrorEnum.Types.IdError IdError { - get { return errorCodeCase_ == ErrorCodeOneofCase.IdError ? (global::Google.Ads.GoogleAds.V12.Errors.IdErrorEnum.Types.IdError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.IdErrorEnum.Types.IdError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.IdError; - } - } - - /// Field number for the "image_error" field. - public const int ImageErrorFieldNumber = 40; - /// - /// The reasons for the image error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ImageErrorEnum.Types.ImageError ImageError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ImageError ? (global::Google.Ads.GoogleAds.V12.Errors.ImageErrorEnum.Types.ImageError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ImageErrorEnum.Types.ImageError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ImageError; - } - } - - /// Field number for the "language_code_error" field. - public const int LanguageCodeErrorFieldNumber = 110; - /// - /// The reasons for the language code error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.LanguageCodeErrorEnum.Types.LanguageCodeError LanguageCodeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.LanguageCodeError ? (global::Google.Ads.GoogleAds.V12.Errors.LanguageCodeErrorEnum.Types.LanguageCodeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.LanguageCodeErrorEnum.Types.LanguageCodeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.LanguageCodeError; - } - } - - /// Field number for the "media_bundle_error" field. - public const int MediaBundleErrorFieldNumber = 42; - /// - /// The reasons for the media bundle error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.MediaBundleErrorEnum.Types.MediaBundleError MediaBundleError { - get { return errorCodeCase_ == ErrorCodeOneofCase.MediaBundleError ? (global::Google.Ads.GoogleAds.V12.Errors.MediaBundleErrorEnum.Types.MediaBundleError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.MediaBundleErrorEnum.Types.MediaBundleError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.MediaBundleError; - } - } - - /// Field number for the "media_upload_error" field. - public const int MediaUploadErrorFieldNumber = 116; - /// - /// The reasons for media uploading errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.MediaUploadErrorEnum.Types.MediaUploadError MediaUploadError { - get { return errorCodeCase_ == ErrorCodeOneofCase.MediaUploadError ? (global::Google.Ads.GoogleAds.V12.Errors.MediaUploadErrorEnum.Types.MediaUploadError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.MediaUploadErrorEnum.Types.MediaUploadError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.MediaUploadError; - } - } - - /// Field number for the "media_file_error" field. - public const int MediaFileErrorFieldNumber = 86; - /// - /// The reasons for the media file error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.MediaFileErrorEnum.Types.MediaFileError MediaFileError { - get { return errorCodeCase_ == ErrorCodeOneofCase.MediaFileError ? (global::Google.Ads.GoogleAds.V12.Errors.MediaFileErrorEnum.Types.MediaFileError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.MediaFileErrorEnum.Types.MediaFileError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.MediaFileError; - } - } - - /// Field number for the "merchant_center_error" field. - public const int MerchantCenterErrorFieldNumber = 162; - /// - /// Container for enum describing possible merchant center errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.MerchantCenterErrorEnum.Types.MerchantCenterError MerchantCenterError { - get { return errorCodeCase_ == ErrorCodeOneofCase.MerchantCenterError ? (global::Google.Ads.GoogleAds.V12.Errors.MerchantCenterErrorEnum.Types.MerchantCenterError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.MerchantCenterErrorEnum.Types.MerchantCenterError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.MerchantCenterError; - } - } - - /// Field number for the "multiplier_error" field. - public const int MultiplierErrorFieldNumber = 44; - /// - /// The reasons for the multiplier error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.MultiplierErrorEnum.Types.MultiplierError MultiplierError { - get { return errorCodeCase_ == ErrorCodeOneofCase.MultiplierError ? (global::Google.Ads.GoogleAds.V12.Errors.MultiplierErrorEnum.Types.MultiplierError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.MultiplierErrorEnum.Types.MultiplierError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.MultiplierError; - } - } - - /// Field number for the "new_resource_creation_error" field. - public const int NewResourceCreationErrorFieldNumber = 45; - /// - /// The reasons for the new resource creation error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.NewResourceCreationErrorEnum.Types.NewResourceCreationError NewResourceCreationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.NewResourceCreationError ? (global::Google.Ads.GoogleAds.V12.Errors.NewResourceCreationErrorEnum.Types.NewResourceCreationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.NewResourceCreationErrorEnum.Types.NewResourceCreationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.NewResourceCreationError; - } - } - - /// Field number for the "not_empty_error" field. - public const int NotEmptyErrorFieldNumber = 46; - /// - /// The reasons for the not empty error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.NotEmptyErrorEnum.Types.NotEmptyError NotEmptyError { - get { return errorCodeCase_ == ErrorCodeOneofCase.NotEmptyError ? (global::Google.Ads.GoogleAds.V12.Errors.NotEmptyErrorEnum.Types.NotEmptyError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.NotEmptyErrorEnum.Types.NotEmptyError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.NotEmptyError; - } - } - - /// Field number for the "null_error" field. - public const int NullErrorFieldNumber = 47; - /// - /// The reasons for the null error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.NullErrorEnum.Types.NullError NullError { - get { return errorCodeCase_ == ErrorCodeOneofCase.NullError ? (global::Google.Ads.GoogleAds.V12.Errors.NullErrorEnum.Types.NullError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.NullErrorEnum.Types.NullError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.NullError; - } - } - - /// Field number for the "operator_error" field. - public const int OperatorErrorFieldNumber = 48; - /// - /// The reasons for the operator error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.OperatorErrorEnum.Types.OperatorError OperatorError { - get { return errorCodeCase_ == ErrorCodeOneofCase.OperatorError ? (global::Google.Ads.GoogleAds.V12.Errors.OperatorErrorEnum.Types.OperatorError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.OperatorErrorEnum.Types.OperatorError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.OperatorError; - } - } - - /// Field number for the "range_error" field. - public const int RangeErrorFieldNumber = 49; - /// - /// The reasons for the range error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.RangeErrorEnum.Types.RangeError RangeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.RangeError ? (global::Google.Ads.GoogleAds.V12.Errors.RangeErrorEnum.Types.RangeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.RangeErrorEnum.Types.RangeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.RangeError; - } - } - - /// Field number for the "recommendation_error" field. - public const int RecommendationErrorFieldNumber = 58; - /// - /// The reasons for error in applying a recommendation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.RecommendationErrorEnum.Types.RecommendationError RecommendationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.RecommendationError ? (global::Google.Ads.GoogleAds.V12.Errors.RecommendationErrorEnum.Types.RecommendationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.RecommendationErrorEnum.Types.RecommendationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.RecommendationError; - } - } - - /// Field number for the "region_code_error" field. - public const int RegionCodeErrorFieldNumber = 51; - /// - /// The reasons for the region code error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.RegionCodeErrorEnum.Types.RegionCodeError RegionCodeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.RegionCodeError ? (global::Google.Ads.GoogleAds.V12.Errors.RegionCodeErrorEnum.Types.RegionCodeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.RegionCodeErrorEnum.Types.RegionCodeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.RegionCodeError; - } - } - - /// Field number for the "setting_error" field. - public const int SettingErrorFieldNumber = 52; - /// - /// The reasons for the setting error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.SettingErrorEnum.Types.SettingError SettingError { - get { return errorCodeCase_ == ErrorCodeOneofCase.SettingError ? (global::Google.Ads.GoogleAds.V12.Errors.SettingErrorEnum.Types.SettingError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.SettingErrorEnum.Types.SettingError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.SettingError; - } - } - - /// Field number for the "string_format_error" field. - public const int StringFormatErrorFieldNumber = 53; - /// - /// The reasons for the string format error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.StringFormatErrorEnum.Types.StringFormatError StringFormatError { - get { return errorCodeCase_ == ErrorCodeOneofCase.StringFormatError ? (global::Google.Ads.GoogleAds.V12.Errors.StringFormatErrorEnum.Types.StringFormatError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.StringFormatErrorEnum.Types.StringFormatError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.StringFormatError; - } - } - - /// Field number for the "string_length_error" field. - public const int StringLengthErrorFieldNumber = 54; - /// - /// The reasons for the string length error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.StringLengthErrorEnum.Types.StringLengthError StringLengthError { - get { return errorCodeCase_ == ErrorCodeOneofCase.StringLengthError ? (global::Google.Ads.GoogleAds.V12.Errors.StringLengthErrorEnum.Types.StringLengthError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.StringLengthErrorEnum.Types.StringLengthError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.StringLengthError; - } - } - - /// Field number for the "operation_access_denied_error" field. - public const int OperationAccessDeniedErrorFieldNumber = 55; - /// - /// The reasons for the operation access denied error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.OperationAccessDeniedErrorEnum.Types.OperationAccessDeniedError OperationAccessDeniedError { - get { return errorCodeCase_ == ErrorCodeOneofCase.OperationAccessDeniedError ? (global::Google.Ads.GoogleAds.V12.Errors.OperationAccessDeniedErrorEnum.Types.OperationAccessDeniedError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.OperationAccessDeniedErrorEnum.Types.OperationAccessDeniedError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.OperationAccessDeniedError; - } - } - - /// Field number for the "resource_access_denied_error" field. - public const int ResourceAccessDeniedErrorFieldNumber = 56; - /// - /// The reasons for the resource access denied error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ResourceAccessDeniedErrorEnum.Types.ResourceAccessDeniedError ResourceAccessDeniedError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ResourceAccessDeniedError ? (global::Google.Ads.GoogleAds.V12.Errors.ResourceAccessDeniedErrorEnum.Types.ResourceAccessDeniedError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ResourceAccessDeniedErrorEnum.Types.ResourceAccessDeniedError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ResourceAccessDeniedError; - } - } - - /// Field number for the "resource_count_limit_exceeded_error" field. - public const int ResourceCountLimitExceededErrorFieldNumber = 57; - /// - /// The reasons for the resource count limit exceeded error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ResourceCountLimitExceededErrorEnum.Types.ResourceCountLimitExceededError ResourceCountLimitExceededError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ResourceCountLimitExceededError ? (global::Google.Ads.GoogleAds.V12.Errors.ResourceCountLimitExceededErrorEnum.Types.ResourceCountLimitExceededError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ResourceCountLimitExceededErrorEnum.Types.ResourceCountLimitExceededError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ResourceCountLimitExceededError; - } - } - - /// Field number for the "youtube_video_registration_error" field. - public const int YoutubeVideoRegistrationErrorFieldNumber = 117; - /// - /// The reasons for YouTube video registration errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.YoutubeVideoRegistrationErrorEnum.Types.YoutubeVideoRegistrationError YoutubeVideoRegistrationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.YoutubeVideoRegistrationError ? (global::Google.Ads.GoogleAds.V12.Errors.YoutubeVideoRegistrationErrorEnum.Types.YoutubeVideoRegistrationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.YoutubeVideoRegistrationErrorEnum.Types.YoutubeVideoRegistrationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.YoutubeVideoRegistrationError; - } - } - - /// Field number for the "ad_group_bid_modifier_error" field. - public const int AdGroupBidModifierErrorFieldNumber = 59; - /// - /// The reasons for the ad group bid modifier error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorEnum.Types.AdGroupBidModifierError AdGroupBidModifierError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdGroupBidModifierError ? (global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorEnum.Types.AdGroupBidModifierError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdGroupBidModifierErrorEnum.Types.AdGroupBidModifierError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdGroupBidModifierError; - } - } - - /// Field number for the "context_error" field. - public const int ContextErrorFieldNumber = 60; - /// - /// The reasons for the context error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ContextErrorEnum.Types.ContextError ContextError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ContextError ? (global::Google.Ads.GoogleAds.V12.Errors.ContextErrorEnum.Types.ContextError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ContextErrorEnum.Types.ContextError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ContextError; - } - } - - /// Field number for the "field_error" field. - public const int FieldErrorFieldNumber = 61; - /// - /// The reasons for the field error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FieldErrorEnum.Types.FieldError FieldError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FieldError ? (global::Google.Ads.GoogleAds.V12.Errors.FieldErrorEnum.Types.FieldError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FieldErrorEnum.Types.FieldError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FieldError; - } - } - - /// Field number for the "shared_set_error" field. - public const int SharedSetErrorFieldNumber = 62; - /// - /// The reasons for the shared set error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.SharedSetErrorEnum.Types.SharedSetError SharedSetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.SharedSetError ? (global::Google.Ads.GoogleAds.V12.Errors.SharedSetErrorEnum.Types.SharedSetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.SharedSetErrorEnum.Types.SharedSetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.SharedSetError; - } - } - - /// Field number for the "shared_criterion_error" field. - public const int SharedCriterionErrorFieldNumber = 63; - /// - /// The reasons for the shared criterion error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.SharedCriterionErrorEnum.Types.SharedCriterionError SharedCriterionError { - get { return errorCodeCase_ == ErrorCodeOneofCase.SharedCriterionError ? (global::Google.Ads.GoogleAds.V12.Errors.SharedCriterionErrorEnum.Types.SharedCriterionError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.SharedCriterionErrorEnum.Types.SharedCriterionError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.SharedCriterionError; - } - } - - /// Field number for the "campaign_shared_set_error" field. - public const int CampaignSharedSetErrorFieldNumber = 64; - /// - /// The reasons for the campaign shared set error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorEnum.Types.CampaignSharedSetError CampaignSharedSetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignSharedSetError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorEnum.Types.CampaignSharedSetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignSharedSetErrorEnum.Types.CampaignSharedSetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignSharedSetError; - } - } - - /// Field number for the "conversion_action_error" field. - public const int ConversionActionErrorFieldNumber = 65; - /// - /// The reasons for the conversion action error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorEnum.Types.ConversionActionError ConversionActionError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ConversionActionError ? (global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorEnum.Types.ConversionActionError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ConversionActionErrorEnum.Types.ConversionActionError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ConversionActionError; - } - } - - /// Field number for the "conversion_adjustment_upload_error" field. - public const int ConversionAdjustmentUploadErrorFieldNumber = 115; - /// - /// The reasons for the conversion adjustment upload error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorEnum.Types.ConversionAdjustmentUploadError ConversionAdjustmentUploadError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ConversionAdjustmentUploadError ? (global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorEnum.Types.ConversionAdjustmentUploadError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ConversionAdjustmentUploadErrorEnum.Types.ConversionAdjustmentUploadError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ConversionAdjustmentUploadError; - } - } - - /// Field number for the "conversion_custom_variable_error" field. - public const int ConversionCustomVariableErrorFieldNumber = 143; - /// - /// The reasons for the conversion custom variable error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorEnum.Types.ConversionCustomVariableError ConversionCustomVariableError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ConversionCustomVariableError ? (global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorEnum.Types.ConversionCustomVariableError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ConversionCustomVariableErrorEnum.Types.ConversionCustomVariableError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ConversionCustomVariableError; - } - } - - /// Field number for the "conversion_upload_error" field. - public const int ConversionUploadErrorFieldNumber = 111; - /// - /// The reasons for the conversion upload error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorEnum.Types.ConversionUploadError ConversionUploadError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ConversionUploadError ? (global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorEnum.Types.ConversionUploadError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ConversionUploadErrorEnum.Types.ConversionUploadError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ConversionUploadError; - } - } - - /// Field number for the "conversion_value_rule_error" field. - public const int ConversionValueRuleErrorFieldNumber = 145; - /// - /// The reasons for the conversion value rule error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorEnum.Types.ConversionValueRuleError ConversionValueRuleError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleError ? (global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorEnum.Types.ConversionValueRuleError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleErrorEnum.Types.ConversionValueRuleError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ConversionValueRuleError; - } - } - - /// Field number for the "conversion_value_rule_set_error" field. - public const int ConversionValueRuleSetErrorFieldNumber = 146; - /// - /// The reasons for the conversion value rule set error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorEnum.Types.ConversionValueRuleSetError ConversionValueRuleSetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleSetError ? (global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorEnum.Types.ConversionValueRuleSetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ConversionValueRuleSetErrorEnum.Types.ConversionValueRuleSetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ConversionValueRuleSetError; - } - } - - /// Field number for the "header_error" field. - public const int HeaderErrorFieldNumber = 66; - /// - /// The reasons for the header error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorEnum.Types.HeaderError HeaderError { - get { return errorCodeCase_ == ErrorCodeOneofCase.HeaderError ? (global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorEnum.Types.HeaderError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorEnum.Types.HeaderError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.HeaderError; - } - } - - /// Field number for the "database_error" field. - public const int DatabaseErrorFieldNumber = 67; - /// - /// The reasons for the database error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorEnum.Types.DatabaseError DatabaseError { - get { return errorCodeCase_ == ErrorCodeOneofCase.DatabaseError ? (global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorEnum.Types.DatabaseError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.DatabaseErrorEnum.Types.DatabaseError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.DatabaseError; - } - } - - /// Field number for the "policy_finding_error" field. - public const int PolicyFindingErrorFieldNumber = 68; - /// - /// The reasons for the policy finding error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingErrorEnum.Types.PolicyFindingError PolicyFindingError { - get { return errorCodeCase_ == ErrorCodeOneofCase.PolicyFindingError ? (global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingErrorEnum.Types.PolicyFindingError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingErrorEnum.Types.PolicyFindingError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.PolicyFindingError; - } - } - - /// Field number for the "enum_error" field. - public const int EnumErrorFieldNumber = 70; - /// - /// The reason for enum error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.EnumErrorEnum.Types.EnumError EnumError { - get { return errorCodeCase_ == ErrorCodeOneofCase.EnumError ? (global::Google.Ads.GoogleAds.V12.Errors.EnumErrorEnum.Types.EnumError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.EnumErrorEnum.Types.EnumError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.EnumError; - } - } - - /// Field number for the "keyword_plan_error" field. - public const int KeywordPlanErrorFieldNumber = 71; - /// - /// The reason for keyword plan error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorEnum.Types.KeywordPlanError KeywordPlanError { - get { return errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanError ? (global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorEnum.Types.KeywordPlanError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorEnum.Types.KeywordPlanError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanError; - } - } - - /// Field number for the "keyword_plan_campaign_error" field. - public const int KeywordPlanCampaignErrorFieldNumber = 72; - /// - /// The reason for keyword plan campaign error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorEnum.Types.KeywordPlanCampaignError KeywordPlanCampaignError { - get { return errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignError ? (global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorEnum.Types.KeywordPlanCampaignError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorEnum.Types.KeywordPlanCampaignError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanCampaignError; - } - } - - /// Field number for the "keyword_plan_campaign_keyword_error" field. - public const int KeywordPlanCampaignKeywordErrorFieldNumber = 132; - /// - /// The reason for keyword plan campaign keyword error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorEnum.Types.KeywordPlanCampaignKeywordError KeywordPlanCampaignKeywordError { - get { return errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignKeywordError ? (global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorEnum.Types.KeywordPlanCampaignKeywordError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorEnum.Types.KeywordPlanCampaignKeywordError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanCampaignKeywordError; - } - } - - /// Field number for the "keyword_plan_ad_group_error" field. - public const int KeywordPlanAdGroupErrorFieldNumber = 74; - /// - /// The reason for keyword plan ad group error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorEnum.Types.KeywordPlanAdGroupError KeywordPlanAdGroupError { - get { return errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupError ? (global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorEnum.Types.KeywordPlanAdGroupError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorEnum.Types.KeywordPlanAdGroupError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanAdGroupError; - } - } - - /// Field number for the "keyword_plan_ad_group_keyword_error" field. - public const int KeywordPlanAdGroupKeywordErrorFieldNumber = 133; - /// - /// The reason for keyword plan ad group keyword error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorEnum.Types.KeywordPlanAdGroupKeywordError KeywordPlanAdGroupKeywordError { - get { return errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError ? (global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorEnum.Types.KeywordPlanAdGroupKeywordError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorEnum.Types.KeywordPlanAdGroupKeywordError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError; - } - } - - /// Field number for the "keyword_plan_idea_error" field. - public const int KeywordPlanIdeaErrorFieldNumber = 76; - /// - /// The reason for keyword idea error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorEnum.Types.KeywordPlanIdeaError KeywordPlanIdeaError { - get { return errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanIdeaError ? (global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorEnum.Types.KeywordPlanIdeaError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorEnum.Types.KeywordPlanIdeaError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanIdeaError; - } - } - - /// Field number for the "account_budget_proposal_error" field. - public const int AccountBudgetProposalErrorFieldNumber = 77; - /// - /// The reasons for account budget proposal errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorEnum.Types.AccountBudgetProposalError AccountBudgetProposalError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AccountBudgetProposalError ? (global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorEnum.Types.AccountBudgetProposalError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AccountBudgetProposalErrorEnum.Types.AccountBudgetProposalError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AccountBudgetProposalError; - } - } - - /// Field number for the "user_list_error" field. - public const int UserListErrorFieldNumber = 78; - /// - /// The reasons for the user list error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.UserListErrorEnum.Types.UserListError UserListError { - get { return errorCodeCase_ == ErrorCodeOneofCase.UserListError ? (global::Google.Ads.GoogleAds.V12.Errors.UserListErrorEnum.Types.UserListError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.UserListErrorEnum.Types.UserListError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.UserListError; - } - } - - /// Field number for the "change_event_error" field. - public const int ChangeEventErrorFieldNumber = 136; - /// - /// The reasons for the change event error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorEnum.Types.ChangeEventError ChangeEventError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ChangeEventError ? (global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorEnum.Types.ChangeEventError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ChangeEventErrorEnum.Types.ChangeEventError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ChangeEventError; - } - } - - /// Field number for the "change_status_error" field. - public const int ChangeStatusErrorFieldNumber = 79; - /// - /// The reasons for the change status error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorEnum.Types.ChangeStatusError ChangeStatusError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ChangeStatusError ? (global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorEnum.Types.ChangeStatusError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ChangeStatusErrorEnum.Types.ChangeStatusError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ChangeStatusError; - } - } - - /// Field number for the "feed_error" field. - public const int FeedErrorFieldNumber = 80; - /// - /// The reasons for the feed error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedErrorEnum.Types.FeedError FeedError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedErrorEnum.Types.FeedError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedErrorEnum.Types.FeedError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedError; - } - } - - /// Field number for the "geo_target_constant_suggestion_error" field. - public const int GeoTargetConstantSuggestionErrorFieldNumber = 81; - /// - /// The reasons for the geo target constant suggestion error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorEnum.Types.GeoTargetConstantSuggestionError GeoTargetConstantSuggestionError { - get { return errorCodeCase_ == ErrorCodeOneofCase.GeoTargetConstantSuggestionError ? (global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorEnum.Types.GeoTargetConstantSuggestionError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorEnum.Types.GeoTargetConstantSuggestionError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.GeoTargetConstantSuggestionError; - } - } - - /// Field number for the "campaign_draft_error" field. - public const int CampaignDraftErrorFieldNumber = 82; - /// - /// The reasons for the campaign draft error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorEnum.Types.CampaignDraftError CampaignDraftError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignDraftError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorEnum.Types.CampaignDraftError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignDraftErrorEnum.Types.CampaignDraftError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignDraftError; - } - } - - /// Field number for the "feed_item_error" field. - public const int FeedItemErrorFieldNumber = 83; - /// - /// The reasons for the feed item error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorEnum.Types.FeedItemError FeedItemError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedItemError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorEnum.Types.FeedItemError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorEnum.Types.FeedItemError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedItemError; - } - } - - /// Field number for the "label_error" field. - public const int LabelErrorFieldNumber = 84; - /// - /// The reason for the label error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.LabelErrorEnum.Types.LabelError LabelError { - get { return errorCodeCase_ == ErrorCodeOneofCase.LabelError ? (global::Google.Ads.GoogleAds.V12.Errors.LabelErrorEnum.Types.LabelError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.LabelErrorEnum.Types.LabelError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.LabelError; - } - } - - /// Field number for the "billing_setup_error" field. - public const int BillingSetupErrorFieldNumber = 87; - /// - /// The reasons for the billing setup error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorEnum.Types.BillingSetupError BillingSetupError { - get { return errorCodeCase_ == ErrorCodeOneofCase.BillingSetupError ? (global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorEnum.Types.BillingSetupError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.BillingSetupErrorEnum.Types.BillingSetupError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.BillingSetupError; - } - } - - /// Field number for the "customer_client_link_error" field. - public const int CustomerClientLinkErrorFieldNumber = 88; - /// - /// The reasons for the customer client link error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorEnum.Types.CustomerClientLinkError CustomerClientLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomerClientLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorEnum.Types.CustomerClientLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomerClientLinkErrorEnum.Types.CustomerClientLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomerClientLinkError; - } - } - - /// Field number for the "customer_manager_link_error" field. - public const int CustomerManagerLinkErrorFieldNumber = 91; - /// - /// The reasons for the customer manager link error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorEnum.Types.CustomerManagerLinkError CustomerManagerLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomerManagerLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorEnum.Types.CustomerManagerLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomerManagerLinkErrorEnum.Types.CustomerManagerLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomerManagerLinkError; - } - } - - /// Field number for the "feed_mapping_error" field. - public const int FeedMappingErrorFieldNumber = 92; - /// - /// The reasons for the feed mapping error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorEnum.Types.FeedMappingError FeedMappingError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedMappingError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorEnum.Types.FeedMappingError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorEnum.Types.FeedMappingError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedMappingError; - } - } - - /// Field number for the "customer_feed_error" field. - public const int CustomerFeedErrorFieldNumber = 93; - /// - /// The reasons for the customer feed error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorEnum.Types.CustomerFeedError CustomerFeedError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomerFeedError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorEnum.Types.CustomerFeedError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomerFeedErrorEnum.Types.CustomerFeedError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomerFeedError; - } - } - - /// Field number for the "ad_group_feed_error" field. - public const int AdGroupFeedErrorFieldNumber = 94; - /// - /// The reasons for the ad group feed error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorEnum.Types.AdGroupFeedError AdGroupFeedError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdGroupFeedError ? (global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorEnum.Types.AdGroupFeedError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdGroupFeedErrorEnum.Types.AdGroupFeedError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdGroupFeedError; - } - } - - /// Field number for the "campaign_feed_error" field. - public const int CampaignFeedErrorFieldNumber = 96; - /// - /// The reasons for the campaign feed error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorEnum.Types.CampaignFeedError CampaignFeedError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignFeedError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorEnum.Types.CampaignFeedError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignFeedErrorEnum.Types.CampaignFeedError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignFeedError; - } - } - - /// Field number for the "custom_interest_error" field. - public const int CustomInterestErrorFieldNumber = 97; - /// - /// The reasons for the custom interest error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorEnum.Types.CustomInterestError CustomInterestError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomInterestError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorEnum.Types.CustomInterestError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomInterestErrorEnum.Types.CustomInterestError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomInterestError; - } - } - - /// Field number for the "campaign_experiment_error" field. - public const int CampaignExperimentErrorFieldNumber = 98; - /// - /// The reasons for the campaign experiment error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorEnum.Types.CampaignExperimentError CampaignExperimentError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CampaignExperimentError ? (global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorEnum.Types.CampaignExperimentError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CampaignExperimentErrorEnum.Types.CampaignExperimentError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CampaignExperimentError; - } - } - - /// Field number for the "extension_feed_item_error" field. - public const int ExtensionFeedItemErrorFieldNumber = 100; - /// - /// The reasons for the extension feed item error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorEnum.Types.ExtensionFeedItemError ExtensionFeedItemError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ExtensionFeedItemError ? (global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorEnum.Types.ExtensionFeedItemError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorEnum.Types.ExtensionFeedItemError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ExtensionFeedItemError; - } - } - - /// Field number for the "ad_parameter_error" field. - public const int AdParameterErrorFieldNumber = 101; - /// - /// The reasons for the ad parameter error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorEnum.Types.AdParameterError AdParameterError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AdParameterError ? (global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorEnum.Types.AdParameterError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AdParameterErrorEnum.Types.AdParameterError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AdParameterError; - } - } - - /// Field number for the "feed_item_validation_error" field. - public const int FeedItemValidationErrorFieldNumber = 102; - /// - /// The reasons for the feed item validation error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError FeedItemValidationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedItemValidationError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedItemValidationError; - } - } - - /// Field number for the "extension_setting_error" field. - public const int ExtensionSettingErrorFieldNumber = 103; - /// - /// The reasons for the extension setting error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorEnum.Types.ExtensionSettingError ExtensionSettingError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ExtensionSettingError ? (global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorEnum.Types.ExtensionSettingError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorEnum.Types.ExtensionSettingError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ExtensionSettingError; - } - } - - /// Field number for the "feed_item_set_error" field. - public const int FeedItemSetErrorFieldNumber = 140; - /// - /// The reasons for the feed item set error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorEnum.Types.FeedItemSetError FeedItemSetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorEnum.Types.FeedItemSetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorEnum.Types.FeedItemSetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedItemSetError; - } - } - - /// Field number for the "feed_item_set_link_error" field. - public const int FeedItemSetLinkErrorFieldNumber = 141; - /// - /// The reasons for the feed item set link error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorEnum.Types.FeedItemSetLinkError FeedItemSetLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorEnum.Types.FeedItemSetLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorEnum.Types.FeedItemSetLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedItemSetLinkError; - } - } - - /// Field number for the "feed_item_target_error" field. - public const int FeedItemTargetErrorFieldNumber = 104; - /// - /// The reasons for the feed item target error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorEnum.Types.FeedItemTargetError FeedItemTargetError { - get { return errorCodeCase_ == ErrorCodeOneofCase.FeedItemTargetError ? (global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorEnum.Types.FeedItemTargetError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorEnum.Types.FeedItemTargetError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.FeedItemTargetError; - } - } - - /// Field number for the "policy_violation_error" field. - public const int PolicyViolationErrorFieldNumber = 105; - /// - /// The reasons for the policy violation error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationErrorEnum.Types.PolicyViolationError PolicyViolationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.PolicyViolationError ? (global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationErrorEnum.Types.PolicyViolationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationErrorEnum.Types.PolicyViolationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.PolicyViolationError; - } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 112; - /// - /// The reasons for the mutate job error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.PartialFailureErrorEnum.Types.PartialFailureError PartialFailureError { - get { return errorCodeCase_ == ErrorCodeOneofCase.PartialFailureError ? (global::Google.Ads.GoogleAds.V12.Errors.PartialFailureErrorEnum.Types.PartialFailureError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.PartialFailureErrorEnum.Types.PartialFailureError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.PartialFailureError; - } - } - - /// Field number for the "policy_validation_parameter_error" field. - public const int PolicyValidationParameterErrorFieldNumber = 114; - /// - /// The reasons for the policy validation parameter error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.PolicyValidationParameterErrorEnum.Types.PolicyValidationParameterError PolicyValidationParameterError { - get { return errorCodeCase_ == ErrorCodeOneofCase.PolicyValidationParameterError ? (global::Google.Ads.GoogleAds.V12.Errors.PolicyValidationParameterErrorEnum.Types.PolicyValidationParameterError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.PolicyValidationParameterErrorEnum.Types.PolicyValidationParameterError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.PolicyValidationParameterError; - } - } - - /// Field number for the "size_limit_error" field. - public const int SizeLimitErrorFieldNumber = 118; - /// - /// The reasons for the size limit error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.SizeLimitErrorEnum.Types.SizeLimitError SizeLimitError { - get { return errorCodeCase_ == ErrorCodeOneofCase.SizeLimitError ? (global::Google.Ads.GoogleAds.V12.Errors.SizeLimitErrorEnum.Types.SizeLimitError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.SizeLimitErrorEnum.Types.SizeLimitError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.SizeLimitError; - } - } - - /// Field number for the "offline_user_data_job_error" field. - public const int OfflineUserDataJobErrorFieldNumber = 119; - /// - /// The reasons for the offline user data job error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.OfflineUserDataJobErrorEnum.Types.OfflineUserDataJobError OfflineUserDataJobError { - get { return errorCodeCase_ == ErrorCodeOneofCase.OfflineUserDataJobError ? (global::Google.Ads.GoogleAds.V12.Errors.OfflineUserDataJobErrorEnum.Types.OfflineUserDataJobError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.OfflineUserDataJobErrorEnum.Types.OfflineUserDataJobError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.OfflineUserDataJobError; - } - } - - /// Field number for the "not_allowlisted_error" field. - public const int NotAllowlistedErrorFieldNumber = 137; - /// - /// The reasons for the not allowlisted error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.NotAllowlistedErrorEnum.Types.NotAllowlistedError NotAllowlistedError { - get { return errorCodeCase_ == ErrorCodeOneofCase.NotAllowlistedError ? (global::Google.Ads.GoogleAds.V12.Errors.NotAllowlistedErrorEnum.Types.NotAllowlistedError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.NotAllowlistedErrorEnum.Types.NotAllowlistedError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.NotAllowlistedError; - } - } - - /// Field number for the "manager_link_error" field. - public const int ManagerLinkErrorFieldNumber = 121; - /// - /// The reasons for the manager link error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ManagerLinkErrorEnum.Types.ManagerLinkError ManagerLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ManagerLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.ManagerLinkErrorEnum.Types.ManagerLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ManagerLinkErrorEnum.Types.ManagerLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ManagerLinkError; - } - } - - /// Field number for the "currency_code_error" field. - public const int CurrencyCodeErrorFieldNumber = 122; - /// - /// The reasons for the currency code error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorEnum.Types.CurrencyCodeError CurrencyCodeError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CurrencyCodeError ? (global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorEnum.Types.CurrencyCodeError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CurrencyCodeErrorEnum.Types.CurrencyCodeError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CurrencyCodeError; - } - } - - /// Field number for the "experiment_error" field. - public const int ExperimentErrorFieldNumber = 123; - /// - /// The reasons for the experiment error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorEnum.Types.ExperimentError ExperimentError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ExperimentError ? (global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorEnum.Types.ExperimentError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorEnum.Types.ExperimentError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ExperimentError; - } - } - - /// Field number for the "access_invitation_error" field. - public const int AccessInvitationErrorFieldNumber = 124; - /// - /// The reasons for the access invitation error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorEnum.Types.AccessInvitationError AccessInvitationError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AccessInvitationError ? (global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorEnum.Types.AccessInvitationError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AccessInvitationErrorEnum.Types.AccessInvitationError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AccessInvitationError; - } - } - - /// Field number for the "reach_plan_error" field. - public const int ReachPlanErrorFieldNumber = 125; - /// - /// The reasons for the reach plan error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ReachPlanErrorEnum.Types.ReachPlanError ReachPlanError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ReachPlanError ? (global::Google.Ads.GoogleAds.V12.Errors.ReachPlanErrorEnum.Types.ReachPlanError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ReachPlanErrorEnum.Types.ReachPlanError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ReachPlanError; - } - } - - /// Field number for the "invoice_error" field. - public const int InvoiceErrorFieldNumber = 126; - /// - /// The reasons for the invoice error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorEnum.Types.InvoiceError InvoiceError { - get { return errorCodeCase_ == ErrorCodeOneofCase.InvoiceError ? (global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorEnum.Types.InvoiceError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorEnum.Types.InvoiceError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.InvoiceError; - } - } - - /// Field number for the "payments_account_error" field. - public const int PaymentsAccountErrorFieldNumber = 127; - /// - /// The reasons for errors in payments accounts service - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.PaymentsAccountErrorEnum.Types.PaymentsAccountError PaymentsAccountError { - get { return errorCodeCase_ == ErrorCodeOneofCase.PaymentsAccountError ? (global::Google.Ads.GoogleAds.V12.Errors.PaymentsAccountErrorEnum.Types.PaymentsAccountError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.PaymentsAccountErrorEnum.Types.PaymentsAccountError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.PaymentsAccountError; - } - } - - /// Field number for the "time_zone_error" field. - public const int TimeZoneErrorFieldNumber = 128; - /// - /// The reasons for the time zone error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.TimeZoneErrorEnum.Types.TimeZoneError TimeZoneError { - get { return errorCodeCase_ == ErrorCodeOneofCase.TimeZoneError ? (global::Google.Ads.GoogleAds.V12.Errors.TimeZoneErrorEnum.Types.TimeZoneError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.TimeZoneErrorEnum.Types.TimeZoneError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.TimeZoneError; - } - } - - /// Field number for the "asset_link_error" field. - public const int AssetLinkErrorFieldNumber = 129; - /// - /// The reasons for the asset link error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorEnum.Types.AssetLinkError AssetLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AssetLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorEnum.Types.AssetLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AssetLinkErrorEnum.Types.AssetLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AssetLinkError; - } - } - - /// Field number for the "user_data_error" field. - public const int UserDataErrorFieldNumber = 130; - /// - /// The reasons for the user data error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.UserDataErrorEnum.Types.UserDataError UserDataError { - get { return errorCodeCase_ == ErrorCodeOneofCase.UserDataError ? (global::Google.Ads.GoogleAds.V12.Errors.UserDataErrorEnum.Types.UserDataError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.UserDataErrorEnum.Types.UserDataError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.UserDataError; - } - } - - /// Field number for the "batch_job_error" field. - public const int BatchJobErrorFieldNumber = 131; - /// - /// The reasons for the batch job error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorEnum.Types.BatchJobError BatchJobError { - get { return errorCodeCase_ == ErrorCodeOneofCase.BatchJobError ? (global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorEnum.Types.BatchJobError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.BatchJobErrorEnum.Types.BatchJobError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.BatchJobError; - } - } - - /// Field number for the "account_link_error" field. - public const int AccountLinkErrorFieldNumber = 134; - /// - /// The reasons for the account link status change error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorEnum.Types.AccountLinkError AccountLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AccountLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorEnum.Types.AccountLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AccountLinkErrorEnum.Types.AccountLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AccountLinkError; - } - } - - /// Field number for the "third_party_app_analytics_link_error" field. - public const int ThirdPartyAppAnalyticsLinkErrorFieldNumber = 135; - /// - /// The reasons for the third party app analytics link mutate error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ThirdPartyAppAnalyticsLinkErrorEnum.Types.ThirdPartyAppAnalyticsLinkError ThirdPartyAppAnalyticsLinkError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError ? (global::Google.Ads.GoogleAds.V12.Errors.ThirdPartyAppAnalyticsLinkErrorEnum.Types.ThirdPartyAppAnalyticsLinkError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ThirdPartyAppAnalyticsLinkErrorEnum.Types.ThirdPartyAppAnalyticsLinkError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError; - } - } - - /// Field number for the "customer_user_access_error" field. - public const int CustomerUserAccessErrorFieldNumber = 138; - /// - /// The reasons for the customer user access mutate error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorEnum.Types.CustomerUserAccessError CustomerUserAccessError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomerUserAccessError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorEnum.Types.CustomerUserAccessError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomerUserAccessErrorEnum.Types.CustomerUserAccessError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomerUserAccessError; - } - } - - /// Field number for the "custom_audience_error" field. - public const int CustomAudienceErrorFieldNumber = 139; - /// - /// The reasons for the custom audience error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorEnum.Types.CustomAudienceError CustomAudienceError { - get { return errorCodeCase_ == ErrorCodeOneofCase.CustomAudienceError ? (global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorEnum.Types.CustomAudienceError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.CustomAudienceErrorEnum.Types.CustomAudienceError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.CustomAudienceError; - } - } - - /// Field number for the "audience_error" field. - public const int AudienceErrorFieldNumber = 164; - /// - /// The reasons for the audience error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorEnum.Types.AudienceError AudienceError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AudienceError ? (global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorEnum.Types.AudienceError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AudienceErrorEnum.Types.AudienceError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AudienceError; - } - } - - /// Field number for the "smart_campaign_error" field. - public const int SmartCampaignErrorFieldNumber = 147; - /// - /// The reasons for the Smart campaign error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.SmartCampaignErrorEnum.Types.SmartCampaignError SmartCampaignError { - get { return errorCodeCase_ == ErrorCodeOneofCase.SmartCampaignError ? (global::Google.Ads.GoogleAds.V12.Errors.SmartCampaignErrorEnum.Types.SmartCampaignError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.SmartCampaignErrorEnum.Types.SmartCampaignError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.SmartCampaignError; - } - } - - /// Field number for the "experiment_arm_error" field. - public const int ExperimentArmErrorFieldNumber = 156; - /// - /// The reasons for the experiment arm error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorEnum.Types.ExperimentArmError ExperimentArmError { - get { return errorCodeCase_ == ErrorCodeOneofCase.ExperimentArmError ? (global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorEnum.Types.ExperimentArmError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorEnum.Types.ExperimentArmError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.ExperimentArmError; - } - } - - /// Field number for the "audience_insights_error" field. - public const int AudienceInsightsErrorFieldNumber = 167; - /// - /// The reasons for the Audience Insights error - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorEnum.Types.AudienceInsightsError AudienceInsightsError { - get { return errorCodeCase_ == ErrorCodeOneofCase.AudienceInsightsError ? (global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorEnum.Types.AudienceInsightsError) errorCode_ : global::Google.Ads.GoogleAds.V12.Errors.AudienceInsightsErrorEnum.Types.AudienceInsightsError.Unspecified; } - set { - errorCode_ = value; - errorCodeCase_ = ErrorCodeOneofCase.AudienceInsightsError; - } - } - - private object errorCode_; - /// Enum of possible cases for the "error_code" oneof. - public enum ErrorCodeOneofCase { - None = 0, - RequestError = 1, - BiddingStrategyError = 2, - UrlFieldError = 3, - ListOperationError = 4, - QueryError = 5, - MutateError = 7, - FieldMaskError = 8, - AuthorizationError = 9, - InternalError = 10, - QuotaError = 11, - AdError = 12, - AdGroupError = 13, - CampaignBudgetError = 14, - CampaignError = 15, - AuthenticationError = 17, - AdGroupCriterionCustomizerError = 161, - AdGroupCriterionError = 18, - AdGroupCustomizerError = 159, - AdCustomizerError = 19, - AdGroupAdError = 21, - AdSharingError = 24, - AdxError = 25, - AssetError = 107, - AssetGroupAssetError = 149, - AssetGroupListingGroupFilterError = 155, - AssetGroupError = 148, - AssetSetAssetError = 153, - AssetSetLinkError = 154, - AssetSetError = 152, - BiddingError = 26, - CampaignCriterionError = 29, - CampaignConversionGoalError = 166, - CampaignCustomizerError = 160, - CollectionSizeError = 31, - ConversionGoalCampaignConfigError = 165, - CountryCodeError = 109, - CriterionError = 32, - CustomConversionGoalError = 150, - CustomerCustomizerError = 158, - CustomerError = 90, - CustomizerAttributeError = 151, - DateError = 33, - DateRangeError = 34, - DistinctError = 35, - FeedAttributeReferenceError = 36, - FunctionError = 37, - FunctionParsingError = 38, - IdError = 39, - ImageError = 40, - LanguageCodeError = 110, - MediaBundleError = 42, - MediaUploadError = 116, - MediaFileError = 86, - MerchantCenterError = 162, - MultiplierError = 44, - NewResourceCreationError = 45, - NotEmptyError = 46, - NullError = 47, - OperatorError = 48, - RangeError = 49, - RecommendationError = 58, - RegionCodeError = 51, - SettingError = 52, - StringFormatError = 53, - StringLengthError = 54, - OperationAccessDeniedError = 55, - ResourceAccessDeniedError = 56, - ResourceCountLimitExceededError = 57, - YoutubeVideoRegistrationError = 117, - AdGroupBidModifierError = 59, - ContextError = 60, - FieldError = 61, - SharedSetError = 62, - SharedCriterionError = 63, - CampaignSharedSetError = 64, - ConversionActionError = 65, - ConversionAdjustmentUploadError = 115, - ConversionCustomVariableError = 143, - ConversionUploadError = 111, - ConversionValueRuleError = 145, - ConversionValueRuleSetError = 146, - HeaderError = 66, - DatabaseError = 67, - PolicyFindingError = 68, - EnumError = 70, - KeywordPlanError = 71, - KeywordPlanCampaignError = 72, - KeywordPlanCampaignKeywordError = 132, - KeywordPlanAdGroupError = 74, - KeywordPlanAdGroupKeywordError = 133, - KeywordPlanIdeaError = 76, - AccountBudgetProposalError = 77, - UserListError = 78, - ChangeEventError = 136, - ChangeStatusError = 79, - FeedError = 80, - GeoTargetConstantSuggestionError = 81, - CampaignDraftError = 82, - FeedItemError = 83, - LabelError = 84, - BillingSetupError = 87, - CustomerClientLinkError = 88, - CustomerManagerLinkError = 91, - FeedMappingError = 92, - CustomerFeedError = 93, - AdGroupFeedError = 94, - CampaignFeedError = 96, - CustomInterestError = 97, - CampaignExperimentError = 98, - ExtensionFeedItemError = 100, - AdParameterError = 101, - FeedItemValidationError = 102, - ExtensionSettingError = 103, - FeedItemSetError = 140, - FeedItemSetLinkError = 141, - FeedItemTargetError = 104, - PolicyViolationError = 105, - PartialFailureError = 112, - PolicyValidationParameterError = 114, - SizeLimitError = 118, - OfflineUserDataJobError = 119, - NotAllowlistedError = 137, - ManagerLinkError = 121, - CurrencyCodeError = 122, - ExperimentError = 123, - AccessInvitationError = 124, - ReachPlanError = 125, - InvoiceError = 126, - PaymentsAccountError = 127, - TimeZoneError = 128, - AssetLinkError = 129, - UserDataError = 130, - BatchJobError = 131, - AccountLinkError = 134, - ThirdPartyAppAnalyticsLinkError = 135, - CustomerUserAccessError = 138, - CustomAudienceError = 139, - AudienceError = 164, - SmartCampaignError = 147, - ExperimentArmError = 156, - AudienceInsightsError = 167, - } - private ErrorCodeOneofCase errorCodeCase_ = ErrorCodeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorCodeOneofCase ErrorCodeCase { - get { return errorCodeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearErrorCode() { - errorCodeCase_ = ErrorCodeOneofCase.None; - errorCode_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ErrorCode); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ErrorCode other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RequestError != other.RequestError) return false; - if (BiddingStrategyError != other.BiddingStrategyError) return false; - if (UrlFieldError != other.UrlFieldError) return false; - if (ListOperationError != other.ListOperationError) return false; - if (QueryError != other.QueryError) return false; - if (MutateError != other.MutateError) return false; - if (FieldMaskError != other.FieldMaskError) return false; - if (AuthorizationError != other.AuthorizationError) return false; - if (InternalError != other.InternalError) return false; - if (QuotaError != other.QuotaError) return false; - if (AdError != other.AdError) return false; - if (AdGroupError != other.AdGroupError) return false; - if (CampaignBudgetError != other.CampaignBudgetError) return false; - if (CampaignError != other.CampaignError) return false; - if (AuthenticationError != other.AuthenticationError) return false; - if (AdGroupCriterionCustomizerError != other.AdGroupCriterionCustomizerError) return false; - if (AdGroupCriterionError != other.AdGroupCriterionError) return false; - if (AdGroupCustomizerError != other.AdGroupCustomizerError) return false; - if (AdCustomizerError != other.AdCustomizerError) return false; - if (AdGroupAdError != other.AdGroupAdError) return false; - if (AdSharingError != other.AdSharingError) return false; - if (AdxError != other.AdxError) return false; - if (AssetError != other.AssetError) return false; - if (AssetGroupAssetError != other.AssetGroupAssetError) return false; - if (AssetGroupListingGroupFilterError != other.AssetGroupListingGroupFilterError) return false; - if (AssetGroupError != other.AssetGroupError) return false; - if (AssetSetAssetError != other.AssetSetAssetError) return false; - if (AssetSetLinkError != other.AssetSetLinkError) return false; - if (AssetSetError != other.AssetSetError) return false; - if (BiddingError != other.BiddingError) return false; - if (CampaignCriterionError != other.CampaignCriterionError) return false; - if (CampaignConversionGoalError != other.CampaignConversionGoalError) return false; - if (CampaignCustomizerError != other.CampaignCustomizerError) return false; - if (CollectionSizeError != other.CollectionSizeError) return false; - if (ConversionGoalCampaignConfigError != other.ConversionGoalCampaignConfigError) return false; - if (CountryCodeError != other.CountryCodeError) return false; - if (CriterionError != other.CriterionError) return false; - if (CustomConversionGoalError != other.CustomConversionGoalError) return false; - if (CustomerCustomizerError != other.CustomerCustomizerError) return false; - if (CustomerError != other.CustomerError) return false; - if (CustomizerAttributeError != other.CustomizerAttributeError) return false; - if (DateError != other.DateError) return false; - if (DateRangeError != other.DateRangeError) return false; - if (DistinctError != other.DistinctError) return false; - if (FeedAttributeReferenceError != other.FeedAttributeReferenceError) return false; - if (FunctionError != other.FunctionError) return false; - if (FunctionParsingError != other.FunctionParsingError) return false; - if (IdError != other.IdError) return false; - if (ImageError != other.ImageError) return false; - if (LanguageCodeError != other.LanguageCodeError) return false; - if (MediaBundleError != other.MediaBundleError) return false; - if (MediaUploadError != other.MediaUploadError) return false; - if (MediaFileError != other.MediaFileError) return false; - if (MerchantCenterError != other.MerchantCenterError) return false; - if (MultiplierError != other.MultiplierError) return false; - if (NewResourceCreationError != other.NewResourceCreationError) return false; - if (NotEmptyError != other.NotEmptyError) return false; - if (NullError != other.NullError) return false; - if (OperatorError != other.OperatorError) return false; - if (RangeError != other.RangeError) return false; - if (RecommendationError != other.RecommendationError) return false; - if (RegionCodeError != other.RegionCodeError) return false; - if (SettingError != other.SettingError) return false; - if (StringFormatError != other.StringFormatError) return false; - if (StringLengthError != other.StringLengthError) return false; - if (OperationAccessDeniedError != other.OperationAccessDeniedError) return false; - if (ResourceAccessDeniedError != other.ResourceAccessDeniedError) return false; - if (ResourceCountLimitExceededError != other.ResourceCountLimitExceededError) return false; - if (YoutubeVideoRegistrationError != other.YoutubeVideoRegistrationError) return false; - if (AdGroupBidModifierError != other.AdGroupBidModifierError) return false; - if (ContextError != other.ContextError) return false; - if (FieldError != other.FieldError) return false; - if (SharedSetError != other.SharedSetError) return false; - if (SharedCriterionError != other.SharedCriterionError) return false; - if (CampaignSharedSetError != other.CampaignSharedSetError) return false; - if (ConversionActionError != other.ConversionActionError) return false; - if (ConversionAdjustmentUploadError != other.ConversionAdjustmentUploadError) return false; - if (ConversionCustomVariableError != other.ConversionCustomVariableError) return false; - if (ConversionUploadError != other.ConversionUploadError) return false; - if (ConversionValueRuleError != other.ConversionValueRuleError) return false; - if (ConversionValueRuleSetError != other.ConversionValueRuleSetError) return false; - if (HeaderError != other.HeaderError) return false; - if (DatabaseError != other.DatabaseError) return false; - if (PolicyFindingError != other.PolicyFindingError) return false; - if (EnumError != other.EnumError) return false; - if (KeywordPlanError != other.KeywordPlanError) return false; - if (KeywordPlanCampaignError != other.KeywordPlanCampaignError) return false; - if (KeywordPlanCampaignKeywordError != other.KeywordPlanCampaignKeywordError) return false; - if (KeywordPlanAdGroupError != other.KeywordPlanAdGroupError) return false; - if (KeywordPlanAdGroupKeywordError != other.KeywordPlanAdGroupKeywordError) return false; - if (KeywordPlanIdeaError != other.KeywordPlanIdeaError) return false; - if (AccountBudgetProposalError != other.AccountBudgetProposalError) return false; - if (UserListError != other.UserListError) return false; - if (ChangeEventError != other.ChangeEventError) return false; - if (ChangeStatusError != other.ChangeStatusError) return false; - if (FeedError != other.FeedError) return false; - if (GeoTargetConstantSuggestionError != other.GeoTargetConstantSuggestionError) return false; - if (CampaignDraftError != other.CampaignDraftError) return false; - if (FeedItemError != other.FeedItemError) return false; - if (LabelError != other.LabelError) return false; - if (BillingSetupError != other.BillingSetupError) return false; - if (CustomerClientLinkError != other.CustomerClientLinkError) return false; - if (CustomerManagerLinkError != other.CustomerManagerLinkError) return false; - if (FeedMappingError != other.FeedMappingError) return false; - if (CustomerFeedError != other.CustomerFeedError) return false; - if (AdGroupFeedError != other.AdGroupFeedError) return false; - if (CampaignFeedError != other.CampaignFeedError) return false; - if (CustomInterestError != other.CustomInterestError) return false; - if (CampaignExperimentError != other.CampaignExperimentError) return false; - if (ExtensionFeedItemError != other.ExtensionFeedItemError) return false; - if (AdParameterError != other.AdParameterError) return false; - if (FeedItemValidationError != other.FeedItemValidationError) return false; - if (ExtensionSettingError != other.ExtensionSettingError) return false; - if (FeedItemSetError != other.FeedItemSetError) return false; - if (FeedItemSetLinkError != other.FeedItemSetLinkError) return false; - if (FeedItemTargetError != other.FeedItemTargetError) return false; - if (PolicyViolationError != other.PolicyViolationError) return false; - if (PartialFailureError != other.PartialFailureError) return false; - if (PolicyValidationParameterError != other.PolicyValidationParameterError) return false; - if (SizeLimitError != other.SizeLimitError) return false; - if (OfflineUserDataJobError != other.OfflineUserDataJobError) return false; - if (NotAllowlistedError != other.NotAllowlistedError) return false; - if (ManagerLinkError != other.ManagerLinkError) return false; - if (CurrencyCodeError != other.CurrencyCodeError) return false; - if (ExperimentError != other.ExperimentError) return false; - if (AccessInvitationError != other.AccessInvitationError) return false; - if (ReachPlanError != other.ReachPlanError) return false; - if (InvoiceError != other.InvoiceError) return false; - if (PaymentsAccountError != other.PaymentsAccountError) return false; - if (TimeZoneError != other.TimeZoneError) return false; - if (AssetLinkError != other.AssetLinkError) return false; - if (UserDataError != other.UserDataError) return false; - if (BatchJobError != other.BatchJobError) return false; - if (AccountLinkError != other.AccountLinkError) return false; - if (ThirdPartyAppAnalyticsLinkError != other.ThirdPartyAppAnalyticsLinkError) return false; - if (CustomerUserAccessError != other.CustomerUserAccessError) return false; - if (CustomAudienceError != other.CustomAudienceError) return false; - if (AudienceError != other.AudienceError) return false; - if (SmartCampaignError != other.SmartCampaignError) return false; - if (ExperimentArmError != other.ExperimentArmError) return false; - if (AudienceInsightsError != other.AudienceInsightsError) return false; - if (ErrorCodeCase != other.ErrorCodeCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (errorCodeCase_ == ErrorCodeOneofCase.RequestError) hash ^= RequestError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingStrategyError) hash ^= BiddingStrategyError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.UrlFieldError) hash ^= UrlFieldError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ListOperationError) hash ^= ListOperationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.QueryError) hash ^= QueryError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.MutateError) hash ^= MutateError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FieldMaskError) hash ^= FieldMaskError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AuthorizationError) hash ^= AuthorizationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.InternalError) hash ^= InternalError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.QuotaError) hash ^= QuotaError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdError) hash ^= AdError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupError) hash ^= AdGroupError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignBudgetError) hash ^= CampaignBudgetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignError) hash ^= CampaignError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AuthenticationError) hash ^= AuthenticationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionCustomizerError) hash ^= AdGroupCriterionCustomizerError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionError) hash ^= AdGroupCriterionError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCustomizerError) hash ^= AdGroupCustomizerError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdCustomizerError) hash ^= AdCustomizerError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupAdError) hash ^= AdGroupAdError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdSharingError) hash ^= AdSharingError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdxError) hash ^= AdxError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetError) hash ^= AssetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupAssetError) hash ^= AssetGroupAssetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupListingGroupFilterError) hash ^= AssetGroupListingGroupFilterError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupError) hash ^= AssetGroupError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetAssetError) hash ^= AssetSetAssetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetLinkError) hash ^= AssetSetLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetError) hash ^= AssetSetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingError) hash ^= BiddingError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCriterionError) hash ^= CampaignCriterionError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignConversionGoalError) hash ^= CampaignConversionGoalError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCustomizerError) hash ^= CampaignCustomizerError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CollectionSizeError) hash ^= CollectionSizeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionGoalCampaignConfigError) hash ^= ConversionGoalCampaignConfigError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CountryCodeError) hash ^= CountryCodeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CriterionError) hash ^= CriterionError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomConversionGoalError) hash ^= CustomConversionGoalError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerCustomizerError) hash ^= CustomerCustomizerError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerError) hash ^= CustomerError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomizerAttributeError) hash ^= CustomizerAttributeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.DateError) hash ^= DateError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.DateRangeError) hash ^= DateRangeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.DistinctError) hash ^= DistinctError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedAttributeReferenceError) hash ^= FeedAttributeReferenceError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionError) hash ^= FunctionError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionParsingError) hash ^= FunctionParsingError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.IdError) hash ^= IdError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ImageError) hash ^= ImageError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.LanguageCodeError) hash ^= LanguageCodeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.MediaBundleError) hash ^= MediaBundleError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.MediaUploadError) hash ^= MediaUploadError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.MediaFileError) hash ^= MediaFileError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.MerchantCenterError) hash ^= MerchantCenterError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.MultiplierError) hash ^= MultiplierError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.NewResourceCreationError) hash ^= NewResourceCreationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.NotEmptyError) hash ^= NotEmptyError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.NullError) hash ^= NullError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.OperatorError) hash ^= OperatorError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.RangeError) hash ^= RangeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.RecommendationError) hash ^= RecommendationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.RegionCodeError) hash ^= RegionCodeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.SettingError) hash ^= SettingError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.StringFormatError) hash ^= StringFormatError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.StringLengthError) hash ^= StringLengthError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.OperationAccessDeniedError) hash ^= OperationAccessDeniedError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceAccessDeniedError) hash ^= ResourceAccessDeniedError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceCountLimitExceededError) hash ^= ResourceCountLimitExceededError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.YoutubeVideoRegistrationError) hash ^= YoutubeVideoRegistrationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupBidModifierError) hash ^= AdGroupBidModifierError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ContextError) hash ^= ContextError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FieldError) hash ^= FieldError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.SharedSetError) hash ^= SharedSetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.SharedCriterionError) hash ^= SharedCriterionError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignSharedSetError) hash ^= CampaignSharedSetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionActionError) hash ^= ConversionActionError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionAdjustmentUploadError) hash ^= ConversionAdjustmentUploadError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionCustomVariableError) hash ^= ConversionCustomVariableError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionUploadError) hash ^= ConversionUploadError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleError) hash ^= ConversionValueRuleError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleSetError) hash ^= ConversionValueRuleSetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.HeaderError) hash ^= HeaderError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.DatabaseError) hash ^= DatabaseError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyFindingError) hash ^= PolicyFindingError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.EnumError) hash ^= EnumError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanError) hash ^= KeywordPlanError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignError) hash ^= KeywordPlanCampaignError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignKeywordError) hash ^= KeywordPlanCampaignKeywordError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupError) hash ^= KeywordPlanAdGroupError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError) hash ^= KeywordPlanAdGroupKeywordError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanIdeaError) hash ^= KeywordPlanIdeaError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AccountBudgetProposalError) hash ^= AccountBudgetProposalError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.UserListError) hash ^= UserListError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeEventError) hash ^= ChangeEventError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeStatusError) hash ^= ChangeStatusError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedError) hash ^= FeedError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.GeoTargetConstantSuggestionError) hash ^= GeoTargetConstantSuggestionError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignDraftError) hash ^= CampaignDraftError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemError) hash ^= FeedItemError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.LabelError) hash ^= LabelError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.BillingSetupError) hash ^= BillingSetupError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerClientLinkError) hash ^= CustomerClientLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerManagerLinkError) hash ^= CustomerManagerLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedMappingError) hash ^= FeedMappingError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerFeedError) hash ^= CustomerFeedError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupFeedError) hash ^= AdGroupFeedError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignFeedError) hash ^= CampaignFeedError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomInterestError) hash ^= CustomInterestError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignExperimentError) hash ^= CampaignExperimentError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionFeedItemError) hash ^= ExtensionFeedItemError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AdParameterError) hash ^= AdParameterError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemValidationError) hash ^= FeedItemValidationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionSettingError) hash ^= ExtensionSettingError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetError) hash ^= FeedItemSetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetLinkError) hash ^= FeedItemSetLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemTargetError) hash ^= FeedItemTargetError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyViolationError) hash ^= PolicyViolationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.PartialFailureError) hash ^= PartialFailureError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyValidationParameterError) hash ^= PolicyValidationParameterError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.SizeLimitError) hash ^= SizeLimitError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.OfflineUserDataJobError) hash ^= OfflineUserDataJobError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.NotAllowlistedError) hash ^= NotAllowlistedError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ManagerLinkError) hash ^= ManagerLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CurrencyCodeError) hash ^= CurrencyCodeError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentError) hash ^= ExperimentError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AccessInvitationError) hash ^= AccessInvitationError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ReachPlanError) hash ^= ReachPlanError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.InvoiceError) hash ^= InvoiceError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.PaymentsAccountError) hash ^= PaymentsAccountError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.TimeZoneError) hash ^= TimeZoneError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AssetLinkError) hash ^= AssetLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.UserDataError) hash ^= UserDataError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.BatchJobError) hash ^= BatchJobError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AccountLinkError) hash ^= AccountLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError) hash ^= ThirdPartyAppAnalyticsLinkError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerUserAccessError) hash ^= CustomerUserAccessError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.CustomAudienceError) hash ^= CustomAudienceError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceError) hash ^= AudienceError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.SmartCampaignError) hash ^= SmartCampaignError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentArmError) hash ^= ExperimentArmError.GetHashCode(); - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceInsightsError) hash ^= AudienceInsightsError.GetHashCode(); - hash ^= (int) errorCodeCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (errorCodeCase_ == ErrorCodeOneofCase.RequestError) { - output.WriteRawTag(8); - output.WriteEnum((int) RequestError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingStrategyError) { - output.WriteRawTag(16); - output.WriteEnum((int) BiddingStrategyError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UrlFieldError) { - output.WriteRawTag(24); - output.WriteEnum((int) UrlFieldError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ListOperationError) { - output.WriteRawTag(32); - output.WriteEnum((int) ListOperationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.QueryError) { - output.WriteRawTag(40); - output.WriteEnum((int) QueryError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MutateError) { - output.WriteRawTag(56); - output.WriteEnum((int) MutateError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FieldMaskError) { - output.WriteRawTag(64); - output.WriteEnum((int) FieldMaskError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AuthorizationError) { - output.WriteRawTag(72); - output.WriteEnum((int) AuthorizationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.InternalError) { - output.WriteRawTag(80); - output.WriteEnum((int) InternalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.QuotaError) { - output.WriteRawTag(88); - output.WriteEnum((int) QuotaError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdError) { - output.WriteRawTag(96); - output.WriteEnum((int) AdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupError) { - output.WriteRawTag(104); - output.WriteEnum((int) AdGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignBudgetError) { - output.WriteRawTag(112); - output.WriteEnum((int) CampaignBudgetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignError) { - output.WriteRawTag(120); - output.WriteEnum((int) CampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AuthenticationError) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) AuthenticationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionError) { - output.WriteRawTag(144, 1); - output.WriteEnum((int) AdGroupCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdCustomizerError) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) AdCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupAdError) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) AdGroupAdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdSharingError) { - output.WriteRawTag(192, 1); - output.WriteEnum((int) AdSharingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdxError) { - output.WriteRawTag(200, 1); - output.WriteEnum((int) AdxError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingError) { - output.WriteRawTag(208, 1); - output.WriteEnum((int) BiddingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCriterionError) { - output.WriteRawTag(232, 1); - output.WriteEnum((int) CampaignCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CollectionSizeError) { - output.WriteRawTag(248, 1); - output.WriteEnum((int) CollectionSizeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CriterionError) { - output.WriteRawTag(128, 2); - output.WriteEnum((int) CriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DateError) { - output.WriteRawTag(136, 2); - output.WriteEnum((int) DateError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DateRangeError) { - output.WriteRawTag(144, 2); - output.WriteEnum((int) DateRangeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DistinctError) { - output.WriteRawTag(152, 2); - output.WriteEnum((int) DistinctError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedAttributeReferenceError) { - output.WriteRawTag(160, 2); - output.WriteEnum((int) FeedAttributeReferenceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionError) { - output.WriteRawTag(168, 2); - output.WriteEnum((int) FunctionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionParsingError) { - output.WriteRawTag(176, 2); - output.WriteEnum((int) FunctionParsingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.IdError) { - output.WriteRawTag(184, 2); - output.WriteEnum((int) IdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ImageError) { - output.WriteRawTag(192, 2); - output.WriteEnum((int) ImageError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaBundleError) { - output.WriteRawTag(208, 2); - output.WriteEnum((int) MediaBundleError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MultiplierError) { - output.WriteRawTag(224, 2); - output.WriteEnum((int) MultiplierError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NewResourceCreationError) { - output.WriteRawTag(232, 2); - output.WriteEnum((int) NewResourceCreationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NotEmptyError) { - output.WriteRawTag(240, 2); - output.WriteEnum((int) NotEmptyError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NullError) { - output.WriteRawTag(248, 2); - output.WriteEnum((int) NullError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OperatorError) { - output.WriteRawTag(128, 3); - output.WriteEnum((int) OperatorError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RangeError) { - output.WriteRawTag(136, 3); - output.WriteEnum((int) RangeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RegionCodeError) { - output.WriteRawTag(152, 3); - output.WriteEnum((int) RegionCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SettingError) { - output.WriteRawTag(160, 3); - output.WriteEnum((int) SettingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.StringFormatError) { - output.WriteRawTag(168, 3); - output.WriteEnum((int) StringFormatError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.StringLengthError) { - output.WriteRawTag(176, 3); - output.WriteEnum((int) StringLengthError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OperationAccessDeniedError) { - output.WriteRawTag(184, 3); - output.WriteEnum((int) OperationAccessDeniedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceAccessDeniedError) { - output.WriteRawTag(192, 3); - output.WriteEnum((int) ResourceAccessDeniedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceCountLimitExceededError) { - output.WriteRawTag(200, 3); - output.WriteEnum((int) ResourceCountLimitExceededError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RecommendationError) { - output.WriteRawTag(208, 3); - output.WriteEnum((int) RecommendationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupBidModifierError) { - output.WriteRawTag(216, 3); - output.WriteEnum((int) AdGroupBidModifierError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ContextError) { - output.WriteRawTag(224, 3); - output.WriteEnum((int) ContextError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FieldError) { - output.WriteRawTag(232, 3); - output.WriteEnum((int) FieldError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SharedSetError) { - output.WriteRawTag(240, 3); - output.WriteEnum((int) SharedSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SharedCriterionError) { - output.WriteRawTag(248, 3); - output.WriteEnum((int) SharedCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignSharedSetError) { - output.WriteRawTag(128, 4); - output.WriteEnum((int) CampaignSharedSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionActionError) { - output.WriteRawTag(136, 4); - output.WriteEnum((int) ConversionActionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.HeaderError) { - output.WriteRawTag(144, 4); - output.WriteEnum((int) HeaderError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DatabaseError) { - output.WriteRawTag(152, 4); - output.WriteEnum((int) DatabaseError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyFindingError) { - output.WriteRawTag(160, 4); - output.WriteEnum((int) PolicyFindingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.EnumError) { - output.WriteRawTag(176, 4); - output.WriteEnum((int) EnumError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanError) { - output.WriteRawTag(184, 4); - output.WriteEnum((int) KeywordPlanError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignError) { - output.WriteRawTag(192, 4); - output.WriteEnum((int) KeywordPlanCampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupError) { - output.WriteRawTag(208, 4); - output.WriteEnum((int) KeywordPlanAdGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanIdeaError) { - output.WriteRawTag(224, 4); - output.WriteEnum((int) KeywordPlanIdeaError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccountBudgetProposalError) { - output.WriteRawTag(232, 4); - output.WriteEnum((int) AccountBudgetProposalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UserListError) { - output.WriteRawTag(240, 4); - output.WriteEnum((int) UserListError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeStatusError) { - output.WriteRawTag(248, 4); - output.WriteEnum((int) ChangeStatusError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedError) { - output.WriteRawTag(128, 5); - output.WriteEnum((int) FeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.GeoTargetConstantSuggestionError) { - output.WriteRawTag(136, 5); - output.WriteEnum((int) GeoTargetConstantSuggestionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignDraftError) { - output.WriteRawTag(144, 5); - output.WriteEnum((int) CampaignDraftError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemError) { - output.WriteRawTag(152, 5); - output.WriteEnum((int) FeedItemError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.LabelError) { - output.WriteRawTag(160, 5); - output.WriteEnum((int) LabelError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaFileError) { - output.WriteRawTag(176, 5); - output.WriteEnum((int) MediaFileError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BillingSetupError) { - output.WriteRawTag(184, 5); - output.WriteEnum((int) BillingSetupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerClientLinkError) { - output.WriteRawTag(192, 5); - output.WriteEnum((int) CustomerClientLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerError) { - output.WriteRawTag(208, 5); - output.WriteEnum((int) CustomerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerManagerLinkError) { - output.WriteRawTag(216, 5); - output.WriteEnum((int) CustomerManagerLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedMappingError) { - output.WriteRawTag(224, 5); - output.WriteEnum((int) FeedMappingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerFeedError) { - output.WriteRawTag(232, 5); - output.WriteEnum((int) CustomerFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupFeedError) { - output.WriteRawTag(240, 5); - output.WriteEnum((int) AdGroupFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignFeedError) { - output.WriteRawTag(128, 6); - output.WriteEnum((int) CampaignFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomInterestError) { - output.WriteRawTag(136, 6); - output.WriteEnum((int) CustomInterestError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignExperimentError) { - output.WriteRawTag(144, 6); - output.WriteEnum((int) CampaignExperimentError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionFeedItemError) { - output.WriteRawTag(160, 6); - output.WriteEnum((int) ExtensionFeedItemError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdParameterError) { - output.WriteRawTag(168, 6); - output.WriteEnum((int) AdParameterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemValidationError) { - output.WriteRawTag(176, 6); - output.WriteEnum((int) FeedItemValidationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionSettingError) { - output.WriteRawTag(184, 6); - output.WriteEnum((int) ExtensionSettingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemTargetError) { - output.WriteRawTag(192, 6); - output.WriteEnum((int) FeedItemTargetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyViolationError) { - output.WriteRawTag(200, 6); - output.WriteEnum((int) PolicyViolationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetError) { - output.WriteRawTag(216, 6); - output.WriteEnum((int) AssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CountryCodeError) { - output.WriteRawTag(232, 6); - output.WriteEnum((int) CountryCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.LanguageCodeError) { - output.WriteRawTag(240, 6); - output.WriteEnum((int) LanguageCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionUploadError) { - output.WriteRawTag(248, 6); - output.WriteEnum((int) ConversionUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PartialFailureError) { - output.WriteRawTag(128, 7); - output.WriteEnum((int) PartialFailureError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyValidationParameterError) { - output.WriteRawTag(144, 7); - output.WriteEnum((int) PolicyValidationParameterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionAdjustmentUploadError) { - output.WriteRawTag(152, 7); - output.WriteEnum((int) ConversionAdjustmentUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaUploadError) { - output.WriteRawTag(160, 7); - output.WriteEnum((int) MediaUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.YoutubeVideoRegistrationError) { - output.WriteRawTag(168, 7); - output.WriteEnum((int) YoutubeVideoRegistrationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SizeLimitError) { - output.WriteRawTag(176, 7); - output.WriteEnum((int) SizeLimitError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OfflineUserDataJobError) { - output.WriteRawTag(184, 7); - output.WriteEnum((int) OfflineUserDataJobError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ManagerLinkError) { - output.WriteRawTag(200, 7); - output.WriteEnum((int) ManagerLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CurrencyCodeError) { - output.WriteRawTag(208, 7); - output.WriteEnum((int) CurrencyCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentError) { - output.WriteRawTag(216, 7); - output.WriteEnum((int) ExperimentError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccessInvitationError) { - output.WriteRawTag(224, 7); - output.WriteEnum((int) AccessInvitationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ReachPlanError) { - output.WriteRawTag(232, 7); - output.WriteEnum((int) ReachPlanError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.InvoiceError) { - output.WriteRawTag(240, 7); - output.WriteEnum((int) InvoiceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PaymentsAccountError) { - output.WriteRawTag(248, 7); - output.WriteEnum((int) PaymentsAccountError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.TimeZoneError) { - output.WriteRawTag(128, 8); - output.WriteEnum((int) TimeZoneError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetLinkError) { - output.WriteRawTag(136, 8); - output.WriteEnum((int) AssetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UserDataError) { - output.WriteRawTag(144, 8); - output.WriteEnum((int) UserDataError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BatchJobError) { - output.WriteRawTag(152, 8); - output.WriteEnum((int) BatchJobError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignKeywordError) { - output.WriteRawTag(160, 8); - output.WriteEnum((int) KeywordPlanCampaignKeywordError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError) { - output.WriteRawTag(168, 8); - output.WriteEnum((int) KeywordPlanAdGroupKeywordError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccountLinkError) { - output.WriteRawTag(176, 8); - output.WriteEnum((int) AccountLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError) { - output.WriteRawTag(184, 8); - output.WriteEnum((int) ThirdPartyAppAnalyticsLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeEventError) { - output.WriteRawTag(192, 8); - output.WriteEnum((int) ChangeEventError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NotAllowlistedError) { - output.WriteRawTag(200, 8); - output.WriteEnum((int) NotAllowlistedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerUserAccessError) { - output.WriteRawTag(208, 8); - output.WriteEnum((int) CustomerUserAccessError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomAudienceError) { - output.WriteRawTag(216, 8); - output.WriteEnum((int) CustomAudienceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetError) { - output.WriteRawTag(224, 8); - output.WriteEnum((int) FeedItemSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetLinkError) { - output.WriteRawTag(232, 8); - output.WriteEnum((int) FeedItemSetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionCustomVariableError) { - output.WriteRawTag(248, 8); - output.WriteEnum((int) ConversionCustomVariableError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleError) { - output.WriteRawTag(136, 9); - output.WriteEnum((int) ConversionValueRuleError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleSetError) { - output.WriteRawTag(144, 9); - output.WriteEnum((int) ConversionValueRuleSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SmartCampaignError) { - output.WriteRawTag(152, 9); - output.WriteEnum((int) SmartCampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupError) { - output.WriteRawTag(160, 9); - output.WriteEnum((int) AssetGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupAssetError) { - output.WriteRawTag(168, 9); - output.WriteEnum((int) AssetGroupAssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomConversionGoalError) { - output.WriteRawTag(176, 9); - output.WriteEnum((int) CustomConversionGoalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomizerAttributeError) { - output.WriteRawTag(184, 9); - output.WriteEnum((int) CustomizerAttributeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetError) { - output.WriteRawTag(192, 9); - output.WriteEnum((int) AssetSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetAssetError) { - output.WriteRawTag(200, 9); - output.WriteEnum((int) AssetSetAssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetLinkError) { - output.WriteRawTag(208, 9); - output.WriteEnum((int) AssetSetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupListingGroupFilterError) { - output.WriteRawTag(216, 9); - output.WriteEnum((int) AssetGroupListingGroupFilterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentArmError) { - output.WriteRawTag(224, 9); - output.WriteEnum((int) ExperimentArmError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerCustomizerError) { - output.WriteRawTag(240, 9); - output.WriteEnum((int) CustomerCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCustomizerError) { - output.WriteRawTag(248, 9); - output.WriteEnum((int) AdGroupCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCustomizerError) { - output.WriteRawTag(128, 10); - output.WriteEnum((int) CampaignCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionCustomizerError) { - output.WriteRawTag(136, 10); - output.WriteEnum((int) AdGroupCriterionCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MerchantCenterError) { - output.WriteRawTag(144, 10); - output.WriteEnum((int) MerchantCenterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceError) { - output.WriteRawTag(160, 10); - output.WriteEnum((int) AudienceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionGoalCampaignConfigError) { - output.WriteRawTag(168, 10); - output.WriteEnum((int) ConversionGoalCampaignConfigError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignConversionGoalError) { - output.WriteRawTag(176, 10); - output.WriteEnum((int) CampaignConversionGoalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceInsightsError) { - output.WriteRawTag(184, 10); - output.WriteEnum((int) AudienceInsightsError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (errorCodeCase_ == ErrorCodeOneofCase.RequestError) { - output.WriteRawTag(8); - output.WriteEnum((int) RequestError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingStrategyError) { - output.WriteRawTag(16); - output.WriteEnum((int) BiddingStrategyError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UrlFieldError) { - output.WriteRawTag(24); - output.WriteEnum((int) UrlFieldError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ListOperationError) { - output.WriteRawTag(32); - output.WriteEnum((int) ListOperationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.QueryError) { - output.WriteRawTag(40); - output.WriteEnum((int) QueryError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MutateError) { - output.WriteRawTag(56); - output.WriteEnum((int) MutateError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FieldMaskError) { - output.WriteRawTag(64); - output.WriteEnum((int) FieldMaskError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AuthorizationError) { - output.WriteRawTag(72); - output.WriteEnum((int) AuthorizationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.InternalError) { - output.WriteRawTag(80); - output.WriteEnum((int) InternalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.QuotaError) { - output.WriteRawTag(88); - output.WriteEnum((int) QuotaError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdError) { - output.WriteRawTag(96); - output.WriteEnum((int) AdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupError) { - output.WriteRawTag(104); - output.WriteEnum((int) AdGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignBudgetError) { - output.WriteRawTag(112); - output.WriteEnum((int) CampaignBudgetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignError) { - output.WriteRawTag(120); - output.WriteEnum((int) CampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AuthenticationError) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) AuthenticationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionError) { - output.WriteRawTag(144, 1); - output.WriteEnum((int) AdGroupCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdCustomizerError) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) AdCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupAdError) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) AdGroupAdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdSharingError) { - output.WriteRawTag(192, 1); - output.WriteEnum((int) AdSharingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdxError) { - output.WriteRawTag(200, 1); - output.WriteEnum((int) AdxError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingError) { - output.WriteRawTag(208, 1); - output.WriteEnum((int) BiddingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCriterionError) { - output.WriteRawTag(232, 1); - output.WriteEnum((int) CampaignCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CollectionSizeError) { - output.WriteRawTag(248, 1); - output.WriteEnum((int) CollectionSizeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CriterionError) { - output.WriteRawTag(128, 2); - output.WriteEnum((int) CriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DateError) { - output.WriteRawTag(136, 2); - output.WriteEnum((int) DateError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DateRangeError) { - output.WriteRawTag(144, 2); - output.WriteEnum((int) DateRangeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DistinctError) { - output.WriteRawTag(152, 2); - output.WriteEnum((int) DistinctError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedAttributeReferenceError) { - output.WriteRawTag(160, 2); - output.WriteEnum((int) FeedAttributeReferenceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionError) { - output.WriteRawTag(168, 2); - output.WriteEnum((int) FunctionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionParsingError) { - output.WriteRawTag(176, 2); - output.WriteEnum((int) FunctionParsingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.IdError) { - output.WriteRawTag(184, 2); - output.WriteEnum((int) IdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ImageError) { - output.WriteRawTag(192, 2); - output.WriteEnum((int) ImageError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaBundleError) { - output.WriteRawTag(208, 2); - output.WriteEnum((int) MediaBundleError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MultiplierError) { - output.WriteRawTag(224, 2); - output.WriteEnum((int) MultiplierError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NewResourceCreationError) { - output.WriteRawTag(232, 2); - output.WriteEnum((int) NewResourceCreationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NotEmptyError) { - output.WriteRawTag(240, 2); - output.WriteEnum((int) NotEmptyError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NullError) { - output.WriteRawTag(248, 2); - output.WriteEnum((int) NullError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OperatorError) { - output.WriteRawTag(128, 3); - output.WriteEnum((int) OperatorError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RangeError) { - output.WriteRawTag(136, 3); - output.WriteEnum((int) RangeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RegionCodeError) { - output.WriteRawTag(152, 3); - output.WriteEnum((int) RegionCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SettingError) { - output.WriteRawTag(160, 3); - output.WriteEnum((int) SettingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.StringFormatError) { - output.WriteRawTag(168, 3); - output.WriteEnum((int) StringFormatError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.StringLengthError) { - output.WriteRawTag(176, 3); - output.WriteEnum((int) StringLengthError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OperationAccessDeniedError) { - output.WriteRawTag(184, 3); - output.WriteEnum((int) OperationAccessDeniedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceAccessDeniedError) { - output.WriteRawTag(192, 3); - output.WriteEnum((int) ResourceAccessDeniedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceCountLimitExceededError) { - output.WriteRawTag(200, 3); - output.WriteEnum((int) ResourceCountLimitExceededError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RecommendationError) { - output.WriteRawTag(208, 3); - output.WriteEnum((int) RecommendationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupBidModifierError) { - output.WriteRawTag(216, 3); - output.WriteEnum((int) AdGroupBidModifierError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ContextError) { - output.WriteRawTag(224, 3); - output.WriteEnum((int) ContextError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FieldError) { - output.WriteRawTag(232, 3); - output.WriteEnum((int) FieldError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SharedSetError) { - output.WriteRawTag(240, 3); - output.WriteEnum((int) SharedSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SharedCriterionError) { - output.WriteRawTag(248, 3); - output.WriteEnum((int) SharedCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignSharedSetError) { - output.WriteRawTag(128, 4); - output.WriteEnum((int) CampaignSharedSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionActionError) { - output.WriteRawTag(136, 4); - output.WriteEnum((int) ConversionActionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.HeaderError) { - output.WriteRawTag(144, 4); - output.WriteEnum((int) HeaderError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DatabaseError) { - output.WriteRawTag(152, 4); - output.WriteEnum((int) DatabaseError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyFindingError) { - output.WriteRawTag(160, 4); - output.WriteEnum((int) PolicyFindingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.EnumError) { - output.WriteRawTag(176, 4); - output.WriteEnum((int) EnumError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanError) { - output.WriteRawTag(184, 4); - output.WriteEnum((int) KeywordPlanError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignError) { - output.WriteRawTag(192, 4); - output.WriteEnum((int) KeywordPlanCampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupError) { - output.WriteRawTag(208, 4); - output.WriteEnum((int) KeywordPlanAdGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanIdeaError) { - output.WriteRawTag(224, 4); - output.WriteEnum((int) KeywordPlanIdeaError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccountBudgetProposalError) { - output.WriteRawTag(232, 4); - output.WriteEnum((int) AccountBudgetProposalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UserListError) { - output.WriteRawTag(240, 4); - output.WriteEnum((int) UserListError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeStatusError) { - output.WriteRawTag(248, 4); - output.WriteEnum((int) ChangeStatusError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedError) { - output.WriteRawTag(128, 5); - output.WriteEnum((int) FeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.GeoTargetConstantSuggestionError) { - output.WriteRawTag(136, 5); - output.WriteEnum((int) GeoTargetConstantSuggestionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignDraftError) { - output.WriteRawTag(144, 5); - output.WriteEnum((int) CampaignDraftError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemError) { - output.WriteRawTag(152, 5); - output.WriteEnum((int) FeedItemError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.LabelError) { - output.WriteRawTag(160, 5); - output.WriteEnum((int) LabelError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaFileError) { - output.WriteRawTag(176, 5); - output.WriteEnum((int) MediaFileError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BillingSetupError) { - output.WriteRawTag(184, 5); - output.WriteEnum((int) BillingSetupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerClientLinkError) { - output.WriteRawTag(192, 5); - output.WriteEnum((int) CustomerClientLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerError) { - output.WriteRawTag(208, 5); - output.WriteEnum((int) CustomerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerManagerLinkError) { - output.WriteRawTag(216, 5); - output.WriteEnum((int) CustomerManagerLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedMappingError) { - output.WriteRawTag(224, 5); - output.WriteEnum((int) FeedMappingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerFeedError) { - output.WriteRawTag(232, 5); - output.WriteEnum((int) CustomerFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupFeedError) { - output.WriteRawTag(240, 5); - output.WriteEnum((int) AdGroupFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignFeedError) { - output.WriteRawTag(128, 6); - output.WriteEnum((int) CampaignFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomInterestError) { - output.WriteRawTag(136, 6); - output.WriteEnum((int) CustomInterestError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignExperimentError) { - output.WriteRawTag(144, 6); - output.WriteEnum((int) CampaignExperimentError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionFeedItemError) { - output.WriteRawTag(160, 6); - output.WriteEnum((int) ExtensionFeedItemError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdParameterError) { - output.WriteRawTag(168, 6); - output.WriteEnum((int) AdParameterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemValidationError) { - output.WriteRawTag(176, 6); - output.WriteEnum((int) FeedItemValidationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionSettingError) { - output.WriteRawTag(184, 6); - output.WriteEnum((int) ExtensionSettingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemTargetError) { - output.WriteRawTag(192, 6); - output.WriteEnum((int) FeedItemTargetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyViolationError) { - output.WriteRawTag(200, 6); - output.WriteEnum((int) PolicyViolationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetError) { - output.WriteRawTag(216, 6); - output.WriteEnum((int) AssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CountryCodeError) { - output.WriteRawTag(232, 6); - output.WriteEnum((int) CountryCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.LanguageCodeError) { - output.WriteRawTag(240, 6); - output.WriteEnum((int) LanguageCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionUploadError) { - output.WriteRawTag(248, 6); - output.WriteEnum((int) ConversionUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PartialFailureError) { - output.WriteRawTag(128, 7); - output.WriteEnum((int) PartialFailureError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyValidationParameterError) { - output.WriteRawTag(144, 7); - output.WriteEnum((int) PolicyValidationParameterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionAdjustmentUploadError) { - output.WriteRawTag(152, 7); - output.WriteEnum((int) ConversionAdjustmentUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaUploadError) { - output.WriteRawTag(160, 7); - output.WriteEnum((int) MediaUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.YoutubeVideoRegistrationError) { - output.WriteRawTag(168, 7); - output.WriteEnum((int) YoutubeVideoRegistrationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SizeLimitError) { - output.WriteRawTag(176, 7); - output.WriteEnum((int) SizeLimitError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OfflineUserDataJobError) { - output.WriteRawTag(184, 7); - output.WriteEnum((int) OfflineUserDataJobError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ManagerLinkError) { - output.WriteRawTag(200, 7); - output.WriteEnum((int) ManagerLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CurrencyCodeError) { - output.WriteRawTag(208, 7); - output.WriteEnum((int) CurrencyCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentError) { - output.WriteRawTag(216, 7); - output.WriteEnum((int) ExperimentError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccessInvitationError) { - output.WriteRawTag(224, 7); - output.WriteEnum((int) AccessInvitationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ReachPlanError) { - output.WriteRawTag(232, 7); - output.WriteEnum((int) ReachPlanError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.InvoiceError) { - output.WriteRawTag(240, 7); - output.WriteEnum((int) InvoiceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PaymentsAccountError) { - output.WriteRawTag(248, 7); - output.WriteEnum((int) PaymentsAccountError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.TimeZoneError) { - output.WriteRawTag(128, 8); - output.WriteEnum((int) TimeZoneError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetLinkError) { - output.WriteRawTag(136, 8); - output.WriteEnum((int) AssetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UserDataError) { - output.WriteRawTag(144, 8); - output.WriteEnum((int) UserDataError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BatchJobError) { - output.WriteRawTag(152, 8); - output.WriteEnum((int) BatchJobError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignKeywordError) { - output.WriteRawTag(160, 8); - output.WriteEnum((int) KeywordPlanCampaignKeywordError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError) { - output.WriteRawTag(168, 8); - output.WriteEnum((int) KeywordPlanAdGroupKeywordError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccountLinkError) { - output.WriteRawTag(176, 8); - output.WriteEnum((int) AccountLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError) { - output.WriteRawTag(184, 8); - output.WriteEnum((int) ThirdPartyAppAnalyticsLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeEventError) { - output.WriteRawTag(192, 8); - output.WriteEnum((int) ChangeEventError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NotAllowlistedError) { - output.WriteRawTag(200, 8); - output.WriteEnum((int) NotAllowlistedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerUserAccessError) { - output.WriteRawTag(208, 8); - output.WriteEnum((int) CustomerUserAccessError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomAudienceError) { - output.WriteRawTag(216, 8); - output.WriteEnum((int) CustomAudienceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetError) { - output.WriteRawTag(224, 8); - output.WriteEnum((int) FeedItemSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetLinkError) { - output.WriteRawTag(232, 8); - output.WriteEnum((int) FeedItemSetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionCustomVariableError) { - output.WriteRawTag(248, 8); - output.WriteEnum((int) ConversionCustomVariableError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleError) { - output.WriteRawTag(136, 9); - output.WriteEnum((int) ConversionValueRuleError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleSetError) { - output.WriteRawTag(144, 9); - output.WriteEnum((int) ConversionValueRuleSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SmartCampaignError) { - output.WriteRawTag(152, 9); - output.WriteEnum((int) SmartCampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupError) { - output.WriteRawTag(160, 9); - output.WriteEnum((int) AssetGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupAssetError) { - output.WriteRawTag(168, 9); - output.WriteEnum((int) AssetGroupAssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomConversionGoalError) { - output.WriteRawTag(176, 9); - output.WriteEnum((int) CustomConversionGoalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomizerAttributeError) { - output.WriteRawTag(184, 9); - output.WriteEnum((int) CustomizerAttributeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetError) { - output.WriteRawTag(192, 9); - output.WriteEnum((int) AssetSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetAssetError) { - output.WriteRawTag(200, 9); - output.WriteEnum((int) AssetSetAssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetLinkError) { - output.WriteRawTag(208, 9); - output.WriteEnum((int) AssetSetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupListingGroupFilterError) { - output.WriteRawTag(216, 9); - output.WriteEnum((int) AssetGroupListingGroupFilterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentArmError) { - output.WriteRawTag(224, 9); - output.WriteEnum((int) ExperimentArmError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerCustomizerError) { - output.WriteRawTag(240, 9); - output.WriteEnum((int) CustomerCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCustomizerError) { - output.WriteRawTag(248, 9); - output.WriteEnum((int) AdGroupCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCustomizerError) { - output.WriteRawTag(128, 10); - output.WriteEnum((int) CampaignCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionCustomizerError) { - output.WriteRawTag(136, 10); - output.WriteEnum((int) AdGroupCriterionCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MerchantCenterError) { - output.WriteRawTag(144, 10); - output.WriteEnum((int) MerchantCenterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceError) { - output.WriteRawTag(160, 10); - output.WriteEnum((int) AudienceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionGoalCampaignConfigError) { - output.WriteRawTag(168, 10); - output.WriteEnum((int) ConversionGoalCampaignConfigError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignConversionGoalError) { - output.WriteRawTag(176, 10); - output.WriteEnum((int) CampaignConversionGoalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceInsightsError) { - output.WriteRawTag(184, 10); - output.WriteEnum((int) AudienceInsightsError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (errorCodeCase_ == ErrorCodeOneofCase.RequestError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingStrategyError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BiddingStrategyError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UrlFieldError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UrlFieldError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ListOperationError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ListOperationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.QueryError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MutateError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MutateError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FieldMaskError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldMaskError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AuthorizationError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AuthorizationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.InternalError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InternalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.QuotaError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QuotaError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignBudgetError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignBudgetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignError) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AuthenticationError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AuthenticationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionCustomizerError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdGroupCriterionCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCriterionError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdGroupCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupCustomizerError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdGroupCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdCustomizerError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupAdError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdGroupAdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdSharingError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdSharingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdxError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdxError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupAssetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetGroupAssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupListingGroupFilterError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetGroupListingGroupFilterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetGroupError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetAssetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetSetAssetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetSetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetSetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BiddingError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BiddingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCriterionError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignConversionGoalError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignConversionGoalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignCustomizerError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CollectionSizeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CollectionSizeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionGoalCampaignConfigError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionGoalCampaignConfigError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CountryCodeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CountryCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CriterionError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomConversionGoalError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomConversionGoalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerCustomizerError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomerCustomizerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomerError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomizerAttributeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomizerAttributeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DateError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DateError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DateRangeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DateRangeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DistinctError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DistinctError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedAttributeReferenceError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedAttributeReferenceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FunctionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FunctionParsingError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FunctionParsingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.IdError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IdError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ImageError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ImageError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.LanguageCodeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) LanguageCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaBundleError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) MediaBundleError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaUploadError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) MediaUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MediaFileError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) MediaFileError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MerchantCenterError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) MerchantCenterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.MultiplierError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) MultiplierError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NewResourceCreationError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NewResourceCreationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NotEmptyError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NotEmptyError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NullError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NullError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OperatorError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OperatorError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RangeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RangeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RecommendationError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RecommendationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.RegionCodeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RegionCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SettingError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SettingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.StringFormatError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) StringFormatError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.StringLengthError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) StringLengthError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OperationAccessDeniedError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OperationAccessDeniedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceAccessDeniedError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ResourceAccessDeniedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ResourceCountLimitExceededError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ResourceCountLimitExceededError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.YoutubeVideoRegistrationError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) YoutubeVideoRegistrationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupBidModifierError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdGroupBidModifierError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ContextError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ContextError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FieldError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FieldError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SharedSetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SharedSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SharedCriterionError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SharedCriterionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignSharedSetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignSharedSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionActionError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionActionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionAdjustmentUploadError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionAdjustmentUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionCustomVariableError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionCustomVariableError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionUploadError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionUploadError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionValueRuleError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ConversionValueRuleSetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ConversionValueRuleSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.HeaderError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) HeaderError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.DatabaseError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) DatabaseError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyFindingError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PolicyFindingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.EnumError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EnumError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanCampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanCampaignKeywordError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanCampaignKeywordError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanAdGroupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanAdGroupKeywordError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.KeywordPlanIdeaError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanIdeaError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccountBudgetProposalError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AccountBudgetProposalError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UserListError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) UserListError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeEventError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ChangeEventError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ChangeStatusError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ChangeStatusError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.GeoTargetConstantSuggestionError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) GeoTargetConstantSuggestionError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignDraftError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignDraftError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedItemError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.LabelError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) LabelError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BillingSetupError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BillingSetupError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerClientLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomerClientLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerManagerLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomerManagerLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedMappingError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedMappingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerFeedError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomerFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdGroupFeedError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdGroupFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignFeedError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignFeedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomInterestError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomInterestError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CampaignExperimentError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CampaignExperimentError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionFeedItemError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionFeedItemError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AdParameterError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AdParameterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemValidationError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedItemValidationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExtensionSettingError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionSettingError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedItemSetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemSetLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedItemSetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.FeedItemTargetError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FeedItemTargetError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyViolationError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PolicyViolationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PartialFailureError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PartialFailureError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PolicyValidationParameterError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PolicyValidationParameterError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SizeLimitError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SizeLimitError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.OfflineUserDataJobError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) OfflineUserDataJobError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.NotAllowlistedError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NotAllowlistedError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ManagerLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ManagerLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CurrencyCodeError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CurrencyCodeError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ExperimentError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccessInvitationError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AccessInvitationError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ReachPlanError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ReachPlanError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.InvoiceError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) InvoiceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.PaymentsAccountError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PaymentsAccountError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.TimeZoneError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) TimeZoneError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AssetLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AssetLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.UserDataError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) UserDataError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.BatchJobError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) BatchJobError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AccountLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AccountLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ThirdPartyAppAnalyticsLinkError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomerUserAccessError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomerUserAccessError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.CustomAudienceError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomAudienceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AudienceError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.SmartCampaignError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SmartCampaignError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.ExperimentArmError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ExperimentArmError); - } - if (errorCodeCase_ == ErrorCodeOneofCase.AudienceInsightsError) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AudienceInsightsError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ErrorCode other) { - if (other == null) { - return; - } - switch (other.ErrorCodeCase) { - case ErrorCodeOneofCase.RequestError: - RequestError = other.RequestError; - break; - case ErrorCodeOneofCase.BiddingStrategyError: - BiddingStrategyError = other.BiddingStrategyError; - break; - case ErrorCodeOneofCase.UrlFieldError: - UrlFieldError = other.UrlFieldError; - break; - case ErrorCodeOneofCase.ListOperationError: - ListOperationError = other.ListOperationError; - break; - case ErrorCodeOneofCase.QueryError: - QueryError = other.QueryError; - break; - case ErrorCodeOneofCase.MutateError: - MutateError = other.MutateError; - break; - case ErrorCodeOneofCase.FieldMaskError: - FieldMaskError = other.FieldMaskError; - break; - case ErrorCodeOneofCase.AuthorizationError: - AuthorizationError = other.AuthorizationError; - break; - case ErrorCodeOneofCase.InternalError: - InternalError = other.InternalError; - break; - case ErrorCodeOneofCase.QuotaError: - QuotaError = other.QuotaError; - break; - case ErrorCodeOneofCase.AdError: - AdError = other.AdError; - break; - case ErrorCodeOneofCase.AdGroupError: - AdGroupError = other.AdGroupError; - break; - case ErrorCodeOneofCase.CampaignBudgetError: - CampaignBudgetError = other.CampaignBudgetError; - break; - case ErrorCodeOneofCase.CampaignError: - CampaignError = other.CampaignError; - break; - case ErrorCodeOneofCase.AuthenticationError: - AuthenticationError = other.AuthenticationError; - break; - case ErrorCodeOneofCase.AdGroupCriterionCustomizerError: - AdGroupCriterionCustomizerError = other.AdGroupCriterionCustomizerError; - break; - case ErrorCodeOneofCase.AdGroupCriterionError: - AdGroupCriterionError = other.AdGroupCriterionError; - break; - case ErrorCodeOneofCase.AdGroupCustomizerError: - AdGroupCustomizerError = other.AdGroupCustomizerError; - break; - case ErrorCodeOneofCase.AdCustomizerError: - AdCustomizerError = other.AdCustomizerError; - break; - case ErrorCodeOneofCase.AdGroupAdError: - AdGroupAdError = other.AdGroupAdError; - break; - case ErrorCodeOneofCase.AdSharingError: - AdSharingError = other.AdSharingError; - break; - case ErrorCodeOneofCase.AdxError: - AdxError = other.AdxError; - break; - case ErrorCodeOneofCase.AssetError: - AssetError = other.AssetError; - break; - case ErrorCodeOneofCase.AssetGroupAssetError: - AssetGroupAssetError = other.AssetGroupAssetError; - break; - case ErrorCodeOneofCase.AssetGroupListingGroupFilterError: - AssetGroupListingGroupFilterError = other.AssetGroupListingGroupFilterError; - break; - case ErrorCodeOneofCase.AssetGroupError: - AssetGroupError = other.AssetGroupError; - break; - case ErrorCodeOneofCase.AssetSetAssetError: - AssetSetAssetError = other.AssetSetAssetError; - break; - case ErrorCodeOneofCase.AssetSetLinkError: - AssetSetLinkError = other.AssetSetLinkError; - break; - case ErrorCodeOneofCase.AssetSetError: - AssetSetError = other.AssetSetError; - break; - case ErrorCodeOneofCase.BiddingError: - BiddingError = other.BiddingError; - break; - case ErrorCodeOneofCase.CampaignCriterionError: - CampaignCriterionError = other.CampaignCriterionError; - break; - case ErrorCodeOneofCase.CampaignConversionGoalError: - CampaignConversionGoalError = other.CampaignConversionGoalError; - break; - case ErrorCodeOneofCase.CampaignCustomizerError: - CampaignCustomizerError = other.CampaignCustomizerError; - break; - case ErrorCodeOneofCase.CollectionSizeError: - CollectionSizeError = other.CollectionSizeError; - break; - case ErrorCodeOneofCase.ConversionGoalCampaignConfigError: - ConversionGoalCampaignConfigError = other.ConversionGoalCampaignConfigError; - break; - case ErrorCodeOneofCase.CountryCodeError: - CountryCodeError = other.CountryCodeError; - break; - case ErrorCodeOneofCase.CriterionError: - CriterionError = other.CriterionError; - break; - case ErrorCodeOneofCase.CustomConversionGoalError: - CustomConversionGoalError = other.CustomConversionGoalError; - break; - case ErrorCodeOneofCase.CustomerCustomizerError: - CustomerCustomizerError = other.CustomerCustomizerError; - break; - case ErrorCodeOneofCase.CustomerError: - CustomerError = other.CustomerError; - break; - case ErrorCodeOneofCase.CustomizerAttributeError: - CustomizerAttributeError = other.CustomizerAttributeError; - break; - case ErrorCodeOneofCase.DateError: - DateError = other.DateError; - break; - case ErrorCodeOneofCase.DateRangeError: - DateRangeError = other.DateRangeError; - break; - case ErrorCodeOneofCase.DistinctError: - DistinctError = other.DistinctError; - break; - case ErrorCodeOneofCase.FeedAttributeReferenceError: - FeedAttributeReferenceError = other.FeedAttributeReferenceError; - break; - case ErrorCodeOneofCase.FunctionError: - FunctionError = other.FunctionError; - break; - case ErrorCodeOneofCase.FunctionParsingError: - FunctionParsingError = other.FunctionParsingError; - break; - case ErrorCodeOneofCase.IdError: - IdError = other.IdError; - break; - case ErrorCodeOneofCase.ImageError: - ImageError = other.ImageError; - break; - case ErrorCodeOneofCase.LanguageCodeError: - LanguageCodeError = other.LanguageCodeError; - break; - case ErrorCodeOneofCase.MediaBundleError: - MediaBundleError = other.MediaBundleError; - break; - case ErrorCodeOneofCase.MediaUploadError: - MediaUploadError = other.MediaUploadError; - break; - case ErrorCodeOneofCase.MediaFileError: - MediaFileError = other.MediaFileError; - break; - case ErrorCodeOneofCase.MerchantCenterError: - MerchantCenterError = other.MerchantCenterError; - break; - case ErrorCodeOneofCase.MultiplierError: - MultiplierError = other.MultiplierError; - break; - case ErrorCodeOneofCase.NewResourceCreationError: - NewResourceCreationError = other.NewResourceCreationError; - break; - case ErrorCodeOneofCase.NotEmptyError: - NotEmptyError = other.NotEmptyError; - break; - case ErrorCodeOneofCase.NullError: - NullError = other.NullError; - break; - case ErrorCodeOneofCase.OperatorError: - OperatorError = other.OperatorError; - break; - case ErrorCodeOneofCase.RangeError: - RangeError = other.RangeError; - break; - case ErrorCodeOneofCase.RecommendationError: - RecommendationError = other.RecommendationError; - break; - case ErrorCodeOneofCase.RegionCodeError: - RegionCodeError = other.RegionCodeError; - break; - case ErrorCodeOneofCase.SettingError: - SettingError = other.SettingError; - break; - case ErrorCodeOneofCase.StringFormatError: - StringFormatError = other.StringFormatError; - break; - case ErrorCodeOneofCase.StringLengthError: - StringLengthError = other.StringLengthError; - break; - case ErrorCodeOneofCase.OperationAccessDeniedError: - OperationAccessDeniedError = other.OperationAccessDeniedError; - break; - case ErrorCodeOneofCase.ResourceAccessDeniedError: - ResourceAccessDeniedError = other.ResourceAccessDeniedError; - break; - case ErrorCodeOneofCase.ResourceCountLimitExceededError: - ResourceCountLimitExceededError = other.ResourceCountLimitExceededError; - break; - case ErrorCodeOneofCase.YoutubeVideoRegistrationError: - YoutubeVideoRegistrationError = other.YoutubeVideoRegistrationError; - break; - case ErrorCodeOneofCase.AdGroupBidModifierError: - AdGroupBidModifierError = other.AdGroupBidModifierError; - break; - case ErrorCodeOneofCase.ContextError: - ContextError = other.ContextError; - break; - case ErrorCodeOneofCase.FieldError: - FieldError = other.FieldError; - break; - case ErrorCodeOneofCase.SharedSetError: - SharedSetError = other.SharedSetError; - break; - case ErrorCodeOneofCase.SharedCriterionError: - SharedCriterionError = other.SharedCriterionError; - break; - case ErrorCodeOneofCase.CampaignSharedSetError: - CampaignSharedSetError = other.CampaignSharedSetError; - break; - case ErrorCodeOneofCase.ConversionActionError: - ConversionActionError = other.ConversionActionError; - break; - case ErrorCodeOneofCase.ConversionAdjustmentUploadError: - ConversionAdjustmentUploadError = other.ConversionAdjustmentUploadError; - break; - case ErrorCodeOneofCase.ConversionCustomVariableError: - ConversionCustomVariableError = other.ConversionCustomVariableError; - break; - case ErrorCodeOneofCase.ConversionUploadError: - ConversionUploadError = other.ConversionUploadError; - break; - case ErrorCodeOneofCase.ConversionValueRuleError: - ConversionValueRuleError = other.ConversionValueRuleError; - break; - case ErrorCodeOneofCase.ConversionValueRuleSetError: - ConversionValueRuleSetError = other.ConversionValueRuleSetError; - break; - case ErrorCodeOneofCase.HeaderError: - HeaderError = other.HeaderError; - break; - case ErrorCodeOneofCase.DatabaseError: - DatabaseError = other.DatabaseError; - break; - case ErrorCodeOneofCase.PolicyFindingError: - PolicyFindingError = other.PolicyFindingError; - break; - case ErrorCodeOneofCase.EnumError: - EnumError = other.EnumError; - break; - case ErrorCodeOneofCase.KeywordPlanError: - KeywordPlanError = other.KeywordPlanError; - break; - case ErrorCodeOneofCase.KeywordPlanCampaignError: - KeywordPlanCampaignError = other.KeywordPlanCampaignError; - break; - case ErrorCodeOneofCase.KeywordPlanCampaignKeywordError: - KeywordPlanCampaignKeywordError = other.KeywordPlanCampaignKeywordError; - break; - case ErrorCodeOneofCase.KeywordPlanAdGroupError: - KeywordPlanAdGroupError = other.KeywordPlanAdGroupError; - break; - case ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError: - KeywordPlanAdGroupKeywordError = other.KeywordPlanAdGroupKeywordError; - break; - case ErrorCodeOneofCase.KeywordPlanIdeaError: - KeywordPlanIdeaError = other.KeywordPlanIdeaError; - break; - case ErrorCodeOneofCase.AccountBudgetProposalError: - AccountBudgetProposalError = other.AccountBudgetProposalError; - break; - case ErrorCodeOneofCase.UserListError: - UserListError = other.UserListError; - break; - case ErrorCodeOneofCase.ChangeEventError: - ChangeEventError = other.ChangeEventError; - break; - case ErrorCodeOneofCase.ChangeStatusError: - ChangeStatusError = other.ChangeStatusError; - break; - case ErrorCodeOneofCase.FeedError: - FeedError = other.FeedError; - break; - case ErrorCodeOneofCase.GeoTargetConstantSuggestionError: - GeoTargetConstantSuggestionError = other.GeoTargetConstantSuggestionError; - break; - case ErrorCodeOneofCase.CampaignDraftError: - CampaignDraftError = other.CampaignDraftError; - break; - case ErrorCodeOneofCase.FeedItemError: - FeedItemError = other.FeedItemError; - break; - case ErrorCodeOneofCase.LabelError: - LabelError = other.LabelError; - break; - case ErrorCodeOneofCase.BillingSetupError: - BillingSetupError = other.BillingSetupError; - break; - case ErrorCodeOneofCase.CustomerClientLinkError: - CustomerClientLinkError = other.CustomerClientLinkError; - break; - case ErrorCodeOneofCase.CustomerManagerLinkError: - CustomerManagerLinkError = other.CustomerManagerLinkError; - break; - case ErrorCodeOneofCase.FeedMappingError: - FeedMappingError = other.FeedMappingError; - break; - case ErrorCodeOneofCase.CustomerFeedError: - CustomerFeedError = other.CustomerFeedError; - break; - case ErrorCodeOneofCase.AdGroupFeedError: - AdGroupFeedError = other.AdGroupFeedError; - break; - case ErrorCodeOneofCase.CampaignFeedError: - CampaignFeedError = other.CampaignFeedError; - break; - case ErrorCodeOneofCase.CustomInterestError: - CustomInterestError = other.CustomInterestError; - break; - case ErrorCodeOneofCase.CampaignExperimentError: - CampaignExperimentError = other.CampaignExperimentError; - break; - case ErrorCodeOneofCase.ExtensionFeedItemError: - ExtensionFeedItemError = other.ExtensionFeedItemError; - break; - case ErrorCodeOneofCase.AdParameterError: - AdParameterError = other.AdParameterError; - break; - case ErrorCodeOneofCase.FeedItemValidationError: - FeedItemValidationError = other.FeedItemValidationError; - break; - case ErrorCodeOneofCase.ExtensionSettingError: - ExtensionSettingError = other.ExtensionSettingError; - break; - case ErrorCodeOneofCase.FeedItemSetError: - FeedItemSetError = other.FeedItemSetError; - break; - case ErrorCodeOneofCase.FeedItemSetLinkError: - FeedItemSetLinkError = other.FeedItemSetLinkError; - break; - case ErrorCodeOneofCase.FeedItemTargetError: - FeedItemTargetError = other.FeedItemTargetError; - break; - case ErrorCodeOneofCase.PolicyViolationError: - PolicyViolationError = other.PolicyViolationError; - break; - case ErrorCodeOneofCase.PartialFailureError: - PartialFailureError = other.PartialFailureError; - break; - case ErrorCodeOneofCase.PolicyValidationParameterError: - PolicyValidationParameterError = other.PolicyValidationParameterError; - break; - case ErrorCodeOneofCase.SizeLimitError: - SizeLimitError = other.SizeLimitError; - break; - case ErrorCodeOneofCase.OfflineUserDataJobError: - OfflineUserDataJobError = other.OfflineUserDataJobError; - break; - case ErrorCodeOneofCase.NotAllowlistedError: - NotAllowlistedError = other.NotAllowlistedError; - break; - case ErrorCodeOneofCase.ManagerLinkError: - ManagerLinkError = other.ManagerLinkError; - break; - case ErrorCodeOneofCase.CurrencyCodeError: - CurrencyCodeError = other.CurrencyCodeError; - break; - case ErrorCodeOneofCase.ExperimentError: - ExperimentError = other.ExperimentError; - break; - case ErrorCodeOneofCase.AccessInvitationError: - AccessInvitationError = other.AccessInvitationError; - break; - case ErrorCodeOneofCase.ReachPlanError: - ReachPlanError = other.ReachPlanError; - break; - case ErrorCodeOneofCase.InvoiceError: - InvoiceError = other.InvoiceError; - break; - case ErrorCodeOneofCase.PaymentsAccountError: - PaymentsAccountError = other.PaymentsAccountError; - break; - case ErrorCodeOneofCase.TimeZoneError: - TimeZoneError = other.TimeZoneError; - break; - case ErrorCodeOneofCase.AssetLinkError: - AssetLinkError = other.AssetLinkError; - break; - case ErrorCodeOneofCase.UserDataError: - UserDataError = other.UserDataError; - break; - case ErrorCodeOneofCase.BatchJobError: - BatchJobError = other.BatchJobError; - break; - case ErrorCodeOneofCase.AccountLinkError: - AccountLinkError = other.AccountLinkError; - break; - case ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError: - ThirdPartyAppAnalyticsLinkError = other.ThirdPartyAppAnalyticsLinkError; - break; - case ErrorCodeOneofCase.CustomerUserAccessError: - CustomerUserAccessError = other.CustomerUserAccessError; - break; - case ErrorCodeOneofCase.CustomAudienceError: - CustomAudienceError = other.CustomAudienceError; - break; - case ErrorCodeOneofCase.AudienceError: - AudienceError = other.AudienceError; - break; - case ErrorCodeOneofCase.SmartCampaignError: - SmartCampaignError = other.SmartCampaignError; - break; - case ErrorCodeOneofCase.ExperimentArmError: - ExperimentArmError = other.ExperimentArmError; - break; - case ErrorCodeOneofCase.AudienceInsightsError: - AudienceInsightsError = other.AudienceInsightsError; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RequestError; - break; - } - case 16: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BiddingStrategyError; - break; - } - case 24: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.UrlFieldError; - break; - } - case 32: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ListOperationError; - break; - } - case 40: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.QueryError; - break; - } - case 56: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MutateError; - break; - } - case 64: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FieldMaskError; - break; - } - case 72: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AuthorizationError; - break; - } - case 80: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.InternalError; - break; - } - case 88: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.QuotaError; - break; - } - case 96: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdError; - break; - } - case 104: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupError; - break; - } - case 112: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignBudgetError; - break; - } - case 120: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignError; - break; - } - case 136: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AuthenticationError; - break; - } - case 144: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCriterionError; - break; - } - case 152: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdCustomizerError; - break; - } - case 168: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupAdError; - break; - } - case 192: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdSharingError; - break; - } - case 200: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdxError; - break; - } - case 208: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BiddingError; - break; - } - case 232: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignCriterionError; - break; - } - case 248: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CollectionSizeError; - break; - } - case 256: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CriterionError; - break; - } - case 264: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DateError; - break; - } - case 272: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DateRangeError; - break; - } - case 280: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DistinctError; - break; - } - case 288: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedAttributeReferenceError; - break; - } - case 296: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FunctionError; - break; - } - case 304: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FunctionParsingError; - break; - } - case 312: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.IdError; - break; - } - case 320: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ImageError; - break; - } - case 336: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MediaBundleError; - break; - } - case 352: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MultiplierError; - break; - } - case 360: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NewResourceCreationError; - break; - } - case 368: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NotEmptyError; - break; - } - case 376: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NullError; - break; - } - case 384: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.OperatorError; - break; - } - case 392: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RangeError; - break; - } - case 408: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RegionCodeError; - break; - } - case 416: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SettingError; - break; - } - case 424: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.StringFormatError; - break; - } - case 432: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.StringLengthError; - break; - } - case 440: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.OperationAccessDeniedError; - break; - } - case 448: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ResourceAccessDeniedError; - break; - } - case 456: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ResourceCountLimitExceededError; - break; - } - case 464: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RecommendationError; - break; - } - case 472: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupBidModifierError; - break; - } - case 480: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ContextError; - break; - } - case 488: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FieldError; - break; - } - case 496: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SharedSetError; - break; - } - case 504: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SharedCriterionError; - break; - } - case 512: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignSharedSetError; - break; - } - case 520: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionActionError; - break; - } - case 528: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.HeaderError; - break; - } - case 536: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DatabaseError; - break; - } - case 544: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PolicyFindingError; - break; - } - case 560: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.EnumError; - break; - } - case 568: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanError; - break; - } - case 576: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanCampaignError; - break; - } - case 592: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanAdGroupError; - break; - } - case 608: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanIdeaError; - break; - } - case 616: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AccountBudgetProposalError; - break; - } - case 624: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.UserListError; - break; - } - case 632: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ChangeStatusError; - break; - } - case 640: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedError; - break; - } - case 648: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.GeoTargetConstantSuggestionError; - break; - } - case 656: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignDraftError; - break; - } - case 664: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemError; - break; - } - case 672: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.LabelError; - break; - } - case 688: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MediaFileError; - break; - } - case 696: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BillingSetupError; - break; - } - case 704: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerClientLinkError; - break; - } - case 720: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerError; - break; - } - case 728: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerManagerLinkError; - break; - } - case 736: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedMappingError; - break; - } - case 744: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerFeedError; - break; - } - case 752: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupFeedError; - break; - } - case 768: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignFeedError; - break; - } - case 776: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomInterestError; - break; - } - case 784: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignExperimentError; - break; - } - case 800: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExtensionFeedItemError; - break; - } - case 808: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdParameterError; - break; - } - case 816: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemValidationError; - break; - } - case 824: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExtensionSettingError; - break; - } - case 832: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemTargetError; - break; - } - case 840: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PolicyViolationError; - break; - } - case 856: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetError; - break; - } - case 872: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CountryCodeError; - break; - } - case 880: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.LanguageCodeError; - break; - } - case 888: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionUploadError; - break; - } - case 896: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PartialFailureError; - break; - } - case 912: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PolicyValidationParameterError; - break; - } - case 920: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionAdjustmentUploadError; - break; - } - case 928: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MediaUploadError; - break; - } - case 936: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.YoutubeVideoRegistrationError; - break; - } - case 944: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SizeLimitError; - break; - } - case 952: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.OfflineUserDataJobError; - break; - } - case 968: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ManagerLinkError; - break; - } - case 976: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CurrencyCodeError; - break; - } - case 984: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExperimentError; - break; - } - case 992: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AccessInvitationError; - break; - } - case 1000: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ReachPlanError; - break; - } - case 1008: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.InvoiceError; - break; - } - case 1016: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PaymentsAccountError; - break; - } - case 1024: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.TimeZoneError; - break; - } - case 1032: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetLinkError; - break; - } - case 1040: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.UserDataError; - break; - } - case 1048: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BatchJobError; - break; - } - case 1056: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanCampaignKeywordError; - break; - } - case 1064: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError; - break; - } - case 1072: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AccountLinkError; - break; - } - case 1080: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError; - break; - } - case 1088: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ChangeEventError; - break; - } - case 1096: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NotAllowlistedError; - break; - } - case 1104: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerUserAccessError; - break; - } - case 1112: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomAudienceError; - break; - } - case 1120: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemSetError; - break; - } - case 1128: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemSetLinkError; - break; - } - case 1144: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionCustomVariableError; - break; - } - case 1160: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionValueRuleError; - break; - } - case 1168: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionValueRuleSetError; - break; - } - case 1176: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SmartCampaignError; - break; - } - case 1184: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupError; - break; - } - case 1192: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupAssetError; - break; - } - case 1200: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomConversionGoalError; - break; - } - case 1208: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomizerAttributeError; - break; - } - case 1216: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetSetError; - break; - } - case 1224: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetSetAssetError; - break; - } - case 1232: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetSetLinkError; - break; - } - case 1240: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupListingGroupFilterError; - break; - } - case 1248: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExperimentArmError; - break; - } - case 1264: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerCustomizerError; - break; - } - case 1272: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCustomizerError; - break; - } - case 1280: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignCustomizerError; - break; - } - case 1288: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCriterionCustomizerError; - break; - } - case 1296: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MerchantCenterError; - break; - } - case 1312: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AudienceError; - break; - } - case 1320: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionGoalCampaignConfigError; - break; - } - case 1328: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignConversionGoalError; - break; - } - case 1336: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AudienceInsightsError; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RequestError; - break; - } - case 16: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BiddingStrategyError; - break; - } - case 24: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.UrlFieldError; - break; - } - case 32: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ListOperationError; - break; - } - case 40: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.QueryError; - break; - } - case 56: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MutateError; - break; - } - case 64: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FieldMaskError; - break; - } - case 72: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AuthorizationError; - break; - } - case 80: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.InternalError; - break; - } - case 88: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.QuotaError; - break; - } - case 96: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdError; - break; - } - case 104: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupError; - break; - } - case 112: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignBudgetError; - break; - } - case 120: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignError; - break; - } - case 136: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AuthenticationError; - break; - } - case 144: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCriterionError; - break; - } - case 152: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdCustomizerError; - break; - } - case 168: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupAdError; - break; - } - case 192: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdSharingError; - break; - } - case 200: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdxError; - break; - } - case 208: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BiddingError; - break; - } - case 232: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignCriterionError; - break; - } - case 248: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CollectionSizeError; - break; - } - case 256: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CriterionError; - break; - } - case 264: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DateError; - break; - } - case 272: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DateRangeError; - break; - } - case 280: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DistinctError; - break; - } - case 288: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedAttributeReferenceError; - break; - } - case 296: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FunctionError; - break; - } - case 304: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FunctionParsingError; - break; - } - case 312: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.IdError; - break; - } - case 320: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ImageError; - break; - } - case 336: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MediaBundleError; - break; - } - case 352: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MultiplierError; - break; - } - case 360: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NewResourceCreationError; - break; - } - case 368: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NotEmptyError; - break; - } - case 376: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NullError; - break; - } - case 384: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.OperatorError; - break; - } - case 392: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RangeError; - break; - } - case 408: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RegionCodeError; - break; - } - case 416: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SettingError; - break; - } - case 424: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.StringFormatError; - break; - } - case 432: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.StringLengthError; - break; - } - case 440: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.OperationAccessDeniedError; - break; - } - case 448: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ResourceAccessDeniedError; - break; - } - case 456: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ResourceCountLimitExceededError; - break; - } - case 464: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.RecommendationError; - break; - } - case 472: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupBidModifierError; - break; - } - case 480: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ContextError; - break; - } - case 488: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FieldError; - break; - } - case 496: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SharedSetError; - break; - } - case 504: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SharedCriterionError; - break; - } - case 512: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignSharedSetError; - break; - } - case 520: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionActionError; - break; - } - case 528: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.HeaderError; - break; - } - case 536: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.DatabaseError; - break; - } - case 544: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PolicyFindingError; - break; - } - case 560: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.EnumError; - break; - } - case 568: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanError; - break; - } - case 576: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanCampaignError; - break; - } - case 592: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanAdGroupError; - break; - } - case 608: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanIdeaError; - break; - } - case 616: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AccountBudgetProposalError; - break; - } - case 624: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.UserListError; - break; - } - case 632: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ChangeStatusError; - break; - } - case 640: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedError; - break; - } - case 648: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.GeoTargetConstantSuggestionError; - break; - } - case 656: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignDraftError; - break; - } - case 664: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemError; - break; - } - case 672: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.LabelError; - break; - } - case 688: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MediaFileError; - break; - } - case 696: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BillingSetupError; - break; - } - case 704: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerClientLinkError; - break; - } - case 720: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerError; - break; - } - case 728: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerManagerLinkError; - break; - } - case 736: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedMappingError; - break; - } - case 744: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerFeedError; - break; - } - case 752: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupFeedError; - break; - } - case 768: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignFeedError; - break; - } - case 776: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomInterestError; - break; - } - case 784: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignExperimentError; - break; - } - case 800: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExtensionFeedItemError; - break; - } - case 808: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdParameterError; - break; - } - case 816: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemValidationError; - break; - } - case 824: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExtensionSettingError; - break; - } - case 832: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemTargetError; - break; - } - case 840: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PolicyViolationError; - break; - } - case 856: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetError; - break; - } - case 872: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CountryCodeError; - break; - } - case 880: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.LanguageCodeError; - break; - } - case 888: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionUploadError; - break; - } - case 896: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PartialFailureError; - break; - } - case 912: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PolicyValidationParameterError; - break; - } - case 920: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionAdjustmentUploadError; - break; - } - case 928: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MediaUploadError; - break; - } - case 936: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.YoutubeVideoRegistrationError; - break; - } - case 944: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SizeLimitError; - break; - } - case 952: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.OfflineUserDataJobError; - break; - } - case 968: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ManagerLinkError; - break; - } - case 976: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CurrencyCodeError; - break; - } - case 984: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExperimentError; - break; - } - case 992: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AccessInvitationError; - break; - } - case 1000: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ReachPlanError; - break; - } - case 1008: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.InvoiceError; - break; - } - case 1016: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.PaymentsAccountError; - break; - } - case 1024: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.TimeZoneError; - break; - } - case 1032: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetLinkError; - break; - } - case 1040: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.UserDataError; - break; - } - case 1048: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.BatchJobError; - break; - } - case 1056: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanCampaignKeywordError; - break; - } - case 1064: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.KeywordPlanAdGroupKeywordError; - break; - } - case 1072: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AccountLinkError; - break; - } - case 1080: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ThirdPartyAppAnalyticsLinkError; - break; - } - case 1088: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ChangeEventError; - break; - } - case 1096: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.NotAllowlistedError; - break; - } - case 1104: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerUserAccessError; - break; - } - case 1112: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomAudienceError; - break; - } - case 1120: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemSetError; - break; - } - case 1128: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.FeedItemSetLinkError; - break; - } - case 1144: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionCustomVariableError; - break; - } - case 1160: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionValueRuleError; - break; - } - case 1168: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionValueRuleSetError; - break; - } - case 1176: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.SmartCampaignError; - break; - } - case 1184: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupError; - break; - } - case 1192: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupAssetError; - break; - } - case 1200: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomConversionGoalError; - break; - } - case 1208: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomizerAttributeError; - break; - } - case 1216: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetSetError; - break; - } - case 1224: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetSetAssetError; - break; - } - case 1232: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetSetLinkError; - break; - } - case 1240: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AssetGroupListingGroupFilterError; - break; - } - case 1248: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ExperimentArmError; - break; - } - case 1264: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CustomerCustomizerError; - break; - } - case 1272: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCustomizerError; - break; - } - case 1280: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignCustomizerError; - break; - } - case 1288: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AdGroupCriterionCustomizerError; - break; - } - case 1296: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.MerchantCenterError; - break; - } - case 1312: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AudienceError; - break; - } - case 1320: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.ConversionGoalCampaignConfigError; - break; - } - case 1328: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.CampaignConversionGoalError; - break; - } - case 1336: { - errorCode_ = input.ReadEnum(); - errorCodeCase_ = ErrorCodeOneofCase.AudienceInsightsError; - break; - } - } - } - } - #endif - - } - - /// - /// Describes the part of the request proto that caused the error. - /// - public sealed partial class ErrorLocation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorLocation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorLocation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorLocation(ErrorLocation other) : this() { - fieldPathElements_ = other.fieldPathElements_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorLocation Clone() { - return new ErrorLocation(this); - } - - /// Field number for the "field_path_elements" field. - public const int FieldPathElementsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_fieldPathElements_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation.Types.FieldPathElement.Parser); - private readonly pbc::RepeatedField fieldPathElements_ = new pbc::RepeatedField(); - /// - /// A field path that indicates which field was invalid in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FieldPathElements { - get { return fieldPathElements_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ErrorLocation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ErrorLocation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!fieldPathElements_.Equals(other.fieldPathElements_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= fieldPathElements_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - fieldPathElements_.WriteTo(output, _repeated_fieldPathElements_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - fieldPathElements_.WriteTo(ref output, _repeated_fieldPathElements_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += fieldPathElements_.CalculateSize(_repeated_fieldPathElements_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ErrorLocation other) { - if (other == null) { - return; - } - fieldPathElements_.Add(other.fieldPathElements_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - fieldPathElements_.AddEntriesFrom(input, _repeated_fieldPathElements_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - fieldPathElements_.AddEntriesFrom(ref input, _repeated_fieldPathElements_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ErrorLocation message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// A part of a field path. - /// - public sealed partial class FieldPathElement : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldPathElement()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorLocation.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldPathElement() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldPathElement(FieldPathElement other) : this() { - _hasBits0 = other._hasBits0; - fieldName_ = other.fieldName_; - index_ = other.index_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldPathElement Clone() { - return new FieldPathElement(this); - } - - /// Field number for the "field_name" field. - public const int FieldNameFieldNumber = 1; - private string fieldName_ = ""; - /// - /// The name of a field or a oneof - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FieldName { - get { return fieldName_; } - set { - fieldName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "index" field. - public const int IndexFieldNumber = 3; - private int index_; - /// - /// If field_name is a repeated field, this is the element that failed - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Index { - get { if ((_hasBits0 & 1) != 0) { return index_; } else { return 0; } } - set { - _hasBits0 |= 1; - index_ = value; - } - } - /// Gets whether the "index" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIndex { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "index" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIndex() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FieldPathElement); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FieldPathElement other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FieldName != other.FieldName) return false; - if (Index != other.Index) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (FieldName.Length != 0) hash ^= FieldName.GetHashCode(); - if (HasIndex) hash ^= Index.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (FieldName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FieldName); - } - if (HasIndex) { - output.WriteRawTag(24); - output.WriteInt32(Index); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (FieldName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(FieldName); - } - if (HasIndex) { - output.WriteRawTag(24); - output.WriteInt32(Index); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (FieldName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FieldName); - } - if (HasIndex) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FieldPathElement other) { - if (other == null) { - return; - } - if (other.FieldName.Length != 0) { - FieldName = other.FieldName; - } - if (other.HasIndex) { - Index = other.Index; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - FieldName = input.ReadString(); - break; - } - case 24: { - Index = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - FieldName = input.ReadString(); - break; - } - case 24: { - Index = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Additional error details. - /// - public sealed partial class ErrorDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ErrorDetails()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorDetails(ErrorDetails other) : this() { - unpublishedErrorCode_ = other.unpublishedErrorCode_; - policyViolationDetails_ = other.policyViolationDetails_ != null ? other.policyViolationDetails_.Clone() : null; - policyFindingDetails_ = other.policyFindingDetails_ != null ? other.policyFindingDetails_.Clone() : null; - quotaErrorDetails_ = other.quotaErrorDetails_ != null ? other.quotaErrorDetails_.Clone() : null; - resourceCountDetails_ = other.resourceCountDetails_ != null ? other.resourceCountDetails_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ErrorDetails Clone() { - return new ErrorDetails(this); - } - - /// Field number for the "unpublished_error_code" field. - public const int UnpublishedErrorCodeFieldNumber = 1; - private string unpublishedErrorCode_ = ""; - /// - /// The error code that should have been returned, but wasn't. This is used - /// when the error code is not published in the client specified version. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string UnpublishedErrorCode { - get { return unpublishedErrorCode_; } - set { - unpublishedErrorCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "policy_violation_details" field. - public const int PolicyViolationDetailsFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationDetails policyViolationDetails_; - /// - /// Describes an ad policy violation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationDetails PolicyViolationDetails { - get { return policyViolationDetails_; } - set { - policyViolationDetails_ = value; - } - } - - /// Field number for the "policy_finding_details" field. - public const int PolicyFindingDetailsFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingDetails policyFindingDetails_; - /// - /// Describes policy violation findings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingDetails PolicyFindingDetails { - get { return policyFindingDetails_; } - set { - policyFindingDetails_ = value; - } - } - - /// Field number for the "quota_error_details" field. - public const int QuotaErrorDetailsFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails quotaErrorDetails_; - /// - /// Details on the quota error, including the scope (account or developer), the - /// rate bucket name and the retry delay. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails QuotaErrorDetails { - get { return quotaErrorDetails_; } - set { - quotaErrorDetails_ = value; - } - } - - /// Field number for the "resource_count_details" field. - public const int ResourceCountDetailsFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Errors.ResourceCountDetails resourceCountDetails_; - /// - /// Details for a resource count limit exceeded error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.ResourceCountDetails ResourceCountDetails { - get { return resourceCountDetails_; } - set { - resourceCountDetails_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ErrorDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ErrorDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (UnpublishedErrorCode != other.UnpublishedErrorCode) return false; - if (!object.Equals(PolicyViolationDetails, other.PolicyViolationDetails)) return false; - if (!object.Equals(PolicyFindingDetails, other.PolicyFindingDetails)) return false; - if (!object.Equals(QuotaErrorDetails, other.QuotaErrorDetails)) return false; - if (!object.Equals(ResourceCountDetails, other.ResourceCountDetails)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (UnpublishedErrorCode.Length != 0) hash ^= UnpublishedErrorCode.GetHashCode(); - if (policyViolationDetails_ != null) hash ^= PolicyViolationDetails.GetHashCode(); - if (policyFindingDetails_ != null) hash ^= PolicyFindingDetails.GetHashCode(); - if (quotaErrorDetails_ != null) hash ^= QuotaErrorDetails.GetHashCode(); - if (resourceCountDetails_ != null) hash ^= ResourceCountDetails.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (UnpublishedErrorCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UnpublishedErrorCode); - } - if (policyViolationDetails_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PolicyViolationDetails); - } - if (policyFindingDetails_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PolicyFindingDetails); - } - if (quotaErrorDetails_ != null) { - output.WriteRawTag(34); - output.WriteMessage(QuotaErrorDetails); - } - if (resourceCountDetails_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ResourceCountDetails); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (UnpublishedErrorCode.Length != 0) { - output.WriteRawTag(10); - output.WriteString(UnpublishedErrorCode); - } - if (policyViolationDetails_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PolicyViolationDetails); - } - if (policyFindingDetails_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PolicyFindingDetails); - } - if (quotaErrorDetails_ != null) { - output.WriteRawTag(34); - output.WriteMessage(QuotaErrorDetails); - } - if (resourceCountDetails_ != null) { - output.WriteRawTag(42); - output.WriteMessage(ResourceCountDetails); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (UnpublishedErrorCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(UnpublishedErrorCode); - } - if (policyViolationDetails_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicyViolationDetails); - } - if (policyFindingDetails_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PolicyFindingDetails); - } - if (quotaErrorDetails_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(QuotaErrorDetails); - } - if (resourceCountDetails_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceCountDetails); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ErrorDetails other) { - if (other == null) { - return; - } - if (other.UnpublishedErrorCode.Length != 0) { - UnpublishedErrorCode = other.UnpublishedErrorCode; - } - if (other.policyViolationDetails_ != null) { - if (policyViolationDetails_ == null) { - PolicyViolationDetails = new global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationDetails(); - } - PolicyViolationDetails.MergeFrom(other.PolicyViolationDetails); - } - if (other.policyFindingDetails_ != null) { - if (policyFindingDetails_ == null) { - PolicyFindingDetails = new global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingDetails(); - } - PolicyFindingDetails.MergeFrom(other.PolicyFindingDetails); - } - if (other.quotaErrorDetails_ != null) { - if (quotaErrorDetails_ == null) { - QuotaErrorDetails = new global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails(); - } - QuotaErrorDetails.MergeFrom(other.QuotaErrorDetails); - } - if (other.resourceCountDetails_ != null) { - if (resourceCountDetails_ == null) { - ResourceCountDetails = new global::Google.Ads.GoogleAds.V12.Errors.ResourceCountDetails(); - } - ResourceCountDetails.MergeFrom(other.ResourceCountDetails); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - UnpublishedErrorCode = input.ReadString(); - break; - } - case 18: { - if (policyViolationDetails_ == null) { - PolicyViolationDetails = new global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationDetails(); - } - input.ReadMessage(PolicyViolationDetails); - break; - } - case 26: { - if (policyFindingDetails_ == null) { - PolicyFindingDetails = new global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingDetails(); - } - input.ReadMessage(PolicyFindingDetails); - break; - } - case 34: { - if (quotaErrorDetails_ == null) { - QuotaErrorDetails = new global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails(); - } - input.ReadMessage(QuotaErrorDetails); - break; - } - case 42: { - if (resourceCountDetails_ == null) { - ResourceCountDetails = new global::Google.Ads.GoogleAds.V12.Errors.ResourceCountDetails(); - } - input.ReadMessage(ResourceCountDetails); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - UnpublishedErrorCode = input.ReadString(); - break; - } - case 18: { - if (policyViolationDetails_ == null) { - PolicyViolationDetails = new global::Google.Ads.GoogleAds.V12.Errors.PolicyViolationDetails(); - } - input.ReadMessage(PolicyViolationDetails); - break; - } - case 26: { - if (policyFindingDetails_ == null) { - PolicyFindingDetails = new global::Google.Ads.GoogleAds.V12.Errors.PolicyFindingDetails(); - } - input.ReadMessage(PolicyFindingDetails); - break; - } - case 34: { - if (quotaErrorDetails_ == null) { - QuotaErrorDetails = new global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails(); - } - input.ReadMessage(QuotaErrorDetails); - break; - } - case 42: { - if (resourceCountDetails_ == null) { - ResourceCountDetails = new global::Google.Ads.GoogleAds.V12.Errors.ResourceCountDetails(); - } - input.ReadMessage(ResourceCountDetails); - break; - } - } - } - } - #endif - - } - - /// - /// Error returned as part of a mutate response. - /// This error indicates single policy violation by some text - /// in one of the fields. - /// - public sealed partial class PolicyViolationDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PolicyViolationDetails()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PolicyViolationDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PolicyViolationDetails(PolicyViolationDetails other) : this() { - externalPolicyDescription_ = other.externalPolicyDescription_; - key_ = other.key_ != null ? other.key_.Clone() : null; - externalPolicyName_ = other.externalPolicyName_; - isExemptible_ = other.isExemptible_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PolicyViolationDetails Clone() { - return new PolicyViolationDetails(this); - } - - /// Field number for the "external_policy_description" field. - public const int ExternalPolicyDescriptionFieldNumber = 2; - private string externalPolicyDescription_ = ""; - /// - /// Human readable description of policy violation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ExternalPolicyDescription { - get { return externalPolicyDescription_; } - set { - externalPolicyDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.PolicyViolationKey key_; - /// - /// Unique identifier for this violation. - /// If policy is exemptible, this key may be used to request exemption. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PolicyViolationKey Key { - get { return key_; } - set { - key_ = value; - } - } - - /// Field number for the "external_policy_name" field. - public const int ExternalPolicyNameFieldNumber = 5; - private string externalPolicyName_ = ""; - /// - /// Human readable name of the policy. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ExternalPolicyName { - get { return externalPolicyName_; } - set { - externalPolicyName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_exemptible" field. - public const int IsExemptibleFieldNumber = 6; - private bool isExemptible_; - /// - /// Whether user can file an exemption request for this violation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsExemptible { - get { return isExemptible_; } - set { - isExemptible_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PolicyViolationDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PolicyViolationDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ExternalPolicyDescription != other.ExternalPolicyDescription) return false; - if (!object.Equals(Key, other.Key)) return false; - if (ExternalPolicyName != other.ExternalPolicyName) return false; - if (IsExemptible != other.IsExemptible) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ExternalPolicyDescription.Length != 0) hash ^= ExternalPolicyDescription.GetHashCode(); - if (key_ != null) hash ^= Key.GetHashCode(); - if (ExternalPolicyName.Length != 0) hash ^= ExternalPolicyName.GetHashCode(); - if (IsExemptible != false) hash ^= IsExemptible.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ExternalPolicyDescription.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ExternalPolicyDescription); - } - if (key_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Key); - } - if (ExternalPolicyName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ExternalPolicyName); - } - if (IsExemptible != false) { - output.WriteRawTag(48); - output.WriteBool(IsExemptible); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ExternalPolicyDescription.Length != 0) { - output.WriteRawTag(18); - output.WriteString(ExternalPolicyDescription); - } - if (key_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Key); - } - if (ExternalPolicyName.Length != 0) { - output.WriteRawTag(42); - output.WriteString(ExternalPolicyName); - } - if (IsExemptible != false) { - output.WriteRawTag(48); - output.WriteBool(IsExemptible); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ExternalPolicyDescription.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalPolicyDescription); - } - if (key_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); - } - if (ExternalPolicyName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalPolicyName); - } - if (IsExemptible != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PolicyViolationDetails other) { - if (other == null) { - return; - } - if (other.ExternalPolicyDescription.Length != 0) { - ExternalPolicyDescription = other.ExternalPolicyDescription; - } - if (other.key_ != null) { - if (key_ == null) { - Key = new global::Google.Ads.GoogleAds.V12.Common.PolicyViolationKey(); - } - Key.MergeFrom(other.Key); - } - if (other.ExternalPolicyName.Length != 0) { - ExternalPolicyName = other.ExternalPolicyName; - } - if (other.IsExemptible != false) { - IsExemptible = other.IsExemptible; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - ExternalPolicyDescription = input.ReadString(); - break; - } - case 34: { - if (key_ == null) { - Key = new global::Google.Ads.GoogleAds.V12.Common.PolicyViolationKey(); - } - input.ReadMessage(Key); - break; - } - case 42: { - ExternalPolicyName = input.ReadString(); - break; - } - case 48: { - IsExemptible = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - ExternalPolicyDescription = input.ReadString(); - break; - } - case 34: { - if (key_ == null) { - Key = new global::Google.Ads.GoogleAds.V12.Common.PolicyViolationKey(); - } - input.ReadMessage(Key); - break; - } - case 42: { - ExternalPolicyName = input.ReadString(); - break; - } - case 48: { - IsExemptible = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Error returned as part of a mutate response. - /// This error indicates one or more policy findings in the fields of a - /// resource. - /// - public sealed partial class PolicyFindingDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PolicyFindingDetails()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PolicyFindingDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PolicyFindingDetails(PolicyFindingDetails other) : this() { - policyTopicEntries_ = other.policyTopicEntries_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PolicyFindingDetails Clone() { - return new PolicyFindingDetails(this); - } - - /// Field number for the "policy_topic_entries" field. - public const int PolicyTopicEntriesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_policyTopicEntries_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.PolicyTopicEntry.Parser); - private readonly pbc::RepeatedField policyTopicEntries_ = new pbc::RepeatedField(); - /// - /// The list of policy topics for the resource. Contains the PROHIBITED or - /// FULLY_LIMITED policy topic entries that prevented the resource from being - /// saved (among any other entries the resource may also have). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PolicyTopicEntries { - get { return policyTopicEntries_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PolicyFindingDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PolicyFindingDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!policyTopicEntries_.Equals(other.policyTopicEntries_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= policyTopicEntries_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - policyTopicEntries_.WriteTo(output, _repeated_policyTopicEntries_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - policyTopicEntries_.WriteTo(ref output, _repeated_policyTopicEntries_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += policyTopicEntries_.CalculateSize(_repeated_policyTopicEntries_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PolicyFindingDetails other) { - if (other == null) { - return; - } - policyTopicEntries_.Add(other.policyTopicEntries_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(input, _repeated_policyTopicEntries_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - policyTopicEntries_.AddEntriesFrom(ref input, _repeated_policyTopicEntries_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Additional quota error details when there is QuotaError. - /// - public sealed partial class QuotaErrorDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QuotaErrorDetails()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QuotaErrorDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QuotaErrorDetails(QuotaErrorDetails other) : this() { - rateScope_ = other.rateScope_; - rateName_ = other.rateName_; - retryDelay_ = other.retryDelay_ != null ? other.retryDelay_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QuotaErrorDetails Clone() { - return new QuotaErrorDetails(this); - } - - /// Field number for the "rate_scope" field. - public const int RateScopeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope rateScope_ = global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope.Unspecified; - /// - /// The rate scope of the quota limit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope RateScope { - get { return rateScope_; } - set { - rateScope_ = value; - } - } - - /// Field number for the "rate_name" field. - public const int RateNameFieldNumber = 2; - private string rateName_ = ""; - /// - /// The high level description of the quota bucket. - /// Examples are "Get requests for standard access" or "Requests per account". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RateName { - get { return rateName_; } - set { - rateName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "retry_delay" field. - public const int RetryDelayFieldNumber = 3; - private global::Google.Protobuf.WellKnownTypes.Duration retryDelay_; - /// - /// Backoff period that customers should wait before sending next request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.Duration RetryDelay { - get { return retryDelay_; } - set { - retryDelay_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as QuotaErrorDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(QuotaErrorDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RateScope != other.RateScope) return false; - if (RateName != other.RateName) return false; - if (!object.Equals(RetryDelay, other.RetryDelay)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (RateScope != global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope.Unspecified) hash ^= RateScope.GetHashCode(); - if (RateName.Length != 0) hash ^= RateName.GetHashCode(); - if (retryDelay_ != null) hash ^= RetryDelay.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (RateScope != global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) RateScope); - } - if (RateName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RateName); - } - if (retryDelay_ != null) { - output.WriteRawTag(26); - output.WriteMessage(RetryDelay); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RateScope != global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) RateScope); - } - if (RateName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(RateName); - } - if (retryDelay_ != null) { - output.WriteRawTag(26); - output.WriteMessage(RetryDelay); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (RateScope != global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RateScope); - } - if (RateName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RateName); - } - if (retryDelay_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(RetryDelay); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(QuotaErrorDetails other) { - if (other == null) { - return; - } - if (other.RateScope != global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope.Unspecified) { - RateScope = other.RateScope; - } - if (other.RateName.Length != 0) { - RateName = other.RateName; - } - if (other.retryDelay_ != null) { - if (retryDelay_ == null) { - RetryDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - RetryDelay.MergeFrom(other.RetryDelay); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - RateScope = (global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope) input.ReadEnum(); - break; - } - case 18: { - RateName = input.ReadString(); - break; - } - case 26: { - if (retryDelay_ == null) { - RetryDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(RetryDelay); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - RateScope = (global::Google.Ads.GoogleAds.V12.Errors.QuotaErrorDetails.Types.QuotaRateScope) input.ReadEnum(); - break; - } - case 18: { - RateName = input.ReadString(); - break; - } - case 26: { - if (retryDelay_ == null) { - RetryDelay = new global::Google.Protobuf.WellKnownTypes.Duration(); - } - input.ReadMessage(RetryDelay); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the QuotaErrorDetails message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum of possible scopes that quota buckets belong to. - /// - public enum QuotaRateScope { - /// - /// Unspecified enum - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Per customer account quota - /// - [pbr::OriginalName("ACCOUNT")] Account = 2, - /// - /// Per project or DevToken quota - /// - [pbr::OriginalName("DEVELOPER")] Developer = 3, - } - - } - #endregion - - } - - /// - /// Error details returned when an resource count limit was exceeded. - /// - public sealed partial class ResourceCountDetails : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceCountDetails()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ErrorsReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResourceCountDetails() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResourceCountDetails(ResourceCountDetails other) : this() { - enclosingId_ = other.enclosingId_; - enclosingResource_ = other.enclosingResource_; - limit_ = other.limit_; - limitType_ = other.limitType_; - existingCount_ = other.existingCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResourceCountDetails Clone() { - return new ResourceCountDetails(this); - } - - /// Field number for the "enclosing_id" field. - public const int EnclosingIdFieldNumber = 1; - private string enclosingId_ = ""; - /// - /// The ID of the resource whose limit was exceeded. - /// External customer ID if the limit is for a customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EnclosingId { - get { return enclosingId_; } - set { - enclosingId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "enclosing_resource" field. - public const int EnclosingResourceFieldNumber = 5; - private string enclosingResource_ = ""; - /// - /// The name of the resource (Customer, Campaign etc.) whose limit was - /// exceeded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EnclosingResource { - get { return enclosingResource_; } - set { - enclosingResource_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "limit" field. - public const int LimitFieldNumber = 2; - private int limit_; - /// - /// The limit which was exceeded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Limit { - get { return limit_; } - set { - limit_ = value; - } - } - - /// Field number for the "limit_type" field. - public const int LimitTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType limitType_ = global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType.Unspecified; - /// - /// The resource limit type which was exceeded. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType LimitType { - get { return limitType_; } - set { - limitType_ = value; - } - } - - /// Field number for the "existing_count" field. - public const int ExistingCountFieldNumber = 4; - private int existingCount_; - /// - /// The count of existing entities. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ExistingCount { - get { return existingCount_; } - set { - existingCount_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ResourceCountDetails); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ResourceCountDetails other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EnclosingId != other.EnclosingId) return false; - if (EnclosingResource != other.EnclosingResource) return false; - if (Limit != other.Limit) return false; - if (LimitType != other.LimitType) return false; - if (ExistingCount != other.ExistingCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (EnclosingId.Length != 0) hash ^= EnclosingId.GetHashCode(); - if (EnclosingResource.Length != 0) hash ^= EnclosingResource.GetHashCode(); - if (Limit != 0) hash ^= Limit.GetHashCode(); - if (LimitType != global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType.Unspecified) hash ^= LimitType.GetHashCode(); - if (ExistingCount != 0) hash ^= ExistingCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (EnclosingId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(EnclosingId); - } - if (Limit != 0) { - output.WriteRawTag(16); - output.WriteInt32(Limit); - } - if (LimitType != global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LimitType); - } - if (ExistingCount != 0) { - output.WriteRawTag(32); - output.WriteInt32(ExistingCount); - } - if (EnclosingResource.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EnclosingResource); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (EnclosingId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(EnclosingId); - } - if (Limit != 0) { - output.WriteRawTag(16); - output.WriteInt32(Limit); - } - if (LimitType != global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LimitType); - } - if (ExistingCount != 0) { - output.WriteRawTag(32); - output.WriteInt32(ExistingCount); - } - if (EnclosingResource.Length != 0) { - output.WriteRawTag(42); - output.WriteString(EnclosingResource); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (EnclosingId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EnclosingId); - } - if (EnclosingResource.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EnclosingResource); - } - if (Limit != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); - } - if (LimitType != global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LimitType); - } - if (ExistingCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ExistingCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ResourceCountDetails other) { - if (other == null) { - return; - } - if (other.EnclosingId.Length != 0) { - EnclosingId = other.EnclosingId; - } - if (other.EnclosingResource.Length != 0) { - EnclosingResource = other.EnclosingResource; - } - if (other.Limit != 0) { - Limit = other.Limit; - } - if (other.LimitType != global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType.Unspecified) { - LimitType = other.LimitType; - } - if (other.ExistingCount != 0) { - ExistingCount = other.ExistingCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - EnclosingId = input.ReadString(); - break; - } - case 16: { - Limit = input.ReadInt32(); - break; - } - case 24: { - LimitType = (global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType) input.ReadEnum(); - break; - } - case 32: { - ExistingCount = input.ReadInt32(); - break; - } - case 42: { - EnclosingResource = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - EnclosingId = input.ReadString(); - break; - } - case 16: { - Limit = input.ReadInt32(); - break; - } - case 24: { - LimitType = (global::Google.Ads.GoogleAds.V12.Enums.ResourceLimitTypeEnum.Types.ResourceLimitType) input.ReadEnum(); - break; - } - case 32: { - ExistingCount = input.ReadInt32(); - break; - } - case 42: { - EnclosingResource = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExpandedLandingPageView.g.cs b/Google.Ads.GoogleAds/src/V12/ExpandedLandingPageView.g.cs deleted file mode 100755 index fa76cf55e..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExpandedLandingPageView.g.cs +++ /dev/null @@ -1,309 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/expanded_landing_page_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/expanded_landing_page_view.proto - public static partial class ExpandedLandingPageViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/expanded_landing_page_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExpandedLandingPageViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2V4cGFuZGVk", - "X2xhbmRpbmdfcGFnZV92aWV3LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", - "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIrMCChdFeHBhbmRlZExh", - "bmRpbmdQYWdlVmlldxJPCg1yZXNvdXJjZV9uYW1lGAEgASgJQjjgQQP6QTIK", - "MGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9FeHBhbmRlZExhbmRpbmdQYWdl", - "VmlldxIkChJleHBhbmRlZF9maW5hbF91cmwYAyABKAlCA+BBA0gAiAEBOokB", - "6kGFAQowZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0V4cGFuZGVkTGFuZGlu", - "Z1BhZ2VWaWV3ElFjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9leHBhbmRlZExh", - "bmRpbmdQYWdlVmlld3Mve2V4cGFuZGVkX2ZpbmFsX3VybF9maW5nZXJwcmlu", - "dH1CFQoTX2V4cGFuZGVkX2ZpbmFsX3VybEKOAgomY29tLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCHEV4cGFuZGVkTGFuZGluZ1BhZ2VW", - "aWV3UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogID", - "R0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageView), global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageView.Parser, new[]{ "ResourceName", "ExpandedFinalUrl" }, new[]{ "ExpandedFinalUrl" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A landing page view with metrics aggregated at the expanded final URL - /// level. - /// - public sealed partial class ExpandedLandingPageView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExpandedLandingPageView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedLandingPageView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedLandingPageView(ExpandedLandingPageView other) : this() { - resourceName_ = other.resourceName_; - expandedFinalUrl_ = other.expandedFinalUrl_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExpandedLandingPageView Clone() { - return new ExpandedLandingPageView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the expanded landing page view. - /// Expanded landing page view resource names have the form: - /// - /// `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "expanded_final_url" field. - public const int ExpandedFinalUrlFieldNumber = 3; - private string expandedFinalUrl_; - /// - /// Output only. The final URL that clicks are directed to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ExpandedFinalUrl { - get { return expandedFinalUrl_ ?? ""; } - set { - expandedFinalUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "expanded_final_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExpandedFinalUrl { - get { return expandedFinalUrl_ != null; } - } - /// Clears the value of the "expanded_final_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExpandedFinalUrl() { - expandedFinalUrl_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExpandedLandingPageView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExpandedLandingPageView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ExpandedFinalUrl != other.ExpandedFinalUrl) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasExpandedFinalUrl) hash ^= ExpandedFinalUrl.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasExpandedFinalUrl) { - output.WriteRawTag(26); - output.WriteString(ExpandedFinalUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasExpandedFinalUrl) { - output.WriteRawTag(26); - output.WriteString(ExpandedFinalUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasExpandedFinalUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpandedFinalUrl); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExpandedLandingPageView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasExpandedFinalUrl) { - ExpandedFinalUrl = other.ExpandedFinalUrl; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: { - ExpandedFinalUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: { - ExpandedFinalUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExpandedLandingPageViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExpandedLandingPageViewResourceNames.g.cs deleted file mode 100755 index 60f4294af..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExpandedLandingPageViewResourceNames.g.cs +++ /dev/null @@ -1,289 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ExpandedLandingPageView resource. - public sealed partial class ExpandedLandingPageViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}. - /// - CustomerExpandedFinalUrlFingerprint = 1, - } - - private static gax::PathTemplate s_customerExpandedFinalUrlFingerprint = new gax::PathTemplate("customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ExpandedLandingPageViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ExpandedLandingPageViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ExpandedFinalUrlFingerprint ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static ExpandedLandingPageViewName FromCustomerExpandedFinalUrlFingerprint(string customerId, string expandedFinalUrlFingerprintId) => - new ExpandedLandingPageViewName(ResourceNameType.CustomerExpandedFinalUrlFingerprint, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), expandedFinalUrlFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(expandedFinalUrlFingerprintId, nameof(expandedFinalUrlFingerprintId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ExpandedFinalUrlFingerprint ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}. - /// - public static string Format(string customerId, string expandedFinalUrlFingerprintId) => - FormatCustomerExpandedFinalUrlFingerprint(customerId, expandedFinalUrlFingerprintId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ExpandedFinalUrlFingerprint ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}. - /// - public static string FormatCustomerExpandedFinalUrlFingerprint(string customerId, string expandedFinalUrlFingerprintId) => - s_customerExpandedFinalUrlFingerprint.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(expandedFinalUrlFingerprintId, nameof(expandedFinalUrlFingerprintId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ExpandedLandingPageViewName Parse(string expandedLandingPageViewName) => - Parse(expandedLandingPageViewName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ExpandedLandingPageViewName Parse(string expandedLandingPageViewName, bool allowUnparsed) => - TryParse(expandedLandingPageViewName, allowUnparsed, out ExpandedLandingPageViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string expandedLandingPageViewName, out ExpandedLandingPageViewName result) => - TryParse(expandedLandingPageViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string expandedLandingPageViewName, bool allowUnparsed, out ExpandedLandingPageViewName result) - { - gax::GaxPreconditions.CheckNotNull(expandedLandingPageViewName, nameof(expandedLandingPageViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerExpandedFinalUrlFingerprint.TryParseName(expandedLandingPageViewName, out resourceName)) - { - result = FromCustomerExpandedFinalUrlFingerprint(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(expandedLandingPageViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ExpandedLandingPageViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string expandedFinalUrlFingerprintId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - ExpandedFinalUrlFingerprintId = expandedFinalUrlFingerprintId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The ExpandedFinalUrlFingerprint ID. Must not be null or empty. - /// - public ExpandedLandingPageViewName(string customerId, string expandedFinalUrlFingerprintId) : this(ResourceNameType.CustomerExpandedFinalUrlFingerprint, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), expandedFinalUrlFingerprintId: gax::GaxPreconditions.CheckNotNullOrEmpty(expandedFinalUrlFingerprintId, nameof(expandedFinalUrlFingerprintId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The ExpandedFinalUrlFingerprint ID. Will not be null, unless this instance contains an - /// unparsed resource name. - /// - public string ExpandedFinalUrlFingerprintId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerExpandedFinalUrlFingerprint: return s_customerExpandedFinalUrlFingerprint.Expand(CustomerId, ExpandedFinalUrlFingerprintId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ExpandedLandingPageViewName); - - /// - public bool Equals(ExpandedLandingPageViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ExpandedLandingPageViewName a, ExpandedLandingPageViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ExpandedLandingPageViewName a, ExpandedLandingPageViewName b) => !(a == b); - } - - public partial class ExpandedLandingPageView - { - /// - /// -typed view over the resource name - /// property. - /// - internal ExpandedLandingPageViewName ResourceNameAsExpandedLandingPageViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ExpandedLandingPageViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/Experiment.g.cs b/Google.Ads.GoogleAds/src/V12/Experiment.g.cs deleted file mode 100755 index c14a991aa..000000000 --- a/Google.Ads.GoogleAds/src/V12/Experiment.g.cs +++ /dev/null @@ -1,770 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/experiment.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/experiment.proto - public static partial class ExperimentReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/experiment.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2V4cGVyaW1l", - "bnQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMa", - "MWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vbWV0cmljX2dvYWwu", - "cHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hc3luY19h", - "Y3Rpb25fc3RhdHVzLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMvZXhwZXJpbWVudF9zdGF0dXMucHJvdG8aNGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9leHBlcmltZW50X3R5cGUucHJvdG8aH2dvb2ds", - "ZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3Vy", - "Y2UucHJvdG8i9QUKCkV4cGVyaW1lbnQSQgoNcmVzb3VyY2VfbmFtZRgBIAEo", - "CUIr4EEF+kElCiNnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRXhwZXJpbWVu", - "dBIfCg1leHBlcmltZW50X2lkGAkgASgDQgPgQQNIAIgBARIRCgRuYW1lGAog", - "ASgJQgPgQQISEwoLZGVzY3JpcHRpb24YCyABKAkSDgoGc3VmZml4GAwgASgJ", - "ElQKBHR5cGUYDSABKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMuRXhwZXJpbWVudFR5cGVFbnVtLkV4cGVyaW1lbnRUeXBlQgPgQQISVQoG", - "c3RhdHVzGA4gASgOMkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LkV4cGVyaW1lbnRTdGF0dXNFbnVtLkV4cGVyaW1lbnRTdGF0dXMSFwoKc3Rh", - "cnRfZGF0ZRgPIAEoCUgBiAEBEhUKCGVuZF9kYXRlGBAgASgJSAKIAQESOgoF", - "Z29hbHMYESADKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "Lk1ldHJpY0dvYWwSKAoWbG9uZ19ydW5uaW5nX29wZXJhdGlvbhgSIAEoCUID", - "4EEDSAOIAQESZAoOcHJvbW90ZV9zdGF0dXMYEyABKA4yRy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXMuQXN5bmNBY3Rpb25TdGF0dXNFbnVtLkFz", - "eW5jQWN0aW9uU3RhdHVzQgPgQQM6WOpBVQojZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0V4cGVyaW1lbnQSLmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2V4", - "cGVyaW1lbnRzL3t0cmlhbF9pZH1CEAoOX2V4cGVyaW1lbnRfaWRCDQoLX3N0", - "YXJ0X2RhdGVCCwoJX2VuZF9kYXRlQhkKF19sb25nX3J1bm5pbmdfb3BlcmF0", - "aW9uQoECCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "c0IPRXhwZXJpbWVudFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.MetricGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Experiment), global::Google.Ads.GoogleAds.V12.Resources.Experiment.Parser, new[]{ "ResourceName", "ExperimentId", "Name", "Description", "Suffix", "Type", "Status", "StartDate", "EndDate", "Goals", "LongRunningOperation", "PromoteStatus" }, new[]{ "ExperimentId", "StartDate", "EndDate", "LongRunningOperation" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Google ads experiment for users to experiment changes on multiple - /// campaigns, compare the performance, and apply the effective changes. - /// - public sealed partial class Experiment : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Experiment()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ExperimentReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Experiment() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Experiment(Experiment other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - experimentId_ = other.experimentId_; - name_ = other.name_; - description_ = other.description_; - suffix_ = other.suffix_; - type_ = other.type_; - status_ = other.status_; - startDate_ = other.startDate_; - endDate_ = other.endDate_; - goals_ = other.goals_.Clone(); - longRunningOperation_ = other.longRunningOperation_; - promoteStatus_ = other.promoteStatus_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Experiment Clone() { - return new Experiment(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the experiment. - /// Experiment resource names have the form: - /// - /// `customers/{customer_id}/experiments/{experiment_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "experiment_id" field. - public const int ExperimentIdFieldNumber = 9; - private long experimentId_; - /// - /// Output only. The ID of the experiment. Read only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExperimentId { - get { if ((_hasBits0 & 1) != 0) { return experimentId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - experimentId_ = value; - } - } - /// Gets whether the "experiment_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExperimentId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "experiment_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExperimentId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 10; - private string name_ = ""; - /// - /// Required. The name of the experiment. It must have a minimum length of 1 and - /// maximum length of 1024. It must be unique under a customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 11; - private string description_ = ""; - /// - /// The description of the experiment. It must have a minimum length of 1 and - /// maximum length of 2048. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "suffix" field. - public const int SuffixFieldNumber = 12; - private string suffix_ = ""; - /// - /// For system managed experiments, the advertiser must provide a suffix during - /// construction, in the setup stage before moving to initiated. The suffix - /// will be appended to the in-design and experiment campaign names so that the - /// name is base campaign name + suffix. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Suffix { - get { return suffix_; } - set { - suffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 13; - private global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType type_ = global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified; - /// - /// Required. The product/feature that uses this experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 14; - private global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified; - /// - /// The Advertiser-chosen status of this experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 15; - private string startDate_; - /// - /// Date when the experiment starts. By default, the experiment starts - /// now or on the campaign's start date, whichever is later. If this field is - /// set, then the experiment starts at the beginning of the specified date in - /// the customer's time zone. - /// - /// Format: YYYY-MM-DD - /// Example: 2019-03-14 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_ ?? ""; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDate { - get { return startDate_ != null; } - } - /// Clears the value of the "start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDate() { - startDate_ = null; - } - - /// Field number for the "end_date" field. - public const int EndDateFieldNumber = 16; - private string endDate_; - /// - /// Date when the experiment ends. By default, the experiment ends on - /// the campaign's end date. If this field is set, then the experiment ends at - /// the end of the specified date in the customer's time zone. - /// - /// Format: YYYY-MM-DD - /// Example: 2019-04-18 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDate { - get { return endDate_ ?? ""; } - set { - endDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDate { - get { return endDate_ != null; } - } - /// Clears the value of the "end_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDate() { - endDate_ = null; - } - - /// Field number for the "goals" field. - public const int GoalsFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_goals_codec - = pb::FieldCodec.ForMessage(138, global::Google.Ads.GoogleAds.V12.Common.MetricGoal.Parser); - private readonly pbc::RepeatedField goals_ = new pbc::RepeatedField(); - /// - /// The goals of this experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Goals { - get { return goals_; } - } - - /// Field number for the "long_running_operation" field. - public const int LongRunningOperationFieldNumber = 18; - private string longRunningOperation_; - /// - /// Output only. The resource name of the long-running operation that can be used to poll - /// for completion of experiment schedule or promote. The most recent long - /// running operation is returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LongRunningOperation { - get { return longRunningOperation_ ?? ""; } - set { - longRunningOperation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "long_running_operation" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLongRunningOperation { - get { return longRunningOperation_ != null; } - } - /// Clears the value of the "long_running_operation" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLongRunningOperation() { - longRunningOperation_ = null; - } - - /// Field number for the "promote_status" field. - public const int PromoteStatusFieldNumber = 19; - private global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus promoteStatus_ = global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified; - /// - /// Output only. The status of the experiment promotion process. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus PromoteStatus { - get { return promoteStatus_; } - set { - promoteStatus_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Experiment); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Experiment other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ExperimentId != other.ExperimentId) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - if (Suffix != other.Suffix) return false; - if (Type != other.Type) return false; - if (Status != other.Status) return false; - if (StartDate != other.StartDate) return false; - if (EndDate != other.EndDate) return false; - if(!goals_.Equals(other.goals_)) return false; - if (LongRunningOperation != other.LongRunningOperation) return false; - if (PromoteStatus != other.PromoteStatus) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasExperimentId) hash ^= ExperimentId.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Description.Length != 0) hash ^= Description.GetHashCode(); - if (Suffix.Length != 0) hash ^= Suffix.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified) hash ^= Type.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasStartDate) hash ^= StartDate.GetHashCode(); - if (HasEndDate) hash ^= EndDate.GetHashCode(); - hash ^= goals_.GetHashCode(); - if (HasLongRunningOperation) hash ^= LongRunningOperation.GetHashCode(); - if (PromoteStatus != global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified) hash ^= PromoteStatus.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasExperimentId) { - output.WriteRawTag(72); - output.WriteInt64(ExperimentId); - } - if (Name.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Description); - } - if (Suffix.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Suffix); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified) { - output.WriteRawTag(112); - output.WriteEnum((int) Status); - } - if (HasStartDate) { - output.WriteRawTag(122); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(130, 1); - output.WriteString(EndDate); - } - goals_.WriteTo(output, _repeated_goals_codec); - if (HasLongRunningOperation) { - output.WriteRawTag(146, 1); - output.WriteString(LongRunningOperation); - } - if (PromoteStatus != global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) PromoteStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasExperimentId) { - output.WriteRawTag(72); - output.WriteInt64(ExperimentId); - } - if (Name.Length != 0) { - output.WriteRawTag(82); - output.WriteString(Name); - } - if (Description.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Description); - } - if (Suffix.Length != 0) { - output.WriteRawTag(98); - output.WriteString(Suffix); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified) { - output.WriteRawTag(112); - output.WriteEnum((int) Status); - } - if (HasStartDate) { - output.WriteRawTag(122); - output.WriteString(StartDate); - } - if (HasEndDate) { - output.WriteRawTag(130, 1); - output.WriteString(EndDate); - } - goals_.WriteTo(ref output, _repeated_goals_codec); - if (HasLongRunningOperation) { - output.WriteRawTag(146, 1); - output.WriteString(LongRunningOperation); - } - if (PromoteStatus != global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) PromoteStatus); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasExperimentId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExperimentId); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Description.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (Suffix.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Suffix); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasStartDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (HasEndDate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(EndDate); - } - size += goals_.CalculateSize(_repeated_goals_codec); - if (HasLongRunningOperation) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(LongRunningOperation); - } - if (PromoteStatus != global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PromoteStatus); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Experiment other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasExperimentId) { - ExperimentId = other.ExperimentId; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Description.Length != 0) { - Description = other.Description; - } - if (other.Suffix.Length != 0) { - Suffix = other.Suffix; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType.Unspecified) { - Type = other.Type; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus.Unspecified) { - Status = other.Status; - } - if (other.HasStartDate) { - StartDate = other.StartDate; - } - if (other.HasEndDate) { - EndDate = other.EndDate; - } - goals_.Add(other.goals_); - if (other.HasLongRunningOperation) { - LongRunningOperation = other.LongRunningOperation; - } - if (other.PromoteStatus != global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus.Unspecified) { - PromoteStatus = other.PromoteStatus; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 72: { - ExperimentId = input.ReadInt64(); - break; - } - case 82: { - Name = input.ReadString(); - break; - } - case 90: { - Description = input.ReadString(); - break; - } - case 98: { - Suffix = input.ReadString(); - break; - } - case 104: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType) input.ReadEnum(); - break; - } - case 112: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus) input.ReadEnum(); - break; - } - case 122: { - StartDate = input.ReadString(); - break; - } - case 130: { - EndDate = input.ReadString(); - break; - } - case 138: { - goals_.AddEntriesFrom(input, _repeated_goals_codec); - break; - } - case 146: { - LongRunningOperation = input.ReadString(); - break; - } - case 152: { - PromoteStatus = (global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 72: { - ExperimentId = input.ReadInt64(); - break; - } - case 82: { - Name = input.ReadString(); - break; - } - case 90: { - Description = input.ReadString(); - break; - } - case 98: { - Suffix = input.ReadString(); - break; - } - case 104: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType) input.ReadEnum(); - break; - } - case 112: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus) input.ReadEnum(); - break; - } - case 122: { - StartDate = input.ReadString(); - break; - } - case 130: { - EndDate = input.ReadString(); - break; - } - case 138: { - goals_.AddEntriesFrom(ref input, _repeated_goals_codec); - break; - } - case 146: { - LongRunningOperation = input.ReadString(); - break; - } - case 152: { - PromoteStatus = (global::Google.Ads.GoogleAds.V12.Enums.AsyncActionStatusEnum.Types.AsyncActionStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentArm.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentArm.g.cs deleted file mode 100755 index 8f7fbcc01..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentArm.g.cs +++ /dev/null @@ -1,481 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/experiment_arm.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/experiment_arm.proto - public static partial class ExperimentArmReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/experiment_arm.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentArmReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2V4cGVyaW1l", - "bnRfYXJtLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUv", - "YXBpL3Jlc291cmNlLnByb3RvIsQDCg1FeHBlcmltZW50QXJtEkUKDXJlc291", - "cmNlX25hbWUYASABKAlCLuBBBfpBKAomZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0V4cGVyaW1lbnRBcm0SPwoKZXhwZXJpbWVudBgIIAEoCUIr4EEF+kEl", - "CiNnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRXhwZXJpbWVudBIRCgRuYW1l", - "GAMgASgJQgPgQQISDwoHY29udHJvbBgEIAEoCBIVCg10cmFmZmljX3NwbGl0", - "GAUgASgDEjkKCWNhbXBhaWducxgGIAMoCUIm+kEjCiFnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vQ2FtcGFpZ24SRgoTaW5fZGVzaWduX2NhbXBhaWducxgH", - "IAMoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFp", - "Z246bepBagomZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0V4cGVyaW1lbnRB", - "cm0SQGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2V4cGVyaW1lbnRBcm1zL3t0", - "cmlhbF9pZH1+e3RyaWFsX2FybV9pZH1ChAIKJmNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzQhJFeHBlcmltZW50QXJtUHJvdG9QAVpL", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm), global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm.Parser, new[]{ "ResourceName", "Experiment", "Name", "Control", "TrafficSplit", "Campaigns", "InDesignCampaigns" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Google ads experiment for users to experiment changes on multiple - /// campaigns, compare the performance, and apply the effective changes. - /// - public sealed partial class ExperimentArm : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentArm()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ExperimentArmReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArm() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArm(ExperimentArm other) : this() { - resourceName_ = other.resourceName_; - experiment_ = other.experiment_; - name_ = other.name_; - control_ = other.control_; - trafficSplit_ = other.trafficSplit_; - campaigns_ = other.campaigns_.Clone(); - inDesignCampaigns_ = other.inDesignCampaigns_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArm Clone() { - return new ExperimentArm(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the experiment arm. - /// Experiment arm resource names have the form: - /// - /// `customers/{customer_id}/experimentArms/{TrialArm.trial_id}~{TrialArm.trial_arm_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "experiment" field. - public const int ExperimentFieldNumber = 8; - private string experiment_ = ""; - /// - /// Immutable. The experiment to which the ExperimentArm belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Experiment { - get { return experiment_; } - set { - experiment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 3; - private string name_ = ""; - /// - /// Required. The name of the experiment arm. It must have a minimum length of 1 and - /// maximum length of 1024. It must be unique under an experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "control" field. - public const int ControlFieldNumber = 4; - private bool control_; - /// - /// Whether this arm is a control arm. A control arm is the arm against - /// which the other arms are compared. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Control { - get { return control_; } - set { - control_ = value; - } - } - - /// Field number for the "traffic_split" field. - public const int TrafficSplitFieldNumber = 5; - private long trafficSplit_; - /// - /// Traffic split of the trial arm. The value should be between 1 and 100 - /// and must total 100 between the two trial arms. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TrafficSplit { - get { return trafficSplit_; } - set { - trafficSplit_ = value; - } - } - - /// Field number for the "campaigns" field. - public const int CampaignsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_campaigns_codec - = pb::FieldCodec.ForString(50); - private readonly pbc::RepeatedField campaigns_ = new pbc::RepeatedField(); - /// - /// List of campaigns in the trial arm. The max length is one. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Campaigns { - get { return campaigns_; } - } - - /// Field number for the "in_design_campaigns" field. - public const int InDesignCampaignsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_inDesignCampaigns_codec - = pb::FieldCodec.ForString(58); - private readonly pbc::RepeatedField inDesignCampaigns_ = new pbc::RepeatedField(); - /// - /// Output only. The in design campaigns in the treatment experiment arm. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField InDesignCampaigns { - get { return inDesignCampaigns_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentArm); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentArm other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Experiment != other.Experiment) return false; - if (Name != other.Name) return false; - if (Control != other.Control) return false; - if (TrafficSplit != other.TrafficSplit) return false; - if(!campaigns_.Equals(other.campaigns_)) return false; - if(!inDesignCampaigns_.Equals(other.inDesignCampaigns_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Experiment.Length != 0) hash ^= Experiment.GetHashCode(); - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Control != false) hash ^= Control.GetHashCode(); - if (TrafficSplit != 0L) hash ^= TrafficSplit.GetHashCode(); - hash ^= campaigns_.GetHashCode(); - hash ^= inDesignCampaigns_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Control != false) { - output.WriteRawTag(32); - output.WriteBool(Control); - } - if (TrafficSplit != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TrafficSplit); - } - campaigns_.WriteTo(output, _repeated_campaigns_codec); - inDesignCampaigns_.WriteTo(output, _repeated_inDesignCampaigns_codec); - if (Experiment.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Experiment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Name.Length != 0) { - output.WriteRawTag(26); - output.WriteString(Name); - } - if (Control != false) { - output.WriteRawTag(32); - output.WriteBool(Control); - } - if (TrafficSplit != 0L) { - output.WriteRawTag(40); - output.WriteInt64(TrafficSplit); - } - campaigns_.WriteTo(ref output, _repeated_campaigns_codec); - inDesignCampaigns_.WriteTo(ref output, _repeated_inDesignCampaigns_codec); - if (Experiment.Length != 0) { - output.WriteRawTag(66); - output.WriteString(Experiment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Experiment.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Experiment); - } - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Control != false) { - size += 1 + 1; - } - if (TrafficSplit != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TrafficSplit); - } - size += campaigns_.CalculateSize(_repeated_campaigns_codec); - size += inDesignCampaigns_.CalculateSize(_repeated_inDesignCampaigns_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentArm other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Experiment.Length != 0) { - Experiment = other.Experiment; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Control != false) { - Control = other.Control; - } - if (other.TrafficSplit != 0L) { - TrafficSplit = other.TrafficSplit; - } - campaigns_.Add(other.campaigns_); - inDesignCampaigns_.Add(other.inDesignCampaigns_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Control = input.ReadBool(); - break; - } - case 40: { - TrafficSplit = input.ReadInt64(); - break; - } - case 50: { - campaigns_.AddEntriesFrom(input, _repeated_campaigns_codec); - break; - } - case 58: { - inDesignCampaigns_.AddEntriesFrom(input, _repeated_inDesignCampaigns_codec); - break; - } - case 66: { - Experiment = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 26: { - Name = input.ReadString(); - break; - } - case 32: { - Control = input.ReadBool(); - break; - } - case 40: { - TrafficSplit = input.ReadInt64(); - break; - } - case 50: { - campaigns_.AddEntriesFrom(ref input, _repeated_campaigns_codec); - break; - } - case 58: { - inDesignCampaigns_.AddEntriesFrom(ref input, _repeated_inDesignCampaigns_codec); - break; - } - case 66: { - Experiment = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentArmError.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentArmError.g.cs deleted file mode 100755 index 361d08533..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentArmError.g.cs +++ /dev/null @@ -1,300 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/experiment_arm_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/experiment_arm_error.proto - public static partial class ExperimentArmErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/experiment_arm_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentArmErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2V4cGVyaW1lbnRf", - "YXJtX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJy", - "b3JzIrEFChZFeHBlcmltZW50QXJtRXJyb3JFbnVtIpYFChJFeHBlcmltZW50", - "QXJtRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESJwojRVhQ", - "RVJJTUVOVF9BUk1fQ09VTlRfTElNSVRfRVhDRUVERUQQAhIbChdJTlZBTElE", - "X0NBTVBBSUdOX1NUQVRVUxADEiEKHURVUExJQ0FURV9FWFBFUklNRU5UX0FS", - "TV9OQU1FEAQSJQohQ0FOTk9UX1NFVF9UUkVBVE1FTlRfQVJNX0NBTVBBSUdO", - "EAUSHgoaQ0FOTk9UX01PRElGWV9DQU1QQUlHTl9JRFMQBhItCilDQU5OT1Rf", - "TU9ESUZZX0NBTVBBSUdOX1dJVEhPVVRfU1VGRklYX1NFVBAHEisKJ0NBTk5P", - "VF9NVVRBVEVfVFJBRkZJQ19TUExJVF9BRlRFUl9TVEFSVBAIEioKJkNBTk5P", - "VF9BRERfQ0FNUEFJR05fV0lUSF9TSEFSRURfQlVER0VUEAkSKgomQ0FOTk9U", - "X0FERF9DQU1QQUlHTl9XSVRIX0NVU1RPTV9CVURHRVQQChI0CjBDQU5OT1Rf", - "QUREX0NBTVBBSUdOU19XSVRIX0RZTkFNSUNfQVNTRVRTX0VOQUJMRUQQCxI1", - "CjFVTlNVUFBPUlRFRF9DQU1QQUlHTl9BRFZFUlRJU0lOR19DSEFOTkVMX1NV", - "Ql9UWVBFEAwSLAooQ0FOTk9UX0FERF9CQVNFX0NBTVBBSUdOX1dJVEhfREFU", - "RV9SQU5HRRANEjEKLUJJRERJTkdfU1RSQVRFR1lfTk9UX1NVUFBPUlRFRF9J", - "Tl9FWFBFUklNRU5UUxAOEjAKLFRSQUZGSUNfU1BMSVRfTk9UX1NVUFBPUlRF", - "RF9GT1JfQ0hBTk5FTF9UWVBFEA9C9wEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZXJyb3JzQhdFeHBlcmltZW50QXJtRXJyb3JQcm90b1ABWkVn", - "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3Jz", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorEnum.Types.ExperimentArmError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible experiment arm error. - /// - public sealed partial class ExperimentArmErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentArmErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ExperimentArmErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArmErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArmErrorEnum(ExperimentArmErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArmErrorEnum Clone() { - return new ExperimentArmErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentArmErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentArmErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentArmErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExperimentArmErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible experiment arm errors. - /// - public enum ExperimentArmError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Number of experiment arms is above limit. - /// - [pbr::OriginalName("EXPERIMENT_ARM_COUNT_LIMIT_EXCEEDED")] ExperimentArmCountLimitExceeded = 2, - /// - /// Cannot add campaign with invalid status to the experiment arm. - /// - [pbr::OriginalName("INVALID_CAMPAIGN_STATUS")] InvalidCampaignStatus = 3, - /// - /// Cannot add duplicate experiment arm name in one experiment. - /// - [pbr::OriginalName("DUPLICATE_EXPERIMENT_ARM_NAME")] DuplicateExperimentArmName = 4, - /// - /// Cannot set campaigns of treatment experiment arm. - /// - [pbr::OriginalName("CANNOT_SET_TREATMENT_ARM_CAMPAIGN")] CannotSetTreatmentArmCampaign = 5, - /// - /// Cannot edit campaign ids in trial arms in non SETUP experiment. - /// - [pbr::OriginalName("CANNOT_MODIFY_CAMPAIGN_IDS")] CannotModifyCampaignIds = 6, - /// - /// Cannot modify the campaigns in the control arm - /// if there is not a suffix set in the trial. - /// - [pbr::OriginalName("CANNOT_MODIFY_CAMPAIGN_WITHOUT_SUFFIX_SET")] CannotModifyCampaignWithoutSuffixSet = 7, - /// - /// Traffic split related settings (like traffic share bounds) can't be - /// modified after the trial has started. - /// - [pbr::OriginalName("CANNOT_MUTATE_TRAFFIC_SPLIT_AFTER_START")] CannotMutateTrafficSplitAfterStart = 8, - /// - /// Cannot use shared budget on experiment's control campaign. - /// - [pbr::OriginalName("CANNOT_ADD_CAMPAIGN_WITH_SHARED_BUDGET")] CannotAddCampaignWithSharedBudget = 9, - /// - /// Cannot use custom budget on experiment's control campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_CAMPAIGN_WITH_CUSTOM_BUDGET")] CannotAddCampaignWithCustomBudget = 10, - /// - /// Cannot have enable_dynamic_assets turned on in experiment's campaigns. - /// - [pbr::OriginalName("CANNOT_ADD_CAMPAIGNS_WITH_DYNAMIC_ASSETS_ENABLED")] CannotAddCampaignsWithDynamicAssetsEnabled = 11, - /// - /// Cannot use campaign's advertising channel sub type in experiment. - /// - [pbr::OriginalName("UNSUPPORTED_CAMPAIGN_ADVERTISING_CHANNEL_SUB_TYPE")] UnsupportedCampaignAdvertisingChannelSubType = 12, - /// - /// Experiment date range must be within base campaign's date range. - /// - [pbr::OriginalName("CANNOT_ADD_BASE_CAMPAIGN_WITH_DATE_RANGE")] CannotAddBaseCampaignWithDateRange = 13, - /// - /// Bidding strategy is not supported in experiments. - /// - [pbr::OriginalName("BIDDING_STRATEGY_NOT_SUPPORTED_IN_EXPERIMENTS")] BiddingStrategyNotSupportedInExperiments = 14, - /// - /// Traffic split is not supported for some channel types. - /// - [pbr::OriginalName("TRAFFIC_SPLIT_NOT_SUPPORTED_FOR_CHANNEL_TYPE")] TrafficSplitNotSupportedForChannelType = 15, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentArmResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentArmResourceNames.g.cs deleted file mode 100755 index 7cfe4f191..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentArmResourceNames.g.cs +++ /dev/null @@ -1,334 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ExperimentArm resource. - public sealed partial class ExperimentArmName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}. - /// - CustomerTrialTrialArm = 1, - } - - private static gax::PathTemplate s_customerTrialTrialArm = new gax::PathTemplate("customers/{customer_id}/experimentArms/{trial_id_trial_arm_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ExperimentArmName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ExperimentArmName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - /// The TrialArm ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static ExperimentArmName FromCustomerTrialTrialArm(string customerId, string trialId, string trialArmId) => - new ExperimentArmName(ResourceNameType.CustomerTrialTrialArm, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), trialId: gax::GaxPreconditions.CheckNotNullOrEmpty(trialId, nameof(trialId)), trialArmId: gax::GaxPreconditions.CheckNotNullOrEmpty(trialArmId, nameof(trialArmId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - /// The TrialArm ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}. - /// - public static string Format(string customerId, string trialId, string trialArmId) => - FormatCustomerTrialTrialArm(customerId, trialId, trialArmId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - /// The TrialArm ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id}. - /// - public static string FormatCustomerTrialTrialArm(string customerId, string trialId, string trialArmId) => - s_customerTrialTrialArm.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(trialId, nameof(trialId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(trialArmId, nameof(trialArmId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ExperimentArmName Parse(string experimentArmName) => Parse(experimentArmName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ExperimentArmName Parse(string experimentArmName, bool allowUnparsed) => - TryParse(experimentArmName, allowUnparsed, out ExperimentArmName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string experimentArmName, out ExperimentArmName result) => - TryParse(experimentArmName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string experimentArmName, bool allowUnparsed, out ExperimentArmName result) - { - gax::GaxPreconditions.CheckNotNull(experimentArmName, nameof(experimentArmName)); - gax::TemplatedResourceName resourceName; - if (s_customerTrialTrialArm.TryParseName(experimentArmName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerTrialTrialArm(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(experimentArmName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private ExperimentArmName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string trialId = null, string trialArmId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - TrialId = trialId; - TrialArmId = trialArmId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/experimentArms/{trial_id}~{trial_arm_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - /// The TrialArm ID. Must not be null or empty. - public ExperimentArmName(string customerId, string trialId, string trialArmId) : this(ResourceNameType.CustomerTrialTrialArm, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), trialId: gax::GaxPreconditions.CheckNotNullOrEmpty(trialId, nameof(trialId)), trialArmId: gax::GaxPreconditions.CheckNotNullOrEmpty(trialArmId, nameof(trialArmId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Trial ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TrialId { get; } - - /// - /// The TrialArm ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TrialArmId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerTrialTrialArm: return s_customerTrialTrialArm.Expand(CustomerId, $"{TrialId}~{TrialArmId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ExperimentArmName); - - /// - public bool Equals(ExperimentArmName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ExperimentArmName a, ExperimentArmName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ExperimentArmName a, ExperimentArmName b) => !(a == b); - } - - public partial class ExperimentArm - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ExperimentArmName ResourceNameAsExperimentArmName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExperimentArmName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentArmName ExperimentArmName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::ExperimentArmName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList CampaignsAsCampaignNames - { - get => new gax::ResourceNameList(Campaigns, s => string.IsNullOrEmpty(s) ? null : CampaignName.Parse(s, allowUnparsed: true)); - } - - /// - /// -typed view over the resource name property. - /// - internal gax::ResourceNameList InDesignCampaignsAsCampaignNames - { - get => new gax::ResourceNameList(InDesignCampaigns, s => string.IsNullOrEmpty(s) ? null : CampaignName.Parse(s, allowUnparsed: true)); - } - - /// - /// -typed view over the resource name property. - /// - internal ExperimentName ExperimentAsExperimentName - { - get => string.IsNullOrEmpty(Experiment) ? null : ExperimentName.Parse(Experiment, allowUnparsed: true); - set => Experiment = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentArmService.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentArmService.g.cs deleted file mode 100755 index 9e1b2b51a..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentArmService.g.cs +++ /dev/null @@ -1,1308 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/experiment_arm_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/experiment_arm_service.proto - public static partial class ExperimentArmServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/experiment_arm_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentArmServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZXhwZXJpbWVu", - "dF9hcm1fc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVz", - "cG9uc2VfY29udGVudF90eXBlLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2V4cGVyaW1lbnRfYXJtLnByb3RvGhxnb29nbGUv", - "YXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90", - "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", - "cHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIqcCChtNdXRhdGVFeHBl", - "cmltZW50QXJtc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJS", - "CgpvcGVyYXRpb25zGAIgAygLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLkV4cGVyaW1lbnRBcm1PcGVyYXRpb25CA+BBAhIXCg9wYXJ0", - "aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCBJqChVy", - "ZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9u", - "c2VDb250ZW50VHlwZSKfAgoWRXhwZXJpbWVudEFybU9wZXJhdGlvbhIvCgt1", - "cGRhdGVfbWFzaxgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sS", - "QwoGY3JlYXRlGAEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5FeHBlcmltZW50QXJtSAASQwoGdXBkYXRlGAIgASgLMjEuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5FeHBlcmltZW50QXJt", - "SAASPQoGcmVtb3ZlGAMgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9FeHBlcmltZW50QXJtSABCCwoJb3BlcmF0aW9uIqABChxNdXRhdGVF", - "eHBlcmltZW50QXJtc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJv", - "chgBIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEk0KB3Jlc3VsdHMYAiADKAsy", - "PC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlRXhw", - "ZXJpbWVudEFybVJlc3VsdCKqAQoZTXV0YXRlRXhwZXJpbWVudEFybVJlc3Vs", - "dBJCCg1yZXNvdXJjZV9uYW1lGAEgASgJQiv6QSgKJmdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9FeHBlcmltZW50QXJtEkkKDmV4cGVyaW1lbnRfYXJtGAIg", - "ASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5FeHBl", - "cmltZW50QXJtMtECChRFeHBlcmltZW50QXJtU2VydmljZRLxAQoUTXV0YXRl", - "RXhwZXJpbWVudEFybXMSPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlRXhwZXJpbWVudEFybXNSZXF1ZXN0Gj8uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUV4cGVyaW1lbnRBcm1z", - "UmVzcG9uc2UiWILT5JMCOSI0L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lk", - "PSp9L2V4cGVyaW1lbnRBcm1zOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9w", - "ZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBz", - "Oi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KFAgolY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IZRXhwZXJpbWVudEFy", - "bVNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2Vz", - "ogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIh", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ExperimentArmReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation), global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult), global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult.Parser, new[]{ "ResourceName", "ExperimentArm" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [ExperimentArmService.MutateExperimentArms][google.ads.googleads.v12.services.ExperimentArmService.MutateExperimentArms]. - /// - public sealed partial class MutateExperimentArmsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExperimentArmsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentArmServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmsRequest(MutateExperimentArmsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmsRequest Clone() { - return new MutateExperimentArmsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual experiment arm. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExperimentArmsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExperimentArmsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExperimentArmsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation on an experiment arm. - /// - public sealed partial class ExperimentArmOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentArmOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentArmServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArmOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArmOperation(ExperimentArmOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentArmOperation Clone() { - return new ExperimentArmOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The experiment arm is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: The experiment arm is expected to have a valid - /// resource name, in this format: - /// - /// `customers/{customer_id}/experiments/{campaign_experiment_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentArmOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentArmOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentArmOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for experiment arm mutate. - /// - public sealed partial class MutateExperimentArmsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExperimentArmsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentArmServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmsResponse(MutateExperimentArmsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmsResponse Clone() { - return new MutateExperimentArmsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExperimentArmsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExperimentArmsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExperimentArmsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the experiment arm mutate. - /// - public sealed partial class MutateExperimentArmResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExperimentArmResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentArmServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmResult(MutateExperimentArmResult other) : this() { - resourceName_ = other.resourceName_; - experimentArm_ = other.experimentArm_ != null ? other.experimentArm_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentArmResult Clone() { - return new MutateExperimentArmResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "experiment_arm" field. - public const int ExperimentArmFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm experimentArm_; - /// - /// The mutated experiment arm with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm ExperimentArm { - get { return experimentArm_; } - set { - experimentArm_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExperimentArmResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExperimentArmResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(ExperimentArm, other.ExperimentArm)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (experimentArm_ != null) hash ^= ExperimentArm.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (experimentArm_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ExperimentArm); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (experimentArm_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ExperimentArm); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (experimentArm_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExperimentArm); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExperimentArmResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.experimentArm_ != null) { - if (experimentArm_ == null) { - ExperimentArm = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - ExperimentArm.MergeFrom(other.ExperimentArm); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (experimentArm_ == null) { - ExperimentArm = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - input.ReadMessage(ExperimentArm); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (experimentArm_ == null) { - ExperimentArm = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - input.ReadMessage(ExperimentArm); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceClient.g.cs deleted file mode 100755 index f3a3fe909..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceClient.g.cs +++ /dev/null @@ -1,442 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ExperimentArmServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ExperimentArmServiceSettings GetDefault() => new ExperimentArmServiceSettings(); - - /// Constructs a new object with default settings. - public ExperimentArmServiceSettings() - { - } - - private ExperimentArmServiceSettings(ExperimentArmServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateExperimentArmsSettings = existing.MutateExperimentArmsSettings; - OnCopy(existing); - } - - partial void OnCopy(ExperimentArmServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ExperimentArmServiceClient.MutateExperimentArms and - /// ExperimentArmServiceClient.MutateExperimentArmsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateExperimentArmsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ExperimentArmServiceSettings Clone() => new ExperimentArmServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class ExperimentArmServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ExperimentArmServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ExperimentArmServiceClientBuilder() : base(ExperimentArmServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ExperimentArmServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ExperimentArmServiceClient Build() - { - ExperimentArmServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ExperimentArmServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ExperimentArmServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ExperimentArmServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ExperimentArmServiceClient.ChannelPool; - } - - /// ExperimentArmService client wrapper, for convenient use. - /// - /// Service to manage experiment arms. - /// - public abstract partial class ExperimentArmServiceClient - { - /// - /// The default endpoint for the ExperimentArmService service, which is a host of "googleads.googleapis.com" and - /// a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ExperimentArmService scopes. - /// - /// The default ExperimentArmService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ExperimentArmService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ExperimentArmServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ExperimentArmServiceClient Create() => new ExperimentArmServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ExperimentArmServiceClient Create(grpccore::CallInvoker callInvoker, ExperimentArmServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ExperimentArmService.ExperimentArmServiceClient grpcClient = new ExperimentArmService.ExperimentArmServiceClient(callInvoker); - return new ExperimentArmServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ExperimentArmService client - public virtual ExperimentArmService.ExperimentArmServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateExperimentArmsResponse MutateExperimentArms(MutateExperimentArmsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentArmsAsync(MutateExperimentArmsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentArmsAsync(MutateExperimentArmsRequest request, st::CancellationToken cancellationToken) => - MutateExperimentArmsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - /// - /// Required. The list of operations to perform on individual experiment arm. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateExperimentArmsResponse MutateExperimentArms(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateExperimentArms(new MutateExperimentArmsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - /// - /// Required. The list of operations to perform on individual experiment arm. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentArmsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateExperimentArmsAsync(new MutateExperimentArmsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - /// - /// Required. The list of operations to perform on individual experiment arm. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentArmsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateExperimentArmsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ExperimentArmService client wrapper implementation, for convenient use. - /// - /// Service to manage experiment arms. - /// - public sealed partial class ExperimentArmServiceClientImpl : ExperimentArmServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateExperimentArms; - - /// - /// Constructs a client wrapper for the ExperimentArmService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public ExperimentArmServiceClientImpl(ExperimentArmService.ExperimentArmServiceClient grpcClient, ExperimentArmServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ExperimentArmServiceSettings effectiveSettings = settings ?? ExperimentArmServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateExperimentArms = clientHelper.BuildApiCall("MutateExperimentArms", grpcClient.MutateExperimentArmsAsync, grpcClient.MutateExperimentArms, effectiveSettings.MutateExperimentArmsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateExperimentArms); - Modify_MutateExperimentArmsApiCall(ref _callMutateExperimentArms); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateExperimentArmsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ExperimentArmService.ExperimentArmServiceClient grpcClient, ExperimentArmServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ExperimentArmService client - public override ExperimentArmService.ExperimentArmServiceClient GrpcClient { get; } - - partial void Modify_MutateExperimentArmsRequest(ref MutateExperimentArmsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateExperimentArmsResponse MutateExperimentArms(MutateExperimentArmsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateExperimentArmsRequest(ref request, ref callSettings); - return _callMutateExperimentArms.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateExperimentArmsAsync(MutateExperimentArmsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateExperimentArmsRequest(ref request, ref callSettings); - return _callMutateExperimentArms.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceGrpc.g.cs deleted file mode 100755 index 4f7f5be35..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceGrpc.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/experiment_arm_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage experiment arms. - /// - public static partial class ExperimentArmService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ExperimentArmService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateExperimentArmsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateExperimentArmsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateExperimentArms = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateExperimentArms", - __Marshaller_google_ads_googleads_v12_services_MutateExperimentArmsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateExperimentArmsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentArmServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ExperimentArmService - [grpc::BindServiceMethod(typeof(ExperimentArmService), "BindService")] - public abstract partial class ExperimentArmServiceBase - { - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateExperimentArms(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ExperimentArmService - public partial class ExperimentArmServiceClient : grpc::ClientBase - { - /// Creates a new client for ExperimentArmService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ExperimentArmServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ExperimentArmService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ExperimentArmServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ExperimentArmServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ExperimentArmServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsResponse MutateExperimentArms(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateExperimentArms(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsResponse MutateExperimentArms(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateExperimentArms, null, options, request); - } - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateExperimentArmsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateExperimentArmsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes experiment arms. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentArmError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateExperimentArmsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateExperimentArms, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ExperimentArmServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ExperimentArmServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ExperimentArmServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateExperimentArms, serviceImpl.MutateExperimentArms).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ExperimentArmServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateExperimentArms, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateExperimentArms)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceResourceNames.g.cs deleted file mode 100755 index d9c98bde1..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentArmServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class ExperimentArmOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentArmName RemoveAsExperimentArmName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::ExperimentArmName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateExperimentArmResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ExperimentArmName ResourceNameAsExperimentArmName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExperimentArmName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentError.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentError.g.cs deleted file mode 100755 index d72b2e871..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentError.g.cs +++ /dev/null @@ -1,350 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/experiment_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/experiment_error.proto - public static partial class ExperimentErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/experiment_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2V4cGVyaW1lbnRf", - "ZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMi", - "xAcKE0V4cGVyaW1lbnRFcnJvckVudW0irAcKD0V4cGVyaW1lbnRFcnJvchIP", - "CgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIhCh1DQU5OT1RfU0VUX1NU", - "QVJUX0RBVEVfSU5fUEFTVBACEh4KGkVORF9EQVRFX0JFRk9SRV9TVEFSVF9E", - "QVRFEAMSIAocU1RBUlRfREFURV9UT09fRkFSX0lOX0ZVVFVSRRAEEh0KGURV", - "UExJQ0FURV9FWFBFUklNRU5UX05BTUUQBRIkCiBDQU5OT1RfTU9ESUZZX1JF", - "TU9WRURfRVhQRVJJTUVOVBAGEh0KGVNUQVJUX0RBVEVfQUxSRUFEWV9QQVNT", - "RUQQBxIfChtDQU5OT1RfU0VUX0VORF9EQVRFX0lOX1BBU1QQCBIgChxDQU5O", - "T1RfU0VUX1NUQVRVU19UT19SRU1PVkVEEAkSHwobQ0FOTk9UX01PRElGWV9Q", - "QVNUX0VORF9EQVRFEAoSEgoOSU5WQUxJRF9TVEFUVVMQCxIhCh1JTlZBTElE", - "X0NBTVBBSUdOX0NIQU5ORUxfVFlQRRAMEiYKIk9WRVJMQVBQSU5HX01FTUJF", - "UlNfQU5EX0RBVEVfUkFOR0UQDRIjCh9JTlZBTElEX1RSSUFMX0FSTV9UUkFG", - "RklDX1NQTElUEA4SHQoZVFJBRkZJQ19TUExJVF9PVkVSTEFQUElORxAPEkUK", - "QVNVTV9UUklBTF9BUk1fVFJBRkZJQ19VTkVRVUFMU19UT19UUklBTF9UUkFG", - "RklDX1NQTElUX0RFTk9NSU5BVE9SEBASKwonQ0FOTk9UX01PRElGWV9UUkFG", - "RklDX1NQTElUX0FGVEVSX1NUQVJUEBESGAoURVhQRVJJTUVOVF9OT1RfRk9V", - "TkQQEhIeChpFWFBFUklNRU5UX05PVF9ZRVRfU1RBUlRFRBATEiUKIUNBTk5P", - "VF9IQVZFX01VTFRJUExFX0NPTlRST0xfQVJNUxAUEh8KG0lOX0RFU0lHTl9D", - "QU1QQUlHTlNfTk9UX1NFVBAVEiIKHkNBTk5PVF9TRVRfU1RBVFVTX1RPX0dS", - "QURVQVRFRBAWEjgKNENBTk5PVF9DUkVBVEVfRVhQRVJJTUVOVF9DQU1QQUlH", - "Tl9XSVRIX1NIQVJFRF9CVURHRVQQFxI4CjRDQU5OT1RfQ1JFQVRFX0VYUEVS", - "SU1FTlRfQ0FNUEFJR05fV0lUSF9DVVNUT01fQlVER0VUEBgSHQoZU1RBVFVT", - "X1RSQU5TSVRJT05fSU5WQUxJRBAZQvQBCiNjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVycm9yc0IURXhwZXJpbWVudEVycm9yUHJvdG9QAVpFZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "cnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorEnum.Types.ExperimentError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible experiment error. - /// - public sealed partial class ExperimentErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ExperimentErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentErrorEnum(ExperimentErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentErrorEnum Clone() { - return new ExperimentErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExperimentErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible experiment errors. - /// - public enum ExperimentError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The start date of an experiment cannot be set in the past. - /// Use a start date in the future. - /// - [pbr::OriginalName("CANNOT_SET_START_DATE_IN_PAST")] CannotSetStartDateInPast = 2, - /// - /// The end date of an experiment is before its start date. - /// Use an end date after the start date. - /// - [pbr::OriginalName("END_DATE_BEFORE_START_DATE")] EndDateBeforeStartDate = 3, - /// - /// The start date of an experiment is too far in the future. - /// Use a start date no more than 1 year in the future. - /// - [pbr::OriginalName("START_DATE_TOO_FAR_IN_FUTURE")] StartDateTooFarInFuture = 4, - /// - /// The experiment has the same name as an existing active experiment. - /// - [pbr::OriginalName("DUPLICATE_EXPERIMENT_NAME")] DuplicateExperimentName = 5, - /// - /// Experiments can only be modified when they are ENABLED. - /// - [pbr::OriginalName("CANNOT_MODIFY_REMOVED_EXPERIMENT")] CannotModifyRemovedExperiment = 6, - /// - /// The start date of an experiment cannot be modified if the existing start - /// date has already passed. - /// - [pbr::OriginalName("START_DATE_ALREADY_PASSED")] StartDateAlreadyPassed = 7, - /// - /// The end date of an experiment cannot be set in the past. - /// - [pbr::OriginalName("CANNOT_SET_END_DATE_IN_PAST")] CannotSetEndDateInPast = 8, - /// - /// The status of an experiment cannot be set to REMOVED. - /// - [pbr::OriginalName("CANNOT_SET_STATUS_TO_REMOVED")] CannotSetStatusToRemoved = 9, - /// - /// The end date of an expired experiment cannot be modified. - /// - [pbr::OriginalName("CANNOT_MODIFY_PAST_END_DATE")] CannotModifyPastEndDate = 10, - /// - /// The status is invalid. - /// - [pbr::OriginalName("INVALID_STATUS")] InvalidStatus = 11, - /// - /// Experiment arm contains campaigns with invalid advertising channel type. - /// - [pbr::OriginalName("INVALID_CAMPAIGN_CHANNEL_TYPE")] InvalidCampaignChannelType = 12, - /// - /// A pair of trials share members and have overlapping date ranges. - /// - [pbr::OriginalName("OVERLAPPING_MEMBERS_AND_DATE_RANGE")] OverlappingMembersAndDateRange = 13, - /// - /// Experiment arm contains invalid traffic split. - /// - [pbr::OriginalName("INVALID_TRIAL_ARM_TRAFFIC_SPLIT")] InvalidTrialArmTrafficSplit = 14, - /// - /// Experiment contains trial arms with overlapping traffic split. - /// - [pbr::OriginalName("TRAFFIC_SPLIT_OVERLAPPING")] TrafficSplitOverlapping = 15, - /// - /// The total traffic split of trial arms is not equal to 100. - /// - [pbr::OriginalName("SUM_TRIAL_ARM_TRAFFIC_UNEQUALS_TO_TRIAL_TRAFFIC_SPLIT_DENOMINATOR")] SumTrialArmTrafficUnequalsToTrialTrafficSplitDenominator = 16, - /// - /// Traffic split related settings (like traffic share bounds) can't be - /// modified after the experiment has started. - /// - [pbr::OriginalName("CANNOT_MODIFY_TRAFFIC_SPLIT_AFTER_START")] CannotModifyTrafficSplitAfterStart = 17, - /// - /// The experiment could not be found. - /// - [pbr::OriginalName("EXPERIMENT_NOT_FOUND")] ExperimentNotFound = 18, - /// - /// Experiment has not begun. - /// - [pbr::OriginalName("EXPERIMENT_NOT_YET_STARTED")] ExperimentNotYetStarted = 19, - /// - /// The experiment cannot have more than one control arm. - /// - [pbr::OriginalName("CANNOT_HAVE_MULTIPLE_CONTROL_ARMS")] CannotHaveMultipleControlArms = 20, - /// - /// The experiment doesn't set in-design campaigns. - /// - [pbr::OriginalName("IN_DESIGN_CAMPAIGNS_NOT_SET")] InDesignCampaignsNotSet = 21, - /// - /// Clients must use the graduate action to graduate experiments and cannot - /// set the status to GRADUATED directly. - /// - [pbr::OriginalName("CANNOT_SET_STATUS_TO_GRADUATED")] CannotSetStatusToGraduated = 22, - /// - /// Cannot use shared budget on base campaign when scheduling an experiment. - /// - [pbr::OriginalName("CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_SHARED_BUDGET")] CannotCreateExperimentCampaignWithSharedBudget = 23, - /// - /// Cannot use custom budget on base campaign when scheduling an experiment. - /// - [pbr::OriginalName("CANNOT_CREATE_EXPERIMENT_CAMPAIGN_WITH_CUSTOM_BUDGET")] CannotCreateExperimentCampaignWithCustomBudget = 24, - /// - /// Invalid status transition. - /// - [pbr::OriginalName("STATUS_TRANSITION_INVALID")] StatusTransitionInvalid = 25, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentMetric.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentMetric.g.cs deleted file mode 100755 index 7a98c3741..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentMetric.g.cs +++ /dev/null @@ -1,286 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/experiment_metric.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/experiment_metric.proto - public static partial class ExperimentMetricReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/experiment_metric.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentMetricReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZXhwZXJpbWVudF9t", - "ZXRyaWMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyLf", - "AgoURXhwZXJpbWVudE1ldHJpY0VudW0ixgIKEEV4cGVyaW1lbnRNZXRyaWMS", - "DwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCgoGQ0xJQ0tTEAISDwoL", - "SU1QUkVTU0lPTlMQAxIICgRDT1NUEAQSJAogQ09OVkVSU0lPTlNfUEVSX0lO", - "VEVSQUNUSU9OX1JBVEUQBRIXChNDT1NUX1BFUl9DT05WRVJTSU9OEAYSHgoa", - "Q09OVkVSU0lPTlNfVkFMVUVfUEVSX0NPU1QQBxIPCgtBVkVSQUdFX0NQQxAI", - "EgcKA0NUUhAJEhsKF0lOQ1JFTUVOVEFMX0NPTlZFUlNJT05TEAoSGQoVQ09N", - "UExFVEVEX1ZJREVPX1ZJRVdTEAsSFQoRQ1VTVE9NX0FMR09SSVRITVMQDBIP", - "CgtDT05WRVJTSU9OUxANEhQKEENPTlZFUlNJT05fVkFMVUUQDkLvAQoiY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IVRXhwZXJpbWVudE1l", - "dHJpY1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricEnum), global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricEnum.Types.ExperimentMetric) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of experiment metric. - /// - public sealed partial class ExperimentMetricEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentMetricEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentMetricEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentMetricEnum(ExperimentMetricEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentMetricEnum Clone() { - return new ExperimentMetricEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentMetricEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentMetricEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentMetricEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExperimentMetricEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of experiment metric. - /// - public enum ExperimentMetric { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The goal of the experiment is clicks. - /// - [pbr::OriginalName("CLICKS")] Clicks = 2, - /// - /// The goal of the experiment is impressions. - /// - [pbr::OriginalName("IMPRESSIONS")] Impressions = 3, - /// - /// The goal of the experiment is cost. - /// - [pbr::OriginalName("COST")] Cost = 4, - /// - /// The goal of the experiment is conversion rate. - /// - [pbr::OriginalName("CONVERSIONS_PER_INTERACTION_RATE")] ConversionsPerInteractionRate = 5, - /// - /// The goal of the experiment is cost per conversion. - /// - [pbr::OriginalName("COST_PER_CONVERSION")] CostPerConversion = 6, - /// - /// The goal of the experiment is conversion value per cost. - /// - [pbr::OriginalName("CONVERSIONS_VALUE_PER_COST")] ConversionsValuePerCost = 7, - /// - /// The goal of the experiment is avg cpc. - /// - [pbr::OriginalName("AVERAGE_CPC")] AverageCpc = 8, - /// - /// The goal of the experiment is ctr. - /// - [pbr::OriginalName("CTR")] Ctr = 9, - /// - /// The goal of the experiment is incremental conversions. - /// - [pbr::OriginalName("INCREMENTAL_CONVERSIONS")] IncrementalConversions = 10, - /// - /// The goal of the experiment is completed video views. - /// - [pbr::OriginalName("COMPLETED_VIDEO_VIEWS")] CompletedVideoViews = 11, - /// - /// The goal of the experiment is custom algorithms. - /// - [pbr::OriginalName("CUSTOM_ALGORITHMS")] CustomAlgorithms = 12, - /// - /// The goal of the experiment is conversions. - /// - [pbr::OriginalName("CONVERSIONS")] Conversions = 13, - /// - /// The goal of the experiment is conversion value. - /// - [pbr::OriginalName("CONVERSION_VALUE")] ConversionValue = 14, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentMetricDirection.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentMetricDirection.g.cs deleted file mode 100755 index 7c7565bf1..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentMetricDirection.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/experiment_metric_direction.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/experiment_metric_direction.proto - public static partial class ExperimentMetricDirectionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/experiment_metric_direction.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentMetricDirectionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZXhwZXJpbWVudF9t", - "ZXRyaWNfZGlyZWN0aW9uLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMivAEKHUV4cGVyaW1lbnRNZXRyaWNEaXJlY3Rpb25FbnVtIpoB", - "ChlFeHBlcmltZW50TWV0cmljRGlyZWN0aW9uEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEg0KCU5PX0NIQU5HRRACEgwKCElOQ1JFQVNFEAMSDAoI", - "REVDUkVBU0UQBBIZChVOT19DSEFOR0VfT1JfSU5DUkVBU0UQBRIZChVOT19D", - "SEFOR0VfT1JfREVDUkVBU0UQBkL4AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtc0IeRXhwZXJpbWVudE1ldHJpY0RpcmVjdGlvblByb3Rv", - "UAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1z", - "YgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricDirectionEnum), global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricDirectionEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricDirectionEnum.Types.ExperimentMetricDirection) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of experiment metric direction. - /// - public sealed partial class ExperimentMetricDirectionEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentMetricDirectionEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ExperimentMetricDirectionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentMetricDirectionEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentMetricDirectionEnum(ExperimentMetricDirectionEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentMetricDirectionEnum Clone() { - return new ExperimentMetricDirectionEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentMetricDirectionEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentMetricDirectionEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentMetricDirectionEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExperimentMetricDirectionEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of experiment metric direction. - /// - public enum ExperimentMetricDirection { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The goal of the experiment is to not change the metric. - /// - [pbr::OriginalName("NO_CHANGE")] NoChange = 2, - /// - /// The goal of the experiment is to increate the metric. - /// - [pbr::OriginalName("INCREASE")] Increase = 3, - /// - /// The goal of the experiment is to decrease the metric. - /// - [pbr::OriginalName("DECREASE")] Decrease = 4, - /// - /// The goal of the experiment is to either not change or increase the - /// metric. - /// - [pbr::OriginalName("NO_CHANGE_OR_INCREASE")] NoChangeOrIncrease = 5, - /// - /// The goal of the experiment is to either not change or decrease the - /// metric. - /// - [pbr::OriginalName("NO_CHANGE_OR_DECREASE")] NoChangeOrDecrease = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentResourceNames.g.cs deleted file mode 100755 index 1935e777a..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentResourceNames.g.cs +++ /dev/null @@ -1,262 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Experiment resource. - public sealed partial class ExperimentName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/experiments/{trial_id}. - CustomerTrial = 1, - } - - private static gax::PathTemplate s_customerTrial = new gax::PathTemplate("customers/{customer_id}/experiments/{trial_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ExperimentName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ExperimentName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/experiments/{trial_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static ExperimentName FromCustomerTrial(string customerId, string trialId) => - new ExperimentName(ResourceNameType.CustomerTrial, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), trialId: gax::GaxPreconditions.CheckNotNullOrEmpty(trialId, nameof(trialId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/experiments/{trial_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/experiments/{trial_id}. - /// - public static string Format(string customerId, string trialId) => FormatCustomerTrial(customerId, trialId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/experiments/{trial_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/experiments/{trial_id}. - /// - public static string FormatCustomerTrial(string customerId, string trialId) => - s_customerTrial.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(trialId, nameof(trialId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/experiments/{trial_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ExperimentName Parse(string experimentName) => Parse(experimentName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/experiments/{trial_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ExperimentName Parse(string experimentName, bool allowUnparsed) => - TryParse(experimentName, allowUnparsed, out ExperimentName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/experiments/{trial_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string experimentName, out ExperimentName result) => - TryParse(experimentName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/experiments/{trial_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string experimentName, bool allowUnparsed, out ExperimentName result) - { - gax::GaxPreconditions.CheckNotNull(experimentName, nameof(experimentName)); - gax::TemplatedResourceName resourceName; - if (s_customerTrial.TryParseName(experimentName, out resourceName)) - { - result = FromCustomerTrial(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(experimentName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ExperimentName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string trialId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - TrialId = trialId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/experiments/{trial_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Trial ID. Must not be null or empty. - public ExperimentName(string customerId, string trialId) : this(ResourceNameType.CustomerTrial, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), trialId: gax::GaxPreconditions.CheckNotNullOrEmpty(trialId, nameof(trialId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Trial ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string TrialId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerTrial: return s_customerTrial.Expand(CustomerId, TrialId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ExperimentName); - - /// - public bool Equals(ExperimentName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ExperimentName a, ExperimentName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ExperimentName a, ExperimentName b) => !(a == b); - } - - public partial class Experiment - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ResourceNameAsExperimentName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExperimentName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ExperimentName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::ExperimentName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentService.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentService.g.cs deleted file mode 100755 index 077af5a5c..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentService.g.cs +++ /dev/null @@ -1,3385 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/experiment_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/experiment_service.proto - public static partial class ExperimentServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/experiment_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZXhwZXJpbWVu", - "dF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMaM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvZXhw", - "ZXJpbWVudC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoX", - "Z29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVo", - "YXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aI2dvb2ds", - "ZS9sb25ncnVubmluZy9vcGVyYXRpb25zLnByb3RvGhtnb29nbGUvcHJvdG9i", - "dWYvZW1wdHkucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnBy", - "b3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byK1AQoYTXV0YXRlRXhwZXJp", - "bWVudHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISTwoKb3Bl", - "cmF0aW9ucxgCIAMoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcy5FeHBlcmltZW50T3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWls", - "dXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCABKAgikwIKE0V4cGVyaW1l", - "bnRPcGVyYXRpb24SLwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJv", - "dG9idWYuRmllbGRNYXNrEkAKBmNyZWF0ZRgBIAEoCzIuLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuRXhwZXJpbWVudEgAEkAKBnVwZGF0", - "ZRgCIAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "RXhwZXJpbWVudEgAEjoKBnJlbW92ZRgDIAEoCUIo+kElCiNnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vRXhwZXJpbWVudEgAQgsKCW9wZXJhdGlvbiKaAQoZ", - "TXV0YXRlRXhwZXJpbWVudHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVf", - "ZXJyb3IYASABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJKCgdyZXN1bHRzGAIg", - "AygLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUV4cGVyaW1lbnRSZXN1bHQiWQoWTXV0YXRlRXhwZXJpbWVudFJlc3VsdBI/", - "Cg1yZXNvdXJjZV9uYW1lGAEgASgJQij6QSUKI2dvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9FeHBlcmltZW50Im4KFEVuZEV4cGVyaW1lbnRSZXF1ZXN0Ej8K", - "CmV4cGVyaW1lbnQYASABKAlCK+BBAvpBJQojZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0V4cGVyaW1lbnQSFQoNdmFsaWRhdGVfb25seRgCIAEoCCKNAQog", - "TGlzdEV4cGVyaW1lbnRBc3luY0Vycm9yc1JlcXVlc3QSQgoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIr4EEC+kElCiNnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "RXhwZXJpbWVudBISCgpwYWdlX3Rva2VuGAIgASgJEhEKCXBhZ2Vfc2l6ZRgD", - "IAEoBSJgCiFMaXN0RXhwZXJpbWVudEFzeW5jRXJyb3JzUmVzcG9uc2USIgoG", - "ZXJyb3JzGAEgAygLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSFwoPbmV4dF9wYWdl", - "X3Rva2VuGAIgASgJItQBChlHcmFkdWF0ZUV4cGVyaW1lbnRSZXF1ZXN0Ej8K", - "CmV4cGVyaW1lbnQYASABKAlCK+BBAvpBJQojZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0V4cGVyaW1lbnQSXwoYY2FtcGFpZ25fYnVkZ2V0X21hcHBpbmdz", - "GAIgAygLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNh", - "bXBhaWduQnVkZ2V0TWFwcGluZ0ID4EECEhUKDXZhbGlkYXRlX29ubHkYAyAB", - "KAgiqQEKFUNhbXBhaWduQnVkZ2V0TWFwcGluZxJGChNleHBlcmltZW50X2Nh", - "bXBhaWduGAEgASgJQingQQL6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9DYW1wYWlnbhJICg9jYW1wYWlnbl9idWRnZXQYAiABKAlCL+BBAvpBKQon", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQnVkZ2V0InYKGVNj", - "aGVkdWxlRXhwZXJpbWVudFJlcXVlc3QSQgoNcmVzb3VyY2VfbmFtZRgBIAEo", - "CUIr4EEC+kElCiNnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRXhwZXJpbWVu", - "dBIVCg12YWxpZGF0ZV9vbmx5GAIgASgIIl0KGlNjaGVkdWxlRXhwZXJpbWVu", - "dE1ldGFkYXRhEj8KCmV4cGVyaW1lbnQYASABKAlCK+BBAvpBJQojZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0V4cGVyaW1lbnQidQoYUHJvbW90ZUV4cGVy", - "aW1lbnRSZXF1ZXN0EkIKDXJlc291cmNlX25hbWUYASABKAlCK+BBAvpBJQoj", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0V4cGVyaW1lbnQSFQoNdmFsaWRh", - "dGVfb25seRgCIAEoCCJcChlQcm9tb3RlRXhwZXJpbWVudE1ldGFkYXRhEj8K", - "CmV4cGVyaW1lbnQYASABKAlCK+BBAvpBJQojZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0V4cGVyaW1lbnQyswwKEUV4cGVyaW1lbnRTZXJ2aWNlEuUBChFN", - "dXRhdGVFeHBlcmltZW50cxI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVFeHBlcmltZW50c1JlcXVlc3QaPC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlRXhwZXJpbWVudHNSZXNw", - "b25zZSJVgtPkkwI2IjEvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0v", - "ZXhwZXJpbWVudHM6bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9u", - "cxKzAQoNRW5kRXhwZXJpbWVudBI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5FbmRFeHBlcmltZW50UmVxdWVzdBoWLmdvb2dsZS5wcm90", - "b2J1Zi5FbXB0eSJRgtPkkwI+IjkvdjEyL3tleHBlcmltZW50PWN1c3RvbWVy", - "cy8qL2V4cGVyaW1lbnRzLyp9OmVuZEV4cGVyaW1lbnQ6ASraQQpleHBlcmlt", - "ZW50EogCChlMaXN0RXhwZXJpbWVudEFzeW5jRXJyb3JzEkMuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkxpc3RFeHBlcmltZW50QXN5bmNF", - "cnJvcnNSZXF1ZXN0GkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLkxpc3RFeHBlcmltZW50QXN5bmNFcnJvcnNSZXNwb25zZSJggtPkkwJK", - "EkgvdjEyL3tyZXNvdXJjZV9uYW1lPWN1c3RvbWVycy8qL2V4cGVyaW1lbnRz", - "Lyp9Omxpc3RFeHBlcmltZW50QXN5bmNFcnJvcnPaQQ1yZXNvdXJjZV9uYW1l", - "EtsBChJHcmFkdWF0ZUV4cGVyaW1lbnQSPC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuR3JhZHVhdGVFeHBlcmltZW50UmVxdWVzdBoWLmdv", - "b2dsZS5wcm90b2J1Zi5FbXB0eSJvgtPkkwJDIj4vdjEyL3tleHBlcmltZW50", - "PWN1c3RvbWVycy8qL2V4cGVyaW1lbnRzLyp9OmdyYWR1YXRlRXhwZXJpbWVu", - "dDoBKtpBI2V4cGVyaW1lbnQsY2FtcGFpZ25fYnVkZ2V0X21hcHBpbmdzEqgC", - "ChJTY2hlZHVsZUV4cGVyaW1lbnQSPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuU2NoZWR1bGVFeHBlcmltZW50UmVxdWVzdBodLmdvb2ds", - "ZS5sb25ncnVubmluZy5PcGVyYXRpb24itAGC0+STAkYiQS92MTIve3Jlc291", - "cmNlX25hbWU9Y3VzdG9tZXJzLyovZXhwZXJpbWVudHMvKn06c2NoZWR1bGVF", - "eHBlcmltZW50OgEq2kENcmVzb3VyY2VfbmFtZcpBVQoVZ29vZ2xlLnByb3Rv", - "YnVmLkVtcHR5Ejxnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "U2NoZWR1bGVFeHBlcmltZW50TWV0YWRhdGESpAIKEVByb21vdGVFeHBlcmlt", - "ZW50EjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLlByb21v", - "dGVFeHBlcmltZW50UmVxdWVzdBodLmdvb2dsZS5sb25ncnVubmluZy5PcGVy", - "YXRpb24isgGC0+STAkUiQC92MTIve3Jlc291cmNlX25hbWU9Y3VzdG9tZXJz", - "LyovZXhwZXJpbWVudHMvKn06cHJvbW90ZUV4cGVyaW1lbnQ6ASraQQ1yZXNv", - "dXJjZV9uYW1lykFUChVnb29nbGUucHJvdG9idWYuRW1wdHkSO2dvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Qcm9tb3RlRXhwZXJpbWVudE1l", - "dGFkYXRhGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczov", - "L3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCggIKJWNvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCFkV4cGVyaW1lbnRTZXJ2", - "aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dB", - "QaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpH", - "b29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.ExperimentReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.LongRunning.OperationsReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation), global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult), global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest), global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest.Parser, new[]{ "Experiment", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest), global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest.Parser, new[]{ "ResourceName", "PageToken", "PageSize" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsResponse), global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsResponse.Parser, new[]{ "Errors", "NextPageToken" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest), global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest.Parser, new[]{ "Experiment", "CampaignBudgetMappings", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetMapping), global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetMapping.Parser, new[]{ "ExperimentCampaign", "CampaignBudget" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest), global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest.Parser, new[]{ "ResourceName", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentMetadata), global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentMetadata.Parser, new[]{ "Experiment" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest), global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest.Parser, new[]{ "ResourceName", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentMetadata), global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentMetadata.Parser, new[]{ "Experiment" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [ExperimentService.MutateExperiments][google.ads.googleads.v12.services.ExperimentService.MutateExperiments]. - /// - public sealed partial class MutateExperimentsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExperimentsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentsRequest(MutateExperimentsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentsRequest Clone() { - return new MutateExperimentsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual experiments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExperimentsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExperimentsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExperimentsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation on an experiment. - /// - public sealed partial class ExperimentOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentOperation(ExperimentOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentOperation Clone() { - return new ExperimentOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Experiment Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.Experiment) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The experiment is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Experiment Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.Experiment) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: The experiment is expected to have a valid - /// resource name, in this format: - /// - /// `customers/{customer_id}/experiments/{campaign_experiment_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Experiment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Experiment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Experiment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Experiment subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for experiment mutate. - /// - public sealed partial class MutateExperimentsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExperimentsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentsResponse(MutateExperimentsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentsResponse Clone() { - return new MutateExperimentsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 1; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExperimentsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExperimentsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (partialFailureError_ != null) { - output.WriteRawTag(10); - output.WriteMessage(PartialFailureError); - } - results_.WriteTo(ref output, _repeated_results_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExperimentsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the campaign experiment mutate. - /// - public sealed partial class MutateExperimentResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExperimentResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentResult(MutateExperimentResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExperimentResult Clone() { - return new MutateExperimentResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExperimentResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExperimentResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExperimentResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [ExperimentService.EndExperiment][google.ads.googleads.v12.services.ExperimentService.EndExperiment]. - /// - public sealed partial class EndExperimentRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EndExperimentRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EndExperimentRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EndExperimentRequest(EndExperimentRequest other) : this() { - experiment_ = other.experiment_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public EndExperimentRequest Clone() { - return new EndExperimentRequest(this); - } - - /// Field number for the "experiment" field. - public const int ExperimentFieldNumber = 1; - private string experiment_ = ""; - /// - /// Required. The resource name of the campaign experiment to end. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Experiment { - get { return experiment_; } - set { - experiment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 2; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as EndExperimentRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(EndExperimentRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Experiment != other.Experiment) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Experiment.Length != 0) hash ^= Experiment.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Experiment.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Experiment); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(EndExperimentRequest other) { - if (other == null) { - return; - } - if (other.Experiment.Length != 0) { - Experiment = other.Experiment; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for - /// [ExperimentService.ListExperimentAsyncErrors][google.ads.googleads.v12.services.ExperimentService.ListExperimentAsyncErrors]. - /// - public sealed partial class ListExperimentAsyncErrorsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListExperimentAsyncErrorsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListExperimentAsyncErrorsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListExperimentAsyncErrorsRequest(ListExperimentAsyncErrorsRequest other) : this() { - resourceName_ = other.resourceName_; - pageToken_ = other.pageToken_; - pageSize_ = other.pageSize_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListExperimentAsyncErrorsRequest Clone() { - return new ListExperimentAsyncErrorsRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The name of the experiment from which to retrieve the async - /// errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 2; - private string pageToken_ = ""; - /// - /// Token of the page to retrieve. If not specified, the first - /// page of results will be returned. Use the value obtained from - /// `next_page_token` in the previous response in order to request - /// the next page of results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 3; - private int pageSize_; - /// - /// Number of elements to retrieve in a single page. - /// When a page request is too large, the server may decide to - /// further limit the number of returned resources. - /// The maximum page size is 1000. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListExperimentAsyncErrorsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListExperimentAsyncErrorsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (PageToken != other.PageToken) return false; - if (PageSize != other.PageSize) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListExperimentAsyncErrorsRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [ExperimentService.ListExperimentAsyncErrors][google.ads.googleads.v12.services.ExperimentService.ListExperimentAsyncErrors]. - /// - public sealed partial class ListExperimentAsyncErrorsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListExperimentAsyncErrorsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListExperimentAsyncErrorsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListExperimentAsyncErrorsResponse(ListExperimentAsyncErrorsResponse other) : this() { - errors_ = other.errors_.Clone(); - nextPageToken_ = other.nextPageToken_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListExperimentAsyncErrorsResponse Clone() { - return new ListExperimentAsyncErrorsResponse(this); - } - - /// Field number for the "errors" field. - public const int ErrorsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_errors_codec - = pb::FieldCodec.ForMessage(10, global::Google.Rpc.Status.Parser); - private readonly pbc::RepeatedField errors_ = new pbc::RepeatedField(); - /// - /// details of the errors when performing the asynchronous operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Errors { - get { return errors_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Pagination token used to retrieve the next page of results. - /// Pass the content of this string as the `page_token` attribute of - /// the next request. `next_page_token` is not returned for the last - /// page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListExperimentAsyncErrorsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListExperimentAsyncErrorsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!errors_.Equals(other.errors_)) return false; - if (NextPageToken != other.NextPageToken) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= errors_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - errors_.WriteTo(output, _repeated_errors_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - errors_.WriteTo(ref output, _repeated_errors_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += errors_.CalculateSize(_repeated_errors_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListExperimentAsyncErrorsResponse other) { - if (other == null) { - return; - } - errors_.Add(other.errors_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - errors_.AddEntriesFrom(input, _repeated_errors_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - errors_.AddEntriesFrom(ref input, _repeated_errors_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [ExperimentService.GraduateExperiment][google.ads.googleads.v12.services.ExperimentService.GraduateExperiment]. - /// - public sealed partial class GraduateExperimentRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GraduateExperimentRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GraduateExperimentRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GraduateExperimentRequest(GraduateExperimentRequest other) : this() { - experiment_ = other.experiment_; - campaignBudgetMappings_ = other.campaignBudgetMappings_.Clone(); - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GraduateExperimentRequest Clone() { - return new GraduateExperimentRequest(this); - } - - /// Field number for the "experiment" field. - public const int ExperimentFieldNumber = 1; - private string experiment_ = ""; - /// - /// Required. The experiment to be graduated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Experiment { - get { return experiment_; } - set { - experiment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_budget_mappings" field. - public const int CampaignBudgetMappingsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_campaignBudgetMappings_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetMapping.Parser); - private readonly pbc::RepeatedField campaignBudgetMappings_ = new pbc::RepeatedField(); - /// - /// Required. List of campaign budget mappings for graduation. Each campaign that - /// appears here will graduate, and will be assigned a new budget that is - /// paired with it in the mapping. The maximum size is one. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CampaignBudgetMappings { - get { return campaignBudgetMappings_; } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GraduateExperimentRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GraduateExperimentRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Experiment != other.Experiment) return false; - if(!campaignBudgetMappings_.Equals(other.campaignBudgetMappings_)) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Experiment.Length != 0) hash ^= Experiment.GetHashCode(); - hash ^= campaignBudgetMappings_.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - campaignBudgetMappings_.WriteTo(output, _repeated_campaignBudgetMappings_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - campaignBudgetMappings_.WriteTo(ref output, _repeated_campaignBudgetMappings_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Experiment.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Experiment); - } - size += campaignBudgetMappings_.CalculateSize(_repeated_campaignBudgetMappings_codec); - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GraduateExperimentRequest other) { - if (other == null) { - return; - } - if (other.Experiment.Length != 0) { - Experiment = other.Experiment; - } - campaignBudgetMappings_.Add(other.campaignBudgetMappings_); - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - case 18: { - campaignBudgetMappings_.AddEntriesFrom(input, _repeated_campaignBudgetMappings_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - case 18: { - campaignBudgetMappings_.AddEntriesFrom(ref input, _repeated_campaignBudgetMappings_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// The mapping of experiment campaign and budget to be graduated. - /// - public sealed partial class CampaignBudgetMapping : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignBudgetMapping()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetMapping() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetMapping(CampaignBudgetMapping other) : this() { - experimentCampaign_ = other.experimentCampaign_; - campaignBudget_ = other.campaignBudget_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CampaignBudgetMapping Clone() { - return new CampaignBudgetMapping(this); - } - - /// Field number for the "experiment_campaign" field. - public const int ExperimentCampaignFieldNumber = 1; - private string experimentCampaign_ = ""; - /// - /// Required. The experiment campaign to graduate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ExperimentCampaign { - get { return experimentCampaign_; } - set { - experimentCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign_budget" field. - public const int CampaignBudgetFieldNumber = 2; - private string campaignBudget_ = ""; - /// - /// Required. The budget that should be attached to the graduating experiment campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CampaignBudget { - get { return campaignBudget_; } - set { - campaignBudget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CampaignBudgetMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CampaignBudgetMapping other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ExperimentCampaign != other.ExperimentCampaign) return false; - if (CampaignBudget != other.CampaignBudget) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ExperimentCampaign.Length != 0) hash ^= ExperimentCampaign.GetHashCode(); - if (CampaignBudget.Length != 0) hash ^= CampaignBudget.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ExperimentCampaign.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ExperimentCampaign); - } - if (CampaignBudget.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CampaignBudget); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ExperimentCampaign.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ExperimentCampaign); - } - if (CampaignBudget.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CampaignBudget); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ExperimentCampaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ExperimentCampaign); - } - if (CampaignBudget.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CampaignBudget); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CampaignBudgetMapping other) { - if (other == null) { - return; - } - if (other.ExperimentCampaign.Length != 0) { - ExperimentCampaign = other.ExperimentCampaign; - } - if (other.CampaignBudget.Length != 0) { - CampaignBudget = other.CampaignBudget; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ExperimentCampaign = input.ReadString(); - break; - } - case 18: { - CampaignBudget = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ExperimentCampaign = input.ReadString(); - break; - } - case 18: { - CampaignBudget = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [ExperimentService.ScheduleExperiment][google.ads.googleads.v12.services.ExperimentService.ScheduleExperiment]. - /// - public sealed partial class ScheduleExperimentRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScheduleExperimentRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScheduleExperimentRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScheduleExperimentRequest(ScheduleExperimentRequest other) : this() { - resourceName_ = other.resourceName_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScheduleExperimentRequest Clone() { - return new ScheduleExperimentRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The scheduled experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 2; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ScheduleExperimentRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScheduleExperimentRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScheduleExperimentRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// The metadata of the scheduled experiment. - /// - public sealed partial class ScheduleExperimentMetadata : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ScheduleExperimentMetadata()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScheduleExperimentMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScheduleExperimentMetadata(ScheduleExperimentMetadata other) : this() { - experiment_ = other.experiment_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ScheduleExperimentMetadata Clone() { - return new ScheduleExperimentMetadata(this); - } - - /// Field number for the "experiment" field. - public const int ExperimentFieldNumber = 1; - private string experiment_ = ""; - /// - /// Required. The scheduled experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Experiment { - get { return experiment_; } - set { - experiment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ScheduleExperimentMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ScheduleExperimentMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Experiment != other.Experiment) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Experiment.Length != 0) hash ^= Experiment.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Experiment.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Experiment); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ScheduleExperimentMetadata other) { - if (other == null) { - return; - } - if (other.Experiment.Length != 0) { - Experiment = other.Experiment; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [ExperimentService.PromoteExperiment][google.ads.googleads.v12.services.ExperimentService.PromoteExperiment]. - /// - public sealed partial class PromoteExperimentRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PromoteExperimentRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteExperimentRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteExperimentRequest(PromoteExperimentRequest other) : this() { - resourceName_ = other.resourceName_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteExperimentRequest Clone() { - return new PromoteExperimentRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The resource name of the experiment to promote. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 2; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PromoteExperimentRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PromoteExperimentRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (ValidateOnly != false) { - output.WriteRawTag(16); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PromoteExperimentRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// The metadata of the promoted experiment. - /// - public sealed partial class PromoteExperimentMetadata : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PromoteExperimentMetadata()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteExperimentMetadata() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteExperimentMetadata(PromoteExperimentMetadata other) : this() { - experiment_ = other.experiment_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromoteExperimentMetadata Clone() { - return new PromoteExperimentMetadata(this); - } - - /// Field number for the "experiment" field. - public const int ExperimentFieldNumber = 1; - private string experiment_ = ""; - /// - /// Required. The promoted experiment. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Experiment { - get { return experiment_; } - set { - experiment_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PromoteExperimentMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PromoteExperimentMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Experiment != other.Experiment) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Experiment.Length != 0) hash ^= Experiment.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Experiment.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Experiment); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Experiment.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Experiment); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PromoteExperimentMetadata other) { - if (other == null) { - return; - } - if (other.Experiment.Length != 0) { - Experiment = other.Experiment; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Experiment = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentServiceClient.g.cs deleted file mode 100755 index e2cb517af..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentServiceClient.g.cs +++ /dev/null @@ -1,2151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using lro = Google.LongRunning; -using proto = Google.Protobuf; -using wkt = Google.Protobuf.WellKnownTypes; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ExperimentServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ExperimentServiceSettings GetDefault() => new ExperimentServiceSettings(); - - /// Constructs a new object with default settings. - public ExperimentServiceSettings() - { - } - - private ExperimentServiceSettings(ExperimentServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateExperimentsSettings = existing.MutateExperimentsSettings; - EndExperimentSettings = existing.EndExperimentSettings; - ListExperimentAsyncErrorsSettings = existing.ListExperimentAsyncErrorsSettings; - GraduateExperimentSettings = existing.GraduateExperimentSettings; - ScheduleExperimentSettings = existing.ScheduleExperimentSettings; - ScheduleExperimentOperationsSettings = existing.ScheduleExperimentOperationsSettings.Clone(); - PromoteExperimentSettings = existing.PromoteExperimentSettings; - PromoteExperimentOperationsSettings = existing.PromoteExperimentOperationsSettings.Clone(); - OnCopy(existing); - } - - partial void OnCopy(ExperimentServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ExperimentServiceClient.MutateExperiments and ExperimentServiceClient.MutateExperimentsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateExperimentsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// ExperimentServiceClient.EndExperiment and ExperimentServiceClient.EndExperimentAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings EndExperimentSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// ExperimentServiceClient.ListExperimentAsyncErrors and - /// ExperimentServiceClient.ListExperimentAsyncErrorsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ListExperimentAsyncErrorsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// ExperimentServiceClient.GraduateExperiment and ExperimentServiceClient.GraduateExperimentAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GraduateExperimentSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// ExperimentServiceClient.ScheduleExperiment and ExperimentServiceClient.ScheduleExperimentAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ScheduleExperimentSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// Long Running Operation settings for calls to ExperimentServiceClient.ScheduleExperiment and - /// ExperimentServiceClient.ScheduleExperimentAsync. - /// - /// - /// Uses default of: - /// - /// Initial delay: 20 seconds. - /// Delay multiplier: 1.5 - /// Maximum delay: 45 seconds. - /// Total timeout: 24 hours. - /// - /// - public lro::OperationsSettings ScheduleExperimentOperationsSettings { get; set; } = new lro::OperationsSettings - { - DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), - }; - - /// - /// for synchronous and asynchronous calls to - /// ExperimentServiceClient.PromoteExperiment and ExperimentServiceClient.PromoteExperimentAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings PromoteExperimentSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// Long Running Operation settings for calls to ExperimentServiceClient.PromoteExperiment and - /// ExperimentServiceClient.PromoteExperimentAsync. - /// - /// - /// Uses default of: - /// - /// Initial delay: 20 seconds. - /// Delay multiplier: 1.5 - /// Maximum delay: 45 seconds. - /// Total timeout: 24 hours. - /// - /// - public lro::OperationsSettings PromoteExperimentOperationsSettings { get; set; } = new lro::OperationsSettings - { - DefaultPollSettings = new gax::PollSettings(gax::Expiration.FromTimeout(sys::TimeSpan.FromHours(24)), sys::TimeSpan.FromSeconds(20), 1.5, sys::TimeSpan.FromSeconds(45)), - }; - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ExperimentServiceSettings Clone() => new ExperimentServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class ExperimentServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ExperimentServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ExperimentServiceClientBuilder() : base(ExperimentServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ExperimentServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ExperimentServiceClient Build() - { - ExperimentServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ExperimentServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ExperimentServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ExperimentServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ExperimentServiceClient.ChannelPool; - } - - /// ExperimentService client wrapper, for convenient use. - /// - /// Service to manage experiments. - /// - public abstract partial class ExperimentServiceClient - { - /// - /// The default endpoint for the ExperimentService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ExperimentService scopes. - /// - /// The default ExperimentService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ExperimentService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ExperimentServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static ExperimentServiceClient Create() => new ExperimentServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ExperimentServiceClient Create(grpccore::CallInvoker callInvoker, ExperimentServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ExperimentService.ExperimentServiceClient grpcClient = new ExperimentService.ExperimentServiceClient(callInvoker); - return new ExperimentServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ExperimentService client - public virtual ExperimentService.ExperimentServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateExperimentsResponse MutateExperiments(MutateExperimentsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentsAsync(MutateExperimentsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentsAsync(MutateExperimentsRequest request, st::CancellationToken cancellationToken) => - MutateExperimentsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - /// - /// Required. The list of operations to perform on individual experiments. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateExperimentsResponse MutateExperiments(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateExperiments(new MutateExperimentsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - /// - /// Required. The list of operations to perform on individual experiments. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateExperimentsAsync(new MutateExperimentsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose experiments are being modified. - /// - /// - /// Required. The list of operations to perform on individual experiments. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateExperimentsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateExperimentsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual void EndExperiment(EndExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task EndExperimentAsync(EndExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task EndExperimentAsync(EndExperimentRequest request, st::CancellationToken cancellationToken) => - EndExperimentAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign experiment to end. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual void EndExperiment(string experiment, gaxgrpc::CallSettings callSettings = null) => - EndExperiment(new EndExperimentRequest - { - Experiment = gax::GaxPreconditions.CheckNotNullOrEmpty(experiment, nameof(experiment)), - }, callSettings); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign experiment to end. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task EndExperimentAsync(string experiment, gaxgrpc::CallSettings callSettings = null) => - EndExperimentAsync(new EndExperimentRequest - { - Experiment = gax::GaxPreconditions.CheckNotNullOrEmpty(experiment, nameof(experiment)), - }, callSettings); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign experiment to end. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task EndExperimentAsync(string experiment, st::CancellationToken cancellationToken) => - EndExperimentAsync(experiment, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign experiment to end. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual void EndExperiment(gagvr::ExperimentName experiment, gaxgrpc::CallSettings callSettings = null) => - EndExperiment(new EndExperimentRequest - { - ExperimentAsExperimentName = gax::GaxPreconditions.CheckNotNull(experiment, nameof(experiment)), - }, callSettings); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign experiment to end. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task EndExperimentAsync(gagvr::ExperimentName experiment, gaxgrpc::CallSettings callSettings = null) => - EndExperimentAsync(new EndExperimentRequest - { - ExperimentAsExperimentName = gax::GaxPreconditions.CheckNotNull(experiment, nameof(experiment)), - }, callSettings); - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the campaign experiment to end. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task EndExperimentAsync(gagvr::ExperimentName experiment, st::CancellationToken cancellationToken) => - EndExperimentAsync(experiment, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListExperimentAsyncErrors(ListExperimentAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListExperimentAsyncErrorsAsync(ListExperimentAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the experiment from which to retrieve the async - /// errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListExperimentAsyncErrors(string resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListExperimentAsyncErrors(new ListExperimentAsyncErrorsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the experiment from which to retrieve the async - /// errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListExperimentAsyncErrorsAsync(string resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListExperimentAsyncErrorsAsync(new ListExperimentAsyncErrorsRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the experiment from which to retrieve the async - /// errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable ListExperimentAsyncErrors(gagvr::ExperimentName resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListExperimentAsyncErrors(new ListExperimentAsyncErrorsRequest - { - ResourceNameAsExperimentName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The name of the experiment from which to retrieve the async - /// errors. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable ListExperimentAsyncErrorsAsync(gagvr::ExperimentName resourceName, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - ListExperimentAsyncErrorsAsync(new ListExperimentAsyncErrorsRequest - { - ResourceNameAsExperimentName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual void GraduateExperiment(GraduateExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GraduateExperimentAsync(GraduateExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GraduateExperimentAsync(GraduateExperimentRequest request, st::CancellationToken cancellationToken) => - GraduateExperimentAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The experiment to be graduated. - /// - /// - /// Required. List of campaign budget mappings for graduation. Each campaign that - /// appears here will graduate, and will be assigned a new budget that is - /// paired with it in the mapping. The maximum size is one. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual void GraduateExperiment(string experiment, scg::IEnumerable campaignBudgetMappings, gaxgrpc::CallSettings callSettings = null) => - GraduateExperiment(new GraduateExperimentRequest - { - Experiment = gax::GaxPreconditions.CheckNotNullOrEmpty(experiment, nameof(experiment)), - CampaignBudgetMappings = - { - gax::GaxPreconditions.CheckNotNull(campaignBudgetMappings, nameof(campaignBudgetMappings)), - }, - }, callSettings); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The experiment to be graduated. - /// - /// - /// Required. List of campaign budget mappings for graduation. Each campaign that - /// appears here will graduate, and will be assigned a new budget that is - /// paired with it in the mapping. The maximum size is one. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GraduateExperimentAsync(string experiment, scg::IEnumerable campaignBudgetMappings, gaxgrpc::CallSettings callSettings = null) => - GraduateExperimentAsync(new GraduateExperimentRequest - { - Experiment = gax::GaxPreconditions.CheckNotNullOrEmpty(experiment, nameof(experiment)), - CampaignBudgetMappings = - { - gax::GaxPreconditions.CheckNotNull(campaignBudgetMappings, nameof(campaignBudgetMappings)), - }, - }, callSettings); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The experiment to be graduated. - /// - /// - /// Required. List of campaign budget mappings for graduation. Each campaign that - /// appears here will graduate, and will be assigned a new budget that is - /// paired with it in the mapping. The maximum size is one. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GraduateExperimentAsync(string experiment, scg::IEnumerable campaignBudgetMappings, st::CancellationToken cancellationToken) => - GraduateExperimentAsync(experiment, campaignBudgetMappings, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The experiment to be graduated. - /// - /// - /// Required. List of campaign budget mappings for graduation. Each campaign that - /// appears here will graduate, and will be assigned a new budget that is - /// paired with it in the mapping. The maximum size is one. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual void GraduateExperiment(gagvr::ExperimentName experiment, scg::IEnumerable campaignBudgetMappings, gaxgrpc::CallSettings callSettings = null) => - GraduateExperiment(new GraduateExperimentRequest - { - ExperimentAsExperimentName = gax::GaxPreconditions.CheckNotNull(experiment, nameof(experiment)), - CampaignBudgetMappings = - { - gax::GaxPreconditions.CheckNotNull(campaignBudgetMappings, nameof(campaignBudgetMappings)), - }, - }, callSettings); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The experiment to be graduated. - /// - /// - /// Required. List of campaign budget mappings for graduation. Each campaign that - /// appears here will graduate, and will be assigned a new budget that is - /// paired with it in the mapping. The maximum size is one. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GraduateExperimentAsync(gagvr::ExperimentName experiment, scg::IEnumerable campaignBudgetMappings, gaxgrpc::CallSettings callSettings = null) => - GraduateExperimentAsync(new GraduateExperimentRequest - { - ExperimentAsExperimentName = gax::GaxPreconditions.CheckNotNull(experiment, nameof(experiment)), - CampaignBudgetMappings = - { - gax::GaxPreconditions.CheckNotNull(campaignBudgetMappings, nameof(campaignBudgetMappings)), - }, - }, callSettings); - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The experiment to be graduated. - /// - /// - /// Required. List of campaign budget mappings for graduation. Each campaign that - /// appears here will graduate, and will be assigned a new budget that is - /// paired with it in the mapping. The maximum size is one. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GraduateExperimentAsync(gagvr::ExperimentName experiment, scg::IEnumerable campaignBudgetMappings, st::CancellationToken cancellationToken) => - GraduateExperimentAsync(experiment, campaignBudgetMappings, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation ScheduleExperiment(ScheduleExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> ScheduleExperimentAsync(ScheduleExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> ScheduleExperimentAsync(ScheduleExperimentRequest request, st::CancellationToken cancellationToken) => - ScheduleExperimentAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// The long-running operations client for ScheduleExperiment. - public virtual lro::OperationsClient ScheduleExperimentOperationsClient => throw new sys::NotImplementedException(); - - /// - /// Poll an operation once, using an operationName from a previous invocation of ScheduleExperiment - /// . - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// The result of polling the operation. - public virtual lro::Operation PollOnceScheduleExperiment(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), ScheduleExperimentOperationsClient, callSettings); - - /// - /// Asynchronously poll an operation once, using an operationName from a previous invocation of - /// ScheduleExperiment. - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// A task representing the result of polling the operation. - public virtual stt::Task> PollOnceScheduleExperimentAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), ScheduleExperimentOperationsClient, callSettings); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The scheduled experiment. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation ScheduleExperiment(string resourceName, gaxgrpc::CallSettings callSettings = null) => - ScheduleExperiment(new ScheduleExperimentRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The scheduled experiment. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> ScheduleExperimentAsync(string resourceName, gaxgrpc::CallSettings callSettings = null) => - ScheduleExperimentAsync(new ScheduleExperimentRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The scheduled experiment. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> ScheduleExperimentAsync(string resourceName, st::CancellationToken cancellationToken) => - ScheduleExperimentAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The scheduled experiment. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation ScheduleExperiment(gagvr::ExperimentName resourceName, gaxgrpc::CallSettings callSettings = null) => - ScheduleExperiment(new ScheduleExperimentRequest - { - ResourceNameAsExperimentName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The scheduled experiment. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> ScheduleExperimentAsync(gagvr::ExperimentName resourceName, gaxgrpc::CallSettings callSettings = null) => - ScheduleExperimentAsync(new ScheduleExperimentRequest - { - ResourceNameAsExperimentName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// - /// Required. The scheduled experiment. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> ScheduleExperimentAsync(gagvr::ExperimentName resourceName, st::CancellationToken cancellationToken) => - ScheduleExperimentAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation PromoteExperiment(PromoteExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteExperimentAsync(PromoteExperimentRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteExperimentAsync(PromoteExperimentRequest request, st::CancellationToken cancellationToken) => - PromoteExperimentAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// The long-running operations client for PromoteExperiment. - public virtual lro::OperationsClient PromoteExperimentOperationsClient => throw new sys::NotImplementedException(); - - /// - /// Poll an operation once, using an operationName from a previous invocation of PromoteExperiment - /// . - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// The result of polling the operation. - public virtual lro::Operation PollOncePromoteExperiment(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromName(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PromoteExperimentOperationsClient, callSettings); - - /// - /// Asynchronously poll an operation once, using an operationName from a previous invocation of - /// PromoteExperiment. - /// - /// - /// The name of a previously invoked operation. Must not be null or empty. - /// - /// If not null, applies overrides to this RPC call. - /// A task representing the result of polling the operation. - public virtual stt::Task> PollOncePromoteExperimentAsync(string operationName, gaxgrpc::CallSettings callSettings = null) => - lro::Operation.PollOnceFromNameAsync(gax::GaxPreconditions.CheckNotNullOrEmpty(operationName, nameof(operationName)), PromoteExperimentOperationsClient, callSettings); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the experiment to promote. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation PromoteExperiment(string resourceName, gaxgrpc::CallSettings callSettings = null) => - PromoteExperiment(new PromoteExperimentRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the experiment to promote. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteExperimentAsync(string resourceName, gaxgrpc::CallSettings callSettings = null) => - PromoteExperimentAsync(new PromoteExperimentRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the experiment to promote. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteExperimentAsync(string resourceName, st::CancellationToken cancellationToken) => - PromoteExperimentAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the experiment to promote. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual lro::Operation PromoteExperiment(gagvr::ExperimentName resourceName, gaxgrpc::CallSettings callSettings = null) => - PromoteExperiment(new PromoteExperimentRequest - { - ResourceNameAsExperimentName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the experiment to promote. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteExperimentAsync(gagvr::ExperimentName resourceName, gaxgrpc::CallSettings callSettings = null) => - PromoteExperimentAsync(new PromoteExperimentRequest - { - ResourceNameAsExperimentName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the experiment to promote. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task> PromoteExperimentAsync(gagvr::ExperimentName resourceName, st::CancellationToken cancellationToken) => - PromoteExperimentAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ExperimentService client wrapper implementation, for convenient use. - /// - /// Service to manage experiments. - /// - public sealed partial class ExperimentServiceClientImpl : ExperimentServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateExperiments; - - private readonly gaxgrpc::ApiCall _callEndExperiment; - - private readonly gaxgrpc::ApiCall _callListExperimentAsyncErrors; - - private readonly gaxgrpc::ApiCall _callGraduateExperiment; - - private readonly gaxgrpc::ApiCall _callScheduleExperiment; - - private readonly gaxgrpc::ApiCall _callPromoteExperiment; - - /// - /// Constructs a client wrapper for the ExperimentService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public ExperimentServiceClientImpl(ExperimentService.ExperimentServiceClient grpcClient, ExperimentServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ExperimentServiceSettings effectiveSettings = settings ?? ExperimentServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - ScheduleExperimentOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.ScheduleExperimentOperationsSettings, logger); - PromoteExperimentOperationsClient = new lro::OperationsClientImpl(grpcClient.CreateOperationsClient(), effectiveSettings.PromoteExperimentOperationsSettings, logger); - _callMutateExperiments = clientHelper.BuildApiCall("MutateExperiments", grpcClient.MutateExperimentsAsync, grpcClient.MutateExperiments, effectiveSettings.MutateExperimentsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateExperiments); - Modify_MutateExperimentsApiCall(ref _callMutateExperiments); - _callEndExperiment = clientHelper.BuildApiCall("EndExperiment", grpcClient.EndExperimentAsync, grpcClient.EndExperiment, effectiveSettings.EndExperimentSettings).WithGoogleRequestParam("experiment", request => request.Experiment); - Modify_ApiCall(ref _callEndExperiment); - Modify_EndExperimentApiCall(ref _callEndExperiment); - _callListExperimentAsyncErrors = clientHelper.BuildApiCall("ListExperimentAsyncErrors", grpcClient.ListExperimentAsyncErrorsAsync, grpcClient.ListExperimentAsyncErrors, effectiveSettings.ListExperimentAsyncErrorsSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callListExperimentAsyncErrors); - Modify_ListExperimentAsyncErrorsApiCall(ref _callListExperimentAsyncErrors); - _callGraduateExperiment = clientHelper.BuildApiCall("GraduateExperiment", grpcClient.GraduateExperimentAsync, grpcClient.GraduateExperiment, effectiveSettings.GraduateExperimentSettings).WithGoogleRequestParam("experiment", request => request.Experiment); - Modify_ApiCall(ref _callGraduateExperiment); - Modify_GraduateExperimentApiCall(ref _callGraduateExperiment); - _callScheduleExperiment = clientHelper.BuildApiCall("ScheduleExperiment", grpcClient.ScheduleExperimentAsync, grpcClient.ScheduleExperiment, effectiveSettings.ScheduleExperimentSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callScheduleExperiment); - Modify_ScheduleExperimentApiCall(ref _callScheduleExperiment); - _callPromoteExperiment = clientHelper.BuildApiCall("PromoteExperiment", grpcClient.PromoteExperimentAsync, grpcClient.PromoteExperiment, effectiveSettings.PromoteExperimentSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callPromoteExperiment); - Modify_PromoteExperimentApiCall(ref _callPromoteExperiment); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateExperimentsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_EndExperimentApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ListExperimentAsyncErrorsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GraduateExperimentApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_ScheduleExperimentApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_PromoteExperimentApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ExperimentService.ExperimentServiceClient grpcClient, ExperimentServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ExperimentService client - public override ExperimentService.ExperimentServiceClient GrpcClient { get; } - - partial void Modify_MutateExperimentsRequest(ref MutateExperimentsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_EndExperimentRequest(ref EndExperimentRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ListExperimentAsyncErrorsRequest(ref ListExperimentAsyncErrorsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GraduateExperimentRequest(ref GraduateExperimentRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_ScheduleExperimentRequest(ref ScheduleExperimentRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_PromoteExperimentRequest(ref PromoteExperimentRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateExperimentsResponse MutateExperiments(MutateExperimentsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateExperimentsRequest(ref request, ref callSettings); - return _callMutateExperiments.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateExperimentsAsync(MutateExperimentsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateExperimentsRequest(ref request, ref callSettings); - return _callMutateExperiments.Async(request, callSettings); - } - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override void EndExperiment(EndExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_EndExperimentRequest(ref request, ref callSettings); - _callEndExperiment.Sync(request, callSettings); - } - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task EndExperimentAsync(EndExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_EndExperimentRequest(ref request, ref callSettings); - return _callEndExperiment.Async(request, callSettings); - } - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable ListExperimentAsyncErrors(ListExperimentAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListExperimentAsyncErrorsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callListExperimentAsyncErrors, request, callSettings); - } - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable ListExperimentAsyncErrorsAsync(ListExperimentAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListExperimentAsyncErrorsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callListExperimentAsyncErrors, request, callSettings); - } - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override void GraduateExperiment(GraduateExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GraduateExperimentRequest(ref request, ref callSettings); - _callGraduateExperiment.Sync(request, callSettings); - } - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GraduateExperimentAsync(GraduateExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GraduateExperimentRequest(ref request, ref callSettings); - return _callGraduateExperiment.Async(request, callSettings); - } - - /// The long-running operations client for ScheduleExperiment. - public override lro::OperationsClient ScheduleExperimentOperationsClient { get; } - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override lro::Operation ScheduleExperiment(ScheduleExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ScheduleExperimentRequest(ref request, ref callSettings); - return new lro::Operation(_callScheduleExperiment.Sync(request, callSettings), ScheduleExperimentOperationsClient); - } - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override async stt::Task> ScheduleExperimentAsync(ScheduleExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ScheduleExperimentRequest(ref request, ref callSettings); - return new lro::Operation(await _callScheduleExperiment.Async(request, callSettings).ConfigureAwait(false), ScheduleExperimentOperationsClient); - } - - /// The long-running operations client for PromoteExperiment. - public override lro::OperationsClient PromoteExperimentOperationsClient { get; } - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override lro::Operation PromoteExperiment(PromoteExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_PromoteExperimentRequest(ref request, ref callSettings); - return new lro::Operation(_callPromoteExperiment.Sync(request, callSettings), PromoteExperimentOperationsClient); - } - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override async stt::Task> PromoteExperimentAsync(PromoteExperimentRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_PromoteExperimentRequest(ref request, ref callSettings); - return new lro::Operation(await _callPromoteExperiment.Async(request, callSettings).ConfigureAwait(false), PromoteExperimentOperationsClient); - } - } - - public partial class ListExperimentAsyncErrorsRequest : gaxgrpc::IPageRequest - { - } - - public partial class ListExperimentAsyncErrorsResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Errors.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } - - public static partial class ExperimentService - { - public partial class ExperimentServiceClient - { - /// - /// Creates a new instance of using the same call invoker as - /// this client. - /// - /// A new Operations client for the same target as this client. - public virtual lro::Operations.OperationsClient CreateOperationsClient() => - new lro::Operations.OperationsClient(CallInvoker); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentServiceGrpc.g.cs deleted file mode 100755 index 67e190772..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentServiceGrpc.g.cs +++ /dev/null @@ -1,963 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/experiment_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage experiments. - /// - public static partial class ExperimentService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ExperimentService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateExperimentsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateExperimentsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_EndExperimentRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_protobuf_Empty = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Protobuf.WellKnownTypes.Empty.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListExperimentAsyncErrorsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListExperimentAsyncErrorsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GraduateExperimentRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ScheduleExperimentRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_longrunning_Operation = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.LongRunning.Operation.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_PromoteExperimentRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateExperiments = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateExperiments", - __Marshaller_google_ads_googleads_v12_services_MutateExperimentsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateExperimentsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_EndExperiment = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "EndExperiment", - __Marshaller_google_ads_googleads_v12_services_EndExperimentRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListExperimentAsyncErrors = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListExperimentAsyncErrors", - __Marshaller_google_ads_googleads_v12_services_ListExperimentAsyncErrorsRequest, - __Marshaller_google_ads_googleads_v12_services_ListExperimentAsyncErrorsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GraduateExperiment = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GraduateExperiment", - __Marshaller_google_ads_googleads_v12_services_GraduateExperimentRequest, - __Marshaller_google_protobuf_Empty); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ScheduleExperiment = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ScheduleExperiment", - __Marshaller_google_ads_googleads_v12_services_ScheduleExperimentRequest, - __Marshaller_google_longrunning_Operation); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_PromoteExperiment = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "PromoteExperiment", - __Marshaller_google_ads_googleads_v12_services_PromoteExperimentRequest, - __Marshaller_google_longrunning_Operation); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ExperimentService - [grpc::BindServiceMethod(typeof(ExperimentService), "BindService")] - public abstract partial class ExperimentServiceBase - { - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateExperiments(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task EndExperiment(global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListExperimentAsyncErrors(global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GraduateExperiment(global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ScheduleExperiment(global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task PromoteExperiment(global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ExperimentService - public partial class ExperimentServiceClient : grpc::ClientBase - { - /// Creates a new client for ExperimentService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ExperimentServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ExperimentService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ExperimentServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ExperimentServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ExperimentServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsResponse MutateExperiments(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateExperiments(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsResponse MutateExperiments(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateExperiments, null, options, request); - } - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateExperimentsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateExperimentsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes experiments. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateExperimentsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateExperimentsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateExperiments, null, options, request); - } - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty EndExperiment(global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return EndExperiment(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty EndExperiment(global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_EndExperiment, null, options, request); - } - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall EndExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return EndExperimentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Immediately ends an experiment, changing the experiment's scheduled - /// end date and without waiting for end of day. End date is updated to be the - /// time of the request. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall EndExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.EndExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_EndExperiment, null, options, request); - } - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsResponse ListExperimentAsyncErrors(global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListExperimentAsyncErrors(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsResponse ListExperimentAsyncErrors(global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListExperimentAsyncErrors, null, options, request); - } - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListExperimentAsyncErrorsAsync(global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListExperimentAsyncErrorsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all errors that occurred during the last Experiment update (either - /// scheduling or promotion). - /// Supports standard list paging. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListExperimentAsyncErrorsAsync(global::Google.Ads.GoogleAds.V12.Services.ListExperimentAsyncErrorsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListExperimentAsyncErrors, null, options, request); - } - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty GraduateExperiment(global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GraduateExperiment(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Protobuf.WellKnownTypes.Empty GraduateExperiment(global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GraduateExperiment, null, options, request); - } - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GraduateExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GraduateExperimentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Graduates an experiment to a full campaign. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GraduateExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.GraduateExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GraduateExperiment, null, options, request); - } - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation ScheduleExperiment(global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ScheduleExperiment(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation ScheduleExperiment(global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ScheduleExperiment, null, options, request); - } - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ScheduleExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ScheduleExperimentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Schedule an experiment. The in design campaign - /// will be converted into a real campaign (called the experiment campaign) - /// that will begin serving ads if successfully created. - /// - /// The experiment is scheduled immediately with status INITIALIZING. - /// This method returns a long running operation that tracks the forking of the - /// in design campaign. If the forking fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ScheduleExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.ScheduleExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ScheduleExperiment, null, options, request); - } - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation PromoteExperiment(global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PromoteExperiment(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.LongRunning.Operation PromoteExperiment(global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_PromoteExperiment, null, options, request); - } - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PromoteExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return PromoteExperimentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Promotes the trial campaign thus applying changes in the trial campaign - /// to the base campaign. - /// This method returns a long running operation that tracks the promotion of - /// the experiment campaign. If it fails, a list of errors can be retrieved - /// using the ListExperimentAsyncErrors method. The operation's - /// metadata will be a string containing the resource name of the created - /// experiment. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ExperimentError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall PromoteExperimentAsync(global::Google.Ads.GoogleAds.V12.Services.PromoteExperimentRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_PromoteExperiment, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ExperimentServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ExperimentServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ExperimentServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateExperiments, serviceImpl.MutateExperiments) - .AddMethod(__Method_EndExperiment, serviceImpl.EndExperiment) - .AddMethod(__Method_ListExperimentAsyncErrors, serviceImpl.ListExperimentAsyncErrors) - .AddMethod(__Method_GraduateExperiment, serviceImpl.GraduateExperiment) - .AddMethod(__Method_ScheduleExperiment, serviceImpl.ScheduleExperiment) - .AddMethod(__Method_PromoteExperiment, serviceImpl.PromoteExperiment).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ExperimentServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateExperiments, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateExperiments)); - serviceBinder.AddMethod(__Method_EndExperiment, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EndExperiment)); - serviceBinder.AddMethod(__Method_ListExperimentAsyncErrors, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListExperimentAsyncErrors)); - serviceBinder.AddMethod(__Method_GraduateExperiment, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GraduateExperiment)); - serviceBinder.AddMethod(__Method_ScheduleExperiment, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ScheduleExperiment)); - serviceBinder.AddMethod(__Method_PromoteExperiment, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PromoteExperiment)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentServiceResourceNames.g.cs deleted file mode 100755 index ba2389eca..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentServiceResourceNames.g.cs +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class ExperimentOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName RemoveAsExperimentName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::ExperimentName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateExperimentResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ResourceNameAsExperimentName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExperimentName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class EndExperimentRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ExperimentAsExperimentName - { - get => string.IsNullOrEmpty(Experiment) ? null : gagvr::ExperimentName.Parse(Experiment, allowUnparsed: true); - set => Experiment = value?.ToString() ?? ""; - } - } - - public partial class ListExperimentAsyncErrorsRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ResourceNameAsExperimentName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExperimentName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class GraduateExperimentRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ExperimentAsExperimentName - { - get => string.IsNullOrEmpty(Experiment) ? null : gagvr::ExperimentName.Parse(Experiment, allowUnparsed: true); - set => Experiment = value?.ToString() ?? ""; - } - } - - public partial class CampaignBudgetMapping - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignName ExperimentCampaignAsCampaignName - { - get => string.IsNullOrEmpty(ExperimentCampaign) ? null : gagvr::CampaignName.Parse(ExperimentCampaign, allowUnparsed: true); - set => ExperimentCampaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::CampaignBudgetName CampaignBudgetAsCampaignBudgetName - { - get => string.IsNullOrEmpty(CampaignBudget) ? null : gagvr::CampaignBudgetName.Parse(CampaignBudget, allowUnparsed: true); - set => CampaignBudget = value?.ToString() ?? ""; - } - } - - public partial class ScheduleExperimentRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ResourceNameAsExperimentName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExperimentName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class ScheduleExperimentMetadata - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ExperimentAsExperimentName - { - get => string.IsNullOrEmpty(Experiment) ? null : gagvr::ExperimentName.Parse(Experiment, allowUnparsed: true); - set => Experiment = value?.ToString() ?? ""; - } - } - - public partial class PromoteExperimentRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ResourceNameAsExperimentName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExperimentName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class PromoteExperimentMetadata - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExperimentName ExperimentAsExperimentName - { - get => string.IsNullOrEmpty(Experiment) ? null : gagvr::ExperimentName.Parse(Experiment, allowUnparsed: true); - set => Experiment = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentStatus.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentStatus.g.cs deleted file mode 100755 index 20e084ed2..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentStatus.g.cs +++ /dev/null @@ -1,260 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/experiment_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/experiment_status.proto - public static partial class ExperimentStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/experiment_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZXhwZXJpbWVudF9z", - "dGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKm", - "AQoURXhwZXJpbWVudFN0YXR1c0VudW0ijQEKEEV4cGVyaW1lbnRTdGF0dXMS", - "DwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHRU5BQkxFRBACEgsK", - "B1JFTU9WRUQQAxIKCgZIQUxURUQQBBIMCghQUk9NT1RFRBAFEgkKBVNFVFVQ", - "EAYSDQoJSU5JVElBVEVEEAcSDQoJR1JBRFVBVEVEEAhC7wEKImNvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCFUV4cGVyaW1lbnRTdGF0dXNQ", - "cm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpF", - "bnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusEnum.Types.ExperimentStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the experiment status. - /// - public sealed partial class ExperimentStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ExperimentStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentStatusEnum(ExperimentStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentStatusEnum Clone() { - return new ExperimentStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExperimentStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The status of the experiment. - /// - public enum ExperimentStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The experiment is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The experiment has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - /// - /// The experiment has been halted. - /// This status can be set from ENABLED status through API. - /// - [pbr::OriginalName("HALTED")] Halted = 4, - /// - /// The experiment will be promoted out of experimental status. - /// - [pbr::OriginalName("PROMOTED")] Promoted = 5, - /// - /// Initial status of the experiment. - /// - [pbr::OriginalName("SETUP")] Setup = 6, - /// - /// The experiment's campaigns are pending materialization. - /// This status can be set from SETUP status through API. - /// - [pbr::OriginalName("INITIATED")] Initiated = 7, - /// - /// The experiment has been graduated. - /// - [pbr::OriginalName("GRADUATED")] Graduated = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExperimentType.g.cs b/Google.Ads.GoogleAds/src/V12/ExperimentType.g.cs deleted file mode 100755 index 1181244d4..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExperimentType.g.cs +++ /dev/null @@ -1,273 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/experiment_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/experiment_type.proto - public static partial class ExperimentTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/experiment_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExperimentTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZXhwZXJpbWVudF90", - "eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiywIK", - "EkV4cGVyaW1lbnRUeXBlRW51bSK0AgoORXhwZXJpbWVudFR5cGUSDwoLVU5T", - "UEVDSUZJRUQQABILCgdVTktOT1dOEAESGQoVRElTUExBWV9BTkRfVklERU9f", - "MzYwEAISEAoMQURfVkFSSUFUSU9OEAMSEgoOWU9VVFVCRV9DVVNUT00QBRIS", - "Cg5ESVNQTEFZX0NVU1RPTRAGEhEKDVNFQVJDSF9DVVNUT00QBxImCiJESVNQ", - "TEFZX0FVVE9NQVRFRF9CSURESU5HX1NUUkFURUdZEAgSJQohU0VBUkNIX0FV", - "VE9NQVRFRF9CSURESU5HX1NUUkFURUdZEAkSJwojU0hPUFBJTkdfQVVUT01B", - "VEVEX0JJRERJTkdfU1RSQVRFR1kQChISCg5TTUFSVF9NQVRDSElORxALEhAK", - "DEhPVEVMX0NVU1RPTRAMQu0BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQhNFeHBlcmltZW50VHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeEnum.Types.ExperimentType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of experiment. - /// - public sealed partial class ExperimentTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExperimentTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ExperimentTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentTypeEnum(ExperimentTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExperimentTypeEnum Clone() { - return new ExperimentTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExperimentTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExperimentTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExperimentTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExperimentTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of the experiment. - /// - public enum ExperimentType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// This is a DISPLAY_AND_VIDEO_360 experiment. - /// - [pbr::OriginalName("DISPLAY_AND_VIDEO_360")] DisplayAndVideo360 = 2, - /// - /// This is an ad variation experiment. - /// - [pbr::OriginalName("AD_VARIATION")] AdVariation = 3, - /// - /// A custom experiment consisting of Video campaigns. - /// - [pbr::OriginalName("YOUTUBE_CUSTOM")] YoutubeCustom = 5, - /// - /// A custom experiment consisting of display campaigns. - /// - [pbr::OriginalName("DISPLAY_CUSTOM")] DisplayCustom = 6, - /// - /// A custom experiment consisting of search campaigns. - /// - [pbr::OriginalName("SEARCH_CUSTOM")] SearchCustom = 7, - /// - /// An experiment that compares bidding strategies for display campaigns. - /// - [pbr::OriginalName("DISPLAY_AUTOMATED_BIDDING_STRATEGY")] DisplayAutomatedBiddingStrategy = 8, - /// - /// An experiment that compares bidding strategies for search campaigns." - /// - [pbr::OriginalName("SEARCH_AUTOMATED_BIDDING_STRATEGY")] SearchAutomatedBiddingStrategy = 9, - /// - /// An experiment that compares bidding strategies for shopping campaigns. - /// - [pbr::OriginalName("SHOPPING_AUTOMATED_BIDDING_STRATEGY")] ShoppingAutomatedBiddingStrategy = 10, - /// - /// DEPRECATED. A smart matching experiment with search campaigns. - /// - [pbr::OriginalName("SMART_MATCHING")] SmartMatching = 11, - /// - /// A custom experiment consisting of hotel campaigns. - /// - [pbr::OriginalName("HOTEL_CUSTOM")] HotelCustom = 12, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExplorerAutoOptimizerSetting.g.cs b/Google.Ads.GoogleAds/src/V12/ExplorerAutoOptimizerSetting.g.cs deleted file mode 100755 index c88acce4f..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExplorerAutoOptimizerSetting.g.cs +++ /dev/null @@ -1,263 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/explorer_auto_optimizer_setting.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/explorer_auto_optimizer_setting.proto - public static partial class ExplorerAutoOptimizerSettingReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/explorer_auto_optimizer_setting.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExplorerAutoOptimizerSettingReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2V4cGxvcmVyX2F1", - "dG9fb3B0aW1pemVyX3NldHRpbmcucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24iPgocRXhwbG9yZXJBdXRvT3B0aW1pemVyU2V0dGlu", - "ZxITCgZvcHRfaW4YAiABKAhIAIgBAUIJCgdfb3B0X2luQoECCiNjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbkIhRXhwbG9yZXJBdXRvT3B0", - "aW1pemVyU2V0dGluZ1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uO2NvbW1v", - "bqICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5Db21tb27KAh9H", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcQ29tbW9u6gIjR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpDb21tb25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSetting), global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSetting.Parser, new[]{ "OptIn" }, new[]{ "OptIn" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Settings for the Display Campaign Optimizer, initially named "Explorer". - /// Learn more about - /// [automatic targeting](https://support.google.com/google-ads/answer/190596). - /// - public sealed partial class ExplorerAutoOptimizerSetting : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExplorerAutoOptimizerSetting()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExplorerAutoOptimizerSettingReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExplorerAutoOptimizerSetting() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExplorerAutoOptimizerSetting(ExplorerAutoOptimizerSetting other) : this() { - _hasBits0 = other._hasBits0; - optIn_ = other.optIn_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExplorerAutoOptimizerSetting Clone() { - return new ExplorerAutoOptimizerSetting(this); - } - - /// Field number for the "opt_in" field. - public const int OptInFieldNumber = 2; - private bool optIn_; - /// - /// Indicates whether the optimizer is turned on. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool OptIn { - get { if ((_hasBits0 & 1) != 0) { return optIn_; } else { return false; } } - set { - _hasBits0 |= 1; - optIn_ = value; - } - } - /// Gets whether the "opt_in" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOptIn { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "opt_in" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOptIn() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExplorerAutoOptimizerSetting); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExplorerAutoOptimizerSetting other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OptIn != other.OptIn) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasOptIn) hash ^= OptIn.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasOptIn) { - output.WriteRawTag(16); - output.WriteBool(OptIn); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasOptIn) { - output.WriteRawTag(16); - output.WriteBool(OptIn); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasOptIn) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExplorerAutoOptimizerSetting other) { - if (other == null) { - return; - } - if (other.HasOptIn) { - OptIn = other.OptIn; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - OptIn = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - OptIn = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItem.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionFeedItem.g.cs deleted file mode 100755 index 7bdabb532..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItem.g.cs +++ /dev/null @@ -1,1535 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/extension_feed_item.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/extension_feed_item.proto - public static partial class ExtensionFeedItemReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/extension_feed_item.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExtensionFeedItemReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2V4dGVuc2lv", - "bl9mZWVkX2l0ZW0ucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3Jp", - "dGVyaWEucHJvdG8aMGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24v", - "ZXh0ZW5zaW9ucy5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL2V4dGVuc2lvbl90eXBlLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvZmVlZF9pdGVtX3N0YXR1cy5wcm90bxo8Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL2ZlZWRfaXRlbV90YXJnZXRfZGV2aWNl", - "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvIo8QChFFeHRlbnNpb25GZWVkSXRlbRJJ", - "Cg1yZXNvdXJjZV9uYW1lGAEgASgJQjLgQQX6QSwKKmdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9FeHRlbnNpb25GZWVkSXRlbRIUCgJpZBgZIAEoA0ID4EED", - "SAKIAQESXAoOZXh0ZW5zaW9uX3R5cGUYDSABKA4yPy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuRXh0ZW5zaW9uVHlwZUVudW0uRXh0ZW5zaW9u", - "VHlwZUID4EEDEhwKD3N0YXJ0X2RhdGVfdGltZRgaIAEoCUgDiAEBEhoKDWVu", - "ZF9kYXRlX3RpbWUYGyABKAlIBIgBARJFCgxhZF9zY2hlZHVsZXMYECADKAsy", - "Ly5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFkU2NoZWR1bGVJ", - "bmZvEl0KBmRldmljZRgRIAEoDjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcy5GZWVkSXRlbVRhcmdldERldmljZUVudW0uRmVlZEl0ZW1UYXJn", - "ZXREZXZpY2USWgocdGFyZ2V0ZWRfZ2VvX3RhcmdldF9jb25zdGFudBgeIAEo", - "CUIv+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vR2VvVGFyZ2V0Q29u", - "c3RhbnRIBYgBARJGChB0YXJnZXRlZF9rZXl3b3JkGBYgASgLMiwuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5LZXl3b3JkSW5mbxJWCgZzdGF0", - "dXMYBCABKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRmVl", - "ZEl0ZW1TdGF0dXNFbnVtLkZlZWRJdGVtU3RhdHVzQgPgQQMSTwoSc2l0ZWxp", - "bmtfZmVlZF9pdGVtGAIgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmNvbW1vbi5TaXRlbGlua0ZlZWRJdGVtSAASYgocc3RydWN0dXJlZF9zbmlw", - "cGV0X2ZlZWRfaXRlbRgDIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uU3RydWN0dXJlZFNuaXBwZXRGZWVkSXRlbUgAEkUKDWFwcF9m", - "ZWVkX2l0ZW0YByABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLkFwcEZlZWRJdGVtSAASRwoOY2FsbF9mZWVkX2l0ZW0YCCABKAsyLS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkNhbGxGZWVkSXRlbUgA", - "Ek0KEWNhbGxvdXRfZmVlZF9pdGVtGAkgASgLMjAuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5DYWxsb3V0RmVlZEl0ZW1IABJWChZ0ZXh0X21l", - "c3NhZ2VfZmVlZF9pdGVtGAogASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5UZXh0TWVzc2FnZUZlZWRJdGVtSAASSQoPcHJpY2VfZmVl", - "ZF9pdGVtGAsgASgLMi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5QcmljZUZlZWRJdGVtSAASUQoTcHJvbW90aW9uX2ZlZWRfaXRlbRgMIAEo", - "CzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUHJvbW90aW9u", - "RmVlZEl0ZW1IABJUChJsb2NhdGlvbl9mZWVkX2l0ZW0YDiABKAsyMS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkxvY2F0aW9uRmVlZEl0ZW1C", - "A+BBA0gAEmcKHGFmZmlsaWF0ZV9sb2NhdGlvbl9mZWVkX2l0ZW0YDyABKAsy", - "Oi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkFmZmlsaWF0ZUxv", - "Y2F0aW9uRmVlZEl0ZW1CA+BBA0gAElgKF2hvdGVsX2NhbGxvdXRfZmVlZF9p", - "dGVtGBcgASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5I", - "b3RlbENhbGxvdXRGZWVkSXRlbUgAEk4KD2ltYWdlX2ZlZWRfaXRlbRgfIAEo", - "CzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uSW1hZ2VGZWVk", - "SXRlbUID4EEFSAASQwoRdGFyZ2V0ZWRfY2FtcGFpZ24YHCABKAlCJvpBIwoh", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduSAESQgoRdGFyZ2V0", - "ZWRfYWRfZ3JvdXAYHSABKAlCJfpBIgogZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0FkR3JvdXBIATpq6kFnCipnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "RXh0ZW5zaW9uRmVlZEl0ZW0SOWN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2V4", - "dGVuc2lvbkZlZWRJdGVtcy97ZmVlZF9pdGVtX2lkfUILCglleHRlbnNpb25C", - "HAoac2VydmluZ19yZXNvdXJjZV90YXJnZXRpbmdCBQoDX2lkQhIKEF9zdGFy", - "dF9kYXRlX3RpbWVCEAoOX2VuZF9kYXRlX3RpbWVCHwodX3RhcmdldGVkX2dl", - "b190YXJnZXRfY29uc3RhbnRCiAIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzQhZFeHRlbnNpb25GZWVkSXRlbVByb3RvUAFaS2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem), global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem.Parser, new[]{ "ResourceName", "Id", "ExtensionType", "StartDateTime", "EndDateTime", "AdSchedules", "Device", "TargetedGeoTargetConstant", "TargetedKeyword", "Status", "SitelinkFeedItem", "StructuredSnippetFeedItem", "AppFeedItem", "CallFeedItem", "CalloutFeedItem", "TextMessageFeedItem", "PriceFeedItem", "PromotionFeedItem", "LocationFeedItem", "AffiliateLocationFeedItem", "HotelCalloutFeedItem", "ImageFeedItem", "TargetedCampaign", "TargetedAdGroup" }, new[]{ "Extension", "ServingResourceTargeting", "Id", "StartDateTime", "EndDateTime", "TargetedGeoTargetConstant" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An extension feed item. - /// - public sealed partial class ExtensionFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtensionFeedItem()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItemReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItem(ExtensionFeedItem other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - extensionType_ = other.extensionType_; - startDateTime_ = other.startDateTime_; - endDateTime_ = other.endDateTime_; - adSchedules_ = other.adSchedules_.Clone(); - device_ = other.device_; - targetedGeoTargetConstant_ = other.targetedGeoTargetConstant_; - targetedKeyword_ = other.targetedKeyword_ != null ? other.targetedKeyword_.Clone() : null; - status_ = other.status_; - switch (other.ExtensionCase) { - case ExtensionOneofCase.SitelinkFeedItem: - SitelinkFeedItem = other.SitelinkFeedItem.Clone(); - break; - case ExtensionOneofCase.StructuredSnippetFeedItem: - StructuredSnippetFeedItem = other.StructuredSnippetFeedItem.Clone(); - break; - case ExtensionOneofCase.AppFeedItem: - AppFeedItem = other.AppFeedItem.Clone(); - break; - case ExtensionOneofCase.CallFeedItem: - CallFeedItem = other.CallFeedItem.Clone(); - break; - case ExtensionOneofCase.CalloutFeedItem: - CalloutFeedItem = other.CalloutFeedItem.Clone(); - break; - case ExtensionOneofCase.TextMessageFeedItem: - TextMessageFeedItem = other.TextMessageFeedItem.Clone(); - break; - case ExtensionOneofCase.PriceFeedItem: - PriceFeedItem = other.PriceFeedItem.Clone(); - break; - case ExtensionOneofCase.PromotionFeedItem: - PromotionFeedItem = other.PromotionFeedItem.Clone(); - break; - case ExtensionOneofCase.LocationFeedItem: - LocationFeedItem = other.LocationFeedItem.Clone(); - break; - case ExtensionOneofCase.AffiliateLocationFeedItem: - AffiliateLocationFeedItem = other.AffiliateLocationFeedItem.Clone(); - break; - case ExtensionOneofCase.HotelCalloutFeedItem: - HotelCalloutFeedItem = other.HotelCalloutFeedItem.Clone(); - break; - case ExtensionOneofCase.ImageFeedItem: - ImageFeedItem = other.ImageFeedItem.Clone(); - break; - } - - switch (other.ServingResourceTargetingCase) { - case ServingResourceTargetingOneofCase.TargetedCampaign: - TargetedCampaign = other.TargetedCampaign; - break; - case ServingResourceTargetingOneofCase.TargetedAdGroup: - TargetedAdGroup = other.TargetedAdGroup; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItem Clone() { - return new ExtensionFeedItem(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the extension feed item. - /// Extension feed item resource names have the form: - /// - /// `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 25; - private long id_; - /// - /// Output only. The ID of this feed item. Read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "extension_type" field. - public const int ExtensionTypeFieldNumber = 13; - private global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType extensionType_ = global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified; - /// - /// Output only. The extension type of the extension feed item. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType ExtensionType { - get { return extensionType_; } - set { - extensionType_ = value; - } - } - - /// Field number for the "start_date_time" field. - public const int StartDateTimeFieldNumber = 26; - private string startDateTime_; - /// - /// Start time in which this feed item is effective and can begin serving. The - /// time is in the customer's time zone. - /// The format is "YYYY-MM-DD HH:MM:SS". - /// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDateTime { - get { return startDateTime_ ?? ""; } - set { - startDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDateTime { - get { return startDateTime_ != null; } - } - /// Clears the value of the "start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDateTime() { - startDateTime_ = null; - } - - /// Field number for the "end_date_time" field. - public const int EndDateTimeFieldNumber = 27; - private string endDateTime_; - /// - /// End time in which this feed item is no longer effective and will stop - /// serving. The time is in the customer's time zone. - /// The format is "YYYY-MM-DD HH:MM:SS". - /// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDateTime { - get { return endDateTime_ ?? ""; } - set { - endDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDateTime { - get { return endDateTime_ != null; } - } - /// Clears the value of the "end_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDateTime() { - endDateTime_ = null; - } - - /// Field number for the "ad_schedules" field. - public const int AdSchedulesFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_adSchedules_codec - = pb::FieldCodec.ForMessage(130, global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo.Parser); - private readonly pbc::RepeatedField adSchedules_ = new pbc::RepeatedField(); - /// - /// List of non-overlapping schedules specifying all time intervals - /// for which the feed item may serve. There can be a maximum of 6 schedules - /// per day. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdSchedules { - get { return adSchedules_; } - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 17; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice device_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice.Unspecified; - /// - /// The targeted device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice Device { - get { return device_; } - set { - device_ = value; - } - } - - /// Field number for the "targeted_geo_target_constant" field. - public const int TargetedGeoTargetConstantFieldNumber = 30; - private string targetedGeoTargetConstant_; - /// - /// The targeted geo target constant. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetedGeoTargetConstant { - get { return targetedGeoTargetConstant_ ?? ""; } - set { - targetedGeoTargetConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "targeted_geo_target_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetedGeoTargetConstant { - get { return targetedGeoTargetConstant_ != null; } - } - /// Clears the value of the "targeted_geo_target_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetedGeoTargetConstant() { - targetedGeoTargetConstant_ = null; - } - - /// Field number for the "targeted_keyword" field. - public const int TargetedKeywordFieldNumber = 22; - private global::Google.Ads.GoogleAds.V12.Common.KeywordInfo targetedKeyword_; - /// - /// The targeted keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordInfo TargetedKeyword { - get { return targetedKeyword_; } - set { - targetedKeyword_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified; - /// - /// Output only. Status of the feed item. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "sitelink_feed_item" field. - public const int SitelinkFeedItemFieldNumber = 2; - /// - /// Sitelink extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem SitelinkFeedItem { - get { return extensionCase_ == ExtensionOneofCase.SitelinkFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.SitelinkFeedItem; - } - } - - /// Field number for the "structured_snippet_feed_item" field. - public const int StructuredSnippetFeedItemFieldNumber = 3; - /// - /// Structured snippet extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem StructuredSnippetFeedItem { - get { return extensionCase_ == ExtensionOneofCase.StructuredSnippetFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.StructuredSnippetFeedItem; - } - } - - /// Field number for the "app_feed_item" field. - public const int AppFeedItemFieldNumber = 7; - /// - /// App extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AppFeedItem AppFeedItem { - get { return extensionCase_ == ExtensionOneofCase.AppFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.AppFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.AppFeedItem; - } - } - - /// Field number for the "call_feed_item" field. - public const int CallFeedItemFieldNumber = 8; - /// - /// Call extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CallFeedItem CallFeedItem { - get { return extensionCase_ == ExtensionOneofCase.CallFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.CallFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.CallFeedItem; - } - } - - /// Field number for the "callout_feed_item" field. - public const int CalloutFeedItemFieldNumber = 9; - /// - /// Callout extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem CalloutFeedItem { - get { return extensionCase_ == ExtensionOneofCase.CalloutFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.CalloutFeedItem; - } - } - - /// Field number for the "text_message_feed_item" field. - public const int TextMessageFeedItemFieldNumber = 10; - /// - /// Text message extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem TextMessageFeedItem { - get { return extensionCase_ == ExtensionOneofCase.TextMessageFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.TextMessageFeedItem; - } - } - - /// Field number for the "price_feed_item" field. - public const int PriceFeedItemFieldNumber = 11; - /// - /// Price extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem PriceFeedItem { - get { return extensionCase_ == ExtensionOneofCase.PriceFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.PriceFeedItem; - } - } - - /// Field number for the "promotion_feed_item" field. - public const int PromotionFeedItemFieldNumber = 12; - /// - /// Promotion extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem PromotionFeedItem { - get { return extensionCase_ == ExtensionOneofCase.PromotionFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.PromotionFeedItem; - } - } - - /// Field number for the "location_feed_item" field. - public const int LocationFeedItemFieldNumber = 14; - /// - /// Output only. Location extension. Locations are synced from a Business Profile into a - /// feed. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem LocationFeedItem { - get { return extensionCase_ == ExtensionOneofCase.LocationFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.LocationFeedItem; - } - } - - /// Field number for the "affiliate_location_feed_item" field. - public const int AffiliateLocationFeedItemFieldNumber = 15; - /// - /// Output only. Affiliate location extension. Feed locations are populated by Google Ads - /// based on a chain ID. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem AffiliateLocationFeedItem { - get { return extensionCase_ == ExtensionOneofCase.AffiliateLocationFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.AffiliateLocationFeedItem; - } - } - - /// Field number for the "hotel_callout_feed_item" field. - public const int HotelCalloutFeedItemFieldNumber = 23; - /// - /// Hotel Callout extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem HotelCalloutFeedItem { - get { return extensionCase_ == ExtensionOneofCase.HotelCalloutFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.HotelCalloutFeedItem; - } - } - - /// Field number for the "image_feed_item" field. - public const int ImageFeedItemFieldNumber = 31; - /// - /// Immutable. Advertiser provided image extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem ImageFeedItem { - get { return extensionCase_ == ExtensionOneofCase.ImageFeedItem ? (global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem) extension_ : null; } - set { - extension_ = value; - extensionCase_ = value == null ? ExtensionOneofCase.None : ExtensionOneofCase.ImageFeedItem; - } - } - - /// Field number for the "targeted_campaign" field. - public const int TargetedCampaignFieldNumber = 28; - /// - /// The targeted campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetedCampaign { - get { return servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedCampaign ? (string) servingResourceTargeting_ : ""; } - set { - servingResourceTargeting_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - servingResourceTargetingCase_ = ServingResourceTargetingOneofCase.TargetedCampaign; - } - } - - /// Field number for the "targeted_ad_group" field. - public const int TargetedAdGroupFieldNumber = 29; - /// - /// The targeted ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetedAdGroup { - get { return servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedAdGroup ? (string) servingResourceTargeting_ : ""; } - set { - servingResourceTargeting_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - servingResourceTargetingCase_ = ServingResourceTargetingOneofCase.TargetedAdGroup; - } - } - - private object extension_; - /// Enum of possible cases for the "extension" oneof. - public enum ExtensionOneofCase { - None = 0, - SitelinkFeedItem = 2, - StructuredSnippetFeedItem = 3, - AppFeedItem = 7, - CallFeedItem = 8, - CalloutFeedItem = 9, - TextMessageFeedItem = 10, - PriceFeedItem = 11, - PromotionFeedItem = 12, - LocationFeedItem = 14, - AffiliateLocationFeedItem = 15, - HotelCalloutFeedItem = 23, - ImageFeedItem = 31, - } - private ExtensionOneofCase extensionCase_ = ExtensionOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionOneofCase ExtensionCase { - get { return extensionCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExtension() { - extensionCase_ = ExtensionOneofCase.None; - extension_ = null; - } - - private object servingResourceTargeting_; - /// Enum of possible cases for the "serving_resource_targeting" oneof. - public enum ServingResourceTargetingOneofCase { - None = 0, - TargetedCampaign = 28, - TargetedAdGroup = 29, - } - private ServingResourceTargetingOneofCase servingResourceTargetingCase_ = ServingResourceTargetingOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ServingResourceTargetingOneofCase ServingResourceTargetingCase { - get { return servingResourceTargetingCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearServingResourceTargeting() { - servingResourceTargetingCase_ = ServingResourceTargetingOneofCase.None; - servingResourceTargeting_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtensionFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtensionFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (ExtensionType != other.ExtensionType) return false; - if (StartDateTime != other.StartDateTime) return false; - if (EndDateTime != other.EndDateTime) return false; - if(!adSchedules_.Equals(other.adSchedules_)) return false; - if (Device != other.Device) return false; - if (TargetedGeoTargetConstant != other.TargetedGeoTargetConstant) return false; - if (!object.Equals(TargetedKeyword, other.TargetedKeyword)) return false; - if (Status != other.Status) return false; - if (!object.Equals(SitelinkFeedItem, other.SitelinkFeedItem)) return false; - if (!object.Equals(StructuredSnippetFeedItem, other.StructuredSnippetFeedItem)) return false; - if (!object.Equals(AppFeedItem, other.AppFeedItem)) return false; - if (!object.Equals(CallFeedItem, other.CallFeedItem)) return false; - if (!object.Equals(CalloutFeedItem, other.CalloutFeedItem)) return false; - if (!object.Equals(TextMessageFeedItem, other.TextMessageFeedItem)) return false; - if (!object.Equals(PriceFeedItem, other.PriceFeedItem)) return false; - if (!object.Equals(PromotionFeedItem, other.PromotionFeedItem)) return false; - if (!object.Equals(LocationFeedItem, other.LocationFeedItem)) return false; - if (!object.Equals(AffiliateLocationFeedItem, other.AffiliateLocationFeedItem)) return false; - if (!object.Equals(HotelCalloutFeedItem, other.HotelCalloutFeedItem)) return false; - if (!object.Equals(ImageFeedItem, other.ImageFeedItem)) return false; - if (TargetedCampaign != other.TargetedCampaign) return false; - if (TargetedAdGroup != other.TargetedAdGroup) return false; - if (ExtensionCase != other.ExtensionCase) return false; - if (ServingResourceTargetingCase != other.ServingResourceTargetingCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) hash ^= ExtensionType.GetHashCode(); - if (HasStartDateTime) hash ^= StartDateTime.GetHashCode(); - if (HasEndDateTime) hash ^= EndDateTime.GetHashCode(); - hash ^= adSchedules_.GetHashCode(); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice.Unspecified) hash ^= Device.GetHashCode(); - if (HasTargetedGeoTargetConstant) hash ^= TargetedGeoTargetConstant.GetHashCode(); - if (targetedKeyword_ != null) hash ^= TargetedKeyword.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) hash ^= Status.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.SitelinkFeedItem) hash ^= SitelinkFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.StructuredSnippetFeedItem) hash ^= StructuredSnippetFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.AppFeedItem) hash ^= AppFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.CallFeedItem) hash ^= CallFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.CalloutFeedItem) hash ^= CalloutFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.TextMessageFeedItem) hash ^= TextMessageFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.PriceFeedItem) hash ^= PriceFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.PromotionFeedItem) hash ^= PromotionFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.LocationFeedItem) hash ^= LocationFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.AffiliateLocationFeedItem) hash ^= AffiliateLocationFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.HotelCalloutFeedItem) hash ^= HotelCalloutFeedItem.GetHashCode(); - if (extensionCase_ == ExtensionOneofCase.ImageFeedItem) hash ^= ImageFeedItem.GetHashCode(); - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedCampaign) hash ^= TargetedCampaign.GetHashCode(); - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedAdGroup) hash ^= TargetedAdGroup.GetHashCode(); - hash ^= (int) extensionCase_; - hash ^= (int) servingResourceTargetingCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (extensionCase_ == ExtensionOneofCase.SitelinkFeedItem) { - output.WriteRawTag(18); - output.WriteMessage(SitelinkFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.StructuredSnippetFeedItem) { - output.WriteRawTag(26); - output.WriteMessage(StructuredSnippetFeedItem); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (extensionCase_ == ExtensionOneofCase.AppFeedItem) { - output.WriteRawTag(58); - output.WriteMessage(AppFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.CallFeedItem) { - output.WriteRawTag(66); - output.WriteMessage(CallFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.CalloutFeedItem) { - output.WriteRawTag(74); - output.WriteMessage(CalloutFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.TextMessageFeedItem) { - output.WriteRawTag(82); - output.WriteMessage(TextMessageFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.PriceFeedItem) { - output.WriteRawTag(90); - output.WriteMessage(PriceFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.PromotionFeedItem) { - output.WriteRawTag(98); - output.WriteMessage(PromotionFeedItem); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) ExtensionType); - } - if (extensionCase_ == ExtensionOneofCase.LocationFeedItem) { - output.WriteRawTag(114); - output.WriteMessage(LocationFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.AffiliateLocationFeedItem) { - output.WriteRawTag(122); - output.WriteMessage(AffiliateLocationFeedItem); - } - adSchedules_.WriteTo(output, _repeated_adSchedules_codec); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) Device); - } - if (targetedKeyword_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(TargetedKeyword); - } - if (extensionCase_ == ExtensionOneofCase.HotelCalloutFeedItem) { - output.WriteRawTag(186, 1); - output.WriteMessage(HotelCalloutFeedItem); - } - if (HasId) { - output.WriteRawTag(200, 1); - output.WriteInt64(Id); - } - if (HasStartDateTime) { - output.WriteRawTag(210, 1); - output.WriteString(StartDateTime); - } - if (HasEndDateTime) { - output.WriteRawTag(218, 1); - output.WriteString(EndDateTime); - } - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedCampaign) { - output.WriteRawTag(226, 1); - output.WriteString(TargetedCampaign); - } - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedAdGroup) { - output.WriteRawTag(234, 1); - output.WriteString(TargetedAdGroup); - } - if (HasTargetedGeoTargetConstant) { - output.WriteRawTag(242, 1); - output.WriteString(TargetedGeoTargetConstant); - } - if (extensionCase_ == ExtensionOneofCase.ImageFeedItem) { - output.WriteRawTag(250, 1); - output.WriteMessage(ImageFeedItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (extensionCase_ == ExtensionOneofCase.SitelinkFeedItem) { - output.WriteRawTag(18); - output.WriteMessage(SitelinkFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.StructuredSnippetFeedItem) { - output.WriteRawTag(26); - output.WriteMessage(StructuredSnippetFeedItem); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Status); - } - if (extensionCase_ == ExtensionOneofCase.AppFeedItem) { - output.WriteRawTag(58); - output.WriteMessage(AppFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.CallFeedItem) { - output.WriteRawTag(66); - output.WriteMessage(CallFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.CalloutFeedItem) { - output.WriteRawTag(74); - output.WriteMessage(CalloutFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.TextMessageFeedItem) { - output.WriteRawTag(82); - output.WriteMessage(TextMessageFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.PriceFeedItem) { - output.WriteRawTag(90); - output.WriteMessage(PriceFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.PromotionFeedItem) { - output.WriteRawTag(98); - output.WriteMessage(PromotionFeedItem); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - output.WriteRawTag(104); - output.WriteEnum((int) ExtensionType); - } - if (extensionCase_ == ExtensionOneofCase.LocationFeedItem) { - output.WriteRawTag(114); - output.WriteMessage(LocationFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.AffiliateLocationFeedItem) { - output.WriteRawTag(122); - output.WriteMessage(AffiliateLocationFeedItem); - } - adSchedules_.WriteTo(ref output, _repeated_adSchedules_codec); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice.Unspecified) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) Device); - } - if (targetedKeyword_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(TargetedKeyword); - } - if (extensionCase_ == ExtensionOneofCase.HotelCalloutFeedItem) { - output.WriteRawTag(186, 1); - output.WriteMessage(HotelCalloutFeedItem); - } - if (HasId) { - output.WriteRawTag(200, 1); - output.WriteInt64(Id); - } - if (HasStartDateTime) { - output.WriteRawTag(210, 1); - output.WriteString(StartDateTime); - } - if (HasEndDateTime) { - output.WriteRawTag(218, 1); - output.WriteString(EndDateTime); - } - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedCampaign) { - output.WriteRawTag(226, 1); - output.WriteString(TargetedCampaign); - } - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedAdGroup) { - output.WriteRawTag(234, 1); - output.WriteString(TargetedAdGroup); - } - if (HasTargetedGeoTargetConstant) { - output.WriteRawTag(242, 1); - output.WriteString(TargetedGeoTargetConstant); - } - if (extensionCase_ == ExtensionOneofCase.ImageFeedItem) { - output.WriteRawTag(250, 1); - output.WriteMessage(ImageFeedItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionType); - } - if (HasStartDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(StartDateTime); - } - if (HasEndDateTime) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(EndDateTime); - } - size += adSchedules_.CalculateSize(_repeated_adSchedules_codec); - if (Device != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice.Unspecified) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Device); - } - if (HasTargetedGeoTargetConstant) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TargetedGeoTargetConstant); - } - if (targetedKeyword_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TargetedKeyword); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (extensionCase_ == ExtensionOneofCase.SitelinkFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SitelinkFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.StructuredSnippetFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructuredSnippetFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.AppFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AppFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.CallFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.CalloutFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CalloutFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.TextMessageFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(TextMessageFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.PriceFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PriceFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.PromotionFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PromotionFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.LocationFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocationFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.AffiliateLocationFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AffiliateLocationFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.HotelCalloutFeedItem) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelCalloutFeedItem); - } - if (extensionCase_ == ExtensionOneofCase.ImageFeedItem) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ImageFeedItem); - } - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedCampaign) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TargetedCampaign); - } - if (servingResourceTargetingCase_ == ServingResourceTargetingOneofCase.TargetedAdGroup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TargetedAdGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtensionFeedItem other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.ExtensionType != global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType.Unspecified) { - ExtensionType = other.ExtensionType; - } - if (other.HasStartDateTime) { - StartDateTime = other.StartDateTime; - } - if (other.HasEndDateTime) { - EndDateTime = other.EndDateTime; - } - adSchedules_.Add(other.adSchedules_); - if (other.Device != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice.Unspecified) { - Device = other.Device; - } - if (other.HasTargetedGeoTargetConstant) { - TargetedGeoTargetConstant = other.TargetedGeoTargetConstant; - } - if (other.targetedKeyword_ != null) { - if (targetedKeyword_ == null) { - TargetedKeyword = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - TargetedKeyword.MergeFrom(other.TargetedKeyword); - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - Status = other.Status; - } - switch (other.ExtensionCase) { - case ExtensionOneofCase.SitelinkFeedItem: - if (SitelinkFeedItem == null) { - SitelinkFeedItem = new global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem(); - } - SitelinkFeedItem.MergeFrom(other.SitelinkFeedItem); - break; - case ExtensionOneofCase.StructuredSnippetFeedItem: - if (StructuredSnippetFeedItem == null) { - StructuredSnippetFeedItem = new global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem(); - } - StructuredSnippetFeedItem.MergeFrom(other.StructuredSnippetFeedItem); - break; - case ExtensionOneofCase.AppFeedItem: - if (AppFeedItem == null) { - AppFeedItem = new global::Google.Ads.GoogleAds.V12.Common.AppFeedItem(); - } - AppFeedItem.MergeFrom(other.AppFeedItem); - break; - case ExtensionOneofCase.CallFeedItem: - if (CallFeedItem == null) { - CallFeedItem = new global::Google.Ads.GoogleAds.V12.Common.CallFeedItem(); - } - CallFeedItem.MergeFrom(other.CallFeedItem); - break; - case ExtensionOneofCase.CalloutFeedItem: - if (CalloutFeedItem == null) { - CalloutFeedItem = new global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem(); - } - CalloutFeedItem.MergeFrom(other.CalloutFeedItem); - break; - case ExtensionOneofCase.TextMessageFeedItem: - if (TextMessageFeedItem == null) { - TextMessageFeedItem = new global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem(); - } - TextMessageFeedItem.MergeFrom(other.TextMessageFeedItem); - break; - case ExtensionOneofCase.PriceFeedItem: - if (PriceFeedItem == null) { - PriceFeedItem = new global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem(); - } - PriceFeedItem.MergeFrom(other.PriceFeedItem); - break; - case ExtensionOneofCase.PromotionFeedItem: - if (PromotionFeedItem == null) { - PromotionFeedItem = new global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem(); - } - PromotionFeedItem.MergeFrom(other.PromotionFeedItem); - break; - case ExtensionOneofCase.LocationFeedItem: - if (LocationFeedItem == null) { - LocationFeedItem = new global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem(); - } - LocationFeedItem.MergeFrom(other.LocationFeedItem); - break; - case ExtensionOneofCase.AffiliateLocationFeedItem: - if (AffiliateLocationFeedItem == null) { - AffiliateLocationFeedItem = new global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem(); - } - AffiliateLocationFeedItem.MergeFrom(other.AffiliateLocationFeedItem); - break; - case ExtensionOneofCase.HotelCalloutFeedItem: - if (HotelCalloutFeedItem == null) { - HotelCalloutFeedItem = new global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem(); - } - HotelCalloutFeedItem.MergeFrom(other.HotelCalloutFeedItem); - break; - case ExtensionOneofCase.ImageFeedItem: - if (ImageFeedItem == null) { - ImageFeedItem = new global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem(); - } - ImageFeedItem.MergeFrom(other.ImageFeedItem); - break; - } - - switch (other.ServingResourceTargetingCase) { - case ServingResourceTargetingOneofCase.TargetedCampaign: - TargetedCampaign = other.TargetedCampaign; - break; - case ServingResourceTargetingOneofCase.TargetedAdGroup: - TargetedAdGroup = other.TargetedAdGroup; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem(); - if (extensionCase_ == ExtensionOneofCase.SitelinkFeedItem) { - subBuilder.MergeFrom(SitelinkFeedItem); - } - input.ReadMessage(subBuilder); - SitelinkFeedItem = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem(); - if (extensionCase_ == ExtensionOneofCase.StructuredSnippetFeedItem) { - subBuilder.MergeFrom(StructuredSnippetFeedItem); - } - input.ReadMessage(subBuilder); - StructuredSnippetFeedItem = subBuilder; - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus) input.ReadEnum(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.AppFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppFeedItem(); - if (extensionCase_ == ExtensionOneofCase.AppFeedItem) { - subBuilder.MergeFrom(AppFeedItem); - } - input.ReadMessage(subBuilder); - AppFeedItem = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.CallFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallFeedItem(); - if (extensionCase_ == ExtensionOneofCase.CallFeedItem) { - subBuilder.MergeFrom(CallFeedItem); - } - input.ReadMessage(subBuilder); - CallFeedItem = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem(); - if (extensionCase_ == ExtensionOneofCase.CalloutFeedItem) { - subBuilder.MergeFrom(CalloutFeedItem); - } - input.ReadMessage(subBuilder); - CalloutFeedItem = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem(); - if (extensionCase_ == ExtensionOneofCase.TextMessageFeedItem) { - subBuilder.MergeFrom(TextMessageFeedItem); - } - input.ReadMessage(subBuilder); - TextMessageFeedItem = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem(); - if (extensionCase_ == ExtensionOneofCase.PriceFeedItem) { - subBuilder.MergeFrom(PriceFeedItem); - } - input.ReadMessage(subBuilder); - PriceFeedItem = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem(); - if (extensionCase_ == ExtensionOneofCase.PromotionFeedItem) { - subBuilder.MergeFrom(PromotionFeedItem); - } - input.ReadMessage(subBuilder); - PromotionFeedItem = subBuilder; - break; - } - case 104: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem(); - if (extensionCase_ == ExtensionOneofCase.LocationFeedItem) { - subBuilder.MergeFrom(LocationFeedItem); - } - input.ReadMessage(subBuilder); - LocationFeedItem = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem(); - if (extensionCase_ == ExtensionOneofCase.AffiliateLocationFeedItem) { - subBuilder.MergeFrom(AffiliateLocationFeedItem); - } - input.ReadMessage(subBuilder); - AffiliateLocationFeedItem = subBuilder; - break; - } - case 130: { - adSchedules_.AddEntriesFrom(input, _repeated_adSchedules_codec); - break; - } - case 136: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice) input.ReadEnum(); - break; - } - case 178: { - if (targetedKeyword_ == null) { - TargetedKeyword = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - input.ReadMessage(TargetedKeyword); - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem(); - if (extensionCase_ == ExtensionOneofCase.HotelCalloutFeedItem) { - subBuilder.MergeFrom(HotelCalloutFeedItem); - } - input.ReadMessage(subBuilder); - HotelCalloutFeedItem = subBuilder; - break; - } - case 200: { - Id = input.ReadInt64(); - break; - } - case 210: { - StartDateTime = input.ReadString(); - break; - } - case 218: { - EndDateTime = input.ReadString(); - break; - } - case 226: { - TargetedCampaign = input.ReadString(); - break; - } - case 234: { - TargetedAdGroup = input.ReadString(); - break; - } - case 242: { - TargetedGeoTargetConstant = input.ReadString(); - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem(); - if (extensionCase_ == ExtensionOneofCase.ImageFeedItem) { - subBuilder.MergeFrom(ImageFeedItem); - } - input.ReadMessage(subBuilder); - ImageFeedItem = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem(); - if (extensionCase_ == ExtensionOneofCase.SitelinkFeedItem) { - subBuilder.MergeFrom(SitelinkFeedItem); - } - input.ReadMessage(subBuilder); - SitelinkFeedItem = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem(); - if (extensionCase_ == ExtensionOneofCase.StructuredSnippetFeedItem) { - subBuilder.MergeFrom(StructuredSnippetFeedItem); - } - input.ReadMessage(subBuilder); - StructuredSnippetFeedItem = subBuilder; - break; - } - case 32: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus) input.ReadEnum(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.AppFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AppFeedItem(); - if (extensionCase_ == ExtensionOneofCase.AppFeedItem) { - subBuilder.MergeFrom(AppFeedItem); - } - input.ReadMessage(subBuilder); - AppFeedItem = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Common.CallFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CallFeedItem(); - if (extensionCase_ == ExtensionOneofCase.CallFeedItem) { - subBuilder.MergeFrom(CallFeedItem); - } - input.ReadMessage(subBuilder); - CallFeedItem = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem(); - if (extensionCase_ == ExtensionOneofCase.CalloutFeedItem) { - subBuilder.MergeFrom(CalloutFeedItem); - } - input.ReadMessage(subBuilder); - CalloutFeedItem = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem(); - if (extensionCase_ == ExtensionOneofCase.TextMessageFeedItem) { - subBuilder.MergeFrom(TextMessageFeedItem); - } - input.ReadMessage(subBuilder); - TextMessageFeedItem = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem(); - if (extensionCase_ == ExtensionOneofCase.PriceFeedItem) { - subBuilder.MergeFrom(PriceFeedItem); - } - input.ReadMessage(subBuilder); - PriceFeedItem = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem(); - if (extensionCase_ == ExtensionOneofCase.PromotionFeedItem) { - subBuilder.MergeFrom(PromotionFeedItem); - } - input.ReadMessage(subBuilder); - PromotionFeedItem = subBuilder; - break; - } - case 104: { - ExtensionType = (global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) input.ReadEnum(); - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem(); - if (extensionCase_ == ExtensionOneofCase.LocationFeedItem) { - subBuilder.MergeFrom(LocationFeedItem); - } - input.ReadMessage(subBuilder); - LocationFeedItem = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem(); - if (extensionCase_ == ExtensionOneofCase.AffiliateLocationFeedItem) { - subBuilder.MergeFrom(AffiliateLocationFeedItem); - } - input.ReadMessage(subBuilder); - AffiliateLocationFeedItem = subBuilder; - break; - } - case 130: { - adSchedules_.AddEntriesFrom(ref input, _repeated_adSchedules_codec); - break; - } - case 136: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice) input.ReadEnum(); - break; - } - case 178: { - if (targetedKeyword_ == null) { - TargetedKeyword = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - input.ReadMessage(TargetedKeyword); - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem(); - if (extensionCase_ == ExtensionOneofCase.HotelCalloutFeedItem) { - subBuilder.MergeFrom(HotelCalloutFeedItem); - } - input.ReadMessage(subBuilder); - HotelCalloutFeedItem = subBuilder; - break; - } - case 200: { - Id = input.ReadInt64(); - break; - } - case 210: { - StartDateTime = input.ReadString(); - break; - } - case 218: { - EndDateTime = input.ReadString(); - break; - } - case 226: { - TargetedCampaign = input.ReadString(); - break; - } - case 234: { - TargetedAdGroup = input.ReadString(); - break; - } - case 242: { - TargetedGeoTargetConstant = input.ReadString(); - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem(); - if (extensionCase_ == ExtensionOneofCase.ImageFeedItem) { - subBuilder.MergeFrom(ImageFeedItem); - } - input.ReadMessage(subBuilder); - ImageFeedItem = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemError.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemError.g.cs deleted file mode 100755 index 848e49866..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemError.g.cs +++ /dev/null @@ -1,462 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/extension_feed_item_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/extension_feed_item_error.proto - public static partial class ExtensionFeedItemErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/extension_feed_item_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExtensionFeedItemErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2V4dGVuc2lvbl9m", - "ZWVkX2l0ZW1fZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnMi9g0KGkV4dGVuc2lvbkZlZWRJdGVtRXJyb3JFbnVtItcNChZF", - "eHRlbnNpb25GZWVkSXRlbUVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5L", - "Tk9XThABEhYKElZBTFVFX09VVF9PRl9SQU5HRRACEhUKEVVSTF9MSVNUX1RP", - "T19MT05HEAMSMgouQ0FOTk9UX0hBVkVfUkVTVFJJQ1RJT05fT05fRU1QVFlf", - "R0VPX1RBUkdFVElORxAEEh4KGkNBTk5PVF9TRVRfV0lUSF9GSU5BTF9VUkxT", - "EAUSIQodQ0FOTk9UX1NFVF9XSVRIT1VUX0ZJTkFMX1VSTFMQBhIYChRJTlZB", - "TElEX1BIT05FX05VTUJFUhAHEioKJlBIT05FX05VTUJFUl9OT1RfU1VQUE9S", - "VEVEX0ZPUl9DT1VOVFJZEAgSLQopQ0FSUklFUl9TUEVDSUZJQ19TSE9SVF9O", - "VU1CRVJfTk9UX0FMTE9XRUQQCRIjCh9QUkVNSVVNX1JBVEVfTlVNQkVSX05P", - "VF9BTExPV0VEEAoSGgoWRElTQUxMT1dFRF9OVU1CRVJfVFlQRRALEigKJElO", - "VkFMSURfRE9NRVNUSUNfUEhPTkVfTlVNQkVSX0ZPUk1BVBAMEiMKH1ZBTklU", - "WV9QSE9ORV9OVU1CRVJfTk9UX0FMTE9XRUQQDRIiCh5JTlZBTElEX0NBTExf", - "Q09OVkVSU0lPTl9BQ1RJT04QDhIuCipDVVNUT01FUl9OT1RfT05fQUxMT1dM", - "SVNUX0ZPUl9DQUxMVFJBQ0tJTkcQLxIqCiZDQUxMVFJBQ0tJTkdfTk9UX1NV", - "UFBPUlRFRF9GT1JfQ09VTlRSWRAQEjAKLENVU1RPTUVSX0NPTlNFTlRfRk9S", - "X0NBTExfUkVDT1JESU5HX1JFUVVJUkVEEBESEgoOSU5WQUxJRF9BUFBfSUQQ", - "EhImCiJRVU9URVNfSU5fUkVWSUVXX0VYVEVOU0lPTl9TTklQUEVUEBMSJwoj", - "SFlQSEVOU19JTl9SRVZJRVdfRVhURU5TSU9OX1NOSVBQRVQQFBImCiJSRVZJ", - "RVdfRVhURU5TSU9OX1NPVVJDRV9JTkVMSUdJQkxFEBUSKAokU09VUkNFX05B", - "TUVfSU5fUkVWSUVXX0VYVEVOU0lPTl9URVhUEBYSHwobSU5DT05TSVNURU5U", - "X0NVUlJFTkNZX0NPREVTEBcSKgomUFJJQ0VfRVhURU5TSU9OX0hBU19EVVBM", - "SUNBVEVEX0hFQURFUlMQGBI0CjBQUklDRV9JVEVNX0hBU19EVVBMSUNBVEVE", - "X0hFQURFUl9BTkRfREVTQ1JJUFRJT04QGRIlCiFQUklDRV9FWFRFTlNJT05f", - "SEFTX1RPT19GRVdfSVRFTVMQGhImCiJQUklDRV9FWFRFTlNJT05fSEFTX1RP", - "T19NQU5ZX0lURU1TEBsSFQoRVU5TVVBQT1JURURfVkFMVUUQHBIqCiZVTlNV", - "UFBPUlRFRF9WQUxVRV9JTl9TRUxFQ1RFRF9MQU5HVUFHRRAdEh0KGUlOVkFM", - "SURfREVWSUNFX1BSRUZFUkVOQ0UQHhIYChRJTlZBTElEX1NDSEVEVUxFX0VO", - "RBAfEioKJkRBVEVfVElNRV9NVVNUX0JFX0lOX0FDQ09VTlRfVElNRV9aT05F", - "ECASGwoXSU5WQUxJRF9TTklQUEVUU19IRUFERVIQIRInCiNDQU5OT1RfT1BF", - "UkFURV9PTl9SRU1PVkVEX0ZFRURfSVRFTRAiEjwKOFBIT05FX05VTUJFUl9O", - "T1RfU1VQUE9SVEVEX1dJVEhfQ0FMTFRSQUNLSU5HX0ZPUl9DT1VOVFJZECMS", - "KAokQ09ORkxJQ1RJTkdfQ0FMTF9DT05WRVJTSU9OX1NFVFRJTkdTECQSGwoX", - "RVhURU5TSU9OX1RZUEVfTUlTTUFUQ0gQJRIeChpFWFRFTlNJT05fU1VCVFlQ", - "RV9SRVFVSVJFRBAmEh4KGkVYVEVOU0lPTl9UWVBFX1VOU1VQUE9SVEVEECcS", - "MQotQ0FOTk9UX09QRVJBVEVfT05fRkVFRF9XSVRIX01VTFRJUExFX01BUFBJ", - "TkdTECgSLgoqQ0FOTk9UX09QRVJBVEVfT05fRkVFRF9XSVRIX0tFWV9BVFRS", - "SUJVVEVTECkSGAoUSU5WQUxJRF9QUklDRV9GT1JNQVQQKhIaChZQUk9NT1RJ", - "T05fSU5WQUxJRF9USU1FECsSJQohVE9PX01BTllfREVDSU1BTF9QTEFDRVNf", - "U1BFQ0lGSUVEECwSJAogQ09OQ1JFVEVfRVhURU5TSU9OX1RZUEVfUkVRVUlS", - "RUQQLRIgChxTQ0hFRFVMRV9FTkRfTk9UX0FGVEVSX1NUQVJUEC5C+wEKI2Nv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhtFeHRlbnNpb25G", - "ZWVkSXRlbUVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv", - "dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3Jz", - "ogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorEnum.Types.ExtensionFeedItemError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible extension feed item error. - /// - public sealed partial class ExtensionFeedItemErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtensionFeedItemErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ExtensionFeedItemErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItemErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItemErrorEnum(ExtensionFeedItemErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItemErrorEnum Clone() { - return new ExtensionFeedItemErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtensionFeedItemErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtensionFeedItemErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtensionFeedItemErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExtensionFeedItemErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible extension feed item errors. - /// - public enum ExtensionFeedItemError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Value is not within the accepted range. - /// - [pbr::OriginalName("VALUE_OUT_OF_RANGE")] ValueOutOfRange = 2, - /// - /// Url list is too long. - /// - [pbr::OriginalName("URL_LIST_TOO_LONG")] UrlListTooLong = 3, - /// - /// Cannot have a geo targeting restriction without having geo targeting. - /// - [pbr::OriginalName("CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING")] CannotHaveRestrictionOnEmptyGeoTargeting = 4, - /// - /// Cannot simultaneously set sitelink field with final urls. - /// - [pbr::OriginalName("CANNOT_SET_WITH_FINAL_URLS")] CannotSetWithFinalUrls = 5, - /// - /// Must set field with final urls. - /// - [pbr::OriginalName("CANNOT_SET_WITHOUT_FINAL_URLS")] CannotSetWithoutFinalUrls = 6, - /// - /// Phone number for a call extension is invalid. - /// - [pbr::OriginalName("INVALID_PHONE_NUMBER")] InvalidPhoneNumber = 7, - /// - /// Phone number for a call extension is not supported for the given country - /// code. - /// - [pbr::OriginalName("PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY")] PhoneNumberNotSupportedForCountry = 8, - /// - /// A carrier specific number in short format is not allowed for call - /// extensions. - /// - [pbr::OriginalName("CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED")] CarrierSpecificShortNumberNotAllowed = 9, - /// - /// Premium rate numbers are not allowed for call extensions. - /// - [pbr::OriginalName("PREMIUM_RATE_NUMBER_NOT_ALLOWED")] PremiumRateNumberNotAllowed = 10, - /// - /// Phone number type for a call extension is not allowed. - /// For example, personal number is not allowed for a call extension in - /// most regions. - /// - [pbr::OriginalName("DISALLOWED_NUMBER_TYPE")] DisallowedNumberType = 11, - /// - /// Phone number for a call extension does not meet domestic format - /// requirements. - /// - [pbr::OriginalName("INVALID_DOMESTIC_PHONE_NUMBER_FORMAT")] InvalidDomesticPhoneNumberFormat = 12, - /// - /// Vanity phone numbers (for example, those including letters) are not - /// allowed for call extensions. - /// - [pbr::OriginalName("VANITY_PHONE_NUMBER_NOT_ALLOWED")] VanityPhoneNumberNotAllowed = 13, - /// - /// Call conversion action provided for a call extension is invalid. - /// - [pbr::OriginalName("INVALID_CALL_CONVERSION_ACTION")] InvalidCallConversionAction = 14, - /// - /// For a call extension, the customer is not on the allow-list for call - /// tracking. - /// - [pbr::OriginalName("CUSTOMER_NOT_ON_ALLOWLIST_FOR_CALLTRACKING")] CustomerNotOnAllowlistForCalltracking = 47, - /// - /// Call tracking is not supported for the given country for a call - /// extension. - /// - [pbr::OriginalName("CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY")] CalltrackingNotSupportedForCountry = 16, - /// - /// Customer hasn't consented for call recording, which is required for - /// creating/updating call feed items. See - /// https://support.google.com/google-ads/answer/7412639. - /// - [pbr::OriginalName("CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED")] CustomerConsentForCallRecordingRequired = 17, - /// - /// App id provided for an app extension is invalid. - /// - [pbr::OriginalName("INVALID_APP_ID")] InvalidAppId = 18, - /// - /// Quotation marks present in the review text for a review extension. - /// - [pbr::OriginalName("QUOTES_IN_REVIEW_EXTENSION_SNIPPET")] QuotesInReviewExtensionSnippet = 19, - /// - /// Hyphen character present in the review text for a review extension. - /// - [pbr::OriginalName("HYPHENS_IN_REVIEW_EXTENSION_SNIPPET")] HyphensInReviewExtensionSnippet = 20, - /// - /// A denylisted review source name or url was provided for a review - /// extension. - /// - [pbr::OriginalName("REVIEW_EXTENSION_SOURCE_INELIGIBLE")] ReviewExtensionSourceIneligible = 21, - /// - /// Review source name should not be found in the review text. - /// - [pbr::OriginalName("SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT")] SourceNameInReviewExtensionText = 22, - /// - /// Inconsistent currency codes. - /// - [pbr::OriginalName("INCONSISTENT_CURRENCY_CODES")] InconsistentCurrencyCodes = 23, - /// - /// Price extension cannot have duplicated headers. - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_DUPLICATED_HEADERS")] PriceExtensionHasDuplicatedHeaders = 24, - /// - /// Price item cannot have duplicated header and description. - /// - [pbr::OriginalName("PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION")] PriceItemHasDuplicatedHeaderAndDescription = 25, - /// - /// Price extension has too few items. - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_TOO_FEW_ITEMS")] PriceExtensionHasTooFewItems = 26, - /// - /// Price extension has too many items. - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_TOO_MANY_ITEMS")] PriceExtensionHasTooManyItems = 27, - /// - /// The input value is not currently supported. - /// - [pbr::OriginalName("UNSUPPORTED_VALUE")] UnsupportedValue = 28, - /// - /// The input value is not currently supported in the selected language of an - /// extension. - /// - [pbr::OriginalName("UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE")] UnsupportedValueInSelectedLanguage = 29, - /// - /// Unknown or unsupported device preference. - /// - [pbr::OriginalName("INVALID_DEVICE_PREFERENCE")] InvalidDevicePreference = 30, - /// - /// Invalid feed item schedule end time (for example, endHour = 24 and - /// endMinute != 0). - /// - [pbr::OriginalName("INVALID_SCHEDULE_END")] InvalidScheduleEnd = 31, - /// - /// Date time zone does not match the account's time zone. - /// - [pbr::OriginalName("DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE")] DateTimeMustBeInAccountTimeZone = 32, - /// - /// Invalid structured snippet header. - /// - [pbr::OriginalName("INVALID_SNIPPETS_HEADER")] InvalidSnippetsHeader = 33, - /// - /// Cannot operate on removed feed item. - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_REMOVED_FEED_ITEM")] CannotOperateOnRemovedFeedItem = 34, - /// - /// Phone number not supported when call tracking enabled for country. - /// - [pbr::OriginalName("PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY")] PhoneNumberNotSupportedWithCalltrackingForCountry = 35, - /// - /// Cannot set call_conversion_action while call_conversion_tracking_enabled - /// is set to true. - /// - [pbr::OriginalName("CONFLICTING_CALL_CONVERSION_SETTINGS")] ConflictingCallConversionSettings = 36, - /// - /// The type of the input extension feed item doesn't match the existing - /// extension feed item. - /// - [pbr::OriginalName("EXTENSION_TYPE_MISMATCH")] ExtensionTypeMismatch = 37, - /// - /// The oneof field extension for example, subtype of extension feed item is - /// required. - /// - [pbr::OriginalName("EXTENSION_SUBTYPE_REQUIRED")] ExtensionSubtypeRequired = 38, - /// - /// The referenced feed item is not mapped to a supported extension type. - /// - [pbr::OriginalName("EXTENSION_TYPE_UNSUPPORTED")] ExtensionTypeUnsupported = 39, - /// - /// Cannot operate on a Feed with more than one active FeedMapping. - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS")] CannotOperateOnFeedWithMultipleMappings = 40, - /// - /// Cannot operate on a Feed that has key attributes. - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES")] CannotOperateOnFeedWithKeyAttributes = 41, - /// - /// Input price is not in a valid format. - /// - [pbr::OriginalName("INVALID_PRICE_FORMAT")] InvalidPriceFormat = 42, - /// - /// The promotion time is invalid. - /// - [pbr::OriginalName("PROMOTION_INVALID_TIME")] PromotionInvalidTime = 43, - /// - /// This field has too many decimal places specified. - /// - [pbr::OriginalName("TOO_MANY_DECIMAL_PLACES_SPECIFIED")] TooManyDecimalPlacesSpecified = 44, - /// - /// Concrete sub type of ExtensionFeedItem is required for this operation. - /// - [pbr::OriginalName("CONCRETE_EXTENSION_TYPE_REQUIRED")] ConcreteExtensionTypeRequired = 45, - /// - /// Feed item schedule end time must be after start time. - /// - [pbr::OriginalName("SCHEDULE_END_NOT_AFTER_START")] ScheduleEndNotAfterStart = 46, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemResourceNames.g.cs deleted file mode 100755 index 071df17c9..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemResourceNames.g.cs +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the ExtensionFeedItem resource. - public sealed partial class ExtensionFeedItemName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/extensionFeedItems/{feed_item_id}. - /// - CustomerFeedItem = 1, - } - - private static gax::PathTemplate s_customerFeedItem = new gax::PathTemplate("customers/{customer_id}/extensionFeedItems/{feed_item_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static ExtensionFeedItemName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new ExtensionFeedItemName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/extensionFeedItems/{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static ExtensionFeedItemName FromCustomerFeedItem(string customerId, string feedItemId) => - new ExtensionFeedItemName(ResourceNameType.CustomerFeedItem, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/extensionFeedItems/{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/extensionFeedItems/{feed_item_id}. - /// - public static string Format(string customerId, string feedItemId) => FormatCustomerFeedItem(customerId, feedItemId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/extensionFeedItems/{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/extensionFeedItems/{feed_item_id}. - /// - public static string FormatCustomerFeedItem(string customerId, string feedItemId) => - s_customerFeedItem.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/extensionFeedItems/{feed_item_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static ExtensionFeedItemName Parse(string extensionFeedItemName) => Parse(extensionFeedItemName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/extensionFeedItems/{feed_item_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static ExtensionFeedItemName Parse(string extensionFeedItemName, bool allowUnparsed) => - TryParse(extensionFeedItemName, allowUnparsed, out ExtensionFeedItemName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/extensionFeedItems/{feed_item_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string extensionFeedItemName, out ExtensionFeedItemName result) => - TryParse(extensionFeedItemName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/extensionFeedItems/{feed_item_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string extensionFeedItemName, bool allowUnparsed, out ExtensionFeedItemName result) - { - gax::GaxPreconditions.CheckNotNull(extensionFeedItemName, nameof(extensionFeedItemName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeedItem.TryParseName(extensionFeedItemName, out resourceName)) - { - result = FromCustomerFeedItem(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(extensionFeedItemName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private ExtensionFeedItemName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedItemId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedItemId = feedItemId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/extensionFeedItems/{feed_item_id} - /// - /// The Customer ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - public ExtensionFeedItemName(string customerId, string feedItemId) : this(ResourceNameType.CustomerFeedItem, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The FeedItem ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedItemId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeedItem: return s_customerFeedItem.Expand(CustomerId, FeedItemId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as ExtensionFeedItemName); - - /// - public bool Equals(ExtensionFeedItemName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(ExtensionFeedItemName a, ExtensionFeedItemName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(ExtensionFeedItemName a, ExtensionFeedItemName b) => !(a == b); - } - - public partial class ExtensionFeedItem - { - /// - /// -typed view over the resource name property. - /// - internal ExtensionFeedItemName ResourceNameAsExtensionFeedItemName - { - get => string.IsNullOrEmpty(ResourceName) ? null : ExtensionFeedItemName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName TargetedCampaignAsCampaignName - { - get => string.IsNullOrEmpty(TargetedCampaign) ? null : CampaignName.Parse(TargetedCampaign, allowUnparsed: true); - set => TargetedCampaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName TargetedAdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(TargetedAdGroup) ? null : AdGroupName.Parse(TargetedAdGroup, allowUnparsed: true); - set => TargetedAdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource - /// name property. - /// - internal GeoTargetConstantName TargetedGeoTargetConstantAsGeoTargetConstantName - { - get => string.IsNullOrEmpty(TargetedGeoTargetConstant) ? null : GeoTargetConstantName.Parse(TargetedGeoTargetConstant, allowUnparsed: true); - set => TargetedGeoTargetConstant = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemService.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemService.g.cs deleted file mode 100755 index ce0637b1c..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemService.g.cs +++ /dev/null @@ -1,1312 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/extension_feed_item_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/extension_feed_item_service.proto - public static partial class ExtensionFeedItemServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/extension_feed_item_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExtensionFeedItemServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZXh0ZW5zaW9u", - "X2ZlZWRfaXRlbV9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9yZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aPGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvZXh0ZW5zaW9uX2ZlZWRfaXRlbS5wcm90", - "bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9j", - "bGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9m", - "aWVsZF9tYXNrLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKvAgof", - "TXV0YXRlRXh0ZW5zaW9uRmVlZEl0ZW1zUmVxdWVzdBIYCgtjdXN0b21lcl9p", - "ZBgBIAEoCUID4EECElYKCm9wZXJhdGlvbnMYAiADKAsyPS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuRXh0ZW5zaW9uRmVlZEl0ZW1PcGVy", - "YXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRh", - "dGVfb25seRgEIAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4y", - "Sy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250", - "ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSKvAgoaRXh0ZW5zaW9u", - "RmVlZEl0ZW1PcGVyYXRpb24SLwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29n", - "bGUucHJvdG9idWYuRmllbGRNYXNrEkcKBmNyZWF0ZRgBIAEoCzI1Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuRXh0ZW5zaW9uRmVlZEl0", - "ZW1IABJHCgZ1cGRhdGUYAiABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkV4dGVuc2lvbkZlZWRJdGVtSAASQQoGcmVtb3ZlGAMg", - "ASgJQi/6QSwKKmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9FeHRlbnNpb25G", - "ZWVkSXRlbUgAQgsKCW9wZXJhdGlvbiKoAQogTXV0YXRlRXh0ZW5zaW9uRmVl", - "ZEl0ZW1zUmVzcG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgL", - "MhIuZ29vZ2xlLnJwYy5TdGF0dXMSUQoHcmVzdWx0cxgCIAMoCzJALmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVFeHRlbnNpb25G", - "ZWVkSXRlbVJlc3VsdCK7AQodTXV0YXRlRXh0ZW5zaW9uRmVlZEl0ZW1SZXN1", - "bHQSRgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIv+kEsCipnb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vRXh0ZW5zaW9uRmVlZEl0ZW0SUgoTZXh0ZW5zaW9uX2Zl", - "ZWRfaXRlbRgCIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMuRXh0ZW5zaW9uRmVlZEl0ZW0y5QIKGEV4dGVuc2lvbkZlZWRJdGVt", - "U2VydmljZRKBAgoYTXV0YXRlRXh0ZW5zaW9uRmVlZEl0ZW1zEkIuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUV4dGVuc2lvbkZl", - "ZWRJdGVtc1JlcXVlc3QaQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlRXh0ZW5zaW9uRmVlZEl0ZW1zUmVzcG9uc2UiXILT5JMC", - "PSI4L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2V4dGVuc2lvbkZl", - "ZWRJdGVtczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXK", - "QRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29n", - "bGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCiQIKJWNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXNCHUV4dGVuc2lvbkZlZWRJdGVtU2Vydmlj", - "ZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGq", - "AiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVc", - "QWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItemReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation), global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult), global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult.Parser, new[]{ "ResourceName", "ExtensionFeedItem" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [ExtensionFeedItemService.MutateExtensionFeedItems][google.ads.googleads.v12.services.ExtensionFeedItemService.MutateExtensionFeedItems]. - /// - public sealed partial class MutateExtensionFeedItemsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExtensionFeedItemsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemsRequest(MutateExtensionFeedItemsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemsRequest Clone() { - return new MutateExtensionFeedItemsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose extension feed items are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual extension feed items. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExtensionFeedItemsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExtensionFeedItemsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExtensionFeedItemsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an extension feed item. - /// - public sealed partial class ExtensionFeedItemOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtensionFeedItemOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItemOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItemOperation(ExtensionFeedItemOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionFeedItemOperation Clone() { - return new ExtensionFeedItemOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new extension - /// feed item. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The extension feed item is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed extension feed item - /// is expected, in this format: - /// - /// `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtensionFeedItemOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtensionFeedItemOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtensionFeedItemOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an extension feed item mutate. - /// - public sealed partial class MutateExtensionFeedItemsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExtensionFeedItemsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemsResponse(MutateExtensionFeedItemsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemsResponse Clone() { - return new MutateExtensionFeedItemsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExtensionFeedItemsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExtensionFeedItemsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExtensionFeedItemsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the extension feed item mutate. - /// - public sealed partial class MutateExtensionFeedItemResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateExtensionFeedItemResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemResult(MutateExtensionFeedItemResult other) : this() { - resourceName_ = other.resourceName_; - extensionFeedItem_ = other.extensionFeedItem_ != null ? other.extensionFeedItem_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateExtensionFeedItemResult Clone() { - return new MutateExtensionFeedItemResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "extension_feed_item" field. - public const int ExtensionFeedItemFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem extensionFeedItem_; - /// - /// The mutated extension feed item with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem ExtensionFeedItem { - get { return extensionFeedItem_; } - set { - extensionFeedItem_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateExtensionFeedItemResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateExtensionFeedItemResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(ExtensionFeedItem, other.ExtensionFeedItem)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (extensionFeedItem_ != null) hash ^= ExtensionFeedItem.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (extensionFeedItem_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ExtensionFeedItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (extensionFeedItem_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ExtensionFeedItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (extensionFeedItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExtensionFeedItem); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateExtensionFeedItemResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.extensionFeedItem_ != null) { - if (extensionFeedItem_ == null) { - ExtensionFeedItem = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - ExtensionFeedItem.MergeFrom(other.ExtensionFeedItem); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (extensionFeedItem_ == null) { - ExtensionFeedItem = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - input.ReadMessage(ExtensionFeedItem); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (extensionFeedItem_ == null) { - ExtensionFeedItem = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - input.ReadMessage(ExtensionFeedItem); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceClient.g.cs deleted file mode 100755 index 23ddca4ac..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceClient.g.cs +++ /dev/null @@ -1,577 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class ExtensionFeedItemServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static ExtensionFeedItemServiceSettings GetDefault() => new ExtensionFeedItemServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public ExtensionFeedItemServiceSettings() - { - } - - private ExtensionFeedItemServiceSettings(ExtensionFeedItemServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateExtensionFeedItemsSettings = existing.MutateExtensionFeedItemsSettings; - OnCopy(existing); - } - - partial void OnCopy(ExtensionFeedItemServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// ExtensionFeedItemServiceClient.MutateExtensionFeedItems and - /// ExtensionFeedItemServiceClient.MutateExtensionFeedItemsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateExtensionFeedItemsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public ExtensionFeedItemServiceSettings Clone() => new ExtensionFeedItemServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class ExtensionFeedItemServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public ExtensionFeedItemServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public ExtensionFeedItemServiceClientBuilder() : base(ExtensionFeedItemServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref ExtensionFeedItemServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override ExtensionFeedItemServiceClient Build() - { - ExtensionFeedItemServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private ExtensionFeedItemServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return ExtensionFeedItemServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return ExtensionFeedItemServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => ExtensionFeedItemServiceClient.ChannelPool; - } - - /// ExtensionFeedItemService client wrapper, for convenient use. - /// - /// Service to manage extension feed items. - /// - public abstract partial class ExtensionFeedItemServiceClient - { - /// - /// The default endpoint for the ExtensionFeedItemService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default ExtensionFeedItemService scopes. - /// - /// The default ExtensionFeedItemService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(ExtensionFeedItemService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new ExtensionFeedItemServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static ExtensionFeedItemServiceClient Create() => new ExtensionFeedItemServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static ExtensionFeedItemServiceClient Create(grpccore::CallInvoker callInvoker, ExtensionFeedItemServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - ExtensionFeedItemService.ExtensionFeedItemServiceClient grpcClient = new ExtensionFeedItemService.ExtensionFeedItemServiceClient(callInvoker); - return new ExtensionFeedItemServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC ExtensionFeedItemService client - public virtual ExtensionFeedItemService.ExtensionFeedItemServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateExtensionFeedItemsResponse MutateExtensionFeedItems(MutateExtensionFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateExtensionFeedItemsAsync(MutateExtensionFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateExtensionFeedItemsAsync(MutateExtensionFeedItemsRequest request, st::CancellationToken cancellationToken) => - MutateExtensionFeedItemsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose extension feed items are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual extension feed items. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateExtensionFeedItemsResponse MutateExtensionFeedItems(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateExtensionFeedItems(new MutateExtensionFeedItemsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose extension feed items are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual extension feed items. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateExtensionFeedItemsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateExtensionFeedItemsAsync(new MutateExtensionFeedItemsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose extension feed items are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual extension feed items. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateExtensionFeedItemsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateExtensionFeedItemsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// ExtensionFeedItemService client wrapper implementation, for convenient use. - /// - /// Service to manage extension feed items. - /// - public sealed partial class ExtensionFeedItemServiceClientImpl : ExtensionFeedItemServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateExtensionFeedItems; - - /// - /// Constructs a client wrapper for the ExtensionFeedItemService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public ExtensionFeedItemServiceClientImpl(ExtensionFeedItemService.ExtensionFeedItemServiceClient grpcClient, ExtensionFeedItemServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - ExtensionFeedItemServiceSettings effectiveSettings = settings ?? ExtensionFeedItemServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateExtensionFeedItems = clientHelper.BuildApiCall("MutateExtensionFeedItems", grpcClient.MutateExtensionFeedItemsAsync, grpcClient.MutateExtensionFeedItems, effectiveSettings.MutateExtensionFeedItemsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateExtensionFeedItems); - Modify_MutateExtensionFeedItemsApiCall(ref _callMutateExtensionFeedItems); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateExtensionFeedItemsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(ExtensionFeedItemService.ExtensionFeedItemServiceClient grpcClient, ExtensionFeedItemServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC ExtensionFeedItemService client - public override ExtensionFeedItemService.ExtensionFeedItemServiceClient GrpcClient { get; } - - partial void Modify_MutateExtensionFeedItemsRequest(ref MutateExtensionFeedItemsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateExtensionFeedItemsResponse MutateExtensionFeedItems(MutateExtensionFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateExtensionFeedItemsRequest(ref request, ref callSettings); - return _callMutateExtensionFeedItems.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateExtensionFeedItemsAsync(MutateExtensionFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateExtensionFeedItemsRequest(ref request, ref callSettings); - return _callMutateExtensionFeedItems.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceGrpc.g.cs deleted file mode 100755 index f40b7c67a..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceGrpc.g.cs +++ /dev/null @@ -1,337 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/extension_feed_item_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage extension feed items. - /// - public static partial class ExtensionFeedItemService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.ExtensionFeedItemService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateExtensionFeedItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateExtensionFeedItemsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateExtensionFeedItems = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateExtensionFeedItems", - __Marshaller_google_ads_googleads_v12_services_MutateExtensionFeedItemsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateExtensionFeedItemsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of ExtensionFeedItemService - [grpc::BindServiceMethod(typeof(ExtensionFeedItemService), "BindService")] - public abstract partial class ExtensionFeedItemServiceBase - { - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateExtensionFeedItems(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for ExtensionFeedItemService - public partial class ExtensionFeedItemServiceClient : grpc::ClientBase - { - /// Creates a new client for ExtensionFeedItemService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ExtensionFeedItemServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for ExtensionFeedItemService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public ExtensionFeedItemServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ExtensionFeedItemServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected ExtensionFeedItemServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsResponse MutateExtensionFeedItems(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateExtensionFeedItems(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsResponse MutateExtensionFeedItems(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateExtensionFeedItems, null, options, request); - } - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateExtensionFeedItemsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateExtensionFeedItemsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes extension feed items. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CountryCodeError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [LanguageCodeError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [OperationAccessDeniedError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateExtensionFeedItemsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateExtensionFeedItems, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override ExtensionFeedItemServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new ExtensionFeedItemServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(ExtensionFeedItemServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateExtensionFeedItems, serviceImpl.MutateExtensionFeedItems).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, ExtensionFeedItemServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateExtensionFeedItems, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateExtensionFeedItems)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceResourceNames.g.cs deleted file mode 100755 index 11dcd9d58..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionFeedItemServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class ExtensionFeedItemOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::ExtensionFeedItemName RemoveAsExtensionFeedItemName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::ExtensionFeedItemName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateExtensionFeedItemResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::ExtensionFeedItemName ResourceNameAsExtensionFeedItemName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::ExtensionFeedItemName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionSettingDevice.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionSettingDevice.g.cs deleted file mode 100755 index f5e187701..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionSettingDevice.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/extension_setting_device.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/extension_setting_device.proto - public static partial class ExtensionSettingDeviceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/extension_setting_device.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExtensionSettingDeviceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZXh0ZW5zaW9uX3Nl", - "dHRpbmdfZGV2aWNlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMibQoaRXh0ZW5zaW9uU2V0dGluZ0RldmljZUVudW0iTwoWRXh0ZW5z", - "aW9uU2V0dGluZ0RldmljZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04Q", - "ARIKCgZNT0JJTEUQAhILCgdERVNLVE9QEANC9QEKImNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXNCG0V4dGVuc2lvblNldHRpbmdEZXZpY2VQ", - "cm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpF", - "bnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum), global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceEnum.Types.ExtensionSettingDevice) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing extension setting device types. - /// - public sealed partial class ExtensionSettingDeviceEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtensionSettingDeviceEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ExtensionSettingDeviceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionSettingDeviceEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionSettingDeviceEnum(ExtensionSettingDeviceEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionSettingDeviceEnum Clone() { - return new ExtensionSettingDeviceEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtensionSettingDeviceEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtensionSettingDeviceEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtensionSettingDeviceEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExtensionSettingDeviceEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible device types for an extension setting. - /// - public enum ExtensionSettingDevice { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Mobile. The extensions in the extension setting will only serve on - /// mobile devices. - /// - [pbr::OriginalName("MOBILE")] Mobile = 2, - /// - /// Desktop. The extensions in the extension setting will only serve on - /// desktop devices. - /// - [pbr::OriginalName("DESKTOP")] Desktop = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionSettingError.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionSettingError.g.cs deleted file mode 100755 index 48a4e6dc6..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionSettingError.g.cs +++ /dev/null @@ -1,566 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/extension_setting_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/extension_setting_error.proto - public static partial class ExtensionSettingErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/extension_setting_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExtensionSettingErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2V4dGVuc2lvbl9z", - "ZXR0aW5nX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzIq4UChlFeHRlbnNpb25TZXR0aW5nRXJyb3JFbnVtIpAUChVFeHRl", - "bnNpb25TZXR0aW5nRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESFwoTRVhURU5TSU9OU19SRVFVSVJFRBACEiUKIUZFRURfVFlQRV9FWFRF", - "TlNJT05fVFlQRV9NSVNNQVRDSBADEhUKEUlOVkFMSURfRkVFRF9UWVBFEAQS", - "NAowSU5WQUxJRF9GRUVEX1RZUEVfRk9SX0NVU1RPTUVSX0VYVEVOU0lPTl9T", - "RVRUSU5HEAUSJQohQ0FOTk9UX0NIQU5HRV9GRUVEX0lURU1fT05fQ1JFQVRF", - "EAYSKQolQ0FOTk9UX1VQREFURV9ORVdMWV9DUkVBVEVEX0VYVEVOU0lPThAH", - "EjMKL05PX0VYSVNUSU5HX0FEX0dST1VQX0VYVEVOU0lPTl9TRVRUSU5HX0ZP", - "Ul9UWVBFEAgSMwovTk9fRVhJU1RJTkdfQ0FNUEFJR05fRVhURU5TSU9OX1NF", - "VFRJTkdfRk9SX1RZUEUQCRIzCi9OT19FWElTVElOR19DVVNUT01FUl9FWFRF", - "TlNJT05fU0VUVElOR19GT1JfVFlQRRAKEi0KKUFEX0dST1VQX0VYVEVOU0lP", - "Tl9TRVRUSU5HX0FMUkVBRFlfRVhJU1RTEAsSLQopQ0FNUEFJR05fRVhURU5T", - "SU9OX1NFVFRJTkdfQUxSRUFEWV9FWElTVFMQDBItCilDVVNUT01FUl9FWFRF", - "TlNJT05fU0VUVElOR19BTFJFQURZX0VYSVNUUxANEjUKMUFEX0dST1VQX0ZF", - "RURfQUxSRUFEWV9FWElTVFNfRk9SX1BMQUNFSE9MREVSX1RZUEUQDhI1CjFD", - "QU1QQUlHTl9GRUVEX0FMUkVBRFlfRVhJU1RTX0ZPUl9QTEFDRUhPTERFUl9U", - "WVBFEA8SNQoxQ1VTVE9NRVJfRkVFRF9BTFJFQURZX0VYSVNUU19GT1JfUExB", - "Q0VIT0xERVJfVFlQRRAQEhYKElZBTFVFX09VVF9PRl9SQU5HRRAREiQKIENB", - "Tk5PVF9TRVRfRklFTERfV0lUSF9GSU5BTF9VUkxTEBISFgoSRklOQUxfVVJM", - "U19OT1RfU0VUEBMSGAoUSU5WQUxJRF9QSE9ORV9OVU1CRVIQFBIqCiZQSE9O", - "RV9OVU1CRVJfTk9UX1NVUFBPUlRFRF9GT1JfQ09VTlRSWRAVEi0KKUNBUlJJ", - "RVJfU1BFQ0lGSUNfU0hPUlRfTlVNQkVSX05PVF9BTExPV0VEEBYSIwofUFJF", - "TUlVTV9SQVRFX05VTUJFUl9OT1RfQUxMT1dFRBAXEhoKFkRJU0FMTE9XRURf", - "TlVNQkVSX1RZUEUQGBIoCiRJTlZBTElEX0RPTUVTVElDX1BIT05FX05VTUJF", - "Ul9GT1JNQVQQGRIjCh9WQU5JVFlfUEhPTkVfTlVNQkVSX05PVF9BTExPV0VE", - "EBoSGAoUSU5WQUxJRF9DT1VOVFJZX0NPREUQGxIjCh9JTlZBTElEX0NBTExf", - "Q09OVkVSU0lPTl9UWVBFX0lEEBwSLgoqQ1VTVE9NRVJfTk9UX0lOX0FMTE9X", - "TElTVF9GT1JfQ0FMTFRSQUNLSU5HEEUSKgomQ0FMTFRSQUNLSU5HX05PVF9T", - "VVBQT1JURURfRk9SX0NPVU5UUlkQHhISCg5JTlZBTElEX0FQUF9JRBAfEiYK", - "IlFVT1RFU19JTl9SRVZJRVdfRVhURU5TSU9OX1NOSVBQRVQQIBInCiNIWVBI", - "RU5TX0lOX1JFVklFV19FWFRFTlNJT05fU05JUFBFVBAhEigKJFJFVklFV19F", - "WFRFTlNJT05fU09VUkNFX05PVF9FTElHSUJMRRAiEigKJFNPVVJDRV9OQU1F", - "X0lOX1JFVklFV19FWFRFTlNJT05fVEVYVBAjEhEKDU1JU1NJTkdfRklFTEQQ", - "JBIfChtJTkNPTlNJU1RFTlRfQ1VSUkVOQ1lfQ09ERVMQJRIqCiZQUklDRV9F", - "WFRFTlNJT05fSEFTX0RVUExJQ0FURURfSEVBREVSUxAmEjQKMFBSSUNFX0lU", - "RU1fSEFTX0RVUExJQ0FURURfSEVBREVSX0FORF9ERVNDUklQVElPThAnEiUK", - "IVBSSUNFX0VYVEVOU0lPTl9IQVNfVE9PX0ZFV19JVEVNUxAoEiYKIlBSSUNF", - "X0VYVEVOU0lPTl9IQVNfVE9PX01BTllfSVRFTVMQKRIVChFVTlNVUFBPUlRF", - "RF9WQUxVRRAqEh0KGUlOVkFMSURfREVWSUNFX1BSRUZFUkVOQ0UQKxIYChRJ", - "TlZBTElEX1NDSEVEVUxFX0VORBAtEioKJkRBVEVfVElNRV9NVVNUX0JFX0lO", - "X0FDQ09VTlRfVElNRV9aT05FEC8SJQohT1ZFUkxBUFBJTkdfU0NIRURVTEVT", - "X05PVF9BTExPV0VEEDASIAocU0NIRURVTEVfRU5EX05PVF9BRlRFUl9TVEFS", - "VBAxEh4KGlRPT19NQU5ZX1NDSEVEVUxFU19QRVJfREFZEDISJgoiRFVQTElD", - "QVRFX0VYVEVOU0lPTl9GRUVEX0lURU1fRURJVBAzEhsKF0lOVkFMSURfU05J", - "UFBFVFNfSEVBREVSEDQSPAo4UEhPTkVfTlVNQkVSX05PVF9TVVBQT1JURURf", - "V0lUSF9DQUxMVFJBQ0tJTkdfRk9SX0NPVU5UUlkQNRIfChtDQU1QQUlHTl9U", - "QVJHRVRJTkdfTUlTTUFUQ0gQNhIiCh5DQU5OT1RfT1BFUkFURV9PTl9SRU1P", - "VkVEX0ZFRUQQNxIbChdFWFRFTlNJT05fVFlQRV9SRVFVSVJFRBA4Ei0KKUlO", - "Q09NUEFUSUJMRV9VTkRFUkxZSU5HX01BVENISU5HX0ZVTkNUSU9OEDkSHQoZ", - "U1RBUlRfREFURV9BRlRFUl9FTkRfREFURRA6EhgKFElOVkFMSURfUFJJQ0Vf", - "Rk9STUFUEDsSGgoWUFJPTU9USU9OX0lOVkFMSURfVElNRRA8EjwKOFBST01P", - "VElPTl9DQU5OT1RfU0VUX1BFUkNFTlRfRElTQ09VTlRfQU5EX01PTkVZX0RJ", - "U0NPVU5UED0SPgo6UFJPTU9USU9OX0NBTk5PVF9TRVRfUFJPTU9USU9OX0NP", - "REVfQU5EX09SREVSU19PVkVSX0FNT1VOVBA+EiUKIVRPT19NQU5ZX0RFQ0lN", - "QUxfUExBQ0VTX1NQRUNJRklFRBA/EhkKFUlOVkFMSURfTEFOR1VBR0VfQ09E", - "RRBAEhgKFFVOU1VQUE9SVEVEX0xBTkdVQUdFEEESMAosQ1VTVE9NRVJfQ09O", - "U0VOVF9GT1JfQ0FMTF9SRUNPUkRJTkdfUkVRVUlSRUQQQhImCiJFWFRFTlNJ", - "T05fU0VUVElOR19VUERBVEVfSVNfQV9OT09QEEMSEwoPRElTQUxMT1dFRF9U", - "RVhUEERC+gEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3Jz", - "QhpFeHRlbnNpb25TZXR0aW5nRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vy", - "cm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorEnum.Types.ExtensionSettingError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing validation errors of extension settings. - /// - public sealed partial class ExtensionSettingErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtensionSettingErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ExtensionSettingErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionSettingErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionSettingErrorEnum(ExtensionSettingErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionSettingErrorEnum Clone() { - return new ExtensionSettingErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtensionSettingErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtensionSettingErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtensionSettingErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExtensionSettingErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible extension setting errors. - /// - public enum ExtensionSettingError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A platform restriction was provided without input extensions or existing - /// extensions. - /// - [pbr::OriginalName("EXTENSIONS_REQUIRED")] ExtensionsRequired = 2, - /// - /// The provided feed type does not correspond to the provided extensions. - /// - [pbr::OriginalName("FEED_TYPE_EXTENSION_TYPE_MISMATCH")] FeedTypeExtensionTypeMismatch = 3, - /// - /// The provided feed type cannot be used. - /// - [pbr::OriginalName("INVALID_FEED_TYPE")] InvalidFeedType = 4, - /// - /// The provided feed type cannot be used at the customer level. - /// - [pbr::OriginalName("INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING")] InvalidFeedTypeForCustomerExtensionSetting = 5, - /// - /// Cannot change a feed item field on a CREATE operation. - /// - [pbr::OriginalName("CANNOT_CHANGE_FEED_ITEM_ON_CREATE")] CannotChangeFeedItemOnCreate = 6, - /// - /// Cannot update an extension that is not already in this setting. - /// - [pbr::OriginalName("CANNOT_UPDATE_NEWLY_CREATED_EXTENSION")] CannotUpdateNewlyCreatedExtension = 7, - /// - /// There is no existing AdGroupExtensionSetting for this type. - /// - [pbr::OriginalName("NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE")] NoExistingAdGroupExtensionSettingForType = 8, - /// - /// There is no existing CampaignExtensionSetting for this type. - /// - [pbr::OriginalName("NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE")] NoExistingCampaignExtensionSettingForType = 9, - /// - /// There is no existing CustomerExtensionSetting for this type. - /// - [pbr::OriginalName("NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE")] NoExistingCustomerExtensionSettingForType = 10, - /// - /// The AdGroupExtensionSetting already exists. UPDATE should be used to - /// modify the existing AdGroupExtensionSetting. - /// - [pbr::OriginalName("AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS")] AdGroupExtensionSettingAlreadyExists = 11, - /// - /// The CampaignExtensionSetting already exists. UPDATE should be used to - /// modify the existing CampaignExtensionSetting. - /// - [pbr::OriginalName("CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS")] CampaignExtensionSettingAlreadyExists = 12, - /// - /// The CustomerExtensionSetting already exists. UPDATE should be used to - /// modify the existing CustomerExtensionSetting. - /// - [pbr::OriginalName("CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS")] CustomerExtensionSettingAlreadyExists = 13, - /// - /// An active ad group feed already exists for this place holder type. - /// - [pbr::OriginalName("AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE")] AdGroupFeedAlreadyExistsForPlaceholderType = 14, - /// - /// An active campaign feed already exists for this place holder type. - /// - [pbr::OriginalName("CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE")] CampaignFeedAlreadyExistsForPlaceholderType = 15, - /// - /// An active customer feed already exists for this place holder type. - /// - [pbr::OriginalName("CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE")] CustomerFeedAlreadyExistsForPlaceholderType = 16, - /// - /// Value is not within the accepted range. - /// - [pbr::OriginalName("VALUE_OUT_OF_RANGE")] ValueOutOfRange = 17, - /// - /// Cannot simultaneously set specified field with final urls. - /// - [pbr::OriginalName("CANNOT_SET_FIELD_WITH_FINAL_URLS")] CannotSetFieldWithFinalUrls = 18, - /// - /// Must set field with final urls. - /// - [pbr::OriginalName("FINAL_URLS_NOT_SET")] FinalUrlsNotSet = 19, - /// - /// Phone number for a call extension is invalid. - /// - [pbr::OriginalName("INVALID_PHONE_NUMBER")] InvalidPhoneNumber = 20, - /// - /// Phone number for a call extension is not supported for the given country - /// code. - /// - [pbr::OriginalName("PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY")] PhoneNumberNotSupportedForCountry = 21, - /// - /// A carrier specific number in short format is not allowed for call - /// extensions. - /// - [pbr::OriginalName("CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED")] CarrierSpecificShortNumberNotAllowed = 22, - /// - /// Premium rate numbers are not allowed for call extensions. - /// - [pbr::OriginalName("PREMIUM_RATE_NUMBER_NOT_ALLOWED")] PremiumRateNumberNotAllowed = 23, - /// - /// Phone number type for a call extension is not allowed. - /// - [pbr::OriginalName("DISALLOWED_NUMBER_TYPE")] DisallowedNumberType = 24, - /// - /// Phone number for a call extension does not meet domestic format - /// requirements. - /// - [pbr::OriginalName("INVALID_DOMESTIC_PHONE_NUMBER_FORMAT")] InvalidDomesticPhoneNumberFormat = 25, - /// - /// Vanity phone numbers (for example, those including letters) are not - /// allowed for call extensions. - /// - [pbr::OriginalName("VANITY_PHONE_NUMBER_NOT_ALLOWED")] VanityPhoneNumberNotAllowed = 26, - /// - /// Country code provided for a call extension is invalid. - /// - [pbr::OriginalName("INVALID_COUNTRY_CODE")] InvalidCountryCode = 27, - /// - /// Call conversion type id provided for a call extension is invalid. - /// - [pbr::OriginalName("INVALID_CALL_CONVERSION_TYPE_ID")] InvalidCallConversionTypeId = 28, - /// - /// For a call extension, the customer is not on the allow-list for call - /// tracking. - /// - [pbr::OriginalName("CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING")] CustomerNotInAllowlistForCalltracking = 69, - /// - /// Call tracking is not supported for the given country for a call - /// extension. - /// - [pbr::OriginalName("CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY")] CalltrackingNotSupportedForCountry = 30, - /// - /// App id provided for an app extension is invalid. - /// - [pbr::OriginalName("INVALID_APP_ID")] InvalidAppId = 31, - /// - /// Quotation marks present in the review text for a review extension. - /// - [pbr::OriginalName("QUOTES_IN_REVIEW_EXTENSION_SNIPPET")] QuotesInReviewExtensionSnippet = 32, - /// - /// Hyphen character present in the review text for a review extension. - /// - [pbr::OriginalName("HYPHENS_IN_REVIEW_EXTENSION_SNIPPET")] HyphensInReviewExtensionSnippet = 33, - /// - /// A blocked review source name or url was provided for a review - /// extension. - /// - [pbr::OriginalName("REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE")] ReviewExtensionSourceNotEligible = 34, - /// - /// Review source name should not be found in the review text. - /// - [pbr::OriginalName("SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT")] SourceNameInReviewExtensionText = 35, - /// - /// Field must be set. - /// - [pbr::OriginalName("MISSING_FIELD")] MissingField = 36, - /// - /// Inconsistent currency codes. - /// - [pbr::OriginalName("INCONSISTENT_CURRENCY_CODES")] InconsistentCurrencyCodes = 37, - /// - /// Price extension cannot have duplicated headers. - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_DUPLICATED_HEADERS")] PriceExtensionHasDuplicatedHeaders = 38, - /// - /// Price item cannot have duplicated header and description. - /// - [pbr::OriginalName("PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION")] PriceItemHasDuplicatedHeaderAndDescription = 39, - /// - /// Price extension has too few items - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_TOO_FEW_ITEMS")] PriceExtensionHasTooFewItems = 40, - /// - /// Price extension has too many items - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_TOO_MANY_ITEMS")] PriceExtensionHasTooManyItems = 41, - /// - /// The input value is not currently supported. - /// - [pbr::OriginalName("UNSUPPORTED_VALUE")] UnsupportedValue = 42, - /// - /// Unknown or unsupported device preference. - /// - [pbr::OriginalName("INVALID_DEVICE_PREFERENCE")] InvalidDevicePreference = 43, - /// - /// Invalid feed item schedule end time (for example, endHour = 24 and - /// endMinute != 0). - /// - [pbr::OriginalName("INVALID_SCHEDULE_END")] InvalidScheduleEnd = 45, - /// - /// Date time zone does not match the account's time zone. - /// - [pbr::OriginalName("DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE")] DateTimeMustBeInAccountTimeZone = 47, - /// - /// Overlapping feed item schedule times (for example, 7-10AM and 8-11AM) are - /// not allowed. - /// - [pbr::OriginalName("OVERLAPPING_SCHEDULES_NOT_ALLOWED")] OverlappingSchedulesNotAllowed = 48, - /// - /// Feed item schedule end time must be after start time. - /// - [pbr::OriginalName("SCHEDULE_END_NOT_AFTER_START")] ScheduleEndNotAfterStart = 49, - /// - /// There are too many feed item schedules per day. - /// - [pbr::OriginalName("TOO_MANY_SCHEDULES_PER_DAY")] TooManySchedulesPerDay = 50, - /// - /// Cannot edit the same extension feed item more than once in the same - /// request. - /// - [pbr::OriginalName("DUPLICATE_EXTENSION_FEED_ITEM_EDIT")] DuplicateExtensionFeedItemEdit = 51, - /// - /// Invalid structured snippet header. - /// - [pbr::OriginalName("INVALID_SNIPPETS_HEADER")] InvalidSnippetsHeader = 52, - /// - /// Phone number with call tracking enabled is not supported for the - /// specified country. - /// - [pbr::OriginalName("PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY")] PhoneNumberNotSupportedWithCalltrackingForCountry = 53, - /// - /// The targeted adgroup must belong to the targeted campaign. - /// - [pbr::OriginalName("CAMPAIGN_TARGETING_MISMATCH")] CampaignTargetingMismatch = 54, - /// - /// The feed used by the ExtensionSetting is removed and cannot be operated - /// on. Remove the ExtensionSetting to allow a new one to be created using - /// an active feed. - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_REMOVED_FEED")] CannotOperateOnRemovedFeed = 55, - /// - /// The ExtensionFeedItem type is required for this operation. - /// - [pbr::OriginalName("EXTENSION_TYPE_REQUIRED")] ExtensionTypeRequired = 56, - /// - /// The matching function that links the extension feed to the customer, - /// campaign, or ad group is not compatible with the ExtensionSetting - /// services. - /// - [pbr::OriginalName("INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION")] IncompatibleUnderlyingMatchingFunction = 57, - /// - /// Start date must be before end date. - /// - [pbr::OriginalName("START_DATE_AFTER_END_DATE")] StartDateAfterEndDate = 58, - /// - /// Input price is not in a valid format. - /// - [pbr::OriginalName("INVALID_PRICE_FORMAT")] InvalidPriceFormat = 59, - /// - /// The promotion time is invalid. - /// - [pbr::OriginalName("PROMOTION_INVALID_TIME")] PromotionInvalidTime = 60, - /// - /// Cannot set both percent discount and money discount fields. - /// - [pbr::OriginalName("PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT")] PromotionCannotSetPercentDiscountAndMoneyDiscount = 61, - /// - /// Cannot set both promotion code and orders over amount fields. - /// - [pbr::OriginalName("PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT")] PromotionCannotSetPromotionCodeAndOrdersOverAmount = 62, - /// - /// This field has too many decimal places specified. - /// - [pbr::OriginalName("TOO_MANY_DECIMAL_PLACES_SPECIFIED")] TooManyDecimalPlacesSpecified = 63, - /// - /// The language code is not valid. - /// - [pbr::OriginalName("INVALID_LANGUAGE_CODE")] InvalidLanguageCode = 64, - /// - /// The language is not supported. - /// - [pbr::OriginalName("UNSUPPORTED_LANGUAGE")] UnsupportedLanguage = 65, - /// - /// Customer hasn't consented for call recording, which is required for - /// adding/updating call extensions. See - /// https://support.google.com/google-ads/answer/7412639. - /// - [pbr::OriginalName("CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED")] CustomerConsentForCallRecordingRequired = 66, - /// - /// The UPDATE operation does not specify any fields other than the resource - /// name in the update mask. - /// - [pbr::OriginalName("EXTENSION_SETTING_UPDATE_IS_A_NOOP")] ExtensionSettingUpdateIsANoop = 67, - /// - /// The extension contains text which has been prohibited on policy grounds. - /// - [pbr::OriginalName("DISALLOWED_TEXT")] DisallowedText = 68, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionType.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionType.g.cs deleted file mode 100755 index 8129a4b60..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionType.g.cs +++ /dev/null @@ -1,285 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/extension_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/extension_type.proto - public static partial class ExtensionTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/extension_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExtensionTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZXh0ZW5zaW9uX3R5", - "cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyL+AQoR", - "RXh0ZW5zaW9uVHlwZUVudW0i6AEKDUV4dGVuc2lvblR5cGUSDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESCAoETk9ORRACEgcKA0FQUBADEggKBENB", - "TEwQBBILCgdDQUxMT1VUEAUSCwoHTUVTU0FHRRAGEgkKBVBSSUNFEAcSDQoJ", - "UFJPTU9USU9OEAgSDAoIU0lURUxJTksQChIWChJTVFJVQ1RVUkVEX1NOSVBQ", - "RVQQCxIMCghMT0NBVElPThAMEhYKEkFGRklMSUFURV9MT0NBVElPThANEhEK", - "DUhPVEVMX0NBTExPVVQQDxIJCgVJTUFHRRAQQuwBCiJjb20uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zQhJFeHRlbnNpb25UeXBlUHJvdG9QAVpD", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "bnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeEnum.Types.ExtensionType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible data types for an extension in an - /// extension setting. - /// - public sealed partial class ExtensionTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExtensionTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ExtensionTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionTypeEnum(ExtensionTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExtensionTypeEnum Clone() { - return new ExtensionTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExtensionTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExtensionTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExtensionTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExtensionTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible data types for an extension in an extension setting. - /// - public enum ExtensionType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// None. - /// - [pbr::OriginalName("NONE")] None = 2, - /// - /// App. - /// - [pbr::OriginalName("APP")] App = 3, - /// - /// Call. - /// - [pbr::OriginalName("CALL")] Call = 4, - /// - /// Callout. - /// - [pbr::OriginalName("CALLOUT")] Callout = 5, - /// - /// Message. - /// - [pbr::OriginalName("MESSAGE")] Message = 6, - /// - /// Price. - /// - [pbr::OriginalName("PRICE")] Price = 7, - /// - /// Promotion. - /// - [pbr::OriginalName("PROMOTION")] Promotion = 8, - /// - /// Sitelink. - /// - [pbr::OriginalName("SITELINK")] Sitelink = 10, - /// - /// Structured snippet. - /// - [pbr::OriginalName("STRUCTURED_SNIPPET")] StructuredSnippet = 11, - /// - /// Location. - /// - [pbr::OriginalName("LOCATION")] Location = 12, - /// - /// Affiliate location. - /// - [pbr::OriginalName("AFFILIATE_LOCATION")] AffiliateLocation = 13, - /// - /// Hotel callout - /// - [pbr::OriginalName("HOTEL_CALLOUT")] HotelCallout = 15, - /// - /// Image. - /// - [pbr::OriginalName("IMAGE")] Image = 16, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Extensions.g.cs b/Google.Ads.GoogleAds/src/V12/Extensions.g.cs deleted file mode 100755 index 36c2a2b20..000000000 --- a/Google.Ads.GoogleAds/src/V12/Extensions.g.cs +++ /dev/null @@ -1,5935 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/extensions.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/extensions.proto - public static partial class ExtensionsReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/extensions.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExtensionsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2V4dGVuc2lvbnMu", - "cHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24aNmdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3VzdG9tX3BhcmFtZXRlci5w", - "cm90bxoxZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9mZWVkX2Nv", - "bW1vbi5wcm90bxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2Fw", - "cF9zdG9yZS5wcm90bxpEZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L2NhbGxfY29udmVyc2lvbl9yZXBvcnRpbmdfc3RhdGUucHJvdG8aRGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wcmljZV9leHRlbnNpb25fcHJp", - "Y2VfcXVhbGlmaWVyLnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMvcHJpY2VfZXh0ZW5zaW9uX3ByaWNlX3VuaXQucHJvdG8aOWdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wcmljZV9leHRlbnNpb25fdHlw", - "ZS5wcm90bxpKZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Byb21v", - "dGlvbl9leHRlbnNpb25fZGlzY291bnRfbW9kaWZpZXIucHJvdG8aQWdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9wcm9tb3Rpb25fZXh0ZW5zaW9u", - "X29jY2FzaW9uLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", - "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIo8DCgtBcHBGZWVkSXRl", - "bRIWCglsaW5rX3RleHQYCSABKAlIAIgBARITCgZhcHBfaWQYCiABKAlIAYgB", - "ARJICglhcHBfc3RvcmUYAyABKA4yNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuQXBwU3RvcmVFbnVtLkFwcFN0b3JlEhIKCmZpbmFsX3VybHMY", - "CyADKAkSGQoRZmluYWxfbW9iaWxlX3VybHMYDCADKAkSIgoVdHJhY2tpbmdf", - "dXJsX3RlbXBsYXRlGA0gASgJSAKIAQESTwoVdXJsX2N1c3RvbV9wYXJhbWV0", - "ZXJzGAcgAygLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5D", - "dXN0b21QYXJhbWV0ZXISHQoQZmluYWxfdXJsX3N1ZmZpeBgOIAEoCUgDiAEB", - "QgwKCl9saW5rX3RleHRCCQoHX2FwcF9pZEIYChZfdHJhY2tpbmdfdXJsX3Rl", - "bXBsYXRlQhMKEV9maW5hbF91cmxfc3VmZml4IsMDCgxDYWxsRmVlZEl0ZW0S", - "GQoMcGhvbmVfbnVtYmVyGAcgASgJSACIAQESGQoMY291bnRyeV9jb2RlGAgg", - "ASgJSAGIAQESIgoVY2FsbF90cmFja2luZ19lbmFibGVkGAkgASgISAKIAQES", - "IwoWY2FsbF9jb252ZXJzaW9uX2FjdGlvbhgKIAEoCUgDiAEBEi4KIWNhbGxf", - "Y29udmVyc2lvbl90cmFja2luZ19kaXNhYmxlZBgLIAEoCEgEiAEBEoYBCh9j", - "YWxsX2NvbnZlcnNpb25fcmVwb3J0aW5nX3N0YXRlGAYgASgOMl0uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkNhbGxDb252ZXJzaW9uUmVwb3J0", - "aW5nU3RhdGVFbnVtLkNhbGxDb252ZXJzaW9uUmVwb3J0aW5nU3RhdGVCDwoN", - "X3Bob25lX251bWJlckIPCg1fY291bnRyeV9jb2RlQhgKFl9jYWxsX3RyYWNr", - "aW5nX2VuYWJsZWRCGQoXX2NhbGxfY29udmVyc2lvbl9hY3Rpb25CJAoiX2Nh", - "bGxfY29udmVyc2lvbl90cmFja2luZ19kaXNhYmxlZCI9Cg9DYWxsb3V0RmVl", - "ZEl0ZW0SGQoMY2FsbG91dF90ZXh0GAIgASgJSACIAQFCDwoNX2NhbGxvdXRf", - "dGV4dCLiAgoQTG9jYXRpb25GZWVkSXRlbRIaCg1idXNpbmVzc19uYW1lGAkg", - "ASgJSACIAQESGwoOYWRkcmVzc19saW5lXzEYCiABKAlIAYgBARIbCg5hZGRy", - "ZXNzX2xpbmVfMhgLIAEoCUgCiAEBEhEKBGNpdHkYDCABKAlIA4gBARIVCghw", - "cm92aW5jZRgNIAEoCUgEiAEBEhgKC3Bvc3RhbF9jb2RlGA4gASgJSAWIAQES", - "GQoMY291bnRyeV9jb2RlGA8gASgJSAaIAQESGQoMcGhvbmVfbnVtYmVyGBAg", - "ASgJSAeIAQFCEAoOX2J1c2luZXNzX25hbWVCEQoPX2FkZHJlc3NfbGluZV8x", - "QhEKD19hZGRyZXNzX2xpbmVfMkIHCgVfY2l0eUILCglfcHJvdmluY2VCDgoM", - "X3Bvc3RhbF9jb2RlQg8KDV9jb3VudHJ5X2NvZGVCDwoNX3Bob25lX251bWJl", - "ciK3AwoZQWZmaWxpYXRlTG9jYXRpb25GZWVkSXRlbRIaCg1idXNpbmVzc19u", - "YW1lGAsgASgJSACIAQESGwoOYWRkcmVzc19saW5lXzEYDCABKAlIAYgBARIb", - "Cg5hZGRyZXNzX2xpbmVfMhgNIAEoCUgCiAEBEhEKBGNpdHkYDiABKAlIA4gB", - "ARIVCghwcm92aW5jZRgPIAEoCUgEiAEBEhgKC3Bvc3RhbF9jb2RlGBAgASgJ", - "SAWIAQESGQoMY291bnRyeV9jb2RlGBEgASgJSAaIAQESGQoMcGhvbmVfbnVt", - "YmVyGBIgASgJSAeIAQESFQoIY2hhaW5faWQYEyABKANICIgBARIXCgpjaGFp", - "bl9uYW1lGBQgASgJSAmIAQFCEAoOX2J1c2luZXNzX25hbWVCEQoPX2FkZHJl", - "c3NfbGluZV8xQhEKD19hZGRyZXNzX2xpbmVfMkIHCgVfY2l0eUILCglfcHJv", - "dmluY2VCDgoMX3Bvc3RhbF9jb2RlQg8KDV9jb3VudHJ5X2NvZGVCDwoNX3Bo", - "b25lX251bWJlckILCglfY2hhaW5faWRCDQoLX2NoYWluX25hbWUi5wEKE1Rl", - "eHRNZXNzYWdlRmVlZEl0ZW0SGgoNYnVzaW5lc3NfbmFtZRgGIAEoCUgAiAEB", - "EhkKDGNvdW50cnlfY29kZRgHIAEoCUgBiAEBEhkKDHBob25lX251bWJlchgI", - "IAEoCUgCiAEBEhEKBHRleHQYCSABKAlIA4gBARIbCg5leHRlbnNpb25fdGV4", - "dBgKIAEoCUgEiAEBQhAKDl9idXNpbmVzc19uYW1lQg8KDV9jb3VudHJ5X2Nv", - "ZGVCDwoNX3Bob25lX251bWJlckIHCgVfdGV4dEIRCg9fZXh0ZW5zaW9uX3Rl", - "eHQixgMKDVByaWNlRmVlZEl0ZW0SVwoEdHlwZRgBIAEoDjJJLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5QcmljZUV4dGVuc2lvblR5cGVFbnVt", - "LlByaWNlRXh0ZW5zaW9uVHlwZRJ2Cg9wcmljZV9xdWFsaWZpZXIYAiABKA4y", - "XS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUHJpY2VFeHRlbnNp", - "b25QcmljZVF1YWxpZmllckVudW0uUHJpY2VFeHRlbnNpb25QcmljZVF1YWxp", - "ZmllchIiChV0cmFja2luZ191cmxfdGVtcGxhdGUYByABKAlIAIgBARIaCg1s", - "YW5ndWFnZV9jb2RlGAggASgJSAGIAQESRAoPcHJpY2Vfb2ZmZXJpbmdzGAUg", - "AygLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5QcmljZU9m", - "ZmVyEh0KEGZpbmFsX3VybF9zdWZmaXgYCSABKAlIAogBAUIYChZfdHJhY2tp", - "bmdfdXJsX3RlbXBsYXRlQhAKDl9sYW5ndWFnZV9jb2RlQhMKEV9maW5hbF91", - "cmxfc3VmZml4Ip8CCgpQcmljZU9mZmVyEhMKBmhlYWRlchgHIAEoCUgAiAEB", - "EhgKC2Rlc2NyaXB0aW9uGAggASgJSAGIAQESNQoFcHJpY2UYAyABKAsyJi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLk1vbmV5EmEKBHVuaXQY", - "BCABKA4yUy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUHJpY2VF", - "eHRlbnNpb25QcmljZVVuaXRFbnVtLlByaWNlRXh0ZW5zaW9uUHJpY2VVbml0", - "EhIKCmZpbmFsX3VybHMYCSADKAkSGQoRZmluYWxfbW9iaWxlX3VybHMYCiAD", - "KAlCCQoHX2hlYWRlckIOCgxfZGVzY3JpcHRpb24isAcKEVByb21vdGlvbkZl", - "ZWRJdGVtEh0KEHByb21vdGlvbl90YXJnZXQYECABKAlIAogBARKEAQoRZGlz", - "Y291bnRfbW9kaWZpZXIYAiABKA4yaS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuUHJvbW90aW9uRXh0ZW5zaW9uRGlzY291bnRNb2RpZmllckVu", - "dW0uUHJvbW90aW9uRXh0ZW5zaW9uRGlzY291bnRNb2RpZmllchIhChRwcm9t", - "b3Rpb25fc3RhcnRfZGF0ZRgTIAEoCUgDiAEBEh8KEnByb21vdGlvbl9lbmRf", - "ZGF0ZRgUIAEoCUgEiAEBEmsKCG9jY2FzaW9uGAkgASgOMlkuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLlByb21vdGlvbkV4dGVuc2lvbk9jY2Fz", - "aW9uRW51bS5Qcm9tb3Rpb25FeHRlbnNpb25PY2Nhc2lvbhISCgpmaW5hbF91", - "cmxzGBUgAygJEhkKEWZpbmFsX21vYmlsZV91cmxzGBYgAygJEiIKFXRyYWNr", - "aW5nX3VybF90ZW1wbGF0ZRgXIAEoCUgFiAEBEk8KFXVybF9jdXN0b21fcGFy", - "YW1ldGVycxgNIAMoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24uQ3VzdG9tUGFyYW1ldGVyEh0KEGZpbmFsX3VybF9zdWZmaXgYGCABKAlI", - "BogBARIaCg1sYW5ndWFnZV9jb2RlGBkgASgJSAeIAQESFQoLcGVyY2VudF9v", - "ZmYYESABKANIABJCChBtb25leV9hbW91bnRfb2ZmGAQgASgLMiYuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Nb25leUgAEhgKDnByb21vdGlv", - "bl9jb2RlGBIgASgJSAESRAoSb3JkZXJzX292ZXJfYW1vdW50GAYgASgLMiYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Nb25leUgBQg8KDWRp", - "c2NvdW50X3R5cGVCEwoRcHJvbW90aW9uX3RyaWdnZXJCEwoRX3Byb21vdGlv", - "bl90YXJnZXRCFwoVX3Byb21vdGlvbl9zdGFydF9kYXRlQhUKE19wcm9tb3Rp", - "b25fZW5kX2RhdGVCGAoWX3RyYWNraW5nX3VybF90ZW1wbGF0ZUITChFfZmlu", - "YWxfdXJsX3N1ZmZpeEIQCg5fbGFuZ3VhZ2VfY29kZSJLChlTdHJ1Y3R1cmVk", - "U25pcHBldEZlZWRJdGVtEhMKBmhlYWRlchgDIAEoCUgAiAEBEg4KBnZhbHVl", - "cxgEIAMoCUIJCgdfaGVhZGVyIuYCChBTaXRlbGlua0ZlZWRJdGVtEhYKCWxp", - "bmtfdGV4dBgJIAEoCUgAiAEBEhIKBWxpbmUxGAogASgJSAGIAQESEgoFbGlu", - "ZTIYCyABKAlIAogBARISCgpmaW5hbF91cmxzGAwgAygJEhkKEWZpbmFsX21v", - "YmlsZV91cmxzGA0gAygJEiIKFXRyYWNraW5nX3VybF90ZW1wbGF0ZRgOIAEo", - "CUgDiAEBEk8KFXVybF9jdXN0b21fcGFyYW1ldGVycxgHIAMoCzIwLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uQ3VzdG9tUGFyYW1ldGVyEh0K", - "EGZpbmFsX3VybF9zdWZmaXgYDyABKAlIBIgBAUIMCgpfbGlua190ZXh0QggK", - "Bl9saW5lMUIICgZfbGluZTJCGAoWX3RyYWNraW5nX3VybF90ZW1wbGF0ZUIT", - "ChFfZmluYWxfdXJsX3N1ZmZpeCJgChRIb3RlbENhbGxvdXRGZWVkSXRlbRIR", - "CgR0ZXh0GAMgASgJSACIAQESGgoNbGFuZ3VhZ2VfY29kZRgEIAEoCUgBiAEB", - "QgcKBV90ZXh0QhAKDl9sYW5ndWFnZV9jb2RlIkwKDUltYWdlRmVlZEl0ZW0S", - "OwoLaW1hZ2VfYXNzZXQYASABKAlCJuBBAvpBIAoeZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0Fzc2V0Qu8BCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbkIPRXh0ZW5zaW9uc1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvY29t", - "bW9uO2NvbW1vbqICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5D", - "b21tb27KAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcQ29tbW9u6gIjR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpDb21tb25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.FeedCommonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AppStoreReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AppFeedItem), global::Google.Ads.GoogleAds.V12.Common.AppFeedItem.Parser, new[]{ "LinkText", "AppId", "AppStore", "FinalUrls", "FinalMobileUrls", "TrackingUrlTemplate", "UrlCustomParameters", "FinalUrlSuffix" }, new[]{ "LinkText", "AppId", "TrackingUrlTemplate", "FinalUrlSuffix" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CallFeedItem), global::Google.Ads.GoogleAds.V12.Common.CallFeedItem.Parser, new[]{ "PhoneNumber", "CountryCode", "CallTrackingEnabled", "CallConversionAction", "CallConversionTrackingDisabled", "CallConversionReportingState" }, new[]{ "PhoneNumber", "CountryCode", "CallTrackingEnabled", "CallConversionAction", "CallConversionTrackingDisabled" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem), global::Google.Ads.GoogleAds.V12.Common.CalloutFeedItem.Parser, new[]{ "CalloutText" }, new[]{ "CalloutText" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem), global::Google.Ads.GoogleAds.V12.Common.LocationFeedItem.Parser, new[]{ "BusinessName", "AddressLine1", "AddressLine2", "City", "Province", "PostalCode", "CountryCode", "PhoneNumber" }, new[]{ "BusinessName", "AddressLine1", "AddressLine2", "City", "Province", "PostalCode", "CountryCode", "PhoneNumber" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem), global::Google.Ads.GoogleAds.V12.Common.AffiliateLocationFeedItem.Parser, new[]{ "BusinessName", "AddressLine1", "AddressLine2", "City", "Province", "PostalCode", "CountryCode", "PhoneNumber", "ChainId", "ChainName" }, new[]{ "BusinessName", "AddressLine1", "AddressLine2", "City", "Province", "PostalCode", "CountryCode", "PhoneNumber", "ChainId", "ChainName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem), global::Google.Ads.GoogleAds.V12.Common.TextMessageFeedItem.Parser, new[]{ "BusinessName", "CountryCode", "PhoneNumber", "Text", "ExtensionText" }, new[]{ "BusinessName", "CountryCode", "PhoneNumber", "Text", "ExtensionText" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem), global::Google.Ads.GoogleAds.V12.Common.PriceFeedItem.Parser, new[]{ "Type", "PriceQualifier", "TrackingUrlTemplate", "LanguageCode", "PriceOfferings", "FinalUrlSuffix" }, new[]{ "TrackingUrlTemplate", "LanguageCode", "FinalUrlSuffix" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PriceOffer), global::Google.Ads.GoogleAds.V12.Common.PriceOffer.Parser, new[]{ "Header", "Description", "Price", "Unit", "FinalUrls", "FinalMobileUrls" }, new[]{ "Header", "Description" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem), global::Google.Ads.GoogleAds.V12.Common.PromotionFeedItem.Parser, new[]{ "PromotionTarget", "DiscountModifier", "PromotionStartDate", "PromotionEndDate", "Occasion", "FinalUrls", "FinalMobileUrls", "TrackingUrlTemplate", "UrlCustomParameters", "FinalUrlSuffix", "LanguageCode", "PercentOff", "MoneyAmountOff", "PromotionCode", "OrdersOverAmount" }, new[]{ "DiscountType", "PromotionTrigger", "PromotionTarget", "PromotionStartDate", "PromotionEndDate", "TrackingUrlTemplate", "FinalUrlSuffix", "LanguageCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem), global::Google.Ads.GoogleAds.V12.Common.StructuredSnippetFeedItem.Parser, new[]{ "Header", "Values" }, new[]{ "Header" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem), global::Google.Ads.GoogleAds.V12.Common.SitelinkFeedItem.Parser, new[]{ "LinkText", "Line1", "Line2", "FinalUrls", "FinalMobileUrls", "TrackingUrlTemplate", "UrlCustomParameters", "FinalUrlSuffix" }, new[]{ "LinkText", "Line1", "Line2", "TrackingUrlTemplate", "FinalUrlSuffix" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem), global::Google.Ads.GoogleAds.V12.Common.HotelCalloutFeedItem.Parser, new[]{ "Text", "LanguageCode" }, new[]{ "Text", "LanguageCode" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem), global::Google.Ads.GoogleAds.V12.Common.ImageFeedItem.Parser, new[]{ "ImageAsset" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents an App extension. - /// - public sealed partial class AppFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppFeedItem(AppFeedItem other) : this() { - linkText_ = other.linkText_; - appId_ = other.appId_; - appStore_ = other.appStore_; - finalUrls_ = other.finalUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - trackingUrlTemplate_ = other.trackingUrlTemplate_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - finalUrlSuffix_ = other.finalUrlSuffix_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppFeedItem Clone() { - return new AppFeedItem(this); - } - - /// Field number for the "link_text" field. - public const int LinkTextFieldNumber = 9; - private string linkText_; - /// - /// The visible text displayed when the link is rendered in an ad. - /// This string must not be empty, and the length of this string should - /// be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LinkText { - get { return linkText_ ?? ""; } - set { - linkText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "link_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLinkText { - get { return linkText_ != null; } - } - /// Clears the value of the "link_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLinkText() { - linkText_ = null; - } - - /// Field number for the "app_id" field. - public const int AppIdFieldNumber = 10; - private string appId_; - /// - /// The store-specific ID for the target application. - /// This string must not be empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AppId { - get { return appId_ ?? ""; } - set { - appId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "app_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAppId { - get { return appId_ != null; } - } - /// Clears the value of the "app_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAppId() { - appId_ = null; - } - - /// Field number for the "app_store" field. - public const int AppStoreFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore appStore_ = global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore.Unspecified; - /// - /// The application store that the target application belongs to. - /// This field is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore AppStore { - get { return appStore_; } - set { - appStore_ = value; - } - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(90); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final URLs after all cross domain redirects. - /// This list must not be empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(98); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final mobile URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 13; - private string trackingUrlTemplate_; - /// - /// URL template for constructing a tracking URL. Default value is "{lpurl}". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// A list of mappings to be used for substituting URL custom parameter tags in - /// the tracking_url_template, final_urls, and/or final_mobile_urls. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 14; - private string finalUrlSuffix_; - /// - /// URL template for appending params to landing page URLs served with parallel - /// tracking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AppFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LinkText != other.LinkText) return false; - if (AppId != other.AppId) return false; - if (AppStore != other.AppStore) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLinkText) hash ^= LinkText.GetHashCode(); - if (HasAppId) hash ^= AppId.GetHashCode(); - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore.Unspecified) hash ^= AppStore.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AppStore); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (HasLinkText) { - output.WriteRawTag(74); - output.WriteString(LinkText); - } - if (HasAppId) { - output.WriteRawTag(82); - output.WriteString(AppId); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(106); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(114); - output.WriteString(FinalUrlSuffix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) AppStore); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (HasLinkText) { - output.WriteRawTag(74); - output.WriteString(LinkText); - } - if (HasAppId) { - output.WriteRawTag(82); - output.WriteString(AppId); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(106); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(114); - output.WriteString(FinalUrlSuffix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLinkText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LinkText); - } - if (HasAppId) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AppId); - } - if (AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppStore); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (HasFinalUrlSuffix) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppFeedItem other) { - if (other == null) { - return; - } - if (other.HasLinkText) { - LinkText = other.LinkText; - } - if (other.HasAppId) { - AppId = other.AppId; - } - if (other.AppStore != global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore.Unspecified) { - AppStore = other.AppStore; - } - finalUrls_.Add(other.finalUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore) input.ReadEnum(); - break; - } - case 58: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 74: { - LinkText = input.ReadString(); - break; - } - case 82: { - AppId = input.ReadString(); - break; - } - case 90: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 98: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - case 106: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 114: { - FinalUrlSuffix = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - AppStore = (global::Google.Ads.GoogleAds.V12.Enums.AppStoreEnum.Types.AppStore) input.ReadEnum(); - break; - } - case 58: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 74: { - LinkText = input.ReadString(); - break; - } - case 82: { - AppId = input.ReadString(); - break; - } - case 90: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 98: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - case 106: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 114: { - FinalUrlSuffix = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a Call extension. - /// - public sealed partial class CallFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CallFeedItem()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallFeedItem(CallFeedItem other) : this() { - _hasBits0 = other._hasBits0; - phoneNumber_ = other.phoneNumber_; - countryCode_ = other.countryCode_; - callTrackingEnabled_ = other.callTrackingEnabled_; - callConversionAction_ = other.callConversionAction_; - callConversionTrackingDisabled_ = other.callConversionTrackingDisabled_; - callConversionReportingState_ = other.callConversionReportingState_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CallFeedItem Clone() { - return new CallFeedItem(this); - } - - /// Field number for the "phone_number" field. - public const int PhoneNumberFieldNumber = 7; - private string phoneNumber_; - /// - /// The advertiser's phone number to append to the ad. - /// This string must not be empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PhoneNumber { - get { return phoneNumber_ ?? ""; } - set { - phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "phone_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPhoneNumber { - get { return phoneNumber_ != null; } - } - /// Clears the value of the "phone_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPhoneNumber() { - phoneNumber_ = null; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 8; - private string countryCode_; - /// - /// Uppercase two-letter country code of the advertiser's phone number. - /// This string must not be empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "call_tracking_enabled" field. - public const int CallTrackingEnabledFieldNumber = 9; - private bool callTrackingEnabled_; - /// - /// Indicates whether call tracking is enabled. By default, call tracking is - /// not enabled. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CallTrackingEnabled { - get { if ((_hasBits0 & 1) != 0) { return callTrackingEnabled_; } else { return false; } } - set { - _hasBits0 |= 1; - callTrackingEnabled_ = value; - } - } - /// Gets whether the "call_tracking_enabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallTrackingEnabled { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "call_tracking_enabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallTrackingEnabled() { - _hasBits0 &= ~1; - } - - /// Field number for the "call_conversion_action" field. - public const int CallConversionActionFieldNumber = 10; - private string callConversionAction_; - /// - /// The conversion action to attribute a call conversion to. If not set a - /// default conversion action is used. This field only has effect if - /// call_tracking_enabled is set to true. Otherwise this field is ignored. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CallConversionAction { - get { return callConversionAction_ ?? ""; } - set { - callConversionAction_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "call_conversion_action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallConversionAction { - get { return callConversionAction_ != null; } - } - /// Clears the value of the "call_conversion_action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallConversionAction() { - callConversionAction_ = null; - } - - /// Field number for the "call_conversion_tracking_disabled" field. - public const int CallConversionTrackingDisabledFieldNumber = 11; - private bool callConversionTrackingDisabled_; - /// - /// If true, disable call conversion tracking. call_conversion_action should - /// not be set if this is true. Optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool CallConversionTrackingDisabled { - get { if ((_hasBits0 & 2) != 0) { return callConversionTrackingDisabled_; } else { return false; } } - set { - _hasBits0 |= 2; - callConversionTrackingDisabled_ = value; - } - } - /// Gets whether the "call_conversion_tracking_disabled" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCallConversionTrackingDisabled { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "call_conversion_tracking_disabled" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCallConversionTrackingDisabled() { - _hasBits0 &= ~2; - } - - /// Field number for the "call_conversion_reporting_state" field. - public const int CallConversionReportingStateFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState callConversionReportingState_ = global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified; - /// - /// Enum value that indicates whether this call extension uses its own call - /// conversion setting (or just have call conversion disabled), or following - /// the account level setting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState CallConversionReportingState { - get { return callConversionReportingState_; } - set { - callConversionReportingState_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CallFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CallFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PhoneNumber != other.PhoneNumber) return false; - if (CountryCode != other.CountryCode) return false; - if (CallTrackingEnabled != other.CallTrackingEnabled) return false; - if (CallConversionAction != other.CallConversionAction) return false; - if (CallConversionTrackingDisabled != other.CallConversionTrackingDisabled) return false; - if (CallConversionReportingState != other.CallConversionReportingState) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasCallTrackingEnabled) hash ^= CallTrackingEnabled.GetHashCode(); - if (HasCallConversionAction) hash ^= CallConversionAction.GetHashCode(); - if (HasCallConversionTrackingDisabled) hash ^= CallConversionTrackingDisabled.GetHashCode(); - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) hash ^= CallConversionReportingState.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) CallConversionReportingState); - } - if (HasPhoneNumber) { - output.WriteRawTag(58); - output.WriteString(PhoneNumber); - } - if (HasCountryCode) { - output.WriteRawTag(66); - output.WriteString(CountryCode); - } - if (HasCallTrackingEnabled) { - output.WriteRawTag(72); - output.WriteBool(CallTrackingEnabled); - } - if (HasCallConversionAction) { - output.WriteRawTag(82); - output.WriteString(CallConversionAction); - } - if (HasCallConversionTrackingDisabled) { - output.WriteRawTag(88); - output.WriteBool(CallConversionTrackingDisabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) CallConversionReportingState); - } - if (HasPhoneNumber) { - output.WriteRawTag(58); - output.WriteString(PhoneNumber); - } - if (HasCountryCode) { - output.WriteRawTag(66); - output.WriteString(CountryCode); - } - if (HasCallTrackingEnabled) { - output.WriteRawTag(72); - output.WriteBool(CallTrackingEnabled); - } - if (HasCallConversionAction) { - output.WriteRawTag(82); - output.WriteString(CallConversionAction); - } - if (HasCallConversionTrackingDisabled) { - output.WriteRawTag(88); - output.WriteBool(CallConversionTrackingDisabled); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasPhoneNumber) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasCallTrackingEnabled) { - size += 1 + 1; - } - if (HasCallConversionAction) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CallConversionAction); - } - if (HasCallConversionTrackingDisabled) { - size += 1 + 1; - } - if (CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallConversionReportingState); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CallFeedItem other) { - if (other == null) { - return; - } - if (other.HasPhoneNumber) { - PhoneNumber = other.PhoneNumber; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasCallTrackingEnabled) { - CallTrackingEnabled = other.CallTrackingEnabled; - } - if (other.HasCallConversionAction) { - CallConversionAction = other.CallConversionAction; - } - if (other.HasCallConversionTrackingDisabled) { - CallConversionTrackingDisabled = other.CallConversionTrackingDisabled; - } - if (other.CallConversionReportingState != global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState.Unspecified) { - CallConversionReportingState = other.CallConversionReportingState; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 48: { - CallConversionReportingState = (global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState) input.ReadEnum(); - break; - } - case 58: { - PhoneNumber = input.ReadString(); - break; - } - case 66: { - CountryCode = input.ReadString(); - break; - } - case 72: { - CallTrackingEnabled = input.ReadBool(); - break; - } - case 82: { - CallConversionAction = input.ReadString(); - break; - } - case 88: { - CallConversionTrackingDisabled = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 48: { - CallConversionReportingState = (global::Google.Ads.GoogleAds.V12.Enums.CallConversionReportingStateEnum.Types.CallConversionReportingState) input.ReadEnum(); - break; - } - case 58: { - PhoneNumber = input.ReadString(); - break; - } - case 66: { - CountryCode = input.ReadString(); - break; - } - case 72: { - CallTrackingEnabled = input.ReadBool(); - break; - } - case 82: { - CallConversionAction = input.ReadString(); - break; - } - case 88: { - CallConversionTrackingDisabled = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a callout extension. - /// - public sealed partial class CalloutFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CalloutFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutFeedItem(CalloutFeedItem other) : this() { - calloutText_ = other.calloutText_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CalloutFeedItem Clone() { - return new CalloutFeedItem(this); - } - - /// Field number for the "callout_text" field. - public const int CalloutTextFieldNumber = 2; - private string calloutText_; - /// - /// The callout text. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CalloutText { - get { return calloutText_ ?? ""; } - set { - calloutText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "callout_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCalloutText { - get { return calloutText_ != null; } - } - /// Clears the value of the "callout_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCalloutText() { - calloutText_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as CalloutFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CalloutFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CalloutText != other.CalloutText) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCalloutText) hash ^= CalloutText.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCalloutText) { - output.WriteRawTag(18); - output.WriteString(CalloutText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCalloutText) { - output.WriteRawTag(18); - output.WriteString(CalloutText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCalloutText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CalloutText); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CalloutFeedItem other) { - if (other == null) { - return; - } - if (other.HasCalloutText) { - CalloutText = other.CalloutText; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - CalloutText = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - CalloutText = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a location extension. - /// - public sealed partial class LocationFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationFeedItem(LocationFeedItem other) : this() { - businessName_ = other.businessName_; - addressLine1_ = other.addressLine1_; - addressLine2_ = other.addressLine2_; - city_ = other.city_; - province_ = other.province_; - postalCode_ = other.postalCode_; - countryCode_ = other.countryCode_; - phoneNumber_ = other.phoneNumber_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationFeedItem Clone() { - return new LocationFeedItem(this); - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 9; - private string businessName_; - /// - /// The name of the business. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_ ?? ""; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "business_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBusinessName { - get { return businessName_ != null; } - } - /// Clears the value of the "business_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBusinessName() { - businessName_ = null; - } - - /// Field number for the "address_line_1" field. - public const int AddressLine1FieldNumber = 10; - private string addressLine1_; - /// - /// Line 1 of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AddressLine1 { - get { return addressLine1_ ?? ""; } - set { - addressLine1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "address_line_1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAddressLine1 { - get { return addressLine1_ != null; } - } - /// Clears the value of the "address_line_1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAddressLine1() { - addressLine1_ = null; - } - - /// Field number for the "address_line_2" field. - public const int AddressLine2FieldNumber = 11; - private string addressLine2_; - /// - /// Line 2 of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AddressLine2 { - get { return addressLine2_ ?? ""; } - set { - addressLine2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "address_line_2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAddressLine2 { - get { return addressLine2_ != null; } - } - /// Clears the value of the "address_line_2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAddressLine2() { - addressLine2_ = null; - } - - /// Field number for the "city" field. - public const int CityFieldNumber = 12; - private string city_; - /// - /// City of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string City { - get { return city_ ?? ""; } - set { - city_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "city" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCity { - get { return city_ != null; } - } - /// Clears the value of the "city" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCity() { - city_ = null; - } - - /// Field number for the "province" field. - public const int ProvinceFieldNumber = 13; - private string province_; - /// - /// Province of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Province { - get { return province_ ?? ""; } - set { - province_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "province" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProvince { - get { return province_ != null; } - } - /// Clears the value of the "province" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProvince() { - province_ = null; - } - - /// Field number for the "postal_code" field. - public const int PostalCodeFieldNumber = 14; - private string postalCode_; - /// - /// Postal code of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PostalCode { - get { return postalCode_ ?? ""; } - set { - postalCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "postal_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPostalCode { - get { return postalCode_ != null; } - } - /// Clears the value of the "postal_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPostalCode() { - postalCode_ = null; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 15; - private string countryCode_; - /// - /// Country code of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "phone_number" field. - public const int PhoneNumberFieldNumber = 16; - private string phoneNumber_; - /// - /// Phone number of the business. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PhoneNumber { - get { return phoneNumber_ ?? ""; } - set { - phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "phone_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPhoneNumber { - get { return phoneNumber_ != null; } - } - /// Clears the value of the "phone_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPhoneNumber() { - phoneNumber_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BusinessName != other.BusinessName) return false; - if (AddressLine1 != other.AddressLine1) return false; - if (AddressLine2 != other.AddressLine2) return false; - if (City != other.City) return false; - if (Province != other.Province) return false; - if (PostalCode != other.PostalCode) return false; - if (CountryCode != other.CountryCode) return false; - if (PhoneNumber != other.PhoneNumber) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasBusinessName) hash ^= BusinessName.GetHashCode(); - if (HasAddressLine1) hash ^= AddressLine1.GetHashCode(); - if (HasAddressLine2) hash ^= AddressLine2.GetHashCode(); - if (HasCity) hash ^= City.GetHashCode(); - if (HasProvince) hash ^= Province.GetHashCode(); - if (HasPostalCode) hash ^= PostalCode.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasBusinessName) { - output.WriteRawTag(74); - output.WriteString(BusinessName); - } - if (HasAddressLine1) { - output.WriteRawTag(82); - output.WriteString(AddressLine1); - } - if (HasAddressLine2) { - output.WriteRawTag(90); - output.WriteString(AddressLine2); - } - if (HasCity) { - output.WriteRawTag(98); - output.WriteString(City); - } - if (HasProvince) { - output.WriteRawTag(106); - output.WriteString(Province); - } - if (HasPostalCode) { - output.WriteRawTag(114); - output.WriteString(PostalCode); - } - if (HasCountryCode) { - output.WriteRawTag(122); - output.WriteString(CountryCode); - } - if (HasPhoneNumber) { - output.WriteRawTag(130, 1); - output.WriteString(PhoneNumber); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasBusinessName) { - output.WriteRawTag(74); - output.WriteString(BusinessName); - } - if (HasAddressLine1) { - output.WriteRawTag(82); - output.WriteString(AddressLine1); - } - if (HasAddressLine2) { - output.WriteRawTag(90); - output.WriteString(AddressLine2); - } - if (HasCity) { - output.WriteRawTag(98); - output.WriteString(City); - } - if (HasProvince) { - output.WriteRawTag(106); - output.WriteString(Province); - } - if (HasPostalCode) { - output.WriteRawTag(114); - output.WriteString(PostalCode); - } - if (HasCountryCode) { - output.WriteRawTag(122); - output.WriteString(CountryCode); - } - if (HasPhoneNumber) { - output.WriteRawTag(130, 1); - output.WriteString(PhoneNumber); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasBusinessName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (HasAddressLine1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AddressLine1); - } - if (HasAddressLine2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AddressLine2); - } - if (HasCity) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(City); - } - if (HasProvince) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Province); - } - if (HasPostalCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PostalCode); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasPhoneNumber) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationFeedItem other) { - if (other == null) { - return; - } - if (other.HasBusinessName) { - BusinessName = other.BusinessName; - } - if (other.HasAddressLine1) { - AddressLine1 = other.AddressLine1; - } - if (other.HasAddressLine2) { - AddressLine2 = other.AddressLine2; - } - if (other.HasCity) { - City = other.City; - } - if (other.HasProvince) { - Province = other.Province; - } - if (other.HasPostalCode) { - PostalCode = other.PostalCode; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasPhoneNumber) { - PhoneNumber = other.PhoneNumber; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 74: { - BusinessName = input.ReadString(); - break; - } - case 82: { - AddressLine1 = input.ReadString(); - break; - } - case 90: { - AddressLine2 = input.ReadString(); - break; - } - case 98: { - City = input.ReadString(); - break; - } - case 106: { - Province = input.ReadString(); - break; - } - case 114: { - PostalCode = input.ReadString(); - break; - } - case 122: { - CountryCode = input.ReadString(); - break; - } - case 130: { - PhoneNumber = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 74: { - BusinessName = input.ReadString(); - break; - } - case 82: { - AddressLine1 = input.ReadString(); - break; - } - case 90: { - AddressLine2 = input.ReadString(); - break; - } - case 98: { - City = input.ReadString(); - break; - } - case 106: { - Province = input.ReadString(); - break; - } - case 114: { - PostalCode = input.ReadString(); - break; - } - case 122: { - CountryCode = input.ReadString(); - break; - } - case 130: { - PhoneNumber = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents an affiliate location extension. - /// - public sealed partial class AffiliateLocationFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffiliateLocationFeedItem()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedItem(AffiliateLocationFeedItem other) : this() { - _hasBits0 = other._hasBits0; - businessName_ = other.businessName_; - addressLine1_ = other.addressLine1_; - addressLine2_ = other.addressLine2_; - city_ = other.city_; - province_ = other.province_; - postalCode_ = other.postalCode_; - countryCode_ = other.countryCode_; - phoneNumber_ = other.phoneNumber_; - chainId_ = other.chainId_; - chainName_ = other.chainName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedItem Clone() { - return new AffiliateLocationFeedItem(this); - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 11; - private string businessName_; - /// - /// The name of the business. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_ ?? ""; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "business_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBusinessName { - get { return businessName_ != null; } - } - /// Clears the value of the "business_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBusinessName() { - businessName_ = null; - } - - /// Field number for the "address_line_1" field. - public const int AddressLine1FieldNumber = 12; - private string addressLine1_; - /// - /// Line 1 of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AddressLine1 { - get { return addressLine1_ ?? ""; } - set { - addressLine1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "address_line_1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAddressLine1 { - get { return addressLine1_ != null; } - } - /// Clears the value of the "address_line_1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAddressLine1() { - addressLine1_ = null; - } - - /// Field number for the "address_line_2" field. - public const int AddressLine2FieldNumber = 13; - private string addressLine2_; - /// - /// Line 2 of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AddressLine2 { - get { return addressLine2_ ?? ""; } - set { - addressLine2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "address_line_2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAddressLine2 { - get { return addressLine2_ != null; } - } - /// Clears the value of the "address_line_2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAddressLine2() { - addressLine2_ = null; - } - - /// Field number for the "city" field. - public const int CityFieldNumber = 14; - private string city_; - /// - /// City of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string City { - get { return city_ ?? ""; } - set { - city_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "city" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCity { - get { return city_ != null; } - } - /// Clears the value of the "city" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCity() { - city_ = null; - } - - /// Field number for the "province" field. - public const int ProvinceFieldNumber = 15; - private string province_; - /// - /// Province of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Province { - get { return province_ ?? ""; } - set { - province_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "province" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasProvince { - get { return province_ != null; } - } - /// Clears the value of the "province" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearProvince() { - province_ = null; - } - - /// Field number for the "postal_code" field. - public const int PostalCodeFieldNumber = 16; - private string postalCode_; - /// - /// Postal code of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PostalCode { - get { return postalCode_ ?? ""; } - set { - postalCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "postal_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPostalCode { - get { return postalCode_ != null; } - } - /// Clears the value of the "postal_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPostalCode() { - postalCode_ = null; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 17; - private string countryCode_; - /// - /// Country code of the business address. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "phone_number" field. - public const int PhoneNumberFieldNumber = 18; - private string phoneNumber_; - /// - /// Phone number of the business. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PhoneNumber { - get { return phoneNumber_ ?? ""; } - set { - phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "phone_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPhoneNumber { - get { return phoneNumber_ != null; } - } - /// Clears the value of the "phone_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPhoneNumber() { - phoneNumber_ = null; - } - - /// Field number for the "chain_id" field. - public const int ChainIdFieldNumber = 19; - private long chainId_; - /// - /// Id of the retail chain that is advertised as a seller of your product. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ChainId { - get { if ((_hasBits0 & 1) != 0) { return chainId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - chainId_ = value; - } - } - /// Gets whether the "chain_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasChainId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "chain_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearChainId() { - _hasBits0 &= ~1; - } - - /// Field number for the "chain_name" field. - public const int ChainNameFieldNumber = 20; - private string chainName_; - /// - /// Name of chain. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ChainName { - get { return chainName_ ?? ""; } - set { - chainName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "chain_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasChainName { - get { return chainName_ != null; } - } - /// Clears the value of the "chain_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearChainName() { - chainName_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AffiliateLocationFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AffiliateLocationFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BusinessName != other.BusinessName) return false; - if (AddressLine1 != other.AddressLine1) return false; - if (AddressLine2 != other.AddressLine2) return false; - if (City != other.City) return false; - if (Province != other.Province) return false; - if (PostalCode != other.PostalCode) return false; - if (CountryCode != other.CountryCode) return false; - if (PhoneNumber != other.PhoneNumber) return false; - if (ChainId != other.ChainId) return false; - if (ChainName != other.ChainName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasBusinessName) hash ^= BusinessName.GetHashCode(); - if (HasAddressLine1) hash ^= AddressLine1.GetHashCode(); - if (HasAddressLine2) hash ^= AddressLine2.GetHashCode(); - if (HasCity) hash ^= City.GetHashCode(); - if (HasProvince) hash ^= Province.GetHashCode(); - if (HasPostalCode) hash ^= PostalCode.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode(); - if (HasChainId) hash ^= ChainId.GetHashCode(); - if (HasChainName) hash ^= ChainName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasBusinessName) { - output.WriteRawTag(90); - output.WriteString(BusinessName); - } - if (HasAddressLine1) { - output.WriteRawTag(98); - output.WriteString(AddressLine1); - } - if (HasAddressLine2) { - output.WriteRawTag(106); - output.WriteString(AddressLine2); - } - if (HasCity) { - output.WriteRawTag(114); - output.WriteString(City); - } - if (HasProvince) { - output.WriteRawTag(122); - output.WriteString(Province); - } - if (HasPostalCode) { - output.WriteRawTag(130, 1); - output.WriteString(PostalCode); - } - if (HasCountryCode) { - output.WriteRawTag(138, 1); - output.WriteString(CountryCode); - } - if (HasPhoneNumber) { - output.WriteRawTag(146, 1); - output.WriteString(PhoneNumber); - } - if (HasChainId) { - output.WriteRawTag(152, 1); - output.WriteInt64(ChainId); - } - if (HasChainName) { - output.WriteRawTag(162, 1); - output.WriteString(ChainName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasBusinessName) { - output.WriteRawTag(90); - output.WriteString(BusinessName); - } - if (HasAddressLine1) { - output.WriteRawTag(98); - output.WriteString(AddressLine1); - } - if (HasAddressLine2) { - output.WriteRawTag(106); - output.WriteString(AddressLine2); - } - if (HasCity) { - output.WriteRawTag(114); - output.WriteString(City); - } - if (HasProvince) { - output.WriteRawTag(122); - output.WriteString(Province); - } - if (HasPostalCode) { - output.WriteRawTag(130, 1); - output.WriteString(PostalCode); - } - if (HasCountryCode) { - output.WriteRawTag(138, 1); - output.WriteString(CountryCode); - } - if (HasPhoneNumber) { - output.WriteRawTag(146, 1); - output.WriteString(PhoneNumber); - } - if (HasChainId) { - output.WriteRawTag(152, 1); - output.WriteInt64(ChainId); - } - if (HasChainName) { - output.WriteRawTag(162, 1); - output.WriteString(ChainName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasBusinessName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (HasAddressLine1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AddressLine1); - } - if (HasAddressLine2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AddressLine2); - } - if (HasCity) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(City); - } - if (HasProvince) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Province); - } - if (HasPostalCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PostalCode); - } - if (HasCountryCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasPhoneNumber) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); - } - if (HasChainId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ChainId); - } - if (HasChainName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(ChainName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AffiliateLocationFeedItem other) { - if (other == null) { - return; - } - if (other.HasBusinessName) { - BusinessName = other.BusinessName; - } - if (other.HasAddressLine1) { - AddressLine1 = other.AddressLine1; - } - if (other.HasAddressLine2) { - AddressLine2 = other.AddressLine2; - } - if (other.HasCity) { - City = other.City; - } - if (other.HasProvince) { - Province = other.Province; - } - if (other.HasPostalCode) { - PostalCode = other.PostalCode; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasPhoneNumber) { - PhoneNumber = other.PhoneNumber; - } - if (other.HasChainId) { - ChainId = other.ChainId; - } - if (other.HasChainName) { - ChainName = other.ChainName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 90: { - BusinessName = input.ReadString(); - break; - } - case 98: { - AddressLine1 = input.ReadString(); - break; - } - case 106: { - AddressLine2 = input.ReadString(); - break; - } - case 114: { - City = input.ReadString(); - break; - } - case 122: { - Province = input.ReadString(); - break; - } - case 130: { - PostalCode = input.ReadString(); - break; - } - case 138: { - CountryCode = input.ReadString(); - break; - } - case 146: { - PhoneNumber = input.ReadString(); - break; - } - case 152: { - ChainId = input.ReadInt64(); - break; - } - case 162: { - ChainName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 90: { - BusinessName = input.ReadString(); - break; - } - case 98: { - AddressLine1 = input.ReadString(); - break; - } - case 106: { - AddressLine2 = input.ReadString(); - break; - } - case 114: { - City = input.ReadString(); - break; - } - case 122: { - Province = input.ReadString(); - break; - } - case 130: { - PostalCode = input.ReadString(); - break; - } - case 138: { - CountryCode = input.ReadString(); - break; - } - case 146: { - PhoneNumber = input.ReadString(); - break; - } - case 152: { - ChainId = input.ReadInt64(); - break; - } - case 162: { - ChainName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An extension that users can click on to send a text message to the - /// advertiser. - /// - public sealed partial class TextMessageFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextMessageFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextMessageFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextMessageFeedItem(TextMessageFeedItem other) : this() { - businessName_ = other.businessName_; - countryCode_ = other.countryCode_; - phoneNumber_ = other.phoneNumber_; - text_ = other.text_; - extensionText_ = other.extensionText_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextMessageFeedItem Clone() { - return new TextMessageFeedItem(this); - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 6; - private string businessName_; - /// - /// The business name to prepend to the message text. - /// This field is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_ ?? ""; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "business_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBusinessName { - get { return businessName_ != null; } - } - /// Clears the value of the "business_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBusinessName() { - businessName_ = null; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 7; - private string countryCode_; - /// - /// Uppercase two-letter country code of the advertiser's phone number. - /// This field is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "phone_number" field. - public const int PhoneNumberFieldNumber = 8; - private string phoneNumber_; - /// - /// The advertiser's phone number the message will be sent to. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PhoneNumber { - get { return phoneNumber_ ?? ""; } - set { - phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "phone_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPhoneNumber { - get { return phoneNumber_ != null; } - } - /// Clears the value of the "phone_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPhoneNumber() { - phoneNumber_ = null; - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 9; - private string text_; - /// - /// The text to show in the ad. - /// This field is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "extension_text" field. - public const int ExtensionTextFieldNumber = 10; - private string extensionText_; - /// - /// The message extension_text populated in the messaging app. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ExtensionText { - get { return extensionText_ ?? ""; } - set { - extensionText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "extension_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExtensionText { - get { return extensionText_ != null; } - } - /// Clears the value of the "extension_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExtensionText() { - extensionText_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as TextMessageFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TextMessageFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BusinessName != other.BusinessName) return false; - if (CountryCode != other.CountryCode) return false; - if (PhoneNumber != other.PhoneNumber) return false; - if (Text != other.Text) return false; - if (ExtensionText != other.ExtensionText) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasBusinessName) hash ^= BusinessName.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode(); - if (HasText) hash ^= Text.GetHashCode(); - if (HasExtensionText) hash ^= ExtensionText.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasBusinessName) { - output.WriteRawTag(50); - output.WriteString(BusinessName); - } - if (HasCountryCode) { - output.WriteRawTag(58); - output.WriteString(CountryCode); - } - if (HasPhoneNumber) { - output.WriteRawTag(66); - output.WriteString(PhoneNumber); - } - if (HasText) { - output.WriteRawTag(74); - output.WriteString(Text); - } - if (HasExtensionText) { - output.WriteRawTag(82); - output.WriteString(ExtensionText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasBusinessName) { - output.WriteRawTag(50); - output.WriteString(BusinessName); - } - if (HasCountryCode) { - output.WriteRawTag(58); - output.WriteString(CountryCode); - } - if (HasPhoneNumber) { - output.WriteRawTag(66); - output.WriteString(PhoneNumber); - } - if (HasText) { - output.WriteRawTag(74); - output.WriteString(Text); - } - if (HasExtensionText) { - output.WriteRawTag(82); - output.WriteString(ExtensionText); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasBusinessName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasPhoneNumber) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); - } - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (HasExtensionText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ExtensionText); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TextMessageFeedItem other) { - if (other == null) { - return; - } - if (other.HasBusinessName) { - BusinessName = other.BusinessName; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasPhoneNumber) { - PhoneNumber = other.PhoneNumber; - } - if (other.HasText) { - Text = other.Text; - } - if (other.HasExtensionText) { - ExtensionText = other.ExtensionText; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 50: { - BusinessName = input.ReadString(); - break; - } - case 58: { - CountryCode = input.ReadString(); - break; - } - case 66: { - PhoneNumber = input.ReadString(); - break; - } - case 74: { - Text = input.ReadString(); - break; - } - case 82: { - ExtensionText = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 50: { - BusinessName = input.ReadString(); - break; - } - case 58: { - CountryCode = input.ReadString(); - break; - } - case 66: { - PhoneNumber = input.ReadString(); - break; - } - case 74: { - Text = input.ReadString(); - break; - } - case 82: { - ExtensionText = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a Price extension. - /// - public sealed partial class PriceFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PriceFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceFeedItem(PriceFeedItem other) : this() { - type_ = other.type_; - priceQualifier_ = other.priceQualifier_; - trackingUrlTemplate_ = other.trackingUrlTemplate_; - languageCode_ = other.languageCode_; - priceOfferings_ = other.priceOfferings_.Clone(); - finalUrlSuffix_ = other.finalUrlSuffix_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceFeedItem Clone() { - return new PriceFeedItem(this); - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType type_ = global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified; - /// - /// Price extension type of this extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "price_qualifier" field. - public const int PriceQualifierFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier priceQualifier_ = global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified; - /// - /// Price qualifier for all offers of this price extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier PriceQualifier { - get { return priceQualifier_; } - set { - priceQualifier_ = value; - } - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 7; - private string trackingUrlTemplate_; - /// - /// Tracking URL template for all offers of this price extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 8; - private string languageCode_; - /// - /// The code of the language used for this price extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_ ?? ""; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguageCode { - get { return languageCode_ != null; } - } - /// Clears the value of the "language_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguageCode() { - languageCode_ = null; - } - - /// Field number for the "price_offerings" field. - public const int PriceOfferingsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_priceOfferings_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.PriceOffer.Parser); - private readonly pbc::RepeatedField priceOfferings_ = new pbc::RepeatedField(); - /// - /// The price offerings in this price extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PriceOfferings { - get { return priceOfferings_; } - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 9; - private string finalUrlSuffix_; - /// - /// Tracking URL template for all offers of this price extension. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PriceFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PriceFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Type != other.Type) return false; - if (PriceQualifier != other.PriceQualifier) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if (LanguageCode != other.LanguageCode) return false; - if(!priceOfferings_.Equals(other.priceOfferings_)) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) hash ^= Type.GetHashCode(); - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) hash ^= PriceQualifier.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - if (HasLanguageCode) hash ^= LanguageCode.GetHashCode(); - hash ^= priceOfferings_.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PriceQualifier); - } - priceOfferings_.WriteTo(output, _repeated_priceOfferings_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(58); - output.WriteString(TrackingUrlTemplate); - } - if (HasLanguageCode) { - output.WriteRawTag(66); - output.WriteString(LanguageCode); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(74); - output.WriteString(FinalUrlSuffix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Type); - } - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PriceQualifier); - } - priceOfferings_.WriteTo(ref output, _repeated_priceOfferings_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(58); - output.WriteString(TrackingUrlTemplate); - } - if (HasLanguageCode) { - output.WriteRawTag(66); - output.WriteString(LanguageCode); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(74); - output.WriteString(FinalUrlSuffix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PriceQualifier); - } - if (HasTrackingUrlTemplate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - if (HasLanguageCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - size += priceOfferings_.CalculateSize(_repeated_priceOfferings_codec); - if (HasFinalUrlSuffix) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PriceFeedItem other) { - if (other == null) { - return; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType.Unspecified) { - Type = other.Type; - } - if (other.PriceQualifier != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier.Unspecified) { - PriceQualifier = other.PriceQualifier; - } - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - if (other.HasLanguageCode) { - LanguageCode = other.LanguageCode; - } - priceOfferings_.Add(other.priceOfferings_); - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType) input.ReadEnum(); - break; - } - case 16: { - PriceQualifier = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier) input.ReadEnum(); - break; - } - case 42: { - priceOfferings_.AddEntriesFrom(input, _repeated_priceOfferings_codec); - break; - } - case 58: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 66: { - LanguageCode = input.ReadString(); - break; - } - case 74: { - FinalUrlSuffix = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionTypeEnum.Types.PriceExtensionType) input.ReadEnum(); - break; - } - case 16: { - PriceQualifier = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceQualifierEnum.Types.PriceExtensionPriceQualifier) input.ReadEnum(); - break; - } - case 42: { - priceOfferings_.AddEntriesFrom(ref input, _repeated_priceOfferings_codec); - break; - } - case 58: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 66: { - LanguageCode = input.ReadString(); - break; - } - case 74: { - FinalUrlSuffix = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents one price offer in a price extension. - /// - public sealed partial class PriceOffer : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PriceOffer()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceOffer() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceOffer(PriceOffer other) : this() { - header_ = other.header_; - description_ = other.description_; - price_ = other.price_ != null ? other.price_.Clone() : null; - unit_ = other.unit_; - finalUrls_ = other.finalUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PriceOffer Clone() { - return new PriceOffer(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 7; - private string header_; - /// - /// Header text of this offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Header { - get { return header_ ?? ""; } - set { - header_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "header" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeader { - get { return header_ != null; } - } - /// Clears the value of the "header" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeader() { - header_ = null; - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 8; - private string description_; - /// - /// Description text of this offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_ ?? ""; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() { - description_ = null; - } - - /// Field number for the "price" field. - public const int PriceFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.Money price_; - /// - /// Price value of this offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Money Price { - get { return price_; } - set { - price_ = value; - } - } - - /// Field number for the "unit" field. - public const int UnitFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit unit_ = global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified; - /// - /// Price unit for this offer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit Unit { - get { return unit_; } - set { - unit_ = value; - } - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(74); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(82); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final mobile URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PriceOffer); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PriceOffer other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Header != other.Header) return false; - if (Description != other.Description) return false; - if (!object.Equals(Price, other.Price)) return false; - if (Unit != other.Unit) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHeader) hash ^= Header.GetHashCode(); - if (HasDescription) hash ^= Description.GetHashCode(); - if (price_ != null) hash ^= Price.GetHashCode(); - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) hash ^= Unit.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (price_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Price); - } - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Unit); - } - if (HasHeader) { - output.WriteRawTag(58); - output.WriteString(Header); - } - if (HasDescription) { - output.WriteRawTag(66); - output.WriteString(Description); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (price_ != null) { - output.WriteRawTag(26); - output.WriteMessage(Price); - } - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) Unit); - } - if (HasHeader) { - output.WriteRawTag(58); - output.WriteString(Header); - } - if (HasDescription) { - output.WriteRawTag(66); - output.WriteString(Description); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHeader) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Header); - } - if (HasDescription) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - if (price_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Price); - } - if (Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Unit); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PriceOffer other) { - if (other == null) { - return; - } - if (other.HasHeader) { - Header = other.Header; - } - if (other.HasDescription) { - Description = other.Description; - } - if (other.price_ != null) { - if (price_ == null) { - Price = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - Price.MergeFrom(other.Price); - } - if (other.Unit != global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit.Unspecified) { - Unit = other.Unit; - } - finalUrls_.Add(other.finalUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - if (price_ == null) { - Price = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - input.ReadMessage(Price); - break; - } - case 32: { - Unit = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit) input.ReadEnum(); - break; - } - case 58: { - Header = input.ReadString(); - break; - } - case 66: { - Description = input.ReadString(); - break; - } - case 74: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 82: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - if (price_ == null) { - Price = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - input.ReadMessage(Price); - break; - } - case 32: { - Unit = (global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit) input.ReadEnum(); - break; - } - case 58: { - Header = input.ReadString(); - break; - } - case 66: { - Description = input.ReadString(); - break; - } - case 74: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 82: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a Promotion extension. - /// - public sealed partial class PromotionFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PromotionFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionFeedItem(PromotionFeedItem other) : this() { - promotionTarget_ = other.promotionTarget_; - discountModifier_ = other.discountModifier_; - promotionStartDate_ = other.promotionStartDate_; - promotionEndDate_ = other.promotionEndDate_; - occasion_ = other.occasion_; - finalUrls_ = other.finalUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - trackingUrlTemplate_ = other.trackingUrlTemplate_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - finalUrlSuffix_ = other.finalUrlSuffix_; - languageCode_ = other.languageCode_; - switch (other.DiscountTypeCase) { - case DiscountTypeOneofCase.PercentOff: - PercentOff = other.PercentOff; - break; - case DiscountTypeOneofCase.MoneyAmountOff: - MoneyAmountOff = other.MoneyAmountOff.Clone(); - break; - } - - switch (other.PromotionTriggerCase) { - case PromotionTriggerOneofCase.PromotionCode: - PromotionCode = other.PromotionCode; - break; - case PromotionTriggerOneofCase.OrdersOverAmount: - OrdersOverAmount = other.OrdersOverAmount.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionFeedItem Clone() { - return new PromotionFeedItem(this); - } - - /// Field number for the "promotion_target" field. - public const int PromotionTargetFieldNumber = 16; - private string promotionTarget_; - /// - /// A freeform description of what the promotion is targeting. - /// This field is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromotionTarget { - get { return promotionTarget_ ?? ""; } - set { - promotionTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "promotion_target" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPromotionTarget { - get { return promotionTarget_ != null; } - } - /// Clears the value of the "promotion_target" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPromotionTarget() { - promotionTarget_ = null; - } - - /// Field number for the "discount_modifier" field. - public const int DiscountModifierFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier discountModifier_ = global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified; - /// - /// Enum that modifies the qualification of the discount. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier DiscountModifier { - get { return discountModifier_; } - set { - discountModifier_ = value; - } - } - - /// Field number for the "promotion_start_date" field. - public const int PromotionStartDateFieldNumber = 19; - private string promotionStartDate_; - /// - /// Start date of when the promotion is eligible to be redeemed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromotionStartDate { - get { return promotionStartDate_ ?? ""; } - set { - promotionStartDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "promotion_start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPromotionStartDate { - get { return promotionStartDate_ != null; } - } - /// Clears the value of the "promotion_start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPromotionStartDate() { - promotionStartDate_ = null; - } - - /// Field number for the "promotion_end_date" field. - public const int PromotionEndDateFieldNumber = 20; - private string promotionEndDate_; - /// - /// Last date when the promotion is eligible to be redeemed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromotionEndDate { - get { return promotionEndDate_ ?? ""; } - set { - promotionEndDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "promotion_end_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPromotionEndDate { - get { return promotionEndDate_ != null; } - } - /// Clears the value of the "promotion_end_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPromotionEndDate() { - promotionEndDate_ = null; - } - - /// Field number for the "occasion" field. - public const int OccasionFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion occasion_ = global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified; - /// - /// The occasion the promotion was intended for. - /// If an occasion is set, the redemption window will need to fall within - /// the date range associated with the occasion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion Occasion { - get { return occasion_; } - set { - occasion_ = value; - } - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 21; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(170); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final URLs after all cross domain redirects. - /// This field is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 22; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(178); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final mobile URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 23; - private string trackingUrlTemplate_; - /// - /// URL template for constructing a tracking URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(106, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// A list of mappings to be used for substituting URL custom parameter tags in - /// the tracking_url_template, final_urls, and/or final_mobile_urls. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 24; - private string finalUrlSuffix_; - /// - /// URL template for appending params to landing page URLs served with parallel - /// tracking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 25; - private string languageCode_; - /// - /// The language of the promotion. - /// Represented as BCP 47 language tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_ ?? ""; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguageCode { - get { return languageCode_ != null; } - } - /// Clears the value of the "language_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguageCode() { - languageCode_ = null; - } - - /// Field number for the "percent_off" field. - public const int PercentOffFieldNumber = 17; - /// - /// Percentage off discount in the promotion in micros. - /// One million is equivalent to one percent. - /// Either this or money_off_amount is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long PercentOff { - get { return discountTypeCase_ == DiscountTypeOneofCase.PercentOff ? (long) discountType_ : 0L; } - set { - discountType_ = value; - discountTypeCase_ = DiscountTypeOneofCase.PercentOff; - } - } - - /// Field number for the "money_amount_off" field. - public const int MoneyAmountOffFieldNumber = 4; - /// - /// Money amount off for discount in the promotion. - /// Either this or percent_off is required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Money MoneyAmountOff { - get { return discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff ? (global::Google.Ads.GoogleAds.V12.Common.Money) discountType_ : null; } - set { - discountType_ = value; - discountTypeCase_ = value == null ? DiscountTypeOneofCase.None : DiscountTypeOneofCase.MoneyAmountOff; - } - } - - /// Field number for the "promotion_code" field. - public const int PromotionCodeFieldNumber = 18; - /// - /// A code the user should use in order to be eligible for the promotion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PromotionCode { - get { return promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode ? (string) promotionTrigger_ : ""; } - set { - promotionTrigger_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - promotionTriggerCase_ = PromotionTriggerOneofCase.PromotionCode; - } - } - - /// Field number for the "orders_over_amount" field. - public const int OrdersOverAmountFieldNumber = 6; - /// - /// The amount the total order needs to be for the user to be eligible for - /// the promotion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Money OrdersOverAmount { - get { return promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount ? (global::Google.Ads.GoogleAds.V12.Common.Money) promotionTrigger_ : null; } - set { - promotionTrigger_ = value; - promotionTriggerCase_ = value == null ? PromotionTriggerOneofCase.None : PromotionTriggerOneofCase.OrdersOverAmount; - } - } - - private object discountType_; - /// Enum of possible cases for the "discount_type" oneof. - public enum DiscountTypeOneofCase { - None = 0, - PercentOff = 17, - MoneyAmountOff = 4, - } - private DiscountTypeOneofCase discountTypeCase_ = DiscountTypeOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DiscountTypeOneofCase DiscountTypeCase { - get { return discountTypeCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDiscountType() { - discountTypeCase_ = DiscountTypeOneofCase.None; - discountType_ = null; - } - - private object promotionTrigger_; - /// Enum of possible cases for the "promotion_trigger" oneof. - public enum PromotionTriggerOneofCase { - None = 0, - PromotionCode = 18, - OrdersOverAmount = 6, - } - private PromotionTriggerOneofCase promotionTriggerCase_ = PromotionTriggerOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PromotionTriggerOneofCase PromotionTriggerCase { - get { return promotionTriggerCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPromotionTrigger() { - promotionTriggerCase_ = PromotionTriggerOneofCase.None; - promotionTrigger_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PromotionFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PromotionFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PromotionTarget != other.PromotionTarget) return false; - if (DiscountModifier != other.DiscountModifier) return false; - if (PromotionStartDate != other.PromotionStartDate) return false; - if (PromotionEndDate != other.PromotionEndDate) return false; - if (Occasion != other.Occasion) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - if (LanguageCode != other.LanguageCode) return false; - if (PercentOff != other.PercentOff) return false; - if (!object.Equals(MoneyAmountOff, other.MoneyAmountOff)) return false; - if (PromotionCode != other.PromotionCode) return false; - if (!object.Equals(OrdersOverAmount, other.OrdersOverAmount)) return false; - if (DiscountTypeCase != other.DiscountTypeCase) return false; - if (PromotionTriggerCase != other.PromotionTriggerCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasPromotionTarget) hash ^= PromotionTarget.GetHashCode(); - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) hash ^= DiscountModifier.GetHashCode(); - if (HasPromotionStartDate) hash ^= PromotionStartDate.GetHashCode(); - if (HasPromotionEndDate) hash ^= PromotionEndDate.GetHashCode(); - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) hash ^= Occasion.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (HasLanguageCode) hash ^= LanguageCode.GetHashCode(); - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) hash ^= PercentOff.GetHashCode(); - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) hash ^= MoneyAmountOff.GetHashCode(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) hash ^= PromotionCode.GetHashCode(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) hash ^= OrdersOverAmount.GetHashCode(); - hash ^= (int) discountTypeCase_; - hash ^= (int) promotionTriggerCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DiscountModifier); - } - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - output.WriteRawTag(34); - output.WriteMessage(MoneyAmountOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - output.WriteRawTag(50); - output.WriteMessage(OrdersOverAmount); - } - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Occasion); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (HasPromotionTarget) { - output.WriteRawTag(130, 1); - output.WriteString(PromotionTarget); - } - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) { - output.WriteRawTag(136, 1); - output.WriteInt64(PercentOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) { - output.WriteRawTag(146, 1); - output.WriteString(PromotionCode); - } - if (HasPromotionStartDate) { - output.WriteRawTag(154, 1); - output.WriteString(PromotionStartDate); - } - if (HasPromotionEndDate) { - output.WriteRawTag(162, 1); - output.WriteString(PromotionEndDate); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(186, 1); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(194, 1); - output.WriteString(FinalUrlSuffix); - } - if (HasLanguageCode) { - output.WriteRawTag(202, 1); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) DiscountModifier); - } - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - output.WriteRawTag(34); - output.WriteMessage(MoneyAmountOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - output.WriteRawTag(50); - output.WriteMessage(OrdersOverAmount); - } - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Occasion); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (HasPromotionTarget) { - output.WriteRawTag(130, 1); - output.WriteString(PromotionTarget); - } - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) { - output.WriteRawTag(136, 1); - output.WriteInt64(PercentOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) { - output.WriteRawTag(146, 1); - output.WriteString(PromotionCode); - } - if (HasPromotionStartDate) { - output.WriteRawTag(154, 1); - output.WriteString(PromotionStartDate); - } - if (HasPromotionEndDate) { - output.WriteRawTag(162, 1); - output.WriteString(PromotionEndDate); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(186, 1); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(194, 1); - output.WriteString(FinalUrlSuffix); - } - if (HasLanguageCode) { - output.WriteRawTag(202, 1); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasPromotionTarget) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PromotionTarget); - } - if (DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DiscountModifier); - } - if (HasPromotionStartDate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PromotionStartDate); - } - if (HasPromotionEndDate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PromotionEndDate); - } - if (Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Occasion); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (HasFinalUrlSuffix) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (HasLanguageCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (discountTypeCase_ == DiscountTypeOneofCase.PercentOff) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(PercentOff); - } - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MoneyAmountOff); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.PromotionCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PromotionCode); - } - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OrdersOverAmount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PromotionFeedItem other) { - if (other == null) { - return; - } - if (other.HasPromotionTarget) { - PromotionTarget = other.PromotionTarget; - } - if (other.DiscountModifier != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier.Unspecified) { - DiscountModifier = other.DiscountModifier; - } - if (other.HasPromotionStartDate) { - PromotionStartDate = other.PromotionStartDate; - } - if (other.HasPromotionEndDate) { - PromotionEndDate = other.PromotionEndDate; - } - if (other.Occasion != global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion.Unspecified) { - Occasion = other.Occasion; - } - finalUrls_.Add(other.finalUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - if (other.HasLanguageCode) { - LanguageCode = other.LanguageCode; - } - switch (other.DiscountTypeCase) { - case DiscountTypeOneofCase.PercentOff: - PercentOff = other.PercentOff; - break; - case DiscountTypeOneofCase.MoneyAmountOff: - if (MoneyAmountOff == null) { - MoneyAmountOff = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - MoneyAmountOff.MergeFrom(other.MoneyAmountOff); - break; - } - - switch (other.PromotionTriggerCase) { - case PromotionTriggerOneofCase.PromotionCode: - PromotionCode = other.PromotionCode; - break; - case PromotionTriggerOneofCase.OrdersOverAmount: - if (OrdersOverAmount == null) { - OrdersOverAmount = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - OrdersOverAmount.MergeFrom(other.OrdersOverAmount); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - DiscountModifier = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier) input.ReadEnum(); - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - subBuilder.MergeFrom(MoneyAmountOff); - } - input.ReadMessage(subBuilder); - MoneyAmountOff = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - subBuilder.MergeFrom(OrdersOverAmount); - } - input.ReadMessage(subBuilder); - OrdersOverAmount = subBuilder; - break; - } - case 72: { - Occasion = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion) input.ReadEnum(); - break; - } - case 106: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 130: { - PromotionTarget = input.ReadString(); - break; - } - case 136: { - PercentOff = input.ReadInt64(); - break; - } - case 146: { - PromotionCode = input.ReadString(); - break; - } - case 154: { - PromotionStartDate = input.ReadString(); - break; - } - case 162: { - PromotionEndDate = input.ReadString(); - break; - } - case 170: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 178: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - case 186: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 194: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 202: { - LanguageCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - DiscountModifier = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionDiscountModifierEnum.Types.PromotionExtensionDiscountModifier) input.ReadEnum(); - break; - } - case 34: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (discountTypeCase_ == DiscountTypeOneofCase.MoneyAmountOff) { - subBuilder.MergeFrom(MoneyAmountOff); - } - input.ReadMessage(subBuilder); - MoneyAmountOff = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.Money subBuilder = new global::Google.Ads.GoogleAds.V12.Common.Money(); - if (promotionTriggerCase_ == PromotionTriggerOneofCase.OrdersOverAmount) { - subBuilder.MergeFrom(OrdersOverAmount); - } - input.ReadMessage(subBuilder); - OrdersOverAmount = subBuilder; - break; - } - case 72: { - Occasion = (global::Google.Ads.GoogleAds.V12.Enums.PromotionExtensionOccasionEnum.Types.PromotionExtensionOccasion) input.ReadEnum(); - break; - } - case 106: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 130: { - PromotionTarget = input.ReadString(); - break; - } - case 136: { - PercentOff = input.ReadInt64(); - break; - } - case 146: { - PromotionCode = input.ReadString(); - break; - } - case 154: { - PromotionStartDate = input.ReadString(); - break; - } - case 162: { - PromotionEndDate = input.ReadString(); - break; - } - case 170: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 178: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - case 186: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 194: { - FinalUrlSuffix = input.ReadString(); - break; - } - case 202: { - LanguageCode = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a structured snippet extension. - /// - public sealed partial class StructuredSnippetFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StructuredSnippetFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StructuredSnippetFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StructuredSnippetFeedItem(StructuredSnippetFeedItem other) : this() { - header_ = other.header_; - values_ = other.values_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public StructuredSnippetFeedItem Clone() { - return new StructuredSnippetFeedItem(this); - } - - /// Field number for the "header" field. - public const int HeaderFieldNumber = 3; - private string header_; - /// - /// The header of the snippet. - /// This string must not be empty. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Header { - get { return header_ ?? ""; } - set { - header_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "header" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeader { - get { return header_ != null; } - } - /// Clears the value of the "header" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeader() { - header_ = null; - } - - /// Field number for the "values" field. - public const int ValuesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_values_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); - /// - /// The values in the snippet. - /// The maximum size of this collection is 10. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Values { - get { return values_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as StructuredSnippetFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(StructuredSnippetFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Header != other.Header) return false; - if(!values_.Equals(other.values_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHeader) hash ^= Header.GetHashCode(); - hash ^= values_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasHeader) { - output.WriteRawTag(26); - output.WriteString(Header); - } - values_.WriteTo(output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasHeader) { - output.WriteRawTag(26); - output.WriteString(Header); - } - values_.WriteTo(ref output, _repeated_values_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHeader) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Header); - } - size += values_.CalculateSize(_repeated_values_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(StructuredSnippetFeedItem other) { - if (other == null) { - return; - } - if (other.HasHeader) { - Header = other.Header; - } - values_.Add(other.values_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Header = input.ReadString(); - break; - } - case 34: { - values_.AddEntriesFrom(input, _repeated_values_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Header = input.ReadString(); - break; - } - case 34: { - values_.AddEntriesFrom(ref input, _repeated_values_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a sitelink extension. - /// - public sealed partial class SitelinkFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SitelinkFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SitelinkFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SitelinkFeedItem(SitelinkFeedItem other) : this() { - linkText_ = other.linkText_; - line1_ = other.line1_; - line2_ = other.line2_; - finalUrls_ = other.finalUrls_.Clone(); - finalMobileUrls_ = other.finalMobileUrls_.Clone(); - trackingUrlTemplate_ = other.trackingUrlTemplate_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - finalUrlSuffix_ = other.finalUrlSuffix_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SitelinkFeedItem Clone() { - return new SitelinkFeedItem(this); - } - - /// Field number for the "link_text" field. - public const int LinkTextFieldNumber = 9; - private string linkText_; - /// - /// URL display text for the sitelink. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LinkText { - get { return linkText_ ?? ""; } - set { - linkText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "link_text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLinkText { - get { return linkText_ != null; } - } - /// Clears the value of the "link_text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLinkText() { - linkText_ = null; - } - - /// Field number for the "line1" field. - public const int Line1FieldNumber = 10; - private string line1_; - /// - /// First line of the description for the sitelink. - /// If this value is set, line2 must also be set. - /// The length of this string should be between 0 and 35, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Line1 { - get { return line1_ ?? ""; } - set { - line1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "line1" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLine1 { - get { return line1_ != null; } - } - /// Clears the value of the "line1" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLine1() { - line1_ = null; - } - - /// Field number for the "line2" field. - public const int Line2FieldNumber = 11; - private string line2_; - /// - /// Second line of the description for the sitelink. - /// If this value is set, line1 must also be set. - /// The length of this string should be between 0 and 35, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Line2 { - get { return line2_ ?? ""; } - set { - line2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "line2" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLine2 { - get { return line2_ != null; } - } - /// Clears the value of the "line2" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLine2() { - line2_ = null; - } - - /// Field number for the "final_urls" field. - public const int FinalUrlsFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_finalUrls_codec - = pb::FieldCodec.ForString(98); - private readonly pbc::RepeatedField finalUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalUrls { - get { return finalUrls_; } - } - - /// Field number for the "final_mobile_urls" field. - public const int FinalMobileUrlsFieldNumber = 13; - private static readonly pb::FieldCodec _repeated_finalMobileUrls_codec - = pb::FieldCodec.ForString(106); - private readonly pbc::RepeatedField finalMobileUrls_ = new pbc::RepeatedField(); - /// - /// A list of possible final mobile URLs after all cross domain redirects. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FinalMobileUrls { - get { return finalMobileUrls_; } - } - - /// Field number for the "tracking_url_template" field. - public const int TrackingUrlTemplateFieldNumber = 14; - private string trackingUrlTemplate_; - /// - /// URL template for constructing a tracking URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TrackingUrlTemplate { - get { return trackingUrlTemplate_ ?? ""; } - set { - trackingUrlTemplate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "tracking_url_template" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTrackingUrlTemplate { - get { return trackingUrlTemplate_ != null; } - } - /// Clears the value of the "tracking_url_template" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTrackingUrlTemplate() { - trackingUrlTemplate_ = null; - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// A list of mappings to be used for substituting URL custom parameter tags in - /// the tracking_url_template, final_urls, and/or final_mobile_urls. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "final_url_suffix" field. - public const int FinalUrlSuffixFieldNumber = 15; - private string finalUrlSuffix_; - /// - /// Final URL suffix to be appended to landing page URLs served with - /// parallel tracking. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FinalUrlSuffix { - get { return finalUrlSuffix_ ?? ""; } - set { - finalUrlSuffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "final_url_suffix" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFinalUrlSuffix { - get { return finalUrlSuffix_ != null; } - } - /// Clears the value of the "final_url_suffix" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFinalUrlSuffix() { - finalUrlSuffix_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SitelinkFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SitelinkFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (LinkText != other.LinkText) return false; - if (Line1 != other.Line1) return false; - if (Line2 != other.Line2) return false; - if(!finalUrls_.Equals(other.finalUrls_)) return false; - if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; - if (TrackingUrlTemplate != other.TrackingUrlTemplate) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (FinalUrlSuffix != other.FinalUrlSuffix) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLinkText) hash ^= LinkText.GetHashCode(); - if (HasLine1) hash ^= Line1.GetHashCode(); - if (HasLine2) hash ^= Line2.GetHashCode(); - hash ^= finalUrls_.GetHashCode(); - hash ^= finalMobileUrls_.GetHashCode(); - if (HasTrackingUrlTemplate) hash ^= TrackingUrlTemplate.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (HasFinalUrlSuffix) hash ^= FinalUrlSuffix.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (HasLinkText) { - output.WriteRawTag(74); - output.WriteString(LinkText); - } - if (HasLine1) { - output.WriteRawTag(82); - output.WriteString(Line1); - } - if (HasLine2) { - output.WriteRawTag(90); - output.WriteString(Line2); - } - finalUrls_.WriteTo(output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(114); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(122); - output.WriteString(FinalUrlSuffix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (HasLinkText) { - output.WriteRawTag(74); - output.WriteString(LinkText); - } - if (HasLine1) { - output.WriteRawTag(82); - output.WriteString(Line1); - } - if (HasLine2) { - output.WriteRawTag(90); - output.WriteString(Line2); - } - finalUrls_.WriteTo(ref output, _repeated_finalUrls_codec); - finalMobileUrls_.WriteTo(ref output, _repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - output.WriteRawTag(114); - output.WriteString(TrackingUrlTemplate); - } - if (HasFinalUrlSuffix) { - output.WriteRawTag(122); - output.WriteString(FinalUrlSuffix); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLinkText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LinkText); - } - if (HasLine1) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Line1); - } - if (HasLine2) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Line2); - } - size += finalUrls_.CalculateSize(_repeated_finalUrls_codec); - size += finalMobileUrls_.CalculateSize(_repeated_finalMobileUrls_codec); - if (HasTrackingUrlTemplate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TrackingUrlTemplate); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (HasFinalUrlSuffix) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FinalUrlSuffix); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SitelinkFeedItem other) { - if (other == null) { - return; - } - if (other.HasLinkText) { - LinkText = other.LinkText; - } - if (other.HasLine1) { - Line1 = other.Line1; - } - if (other.HasLine2) { - Line2 = other.Line2; - } - finalUrls_.Add(other.finalUrls_); - finalMobileUrls_.Add(other.finalMobileUrls_); - if (other.HasTrackingUrlTemplate) { - TrackingUrlTemplate = other.TrackingUrlTemplate; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.HasFinalUrlSuffix) { - FinalUrlSuffix = other.FinalUrlSuffix; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 58: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 74: { - LinkText = input.ReadString(); - break; - } - case 82: { - Line1 = input.ReadString(); - break; - } - case 90: { - Line2 = input.ReadString(); - break; - } - case 98: { - finalUrls_.AddEntriesFrom(input, _repeated_finalUrls_codec); - break; - } - case 106: { - finalMobileUrls_.AddEntriesFrom(input, _repeated_finalMobileUrls_codec); - break; - } - case 114: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 122: { - FinalUrlSuffix = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 58: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 74: { - LinkText = input.ReadString(); - break; - } - case 82: { - Line1 = input.ReadString(); - break; - } - case 90: { - Line2 = input.ReadString(); - break; - } - case 98: { - finalUrls_.AddEntriesFrom(ref input, _repeated_finalUrls_codec); - break; - } - case 106: { - finalMobileUrls_.AddEntriesFrom(ref input, _repeated_finalMobileUrls_codec); - break; - } - case 114: { - TrackingUrlTemplate = input.ReadString(); - break; - } - case 122: { - FinalUrlSuffix = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a hotel callout extension. - /// - public sealed partial class HotelCalloutFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelCalloutFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCalloutFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCalloutFeedItem(HotelCalloutFeedItem other) : this() { - text_ = other.text_; - languageCode_ = other.languageCode_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelCalloutFeedItem Clone() { - return new HotelCalloutFeedItem(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 3; - private string text_; - /// - /// The callout text. - /// The length of this string should be between 1 and 25, inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 4; - private string languageCode_; - /// - /// The language of the hotel callout text. - /// IETF BCP 47 compliant language code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_ ?? ""; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguageCode { - get { return languageCode_ != null; } - } - /// Clears the value of the "language_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguageCode() { - languageCode_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelCalloutFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelCalloutFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) return false; - if (LanguageCode != other.LanguageCode) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasText) hash ^= Text.GetHashCode(); - if (HasLanguageCode) hash ^= LanguageCode.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasText) { - output.WriteRawTag(26); - output.WriteString(Text); - } - if (HasLanguageCode) { - output.WriteRawTag(34); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasText) { - output.WriteRawTag(26); - output.WriteString(Text); - } - if (HasLanguageCode) { - output.WriteRawTag(34); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (HasLanguageCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelCalloutFeedItem other) { - if (other == null) { - return; - } - if (other.HasText) { - Text = other.Text; - } - if (other.HasLanguageCode) { - LanguageCode = other.LanguageCode; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Text = input.ReadString(); - break; - } - case 34: { - LanguageCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Text = input.ReadString(); - break; - } - case 34: { - LanguageCode = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents an advertiser provided image extension. - /// - public sealed partial class ImageFeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImageFeedItem()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.ExtensionsReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageFeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageFeedItem(ImageFeedItem other) : this() { - imageAsset_ = other.imageAsset_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageFeedItem Clone() { - return new ImageFeedItem(this); - } - - /// Field number for the "image_asset" field. - public const int ImageAssetFieldNumber = 1; - private string imageAsset_ = ""; - /// - /// Required. Resource name of the image asset. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ImageAsset { - get { return imageAsset_; } - set { - imageAsset_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImageFeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImageFeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ImageAsset != other.ImageAsset) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ImageAsset.Length != 0) hash ^= ImageAsset.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ImageAsset.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ImageAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ImageAsset.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ImageAsset); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ImageAsset.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ImageAsset); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImageFeedItem other) { - if (other == null) { - return; - } - if (other.ImageAsset.Length != 0) { - ImageAsset = other.ImageAsset; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ImageAsset = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ImageAsset = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ExtensionsResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/ExtensionsResourceNames.g.cs deleted file mode 100755 index 8f76e82b4..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExtensionsResourceNames.g.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Common -{ - public partial class ImageFeedItem - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::AssetName ImageAssetAsAssetName - { - get => string.IsNullOrEmpty(ImageAsset) ? null : gagvr::AssetName.Parse(ImageAsset, allowUnparsed: true); - set => ImageAsset = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/ExternalConversionSource.g.cs b/Google.Ads.GoogleAds/src/V12/ExternalConversionSource.g.cs deleted file mode 100755 index b09dea8db..000000000 --- a/Google.Ads.GoogleAds/src/V12/ExternalConversionSource.g.cs +++ /dev/null @@ -1,383 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/external_conversion_source.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/external_conversion_source.proto - public static partial class ExternalConversionSourceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/external_conversion_source.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ExternalConversionSourceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZXh0ZXJuYWxfY29u", - "dmVyc2lvbl9zb3VyY2UucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyKwBQocRXh0ZXJuYWxDb252ZXJzaW9uU291cmNlRW51bSKPBQoY", - "RXh0ZXJuYWxDb252ZXJzaW9uU291cmNlEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEgsKB1dFQlBBR0UQAhINCglBTkFMWVRJQ1MQAxIKCgZVUExP", - "QUQQBBITCg9BRF9DQUxMX01FVFJJQ1MQBRIYChRXRUJTSVRFX0NBTExfTUVU", - "UklDUxAGEhAKDFNUT1JFX1ZJU0lUUxAHEhIKDkFORFJPSURfSU5fQVBQEAgS", - "DgoKSU9TX0lOX0FQUBAJEhIKDklPU19GSVJTVF9PUEVOEAoSEwoPQVBQX1VO", - "U1BFQ0lGSUVEEAsSFgoSQU5EUk9JRF9GSVJTVF9PUEVOEAwSEAoMVVBMT0FE", - "X0NBTExTEA0SDAoIRklSRUJBU0UQDhIRCg1DTElDS19UT19DQUxMEA8SDgoK", - "U0FMRVNGT1JDRRAQEhMKD1NUT1JFX1NBTEVTX0NSTRAREh8KG1NUT1JFX1NB", - "TEVTX1BBWU1FTlRfTkVUV09SSxASEg8KC0dPT0dMRV9QTEFZEBMSHQoZVEhJ", - "UkRfUEFSVFlfQVBQX0FOQUxZVElDUxAUEhYKEkdPT0dMRV9BVFRSSUJVVElP", - "ThAVEh0KGVNUT1JFX1NBTEVTX0RJUkVDVF9VUExPQUQQFxIPCgtTVE9SRV9T", - "QUxFUxAYEhIKDlNFQVJDSF9BRFNfMzYwEBkSEQoNR09PR0xFX0hPU1RFRBAb", - "Eg4KCkZMT09ETElHSFQQHRIcChhBTkFMWVRJQ1NfU0VBUkNIX0FEU18zNjAQ", - "HxIbChdGSVJFQkFTRV9TRUFSQ0hfQURTXzM2MBAhEiQKIERJU1BMQVlfQU5E", - "X1ZJREVPXzM2MF9GTE9PRExJR0hUECJC9wEKImNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXNCHUV4dGVybmFsQ29udmVyc2lvblNvdXJjZVBy", - "b3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUu", - "QWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVu", - "dW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ExternalConversionSourceEnum), global::Google.Ads.GoogleAds.V12.Enums.ExternalConversionSourceEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ExternalConversionSourceEnum.Types.ExternalConversionSource) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the external conversion source that is - /// associated with a ConversionAction. - /// - public sealed partial class ExternalConversionSourceEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalConversionSourceEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ExternalConversionSourceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExternalConversionSourceEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExternalConversionSourceEnum(ExternalConversionSourceEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ExternalConversionSourceEnum Clone() { - return new ExternalConversionSourceEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ExternalConversionSourceEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ExternalConversionSourceEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ExternalConversionSourceEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ExternalConversionSourceEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The external conversion source that is associated with a ConversionAction. - /// - public enum ExternalConversionSource { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Conversion that occurs when a user navigates to a particular webpage - /// after viewing an ad; Displayed in Google Ads UI as 'Website'. - /// - [pbr::OriginalName("WEBPAGE")] Webpage = 2, - /// - /// Conversion that comes from linked Google Analytics goal or transaction; - /// Displayed in Google Ads UI as 'Analytics'. - /// - [pbr::OriginalName("ANALYTICS")] Analytics = 3, - /// - /// Website conversion that is uploaded through ConversionUploadService; - /// Displayed in Google Ads UI as 'Import from clicks'. - /// - [pbr::OriginalName("UPLOAD")] Upload = 4, - /// - /// Conversion that occurs when a user clicks on a call extension directly on - /// an ad; Displayed in Google Ads UI as 'Calls from ads'. - /// - [pbr::OriginalName("AD_CALL_METRICS")] AdCallMetrics = 5, - /// - /// Conversion that occurs when a user calls a dynamically-generated phone - /// number (by installed javascript) from an advertiser's website after - /// clicking on an ad; Displayed in Google Ads UI as 'Calls from website'. - /// - [pbr::OriginalName("WEBSITE_CALL_METRICS")] WebsiteCallMetrics = 6, - /// - /// Conversion that occurs when a user visits an advertiser's retail store - /// after clicking on a Google ad; - /// Displayed in Google Ads UI as 'Store visits'. - /// - [pbr::OriginalName("STORE_VISITS")] StoreVisits = 7, - /// - /// Conversion that occurs when a user takes an in-app action such as a - /// purchase in an Android app; - /// Displayed in Google Ads UI as 'Android in-app action'. - /// - [pbr::OriginalName("ANDROID_IN_APP")] AndroidInApp = 8, - /// - /// Conversion that occurs when a user takes an in-app action such as a - /// purchase in an iOS app; - /// Displayed in Google Ads UI as 'iOS in-app action'. - /// - [pbr::OriginalName("IOS_IN_APP")] IosInApp = 9, - /// - /// Conversion that occurs when a user opens an iOS app for the first time; - /// Displayed in Google Ads UI as 'iOS app install (first open)'. - /// - [pbr::OriginalName("IOS_FIRST_OPEN")] IosFirstOpen = 10, - /// - /// Legacy app conversions that do not have an AppPlatform provided; - /// Displayed in Google Ads UI as 'Mobile app'. - /// - [pbr::OriginalName("APP_UNSPECIFIED")] AppUnspecified = 11, - /// - /// Conversion that occurs when a user opens an Android app for the first - /// time; Displayed in Google Ads UI as 'Android app install (first open)'. - /// - [pbr::OriginalName("ANDROID_FIRST_OPEN")] AndroidFirstOpen = 12, - /// - /// Call conversion that is uploaded through ConversionUploadService; - /// Displayed in Google Ads UI as 'Import from calls'. - /// - [pbr::OriginalName("UPLOAD_CALLS")] UploadCalls = 13, - /// - /// Conversion that comes from a linked Firebase event; - /// Displayed in Google Ads UI as 'Firebase'. - /// - [pbr::OriginalName("FIREBASE")] Firebase = 14, - /// - /// Conversion that occurs when a user clicks on a mobile phone number; - /// Displayed in Google Ads UI as 'Phone number clicks'. - /// - [pbr::OriginalName("CLICK_TO_CALL")] ClickToCall = 15, - /// - /// Conversion that comes from Salesforce; - /// Displayed in Google Ads UI as 'Salesforce.com'. - /// - [pbr::OriginalName("SALESFORCE")] Salesforce = 16, - /// - /// Conversion that comes from in-store purchases recorded by CRM; - /// Displayed in Google Ads UI as 'Store sales (data partner)'. - /// - [pbr::OriginalName("STORE_SALES_CRM")] StoreSalesCrm = 17, - /// - /// Conversion that comes from in-store purchases from payment network; - /// Displayed in Google Ads UI as 'Store sales (payment network)'. - /// - [pbr::OriginalName("STORE_SALES_PAYMENT_NETWORK")] StoreSalesPaymentNetwork = 18, - /// - /// Codeless Google Play conversion; - /// Displayed in Google Ads UI as 'Google Play'. - /// - [pbr::OriginalName("GOOGLE_PLAY")] GooglePlay = 19, - /// - /// Conversion that comes from a linked third-party app analytics event; - /// Displayed in Google Ads UI as 'Third-party app analytics'. - /// - [pbr::OriginalName("THIRD_PARTY_APP_ANALYTICS")] ThirdPartyAppAnalytics = 20, - /// - /// Conversion that is controlled by Google Attribution. - /// - [pbr::OriginalName("GOOGLE_ATTRIBUTION")] GoogleAttribution = 21, - /// - /// Store Sales conversion based on first-party or third-party merchant data - /// uploads. Displayed in Google Ads UI as 'Store sales (direct upload)'. - /// - [pbr::OriginalName("STORE_SALES_DIRECT_UPLOAD")] StoreSalesDirectUpload = 23, - /// - /// Store Sales conversion based on first-party or third-party merchant - /// data uploads and/or from in-store purchases using cards from payment - /// networks. Displayed in Google Ads UI as 'Store sales'. - /// - [pbr::OriginalName("STORE_SALES")] StoreSales = 24, - /// - /// Conversions imported from Search Ads 360 Floodlight data. - /// - [pbr::OriginalName("SEARCH_ADS_360")] SearchAds360 = 25, - /// - /// Conversions that track local actions from Google's products and services - /// after interacting with an ad. - /// - [pbr::OriginalName("GOOGLE_HOSTED")] GoogleHosted = 27, - /// - /// Conversions reported by Floodlight tags. - /// - [pbr::OriginalName("FLOODLIGHT")] Floodlight = 29, - /// - /// Conversions that come from Google Analytics specifically for Search Ads - /// 360. Displayed in Google Ads UI as Analytics (SA360). - /// - [pbr::OriginalName("ANALYTICS_SEARCH_ADS_360")] AnalyticsSearchAds360 = 31, - /// - /// Conversion that comes from a linked Firebase event for Search Ads 360. - /// - [pbr::OriginalName("FIREBASE_SEARCH_ADS_360")] FirebaseSearchAds360 = 33, - /// - /// Conversion that is reported by Floodlight for DV360. - /// - [pbr::OriginalName("DISPLAY_AND_VIDEO_360_FLOODLIGHT")] DisplayAndVideo360Floodlight = 34, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Feed.g.cs b/Google.Ads.GoogleAds/src/V12/Feed.g.cs deleted file mode 100755 index c0da715d5..000000000 --- a/Google.Ads.GoogleAds/src/V12/Feed.g.cs +++ /dev/null @@ -1,2296 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/feed.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/feed.proto - public static partial class FeedReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/feed.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWQucHJv", - "dG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMaTmdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hZmZpbGlhdGVfbG9jYXRpb25f", - "ZmVlZF9yZWxhdGlvbnNoaXBfdHlwZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zL2ZlZWRfYXR0cmlidXRlX3R5cGUucHJvdG8aMGdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9mZWVkX29yaWdpbi5wcm90", - "bxowZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2ZlZWRfc3RhdHVz", - "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvIqgLCgRGZWVkEjwKDXJlc291cmNlX25h", - "bWUYASABKAlCJeBBBfpBHwodZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Zl", - "ZWQSFAoCaWQYCyABKANCA+BBA0gBiAEBEhYKBG5hbWUYDCABKAlCA+BBBUgC", - "iAEBEkUKCmF0dHJpYnV0ZXMYBCADKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzLkZlZWRBdHRyaWJ1dGUSWAoUYXR0cmlidXRlX29w", - "ZXJhdGlvbnMYCSADKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkZlZWRBdHRyaWJ1dGVPcGVyYXRpb24STgoGb3JpZ2luGAUgASgO", - "MjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZlZWRPcmlnaW5F", - "bnVtLkZlZWRPcmlnaW5CA+BBBRJOCgZzdGF0dXMYCCABKA4yOS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRmVlZFN0YXR1c0VudW0uRmVlZFN0", - "YXR1c0ID4EEDEmQKGXBsYWNlc19sb2NhdGlvbl9mZWVkX2RhdGEYBiABKAsy", - "Py5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkZlZWQuUGxh", - "Y2VzTG9jYXRpb25GZWVkRGF0YUgAEmoKHGFmZmlsaWF0ZV9sb2NhdGlvbl9m", - "ZWVkX2RhdGEYByABKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkZlZWQuQWZmaWxpYXRlTG9jYXRpb25GZWVkRGF0YUgAGuYDChZQ", - "bGFjZXNMb2NhdGlvbkZlZWREYXRhEmIKCm9hdXRoX2luZm8YASABKAsySS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkZlZWQuUGxhY2Vz", - "TG9jYXRpb25GZWVkRGF0YS5PQXV0aEluZm9CA+BBBRIaCg1lbWFpbF9hZGRy", - "ZXNzGAcgASgJSACIAQESGwoTYnVzaW5lc3NfYWNjb3VudF9pZBgIIAEoCRIh", - "ChRidXNpbmVzc19uYW1lX2ZpbHRlchgJIAEoCUgBiAEBEhgKEGNhdGVnb3J5", - "X2ZpbHRlcnMYCyADKAkSFQoNbGFiZWxfZmlsdGVycxgMIAMoCRqvAQoJT0F1", - "dGhJbmZvEhgKC2h0dHBfbWV0aG9kGAQgASgJSACIAQESHQoQaHR0cF9yZXF1", - "ZXN0X3VybBgFIAEoCUgBiAEBEiYKGWh0dHBfYXV0aG9yaXphdGlvbl9oZWFk", - "ZXIYBiABKAlIAogBAUIOCgxfaHR0cF9tZXRob2RCEwoRX2h0dHBfcmVxdWVz", - "dF91cmxCHAoaX2h0dHBfYXV0aG9yaXphdGlvbl9oZWFkZXJCEAoOX2VtYWls", - "X2FkZHJlc3NCFwoVX2J1c2luZXNzX25hbWVfZmlsdGVyGrsBChlBZmZpbGlh", - "dGVMb2NhdGlvbkZlZWREYXRhEhEKCWNoYWluX2lkcxgDIAMoAxKKAQoRcmVs", - "YXRpb25zaGlwX3R5cGUYAiABKA4yby5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuQWZmaWxpYXRlTG9jYXRpb25GZWVkUmVsYXRpb25zaGlwVHlw", - "ZUVudW0uQWZmaWxpYXRlTG9jYXRpb25GZWVkUmVsYXRpb25zaGlwVHlwZTpL", - "6kFICh1nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRmVlZBInY3VzdG9tZXJz", - "L3tjdXN0b21lcl9pZH0vZmVlZHMve2ZlZWRfaWR9Qh0KG3N5c3RlbV9mZWVk", - "X2dlbmVyYXRpb25fZGF0YUIFCgNfaWRCBwoFX25hbWUiygEKDUZlZWRBdHRy", - "aWJ1dGUSDwoCaWQYBSABKANIAIgBARIRCgRuYW1lGAYgASgJSAGIAQESVQoE", - "dHlwZRgDIAEoDjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5G", - "ZWVkQXR0cmlidXRlVHlwZUVudW0uRmVlZEF0dHJpYnV0ZVR5cGUSGwoOaXNf", - "cGFydF9vZl9rZXkYByABKAhIAogBAUIFCgNfaWRCBwoFX25hbWVCEQoPX2lz", - "X3BhcnRfb2Zfa2V5Iu4BChZGZWVkQXR0cmlidXRlT3BlcmF0aW9uEloKCG9w", - "ZXJhdG9yGAEgASgOMkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5GZWVkQXR0cmlidXRlT3BlcmF0aW9uLk9wZXJhdG9yQgPgQQMSRQoF", - "dmFsdWUYAiABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzLkZlZWRBdHRyaWJ1dGVCA+BBAyIxCghPcGVyYXRvchIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIHCgNBREQQAkL7AQomY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCCUZlZWRQcm90b1ABWktnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedOriginReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Feed), global::Google.Ads.GoogleAds.V12.Resources.Feed.Parser, new[]{ "ResourceName", "Id", "Name", "Attributes", "AttributeOperations", "Origin", "Status", "PlacesLocationFeedData", "AffiliateLocationFeedData" }, new[]{ "SystemFeedGenerationData", "Id", "Name" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData), global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Parser, new[]{ "OauthInfo", "EmailAddress", "BusinessAccountId", "BusinessNameFilter", "CategoryFilters", "LabelFilters" }, new[]{ "EmailAddress", "BusinessNameFilter" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Types.OAuthInfo), global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Types.OAuthInfo.Parser, new[]{ "HttpMethod", "HttpRequestUrl", "HttpAuthorizationHeader" }, new[]{ "HttpMethod", "HttpRequestUrl", "HttpAuthorizationHeader" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData), global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData.Parser, new[]{ "ChainIds", "RelationshipType" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute), global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute.Parser, new[]{ "Id", "Name", "Type", "IsPartOfKey" }, new[]{ "Id", "Name", "IsPartOfKey" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation), global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Parser, new[]{ "Operator", "Value" }, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A feed. - /// - public sealed partial class Feed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Feed()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Feed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Feed(Feed other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - attributes_ = other.attributes_.Clone(); - attributeOperations_ = other.attributeOperations_.Clone(); - origin_ = other.origin_; - status_ = other.status_; - switch (other.SystemFeedGenerationDataCase) { - case SystemFeedGenerationDataOneofCase.PlacesLocationFeedData: - PlacesLocationFeedData = other.PlacesLocationFeedData.Clone(); - break; - case SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData: - AffiliateLocationFeedData = other.AffiliateLocationFeedData.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Feed Clone() { - return new Feed(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the feed. - /// Feed resource names have the form: - /// - /// `customers/{customer_id}/feeds/{feed_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 11; - private long id_; - /// - /// Output only. The ID of the feed. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 12; - private string name_; - /// - /// Immutable. Name of the feed. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "attributes" field. - public const int AttributesFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_attributes_codec - = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute.Parser); - private readonly pbc::RepeatedField attributes_ = new pbc::RepeatedField(); - /// - /// The Feed's attributes. Required on CREATE, unless - /// system_feed_generation_data is provided, in which case Google Ads will - /// update the feed with the correct attributes. - /// Disallowed on UPDATE. Use attribute_operations to add new attributes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Attributes { - get { return attributes_; } - } - - /// Field number for the "attribute_operations" field. - public const int AttributeOperationsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_attributeOperations_codec - = pb::FieldCodec.ForMessage(74, global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Parser); - private readonly pbc::RepeatedField attributeOperations_ = new pbc::RepeatedField(); - /// - /// The list of operations changing the feed attributes. Attributes can only - /// be added, not removed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AttributeOperations { - get { return attributeOperations_; } - } - - /// Field number for the "origin" field. - public const int OriginFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin origin_ = global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin.Unspecified; - /// - /// Immutable. Specifies who manages the FeedAttributes for the Feed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin Origin { - get { return origin_; } - set { - origin_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus.Unspecified; - /// - /// Output only. Status of the feed. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "places_location_feed_data" field. - public const int PlacesLocationFeedDataFieldNumber = 6; - /// - /// Data used to configure a location feed populated from Business Profile. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData PlacesLocationFeedData { - get { return systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.PlacesLocationFeedData ? (global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData) systemFeedGenerationData_ : null; } - set { - systemFeedGenerationData_ = value; - systemFeedGenerationDataCase_ = value == null ? SystemFeedGenerationDataOneofCase.None : SystemFeedGenerationDataOneofCase.PlacesLocationFeedData; - } - } - - /// Field number for the "affiliate_location_feed_data" field. - public const int AffiliateLocationFeedDataFieldNumber = 7; - /// - /// Data used to configure an affiliate location feed populated with - /// the specified chains. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData AffiliateLocationFeedData { - get { return systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData ? (global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData) systemFeedGenerationData_ : null; } - set { - systemFeedGenerationData_ = value; - systemFeedGenerationDataCase_ = value == null ? SystemFeedGenerationDataOneofCase.None : SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData; - } - } - - private object systemFeedGenerationData_; - /// Enum of possible cases for the "system_feed_generation_data" oneof. - public enum SystemFeedGenerationDataOneofCase { - None = 0, - PlacesLocationFeedData = 6, - AffiliateLocationFeedData = 7, - } - private SystemFeedGenerationDataOneofCase systemFeedGenerationDataCase_ = SystemFeedGenerationDataOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SystemFeedGenerationDataOneofCase SystemFeedGenerationDataCase { - get { return systemFeedGenerationDataCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSystemFeedGenerationData() { - systemFeedGenerationDataCase_ = SystemFeedGenerationDataOneofCase.None; - systemFeedGenerationData_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Feed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Feed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if(!attributes_.Equals(other.attributes_)) return false; - if(!attributeOperations_.Equals(other.attributeOperations_)) return false; - if (Origin != other.Origin) return false; - if (Status != other.Status) return false; - if (!object.Equals(PlacesLocationFeedData, other.PlacesLocationFeedData)) return false; - if (!object.Equals(AffiliateLocationFeedData, other.AffiliateLocationFeedData)) return false; - if (SystemFeedGenerationDataCase != other.SystemFeedGenerationDataCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - hash ^= attributes_.GetHashCode(); - hash ^= attributeOperations_.GetHashCode(); - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin.Unspecified) hash ^= Origin.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus.Unspecified) hash ^= Status.GetHashCode(); - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.PlacesLocationFeedData) hash ^= PlacesLocationFeedData.GetHashCode(); - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData) hash ^= AffiliateLocationFeedData.GetHashCode(); - hash ^= (int) systemFeedGenerationDataCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - attributes_.WriteTo(output, _repeated_attributes_codec); - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Origin); - } - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.PlacesLocationFeedData) { - output.WriteRawTag(50); - output.WriteMessage(PlacesLocationFeedData); - } - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData) { - output.WriteRawTag(58); - output.WriteMessage(AffiliateLocationFeedData); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - attributeOperations_.WriteTo(output, _repeated_attributeOperations_codec); - if (HasId) { - output.WriteRawTag(88); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(98); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - attributes_.WriteTo(ref output, _repeated_attributes_codec); - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) Origin); - } - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.PlacesLocationFeedData) { - output.WriteRawTag(50); - output.WriteMessage(PlacesLocationFeedData); - } - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData) { - output.WriteRawTag(58); - output.WriteMessage(AffiliateLocationFeedData); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - attributeOperations_.WriteTo(ref output, _repeated_attributeOperations_codec); - if (HasId) { - output.WriteRawTag(88); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(98); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - size += attributes_.CalculateSize(_repeated_attributes_codec); - size += attributeOperations_.CalculateSize(_repeated_attributeOperations_codec); - if (Origin != global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Origin); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.PlacesLocationFeedData) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PlacesLocationFeedData); - } - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AffiliateLocationFeedData); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Feed other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - attributes_.Add(other.attributes_); - attributeOperations_.Add(other.attributeOperations_); - if (other.Origin != global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin.Unspecified) { - Origin = other.Origin; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus.Unspecified) { - Status = other.Status; - } - switch (other.SystemFeedGenerationDataCase) { - case SystemFeedGenerationDataOneofCase.PlacesLocationFeedData: - if (PlacesLocationFeedData == null) { - PlacesLocationFeedData = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData(); - } - PlacesLocationFeedData.MergeFrom(other.PlacesLocationFeedData); - break; - case SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData: - if (AffiliateLocationFeedData == null) { - AffiliateLocationFeedData = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData(); - } - AffiliateLocationFeedData.MergeFrom(other.AffiliateLocationFeedData); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - attributes_.AddEntriesFrom(input, _repeated_attributes_codec); - break; - } - case 40: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin) input.ReadEnum(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData(); - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.PlacesLocationFeedData) { - subBuilder.MergeFrom(PlacesLocationFeedData); - } - input.ReadMessage(subBuilder); - PlacesLocationFeedData = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData(); - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData) { - subBuilder.MergeFrom(AffiliateLocationFeedData); - } - input.ReadMessage(subBuilder); - AffiliateLocationFeedData = subBuilder; - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus) input.ReadEnum(); - break; - } - case 74: { - attributeOperations_.AddEntriesFrom(input, _repeated_attributeOperations_codec); - break; - } - case 88: { - Id = input.ReadInt64(); - break; - } - case 98: { - Name = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - attributes_.AddEntriesFrom(ref input, _repeated_attributes_codec); - break; - } - case 40: { - Origin = (global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin) input.ReadEnum(); - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData(); - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.PlacesLocationFeedData) { - subBuilder.MergeFrom(PlacesLocationFeedData); - } - input.ReadMessage(subBuilder); - PlacesLocationFeedData = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.AffiliateLocationFeedData(); - if (systemFeedGenerationDataCase_ == SystemFeedGenerationDataOneofCase.AffiliateLocationFeedData) { - subBuilder.MergeFrom(AffiliateLocationFeedData); - } - input.ReadMessage(subBuilder); - AffiliateLocationFeedData = subBuilder; - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus) input.ReadEnum(); - break; - } - case 74: { - attributeOperations_.AddEntriesFrom(ref input, _repeated_attributeOperations_codec); - break; - } - case 88: { - Id = input.ReadInt64(); - break; - } - case 98: { - Name = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Feed message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Data used to configure a location feed populated from Business Profile. - /// - public sealed partial class PlacesLocationFeedData : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlacesLocationFeedData()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Feed.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlacesLocationFeedData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlacesLocationFeedData(PlacesLocationFeedData other) : this() { - oauthInfo_ = other.oauthInfo_ != null ? other.oauthInfo_.Clone() : null; - emailAddress_ = other.emailAddress_; - businessAccountId_ = other.businessAccountId_; - businessNameFilter_ = other.businessNameFilter_; - categoryFilters_ = other.categoryFilters_.Clone(); - labelFilters_ = other.labelFilters_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public PlacesLocationFeedData Clone() { - return new PlacesLocationFeedData(this); - } - - /// Field number for the "oauth_info" field. - public const int OauthInfoFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Types.OAuthInfo oauthInfo_; - /// - /// Immutable. Required authentication token (from OAuth API) for the email. - /// This field can only be specified in a create request. All its subfields - /// are not selectable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Types.OAuthInfo OauthInfo { - get { return oauthInfo_; } - set { - oauthInfo_ = value; - } - } - - /// Field number for the "email_address" field. - public const int EmailAddressFieldNumber = 7; - private string emailAddress_; - /// - /// Email address of a Business Profile or email address of a - /// manager of the Business Profile. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EmailAddress { - get { return emailAddress_ ?? ""; } - set { - emailAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "email_address" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEmailAddress { - get { return emailAddress_ != null; } - } - /// Clears the value of the "email_address" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEmailAddress() { - emailAddress_ = null; - } - - /// Field number for the "business_account_id" field. - public const int BusinessAccountIdFieldNumber = 8; - private string businessAccountId_ = ""; - /// - /// Plus page ID of the managed business whose locations should be used. If - /// this field is not set, then all businesses accessible by the user - /// (specified by email_address) are used. - /// This field is mutate-only and is not selectable. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessAccountId { - get { return businessAccountId_; } - set { - businessAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "business_name_filter" field. - public const int BusinessNameFilterFieldNumber = 9; - private string businessNameFilter_; - /// - /// Used to filter Business Profile listings by business name. If - /// business_name_filter is set, only listings with a matching business name - /// are candidates to be sync'd into FeedItems. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessNameFilter { - get { return businessNameFilter_ ?? ""; } - set { - businessNameFilter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "business_name_filter" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBusinessNameFilter { - get { return businessNameFilter_ != null; } - } - /// Clears the value of the "business_name_filter" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBusinessNameFilter() { - businessNameFilter_ = null; - } - - /// Field number for the "category_filters" field. - public const int CategoryFiltersFieldNumber = 11; - private static readonly pb::FieldCodec _repeated_categoryFilters_codec - = pb::FieldCodec.ForString(90); - private readonly pbc::RepeatedField categoryFilters_ = new pbc::RepeatedField(); - /// - /// Used to filter Business Profile listings by categories. If entries - /// exist in category_filters, only listings that belong to any of the - /// categories are candidates to be sync'd into FeedItems. If no entries - /// exist in category_filters, then all listings are candidates for syncing. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CategoryFilters { - get { return categoryFilters_; } - } - - /// Field number for the "label_filters" field. - public const int LabelFiltersFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_labelFilters_codec - = pb::FieldCodec.ForString(98); - private readonly pbc::RepeatedField labelFilters_ = new pbc::RepeatedField(); - /// - /// Used to filter Business Profile listings by labels. If entries exist in - /// label_filters, only listings that has any of the labels set are - /// candidates to be synchronized into FeedItems. If no entries exist in - /// label_filters, then all listings are candidates for syncing. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LabelFilters { - get { return labelFilters_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as PlacesLocationFeedData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PlacesLocationFeedData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(OauthInfo, other.OauthInfo)) return false; - if (EmailAddress != other.EmailAddress) return false; - if (BusinessAccountId != other.BusinessAccountId) return false; - if (BusinessNameFilter != other.BusinessNameFilter) return false; - if(!categoryFilters_.Equals(other.categoryFilters_)) return false; - if(!labelFilters_.Equals(other.labelFilters_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (oauthInfo_ != null) hash ^= OauthInfo.GetHashCode(); - if (HasEmailAddress) hash ^= EmailAddress.GetHashCode(); - if (BusinessAccountId.Length != 0) hash ^= BusinessAccountId.GetHashCode(); - if (HasBusinessNameFilter) hash ^= BusinessNameFilter.GetHashCode(); - hash ^= categoryFilters_.GetHashCode(); - hash ^= labelFilters_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (oauthInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OauthInfo); - } - if (HasEmailAddress) { - output.WriteRawTag(58); - output.WriteString(EmailAddress); - } - if (BusinessAccountId.Length != 0) { - output.WriteRawTag(66); - output.WriteString(BusinessAccountId); - } - if (HasBusinessNameFilter) { - output.WriteRawTag(74); - output.WriteString(BusinessNameFilter); - } - categoryFilters_.WriteTo(output, _repeated_categoryFilters_codec); - labelFilters_.WriteTo(output, _repeated_labelFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (oauthInfo_ != null) { - output.WriteRawTag(10); - output.WriteMessage(OauthInfo); - } - if (HasEmailAddress) { - output.WriteRawTag(58); - output.WriteString(EmailAddress); - } - if (BusinessAccountId.Length != 0) { - output.WriteRawTag(66); - output.WriteString(BusinessAccountId); - } - if (HasBusinessNameFilter) { - output.WriteRawTag(74); - output.WriteString(BusinessNameFilter); - } - categoryFilters_.WriteTo(ref output, _repeated_categoryFilters_codec); - labelFilters_.WriteTo(ref output, _repeated_labelFilters_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (oauthInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(OauthInfo); - } - if (HasEmailAddress) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EmailAddress); - } - if (BusinessAccountId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessAccountId); - } - if (HasBusinessNameFilter) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessNameFilter); - } - size += categoryFilters_.CalculateSize(_repeated_categoryFilters_codec); - size += labelFilters_.CalculateSize(_repeated_labelFilters_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PlacesLocationFeedData other) { - if (other == null) { - return; - } - if (other.oauthInfo_ != null) { - if (oauthInfo_ == null) { - OauthInfo = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Types.OAuthInfo(); - } - OauthInfo.MergeFrom(other.OauthInfo); - } - if (other.HasEmailAddress) { - EmailAddress = other.EmailAddress; - } - if (other.BusinessAccountId.Length != 0) { - BusinessAccountId = other.BusinessAccountId; - } - if (other.HasBusinessNameFilter) { - BusinessNameFilter = other.BusinessNameFilter; - } - categoryFilters_.Add(other.categoryFilters_); - labelFilters_.Add(other.labelFilters_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (oauthInfo_ == null) { - OauthInfo = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Types.OAuthInfo(); - } - input.ReadMessage(OauthInfo); - break; - } - case 58: { - EmailAddress = input.ReadString(); - break; - } - case 66: { - BusinessAccountId = input.ReadString(); - break; - } - case 74: { - BusinessNameFilter = input.ReadString(); - break; - } - case 90: { - categoryFilters_.AddEntriesFrom(input, _repeated_categoryFilters_codec); - break; - } - case 98: { - labelFilters_.AddEntriesFrom(input, _repeated_labelFilters_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (oauthInfo_ == null) { - OauthInfo = new global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Types.OAuthInfo(); - } - input.ReadMessage(OauthInfo); - break; - } - case 58: { - EmailAddress = input.ReadString(); - break; - } - case 66: { - BusinessAccountId = input.ReadString(); - break; - } - case 74: { - BusinessNameFilter = input.ReadString(); - break; - } - case 90: { - categoryFilters_.AddEntriesFrom(ref input, _repeated_categoryFilters_codec); - break; - } - case 98: { - labelFilters_.AddEntriesFrom(ref input, _repeated_labelFilters_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the PlacesLocationFeedData message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Data used for authorization using OAuth. - /// - public sealed partial class OAuthInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OAuthInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Feed.Types.PlacesLocationFeedData.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuthInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuthInfo(OAuthInfo other) : this() { - httpMethod_ = other.httpMethod_; - httpRequestUrl_ = other.httpRequestUrl_; - httpAuthorizationHeader_ = other.httpAuthorizationHeader_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OAuthInfo Clone() { - return new OAuthInfo(this); - } - - /// Field number for the "http_method" field. - public const int HttpMethodFieldNumber = 4; - private string httpMethod_; - /// - /// The HTTP method used to obtain authorization. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HttpMethod { - get { return httpMethod_ ?? ""; } - set { - httpMethod_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "http_method" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHttpMethod { - get { return httpMethod_ != null; } - } - /// Clears the value of the "http_method" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHttpMethod() { - httpMethod_ = null; - } - - /// Field number for the "http_request_url" field. - public const int HttpRequestUrlFieldNumber = 5; - private string httpRequestUrl_; - /// - /// The HTTP request URL used to obtain authorization. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HttpRequestUrl { - get { return httpRequestUrl_ ?? ""; } - set { - httpRequestUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "http_request_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHttpRequestUrl { - get { return httpRequestUrl_ != null; } - } - /// Clears the value of the "http_request_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHttpRequestUrl() { - httpRequestUrl_ = null; - } - - /// Field number for the "http_authorization_header" field. - public const int HttpAuthorizationHeaderFieldNumber = 6; - private string httpAuthorizationHeader_; - /// - /// The HTTP authorization header used to obtain authorization. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HttpAuthorizationHeader { - get { return httpAuthorizationHeader_ ?? ""; } - set { - httpAuthorizationHeader_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "http_authorization_header" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHttpAuthorizationHeader { - get { return httpAuthorizationHeader_ != null; } - } - /// Clears the value of the "http_authorization_header" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHttpAuthorizationHeader() { - httpAuthorizationHeader_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as OAuthInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(OAuthInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (HttpMethod != other.HttpMethod) return false; - if (HttpRequestUrl != other.HttpRequestUrl) return false; - if (HttpAuthorizationHeader != other.HttpAuthorizationHeader) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasHttpMethod) hash ^= HttpMethod.GetHashCode(); - if (HasHttpRequestUrl) hash ^= HttpRequestUrl.GetHashCode(); - if (HasHttpAuthorizationHeader) hash ^= HttpAuthorizationHeader.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasHttpMethod) { - output.WriteRawTag(34); - output.WriteString(HttpMethod); - } - if (HasHttpRequestUrl) { - output.WriteRawTag(42); - output.WriteString(HttpRequestUrl); - } - if (HasHttpAuthorizationHeader) { - output.WriteRawTag(50); - output.WriteString(HttpAuthorizationHeader); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasHttpMethod) { - output.WriteRawTag(34); - output.WriteString(HttpMethod); - } - if (HasHttpRequestUrl) { - output.WriteRawTag(42); - output.WriteString(HttpRequestUrl); - } - if (HasHttpAuthorizationHeader) { - output.WriteRawTag(50); - output.WriteString(HttpAuthorizationHeader); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasHttpMethod) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HttpMethod); - } - if (HasHttpRequestUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HttpRequestUrl); - } - if (HasHttpAuthorizationHeader) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HttpAuthorizationHeader); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(OAuthInfo other) { - if (other == null) { - return; - } - if (other.HasHttpMethod) { - HttpMethod = other.HttpMethod; - } - if (other.HasHttpRequestUrl) { - HttpRequestUrl = other.HttpRequestUrl; - } - if (other.HasHttpAuthorizationHeader) { - HttpAuthorizationHeader = other.HttpAuthorizationHeader; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 34: { - HttpMethod = input.ReadString(); - break; - } - case 42: { - HttpRequestUrl = input.ReadString(); - break; - } - case 50: { - HttpAuthorizationHeader = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - HttpMethod = input.ReadString(); - break; - } - case 42: { - HttpRequestUrl = input.ReadString(); - break; - } - case 50: { - HttpAuthorizationHeader = input.ReadString(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Data used to configure an affiliate location feed populated with the - /// specified chains. - /// - public sealed partial class AffiliateLocationFeedData : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffiliateLocationFeedData()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Feed.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedData() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedData(AffiliateLocationFeedData other) : this() { - chainIds_ = other.chainIds_.Clone(); - relationshipType_ = other.relationshipType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AffiliateLocationFeedData Clone() { - return new AffiliateLocationFeedData(this); - } - - /// Field number for the "chain_ids" field. - public const int ChainIdsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_chainIds_codec - = pb::FieldCodec.ForInt64(26); - private readonly pbc::RepeatedField chainIds_ = new pbc::RepeatedField(); - /// - /// The list of chains that the affiliate location feed will sync the - /// locations from. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ChainIds { - get { return chainIds_; } - } - - /// Field number for the "relationship_type" field. - public const int RelationshipTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType relationshipType_ = global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType.Unspecified; - /// - /// The relationship the chains have with the advertiser. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType RelationshipType { - get { return relationshipType_; } - set { - relationshipType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AffiliateLocationFeedData); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AffiliateLocationFeedData other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!chainIds_.Equals(other.chainIds_)) return false; - if (RelationshipType != other.RelationshipType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= chainIds_.GetHashCode(); - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType.Unspecified) hash ^= RelationshipType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) RelationshipType); - } - chainIds_.WriteTo(output, _repeated_chainIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) RelationshipType); - } - chainIds_.WriteTo(ref output, _repeated_chainIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += chainIds_.CalculateSize(_repeated_chainIds_codec); - if (RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RelationshipType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AffiliateLocationFeedData other) { - if (other == null) { - return; - } - chainIds_.Add(other.chainIds_); - if (other.RelationshipType != global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType.Unspecified) { - RelationshipType = other.RelationshipType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - RelationshipType = (global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType) input.ReadEnum(); - break; - } - case 26: - case 24: { - chainIds_.AddEntriesFrom(input, _repeated_chainIds_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - RelationshipType = (global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationFeedRelationshipTypeEnum.Types.AffiliateLocationFeedRelationshipType) input.ReadEnum(); - break; - } - case 26: - case 24: { - chainIds_.AddEntriesFrom(ref input, _repeated_chainIds_codec); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// FeedAttributes define the types of data expected to be present in a Feed. A - /// single FeedAttribute specifies the expected type of the FeedItemAttributes - /// with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as - /// being part of a FeedItem's unique key. - /// - public sealed partial class FeedAttribute : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedAttribute()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttribute() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttribute(FeedAttribute other) : this() { - _hasBits0 = other._hasBits0; - id_ = other.id_; - name_ = other.name_; - type_ = other.type_; - isPartOfKey_ = other.isPartOfKey_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttribute Clone() { - return new FeedAttribute(this); - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 5; - private long id_; - /// - /// ID of the attribute. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 6; - private string name_; - /// - /// The name of the attribute. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType type_ = global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType.Unspecified; - /// - /// Data type for feed attribute. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "is_part_of_key" field. - public const int IsPartOfKeyFieldNumber = 7; - private bool isPartOfKey_; - /// - /// Indicates that data corresponding to this attribute is part of a - /// FeedItem's unique key. It defaults to false if it is unspecified. Note - /// that a unique key is not required in a Feed's schema, in which case the - /// FeedItems must be referenced by their feed_item_id. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsPartOfKey { - get { if ((_hasBits0 & 2) != 0) { return isPartOfKey_; } else { return false; } } - set { - _hasBits0 |= 2; - isPartOfKey_ = value; - } - } - /// Gets whether the "is_part_of_key" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIsPartOfKey { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "is_part_of_key" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIsPartOfKey() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedAttribute); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedAttribute other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (Type != other.Type) return false; - if (IsPartOfKey != other.IsPartOfKey) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType.Unspecified) hash ^= Type.GetHashCode(); - if (HasIsPartOfKey) hash ^= IsPartOfKey.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Type != global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (HasId) { - output.WriteRawTag(40); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (HasIsPartOfKey) { - output.WriteRawTag(56); - output.WriteBool(IsPartOfKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Type != global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (HasId) { - output.WriteRawTag(40); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (HasIsPartOfKey) { - output.WriteRawTag(56); - output.WriteBool(IsPartOfKey); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (HasIsPartOfKey) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedAttribute other) { - if (other == null) { - return; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType.Unspecified) { - Type = other.Type; - } - if (other.HasIsPartOfKey) { - IsPartOfKey = other.IsPartOfKey; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType) input.ReadEnum(); - break; - } - case 40: { - Id = input.ReadInt64(); - break; - } - case 50: { - Name = input.ReadString(); - break; - } - case 56: { - IsPartOfKey = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType) input.ReadEnum(); - break; - } - case 40: { - Id = input.ReadInt64(); - break; - } - case 50: { - Name = input.ReadString(); - break; - } - case 56: { - IsPartOfKey = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Operation to be performed on a feed attribute list in a mutate. - /// - public sealed partial class FeedAttributeOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedAttributeOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeOperation(FeedAttributeOperation other) : this() { - operator_ = other.operator_; - value_ = other.value_ != null ? other.value_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeOperation Clone() { - return new FeedAttributeOperation(this); - } - - /// Field number for the "operator" field. - public const int OperatorFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator operator_ = global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator.Unspecified; - /// - /// Output only. Type of list operation to perform. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator Operator { - get { return operator_; } - set { - operator_ = value; - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute value_; - /// - /// Output only. The feed attribute being added to the list. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute Value { - get { return value_; } - set { - value_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedAttributeOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedAttributeOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Operator != other.Operator) return false; - if (!object.Equals(Value, other.Value)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Operator != global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator.Unspecified) hash ^= Operator.GetHashCode(); - if (value_ != null) hash ^= Value.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Operator != global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Operator); - } - if (value_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Operator != global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Operator); - } - if (value_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Value); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Operator != global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operator); - } - if (value_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedAttributeOperation other) { - if (other == null) { - return; - } - if (other.Operator != global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator.Unspecified) { - Operator = other.Operator; - } - if (other.value_ != null) { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute(); - } - Value.MergeFrom(other.Value); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Operator = (global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator) input.ReadEnum(); - break; - } - case 18: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute(); - } - input.ReadMessage(Value); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Operator = (global::Google.Ads.GoogleAds.V12.Resources.FeedAttributeOperation.Types.Operator) input.ReadEnum(); - break; - } - case 18: { - if (value_ == null) { - Value = new global::Google.Ads.GoogleAds.V12.Resources.FeedAttribute(); - } - input.ReadMessage(Value); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedAttributeOperation message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The operator. - /// - public enum Operator { - /// - /// Unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Add the attribute to the existing attributes. - /// - [pbr::OriginalName("ADD")] Add = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedAttributeReferenceError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedAttributeReferenceError.g.cs deleted file mode 100755 index 703d82629..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedAttributeReferenceError.g.cs +++ /dev/null @@ -1,243 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_attribute_reference_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_attribute_reference_error.proto - public static partial class FeedAttributeReferenceErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_attribute_reference_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedAttributeReferenceErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfYXR0cmli", - "dXRlX3JlZmVyZW5jZV9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVycm9ycyK6AQofRmVlZEF0dHJpYnV0ZVJlZmVyZW5jZUVycm9y", - "RW51bSKWAQobRmVlZEF0dHJpYnV0ZVJlZmVyZW5jZUVycm9yEg8KC1VOU1BF", - "Q0lGSUVEEAASCwoHVU5LTk9XThABEiEKHUNBTk5PVF9SRUZFUkVOQ0VfUkVN", - "T1ZFRF9GRUVEEAISFQoRSU5WQUxJRF9GRUVEX05BTUUQAxIfChtJTlZBTElE", - "X0ZFRURfQVRUUklCVVRFX05BTUUQBEKAAgojY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lcnJvcnNCIEZlZWRBdHRyaWJ1dGVSZWZlcmVuY2VFcnJv", - "clByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorEnum.Types.FeedAttributeReferenceError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible feed attribute reference errors. - /// - public sealed partial class FeedAttributeReferenceErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedAttributeReferenceErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedAttributeReferenceErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeReferenceErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeReferenceErrorEnum(FeedAttributeReferenceErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeReferenceErrorEnum Clone() { - return new FeedAttributeReferenceErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedAttributeReferenceErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedAttributeReferenceErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedAttributeReferenceErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedAttributeReferenceErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible feed attribute reference errors. - /// - public enum FeedAttributeReferenceError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A feed referenced by ID has been removed. - /// - [pbr::OriginalName("CANNOT_REFERENCE_REMOVED_FEED")] CannotReferenceRemovedFeed = 2, - /// - /// There is no enabled feed with the given name. - /// - [pbr::OriginalName("INVALID_FEED_NAME")] InvalidFeedName = 3, - /// - /// There is no feed attribute in an enabled feed with the given name. - /// - [pbr::OriginalName("INVALID_FEED_ATTRIBUTE_NAME")] InvalidFeedAttributeName = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedAttributeType.g.cs b/Google.Ads.GoogleAds/src/V12/FeedAttributeType.g.cs deleted file mode 100755 index 9cee2b2f8..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedAttributeType.g.cs +++ /dev/null @@ -1,284 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_attribute_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_attribute_type.proto - public static partial class FeedAttributeTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_attribute_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedAttributeTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9hdHRyaWJ1", - "dGVfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "IoQCChVGZWVkQXR0cmlidXRlVHlwZUVudW0i6gEKEUZlZWRBdHRyaWJ1dGVU", - "eXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgkKBUlOVDY0EAIS", - "CgoGRE9VQkxFEAMSCgoGU1RSSU5HEAQSCwoHQk9PTEVBThAFEgcKA1VSTBAG", - "Eg0KCURBVEVfVElNRRAHEg4KCklOVDY0X0xJU1QQCBIPCgtET1VCTEVfTElT", - "VBAJEg8KC1NUUklOR19MSVNUEAoSEAoMQk9PTEVBTl9MSVNUEAsSDAoIVVJM", - "X0xJU1QQDBISCg5EQVRFX1RJTUVfTElTVBANEgkKBVBSSUNFEA5C8AEKImNv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCFkZlZWRBdHRyaWJ1", - "dGVUeXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoC", - "Hkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNc", - "R29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeEnum.Types.FeedAttributeType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible data types for a feed attribute. - /// - public sealed partial class FeedAttributeTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedAttributeTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedAttributeTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeTypeEnum(FeedAttributeTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedAttributeTypeEnum Clone() { - return new FeedAttributeTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedAttributeTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedAttributeTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedAttributeTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedAttributeTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible data types for a feed attribute. - /// - public enum FeedAttributeType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Int64. - /// - [pbr::OriginalName("INT64")] Int64 = 2, - /// - /// Double. - /// - [pbr::OriginalName("DOUBLE")] Double = 3, - /// - /// String. - /// - [pbr::OriginalName("STRING")] String = 4, - /// - /// Boolean. - /// - [pbr::OriginalName("BOOLEAN")] Boolean = 5, - /// - /// Url. - /// - [pbr::OriginalName("URL")] Url = 6, - /// - /// Datetime. - /// - [pbr::OriginalName("DATE_TIME")] DateTime = 7, - /// - /// Int64 list. - /// - [pbr::OriginalName("INT64_LIST")] Int64List = 8, - /// - /// Double (8 bytes) list. - /// - [pbr::OriginalName("DOUBLE_LIST")] DoubleList = 9, - /// - /// String list. - /// - [pbr::OriginalName("STRING_LIST")] StringList = 10, - /// - /// Boolean list. - /// - [pbr::OriginalName("BOOLEAN_LIST")] BooleanList = 11, - /// - /// Url list. - /// - [pbr::OriginalName("URL_LIST")] UrlList = 12, - /// - /// Datetime list. - /// - [pbr::OriginalName("DATE_TIME_LIST")] DateTimeList = 13, - /// - /// Price. - /// - [pbr::OriginalName("PRICE")] Price = 14, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedCommon.g.cs b/Google.Ads.GoogleAds/src/V12/FeedCommon.g.cs deleted file mode 100755 index b90bdbdf6..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedCommon.g.cs +++ /dev/null @@ -1,313 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/feed_common.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/feed_common.proto - public static partial class FeedCommonReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/feed_common.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedCommonReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2ZlZWRfY29tbW9u", - "LnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uImMKBU1v", - "bmV5EhoKDWN1cnJlbmN5X2NvZGUYAyABKAlIAIgBARIaCg1hbW91bnRfbWlj", - "cm9zGAQgASgDSAGIAQFCEAoOX2N1cnJlbmN5X2NvZGVCEAoOX2Ftb3VudF9t", - "aWNyb3NC7wEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "Qg9GZWVkQ29tbW9uUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv", - "dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb247Y29tbW9u", - "ogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkNvbW1vbsoCH0dv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxDb21tb27qAiNHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTI6OkNvbW1vbmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.Money), global::Google.Ads.GoogleAds.V12.Common.Money.Parser, new[]{ "CurrencyCode", "AmountMicros" }, new[]{ "CurrencyCode", "AmountMicros" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a price in a particular currency. - /// - public sealed partial class Money : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Money()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.FeedCommonReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Money() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Money(Money other) : this() { - _hasBits0 = other._hasBits0; - currencyCode_ = other.currencyCode_; - amountMicros_ = other.amountMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Money Clone() { - return new Money(this); - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 3; - private string currencyCode_; - /// - /// Three-character ISO 4217 currency code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_ ?? ""; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyCode { - get { return currencyCode_ != null; } - } - /// Clears the value of the "currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyCode() { - currencyCode_ = null; - } - - /// Field number for the "amount_micros" field. - public const int AmountMicrosFieldNumber = 4; - private long amountMicros_; - /// - /// Amount in micros. One million is equivalent to one unit. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AmountMicros { - get { if ((_hasBits0 & 1) != 0) { return amountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - amountMicros_ = value; - } - } - /// Gets whether the "amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAmountMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAmountMicros() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Money); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Money other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CurrencyCode != other.CurrencyCode) return false; - if (AmountMicros != other.AmountMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCurrencyCode) hash ^= CurrencyCode.GetHashCode(); - if (HasAmountMicros) hash ^= AmountMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCurrencyCode) { - output.WriteRawTag(26); - output.WriteString(CurrencyCode); - } - if (HasAmountMicros) { - output.WriteRawTag(32); - output.WriteInt64(AmountMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCurrencyCode) { - output.WriteRawTag(26); - output.WriteString(CurrencyCode); - } - if (HasAmountMicros) { - output.WriteRawTag(32); - output.WriteInt64(AmountMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCurrencyCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - if (HasAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AmountMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Money other) { - if (other == null) { - return; - } - if (other.HasCurrencyCode) { - CurrencyCode = other.CurrencyCode; - } - if (other.HasAmountMicros) { - AmountMicros = other.AmountMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - CurrencyCode = input.ReadString(); - break; - } - case 32: { - AmountMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - CurrencyCode = input.ReadString(); - break; - } - case 32: { - AmountMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedError.g.cs deleted file mode 100755 index 5eae00e16..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedError.g.cs +++ /dev/null @@ -1,338 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_error.proto - public static partial class FeedErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfZXJyb3Iu", - "cHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMi6wYKDUZl", - "ZWRFcnJvckVudW0i2QYKCUZlZWRFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsK", - "B1VOS05PV04QARIeChpBVFRSSUJVVEVfTkFNRVNfTk9UX1VOSVFVRRACEi8K", - "K0FUVFJJQlVURVNfRE9fTk9UX01BVENIX0VYSVNUSU5HX0FUVFJJQlVURVMQ", - "AxIuCipDQU5OT1RfU1BFQ0lGWV9VU0VSX09SSUdJTl9GT1JfU1lTVEVNX0ZF", - "RUQQBBI0CjBDQU5OT1RfU1BFQ0lGWV9HT09HTEVfT1JJR0lOX0ZPUl9OT05f", - "U1lTVEVNX0ZFRUQQBRIyCi5DQU5OT1RfU1BFQ0lGWV9GRUVEX0FUVFJJQlVU", - "RVNfRk9SX1NZU1RFTV9GRUVEEAYSNAowQ0FOTk9UX1VQREFURV9GRUVEX0FU", - "VFJJQlVURVNfV0lUSF9PUklHSU5fR09PR0xFEAcSEAoMRkVFRF9SRU1PVkVE", - "EAgSGAoUSU5WQUxJRF9PUklHSU5fVkFMVUUQCRIbChdGRUVEX09SSUdJTl9J", - "U19OT1RfVVNFUhAKEiAKHElOVkFMSURfQVVUSF9UT0tFTl9GT1JfRU1BSUwQ", - "CxIRCg1JTlZBTElEX0VNQUlMEAwSFwoTRFVQTElDQVRFX0ZFRURfTkFNRRAN", - "EhUKEUlOVkFMSURfRkVFRF9OQU1FEA4SFgoSTUlTU0lOR19PQVVUSF9JTkZP", - "EA8SLgoqTkVXX0FUVFJJQlVURV9DQU5OT1RfQkVfUEFSVF9PRl9VTklRVUVf", - "S0VZEBASFwoTVE9PX01BTllfQVRUUklCVVRFUxAREhwKGElOVkFMSURfQlVT", - "SU5FU1NfQUNDT1VOVBASEjMKL0JVU0lORVNTX0FDQ09VTlRfQ0FOTk9UX0FD", - "Q0VTU19MT0NBVElPTl9BQ0NPVU5UEBMSHgoaSU5WQUxJRF9BRkZJTElBVEVf", - "Q0hBSU5fSUQQFBIZChVEVVBMSUNBVEVfU1lTVEVNX0ZFRUQQFRIUChBHTUJf", - "QUNDRVNTX0VSUk9SEBYSNQoxQ0FOTk9UX0hBVkVfTE9DQVRJT05fQU5EX0FG", - "RklMSUFURV9MT0NBVElPTl9GRUVEUxAXEiMKH0xFR0FDWV9FWFRFTlNJT05f", - "VFlQRV9SRUFEX09OTFkQGELuAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnNCDkZlZWRFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJy", - "b3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5F", - "cnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedErrorEnum.Types.FeedError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible feed errors. - /// - public sealed partial class FeedErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedErrorEnum(FeedErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedErrorEnum Clone() { - return new FeedErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible feed errors. - /// - public enum FeedError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The names of the FeedAttributes must be unique. - /// - [pbr::OriginalName("ATTRIBUTE_NAMES_NOT_UNIQUE")] AttributeNamesNotUnique = 2, - /// - /// The attribute list must be an exact copy of the existing list if the - /// attribute ID's are present. - /// - [pbr::OriginalName("ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES")] AttributesDoNotMatchExistingAttributes = 3, - /// - /// Cannot specify USER origin for a system generated feed. - /// - [pbr::OriginalName("CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED")] CannotSpecifyUserOriginForSystemFeed = 4, - /// - /// Cannot specify GOOGLE origin for a non-system generated feed. - /// - [pbr::OriginalName("CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED")] CannotSpecifyGoogleOriginForNonSystemFeed = 5, - /// - /// Cannot specify feed attributes for system feed. - /// - [pbr::OriginalName("CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED")] CannotSpecifyFeedAttributesForSystemFeed = 6, - /// - /// Cannot update FeedAttributes on feed with origin GOOGLE. - /// - [pbr::OriginalName("CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE")] CannotUpdateFeedAttributesWithOriginGoogle = 7, - /// - /// The given ID refers to a removed Feed. Removed Feeds are immutable. - /// - [pbr::OriginalName("FEED_REMOVED")] FeedRemoved = 8, - /// - /// The origin of the feed is not valid for the client. - /// - [pbr::OriginalName("INVALID_ORIGIN_VALUE")] InvalidOriginValue = 9, - /// - /// A user can only create and modify feeds with USER origin. - /// - [pbr::OriginalName("FEED_ORIGIN_IS_NOT_USER")] FeedOriginIsNotUser = 10, - /// - /// Invalid auth token for the given email. - /// - [pbr::OriginalName("INVALID_AUTH_TOKEN_FOR_EMAIL")] InvalidAuthTokenForEmail = 11, - /// - /// Invalid email specified. - /// - [pbr::OriginalName("INVALID_EMAIL")] InvalidEmail = 12, - /// - /// Feed name matches that of another active Feed. - /// - [pbr::OriginalName("DUPLICATE_FEED_NAME")] DuplicateFeedName = 13, - /// - /// Name of feed is not allowed. - /// - [pbr::OriginalName("INVALID_FEED_NAME")] InvalidFeedName = 14, - /// - /// Missing OAuthInfo. - /// - [pbr::OriginalName("MISSING_OAUTH_INFO")] MissingOauthInfo = 15, - /// - /// New FeedAttributes must not affect the unique key. - /// - [pbr::OriginalName("NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY")] NewAttributeCannotBePartOfUniqueKey = 16, - /// - /// Too many FeedAttributes for a Feed. - /// - [pbr::OriginalName("TOO_MANY_ATTRIBUTES")] TooManyAttributes = 17, - /// - /// The business account is not valid. - /// - [pbr::OriginalName("INVALID_BUSINESS_ACCOUNT")] InvalidBusinessAccount = 18, - /// - /// Business account cannot access Business Profile. - /// - [pbr::OriginalName("BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT")] BusinessAccountCannotAccessLocationAccount = 19, - /// - /// Invalid chain ID provided for affiliate location feed. - /// - [pbr::OriginalName("INVALID_AFFILIATE_CHAIN_ID")] InvalidAffiliateChainId = 20, - /// - /// There is already a feed with the given system feed generation data. - /// - [pbr::OriginalName("DUPLICATE_SYSTEM_FEED")] DuplicateSystemFeed = 21, - /// - /// An error occurred accessing Business Profile. - /// - [pbr::OriginalName("GMB_ACCESS_ERROR")] GmbAccessError = 22, - /// - /// A customer cannot have both LOCATION and AFFILIATE_LOCATION feeds. - /// - [pbr::OriginalName("CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS")] CannotHaveLocationAndAffiliateLocationFeeds = 23, - /// - /// Feed-based extension is read-only for this extension type. - /// - [pbr::OriginalName("LEGACY_EXTENSION_TYPE_READ_ONLY")] LegacyExtensionTypeReadOnly = 24, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItem.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItem.g.cs deleted file mode 100755 index fc2b163f0..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItem.g.cs +++ /dev/null @@ -1,2162 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/feed_item.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/feed_item.proto - public static partial class FeedItemReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/feed_item.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWRfaXRl", - "bS5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcxo2", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9jdXN0b21fcGFyYW1l", - "dGVyLnByb3RvGjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2Zl", - "ZWRfY29tbW9uLnByb3RvGixnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29t", - "bW9uL3BvbGljeS5wcm90bxpGZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL2ZlZWRfaXRlbV9xdWFsaXR5X2FwcHJvdmFsX3N0YXR1cy5wcm90bxpJ", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2ZlZWRfaXRlbV9xdWFs", - "aXR5X2Rpc2FwcHJvdmFsX3JlYXNvbi5wcm90bxo1Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zL2ZlZWRfaXRlbV9zdGF0dXMucHJvdG8aQGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9mZWVkX2l0ZW1fdmFsaWRhdGlv", - "bl9zdGF0dXMucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9nZW9fdGFyZ2V0aW5nX3Jlc3RyaWN0aW9uLnByb3RvGjVnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvcGxhY2Vob2xkZXJfdHlwZS5wcm90bxo7", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3BvbGljeV9hcHByb3Zh", - "bF9zdGF0dXMucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9wb2xpY3lfcmV2aWV3X3N0YXR1cy5wcm90bxpAZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2Vycm9ycy9mZWVkX2l0ZW1fdmFsaWRhdGlvbl9lcnJvci5w", - "cm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl", - "L2FwaS9yZXNvdXJjZS5wcm90byLFBgoIRmVlZEl0ZW0SQAoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIp4EEF+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "RmVlZEl0ZW0SOAoEZmVlZBgLIAEoCUIl4EEF+kEfCh1nb29nbGVhZHMuZ29v", - "Z2xlYXBpcy5jb20vRmVlZEgAiAEBEhQKAmlkGAwgASgDQgPgQQNIAYgBARIc", - "Cg9zdGFydF9kYXRlX3RpbWUYDSABKAlIAogBARIaCg1lbmRfZGF0ZV90aW1l", - "GA4gASgJSAOIAQESVAoQYXR0cmlidXRlX3ZhbHVlcxgGIAMoCzI6Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuRmVlZEl0ZW1BdHRyaWJ1", - "dGVWYWx1ZRJ2ChlnZW9fdGFyZ2V0aW5nX3Jlc3RyaWN0aW9uGAcgASgOMlMu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkdlb1RhcmdldGluZ1Jl", - "c3RyaWN0aW9uRW51bS5HZW9UYXJnZXRpbmdSZXN0cmljdGlvbhJPChV1cmxf", - "Y3VzdG9tX3BhcmFtZXRlcnMYCCADKAsyMC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuY29tbW9uLkN1c3RvbVBhcmFtZXRlchJWCgZzdGF0dXMYCSABKA4y", - "QS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRmVlZEl0ZW1TdGF0", - "dXNFbnVtLkZlZWRJdGVtU3RhdHVzQgPgQQMSXAoMcG9saWN5X2luZm9zGAog", - "AygLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5GZWVk", - "SXRlbVBsYWNlaG9sZGVyUG9saWN5SW5mb0ID4EEDOmLqQV8KIWdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9GZWVkSXRlbRI6Y3VzdG9tZXJzL3tjdXN0b21l", - "cl9pZH0vZmVlZEl0ZW1zL3tmZWVkX2lkfX57ZmVlZF9pdGVtX2lkfUIHCgVf", - "ZmVlZEIFCgNfaWRCEgoQX3N0YXJ0X2RhdGVfdGltZUIQCg5fZW5kX2RhdGVf", - "dGltZSKdAwoWRmVlZEl0ZW1BdHRyaWJ1dGVWYWx1ZRIeChFmZWVkX2F0dHJp", - "YnV0ZV9pZBgLIAEoA0gAiAEBEhoKDWludGVnZXJfdmFsdWUYDCABKANIAYgB", - "ARIaCg1ib29sZWFuX3ZhbHVlGA0gASgISAKIAQESGQoMc3RyaW5nX3ZhbHVl", - "GA4gASgJSAOIAQESGQoMZG91YmxlX3ZhbHVlGA8gASgBSASIAQESOwoLcHJp", - "Y2VfdmFsdWUYBiABKAsyJi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uLk1vbmV5EhYKDmludGVnZXJfdmFsdWVzGBAgAygDEhYKDmJvb2xlYW5f", - "dmFsdWVzGBEgAygIEhUKDXN0cmluZ192YWx1ZXMYEiADKAkSFQoNZG91Ymxl", - "X3ZhbHVlcxgTIAMoAUIUChJfZmVlZF9hdHRyaWJ1dGVfaWRCEAoOX2ludGVn", - "ZXJfdmFsdWVCEAoOX2Jvb2xlYW5fdmFsdWVCDwoNX3N0cmluZ192YWx1ZUIP", - "Cg1fZG91YmxlX3ZhbHVlIu0HCh1GZWVkSXRlbVBsYWNlaG9sZGVyUG9saWN5", - "SW5mbxJnChVwbGFjZWhvbGRlcl90eXBlX2VudW0YCiABKA4yQy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUGxhY2Vob2xkZXJUeXBlRW51bS5Q", - "bGFjZWhvbGRlclR5cGVCA+BBAxIsChpmZWVkX21hcHBpbmdfcmVzb3VyY2Vf", - "bmFtZRgLIAEoCUID4EEDSACIAQESZQoNcmV2aWV3X3N0YXR1cxgDIAEoDjJJ", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Qb2xpY3lSZXZpZXdT", - "dGF0dXNFbnVtLlBvbGljeVJldmlld1N0YXR1c0ID4EEDEmsKD2FwcHJvdmFs", - "X3N0YXR1cxgEIAEoDjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cy5Qb2xpY3lBcHByb3ZhbFN0YXR1c0VudW0uUG9saWN5QXBwcm92YWxTdGF0", - "dXNCA+BBAxJUChRwb2xpY3lfdG9waWNfZW50cmllcxgFIAMoCzIxLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uUG9saWN5VG9waWNFbnRyeUID", - "4EEDEnUKEXZhbGlkYXRpb25fc3RhdHVzGAYgASgOMlUuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLkZlZWRJdGVtVmFsaWRhdGlvblN0YXR1c0Vu", - "dW0uRmVlZEl0ZW1WYWxpZGF0aW9uU3RhdHVzQgPgQQMSWwoRdmFsaWRhdGlv", - "bl9lcnJvcnMYByADKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkZlZWRJdGVtVmFsaWRhdGlvbkVycm9yQgPgQQMShQEKF3F1YWxp", - "dHlfYXBwcm92YWxfc3RhdHVzGAggASgOMl8uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLkZlZWRJdGVtUXVhbGl0eUFwcHJvdmFsU3RhdHVzRW51", - "bS5GZWVkSXRlbVF1YWxpdHlBcHByb3ZhbFN0YXR1c0ID4EEDEo8BChtxdWFs", - "aXR5X2Rpc2FwcHJvdmFsX3JlYXNvbnMYCSADKA4yZS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuRmVlZEl0ZW1RdWFsaXR5RGlzYXBwcm92YWxS", - "ZWFzb25FbnVtLkZlZWRJdGVtUXVhbGl0eURpc2FwcHJvdmFsUmVhc29uQgPg", - "QQNCHQobX2ZlZWRfbWFwcGluZ19yZXNvdXJjZV9uYW1lIosCChdGZWVkSXRl", - "bVZhbGlkYXRpb25FcnJvchJzChB2YWxpZGF0aW9uX2Vycm9yGAEgASgOMlQu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycy5GZWVkSXRlbVZhbGlk", - "YXRpb25FcnJvckVudW0uRmVlZEl0ZW1WYWxpZGF0aW9uRXJyb3JCA+BBAxId", - "CgtkZXNjcmlwdGlvbhgGIAEoCUID4EEDSACIAQESHwoSZmVlZF9hdHRyaWJ1", - "dGVfaWRzGAcgAygDQgPgQQMSHAoKZXh0cmFfaW5mbxgIIAEoCUID4EEDSAGI", - "AQFCDgoMX2Rlc2NyaXB0aW9uQg0KC19leHRyYV9pbmZvQv8BCiZjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlc0INRmVlZEl0ZW1Qcm90", - "b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.FeedCommonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityDisapprovalReasonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedItem), global::Google.Ads.GoogleAds.V12.Resources.FeedItem.Parser, new[]{ "ResourceName", "Feed", "Id", "StartDateTime", "EndDateTime", "AttributeValues", "GeoTargetingRestriction", "UrlCustomParameters", "Status", "PolicyInfos" }, new[]{ "Feed", "Id", "StartDateTime", "EndDateTime" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedItemAttributeValue), global::Google.Ads.GoogleAds.V12.Resources.FeedItemAttributeValue.Parser, new[]{ "FeedAttributeId", "IntegerValue", "BooleanValue", "StringValue", "DoubleValue", "PriceValue", "IntegerValues", "BooleanValues", "StringValues", "DoubleValues" }, new[]{ "FeedAttributeId", "IntegerValue", "BooleanValue", "StringValue", "DoubleValue" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedItemPlaceholderPolicyInfo), global::Google.Ads.GoogleAds.V12.Resources.FeedItemPlaceholderPolicyInfo.Parser, new[]{ "PlaceholderTypeEnum", "FeedMappingResourceName", "ReviewStatus", "ApprovalStatus", "PolicyTopicEntries", "ValidationStatus", "ValidationErrors", "QualityApprovalStatus", "QualityDisapprovalReasons" }, new[]{ "FeedMappingResourceName" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedItemValidationError), global::Google.Ads.GoogleAds.V12.Resources.FeedItemValidationError.Parser, new[]{ "ValidationError", "Description", "FeedAttributeIds", "ExtraInfo" }, new[]{ "Description", "ExtraInfo" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A feed item. - /// - public sealed partial class FeedItem : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItem()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedItemReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItem(FeedItem other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - feed_ = other.feed_; - id_ = other.id_; - startDateTime_ = other.startDateTime_; - endDateTime_ = other.endDateTime_; - attributeValues_ = other.attributeValues_.Clone(); - geoTargetingRestriction_ = other.geoTargetingRestriction_; - urlCustomParameters_ = other.urlCustomParameters_.Clone(); - status_ = other.status_; - policyInfos_ = other.policyInfos_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItem Clone() { - return new FeedItem(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the feed item. - /// Feed item resource names have the form: - /// - /// `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 11; - private string feed_; - /// - /// Immutable. The feed to which this feed item belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_ ?? ""; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeed { - get { return feed_ != null; } - } - /// Clears the value of the "feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeed() { - feed_ = null; - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 12; - private long id_; - /// - /// Output only. The ID of this feed item. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "start_date_time" field. - public const int StartDateTimeFieldNumber = 13; - private string startDateTime_; - /// - /// Start time in which this feed item is effective and can begin serving. The - /// time is in the customer's time zone. - /// The format is "YYYY-MM-DD HH:MM:SS". - /// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDateTime { - get { return startDateTime_ ?? ""; } - set { - startDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDateTime { - get { return startDateTime_ != null; } - } - /// Clears the value of the "start_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDateTime() { - startDateTime_ = null; - } - - /// Field number for the "end_date_time" field. - public const int EndDateTimeFieldNumber = 14; - private string endDateTime_; - /// - /// End time in which this feed item is no longer effective and will stop - /// serving. The time is in the customer's time zone. - /// The format is "YYYY-MM-DD HH:MM:SS". - /// Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string EndDateTime { - get { return endDateTime_ ?? ""; } - set { - endDateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "end_date_time" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasEndDateTime { - get { return endDateTime_ != null; } - } - /// Clears the value of the "end_date_time" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearEndDateTime() { - endDateTime_ = null; - } - - /// Field number for the "attribute_values" field. - public const int AttributeValuesFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_attributeValues_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Resources.FeedItemAttributeValue.Parser); - private readonly pbc::RepeatedField attributeValues_ = new pbc::RepeatedField(); - /// - /// The feed item's attribute values. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AttributeValues { - get { return attributeValues_; } - } - - /// Field number for the "geo_targeting_restriction" field. - public const int GeoTargetingRestrictionFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction geoTargetingRestriction_ = global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction.Unspecified; - /// - /// Geo targeting restriction specifies the type of location that can be used - /// for targeting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction GeoTargetingRestriction { - get { return geoTargetingRestriction_; } - set { - geoTargetingRestriction_ = value; - } - } - - /// Field number for the "url_custom_parameters" field. - public const int UrlCustomParametersFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_urlCustomParameters_codec - = pb::FieldCodec.ForMessage(66, global::Google.Ads.GoogleAds.V12.Common.CustomParameter.Parser); - private readonly pbc::RepeatedField urlCustomParameters_ = new pbc::RepeatedField(); - /// - /// The list of mappings used to substitute custom parameter tags in a - /// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UrlCustomParameters { - get { return urlCustomParameters_; } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified; - /// - /// Output only. Status of the feed item. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "policy_infos" field. - public const int PolicyInfosFieldNumber = 10; - private static readonly pb::FieldCodec _repeated_policyInfos_codec - = pb::FieldCodec.ForMessage(82, global::Google.Ads.GoogleAds.V12.Resources.FeedItemPlaceholderPolicyInfo.Parser); - private readonly pbc::RepeatedField policyInfos_ = new pbc::RepeatedField(); - /// - /// Output only. List of info about a feed item's validation and approval state for active - /// feed mappings. There will be an entry in the list for each type of feed - /// mapping associated with the feed, for example, a feed with a sitelink and a - /// call feed mapping would cause every feed item associated with that feed to - /// have an entry in this list for both sitelink and call. This field is - /// read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PolicyInfos { - get { return policyInfos_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Feed != other.Feed) return false; - if (Id != other.Id) return false; - if (StartDateTime != other.StartDateTime) return false; - if (EndDateTime != other.EndDateTime) return false; - if(!attributeValues_.Equals(other.attributeValues_)) return false; - if (GeoTargetingRestriction != other.GeoTargetingRestriction) return false; - if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; - if (Status != other.Status) return false; - if(!policyInfos_.Equals(other.policyInfos_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasFeed) hash ^= Feed.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasStartDateTime) hash ^= StartDateTime.GetHashCode(); - if (HasEndDateTime) hash ^= EndDateTime.GetHashCode(); - hash ^= attributeValues_.GetHashCode(); - if (GeoTargetingRestriction != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction.Unspecified) hash ^= GeoTargetingRestriction.GetHashCode(); - hash ^= urlCustomParameters_.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) hash ^= Status.GetHashCode(); - hash ^= policyInfos_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - attributeValues_.WriteTo(output, _repeated_attributeValues_codec); - if (GeoTargetingRestriction != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) GeoTargetingRestriction); - } - urlCustomParameters_.WriteTo(output, _repeated_urlCustomParameters_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Status); - } - policyInfos_.WriteTo(output, _repeated_policyInfos_codec); - if (HasFeed) { - output.WriteRawTag(90); - output.WriteString(Feed); - } - if (HasId) { - output.WriteRawTag(96); - output.WriteInt64(Id); - } - if (HasStartDateTime) { - output.WriteRawTag(106); - output.WriteString(StartDateTime); - } - if (HasEndDateTime) { - output.WriteRawTag(114); - output.WriteString(EndDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - attributeValues_.WriteTo(ref output, _repeated_attributeValues_codec); - if (GeoTargetingRestriction != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) GeoTargetingRestriction); - } - urlCustomParameters_.WriteTo(ref output, _repeated_urlCustomParameters_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) Status); - } - policyInfos_.WriteTo(ref output, _repeated_policyInfos_codec); - if (HasFeed) { - output.WriteRawTag(90); - output.WriteString(Feed); - } - if (HasId) { - output.WriteRawTag(96); - output.WriteInt64(Id); - } - if (HasStartDateTime) { - output.WriteRawTag(106); - output.WriteString(StartDateTime); - } - if (HasEndDateTime) { - output.WriteRawTag(114); - output.WriteString(EndDateTime); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasFeed) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasStartDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDateTime); - } - if (HasEndDateTime) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(EndDateTime); - } - size += attributeValues_.CalculateSize(_repeated_attributeValues_codec); - if (GeoTargetingRestriction != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GeoTargetingRestriction); - } - size += urlCustomParameters_.CalculateSize(_repeated_urlCustomParameters_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - size += policyInfos_.CalculateSize(_repeated_policyInfos_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItem other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasFeed) { - Feed = other.Feed; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasStartDateTime) { - StartDateTime = other.StartDateTime; - } - if (other.HasEndDateTime) { - EndDateTime = other.EndDateTime; - } - attributeValues_.Add(other.attributeValues_); - if (other.GeoTargetingRestriction != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction.Unspecified) { - GeoTargetingRestriction = other.GeoTargetingRestriction; - } - urlCustomParameters_.Add(other.urlCustomParameters_); - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus.Unspecified) { - Status = other.Status; - } - policyInfos_.Add(other.policyInfos_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 50: { - attributeValues_.AddEntriesFrom(input, _repeated_attributeValues_codec); - break; - } - case 56: { - GeoTargetingRestriction = (global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction) input.ReadEnum(); - break; - } - case 66: { - urlCustomParameters_.AddEntriesFrom(input, _repeated_urlCustomParameters_codec); - break; - } - case 72: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus) input.ReadEnum(); - break; - } - case 82: { - policyInfos_.AddEntriesFrom(input, _repeated_policyInfos_codec); - break; - } - case 90: { - Feed = input.ReadString(); - break; - } - case 96: { - Id = input.ReadInt64(); - break; - } - case 106: { - StartDateTime = input.ReadString(); - break; - } - case 114: { - EndDateTime = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 50: { - attributeValues_.AddEntriesFrom(ref input, _repeated_attributeValues_codec); - break; - } - case 56: { - GeoTargetingRestriction = (global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction) input.ReadEnum(); - break; - } - case 66: { - urlCustomParameters_.AddEntriesFrom(ref input, _repeated_urlCustomParameters_codec); - break; - } - case 72: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus) input.ReadEnum(); - break; - } - case 82: { - policyInfos_.AddEntriesFrom(ref input, _repeated_policyInfos_codec); - break; - } - case 90: { - Feed = input.ReadString(); - break; - } - case 96: { - Id = input.ReadInt64(); - break; - } - case 106: { - StartDateTime = input.ReadString(); - break; - } - case 114: { - EndDateTime = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A feed item attribute value. - /// - public sealed partial class FeedItemAttributeValue : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemAttributeValue()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedItemReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemAttributeValue() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemAttributeValue(FeedItemAttributeValue other) : this() { - _hasBits0 = other._hasBits0; - feedAttributeId_ = other.feedAttributeId_; - integerValue_ = other.integerValue_; - booleanValue_ = other.booleanValue_; - stringValue_ = other.stringValue_; - doubleValue_ = other.doubleValue_; - priceValue_ = other.priceValue_ != null ? other.priceValue_.Clone() : null; - integerValues_ = other.integerValues_.Clone(); - booleanValues_ = other.booleanValues_.Clone(); - stringValues_ = other.stringValues_.Clone(); - doubleValues_ = other.doubleValues_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemAttributeValue Clone() { - return new FeedItemAttributeValue(this); - } - - /// Field number for the "feed_attribute_id" field. - public const int FeedAttributeIdFieldNumber = 11; - private long feedAttributeId_; - /// - /// Id of the feed attribute for which the value is associated with. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FeedAttributeId { - get { if ((_hasBits0 & 1) != 0) { return feedAttributeId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - feedAttributeId_ = value; - } - } - /// Gets whether the "feed_attribute_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeedAttributeId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "feed_attribute_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeedAttributeId() { - _hasBits0 &= ~1; - } - - /// Field number for the "integer_value" field. - public const int IntegerValueFieldNumber = 12; - private long integerValue_; - /// - /// Int64 value. Should be set if feed_attribute_id refers to a feed attribute - /// of type INT64. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IntegerValue { - get { if ((_hasBits0 & 2) != 0) { return integerValue_; } else { return 0L; } } - set { - _hasBits0 |= 2; - integerValue_ = value; - } - } - /// Gets whether the "integer_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIntegerValue { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "integer_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIntegerValue() { - _hasBits0 &= ~2; - } - - /// Field number for the "boolean_value" field. - public const int BooleanValueFieldNumber = 13; - private bool booleanValue_; - /// - /// Bool value. Should be set if feed_attribute_id refers to a feed attribute - /// of type BOOLEAN. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool BooleanValue { - get { if ((_hasBits0 & 4) != 0) { return booleanValue_; } else { return false; } } - set { - _hasBits0 |= 4; - booleanValue_ = value; - } - } - /// Gets whether the "boolean_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBooleanValue { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "boolean_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBooleanValue() { - _hasBits0 &= ~4; - } - - /// Field number for the "string_value" field. - public const int StringValueFieldNumber = 14; - private string stringValue_; - /// - /// String value. Should be set if feed_attribute_id refers to a feed attribute - /// of type STRING, URL or DATE_TIME. - /// For STRING the maximum length is 1500 characters. For URL the maximum - /// length is 2076 characters. For DATE_TIME the string must be in the format - /// "YYYYMMDD HHMMSS". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StringValue { - get { return stringValue_ ?? ""; } - set { - stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "string_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStringValue { - get { return stringValue_ != null; } - } - /// Clears the value of the "string_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStringValue() { - stringValue_ = null; - } - - /// Field number for the "double_value" field. - public const int DoubleValueFieldNumber = 15; - private double doubleValue_; - /// - /// Double value. Should be set if feed_attribute_id refers to a feed attribute - /// of type DOUBLE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double DoubleValue { - get { if ((_hasBits0 & 8) != 0) { return doubleValue_; } else { return 0D; } } - set { - _hasBits0 |= 8; - doubleValue_ = value; - } - } - /// Gets whether the "double_value" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDoubleValue { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "double_value" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDoubleValue() { - _hasBits0 &= ~8; - } - - /// Field number for the "price_value" field. - public const int PriceValueFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Common.Money priceValue_; - /// - /// Price value. Should be set if feed_attribute_id refers to a feed attribute - /// of type PRICE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Money PriceValue { - get { return priceValue_; } - set { - priceValue_ = value; - } - } - - /// Field number for the "integer_values" field. - public const int IntegerValuesFieldNumber = 16; - private static readonly pb::FieldCodec _repeated_integerValues_codec - = pb::FieldCodec.ForInt64(130); - private readonly pbc::RepeatedField integerValues_ = new pbc::RepeatedField(); - /// - /// Repeated int64 value. Should be set if feed_attribute_id refers to a feed - /// attribute of type INT64_LIST. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField IntegerValues { - get { return integerValues_; } - } - - /// Field number for the "boolean_values" field. - public const int BooleanValuesFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_booleanValues_codec - = pb::FieldCodec.ForBool(138); - private readonly pbc::RepeatedField booleanValues_ = new pbc::RepeatedField(); - /// - /// Repeated bool value. Should be set if feed_attribute_id refers to a feed - /// attribute of type BOOLEAN_LIST. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField BooleanValues { - get { return booleanValues_; } - } - - /// Field number for the "string_values" field. - public const int StringValuesFieldNumber = 18; - private static readonly pb::FieldCodec _repeated_stringValues_codec - = pb::FieldCodec.ForString(146); - private readonly pbc::RepeatedField stringValues_ = new pbc::RepeatedField(); - /// - /// Repeated string value. Should be set if feed_attribute_id refers to a feed - /// attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST. - /// For STRING_LIST and URL_LIST the total size of the list in bytes may not - /// exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200. - /// - /// For STRING_LIST the maximum length of each string element is 1500 - /// characters. For URL_LIST the maximum length is 2076 characters. For - /// DATE_TIME the format of the string must be the same as start and end time - /// for the feed item. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField StringValues { - get { return stringValues_; } - } - - /// Field number for the "double_values" field. - public const int DoubleValuesFieldNumber = 19; - private static readonly pb::FieldCodec _repeated_doubleValues_codec - = pb::FieldCodec.ForDouble(154); - private readonly pbc::RepeatedField doubleValues_ = new pbc::RepeatedField(); - /// - /// Repeated double value. Should be set if feed_attribute_id refers to a feed - /// attribute of type DOUBLE_LIST. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DoubleValues { - get { return doubleValues_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemAttributeValue); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemAttributeValue other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FeedAttributeId != other.FeedAttributeId) return false; - if (IntegerValue != other.IntegerValue) return false; - if (BooleanValue != other.BooleanValue) return false; - if (StringValue != other.StringValue) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false; - if (!object.Equals(PriceValue, other.PriceValue)) return false; - if(!integerValues_.Equals(other.integerValues_)) return false; - if(!booleanValues_.Equals(other.booleanValues_)) return false; - if(!stringValues_.Equals(other.stringValues_)) return false; - if(!doubleValues_.Equals(other.doubleValues_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasFeedAttributeId) hash ^= FeedAttributeId.GetHashCode(); - if (HasIntegerValue) hash ^= IntegerValue.GetHashCode(); - if (HasBooleanValue) hash ^= BooleanValue.GetHashCode(); - if (HasStringValue) hash ^= StringValue.GetHashCode(); - if (HasDoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue); - if (priceValue_ != null) hash ^= PriceValue.GetHashCode(); - hash ^= integerValues_.GetHashCode(); - hash ^= booleanValues_.GetHashCode(); - hash ^= stringValues_.GetHashCode(); - hash ^= doubleValues_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (priceValue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PriceValue); - } - if (HasFeedAttributeId) { - output.WriteRawTag(88); - output.WriteInt64(FeedAttributeId); - } - if (HasIntegerValue) { - output.WriteRawTag(96); - output.WriteInt64(IntegerValue); - } - if (HasBooleanValue) { - output.WriteRawTag(104); - output.WriteBool(BooleanValue); - } - if (HasStringValue) { - output.WriteRawTag(114); - output.WriteString(StringValue); - } - if (HasDoubleValue) { - output.WriteRawTag(121); - output.WriteDouble(DoubleValue); - } - integerValues_.WriteTo(output, _repeated_integerValues_codec); - booleanValues_.WriteTo(output, _repeated_booleanValues_codec); - stringValues_.WriteTo(output, _repeated_stringValues_codec); - doubleValues_.WriteTo(output, _repeated_doubleValues_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (priceValue_ != null) { - output.WriteRawTag(50); - output.WriteMessage(PriceValue); - } - if (HasFeedAttributeId) { - output.WriteRawTag(88); - output.WriteInt64(FeedAttributeId); - } - if (HasIntegerValue) { - output.WriteRawTag(96); - output.WriteInt64(IntegerValue); - } - if (HasBooleanValue) { - output.WriteRawTag(104); - output.WriteBool(BooleanValue); - } - if (HasStringValue) { - output.WriteRawTag(114); - output.WriteString(StringValue); - } - if (HasDoubleValue) { - output.WriteRawTag(121); - output.WriteDouble(DoubleValue); - } - integerValues_.WriteTo(ref output, _repeated_integerValues_codec); - booleanValues_.WriteTo(ref output, _repeated_booleanValues_codec); - stringValues_.WriteTo(ref output, _repeated_stringValues_codec); - doubleValues_.WriteTo(ref output, _repeated_doubleValues_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasFeedAttributeId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(FeedAttributeId); - } - if (HasIntegerValue) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntegerValue); - } - if (HasBooleanValue) { - size += 1 + 1; - } - if (HasStringValue) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); - } - if (HasDoubleValue) { - size += 1 + 8; - } - if (priceValue_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PriceValue); - } - size += integerValues_.CalculateSize(_repeated_integerValues_codec); - size += booleanValues_.CalculateSize(_repeated_booleanValues_codec); - size += stringValues_.CalculateSize(_repeated_stringValues_codec); - size += doubleValues_.CalculateSize(_repeated_doubleValues_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemAttributeValue other) { - if (other == null) { - return; - } - if (other.HasFeedAttributeId) { - FeedAttributeId = other.FeedAttributeId; - } - if (other.HasIntegerValue) { - IntegerValue = other.IntegerValue; - } - if (other.HasBooleanValue) { - BooleanValue = other.BooleanValue; - } - if (other.HasStringValue) { - StringValue = other.StringValue; - } - if (other.HasDoubleValue) { - DoubleValue = other.DoubleValue; - } - if (other.priceValue_ != null) { - if (priceValue_ == null) { - PriceValue = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - PriceValue.MergeFrom(other.PriceValue); - } - integerValues_.Add(other.integerValues_); - booleanValues_.Add(other.booleanValues_); - stringValues_.Add(other.stringValues_); - doubleValues_.Add(other.doubleValues_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 50: { - if (priceValue_ == null) { - PriceValue = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - input.ReadMessage(PriceValue); - break; - } - case 88: { - FeedAttributeId = input.ReadInt64(); - break; - } - case 96: { - IntegerValue = input.ReadInt64(); - break; - } - case 104: { - BooleanValue = input.ReadBool(); - break; - } - case 114: { - StringValue = input.ReadString(); - break; - } - case 121: { - DoubleValue = input.ReadDouble(); - break; - } - case 130: - case 128: { - integerValues_.AddEntriesFrom(input, _repeated_integerValues_codec); - break; - } - case 138: - case 136: { - booleanValues_.AddEntriesFrom(input, _repeated_booleanValues_codec); - break; - } - case 146: { - stringValues_.AddEntriesFrom(input, _repeated_stringValues_codec); - break; - } - case 154: - case 153: { - doubleValues_.AddEntriesFrom(input, _repeated_doubleValues_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 50: { - if (priceValue_ == null) { - PriceValue = new global::Google.Ads.GoogleAds.V12.Common.Money(); - } - input.ReadMessage(PriceValue); - break; - } - case 88: { - FeedAttributeId = input.ReadInt64(); - break; - } - case 96: { - IntegerValue = input.ReadInt64(); - break; - } - case 104: { - BooleanValue = input.ReadBool(); - break; - } - case 114: { - StringValue = input.ReadString(); - break; - } - case 121: { - DoubleValue = input.ReadDouble(); - break; - } - case 130: - case 128: { - integerValues_.AddEntriesFrom(ref input, _repeated_integerValues_codec); - break; - } - case 138: - case 136: { - booleanValues_.AddEntriesFrom(ref input, _repeated_booleanValues_codec); - break; - } - case 146: { - stringValues_.AddEntriesFrom(ref input, _repeated_stringValues_codec); - break; - } - case 154: - case 153: { - doubleValues_.AddEntriesFrom(ref input, _repeated_doubleValues_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Policy, validation, and quality approval info for a feed item for the - /// specified placeholder type. - /// - public sealed partial class FeedItemPlaceholderPolicyInfo : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemPlaceholderPolicyInfo()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedItemReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemPlaceholderPolicyInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemPlaceholderPolicyInfo(FeedItemPlaceholderPolicyInfo other) : this() { - placeholderTypeEnum_ = other.placeholderTypeEnum_; - feedMappingResourceName_ = other.feedMappingResourceName_; - reviewStatus_ = other.reviewStatus_; - approvalStatus_ = other.approvalStatus_; - policyTopicEntries_ = other.policyTopicEntries_.Clone(); - validationStatus_ = other.validationStatus_; - validationErrors_ = other.validationErrors_.Clone(); - qualityApprovalStatus_ = other.qualityApprovalStatus_; - qualityDisapprovalReasons_ = other.qualityDisapprovalReasons_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemPlaceholderPolicyInfo Clone() { - return new FeedItemPlaceholderPolicyInfo(this); - } - - /// Field number for the "placeholder_type_enum" field. - public const int PlaceholderTypeEnumFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType placeholderTypeEnum_ = global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified; - /// - /// Output only. The placeholder type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType PlaceholderTypeEnum { - get { return placeholderTypeEnum_; } - set { - placeholderTypeEnum_ = value; - } - } - - /// Field number for the "feed_mapping_resource_name" field. - public const int FeedMappingResourceNameFieldNumber = 11; - private string feedMappingResourceName_; - /// - /// Output only. The FeedMapping that contains the placeholder type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedMappingResourceName { - get { return feedMappingResourceName_ ?? ""; } - set { - feedMappingResourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed_mapping_resource_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeedMappingResourceName { - get { return feedMappingResourceName_ != null; } - } - /// Clears the value of the "feed_mapping_resource_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeedMappingResourceName() { - feedMappingResourceName_ = null; - } - - /// Field number for the "review_status" field. - public const int ReviewStatusFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus reviewStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified; - /// - /// Output only. Where the placeholder type is in the review process. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus ReviewStatus { - get { return reviewStatus_; } - set { - reviewStatus_ = value; - } - } - - /// Field number for the "approval_status" field. - public const int ApprovalStatusFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus approvalStatus_ = global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified; - /// - /// Output only. The overall approval status of the placeholder type, calculated based on - /// the status of its individual policy topic entries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus ApprovalStatus { - get { return approvalStatus_; } - set { - approvalStatus_ = value; - } - } - - /// Field number for the "policy_topic_entries" field. - public const int PolicyTopicEntriesFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_policyTopicEntries_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Common.PolicyTopicEntry.Parser); - private readonly pbc::RepeatedField policyTopicEntries_ = new pbc::RepeatedField(); - /// - /// Output only. The list of policy findings for the placeholder type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField PolicyTopicEntries { - get { return policyTopicEntries_; } - } - - /// Field number for the "validation_status" field. - public const int ValidationStatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus validationStatus_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus.Unspecified; - /// - /// Output only. The validation status of the palceholder type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus ValidationStatus { - get { return validationStatus_; } - set { - validationStatus_ = value; - } - } - - /// Field number for the "validation_errors" field. - public const int ValidationErrorsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_validationErrors_codec - = pb::FieldCodec.ForMessage(58, global::Google.Ads.GoogleAds.V12.Resources.FeedItemValidationError.Parser); - private readonly pbc::RepeatedField validationErrors_ = new pbc::RepeatedField(); - /// - /// Output only. List of placeholder type validation errors. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ValidationErrors { - get { return validationErrors_; } - } - - /// Field number for the "quality_approval_status" field. - public const int QualityApprovalStatusFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus qualityApprovalStatus_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus.Unspecified; - /// - /// Output only. Placeholder type quality evaluation approval status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus QualityApprovalStatus { - get { return qualityApprovalStatus_; } - set { - qualityApprovalStatus_ = value; - } - } - - /// Field number for the "quality_disapproval_reasons" field. - public const int QualityDisapprovalReasonsFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_qualityDisapprovalReasons_codec - = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityDisapprovalReasonEnum.Types.FeedItemQualityDisapprovalReason) x); - private readonly pbc::RepeatedField qualityDisapprovalReasons_ = new pbc::RepeatedField(); - /// - /// Output only. List of placeholder type quality evaluation disapproval reasons. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField QualityDisapprovalReasons { - get { return qualityDisapprovalReasons_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemPlaceholderPolicyInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemPlaceholderPolicyInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (PlaceholderTypeEnum != other.PlaceholderTypeEnum) return false; - if (FeedMappingResourceName != other.FeedMappingResourceName) return false; - if (ReviewStatus != other.ReviewStatus) return false; - if (ApprovalStatus != other.ApprovalStatus) return false; - if(!policyTopicEntries_.Equals(other.policyTopicEntries_)) return false; - if (ValidationStatus != other.ValidationStatus) return false; - if(!validationErrors_.Equals(other.validationErrors_)) return false; - if (QualityApprovalStatus != other.QualityApprovalStatus) return false; - if(!qualityDisapprovalReasons_.Equals(other.qualityDisapprovalReasons_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (PlaceholderTypeEnum != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) hash ^= PlaceholderTypeEnum.GetHashCode(); - if (HasFeedMappingResourceName) hash ^= FeedMappingResourceName.GetHashCode(); - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) hash ^= ReviewStatus.GetHashCode(); - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) hash ^= ApprovalStatus.GetHashCode(); - hash ^= policyTopicEntries_.GetHashCode(); - if (ValidationStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus.Unspecified) hash ^= ValidationStatus.GetHashCode(); - hash ^= validationErrors_.GetHashCode(); - if (QualityApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus.Unspecified) hash ^= QualityApprovalStatus.GetHashCode(); - hash ^= qualityDisapprovalReasons_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ApprovalStatus); - } - policyTopicEntries_.WriteTo(output, _repeated_policyTopicEntries_codec); - if (ValidationStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) ValidationStatus); - } - validationErrors_.WriteTo(output, _repeated_validationErrors_codec); - if (QualityApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) QualityApprovalStatus); - } - qualityDisapprovalReasons_.WriteTo(output, _repeated_qualityDisapprovalReasons_codec); - if (PlaceholderTypeEnum != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) PlaceholderTypeEnum); - } - if (HasFeedMappingResourceName) { - output.WriteRawTag(90); - output.WriteString(FeedMappingResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) ApprovalStatus); - } - policyTopicEntries_.WriteTo(ref output, _repeated_policyTopicEntries_codec); - if (ValidationStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) ValidationStatus); - } - validationErrors_.WriteTo(ref output, _repeated_validationErrors_codec); - if (QualityApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) QualityApprovalStatus); - } - qualityDisapprovalReasons_.WriteTo(ref output, _repeated_qualityDisapprovalReasons_codec); - if (PlaceholderTypeEnum != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) PlaceholderTypeEnum); - } - if (HasFeedMappingResourceName) { - output.WriteRawTag(90); - output.WriteString(FeedMappingResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (PlaceholderTypeEnum != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlaceholderTypeEnum); - } - if (HasFeedMappingResourceName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedMappingResourceName); - } - if (ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ReviewStatus); - } - if (ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ApprovalStatus); - } - size += policyTopicEntries_.CalculateSize(_repeated_policyTopicEntries_codec); - if (ValidationStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValidationStatus); - } - size += validationErrors_.CalculateSize(_repeated_validationErrors_codec); - if (QualityApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QualityApprovalStatus); - } - size += qualityDisapprovalReasons_.CalculateSize(_repeated_qualityDisapprovalReasons_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemPlaceholderPolicyInfo other) { - if (other == null) { - return; - } - if (other.PlaceholderTypeEnum != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - PlaceholderTypeEnum = other.PlaceholderTypeEnum; - } - if (other.HasFeedMappingResourceName) { - FeedMappingResourceName = other.FeedMappingResourceName; - } - if (other.ReviewStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus.Unspecified) { - ReviewStatus = other.ReviewStatus; - } - if (other.ApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus.Unspecified) { - ApprovalStatus = other.ApprovalStatus; - } - policyTopicEntries_.Add(other.policyTopicEntries_); - if (other.ValidationStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus.Unspecified) { - ValidationStatus = other.ValidationStatus; - } - validationErrors_.Add(other.validationErrors_); - if (other.QualityApprovalStatus != global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus.Unspecified) { - QualityApprovalStatus = other.QualityApprovalStatus; - } - qualityDisapprovalReasons_.Add(other.qualityDisapprovalReasons_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 32: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - case 42: { - policyTopicEntries_.AddEntriesFrom(input, _repeated_policyTopicEntries_codec); - break; - } - case 48: { - ValidationStatus = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus) input.ReadEnum(); - break; - } - case 58: { - validationErrors_.AddEntriesFrom(input, _repeated_validationErrors_codec); - break; - } - case 64: { - QualityApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus) input.ReadEnum(); - break; - } - case 74: - case 72: { - qualityDisapprovalReasons_.AddEntriesFrom(input, _repeated_qualityDisapprovalReasons_codec); - break; - } - case 80: { - PlaceholderTypeEnum = (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) input.ReadEnum(); - break; - } - case 90: { - FeedMappingResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - ReviewStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyReviewStatusEnum.Types.PolicyReviewStatus) input.ReadEnum(); - break; - } - case 32: { - ApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.PolicyApprovalStatusEnum.Types.PolicyApprovalStatus) input.ReadEnum(); - break; - } - case 42: { - policyTopicEntries_.AddEntriesFrom(ref input, _repeated_policyTopicEntries_codec); - break; - } - case 48: { - ValidationStatus = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus) input.ReadEnum(); - break; - } - case 58: { - validationErrors_.AddEntriesFrom(ref input, _repeated_validationErrors_codec); - break; - } - case 64: { - QualityApprovalStatus = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus) input.ReadEnum(); - break; - } - case 74: - case 72: { - qualityDisapprovalReasons_.AddEntriesFrom(ref input, _repeated_qualityDisapprovalReasons_codec); - break; - } - case 80: { - PlaceholderTypeEnum = (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) input.ReadEnum(); - break; - } - case 90: { - FeedMappingResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Stores a validation error and the set of offending feed attributes which - /// together are responsible for causing a feed item validation error. - /// - public sealed partial class FeedItemValidationError : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemValidationError()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedItemReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationError() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationError(FeedItemValidationError other) : this() { - validationError_ = other.validationError_; - description_ = other.description_; - feedAttributeIds_ = other.feedAttributeIds_.Clone(); - extraInfo_ = other.extraInfo_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationError Clone() { - return new FeedItemValidationError(this); - } - - /// Field number for the "validation_error" field. - public const int ValidationErrorFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError validationError_ = global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError.Unspecified; - /// - /// Output only. Error code indicating what validation error was triggered. The description - /// of the error can be found in the 'description' field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError ValidationError { - get { return validationError_; } - set { - validationError_ = value; - } - } - - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 6; - private string description_; - /// - /// Output only. The description of the validation error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Description { - get { return description_ ?? ""; } - set { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() { - description_ = null; - } - - /// Field number for the "feed_attribute_ids" field. - public const int FeedAttributeIdsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_feedAttributeIds_codec - = pb::FieldCodec.ForInt64(58); - private readonly pbc::RepeatedField feedAttributeIds_ = new pbc::RepeatedField(); - /// - /// Output only. Set of feed attributes in the feed item flagged during validation. If - /// empty, no specific feed attributes can be associated with the error - /// (for example, error across the entire feed item). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FeedAttributeIds { - get { return feedAttributeIds_; } - } - - /// Field number for the "extra_info" field. - public const int ExtraInfoFieldNumber = 8; - private string extraInfo_; - /// - /// Output only. Any extra information related to this error which is not captured by - /// validation_error and feed_attribute_id (for example, placeholder field IDs - /// when feed_attribute_id is not mapped). Note that extra_info is not - /// localized. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ExtraInfo { - get { return extraInfo_ ?? ""; } - set { - extraInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "extra_info" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExtraInfo { - get { return extraInfo_ != null; } - } - /// Clears the value of the "extra_info" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExtraInfo() { - extraInfo_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemValidationError); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemValidationError other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ValidationError != other.ValidationError) return false; - if (Description != other.Description) return false; - if(!feedAttributeIds_.Equals(other.feedAttributeIds_)) return false; - if (ExtraInfo != other.ExtraInfo) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ValidationError != global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError.Unspecified) hash ^= ValidationError.GetHashCode(); - if (HasDescription) hash ^= Description.GetHashCode(); - hash ^= feedAttributeIds_.GetHashCode(); - if (HasExtraInfo) hash ^= ExtraInfo.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ValidationError != global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) ValidationError); - } - if (HasDescription) { - output.WriteRawTag(50); - output.WriteString(Description); - } - feedAttributeIds_.WriteTo(output, _repeated_feedAttributeIds_codec); - if (HasExtraInfo) { - output.WriteRawTag(66); - output.WriteString(ExtraInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ValidationError != global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) ValidationError); - } - if (HasDescription) { - output.WriteRawTag(50); - output.WriteString(Description); - } - feedAttributeIds_.WriteTo(ref output, _repeated_feedAttributeIds_codec); - if (HasExtraInfo) { - output.WriteRawTag(66); - output.WriteString(ExtraInfo); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ValidationError != global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValidationError); - } - if (HasDescription) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); - } - size += feedAttributeIds_.CalculateSize(_repeated_feedAttributeIds_codec); - if (HasExtraInfo) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ExtraInfo); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemValidationError other) { - if (other == null) { - return; - } - if (other.ValidationError != global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError.Unspecified) { - ValidationError = other.ValidationError; - } - if (other.HasDescription) { - Description = other.Description; - } - feedAttributeIds_.Add(other.feedAttributeIds_); - if (other.HasExtraInfo) { - ExtraInfo = other.ExtraInfo; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - ValidationError = (global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError) input.ReadEnum(); - break; - } - case 50: { - Description = input.ReadString(); - break; - } - case 58: - case 56: { - feedAttributeIds_.AddEntriesFrom(input, _repeated_feedAttributeIds_codec); - break; - } - case 66: { - ExtraInfo = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - ValidationError = (global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError) input.ReadEnum(); - break; - } - case 50: { - Description = input.ReadString(); - break; - } - case 58: - case 56: { - feedAttributeIds_.AddEntriesFrom(ref input, _repeated_feedAttributeIds_codec); - break; - } - case 66: { - ExtraInfo = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemError.g.cs deleted file mode 100755 index df2815642..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemError.g.cs +++ /dev/null @@ -1,276 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_item_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_item_error.proto - public static partial class FeedItemErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_item_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfaXRlbV9l", - "cnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycyKn", - "AwoRRmVlZEl0ZW1FcnJvckVudW0ikQMKDUZlZWRJdGVtRXJyb3ISDwoLVU5T", - "UEVDSUZJRUQQABILCgdVTktOT1dOEAESLgoqQ0FOTk9UX0NPTlZFUlRfQVRU", - "UklCVVRFX1ZBTFVFX0ZST01fU1RSSU5HEAISJwojQ0FOTk9UX09QRVJBVEVf", - "T05fUkVNT1ZFRF9GRUVEX0lURU0QAxIqCiZEQVRFX1RJTUVfTVVTVF9CRV9J", - "Tl9BQ0NPVU5UX1RJTUVfWk9ORRAEEhwKGEtFWV9BVFRSSUJVVEVTX05PVF9G", - "T1VORBAFEg8KC0lOVkFMSURfVVJMEAYSGgoWTUlTU0lOR19LRVlfQVRUUklC", - "VVRFUxAHEh0KGUtFWV9BVFRSSUJVVEVTX05PVF9VTklRVUUQCBIlCiFDQU5O", - "T1RfTU9ESUZZX0tFWV9BVFRSSUJVVEVfVkFMVUUQCRIsCihTSVpFX1RPT19M", - "QVJHRV9GT1JfTVVMVElfVkFMVUVfQVRUUklCVVRFEAoSHgoaTEVHQUNZX0ZF", - "RURfVFlQRV9SRUFEX09OTFkQC0LyAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnNCEkZlZWRJdGVtRXJyb3JQcm90b1ABWkVnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFk", - "cy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9y", - "c+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorEnum.Types.FeedItemError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible feed item errors. - /// - public sealed partial class FeedItemErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedItemErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemErrorEnum(FeedItemErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemErrorEnum Clone() { - return new FeedItemErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible feed item errors. - /// - public enum FeedItemError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Cannot convert the feed attribute value from string to its real type. - /// - [pbr::OriginalName("CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING")] CannotConvertAttributeValueFromString = 2, - /// - /// Cannot operate on removed feed item. - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_REMOVED_FEED_ITEM")] CannotOperateOnRemovedFeedItem = 3, - /// - /// Date time zone does not match the account's time zone. - /// - [pbr::OriginalName("DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE")] DateTimeMustBeInAccountTimeZone = 4, - /// - /// Feed item with the key attributes could not be found. - /// - [pbr::OriginalName("KEY_ATTRIBUTES_NOT_FOUND")] KeyAttributesNotFound = 5, - /// - /// Url feed attribute value is not valid. - /// - [pbr::OriginalName("INVALID_URL")] InvalidUrl = 6, - /// - /// Some key attributes are missing. - /// - [pbr::OriginalName("MISSING_KEY_ATTRIBUTES")] MissingKeyAttributes = 7, - /// - /// Feed item has same key attributes as another feed item. - /// - [pbr::OriginalName("KEY_ATTRIBUTES_NOT_UNIQUE")] KeyAttributesNotUnique = 8, - /// - /// Cannot modify key attributes on an existing feed item. - /// - [pbr::OriginalName("CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE")] CannotModifyKeyAttributeValue = 9, - /// - /// The feed attribute value is too large. - /// - [pbr::OriginalName("SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE")] SizeTooLargeForMultiValueAttribute = 10, - /// - /// Feed is read only. - /// - [pbr::OriginalName("LEGACY_FEED_TYPE_READ_ONLY")] LegacyFeedTypeReadOnly = 11, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemQualityApprovalStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemQualityApprovalStatus.g.cs deleted file mode 100755 index 588e4dd76..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemQualityApprovalStatus.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_quality_approval_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_quality_approval_status.proto - public static partial class FeedItemQualityApprovalStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_quality_approval_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemQualityApprovalStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3F1", - "YWxpdHlfYXBwcm92YWxfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuZW51bXMigQEKIUZlZWRJdGVtUXVhbGl0eUFwcHJvdmFsU3Rh", - "dHVzRW51bSJcCh1GZWVkSXRlbVF1YWxpdHlBcHByb3ZhbFN0YXR1cxIPCgtV", - "TlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIMCghBUFBST1ZFRBACEg8KC0RJ", - "U0FQUFJPVkVEEANC/AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXNCIkZlZWRJdGVtUXVhbGl0eUFwcHJvdmFsU3RhdHVzUHJvdG9QAVpD", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "bnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusEnum.Types.FeedItemQualityApprovalStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible quality evaluation approval statuses - /// of a feed item. - /// - public sealed partial class FeedItemQualityApprovalStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemQualityApprovalStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityApprovalStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemQualityApprovalStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemQualityApprovalStatusEnum(FeedItemQualityApprovalStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemQualityApprovalStatusEnum Clone() { - return new FeedItemQualityApprovalStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemQualityApprovalStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemQualityApprovalStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemQualityApprovalStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemQualityApprovalStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible quality evaluation approval statuses of a feed item. - /// - public enum FeedItemQualityApprovalStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Meets all quality expectations. - /// - [pbr::OriginalName("APPROVED")] Approved = 2, - /// - /// Does not meet some quality expectations. The specific reason is found in - /// the quality_disapproval_reasons field. - /// - [pbr::OriginalName("DISAPPROVED")] Disapproved = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemQualityDisapprovalReason.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemQualityDisapprovalReason.g.cs deleted file mode 100755 index e113b7058..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemQualityDisapprovalReason.g.cs +++ /dev/null @@ -1,319 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_quality_disapproval_reason.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_quality_disapproval_reason.proto - public static partial class FeedItemQualityDisapprovalReasonReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_quality_disapproval_reason.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemQualityDisapprovalReasonReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3F1", - "YWxpdHlfZGlzYXBwcm92YWxfcmVhc29uLnByb3RvEh5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMi4AYKJEZlZWRJdGVtUXVhbGl0eURpc2FwcHJv", - "dmFsUmVhc29uRW51bSK3BgogRmVlZEl0ZW1RdWFsaXR5RGlzYXBwcm92YWxS", - "ZWFzb24SDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESIgoeUFJJQ0Vf", - "VEFCTEVfUkVQRVRJVElWRV9IRUFERVJTEAISJgoiUFJJQ0VfVEFCTEVfUkVQ", - "RVRJVElWRV9ERVNDUklQVElPThADEiEKHVBSSUNFX1RBQkxFX0lOQ09OU0lT", - "VEVOVF9ST1dTEAQSKgomUFJJQ0VfREVTQ1JJUFRJT05fSEFTX1BSSUNFX1FV", - "QUxJRklFUlMQBRIeChpQUklDRV9VTlNVUFBPUlRFRF9MQU5HVUFHRRAGEi4K", - "KlBSSUNFX1RBQkxFX1JPV19IRUFERVJfVEFCTEVfVFlQRV9NSVNNQVRDSBAH", - "Ei8KK1BSSUNFX1RBQkxFX1JPV19IRUFERVJfSEFTX1BST01PVElPTkFMX1RF", - "WFQQCBIsCihQUklDRV9UQUJMRV9ST1dfREVTQ1JJUFRJT05fTk9UX1JFTEVW", - "QU5UEAkSNAowUFJJQ0VfVEFCTEVfUk9XX0RFU0NSSVBUSU9OX0hBU19QUk9N", - "T1RJT05BTF9URVhUEAoSMQotUFJJQ0VfVEFCTEVfUk9XX0hFQURFUl9ERVND", - "UklQVElPTl9SRVBFVElUSVZFEAsSHgoaUFJJQ0VfVEFCTEVfUk9XX1VOUkFU", - "RUFCTEUQDBIhCh1QUklDRV9UQUJMRV9ST1dfUFJJQ0VfSU5WQUxJRBANEh8K", - "G1BSSUNFX1RBQkxFX1JPV19VUkxfSU5WQUxJRBAOEikKJVBSSUNFX0hFQURF", - "Ul9PUl9ERVNDUklQVElPTl9IQVNfUFJJQ0UQDxIuCipTVFJVQ1RVUkVEX1NO", - "SVBQRVRTX0hFQURFUl9QT0xJQ1lfVklPTEFURUQQEBInCiNTVFJVQ1RVUkVE", - "X1NOSVBQRVRTX1JFUEVBVEVEX1ZBTFVFUxAREiwKKFNUUlVDVFVSRURfU05J", - "UFBFVFNfRURJVE9SSUFMX0dVSURFTElORVMQEhIsCihTVFJVQ1RVUkVEX1NO", - "SVBQRVRTX0hBU19QUk9NT1RJT05BTF9URVhUEBNC/wEKImNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXNCJUZlZWRJdGVtUXVhbGl0eURpc2Fw", - "cHJvdmFsUmVhc29uUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv", - "dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6IC", - "A0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityDisapprovalReasonEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityDisapprovalReasonEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityDisapprovalReasonEnum.Types.FeedItemQualityDisapprovalReason) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible quality evaluation disapproval reasons - /// of a feed item. - /// - public sealed partial class FeedItemQualityDisapprovalReasonEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemQualityDisapprovalReasonEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemQualityDisapprovalReasonReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemQualityDisapprovalReasonEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemQualityDisapprovalReasonEnum(FeedItemQualityDisapprovalReasonEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemQualityDisapprovalReasonEnum Clone() { - return new FeedItemQualityDisapprovalReasonEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemQualityDisapprovalReasonEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemQualityDisapprovalReasonEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemQualityDisapprovalReasonEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemQualityDisapprovalReasonEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible quality evaluation disapproval reasons of a feed item. - /// - public enum FeedItemQualityDisapprovalReason { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Price contains repetitive headers. - /// - [pbr::OriginalName("PRICE_TABLE_REPETITIVE_HEADERS")] PriceTableRepetitiveHeaders = 2, - /// - /// Price contains repetitive description. - /// - [pbr::OriginalName("PRICE_TABLE_REPETITIVE_DESCRIPTION")] PriceTableRepetitiveDescription = 3, - /// - /// Price contains inconsistent items. - /// - [pbr::OriginalName("PRICE_TABLE_INCONSISTENT_ROWS")] PriceTableInconsistentRows = 4, - /// - /// Price contains qualifiers in description. - /// - [pbr::OriginalName("PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS")] PriceDescriptionHasPriceQualifiers = 5, - /// - /// Price contains an unsupported language. - /// - [pbr::OriginalName("PRICE_UNSUPPORTED_LANGUAGE")] PriceUnsupportedLanguage = 6, - /// - /// Price item header is not relevant to the price type. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH")] PriceTableRowHeaderTableTypeMismatch = 7, - /// - /// Price item header has promotional text. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT")] PriceTableRowHeaderHasPromotionalText = 8, - /// - /// Price item description is not relevant to the item header. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT")] PriceTableRowDescriptionNotRelevant = 9, - /// - /// Price item description contains promotional text. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT")] PriceTableRowDescriptionHasPromotionalText = 10, - /// - /// Price item header and description are repetitive. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE")] PriceTableRowHeaderDescriptionRepetitive = 11, - /// - /// Price item is in a foreign language, nonsense, or can't be rated. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_UNRATEABLE")] PriceTableRowUnrateable = 12, - /// - /// Price item price is invalid or inaccurate. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_PRICE_INVALID")] PriceTableRowPriceInvalid = 13, - /// - /// Price item URL is invalid or irrelevant. - /// - [pbr::OriginalName("PRICE_TABLE_ROW_URL_INVALID")] PriceTableRowUrlInvalid = 14, - /// - /// Price item header or description has price. - /// - [pbr::OriginalName("PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE")] PriceHeaderOrDescriptionHasPrice = 15, - /// - /// Structured snippet values do not match the header. - /// - [pbr::OriginalName("STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED")] StructuredSnippetsHeaderPolicyViolated = 16, - /// - /// Structured snippet values are repeated. - /// - [pbr::OriginalName("STRUCTURED_SNIPPETS_REPEATED_VALUES")] StructuredSnippetsRepeatedValues = 17, - /// - /// Structured snippet values violate editorial guidelines like punctuation. - /// - [pbr::OriginalName("STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES")] StructuredSnippetsEditorialGuidelines = 18, - /// - /// Structured snippet contain promotional text. - /// - [pbr::OriginalName("STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT")] StructuredSnippetsHasPromotionalText = 19, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemResourceNames.g.cs deleted file mode 100755 index 2257015bc..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemResourceNames.g.cs +++ /dev/null @@ -1,294 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the FeedItem resource. - public sealed partial class FeedItemName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}. - /// - CustomerFeedFeedItem = 1, - } - - private static gax::PathTemplate s_customerFeedFeedItem = new gax::PathTemplate("customers/{customer_id}/feedItems/{feed_id_feed_item_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static FeedItemName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new FeedItemName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static FeedItemName FromCustomerFeedFeedItem(string customerId, string feedId, string feedItemId) => - new FeedItemName(ResourceNameType.CustomerFeedFeedItem, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}. - /// - public static string Format(string customerId, string feedId, string feedItemId) => - FormatCustomerFeedFeedItem(customerId, feedId, feedItemId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}. - /// - public static string FormatCustomerFeedFeedItem(string customerId, string feedId, string feedItemId) => - s_customerFeedFeedItem.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static FeedItemName Parse(string feedItemName) => Parse(feedItemName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static FeedItemName Parse(string feedItemName, bool allowUnparsed) => - TryParse(feedItemName, allowUnparsed, out FeedItemName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemName, out FeedItemName result) => TryParse(feedItemName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemName, bool allowUnparsed, out FeedItemName result) - { - gax::GaxPreconditions.CheckNotNull(feedItemName, nameof(feedItemName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeedFeedItem.TryParseName(feedItemName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerFeedFeedItem(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(feedItemName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private FeedItemName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedId = null, string feedItemId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedId = feedId; - FeedItemId = feedItemId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/feedItems/{feed_id}~{feed_item_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - public FeedItemName(string customerId, string feedId, string feedItemId) : this(ResourceNameType.CustomerFeedFeedItem, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// - /// The FeedItem ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedItemId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeedFeedItem: return s_customerFeedFeedItem.Expand(CustomerId, $"{FeedId}~{FeedItemId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as FeedItemName); - - /// - public bool Equals(FeedItemName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(FeedItemName a, FeedItemName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(FeedItemName a, FeedItemName b) => !(a == b); - } - - public partial class FeedItem - { - /// - /// -typed view over the resource name property. - /// - internal FeedItemName ResourceNameAsFeedItemName - { - get => string.IsNullOrEmpty(ResourceName) ? null : FeedItemName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemService.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemService.g.cs deleted file mode 100755 index 44fa884ef..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemService.g.cs +++ /dev/null @@ -1,1305 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/feed_item_service.proto - public static partial class FeedItemServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/feed_item_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZmVlZF9pdGVt", - "X3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jlc3BvbnNl", - "X2NvbnRlbnRfdHlwZS5wcm90bxoyZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9mZWVkX2l0ZW0ucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3Rh", - "dGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUv", - "YXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNl", - "LnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxoXZ29v", - "Z2xlL3JwYy9zdGF0dXMucHJvdG8inQIKFk11dGF0ZUZlZWRJdGVtc1JlcXVl", - "c3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJNCgpvcGVyYXRpb25zGAIg", - "AygLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkZlZWRJ", - "dGVtT3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUK", - "DXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90eXBl", - "GAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3Bv", - "bnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUiiwIKEUZl", - "ZWRJdGVtT3BlcmF0aW9uEi8KC3VwZGF0ZV9tYXNrGAQgASgLMhouZ29vZ2xl", - "LnByb3RvYnVmLkZpZWxkTWFzaxI+CgZjcmVhdGUYASABKAsyLC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkZlZWRJdGVtSAASPgoGdXBk", - "YXRlGAIgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cy5GZWVkSXRlbUgAEjgKBnJlbW92ZRgDIAEoCUIm+kEjCiFnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vRmVlZEl0ZW1IAEILCglvcGVyYXRpb24ilgEKF011", - "dGF0ZUZlZWRJdGVtc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJv", - "chgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEkgKB3Jlc3VsdHMYAiADKAsy", - "Ny5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlRmVl", - "ZEl0ZW1SZXN1bHQilgEKFE11dGF0ZUZlZWRJdGVtUmVzdWx0Ej0KDXJlc291", - "cmNlX25hbWUYASABKAlCJvpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0ZlZWRJdGVtEj8KCWZlZWRfaXRlbRgCIAEoCzIsLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMuRmVlZEl0ZW0yuAIKD0ZlZWRJdGVtU2Vy", - "dmljZRLdAQoPTXV0YXRlRmVlZEl0ZW1zEjkuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLk11dGF0ZUZlZWRJdGVtc1JlcXVlc3QaOi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlRmVlZEl0ZW1z", - "UmVzcG9uc2UiU4LT5JMCNCIvL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lk", - "PSp9L2ZlZWRJdGVtczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCgAIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCFEZlZWRJdGVtU2VydmljZVBy", - "b3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedItemReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation), global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult.Parser, new[]{ "ResourceName", "FeedItem" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [FeedItemService.MutateFeedItems][google.ads.googleads.v12.services.FeedItemService.MutateFeedItems]. - /// - public sealed partial class MutateFeedItemsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemsRequest(MutateFeedItemsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemsRequest Clone() { - return new MutateFeedItemsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose feed items are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual feed items. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an feed item. - /// - public sealed partial class FeedItemOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemOperation(FeedItemOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemOperation Clone() { - return new FeedItemOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new feed item. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItem Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.FeedItem) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The feed item is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItem Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.FeedItem) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed feed item is - /// expected, in this format: - /// - /// `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItem subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an feed item mutate. - /// - public sealed partial class MutateFeedItemsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemsResponse(MutateFeedItemsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemsResponse Clone() { - return new MutateFeedItemsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the feed item mutate. - /// - public sealed partial class MutateFeedItemResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemResult(MutateFeedItemResult other) : this() { - resourceName_ = other.resourceName_; - feedItem_ = other.feedItem_ != null ? other.feedItem_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemResult Clone() { - return new MutateFeedItemResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_item" field. - public const int FeedItemFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.FeedItem feedItem_; - /// - /// The mutated feed item with only mutable fields after mutate. The field will - /// only be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItem FeedItem { - get { return feedItem_; } - set { - feedItem_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(FeedItem, other.FeedItem)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (feedItem_ != null) hash ^= FeedItem.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feedItem_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FeedItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feedItem_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FeedItem); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (feedItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FeedItem); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.feedItem_ != null) { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - FeedItem.MergeFrom(other.FeedItem); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - input.ReadMessage(FeedItem); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - input.ReadMessage(FeedItem); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemServiceClient.g.cs deleted file mode 100755 index f75da0ba3..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemServiceClient.g.cs +++ /dev/null @@ -1,581 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class FeedItemServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static FeedItemServiceSettings GetDefault() => new FeedItemServiceSettings(); - - /// Constructs a new object with default settings. - public FeedItemServiceSettings() - { - } - - private FeedItemServiceSettings(FeedItemServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateFeedItemsSettings = existing.MutateFeedItemsSettings; - OnCopy(existing); - } - - partial void OnCopy(FeedItemServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// FeedItemServiceClient.MutateFeedItems and FeedItemServiceClient.MutateFeedItemsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateFeedItemsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public FeedItemServiceSettings Clone() => new FeedItemServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class FeedItemServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public FeedItemServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public FeedItemServiceClientBuilder() : base(FeedItemServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref FeedItemServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override FeedItemServiceClient Build() - { - FeedItemServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private FeedItemServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return FeedItemServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return FeedItemServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => FeedItemServiceClient.ChannelPool; - } - - /// FeedItemService client wrapper, for convenient use. - /// - /// Service to manage feed items. - /// - public abstract partial class FeedItemServiceClient - { - /// - /// The default endpoint for the FeedItemService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default FeedItemService scopes. - /// - /// The default FeedItemService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(FeedItemService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new FeedItemServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static FeedItemServiceClient Create() => new FeedItemServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static FeedItemServiceClient Create(grpccore::CallInvoker callInvoker, FeedItemServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - FeedItemService.FeedItemServiceClient grpcClient = new FeedItemService.FeedItemServiceClient(callInvoker); - return new FeedItemServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC FeedItemService client - public virtual FeedItemService.FeedItemServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemsResponse MutateFeedItems(MutateFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemsAsync(MutateFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemsAsync(MutateFeedItemsRequest request, st::CancellationToken cancellationToken) => - MutateFeedItemsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose feed items are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed items. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemsResponse MutateFeedItems(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItems(new MutateFeedItemsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose feed items are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed items. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItemsAsync(new MutateFeedItemsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// - /// Required. The ID of the customer whose feed items are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed items. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateFeedItemsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// FeedItemService client wrapper implementation, for convenient use. - /// - /// Service to manage feed items. - /// - public sealed partial class FeedItemServiceClientImpl : FeedItemServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateFeedItems; - - /// - /// Constructs a client wrapper for the FeedItemService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public FeedItemServiceClientImpl(FeedItemService.FeedItemServiceClient grpcClient, FeedItemServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - FeedItemServiceSettings effectiveSettings = settings ?? FeedItemServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateFeedItems = clientHelper.BuildApiCall("MutateFeedItems", grpcClient.MutateFeedItemsAsync, grpcClient.MutateFeedItems, effectiveSettings.MutateFeedItemsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateFeedItems); - Modify_MutateFeedItemsApiCall(ref _callMutateFeedItems); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateFeedItemsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(FeedItemService.FeedItemServiceClient grpcClient, FeedItemServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC FeedItemService client - public override FeedItemService.FeedItemServiceClient GrpcClient { get; } - - partial void Modify_MutateFeedItemsRequest(ref MutateFeedItemsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateFeedItemsResponse MutateFeedItems(MutateFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemsRequest(ref request, ref callSettings); - return _callMutateFeedItems.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateFeedItemsAsync(MutateFeedItemsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemsRequest(ref request, ref callSettings); - return _callMutateFeedItems.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemServiceGrpc.g.cs deleted file mode 100755 index 26718c1d7..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemServiceGrpc.g.cs +++ /dev/null @@ -1,347 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage feed items. - /// - public static partial class FeedItemService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.FeedItemService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateFeedItems = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateFeedItems", - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of FeedItemService - [grpc::BindServiceMethod(typeof(FeedItemService), "BindService")] - public abstract partial class FeedItemServiceBase - { - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateFeedItems(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for FeedItemService - public partial class FeedItemServiceClient : grpc::ClientBase - { - /// Creates a new client for FeedItemService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for FeedItemService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsResponse MutateFeedItems(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItems(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsResponse MutateFeedItems(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateFeedItems, null, options, request); - } - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItemsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes feed items. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DateError]() - /// [DistinctError]() - /// [FeedItemError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateFeedItems, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override FeedItemServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new FeedItemServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(FeedItemServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateFeedItems, serviceImpl.MutateFeedItems).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, FeedItemServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateFeedItems, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateFeedItems)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemServiceResourceNames.g.cs deleted file mode 100755 index 0f643fb2a..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class FeedItemOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedItemName RemoveAsFeedItemName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::FeedItemName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateFeedItemResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedItemName ResourceNameAsFeedItemName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::FeedItemName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSet.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSet.g.cs deleted file mode 100755 index 87485a185..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSet.g.cs +++ /dev/null @@ -1,571 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/feed_item_set.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/feed_item_set.proto - public static partial class FeedItemSetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/feed_item_set.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWRfaXRl", - "bV9zZXQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMaRWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vZmVlZF9pdGVt", - "X3NldF9maWx0ZXJfdHlwZV9pbmZvcy5wcm90bxo5Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL2VudW1zL2ZlZWRfaXRlbV9zZXRfc3RhdHVzLnByb3RvGh9n", - "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jl", - "c291cmNlLnByb3RvIvUECgtGZWVkSXRlbVNldBJDCg1yZXNvdXJjZV9uYW1l", - "GAEgASgJQizgQQX6QSYKJGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9GZWVk", - "SXRlbVNldBIzCgRmZWVkGAIgASgJQiXgQQX6QR8KHWdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9GZWVkEh0KEGZlZWRfaXRlbV9zZXRfaWQYAyABKANCA+BB", - "AxIUCgxkaXNwbGF5X25hbWUYBCABKAkSXAoGc3RhdHVzGAggASgOMkcuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZlZWRJdGVtU2V0U3RhdHVz", - "RW51bS5GZWVkSXRlbVNldFN0YXR1c0ID4EEDEmAKG2R5bmFtaWNfbG9jYXRp", - "b25fc2V0X2ZpbHRlchgFIAEoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uRHluYW1pY0xvY2F0aW9uU2V0RmlsdGVySAAScwolZHluYW1p", - "Y19hZmZpbGlhdGVfbG9jYXRpb25fc2V0X2ZpbHRlchgGIAEoCzJCLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uRHluYW1pY0FmZmlsaWF0ZUxv", - "Y2F0aW9uU2V0RmlsdGVySAA6bOpBaQokZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29tL0ZlZWRJdGVtU2V0EkFjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9mZWVk", - "SXRlbVNldHMve2ZlZWRfaWR9fntmZWVkX2l0ZW1fc2V0X2lkfUIUChJkeW5h", - "bWljX3NldF9maWx0ZXJCggIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzQhBGZWVkSXRlbVNldFByb3RvUAFaS2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "UmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNv", - "dXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.FeedItemSetFilterTypeInfosReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet), global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet.Parser, new[]{ "ResourceName", "Feed", "FeedItemSetId", "DisplayName", "Status", "DynamicLocationSetFilter", "DynamicAffiliateLocationSetFilter" }, new[]{ "DynamicSetFilter" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a set of feed items. The set can be used and shared among certain - /// feed item features. For instance, the set can be referenced within the - /// matching functions of CustomerFeed, CampaignFeed, and AdGroupFeed. - /// - public sealed partial class FeedItemSet : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSet()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSet() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSet(FeedItemSet other) : this() { - resourceName_ = other.resourceName_; - feed_ = other.feed_; - feedItemSetId_ = other.feedItemSetId_; - displayName_ = other.displayName_; - status_ = other.status_; - switch (other.DynamicSetFilterCase) { - case DynamicSetFilterOneofCase.DynamicLocationSetFilter: - DynamicLocationSetFilter = other.DynamicLocationSetFilter.Clone(); - break; - case DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter: - DynamicAffiliateLocationSetFilter = other.DynamicAffiliateLocationSetFilter.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSet Clone() { - return new FeedItemSet(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the feed item set. - /// Feed item set resource names have the form: - /// `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 2; - private string feed_ = ""; - /// - /// Immutable. The resource name of the feed containing the feed items in the set. - /// Immutable. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_item_set_id" field. - public const int FeedItemSetIdFieldNumber = 3; - private long feedItemSetId_; - /// - /// Output only. ID of the set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FeedItemSetId { - get { return feedItemSetId_; } - set { - feedItemSetId_ = value; - } - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 4; - private string displayName_ = ""; - /// - /// Name of the set. Must be unique within the account. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_; } - set { - displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus.Unspecified; - /// - /// Output only. Status of the feed item set. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "dynamic_location_set_filter" field. - public const int DynamicLocationSetFilterFieldNumber = 5; - /// - /// Filter for dynamic location set. - /// It is only used for sets of locations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter DynamicLocationSetFilter { - get { return dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter ? (global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter) dynamicSetFilter_ : null; } - set { - dynamicSetFilter_ = value; - dynamicSetFilterCase_ = value == null ? DynamicSetFilterOneofCase.None : DynamicSetFilterOneofCase.DynamicLocationSetFilter; - } - } - - /// Field number for the "dynamic_affiliate_location_set_filter" field. - public const int DynamicAffiliateLocationSetFilterFieldNumber = 6; - /// - /// Filter for dynamic affiliate location set. - /// This field doesn't apply generally to feed item sets. It is only used for - /// sets of affiliate locations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter DynamicAffiliateLocationSetFilter { - get { return dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter ? (global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter) dynamicSetFilter_ : null; } - set { - dynamicSetFilter_ = value; - dynamicSetFilterCase_ = value == null ? DynamicSetFilterOneofCase.None : DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter; - } - } - - private object dynamicSetFilter_; - /// Enum of possible cases for the "dynamic_set_filter" oneof. - public enum DynamicSetFilterOneofCase { - None = 0, - DynamicLocationSetFilter = 5, - DynamicAffiliateLocationSetFilter = 6, - } - private DynamicSetFilterOneofCase dynamicSetFilterCase_ = DynamicSetFilterOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicSetFilterOneofCase DynamicSetFilterCase { - get { return dynamicSetFilterCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDynamicSetFilter() { - dynamicSetFilterCase_ = DynamicSetFilterOneofCase.None; - dynamicSetFilter_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSet); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSet other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Feed != other.Feed) return false; - if (FeedItemSetId != other.FeedItemSetId) return false; - if (DisplayName != other.DisplayName) return false; - if (Status != other.Status) return false; - if (!object.Equals(DynamicLocationSetFilter, other.DynamicLocationSetFilter)) return false; - if (!object.Equals(DynamicAffiliateLocationSetFilter, other.DynamicAffiliateLocationSetFilter)) return false; - if (DynamicSetFilterCase != other.DynamicSetFilterCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (Feed.Length != 0) hash ^= Feed.GetHashCode(); - if (FeedItemSetId != 0L) hash ^= FeedItemSetId.GetHashCode(); - if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus.Unspecified) hash ^= Status.GetHashCode(); - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) hash ^= DynamicLocationSetFilter.GetHashCode(); - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) hash ^= DynamicAffiliateLocationSetFilter.GetHashCode(); - hash ^= (int) dynamicSetFilterCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Feed.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Feed); - } - if (FeedItemSetId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(FeedItemSetId); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DisplayName); - } - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) { - output.WriteRawTag(42); - output.WriteMessage(DynamicLocationSetFilter); - } - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) { - output.WriteRawTag(50); - output.WriteMessage(DynamicAffiliateLocationSetFilter); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Feed.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Feed); - } - if (FeedItemSetId != 0L) { - output.WriteRawTag(24); - output.WriteInt64(FeedItemSetId); - } - if (DisplayName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DisplayName); - } - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) { - output.WriteRawTag(42); - output.WriteMessage(DynamicLocationSetFilter); - } - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) { - output.WriteRawTag(50); - output.WriteMessage(DynamicAffiliateLocationSetFilter); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) Status); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (Feed.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - if (FeedItemSetId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(FeedItemSetId); - } - if (DisplayName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DynamicLocationSetFilter); - } - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DynamicAffiliateLocationSetFilter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSet other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.Feed.Length != 0) { - Feed = other.Feed; - } - if (other.FeedItemSetId != 0L) { - FeedItemSetId = other.FeedItemSetId; - } - if (other.DisplayName.Length != 0) { - DisplayName = other.DisplayName; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus.Unspecified) { - Status = other.Status; - } - switch (other.DynamicSetFilterCase) { - case DynamicSetFilterOneofCase.DynamicLocationSetFilter: - if (DynamicLocationSetFilter == null) { - DynamicLocationSetFilter = new global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter(); - } - DynamicLocationSetFilter.MergeFrom(other.DynamicLocationSetFilter); - break; - case DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter: - if (DynamicAffiliateLocationSetFilter == null) { - DynamicAffiliateLocationSetFilter = new global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter(); - } - DynamicAffiliateLocationSetFilter.MergeFrom(other.DynamicAffiliateLocationSetFilter); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Feed = input.ReadString(); - break; - } - case 24: { - FeedItemSetId = input.ReadInt64(); - break; - } - case 34: { - DisplayName = input.ReadString(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter(); - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) { - subBuilder.MergeFrom(DynamicLocationSetFilter); - } - input.ReadMessage(subBuilder); - DynamicLocationSetFilter = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter(); - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) { - subBuilder.MergeFrom(DynamicAffiliateLocationSetFilter); - } - input.ReadMessage(subBuilder); - DynamicAffiliateLocationSetFilter = subBuilder; - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - Feed = input.ReadString(); - break; - } - case 24: { - FeedItemSetId = input.ReadInt64(); - break; - } - case 34: { - DisplayName = input.ReadString(); - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter(); - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicLocationSetFilter) { - subBuilder.MergeFrom(DynamicLocationSetFilter); - } - input.ReadMessage(subBuilder); - DynamicLocationSetFilter = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter(); - if (dynamicSetFilterCase_ == DynamicSetFilterOneofCase.DynamicAffiliateLocationSetFilter) { - subBuilder.MergeFrom(DynamicAffiliateLocationSetFilter); - } - input.ReadMessage(subBuilder); - DynamicAffiliateLocationSetFilter = subBuilder; - break; - } - case 64: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetError.g.cs deleted file mode 100755 index 1b548f1b0..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetError.g.cs +++ /dev/null @@ -1,267 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_item_set_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_item_set_error.proto - public static partial class FeedItemSetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_item_set_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfaXRlbV9z", - "ZXRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnMioAIKFEZlZWRJdGVtU2V0RXJyb3JFbnVtIocCChBGZWVkSXRlbVNldEVy", - "cm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhkKFUZFRURfSVRF", - "TV9TRVRfUkVNT1ZFRBACEh8KG0NBTk5PVF9DTEVBUl9EWU5BTUlDX0ZJTFRF", - "UhADEiAKHENBTk5PVF9DUkVBVEVfRFlOQU1JQ19GSUxURVIQBBIVChFJTlZB", - "TElEX0ZFRURfVFlQRRAFEhIKDkRVUExJQ0FURV9OQU1FEAYSJgoiV1JPTkdf", - "RFlOQU1JQ19GSUxURVJfRk9SX0ZFRURfVFlQRRAHEiQKIERZTkFNSUNfRklM", - "VEVSX0lOVkFMSURfQ0hBSU5fSURTEAhC9QEKI2NvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZXJyb3JzQhVGZWVkSXRlbVNldEVycm9yUHJvdG9QAVpF", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9y", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorEnum.Types.FeedItemSetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible feed item set errors. - /// - public sealed partial class FeedItemSetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetErrorEnum(FeedItemSetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetErrorEnum Clone() { - return new FeedItemSetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemSetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible feed item set errors. - /// - public enum FeedItemSetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The given ID refers to a removed FeedItemSet. - /// - [pbr::OriginalName("FEED_ITEM_SET_REMOVED")] FeedItemSetRemoved = 2, - /// - /// The dynamic filter of a feed item set cannot be cleared on UPDATE if it - /// exists. A set is either static or dynamic once added, and that cannot - /// change. - /// - [pbr::OriginalName("CANNOT_CLEAR_DYNAMIC_FILTER")] CannotClearDynamicFilter = 3, - /// - /// The dynamic filter of a feed item set cannot be created on UPDATE if it - /// does not exist. A set is either static or dynamic once added, and that - /// cannot change. - /// - [pbr::OriginalName("CANNOT_CREATE_DYNAMIC_FILTER")] CannotCreateDynamicFilter = 4, - /// - /// FeedItemSets can only be made for location or affiliate location feeds. - /// - [pbr::OriginalName("INVALID_FEED_TYPE")] InvalidFeedType = 5, - /// - /// FeedItemSets duplicate name. Name should be unique within an account. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 6, - /// - /// The feed type of the parent Feed is not compatible with the type of - /// dynamic filter being set. For example, you can only set - /// dynamic_location_set_filter for LOCATION feed item sets. - /// - [pbr::OriginalName("WRONG_DYNAMIC_FILTER_FOR_FEED_TYPE")] WrongDynamicFilterForFeedType = 7, - /// - /// Chain ID specified for AffiliateLocationFeedData is invalid. - /// - [pbr::OriginalName("DYNAMIC_FILTER_INVALID_CHAIN_IDS")] DynamicFilterInvalidChainIds = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetFilterTypeInfos.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetFilterTypeInfos.g.cs deleted file mode 100755 index 51aefdb0a..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetFilterTypeInfos.g.cs +++ /dev/null @@ -1,720 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/feed_item_set_filter_type_infos.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/feed_item_set_filter_type_infos.proto - public static partial class FeedItemSetFilterTypeInfosReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/feed_item_set_filter_type_infos.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetFilterTypeInfosReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2ZlZWRfaXRlbV9z", - "ZXRfZmlsdGVyX3R5cGVfaW5mb3MucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5jb21tb24aRWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9mZWVkX2l0ZW1fc2V0X3N0cmluZ19maWx0ZXJfdHlwZS5wcm90byJ9ChhE", - "eW5hbWljTG9jYXRpb25TZXRGaWx0ZXISDgoGbGFiZWxzGAEgAygJElEKFGJ1", - "c2luZXNzX25hbWVfZmlsdGVyGAIgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmNvbW1vbi5CdXNpbmVzc05hbWVGaWx0ZXIinQEKEkJ1c2luZXNz", - "TmFtZUZpbHRlchIVCg1idXNpbmVzc19uYW1lGAEgASgJEnAKC2ZpbHRlcl90", - "eXBlGAIgASgOMlsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZl", - "ZWRJdGVtU2V0U3RyaW5nRmlsdGVyVHlwZUVudW0uRmVlZEl0ZW1TZXRTdHJp", - "bmdGaWx0ZXJUeXBlIjYKIUR5bmFtaWNBZmZpbGlhdGVMb2NhdGlvblNldEZp", - "bHRlchIRCgljaGFpbl9pZHMYASADKANC/wEKI2NvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuY29tbW9uQh9GZWVkSXRlbVNldEZpbHRlclR5cGVJbmZv", - "c1Byb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uO2NvbW1vbqICA0dBQaoCH0dv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5Db21tb27KAh9Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcQ29tbW9u6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpDb21tb25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter), global::Google.Ads.GoogleAds.V12.Common.DynamicLocationSetFilter.Parser, new[]{ "Labels", "BusinessNameFilter" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.BusinessNameFilter), global::Google.Ads.GoogleAds.V12.Common.BusinessNameFilter.Parser, new[]{ "BusinessName", "FilterType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter), global::Google.Ads.GoogleAds.V12.Common.DynamicAffiliateLocationSetFilter.Parser, new[]{ "ChainIds" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a filter on locations in a feed item set. - /// Only applicable if the parent Feed of the FeedItemSet is a LOCATION feed. - /// - public sealed partial class DynamicLocationSetFilter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicLocationSetFilter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.FeedItemSetFilterTypeInfosReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLocationSetFilter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLocationSetFilter(DynamicLocationSetFilter other) : this() { - labels_ = other.labels_.Clone(); - businessNameFilter_ = other.businessNameFilter_ != null ? other.businessNameFilter_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicLocationSetFilter Clone() { - return new DynamicLocationSetFilter(this); - } - - /// Field number for the "labels" field. - public const int LabelsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_labels_codec - = pb::FieldCodec.ForString(10); - private readonly pbc::RepeatedField labels_ = new pbc::RepeatedField(); - /// - /// If multiple labels are set, then only feeditems marked with all the labels - /// will be added to the FeedItemSet. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Labels { - get { return labels_; } - } - - /// Field number for the "business_name_filter" field. - public const int BusinessNameFilterFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.BusinessNameFilter businessNameFilter_; - /// - /// Business name filter. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.BusinessNameFilter BusinessNameFilter { - get { return businessNameFilter_; } - set { - businessNameFilter_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicLocationSetFilter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicLocationSetFilter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!labels_.Equals(other.labels_)) return false; - if (!object.Equals(BusinessNameFilter, other.BusinessNameFilter)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= labels_.GetHashCode(); - if (businessNameFilter_ != null) hash ^= BusinessNameFilter.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - labels_.WriteTo(output, _repeated_labels_codec); - if (businessNameFilter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BusinessNameFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - labels_.WriteTo(ref output, _repeated_labels_codec); - if (businessNameFilter_ != null) { - output.WriteRawTag(18); - output.WriteMessage(BusinessNameFilter); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += labels_.CalculateSize(_repeated_labels_codec); - if (businessNameFilter_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BusinessNameFilter); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicLocationSetFilter other) { - if (other == null) { - return; - } - labels_.Add(other.labels_); - if (other.businessNameFilter_ != null) { - if (businessNameFilter_ == null) { - BusinessNameFilter = new global::Google.Ads.GoogleAds.V12.Common.BusinessNameFilter(); - } - BusinessNameFilter.MergeFrom(other.BusinessNameFilter); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - labels_.AddEntriesFrom(input, _repeated_labels_codec); - break; - } - case 18: { - if (businessNameFilter_ == null) { - BusinessNameFilter = new global::Google.Ads.GoogleAds.V12.Common.BusinessNameFilter(); - } - input.ReadMessage(BusinessNameFilter); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - labels_.AddEntriesFrom(ref input, _repeated_labels_codec); - break; - } - case 18: { - if (businessNameFilter_ == null) { - BusinessNameFilter = new global::Google.Ads.GoogleAds.V12.Common.BusinessNameFilter(); - } - input.ReadMessage(BusinessNameFilter); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a business name filter on locations in a FeedItemSet. - /// - public sealed partial class BusinessNameFilter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BusinessNameFilter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.FeedItemSetFilterTypeInfosReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessNameFilter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessNameFilter(BusinessNameFilter other) : this() { - businessName_ = other.businessName_; - filterType_ = other.filterType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BusinessNameFilter Clone() { - return new BusinessNameFilter(this); - } - - /// Field number for the "business_name" field. - public const int BusinessNameFieldNumber = 1; - private string businessName_ = ""; - /// - /// Business name string to use for filtering. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BusinessName { - get { return businessName_; } - set { - businessName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "filter_type" field. - public const int FilterTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType filterType_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType.Unspecified; - /// - /// The type of string matching to use when filtering with business_name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType FilterType { - get { return filterType_; } - set { - filterType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as BusinessNameFilter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BusinessNameFilter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BusinessName != other.BusinessName) return false; - if (FilterType != other.FilterType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (BusinessName.Length != 0) hash ^= BusinessName.GetHashCode(); - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType.Unspecified) hash ^= FilterType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (BusinessName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BusinessName); - } - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) FilterType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BusinessName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BusinessName); - } - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) FilterType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (BusinessName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BusinessName); - } - if (FilterType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BusinessNameFilter other) { - if (other == null) { - return; - } - if (other.BusinessName.Length != 0) { - BusinessName = other.BusinessName; - } - if (other.FilterType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType.Unspecified) { - FilterType = other.FilterType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - BusinessName = input.ReadString(); - break; - } - case 16: { - FilterType = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - BusinessName = input.ReadString(); - break; - } - case 16: { - FilterType = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a filter on affiliate locations in a FeedItemSet. - /// Only applicable if the parent Feed of the FeedItemSet is an - /// AFFILIATE_LOCATION feed. - /// - public sealed partial class DynamicAffiliateLocationSetFilter : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DynamicAffiliateLocationSetFilter()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.FeedItemSetFilterTypeInfosReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicAffiliateLocationSetFilter() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicAffiliateLocationSetFilter(DynamicAffiliateLocationSetFilter other) : this() { - chainIds_ = other.chainIds_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DynamicAffiliateLocationSetFilter Clone() { - return new DynamicAffiliateLocationSetFilter(this); - } - - /// Field number for the "chain_ids" field. - public const int ChainIdsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_chainIds_codec - = pb::FieldCodec.ForInt64(10); - private readonly pbc::RepeatedField chainIds_ = new pbc::RepeatedField(); - /// - /// Used to filter affiliate locations by chain ids. Only affiliate locations - /// that belong to the specified chain(s) will be added to the FeedItemSet. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ChainIds { - get { return chainIds_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as DynamicAffiliateLocationSetFilter); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DynamicAffiliateLocationSetFilter other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!chainIds_.Equals(other.chainIds_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= chainIds_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - chainIds_.WriteTo(output, _repeated_chainIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - chainIds_.WriteTo(ref output, _repeated_chainIds_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += chainIds_.CalculateSize(_repeated_chainIds_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DynamicAffiliateLocationSetFilter other) { - if (other == null) { - return; - } - chainIds_.Add(other.chainIds_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: - case 8: { - chainIds_.AddEntriesFrom(input, _repeated_chainIds_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - case 8: { - chainIds_.AddEntriesFrom(ref input, _repeated_chainIds_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetLink.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetLink.g.cs deleted file mode 100755 index 39f2922f7..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetLink.g.cs +++ /dev/null @@ -1,336 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/feed_item_set_link.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/feed_item_set_link.proto - public static partial class FeedItemSetLinkReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/feed_item_set_link.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetLinkReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWRfaXRl", - "bV9zZXRfbGluay5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29v", - "Z2xlL2FwaS9yZXNvdXJjZS5wcm90byLkAgoPRmVlZEl0ZW1TZXRMaW5rEkcK", - "DXJlc291cmNlX25hbWUYASABKAlCMOBBBfpBKgooZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0ZlZWRJdGVtU2V0TGluaxI8CglmZWVkX2l0ZW0YAiABKAlC", - "KeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0ZlZWRJdGVtEkMK", - "DWZlZWRfaXRlbV9zZXQYAyABKAlCLOBBBfpBJgokZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0ZlZWRJdGVtU2V0OoQB6kGAAQooZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0ZlZWRJdGVtU2V0TGluaxJUY3VzdG9tZXJzL3tjdXN0b21l", - "cl9pZH0vZmVlZEl0ZW1TZXRMaW5rcy97ZmVlZF9pZH1+e2ZlZWRfaXRlbV9z", - "ZXRfaWR9fntmZWVkX2l0ZW1faWR9QoYCCiZjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlc0IURmVlZEl0ZW1TZXRMaW5rUHJvdG9QAVpL", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink), global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink.Parser, new[]{ "ResourceName", "FeedItem", "FeedItemSet" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Represents a link between a FeedItem and a FeedItemSet. - /// - public sealed partial class FeedItemSetLink : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSetLink()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLinkReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLink() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLink(FeedItemSetLink other) : this() { - resourceName_ = other.resourceName_; - feedItem_ = other.feedItem_; - feedItemSet_ = other.feedItemSet_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLink Clone() { - return new FeedItemSetLink(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the feed item set link. - /// Feed item set link resource names have the form: - /// `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_item" field. - public const int FeedItemFieldNumber = 2; - private string feedItem_ = ""; - /// - /// Immutable. The linked FeedItem. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedItem { - get { return feedItem_; } - set { - feedItem_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_item_set" field. - public const int FeedItemSetFieldNumber = 3; - private string feedItemSet_ = ""; - /// - /// Immutable. The linked FeedItemSet. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedItemSet { - get { return feedItemSet_; } - set { - feedItemSet_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSetLink); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSetLink other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (FeedItem != other.FeedItem) return false; - if (FeedItemSet != other.FeedItemSet) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (FeedItem.Length != 0) hash ^= FeedItem.GetHashCode(); - if (FeedItemSet.Length != 0) hash ^= FeedItemSet.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FeedItem.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FeedItem); - } - if (FeedItemSet.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FeedItemSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FeedItem.Length != 0) { - output.WriteRawTag(18); - output.WriteString(FeedItem); - } - if (FeedItemSet.Length != 0) { - output.WriteRawTag(26); - output.WriteString(FeedItemSet); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (FeedItem.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedItem); - } - if (FeedItemSet.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedItemSet); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSetLink other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.FeedItem.Length != 0) { - FeedItem = other.FeedItem; - } - if (other.FeedItemSet.Length != 0) { - FeedItemSet = other.FeedItemSet; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - FeedItem = input.ReadString(); - break; - } - case 26: { - FeedItemSet = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - FeedItem = input.ReadString(); - break; - } - case 26: { - FeedItemSet = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkError.g.cs deleted file mode 100755 index 939f49dcd..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkError.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_item_set_link_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_item_set_link_error.proto - public static partial class FeedItemSetLinkErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_item_set_link_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetLinkErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfaXRlbV9z", - "ZXRfbGlua19lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9ycyKNAQoYRmVlZEl0ZW1TZXRMaW5rRXJyb3JFbnVtInEKFEZlZWRJ", - "dGVtU2V0TGlua0Vycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThAB", - "EhQKEEZFRURfSURfTUlTTUFUQ0gQAhIlCiFOT19NVVRBVEVfQUxMT1dFRF9G", - "T1JfRFlOQU1JQ19TRVQQA0L5AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lcnJvcnNCGUZlZWRJdGVtU2V0TGlua0Vycm9yUHJvdG9QAVpFZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "cnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorEnum.Types.FeedItemSetLinkError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible feed item set link errors. - /// - public sealed partial class FeedItemSetLinkErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSetLinkErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedItemSetLinkErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLinkErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLinkErrorEnum(FeedItemSetLinkErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLinkErrorEnum Clone() { - return new FeedItemSetLinkErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSetLinkErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSetLinkErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSetLinkErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemSetLinkErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible feed item set link errors. - /// - public enum FeedItemSetLinkError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The feed IDs of the FeedItemSet and FeedItem do not match. Only FeedItems - /// in a given Feed can be linked to a FeedItemSet in that Feed. - /// - [pbr::OriginalName("FEED_ID_MISMATCH")] FeedIdMismatch = 2, - /// - /// Cannot add or remove links to a dynamic set. - /// - [pbr::OriginalName("NO_MUTATE_ALLOWED_FOR_DYNAMIC_SET")] NoMutateAllowedForDynamicSet = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkResourceNames.g.cs deleted file mode 100755 index 5142d95b0..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkResourceNames.g.cs +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the FeedItemSetLink resource. - public sealed partial class FeedItemSetLinkName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}. - /// - CustomerFeedFeedItemSetFeedItem = 1, - } - - private static gax::PathTemplate s_customerFeedFeedItemSetFeedItem = new gax::PathTemplate("customers/{customer_id}/feedItemSetLinks/{feed_id_feed_item_set_id_feed_item_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static FeedItemSetLinkName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new FeedItemSetLinkName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static FeedItemSetLinkName FromCustomerFeedFeedItemSetFeedItem(string customerId, string feedId, string feedItemSetId, string feedItemId) => - new FeedItemSetLinkName(ResourceNameType.CustomerFeedFeedItemSetFeedItem, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemSetId, nameof(feedItemSetId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}. - /// - public static string Format(string customerId, string feedId, string feedItemSetId, string feedItemId) => - FormatCustomerFeedFeedItemSetFeedItem(customerId, feedId, feedItemSetId, feedItemId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}. - /// - public static string FormatCustomerFeedFeedItemSetFeedItem(string customerId, string feedId, string feedItemSetId, string feedItemId) => - s_customerFeedFeedItemSetFeedItem.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemSetId, nameof(feedItemSetId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static FeedItemSetLinkName Parse(string feedItemSetLinkName) => Parse(feedItemSetLinkName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static FeedItemSetLinkName Parse(string feedItemSetLinkName, bool allowUnparsed) => - TryParse(feedItemSetLinkName, allowUnparsed, out FeedItemSetLinkName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemSetLinkName, out FeedItemSetLinkName result) => - TryParse(feedItemSetLinkName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemSetLinkName, bool allowUnparsed, out FeedItemSetLinkName result) - { - gax::GaxPreconditions.CheckNotNull(feedItemSetLinkName, nameof(feedItemSetLinkName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeedFeedItemSetFeedItem.TryParseName(feedItemSetLinkName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerFeedFeedItemSetFeedItem(resourceName[0], split1[0], split1[1], split1[2]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(feedItemSetLinkName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private FeedItemSetLinkName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedId = null, string feedItemId = null, string feedItemSetId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedId = feedId; - FeedItemId = feedItemId; - FeedItemSetId = feedItemSetId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - public FeedItemSetLinkName(string customerId, string feedId, string feedItemSetId, string feedItemId) : this(ResourceNameType.CustomerFeedFeedItemSetFeedItem, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemSetId, nameof(feedItemSetId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// - /// The FeedItem ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedItemId { get; } - - /// - /// The FeedItemSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedItemSetId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeedFeedItemSetFeedItem: return s_customerFeedFeedItemSetFeedItem.Expand(CustomerId, $"{FeedId}~{FeedItemSetId}~{FeedItemId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as FeedItemSetLinkName); - - /// - public bool Equals(FeedItemSetLinkName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(FeedItemSetLinkName a, FeedItemSetLinkName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(FeedItemSetLinkName a, FeedItemSetLinkName b) => !(a == b); - } - - public partial class FeedItemSetLink - { - /// - /// -typed view over the resource name property. - /// - internal FeedItemSetLinkName ResourceNameAsFeedItemSetLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : FeedItemSetLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal FeedItemName FeedItemAsFeedItemName - { - get => string.IsNullOrEmpty(FeedItem) ? null : FeedItemName.Parse(FeedItem, allowUnparsed: true); - set => FeedItem = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal FeedItemSetName FeedItemSetAsFeedItemSetName - { - get => string.IsNullOrEmpty(FeedItemSet) ? null : FeedItemSetName.Parse(FeedItemSet, allowUnparsed: true); - set => FeedItemSet = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkService.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkService.g.cs deleted file mode 100755 index ea6364fae..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkService.g.cs +++ /dev/null @@ -1,1103 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_set_link_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/feed_item_set_link_service.proto - public static partial class FeedItemSetLinkServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/feed_item_set_link_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetLinkServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZmVlZF9pdGVt", - "X3NldF9saW5rX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy9mZWVkX2l0ZW1fc2V0X2xpbmsucHJvdG8aHGdvb2dsZS9hcGkvYW5u", - "b3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29n", - "bGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291", - "cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byK/AQodTXV0YXRl", - "RmVlZEl0ZW1TZXRMaW5rc1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlC", - "A+BBAhJUCgpvcGVyYXRpb25zGAIgAygLMjsuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLkZlZWRJdGVtU2V0TGlua09wZXJhdGlvbkID4EEC", - "EhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQg", - "ASgIIq8BChhGZWVkSXRlbVNldExpbmtPcGVyYXRpb24SRQoGY3JlYXRlGAEg", - "ASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5GZWVk", - "SXRlbVNldExpbmtIABI/CgZyZW1vdmUYAiABKAlCLfpBKgooZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0ZlZWRJdGVtU2V0TGlua0gAQgsKCW9wZXJhdGlv", - "biKkAQoeTXV0YXRlRmVlZEl0ZW1TZXRMaW5rc1Jlc3BvbnNlEk8KB3Jlc3Vs", - "dHMYASADKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlRmVlZEl0ZW1TZXRMaW5rUmVzdWx0EjEKFXBhcnRpYWxfZmFpbHVy", - "ZV9lcnJvchgCIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzImMKG011dGF0ZUZl", - "ZWRJdGVtU2V0TGlua1Jlc3VsdBJECg1yZXNvdXJjZV9uYW1lGAEgASgJQi36", - "QSoKKGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9GZWVkSXRlbVNldExpbmsy", - "2wIKFkZlZWRJdGVtU2V0TGlua1NlcnZpY2US+QEKFk11dGF0ZUZlZWRJdGVt", - "U2V0TGlua3MSQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlRmVlZEl0ZW1TZXRMaW5rc1JlcXVlc3QaQS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlRmVlZEl0ZW1TZXRMaW5rc1Jl", - "c3BvbnNlIlqC0+STAjsiNi92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0q", - "fS9mZWVkSXRlbVNldExpbmtzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9w", - "ZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBz", - "Oi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KHAgolY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IbRmVlZEl0ZW1TZXRM", - "aW5rU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2Vydmlj", - "ZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPK", - "AiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLinkReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation), global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksResponse), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [FeedItemSetLinkService.MutateFeedItemSetLinks][google.ads.googleads.v12.services.FeedItemSetLinkService.MutateFeedItemSetLinks]. - /// - public sealed partial class MutateFeedItemSetLinksRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemSetLinksRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinksRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinksRequest(MutateFeedItemSetLinksRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinksRequest Clone() { - return new MutateFeedItemSetLinksRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose feed item set links are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual feed item set links. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemSetLinksRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemSetLinksRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemSetLinksRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a feed item set link. - /// - public sealed partial class FeedItemSetLinkOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSetLinkOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLinkOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLinkOperation(FeedItemSetLinkOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetLinkOperation Clone() { - return new FeedItemSetLinkOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the - /// new feed item set link. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed feed item set link is - /// expected, in this format: - /// - /// `customers/{customer_id}/feedItemSetLinks/{feed_id}_{feed_item_set_id}_{feed_item_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSetLinkOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSetLinkOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSetLinkOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a feed item set link mutate. - /// - public sealed partial class MutateFeedItemSetLinksResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemSetLinksResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinksResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinksResponse(MutateFeedItemSetLinksResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinksResponse Clone() { - return new MutateFeedItemSetLinksResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemSetLinksResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemSetLinksResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemSetLinksResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the feed item set link mutate. - /// - public sealed partial class MutateFeedItemSetLinkResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemSetLinkResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinkResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinkResult(MutateFeedItemSetLinkResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetLinkResult Clone() { - return new MutateFeedItemSetLinkResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemSetLinkResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemSetLinkResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemSetLinkResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceClient.g.cs deleted file mode 100755 index 2e6d70930..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceClient.g.cs +++ /dev/null @@ -1,430 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class FeedItemSetLinkServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static FeedItemSetLinkServiceSettings GetDefault() => new FeedItemSetLinkServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public FeedItemSetLinkServiceSettings() - { - } - - private FeedItemSetLinkServiceSettings(FeedItemSetLinkServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateFeedItemSetLinksSettings = existing.MutateFeedItemSetLinksSettings; - OnCopy(existing); - } - - partial void OnCopy(FeedItemSetLinkServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// FeedItemSetLinkServiceClient.MutateFeedItemSetLinks and - /// FeedItemSetLinkServiceClient.MutateFeedItemSetLinksAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateFeedItemSetLinksSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public FeedItemSetLinkServiceSettings Clone() => new FeedItemSetLinkServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class FeedItemSetLinkServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public FeedItemSetLinkServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public FeedItemSetLinkServiceClientBuilder() : base(FeedItemSetLinkServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref FeedItemSetLinkServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override FeedItemSetLinkServiceClient Build() - { - FeedItemSetLinkServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private FeedItemSetLinkServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return FeedItemSetLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return FeedItemSetLinkServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => FeedItemSetLinkServiceClient.ChannelPool; - } - - /// FeedItemSetLinkService client wrapper, for convenient use. - /// - /// Service to manage feed item set links. - /// - public abstract partial class FeedItemSetLinkServiceClient - { - /// - /// The default endpoint for the FeedItemSetLinkService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default FeedItemSetLinkService scopes. - /// - /// The default FeedItemSetLinkService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(FeedItemSetLinkService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new FeedItemSetLinkServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static FeedItemSetLinkServiceClient Create() => new FeedItemSetLinkServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static FeedItemSetLinkServiceClient Create(grpccore::CallInvoker callInvoker, FeedItemSetLinkServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - FeedItemSetLinkService.FeedItemSetLinkServiceClient grpcClient = new FeedItemSetLinkService.FeedItemSetLinkServiceClient(callInvoker); - return new FeedItemSetLinkServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC FeedItemSetLinkService client - public virtual FeedItemSetLinkService.FeedItemSetLinkServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemSetLinksResponse MutateFeedItemSetLinks(MutateFeedItemSetLinksRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetLinksAsync(MutateFeedItemSetLinksRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetLinksAsync(MutateFeedItemSetLinksRequest request, st::CancellationToken cancellationToken) => - MutateFeedItemSetLinksAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose feed item set links are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item set links. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemSetLinksResponse MutateFeedItemSetLinks(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItemSetLinks(new MutateFeedItemSetLinksRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose feed item set links are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item set links. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetLinksAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItemSetLinksAsync(new MutateFeedItemSetLinksRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose feed item set links are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item set links. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetLinksAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateFeedItemSetLinksAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// FeedItemSetLinkService client wrapper implementation, for convenient use. - /// - /// Service to manage feed item set links. - /// - public sealed partial class FeedItemSetLinkServiceClientImpl : FeedItemSetLinkServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateFeedItemSetLinks; - - /// - /// Constructs a client wrapper for the FeedItemSetLinkService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public FeedItemSetLinkServiceClientImpl(FeedItemSetLinkService.FeedItemSetLinkServiceClient grpcClient, FeedItemSetLinkServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - FeedItemSetLinkServiceSettings effectiveSettings = settings ?? FeedItemSetLinkServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateFeedItemSetLinks = clientHelper.BuildApiCall("MutateFeedItemSetLinks", grpcClient.MutateFeedItemSetLinksAsync, grpcClient.MutateFeedItemSetLinks, effectiveSettings.MutateFeedItemSetLinksSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateFeedItemSetLinks); - Modify_MutateFeedItemSetLinksApiCall(ref _callMutateFeedItemSetLinks); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateFeedItemSetLinksApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(FeedItemSetLinkService.FeedItemSetLinkServiceClient grpcClient, FeedItemSetLinkServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC FeedItemSetLinkService client - public override FeedItemSetLinkService.FeedItemSetLinkServiceClient GrpcClient { get; } - - partial void Modify_MutateFeedItemSetLinksRequest(ref MutateFeedItemSetLinksRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateFeedItemSetLinksResponse MutateFeedItemSetLinks(MutateFeedItemSetLinksRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemSetLinksRequest(ref request, ref callSettings); - return _callMutateFeedItemSetLinks.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateFeedItemSetLinksAsync(MutateFeedItemSetLinksRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemSetLinksRequest(ref request, ref callSettings); - return _callMutateFeedItemSetLinks.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceGrpc.g.cs deleted file mode 100755 index 8b66ca2a6..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceGrpc.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_set_link_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage feed item set links. - /// - public static partial class FeedItemSetLinkService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.FeedItemSetLinkService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetLinksRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetLinksResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateFeedItemSetLinks = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateFeedItemSetLinks", - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetLinksRequest, - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetLinksResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of FeedItemSetLinkService - [grpc::BindServiceMethod(typeof(FeedItemSetLinkService), "BindService")] - public abstract partial class FeedItemSetLinkServiceBase - { - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateFeedItemSetLinks(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for FeedItemSetLinkService - public partial class FeedItemSetLinkServiceClient : grpc::ClientBase - { - /// Creates a new client for FeedItemSetLinkService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemSetLinkServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for FeedItemSetLinkService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemSetLinkServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemSetLinkServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemSetLinkServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksResponse MutateFeedItemSetLinks(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItemSetLinks(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksResponse MutateFeedItemSetLinks(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateFeedItemSetLinks, null, options, request); - } - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemSetLinksAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItemSetLinksAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes feed item set links. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemSetLinksAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinksRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateFeedItemSetLinks, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override FeedItemSetLinkServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new FeedItemSetLinkServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(FeedItemSetLinkServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateFeedItemSetLinks, serviceImpl.MutateFeedItemSetLinks).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, FeedItemSetLinkServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateFeedItemSetLinks, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateFeedItemSetLinks)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceResourceNames.g.cs deleted file mode 100755 index a70a56350..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetLinkServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class FeedItemSetLinkOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedItemSetLinkName RemoveAsFeedItemSetLinkName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::FeedItemSetLinkName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateFeedItemSetLinkResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::FeedItemSetLinkName ResourceNameAsFeedItemSetLinkName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::FeedItemSetLinkName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetResourceNames.g.cs deleted file mode 100755 index fd22bbc72..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetResourceNames.g.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the FeedItemSet resource. - public sealed partial class FeedItemSetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}. - /// - CustomerFeedFeedItemSet = 1, - } - - private static gax::PathTemplate s_customerFeedFeedItemSet = new gax::PathTemplate("customers/{customer_id}/feedItemSets/{feed_id_feed_item_set_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static FeedItemSetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new FeedItemSetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static FeedItemSetName FromCustomerFeedFeedItemSet(string customerId, string feedId, string feedItemSetId) => - new FeedItemSetName(ResourceNameType.CustomerFeedFeedItemSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemSetId, nameof(feedItemSetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}. - /// - public static string Format(string customerId, string feedId, string feedItemSetId) => - FormatCustomerFeedFeedItemSet(customerId, feedId, feedItemSetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}. - /// - public static string FormatCustomerFeedFeedItemSet(string customerId, string feedId, string feedItemSetId) => - s_customerFeedFeedItemSet.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemSetId, nameof(feedItemSetId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static FeedItemSetName Parse(string feedItemSetName) => Parse(feedItemSetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static FeedItemSetName Parse(string feedItemSetName, bool allowUnparsed) => - TryParse(feedItemSetName, allowUnparsed, out FeedItemSetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemSetName, out FeedItemSetName result) => - TryParse(feedItemSetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemSetName, bool allowUnparsed, out FeedItemSetName result) - { - gax::GaxPreconditions.CheckNotNull(feedItemSetName, nameof(feedItemSetName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeedFeedItemSet.TryParseName(feedItemSetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerFeedFeedItemSet(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(feedItemSetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private FeedItemSetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedId = null, string feedItemSetId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedId = feedId; - FeedItemSetId = feedItemSetId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItemSet ID. Must not be null or empty. - public FeedItemSetName(string customerId, string feedId, string feedItemSetId) : this(ResourceNameType.CustomerFeedFeedItemSet, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemSetId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemSetId, nameof(feedItemSetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// - /// The FeedItemSet ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedItemSetId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeedFeedItemSet: return s_customerFeedFeedItemSet.Expand(CustomerId, $"{FeedId}~{FeedItemSetId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as FeedItemSetName); - - /// - public bool Equals(FeedItemSetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(FeedItemSetName a, FeedItemSetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(FeedItemSetName a, FeedItemSetName b) => !(a == b); - } - - public partial class FeedItemSet - { - /// - /// -typed view over the resource name property. - /// - internal FeedItemSetName ResourceNameAsFeedItemSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : FeedItemSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetService.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetService.g.cs deleted file mode 100755 index 92aa3abba..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetService.g.cs +++ /dev/null @@ -1,1209 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_set_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/feed_item_set_service.proto - public static partial class FeedItemSetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/feed_item_set_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZmVlZF9pdGVt", - "X3NldF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMaNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMv", - "ZmVlZF9pdGVtX3NldC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5w", - "cm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmll", - "bGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8a", - "IGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGhdnb29nbGUvcnBj", - "L3N0YXR1cy5wcm90byK3AQoZTXV0YXRlRmVlZEl0ZW1TZXRzUmVxdWVzdBIY", - "CgtjdXN0b21lcl9pZBgBIAEoCUID4EECElAKCm9wZXJhdGlvbnMYAiADKAsy", - "Ny5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuRmVlZEl0ZW1T", - "ZXRPcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoN", - "dmFsaWRhdGVfb25seRgEIAEoCCKXAgoURmVlZEl0ZW1TZXRPcGVyYXRpb24S", - "LwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN", - "YXNrEkEKBmNyZWF0ZRgBIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMuRmVlZEl0ZW1TZXRIABJBCgZ1cGRhdGUYAiABKAsyLy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkZlZWRJdGVtU2V0", - "SAASOwoGcmVtb3ZlGAMgASgJQin6QSYKJGdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9GZWVkSXRlbVNldEgAQgsKCW9wZXJhdGlvbiKcAQoaTXV0YXRlRmVl", - "ZEl0ZW1TZXRzUmVzcG9uc2USSwoHcmVzdWx0cxgBIAMoCzI6Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVGZWVkSXRlbVNldFJl", - "c3VsdBIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAiABKAsyEi5nb29nbGUu", - "cnBjLlN0YXR1cyJbChdNdXRhdGVGZWVkSXRlbVNldFJlc3VsdBJACg1yZXNv", - "dXJjZV9uYW1lGAEgASgJQin6QSYKJGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9GZWVkSXRlbVNldDLHAgoSRmVlZEl0ZW1TZXRTZXJ2aWNlEukBChJNdXRh", - "dGVGZWVkSXRlbVNldHMSPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlRmVlZEl0ZW1TZXRzUmVxdWVzdBo9Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVGZWVkSXRlbVNldHNSZXNw", - "b25zZSJWgtPkkwI3IjIvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0v", - "ZmVlZEl0ZW1TZXRzOm11dGF0ZToBKtpBFmN1c3RvbWVyX2lkLG9wZXJhdGlv", - "bnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBzOi8vd3d3", - "Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KDAgolY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IXRmVlZEl0ZW1TZXRTZXJ2aWNl", - "UHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoC", - "IUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation), global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsResponse.Parser, new[]{ "Results", "PartialFailureError" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [FeedItemSetService.MutateFeedItemSets][google.ads.googleads.v12.services.FeedItemSetService.MutateFeedItemSets]. - /// - public sealed partial class MutateFeedItemSetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemSetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetsRequest(MutateFeedItemSetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetsRequest Clone() { - return new MutateFeedItemSetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose feed item sets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual feed item sets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemSetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemSetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemSetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an feed item set. - /// - public sealed partial class FeedItemSetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetOperation(FeedItemSetOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetOperation Clone() { - return new FeedItemSetOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new feed item set - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The feed item set is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed feed item is - /// expected, in this format: - /// `customers/{customer_id}/feedItems/{feed_id}~{feed_item_set_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSetOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an feed item set mutate. - /// - public sealed partial class MutateFeedItemSetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemSetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetsResponse(MutateFeedItemSetsResponse other) : this() { - results_ = other.results_.Clone(); - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetsResponse Clone() { - return new MutateFeedItemSetsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 2; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemSetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemSetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(18); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemSetsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the feed item set mutate. - /// - public sealed partial class MutateFeedItemSetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemSetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetResult(MutateFeedItemSetResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemSetResult Clone() { - return new MutateFeedItemSetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemSetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemSetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemSetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceClient.g.cs deleted file mode 100755 index b9be279c3..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceClient.g.cs +++ /dev/null @@ -1,441 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class FeedItemSetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static FeedItemSetServiceSettings GetDefault() => new FeedItemSetServiceSettings(); - - /// Constructs a new object with default settings. - public FeedItemSetServiceSettings() - { - } - - private FeedItemSetServiceSettings(FeedItemSetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateFeedItemSetsSettings = existing.MutateFeedItemSetsSettings; - OnCopy(existing); - } - - partial void OnCopy(FeedItemSetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// FeedItemSetServiceClient.MutateFeedItemSets and FeedItemSetServiceClient.MutateFeedItemSetsAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateFeedItemSetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public FeedItemSetServiceSettings Clone() => new FeedItemSetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class FeedItemSetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public FeedItemSetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public FeedItemSetServiceClientBuilder() : base(FeedItemSetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref FeedItemSetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override FeedItemSetServiceClient Build() - { - FeedItemSetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private FeedItemSetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return FeedItemSetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return FeedItemSetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => FeedItemSetServiceClient.ChannelPool; - } - - /// FeedItemSetService client wrapper, for convenient use. - /// - /// Service to manage feed Item Set - /// - public abstract partial class FeedItemSetServiceClient - { - /// - /// The default endpoint for the FeedItemSetService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default FeedItemSetService scopes. - /// - /// The default FeedItemSetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(FeedItemSetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new FeedItemSetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static FeedItemSetServiceClient Create() => new FeedItemSetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static FeedItemSetServiceClient Create(grpccore::CallInvoker callInvoker, FeedItemSetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - FeedItemSetService.FeedItemSetServiceClient grpcClient = new FeedItemSetService.FeedItemSetServiceClient(callInvoker); - return new FeedItemSetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC FeedItemSetService client - public virtual FeedItemSetService.FeedItemSetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemSetsResponse MutateFeedItemSets(MutateFeedItemSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetsAsync(MutateFeedItemSetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetsAsync(MutateFeedItemSetsRequest request, st::CancellationToken cancellationToken) => - MutateFeedItemSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose feed item sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item sets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemSetsResponse MutateFeedItemSets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItemSets(new MutateFeedItemSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose feed item sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item sets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItemSetsAsync(new MutateFeedItemSetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer whose feed item sets are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item sets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemSetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateFeedItemSetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// FeedItemSetService client wrapper implementation, for convenient use. - /// - /// Service to manage feed Item Set - /// - public sealed partial class FeedItemSetServiceClientImpl : FeedItemSetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateFeedItemSets; - - /// - /// Constructs a client wrapper for the FeedItemSetService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public FeedItemSetServiceClientImpl(FeedItemSetService.FeedItemSetServiceClient grpcClient, FeedItemSetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - FeedItemSetServiceSettings effectiveSettings = settings ?? FeedItemSetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateFeedItemSets = clientHelper.BuildApiCall("MutateFeedItemSets", grpcClient.MutateFeedItemSetsAsync, grpcClient.MutateFeedItemSets, effectiveSettings.MutateFeedItemSetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateFeedItemSets); - Modify_MutateFeedItemSetsApiCall(ref _callMutateFeedItemSets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateFeedItemSetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(FeedItemSetService.FeedItemSetServiceClient grpcClient, FeedItemSetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC FeedItemSetService client - public override FeedItemSetService.FeedItemSetServiceClient GrpcClient { get; } - - partial void Modify_MutateFeedItemSetsRequest(ref MutateFeedItemSetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateFeedItemSetsResponse MutateFeedItemSets(MutateFeedItemSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemSetsRequest(ref request, ref callSettings); - return _callMutateFeedItemSets.Sync(request, callSettings); - } - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateFeedItemSetsAsync(MutateFeedItemSetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemSetsRequest(ref request, ref callSettings); - return _callMutateFeedItemSets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceGrpc.g.cs deleted file mode 100755 index 9881cd78a..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceGrpc.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_set_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage feed Item Set - /// - public static partial class FeedItemSetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.FeedItemSetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateFeedItemSets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateFeedItemSets", - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemSetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemSetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of FeedItemSetService - [grpc::BindServiceMethod(typeof(FeedItemSetService), "BindService")] - public abstract partial class FeedItemSetServiceBase - { - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateFeedItemSets(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for FeedItemSetService - public partial class FeedItemSetServiceClient : grpc::ClientBase - { - /// Creates a new client for FeedItemSetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemSetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for FeedItemSetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemSetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemSetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemSetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsResponse MutateFeedItemSets(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItemSets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsResponse MutateFeedItemSets(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateFeedItemSets, null, options, request); - } - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItemSetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates or removes feed item sets. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemSetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateFeedItemSets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override FeedItemSetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new FeedItemSetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(FeedItemSetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateFeedItemSets, serviceImpl.MutateFeedItemSets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, FeedItemSetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateFeedItemSets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateFeedItemSets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceResourceNames.g.cs deleted file mode 100755 index e608884bd..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class FeedItemSetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedItemSetName RemoveAsFeedItemSetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::FeedItemSetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateFeedItemSetResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedItemSetName ResourceNameAsFeedItemSetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::FeedItemSetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetStatus.g.cs deleted file mode 100755 index 056ca123c..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetStatus.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_set_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_set_status.proto - public static partial class FeedItemSetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_set_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3Nl", - "dF9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cyJkChVGZWVkSXRlbVNldFN0YXR1c0VudW0iSwoRRmVlZEl0ZW1TZXRTdGF0", - "dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoHRU5BQkxFRBAC", - "EgsKB1JFTU9WRUQQA0LwAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtc0IWRmVlZEl0ZW1TZXRTdGF0dXNQcm90b1ABWkNnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusEnum.Types.FeedItemSetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a feed item set. - /// - public sealed partial class FeedItemSetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetStatusEnum(FeedItemSetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetStatusEnum Clone() { - return new FeedItemSetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemSetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a feed item set. - /// - public enum FeedItemSetStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Feed item set is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Feed item set has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemSetStringFilterType.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemSetStringFilterType.g.cs deleted file mode 100755 index acf9d16d2..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemSetStringFilterType.g.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_set_string_filter_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_set_string_filter_type.proto - public static partial class FeedItemSetStringFilterTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_set_string_filter_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemSetStringFilterTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3Nl", - "dF9zdHJpbmdfZmlsdGVyX3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcyJpCh9GZWVkSXRlbVNldFN0cmluZ0ZpbHRlclR5cGVF", - "bnVtIkYKG0ZlZWRJdGVtU2V0U3RyaW5nRmlsdGVyVHlwZRIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIJCgVFWEFDVBACQvoBCiJjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zQiBGZWVkSXRlbVNldFN0cmluZ0Zp", - "bHRlclR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FB", - "qgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFk", - "czo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeEnum.Types.FeedItemSetStringFilterType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The type of string matching to be used for a dynamic FeedItemSet filter. - /// - public sealed partial class FeedItemSetStringFilterTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemSetStringFilterTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemSetStringFilterTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetStringFilterTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetStringFilterTypeEnum(FeedItemSetStringFilterTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemSetStringFilterTypeEnum Clone() { - return new FeedItemSetStringFilterTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemSetStringFilterTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemSetStringFilterTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemSetStringFilterTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemSetStringFilterTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// describe the possible types for a FeedItemSetStringFilter. - /// - public enum FeedItemSetStringFilterType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The dynamic set filter will use exact string matching. - /// - [pbr::OriginalName("EXACT")] Exact = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemStatus.g.cs deleted file mode 100755 index 6a9f75e40..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemStatus.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_status.proto - public static partial class FeedItemStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3N0", - "YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIl4K", - "EkZlZWRJdGVtU3RhdHVzRW51bSJICg5GZWVkSXRlbVN0YXR1cxIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISCwoHUkVNT1ZF", - "RBADQu0BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhNG", - "ZWVkSXRlbVN0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOi", - "AgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusEnum.Types.FeedItemStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a feed item. - /// - public sealed partial class FeedItemStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemStatusEnum(FeedItemStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemStatusEnum Clone() { - return new FeedItemStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a feed item. - /// - public enum FeedItemStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Feed item is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Feed item has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTarget.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTarget.g.cs deleted file mode 100755 index 795a38938..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTarget.g.cs +++ /dev/null @@ -1,778 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/feed_item_target.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/feed_item_target.proto - public static partial class FeedItemTargetReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/feed_item_target.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemTargetReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWRfaXRl", - "bV90YXJnZXQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMaLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vY3JpdGVy", - "aWEucHJvdG8aPGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9mZWVk", - "X2l0ZW1fdGFyZ2V0X2RldmljZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL2ZlZWRfaXRlbV90YXJnZXRfc3RhdHVzLnByb3RvGjpn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3Rhcmdl", - "dF90eXBlLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", - "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIq4ICg5GZWVkSXRlbVRhcmdl", - "dBJGCg1yZXNvdXJjZV9uYW1lGAEgASgJQi/gQQX6QSkKJ2dvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9GZWVkSXRlbVRhcmdldBJBCglmZWVkX2l0ZW0YDCAB", - "KAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0ZlZWRJdGVt", - "SAGIAQESbQoVZmVlZF9pdGVtX3RhcmdldF90eXBlGAMgASgOMkkuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZlZWRJdGVtVGFyZ2V0VHlwZUVu", - "dW0uRmVlZEl0ZW1UYXJnZXRUeXBlQgPgQQMSJQoTZmVlZF9pdGVtX3Rhcmdl", - "dF9pZBgNIAEoA0ID4EEDSAKIAQESYgoGc3RhdHVzGAsgASgOMk0uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZlZWRJdGVtVGFyZ2V0U3RhdHVz", - "RW51bS5GZWVkSXRlbVRhcmdldFN0YXR1c0ID4EEDEj0KCGNhbXBhaWduGA4g", - "ASgJQingQQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWln", - "bkgAEjwKCGFkX2dyb3VwGA8gASgJQijgQQX6QSIKIGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9BZEdyb3VwSAASRAoHa2V5d29yZBgHIAEoCzIsLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uS2V5d29yZEluZm9CA+BBBUgA", - "ElEKE2dlb190YXJnZXRfY29uc3RhbnQYECABKAlCMuBBBfpBLAoqZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0dlb1RhcmdldENvbnN0YW50SAASZAoGZGV2", - "aWNlGAkgASgOMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZl", - "ZWRJdGVtVGFyZ2V0RGV2aWNlRW51bS5GZWVkSXRlbVRhcmdldERldmljZUID", - "4EEFSAASSwoLYWRfc2NoZWR1bGUYCiABKAsyLy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uLkFkU2NoZWR1bGVJbmZvQgPgQQVIADqdAepBmQEK", - "J2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9GZWVkSXRlbVRhcmdldBJuY3Vz", - "dG9tZXJzL3tjdXN0b21lcl9pZH0vZmVlZEl0ZW1UYXJnZXRzL3tmZWVkX2lk", - "fX57ZmVlZF9pdGVtX2lkfX57ZmVlZF9pdGVtX3RhcmdldF90eXBlfX57ZmVl", - "ZF9pdGVtX3RhcmdldF9pZH1CCAoGdGFyZ2V0QgwKCl9mZWVkX2l0ZW1CFgoU", - "X2ZlZWRfaXRlbV90YXJnZXRfaWRChQIKJmNvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzQhNGZWVkSXRlbVRhcmdldFByb3RvUAFaS2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget), global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget.Parser, new[]{ "ResourceName", "FeedItem", "FeedItemTargetType", "FeedItemTargetId", "Status", "Campaign", "AdGroup", "Keyword", "GeoTargetConstant", "Device", "AdSchedule" }, new[]{ "Target", "FeedItem", "FeedItemTargetId" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A feed item target. - /// - public sealed partial class FeedItemTarget : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemTarget()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedItemTargetReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTarget() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTarget(FeedItemTarget other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - feedItem_ = other.feedItem_; - feedItemTargetType_ = other.feedItemTargetType_; - feedItemTargetId_ = other.feedItemTargetId_; - status_ = other.status_; - switch (other.TargetCase) { - case TargetOneofCase.Campaign: - Campaign = other.Campaign; - break; - case TargetOneofCase.AdGroup: - AdGroup = other.AdGroup; - break; - case TargetOneofCase.Keyword: - Keyword = other.Keyword.Clone(); - break; - case TargetOneofCase.GeoTargetConstant: - GeoTargetConstant = other.GeoTargetConstant; - break; - case TargetOneofCase.Device: - Device = other.Device; - break; - case TargetOneofCase.AdSchedule: - AdSchedule = other.AdSchedule.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTarget Clone() { - return new FeedItemTarget(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the feed item target. - /// Feed item target resource names have the form: - /// `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_item" field. - public const int FeedItemFieldNumber = 12; - private string feedItem_; - /// - /// Immutable. The feed item to which this feed item target belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string FeedItem { - get { return feedItem_ ?? ""; } - set { - feedItem_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed_item" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeedItem { - get { return feedItem_ != null; } - } - /// Clears the value of the "feed_item" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeedItem() { - feedItem_ = null; - } - - /// Field number for the "feed_item_target_type" field. - public const int FeedItemTargetTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType feedItemTargetType_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified; - /// - /// Output only. The target type of this feed item target. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType FeedItemTargetType { - get { return feedItemTargetType_; } - set { - feedItemTargetType_ = value; - } - } - - /// Field number for the "feed_item_target_id" field. - public const int FeedItemTargetIdFieldNumber = 13; - private long feedItemTargetId_; - /// - /// Output only. The ID of the targeted resource. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FeedItemTargetId { - get { if ((_hasBits0 & 1) != 0) { return feedItemTargetId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - feedItemTargetId_ = value; - } - } - /// Gets whether the "feed_item_target_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeedItemTargetId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "feed_item_target_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeedItemTargetId() { - _hasBits0 &= ~1; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 11; - private global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified; - /// - /// Output only. Status of the feed item target. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 14; - /// - /// Immutable. The targeted campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return targetCase_ == TargetOneofCase.Campaign ? (string) target_ : ""; } - set { - target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - targetCase_ = TargetOneofCase.Campaign; - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 15; - /// - /// Immutable. The targeted ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return targetCase_ == TargetOneofCase.AdGroup ? (string) target_ : ""; } - set { - target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - targetCase_ = TargetOneofCase.AdGroup; - } - } - - /// Field number for the "keyword" field. - public const int KeywordFieldNumber = 7; - /// - /// Immutable. The targeted keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordInfo Keyword { - get { return targetCase_ == TargetOneofCase.Keyword ? (global::Google.Ads.GoogleAds.V12.Common.KeywordInfo) target_ : null; } - set { - target_ = value; - targetCase_ = value == null ? TargetOneofCase.None : TargetOneofCase.Keyword; - } - } - - /// Field number for the "geo_target_constant" field. - public const int GeoTargetConstantFieldNumber = 16; - /// - /// Immutable. The targeted geo target constant resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GeoTargetConstant { - get { return targetCase_ == TargetOneofCase.GeoTargetConstant ? (string) target_ : ""; } - set { - target_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - targetCase_ = TargetOneofCase.GeoTargetConstant; - } - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 9; - /// - /// Immutable. The targeted device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice Device { - get { return targetCase_ == TargetOneofCase.Device ? (global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice) target_ : global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice.Unspecified; } - set { - target_ = value; - targetCase_ = TargetOneofCase.Device; - } - } - - /// Field number for the "ad_schedule" field. - public const int AdScheduleFieldNumber = 10; - /// - /// Immutable. The targeted schedule. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo AdSchedule { - get { return targetCase_ == TargetOneofCase.AdSchedule ? (global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo) target_ : null; } - set { - target_ = value; - targetCase_ = value == null ? TargetOneofCase.None : TargetOneofCase.AdSchedule; - } - } - - private object target_; - /// Enum of possible cases for the "target" oneof. - public enum TargetOneofCase { - None = 0, - Campaign = 14, - AdGroup = 15, - Keyword = 7, - GeoTargetConstant = 16, - Device = 9, - AdSchedule = 10, - } - private TargetOneofCase targetCase_ = TargetOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetOneofCase TargetCase { - get { return targetCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTarget() { - targetCase_ = TargetOneofCase.None; - target_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemTarget); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemTarget other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (FeedItem != other.FeedItem) return false; - if (FeedItemTargetType != other.FeedItemTargetType) return false; - if (FeedItemTargetId != other.FeedItemTargetId) return false; - if (Status != other.Status) return false; - if (Campaign != other.Campaign) return false; - if (AdGroup != other.AdGroup) return false; - if (!object.Equals(Keyword, other.Keyword)) return false; - if (GeoTargetConstant != other.GeoTargetConstant) return false; - if (Device != other.Device) return false; - if (!object.Equals(AdSchedule, other.AdSchedule)) return false; - if (TargetCase != other.TargetCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasFeedItem) hash ^= FeedItem.GetHashCode(); - if (FeedItemTargetType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified) hash ^= FeedItemTargetType.GetHashCode(); - if (HasFeedItemTargetId) hash ^= FeedItemTargetId.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified) hash ^= Status.GetHashCode(); - if (targetCase_ == TargetOneofCase.Campaign) hash ^= Campaign.GetHashCode(); - if (targetCase_ == TargetOneofCase.AdGroup) hash ^= AdGroup.GetHashCode(); - if (targetCase_ == TargetOneofCase.Keyword) hash ^= Keyword.GetHashCode(); - if (targetCase_ == TargetOneofCase.GeoTargetConstant) hash ^= GeoTargetConstant.GetHashCode(); - if (targetCase_ == TargetOneofCase.Device) hash ^= Device.GetHashCode(); - if (targetCase_ == TargetOneofCase.AdSchedule) hash ^= AdSchedule.GetHashCode(); - hash ^= (int) targetCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FeedItemTargetType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) FeedItemTargetType); - } - if (targetCase_ == TargetOneofCase.Keyword) { - output.WriteRawTag(58); - output.WriteMessage(Keyword); - } - if (targetCase_ == TargetOneofCase.Device) { - output.WriteRawTag(72); - output.WriteEnum((int) Device); - } - if (targetCase_ == TargetOneofCase.AdSchedule) { - output.WriteRawTag(82); - output.WriteMessage(AdSchedule); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified) { - output.WriteRawTag(88); - output.WriteEnum((int) Status); - } - if (HasFeedItem) { - output.WriteRawTag(98); - output.WriteString(FeedItem); - } - if (HasFeedItemTargetId) { - output.WriteRawTag(104); - output.WriteInt64(FeedItemTargetId); - } - if (targetCase_ == TargetOneofCase.Campaign) { - output.WriteRawTag(114); - output.WriteString(Campaign); - } - if (targetCase_ == TargetOneofCase.AdGroup) { - output.WriteRawTag(122); - output.WriteString(AdGroup); - } - if (targetCase_ == TargetOneofCase.GeoTargetConstant) { - output.WriteRawTag(130, 1); - output.WriteString(GeoTargetConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (FeedItemTargetType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) FeedItemTargetType); - } - if (targetCase_ == TargetOneofCase.Keyword) { - output.WriteRawTag(58); - output.WriteMessage(Keyword); - } - if (targetCase_ == TargetOneofCase.Device) { - output.WriteRawTag(72); - output.WriteEnum((int) Device); - } - if (targetCase_ == TargetOneofCase.AdSchedule) { - output.WriteRawTag(82); - output.WriteMessage(AdSchedule); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified) { - output.WriteRawTag(88); - output.WriteEnum((int) Status); - } - if (HasFeedItem) { - output.WriteRawTag(98); - output.WriteString(FeedItem); - } - if (HasFeedItemTargetId) { - output.WriteRawTag(104); - output.WriteInt64(FeedItemTargetId); - } - if (targetCase_ == TargetOneofCase.Campaign) { - output.WriteRawTag(114); - output.WriteString(Campaign); - } - if (targetCase_ == TargetOneofCase.AdGroup) { - output.WriteRawTag(122); - output.WriteString(AdGroup); - } - if (targetCase_ == TargetOneofCase.GeoTargetConstant) { - output.WriteRawTag(130, 1); - output.WriteString(GeoTargetConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasFeedItem) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FeedItem); - } - if (FeedItemTargetType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FeedItemTargetType); - } - if (HasFeedItemTargetId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(FeedItemTargetId); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (targetCase_ == TargetOneofCase.Campaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (targetCase_ == TargetOneofCase.AdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (targetCase_ == TargetOneofCase.Keyword) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Keyword); - } - if (targetCase_ == TargetOneofCase.GeoTargetConstant) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(GeoTargetConstant); - } - if (targetCase_ == TargetOneofCase.Device) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Device); - } - if (targetCase_ == TargetOneofCase.AdSchedule) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdSchedule); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemTarget other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasFeedItem) { - FeedItem = other.FeedItem; - } - if (other.FeedItemTargetType != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType.Unspecified) { - FeedItemTargetType = other.FeedItemTargetType; - } - if (other.HasFeedItemTargetId) { - FeedItemTargetId = other.FeedItemTargetId; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus.Unspecified) { - Status = other.Status; - } - switch (other.TargetCase) { - case TargetOneofCase.Campaign: - Campaign = other.Campaign; - break; - case TargetOneofCase.AdGroup: - AdGroup = other.AdGroup; - break; - case TargetOneofCase.Keyword: - if (Keyword == null) { - Keyword = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - } - Keyword.MergeFrom(other.Keyword); - break; - case TargetOneofCase.GeoTargetConstant: - GeoTargetConstant = other.GeoTargetConstant; - break; - case TargetOneofCase.Device: - Device = other.Device; - break; - case TargetOneofCase.AdSchedule: - if (AdSchedule == null) { - AdSchedule = new global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo(); - } - AdSchedule.MergeFrom(other.AdSchedule); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - FeedItemTargetType = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType) input.ReadEnum(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - if (targetCase_ == TargetOneofCase.Keyword) { - subBuilder.MergeFrom(Keyword); - } - input.ReadMessage(subBuilder); - Keyword = subBuilder; - break; - } - case 72: { - target_ = input.ReadEnum(); - targetCase_ = TargetOneofCase.Device; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo(); - if (targetCase_ == TargetOneofCase.AdSchedule) { - subBuilder.MergeFrom(AdSchedule); - } - input.ReadMessage(subBuilder); - AdSchedule = subBuilder; - break; - } - case 88: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus) input.ReadEnum(); - break; - } - case 98: { - FeedItem = input.ReadString(); - break; - } - case 104: { - FeedItemTargetId = input.ReadInt64(); - break; - } - case 114: { - Campaign = input.ReadString(); - break; - } - case 122: { - AdGroup = input.ReadString(); - break; - } - case 130: { - GeoTargetConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - FeedItemTargetType = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType) input.ReadEnum(); - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Common.KeywordInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.KeywordInfo(); - if (targetCase_ == TargetOneofCase.Keyword) { - subBuilder.MergeFrom(Keyword); - } - input.ReadMessage(subBuilder); - Keyword = subBuilder; - break; - } - case 72: { - target_ = input.ReadEnum(); - targetCase_ = TargetOneofCase.Device; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo subBuilder = new global::Google.Ads.GoogleAds.V12.Common.AdScheduleInfo(); - if (targetCase_ == TargetOneofCase.AdSchedule) { - subBuilder.MergeFrom(AdSchedule); - } - input.ReadMessage(subBuilder); - AdSchedule = subBuilder; - break; - } - case 88: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus) input.ReadEnum(); - break; - } - case 98: { - FeedItem = input.ReadString(); - break; - } - case 104: { - FeedItemTargetId = input.ReadInt64(); - break; - } - case 114: { - Campaign = input.ReadString(); - break; - } - case 122: { - AdGroup = input.ReadString(); - break; - } - case 130: { - GeoTargetConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetDevice.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetDevice.g.cs deleted file mode 100755 index 44cb4a177..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetDevice.g.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_target_device.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_target_device.proto - public static partial class FeedItemTargetDeviceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_target_device.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemTargetDeviceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3Rh", - "cmdldF9kZXZpY2UucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJcChhGZWVkSXRlbVRhcmdldERldmljZUVudW0iQAoURmVlZEl0ZW1U", - "YXJnZXREZXZpY2USDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCgoG", - "TU9CSUxFEAJC8wEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXNCGUZlZWRJdGVtVGFyZ2V0RGV2aWNlUHJvdG9QAVpDZ29vZ2xlLmdvbGFu", - "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9l", - "bnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5F", - "bnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceEnum.Types.FeedItemTargetDevice) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible data types for a feed item target - /// device. - /// - public sealed partial class FeedItemTargetDeviceEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemTargetDeviceEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetDeviceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetDeviceEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetDeviceEnum(FeedItemTargetDeviceEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetDeviceEnum Clone() { - return new FeedItemTargetDeviceEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemTargetDeviceEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemTargetDeviceEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemTargetDeviceEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemTargetDeviceEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible data types for a feed item target device. - /// - public enum FeedItemTargetDevice { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Mobile. - /// - [pbr::OriginalName("MOBILE")] Mobile = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetError.g.cs deleted file mode 100755 index fc00a49d7..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetError.g.cs +++ /dev/null @@ -1,269 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_item_target_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_item_target_error.proto - public static partial class FeedItemTargetErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_item_target_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemTargetErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfaXRlbV90", - "YXJnZXRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMi/AIKF0ZlZWRJdGVtVGFyZ2V0RXJyb3JFbnVtIuACChNGZWVkSXRl", - "bVRhcmdldEVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEiMK", - "H01VU1RfU0VUX1RBUkdFVF9PTkVPRl9PTl9DUkVBVEUQAhIjCh9GRUVEX0lU", - "RU1fVEFSR0VUX0FMUkVBRFlfRVhJU1RTEAMSJgoiRkVFRF9JVEVNX1NDSEVE", - "VUxFU19DQU5OT1RfT1ZFUkxBUBAEEigKJFRBUkdFVF9MSU1JVF9FWENFRURF", - "RF9GT1JfR0lWRU5fVFlQRRAFEh4KGlRPT19NQU5ZX1NDSEVEVUxFU19QRVJf", - "REFZEAYSPQo5Q0FOTk9UX0hBVkVfRU5BQkxFRF9DQU1QQUlHTl9BTkRfRU5B", - "QkxFRF9BRF9HUk9VUF9UQVJHRVRTEAcSGQoVRFVQTElDQVRFX0FEX1NDSEVE", - "VUxFEAgSFQoRRFVQTElDQVRFX0tFWVdPUkQQCUL4AQojY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCGEZlZWRJdGVtVGFyZ2V0RXJyb3JQ", - "cm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorEnum.Types.FeedItemTargetError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible feed item target errors. - /// - public sealed partial class FeedItemTargetErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemTargetErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedItemTargetErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetErrorEnum(FeedItemTargetErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetErrorEnum Clone() { - return new FeedItemTargetErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemTargetErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemTargetErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemTargetErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemTargetErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible feed item target errors. - /// - public enum FeedItemTargetError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// On CREATE, the FeedItemTarget must have a populated field in the oneof - /// target. - /// - [pbr::OriginalName("MUST_SET_TARGET_ONEOF_ON_CREATE")] MustSetTargetOneofOnCreate = 2, - /// - /// The specified feed item target already exists, so it cannot be added. - /// - [pbr::OriginalName("FEED_ITEM_TARGET_ALREADY_EXISTS")] FeedItemTargetAlreadyExists = 3, - /// - /// The schedules for a given feed item cannot overlap. - /// - [pbr::OriginalName("FEED_ITEM_SCHEDULES_CANNOT_OVERLAP")] FeedItemSchedulesCannotOverlap = 4, - /// - /// Too many targets of a given type were added for a single feed item. - /// - [pbr::OriginalName("TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE")] TargetLimitExceededForGivenType = 5, - /// - /// Too many AdSchedules are enabled for the feed item for the given day. - /// - [pbr::OriginalName("TOO_MANY_SCHEDULES_PER_DAY")] TooManySchedulesPerDay = 6, - /// - /// A feed item may either have an enabled campaign target or an enabled ad - /// group target. - /// - [pbr::OriginalName("CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS")] CannotHaveEnabledCampaignAndEnabledAdGroupTargets = 7, - /// - /// Duplicate ad schedules aren't allowed. - /// - [pbr::OriginalName("DUPLICATE_AD_SCHEDULE")] DuplicateAdSchedule = 8, - /// - /// Duplicate keywords aren't allowed. - /// - [pbr::OriginalName("DUPLICATE_KEYWORD")] DuplicateKeyword = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetResourceNames.g.cs deleted file mode 100755 index a98648234..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetResourceNames.g.cs +++ /dev/null @@ -1,391 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the FeedItemTarget resource. - public sealed partial class FeedItemTargetName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// . - /// - CustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget = 1, - } - - private static gax::PathTemplate s_customerFeedFeedItemFeedItemTargetTypeFeedItemTarget = new gax::PathTemplate("customers/{customer_id}/feedItemTargets/{feed_id_feed_item_id_feed_item_target_type_feed_item_target_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static FeedItemTargetName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new FeedItemTargetName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The FeedItemTargetType ID. Must not be null or empty. - /// - /// The FeedItemTarget ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static FeedItemTargetName FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget(string customerId, string feedId, string feedItemId, string feedItemTargetTypeId, string feedItemTargetId) => - new FeedItemTargetName(ResourceNameType.CustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId)), feedItemTargetTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemTargetTypeId, nameof(feedItemTargetTypeId)), feedItemTargetId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemTargetId, nameof(feedItemTargetId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The FeedItemTargetType ID. Must not be null or empty. - /// - /// The FeedItemTarget ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// . - /// - public static string Format(string customerId, string feedId, string feedItemId, string feedItemTargetTypeId, string feedItemTargetId) => - FormatCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget(customerId, feedId, feedItemId, feedItemTargetTypeId, feedItemTargetId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// . - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The FeedItemTargetType ID. Must not be null or empty. - /// - /// The FeedItemTarget ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// . - /// - public static string FormatCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget(string customerId, string feedId, string feedItemId, string feedItemTargetTypeId, string feedItemTargetId) => - s_customerFeedFeedItemFeedItemTargetTypeFeedItemTarget.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemTargetTypeId, nameof(feedItemTargetTypeId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemTargetId, nameof(feedItemTargetId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static FeedItemTargetName Parse(string feedItemTargetName) => Parse(feedItemTargetName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static FeedItemTargetName Parse(string feedItemTargetName, bool allowUnparsed) => - TryParse(feedItemTargetName, allowUnparsed, out FeedItemTargetName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemTargetName, out FeedItemTargetName result) => - TryParse(feedItemTargetName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedItemTargetName, bool allowUnparsed, out FeedItemTargetName result) - { - gax::GaxPreconditions.CheckNotNull(feedItemTargetName, nameof(feedItemTargetName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeedFeedItemFeedItemTargetTypeFeedItemTarget.TryParseName(feedItemTargetName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', '~', '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget(resourceName[0], split1[0], split1[1], split1[2], split1[3]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(feedItemTargetName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private FeedItemTargetName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedId = null, string feedItemId = null, string feedItemTargetId = null, string feedItemTargetTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedId = feedId; - FeedItemId = feedItemId; - FeedItemTargetId = feedItemTargetId; - FeedItemTargetTypeId = feedItemTargetTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// - /// customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedItem ID. Must not be null or empty. - /// - /// The FeedItemTargetType ID. Must not be null or empty. - /// - /// The FeedItemTarget ID. Must not be null or empty. - public FeedItemTargetName(string customerId, string feedId, string feedItemId, string feedItemTargetTypeId, string feedItemTargetId) : this(ResourceNameType.CustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedItemId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemId, nameof(feedItemId)), feedItemTargetTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemTargetTypeId, nameof(feedItemTargetTypeId)), feedItemTargetId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedItemTargetId, nameof(feedItemTargetId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// - /// The FeedItem ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedItemId { get; } - - /// - /// The FeedItemTarget ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string FeedItemTargetId { get; } - - /// - /// The FeedItemTargetType ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string FeedItemTargetTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeedFeedItemFeedItemTargetTypeFeedItemTarget: return s_customerFeedFeedItemFeedItemTargetTypeFeedItemTarget.Expand(CustomerId, $"{FeedId}~{FeedItemId}~{FeedItemTargetTypeId}~{FeedItemTargetId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as FeedItemTargetName); - - /// - public bool Equals(FeedItemTargetName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(FeedItemTargetName a, FeedItemTargetName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(FeedItemTargetName a, FeedItemTargetName b) => !(a == b); - } - - public partial class FeedItemTarget - { - /// - /// -typed view over the resource name property. - /// - internal FeedItemTargetName ResourceNameAsFeedItemTargetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : FeedItemTargetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal FeedItemName FeedItemAsFeedItemName - { - get => string.IsNullOrEmpty(FeedItem) ? null : FeedItemName.Parse(FeedItem, allowUnparsed: true); - set => FeedItem = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal AdGroupName AdGroupAsAdGroupName - { - get => string.IsNullOrEmpty(AdGroup) ? null : AdGroupName.Parse(AdGroup, allowUnparsed: true); - set => AdGroup = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal GeoTargetConstantName GeoTargetConstantAsGeoTargetConstantName - { - get => string.IsNullOrEmpty(GeoTargetConstant) ? null : GeoTargetConstantName.Parse(GeoTargetConstant, allowUnparsed: true); - set => GeoTargetConstant = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetService.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetService.g.cs deleted file mode 100755 index a451ec23c..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetService.g.cs +++ /dev/null @@ -1,1200 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_target_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/feed_item_target_service.proto - public static partial class FeedItemTargetServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/feed_item_target_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemTargetServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZmVlZF9pdGVt", - "X3RhcmdldF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMaOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9y", - "ZXNwb25zZV9jb250ZW50X3R5cGUucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9yZXNvdXJjZXMvZmVlZF9pdGVtX3RhcmdldC5wcm90bxocZ29v", - "Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQu", - "cHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3Rv", - "IqkCChxNdXRhdGVGZWVkSXRlbVRhcmdldHNSZXF1ZXN0EhgKC2N1c3RvbWVy", - "X2lkGAEgASgJQgPgQQISUwoKb3BlcmF0aW9ucxgCIAMoCzI6Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5GZWVkSXRlbVRhcmdldE9wZXJh", - "dGlvbkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgEIAEoCBJqChVyZXNwb25z", - "ZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250", - "ZW50VHlwZRIVCg12YWxpZGF0ZV9vbmx5GAMgASgIIqwBChdGZWVkSXRlbVRh", - "cmdldE9wZXJhdGlvbhJECgZjcmVhdGUYASABKAsyMi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkZlZWRJdGVtVGFyZ2V0SAASPgoGcmVt", - "b3ZlGAIgASgJQiz6QSkKJ2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9GZWVk", - "SXRlbVRhcmdldEgAQgsKCW9wZXJhdGlvbiKiAQodTXV0YXRlRmVlZEl0ZW1U", - "YXJnZXRzUmVzcG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgL", - "MhIuZ29vZ2xlLnJwYy5TdGF0dXMSTgoHcmVzdWx0cxgCIAMoCzI9Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVGZWVkSXRlbVRh", - "cmdldFJlc3VsdCKvAQoaTXV0YXRlRmVlZEl0ZW1UYXJnZXRSZXN1bHQSQwoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUIs+kEpCidnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vRmVlZEl0ZW1UYXJnZXQSTAoQZmVlZF9pdGVtX3RhcmdldBgCIAEo", - "CzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuRmVlZEl0", - "ZW1UYXJnZXQy1gIKFUZlZWRJdGVtVGFyZ2V0U2VydmljZRL1AQoVTXV0YXRl", - "RmVlZEl0ZW1UYXJnZXRzEj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUZlZWRJdGVtVGFyZ2V0c1JlcXVlc3QaQC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlRmVlZEl0ZW1UYXJn", - "ZXRzUmVzcG9uc2UiWYLT5JMCOiI1L3YxMi9jdXN0b21lcnMve2N1c3RvbWVy", - "X2lkPSp9L2ZlZWRJdGVtVGFyZ2V0czptdXRhdGU6ASraQRZjdXN0b21lcl9p", - "ZCxvcGVyYXRpb25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdo", - "dHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNChgIKJWNv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCGkZlZWRJdGVt", - "VGFyZ2V0U2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2Vy", - "dmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2Vydmlj", - "ZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedItemTargetReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ResponseContentType", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation), global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult), global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult.Parser, new[]{ "ResourceName", "FeedItemTarget" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [FeedItemTargetService.MutateFeedItemTargets][google.ads.googleads.v12.services.FeedItemTargetService.MutateFeedItemTargets]. - /// - public sealed partial class MutateFeedItemTargetsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemTargetsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetsRequest(MutateFeedItemTargetsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - responseContentType_ = other.responseContentType_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetsRequest Clone() { - return new MutateFeedItemTargetsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose feed item targets are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual feed item targets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 4; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 3; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemTargetsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemTargetsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ResponseContentType != other.ResponseContentType) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (PartialFailure != false) { - output.WriteRawTag(32); - output.WriteBool(PartialFailure); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (ValidateOnly != false) { - output.WriteRawTag(24); - output.WriteBool(ValidateOnly); - } - if (PartialFailure != false) { - output.WriteRawTag(32); - output.WriteBool(PartialFailure); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemTargetsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - PartialFailure = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - ValidateOnly = input.ReadBool(); - break; - } - case 32: { - PartialFailure = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on an feed item target. - /// - public sealed partial class FeedItemTargetOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemTargetOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetOperation(FeedItemTargetOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetOperation Clone() { - return new FeedItemTargetOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new feed item - /// target. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 2; - /// - /// Remove operation: A resource name for the removed feed item target is - /// expected, in this format: - /// - /// `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 2, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemTargetOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemTargetOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(18); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemTargetOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an feed item target mutate. - /// - public sealed partial class MutateFeedItemTargetsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemTargetsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetsResponse(MutateFeedItemTargetsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetsResponse Clone() { - return new MutateFeedItemTargetsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemTargetsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemTargetsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemTargetsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the feed item target mutate. - /// - public sealed partial class MutateFeedItemTargetResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedItemTargetResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetResult(MutateFeedItemTargetResult other) : this() { - resourceName_ = other.resourceName_; - feedItemTarget_ = other.feedItemTarget_ != null ? other.feedItemTarget_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedItemTargetResult Clone() { - return new MutateFeedItemTargetResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_item_target" field. - public const int FeedItemTargetFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget feedItemTarget_; - /// - /// The mutated feed item target with only mutable fields after mutate. The - /// field will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget FeedItemTarget { - get { return feedItemTarget_; } - set { - feedItemTarget_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedItemTargetResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedItemTargetResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(FeedItemTarget, other.FeedItemTarget)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (feedItemTarget_ != null) hash ^= FeedItemTarget.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feedItemTarget_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FeedItemTarget); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feedItemTarget_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FeedItemTarget); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (feedItemTarget_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FeedItemTarget); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedItemTargetResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.feedItemTarget_ != null) { - if (feedItemTarget_ == null) { - FeedItemTarget = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - } - FeedItemTarget.MergeFrom(other.FeedItemTarget); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feedItemTarget_ == null) { - FeedItemTarget = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - } - input.ReadMessage(FeedItemTarget); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feedItemTarget_ == null) { - FeedItemTarget = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - } - input.ReadMessage(FeedItemTarget); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceClient.g.cs deleted file mode 100755 index f536dd7ef..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceClient.g.cs +++ /dev/null @@ -1,532 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class FeedItemTargetServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static FeedItemTargetServiceSettings GetDefault() => new FeedItemTargetServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public FeedItemTargetServiceSettings() - { - } - - private FeedItemTargetServiceSettings(FeedItemTargetServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateFeedItemTargetsSettings = existing.MutateFeedItemTargetsSettings; - OnCopy(existing); - } - - partial void OnCopy(FeedItemTargetServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// FeedItemTargetServiceClient.MutateFeedItemTargets and - /// FeedItemTargetServiceClient.MutateFeedItemTargetsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateFeedItemTargetsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public FeedItemTargetServiceSettings Clone() => new FeedItemTargetServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class FeedItemTargetServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public FeedItemTargetServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public FeedItemTargetServiceClientBuilder() : base(FeedItemTargetServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref FeedItemTargetServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override FeedItemTargetServiceClient Build() - { - FeedItemTargetServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private FeedItemTargetServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return FeedItemTargetServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return FeedItemTargetServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => FeedItemTargetServiceClient.ChannelPool; - } - - /// FeedItemTargetService client wrapper, for convenient use. - /// - /// Service to manage feed item targets. - /// - public abstract partial class FeedItemTargetServiceClient - { - /// - /// The default endpoint for the FeedItemTargetService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default FeedItemTargetService scopes. - /// - /// The default FeedItemTargetService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(FeedItemTargetService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new FeedItemTargetServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static FeedItemTargetServiceClient Create() => new FeedItemTargetServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static FeedItemTargetServiceClient Create(grpccore::CallInvoker callInvoker, FeedItemTargetServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - FeedItemTargetService.FeedItemTargetServiceClient grpcClient = new FeedItemTargetService.FeedItemTargetServiceClient(callInvoker); - return new FeedItemTargetServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC FeedItemTargetService client - public virtual FeedItemTargetService.FeedItemTargetServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemTargetsResponse MutateFeedItemTargets(MutateFeedItemTargetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemTargetsAsync(MutateFeedItemTargetsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemTargetsAsync(MutateFeedItemTargetsRequest request, st::CancellationToken cancellationToken) => - MutateFeedItemTargetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feed item targets are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item targets. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedItemTargetsResponse MutateFeedItemTargets(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItemTargets(new MutateFeedItemTargetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feed item targets are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item targets. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemTargetsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedItemTargetsAsync(new MutateFeedItemTargetsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feed item targets are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed item targets. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedItemTargetsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateFeedItemTargetsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// FeedItemTargetService client wrapper implementation, for convenient use. - /// - /// Service to manage feed item targets. - /// - public sealed partial class FeedItemTargetServiceClientImpl : FeedItemTargetServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateFeedItemTargets; - - /// - /// Constructs a client wrapper for the FeedItemTargetService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public FeedItemTargetServiceClientImpl(FeedItemTargetService.FeedItemTargetServiceClient grpcClient, FeedItemTargetServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - FeedItemTargetServiceSettings effectiveSettings = settings ?? FeedItemTargetServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateFeedItemTargets = clientHelper.BuildApiCall("MutateFeedItemTargets", grpcClient.MutateFeedItemTargetsAsync, grpcClient.MutateFeedItemTargets, effectiveSettings.MutateFeedItemTargetsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateFeedItemTargets); - Modify_MutateFeedItemTargetsApiCall(ref _callMutateFeedItemTargets); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateFeedItemTargetsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(FeedItemTargetService.FeedItemTargetServiceClient grpcClient, FeedItemTargetServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC FeedItemTargetService client - public override FeedItemTargetService.FeedItemTargetServiceClient GrpcClient { get; } - - partial void Modify_MutateFeedItemTargetsRequest(ref MutateFeedItemTargetsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateFeedItemTargetsResponse MutateFeedItemTargets(MutateFeedItemTargetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemTargetsRequest(ref request, ref callSettings); - return _callMutateFeedItemTargets.Sync(request, callSettings); - } - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateFeedItemTargetsAsync(MutateFeedItemTargetsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedItemTargetsRequest(ref request, ref callSettings); - return _callMutateFeedItemTargets.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceGrpc.g.cs deleted file mode 100755 index 655134af7..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceGrpc.g.cs +++ /dev/null @@ -1,312 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_item_target_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage feed item targets. - /// - public static partial class FeedItemTargetService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.FeedItemTargetService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemTargetsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedItemTargetsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateFeedItemTargets = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateFeedItemTargets", - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemTargetsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateFeedItemTargetsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of FeedItemTargetService - [grpc::BindServiceMethod(typeof(FeedItemTargetService), "BindService")] - public abstract partial class FeedItemTargetServiceBase - { - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateFeedItemTargets(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for FeedItemTargetService - public partial class FeedItemTargetServiceClient : grpc::ClientBase - { - /// Creates a new client for FeedItemTargetService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemTargetServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for FeedItemTargetService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedItemTargetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemTargetServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedItemTargetServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsResponse MutateFeedItemTargets(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItemTargets(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsResponse MutateFeedItemTargets(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateFeedItemTargets, null, options, request); - } - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemTargetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedItemTargetsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes feed item targets. Operation statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CriterionError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedItemTargetError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedItemTargetsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateFeedItemTargets, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override FeedItemTargetServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new FeedItemTargetServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(FeedItemTargetServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateFeedItemTargets, serviceImpl.MutateFeedItemTargets).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, FeedItemTargetServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateFeedItemTargets, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateFeedItemTargets)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceResourceNames.g.cs deleted file mode 100755 index c62ddff29..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class FeedItemTargetOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedItemTargetName RemoveAsFeedItemTargetName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::FeedItemTargetName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateFeedItemTargetResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::FeedItemTargetName ResourceNameAsFeedItemTargetName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::FeedItemTargetName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetStatus.g.cs deleted file mode 100755 index 7f9cb79a7..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_target_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_target_status.proto - public static partial class FeedItemTargetStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_target_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemTargetStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3Rh", - "cmdldF9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJqChhGZWVkSXRlbVRhcmdldFN0YXR1c0VudW0iTgoURmVlZEl0ZW1U", - "YXJnZXRTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCwoH", - "RU5BQkxFRBACEgsKB1JFTU9WRUQQA0LzAQoiY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtc0IZRmVlZEl0ZW1UYXJnZXRTdGF0dXNQcm90b1AB", - "WkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEy", - "XEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IG", - "cHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusEnum.Types.FeedItemTargetStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a feed item target. - /// - public sealed partial class FeedItemTargetStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemTargetStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetStatusEnum(FeedItemTargetStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetStatusEnum Clone() { - return new FeedItemTargetStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemTargetStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemTargetStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemTargetStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemTargetStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a feed item target. - /// - public enum FeedItemTargetStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Feed item target is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Feed item target has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemTargetType.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemTargetType.g.cs deleted file mode 100755 index 46d9623f1..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemTargetType.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_target_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_target_type.proto - public static partial class FeedItemTargetTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_target_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemTargetTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3Rh", - "cmdldF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMidwoWRmVlZEl0ZW1UYXJnZXRUeXBlRW51bSJdChJGZWVkSXRlbVRhcmdl", - "dFR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESDAoIQ0FNUEFJ", - "R04QAhIMCghBRF9HUk9VUBADEg0KCUNSSVRFUklPThAEQvEBCiJjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhdGZWVkSXRlbVRhcmdldFR5", - "cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeEnum.Types.FeedItemTargetType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible types of a feed item target. - /// - public sealed partial class FeedItemTargetTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemTargetTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemTargetTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetTypeEnum(FeedItemTargetTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemTargetTypeEnum Clone() { - return new FeedItemTargetTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemTargetTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemTargetTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemTargetTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemTargetTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible type of a feed item target. - /// - public enum FeedItemTargetType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Feed item targets a campaign. - /// - [pbr::OriginalName("CAMPAIGN")] Campaign = 2, - /// - /// Feed item targets an ad group. - /// - [pbr::OriginalName("AD_GROUP")] AdGroup = 3, - /// - /// Feed item targets a criterion. - /// - [pbr::OriginalName("CRITERION")] Criterion = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemValidationError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemValidationError.g.cs deleted file mode 100755 index e315768b2..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemValidationError.g.cs +++ /dev/null @@ -1,744 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_item_validation_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_item_validation_error.proto - public static partial class FeedItemValidationErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_item_validation_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemValidationErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfaXRlbV92", - "YWxpZGF0aW9uX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZXJyb3JzIu4bChtGZWVkSXRlbVZhbGlkYXRpb25FcnJvckVudW0izhsK", - "F0ZlZWRJdGVtVmFsaWRhdGlvbkVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEhQKEFNUUklOR19UT09fU0hPUlQQAhITCg9TVFJJTkdfVE9P", - "X0xPTkcQAxIXChNWQUxVRV9OT1RfU1BFQ0lGSUVEEAQSKAokSU5WQUxJRF9E", - "T01FU1RJQ19QSE9ORV9OVU1CRVJfRk9STUFUEAUSGAoUSU5WQUxJRF9QSE9O", - "RV9OVU1CRVIQBhIqCiZQSE9ORV9OVU1CRVJfTk9UX1NVUFBPUlRFRF9GT1Jf", - "Q09VTlRSWRAHEiMKH1BSRU1JVU1fUkFURV9OVU1CRVJfTk9UX0FMTE9XRUQQ", - "CBIaChZESVNBTExPV0VEX05VTUJFUl9UWVBFEAkSFgoSVkFMVUVfT1VUX09G", - "X1JBTkdFEAoSKgomQ0FMTFRSQUNLSU5HX05PVF9TVVBQT1JURURfRk9SX0NP", - "VU5UUlkQCxIuCipDVVNUT01FUl9OT1RfSU5fQUxMT1dMSVNUX0ZPUl9DQUxM", - "VFJBQ0tJTkcQYxIYChRJTlZBTElEX0NPVU5UUllfQ09ERRANEhIKDklOVkFM", - "SURfQVBQX0lEEA4SIQodTUlTU0lOR19BVFRSSUJVVEVTX0ZPUl9GSUVMRFMQ", - "DxITCg9JTlZBTElEX1RZUEVfSUQQEBIZChVJTlZBTElEX0VNQUlMX0FERFJF", - "U1MQERIVChFJTlZBTElEX0hUVFBTX1VSTBASEhwKGE1JU1NJTkdfREVMSVZF", - "UllfQUREUkVTUxATEh0KGVNUQVJUX0RBVEVfQUZURVJfRU5EX0RBVEUQFBIg", - "ChxNSVNTSU5HX0ZFRURfSVRFTV9TVEFSVF9USU1FEBUSHgoaTUlTU0lOR19G", - "RUVEX0lURU1fRU5EX1RJTUUQFhIYChRNSVNTSU5HX0ZFRURfSVRFTV9JRBAX", - "EiMKH1ZBTklUWV9QSE9ORV9OVU1CRVJfTk9UX0FMTE9XRUQQGBIkCiBJTlZB", - "TElEX1JFVklFV19FWFRFTlNJT05fU05JUFBFVBAZEhkKFUlOVkFMSURfTlVN", - "QkVSX0ZPUk1BVBAaEhcKE0lOVkFMSURfREFURV9GT1JNQVQQGxIYChRJTlZB", - "TElEX1BSSUNFX0ZPUk1BVBAcEh0KGVVOS05PV05fUExBQ0VIT0xERVJfRklF", - "TEQQHRIuCipNSVNTSU5HX0VOSEFOQ0VEX1NJVEVMSU5LX0RFU0NSSVBUSU9O", - "X0xJTkUQHhImCiJSRVZJRVdfRVhURU5TSU9OX1NPVVJDRV9JTkVMSUdJQkxF", - "EB8SJwojSFlQSEVOU19JTl9SRVZJRVdfRVhURU5TSU9OX1NOSVBQRVQQIBIt", - "CilET1VCTEVfUVVPVEVTX0lOX1JFVklFV19FWFRFTlNJT05fU05JUFBFVBAh", - "EiYKIlFVT1RFU19JTl9SRVZJRVdfRVhURU5TSU9OX1NOSVBQRVQQIhIfChtJ", - "TlZBTElEX0ZPUk1fRU5DT0RFRF9QQVJBTVMQIxIeChpJTlZBTElEX1VSTF9Q", - "QVJBTUVURVJfTkFNRRAkEhcKE05PX0dFT0NPRElOR19SRVNVTFQQJRIoCiRT", - "T1VSQ0VfTkFNRV9JTl9SRVZJRVdfRVhURU5TSU9OX1RFWFQQJhItCilDQVJS", - "SUVSX1NQRUNJRklDX1NIT1JUX05VTUJFUl9OT1RfQUxMT1dFRBAnEiAKHElO", - "VkFMSURfUExBQ0VIT0xERVJfRklFTERfSUQQKBITCg9JTlZBTElEX1VSTF9U", - "QUcQKRIRCg1MSVNUX1RPT19MT05HECoSIgoeSU5WQUxJRF9BVFRSSUJVVEVT", - "X0NPTUJJTkFUSU9OECsSFAoQRFVQTElDQVRFX1ZBTFVFUxAsEiUKIUlOVkFM", - "SURfQ0FMTF9DT05WRVJTSU9OX0FDVElPTl9JRBAtEiEKHUNBTk5PVF9TRVRf", - "V0lUSE9VVF9GSU5BTF9VUkxTEC4SJAogQVBQX0lEX0RPRVNOVF9FWElTVF9J", - "Tl9BUFBfU1RPUkUQLxIVChFJTlZBTElEX0ZJTkFMX1VSTBAwEhgKFElOVkFM", - "SURfVFJBQ0tJTkdfVVJMEDESKgomSU5WQUxJRF9GSU5BTF9VUkxfRk9SX0FQ", - "UF9ET1dOTE9BRF9VUkwQMhISCg5MSVNUX1RPT19TSE9SVBAzEhcKE0lOVkFM", - "SURfVVNFUl9BQ1RJT04QNBIVChFJTlZBTElEX1RZUEVfTkFNRRA1Eh8KG0lO", - "VkFMSURfRVZFTlRfQ0hBTkdFX1NUQVRVUxA2EhsKF0lOVkFMSURfU05JUFBF", - "VFNfSEVBREVSEDcSHAoYSU5WQUxJRF9BTkRST0lEX0FQUF9MSU5LEDgSOwo3", - "TlVNQkVSX1RZUEVfV0lUSF9DQUxMVFJBQ0tJTkdfTk9UX1NVUFBPUlRFRF9G", - "T1JfQ09VTlRSWRA5EhoKFlJFU0VSVkVEX0tFWVdPUkRfT1RIRVIQOhIbChdE", - "VVBMSUNBVEVfT1BUSU9OX0xBQkVMUxA7Eh0KGURVUExJQ0FURV9PUFRJT05f", - "UFJFRklMTFMQPBIYChRVTkVRVUFMX0xJU1RfTEVOR1RIUxA9Eh8KG0lOQ09O", - "U0lTVEVOVF9DVVJSRU5DWV9DT0RFUxA+EioKJlBSSUNFX0VYVEVOU0lPTl9I", - "QVNfRFVQTElDQVRFRF9IRUFERVJTED8SLgoqSVRFTV9IQVNfRFVQTElDQVRF", - "RF9IRUFERVJfQU5EX0RFU0NSSVBUSU9OEEASJQohUFJJQ0VfRVhURU5TSU9O", - "X0hBU19UT09fRkVXX0lURU1TEEESFQoRVU5TVVBQT1JURURfVkFMVUUQQhIc", - "ChhJTlZBTElEX0ZJTkFMX01PQklMRV9VUkwQQxIlCiFJTlZBTElEX0tFWVdP", - "UkRMRVNTX0FEX1JVTEVfTEFCRUwQRBInCiNWQUxVRV9UUkFDS19QQVJBTUVU", - "RVJfTk9UX1NVUFBPUlRFRBBFEioKJlVOU1VQUE9SVEVEX1ZBTFVFX0lOX1NF", - "TEVDVEVEX0xBTkdVQUdFEEYSGAoUSU5WQUxJRF9JT1NfQVBQX0xJTksQRxIs", - "CihNSVNTSU5HX0lPU19BUFBfTElOS19PUl9JT1NfQVBQX1NUT1JFX0lEEEgS", - "GgoWUFJPTU9USU9OX0lOVkFMSURfVElNRRBJEjkKNVBST01PVElPTl9DQU5O", - "T1RfU0VUX1BFUkNFTlRfT0ZGX0FORF9NT05FWV9BTU9VTlRfT0ZGEEoSPgo6", - "UFJPTU9USU9OX0NBTk5PVF9TRVRfUFJPTU9USU9OX0NPREVfQU5EX09SREVS", - "U19PVkVSX0FNT1VOVBBLEiUKIVRPT19NQU5ZX0RFQ0lNQUxfUExBQ0VTX1NQ", - "RUNJRklFRBBMEh4KGkFEX0NVU1RPTUlaRVJTX05PVF9BTExPV0VEEE0SGQoV", - "SU5WQUxJRF9MQU5HVUFHRV9DT0RFEE4SGAoUVU5TVVBQT1JURURfTEFOR1VB", - "R0UQTxIbChdJRl9GVU5DVElPTl9OT1RfQUxMT1dFRBBQEhwKGElOVkFMSURf", - "RklOQUxfVVJMX1NVRkZJWBBREiMKH0lOVkFMSURfVEFHX0lOX0ZJTkFMX1VS", - "TF9TVUZGSVgQUhIjCh9JTlZBTElEX0ZJTkFMX1VSTF9TVUZGSVhfRk9STUFU", - "EFMSMAosQ1VTVE9NRVJfQ09OU0VOVF9GT1JfQ0FMTF9SRUNPUkRJTkdfUkVR", - "VUlSRUQQVBInCiNPTkxZX09ORV9ERUxJVkVSWV9PUFRJT05fSVNfQUxMT1dF", - "RBBVEh0KGU5PX0RFTElWRVJZX09QVElPTl9JU19TRVQQVhImCiJJTlZBTElE", - "X0NPTlZFUlNJT05fUkVQT1JUSU5HX1NUQVRFEFcSFAoQSU1BR0VfU0laRV9X", - "Uk9ORxBYEisKJ0VNQUlMX0RFTElWRVJZX05PVF9BVkFJTEFCTEVfSU5fQ09V", - "TlRSWRBZEicKI0FVVE9fUkVQTFlfTk9UX0FWQUlMQUJMRV9JTl9DT1VOVFJZ", - "EFoSGgoWSU5WQUxJRF9MQVRJVFVERV9WQUxVRRBbEhsKF0lOVkFMSURfTE9O", - "R0lUVURFX1ZBTFVFEFwSEwoPVE9PX01BTllfTEFCRUxTEF0SFQoRSU5WQUxJ", - "RF9JTUFHRV9VUkwQXhIaChZNSVNTSU5HX0xBVElUVURFX1ZBTFVFEF8SGwoX", - "TUlTU0lOR19MT05HSVRVREVfVkFMVUUQYBIVChFBRERSRVNTX05PVF9GT1VO", - "RBBhEhoKFkFERFJFU1NfTk9UX1RBUkdFVEFCTEUQYhIUChBJTlZBTElEX0FT", - "U0VUX0lEEGQSGwoXSU5DT01QQVRJQkxFX0FTU0VUX1RZUEUQZRIfChtJTUFH", - "RV9FUlJPUl9VTkVYUEVDVEVEX1NJWkUQZhIoCiRJTUFHRV9FUlJPUl9BU1BF", - "Q1RfUkFUSU9fTk9UX0FMTE9XRUQQZxIeChpJTUFHRV9FUlJPUl9GSUxFX1RP", - "T19MQVJHRRBoEiIKHklNQUdFX0VSUk9SX0ZPUk1BVF9OT1RfQUxMT1dFRBBp", - "EiQKIElNQUdFX0VSUk9SX0NPTlNUUkFJTlRTX1ZJT0xBVEVEEGoSHAoYSU1B", - "R0VfRVJST1JfU0VSVkVSX0VSUk9SEGtC/AEKI2NvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZXJyb3JzQhxGZWVkSXRlbVZhbGlkYXRpb25FcnJvclBy", - "b3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorEnum.Types.FeedItemValidationError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible validation errors of a feed item. - /// - public sealed partial class FeedItemValidationErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemValidationErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedItemValidationErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationErrorEnum(FeedItemValidationErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationErrorEnum Clone() { - return new FeedItemValidationErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemValidationErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemValidationErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemValidationErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemValidationErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible validation errors of a feed item. - /// - public enum FeedItemValidationError { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// String is too short. - /// - [pbr::OriginalName("STRING_TOO_SHORT")] StringTooShort = 2, - /// - /// String is too long. - /// - [pbr::OriginalName("STRING_TOO_LONG")] StringTooLong = 3, - /// - /// Value is not provided. - /// - [pbr::OriginalName("VALUE_NOT_SPECIFIED")] ValueNotSpecified = 4, - /// - /// Phone number format is invalid for region. - /// - [pbr::OriginalName("INVALID_DOMESTIC_PHONE_NUMBER_FORMAT")] InvalidDomesticPhoneNumberFormat = 5, - /// - /// String does not represent a phone number. - /// - [pbr::OriginalName("INVALID_PHONE_NUMBER")] InvalidPhoneNumber = 6, - /// - /// Phone number format is not compatible with country code. - /// - [pbr::OriginalName("PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY")] PhoneNumberNotSupportedForCountry = 7, - /// - /// Premium rate number is not allowed. - /// - [pbr::OriginalName("PREMIUM_RATE_NUMBER_NOT_ALLOWED")] PremiumRateNumberNotAllowed = 8, - /// - /// Phone number type is not allowed. - /// - [pbr::OriginalName("DISALLOWED_NUMBER_TYPE")] DisallowedNumberType = 9, - /// - /// Specified value is outside of the valid range. - /// - [pbr::OriginalName("VALUE_OUT_OF_RANGE")] ValueOutOfRange = 10, - /// - /// Call tracking is not supported in the selected country. - /// - [pbr::OriginalName("CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY")] CalltrackingNotSupportedForCountry = 11, - /// - /// Customer is not on the allow-list for call tracking. - /// - [pbr::OriginalName("CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING")] CustomerNotInAllowlistForCalltracking = 99, - /// - /// Country code is invalid. - /// - [pbr::OriginalName("INVALID_COUNTRY_CODE")] InvalidCountryCode = 13, - /// - /// The specified mobile app id is invalid. - /// - [pbr::OriginalName("INVALID_APP_ID")] InvalidAppId = 14, - /// - /// Some required field attributes are missing. - /// - [pbr::OriginalName("MISSING_ATTRIBUTES_FOR_FIELDS")] MissingAttributesForFields = 15, - /// - /// Invalid email button type for email extension. - /// - [pbr::OriginalName("INVALID_TYPE_ID")] InvalidTypeId = 16, - /// - /// Email address is invalid. - /// - [pbr::OriginalName("INVALID_EMAIL_ADDRESS")] InvalidEmailAddress = 17, - /// - /// The HTTPS URL in email extension is invalid. - /// - [pbr::OriginalName("INVALID_HTTPS_URL")] InvalidHttpsUrl = 18, - /// - /// Delivery address is missing from email extension. - /// - [pbr::OriginalName("MISSING_DELIVERY_ADDRESS")] MissingDeliveryAddress = 19, - /// - /// FeedItem scheduling start date comes after end date. - /// - [pbr::OriginalName("START_DATE_AFTER_END_DATE")] StartDateAfterEndDate = 20, - /// - /// FeedItem scheduling start time is missing. - /// - [pbr::OriginalName("MISSING_FEED_ITEM_START_TIME")] MissingFeedItemStartTime = 21, - /// - /// FeedItem scheduling end time is missing. - /// - [pbr::OriginalName("MISSING_FEED_ITEM_END_TIME")] MissingFeedItemEndTime = 22, - /// - /// Cannot compute system attributes on a FeedItem that has no FeedItemId. - /// - [pbr::OriginalName("MISSING_FEED_ITEM_ID")] MissingFeedItemId = 23, - /// - /// Call extension vanity phone numbers are not supported. - /// - [pbr::OriginalName("VANITY_PHONE_NUMBER_NOT_ALLOWED")] VanityPhoneNumberNotAllowed = 24, - /// - /// Invalid review text. - /// - [pbr::OriginalName("INVALID_REVIEW_EXTENSION_SNIPPET")] InvalidReviewExtensionSnippet = 25, - /// - /// Invalid format for numeric value in ad parameter. - /// - [pbr::OriginalName("INVALID_NUMBER_FORMAT")] InvalidNumberFormat = 26, - /// - /// Invalid format for date value in ad parameter. - /// - [pbr::OriginalName("INVALID_DATE_FORMAT")] InvalidDateFormat = 27, - /// - /// Invalid format for price value in ad parameter. - /// - [pbr::OriginalName("INVALID_PRICE_FORMAT")] InvalidPriceFormat = 28, - /// - /// Unrecognized type given for value in ad parameter. - /// - [pbr::OriginalName("UNKNOWN_PLACEHOLDER_FIELD")] UnknownPlaceholderField = 29, - /// - /// Enhanced sitelinks must have both description lines specified. - /// - [pbr::OriginalName("MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE")] MissingEnhancedSitelinkDescriptionLine = 30, - /// - /// Review source is ineligible. - /// - [pbr::OriginalName("REVIEW_EXTENSION_SOURCE_INELIGIBLE")] ReviewExtensionSourceIneligible = 31, - /// - /// Review text cannot contain hyphens or dashes. - /// - [pbr::OriginalName("HYPHENS_IN_REVIEW_EXTENSION_SNIPPET")] HyphensInReviewExtensionSnippet = 32, - /// - /// Review text cannot contain double quote characters. - /// - [pbr::OriginalName("DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET")] DoubleQuotesInReviewExtensionSnippet = 33, - /// - /// Review text cannot contain quote characters. - /// - [pbr::OriginalName("QUOTES_IN_REVIEW_EXTENSION_SNIPPET")] QuotesInReviewExtensionSnippet = 34, - /// - /// Parameters are encoded in the wrong format. - /// - [pbr::OriginalName("INVALID_FORM_ENCODED_PARAMS")] InvalidFormEncodedParams = 35, - /// - /// URL parameter name must contain only letters, numbers, underscores, and - /// dashes. - /// - [pbr::OriginalName("INVALID_URL_PARAMETER_NAME")] InvalidUrlParameterName = 36, - /// - /// Cannot find address location. - /// - [pbr::OriginalName("NO_GEOCODING_RESULT")] NoGeocodingResult = 37, - /// - /// Review extension text has source name. - /// - [pbr::OriginalName("SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT")] SourceNameInReviewExtensionText = 38, - /// - /// Some phone numbers can be shorter than usual. Some of these short numbers - /// are carrier-specific, and we disallow those in ad extensions because they - /// will not be available to all users. - /// - [pbr::OriginalName("CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED")] CarrierSpecificShortNumberNotAllowed = 39, - /// - /// Triggered when a request references a placeholder field id that does not - /// exist. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_FIELD_ID")] InvalidPlaceholderFieldId = 40, - /// - /// URL contains invalid ValueTrack tags or format. - /// - [pbr::OriginalName("INVALID_URL_TAG")] InvalidUrlTag = 41, - /// - /// Provided list exceeds acceptable size. - /// - [pbr::OriginalName("LIST_TOO_LONG")] ListTooLong = 42, - /// - /// Certain combinations of attributes aren't allowed to be specified in the - /// same feed item. - /// - [pbr::OriginalName("INVALID_ATTRIBUTES_COMBINATION")] InvalidAttributesCombination = 43, - /// - /// An attribute has the same value repeatedly. - /// - [pbr::OriginalName("DUPLICATE_VALUES")] DuplicateValues = 44, - /// - /// Advertisers can link a conversion action with a phone number to indicate - /// that sufficiently long calls forwarded to that phone number should be - /// counted as conversions of the specified type. This is an error message - /// indicating that the conversion action specified is invalid (for example, - /// the conversion action does not exist within the appropriate Google Ads - /// account, or it is a type of conversion not appropriate to phone call - /// conversions). - /// - [pbr::OriginalName("INVALID_CALL_CONVERSION_ACTION_ID")] InvalidCallConversionActionId = 45, - /// - /// Tracking template requires final url to be set. - /// - [pbr::OriginalName("CANNOT_SET_WITHOUT_FINAL_URLS")] CannotSetWithoutFinalUrls = 46, - /// - /// An app id was provided that doesn't exist in the given app store. - /// - [pbr::OriginalName("APP_ID_DOESNT_EXIST_IN_APP_STORE")] AppIdDoesntExistInAppStore = 47, - /// - /// Invalid U2 final url. - /// - [pbr::OriginalName("INVALID_FINAL_URL")] InvalidFinalUrl = 48, - /// - /// Invalid U2 tracking url. - /// - [pbr::OriginalName("INVALID_TRACKING_URL")] InvalidTrackingUrl = 49, - /// - /// Final URL should start from App download URL. - /// - [pbr::OriginalName("INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL")] InvalidFinalUrlForAppDownloadUrl = 50, - /// - /// List provided is too short. - /// - [pbr::OriginalName("LIST_TOO_SHORT")] ListTooShort = 51, - /// - /// User Action field has invalid value. - /// - [pbr::OriginalName("INVALID_USER_ACTION")] InvalidUserAction = 52, - /// - /// Type field has invalid value. - /// - [pbr::OriginalName("INVALID_TYPE_NAME")] InvalidTypeName = 53, - /// - /// Change status for event is invalid. - /// - [pbr::OriginalName("INVALID_EVENT_CHANGE_STATUS")] InvalidEventChangeStatus = 54, - /// - /// The header of a structured snippets extension is not one of the valid - /// headers. - /// - [pbr::OriginalName("INVALID_SNIPPETS_HEADER")] InvalidSnippetsHeader = 55, - /// - /// Android app link is not formatted correctly - /// - [pbr::OriginalName("INVALID_ANDROID_APP_LINK")] InvalidAndroidAppLink = 56, - /// - /// Phone number incompatible with call tracking for country. - /// - [pbr::OriginalName("NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY")] NumberTypeWithCalltrackingNotSupportedForCountry = 57, - /// - /// The input is identical to a reserved keyword - /// - [pbr::OriginalName("RESERVED_KEYWORD_OTHER")] ReservedKeywordOther = 58, - /// - /// Each option label in the message extension must be unique. - /// - [pbr::OriginalName("DUPLICATE_OPTION_LABELS")] DuplicateOptionLabels = 59, - /// - /// Each option prefill in the message extension must be unique. - /// - [pbr::OriginalName("DUPLICATE_OPTION_PREFILLS")] DuplicateOptionPrefills = 60, - /// - /// In message extensions, the number of optional labels and optional - /// prefills must be the same. - /// - [pbr::OriginalName("UNEQUAL_LIST_LENGTHS")] UnequalListLengths = 61, - /// - /// All currency codes in an ad extension must be the same. - /// - [pbr::OriginalName("INCONSISTENT_CURRENCY_CODES")] InconsistentCurrencyCodes = 62, - /// - /// Headers in price extension are not unique. - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_DUPLICATED_HEADERS")] PriceExtensionHasDuplicatedHeaders = 63, - /// - /// Header and description in an item are the same. - /// - [pbr::OriginalName("ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION")] ItemHasDuplicatedHeaderAndDescription = 64, - /// - /// Price extension has too few items. - /// - [pbr::OriginalName("PRICE_EXTENSION_HAS_TOO_FEW_ITEMS")] PriceExtensionHasTooFewItems = 65, - /// - /// The given value is not supported. - /// - [pbr::OriginalName("UNSUPPORTED_VALUE")] UnsupportedValue = 66, - /// - /// Invalid final mobile url. - /// - [pbr::OriginalName("INVALID_FINAL_MOBILE_URL")] InvalidFinalMobileUrl = 67, - /// - /// The given string value of Label contains invalid characters - /// - [pbr::OriginalName("INVALID_KEYWORDLESS_AD_RULE_LABEL")] InvalidKeywordlessAdRuleLabel = 68, - /// - /// The given URL contains value track parameters. - /// - [pbr::OriginalName("VALUE_TRACK_PARAMETER_NOT_SUPPORTED")] ValueTrackParameterNotSupported = 69, - /// - /// The given value is not supported in the selected language of an - /// extension. - /// - [pbr::OriginalName("UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE")] UnsupportedValueInSelectedLanguage = 70, - /// - /// The iOS app link is not formatted correctly. - /// - [pbr::OriginalName("INVALID_IOS_APP_LINK")] InvalidIosAppLink = 71, - /// - /// iOS app link or iOS app store id is missing. - /// - [pbr::OriginalName("MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID")] MissingIosAppLinkOrIosAppStoreId = 72, - /// - /// Promotion time is invalid. - /// - [pbr::OriginalName("PROMOTION_INVALID_TIME")] PromotionInvalidTime = 73, - /// - /// Both the percent off and money amount off fields are set. - /// - [pbr::OriginalName("PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF")] PromotionCannotSetPercentOffAndMoneyAmountOff = 74, - /// - /// Both the promotion code and orders over amount fields are set. - /// - [pbr::OriginalName("PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT")] PromotionCannotSetPromotionCodeAndOrdersOverAmount = 75, - /// - /// Too many decimal places are specified. - /// - [pbr::OriginalName("TOO_MANY_DECIMAL_PLACES_SPECIFIED")] TooManyDecimalPlacesSpecified = 76, - /// - /// Ad Customizers are present and not allowed. - /// - [pbr::OriginalName("AD_CUSTOMIZERS_NOT_ALLOWED")] AdCustomizersNotAllowed = 77, - /// - /// Language code is not valid. - /// - [pbr::OriginalName("INVALID_LANGUAGE_CODE")] InvalidLanguageCode = 78, - /// - /// Language is not supported. - /// - [pbr::OriginalName("UNSUPPORTED_LANGUAGE")] UnsupportedLanguage = 79, - /// - /// IF Function is present and not allowed. - /// - [pbr::OriginalName("IF_FUNCTION_NOT_ALLOWED")] IfFunctionNotAllowed = 80, - /// - /// Final url suffix is not valid. - /// - [pbr::OriginalName("INVALID_FINAL_URL_SUFFIX")] InvalidFinalUrlSuffix = 81, - /// - /// Final url suffix contains an invalid tag. - /// - [pbr::OriginalName("INVALID_TAG_IN_FINAL_URL_SUFFIX")] InvalidTagInFinalUrlSuffix = 82, - /// - /// Final url suffix is formatted incorrectly. - /// - [pbr::OriginalName("INVALID_FINAL_URL_SUFFIX_FORMAT")] InvalidFinalUrlSuffixFormat = 83, - /// - /// Consent for call recording, which is required for the use of call - /// extensions, was not provided by the advertiser. See - /// https://support.google.com/google-ads/answer/7412639. - /// - [pbr::OriginalName("CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED")] CustomerConsentForCallRecordingRequired = 84, - /// - /// Multiple message delivery options are set. - /// - [pbr::OriginalName("ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED")] OnlyOneDeliveryOptionIsAllowed = 85, - /// - /// No message delivery option is set. - /// - [pbr::OriginalName("NO_DELIVERY_OPTION_IS_SET")] NoDeliveryOptionIsSet = 86, - /// - /// String value of conversion reporting state field is not valid. - /// - [pbr::OriginalName("INVALID_CONVERSION_REPORTING_STATE")] InvalidConversionReportingState = 87, - /// - /// Image size is not right. - /// - [pbr::OriginalName("IMAGE_SIZE_WRONG")] ImageSizeWrong = 88, - /// - /// Email delivery is not supported in the country specified in the country - /// code field. - /// - [pbr::OriginalName("EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY")] EmailDeliveryNotAvailableInCountry = 89, - /// - /// Auto reply is not supported in the country specified in the country code - /// field. - /// - [pbr::OriginalName("AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY")] AutoReplyNotAvailableInCountry = 90, - /// - /// Invalid value specified for latitude. - /// - [pbr::OriginalName("INVALID_LATITUDE_VALUE")] InvalidLatitudeValue = 91, - /// - /// Invalid value specified for longitude. - /// - [pbr::OriginalName("INVALID_LONGITUDE_VALUE")] InvalidLongitudeValue = 92, - /// - /// Too many label fields provided. - /// - [pbr::OriginalName("TOO_MANY_LABELS")] TooManyLabels = 93, - /// - /// Invalid image url. - /// - [pbr::OriginalName("INVALID_IMAGE_URL")] InvalidImageUrl = 94, - /// - /// Latitude value is missing. - /// - [pbr::OriginalName("MISSING_LATITUDE_VALUE")] MissingLatitudeValue = 95, - /// - /// Longitude value is missing. - /// - [pbr::OriginalName("MISSING_LONGITUDE_VALUE")] MissingLongitudeValue = 96, - /// - /// Unable to find address. - /// - [pbr::OriginalName("ADDRESS_NOT_FOUND")] AddressNotFound = 97, - /// - /// Cannot target provided address. - /// - [pbr::OriginalName("ADDRESS_NOT_TARGETABLE")] AddressNotTargetable = 98, - /// - /// The specified asset ID does not exist. - /// - [pbr::OriginalName("INVALID_ASSET_ID")] InvalidAssetId = 100, - /// - /// The asset type cannot be set for the field. - /// - [pbr::OriginalName("INCOMPATIBLE_ASSET_TYPE")] IncompatibleAssetType = 101, - /// - /// The image has unexpected size. - /// - [pbr::OriginalName("IMAGE_ERROR_UNEXPECTED_SIZE")] ImageErrorUnexpectedSize = 102, - /// - /// The image aspect ratio is not allowed. - /// - [pbr::OriginalName("IMAGE_ERROR_ASPECT_RATIO_NOT_ALLOWED")] ImageErrorAspectRatioNotAllowed = 103, - /// - /// The image file is too large. - /// - [pbr::OriginalName("IMAGE_ERROR_FILE_TOO_LARGE")] ImageErrorFileTooLarge = 104, - /// - /// The image format is unsupported. - /// - [pbr::OriginalName("IMAGE_ERROR_FORMAT_NOT_ALLOWED")] ImageErrorFormatNotAllowed = 105, - /// - /// Image violates constraints without more details. - /// - [pbr::OriginalName("IMAGE_ERROR_CONSTRAINTS_VIOLATED")] ImageErrorConstraintsViolated = 106, - /// - /// An error occurred when validating image. - /// - [pbr::OriginalName("IMAGE_ERROR_SERVER_ERROR")] ImageErrorServerError = 107, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedItemValidationStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedItemValidationStatus.g.cs deleted file mode 100755 index 2c8526f20..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedItemValidationStatus.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_item_validation_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_item_validation_status.proto - public static partial class FeedItemValidationStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_item_validation_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedItemValidationStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9pdGVtX3Zh", - "bGlkYXRpb25fc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMifQocRmVlZEl0ZW1WYWxpZGF0aW9uU3RhdHVzRW51bSJdChhG", - "ZWVkSXRlbVZhbGlkYXRpb25TdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESCwoHUEVORElORxACEgsKB0lOVkFMSUQQAxIJCgVWQUxJRBAE", - "QvcBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQh1GZWVk", - "SXRlbVZhbGlkYXRpb25TdGF0dXNQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "O2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1z", - "ygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusEnum.Types.FeedItemValidationStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible validation statuses of a feed item. - /// - public sealed partial class FeedItemValidationStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedItemValidationStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedItemValidationStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationStatusEnum(FeedItemValidationStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedItemValidationStatusEnum Clone() { - return new FeedItemValidationStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedItemValidationStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedItemValidationStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedItemValidationStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedItemValidationStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible validation statuses of a feed item. - /// - public enum FeedItemValidationStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Validation pending. - /// - [pbr::OriginalName("PENDING")] Pending = 2, - /// - /// An error was found. - /// - [pbr::OriginalName("INVALID")] Invalid = 3, - /// - /// Feed item is semantically well-formed. - /// - [pbr::OriginalName("VALID")] Valid = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedLinkStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedLinkStatus.g.cs deleted file mode 100755 index 8f4ac2479..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedLinkStatus.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_link_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_link_status.proto - public static partial class FeedLinkStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_link_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedLinkStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9saW5rX3N0", - "YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIl4K", - "EkZlZWRMaW5rU3RhdHVzRW51bSJICg5GZWVkTGlua1N0YXR1cxIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAISCwoHUkVNT1ZF", - "RBADQu0BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhNG", - "ZWVkTGlua1N0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOi", - "AgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for an enum describing possible statuses of a feed link. - /// - public sealed partial class FeedLinkStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedLinkStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedLinkStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedLinkStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedLinkStatusEnum(FeedLinkStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedLinkStatusEnum Clone() { - return new FeedLinkStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedLinkStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedLinkStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedLinkStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedLinkStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a feed link. - /// - public enum FeedLinkStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Feed link is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Feed link has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedMapping.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMapping.g.cs deleted file mode 100755 index 72c223681..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMapping.g.cs +++ /dev/null @@ -1,1891 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/feed_mapping.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/feed_mapping.proto - public static partial class FeedMappingReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/feed_mapping.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedMappingReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWRfbWFw", - "cGluZy5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cxpEZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2FkX2N1c3RvbWl6", - "ZXJfcGxhY2Vob2xkZXJfZmllbGQucHJvdG8aSWdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcy9hZmZpbGlhdGVfbG9jYXRpb25fcGxhY2Vob2xkZXJf", - "ZmllbGQucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9h", - "cHBfcGxhY2Vob2xkZXJfZmllbGQucHJvdG8aO2dvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcy9jYWxsX3BsYWNlaG9sZGVyX2ZpZWxkLnByb3RvGj5n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FsbG91dF9wbGFjZWhv", - "bGRlcl9maWVsZC5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL2N1c3RvbV9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxpCZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL2RzYV9wYWdlX2ZlZWRfY3JpdGVyaW9u", - "X2ZpZWxkLnByb3RvGkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "ZWR1Y2F0aW9uX3BsYWNlaG9sZGVyX2ZpZWxkLnByb3RvGkBnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9tYXBwaW5nX2NyaXRlcmlvbl90", - "eXBlLnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVl", - "ZF9tYXBwaW5nX3N0YXR1cy5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zL2ZsaWdodF9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxo8Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2hvdGVsX3BsYWNlaG9sZGVy", - "X2ZpZWxkLnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMv", - "aW1hZ2VfcGxhY2Vob2xkZXJfZmllbGQucHJvdG8aOmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9qb2JfcGxhY2Vob2xkZXJfZmllbGQucHJvdG8a", - "PGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9sb2NhbF9wbGFjZWhv", - "bGRlcl9maWVsZC5wcm90bxpRZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2Vu", - "dW1zL2xvY2F0aW9uX2V4dGVuc2lvbl90YXJnZXRpbmdfY3JpdGVyaW9uX2Zp", - "ZWxkLnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvbG9j", - "YXRpb25fcGxhY2Vob2xkZXJfZmllbGQucHJvdG8aPmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9tZXNzYWdlX3BsYWNlaG9sZGVyX2ZpZWxkLnBy", - "b3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcGxhY2Vob2xk", - "ZXJfdHlwZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "L3ByaWNlX3BsYWNlaG9sZGVyX2ZpZWxkLnByb3RvGkBnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXMvcHJvbW90aW9uX3BsYWNlaG9sZGVyX2ZpZWxk", - "LnByb3RvGkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcmVhbF9l", - "c3RhdGVfcGxhY2Vob2xkZXJfZmllbGQucHJvdG8aP2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcy9zaXRlbGlua19wbGFjZWhvbGRlcl9maWVsZC5w", - "cm90bxpJZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3N0cnVjdHVy", - "ZWRfc25pcHBldF9wbGFjZWhvbGRlcl9maWVsZC5wcm90bxo9Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL3RyYXZlbF9wbGFjZWhvbGRlcl9maWVs", - "ZC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29v", - "Z2xlL2FwaS9yZXNvdXJjZS5wcm90byKoBQoLRmVlZE1hcHBpbmcSQwoNcmVz", - "b3VyY2VfbmFtZRgBIAEoCUIs4EEF+kEmCiRnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vRmVlZE1hcHBpbmcSOAoEZmVlZBgHIAEoCUIl4EEF+kEfCh1nb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vRmVlZEgBiAEBEmAKGGF0dHJpYnV0ZV9m", - "aWVsZF9tYXBwaW5ncxgFIAMoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMuQXR0cmlidXRlRmllbGRNYXBwaW5nQgPgQQUSXAoGc3Rh", - "dHVzGAYgASgOMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZl", - "ZWRNYXBwaW5nU3RhdHVzRW51bS5GZWVkTWFwcGluZ1N0YXR1c0ID4EEDEmQK", - "EHBsYWNlaG9sZGVyX3R5cGUYAyABKA4yQy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuUGxhY2Vob2xkZXJUeXBlRW51bS5QbGFjZWhvbGRlclR5", - "cGVCA+BBBUgAEnQKDmNyaXRlcmlvbl90eXBlGAQgASgOMlUuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLkZlZWRNYXBwaW5nQ3JpdGVyaW9uVHlw", - "ZUVudW0uRmVlZE1hcHBpbmdDcml0ZXJpb25UeXBlQgPgQQVIADpr6kFoCiRn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRmVlZE1hcHBpbmcSQGN1c3RvbWVy", - "cy97Y3VzdG9tZXJfaWR9L2ZlZWRNYXBwaW5ncy97ZmVlZF9pZH1+e2ZlZWRf", - "bWFwcGluZ19pZH1CCAoGdGFyZ2V0QgcKBV9mZWVkItMVChVBdHRyaWJ1dGVG", - "aWVsZE1hcHBpbmcSIwoRZmVlZF9hdHRyaWJ1dGVfaWQYGCABKANCA+BBBUgB", - "iAEBEhoKCGZpZWxkX2lkGBkgASgDQgPgQQNIAogBARJ0Cg5zaXRlbGlua19m", - "aWVsZBgDIAEoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5T", - "aXRlbGlua1BsYWNlaG9sZGVyRmllbGRFbnVtLlNpdGVsaW5rUGxhY2Vob2xk", - "ZXJGaWVsZEID4EEFSAASaAoKY2FsbF9maWVsZBgEIAEoDjJNLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5DYWxsUGxhY2Vob2xkZXJGaWVsZEVu", - "dW0uQ2FsbFBsYWNlaG9sZGVyRmllbGRCA+BBBUgAEmUKCWFwcF9maWVsZBgF", - "IAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5BcHBQbGFj", - "ZWhvbGRlckZpZWxkRW51bS5BcHBQbGFjZWhvbGRlckZpZWxkQgPgQQVIABJ0", - "Cg5sb2NhdGlvbl9maWVsZBgGIAEoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5Mb2NhdGlvblBsYWNlaG9sZGVyRmllbGRFbnVtLkxvY2F0", - "aW9uUGxhY2Vob2xkZXJGaWVsZEID4EEDSAASkAEKGGFmZmlsaWF0ZV9sb2Nh", - "dGlvbl9maWVsZBgHIAEoDjJnLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5BZmZpbGlhdGVMb2NhdGlvblBsYWNlaG9sZGVyRmllbGRFbnVtLkFm", - "ZmlsaWF0ZUxvY2F0aW9uUGxhY2Vob2xkZXJGaWVsZEID4EEDSAAScQoNY2Fs", - "bG91dF9maWVsZBgIIAEoDjJTLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5DYWxsb3V0UGxhY2Vob2xkZXJGaWVsZEVudW0uQ2FsbG91dFBsYWNl", - "aG9sZGVyRmllbGRCA+BBBUgAEpABChhzdHJ1Y3R1cmVkX3NuaXBwZXRfZmll", - "bGQYCSABKA4yZy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuU3Ry", - "dWN0dXJlZFNuaXBwZXRQbGFjZWhvbGRlckZpZWxkRW51bS5TdHJ1Y3R1cmVk", - "U25pcHBldFBsYWNlaG9sZGVyRmllbGRCA+BBBUgAEnEKDW1lc3NhZ2VfZmll", - "bGQYCiABKA4yUy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuTWVz", - "c2FnZVBsYWNlaG9sZGVyRmllbGRFbnVtLk1lc3NhZ2VQbGFjZWhvbGRlckZp", - "ZWxkQgPgQQVIABJrCgtwcmljZV9maWVsZBgLIAEoDjJPLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lbnVtcy5QcmljZVBsYWNlaG9sZGVyRmllbGRFbnVt", - "LlByaWNlUGxhY2Vob2xkZXJGaWVsZEID4EEFSAASdwoPcHJvbW90aW9uX2Zp", - "ZWxkGAwgASgOMlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlBy", - "b21vdGlvblBsYWNlaG9sZGVyRmllbGRFbnVtLlByb21vdGlvblBsYWNlaG9s", - "ZGVyRmllbGRCA+BBBUgAEoEBChNhZF9jdXN0b21pemVyX2ZpZWxkGA0gASgO", - "Ml0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkFkQ3VzdG9taXpl", - "clBsYWNlaG9sZGVyRmllbGRFbnVtLkFkQ3VzdG9taXplclBsYWNlaG9sZGVy", - "RmllbGRCA+BBBUgAEnsKE2RzYV9wYWdlX2ZlZWRfZmllbGQYDiABKA4yVy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuRHNhUGFnZUZlZWRDcml0", - "ZXJpb25GaWVsZEVudW0uRHNhUGFnZUZlZWRDcml0ZXJpb25GaWVsZEID4EEF", - "SAASqAEKImxvY2F0aW9uX2V4dGVuc2lvbl90YXJnZXRpbmdfZmllbGQYDyAB", - "KA4ydS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuTG9jYXRpb25F", - "eHRlbnNpb25UYXJnZXRpbmdDcml0ZXJpb25GaWVsZEVudW0uTG9jYXRpb25F", - "eHRlbnNpb25UYXJnZXRpbmdDcml0ZXJpb25GaWVsZEID4EEFSAASdwoPZWR1", - "Y2F0aW9uX2ZpZWxkGBAgASgOMlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zLkVkdWNhdGlvblBsYWNlaG9sZGVyRmllbGRFbnVtLkVkdWNhdGlv", - "blBsYWNlaG9sZGVyRmllbGRCA+BBBUgAEm4KDGZsaWdodF9maWVsZBgRIAEo", - "DjJRLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5GbGlnaHRQbGFj", - "ZWhvbGRlckZpZWxkRW51bS5GbGlnaHRQbGFjZWhvbGRlckZpZWxkQgPgQQVI", - "ABJuCgxjdXN0b21fZmllbGQYEiABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMuQ3VzdG9tUGxhY2Vob2xkZXJGaWVsZEVudW0uQ3VzdG9t", - "UGxhY2Vob2xkZXJGaWVsZEID4EEFSAASawoLaG90ZWxfZmllbGQYEyABKA4y", - "Ty5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuSG90ZWxQbGFjZWhv", - "bGRlckZpZWxkRW51bS5Ib3RlbFBsYWNlaG9sZGVyRmllbGRCA+BBBUgAEnsK", - "EXJlYWxfZXN0YXRlX2ZpZWxkGBQgASgOMlkuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zLlJlYWxFc3RhdGVQbGFjZWhvbGRlckZpZWxkRW51bS5S", - "ZWFsRXN0YXRlUGxhY2Vob2xkZXJGaWVsZEID4EEFSAASbgoMdHJhdmVsX2Zp", - "ZWxkGBUgASgOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLlRy", - "YXZlbFBsYWNlaG9sZGVyRmllbGRFbnVtLlRyYXZlbFBsYWNlaG9sZGVyRmll", - "bGRCA+BBBUgAEmsKC2xvY2FsX2ZpZWxkGBYgASgOMk8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVudW1zLkxvY2FsUGxhY2Vob2xkZXJGaWVsZEVudW0u", - "TG9jYWxQbGFjZWhvbGRlckZpZWxkQgPgQQVIABJlCglqb2JfZmllbGQYFyAB", - "KA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuSm9iUGxhY2Vo", - "b2xkZXJGaWVsZEVudW0uSm9iUGxhY2Vob2xkZXJGaWVsZEID4EEFSAASawoL", - "aW1hZ2VfZmllbGQYGiABKA4yTy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuSW1hZ2VQbGFjZWhvbGRlckZpZWxkRW51bS5JbWFnZVBsYWNlaG9s", - "ZGVyRmllbGRCA+BBBUgAQgcKBWZpZWxkQhQKEl9mZWVkX2F0dHJpYnV0ZV9p", - "ZEILCglfZmllbGRfaWRCggIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzQhBGZWVkTWFwcGluZ1Byb3RvUAFaS2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "UmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNv", - "dXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocalPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocationExtensionTargetingCriterionFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LocationPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MessagePlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PricePlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.PromotionPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.RealEstatePlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SitelinkPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.StructuredSnippetPlaceholderFieldReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.TravelPlaceholderFieldReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedMapping), global::Google.Ads.GoogleAds.V12.Resources.FeedMapping.Parser, new[]{ "ResourceName", "Feed", "AttributeFieldMappings", "Status", "PlaceholderType", "CriterionType" }, new[]{ "Target", "Feed" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.AttributeFieldMapping), global::Google.Ads.GoogleAds.V12.Resources.AttributeFieldMapping.Parser, new[]{ "FeedAttributeId", "FieldId", "SitelinkField", "CallField", "AppField", "LocationField", "AffiliateLocationField", "CalloutField", "StructuredSnippetField", "MessageField", "PriceField", "PromotionField", "AdCustomizerField", "DsaPageFeedField", "LocationExtensionTargetingField", "EducationField", "FlightField", "CustomField", "HotelField", "RealEstateField", "TravelField", "LocalField", "JobField", "ImageField" }, new[]{ "Field", "FeedAttributeId", "FieldId" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A feed mapping. - /// - public sealed partial class FeedMapping : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedMapping()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedMappingReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMapping() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMapping(FeedMapping other) : this() { - resourceName_ = other.resourceName_; - feed_ = other.feed_; - attributeFieldMappings_ = other.attributeFieldMappings_.Clone(); - status_ = other.status_; - switch (other.TargetCase) { - case TargetOneofCase.PlaceholderType: - PlaceholderType = other.PlaceholderType; - break; - case TargetOneofCase.CriterionType: - CriterionType = other.CriterionType; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMapping Clone() { - return new FeedMapping(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the feed mapping. - /// Feed mapping resource names have the form: - /// - /// `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 7; - private string feed_; - /// - /// Immutable. The feed of this feed mapping. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Feed { - get { return feed_ ?? ""; } - set { - feed_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "feed" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeed { - get { return feed_ != null; } - } - /// Clears the value of the "feed" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeed() { - feed_ = null; - } - - /// Field number for the "attribute_field_mappings" field. - public const int AttributeFieldMappingsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_attributeFieldMappings_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Resources.AttributeFieldMapping.Parser); - private readonly pbc::RepeatedField attributeFieldMappings_ = new pbc::RepeatedField(); - /// - /// Immutable. Feed attributes to field mappings. These mappings are a one-to-many - /// relationship meaning that 1 feed attribute can be used to populate - /// multiple placeholder fields, but 1 placeholder field can only draw - /// data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder - /// field can be mapped to multiple feed attributes. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AttributeFieldMappings { - get { return attributeFieldMappings_; } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified; - /// - /// Output only. Status of the feed mapping. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "placeholder_type" field. - public const int PlaceholderTypeFieldNumber = 3; - /// - /// Immutable. The placeholder type of this mapping (for example, if the mapping maps - /// feed attributes to placeholder fields). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType PlaceholderType { - get { return targetCase_ == TargetOneofCase.PlaceholderType ? (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) target_ : global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified; } - set { - target_ = value; - targetCase_ = TargetOneofCase.PlaceholderType; - } - } - - /// Field number for the "criterion_type" field. - public const int CriterionTypeFieldNumber = 4; - /// - /// Immutable. The criterion type of this mapping (for example, if the mapping maps feed - /// attributes to criterion fields). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeEnum.Types.FeedMappingCriterionType CriterionType { - get { return targetCase_ == TargetOneofCase.CriterionType ? (global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeEnum.Types.FeedMappingCriterionType) target_ : global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeEnum.Types.FeedMappingCriterionType.Unspecified; } - set { - target_ = value; - targetCase_ = TargetOneofCase.CriterionType; - } - } - - private object target_; - /// Enum of possible cases for the "target" oneof. - public enum TargetOneofCase { - None = 0, - PlaceholderType = 3, - CriterionType = 4, - } - private TargetOneofCase targetCase_ = TargetOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TargetOneofCase TargetCase { - get { return targetCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTarget() { - targetCase_ = TargetOneofCase.None; - target_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedMapping other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Feed != other.Feed) return false; - if(!attributeFieldMappings_.Equals(other.attributeFieldMappings_)) return false; - if (Status != other.Status) return false; - if (PlaceholderType != other.PlaceholderType) return false; - if (CriterionType != other.CriterionType) return false; - if (TargetCase != other.TargetCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasFeed) hash ^= Feed.GetHashCode(); - hash ^= attributeFieldMappings_.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) hash ^= Status.GetHashCode(); - if (targetCase_ == TargetOneofCase.PlaceholderType) hash ^= PlaceholderType.GetHashCode(); - if (targetCase_ == TargetOneofCase.CriterionType) hash ^= CriterionType.GetHashCode(); - hash ^= (int) targetCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (targetCase_ == TargetOneofCase.PlaceholderType) { - output.WriteRawTag(24); - output.WriteEnum((int) PlaceholderType); - } - if (targetCase_ == TargetOneofCase.CriterionType) { - output.WriteRawTag(32); - output.WriteEnum((int) CriterionType); - } - attributeFieldMappings_.WriteTo(output, _repeated_attributeFieldMappings_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(58); - output.WriteString(Feed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (targetCase_ == TargetOneofCase.PlaceholderType) { - output.WriteRawTag(24); - output.WriteEnum((int) PlaceholderType); - } - if (targetCase_ == TargetOneofCase.CriterionType) { - output.WriteRawTag(32); - output.WriteEnum((int) CriterionType); - } - attributeFieldMappings_.WriteTo(ref output, _repeated_attributeFieldMappings_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) Status); - } - if (HasFeed) { - output.WriteRawTag(58); - output.WriteString(Feed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasFeed) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Feed); - } - size += attributeFieldMappings_.CalculateSize(_repeated_attributeFieldMappings_codec); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (targetCase_ == TargetOneofCase.PlaceholderType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlaceholderType); - } - if (targetCase_ == TargetOneofCase.CriterionType) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CriterionType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedMapping other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasFeed) { - Feed = other.Feed; - } - attributeFieldMappings_.Add(other.attributeFieldMappings_); - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus.Unspecified) { - Status = other.Status; - } - switch (other.TargetCase) { - case TargetOneofCase.PlaceholderType: - PlaceholderType = other.PlaceholderType; - break; - case TargetOneofCase.CriterionType: - CriterionType = other.CriterionType; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - target_ = input.ReadEnum(); - targetCase_ = TargetOneofCase.PlaceholderType; - break; - } - case 32: { - target_ = input.ReadEnum(); - targetCase_ = TargetOneofCase.CriterionType; - break; - } - case 42: { - attributeFieldMappings_.AddEntriesFrom(input, _repeated_attributeFieldMappings_codec); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus) input.ReadEnum(); - break; - } - case 58: { - Feed = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - target_ = input.ReadEnum(); - targetCase_ = TargetOneofCase.PlaceholderType; - break; - } - case 32: { - target_ = input.ReadEnum(); - targetCase_ = TargetOneofCase.CriterionType; - break; - } - case 42: { - attributeFieldMappings_.AddEntriesFrom(ref input, _repeated_attributeFieldMappings_codec); - break; - } - case 48: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus) input.ReadEnum(); - break; - } - case 58: { - Feed = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Maps from feed attribute id to a placeholder or criterion field id. - /// - public sealed partial class AttributeFieldMapping : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AttributeFieldMapping()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedMappingReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributeFieldMapping() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributeFieldMapping(AttributeFieldMapping other) : this() { - _hasBits0 = other._hasBits0; - feedAttributeId_ = other.feedAttributeId_; - fieldId_ = other.fieldId_; - switch (other.FieldCase) { - case FieldOneofCase.SitelinkField: - SitelinkField = other.SitelinkField; - break; - case FieldOneofCase.CallField: - CallField = other.CallField; - break; - case FieldOneofCase.AppField: - AppField = other.AppField; - break; - case FieldOneofCase.LocationField: - LocationField = other.LocationField; - break; - case FieldOneofCase.AffiliateLocationField: - AffiliateLocationField = other.AffiliateLocationField; - break; - case FieldOneofCase.CalloutField: - CalloutField = other.CalloutField; - break; - case FieldOneofCase.StructuredSnippetField: - StructuredSnippetField = other.StructuredSnippetField; - break; - case FieldOneofCase.MessageField: - MessageField = other.MessageField; - break; - case FieldOneofCase.PriceField: - PriceField = other.PriceField; - break; - case FieldOneofCase.PromotionField: - PromotionField = other.PromotionField; - break; - case FieldOneofCase.AdCustomizerField: - AdCustomizerField = other.AdCustomizerField; - break; - case FieldOneofCase.DsaPageFeedField: - DsaPageFeedField = other.DsaPageFeedField; - break; - case FieldOneofCase.LocationExtensionTargetingField: - LocationExtensionTargetingField = other.LocationExtensionTargetingField; - break; - case FieldOneofCase.EducationField: - EducationField = other.EducationField; - break; - case FieldOneofCase.FlightField: - FlightField = other.FlightField; - break; - case FieldOneofCase.CustomField: - CustomField = other.CustomField; - break; - case FieldOneofCase.HotelField: - HotelField = other.HotelField; - break; - case FieldOneofCase.RealEstateField: - RealEstateField = other.RealEstateField; - break; - case FieldOneofCase.TravelField: - TravelField = other.TravelField; - break; - case FieldOneofCase.LocalField: - LocalField = other.LocalField; - break; - case FieldOneofCase.JobField: - JobField = other.JobField; - break; - case FieldOneofCase.ImageField: - ImageField = other.ImageField; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AttributeFieldMapping Clone() { - return new AttributeFieldMapping(this); - } - - /// Field number for the "feed_attribute_id" field. - public const int FeedAttributeIdFieldNumber = 24; - private long feedAttributeId_; - /// - /// Immutable. Feed attribute from which to map. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FeedAttributeId { - get { if ((_hasBits0 & 1) != 0) { return feedAttributeId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - feedAttributeId_ = value; - } - } - /// Gets whether the "feed_attribute_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFeedAttributeId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "feed_attribute_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFeedAttributeId() { - _hasBits0 &= ~1; - } - - /// Field number for the "field_id" field. - public const int FieldIdFieldNumber = 25; - private long fieldId_; - /// - /// Output only. The placeholder field ID. If a placeholder field enum is not published in - /// the current API version, then this field will be populated and the field - /// oneof will be empty. - /// This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long FieldId { - get { if ((_hasBits0 & 2) != 0) { return fieldId_; } else { return 0L; } } - set { - _hasBits0 |= 2; - fieldId_ = value; - } - } - /// Gets whether the "field_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFieldId { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "field_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFieldId() { - _hasBits0 &= ~2; - } - - /// Field number for the "sitelink_field" field. - public const int SitelinkFieldFieldNumber = 3; - /// - /// Immutable. Sitelink Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SitelinkPlaceholderFieldEnum.Types.SitelinkPlaceholderField SitelinkField { - get { return fieldCase_ == FieldOneofCase.SitelinkField ? (global::Google.Ads.GoogleAds.V12.Enums.SitelinkPlaceholderFieldEnum.Types.SitelinkPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.SitelinkPlaceholderFieldEnum.Types.SitelinkPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.SitelinkField; - } - } - - /// Field number for the "call_field" field. - public const int CallFieldFieldNumber = 4; - /// - /// Immutable. Call Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldEnum.Types.CallPlaceholderField CallField { - get { return fieldCase_ == FieldOneofCase.CallField ? (global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldEnum.Types.CallPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.CallPlaceholderFieldEnum.Types.CallPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.CallField; - } - } - - /// Field number for the "app_field" field. - public const int AppFieldFieldNumber = 5; - /// - /// Immutable. App Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldEnum.Types.AppPlaceholderField AppField { - get { return fieldCase_ == FieldOneofCase.AppField ? (global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldEnum.Types.AppPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.AppPlaceholderFieldEnum.Types.AppPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.AppField; - } - } - - /// Field number for the "location_field" field. - public const int LocationFieldFieldNumber = 6; - /// - /// Output only. Location Placeholder Fields. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocationPlaceholderFieldEnum.Types.LocationPlaceholderField LocationField { - get { return fieldCase_ == FieldOneofCase.LocationField ? (global::Google.Ads.GoogleAds.V12.Enums.LocationPlaceholderFieldEnum.Types.LocationPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.LocationPlaceholderFieldEnum.Types.LocationPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.LocationField; - } - } - - /// Field number for the "affiliate_location_field" field. - public const int AffiliateLocationFieldFieldNumber = 7; - /// - /// Output only. Affiliate Location Placeholder Fields. This field is read-only. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldEnum.Types.AffiliateLocationPlaceholderField AffiliateLocationField { - get { return fieldCase_ == FieldOneofCase.AffiliateLocationField ? (global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldEnum.Types.AffiliateLocationPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.AffiliateLocationPlaceholderFieldEnum.Types.AffiliateLocationPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.AffiliateLocationField; - } - } - - /// Field number for the "callout_field" field. - public const int CalloutFieldFieldNumber = 8; - /// - /// Immutable. Callout Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldEnum.Types.CalloutPlaceholderField CalloutField { - get { return fieldCase_ == FieldOneofCase.CalloutField ? (global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldEnum.Types.CalloutPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.CalloutPlaceholderFieldEnum.Types.CalloutPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.CalloutField; - } - } - - /// Field number for the "structured_snippet_field" field. - public const int StructuredSnippetFieldFieldNumber = 9; - /// - /// Immutable. Structured Snippet Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.StructuredSnippetPlaceholderFieldEnum.Types.StructuredSnippetPlaceholderField StructuredSnippetField { - get { return fieldCase_ == FieldOneofCase.StructuredSnippetField ? (global::Google.Ads.GoogleAds.V12.Enums.StructuredSnippetPlaceholderFieldEnum.Types.StructuredSnippetPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.StructuredSnippetPlaceholderFieldEnum.Types.StructuredSnippetPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.StructuredSnippetField; - } - } - - /// Field number for the "message_field" field. - public const int MessageFieldFieldNumber = 10; - /// - /// Immutable. Message Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MessagePlaceholderFieldEnum.Types.MessagePlaceholderField MessageField { - get { return fieldCase_ == FieldOneofCase.MessageField ? (global::Google.Ads.GoogleAds.V12.Enums.MessagePlaceholderFieldEnum.Types.MessagePlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.MessagePlaceholderFieldEnum.Types.MessagePlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.MessageField; - } - } - - /// Field number for the "price_field" field. - public const int PriceFieldFieldNumber = 11; - /// - /// Immutable. Price Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PricePlaceholderFieldEnum.Types.PricePlaceholderField PriceField { - get { return fieldCase_ == FieldOneofCase.PriceField ? (global::Google.Ads.GoogleAds.V12.Enums.PricePlaceholderFieldEnum.Types.PricePlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.PricePlaceholderFieldEnum.Types.PricePlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.PriceField; - } - } - - /// Field number for the "promotion_field" field. - public const int PromotionFieldFieldNumber = 12; - /// - /// Immutable. Promotion Placeholder Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PromotionPlaceholderFieldEnum.Types.PromotionPlaceholderField PromotionField { - get { return fieldCase_ == FieldOneofCase.PromotionField ? (global::Google.Ads.GoogleAds.V12.Enums.PromotionPlaceholderFieldEnum.Types.PromotionPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.PromotionPlaceholderFieldEnum.Types.PromotionPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.PromotionField; - } - } - - /// Field number for the "ad_customizer_field" field. - public const int AdCustomizerFieldFieldNumber = 13; - /// - /// Immutable. Ad Customizer Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldEnum.Types.AdCustomizerPlaceholderField AdCustomizerField { - get { return fieldCase_ == FieldOneofCase.AdCustomizerField ? (global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldEnum.Types.AdCustomizerPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.AdCustomizerPlaceholderFieldEnum.Types.AdCustomizerPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.AdCustomizerField; - } - } - - /// Field number for the "dsa_page_feed_field" field. - public const int DsaPageFeedFieldFieldNumber = 14; - /// - /// Immutable. Dynamic Search Ad Page Feed Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldEnum.Types.DsaPageFeedCriterionField DsaPageFeedField { - get { return fieldCase_ == FieldOneofCase.DsaPageFeedField ? (global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldEnum.Types.DsaPageFeedCriterionField) field_ : global::Google.Ads.GoogleAds.V12.Enums.DsaPageFeedCriterionFieldEnum.Types.DsaPageFeedCriterionField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.DsaPageFeedField; - } - } - - /// Field number for the "location_extension_targeting_field" field. - public const int LocationExtensionTargetingFieldFieldNumber = 15; - /// - /// Immutable. Location Target Fields. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocationExtensionTargetingCriterionFieldEnum.Types.LocationExtensionTargetingCriterionField LocationExtensionTargetingField { - get { return fieldCase_ == FieldOneofCase.LocationExtensionTargetingField ? (global::Google.Ads.GoogleAds.V12.Enums.LocationExtensionTargetingCriterionFieldEnum.Types.LocationExtensionTargetingCriterionField) field_ : global::Google.Ads.GoogleAds.V12.Enums.LocationExtensionTargetingCriterionFieldEnum.Types.LocationExtensionTargetingCriterionField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.LocationExtensionTargetingField; - } - } - - /// Field number for the "education_field" field. - public const int EducationFieldFieldNumber = 16; - /// - /// Immutable. Education Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldEnum.Types.EducationPlaceholderField EducationField { - get { return fieldCase_ == FieldOneofCase.EducationField ? (global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldEnum.Types.EducationPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.EducationPlaceholderFieldEnum.Types.EducationPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.EducationField; - } - } - - /// Field number for the "flight_field" field. - public const int FlightFieldFieldNumber = 17; - /// - /// Immutable. Flight Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldEnum.Types.FlightPlaceholderField FlightField { - get { return fieldCase_ == FieldOneofCase.FlightField ? (global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldEnum.Types.FlightPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldEnum.Types.FlightPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.FlightField; - } - } - - /// Field number for the "custom_field" field. - public const int CustomFieldFieldNumber = 18; - /// - /// Immutable. Custom Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldEnum.Types.CustomPlaceholderField CustomField { - get { return fieldCase_ == FieldOneofCase.CustomField ? (global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldEnum.Types.CustomPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.CustomPlaceholderFieldEnum.Types.CustomPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.CustomField; - } - } - - /// Field number for the "hotel_field" field. - public const int HotelFieldFieldNumber = 19; - /// - /// Immutable. Hotel Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldEnum.Types.HotelPlaceholderField HotelField { - get { return fieldCase_ == FieldOneofCase.HotelField ? (global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldEnum.Types.HotelPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldEnum.Types.HotelPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.HotelField; - } - } - - /// Field number for the "real_estate_field" field. - public const int RealEstateFieldFieldNumber = 20; - /// - /// Immutable. Real Estate Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.RealEstatePlaceholderFieldEnum.Types.RealEstatePlaceholderField RealEstateField { - get { return fieldCase_ == FieldOneofCase.RealEstateField ? (global::Google.Ads.GoogleAds.V12.Enums.RealEstatePlaceholderFieldEnum.Types.RealEstatePlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.RealEstatePlaceholderFieldEnum.Types.RealEstatePlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.RealEstateField; - } - } - - /// Field number for the "travel_field" field. - public const int TravelFieldFieldNumber = 21; - /// - /// Immutable. Travel Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.TravelPlaceholderFieldEnum.Types.TravelPlaceholderField TravelField { - get { return fieldCase_ == FieldOneofCase.TravelField ? (global::Google.Ads.GoogleAds.V12.Enums.TravelPlaceholderFieldEnum.Types.TravelPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.TravelPlaceholderFieldEnum.Types.TravelPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.TravelField; - } - } - - /// Field number for the "local_field" field. - public const int LocalFieldFieldNumber = 22; - /// - /// Immutable. Local Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.LocalPlaceholderFieldEnum.Types.LocalPlaceholderField LocalField { - get { return fieldCase_ == FieldOneofCase.LocalField ? (global::Google.Ads.GoogleAds.V12.Enums.LocalPlaceholderFieldEnum.Types.LocalPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.LocalPlaceholderFieldEnum.Types.LocalPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.LocalField; - } - } - - /// Field number for the "job_field" field. - public const int JobFieldFieldNumber = 23; - /// - /// Immutable. Job Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldEnum.Types.JobPlaceholderField JobField { - get { return fieldCase_ == FieldOneofCase.JobField ? (global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldEnum.Types.JobPlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldEnum.Types.JobPlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.JobField; - } - } - - /// Field number for the "image_field" field. - public const int ImageFieldFieldNumber = 26; - /// - /// Immutable. Image Placeholder Fields - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldEnum.Types.ImagePlaceholderField ImageField { - get { return fieldCase_ == FieldOneofCase.ImageField ? (global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldEnum.Types.ImagePlaceholderField) field_ : global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldEnum.Types.ImagePlaceholderField.Unspecified; } - set { - field_ = value; - fieldCase_ = FieldOneofCase.ImageField; - } - } - - private object field_; - /// Enum of possible cases for the "field" oneof. - public enum FieldOneofCase { - None = 0, - SitelinkField = 3, - CallField = 4, - AppField = 5, - LocationField = 6, - AffiliateLocationField = 7, - CalloutField = 8, - StructuredSnippetField = 9, - MessageField = 10, - PriceField = 11, - PromotionField = 12, - AdCustomizerField = 13, - DsaPageFeedField = 14, - LocationExtensionTargetingField = 15, - EducationField = 16, - FlightField = 17, - CustomField = 18, - HotelField = 19, - RealEstateField = 20, - TravelField = 21, - LocalField = 22, - JobField = 23, - ImageField = 26, - } - private FieldOneofCase fieldCase_ = FieldOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldOneofCase FieldCase { - get { return fieldCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearField() { - fieldCase_ = FieldOneofCase.None; - field_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AttributeFieldMapping); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AttributeFieldMapping other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (FeedAttributeId != other.FeedAttributeId) return false; - if (FieldId != other.FieldId) return false; - if (SitelinkField != other.SitelinkField) return false; - if (CallField != other.CallField) return false; - if (AppField != other.AppField) return false; - if (LocationField != other.LocationField) return false; - if (AffiliateLocationField != other.AffiliateLocationField) return false; - if (CalloutField != other.CalloutField) return false; - if (StructuredSnippetField != other.StructuredSnippetField) return false; - if (MessageField != other.MessageField) return false; - if (PriceField != other.PriceField) return false; - if (PromotionField != other.PromotionField) return false; - if (AdCustomizerField != other.AdCustomizerField) return false; - if (DsaPageFeedField != other.DsaPageFeedField) return false; - if (LocationExtensionTargetingField != other.LocationExtensionTargetingField) return false; - if (EducationField != other.EducationField) return false; - if (FlightField != other.FlightField) return false; - if (CustomField != other.CustomField) return false; - if (HotelField != other.HotelField) return false; - if (RealEstateField != other.RealEstateField) return false; - if (TravelField != other.TravelField) return false; - if (LocalField != other.LocalField) return false; - if (JobField != other.JobField) return false; - if (ImageField != other.ImageField) return false; - if (FieldCase != other.FieldCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasFeedAttributeId) hash ^= FeedAttributeId.GetHashCode(); - if (HasFieldId) hash ^= FieldId.GetHashCode(); - if (fieldCase_ == FieldOneofCase.SitelinkField) hash ^= SitelinkField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.CallField) hash ^= CallField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.AppField) hash ^= AppField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.LocationField) hash ^= LocationField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.AffiliateLocationField) hash ^= AffiliateLocationField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.CalloutField) hash ^= CalloutField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.StructuredSnippetField) hash ^= StructuredSnippetField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.MessageField) hash ^= MessageField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.PriceField) hash ^= PriceField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.PromotionField) hash ^= PromotionField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.AdCustomizerField) hash ^= AdCustomizerField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.DsaPageFeedField) hash ^= DsaPageFeedField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) hash ^= LocationExtensionTargetingField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.EducationField) hash ^= EducationField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.FlightField) hash ^= FlightField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.CustomField) hash ^= CustomField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.HotelField) hash ^= HotelField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.RealEstateField) hash ^= RealEstateField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.TravelField) hash ^= TravelField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.LocalField) hash ^= LocalField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.JobField) hash ^= JobField.GetHashCode(); - if (fieldCase_ == FieldOneofCase.ImageField) hash ^= ImageField.GetHashCode(); - hash ^= (int) fieldCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (fieldCase_ == FieldOneofCase.SitelinkField) { - output.WriteRawTag(24); - output.WriteEnum((int) SitelinkField); - } - if (fieldCase_ == FieldOneofCase.CallField) { - output.WriteRawTag(32); - output.WriteEnum((int) CallField); - } - if (fieldCase_ == FieldOneofCase.AppField) { - output.WriteRawTag(40); - output.WriteEnum((int) AppField); - } - if (fieldCase_ == FieldOneofCase.LocationField) { - output.WriteRawTag(48); - output.WriteEnum((int) LocationField); - } - if (fieldCase_ == FieldOneofCase.AffiliateLocationField) { - output.WriteRawTag(56); - output.WriteEnum((int) AffiliateLocationField); - } - if (fieldCase_ == FieldOneofCase.CalloutField) { - output.WriteRawTag(64); - output.WriteEnum((int) CalloutField); - } - if (fieldCase_ == FieldOneofCase.StructuredSnippetField) { - output.WriteRawTag(72); - output.WriteEnum((int) StructuredSnippetField); - } - if (fieldCase_ == FieldOneofCase.MessageField) { - output.WriteRawTag(80); - output.WriteEnum((int) MessageField); - } - if (fieldCase_ == FieldOneofCase.PriceField) { - output.WriteRawTag(88); - output.WriteEnum((int) PriceField); - } - if (fieldCase_ == FieldOneofCase.PromotionField) { - output.WriteRawTag(96); - output.WriteEnum((int) PromotionField); - } - if (fieldCase_ == FieldOneofCase.AdCustomizerField) { - output.WriteRawTag(104); - output.WriteEnum((int) AdCustomizerField); - } - if (fieldCase_ == FieldOneofCase.DsaPageFeedField) { - output.WriteRawTag(112); - output.WriteEnum((int) DsaPageFeedField); - } - if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) { - output.WriteRawTag(120); - output.WriteEnum((int) LocationExtensionTargetingField); - } - if (fieldCase_ == FieldOneofCase.EducationField) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) EducationField); - } - if (fieldCase_ == FieldOneofCase.FlightField) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) FlightField); - } - if (fieldCase_ == FieldOneofCase.CustomField) { - output.WriteRawTag(144, 1); - output.WriteEnum((int) CustomField); - } - if (fieldCase_ == FieldOneofCase.HotelField) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) HotelField); - } - if (fieldCase_ == FieldOneofCase.RealEstateField) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) RealEstateField); - } - if (fieldCase_ == FieldOneofCase.TravelField) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) TravelField); - } - if (fieldCase_ == FieldOneofCase.LocalField) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) LocalField); - } - if (fieldCase_ == FieldOneofCase.JobField) { - output.WriteRawTag(184, 1); - output.WriteEnum((int) JobField); - } - if (HasFeedAttributeId) { - output.WriteRawTag(192, 1); - output.WriteInt64(FeedAttributeId); - } - if (HasFieldId) { - output.WriteRawTag(200, 1); - output.WriteInt64(FieldId); - } - if (fieldCase_ == FieldOneofCase.ImageField) { - output.WriteRawTag(208, 1); - output.WriteEnum((int) ImageField); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (fieldCase_ == FieldOneofCase.SitelinkField) { - output.WriteRawTag(24); - output.WriteEnum((int) SitelinkField); - } - if (fieldCase_ == FieldOneofCase.CallField) { - output.WriteRawTag(32); - output.WriteEnum((int) CallField); - } - if (fieldCase_ == FieldOneofCase.AppField) { - output.WriteRawTag(40); - output.WriteEnum((int) AppField); - } - if (fieldCase_ == FieldOneofCase.LocationField) { - output.WriteRawTag(48); - output.WriteEnum((int) LocationField); - } - if (fieldCase_ == FieldOneofCase.AffiliateLocationField) { - output.WriteRawTag(56); - output.WriteEnum((int) AffiliateLocationField); - } - if (fieldCase_ == FieldOneofCase.CalloutField) { - output.WriteRawTag(64); - output.WriteEnum((int) CalloutField); - } - if (fieldCase_ == FieldOneofCase.StructuredSnippetField) { - output.WriteRawTag(72); - output.WriteEnum((int) StructuredSnippetField); - } - if (fieldCase_ == FieldOneofCase.MessageField) { - output.WriteRawTag(80); - output.WriteEnum((int) MessageField); - } - if (fieldCase_ == FieldOneofCase.PriceField) { - output.WriteRawTag(88); - output.WriteEnum((int) PriceField); - } - if (fieldCase_ == FieldOneofCase.PromotionField) { - output.WriteRawTag(96); - output.WriteEnum((int) PromotionField); - } - if (fieldCase_ == FieldOneofCase.AdCustomizerField) { - output.WriteRawTag(104); - output.WriteEnum((int) AdCustomizerField); - } - if (fieldCase_ == FieldOneofCase.DsaPageFeedField) { - output.WriteRawTag(112); - output.WriteEnum((int) DsaPageFeedField); - } - if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) { - output.WriteRawTag(120); - output.WriteEnum((int) LocationExtensionTargetingField); - } - if (fieldCase_ == FieldOneofCase.EducationField) { - output.WriteRawTag(128, 1); - output.WriteEnum((int) EducationField); - } - if (fieldCase_ == FieldOneofCase.FlightField) { - output.WriteRawTag(136, 1); - output.WriteEnum((int) FlightField); - } - if (fieldCase_ == FieldOneofCase.CustomField) { - output.WriteRawTag(144, 1); - output.WriteEnum((int) CustomField); - } - if (fieldCase_ == FieldOneofCase.HotelField) { - output.WriteRawTag(152, 1); - output.WriteEnum((int) HotelField); - } - if (fieldCase_ == FieldOneofCase.RealEstateField) { - output.WriteRawTag(160, 1); - output.WriteEnum((int) RealEstateField); - } - if (fieldCase_ == FieldOneofCase.TravelField) { - output.WriteRawTag(168, 1); - output.WriteEnum((int) TravelField); - } - if (fieldCase_ == FieldOneofCase.LocalField) { - output.WriteRawTag(176, 1); - output.WriteEnum((int) LocalField); - } - if (fieldCase_ == FieldOneofCase.JobField) { - output.WriteRawTag(184, 1); - output.WriteEnum((int) JobField); - } - if (HasFeedAttributeId) { - output.WriteRawTag(192, 1); - output.WriteInt64(FeedAttributeId); - } - if (HasFieldId) { - output.WriteRawTag(200, 1); - output.WriteInt64(FieldId); - } - if (fieldCase_ == FieldOneofCase.ImageField) { - output.WriteRawTag(208, 1); - output.WriteEnum((int) ImageField); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasFeedAttributeId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(FeedAttributeId); - } - if (HasFieldId) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(FieldId); - } - if (fieldCase_ == FieldOneofCase.SitelinkField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SitelinkField); - } - if (fieldCase_ == FieldOneofCase.CallField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CallField); - } - if (fieldCase_ == FieldOneofCase.AppField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppField); - } - if (fieldCase_ == FieldOneofCase.LocationField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationField); - } - if (fieldCase_ == FieldOneofCase.AffiliateLocationField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AffiliateLocationField); - } - if (fieldCase_ == FieldOneofCase.CalloutField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CalloutField); - } - if (fieldCase_ == FieldOneofCase.StructuredSnippetField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StructuredSnippetField); - } - if (fieldCase_ == FieldOneofCase.MessageField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageField); - } - if (fieldCase_ == FieldOneofCase.PriceField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PriceField); - } - if (fieldCase_ == FieldOneofCase.PromotionField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PromotionField); - } - if (fieldCase_ == FieldOneofCase.AdCustomizerField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdCustomizerField); - } - if (fieldCase_ == FieldOneofCase.DsaPageFeedField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DsaPageFeedField); - } - if (fieldCase_ == FieldOneofCase.LocationExtensionTargetingField) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationExtensionTargetingField); - } - if (fieldCase_ == FieldOneofCase.EducationField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) EducationField); - } - if (fieldCase_ == FieldOneofCase.FlightField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FlightField); - } - if (fieldCase_ == FieldOneofCase.CustomField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) CustomField); - } - if (fieldCase_ == FieldOneofCase.HotelField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) HotelField); - } - if (fieldCase_ == FieldOneofCase.RealEstateField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RealEstateField); - } - if (fieldCase_ == FieldOneofCase.TravelField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) TravelField); - } - if (fieldCase_ == FieldOneofCase.LocalField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) LocalField); - } - if (fieldCase_ == FieldOneofCase.JobField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) JobField); - } - if (fieldCase_ == FieldOneofCase.ImageField) { - size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ImageField); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AttributeFieldMapping other) { - if (other == null) { - return; - } - if (other.HasFeedAttributeId) { - FeedAttributeId = other.FeedAttributeId; - } - if (other.HasFieldId) { - FieldId = other.FieldId; - } - switch (other.FieldCase) { - case FieldOneofCase.SitelinkField: - SitelinkField = other.SitelinkField; - break; - case FieldOneofCase.CallField: - CallField = other.CallField; - break; - case FieldOneofCase.AppField: - AppField = other.AppField; - break; - case FieldOneofCase.LocationField: - LocationField = other.LocationField; - break; - case FieldOneofCase.AffiliateLocationField: - AffiliateLocationField = other.AffiliateLocationField; - break; - case FieldOneofCase.CalloutField: - CalloutField = other.CalloutField; - break; - case FieldOneofCase.StructuredSnippetField: - StructuredSnippetField = other.StructuredSnippetField; - break; - case FieldOneofCase.MessageField: - MessageField = other.MessageField; - break; - case FieldOneofCase.PriceField: - PriceField = other.PriceField; - break; - case FieldOneofCase.PromotionField: - PromotionField = other.PromotionField; - break; - case FieldOneofCase.AdCustomizerField: - AdCustomizerField = other.AdCustomizerField; - break; - case FieldOneofCase.DsaPageFeedField: - DsaPageFeedField = other.DsaPageFeedField; - break; - case FieldOneofCase.LocationExtensionTargetingField: - LocationExtensionTargetingField = other.LocationExtensionTargetingField; - break; - case FieldOneofCase.EducationField: - EducationField = other.EducationField; - break; - case FieldOneofCase.FlightField: - FlightField = other.FlightField; - break; - case FieldOneofCase.CustomField: - CustomField = other.CustomField; - break; - case FieldOneofCase.HotelField: - HotelField = other.HotelField; - break; - case FieldOneofCase.RealEstateField: - RealEstateField = other.RealEstateField; - break; - case FieldOneofCase.TravelField: - TravelField = other.TravelField; - break; - case FieldOneofCase.LocalField: - LocalField = other.LocalField; - break; - case FieldOneofCase.JobField: - JobField = other.JobField; - break; - case FieldOneofCase.ImageField: - ImageField = other.ImageField; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 24: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.SitelinkField; - break; - } - case 32: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.CallField; - break; - } - case 40: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.AppField; - break; - } - case 48: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.LocationField; - break; - } - case 56: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.AffiliateLocationField; - break; - } - case 64: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.CalloutField; - break; - } - case 72: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.StructuredSnippetField; - break; - } - case 80: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.MessageField; - break; - } - case 88: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.PriceField; - break; - } - case 96: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.PromotionField; - break; - } - case 104: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.AdCustomizerField; - break; - } - case 112: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.DsaPageFeedField; - break; - } - case 120: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.LocationExtensionTargetingField; - break; - } - case 128: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.EducationField; - break; - } - case 136: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.FlightField; - break; - } - case 144: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.CustomField; - break; - } - case 152: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.HotelField; - break; - } - case 160: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.RealEstateField; - break; - } - case 168: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.TravelField; - break; - } - case 176: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.LocalField; - break; - } - case 184: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.JobField; - break; - } - case 192: { - FeedAttributeId = input.ReadInt64(); - break; - } - case 200: { - FieldId = input.ReadInt64(); - break; - } - case 208: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.ImageField; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 24: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.SitelinkField; - break; - } - case 32: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.CallField; - break; - } - case 40: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.AppField; - break; - } - case 48: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.LocationField; - break; - } - case 56: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.AffiliateLocationField; - break; - } - case 64: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.CalloutField; - break; - } - case 72: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.StructuredSnippetField; - break; - } - case 80: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.MessageField; - break; - } - case 88: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.PriceField; - break; - } - case 96: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.PromotionField; - break; - } - case 104: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.AdCustomizerField; - break; - } - case 112: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.DsaPageFeedField; - break; - } - case 120: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.LocationExtensionTargetingField; - break; - } - case 128: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.EducationField; - break; - } - case 136: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.FlightField; - break; - } - case 144: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.CustomField; - break; - } - case 152: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.HotelField; - break; - } - case 160: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.RealEstateField; - break; - } - case 168: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.TravelField; - break; - } - case 176: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.LocalField; - break; - } - case 184: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.JobField; - break; - } - case 192: { - FeedAttributeId = input.ReadInt64(); - break; - } - case 200: { - FieldId = input.ReadInt64(); - break; - } - case 208: { - field_ = input.ReadEnum(); - fieldCase_ = FieldOneofCase.ImageField; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingCriterionType.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingCriterionType.g.cs deleted file mode 100755 index d58b1a6a0..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingCriterionType.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_mapping_criterion_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_mapping_criterion_type.proto - public static partial class FeedMappingCriterionTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_mapping_criterion_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedMappingCriterionTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9tYXBwaW5n", - "X2NyaXRlcmlvbl90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMijQEKHEZlZWRNYXBwaW5nQ3JpdGVyaW9uVHlwZUVudW0ibQoY", - "RmVlZE1hcHBpbmdDcml0ZXJpb25UeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEiAKHExPQ0FUSU9OX0VYVEVOU0lPTl9UQVJHRVRJTkcQBBIR", - "Cg1EU0FfUEFHRV9GRUVEEANC9wEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXNCHUZlZWRNYXBwaW5nQ3JpdGVyaW9uVHlwZVByb3RvUAFa", - "Q2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "RW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeEnum.Types.FeedMappingCriterionType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible criterion types for a feed mapping. - /// - public sealed partial class FeedMappingCriterionTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedMappingCriterionTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedMappingCriterionTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingCriterionTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingCriterionTypeEnum(FeedMappingCriterionTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingCriterionTypeEnum Clone() { - return new FeedMappingCriterionTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedMappingCriterionTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedMappingCriterionTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedMappingCriterionTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedMappingCriterionTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible placeholder types for a feed mapping. - /// - public enum FeedMappingCriterionType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Allows campaign targeting at locations within a location feed. - /// - [pbr::OriginalName("LOCATION_EXTENSION_TARGETING")] LocationExtensionTargeting = 4, - /// - /// Allows url targeting for your dynamic search ads within a page feed. - /// - [pbr::OriginalName("DSA_PAGE_FEED")] DsaPageFeed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingError.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingError.g.cs deleted file mode 100755 index 73c960191..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingError.g.cs +++ /dev/null @@ -1,321 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/feed_mapping_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/feed_mapping_error.proto - public static partial class FeedMappingErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/feed_mapping_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedMappingErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZlZWRfbWFwcGlu", - "Z19lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cyKyBgoURmVlZE1hcHBpbmdFcnJvckVudW0imQYKEEZlZWRNYXBwaW5nRXJy", - "b3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESHQoZSU5WQUxJRF9Q", - "TEFDRUhPTERFUl9GSUVMRBACEhsKF0lOVkFMSURfQ1JJVEVSSU9OX0ZJRUxE", - "EAMSHAoYSU5WQUxJRF9QTEFDRUhPTERFUl9UWVBFEAQSGgoWSU5WQUxJRF9D", - "UklURVJJT05fVFlQRRAFEh8KG05PX0FUVFJJQlVURV9GSUVMRF9NQVBQSU5H", - "UxAHEiAKHEZFRURfQVRUUklCVVRFX1RZUEVfTUlTTUFUQ0gQCBI4CjRDQU5O", - "T1RfT1BFUkFURV9PTl9NQVBQSU5HU19GT1JfU1lTVEVNX0dFTkVSQVRFRF9G", - "RUVEEAkSKgomTVVMVElQTEVfTUFQUElOR1NfRk9SX1BMQUNFSE9MREVSX1RZ", - "UEUQChIoCiRNVUxUSVBMRV9NQVBQSU5HU19GT1JfQ1JJVEVSSU9OX1RZUEUQ", - "CxIrCidNVUxUSVBMRV9NQVBQSU5HU19GT1JfUExBQ0VIT0xERVJfRklFTEQQ", - "DBIpCiVNVUxUSVBMRV9NQVBQSU5HU19GT1JfQ1JJVEVSSU9OX0ZJRUxEEA0S", - "JwojVU5FWFBFQ1RFRF9BVFRSSUJVVEVfRklFTERfTUFQUElOR1MQDhIuCipM", - "T0NBVElPTl9QTEFDRUhPTERFUl9PTkxZX0ZPUl9QTEFDRVNfRkVFRFMQDxIp", - "CiVDQU5OT1RfTU9ESUZZX01BUFBJTkdTX0ZPUl9UWVBFRF9GRUVEEBASOgo2", - "SU5WQUxJRF9QTEFDRUhPTERFUl9UWVBFX0ZPUl9OT05fU1lTVEVNX0dFTkVS", - "QVRFRF9GRUVEEBESOwo3SU5WQUxJRF9QTEFDRUhPTERFUl9UWVBFX0ZPUl9T", - "WVNURU1fR0VORVJBVEVEX0ZFRURfVFlQRRASEikKJUFUVFJJQlVURV9GSUVM", - "RF9NQVBQSU5HX01JU1NJTkdfRklFTEQQExIeChpMRUdBQ1lfRkVFRF9UWVBF", - "X1JFQURfT05MWRAUQvUBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVycm9yc0IVRmVlZE1hcHBpbmdFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIj", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorEnum.Types.FeedMappingError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible feed item errors. - /// - public sealed partial class FeedMappingErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedMappingErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FeedMappingErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingErrorEnum(FeedMappingErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingErrorEnum Clone() { - return new FeedMappingErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedMappingErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedMappingErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedMappingErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedMappingErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible feed item errors. - /// - public enum FeedMappingError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The given placeholder field does not exist. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_FIELD")] InvalidPlaceholderField = 2, - /// - /// The given criterion field does not exist. - /// - [pbr::OriginalName("INVALID_CRITERION_FIELD")] InvalidCriterionField = 3, - /// - /// The given placeholder type does not exist. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_TYPE")] InvalidPlaceholderType = 4, - /// - /// The given criterion type does not exist. - /// - [pbr::OriginalName("INVALID_CRITERION_TYPE")] InvalidCriterionType = 5, - /// - /// A feed mapping must contain at least one attribute field mapping. - /// - [pbr::OriginalName("NO_ATTRIBUTE_FIELD_MAPPINGS")] NoAttributeFieldMappings = 7, - /// - /// The type of the feed attribute referenced in the attribute field mapping - /// must match the type of the placeholder field. - /// - [pbr::OriginalName("FEED_ATTRIBUTE_TYPE_MISMATCH")] FeedAttributeTypeMismatch = 8, - /// - /// A feed mapping for a system generated feed cannot be operated on. - /// - [pbr::OriginalName("CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED")] CannotOperateOnMappingsForSystemGeneratedFeed = 9, - /// - /// Only one feed mapping for a placeholder type is allowed per feed or - /// customer (depending on the placeholder type). - /// - [pbr::OriginalName("MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE")] MultipleMappingsForPlaceholderType = 10, - /// - /// Only one feed mapping for a criterion type is allowed per customer. - /// - [pbr::OriginalName("MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE")] MultipleMappingsForCriterionType = 11, - /// - /// Only one feed attribute mapping for a placeholder field is allowed - /// (depending on the placeholder type). - /// - [pbr::OriginalName("MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD")] MultipleMappingsForPlaceholderField = 12, - /// - /// Only one feed attribute mapping for a criterion field is allowed - /// (depending on the criterion type). - /// - [pbr::OriginalName("MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD")] MultipleMappingsForCriterionField = 13, - /// - /// This feed mapping may not contain any explicit attribute field mappings. - /// - [pbr::OriginalName("UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS")] UnexpectedAttributeFieldMappings = 14, - /// - /// Location placeholder feed mappings can only be created for Places feeds. - /// - [pbr::OriginalName("LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS")] LocationPlaceholderOnlyForPlacesFeeds = 15, - /// - /// Mappings for typed feeds cannot be modified. - /// - [pbr::OriginalName("CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED")] CannotModifyMappingsForTypedFeed = 16, - /// - /// The given placeholder type can only be mapped to system generated feeds. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED")] InvalidPlaceholderTypeForNonSystemGeneratedFeed = 17, - /// - /// The given placeholder type cannot be mapped to a system generated feed - /// with the given type. - /// - [pbr::OriginalName("INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE")] InvalidPlaceholderTypeForSystemGeneratedFeedType = 18, - /// - /// The "field" oneof was not set in an AttributeFieldMapping. - /// - [pbr::OriginalName("ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD")] AttributeFieldMappingMissingField = 19, - /// - /// Feed is read only. - /// - [pbr::OriginalName("LEGACY_FEED_TYPE_READ_ONLY")] LegacyFeedTypeReadOnly = 20, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingResourceNames.g.cs deleted file mode 100755 index 6914ae54d..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingResourceNames.g.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the FeedMapping resource. - public sealed partial class FeedMappingName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}. - /// - CustomerFeedFeedMapping = 1, - } - - private static gax::PathTemplate s_customerFeedFeedMapping = new gax::PathTemplate("customers/{customer_id}/feedMappings/{feed_id_feed_mapping_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static FeedMappingName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new FeedMappingName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedMapping ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static FeedMappingName FromCustomerFeedFeedMapping(string customerId, string feedId, string feedMappingId) => - new FeedMappingName(ResourceNameType.CustomerFeedFeedMapping, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedMappingId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedMappingId, nameof(feedMappingId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedMapping ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}. - /// - public static string Format(string customerId, string feedId, string feedMappingId) => - FormatCustomerFeedFeedMapping(customerId, feedId, feedMappingId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedMapping ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}. - /// - public static string FormatCustomerFeedFeedMapping(string customerId, string feedId, string feedMappingId) => - s_customerFeedFeedMapping.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(feedMappingId, nameof(feedMappingId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static FeedMappingName Parse(string feedMappingName) => Parse(feedMappingName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static FeedMappingName Parse(string feedMappingName, bool allowUnparsed) => - TryParse(feedMappingName, allowUnparsed, out FeedMappingName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedMappingName, out FeedMappingName result) => - TryParse(feedMappingName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedMappingName, bool allowUnparsed, out FeedMappingName result) - { - gax::GaxPreconditions.CheckNotNull(feedMappingName, nameof(feedMappingName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeedFeedMapping.TryParseName(feedMappingName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerFeedFeedMapping(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(feedMappingName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private FeedMappingName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedId = null, string feedMappingId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedId = feedId; - FeedMappingId = feedMappingId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// The FeedMapping ID. Must not be null or empty. - public FeedMappingName(string customerId, string feedId, string feedMappingId) : this(ResourceNameType.CustomerFeedFeedMapping, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId)), feedMappingId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedMappingId, nameof(feedMappingId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// - /// The FeedMapping ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedMappingId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeedFeedMapping: return s_customerFeedFeedMapping.Expand(CustomerId, $"{FeedId}~{FeedMappingId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as FeedMappingName); - - /// - public bool Equals(FeedMappingName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(FeedMappingName a, FeedMappingName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(FeedMappingName a, FeedMappingName b) => !(a == b); - } - - public partial class FeedMapping - { - /// - /// -typed view over the resource name property. - /// - internal FeedMappingName ResourceNameAsFeedMappingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : FeedMappingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// -typed view over the resource name property. - internal FeedName FeedAsFeedName - { - get => string.IsNullOrEmpty(Feed) ? null : FeedName.Parse(Feed, allowUnparsed: true); - set => Feed = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingService.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingService.g.cs deleted file mode 100755 index 33eda20eb..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingService.g.cs +++ /dev/null @@ -1,1198 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_mapping_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/feed_mapping_service.proto - public static partial class FeedMappingServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/feed_mapping_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedMappingServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZmVlZF9tYXBw", - "aW5nX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jlc3Bv", - "bnNlX2NvbnRlbnRfdHlwZS5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3Jlc291cmNlcy9mZWVkX21hcHBpbmcucHJvdG8aHGdvb2dsZS9hcGkv", - "YW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9n", - "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jl", - "c291cmNlLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byKjAgoZTXV0", - "YXRlRmVlZE1hcHBpbmdzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID", - "4EECElAKCm9wZXJhdGlvbnMYAiADKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuRmVlZE1hcHBpbmdPcGVyYXRpb25CA+BBAhIXCg9w", - "YXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCBJq", - "ChVyZXNwb25zZV9jb250ZW50X3R5cGUYBSABKA4ySy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZW51bXMuUmVzcG9uc2VDb250ZW50VHlwZUVudW0uUmVz", - "cG9uc2VDb250ZW50VHlwZSKjAQoURmVlZE1hcHBpbmdPcGVyYXRpb24SQQoG", - "Y3JlYXRlGAEgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5GZWVkTWFwcGluZ0gAEjsKBnJlbW92ZRgDIAEoCUIp+kEmCiRnb29n", - "bGVhZHMuZ29vZ2xlYXBpcy5jb20vRmVlZE1hcHBpbmdIAEILCglvcGVyYXRp", - "b24inAEKGk11dGF0ZUZlZWRNYXBwaW5nc1Jlc3BvbnNlEjEKFXBhcnRpYWxf", - "ZmFpbHVyZV9lcnJvchgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEksKB3Jl", - "c3VsdHMYAiADKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuTXV0YXRlRmVlZE1hcHBpbmdSZXN1bHQiogEKF011dGF0ZUZlZWRNYXBw", - "aW5nUmVzdWx0EkAKDXJlc291cmNlX25hbWUYASABKAlCKfpBJgokZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0ZlZWRNYXBwaW5nEkUKDGZlZWRfbWFwcGlu", - "ZxgCIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "RmVlZE1hcHBpbmcyxwIKEkZlZWRNYXBwaW5nU2VydmljZRLpAQoSTXV0YXRl", - "RmVlZE1hcHBpbmdzEjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLk11dGF0ZUZlZWRNYXBwaW5nc1JlcXVlc3QaPS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlRmVlZE1hcHBpbmdzUmVzcG9u", - "c2UiVoLT5JMCNyIyL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2Zl", - "ZWRNYXBwaW5nczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25z", - "GkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5n", - "b29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCgwIKJWNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXNCF0ZlZWRNYXBwaW5nU2VydmljZVBy", - "b3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFH", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRz", - "XEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedMappingReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation), global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation.Parser, new[]{ "Create", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult), global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult.Parser, new[]{ "ResourceName", "FeedMapping" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [FeedMappingService.MutateFeedMappings][google.ads.googleads.v12.services.FeedMappingService.MutateFeedMappings]. - /// - public sealed partial class MutateFeedMappingsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedMappingsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedMappingServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingsRequest(MutateFeedMappingsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingsRequest Clone() { - return new MutateFeedMappingsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose feed mappings are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual feed mappings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedMappingsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedMappingsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedMappingsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, remove) on a feed mapping. - /// - public sealed partial class FeedMappingOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedMappingOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedMappingServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingOperation(FeedMappingOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingOperation Clone() { - return new FeedMappingOperation(this); - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new feed mapping. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedMapping Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.FeedMapping) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed feed mapping is - /// expected, in this format: - /// - /// `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedMappingOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedMappingOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Create, other.Create)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedMappingOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedMapping subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.FeedMapping subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a feed mapping mutate. - /// - public sealed partial class MutateFeedMappingsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedMappingsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedMappingServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingsResponse(MutateFeedMappingsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingsResponse Clone() { - return new MutateFeedMappingsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedMappingsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedMappingsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedMappingsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the feed mapping mutate. - /// - public sealed partial class MutateFeedMappingResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedMappingResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedMappingServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingResult(MutateFeedMappingResult other) : this() { - resourceName_ = other.resourceName_; - feedMapping_ = other.feedMapping_ != null ? other.feedMapping_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedMappingResult Clone() { - return new MutateFeedMappingResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed_mapping" field. - public const int FeedMappingFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.FeedMapping feedMapping_; - /// - /// The mutated feed mapping with only mutable fields after mutate. The field - /// will only be returned when response_content_type is set to - /// "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedMapping FeedMapping { - get { return feedMapping_; } - set { - feedMapping_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedMappingResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedMappingResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(FeedMapping, other.FeedMapping)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (feedMapping_ != null) hash ^= FeedMapping.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feedMapping_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FeedMapping); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feedMapping_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FeedMapping); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (feedMapping_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FeedMapping); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedMappingResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.feedMapping_ != null) { - if (feedMapping_ == null) { - FeedMapping = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - } - FeedMapping.MergeFrom(other.FeedMapping); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feedMapping_ == null) { - FeedMapping = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - } - input.ReadMessage(FeedMapping); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feedMapping_ == null) { - FeedMapping = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - } - input.ReadMessage(FeedMapping); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingServiceClient.g.cs deleted file mode 100755 index c68e611ec..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingServiceClient.g.cs +++ /dev/null @@ -1,537 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class FeedMappingServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static FeedMappingServiceSettings GetDefault() => new FeedMappingServiceSettings(); - - /// Constructs a new object with default settings. - public FeedMappingServiceSettings() - { - } - - private FeedMappingServiceSettings(FeedMappingServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateFeedMappingsSettings = existing.MutateFeedMappingsSettings; - OnCopy(existing); - } - - partial void OnCopy(FeedMappingServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// FeedMappingServiceClient.MutateFeedMappings and FeedMappingServiceClient.MutateFeedMappingsAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateFeedMappingsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public FeedMappingServiceSettings Clone() => new FeedMappingServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class FeedMappingServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public FeedMappingServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public FeedMappingServiceClientBuilder() : base(FeedMappingServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref FeedMappingServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override FeedMappingServiceClient Build() - { - FeedMappingServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private FeedMappingServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return FeedMappingServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return FeedMappingServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => FeedMappingServiceClient.ChannelPool; - } - - /// FeedMappingService client wrapper, for convenient use. - /// - /// Service to manage feed mappings. - /// - public abstract partial class FeedMappingServiceClient - { - /// - /// The default endpoint for the FeedMappingService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default FeedMappingService scopes. - /// - /// The default FeedMappingService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(FeedMappingService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new FeedMappingServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static FeedMappingServiceClient Create() => new FeedMappingServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static FeedMappingServiceClient Create(grpccore::CallInvoker callInvoker, FeedMappingServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - FeedMappingService.FeedMappingServiceClient grpcClient = new FeedMappingService.FeedMappingServiceClient(callInvoker); - return new FeedMappingServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC FeedMappingService client - public virtual FeedMappingService.FeedMappingServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedMappingsResponse MutateFeedMappings(MutateFeedMappingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedMappingsAsync(MutateFeedMappingsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedMappingsAsync(MutateFeedMappingsRequest request, st::CancellationToken cancellationToken) => - MutateFeedMappingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feed mappings are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed mappings. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedMappingsResponse MutateFeedMappings(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedMappings(new MutateFeedMappingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feed mappings are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed mappings. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedMappingsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedMappingsAsync(new MutateFeedMappingsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feed mappings are being modified. - /// - /// - /// Required. The list of operations to perform on individual feed mappings. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedMappingsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateFeedMappingsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// FeedMappingService client wrapper implementation, for convenient use. - /// - /// Service to manage feed mappings. - /// - public sealed partial class FeedMappingServiceClientImpl : FeedMappingServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateFeedMappings; - - /// - /// Constructs a client wrapper for the FeedMappingService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public FeedMappingServiceClientImpl(FeedMappingService.FeedMappingServiceClient grpcClient, FeedMappingServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - FeedMappingServiceSettings effectiveSettings = settings ?? FeedMappingServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateFeedMappings = clientHelper.BuildApiCall("MutateFeedMappings", grpcClient.MutateFeedMappingsAsync, grpcClient.MutateFeedMappings, effectiveSettings.MutateFeedMappingsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateFeedMappings); - Modify_MutateFeedMappingsApiCall(ref _callMutateFeedMappings); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateFeedMappingsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(FeedMappingService.FeedMappingServiceClient grpcClient, FeedMappingServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC FeedMappingService client - public override FeedMappingService.FeedMappingServiceClient GrpcClient { get; } - - partial void Modify_MutateFeedMappingsRequest(ref MutateFeedMappingsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateFeedMappingsResponse MutateFeedMappings(MutateFeedMappingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedMappingsRequest(ref request, ref callSettings); - return _callMutateFeedMappings.Sync(request, callSettings); - } - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateFeedMappingsAsync(MutateFeedMappingsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedMappingsRequest(ref request, ref callSettings); - return _callMutateFeedMappings.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingServiceGrpc.g.cs deleted file mode 100755 index a2cede70e..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingServiceGrpc.g.cs +++ /dev/null @@ -1,317 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_mapping_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage feed mappings. - /// - public static partial class FeedMappingService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.FeedMappingService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedMappingsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedMappingsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateFeedMappings = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateFeedMappings", - __Marshaller_google_ads_googleads_v12_services_MutateFeedMappingsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateFeedMappingsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedMappingServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of FeedMappingService - [grpc::BindServiceMethod(typeof(FeedMappingService), "BindService")] - public abstract partial class FeedMappingServiceBase - { - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateFeedMappings(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for FeedMappingService - public partial class FeedMappingServiceClient : grpc::ClientBase - { - /// Creates a new client for FeedMappingService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedMappingServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for FeedMappingService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedMappingServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedMappingServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedMappingServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsResponse MutateFeedMappings(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedMappings(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsResponse MutateFeedMappings(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateFeedMappings, null, options, request); - } - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedMappingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedMappingsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates or removes feed mappings. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedMappingError]() - /// [FieldError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [MutateError]() - /// [NotEmptyError]() - /// [OperationAccessDeniedError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedMappingsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateFeedMappings, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override FeedMappingServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new FeedMappingServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(FeedMappingServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateFeedMappings, serviceImpl.MutateFeedMappings).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, FeedMappingServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateFeedMappings, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateFeedMappings)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingServiceResourceNames.g.cs deleted file mode 100755 index 6b7c0702c..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class FeedMappingOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedMappingName RemoveAsFeedMappingName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::FeedMappingName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateFeedMappingResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedMappingName ResourceNameAsFeedMappingName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::FeedMappingName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedMappingStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedMappingStatus.g.cs deleted file mode 100755 index 2d50234dc..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedMappingStatus.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_mapping_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_mapping_status.proto - public static partial class FeedMappingStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_mapping_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedMappingStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9tYXBwaW5n", - "X3N0YXR1cy5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "ImQKFUZlZWRNYXBwaW5nU3RhdHVzRW51bSJLChFGZWVkTWFwcGluZ1N0YXR1", - "cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARILCgdFTkFCTEVEEAIS", - "CwoHUkVNT1ZFRBADQvABCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQhZGZWVkTWFwcGluZ1N0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusEnum.Types.FeedMappingStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a feed mapping. - /// - public sealed partial class FeedMappingStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedMappingStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedMappingStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingStatusEnum(FeedMappingStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedMappingStatusEnum Clone() { - return new FeedMappingStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedMappingStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedMappingStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedMappingStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedMappingStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a feed mapping. - /// - public enum FeedMappingStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Feed mapping is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Feed mapping has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedOrigin.g.cs b/Google.Ads.GoogleAds/src/V12/FeedOrigin.g.cs deleted file mode 100755 index f583c27a5..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedOrigin.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_origin.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_origin.proto - public static partial class FeedOriginReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_origin.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedOriginReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9vcmlnaW4u", - "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyJSCg5GZWVk", - "T3JpZ2luRW51bSJACgpGZWVkT3JpZ2luEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEggKBFVTRVIQAhIKCgZHT09HTEUQA0LpAQoiY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IPRmVlZE9yaWdpblByb3RvUAFa", - "Q2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "RW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedOriginEnum.Types.FeedOrigin) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible values for a feed origin. - /// - public sealed partial class FeedOriginEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedOriginEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedOriginReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedOriginEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedOriginEnum(FeedOriginEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedOriginEnum Clone() { - return new FeedOriginEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedOriginEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedOriginEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedOriginEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedOriginEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for a feed origin. - /// - public enum FeedOrigin { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The FeedAttributes for this Feed are managed by the - /// user. Users can add FeedAttributes to this Feed. - /// - [pbr::OriginalName("USER")] User = 2, - /// - /// The FeedAttributes for an GOOGLE Feed are created by Google. A feed of - /// this type is maintained by Google and will have the correct attributes - /// for the placeholder type of the feed. - /// - [pbr::OriginalName("GOOGLE")] Google = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedPlaceholderView.g.cs b/Google.Ads.GoogleAds/src/V12/FeedPlaceholderView.g.cs deleted file mode 100755 index 0acf7e6af..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedPlaceholderView.g.cs +++ /dev/null @@ -1,297 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/feed_placeholder_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/feed_placeholder_view.proto - public static partial class FeedPlaceholderViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/feed_placeholder_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedPlaceholderViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWRfcGxh", - "Y2Vob2xkZXJfdmlldy5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Bs", - "YWNlaG9sZGVyX3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZp", - "b3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iugIKE0ZlZWRQ", - "bGFjZWhvbGRlclZpZXcSSwoNcmVzb3VyY2VfbmFtZRgBIAEoCUI04EED+kEu", - "Cixnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRmVlZFBsYWNlaG9sZGVyVmll", - "dxJiChBwbGFjZWhvbGRlcl90eXBlGAIgASgOMkMuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zLlBsYWNlaG9sZGVyVHlwZUVudW0uUGxhY2Vob2xk", - "ZXJUeXBlQgPgQQM6cupBbwosZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Zl", - "ZWRQbGFjZWhvbGRlclZpZXcSP2N1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Zl", - "ZWRQbGFjZWhvbGRlclZpZXdzL3twbGFjZWhvbGRlcl90eXBlfUKKAgomY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCGEZlZWRQbGFj", - "ZWhvbGRlclZpZXdQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNv", - "dXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3Vy", - "Y2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderView), global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderView.Parser, new[]{ "ResourceName", "PlaceholderType" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A feed placeholder view. - /// - public sealed partial class FeedPlaceholderView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedPlaceholderView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedPlaceholderView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedPlaceholderView(FeedPlaceholderView other) : this() { - resourceName_ = other.resourceName_; - placeholderType_ = other.placeholderType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedPlaceholderView Clone() { - return new FeedPlaceholderView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the feed placeholder view. - /// Feed placeholder view resource names have the form: - /// - /// `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "placeholder_type" field. - public const int PlaceholderTypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType placeholderType_ = global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified; - /// - /// Output only. The placeholder type of the feed placeholder view. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType PlaceholderType { - get { return placeholderType_; } - set { - placeholderType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedPlaceholderView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedPlaceholderView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (PlaceholderType != other.PlaceholderType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (PlaceholderType != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) hash ^= PlaceholderType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PlaceholderType != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PlaceholderType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PlaceholderType != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) PlaceholderType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (PlaceholderType != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlaceholderType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedPlaceholderView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.PlaceholderType != global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType.Unspecified) { - PlaceholderType = other.PlaceholderType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - PlaceholderType = (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 16: { - PlaceholderType = (global::Google.Ads.GoogleAds.V12.Enums.PlaceholderTypeEnum.Types.PlaceholderType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedPlaceholderViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedPlaceholderViewResourceNames.g.cs deleted file mode 100755 index de6166d55..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedPlaceholderViewResourceNames.g.cs +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the FeedPlaceholderView resource. - public sealed partial class FeedPlaceholderViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/feedPlaceholderViews/{placeholder_type}. - /// - CustomerPlaceholderType = 1, - } - - private static gax::PathTemplate s_customerPlaceholderType = new gax::PathTemplate("customers/{customer_id}/feedPlaceholderViews/{placeholder_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static FeedPlaceholderViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new FeedPlaceholderViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderType ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static FeedPlaceholderViewName FromCustomerPlaceholderType(string customerId, string placeholderTypeId) => - new FeedPlaceholderViewName(ResourceNameType.CustomerPlaceholderType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), placeholderTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(placeholderTypeId, nameof(placeholderTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type}. - /// - public static string Format(string customerId, string placeholderTypeId) => - FormatCustomerPlaceholderType(customerId, placeholderTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type}. - /// - public static string FormatCustomerPlaceholderType(string customerId, string placeholderTypeId) => - s_customerPlaceholderType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(placeholderTypeId, nameof(placeholderTypeId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static FeedPlaceholderViewName Parse(string feedPlaceholderViewName) => Parse(feedPlaceholderViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static FeedPlaceholderViewName Parse(string feedPlaceholderViewName, bool allowUnparsed) => - TryParse(feedPlaceholderViewName, allowUnparsed, out FeedPlaceholderViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedPlaceholderViewName, out FeedPlaceholderViewName result) => - TryParse(feedPlaceholderViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/feedPlaceholderViews/{placeholder_type} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedPlaceholderViewName, bool allowUnparsed, out FeedPlaceholderViewName result) - { - gax::GaxPreconditions.CheckNotNull(feedPlaceholderViewName, nameof(feedPlaceholderViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerPlaceholderType.TryParseName(feedPlaceholderViewName, out resourceName)) - { - result = FromCustomerPlaceholderType(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(feedPlaceholderViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private FeedPlaceholderViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string placeholderTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - PlaceholderTypeId = placeholderTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/feedPlaceholderViews/{placeholder_type} - /// - /// The Customer ID. Must not be null or empty. - /// The PlaceholderType ID. Must not be null or empty. - public FeedPlaceholderViewName(string customerId, string placeholderTypeId) : this(ResourceNameType.CustomerPlaceholderType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), placeholderTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(placeholderTypeId, nameof(placeholderTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The PlaceholderType ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string PlaceholderTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerPlaceholderType: return s_customerPlaceholderType.Expand(CustomerId, PlaceholderTypeId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as FeedPlaceholderViewName); - - /// - public bool Equals(FeedPlaceholderViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(FeedPlaceholderViewName a, FeedPlaceholderViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(FeedPlaceholderViewName a, FeedPlaceholderViewName b) => !(a == b); - } - - public partial class FeedPlaceholderView - { - /// - /// -typed view over the resource name property. - /// - internal FeedPlaceholderViewName ResourceNameAsFeedPlaceholderViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : FeedPlaceholderViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedResourceNames.g.cs deleted file mode 100755 index 5229392e5..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedResourceNames.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Feed resource. - public sealed partial class FeedName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/feeds/{feed_id}. - CustomerFeed = 1, - } - - private static gax::PathTemplate s_customerFeed = new gax::PathTemplate("customers/{customer_id}/feeds/{feed_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided . - /// - public static FeedName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new FeedName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/feeds/{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static FeedName FromCustomerFeed(string customerId, string feedId) => - new FeedName(ResourceNameType.CustomerFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feeds/{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feeds/{feed_id}. - /// - public static string Format(string customerId, string feedId) => FormatCustomerFeed(customerId, feedId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/feeds/{feed_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/feeds/{feed_id}. - /// - public static string FormatCustomerFeed(string customerId, string feedId) => - s_customerFeed.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feeds/{feed_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static FeedName Parse(string feedName) => Parse(feedName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feeds/{feed_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static FeedName Parse(string feedName, bool allowUnparsed) => - TryParse(feedName, allowUnparsed, out FeedName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// Tries to parse the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feeds/{feed_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedName, out FeedName result) => TryParse(feedName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/feeds/{feed_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string feedName, bool allowUnparsed, out FeedName result) - { - gax::GaxPreconditions.CheckNotNull(feedName, nameof(feedName)); - gax::TemplatedResourceName resourceName; - if (s_customerFeed.TryParseName(feedName, out resourceName)) - { - result = FromCustomerFeed(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(feedName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private FeedName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string feedId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - FeedId = feedId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/feeds/{feed_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Feed ID. Must not be null or empty. - public FeedName(string customerId, string feedId) : this(ResourceNameType.CustomerFeed, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), feedId: gax::GaxPreconditions.CheckNotNullOrEmpty(feedId, nameof(feedId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Feed ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string FeedId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerFeed: return s_customerFeed.Expand(CustomerId, FeedId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as FeedName); - - /// - public bool Equals(FeedName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(FeedName a, FeedName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(FeedName a, FeedName b) => !(a == b); - } - - public partial class Feed - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedName ResourceNameAsFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::FeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedName FeedName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::FeedName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedService.g.cs b/Google.Ads.GoogleAds/src/V12/FeedService.g.cs deleted file mode 100755 index 90be51dd5..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedService.g.cs +++ /dev/null @@ -1,1303 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/feed_service.proto - public static partial class FeedServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/feed_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZmVlZF9zZXJ2", - "aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMa", - "Omdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9yZXNwb25zZV9jb250", - "ZW50X3R5cGUucHJvdG8aLWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvZmVlZC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90", - "bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRf", - "YmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8aIGdv", - "b2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGhdnb29nbGUvcnBjL3N0", - "YXR1cy5wcm90byKVAgoSTXV0YXRlRmVlZHNSZXF1ZXN0EhgKC2N1c3RvbWVy", - "X2lkGAEgASgJQgPgQQISSQoKb3BlcmF0aW9ucxgCIAMoCzIwLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5GZWVkT3BlcmF0aW9uQgPgQQIS", - "FwoPcGFydGlhbF9mYWlsdXJlGAMgASgIEhUKDXZhbGlkYXRlX29ubHkYBCAB", - "KAgSagoVcmVzcG9uc2VfY29udGVudF90eXBlGAUgASgOMksuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmVudW1zLlJlc3BvbnNlQ29udGVudFR5cGVFbnVt", - "LlJlc3BvbnNlQ29udGVudFR5cGUi+wEKDUZlZWRPcGVyYXRpb24SLwoLdXBk", - "YXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEjoK", - "BmNyZWF0ZRgBIAEoCzIoLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMuRmVlZEgAEjoKBnVwZGF0ZRgCIAEoCzIoLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMuRmVlZEgAEjQKBnJlbW92ZRgDIAEoCUIi", - "+kEfCh1nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vRmVlZEgAQgsKCW9wZXJh", - "dGlvbiKOAQoTTXV0YXRlRmVlZHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1", - "cmVfZXJyb3IYAyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJECgdyZXN1bHRz", - "GAIgAygLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUZlZWRSZXN1bHQihQEKEE11dGF0ZUZlZWRSZXN1bHQSOQoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUIi+kEfCh1nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "RmVlZBI2CgRmZWVkGAIgASgLMiguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcy5GZWVkMqQCCgtGZWVkU2VydmljZRLNAQoLTXV0YXRlRmVl", - "ZHMSNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "RmVlZHNSZXF1ZXN0GjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLk11dGF0ZUZlZWRzUmVzcG9uc2UiT4LT5JMCMCIrL3YxMi9jdXN0b21l", - "cnMve2N1c3RvbWVyX2lkPSp9L2ZlZWRzOm11dGF0ZToBKtpBFmN1c3RvbWVy", - "X2lkLG9wZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJB", - "J2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0L8AQol", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlc0IQRmVlZFNl", - "cnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogID", - "R0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29v", - "Z2xlXEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.FeedOperation), global::Google.Ads.GoogleAds.V12.Services.FeedOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateFeedsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult), global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult.Parser, new[]{ "ResourceName", "Feed" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [FeedService.MutateFeeds][google.ads.googleads.v12.services.FeedService.MutateFeeds]. - /// - public sealed partial class MutateFeedsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedsRequest(MutateFeedsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedsRequest Clone() { - return new MutateFeedsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose feeds are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.FeedOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual feeds. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on an feed. - /// - public sealed partial class FeedOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedOperation(FeedOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedOperation Clone() { - return new FeedOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// FieldMask that determines which resource fields are modified in an update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new feed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.Feed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The feed is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.Feed) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed feed is - /// expected, in this format: - /// - /// `customers/{customer_id}/feeds/{feed_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Feed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Feed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.Feed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.Feed subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for an feed mutate. - /// - public sealed partial class MutateFeedsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedsResponse(MutateFeedsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedsResponse Clone() { - return new MutateFeedsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the feed mutate. - /// - public sealed partial class MutateFeedResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateFeedResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedResult(MutateFeedResult other) : this() { - resourceName_ = other.resourceName_; - feed_ = other.feed_ != null ? other.feed_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateFeedResult Clone() { - return new MutateFeedResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Feed feed_; - /// - /// The mutated feed with only mutable fields after mutate. The field will only - /// be returned when response_content_type is set to "MUTABLE_RESOURCE". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed Feed { - get { return feed_; } - set { - feed_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateFeedResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateFeedResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (!object.Equals(Feed, other.Feed)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (feed_ != null) hash ^= Feed.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Feed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (feed_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Feed); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (feed_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Feed); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateFeedResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.feed_ != null) { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - Feed.MergeFrom(other.Feed); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - input.ReadMessage(Feed); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - input.ReadMessage(Feed); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FeedServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/FeedServiceClient.g.cs deleted file mode 100755 index 87407e781..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedServiceClient.g.cs +++ /dev/null @@ -1,572 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class FeedServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static FeedServiceSettings GetDefault() => new FeedServiceSettings(); - - /// Constructs a new object with default settings. - public FeedServiceSettings() - { - } - - private FeedServiceSettings(FeedServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateFeedsSettings = existing.MutateFeedsSettings; - OnCopy(existing); - } - - partial void OnCopy(FeedServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// FeedServiceClient.MutateFeeds and FeedServiceClient.MutateFeedsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateFeedsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public FeedServiceSettings Clone() => new FeedServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint etc. - /// - internal sealed partial class FeedServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public FeedServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public FeedServiceClientBuilder() : base(FeedServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref FeedServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override FeedServiceClient Build() - { - FeedServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private FeedServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return FeedServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return FeedServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => FeedServiceClient.ChannelPool; - } - - /// FeedService client wrapper, for convenient use. - /// - /// Service to manage feeds. - /// - public abstract partial class FeedServiceClient - { - /// - /// The default endpoint for the FeedService service, which is a host of "googleads.googleapis.com" and a port - /// of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default FeedService scopes. - /// - /// The default FeedService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(FeedService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new FeedServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static FeedServiceClient Create() => new FeedServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static FeedServiceClient Create(grpccore::CallInvoker callInvoker, FeedServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - FeedService.FeedServiceClient grpcClient = new FeedService.FeedServiceClient(callInvoker); - return new FeedServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC FeedService client - public virtual FeedService.FeedServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedsResponse MutateFeeds(MutateFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedsAsync(MutateFeedsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedsAsync(MutateFeedsRequest request, st::CancellationToken cancellationToken) => - MutateFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual feeds. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateFeedsResponse MutateFeeds(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeeds(new MutateFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual feeds. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateFeedsAsync(new MutateFeedsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose feeds are being modified. - /// - /// - /// Required. The list of operations to perform on individual feeds. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateFeedsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateFeedsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// FeedService client wrapper implementation, for convenient use. - /// - /// Service to manage feeds. - /// - public sealed partial class FeedServiceClientImpl : FeedServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateFeeds; - - /// - /// Constructs a client wrapper for the FeedService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public FeedServiceClientImpl(FeedService.FeedServiceClient grpcClient, FeedServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - FeedServiceSettings effectiveSettings = settings ?? FeedServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateFeeds = clientHelper.BuildApiCall("MutateFeeds", grpcClient.MutateFeedsAsync, grpcClient.MutateFeeds, effectiveSettings.MutateFeedsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateFeeds); - Modify_MutateFeedsApiCall(ref _callMutateFeeds); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateFeedsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(FeedService.FeedServiceClient grpcClient, FeedServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC FeedService client - public override FeedService.FeedServiceClient GrpcClient { get; } - - partial void Modify_MutateFeedsRequest(ref MutateFeedsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateFeedsResponse MutateFeeds(MutateFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedsRequest(ref request, ref callSettings); - return _callMutateFeeds.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateFeedsAsync(MutateFeedsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateFeedsRequest(ref request, ref callSettings); - return _callMutateFeeds.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/FeedServiceGrpc.g.cs deleted file mode 100755 index 0c13349d3..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedServiceGrpc.g.cs +++ /dev/null @@ -1,342 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/feed_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage feeds. - /// - public static partial class FeedService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.FeedService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateFeedsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateFeedsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateFeeds = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateFeeds", - __Marshaller_google_ads_googleads_v12_services_MutateFeedsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateFeedsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.FeedServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of FeedService - [grpc::BindServiceMethod(typeof(FeedService), "BindService")] - public abstract partial class FeedServiceBase - { - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for FeedService - public partial class FeedServiceClient : grpc::ClientBase - { - /// Creates a new client for FeedService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for FeedService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public FeedServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected FeedServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedsResponse MutateFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeeds(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateFeedsResponse MutateFeeds(global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateFeeds, null, options, request); - } - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateFeedsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes feeds. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [DatabaseError]() - /// [DistinctError]() - /// [FeedError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [IdError]() - /// [InternalError]() - /// [ListOperationError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NotEmptyError]() - /// [NullError]() - /// [OperatorError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateFeedsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateFeedsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateFeeds, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override FeedServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new FeedServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(FeedServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateFeeds, serviceImpl.MutateFeeds).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, FeedServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateFeeds, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateFeeds)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/FeedServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/FeedServiceResourceNames.g.cs deleted file mode 100755 index baa10f7dd..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedServiceResourceNames.g.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class FeedOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedName RemoveAsFeedName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::FeedName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateFeedResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::FeedName ResourceNameAsFeedName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::FeedName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/FeedStatus.g.cs b/Google.Ads.GoogleAds/src/V12/FeedStatus.g.cs deleted file mode 100755 index 7fd72bb87..000000000 --- a/Google.Ads.GoogleAds/src/V12/FeedStatus.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/feed_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/feed_status.proto - public static partial class FeedStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/feed_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FeedStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmVlZF9zdGF0dXMu", - "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyJWCg5GZWVk", - "U3RhdHVzRW51bSJECgpGZWVkU3RhdHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEgsKB0VOQUJMRUQQAhILCgdSRU1PVkVEEANC6QEKImNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCD0ZlZWRTdGF0dXNQcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FeedStatusEnum.Types.FeedStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a feed. - /// - public sealed partial class FeedStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FeedStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FeedStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedStatusEnum(FeedStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FeedStatusEnum Clone() { - return new FeedStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FeedStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FeedStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FeedStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FeedStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a feed. - /// - public enum FeedStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Feed is enabled. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// Feed has been removed. - /// - [pbr::OriginalName("REMOVED")] Removed = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FieldError.g.cs b/Google.Ads.GoogleAds/src/V12/FieldError.g.cs deleted file mode 100755 index e8f2df771..000000000 --- a/Google.Ads.GoogleAds/src/V12/FieldError.g.cs +++ /dev/null @@ -1,263 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/field_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/field_error.proto - public static partial class FieldErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/field_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FieldErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZpZWxkX2Vycm9y", - "LnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIvcBCg5G", - "aWVsZEVycm9yRW51bSLkAQoKRmllbGRFcnJvchIPCgtVTlNQRUNJRklFRBAA", - "EgsKB1VOS05PV04QARIMCghSRVFVSVJFRBACEhMKD0lNTVVUQUJMRV9GSUVM", - "RBADEhEKDUlOVkFMSURfVkFMVUUQBBIXChNWQUxVRV9NVVNUX0JFX1VOU0VU", - "EAUSGgoWUkVRVUlSRURfTk9ORU1QVFlfTElTVBAGEhsKF0ZJRUxEX0NBTk5P", - "VF9CRV9DTEVBUkVEEAcSEQoNQkxPQ0tFRF9WQUxVRRAJEh0KGUZJRUxEX0NB", - "Tl9PTkxZX0JFX0NMRUFSRUQQCkLvAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lcnJvcnNCD0ZpZWxkRXJyb3JQcm90b1ABWkVnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2Vycm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oC", - "I0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FieldErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FieldErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FieldErrorEnum.Types.FieldError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible field errors. - /// - public sealed partial class FieldErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FieldErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldErrorEnum(FieldErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldErrorEnum Clone() { - return new FieldErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FieldErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FieldErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FieldErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FieldErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible field errors. - /// - public enum FieldError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The required field was not present. - /// - [pbr::OriginalName("REQUIRED")] Required = 2, - /// - /// The field attempted to be mutated is immutable. - /// - [pbr::OriginalName("IMMUTABLE_FIELD")] ImmutableField = 3, - /// - /// The field's value is invalid. - /// - [pbr::OriginalName("INVALID_VALUE")] InvalidValue = 4, - /// - /// The field cannot be set. - /// - [pbr::OriginalName("VALUE_MUST_BE_UNSET")] ValueMustBeUnset = 5, - /// - /// The required repeated field was empty. - /// - [pbr::OriginalName("REQUIRED_NONEMPTY_LIST")] RequiredNonemptyList = 6, - /// - /// The field cannot be cleared. - /// - [pbr::OriginalName("FIELD_CANNOT_BE_CLEARED")] FieldCannotBeCleared = 7, - /// - /// The field's value is on a deny-list for this field. - /// - [pbr::OriginalName("BLOCKED_VALUE")] BlockedValue = 9, - /// - /// The field's value cannot be modified, except for clearing. - /// - [pbr::OriginalName("FIELD_CAN_ONLY_BE_CLEARED")] FieldCanOnlyBeCleared = 10, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FieldMaskError.g.cs b/Google.Ads.GoogleAds/src/V12/FieldMaskError.g.cs deleted file mode 100755 index 86ac6873d..000000000 --- a/Google.Ads.GoogleAds/src/V12/FieldMaskError.g.cs +++ /dev/null @@ -1,248 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/field_mask_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/field_mask_error.proto - public static partial class FieldMaskErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/field_mask_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FieldMaskErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ZpZWxkX21hc2tf", - "ZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMi", - "pwEKEkZpZWxkTWFza0Vycm9yRW51bSKQAQoORmllbGRNYXNrRXJyb3ISDwoL", - "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFgoSRklFTERfTUFTS19NSVNT", - "SU5HEAUSGgoWRklFTERfTUFTS19OT1RfQUxMT1dFRBAEEhMKD0ZJRUxEX05P", - "VF9GT1VORBACEhcKE0ZJRUxEX0hBU19TVUJGSUVMRFMQA0LzAQojY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCE0ZpZWxkTWFza0Vycm9y", - "UHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorEnum.Types.FieldMaskError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible field mask errors. - /// - public sealed partial class FieldMaskErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldMaskErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FieldMaskErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldMaskErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldMaskErrorEnum(FieldMaskErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FieldMaskErrorEnum Clone() { - return new FieldMaskErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FieldMaskErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FieldMaskErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FieldMaskErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FieldMaskErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible field mask errors. - /// - public enum FieldMaskError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The field mask must be provided for update operations. - /// - [pbr::OriginalName("FIELD_MASK_MISSING")] FieldMaskMissing = 5, - /// - /// The field mask must be empty for create and remove operations. - /// - [pbr::OriginalName("FIELD_MASK_NOT_ALLOWED")] FieldMaskNotAllowed = 4, - /// - /// The field mask contained an invalid field. - /// - [pbr::OriginalName("FIELD_NOT_FOUND")] FieldNotFound = 2, - /// - /// The field mask updated a field with subfields. Fields with subfields may - /// be cleared, but not updated. To fix this, the field mask should select - /// all the subfields of the invalid field. - /// - [pbr::OriginalName("FIELD_HAS_SUBFIELDS")] FieldHasSubfields = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FinalAppUrl.g.cs b/Google.Ads.GoogleAds/src/V12/FinalAppUrl.g.cs deleted file mode 100755 index 39ca588f7..000000000 --- a/Google.Ads.GoogleAds/src/V12/FinalAppUrl.g.cs +++ /dev/null @@ -1,307 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/final_app_url.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/final_app_url.proto - public static partial class FinalAppUrlReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/final_app_url.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FinalAppUrlReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2ZpbmFsX2FwcF91", - "cmwucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24aQmdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9hcHBfdXJsX29wZXJhdGlu", - "Z19zeXN0ZW1fdHlwZS5wcm90byKRAQoLRmluYWxBcHBVcmwSaAoHb3NfdHlw", - "ZRgBIAEoDjJXLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5BcHBV", - "cmxPcGVyYXRpbmdTeXN0ZW1UeXBlRW51bS5BcHBVcmxPcGVyYXRpbmdTeXN0", - "ZW1UeXBlEhAKA3VybBgDIAEoCUgAiAEBQgYKBF91cmxC8AEKI2NvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uQhBGaW5hbEFwcFVybFByb3Rv", - "UAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvY29tbW9uO2NvbW1vbqICA0dBQaoCH0dvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5Db21tb27KAh9Hb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcQ29tbW9u6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpD", - "b21tb25iBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.FinalAppUrl), global::Google.Ads.GoogleAds.V12.Common.FinalAppUrl.Parser, new[]{ "OsType", "Url" }, new[]{ "Url" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A URL for deep linking into an app for the given operating system. - /// - public sealed partial class FinalAppUrl : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FinalAppUrl()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.FinalAppUrlReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FinalAppUrl() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FinalAppUrl(FinalAppUrl other) : this() { - osType_ = other.osType_; - url_ = other.url_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FinalAppUrl Clone() { - return new FinalAppUrl(this); - } - - /// Field number for the "os_type" field. - public const int OsTypeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType osType_ = global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType.Unspecified; - /// - /// The operating system targeted by this URL. Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType OsType { - get { return osType_; } - set { - osType_ = value; - } - } - - /// Field number for the "url" field. - public const int UrlFieldNumber = 3; - private string url_; - /// - /// The app deep link URL. Deep links specify a location in an app that - /// corresponds to the content you'd like to show, and should be of the form - /// {scheme}://{host_path} - /// The scheme identifies which app to open. For your app, you can use a custom - /// scheme that starts with the app's name. The host and path specify the - /// unique location in the app where your content exists. - /// Example: "exampleapp://productid_1234". Required. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Url { - get { return url_ ?? ""; } - set { - url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUrl { - get { return url_ != null; } - } - /// Clears the value of the "url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUrl() { - url_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FinalAppUrl); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FinalAppUrl other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (OsType != other.OsType) return false; - if (Url != other.Url) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (OsType != global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType.Unspecified) hash ^= OsType.GetHashCode(); - if (HasUrl) hash ^= Url.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (OsType != global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) OsType); - } - if (HasUrl) { - output.WriteRawTag(26); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (OsType != global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) OsType); - } - if (HasUrl) { - output.WriteRawTag(26); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (OsType != global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OsType); - } - if (HasUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FinalAppUrl other) { - if (other == null) { - return; - } - if (other.OsType != global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType.Unspecified) { - OsType = other.OsType; - } - if (other.HasUrl) { - Url = other.Url; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - OsType = (global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType) input.ReadEnum(); - break; - } - case 26: { - Url = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - OsType = (global::Google.Ads.GoogleAds.V12.Enums.AppUrlOperatingSystemTypeEnum.Types.AppUrlOperatingSystemType) input.ReadEnum(); - break; - } - case 26: { - Url = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FlightPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/FlightPlaceholderField.g.cs deleted file mode 100755 index 94213c6ab..000000000 --- a/Google.Ads.GoogleAds/src/V12/FlightPlaceholderField.g.cs +++ /dev/null @@ -1,327 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/flight_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/flight_placeholder_field.proto - public static partial class FlightPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/flight_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FlightPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZmxpZ2h0X3BsYWNl", - "aG9sZGVyX2ZpZWxkLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMisgMKGkZsaWdodFBsYWNlaG9sZGVyRmllbGRFbnVtIpMDChZGbGln", - "aHRQbGFjZWhvbGRlckZpZWxkEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEhIKDkRFU1RJTkFUSU9OX0lEEAISDQoJT1JJR0lOX0lEEAMSFgoSRkxJ", - "R0hUX0RFU0NSSVBUSU9OEAQSDwoLT1JJR0lOX05BTUUQBRIUChBERVNUSU5B", - "VElPTl9OQU1FEAYSEAoMRkxJR0hUX1BSSUNFEAcSEwoPRk9STUFUVEVEX1BS", - "SUNFEAgSFQoRRkxJR0hUX1NBTEVfUFJJQ0UQCRIYChRGT1JNQVRURURfU0FM", - "RV9QUklDRRAKEg0KCUlNQUdFX1VSTBALEg4KCkZJTkFMX1VSTFMQDBIVChFG", - "SU5BTF9NT0JJTEVfVVJMUxANEhAKDFRSQUNLSU5HX1VSTBAOEhQKEEFORFJP", - "SURfQVBQX0xJTksQDxIbChdTSU1JTEFSX0RFU1RJTkFUSU9OX0lEUxAQEhAK", - "DElPU19BUFBfTElOSxAREhQKEElPU19BUFBfU1RPUkVfSUQQEkL2AQoiY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IcRmxpZ2h0c1BsYWNl", - "aG9sZGVyRmllbGRQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogID", - "R0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldEnum.Types.FlightPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Flight placeholder fields. - /// For more information about dynamic remarketing feeds, see - /// https://support.google.com/google-ads/answer/6053288. - /// - public sealed partial class FlightPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlightPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FlightPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlightPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlightPlaceholderFieldEnum(FlightPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FlightPlaceholderFieldEnum Clone() { - return new FlightPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FlightPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FlightPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FlightPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FlightPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Flight placeholder fields. - /// - public enum FlightPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. Required. Destination id. Example: PAR, LON. - /// For feed items that only have destination id, destination id must be a - /// unique key. For feed items that have both destination id and origin id, - /// then the combination must be a unique key. - /// - [pbr::OriginalName("DESTINATION_ID")] DestinationId = 2, - /// - /// Data Type: STRING. Origin id. Example: PAR, LON. - /// Optional. Combination of destination id and origin id must be unique per - /// offer. - /// - [pbr::OriginalName("ORIGIN_ID")] OriginId = 3, - /// - /// Data Type: STRING. Required. Main headline with product name to be shown - /// in dynamic ad. - /// - [pbr::OriginalName("FLIGHT_DESCRIPTION")] FlightDescription = 4, - /// - /// Data Type: STRING. Shorter names are recommended. - /// - [pbr::OriginalName("ORIGIN_NAME")] OriginName = 5, - /// - /// Data Type: STRING. Shorter names are recommended. - /// - [pbr::OriginalName("DESTINATION_NAME")] DestinationName = 6, - /// - /// Data Type: STRING. Price to be shown in the ad. - /// Example: "100.00 USD" - /// - [pbr::OriginalName("FLIGHT_PRICE")] FlightPrice = 7, - /// - /// Data Type: STRING. Formatted price to be shown in the ad. - /// Example: "Starting at $100.00 USD", "$80 - $100" - /// - [pbr::OriginalName("FORMATTED_PRICE")] FormattedPrice = 8, - /// - /// Data Type: STRING. Sale price to be shown in the ad. - /// Example: "80.00 USD" - /// - [pbr::OriginalName("FLIGHT_SALE_PRICE")] FlightSalePrice = 9, - /// - /// Data Type: STRING. Formatted sale price to be shown in the ad. - /// Example: "On sale for $80.00", "$60 - $80" - /// - [pbr::OriginalName("FORMATTED_SALE_PRICE")] FormattedSalePrice = 10, - /// - /// Data Type: URL. Image to be displayed in the ad. - /// - [pbr::OriginalName("IMAGE_URL")] ImageUrl = 11, - /// - /// Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded - /// URLs. User will be redirected to these URLs when they click on an ad, or - /// when they click on a specific flight for ads that show multiple - /// flights. - /// - [pbr::OriginalName("FINAL_URLS")] FinalUrls = 12, - /// - /// Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - /// URLs. - /// - [pbr::OriginalName("FINAL_MOBILE_URLS")] FinalMobileUrls = 13, - /// - /// Data Type: URL. Tracking template for the ad when using Upgraded URLs. - /// - [pbr::OriginalName("TRACKING_URL")] TrackingUrl = 14, - /// - /// Data Type: STRING. Android app link. Must be formatted as: - /// android-app://{package_id}/{scheme}/{host_path}. - /// The components are defined as follows: - /// package_id: app ID as specified in Google Play. - /// scheme: the scheme to pass to the application. Can be HTTP, or a custom - /// scheme. - /// host_path: identifies the specific content within your application. - /// - [pbr::OriginalName("ANDROID_APP_LINK")] AndroidAppLink = 15, - /// - /// Data Type: STRING_LIST. List of recommended destination IDs to show - /// together with this item. - /// - [pbr::OriginalName("SIMILAR_DESTINATION_IDS")] SimilarDestinationIds = 16, - /// - /// Data Type: STRING. iOS app link. - /// - [pbr::OriginalName("IOS_APP_LINK")] IosAppLink = 17, - /// - /// Data Type: INT64. iOS app store ID. - /// - [pbr::OriginalName("IOS_APP_STORE_ID")] IosAppStoreId = 18, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FrequencyCap.g.cs b/Google.Ads.GoogleAds/src/V12/FrequencyCap.g.cs deleted file mode 100755 index a8cbfd5b7..000000000 --- a/Google.Ads.GoogleAds/src/V12/FrequencyCap.g.cs +++ /dev/null @@ -1,657 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/frequency_cap.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/frequency_cap.proto - public static partial class FrequencyCapReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/frequency_cap.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FrequencyCapReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2ZyZXF1ZW5jeV9j", - "YXAucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24aPWdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9mcmVxdWVuY3lfY2FwX2V2", - "ZW50X3R5cGUucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cy9mcmVxdWVuY3lfY2FwX2xldmVsLnByb3RvGjxnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvZW51bXMvZnJlcXVlbmN5X2NhcF90aW1lX3VuaXQucHJvdG8i", - "bAoRRnJlcXVlbmN5Q2FwRW50cnkSPQoDa2V5GAEgASgLMjAuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmNvbW1vbi5GcmVxdWVuY3lDYXBLZXkSEAoDY2Fw", - "GAMgASgFSACIAQFCBgoEX2NhcCLaAgoPRnJlcXVlbmN5Q2FwS2V5ElYKBWxl", - "dmVsGAEgASgOMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLkZy", - "ZXF1ZW5jeUNhcExldmVsRW51bS5GcmVxdWVuY3lDYXBMZXZlbBJjCgpldmVu", - "dF90eXBlGAMgASgOMk8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LkZyZXF1ZW5jeUNhcEV2ZW50VHlwZUVudW0uRnJlcXVlbmN5Q2FwRXZlbnRU", - "eXBlEmAKCXRpbWVfdW5pdBgCIAEoDjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5lbnVtcy5GcmVxdWVuY3lDYXBUaW1lVW5pdEVudW0uRnJlcXVlbmN5", - "Q2FwVGltZVVuaXQSGAoLdGltZV9sZW5ndGgYBSABKAVIAIgBAUIOCgxfdGlt", - "ZV9sZW5ndGhC8QEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29t", - "bW9uQhFGcmVxdWVuY3lDYXBQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbjtj", - "b21tb26iAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuQ29tbW9u", - "ygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXENvbW1vbuoCI0dvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6Q29tbW9uYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.FrequencyCapEntry), global::Google.Ads.GoogleAds.V12.Common.FrequencyCapEntry.Parser, new[]{ "Key", "Cap" }, new[]{ "Cap" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.FrequencyCapKey), global::Google.Ads.GoogleAds.V12.Common.FrequencyCapKey.Parser, new[]{ "Level", "EventType", "TimeUnit", "TimeLength" }, new[]{ "TimeLength" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A rule specifying the maximum number of times an ad (or some set of ads) can - /// be shown to a user over a particular time period. - /// - public sealed partial class FrequencyCapEntry : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrequencyCapEntry()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.FrequencyCapReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapEntry() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapEntry(FrequencyCapEntry other) : this() { - _hasBits0 = other._hasBits0; - key_ = other.key_ != null ? other.key_.Clone() : null; - cap_ = other.cap_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapEntry Clone() { - return new FrequencyCapEntry(this); - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.FrequencyCapKey key_; - /// - /// The key of a particular frequency cap. There can be no more - /// than one frequency cap with the same key. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.FrequencyCapKey Key { - get { return key_; } - set { - key_ = value; - } - } - - /// Field number for the "cap" field. - public const int CapFieldNumber = 3; - private int cap_; - /// - /// Maximum number of events allowed during the time range by this cap. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Cap { - get { if ((_hasBits0 & 1) != 0) { return cap_; } else { return 0; } } - set { - _hasBits0 |= 1; - cap_ = value; - } - } - /// Gets whether the "cap" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCap { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "cap" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCap() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FrequencyCapEntry); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FrequencyCapEntry other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(Key, other.Key)) return false; - if (Cap != other.Cap) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (key_ != null) hash ^= Key.GetHashCode(); - if (HasCap) hash ^= Cap.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (key_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Key); - } - if (HasCap) { - output.WriteRawTag(24); - output.WriteInt32(Cap); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (key_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Key); - } - if (HasCap) { - output.WriteRawTag(24); - output.WriteInt32(Cap); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (key_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key); - } - if (HasCap) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cap); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FrequencyCapEntry other) { - if (other == null) { - return; - } - if (other.key_ != null) { - if (key_ == null) { - Key = new global::Google.Ads.GoogleAds.V12.Common.FrequencyCapKey(); - } - Key.MergeFrom(other.Key); - } - if (other.HasCap) { - Cap = other.Cap; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (key_ == null) { - Key = new global::Google.Ads.GoogleAds.V12.Common.FrequencyCapKey(); - } - input.ReadMessage(Key); - break; - } - case 24: { - Cap = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (key_ == null) { - Key = new global::Google.Ads.GoogleAds.V12.Common.FrequencyCapKey(); - } - input.ReadMessage(Key); - break; - } - case 24: { - Cap = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// A group of fields used as keys for a frequency cap. - /// There can be no more than one frequency cap with the same key. - /// - public sealed partial class FrequencyCapKey : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrequencyCapKey()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.FrequencyCapReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapKey() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapKey(FrequencyCapKey other) : this() { - _hasBits0 = other._hasBits0; - level_ = other.level_; - eventType_ = other.eventType_; - timeUnit_ = other.timeUnit_; - timeLength_ = other.timeLength_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapKey Clone() { - return new FrequencyCapKey(this); - } - - /// Field number for the "level" field. - public const int LevelFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel level_ = global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel.Unspecified; - /// - /// The level on which the cap is to be applied (for example, ad group ad, ad - /// group). The cap is applied to all the entities of this level. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel Level { - get { return level_; } - set { - level_ = value; - } - } - - /// Field number for the "event_type" field. - public const int EventTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType eventType_ = global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType.Unspecified; - /// - /// The type of event that the cap applies to (for example, impression). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType EventType { - get { return eventType_; } - set { - eventType_ = value; - } - } - - /// Field number for the "time_unit" field. - public const int TimeUnitFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit timeUnit_ = global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit.Unspecified; - /// - /// Unit of time the cap is defined at (for example, day, week). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit TimeUnit { - get { return timeUnit_; } - set { - timeUnit_ = value; - } - } - - /// Field number for the "time_length" field. - public const int TimeLengthFieldNumber = 5; - private int timeLength_; - /// - /// Number of time units the cap lasts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int TimeLength { - get { if ((_hasBits0 & 1) != 0) { return timeLength_; } else { return 0; } } - set { - _hasBits0 |= 1; - timeLength_ = value; - } - } - /// Gets whether the "time_length" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTimeLength { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "time_length" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTimeLength() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FrequencyCapKey); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FrequencyCapKey other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Level != other.Level) return false; - if (EventType != other.EventType) return false; - if (TimeUnit != other.TimeUnit) return false; - if (TimeLength != other.TimeLength) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Level != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel.Unspecified) hash ^= Level.GetHashCode(); - if (EventType != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType.Unspecified) hash ^= EventType.GetHashCode(); - if (TimeUnit != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit.Unspecified) hash ^= TimeUnit.GetHashCode(); - if (HasTimeLength) hash ^= TimeLength.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Level != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Level); - } - if (TimeUnit != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) TimeUnit); - } - if (EventType != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) EventType); - } - if (HasTimeLength) { - output.WriteRawTag(40); - output.WriteInt32(TimeLength); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Level != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Level); - } - if (TimeUnit != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) TimeUnit); - } - if (EventType != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) EventType); - } - if (HasTimeLength) { - output.WriteRawTag(40); - output.WriteInt32(TimeLength); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Level != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level); - } - if (EventType != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EventType); - } - if (TimeUnit != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TimeUnit); - } - if (HasTimeLength) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeLength); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FrequencyCapKey other) { - if (other == null) { - return; - } - if (other.Level != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel.Unspecified) { - Level = other.Level; - } - if (other.EventType != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType.Unspecified) { - EventType = other.EventType; - } - if (other.TimeUnit != global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit.Unspecified) { - TimeUnit = other.TimeUnit; - } - if (other.HasTimeLength) { - TimeLength = other.TimeLength; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel) input.ReadEnum(); - break; - } - case 16: { - TimeUnit = (global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit) input.ReadEnum(); - break; - } - case 24: { - EventType = (global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType) input.ReadEnum(); - break; - } - case 40: { - TimeLength = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Level = (global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel) input.ReadEnum(); - break; - } - case 16: { - TimeUnit = (global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit) input.ReadEnum(); - break; - } - case 24: { - EventType = (global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType) input.ReadEnum(); - break; - } - case 40: { - TimeLength = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FrequencyCapEventType.g.cs b/Google.Ads.GoogleAds/src/V12/FrequencyCapEventType.g.cs deleted file mode 100755 index 460436e65..000000000 --- a/Google.Ads.GoogleAds/src/V12/FrequencyCapEventType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/frequency_cap_event_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/frequency_cap_event_type.proto - public static partial class FrequencyCapEventTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/frequency_cap_event_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FrequencyCapEventTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZnJlcXVlbmN5X2Nh", - "cF9ldmVudF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMicgoZRnJlcXVlbmN5Q2FwRXZlbnRUeXBlRW51bSJVChVGcmVxdWVu", - "Y3lDYXBFdmVudFR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "DgoKSU1QUkVTU0lPThACEg4KClZJREVPX1ZJRVcQA0L0AQoiY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IaRnJlcXVlbmN5Q2FwRXZlbnRU", - "eXBlUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeEnum.Types.FrequencyCapEventType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of event that the cap applies to. - /// - public sealed partial class FrequencyCapEventTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrequencyCapEventTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapEventTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapEventTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapEventTypeEnum(FrequencyCapEventTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapEventTypeEnum Clone() { - return new FrequencyCapEventTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FrequencyCapEventTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FrequencyCapEventTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FrequencyCapEventTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FrequencyCapEventTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of event that the cap applies to (for example, impression). - /// - public enum FrequencyCapEventType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The cap applies on ad impressions. - /// - [pbr::OriginalName("IMPRESSION")] Impression = 2, - /// - /// The cap applies on video ad views. - /// - [pbr::OriginalName("VIDEO_VIEW")] VideoView = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FrequencyCapLevel.g.cs b/Google.Ads.GoogleAds/src/V12/FrequencyCapLevel.g.cs deleted file mode 100755 index 14c0c4a01..000000000 --- a/Google.Ads.GoogleAds/src/V12/FrequencyCapLevel.g.cs +++ /dev/null @@ -1,242 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/frequency_cap_level.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/frequency_cap_level.proto - public static partial class FrequencyCapLevelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/frequency_cap_level.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FrequencyCapLevelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZnJlcXVlbmN5X2Nh", - "cF9sZXZlbC5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "IncKFUZyZXF1ZW5jeUNhcExldmVsRW51bSJeChFGcmVxdWVuY3lDYXBMZXZl", - "bBIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIPCgtBRF9HUk9VUF9B", - "RBACEgwKCEFEX0dST1VQEAMSDAoIQ0FNUEFJR04QBELwAQoiY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IWRnJlcXVlbmN5Q2FwTGV2ZWxQ", - "cm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", - "L2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpF", - "bnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum), global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelEnum.Types.FrequencyCapLevel) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the level on which the cap is to be applied. - /// - public sealed partial class FrequencyCapLevelEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrequencyCapLevelEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapLevelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapLevelEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapLevelEnum(FrequencyCapLevelEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapLevelEnum Clone() { - return new FrequencyCapLevelEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FrequencyCapLevelEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FrequencyCapLevelEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FrequencyCapLevelEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FrequencyCapLevelEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The level on which the cap is to be applied (e.g ad group ad, ad group). - /// Cap is applied to all the resources of this level. - /// - public enum FrequencyCapLevel { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The cap is applied at the ad group ad level. - /// - [pbr::OriginalName("AD_GROUP_AD")] AdGroupAd = 2, - /// - /// The cap is applied at the ad group level. - /// - [pbr::OriginalName("AD_GROUP")] AdGroup = 3, - /// - /// The cap is applied at the campaign level. - /// - [pbr::OriginalName("CAMPAIGN")] Campaign = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FrequencyCapTimeUnit.g.cs b/Google.Ads.GoogleAds/src/V12/FrequencyCapTimeUnit.g.cs deleted file mode 100755 index 8aa4b46c8..000000000 --- a/Google.Ads.GoogleAds/src/V12/FrequencyCapTimeUnit.g.cs +++ /dev/null @@ -1,241 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/frequency_cap_time_unit.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/frequency_cap_time_unit.proto - public static partial class FrequencyCapTimeUnitReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/frequency_cap_time_unit.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FrequencyCapTimeUnitReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZnJlcXVlbmN5X2Nh", - "cF90aW1lX3VuaXQucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJuChhGcmVxdWVuY3lDYXBUaW1lVW5pdEVudW0iUgoURnJlcXVlbmN5", - "Q2FwVGltZVVuaXQSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESBwoD", - "REFZEAISCAoEV0VFSxADEgkKBU1PTlRIEARC8wEKImNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZW51bXNCGUZyZXF1ZW5jeUNhcFRpbWVVbml0UHJv", - "dG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51", - "bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum), global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitEnum.Types.FrequencyCapTimeUnit) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the unit of time the cap is defined at. - /// - public sealed partial class FrequencyCapTimeUnitEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrequencyCapTimeUnitEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.FrequencyCapTimeUnitReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapTimeUnitEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapTimeUnitEnum(FrequencyCapTimeUnitEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrequencyCapTimeUnitEnum Clone() { - return new FrequencyCapTimeUnitEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FrequencyCapTimeUnitEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FrequencyCapTimeUnitEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FrequencyCapTimeUnitEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FrequencyCapTimeUnitEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Unit of time the cap is defined at (for example, day, week). - /// - public enum FrequencyCapTimeUnit { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The cap would define limit per one day. - /// - [pbr::OriginalName("DAY")] Day = 2, - /// - /// The cap would define limit per one week. - /// - [pbr::OriginalName("WEEK")] Week = 3, - /// - /// The cap would define limit per one month. - /// - [pbr::OriginalName("MONTH")] Month = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FunctionError.g.cs b/Google.Ads.GoogleAds/src/V12/FunctionError.g.cs deleted file mode 100755 index 45ec05ee1..000000000 --- a/Google.Ads.GoogleAds/src/V12/FunctionError.g.cs +++ /dev/null @@ -1,304 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/function_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/function_error.proto - public static partial class FunctionErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/function_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FunctionErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Z1bmN0aW9uX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIsEE", - "ChFGdW5jdGlvbkVycm9yRW51bSKrBAoNRnVuY3Rpb25FcnJvchIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARIbChdJTlZBTElEX0ZVTkNUSU9OX0ZP", - "Uk1BVBACEhYKEkRBVEFfVFlQRV9NSVNNQVRDSBADEiAKHElOVkFMSURfQ09O", - "SlVOQ1RJT05fT1BFUkFORFMQBBIeChpJTlZBTElEX05VTUJFUl9PRl9PUEVS", - "QU5EUxAFEhgKFElOVkFMSURfT1BFUkFORF9UWVBFEAYSFAoQSU5WQUxJRF9P", - "UEVSQVRPUhAHEiAKHElOVkFMSURfUkVRVUVTVF9DT05URVhUX1RZUEUQCBIp", - "CiVJTlZBTElEX0ZVTkNUSU9OX0ZPUl9DQUxMX1BMQUNFSE9MREVSEAkSJAog", - "SU5WQUxJRF9GVU5DVElPTl9GT1JfUExBQ0VIT0xERVIQChITCg9JTlZBTElE", - "X09QRVJBTkQQCxIiCh5NSVNTSU5HX0NPTlNUQU5UX09QRVJBTkRfVkFMVUUQ", - "DBIiCh5JTlZBTElEX0NPTlNUQU5UX09QRVJBTkRfVkFMVUUQDRITCg9JTlZB", - "TElEX05FU1RJTkcQDhIjCh9NVUxUSVBMRV9GRUVEX0lEU19OT1RfU1VQUE9S", - "VEVEEA8SLworSU5WQUxJRF9GVU5DVElPTl9GT1JfRkVFRF9XSVRIX0ZJWEVE", - "X1NDSEVNQRAQEhoKFklOVkFMSURfQVRUUklCVVRFX05BTUUQEULyAQojY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCEkZ1bmN0aW9uRXJy", - "b3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGqAh9H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFkc1xH", - "b29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6", - "OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorEnum.Types.FunctionError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible function errors. - /// - public sealed partial class FunctionErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FunctionErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FunctionErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FunctionErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FunctionErrorEnum(FunctionErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FunctionErrorEnum Clone() { - return new FunctionErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FunctionErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FunctionErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FunctionErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FunctionErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible function errors. - /// - public enum FunctionError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The format of the function is not recognized as a supported function - /// format. - /// - [pbr::OriginalName("INVALID_FUNCTION_FORMAT")] InvalidFunctionFormat = 2, - /// - /// Operand data types do not match. - /// - [pbr::OriginalName("DATA_TYPE_MISMATCH")] DataTypeMismatch = 3, - /// - /// The operands cannot be used together in a conjunction. - /// - [pbr::OriginalName("INVALID_CONJUNCTION_OPERANDS")] InvalidConjunctionOperands = 4, - /// - /// Invalid numer of Operands. - /// - [pbr::OriginalName("INVALID_NUMBER_OF_OPERANDS")] InvalidNumberOfOperands = 5, - /// - /// Operand Type not supported. - /// - [pbr::OriginalName("INVALID_OPERAND_TYPE")] InvalidOperandType = 6, - /// - /// Operator not supported. - /// - [pbr::OriginalName("INVALID_OPERATOR")] InvalidOperator = 7, - /// - /// Request context type not supported. - /// - [pbr::OriginalName("INVALID_REQUEST_CONTEXT_TYPE")] InvalidRequestContextType = 8, - /// - /// The matching function is not allowed for call placeholders - /// - [pbr::OriginalName("INVALID_FUNCTION_FOR_CALL_PLACEHOLDER")] InvalidFunctionForCallPlaceholder = 9, - /// - /// The matching function is not allowed for the specified placeholder - /// - [pbr::OriginalName("INVALID_FUNCTION_FOR_PLACEHOLDER")] InvalidFunctionForPlaceholder = 10, - /// - /// Invalid operand. - /// - [pbr::OriginalName("INVALID_OPERAND")] InvalidOperand = 11, - /// - /// Missing value for the constant operand. - /// - [pbr::OriginalName("MISSING_CONSTANT_OPERAND_VALUE")] MissingConstantOperandValue = 12, - /// - /// The value of the constant operand is invalid. - /// - [pbr::OriginalName("INVALID_CONSTANT_OPERAND_VALUE")] InvalidConstantOperandValue = 13, - /// - /// Invalid function nesting. - /// - [pbr::OriginalName("INVALID_NESTING")] InvalidNesting = 14, - /// - /// The Feed ID was different from another Feed ID in the same function. - /// - [pbr::OriginalName("MULTIPLE_FEED_IDS_NOT_SUPPORTED")] MultipleFeedIdsNotSupported = 15, - /// - /// The matching function is invalid for use with a feed with a fixed schema. - /// - [pbr::OriginalName("INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA")] InvalidFunctionForFeedWithFixedSchema = 16, - /// - /// Invalid attribute name. - /// - [pbr::OriginalName("INVALID_ATTRIBUTE_NAME")] InvalidAttributeName = 17, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/FunctionParsingError.g.cs b/Google.Ads.GoogleAds/src/V12/FunctionParsingError.g.cs deleted file mode 100755 index 57a4288ea..000000000 --- a/Google.Ads.GoogleAds/src/V12/FunctionParsingError.g.cs +++ /dev/null @@ -1,279 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/function_parsing_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/function_parsing_error.proto - public static partial class FunctionParsingErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/function_parsing_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static FunctionParsingErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2Z1bmN0aW9uX3Bh", - "cnNpbmdfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnMiggMKGEZ1bmN0aW9uUGFyc2luZ0Vycm9yRW51bSLlAgoURnVuY3Rp", - "b25QYXJzaW5nRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "EQoNTk9fTU9SRV9JTlBVVBACEhYKEkVYUEVDVEVEX0NIQVJBQ1RFUhADEhgK", - "FFVORVhQRUNURURfU0VQQVJBVE9SEAQSGgoWVU5NQVRDSEVEX0xFRlRfQlJB", - "Q0tFVBAFEhsKF1VOTUFUQ0hFRF9SSUdIVF9CUkFDS0VUEAYSHQoZVE9PX01B", - "TllfTkVTVEVEX0ZVTkNUSU9OUxAHEh4KGk1JU1NJTkdfUklHSFRfSEFORF9P", - "UEVSQU5EEAgSGQoVSU5WQUxJRF9PUEVSQVRPUl9OQU1FEAkSLworRkVFRF9B", - "VFRSSUJVVEVfT1BFUkFORF9BUkdVTUVOVF9OT1RfSU5URUdFUhAKEg8KC05P", - "X09QRVJBTkRTEAsSFQoRVE9PX01BTllfT1BFUkFORFMQDEL5AQojY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCGUZ1bmN0aW9uUGFyc2lu", - "Z0Vycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FB", - "qgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorEnum.Types.FunctionParsingError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible function parsing errors. - /// - public sealed partial class FunctionParsingErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FunctionParsingErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.FunctionParsingErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FunctionParsingErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FunctionParsingErrorEnum(FunctionParsingErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FunctionParsingErrorEnum Clone() { - return new FunctionParsingErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as FunctionParsingErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FunctionParsingErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FunctionParsingErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the FunctionParsingErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible function parsing errors. - /// - public enum FunctionParsingError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Unexpected end of function string. - /// - [pbr::OriginalName("NO_MORE_INPUT")] NoMoreInput = 2, - /// - /// Could not find an expected character. - /// - [pbr::OriginalName("EXPECTED_CHARACTER")] ExpectedCharacter = 3, - /// - /// Unexpected separator character. - /// - [pbr::OriginalName("UNEXPECTED_SEPARATOR")] UnexpectedSeparator = 4, - /// - /// Unmatched left bracket or parenthesis. - /// - [pbr::OriginalName("UNMATCHED_LEFT_BRACKET")] UnmatchedLeftBracket = 5, - /// - /// Unmatched right bracket or parenthesis. - /// - [pbr::OriginalName("UNMATCHED_RIGHT_BRACKET")] UnmatchedRightBracket = 6, - /// - /// Functions are nested too deeply. - /// - [pbr::OriginalName("TOO_MANY_NESTED_FUNCTIONS")] TooManyNestedFunctions = 7, - /// - /// Missing right-hand-side operand. - /// - [pbr::OriginalName("MISSING_RIGHT_HAND_OPERAND")] MissingRightHandOperand = 8, - /// - /// Invalid operator/function name. - /// - [pbr::OriginalName("INVALID_OPERATOR_NAME")] InvalidOperatorName = 9, - /// - /// Feed attribute operand's argument is not an integer. - /// - [pbr::OriginalName("FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER")] FeedAttributeOperandArgumentNotInteger = 10, - /// - /// Missing function operands. - /// - [pbr::OriginalName("NO_OPERANDS")] NoOperands = 11, - /// - /// Function had too many operands. - /// - [pbr::OriginalName("TOO_MANY_OPERANDS")] TooManyOperands = 12, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GenderType.g.cs b/Google.Ads.GoogleAds/src/V12/GenderType.g.cs deleted file mode 100755 index 979eb07a3..000000000 --- a/Google.Ads.GoogleAds/src/V12/GenderType.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/gender_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/gender_type.proto - public static partial class GenderTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/gender_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GenderTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ2VuZGVyX3R5cGUu", - "cHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyJkCg5HZW5k", - "ZXJUeXBlRW51bSJSCgpHZW5kZXJUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCwoH", - "VU5LTk9XThABEggKBE1BTEUQChIKCgZGRU1BTEUQCxIQCgxVTkRFVEVSTUlO", - "RUQQFELpAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IP", - "R2VuZGVyVHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNH", - "QUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVc", - "QWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xl", - "QWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GenderTypeEnum.Types.GenderType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of demographic genders. - /// - public sealed partial class GenderTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenderTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GenderTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderTypeEnum(GenderTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderTypeEnum Clone() { - return new GenderTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenderTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenderTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenderTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GenderTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of demographic genders (for example, female). - /// - public enum GenderType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Male. - /// - [pbr::OriginalName("MALE")] Male = 10, - /// - /// Female. - /// - [pbr::OriginalName("FEMALE")] Female = 11, - /// - /// Undetermined gender. - /// - [pbr::OriginalName("UNDETERMINED")] Undetermined = 20, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GenderView.g.cs b/Google.Ads.GoogleAds/src/V12/GenderView.g.cs deleted file mode 100755 index 3ce94d958..000000000 --- a/Google.Ads.GoogleAds/src/V12/GenderView.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/gender_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/gender_view.proto - public static partial class GenderViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/gender_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GenderViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2dlbmRlcl92", - "aWV3LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "Gh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBp", - "L3Jlc291cmNlLnByb3RvIrwBCgpHZW5kZXJWaWV3EkIKDXJlc291cmNlX25h", - "bWUYASABKAlCK+BBA/pBJQojZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0dl", - "bmRlclZpZXc6aupBZwojZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0dlbmRl", - "clZpZXcSQGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2dlbmRlclZpZXdzL3th", - "ZF9ncm91cF9pZH1+e2NyaXRlcmlvbl9pZH1CgQIKJmNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQg9HZW5kZXJWaWV3UHJvdG9QAVpL", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.GenderView), global::Google.Ads.GoogleAds.V12.Resources.GenderView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A gender view. - /// - public sealed partial class GenderView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenderView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.GenderViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderView(GenderView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenderView Clone() { - return new GenderView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the gender view. - /// Gender view resource names have the form: - /// - /// `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenderView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenderView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenderView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GenderViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/GenderViewResourceNames.g.cs deleted file mode 100755 index 89c23c488..000000000 --- a/Google.Ads.GoogleAds/src/V12/GenderViewResourceNames.g.cs +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the GenderView resource. - public sealed partial class GenderViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}. - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/genderViews/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static GenderViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new GenderViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static GenderViewName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new GenderViewName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static GenderViewName Parse(string genderViewName) => Parse(genderViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static GenderViewName Parse(string genderViewName, bool allowUnparsed) => - TryParse(genderViewName, allowUnparsed, out GenderViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string genderViewName, out GenderViewName result) => - TryParse(genderViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string genderViewName, bool allowUnparsed, out GenderViewName result) - { - gax::GaxPreconditions.CheckNotNull(genderViewName, nameof(genderViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(genderViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(genderViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private GenderViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public GenderViewName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as GenderViewName); - - /// - public bool Equals(GenderViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(GenderViewName a, GenderViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(GenderViewName a, GenderViewName b) => !(a == b); - } - - public partial class GenderView - { - /// - /// -typed view over the resource name property. - /// - internal GenderViewName ResourceNameAsGenderViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : GenderViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetConstant.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetConstant.g.cs deleted file mode 100755 index 464aada96..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetConstant.g.cs +++ /dev/null @@ -1,623 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/geo_target_constant.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/geo_target_constant.proto - public static partial class GeoTargetConstantReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/geo_target_constant.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GeoTargetConstantReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2dlb190YXJn", - "ZXRfY29uc3RhbnQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMaP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9nZW9f", - "dGFyZ2V0X2NvbnN0YW50X3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVs", - "ZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byLZ", - "BAoRR2VvVGFyZ2V0Q29uc3RhbnQSSQoNcmVzb3VyY2VfbmFtZRgBIAEoCUIy", - "4EED+kEsCipnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vR2VvVGFyZ2V0Q29u", - "c3RhbnQSFAoCaWQYCiABKANCA+BBA0gAiAEBEhYKBG5hbWUYCyABKAlCA+BB", - "A0gBiAEBEh4KDGNvdW50cnlfY29kZRgMIAEoCUID4EEDSAKIAQESHQoLdGFy", - "Z2V0X3R5cGUYDSABKAlCA+BBA0gDiAEBEmgKBnN0YXR1cxgHIAEoDjJTLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5HZW9UYXJnZXRDb25zdGFu", - "dFN0YXR1c0VudW0uR2VvVGFyZ2V0Q29uc3RhbnRTdGF0dXNCA+BBAxIgCg5j", - "YW5vbmljYWxfbmFtZRgOIAEoCUID4EEDSASIAQESUgoRcGFyZW50X2dlb190", - "YXJnZXQYCSABKAlCMuBBA/pBLAoqZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0dlb1RhcmdldENvbnN0YW50SAWIAQE6UupBTwoqZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0dlb1RhcmdldENvbnN0YW50EiFnZW9UYXJnZXRDb25zdGFu", - "dHMve2NyaXRlcmlvbl9pZH1CBQoDX2lkQgcKBV9uYW1lQg8KDV9jb3VudHJ5", - "X2NvZGVCDgoMX3RhcmdldF90eXBlQhEKD19jYW5vbmljYWxfbmFtZUIUChJf", - "cGFyZW50X2dlb190YXJnZXRCiAIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzQhZHZW9UYXJnZXRDb25zdGFudFByb3RvUAFaS2dv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant), global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant.Parser, new[]{ "ResourceName", "Id", "Name", "CountryCode", "TargetType", "Status", "CanonicalName", "ParentGeoTarget" }, new[]{ "Id", "Name", "CountryCode", "TargetType", "CanonicalName", "ParentGeoTarget" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A geo target constant. - /// - public sealed partial class GeoTargetConstant : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargetConstant()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstantReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstant() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstant(GeoTargetConstant other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - countryCode_ = other.countryCode_; - targetType_ = other.targetType_; - status_ = other.status_; - canonicalName_ = other.canonicalName_; - parentGeoTarget_ = other.parentGeoTarget_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstant Clone() { - return new GeoTargetConstant(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the geo target constant. - /// Geo target constant resource names have the form: - /// - /// `geoTargetConstants/{geo_target_constant_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 10; - private long id_; - /// - /// Output only. The ID of the geo target constant. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 11; - private string name_; - /// - /// Output only. Geo target constant English name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 12; - private string countryCode_; - /// - /// Output only. The ISO-3166-1 alpha-2 country code that is associated with the target. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "target_type" field. - public const int TargetTypeFieldNumber = 13; - private string targetType_; - /// - /// Output only. Geo target constant target type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetType { - get { return targetType_ ?? ""; } - set { - targetType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "target_type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetType { - get { return targetType_ != null; } - } - /// Clears the value of the "target_type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetType() { - targetType_ = null; - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus.Unspecified; - /// - /// Output only. Geo target constant status. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - /// Field number for the "canonical_name" field. - public const int CanonicalNameFieldNumber = 14; - private string canonicalName_; - /// - /// Output only. The fully qualified English name, consisting of the target's name and that - /// of its parent and country. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CanonicalName { - get { return canonicalName_ ?? ""; } - set { - canonicalName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "canonical_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCanonicalName { - get { return canonicalName_ != null; } - } - /// Clears the value of the "canonical_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCanonicalName() { - canonicalName_ = null; - } - - /// Field number for the "parent_geo_target" field. - public const int ParentGeoTargetFieldNumber = 9; - private string parentGeoTarget_; - /// - /// Output only. The resource name of the parent geo target constant. - /// Geo target constant resource names have the form: - /// - /// `geoTargetConstants/{parent_geo_target_constant_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ParentGeoTarget { - get { return parentGeoTarget_ ?? ""; } - set { - parentGeoTarget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "parent_geo_target" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasParentGeoTarget { - get { return parentGeoTarget_ != null; } - } - /// Clears the value of the "parent_geo_target" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearParentGeoTarget() { - parentGeoTarget_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargetConstant); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargetConstant other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (CountryCode != other.CountryCode) return false; - if (TargetType != other.TargetType) return false; - if (Status != other.Status) return false; - if (CanonicalName != other.CanonicalName) return false; - if (ParentGeoTarget != other.ParentGeoTarget) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasTargetType) hash ^= TargetType.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus.Unspecified) hash ^= Status.GetHashCode(); - if (HasCanonicalName) hash ^= CanonicalName.GetHashCode(); - if (HasParentGeoTarget) hash ^= ParentGeoTarget.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) Status); - } - if (HasParentGeoTarget) { - output.WriteRawTag(74); - output.WriteString(ParentGeoTarget); - } - if (HasId) { - output.WriteRawTag(80); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - if (HasCountryCode) { - output.WriteRawTag(98); - output.WriteString(CountryCode); - } - if (HasTargetType) { - output.WriteRawTag(106); - output.WriteString(TargetType); - } - if (HasCanonicalName) { - output.WriteRawTag(114); - output.WriteString(CanonicalName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) Status); - } - if (HasParentGeoTarget) { - output.WriteRawTag(74); - output.WriteString(ParentGeoTarget); - } - if (HasId) { - output.WriteRawTag(80); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - if (HasCountryCode) { - output.WriteRawTag(98); - output.WriteString(CountryCode); - } - if (HasTargetType) { - output.WriteRawTag(106); - output.WriteString(TargetType); - } - if (HasCanonicalName) { - output.WriteRawTag(114); - output.WriteString(CanonicalName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasTargetType) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetType); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (HasCanonicalName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CanonicalName); - } - if (HasParentGeoTarget) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentGeoTarget); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargetConstant other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasTargetType) { - TargetType = other.TargetType; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus.Unspecified) { - Status = other.Status; - } - if (other.HasCanonicalName) { - CanonicalName = other.CanonicalName; - } - if (other.HasParentGeoTarget) { - ParentGeoTarget = other.ParentGeoTarget; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 56: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus) input.ReadEnum(); - break; - } - case 74: { - ParentGeoTarget = input.ReadString(); - break; - } - case 80: { - Id = input.ReadInt64(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 98: { - CountryCode = input.ReadString(); - break; - } - case 106: { - TargetType = input.ReadString(); - break; - } - case 114: { - CanonicalName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 56: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus) input.ReadEnum(); - break; - } - case 74: { - ParentGeoTarget = input.ReadString(); - break; - } - case 80: { - Id = input.ReadInt64(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 98: { - CountryCode = input.ReadString(); - break; - } - case 106: { - TargetType = input.ReadString(); - break; - } - case 114: { - CanonicalName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetConstantResourceNames.g.cs deleted file mode 100755 index 558a32108..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantResourceNames.g.cs +++ /dev/null @@ -1,256 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the GeoTargetConstant resource. - public sealed partial class GeoTargetConstantName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern geoTargetConstants/{criterion_id}. - Criterion = 1, - } - - private static gax::PathTemplate s_criterion = new gax::PathTemplate("geoTargetConstants/{criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static GeoTargetConstantName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new GeoTargetConstantName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern geoTargetConstants/{criterion_id}. - /// - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static GeoTargetConstantName FromCriterion(string criterionId) => - new GeoTargetConstantName(ResourceNameType.Criterion, criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// geoTargetConstants/{criterion_id}. - /// - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// geoTargetConstants/{criterion_id}. - /// - public static string Format(string criterionId) => FormatCriterion(criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// geoTargetConstants/{criterion_id}. - /// - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// geoTargetConstants/{criterion_id}. - /// - public static string FormatCriterion(string criterionId) => - s_criterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// geoTargetConstants/{criterion_id} - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static GeoTargetConstantName Parse(string geoTargetConstantName) => Parse(geoTargetConstantName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// geoTargetConstants/{criterion_id} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static GeoTargetConstantName Parse(string geoTargetConstantName, bool allowUnparsed) => - TryParse(geoTargetConstantName, allowUnparsed, out GeoTargetConstantName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// geoTargetConstants/{criterion_id} - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string geoTargetConstantName, out GeoTargetConstantName result) => - TryParse(geoTargetConstantName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// geoTargetConstants/{criterion_id} - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string geoTargetConstantName, bool allowUnparsed, out GeoTargetConstantName result) - { - gax::GaxPreconditions.CheckNotNull(geoTargetConstantName, nameof(geoTargetConstantName)); - gax::TemplatedResourceName resourceName; - if (s_criterion.TryParseName(geoTargetConstantName, out resourceName)) - { - result = FromCriterion(resourceName[0]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(geoTargetConstantName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private GeoTargetConstantName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string criterionId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CriterionId = criterionId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// geoTargetConstants/{criterion_id} - /// - /// The Criterion ID. Must not be null or empty. - public GeoTargetConstantName(string criterionId) : this(ResourceNameType.Criterion, criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.Criterion: return s_criterion.Expand(CriterionId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as GeoTargetConstantName); - - /// - public bool Equals(GeoTargetConstantName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(GeoTargetConstantName a, GeoTargetConstantName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(GeoTargetConstantName a, GeoTargetConstantName b) => !(a == b); - } - - public partial class GeoTargetConstant - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::GeoTargetConstantName ResourceNameAsGeoTargetConstantName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::GeoTargetConstantName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::GeoTargetConstantName ParentGeoTargetAsGeoTargetConstantName - { - get => string.IsNullOrEmpty(ParentGeoTarget) ? null : gagvr::GeoTargetConstantName.Parse(ParentGeoTarget, allowUnparsed: true); - set => ParentGeoTarget = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::GeoTargetConstantName GeoTargetConstantName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::GeoTargetConstantName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantService.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetConstantService.g.cs deleted file mode 100755 index bb42c2115..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantService.g.cs +++ /dev/null @@ -1,1440 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/geo_target_constant_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/geo_target_constant_service.proto - public static partial class GeoTargetConstantServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/geo_target_constant_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GeoTargetConstantServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZ2VvX3Rhcmdl", - "dF9jb25zdGFudF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMaPGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvZ2VvX3RhcmdldF9jb25zdGFudC5wcm90bxocZ29vZ2xlL2FwaS9h", - "bm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8ilwMK", - "IFN1Z2dlc3RHZW9UYXJnZXRDb25zdGFudHNSZXF1ZXN0EhMKBmxvY2FsZRgG", - "IAEoCUgBiAEBEhkKDGNvdW50cnlfY29kZRgHIAEoCUgCiAEBEmsKDmxvY2F0", - "aW9uX25hbWVzGAEgASgLMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLlN1Z2dlc3RHZW9UYXJnZXRDb25zdGFudHNSZXF1ZXN0LkxvY2F0", - "aW9uTmFtZXNIABJlCgtnZW9fdGFyZ2V0cxgCIAEoCzJOLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5TdWdnZXN0R2VvVGFyZ2V0Q29uc3Rh", - "bnRzUmVxdWVzdC5HZW9UYXJnZXRzSAAaHgoNTG9jYXRpb25OYW1lcxINCgVu", - "YW1lcxgCIAMoCRoqCgpHZW9UYXJnZXRzEhwKFGdlb190YXJnZXRfY29uc3Rh", - "bnRzGAIgAygJQgcKBXF1ZXJ5QgkKB19sb2NhbGVCDwoNX2NvdW50cnlfY29k", - "ZSKMAQohU3VnZ2VzdEdlb1RhcmdldENvbnN0YW50c1Jlc3BvbnNlEmcKH2dl", - "b190YXJnZXRfY29uc3RhbnRfc3VnZ2VzdGlvbnMYASADKAsyPi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuR2VvVGFyZ2V0Q29uc3RhbnRT", - "dWdnZXN0aW9uIrUCChtHZW9UYXJnZXRDb25zdGFudFN1Z2dlc3Rpb24SEwoG", - "bG9jYWxlGAYgASgJSACIAQESEgoFcmVhY2gYByABKANIAYgBARIYCgtzZWFy", - "Y2hfdGVybRgIIAEoCUgCiAEBElIKE2dlb190YXJnZXRfY29uc3RhbnQYBCAB", - "KAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkdlb1Rh", - "cmdldENvbnN0YW50EloKG2dlb190YXJnZXRfY29uc3RhbnRfcGFyZW50cxgF", - "IAMoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuR2Vv", - "VGFyZ2V0Q29uc3RhbnRCCQoHX2xvY2FsZUIICgZfcmVhY2hCDgoMX3NlYXJj", - "aF90ZXJtMrYCChhHZW9UYXJnZXRDb25zdGFudFNlcnZpY2US0gEKGVN1Z2dl", - "c3RHZW9UYXJnZXRDb25zdGFudHMSQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuU3VnZ2VzdEdlb1RhcmdldENvbnN0YW50c1JlcXVlc3Qa", - "RC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuU3VnZ2VzdEdl", - "b1RhcmdldENvbnN0YW50c1Jlc3BvbnNlIiqC0+STAiQiHy92MTIvZ2VvVGFy", - "Z2V0Q29uc3RhbnRzOnN1Z2dlc3Q6ASoaRcpBGGdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3", - "b3Jkc0KJAgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "c0IdR2VvVGFyZ2V0Q29uc3RhbnRTZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxT", - "ZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6U2Vydmlj", - "ZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstantReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest), global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Parser, new[]{ "Locale", "CountryCode", "LocationNames", "GeoTargets" }, new[]{ "Query", "Locale", "CountryCode" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames), global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames.Parser, new[]{ "Names" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets), global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets.Parser, new[]{ "GeoTargetConstants" }, null, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsResponse), global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsResponse.Parser, new[]{ "GeoTargetConstantSuggestions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GeoTargetConstantSuggestion), global::Google.Ads.GoogleAds.V12.Services.GeoTargetConstantSuggestion.Parser, new[]{ "Locale", "Reach", "SearchTerm", "GeoTargetConstant", "GeoTargetConstantParents" }, new[]{ "Locale", "Reach", "SearchTerm" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v12.services.GeoTargetConstantService.SuggestGeoTargetConstants]. - /// - public sealed partial class SuggestGeoTargetConstantsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestGeoTargetConstantsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GeoTargetConstantServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestGeoTargetConstantsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestGeoTargetConstantsRequest(SuggestGeoTargetConstantsRequest other) : this() { - locale_ = other.locale_; - countryCode_ = other.countryCode_; - switch (other.QueryCase) { - case QueryOneofCase.LocationNames: - LocationNames = other.LocationNames.Clone(); - break; - case QueryOneofCase.GeoTargets: - GeoTargets = other.GeoTargets.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestGeoTargetConstantsRequest Clone() { - return new SuggestGeoTargetConstantsRequest(this); - } - - /// Field number for the "locale" field. - public const int LocaleFieldNumber = 6; - private string locale_; - /// - /// If possible, returned geo targets are translated using this locale. If not, - /// en is used by default. This is also used as a hint for returned geo - /// targets. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Locale { - get { return locale_ ?? ""; } - set { - locale_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "locale" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLocale { - get { return locale_ != null; } - } - /// Clears the value of the "locale" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLocale() { - locale_ = null; - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 7; - private string countryCode_; - /// - /// Returned geo targets are restricted to this country code. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "location_names" field. - public const int LocationNamesFieldNumber = 1; - /// - /// The location names to search by. At most 25 names can be set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames LocationNames { - get { return queryCase_ == QueryOneofCase.LocationNames ? (global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames) query_ : null; } - set { - query_ = value; - queryCase_ = value == null ? QueryOneofCase.None : QueryOneofCase.LocationNames; - } - } - - /// Field number for the "geo_targets" field. - public const int GeoTargetsFieldNumber = 2; - /// - /// The geo target constant resource names to filter by. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets GeoTargets { - get { return queryCase_ == QueryOneofCase.GeoTargets ? (global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets) query_ : null; } - set { - query_ = value; - queryCase_ = value == null ? QueryOneofCase.None : QueryOneofCase.GeoTargets; - } - } - - private object query_; - /// Enum of possible cases for the "query" oneof. - public enum QueryOneofCase { - None = 0, - LocationNames = 1, - GeoTargets = 2, - } - private QueryOneofCase queryCase_ = QueryOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public QueryOneofCase QueryCase { - get { return queryCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearQuery() { - queryCase_ = QueryOneofCase.None; - query_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuggestGeoTargetConstantsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuggestGeoTargetConstantsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Locale != other.Locale) return false; - if (CountryCode != other.CountryCode) return false; - if (!object.Equals(LocationNames, other.LocationNames)) return false; - if (!object.Equals(GeoTargets, other.GeoTargets)) return false; - if (QueryCase != other.QueryCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLocale) hash ^= Locale.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (queryCase_ == QueryOneofCase.LocationNames) hash ^= LocationNames.GetHashCode(); - if (queryCase_ == QueryOneofCase.GeoTargets) hash ^= GeoTargets.GetHashCode(); - hash ^= (int) queryCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (queryCase_ == QueryOneofCase.LocationNames) { - output.WriteRawTag(10); - output.WriteMessage(LocationNames); - } - if (queryCase_ == QueryOneofCase.GeoTargets) { - output.WriteRawTag(18); - output.WriteMessage(GeoTargets); - } - if (HasLocale) { - output.WriteRawTag(50); - output.WriteString(Locale); - } - if (HasCountryCode) { - output.WriteRawTag(58); - output.WriteString(CountryCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (queryCase_ == QueryOneofCase.LocationNames) { - output.WriteRawTag(10); - output.WriteMessage(LocationNames); - } - if (queryCase_ == QueryOneofCase.GeoTargets) { - output.WriteRawTag(18); - output.WriteMessage(GeoTargets); - } - if (HasLocale) { - output.WriteRawTag(50); - output.WriteString(Locale); - } - if (HasCountryCode) { - output.WriteRawTag(58); - output.WriteString(CountryCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLocale) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Locale); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (queryCase_ == QueryOneofCase.LocationNames) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocationNames); - } - if (queryCase_ == QueryOneofCase.GeoTargets) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GeoTargets); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuggestGeoTargetConstantsRequest other) { - if (other == null) { - return; - } - if (other.HasLocale) { - Locale = other.Locale; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - switch (other.QueryCase) { - case QueryOneofCase.LocationNames: - if (LocationNames == null) { - LocationNames = new global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames(); - } - LocationNames.MergeFrom(other.LocationNames); - break; - case QueryOneofCase.GeoTargets: - if (GeoTargets == null) { - GeoTargets = new global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets(); - } - GeoTargets.MergeFrom(other.GeoTargets); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames(); - if (queryCase_ == QueryOneofCase.LocationNames) { - subBuilder.MergeFrom(LocationNames); - } - input.ReadMessage(subBuilder); - LocationNames = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets(); - if (queryCase_ == QueryOneofCase.GeoTargets) { - subBuilder.MergeFrom(GeoTargets); - } - input.ReadMessage(subBuilder); - GeoTargets = subBuilder; - break; - } - case 50: { - Locale = input.ReadString(); - break; - } - case 58: { - CountryCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.LocationNames(); - if (queryCase_ == QueryOneofCase.LocationNames) { - subBuilder.MergeFrom(LocationNames); - } - input.ReadMessage(subBuilder); - LocationNames = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Types.GeoTargets(); - if (queryCase_ == QueryOneofCase.GeoTargets) { - subBuilder.MergeFrom(GeoTargets); - } - input.ReadMessage(subBuilder); - GeoTargets = subBuilder; - break; - } - case 50: { - Locale = input.ReadString(); - break; - } - case 58: { - CountryCode = input.ReadString(); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the SuggestGeoTargetConstantsRequest message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// A list of location names. - /// - public sealed partial class LocationNames : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationNames()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationNames() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationNames(LocationNames other) : this() { - names_ = other.names_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public LocationNames Clone() { - return new LocationNames(this); - } - - /// Field number for the "names" field. - public const int NamesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_names_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField names_ = new pbc::RepeatedField(); - /// - /// A list of location names. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Names { - get { return names_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as LocationNames); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(LocationNames other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!names_.Equals(other.names_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= names_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - names_.WriteTo(output, _repeated_names_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - names_.WriteTo(ref output, _repeated_names_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += names_.CalculateSize(_repeated_names_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(LocationNames other) { - if (other == null) { - return; - } - names_.Add(other.names_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - names_.AddEntriesFrom(input, _repeated_names_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - names_.AddEntriesFrom(ref input, _repeated_names_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A list of geo target constant resource names. - /// - public sealed partial class GeoTargets : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargets()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargets() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargets(GeoTargets other) : this() { - geoTargetConstants_ = other.geoTargetConstants_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargets Clone() { - return new GeoTargets(this); - } - - /// Field number for the "geo_target_constants" field. - public const int GeoTargetConstantsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_geoTargetConstants_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField geoTargetConstants_ = new pbc::RepeatedField(); - /// - /// A list of geo target constant resource names. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargetConstants { - get { return geoTargetConstants_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargets); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargets other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!geoTargetConstants_.Equals(other.geoTargetConstants_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= geoTargetConstants_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - geoTargetConstants_.WriteTo(output, _repeated_geoTargetConstants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - geoTargetConstants_.WriteTo(ref output, _repeated_geoTargetConstants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += geoTargetConstants_.CalculateSize(_repeated_geoTargetConstants_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargets other) { - if (other == null) { - return; - } - geoTargetConstants_.Add(other.geoTargetConstants_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - geoTargetConstants_.AddEntriesFrom(input, _repeated_geoTargetConstants_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - geoTargetConstants_.AddEntriesFrom(ref input, _repeated_geoTargetConstants_codec); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - /// - /// Response message for [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v12.services.GeoTargetConstantService.SuggestGeoTargetConstants]. - /// - public sealed partial class SuggestGeoTargetConstantsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestGeoTargetConstantsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GeoTargetConstantServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestGeoTargetConstantsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestGeoTargetConstantsResponse(SuggestGeoTargetConstantsResponse other) : this() { - geoTargetConstantSuggestions_ = other.geoTargetConstantSuggestions_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestGeoTargetConstantsResponse Clone() { - return new SuggestGeoTargetConstantsResponse(this); - } - - /// Field number for the "geo_target_constant_suggestions" field. - public const int GeoTargetConstantSuggestionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_geoTargetConstantSuggestions_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.GeoTargetConstantSuggestion.Parser); - private readonly pbc::RepeatedField geoTargetConstantSuggestions_ = new pbc::RepeatedField(); - /// - /// Geo target constant suggestions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargetConstantSuggestions { - get { return geoTargetConstantSuggestions_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuggestGeoTargetConstantsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuggestGeoTargetConstantsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!geoTargetConstantSuggestions_.Equals(other.geoTargetConstantSuggestions_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= geoTargetConstantSuggestions_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - geoTargetConstantSuggestions_.WriteTo(output, _repeated_geoTargetConstantSuggestions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - geoTargetConstantSuggestions_.WriteTo(ref output, _repeated_geoTargetConstantSuggestions_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += geoTargetConstantSuggestions_.CalculateSize(_repeated_geoTargetConstantSuggestions_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuggestGeoTargetConstantsResponse other) { - if (other == null) { - return; - } - geoTargetConstantSuggestions_.Add(other.geoTargetConstantSuggestions_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - geoTargetConstantSuggestions_.AddEntriesFrom(input, _repeated_geoTargetConstantSuggestions_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - geoTargetConstantSuggestions_.AddEntriesFrom(ref input, _repeated_geoTargetConstantSuggestions_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A geo target constant suggestion. - /// - public sealed partial class GeoTargetConstantSuggestion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargetConstantSuggestion()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GeoTargetConstantServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantSuggestion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantSuggestion(GeoTargetConstantSuggestion other) : this() { - _hasBits0 = other._hasBits0; - locale_ = other.locale_; - reach_ = other.reach_; - searchTerm_ = other.searchTerm_; - geoTargetConstant_ = other.geoTargetConstant_ != null ? other.geoTargetConstant_.Clone() : null; - geoTargetConstantParents_ = other.geoTargetConstantParents_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantSuggestion Clone() { - return new GeoTargetConstantSuggestion(this); - } - - /// Field number for the "locale" field. - public const int LocaleFieldNumber = 6; - private string locale_; - /// - /// The language this GeoTargetConstantSuggestion is currently translated to. - /// It affects the name of geo target fields. For example, if locale=en, then - /// name=Spain. If locale=es, then name=España. The default locale will be - /// returned if no translation exists for the locale in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Locale { - get { return locale_ ?? ""; } - set { - locale_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "locale" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLocale { - get { return locale_ != null; } - } - /// Clears the value of the "locale" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLocale() { - locale_ = null; - } - - /// Field number for the "reach" field. - public const int ReachFieldNumber = 7; - private long reach_; - /// - /// Approximate user population that will be targeted, rounded to the - /// nearest 100. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Reach { - get { if ((_hasBits0 & 1) != 0) { return reach_; } else { return 0L; } } - set { - _hasBits0 |= 1; - reach_ = value; - } - } - /// Gets whether the "reach" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasReach { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "reach" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearReach() { - _hasBits0 &= ~1; - } - - /// Field number for the "search_term" field. - public const int SearchTermFieldNumber = 8; - private string searchTerm_; - /// - /// If the request searched by location name, this is the location name that - /// matched the geo target. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SearchTerm { - get { return searchTerm_ ?? ""; } - set { - searchTerm_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "search_term" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSearchTerm { - get { return searchTerm_ != null; } - } - /// Clears the value of the "search_term" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSearchTerm() { - searchTerm_ = null; - } - - /// Field number for the "geo_target_constant" field. - public const int GeoTargetConstantFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant geoTargetConstant_; - /// - /// The GeoTargetConstant result. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant GeoTargetConstant { - get { return geoTargetConstant_; } - set { - geoTargetConstant_ = value; - } - } - - /// Field number for the "geo_target_constant_parents" field. - public const int GeoTargetConstantParentsFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_geoTargetConstantParents_codec - = pb::FieldCodec.ForMessage(42, global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant.Parser); - private readonly pbc::RepeatedField geoTargetConstantParents_ = new pbc::RepeatedField(); - /// - /// The list of parents of the geo target constant. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargetConstantParents { - get { return geoTargetConstantParents_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargetConstantSuggestion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargetConstantSuggestion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Locale != other.Locale) return false; - if (Reach != other.Reach) return false; - if (SearchTerm != other.SearchTerm) return false; - if (!object.Equals(GeoTargetConstant, other.GeoTargetConstant)) return false; - if(!geoTargetConstantParents_.Equals(other.geoTargetConstantParents_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasLocale) hash ^= Locale.GetHashCode(); - if (HasReach) hash ^= Reach.GetHashCode(); - if (HasSearchTerm) hash ^= SearchTerm.GetHashCode(); - if (geoTargetConstant_ != null) hash ^= GeoTargetConstant.GetHashCode(); - hash ^= geoTargetConstantParents_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (geoTargetConstant_ != null) { - output.WriteRawTag(34); - output.WriteMessage(GeoTargetConstant); - } - geoTargetConstantParents_.WriteTo(output, _repeated_geoTargetConstantParents_codec); - if (HasLocale) { - output.WriteRawTag(50); - output.WriteString(Locale); - } - if (HasReach) { - output.WriteRawTag(56); - output.WriteInt64(Reach); - } - if (HasSearchTerm) { - output.WriteRawTag(66); - output.WriteString(SearchTerm); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (geoTargetConstant_ != null) { - output.WriteRawTag(34); - output.WriteMessage(GeoTargetConstant); - } - geoTargetConstantParents_.WriteTo(ref output, _repeated_geoTargetConstantParents_codec); - if (HasLocale) { - output.WriteRawTag(50); - output.WriteString(Locale); - } - if (HasReach) { - output.WriteRawTag(56); - output.WriteInt64(Reach); - } - if (HasSearchTerm) { - output.WriteRawTag(66); - output.WriteString(SearchTerm); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasLocale) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Locale); - } - if (HasReach) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Reach); - } - if (HasSearchTerm) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SearchTerm); - } - if (geoTargetConstant_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GeoTargetConstant); - } - size += geoTargetConstantParents_.CalculateSize(_repeated_geoTargetConstantParents_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargetConstantSuggestion other) { - if (other == null) { - return; - } - if (other.HasLocale) { - Locale = other.Locale; - } - if (other.HasReach) { - Reach = other.Reach; - } - if (other.HasSearchTerm) { - SearchTerm = other.SearchTerm; - } - if (other.geoTargetConstant_ != null) { - if (geoTargetConstant_ == null) { - GeoTargetConstant = new global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant(); - } - GeoTargetConstant.MergeFrom(other.GeoTargetConstant); - } - geoTargetConstantParents_.Add(other.geoTargetConstantParents_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 34: { - if (geoTargetConstant_ == null) { - GeoTargetConstant = new global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant(); - } - input.ReadMessage(GeoTargetConstant); - break; - } - case 42: { - geoTargetConstantParents_.AddEntriesFrom(input, _repeated_geoTargetConstantParents_codec); - break; - } - case 50: { - Locale = input.ReadString(); - break; - } - case 56: { - Reach = input.ReadInt64(); - break; - } - case 66: { - SearchTerm = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 34: { - if (geoTargetConstant_ == null) { - GeoTargetConstant = new global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant(); - } - input.ReadMessage(GeoTargetConstant); - break; - } - case 42: { - geoTargetConstantParents_.AddEntriesFrom(ref input, _repeated_geoTargetConstantParents_codec); - break; - } - case 50: { - Locale = input.ReadString(); - break; - } - case 56: { - Reach = input.ReadInt64(); - break; - } - case 66: { - SearchTerm = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetConstantServiceClient.g.cs deleted file mode 100755 index 77d634496..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantServiceClient.g.cs +++ /dev/null @@ -1,355 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class GeoTargetConstantServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static GeoTargetConstantServiceSettings GetDefault() => new GeoTargetConstantServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public GeoTargetConstantServiceSettings() - { - } - - private GeoTargetConstantServiceSettings(GeoTargetConstantServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - SuggestGeoTargetConstantsSettings = existing.SuggestGeoTargetConstantsSettings; - OnCopy(existing); - } - - partial void OnCopy(GeoTargetConstantServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// GeoTargetConstantServiceClient.SuggestGeoTargetConstants and - /// GeoTargetConstantServiceClient.SuggestGeoTargetConstantsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings SuggestGeoTargetConstantsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public GeoTargetConstantServiceSettings Clone() => new GeoTargetConstantServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class GeoTargetConstantServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public GeoTargetConstantServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public GeoTargetConstantServiceClientBuilder() : base(GeoTargetConstantServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref GeoTargetConstantServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override GeoTargetConstantServiceClient Build() - { - GeoTargetConstantServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private GeoTargetConstantServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return GeoTargetConstantServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return GeoTargetConstantServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => GeoTargetConstantServiceClient.ChannelPool; - } - - /// GeoTargetConstantService client wrapper, for convenient use. - /// - /// Service to fetch geo target constants. - /// - public abstract partial class GeoTargetConstantServiceClient - { - /// - /// The default endpoint for the GeoTargetConstantService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default GeoTargetConstantService scopes. - /// - /// The default GeoTargetConstantService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(GeoTargetConstantService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new GeoTargetConstantServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static GeoTargetConstantServiceClient Create() => new GeoTargetConstantServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static GeoTargetConstantServiceClient Create(grpccore::CallInvoker callInvoker, GeoTargetConstantServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - GeoTargetConstantService.GeoTargetConstantServiceClient grpcClient = new GeoTargetConstantService.GeoTargetConstantServiceClient(callInvoker); - return new GeoTargetConstantServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC GeoTargetConstantService client - public virtual GeoTargetConstantService.GeoTargetConstantServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual SuggestGeoTargetConstantsResponse SuggestGeoTargetConstants(SuggestGeoTargetConstantsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task SuggestGeoTargetConstantsAsync(SuggestGeoTargetConstantsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task SuggestGeoTargetConstantsAsync(SuggestGeoTargetConstantsRequest request, st::CancellationToken cancellationToken) => - SuggestGeoTargetConstantsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// GeoTargetConstantService client wrapper implementation, for convenient use. - /// - /// Service to fetch geo target constants. - /// - public sealed partial class GeoTargetConstantServiceClientImpl : GeoTargetConstantServiceClient - { - private readonly gaxgrpc::ApiCall _callSuggestGeoTargetConstants; - - /// - /// Constructs a client wrapper for the GeoTargetConstantService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public GeoTargetConstantServiceClientImpl(GeoTargetConstantService.GeoTargetConstantServiceClient grpcClient, GeoTargetConstantServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - GeoTargetConstantServiceSettings effectiveSettings = settings ?? GeoTargetConstantServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callSuggestGeoTargetConstants = clientHelper.BuildApiCall("SuggestGeoTargetConstants", grpcClient.SuggestGeoTargetConstantsAsync, grpcClient.SuggestGeoTargetConstants, effectiveSettings.SuggestGeoTargetConstantsSettings); - Modify_ApiCall(ref _callSuggestGeoTargetConstants); - Modify_SuggestGeoTargetConstantsApiCall(ref _callSuggestGeoTargetConstants); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_SuggestGeoTargetConstantsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(GeoTargetConstantService.GeoTargetConstantServiceClient grpcClient, GeoTargetConstantServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC GeoTargetConstantService client - public override GeoTargetConstantService.GeoTargetConstantServiceClient GrpcClient { get; } - - partial void Modify_SuggestGeoTargetConstantsRequest(ref SuggestGeoTargetConstantsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override SuggestGeoTargetConstantsResponse SuggestGeoTargetConstants(SuggestGeoTargetConstantsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SuggestGeoTargetConstantsRequest(ref request, ref callSettings); - return _callSuggestGeoTargetConstants.Sync(request, callSettings); - } - - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task SuggestGeoTargetConstantsAsync(SuggestGeoTargetConstantsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SuggestGeoTargetConstantsRequest(ref request, ref callSettings); - return _callSuggestGeoTargetConstants.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetConstantServiceGrpc.g.cs deleted file mode 100755 index ca609515d..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantServiceGrpc.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/geo_target_constant_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to fetch geo target constants. - /// - public static partial class GeoTargetConstantService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.GeoTargetConstantService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SuggestGeoTargetConstantsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SuggestGeoTargetConstantsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SuggestGeoTargetConstants = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SuggestGeoTargetConstants", - __Marshaller_google_ads_googleads_v12_services_SuggestGeoTargetConstantsRequest, - __Marshaller_google_ads_googleads_v12_services_SuggestGeoTargetConstantsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.GeoTargetConstantServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of GeoTargetConstantService - [grpc::BindServiceMethod(typeof(GeoTargetConstantService), "BindService")] - public abstract partial class GeoTargetConstantServiceBase - { - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SuggestGeoTargetConstants(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for GeoTargetConstantService - public partial class GeoTargetConstantServiceClient : grpc::ClientBase - { - /// Creates a new client for GeoTargetConstantService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GeoTargetConstantServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for GeoTargetConstantService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GeoTargetConstantServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GeoTargetConstantServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GeoTargetConstantServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsResponse SuggestGeoTargetConstants(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SuggestGeoTargetConstants(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsResponse SuggestGeoTargetConstants(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SuggestGeoTargetConstants, null, options, request); - } - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SuggestGeoTargetConstantsAsync(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SuggestGeoTargetConstantsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns GeoTargetConstant suggestions by location name or by resource name. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [GeoTargetConstantSuggestionError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SuggestGeoTargetConstantsAsync(global::Google.Ads.GoogleAds.V12.Services.SuggestGeoTargetConstantsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SuggestGeoTargetConstants, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override GeoTargetConstantServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new GeoTargetConstantServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(GeoTargetConstantServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_SuggestGeoTargetConstants, serviceImpl.SuggestGeoTargetConstants).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, GeoTargetConstantServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_SuggestGeoTargetConstants, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SuggestGeoTargetConstants)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantStatus.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetConstantStatus.g.cs deleted file mode 100755 index b16d5890e..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantStatus.g.cs +++ /dev/null @@ -1,239 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/geo_target_constant_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/geo_target_constant_status.proto - public static partial class GeoTargetConstantStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/geo_target_constant_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GeoTargetConstantStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ2VvX3RhcmdldF9j", - "b25zdGFudF9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyJ4ChtHZW9UYXJnZXRDb25zdGFudFN0YXR1c0VudW0iWQoXR2Vv", - "VGFyZ2V0Q29uc3RhbnRTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktO", - "T1dOEAESCwoHRU5BQkxFRBACEhMKD1JFTU9WQUxfUExBTk5FRBADQvYBCiJj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhxHZW9UYXJnZXRD", - "b25zdGFudFN0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOi", - "AgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusEnum.Types.GeoTargetConstantStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for describing the status of a geo target constant. - /// - public sealed partial class GeoTargetConstantStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargetConstantStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GeoTargetConstantStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantStatusEnum(GeoTargetConstantStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantStatusEnum Clone() { - return new GeoTargetConstantStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargetConstantStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargetConstantStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargetConstantStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GeoTargetConstantStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible statuses of a geo target constant. - /// - public enum GeoTargetConstantStatus { - /// - /// No value has been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received value is not known in this version. - /// - /// This is a response-only value. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The geo target constant is valid. - /// - [pbr::OriginalName("ENABLED")] Enabled = 2, - /// - /// The geo target constant is obsolete and will be removed. - /// - [pbr::OriginalName("REMOVAL_PLANNED")] RemovalPlanned = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantSuggestionError.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetConstantSuggestionError.g.cs deleted file mode 100755 index 04c236d5e..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetConstantSuggestionError.g.cs +++ /dev/null @@ -1,250 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/geo_target_constant_suggestion_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/geo_target_constant_suggestion_error.proto - public static partial class GeoTargetConstantSuggestionErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/geo_target_constant_suggestion_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GeoTargetConstantSuggestionErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2dlb190YXJnZXRf", - "Y29uc3RhbnRfc3VnZ2VzdGlvbl9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmVycm9ycyLYAQokR2VvVGFyZ2V0Q29uc3RhbnRTdWdn", - "ZXN0aW9uRXJyb3JFbnVtIq8BCiBHZW9UYXJnZXRDb25zdGFudFN1Z2dlc3Rp", - "b25FcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIcChhMT0NB", - "VElPTl9OQU1FX1NJWkVfTElNSVQQAhIXChNMT0NBVElPTl9OQU1FX0xJTUlU", - "EAMSGAoUSU5WQUxJRF9DT1VOVFJZX0NPREUQBBIcChhSRVFVRVNUX1BBUkFN", - "RVRFUlNfVU5TRVQQBUKFAgojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lcnJvcnNCJUdlb1RhcmdldENvbnN0YW50U3VnZ2VzdGlvbkVycm9yUHJv", - "dG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorEnum.Types.GeoTargetConstantSuggestionError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible geo target constant suggestion errors. - /// - public sealed partial class GeoTargetConstantSuggestionErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargetConstantSuggestionErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.GeoTargetConstantSuggestionErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantSuggestionErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantSuggestionErrorEnum(GeoTargetConstantSuggestionErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetConstantSuggestionErrorEnum Clone() { - return new GeoTargetConstantSuggestionErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargetConstantSuggestionErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargetConstantSuggestionErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargetConstantSuggestionErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GeoTargetConstantSuggestionErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible geo target constant suggestion errors. - /// - public enum GeoTargetConstantSuggestionError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A location name cannot be greater than 300 characters. - /// - [pbr::OriginalName("LOCATION_NAME_SIZE_LIMIT")] LocationNameSizeLimit = 2, - /// - /// At most 25 location names can be specified in a SuggestGeoTargetConstants - /// method. - /// - [pbr::OriginalName("LOCATION_NAME_LIMIT")] LocationNameLimit = 3, - /// - /// The country code is invalid. - /// - [pbr::OriginalName("INVALID_COUNTRY_CODE")] InvalidCountryCode = 4, - /// - /// Geo target constant resource names or location names must be provided in - /// the request. - /// - [pbr::OriginalName("REQUEST_PARAMETERS_UNSET")] RequestParametersUnset = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetingRestriction.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetingRestriction.g.cs deleted file mode 100755 index 17c7df836..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetingRestriction.g.cs +++ /dev/null @@ -1,235 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/geo_targeting_restriction.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/geo_targeting_restriction.proto - public static partial class GeoTargetingRestrictionReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/geo_targeting_restriction.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GeoTargetingRestrictionReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ2VvX3RhcmdldGlu", - "Z19yZXN0cmljdGlvbi5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zInAKG0dlb1RhcmdldGluZ1Jlc3RyaWN0aW9uRW51bSJRChdHZW9U", - "YXJnZXRpbmdSZXN0cmljdGlvbhIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05P", - "V04QARIYChRMT0NBVElPTl9PRl9QUkVTRU5DRRACQvYBCiJjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhxHZW9UYXJnZXRpbmdSZXN0cmlj", - "dGlvblByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum), global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionEnum.Types.GeoTargetingRestriction) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing feed item geo targeting restriction. - /// - public sealed partial class GeoTargetingRestrictionEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargetingRestrictionEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingRestrictionReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetingRestrictionEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetingRestrictionEnum(GeoTargetingRestrictionEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetingRestrictionEnum Clone() { - return new GeoTargetingRestrictionEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargetingRestrictionEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargetingRestrictionEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargetingRestrictionEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GeoTargetingRestrictionEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// A restriction used to determine if the request context's - /// geo should be matched. - /// - public enum GeoTargetingRestriction { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Indicates that request context should match the physical location of - /// the user. - /// - [pbr::OriginalName("LOCATION_OF_PRESENCE")] LocationOfPresence = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GeoTargetingType.g.cs b/Google.Ads.GoogleAds/src/V12/GeoTargetingType.g.cs deleted file mode 100755 index 1ee9cae8e..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeoTargetingType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/geo_targeting_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/geo_targeting_type.proto - public static partial class GeoTargetingTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/geo_targeting_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GeoTargetingTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ2VvX3RhcmdldGlu", - "Z190eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi", - "eAoUR2VvVGFyZ2V0aW5nVHlwZUVudW0iYAoQR2VvVGFyZ2V0aW5nVHlwZRIP", - "CgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIUChBBUkVBX09GX0lOVEVS", - "RVNUEAISGAoUTE9DQVRJT05fT0ZfUFJFU0VOQ0UQA0LvAQoiY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IVR2VvVGFyZ2V0aW5nVHlwZVBy", - "b3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMv", - "YWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUu", - "QWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVu", - "dW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible geo targeting types. - /// - public sealed partial class GeoTargetingTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeoTargetingTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetingTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetingTypeEnum(GeoTargetingTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeoTargetingTypeEnum Clone() { - return new GeoTargetingTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeoTargetingTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeoTargetingTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeoTargetingTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GeoTargetingTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible geo targeting types. - /// - public enum GeoTargetingType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Location the user is interested in while making the query. - /// - [pbr::OriginalName("AREA_OF_INTEREST")] AreaOfInterest = 2, - /// - /// Location of the user issuing the query. - /// - [pbr::OriginalName("LOCATION_OF_PRESENCE")] LocationOfPresence = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GeographicView.g.cs b/Google.Ads.GoogleAds/src/V12/GeographicView.g.cs deleted file mode 100755 index 90a21827d..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeographicView.g.cs +++ /dev/null @@ -1,359 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/geographic_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/geographic_view.proto - public static partial class GeographicViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/geographic_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GeographicViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2dlb2dyYXBo", - "aWNfdmlldy5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2dlb190YXJn", - "ZXRpbmdfdHlwZS5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5w", - "cm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byL6AgoOR2VvZ3JhcGhp", - "Y1ZpZXcSRgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIv4EED+kEpCidnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vR2VvZ3JhcGhpY1ZpZXcSYQoNbG9jYXRpb25f", - "dHlwZRgDIAEoDjJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5H", - "ZW9UYXJnZXRpbmdUeXBlRW51bS5HZW9UYXJnZXRpbmdUeXBlQgPgQQMSJgoU", - "Y291bnRyeV9jcml0ZXJpb25faWQYBSABKANCA+BBA0gAiAEBOnzqQXkKJ2dv", - "b2dsZWFkcy5nb29nbGVhcGlzLmNvbS9HZW9ncmFwaGljVmlldxJOY3VzdG9t", - "ZXJzL3tjdXN0b21lcl9pZH0vZ2VvZ3JhcGhpY1ZpZXdzL3tjb3VudHJ5X2Ny", - "aXRlcmlvbl9pZH1+e2xvY2F0aW9uX3R5cGV9QhcKFV9jb3VudHJ5X2NyaXRl", - "cmlvbl9pZEKFAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXNCE0dlb2dyYXBoaWNWaWV3UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNv", - "dXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNl", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.GeographicView), global::Google.Ads.GoogleAds.V12.Resources.GeographicView.Parser, new[]{ "ResourceName", "LocationType", "CountryCriterionId" }, new[]{ "CountryCriterionId" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A geographic view. - /// - /// Geographic View includes all metrics aggregated at the country level, - /// one row per country. It reports metrics at either actual physical location of - /// the user or an area of interest. If other segment fields are used, you may - /// get more than one row per country. - /// - public sealed partial class GeographicView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GeographicView()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.GeographicViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeographicView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeographicView(GeographicView other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - locationType_ = other.locationType_; - countryCriterionId_ = other.countryCriterionId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GeographicView Clone() { - return new GeographicView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the geographic view. - /// Geographic view resource names have the form: - /// - /// `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "location_type" field. - public const int LocationTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType locationType_ = global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType.Unspecified; - /// - /// Output only. Type of the geo targeting of the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType LocationType { - get { return locationType_; } - set { - locationType_ = value; - } - } - - /// Field number for the "country_criterion_id" field. - public const int CountryCriterionIdFieldNumber = 5; - private long countryCriterionId_; - /// - /// Output only. Criterion Id for the country. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CountryCriterionId { - get { if ((_hasBits0 & 1) != 0) { return countryCriterionId_; } else { return 0L; } } - set { - _hasBits0 |= 1; - countryCriterionId_ = value; - } - } - /// Gets whether the "country_criterion_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCriterionId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "country_criterion_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCriterionId() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GeographicView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GeographicView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (LocationType != other.LocationType) return false; - if (CountryCriterionId != other.CountryCriterionId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (LocationType != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType.Unspecified) hash ^= LocationType.GetHashCode(); - if (HasCountryCriterionId) hash ^= CountryCriterionId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (LocationType != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LocationType); - } - if (HasCountryCriterionId) { - output.WriteRawTag(40); - output.WriteInt64(CountryCriterionId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (LocationType != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) LocationType); - } - if (HasCountryCriterionId) { - output.WriteRawTag(40); - output.WriteInt64(CountryCriterionId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (LocationType != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LocationType); - } - if (HasCountryCriterionId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CountryCriterionId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GeographicView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.LocationType != global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType.Unspecified) { - LocationType = other.LocationType; - } - if (other.HasCountryCriterionId) { - CountryCriterionId = other.CountryCriterionId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - LocationType = (global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType) input.ReadEnum(); - break; - } - case 40: { - CountryCriterionId = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - LocationType = (global::Google.Ads.GoogleAds.V12.Enums.GeoTargetingTypeEnum.Types.GeoTargetingType) input.ReadEnum(); - break; - } - case 40: { - CountryCriterionId = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GeographicViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/GeographicViewResourceNames.g.cs deleted file mode 100755 index 51de0bd6f..000000000 --- a/Google.Ads.GoogleAds/src/V12/GeographicViewResourceNames.g.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the GeographicView resource. - public sealed partial class GeographicViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}. - /// - CustomerCountryCriterionLocationType = 1, - } - - private static gax::PathTemplate s_customerCountryCriterionLocationType = new gax::PathTemplate("customers/{customer_id}/geographicViews/{country_criterion_id_location_type}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static GeographicViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new GeographicViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The CountryCriterion ID. Must not be null or empty. - /// The LocationType ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static GeographicViewName FromCustomerCountryCriterionLocationType(string customerId, string countryCriterionId, string locationTypeId) => - new GeographicViewName(ResourceNameType.CustomerCountryCriterionLocationType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), countryCriterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(countryCriterionId, nameof(countryCriterionId)), locationTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationTypeId, nameof(locationTypeId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The CountryCriterion ID. Must not be null or empty. - /// The LocationType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}. - /// - public static string Format(string customerId, string countryCriterionId, string locationTypeId) => - FormatCustomerCountryCriterionLocationType(customerId, countryCriterionId, locationTypeId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}. - /// - /// The Customer ID. Must not be null or empty. - /// The CountryCriterion ID. Must not be null or empty. - /// The LocationType ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}. - /// - public static string FormatCustomerCountryCriterionLocationType(string customerId, string countryCriterionId, string locationTypeId) => - s_customerCountryCriterionLocationType.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(countryCriterionId, nameof(countryCriterionId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(locationTypeId, nameof(locationTypeId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static GeographicViewName Parse(string geographicViewName) => Parse(geographicViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static GeographicViewName Parse(string geographicViewName, bool allowUnparsed) => - TryParse(geographicViewName, allowUnparsed, out GeographicViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string geographicViewName, out GeographicViewName result) => - TryParse(geographicViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string geographicViewName, bool allowUnparsed, out GeographicViewName result) - { - gax::GaxPreconditions.CheckNotNull(geographicViewName, nameof(geographicViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerCountryCriterionLocationType.TryParseName(geographicViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerCountryCriterionLocationType(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(geographicViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private GeographicViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string countryCriterionId = null, string customerId = null, string locationTypeId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CountryCriterionId = countryCriterionId; - CustomerId = customerId; - LocationTypeId = locationTypeId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type} - /// - /// The Customer ID. Must not be null or empty. - /// The CountryCriterion ID. Must not be null or empty. - /// The LocationType ID. Must not be null or empty. - public GeographicViewName(string customerId, string countryCriterionId, string locationTypeId) : this(ResourceNameType.CustomerCountryCriterionLocationType, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), countryCriterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(countryCriterionId, nameof(countryCriterionId)), locationTypeId: gax::GaxPreconditions.CheckNotNullOrEmpty(locationTypeId, nameof(locationTypeId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The CountryCriterion ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string CountryCriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The LocationType ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string LocationTypeId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCountryCriterionLocationType: return s_customerCountryCriterionLocationType.Expand(CustomerId, $"{CountryCriterionId}~{LocationTypeId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as GeographicViewName); - - /// - public bool Equals(GeographicViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(GeographicViewName a, GeographicViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(GeographicViewName a, GeographicViewName b) => !(a == b); - } - - public partial class GeographicView - { - /// - /// -typed view over the resource name property. - /// - internal GeographicViewName ResourceNameAsGeographicViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : GeographicViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GoalConfigLevel.g.cs b/Google.Ads.GoogleAds/src/V12/GoalConfigLevel.g.cs deleted file mode 100755 index a230d5a86..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoalConfigLevel.g.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/goal_config_level.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/goal_config_level.proto - public static partial class GoalConfigLevelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/goal_config_level.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GoalConfigLevelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ29hbF9jb25maWdf", - "bGV2ZWwucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyJi", - "ChNHb2FsQ29uZmlnTGV2ZWxFbnVtIksKD0dvYWxDb25maWdMZXZlbBIPCgtV", - "TlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIMCghDVVNUT01FUhACEgwKCENB", - "TVBBSUdOEANC7gEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXNCFEdvYWxDb25maWdMZXZlbFByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7", - "ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPK", - "Ah5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum), global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelEnum.Types.GoalConfigLevel) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible goal config levels. - /// - public sealed partial class GoalConfigLevelEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoalConfigLevelEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GoalConfigLevelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoalConfigLevelEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoalConfigLevelEnum(GoalConfigLevelEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoalConfigLevelEnum Clone() { - return new GoalConfigLevelEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoalConfigLevelEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoalConfigLevelEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoalConfigLevelEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GoalConfigLevelEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible goal config levels. Campaigns automatically inherit the - /// effective conversion account's customer goals unless they have been - /// configured with their own set of campaign goals. - /// - public enum GoalConfigLevel { - /// - /// The goal config level has not been specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The goal config level is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The goal config is defined at the customer level. - /// - [pbr::OriginalName("CUSTOMER")] Customer = 2, - /// - /// The goal config is defined at the campaign level. - /// - [pbr::OriginalName("CAMPAIGN")] Campaign = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsException.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsException.cs deleted file mode 100644 index 1dcf1b61e..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsException.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -using Google.Ads.Gax.Lib; -using Grpc.Core; -using System; -using System.Linq; - -namespace Google.Ads.GoogleAds.V12.Errors -{ - /// - /// Exception thrown in response to an API error from the GoogleAds servers. - /// - public sealed class GoogleAdsException : AdsBaseException - { - /// - /// Initializes a new instance of the class. - /// - /// Resulting status of a call. - /// The exception message. - private GoogleAdsException(Status status, string message) : base(status, message) { } - - /// - /// Initializes a new instance of the class. - /// - /// Resulting status of a call. - /// Response trailing metadata. - private GoogleAdsException(Status status, Metadata trailers) : base(status, trailers) { } - - /// - /// Creates a new instance of the class from an - /// . - /// - /// The original gRPC exception. - /// - public static AdsBaseException Create(RpcException rpcException) - { - return (rpcException.Trailers != null) - ? new GoogleAdsException(rpcException.Status, rpcException.Trailers) - : new GoogleAdsException(rpcException.Status, rpcException.Message); - } - - /// - /// Extracts a from an - /// - /// The aggregate exception. - /// An underlying GoogleAdsException if present, or null if one - /// is missing. - public static GoogleAdsException FromTaskException(AggregateException ae) - { - return ae.Flatten().InnerExceptions.Where((Exception ex) => - { - return ex is GoogleAdsException; - }).FirstOrDefault() as GoogleAdsException; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFailureExtensions.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFailureExtensions.cs deleted file mode 100644 index 9b84c195a..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFailureExtensions.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - - -using Google.Ads.Gax.Lib; -using System.Collections.Generic; -using System.Linq; - -namespace Google.Ads.GoogleAds.V12.Errors -{ - partial class GoogleAdsFailure : IResponseMetadata - { - /// - /// The operations fieldname. - /// - private const string OPERATIONS_FIELDNAME = "operations"; - - /// - /// Gets the errors for a given operation index. - /// - /// Index of the operation. - /// The list of errors. - public List GetErrorsByOperationIndex(long operationIndex) - { - return this.Errors.ToList().Where(delegate (GoogleAdsError error) - { - if (error.Location == null) - { - return false; - } - return error.Location.FieldPathElements.Any(fpElement => - fpElement.FieldName == OPERATIONS_FIELDNAME && - fpElement.HasIndex && - fpElement.Index == operationIndex); - }).ToList(); - } - } - - public partial class GoogleAdsError - { - /// - /// Gets the combined field path. - /// - public string CombinedFieldPath - { - get - { - if (this.Location == null) - { - return ""; - } - List fieldPaths = this.Location.FieldPathElements.Select(fpElement => - { - return (fpElement.HasIndex) ? - $"{fpElement.FieldName}[{fpElement.Index}]" : - fpElement.FieldName; - } - ).ToList(); - - return string.Join(".", fieldPaths); - } - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsField.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsField.g.cs deleted file mode 100755 index fb17c0b37..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsField.g.cs +++ /dev/null @@ -1,828 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/google_ads_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/google_ads_field.proto - public static partial class GoogleAdsFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/google_ads_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GoogleAdsFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2dvb2dsZV9h", - "ZHNfZmllbGQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMaPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9nb29nbGVf", - "YWRzX2ZpZWxkX2NhdGVnb3J5LnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvZW51bXMvZ29vZ2xlX2Fkc19maWVsZF9kYXRhX3R5cGUucHJvdG8a", - "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkv", - "cmVzb3VyY2UucHJvdG8iggYKDkdvb2dsZUFkc0ZpZWxkEkYKDXJlc291cmNl", - "X25hbWUYASABKAlCL+BBA/pBKQonZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0dvb2dsZUFkc0ZpZWxkEhYKBG5hbWUYFSABKAlCA+BBA0gAiAEBEmgKCGNh", - "dGVnb3J5GAMgASgOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "Lkdvb2dsZUFkc0ZpZWxkQ2F0ZWdvcnlFbnVtLkdvb2dsZUFkc0ZpZWxkQ2F0", - "ZWdvcnlCA+BBAxIcCgpzZWxlY3RhYmxlGBYgASgIQgPgQQNIAYgBARIcCgpm", - "aWx0ZXJhYmxlGBcgASgIQgPgQQNIAogBARIaCghzb3J0YWJsZRgYIAEoCEID", - "4EEDSAOIAQESHAoPc2VsZWN0YWJsZV93aXRoGBkgAygJQgPgQQMSIAoTYXR0", - "cmlidXRlX3Jlc291cmNlcxgaIAMoCUID4EEDEhQKB21ldHJpY3MYGyADKAlC", - "A+BBAxIVCghzZWdtZW50cxgcIAMoCUID4EEDEhgKC2VudW1fdmFsdWVzGB0g", - "AygJQgPgQQMSaQoJZGF0YV90eXBlGAwgASgOMlEuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zLkdvb2dsZUFkc0ZpZWxkRGF0YVR5cGVFbnVtLkdv", - "b2dsZUFkc0ZpZWxkRGF0YVR5cGVCA+BBAxIaCgh0eXBlX3VybBgeIAEoCUID", - "4EEDSASIAQESHQoLaXNfcmVwZWF0ZWQYHyABKAhCA+BBA0gFiAEBOlDqQU0K", - "J2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Hb29nbGVBZHNGaWVsZBIiZ29v", - "Z2xlQWRzRmllbGRzL3tnb29nbGVfYWRzX2ZpZWxkfUIHCgVfbmFtZUINCgtf", - "c2VsZWN0YWJsZUINCgtfZmlsdGVyYWJsZUILCglfc29ydGFibGVCCwoJX3R5", - "cGVfdXJsQg4KDF9pc19yZXBlYXRlZEKFAgomY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXNCE0dvb2dsZUFkc0ZpZWxkUHJvdG9QAVpL", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsField), global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsField.Parser, new[]{ "ResourceName", "Name", "Category", "Selectable", "Filterable", "Sortable", "SelectableWith", "AttributeResources", "Metrics", "Segments", "EnumValues", "DataType", "TypeUrl", "IsRepeated" }, new[]{ "Name", "Selectable", "Filterable", "Sortable", "TypeUrl", "IsRepeated" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A field or resource (artifact) used by GoogleAdsService. - /// - public sealed partial class GoogleAdsField : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleAdsField()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsField() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsField(GoogleAdsField other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - name_ = other.name_; - category_ = other.category_; - selectable_ = other.selectable_; - filterable_ = other.filterable_; - sortable_ = other.sortable_; - selectableWith_ = other.selectableWith_.Clone(); - attributeResources_ = other.attributeResources_.Clone(); - metrics_ = other.metrics_.Clone(); - segments_ = other.segments_.Clone(); - enumValues_ = other.enumValues_.Clone(); - dataType_ = other.dataType_; - typeUrl_ = other.typeUrl_; - isRepeated_ = other.isRepeated_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsField Clone() { - return new GoogleAdsField(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the artifact. - /// Artifact resource names have the form: - /// - /// `googleAdsFields/{name}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 21; - private string name_; - /// - /// Output only. The name of the artifact. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "category" field. - public const int CategoryFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory category_ = global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified; - /// - /// Output only. The category of the artifact. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory Category { - get { return category_; } - set { - category_ = value; - } - } - - /// Field number for the "selectable" field. - public const int SelectableFieldNumber = 22; - private bool selectable_; - /// - /// Output only. Whether the artifact can be used in a SELECT clause in search - /// queries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Selectable { - get { if ((_hasBits0 & 1) != 0) { return selectable_; } else { return false; } } - set { - _hasBits0 |= 1; - selectable_ = value; - } - } - /// Gets whether the "selectable" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSelectable { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "selectable" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSelectable() { - _hasBits0 &= ~1; - } - - /// Field number for the "filterable" field. - public const int FilterableFieldNumber = 23; - private bool filterable_; - /// - /// Output only. Whether the artifact can be used in a WHERE clause in search - /// queries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Filterable { - get { if ((_hasBits0 & 2) != 0) { return filterable_; } else { return false; } } - set { - _hasBits0 |= 2; - filterable_ = value; - } - } - /// Gets whether the "filterable" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFilterable { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "filterable" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFilterable() { - _hasBits0 &= ~2; - } - - /// Field number for the "sortable" field. - public const int SortableFieldNumber = 24; - private bool sortable_; - /// - /// Output only. Whether the artifact can be used in a ORDER BY clause in search - /// queries. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Sortable { - get { if ((_hasBits0 & 4) != 0) { return sortable_; } else { return false; } } - set { - _hasBits0 |= 4; - sortable_ = value; - } - } - /// Gets whether the "sortable" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSortable { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "sortable" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSortable() { - _hasBits0 &= ~4; - } - - /// Field number for the "selectable_with" field. - public const int SelectableWithFieldNumber = 25; - private static readonly pb::FieldCodec _repeated_selectableWith_codec - = pb::FieldCodec.ForString(202); - private readonly pbc::RepeatedField selectableWith_ = new pbc::RepeatedField(); - /// - /// Output only. The names of all resources, segments, and metrics that are selectable with - /// the described artifact. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SelectableWith { - get { return selectableWith_; } - } - - /// Field number for the "attribute_resources" field. - public const int AttributeResourcesFieldNumber = 26; - private static readonly pb::FieldCodec _repeated_attributeResources_codec - = pb::FieldCodec.ForString(210); - private readonly pbc::RepeatedField attributeResources_ = new pbc::RepeatedField(); - /// - /// Output only. The names of all resources that are selectable with the described - /// artifact. Fields from these resources do not segment metrics when included - /// in search queries. - /// - /// This field is only set for artifacts whose category is RESOURCE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AttributeResources { - get { return attributeResources_; } - } - - /// Field number for the "metrics" field. - public const int MetricsFieldNumber = 27; - private static readonly pb::FieldCodec _repeated_metrics_codec - = pb::FieldCodec.ForString(218); - private readonly pbc::RepeatedField metrics_ = new pbc::RepeatedField(); - /// - /// Output only. This field lists the names of all metrics that are selectable with the - /// described artifact when it is used in the FROM clause. - /// It is only set for artifacts whose category is RESOURCE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Metrics { - get { return metrics_; } - } - - /// Field number for the "segments" field. - public const int SegmentsFieldNumber = 28; - private static readonly pb::FieldCodec _repeated_segments_codec - = pb::FieldCodec.ForString(226); - private readonly pbc::RepeatedField segments_ = new pbc::RepeatedField(); - /// - /// Output only. This field lists the names of all artifacts, whether a segment or another - /// resource, that segment metrics when included in search queries and when the - /// described artifact is used in the FROM clause. It is only set for artifacts - /// whose category is RESOURCE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Segments { - get { return segments_; } - } - - /// Field number for the "enum_values" field. - public const int EnumValuesFieldNumber = 29; - private static readonly pb::FieldCodec _repeated_enumValues_codec - = pb::FieldCodec.ForString(234); - private readonly pbc::RepeatedField enumValues_ = new pbc::RepeatedField(); - /// - /// Output only. Values the artifact can assume if it is a field of type ENUM. - /// - /// This field is only set for artifacts of category SEGMENT or ATTRIBUTE. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField EnumValues { - get { return enumValues_; } - } - - /// Field number for the "data_type" field. - public const int DataTypeFieldNumber = 12; - private global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType dataType_ = global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified; - /// - /// Output only. This field determines the operators that can be used with the artifact - /// in WHERE clauses. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType DataType { - get { return dataType_; } - set { - dataType_ = value; - } - } - - /// Field number for the "type_url" field. - public const int TypeUrlFieldNumber = 30; - private string typeUrl_; - /// - /// Output only. The URL of proto describing the artifact's data type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TypeUrl { - get { return typeUrl_ ?? ""; } - set { - typeUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "type_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTypeUrl { - get { return typeUrl_ != null; } - } - /// Clears the value of the "type_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTypeUrl() { - typeUrl_ = null; - } - - /// Field number for the "is_repeated" field. - public const int IsRepeatedFieldNumber = 31; - private bool isRepeated_; - /// - /// Output only. Whether the field artifact is repeated. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsRepeated { - get { if ((_hasBits0 & 8) != 0) { return isRepeated_; } else { return false; } } - set { - _hasBits0 |= 8; - isRepeated_ = value; - } - } - /// Gets whether the "is_repeated" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIsRepeated { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "is_repeated" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIsRepeated() { - _hasBits0 &= ~8; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleAdsField); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleAdsField other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Name != other.Name) return false; - if (Category != other.Category) return false; - if (Selectable != other.Selectable) return false; - if (Filterable != other.Filterable) return false; - if (Sortable != other.Sortable) return false; - if(!selectableWith_.Equals(other.selectableWith_)) return false; - if(!attributeResources_.Equals(other.attributeResources_)) return false; - if(!metrics_.Equals(other.metrics_)) return false; - if(!segments_.Equals(other.segments_)) return false; - if(!enumValues_.Equals(other.enumValues_)) return false; - if (DataType != other.DataType) return false; - if (TypeUrl != other.TypeUrl) return false; - if (IsRepeated != other.IsRepeated) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (Category != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified) hash ^= Category.GetHashCode(); - if (HasSelectable) hash ^= Selectable.GetHashCode(); - if (HasFilterable) hash ^= Filterable.GetHashCode(); - if (HasSortable) hash ^= Sortable.GetHashCode(); - hash ^= selectableWith_.GetHashCode(); - hash ^= attributeResources_.GetHashCode(); - hash ^= metrics_.GetHashCode(); - hash ^= segments_.GetHashCode(); - hash ^= enumValues_.GetHashCode(); - if (DataType != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified) hash ^= DataType.GetHashCode(); - if (HasTypeUrl) hash ^= TypeUrl.GetHashCode(); - if (HasIsRepeated) hash ^= IsRepeated.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Category); - } - if (DataType != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified) { - output.WriteRawTag(96); - output.WriteEnum((int) DataType); - } - if (HasName) { - output.WriteRawTag(170, 1); - output.WriteString(Name); - } - if (HasSelectable) { - output.WriteRawTag(176, 1); - output.WriteBool(Selectable); - } - if (HasFilterable) { - output.WriteRawTag(184, 1); - output.WriteBool(Filterable); - } - if (HasSortable) { - output.WriteRawTag(192, 1); - output.WriteBool(Sortable); - } - selectableWith_.WriteTo(output, _repeated_selectableWith_codec); - attributeResources_.WriteTo(output, _repeated_attributeResources_codec); - metrics_.WriteTo(output, _repeated_metrics_codec); - segments_.WriteTo(output, _repeated_segments_codec); - enumValues_.WriteTo(output, _repeated_enumValues_codec); - if (HasTypeUrl) { - output.WriteRawTag(242, 1); - output.WriteString(TypeUrl); - } - if (HasIsRepeated) { - output.WriteRawTag(248, 1); - output.WriteBool(IsRepeated); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Category); - } - if (DataType != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified) { - output.WriteRawTag(96); - output.WriteEnum((int) DataType); - } - if (HasName) { - output.WriteRawTag(170, 1); - output.WriteString(Name); - } - if (HasSelectable) { - output.WriteRawTag(176, 1); - output.WriteBool(Selectable); - } - if (HasFilterable) { - output.WriteRawTag(184, 1); - output.WriteBool(Filterable); - } - if (HasSortable) { - output.WriteRawTag(192, 1); - output.WriteBool(Sortable); - } - selectableWith_.WriteTo(ref output, _repeated_selectableWith_codec); - attributeResources_.WriteTo(ref output, _repeated_attributeResources_codec); - metrics_.WriteTo(ref output, _repeated_metrics_codec); - segments_.WriteTo(ref output, _repeated_segments_codec); - enumValues_.WriteTo(ref output, _repeated_enumValues_codec); - if (HasTypeUrl) { - output.WriteRawTag(242, 1); - output.WriteString(TypeUrl); - } - if (HasIsRepeated) { - output.WriteRawTag(248, 1); - output.WriteBool(IsRepeated); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasName) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Category != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); - } - if (HasSelectable) { - size += 2 + 1; - } - if (HasFilterable) { - size += 2 + 1; - } - if (HasSortable) { - size += 2 + 1; - } - size += selectableWith_.CalculateSize(_repeated_selectableWith_codec); - size += attributeResources_.CalculateSize(_repeated_attributeResources_codec); - size += metrics_.CalculateSize(_repeated_metrics_codec); - size += segments_.CalculateSize(_repeated_segments_codec); - size += enumValues_.CalculateSize(_repeated_enumValues_codec); - if (DataType != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DataType); - } - if (HasTypeUrl) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(TypeUrl); - } - if (HasIsRepeated) { - size += 2 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleAdsField other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasName) { - Name = other.Name; - } - if (other.Category != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Unspecified) { - Category = other.Category; - } - if (other.HasSelectable) { - Selectable = other.Selectable; - } - if (other.HasFilterable) { - Filterable = other.Filterable; - } - if (other.HasSortable) { - Sortable = other.Sortable; - } - selectableWith_.Add(other.selectableWith_); - attributeResources_.Add(other.attributeResources_); - metrics_.Add(other.metrics_); - segments_.Add(other.segments_); - enumValues_.Add(other.enumValues_); - if (other.DataType != global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Unspecified) { - DataType = other.DataType; - } - if (other.HasTypeUrl) { - TypeUrl = other.TypeUrl; - } - if (other.HasIsRepeated) { - IsRepeated = other.IsRepeated; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory) input.ReadEnum(); - break; - } - case 96: { - DataType = (global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType) input.ReadEnum(); - break; - } - case 170: { - Name = input.ReadString(); - break; - } - case 176: { - Selectable = input.ReadBool(); - break; - } - case 184: { - Filterable = input.ReadBool(); - break; - } - case 192: { - Sortable = input.ReadBool(); - break; - } - case 202: { - selectableWith_.AddEntriesFrom(input, _repeated_selectableWith_codec); - break; - } - case 210: { - attributeResources_.AddEntriesFrom(input, _repeated_attributeResources_codec); - break; - } - case 218: { - metrics_.AddEntriesFrom(input, _repeated_metrics_codec); - break; - } - case 226: { - segments_.AddEntriesFrom(input, _repeated_segments_codec); - break; - } - case 234: { - enumValues_.AddEntriesFrom(input, _repeated_enumValues_codec); - break; - } - case 242: { - TypeUrl = input.ReadString(); - break; - } - case 248: { - IsRepeated = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Category = (global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory) input.ReadEnum(); - break; - } - case 96: { - DataType = (global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType) input.ReadEnum(); - break; - } - case 170: { - Name = input.ReadString(); - break; - } - case 176: { - Selectable = input.ReadBool(); - break; - } - case 184: { - Filterable = input.ReadBool(); - break; - } - case 192: { - Sortable = input.ReadBool(); - break; - } - case 202: { - selectableWith_.AddEntriesFrom(ref input, _repeated_selectableWith_codec); - break; - } - case 210: { - attributeResources_.AddEntriesFrom(ref input, _repeated_attributeResources_codec); - break; - } - case 218: { - metrics_.AddEntriesFrom(ref input, _repeated_metrics_codec); - break; - } - case 226: { - segments_.AddEntriesFrom(ref input, _repeated_segments_codec); - break; - } - case 234: { - enumValues_.AddEntriesFrom(ref input, _repeated_enumValues_codec); - break; - } - case 242: { - TypeUrl = input.ReadString(); - break; - } - case 248: { - IsRepeated = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldCategory.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldCategory.g.cs deleted file mode 100755 index 6f3724cda..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldCategory.g.cs +++ /dev/null @@ -1,250 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/google_ads_field_category.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/google_ads_field_category.proto - public static partial class GoogleAdsFieldCategoryReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/google_ads_field_category.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GoogleAdsFieldCategoryReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ29vZ2xlX2Fkc19m", - "aWVsZF9jYXRlZ29yeS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zIooBChpHb29nbGVBZHNGaWVsZENhdGVnb3J5RW51bSJsChZHb29n", - "bGVBZHNGaWVsZENhdGVnb3J5Eg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9X", - "ThABEgwKCFJFU09VUkNFEAISDQoJQVRUUklCVVRFEAMSCwoHU0VHTUVOVBAF", - "EgoKBk1FVFJJQxAGQvUBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQhtHb29nbGVBZHNGaWVsZENhdGVnb3J5UHJvdG9QAVpDZ29vZ2xl", - "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oC", - "Ikdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum), global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum that determines if the described artifact is a resource - /// or a field, and if it is a field, when it segments search queries. - /// - public sealed partial class GoogleAdsFieldCategoryEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleAdsFieldCategoryEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldCategoryReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFieldCategoryEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFieldCategoryEnum(GoogleAdsFieldCategoryEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFieldCategoryEnum Clone() { - return new GoogleAdsFieldCategoryEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleAdsFieldCategoryEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleAdsFieldCategoryEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleAdsFieldCategoryEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GoogleAdsFieldCategoryEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The category of the artifact. - /// - public enum GoogleAdsFieldCategory { - /// - /// Unspecified - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Unknown - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The described artifact is a resource. - /// - [pbr::OriginalName("RESOURCE")] Resource = 2, - /// - /// The described artifact is a field and is an attribute of a resource. - /// Including a resource attribute field in a query may segment the query if - /// the resource to which it is attributed segments the resource found in - /// the FROM clause. - /// - [pbr::OriginalName("ATTRIBUTE")] Attribute = 3, - /// - /// The described artifact is a field and always segments search queries. - /// - [pbr::OriginalName("SEGMENT")] Segment = 5, - /// - /// The described artifact is a field and is a metric. It never segments - /// search queries. - /// - [pbr::OriginalName("METRIC")] Metric = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldDataType.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldDataType.g.cs deleted file mode 100755 index 83c9acd9c..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldDataType.g.cs +++ /dev/null @@ -1,300 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/google_ads_field_data_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/google_ads_field_data_type.proto - public static partial class GoogleAdsFieldDataTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/google_ads_field_data_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GoogleAdsFieldDataTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ29vZ2xlX2Fkc19m", - "aWVsZF9kYXRhX3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyLbAQoaR29vZ2xlQWRzRmllbGREYXRhVHlwZUVudW0ivAEKFkdv", - "b2dsZUFkc0ZpZWxkRGF0YVR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktO", - "T1dOEAESCwoHQk9PTEVBThACEggKBERBVEUQAxIKCgZET1VCTEUQBBIICgRF", - "TlVNEAUSCQoFRkxPQVQQBhIJCgVJTlQzMhAHEgkKBUlOVDY0EAgSCwoHTUVT", - "U0FHRRAJEhEKDVJFU09VUkNFX05BTUUQChIKCgZTVFJJTkcQCxIKCgZVSU5U", - "NjQQDEL1AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0Ib", - "R29vZ2xlQWRzRmllbGREYXRhVHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51", - "bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51", - "bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container holding the various data types. - /// - public sealed partial class GoogleAdsFieldDataTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleAdsFieldDataTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GoogleAdsFieldDataTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFieldDataTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFieldDataTypeEnum(GoogleAdsFieldDataTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsFieldDataTypeEnum Clone() { - return new GoogleAdsFieldDataTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleAdsFieldDataTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleAdsFieldDataTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleAdsFieldDataTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GoogleAdsFieldDataTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// These are the various types a GoogleAdsService artifact may take on. - /// - public enum GoogleAdsFieldDataType { - /// - /// Unspecified - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Unknown - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Maps to google.protobuf.BoolValue - /// - /// Applicable operators: =, != - /// - [pbr::OriginalName("BOOLEAN")] Boolean = 2, - /// - /// Maps to google.protobuf.StringValue. It can be compared using the set of - /// operators specific to dates however. - /// - /// Applicable operators: =, <, >, <=, >=, BETWEEN, DURING, and IN - /// - [pbr::OriginalName("DATE")] Date = 3, - /// - /// Maps to google.protobuf.DoubleValue - /// - /// Applicable operators: =, !=, <, >, IN, NOT IN - /// - [pbr::OriginalName("DOUBLE")] Double = 4, - /// - /// Maps to an enum. It's specific definition can be found at type_url. - /// - /// Applicable operators: =, !=, IN, NOT IN - /// - [pbr::OriginalName("ENUM")] Enum = 5, - /// - /// Maps to google.protobuf.FloatValue - /// - /// Applicable operators: =, !=, <, >, IN, NOT IN - /// - [pbr::OriginalName("FLOAT")] Float = 6, - /// - /// Maps to google.protobuf.Int32Value - /// - /// Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - /// - [pbr::OriginalName("INT32")] Int32 = 7, - /// - /// Maps to google.protobuf.Int64Value - /// - /// Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - /// - [pbr::OriginalName("INT64")] Int64 = 8, - /// - /// Maps to a protocol buffer message type. The data type's details can be - /// found in type_url. - /// - /// No operators work with MESSAGE fields. - /// - [pbr::OriginalName("MESSAGE")] Message = 9, - /// - /// Maps to google.protobuf.StringValue. Represents the resource name - /// (unique id) of a resource or one of its foreign keys. - /// - /// No operators work with RESOURCE_NAME fields. - /// - [pbr::OriginalName("RESOURCE_NAME")] ResourceName = 10, - /// - /// Maps to google.protobuf.StringValue. - /// - /// Applicable operators: =, !=, LIKE, NOT LIKE, IN, NOT IN - /// - [pbr::OriginalName("STRING")] String = 11, - /// - /// Maps to google.protobuf.UInt64Value - /// - /// Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - /// - [pbr::OriginalName("UINT64")] Uint64 = 12, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldResourceNames.g.cs deleted file mode 100755 index 3d701b4dd..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldResourceNames.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the GoogleAdsField resource. - public sealed partial class GoogleAdsFieldName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern googleAdsFields/{google_ads_field}. - GoogleAdsField = 1, - } - - private static gax::PathTemplate s_googleAdsField = new gax::PathTemplate("googleAdsFields/{google_ads_field}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static GoogleAdsFieldName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new GoogleAdsFieldName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern googleAdsFields/{google_ads_field}. - /// - /// The GoogleAdsField ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static GoogleAdsFieldName FromGoogleAdsField(string googleAdsFieldId) => - new GoogleAdsFieldName(ResourceNameType.GoogleAdsField, googleAdsFieldId: gax::GaxPreconditions.CheckNotNullOrEmpty(googleAdsFieldId, nameof(googleAdsFieldId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// googleAdsFields/{google_ads_field}. - /// - /// The GoogleAdsField ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// googleAdsFields/{google_ads_field}. - /// - public static string Format(string googleAdsFieldId) => FormatGoogleAdsField(googleAdsFieldId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// googleAdsFields/{google_ads_field}. - /// - /// The GoogleAdsField ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// googleAdsFields/{google_ads_field}. - /// - public static string FormatGoogleAdsField(string googleAdsFieldId) => - s_googleAdsField.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(googleAdsFieldId, nameof(googleAdsFieldId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// googleAdsFields/{google_ads_field} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static GoogleAdsFieldName Parse(string googleAdsFieldName) => Parse(googleAdsFieldName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// googleAdsFields/{google_ads_field} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static GoogleAdsFieldName Parse(string googleAdsFieldName, bool allowUnparsed) => - TryParse(googleAdsFieldName, allowUnparsed, out GoogleAdsFieldName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// googleAdsFields/{google_ads_field} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string googleAdsFieldName, out GoogleAdsFieldName result) => - TryParse(googleAdsFieldName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// googleAdsFields/{google_ads_field} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string googleAdsFieldName, bool allowUnparsed, out GoogleAdsFieldName result) - { - gax::GaxPreconditions.CheckNotNull(googleAdsFieldName, nameof(googleAdsFieldName)); - gax::TemplatedResourceName resourceName; - if (s_googleAdsField.TryParseName(googleAdsFieldName, out resourceName)) - { - result = FromGoogleAdsField(resourceName[0]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(googleAdsFieldName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private GoogleAdsFieldName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string googleAdsFieldId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - GoogleAdsFieldId = googleAdsFieldId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// googleAdsFields/{google_ads_field} - /// - /// The GoogleAdsField ID. Must not be null or empty. - public GoogleAdsFieldName(string googleAdsFieldId) : this(ResourceNameType.GoogleAdsField, googleAdsFieldId: gax::GaxPreconditions.CheckNotNullOrEmpty(googleAdsFieldId, nameof(googleAdsFieldId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The GoogleAdsField ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string GoogleAdsFieldId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.GoogleAdsField: return s_googleAdsField.Expand(GoogleAdsFieldId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as GoogleAdsFieldName); - - /// - public bool Equals(GoogleAdsFieldName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(GoogleAdsFieldName a, GoogleAdsFieldName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(GoogleAdsFieldName a, GoogleAdsFieldName b) => !(a == b); - } - - public partial class GoogleAdsField - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::GoogleAdsFieldName ResourceNameAsGoogleAdsFieldName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::GoogleAdsFieldName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::GoogleAdsFieldName GoogleAdsFieldName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::GoogleAdsFieldName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldService.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldService.g.cs deleted file mode 100755 index ed3c9f44e..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldService.g.cs +++ /dev/null @@ -1,815 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/google_ads_field_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/google_ads_field_service.proto - public static partial class GoogleAdsFieldServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/google_ads_field_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GoogleAdsFieldServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZ29vZ2xlX2Fk", - "c19maWVsZF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMaOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJj", - "ZXMvZ29vZ2xlX2Fkc19maWVsZC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0", - "aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dvb2dsZS9h", - "cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2Uu", - "cHJvdG8iYgoYR2V0R29vZ2xlQWRzRmllbGRSZXF1ZXN0EkYKDXJlc291cmNl", - "X25hbWUYASABKAlCL+BBAvpBKQonZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0dvb2dsZUFkc0ZpZWxkIlkKHFNlYXJjaEdvb2dsZUFkc0ZpZWxkc1JlcXVl", - "c3QSEgoFcXVlcnkYASABKAlCA+BBAhISCgpwYWdlX3Rva2VuGAIgASgJEhEK", - "CXBhZ2Vfc2l6ZRgDIAEoBSKaAQodU2VhcmNoR29vZ2xlQWRzRmllbGRzUmVz", - "cG9uc2USQwoHcmVzdWx0cxgBIAMoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuR29vZ2xlQWRzRmllbGQSFwoPbmV4dF9wYWdlX3Rv", - "a2VuGAIgASgJEhsKE3RvdGFsX3Jlc3VsdHNfY291bnQYAyABKAMy8gMKFUdv", - "b2dsZUFkc0ZpZWxkU2VydmljZRLEAQoRR2V0R29vZ2xlQWRzRmllbGQSOy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuR2V0R29vZ2xlQWRz", - "RmllbGRSZXF1ZXN0GjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5Hb29nbGVBZHNGaWVsZCI+gtPkkwIoEiYvdjEyL3tyZXNvdXJjZV9u", - "YW1lPWdvb2dsZUFkc0ZpZWxkcy8qfdpBDXJlc291cmNlX25hbWUSygEKFVNl", - "YXJjaEdvb2dsZUFkc0ZpZWxkcxI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5TZWFyY2hHb29nbGVBZHNGaWVsZHNSZXF1ZXN0GkAuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLlNlYXJjaEdvb2dsZUFk", - "c0ZpZWxkc1Jlc3BvbnNlIi6C0+STAiAiGy92MTIvZ29vZ2xlQWRzRmllbGRz", - "OnNlYXJjaDoBKtpBBXF1ZXJ5GkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNC", - "hgIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCGkdv", - "b2dsZUFkc0ZpZWxkU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3Jn", - "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2Vydmlj", - "ZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "U2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPq", - "AiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90", - "bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsFieldReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest), global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest), global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest.Parser, new[]{ "Query", "PageToken", "PageSize" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsResponse), global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsResponse.Parser, new[]{ "Results", "NextPageToken", "TotalResultsCount" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [GoogleAdsFieldService.GetGoogleAdsField][google.ads.googleads.v12.services.GoogleAdsFieldService.GetGoogleAdsField]. - /// - public sealed partial class GetGoogleAdsFieldRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetGoogleAdsFieldRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsFieldServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGoogleAdsFieldRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGoogleAdsFieldRequest(GetGoogleAdsFieldRequest other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GetGoogleAdsFieldRequest Clone() { - return new GetGoogleAdsFieldRequest(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Required. The resource name of the field to get. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GetGoogleAdsFieldRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GetGoogleAdsFieldRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GetGoogleAdsFieldRequest other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v12.services.GoogleAdsFieldService.SearchGoogleAdsFields]. - /// - public sealed partial class SearchGoogleAdsFieldsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchGoogleAdsFieldsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsFieldServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsFieldsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsFieldsRequest(SearchGoogleAdsFieldsRequest other) : this() { - query_ = other.query_; - pageToken_ = other.pageToken_; - pageSize_ = other.pageSize_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsFieldsRequest Clone() { - return new SearchGoogleAdsFieldsRequest(this); - } - - /// Field number for the "query" field. - public const int QueryFieldNumber = 1; - private string query_ = ""; - /// - /// Required. The query string. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } - set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 2; - private string pageToken_ = ""; - /// - /// Token of the page to retrieve. If not specified, the first page of - /// results will be returned. Use the value obtained from `next_page_token` - /// in the previous response in order to request the next page of results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 3; - private int pageSize_; - /// - /// Number of elements to retrieve in a single page. - /// When too large a page is requested, the server may decide to further - /// limit the number of returned resources. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchGoogleAdsFieldsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchGoogleAdsFieldsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Query != other.Query) return false; - if (PageToken != other.PageToken) return false; - if (PageSize != other.PageSize) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Query.Length != 0) hash ^= Query.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Query.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Query); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Query.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Query); - } - if (PageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(24); - output.WriteInt32(PageSize); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchGoogleAdsFieldsRequest other) { - if (other == null) { - return; - } - if (other.Query.Length != 0) { - Query = other.Query; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Query = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Query = input.ReadString(); - break; - } - case 18: { - PageToken = input.ReadString(); - break; - } - case 24: { - PageSize = input.ReadInt32(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v12.services.GoogleAdsFieldService.SearchGoogleAdsFields]. - /// - public sealed partial class SearchGoogleAdsFieldsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchGoogleAdsFieldsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsFieldServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsFieldsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsFieldsResponse(SearchGoogleAdsFieldsResponse other) : this() { - results_ = other.results_.Clone(); - nextPageToken_ = other.nextPageToken_; - totalResultsCount_ = other.totalResultsCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsFieldsResponse Clone() { - return new SearchGoogleAdsFieldsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsField.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// The list of fields that matched the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Pagination token used to retrieve the next page of results. Pass the - /// content of this string as the `page_token` attribute of the next request. - /// `next_page_token` is not returned for the last page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "total_results_count" field. - public const int TotalResultsCountFieldNumber = 3; - private long totalResultsCount_; - /// - /// Total number of results that match the query ignoring the LIMIT clause. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalResultsCount { - get { return totalResultsCount_; } - set { - totalResultsCount_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchGoogleAdsFieldsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchGoogleAdsFieldsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (NextPageToken != other.NextPageToken) return false; - if (TotalResultsCount != other.TotalResultsCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (TotalResultsCount != 0L) hash ^= TotalResultsCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalResultsCount != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalResultsCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalResultsCount != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalResultsCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (TotalResultsCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalResultsCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchGoogleAdsFieldsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - if (other.TotalResultsCount != 0L) { - TotalResultsCount = other.TotalResultsCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalResultsCount = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalResultsCount = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceClient.g.cs deleted file mode 100755 index 153c93949..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceClient.g.cs +++ /dev/null @@ -1,664 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class GoogleAdsFieldServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static GoogleAdsFieldServiceSettings GetDefault() => new GoogleAdsFieldServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public GoogleAdsFieldServiceSettings() - { - } - - private GoogleAdsFieldServiceSettings(GoogleAdsFieldServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - GetGoogleAdsFieldSettings = existing.GetGoogleAdsFieldSettings; - SearchGoogleAdsFieldsSettings = existing.SearchGoogleAdsFieldsSettings; - OnCopy(existing); - } - - partial void OnCopy(GoogleAdsFieldServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// GoogleAdsFieldServiceClient.GetGoogleAdsField and - /// GoogleAdsFieldServiceClient.GetGoogleAdsFieldAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GetGoogleAdsFieldSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// GoogleAdsFieldServiceClient.SearchGoogleAdsFields and - /// GoogleAdsFieldServiceClient.SearchGoogleAdsFieldsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings SearchGoogleAdsFieldsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public GoogleAdsFieldServiceSettings Clone() => new GoogleAdsFieldServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class GoogleAdsFieldServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public GoogleAdsFieldServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public GoogleAdsFieldServiceClientBuilder() : base(GoogleAdsFieldServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref GoogleAdsFieldServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override GoogleAdsFieldServiceClient Build() - { - GoogleAdsFieldServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private GoogleAdsFieldServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return GoogleAdsFieldServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return GoogleAdsFieldServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => GoogleAdsFieldServiceClient.ChannelPool; - } - - /// GoogleAdsFieldService client wrapper, for convenient use. - /// - /// Service to fetch Google Ads API fields. - /// - public abstract partial class GoogleAdsFieldServiceClient - { - /// - /// The default endpoint for the GoogleAdsFieldService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default GoogleAdsFieldService scopes. - /// - /// The default GoogleAdsFieldService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(GoogleAdsFieldService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new GoogleAdsFieldServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static GoogleAdsFieldServiceClient Create() => new GoogleAdsFieldServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static GoogleAdsFieldServiceClient Create(grpccore::CallInvoker callInvoker, GoogleAdsFieldServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - GoogleAdsFieldService.GoogleAdsFieldServiceClient grpcClient = new GoogleAdsFieldService.GoogleAdsFieldServiceClient(callInvoker); - return new GoogleAdsFieldServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC GoogleAdsFieldService client - public virtual GoogleAdsFieldService.GoogleAdsFieldServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual gagvr::GoogleAdsField GetGoogleAdsField(GetGoogleAdsFieldRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetGoogleAdsFieldAsync(GetGoogleAdsFieldRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetGoogleAdsFieldAsync(GetGoogleAdsFieldRequest request, st::CancellationToken cancellationToken) => - GetGoogleAdsFieldAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the field to get. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual gagvr::GoogleAdsField GetGoogleAdsField(string resourceName, gaxgrpc::CallSettings callSettings = null) => - GetGoogleAdsField(new GetGoogleAdsFieldRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the field to get. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetGoogleAdsFieldAsync(string resourceName, gaxgrpc::CallSettings callSettings = null) => - GetGoogleAdsFieldAsync(new GetGoogleAdsFieldRequest - { - ResourceName = gax::GaxPreconditions.CheckNotNullOrEmpty(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the field to get. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetGoogleAdsFieldAsync(string resourceName, st::CancellationToken cancellationToken) => - GetGoogleAdsFieldAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the field to get. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual gagvr::GoogleAdsField GetGoogleAdsField(gagvr::GoogleAdsFieldName resourceName, gaxgrpc::CallSettings callSettings = null) => - GetGoogleAdsField(new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the field to get. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GetGoogleAdsFieldAsync(gagvr::GoogleAdsFieldName resourceName, gaxgrpc::CallSettings callSettings = null) => - GetGoogleAdsFieldAsync(new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gax::GaxPreconditions.CheckNotNull(resourceName, nameof(resourceName)), - }, callSettings); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the field to get. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GetGoogleAdsFieldAsync(gagvr::GoogleAdsFieldName resourceName, st::CancellationToken cancellationToken) => - GetGoogleAdsFieldAsync(resourceName, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable SearchGoogleAdsFields(SearchGoogleAdsFieldsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable SearchGoogleAdsFieldsAsync(SearchGoogleAdsFieldsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The query string. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable SearchGoogleAdsFields(string query, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - SearchGoogleAdsFields(new SearchGoogleAdsFieldsRequest - { - Query = gax::GaxPreconditions.CheckNotNullOrEmpty(query, nameof(query)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The query string. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable SearchGoogleAdsFieldsAsync(string query, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - SearchGoogleAdsFieldsAsync(new SearchGoogleAdsFieldsRequest - { - Query = gax::GaxPreconditions.CheckNotNullOrEmpty(query, nameof(query)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - } - - /// GoogleAdsFieldService client wrapper implementation, for convenient use. - /// - /// Service to fetch Google Ads API fields. - /// - public sealed partial class GoogleAdsFieldServiceClientImpl : GoogleAdsFieldServiceClient - { - private readonly gaxgrpc::ApiCall _callGetGoogleAdsField; - - private readonly gaxgrpc::ApiCall _callSearchGoogleAdsFields; - - /// - /// Constructs a client wrapper for the GoogleAdsFieldService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public GoogleAdsFieldServiceClientImpl(GoogleAdsFieldService.GoogleAdsFieldServiceClient grpcClient, GoogleAdsFieldServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - GoogleAdsFieldServiceSettings effectiveSettings = settings ?? GoogleAdsFieldServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callGetGoogleAdsField = clientHelper.BuildApiCall("GetGoogleAdsField", grpcClient.GetGoogleAdsFieldAsync, grpcClient.GetGoogleAdsField, effectiveSettings.GetGoogleAdsFieldSettings).WithGoogleRequestParam("resource_name", request => request.ResourceName); - Modify_ApiCall(ref _callGetGoogleAdsField); - Modify_GetGoogleAdsFieldApiCall(ref _callGetGoogleAdsField); - _callSearchGoogleAdsFields = clientHelper.BuildApiCall("SearchGoogleAdsFields", grpcClient.SearchGoogleAdsFieldsAsync, grpcClient.SearchGoogleAdsFields, effectiveSettings.SearchGoogleAdsFieldsSettings); - Modify_ApiCall(ref _callSearchGoogleAdsFields); - Modify_SearchGoogleAdsFieldsApiCall(ref _callSearchGoogleAdsFields); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_GetGoogleAdsFieldApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_SearchGoogleAdsFieldsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(GoogleAdsFieldService.GoogleAdsFieldServiceClient grpcClient, GoogleAdsFieldServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC GoogleAdsFieldService client - public override GoogleAdsFieldService.GoogleAdsFieldServiceClient GrpcClient { get; } - - partial void Modify_GetGoogleAdsFieldRequest(ref GetGoogleAdsFieldRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_SearchGoogleAdsFieldsRequest(ref SearchGoogleAdsFieldsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override gagvr::GoogleAdsField GetGoogleAdsField(GetGoogleAdsFieldRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetGoogleAdsFieldRequest(ref request, ref callSettings); - return _callGetGoogleAdsField.Sync(request, callSettings); - } - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GetGoogleAdsFieldAsync(GetGoogleAdsFieldRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GetGoogleAdsFieldRequest(ref request, ref callSettings); - return _callGetGoogleAdsField.Async(request, callSettings); - } - - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable SearchGoogleAdsFields(SearchGoogleAdsFieldsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchGoogleAdsFieldsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callSearchGoogleAdsFields, request, callSettings); - } - - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable SearchGoogleAdsFieldsAsync(SearchGoogleAdsFieldsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchGoogleAdsFieldsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callSearchGoogleAdsFields, request, callSettings); - } - } - - public partial class SearchGoogleAdsFieldsRequest : gaxgrpc::IPageRequest - { - } - - public partial class SearchGoogleAdsFieldsResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Results.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceGrpc.g.cs deleted file mode 100755 index fa8364ba3..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceGrpc.g.cs +++ /dev/null @@ -1,366 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/google_ads_field_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to fetch Google Ads API fields. - /// - public static partial class GoogleAdsFieldService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.GoogleAdsFieldService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GetGoogleAdsFieldRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_resources_GoogleAdsField = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsField.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsFieldsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsFieldsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GetGoogleAdsField = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GetGoogleAdsField", - __Marshaller_google_ads_googleads_v12_services_GetGoogleAdsFieldRequest, - __Marshaller_google_ads_googleads_v12_resources_GoogleAdsField); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SearchGoogleAdsFields = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SearchGoogleAdsFields", - __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsFieldsRequest, - __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsFieldsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsFieldServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of GoogleAdsFieldService - [grpc::BindServiceMethod(typeof(GoogleAdsFieldService), "BindService")] - public abstract partial class GoogleAdsFieldServiceBase - { - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GetGoogleAdsField(global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SearchGoogleAdsFields(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for GoogleAdsFieldService - public partial class GoogleAdsFieldServiceClient : grpc::ClientBase - { - /// Creates a new client for GoogleAdsFieldService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GoogleAdsFieldServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for GoogleAdsFieldService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GoogleAdsFieldServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GoogleAdsFieldServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GoogleAdsFieldServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsField GetGoogleAdsField(global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGoogleAdsField(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Resources.GoogleAdsField GetGoogleAdsField(global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GetGoogleAdsField, null, options, request); - } - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGoogleAdsFieldAsync(global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GetGoogleAdsFieldAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns just the requested field. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GetGoogleAdsFieldAsync(global::Google.Ads.GoogleAds.V12.Services.GetGoogleAdsFieldRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GetGoogleAdsField, null, options, request); - } - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsResponse SearchGoogleAdsFields(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchGoogleAdsFields(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsResponse SearchGoogleAdsFields(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SearchGoogleAdsFields, null, options, request); - } - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchGoogleAdsFieldsAsync(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchGoogleAdsFieldsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all fields that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchGoogleAdsFieldsAsync(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsFieldsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SearchGoogleAdsFields, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override GoogleAdsFieldServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new GoogleAdsFieldServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(GoogleAdsFieldServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_GetGoogleAdsField, serviceImpl.GetGoogleAdsField) - .AddMethod(__Method_SearchGoogleAdsFields, serviceImpl.SearchGoogleAdsFields).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, GoogleAdsFieldServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_GetGoogleAdsField, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGoogleAdsField)); - serviceBinder.AddMethod(__Method_SearchGoogleAdsFields, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SearchGoogleAdsFields)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceResourceNames.g.cs deleted file mode 100755 index fa456ef56..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsFieldServiceResourceNames.g.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class GetGoogleAdsFieldRequest - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::GoogleAdsFieldName ResourceNameAsGoogleAdsFieldName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::GoogleAdsFieldName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsService.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsService.g.cs deleted file mode 100755 index f2a1330b4..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsService.g.cs +++ /dev/null @@ -1,19622 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/google_ads_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/google_ads_service.proto - public static partial class GoogleAdsServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/google_ads_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GoogleAdsServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvZ29vZ2xlX2Fk", - "c19zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMaLWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vbWV0cmlj", - "cy5wcm90bxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9zZWdt", - "ZW50cy5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL3Jl", - "c3BvbnNlX2NvbnRlbnRfdHlwZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL2VudW1zL3N1bW1hcnlfcm93X3NldHRpbmcucHJvdG8aRGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYWNjZXNzaWJsZV9iaWRk", - "aW5nX3N0cmF0ZWd5LnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL2FjY291bnRfYnVkZ2V0LnByb3RvGkBnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzL2FjY291bnRfYnVkZ2V0X3Byb3Bvc2Fs", - "LnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fj", - "Y291bnRfbGluay5wcm90bxoxZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcy9hZF9ncm91cC5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3Jlc291cmNlcy9hZF9ncm91cF9hZC5wcm90bxpLZ29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjEyL3Jlc291cmNlcy9hZF9ncm91cF9hZF9hc3NldF9jb21i", - "aW5hdGlvbl92aWV3LnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL2FkX2dyb3VwX2FkX2Fzc2V0X3ZpZXcucHJvdG8aOmdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYWRfZ3JvdXBfYWRfbGFi", - "ZWwucHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMv", - "YWRfZ3JvdXBfYXNzZXQucHJvdG8aO2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXMvYWRfZ3JvdXBfYXNzZXRfc2V0LnByb3RvGj9nb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3VwX2F1ZGllbmNl", - "X3ZpZXcucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJj", - "ZXMvYWRfZ3JvdXBfYmlkX21vZGlmaWVyLnByb3RvGjtnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3VwX2NyaXRlcmlvbi5wcm90", - "bxpGZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9hZF9ncm91", - "cF9jcml0ZXJpb25fY3VzdG9taXplci5wcm90bxpBZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9hZF9ncm91cF9jcml0ZXJpb25fbGFiZWwu", - "cHJvdG8aRmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYWRf", - "Z3JvdXBfY3JpdGVyaW9uX3NpbXVsYXRpb24ucHJvdG8aPGdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYWRfZ3JvdXBfY3VzdG9taXplci5w", - "cm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9hZF9n", - "cm91cF9leHRlbnNpb25fc2V0dGluZy5wcm90bxo2Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9hZF9ncm91cF9mZWVkLnByb3RvGjdnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX2dyb3VwX2xhYmVs", - "LnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fk", - "X2dyb3VwX3NpbXVsYXRpb24ucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXMvYWRfcGFyYW1ldGVyLnByb3RvGjlnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2FkX3NjaGVkdWxlX3ZpZXcucHJv", - "dG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYWdlX3Jh", - "bmdlX3ZpZXcucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvYXNzZXQucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMvYXNzZXRfZmllbGRfdHlwZV92aWV3LnByb3RvGjRnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dyb3VwLnByb3Rv", - "Gjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dy", - "b3VwX2Fzc2V0LnByb3RvGklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL2Fzc2V0X2dyb3VwX2xpc3RpbmdfZ3JvdXBfZmlsdGVyLnByb3Rv", - "Gkdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fzc2V0X2dy", - "b3VwX3Byb2R1Y3RfZ3JvdXBfdmlldy5wcm90bxo7Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9hc3NldF9ncm91cF9zaWduYWwucHJvdG8a", - "Mmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvYXNzZXRfc2V0", - "LnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2Fz", - "c2V0X3NldF9hc3NldC5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9hc3NldF9zZXRfdHlwZV92aWV3LnByb3RvGjFnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2F1ZGllbmNlLnByb3RvGjJn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2JhdGNoX2pvYi5w", - "cm90bxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9iaWRk", - "aW5nX2RhdGFfZXhjbHVzaW9uLnByb3RvGkdnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2JpZGRpbmdfc2Vhc29uYWxpdHlfYWRqdXN0bWVu", - "dC5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9i", - "aWRkaW5nX3N0cmF0ZWd5LnByb3RvGkRnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvcmVzb3VyY2VzL2JpZGRpbmdfc3RyYXRlZ3lfc2ltdWxhdGlvbi5wcm90", - "bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9iaWxsaW5n", - "X3NldHVwLnByb3RvGjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3Vy", - "Y2VzL2NhbGxfdmlldy5wcm90bxoxZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9jYW1wYWlnbi5wcm90bxo3Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9hc3NldC5wcm90bxo7Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9hc3NldF9z", - "ZXQucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMv", - "Y2FtcGFpZ25fYXVkaWVuY2Vfdmlldy5wcm90bxo+Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9iaWRfbW9kaWZpZXIucHJv", - "dG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY2FtcGFp", - "Z25fYnVkZ2V0LnByb3RvGkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL2NhbXBhaWduX2NvbnZlcnNpb25fZ29hbC5wcm90bxo7Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9jcml0ZXJp", - "b24ucHJvdG8aRmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMv", - "Y2FtcGFpZ25fY3JpdGVyaW9uX3NpbXVsYXRpb24ucHJvdG8aPGdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY2FtcGFpZ25fY3VzdG9taXpl", - "ci5wcm90bxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9j", - "YW1wYWlnbl9kcmFmdC5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9jYW1wYWlnbl9leHRlbnNpb25fc2V0dGluZy5wcm90bxo2", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jYW1wYWlnbl9m", - "ZWVkLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "L2NhbXBhaWduX2dyb3VwLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvcmVzb3VyY2VzL2NhbXBhaWduX2xhYmVsLnByb3RvGjxnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhbXBhaWduX3NoYXJlZF9zZXQu", - "cHJvdG8aPGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY2Ft", - "cGFpZ25fc2ltdWxhdGlvbi5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3Jlc291cmNlcy9jYXJyaWVyX2NvbnN0YW50LnByb3RvGjVnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NoYW5nZV9ldmVudC5wcm90", - "bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jaGFuZ2Vf", - "c3RhdHVzLnByb3RvGjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3Vy", - "Y2VzL2NsaWNrX3ZpZXcucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXMvY29tYmluZWRfYXVkaWVuY2UucHJvdG8aOmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY29udmVyc2lvbl9hY3Rpb24u", - "cHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY29u", - "dmVyc2lvbl9jdXN0b21fdmFyaWFibGUucHJvdG8aSGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvY29udmVyc2lvbl9nb2FsX2NhbXBhaWdu", - "X2NvbmZpZy5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy9jb252ZXJzaW9uX3ZhbHVlX3J1bGUucHJvdG8aQmdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY29udmVyc2lvbl92YWx1ZV9ydWxl", - "X3NldC5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNl", - "cy9jdXJyZW5jeV9jb25zdGFudC5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcy9jdXN0b21fYXVkaWVuY2UucHJvdG8aP2dvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tX2NvbnZlcnNp", - "b25fZ29hbC5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy9jdXN0b21faW50ZXJlc3QucHJvdG8aMWdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tZXIucHJvdG8aN2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tZXJfYXNzZXQucHJvdG8a", - "O2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tZXJf", - "YXNzZXRfc2V0LnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL2N1c3RvbWVyX2NsaWVudC5wcm90bxo9Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9jdXN0b21lcl9jbGllbnRfbGluay5wcm90", - "bxpBZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jdXN0b21l", - "cl9jb252ZXJzaW9uX2dvYWwucHJvdG8aPGdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXMvY3VzdG9tZXJfY3VzdG9taXplci5wcm90bxpDZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jdXN0b21lcl9leHRl", - "bnNpb25fc2V0dGluZy5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9jdXN0b21lcl9mZWVkLnByb3RvGjdnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVyX2xhYmVsLnByb3RvGj5n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2N1c3RvbWVyX21h", - "bmFnZXJfbGluay5wcm90bxpEZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcy9jdXN0b21lcl9uZWdhdGl2ZV9jcml0ZXJpb24ucHJvdG8aPWdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvY3VzdG9tZXJfdXNl", - "cl9hY2Nlc3MucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvY3VzdG9tZXJfdXNlcl9hY2Nlc3NfaW52aXRhdGlvbi5wcm90bxo9", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9jdXN0b21pemVy", - "X2F0dHJpYnV0ZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcy9kZXRhaWxfcGxhY2VtZW50X3ZpZXcucHJvdG8aPWdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvZGV0YWlsZWRfZGVtb2dyYXBo", - "aWMucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMv", - "ZGlzcGxheV9rZXl3b3JkX3ZpZXcucHJvdG8aNmdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9yZXNvdXJjZXMvZGlzdGFuY2Vfdmlldy5wcm90bxo4Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9kb21haW5fY2F0ZWdvcnku", - "cHJvdG8aTGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvZHlu", - "YW1pY19zZWFyY2hfYWRzX3NlYXJjaF90ZXJtX3ZpZXcucHJvdG8aQ2dvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvZXhwYW5kZWRfbGFuZGlu", - "Z19wYWdlX3ZpZXcucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMvZXhwZXJpbWVudC5wcm90bxo3Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcy9leHBlcmltZW50X2FybS5wcm90bxo8Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9leHRlbnNpb25fZmVlZF9p", - "dGVtLnByb3RvGi1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "L2ZlZWQucHJvdG8aMmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJj", - "ZXMvZmVlZF9pdGVtLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL2ZlZWRfaXRlbV9zZXQucHJvdG8aO2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvZmVlZF9pdGVtX3NldF9saW5rLnByb3Rv", - "Gjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ZlZWRfaXRl", - "bV90YXJnZXQucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvZmVlZF9tYXBwaW5nLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2ZlZWRfcGxhY2Vob2xkZXJfdmlldy5wcm90bxo0", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9nZW5kZXJfdmll", - "dy5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9n", - "ZW9fdGFyZ2V0X2NvbnN0YW50LnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2dlb2dyYXBoaWNfdmlldy5wcm90bxo9Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9ncm91cF9wbGFjZW1lbnRf", - "dmlldy5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNl", - "cy9ob3RlbF9ncm91cF92aWV3LnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2hvdGVsX3BlcmZvcm1hbmNlX3ZpZXcucHJvdG8a", - "PWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvaG90ZWxfcmVj", - "b25jaWxpYXRpb24ucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMvaW5jb21lX3JhbmdlX3ZpZXcucHJvdG8aNWdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMva2V5d29yZF9wbGFuLnByb3RvGj5n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRfcGxh", - "bl9hZF9ncm91cC5wcm90bxpGZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcy9rZXl3b3JkX3BsYW5fYWRfZ3JvdXBfa2V5d29yZC5wcm90bxo+", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9rZXl3b3JkX3Bs", - "YW5fY2FtcGFpZ24ucHJvdG8aRmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMva2V5d29yZF9wbGFuX2NhbXBhaWduX2tleXdvcmQucHJvdG8a", - "P2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMva2V5d29yZF90", - "aGVtZV9jb25zdGFudC5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3Jlc291cmNlcy9rZXl3b3JkX3ZpZXcucHJvdG8aLmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvbGFiZWwucHJvdG8aOmdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvbGFuZGluZ19wYWdlX3ZpZXcucHJv", - "dG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvbGFuZ3Vh", - "Z2VfY29uc3RhbnQucHJvdG8aQmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMvbGVhZF9mb3JtX3N1Ym1pc3Npb25fZGF0YS5wcm90bxozZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9saWZlX2V2ZW50LnBy", - "b3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2xvY2F0", - "aW9uX3ZpZXcucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvbWFuYWdlZF9wbGFjZW1lbnRfdmlldy5wcm90bxozZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9tZWRpYV9maWxlLnByb3RvGkVn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL21vYmlsZV9hcHBf", - "Y2F0ZWdvcnlfY29uc3RhbnQucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9yZXNvdXJjZXMvbW9iaWxlX2RldmljZV9jb25zdGFudC5wcm90bxo+", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9vZmZsaW5lX3Vz", - "ZXJfZGF0YV9qb2IucHJvdG8aSmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMvb3BlcmF0aW5nX3N5c3RlbV92ZXJzaW9uX2NvbnN0YW50LnBy", - "b3RvGkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL3BhaWRf", - "b3JnYW5pY19zZWFyY2hfdGVybV92aWV3LnByb3RvGj1nb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvcmVzb3VyY2VzL3BhcmVudGFsX3N0YXR1c192aWV3LnBy", - "b3RvGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL3Blcl9z", - "dG9yZV92aWV3LnByb3RvGkpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzL3Byb2R1Y3RfYmlkZGluZ19jYXRlZ29yeV9jb25zdGFudC5wcm90", - "bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9wcm9kdWN0", - "X2dyb3VwX3ZpZXcucHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMvcmVjb21tZW5kYXRpb24ucHJvdG8aO2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxMi9yZXNvdXJjZXMvcmVtYXJrZXRpbmdfYWN0aW9uLnByb3Rv", - "Gjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL3NlYXJjaF90", - "ZXJtX3ZpZXcucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvc2hhcmVkX2NyaXRlcmlvbi5wcm90bxozZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3Jlc291cmNlcy9zaGFyZWRfc2V0LnByb3RvGkJnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL3Nob3BwaW5nX3BlcmZvcm1h", - "bmNlX3ZpZXcucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXMvc21hcnRfY2FtcGFpZ25fc2VhcmNoX3Rlcm1fdmlldy5wcm90bxo/", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy9zbWFydF9jYW1w", - "YWlnbl9zZXR0aW5nLnByb3RvGkdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "cmVzb3VyY2VzL3RoaXJkX3BhcnR5X2FwcF9hbmFseXRpY3NfbGluay5wcm90", - "bxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcy90b3BpY19j", - "b25zdGFudC5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy90b3BpY192aWV3LnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvcmVzb3VyY2VzL3VzZXJfaW50ZXJlc3QucHJvdG8aMmdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9yZXNvdXJjZXMvdXNlcl9saXN0LnByb3RvGjtnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL3VzZXJfbG9jYXRpb25f", - "dmlldy5wcm90bxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNl", - "cy92aWRlby5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291", - "cmNlcy93ZWJwYWdlX3ZpZXcucHJvdG8aQWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxMi9zZXJ2aWNlcy9hZF9ncm91cF9hZF9sYWJlbF9zZXJ2aWNlLnByb3Rv", - "Gjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBf", - "YWRfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Nl", - "cnZpY2VzL2FkX2dyb3VwX2Fzc2V0X3NlcnZpY2UucHJvdG8aRWdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9hZF9ncm91cF9iaWRfbW9kaWZp", - "ZXJfc2VydmljZS5wcm90bxpNZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Nl", - "cnZpY2VzL2FkX2dyb3VwX2NyaXRlcmlvbl9jdXN0b21pemVyX3NlcnZpY2Uu", - "cHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9hZF9n", - "cm91cF9jcml0ZXJpb25fbGFiZWxfc2VydmljZS5wcm90bxpCZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2FkX2dyb3VwX2NyaXRlcmlvbl9z", - "ZXJ2aWNlLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2Vydmlj", - "ZXMvYWRfZ3JvdXBfY3VzdG9taXplcl9zZXJ2aWNlLnByb3RvGkpnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYWRfZ3JvdXBfZXh0ZW5zaW9u", - "X3NldHRpbmdfc2VydmljZS5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3NlcnZpY2VzL2FkX2dyb3VwX2ZlZWRfc2VydmljZS5wcm90bxo+Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2FkX2dyb3VwX2xhYmVs", - "X3NlcnZpY2UucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2", - "aWNlcy9hZF9ncm91cF9zZXJ2aWNlLnByb3RvGjxnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTIvc2VydmljZXMvYWRfcGFyYW1ldGVyX3NlcnZpY2UucHJvdG8a", - "Mmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9hZF9zZXJ2aWNl", - "LnByb3RvGkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNz", - "ZXRfZ3JvdXBfYXNzZXRfc2VydmljZS5wcm90bxpQZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3NlcnZpY2VzL2Fzc2V0X2dyb3VwX2xpc3RpbmdfZ3JvdXBf", - "ZmlsdGVyX3NlcnZpY2UucHJvdG8aO2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9zZXJ2aWNlcy9hc3NldF9ncm91cF9zZXJ2aWNlLnByb3RvGkJnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvYXNzZXRfZ3JvdXBfc2lnbmFs", - "X3NlcnZpY2UucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2", - "aWNlcy9hc3NldF9zZXJ2aWNlLnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvc2VydmljZXMvYXNzZXRfc2V0X2Fzc2V0X3NlcnZpY2UucHJvdG8a", - "OWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9hc3NldF9zZXRf", - "c2VydmljZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZp", - "Y2VzL2F1ZGllbmNlX3NlcnZpY2UucHJvdG8aRmdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9zZXJ2aWNlcy9iaWRkaW5nX2RhdGFfZXhjbHVzaW9uX3NlcnZp", - "Y2UucHJvdG8aTmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9i", - "aWRkaW5nX3NlYXNvbmFsaXR5X2FkanVzdG1lbnRfc2VydmljZS5wcm90bxpA", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2JpZGRpbmdfc3Ry", - "YXRlZ3lfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3NlcnZpY2VzL2NhbXBhaWduX2Fzc2V0X3NlcnZpY2UucHJvdG8aQmdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9jYW1wYWlnbl9hc3NldF9z", - "ZXRfc2VydmljZS5wcm90bxpFZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Nl", - "cnZpY2VzL2NhbXBhaWduX2JpZF9tb2RpZmllcl9zZXJ2aWNlLnByb3RvGj9n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25fYnVk", - "Z2V0X3NlcnZpY2UucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9z", - "ZXJ2aWNlcy9jYW1wYWlnbl9jb252ZXJzaW9uX2dvYWxfc2VydmljZS5wcm90", - "bxpCZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2NhbXBhaWdu", - "X2NyaXRlcmlvbl9zZXJ2aWNlLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvc2VydmljZXMvY2FtcGFpZ25fY3VzdG9taXplcl9zZXJ2aWNlLnBy", - "b3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFp", - "Z25fZHJhZnRfc2VydmljZS5wcm90bxpKZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3NlcnZpY2VzL2NhbXBhaWduX2V4dGVuc2lvbl9zZXR0aW5nX3NlcnZp", - "Y2UucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9j", - "YW1wYWlnbl9mZWVkX3NlcnZpY2UucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9zZXJ2aWNlcy9jYW1wYWlnbl9ncm91cF9zZXJ2aWNlLnByb3Rv", - "Gj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY2FtcGFpZ25f", - "bGFiZWxfc2VydmljZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3NlcnZpY2VzL2NhbXBhaWduX3NlcnZpY2UucHJvdG8aQ2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9jYW1wYWlnbl9zaGFyZWRfc2V0X3Nl", - "cnZpY2UucHJvdG8aQWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNl", - "cy9jb252ZXJzaW9uX2FjdGlvbl9zZXJ2aWNlLnByb3RvGkpnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lvbl9jdXN0b21fdmFy", - "aWFibGVfc2VydmljZS5wcm90bxpPZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEy", - "L3NlcnZpY2VzL2NvbnZlcnNpb25fZ29hbF9jYW1wYWlnbl9jb25maWdfc2Vy", - "dmljZS5wcm90bxpFZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2Vz", - "L2NvbnZlcnNpb25fdmFsdWVfcnVsZV9zZXJ2aWNlLnByb3RvGklnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY29udmVyc2lvbl92YWx1ZV9y", - "dWxlX3NldF9zZXJ2aWNlLnByb3RvGkZnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvc2VydmljZXMvY3VzdG9tX2NvbnZlcnNpb25fZ29hbF9zZXJ2aWNlLnBy", - "b3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9t", - "ZXJfYXNzZXRfc2VydmljZS5wcm90bxpIZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3NlcnZpY2VzL2N1c3RvbWVyX2NvbnZlcnNpb25fZ29hbF9zZXJ2aWNl", - "LnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvY3Vz", - "dG9tZXJfY3VzdG9taXplcl9zZXJ2aWNlLnByb3RvGkpnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvc2VydmljZXMvY3VzdG9tZXJfZXh0ZW5zaW9uX3NldHRp", - "bmdfc2VydmljZS5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Nl", - "cnZpY2VzL2N1c3RvbWVyX2ZlZWRfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2N1c3RvbWVyX2xhYmVsX3NlcnZp", - "Y2UucHJvdG8aS2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9j", - "dXN0b21lcl9uZWdhdGl2ZV9jcml0ZXJpb25fc2VydmljZS5wcm90bxo4Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2N1c3RvbWVyX3NlcnZp", - "Y2UucHJvdG8aRGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9j", - "dXN0b21pemVyX2F0dHJpYnV0ZV9zZXJ2aWNlLnByb3RvGj5nb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTIvc2VydmljZXMvZXhwZXJpbWVudF9hcm1fc2Vydmlj", - "ZS5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2V4", - "cGVyaW1lbnRfc2VydmljZS5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djEyL3NlcnZpY2VzL2V4dGVuc2lvbl9mZWVkX2l0ZW1fc2VydmljZS5wcm90", - "bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2ZlZWRfaXRl", - "bV9zZXJ2aWNlLnByb3RvGkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2Vy", - "dmljZXMvZmVlZF9pdGVtX3NldF9saW5rX3NlcnZpY2UucHJvdG8aPWdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9mZWVkX2l0ZW1fc2V0X3Nl", - "cnZpY2UucHJvdG8aQGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNl", - "cy9mZWVkX2l0ZW1fdGFyZ2V0X3NlcnZpY2UucHJvdG8aPGdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9mZWVkX21hcHBpbmdfc2VydmljZS5w", - "cm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2ZlZWRf", - "c2VydmljZS5wcm90bxpNZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZp", - "Y2VzL2tleXdvcmRfcGxhbl9hZF9ncm91cF9rZXl3b3JkX3NlcnZpY2UucHJv", - "dG8aRWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcy9rZXl3b3Jk", - "X3BsYW5fYWRfZ3JvdXBfc2VydmljZS5wcm90bxpNZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjEyL3NlcnZpY2VzL2tleXdvcmRfcGxhbl9jYW1wYWlnbl9rZXl3", - "b3JkX3NlcnZpY2UucHJvdG8aRWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9z", - "ZXJ2aWNlcy9rZXl3b3JkX3BsYW5fY2FtcGFpZ25fc2VydmljZS5wcm90bxo8", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL2tleXdvcmRfcGxh", - "bl9zZXJ2aWNlLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2Vy", - "dmljZXMvbGFiZWxfc2VydmljZS5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3NlcnZpY2VzL21lZGlhX2ZpbGVfc2VydmljZS5wcm90bxpCZ29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzL3JlbWFya2V0aW5nX2Fj", - "dGlvbl9zZXJ2aWNlLnByb3RvGkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "c2VydmljZXMvc2hhcmVkX2NyaXRlcmlvbl9zZXJ2aWNlLnByb3RvGjpnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvc2hhcmVkX3NldF9zZXJ2", - "aWNlLnByb3RvGkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMv", - "c21hcnRfY2FtcGFpZ25fc2V0dGluZ19zZXJ2aWNlLnByb3RvGjlnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvdXNlcl9saXN0X3NlcnZpY2Uu", - "cHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9h", - "cGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", - "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxoXZ29vZ2xl", - "L3JwYy9zdGF0dXMucHJvdG8ijgIKFlNlYXJjaEdvb2dsZUFkc1JlcXVlc3QS", - "GAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhISCgVxdWVyeRgCIAEoCUID4EEC", - "EhIKCnBhZ2VfdG9rZW4YAyABKAkSEQoJcGFnZV9zaXplGAQgASgFEhUKDXZh", - "bGlkYXRlX29ubHkYBSABKAgSIgoacmV0dXJuX3RvdGFsX3Jlc3VsdHNfY291", - "bnQYByABKAgSZAoTc3VtbWFyeV9yb3dfc2V0dGluZxgIIAEoDjJHLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TdW1tYXJ5Um93U2V0dGluZ0Vu", - "dW0uU3VtbWFyeVJvd1NldHRpbmcihwIKF1NlYXJjaEdvb2dsZUFkc1Jlc3Bv", - "bnNlEkAKB3Jlc3VsdHMYASADKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuR29vZ2xlQWRzUm93EhcKD25leHRfcGFnZV90b2tlbhgC", - "IAEoCRIbChN0b3RhbF9yZXN1bHRzX2NvdW50GAMgASgDEi4KCmZpZWxkX21h", - "c2sYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkQKC3N1bW1h", - "cnlfcm93GAYgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLkdvb2dsZUFkc1JvdyKyAQocU2VhcmNoR29vZ2xlQWRzU3RyZWFtUmVx", - "dWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECEhIKBXF1ZXJ5GAIgASgJ", - "QgPgQQISZAoTc3VtbWFyeV9yb3dfc2V0dGluZxgDIAEoDjJHLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5TdW1tYXJ5Um93U2V0dGluZ0VudW0u", - "U3VtbWFyeVJvd1NldHRpbmci6wEKHVNlYXJjaEdvb2dsZUFkc1N0cmVhbVJl", - "c3BvbnNlEkAKB3Jlc3VsdHMYASADKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuR29vZ2xlQWRzUm93Ei4KCmZpZWxkX21hc2sYAiAB", - "KAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkQKC3N1bW1hcnlfcm93", - "GAMgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkdv", - "b2dsZUFkc1JvdxISCgpyZXF1ZXN0X2lkGAQgASgJIpBlCgxHb29nbGVBZHNS", - "b3cSSQoOYWNjb3VudF9idWRnZXQYKiABKAsyMS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzLkFjY291bnRCdWRnZXQSWgoXYWNjb3VudF9i", - "dWRnZXRfcHJvcG9zYWwYKyABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkFjY291bnRCdWRnZXRQcm9wb3NhbBJGCgxhY2NvdW50", - "X2xpbmsYjwEgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5BY2NvdW50TGluaxI9CghhZF9ncm91cBgDIAEoCzIrLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cBJCCgthZF9ncm91", - "cF9hZBgQIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQWRHcm91cEFkEm4KImFkX2dyb3VwX2FkX2Fzc2V0X2NvbWJpbmF0aW9u", - "X3ZpZXcYwQEgASgLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5BZEdyb3VwQWRBc3NldENvbWJpbmF0aW9uVmlldxJXChZhZF9ncm91", - "cF9hZF9hc3NldF92aWV3GIMBIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuQWRHcm91cEFkQXNzZXRWaWV3Ek0KEWFkX2dyb3Vw", - "X2FkX2xhYmVsGHggASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5BZEdyb3VwQWRMYWJlbBJJCg5hZF9ncm91cF9hc3NldBiaASAB", - "KAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3Jv", - "dXBBc3NldBJQChJhZF9ncm91cF9hc3NldF9zZXQYxAEgASgLMjMuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwQXNzZXRTZXQS", - "VwoWYWRfZ3JvdXBfYXVkaWVuY2Vfdmlldxg5IAEoCzI3Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cEF1ZGllbmNlVmlldxJV", - "ChVhZF9ncm91cF9iaWRfbW9kaWZpZXIYGCABKAsyNi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBCaWRNb2RpZmllchJQChJh", - "ZF9ncm91cF9jcml0ZXJpb24YESABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzLkFkR3JvdXBDcml0ZXJpb24SZgodYWRfZ3JvdXBf", - "Y3JpdGVyaW9uX2N1c3RvbWl6ZXIYuwEgASgLMj4uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwQ3JpdGVyaW9uQ3VzdG9taXpl", - "chJbChhhZF9ncm91cF9jcml0ZXJpb25fbGFiZWwYeSABKAsyOS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3JvdXBDcml0ZXJpb25M", - "YWJlbBJlCh1hZF9ncm91cF9jcml0ZXJpb25fc2ltdWxhdGlvbhhuIAEoCzI+", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cENy", - "aXRlcmlvblNpbXVsYXRpb24SUwoTYWRfZ3JvdXBfY3VzdG9taXplchi5ASAB", - "KAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkR3Jv", - "dXBDdXN0b21pemVyEl8KGmFkX2dyb3VwX2V4dGVuc2lvbl9zZXR0aW5nGHAg", - "ASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdy", - "b3VwRXh0ZW5zaW9uU2V0dGluZxJGCg1hZF9ncm91cF9mZWVkGEMgASgLMi8u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5BZEdyb3VwRmVl", - "ZBJICg5hZF9ncm91cF9sYWJlbBhzIAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQWRHcm91cExhYmVsElIKE2FkX2dyb3VwX3Np", - "bXVsYXRpb24YayABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkFkR3JvdXBTaW11bGF0aW9uEkYKDGFkX3BhcmFtZXRlchiCASAB", - "KAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFkUGFy", - "YW1ldGVyEkgKDmFnZV9yYW5nZV92aWV3GDAgASgLMjAuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5BZ2VSYW5nZVZpZXcSTAoQYWRfc2No", - "ZWR1bGVfdmlldxhZIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQWRTY2hlZHVsZVZpZXcSSwoPZG9tYWluX2NhdGVnb3J5GFsg", - "ASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Eb21h", - "aW5DYXRlZ29yeRI4CgVhc3NldBhpIAEoCzIpLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQXNzZXQSVgoVYXNzZXRfZmllbGRfdHlwZV92", - "aWV3GKgBIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQXNzZXRGaWVsZFR5cGVWaWV3Ek8KEWFzc2V0X2dyb3VwX2Fzc2V0GK0B", - "IAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQXNz", - "ZXRHcm91cEFzc2V0ElEKEmFzc2V0X2dyb3VwX3NpZ25hbBi/ASABKAsyNC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkFzc2V0R3JvdXBT", - "aWduYWwSawogYXNzZXRfZ3JvdXBfbGlzdGluZ19ncm91cF9maWx0ZXIYtgEg", - "ASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Bc3Nl", - "dEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyEmcKHmFzc2V0X2dyb3VwX3Byb2R1", - "Y3RfZ3JvdXBfdmlldxi9ASABKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkFzc2V0R3JvdXBQcm9kdWN0R3JvdXBWaWV3EkQKC2Fz", - "c2V0X2dyb3VwGKwBIAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuQXNzZXRHcm91cBJLCg9hc3NldF9zZXRfYXNzZXQYtAEgASgL", - "MjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Bc3NldFNl", - "dEFzc2V0EkAKCWFzc2V0X3NldBizASABKAsyLC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzLkFzc2V0U2V0ElIKE2Fzc2V0X3NldF90eXBl", - "X3ZpZXcYxQEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5Bc3NldFNldFR5cGVWaWV3EkAKCWJhdGNoX2pvYhiLASABKAsyLC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJhdGNoSm9iElkK", - "FmJpZGRpbmdfZGF0YV9leGNsdXNpb24YnwEgASgLMjguZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5CaWRkaW5nRGF0YUV4Y2x1c2lvbhJp", - "Ch5iaWRkaW5nX3NlYXNvbmFsaXR5X2FkanVzdG1lbnQYoAEgASgLMkAuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5CaWRkaW5nU2Vhc29u", - "YWxpdHlBZGp1c3RtZW50Ek0KEGJpZGRpbmdfc3RyYXRlZ3kYEiABKAsyMy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJpZGRpbmdTdHJh", - "dGVneRJjChtiaWRkaW5nX3N0cmF0ZWd5X3NpbXVsYXRpb24YngEgASgLMj0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5CaWRkaW5nU3Ry", - "YXRlZ3lTaW11bGF0aW9uEkcKDWJpbGxpbmdfc2V0dXAYKSABKAsyMC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkJpbGxpbmdTZXR1cBJA", - "CgljYWxsX3ZpZXcYmAEgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcy5DYWxsVmlldxJLCg9jYW1wYWlnbl9idWRnZXQYEyABKAsy", - "Mi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWdu", - "QnVkZ2V0Ej4KCGNhbXBhaWduGAIgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbhJKCg5jYW1wYWlnbl9hc3NldBiO", - "ASABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNh", - "bXBhaWduQXNzZXQSUQoSY2FtcGFpZ25fYXNzZXRfc2V0GLUBIAEoCzI0Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25Bc3Nl", - "dFNldBJYChZjYW1wYWlnbl9hdWRpZW5jZV92aWV3GEUgASgLMjguZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkF1ZGllbmNl", - "VmlldxJWChVjYW1wYWlnbl9iaWRfbW9kaWZpZXIYGiABKAsyNy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWduQmlkTW9kaWZp", - "ZXISXQoYY2FtcGFpZ25fY29udmVyc2lvbl9nb2FsGK8BIAEoCzI6Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25Db252ZXJz", - "aW9uR29hbBJRChJjYW1wYWlnbl9jcml0ZXJpb24YFCABKAsyNS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWduQ3JpdGVyaW9u", - "EmYKHWNhbXBhaWduX2NyaXRlcmlvbl9zaW11bGF0aW9uGG8gASgLMj8uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnbkNyaXRl", - "cmlvblNpbXVsYXRpb24SVAoTY2FtcGFpZ25fY3VzdG9taXplchi6ASABKAsy", - "Ni5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWdu", - "Q3VzdG9taXplchJJCg5jYW1wYWlnbl9kcmFmdBgxIAEoCzIxLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25EcmFmdBJgChpj", - "YW1wYWlnbl9leHRlbnNpb25fc2V0dGluZxhxIAEoCzI8Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25FeHRlbnNpb25TZXR0", - "aW5nEkcKDWNhbXBhaWduX2ZlZWQYPyABKAsyMC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzLkNhbXBhaWduRmVlZBJJCg5jYW1wYWlnbl9n", - "cm91cBgZIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQ2FtcGFpZ25Hcm91cBJJCg5jYW1wYWlnbl9sYWJlbBhsIAEoCzIxLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25MYWJl", - "bBJSChNjYW1wYWlnbl9zaGFyZWRfc2V0GB4gASgLMjUuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5DYW1wYWlnblNoYXJlZFNldBJUChNj", - "YW1wYWlnbl9zaW11bGF0aW9uGJ0BIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuQ2FtcGFpZ25TaW11bGF0aW9uEk0KEGNhcnJp", - "ZXJfY29uc3RhbnQYQiABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkNhcnJpZXJDb25zdGFudBJGCgxjaGFuZ2VfZXZlbnQYkQEg", - "ASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DaGFu", - "Z2VFdmVudBJHCg1jaGFuZ2Vfc3RhdHVzGCUgASgLMjAuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5DaGFuZ2VTdGF0dXMSUAoRY29tYmlu", - "ZWRfYXVkaWVuY2UYlAEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcy5Db21iaW5lZEF1ZGllbmNlEj8KCGF1ZGllbmNlGL4BIAEo", - "CzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQXVkaWVu", - "Y2USTwoRY29udmVyc2lvbl9hY3Rpb24YZyABKAsyNC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLkNvbnZlcnNpb25BY3Rpb24SYQoaY29u", - "dmVyc2lvbl9jdXN0b21fdmFyaWFibGUYmQEgASgLMjwuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5Db252ZXJzaW9uQ3VzdG9tVmFyaWFi", - "bGUSagofY29udmVyc2lvbl9nb2FsX2NhbXBhaWduX2NvbmZpZxixASABKAsy", - "QC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkNvbnZlcnNp", - "b25Hb2FsQ2FtcGFpZ25Db25maWcSVwoVY29udmVyc2lvbl92YWx1ZV9ydWxl", - "GKQBIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "Q29udmVyc2lvblZhbHVlUnVsZRJeChljb252ZXJzaW9uX3ZhbHVlX3J1bGVf", - "c2V0GKUBIAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXMuQ29udmVyc2lvblZhbHVlUnVsZVNldBJBCgpjbGlja192aWV3GHogASgL", - "Mi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DbGlja1Zp", - "ZXcSUAoRY3VycmVuY3lfY29uc3RhbnQYhgEgASgLMjQuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnJlc291cmNlcy5DdXJyZW5jeUNvbnN0YW50EkwKD2N1", - "c3RvbV9hdWRpZW5jZRiTASABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkN1c3RvbUF1ZGllbmNlElkKFmN1c3RvbV9jb252ZXJz", - "aW9uX2dvYWwYsAEgASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJl", - "c291cmNlcy5DdXN0b21Db252ZXJzaW9uR29hbBJLCg9jdXN0b21faW50ZXJl", - "c3QYaCABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "LkN1c3RvbUludGVyZXN0Ej4KCGN1c3RvbWVyGAEgASgLMiwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lchJKCg5jdXN0b21l", - "cl9hc3NldBibASABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkN1c3RvbWVyQXNzZXQSUQoSY3VzdG9tZXJfYXNzZXRfc2V0GMMB", - "IAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3Vz", - "dG9tZXJBc3NldFNldBJjChthY2Nlc3NpYmxlX2JpZGRpbmdfc3RyYXRlZ3kY", - "qQEgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5B", - "Y2Nlc3NpYmxlQmlkZGluZ1N0cmF0ZWd5ElQKE2N1c3RvbWVyX2N1c3RvbWl6", - "ZXIYuAEgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cy5DdXN0b21lckN1c3RvbWl6ZXISVgoVY3VzdG9tZXJfbWFuYWdlcl9saW5r", - "GD0gASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5D", - "dXN0b21lck1hbmFnZXJMaW5rElQKFGN1c3RvbWVyX2NsaWVudF9saW5rGD4g", - "ASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0", - "b21lckNsaWVudExpbmsSSwoPY3VzdG9tZXJfY2xpZW50GEYgASgLMjIuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckNsaWVu", - "dBJdChhjdXN0b21lcl9jb252ZXJzaW9uX2dvYWwYrgEgASgLMjouZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckNvbnZlcnNp", - "b25Hb2FsEmAKGmN1c3RvbWVyX2V4dGVuc2lvbl9zZXR0aW5nGHIgASgLMjwu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5DdXN0b21lckV4", - "dGVuc2lvblNldHRpbmcSRwoNY3VzdG9tZXJfZmVlZBhAIAEoCzIwLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXJGZWVkEkkK", - "DmN1c3RvbWVyX2xhYmVsGHwgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnJlc291cmNlcy5DdXN0b21lckxhYmVsEmIKG2N1c3RvbWVyX25lZ2F0", - "aXZlX2NyaXRlcmlvbhhYIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMuQ3VzdG9tZXJOZWdhdGl2ZUNyaXRlcmlvbhJVChRjdXN0", - "b21lcl91c2VyX2FjY2VzcxiSASABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzLkN1c3RvbWVyVXNlckFjY2VzcxJqCh9jdXN0b21l", - "cl91c2VyX2FjY2Vzc19pbnZpdGF0aW9uGJYBIAEoCzJALmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuQ3VzdG9tZXJVc2VyQWNjZXNzSW52", - "aXRhdGlvbhJWChRjdXN0b21pemVyX2F0dHJpYnV0ZRiyASABKAsyNy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkN1c3RvbWl6ZXJBdHRy", - "aWJ1dGUSVgoVZGV0YWlsX3BsYWNlbWVudF92aWV3GHYgASgLMjcuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5EZXRhaWxQbGFjZW1lbnRW", - "aWV3ElYKFGRldGFpbGVkX2RlbW9ncmFwaGljGKYBIAEoCzI3Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuRGV0YWlsZWREZW1vZ3JhcGhp", - "YxJUChRkaXNwbGF5X2tleXdvcmRfdmlldxgvIAEoCzI2Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuRGlzcGxheUtleXdvcmRWaWV3EkgK", - "DWRpc3RhbmNlX3ZpZXcYhAEgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnJlc291cmNlcy5EaXN0YW5jZVZpZXcSbwojZHluYW1pY19zZWFyY2hf", - "YWRzX3NlYXJjaF90ZXJtX3ZpZXcYaiABKAsyQi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzLkR5bmFtaWNTZWFyY2hBZHNTZWFyY2hUZXJt", - "VmlldxJgChpleHBhbmRlZF9sYW5kaW5nX3BhZ2VfdmlldxiAASABKAsyOy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkV4cGFuZGVkTGFu", - "ZGluZ1BhZ2VWaWV3ElIKE2V4dGVuc2lvbl9mZWVkX2l0ZW0YVSABKAsyNS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkV4dGVuc2lvbkZl", - "ZWRJdGVtEjYKBGZlZWQYLiABKAsyKC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzLkZlZWQSPwoJZmVlZF9pdGVtGDIgASgLMiwuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5GZWVkSXRlbRJHCg1mZWVk", - "X2l0ZW1fc2V0GJUBIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXMuRmVlZEl0ZW1TZXQSUAoSZmVlZF9pdGVtX3NldF9saW5rGJcB", - "IAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuRmVl", - "ZEl0ZW1TZXRMaW5rEkwKEGZlZWRfaXRlbV90YXJnZXQYdCABKAsyMi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkZlZWRJdGVtVGFyZ2V0", - "EkUKDGZlZWRfbWFwcGluZxg6IAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuRmVlZE1hcHBpbmcSVgoVZmVlZF9wbGFjZWhvbGRl", - "cl92aWV3GGEgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5GZWVkUGxhY2Vob2xkZXJWaWV3EkMKC2dlbmRlcl92aWV3GCggASgL", - "Mi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5HZW5kZXJW", - "aWV3ElIKE2dlb190YXJnZXRfY29uc3RhbnQYFyABKAsyNS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkdlb1RhcmdldENvbnN0YW50EksK", - "D2dlb2dyYXBoaWNfdmlldxh9IAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuR2VvZ3JhcGhpY1ZpZXcSVAoUZ3JvdXBfcGxhY2Vt", - "ZW50X3ZpZXcYdyABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLkdyb3VwUGxhY2VtZW50VmlldxJMChBob3RlbF9ncm91cF92aWV3", - "GDMgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5I", - "b3RlbEdyb3VwVmlldxJYChZob3RlbF9wZXJmb3JtYW5jZV92aWV3GEcgASgL", - "MjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5Ib3RlbFBl", - "cmZvcm1hbmNlVmlldxJWChRob3RlbF9yZWNvbmNpbGlhdGlvbhi8ASABKAsy", - "Ny5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkhvdGVsUmVj", - "b25jaWxpYXRpb24STwoRaW5jb21lX3JhbmdlX3ZpZXcYigEgASgLMjMuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5JbmNvbWVSYW5nZVZp", - "ZXcSRQoMa2V5d29yZF92aWV3GBUgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5LZXl3b3JkVmlldxJFCgxrZXl3b3JkX3BsYW4Y", - "ICABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLktl", - "eXdvcmRQbGFuElYKFWtleXdvcmRfcGxhbl9jYW1wYWlnbhghIAEoCzI3Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuS2V5d29yZFBsYW5D", - "YW1wYWlnbhJmCh1rZXl3b3JkX3BsYW5fY2FtcGFpZ25fa2V5d29yZBiMASAB", - "KAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLktleXdv", - "cmRQbGFuQ2FtcGFpZ25LZXl3b3JkElUKFWtleXdvcmRfcGxhbl9hZF9ncm91", - "cBgjIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMu", - "S2V5d29yZFBsYW5BZEdyb3VwEmUKHWtleXdvcmRfcGxhbl9hZF9ncm91cF9r", - "ZXl3b3JkGI0BIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMuS2V5d29yZFBsYW5BZEdyb3VwS2V5d29yZBJZChZrZXl3b3JkX3Ro", - "ZW1lX2NvbnN0YW50GKMBIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMuS2V5d29yZFRoZW1lQ29uc3RhbnQSOAoFbGFiZWwYNCAB", - "KAsyKS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkxhYmVs", - "Ek4KEWxhbmRpbmdfcGFnZV92aWV3GH4gASgLMjMuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnJlc291cmNlcy5MYW5kaW5nUGFnZVZpZXcSTwoRbGFuZ3Vh", - "Z2VfY29uc3RhbnQYNyABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkxhbmd1YWdlQ29uc3RhbnQSRwoNbG9jYXRpb25fdmlldxh7", - "IAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuTG9j", - "YXRpb25WaWV3ElgKFm1hbmFnZWRfcGxhY2VtZW50X3ZpZXcYNSABKAsyOC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLk1hbmFnZWRQbGFj", - "ZW1lbnRWaWV3EkEKCm1lZGlhX2ZpbGUYWiABKAsyLS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLk1lZGlhRmlsZRJjChxtb2JpbGVfYXBw", - "X2NhdGVnb3J5X2NvbnN0YW50GFcgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnJlc291cmNlcy5Nb2JpbGVBcHBDYXRlZ29yeUNvbnN0YW50ElgK", - "Fm1vYmlsZV9kZXZpY2VfY29uc3RhbnQYYiABKAsyOC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLk1vYmlsZURldmljZUNvbnN0YW50ElYK", - "FW9mZmxpbmVfdXNlcl9kYXRhX2pvYhiJASABKAsyNi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzLk9mZmxpbmVVc2VyRGF0YUpvYhJtCiFv", - "cGVyYXRpbmdfc3lzdGVtX3ZlcnNpb25fY29uc3RhbnQYViABKAsyQi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLk9wZXJhdGluZ1N5c3Rl", - "bVZlcnNpb25Db25zdGFudBJlCh1wYWlkX29yZ2FuaWNfc2VhcmNoX3Rlcm1f", - "dmlldxiBASABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzLlBhaWRPcmdhbmljU2VhcmNoVGVybVZpZXcSVAoUcGFyZW50YWxfc3Rh", - "dHVzX3ZpZXcYLSABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLlBhcmVudGFsU3RhdHVzVmlldxJJCg5wZXJfc3RvcmVfdmlldxjG", - "ASABKAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLlBl", - "clN0b3JlVmlldxJtCiFwcm9kdWN0X2JpZGRpbmdfY2F0ZWdvcnlfY29uc3Rh", - "bnQYbSABKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "LlByb2R1Y3RCaWRkaW5nQ2F0ZWdvcnlDb25zdGFudBJQChJwcm9kdWN0X2dy", - "b3VwX3ZpZXcYNiABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLlByb2R1Y3RHcm91cFZpZXcSSgoOcmVjb21tZW5kYXRpb24YFiAB", - "KAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLlJlY29t", - "bWVuZGF0aW9uEkwKEHNlYXJjaF90ZXJtX3ZpZXcYRCABKAsyMi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLlNlYXJjaFRlcm1WaWV3Ek0K", - "EHNoYXJlZF9jcml0ZXJpb24YHSABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIucmVzb3VyY2VzLlNoYXJlZENyaXRlcmlvbhJBCgpzaGFyZWRfc2V0", - "GBsgASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5T", - "aGFyZWRTZXQSWQoWc21hcnRfY2FtcGFpZ25fc2V0dGluZxinASABKAsyOC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLlNtYXJ0Q2FtcGFp", - "Z25TZXR0aW5nEl4KGXNob3BwaW5nX3BlcmZvcm1hbmNlX3ZpZXcYdSABKAsy", - "Oy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLlNob3BwaW5n", - "UGVyZm9ybWFuY2VWaWV3EmkKH3NtYXJ0X2NhbXBhaWduX3NlYXJjaF90ZXJt", - "X3ZpZXcYqgEgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5TbWFydENhbXBhaWduU2VhcmNoVGVybVZpZXcSZwoedGhpcmRfcGFy", - "dHlfYXBwX2FuYWx5dGljc19saW5rGJABIAEoCzI+Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMuVGhpcmRQYXJ0eUFwcEFuYWx5dGljc0xp", - "bmsSQQoKdG9waWNfdmlldxgsIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuVG9waWNWaWV3EkMKCmV4cGVyaW1lbnQYhQEgASgL", - "Mi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5FeHBlcmlt", - "ZW50EkoKDmV4cGVyaW1lbnRfYXJtGLcBIAEoCzIxLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5yZXNvdXJjZXMuRXhwZXJpbWVudEFybRJHCg11c2VyX2lu", - "dGVyZXN0GDsgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291", - "cmNlcy5Vc2VySW50ZXJlc3QSQgoKbGlmZV9ldmVudBihASABKAsyLS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLkxpZmVFdmVudBI/Cgl1", - "c2VyX2xpc3QYJiABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLlVzZXJMaXN0ElEKEnVzZXJfbG9jYXRpb25fdmlldxiHASABKAsy", - "NC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLlVzZXJMb2Nh", - "dGlvblZpZXcSUQoScmVtYXJrZXRpbmdfYWN0aW9uGDwgASgLMjUuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5SZW1hcmtldGluZ0FjdGlv", - "bhJJCg50b3BpY19jb25zdGFudBgfIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMuVG9waWNDb25zdGFudBI4CgV2aWRlbxgnIAEo", - "CzIpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuVmlkZW8S", - "RgoMd2VicGFnZV92aWV3GKIBIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXMuV2VicGFnZVZpZXcSXgoZbGVhZF9mb3JtX3N1Ym1p", - "c3Npb25fZGF0YRjAASABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzLkxlYWRGb3JtU3VibWlzc2lvbkRhdGESOQoHbWV0cmljcxgE", - "IAEoCzIoLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uTWV0cmlj", - "cxI7CghzZWdtZW50cxhmIAEoCzIpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5jb21tb24uU2VnbWVudHMiogIKFk11dGF0ZUdvb2dsZUFkc1JlcXVlc3QS", - "GAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJSChFtdXRhdGVfb3BlcmF0aW9u", - "cxgCIAMoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5N", - "dXRhdGVPcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgS", - "FQoNdmFsaWRhdGVfb25seRgEIAEoCBJqChVyZXNwb25zZV9jb250ZW50X3R5", - "cGUYBSABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuUmVz", - "cG9uc2VDb250ZW50VHlwZUVudW0uUmVzcG9uc2VDb250ZW50VHlwZSKsAQoX", - "TXV0YXRlR29vZ2xlQWRzUmVzcG9uc2USMQoVcGFydGlhbF9mYWlsdXJlX2Vy", - "cm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSXgoabXV0YXRlX29wZXJh", - "dGlvbl9yZXNwb25zZXMYASADKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuTXV0YXRlT3BlcmF0aW9uUmVzcG9uc2UigjsKD011dGF0", - "ZU9wZXJhdGlvbhJhChthZF9ncm91cF9hZF9sYWJlbF9vcGVyYXRpb24YESAB", - "KAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQWRHcm91", - "cEFkTGFiZWxPcGVyYXRpb25IABJWChVhZF9ncm91cF9hZF9vcGVyYXRpb24Y", - "ASABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQWRH", - "cm91cEFkT3BlcmF0aW9uSAASXAoYYWRfZ3JvdXBfYXNzZXRfb3BlcmF0aW9u", - "GDggASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFk", - "R3JvdXBBc3NldE9wZXJhdGlvbkgAEmkKH2FkX2dyb3VwX2JpZF9tb2RpZmll", - "cl9vcGVyYXRpb24YAiABKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuQWRHcm91cEJpZE1vZGlmaWVyT3BlcmF0aW9uSAASeQonYWRf", - "Z3JvdXBfY3JpdGVyaW9uX2N1c3RvbWl6ZXJfb3BlcmF0aW9uGE0gASgLMkYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkR3JvdXBDcml0", - "ZXJpb25DdXN0b21pemVyT3BlcmF0aW9uSAASbwoiYWRfZ3JvdXBfY3JpdGVy", - "aW9uX2xhYmVsX29wZXJhdGlvbhgSIAEoCzJBLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5BZEdyb3VwQ3JpdGVyaW9uTGFiZWxPcGVyYXRp", - "b25IABJkChxhZF9ncm91cF9jcml0ZXJpb25fb3BlcmF0aW9uGAMgASgLMjwu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkR3JvdXBDcml0", - "ZXJpb25PcGVyYXRpb25IABJmCh1hZF9ncm91cF9jdXN0b21pemVyX29wZXJh", - "dGlvbhhLIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5BZEdyb3VwQ3VzdG9taXplck9wZXJhdGlvbkgAEnMKJGFkX2dyb3VwX2V4", - "dGVuc2lvbl9zZXR0aW5nX29wZXJhdGlvbhgTIAEoCzJDLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BZEdyb3VwRXh0ZW5zaW9uU2V0dGlu", - "Z09wZXJhdGlvbkgAEloKF2FkX2dyb3VwX2ZlZWRfb3BlcmF0aW9uGBQgASgL", - "MjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkR3JvdXBG", - "ZWVkT3BlcmF0aW9uSAASXAoYYWRfZ3JvdXBfbGFiZWxfb3BlcmF0aW9uGBUg", - "ASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkR3Jv", - "dXBMYWJlbE9wZXJhdGlvbkgAElEKEmFkX2dyb3VwX29wZXJhdGlvbhgFIAEo", - "CzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5BZEdyb3Vw", - "T3BlcmF0aW9uSAASRgoMYWRfb3BlcmF0aW9uGDEgASgLMi4uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkFkT3BlcmF0aW9uSAASWQoWYWRf", - "cGFyYW1ldGVyX29wZXJhdGlvbhgWIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5BZFBhcmFtZXRlck9wZXJhdGlvbkgAEkwKD2Fz", - "c2V0X29wZXJhdGlvbhgXIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5Bc3NldE9wZXJhdGlvbkgAEmIKG2Fzc2V0X2dyb3VwX2Fz", - "c2V0X29wZXJhdGlvbhhBIAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5Bc3NldEdyb3VwQXNzZXRPcGVyYXRpb25IABJ+Ciphc3Nl", - "dF9ncm91cF9saXN0aW5nX2dyb3VwX2ZpbHRlcl9vcGVyYXRpb24YTiABKAsy", - "SC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQXNzZXRHcm91", - "cExpc3RpbmdHcm91cEZpbHRlck9wZXJhdGlvbkgAEmQKHGFzc2V0X2dyb3Vw", - "X3NpZ25hbF9vcGVyYXRpb24YUCABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuQXNzZXRHcm91cFNpZ25hbE9wZXJhdGlvbkgAElcK", - "FWFzc2V0X2dyb3VwX29wZXJhdGlvbhg+IAEoCzI2Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5Bc3NldEdyb3VwT3BlcmF0aW9uSAASXgoZ", - "YXNzZXRfc2V0X2Fzc2V0X29wZXJhdGlvbhhHIAEoCzI5Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Bc3NldFNldEFzc2V0T3BlcmF0aW9u", - "SAASUwoTYXNzZXRfc2V0X29wZXJhdGlvbhhIIAEoCzI0Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Bc3NldFNldE9wZXJhdGlvbkgAElIK", - "EmF1ZGllbmNlX29wZXJhdGlvbhhRIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5BdWRpZW5jZU9wZXJhdGlvbkgAEmwKIGJpZGRp", - "bmdfZGF0YV9leGNsdXNpb25fb3BlcmF0aW9uGDogASgLMkAuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkJpZGRpbmdEYXRhRXhjbHVzaW9u", - "T3BlcmF0aW9uSAASfAooYmlkZGluZ19zZWFzb25hbGl0eV9hZGp1c3RtZW50", - "X29wZXJhdGlvbhg7IAEoCzJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5CaWRkaW5nU2Vhc29uYWxpdHlBZGp1c3RtZW50T3BlcmF0aW9u", - "SAASYQoaYmlkZGluZ19zdHJhdGVneV9vcGVyYXRpb24YBiABKAsyOy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQmlkZGluZ1N0cmF0ZWd5", - "T3BlcmF0aW9uSAASXQoYY2FtcGFpZ25fYXNzZXRfb3BlcmF0aW9uGDQgASgL", - "MjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNhbXBhaWdu", - "QXNzZXRPcGVyYXRpb25IABJkChxjYW1wYWlnbl9hc3NldF9zZXRfb3BlcmF0", - "aW9uGEkgASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "LkNhbXBhaWduQXNzZXRTZXRPcGVyYXRpb25IABJqCh9jYW1wYWlnbl9iaWRf", - "bW9kaWZpZXJfb3BlcmF0aW9uGAcgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLkNhbXBhaWduQmlkTW9kaWZpZXJPcGVyYXRpb25I", - "ABJfChljYW1wYWlnbl9idWRnZXRfb3BlcmF0aW9uGAggASgLMjouZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNhbXBhaWduQnVkZ2V0T3Bl", - "cmF0aW9uSAAScAoiY2FtcGFpZ25fY29udmVyc2lvbl9nb2FsX29wZXJhdGlv", - "bhhDIAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5D", - "YW1wYWlnbkNvbnZlcnNpb25Hb2FsT3BlcmF0aW9uSAASZQocY2FtcGFpZ25f", - "Y3JpdGVyaW9uX29wZXJhdGlvbhgNIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5DYW1wYWlnbkNyaXRlcmlvbk9wZXJhdGlvbkgA", - "EmcKHWNhbXBhaWduX2N1c3RvbWl6ZXJfb3BlcmF0aW9uGEwgASgLMj4uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNhbXBhaWduQ3VzdG9t", - "aXplck9wZXJhdGlvbkgAEl0KGGNhbXBhaWduX2RyYWZ0X29wZXJhdGlvbhgY", - "IAEoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DYW1w", - "YWlnbkRyYWZ0T3BlcmF0aW9uSAASdAokY2FtcGFpZ25fZXh0ZW5zaW9uX3Nl", - "dHRpbmdfb3BlcmF0aW9uGBogASgLMkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLkNhbXBhaWduRXh0ZW5zaW9uU2V0dGluZ09wZXJhdGlv", - "bkgAElsKF2NhbXBhaWduX2ZlZWRfb3BlcmF0aW9uGBsgASgLMjguZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNhbXBhaWduRmVlZE9wZXJh", - "dGlvbkgAEl0KGGNhbXBhaWduX2dyb3VwX29wZXJhdGlvbhgJIAEoCzI5Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DYW1wYWlnbkdyb3Vw", - "T3BlcmF0aW9uSAASXQoYY2FtcGFpZ25fbGFiZWxfb3BlcmF0aW9uGBwgASgL", - "MjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNhbXBhaWdu", - "TGFiZWxPcGVyYXRpb25IABJSChJjYW1wYWlnbl9vcGVyYXRpb24YCiABKAsy", - "NC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ2FtcGFpZ25P", - "cGVyYXRpb25IABJmCh1jYW1wYWlnbl9zaGFyZWRfc2V0X29wZXJhdGlvbhgL", - "IAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DYW1w", - "YWlnblNoYXJlZFNldE9wZXJhdGlvbkgAEmMKG2NvbnZlcnNpb25fYWN0aW9u", - "X29wZXJhdGlvbhgMIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5Db252ZXJzaW9uQWN0aW9uT3BlcmF0aW9uSAASdAokY29udmVy", - "c2lvbl9jdXN0b21fdmFyaWFibGVfb3BlcmF0aW9uGDcgASgLMkQuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNvbnZlcnNpb25DdXN0b21W", - "YXJpYWJsZU9wZXJhdGlvbkgAEn0KKWNvbnZlcnNpb25fZ29hbF9jYW1wYWln", - "bl9jb25maWdfb3BlcmF0aW9uGEUgASgLMkguZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLkNvbnZlcnNpb25Hb2FsQ2FtcGFpZ25Db25maWdP", - "cGVyYXRpb25IABJqCh9jb252ZXJzaW9uX3ZhbHVlX3J1bGVfb3BlcmF0aW9u", - "GD8gASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkNv", - "bnZlcnNpb25WYWx1ZVJ1bGVPcGVyYXRpb25IABJxCiNjb252ZXJzaW9uX3Zh", - "bHVlX3J1bGVfc2V0X29wZXJhdGlvbhhAIAEoCzJCLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5Db252ZXJzaW9uVmFsdWVSdWxlU2V0T3Bl", - "cmF0aW9uSAASbAogY3VzdG9tX2NvbnZlcnNpb25fZ29hbF9vcGVyYXRpb24Y", - "RCABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3Vz", - "dG9tQ29udmVyc2lvbkdvYWxPcGVyYXRpb25IABJdChhjdXN0b21lcl9hc3Nl", - "dF9vcGVyYXRpb24YOSABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuQ3VzdG9tZXJBc3NldE9wZXJhdGlvbkgAEnAKImN1c3RvbWVy", - "X2NvbnZlcnNpb25fZ29hbF9vcGVyYXRpb24YQiABKAsyQi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3VzdG9tZXJDb252ZXJzaW9uR29h", - "bE9wZXJhdGlvbkgAEmcKHWN1c3RvbWVyX2N1c3RvbWl6ZXJfb3BlcmF0aW9u", - "GE8gASgLMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkN1", - "c3RvbWVyQ3VzdG9taXplck9wZXJhdGlvbkgAEnQKJGN1c3RvbWVyX2V4dGVu", - "c2lvbl9zZXR0aW5nX29wZXJhdGlvbhgeIAEoCzJELmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5DdXN0b21lckV4dGVuc2lvblNldHRpbmdP", - "cGVyYXRpb25IABJbChdjdXN0b21lcl9mZWVkX29wZXJhdGlvbhgfIAEoCzI4", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DdXN0b21lckZl", - "ZWRPcGVyYXRpb25IABJdChhjdXN0b21lcl9sYWJlbF9vcGVyYXRpb24YICAB", - "KAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuQ3VzdG9t", - "ZXJMYWJlbE9wZXJhdGlvbkgAEnYKJWN1c3RvbWVyX25lZ2F0aXZlX2NyaXRl", - "cmlvbl9vcGVyYXRpb24YIiABKAsyRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuQ3VzdG9tZXJOZWdhdGl2ZUNyaXRlcmlvbk9wZXJhdGlv", - "bkgAElIKEmN1c3RvbWVyX29wZXJhdGlvbhgjIAEoCzI0Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DdXN0b21lck9wZXJhdGlvbkgAEmkK", - "HmN1c3RvbWl6ZXJfYXR0cmlidXRlX29wZXJhdGlvbhhGIAEoCzI/Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5DdXN0b21pemVyQXR0cmli", - "dXRlT3BlcmF0aW9uSAASVgoUZXhwZXJpbWVudF9vcGVyYXRpb24YUiABKAsy", - "Ni5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuRXhwZXJpbWVu", - "dE9wZXJhdGlvbkgAEl0KGGV4cGVyaW1lbnRfYXJtX29wZXJhdGlvbhhTIAEo", - "CzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5FeHBlcmlt", - "ZW50QXJtT3BlcmF0aW9uSAASZgodZXh0ZW5zaW9uX2ZlZWRfaXRlbV9vcGVy", - "YXRpb24YJCABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuRXh0ZW5zaW9uRmVlZEl0ZW1PcGVyYXRpb25IABJTChNmZWVkX2l0ZW1f", - "b3BlcmF0aW9uGCUgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkZlZWRJdGVtT3BlcmF0aW9uSAASWgoXZmVlZF9pdGVtX3NldF9v", - "cGVyYXRpb24YNSABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuRmVlZEl0ZW1TZXRPcGVyYXRpb25IABJjChxmZWVkX2l0ZW1fc2V0", - "X2xpbmtfb3BlcmF0aW9uGDYgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLkZlZWRJdGVtU2V0TGlua09wZXJhdGlvbkgAEmAKGmZl", - "ZWRfaXRlbV90YXJnZXRfb3BlcmF0aW9uGCYgASgLMjouZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLkZlZWRJdGVtVGFyZ2V0T3BlcmF0aW9u", - "SAASWQoWZmVlZF9tYXBwaW5nX29wZXJhdGlvbhgnIAEoCzI3Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5GZWVkTWFwcGluZ09wZXJhdGlv", - "bkgAEkoKDmZlZWRfb3BlcmF0aW9uGCggASgLMjAuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLkZlZWRPcGVyYXRpb25IABJpCh9rZXl3b3Jk", - "X3BsYW5fYWRfZ3JvdXBfb3BlcmF0aW9uGCwgASgLMj4uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLktleXdvcmRQbGFuQWRHcm91cE9wZXJh", - "dGlvbkgAEngKJ2tleXdvcmRfcGxhbl9hZF9ncm91cF9rZXl3b3JkX29wZXJh", - "dGlvbhgyIAEoCzJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5LZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3JkT3BlcmF0aW9uSAASeQona2V5", - "d29yZF9wbGFuX2NhbXBhaWduX2tleXdvcmRfb3BlcmF0aW9uGDMgASgLMkYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLktleXdvcmRQbGFu", - "Q2FtcGFpZ25LZXl3b3JkT3BlcmF0aW9uSAASagofa2V5d29yZF9wbGFuX2Nh", - "bXBhaWduX29wZXJhdGlvbhgtIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5LZXl3b3JkUGxhbkNhbXBhaWduT3BlcmF0aW9uSAAS", - "WQoWa2V5d29yZF9wbGFuX29wZXJhdGlvbhgwIAEoCzI3Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5LZXl3b3JkUGxhbk9wZXJhdGlvbkgA", - "EkwKD2xhYmVsX29wZXJhdGlvbhgpIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5MYWJlbE9wZXJhdGlvbkgAElUKFG1lZGlhX2Zp", - "bGVfb3BlcmF0aW9uGCogASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLk1lZGlhRmlsZU9wZXJhdGlvbkgAEmUKHHJlbWFya2V0aW5n", - "X2FjdGlvbl9vcGVyYXRpb24YKyABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuUmVtYXJrZXRpbmdBY3Rpb25PcGVyYXRpb25IABJh", - "ChpzaGFyZWRfY3JpdGVyaW9uX29wZXJhdGlvbhgOIAEoCzI7Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5TaGFyZWRDcml0ZXJpb25PcGVy", - "YXRpb25IABJVChRzaGFyZWRfc2V0X29wZXJhdGlvbhgPIAEoCzI1Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5TaGFyZWRTZXRPcGVyYXRp", - "b25IABJsCiBzbWFydF9jYW1wYWlnbl9zZXR0aW5nX29wZXJhdGlvbhg9IAEo", - "CzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5TbWFydENh", - "bXBhaWduU2V0dGluZ09wZXJhdGlvbkgAElMKE3VzZXJfbGlzdF9vcGVyYXRp", - "b24YECABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "VXNlckxpc3RPcGVyYXRpb25IAEILCglvcGVyYXRpb24iizsKF011dGF0ZU9w", - "ZXJhdGlvblJlc3BvbnNlEmEKGGFkX2dyb3VwX2FkX2xhYmVsX3Jlc3VsdBgR", - "IAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRh", - "dGVBZEdyb3VwQWRMYWJlbFJlc3VsdEgAElYKEmFkX2dyb3VwX2FkX3Jlc3Vs", - "dBgBIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5N", - "dXRhdGVBZEdyb3VwQWRSZXN1bHRIABJcChVhZF9ncm91cF9hc3NldF9yZXN1", - "bHQYOCABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQWRHcm91cEFzc2V0UmVzdWx0SAASaQocYWRfZ3JvdXBfYmlkX21v", - "ZGlmaWVyX3Jlc3VsdBgCIAEoCzJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQmlkTW9kaWZpZXJSZXN1bHRIABJ5", - "CiRhZF9ncm91cF9jcml0ZXJpb25fY3VzdG9taXplcl9yZXN1bHQYTSABKAsy", - "SS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRH", - "cm91cENyaXRlcmlvbkN1c3RvbWl6ZXJSZXN1bHRIABJvCh9hZF9ncm91cF9j", - "cml0ZXJpb25fbGFiZWxfcmVzdWx0GBIgASgLMkQuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBDcml0ZXJpb25MYWJl", - "bFJlc3VsdEgAEmQKGWFkX2dyb3VwX2NyaXRlcmlvbl9yZXN1bHQYAyABKAsy", - "Py5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQWRH", - "cm91cENyaXRlcmlvblJlc3VsdEgAEmYKGmFkX2dyb3VwX2N1c3RvbWl6ZXJf", - "cmVzdWx0GEsgASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLk11dGF0ZUFkR3JvdXBDdXN0b21pemVyUmVzdWx0SAAScwohYWRfZ3Jv", - "dXBfZXh0ZW5zaW9uX3NldHRpbmdfcmVzdWx0GBMgASgLMkYuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBFeHRlbnNp", - "b25TZXR0aW5nUmVzdWx0SAASWgoUYWRfZ3JvdXBfZmVlZF9yZXN1bHQYFCAB", - "KAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "QWRHcm91cEZlZWRSZXN1bHRIABJcChVhZF9ncm91cF9sYWJlbF9yZXN1bHQY", - "FSABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0", - "YXRlQWRHcm91cExhYmVsUmVzdWx0SAASUQoPYWRfZ3JvdXBfcmVzdWx0GAUg", - "ASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUFkR3JvdXBSZXN1bHRIABJZChNhZF9wYXJhbWV0ZXJfcmVzdWx0GBYgASgL", - "MjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFk", - "UGFyYW1ldGVyUmVzdWx0SAASRgoJYWRfcmVzdWx0GDEgASgLMjEuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFkUmVzdWx0SAAS", - "TAoMYXNzZXRfcmVzdWx0GBcgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0UmVzdWx0SAASYgoYYXNzZXRfZ3Jv", - "dXBfYXNzZXRfcmVzdWx0GEEgASgLMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0R3JvdXBBc3NldFJlc3VsdEgAEn4K", - "J2Fzc2V0X2dyb3VwX2xpc3RpbmdfZ3JvdXBfZmlsdGVyX3Jlc3VsdBhOIAEo", - "CzJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVB", - "c3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyUmVzdWx0SAASZAoZYXNzZXRf", - "Z3JvdXBfc2lnbmFsX3Jlc3VsdBhPIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3VwU2lnbmFsUmVzdWx0", - "SAASVwoSYXNzZXRfZ3JvdXBfcmVzdWx0GD4gASgLMjkuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0R3JvdXBSZXN1bHRI", - "ABJeChZhc3NldF9zZXRfYXNzZXRfcmVzdWx0GEcgASgLMjwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0U2V0QXNzZXRS", - "ZXN1bHRIABJTChBhc3NldF9zZXRfcmVzdWx0GEggASgLMjcuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUFzc2V0U2V0UmVzdWx0", - "SAASUgoPYXVkaWVuY2VfcmVzdWx0GFAgASgLMjcuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUF1ZGllbmNlUmVzdWx0SAASbQod", - "YmlkZGluZ19kYXRhX2V4Y2x1c2lvbl9yZXN1bHQYOiABKAsyRC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQmlkZGluZ0RhdGFF", - "eGNsdXNpb25zUmVzdWx0SAASfQolYmlkZGluZ19zZWFzb25hbGl0eV9hZGp1", - "c3RtZW50X3Jlc3VsdBg7IAEoCzJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5NdXRhdGVCaWRkaW5nU2Vhc29uYWxpdHlBZGp1c3RtZW50", - "c1Jlc3VsdEgAEmEKF2JpZGRpbmdfc3RyYXRlZ3lfcmVzdWx0GAYgASgLMj4u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUJpZGRp", - "bmdTdHJhdGVneVJlc3VsdEgAEl0KFWNhbXBhaWduX2Fzc2V0X3Jlc3VsdBg0", - "IAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRh", - "dGVDYW1wYWlnbkFzc2V0UmVzdWx0SAASZAoZY2FtcGFpZ25fYXNzZXRfc2V0", - "X3Jlc3VsdBhJIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2", - "aWNlcy5NdXRhdGVDYW1wYWlnbkFzc2V0U2V0UmVzdWx0SAASagocY2FtcGFp", - "Z25fYmlkX21vZGlmaWVyX3Jlc3VsdBgHIAEoCzJCLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkJpZE1vZGlmaWVy", - "UmVzdWx0SAASXwoWY2FtcGFpZ25fYnVkZ2V0X3Jlc3VsdBgIIAEoCzI9Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWln", - "bkJ1ZGdldFJlc3VsdEgAEnAKH2NhbXBhaWduX2NvbnZlcnNpb25fZ29hbF9y", - "ZXN1bHQYQyABKAsyRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuTXV0YXRlQ2FtcGFpZ25Db252ZXJzaW9uR29hbFJlc3VsdEgAEmUKGWNh", - "bXBhaWduX2NyaXRlcmlvbl9yZXN1bHQYDSABKAsyQC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25Dcml0ZXJpb25S", - "ZXN1bHRIABJnChpjYW1wYWlnbl9jdXN0b21pemVyX3Jlc3VsdBhMIAEoCzJB", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1w", - "YWlnbkN1c3RvbWl6ZXJSZXN1bHRIABJdChVjYW1wYWlnbl9kcmFmdF9yZXN1", - "bHQYGCABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQ2FtcGFpZ25EcmFmdFJlc3VsdEgAEnQKIWNhbXBhaWduX2V4dGVu", - "c2lvbl9zZXR0aW5nX3Jlc3VsdBgaIAEoCzJHLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkV4dGVuc2lvblNldHRp", - "bmdSZXN1bHRIABJbChRjYW1wYWlnbl9mZWVkX3Jlc3VsdBgbIAEoCzI7Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDYW1wYWln", - "bkZlZWRSZXN1bHRIABJdChVjYW1wYWlnbl9ncm91cF9yZXN1bHQYCSABKAsy", - "PC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ2Ft", - "cGFpZ25Hcm91cFJlc3VsdEgAEl0KFWNhbXBhaWduX2xhYmVsX3Jlc3VsdBgc", - "IAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRh", - "dGVDYW1wYWlnbkxhYmVsUmVzdWx0SAASUgoPY2FtcGFpZ25fcmVzdWx0GAog", - "ASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUNhbXBhaWduUmVzdWx0SAASZgoaY2FtcGFpZ25fc2hhcmVkX3NldF9yZXN1", - "bHQYCyABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMu", - "TXV0YXRlQ2FtcGFpZ25TaGFyZWRTZXRSZXN1bHRIABJjChhjb252ZXJzaW9u", - "X2FjdGlvbl9yZXN1bHQYDCABKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvbkFjdGlvblJlc3VsdEgAEnQK", - "IWNvbnZlcnNpb25fY3VzdG9tX3ZhcmlhYmxlX3Jlc3VsdBg3IAEoCzJHLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDb252ZXJz", - "aW9uQ3VzdG9tVmFyaWFibGVSZXN1bHRIABJ9CiZjb252ZXJzaW9uX2dvYWxf", - "Y2FtcGFpZ25fY29uZmlnX3Jlc3VsdBhFIAEoCzJLLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDb252ZXJzaW9uR29hbENhbXBh", - "aWduQ29uZmlnUmVzdWx0SAASagocY29udmVyc2lvbl92YWx1ZV9ydWxlX3Jl", - "c3VsdBg/IAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVDb252ZXJzaW9uVmFsdWVSdWxlUmVzdWx0SAAScQogY29udmVy", - "c2lvbl92YWx1ZV9ydWxlX3NldF9yZXN1bHQYQCABKAsyRS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvblZhbHVl", - "UnVsZVNldFJlc3VsdEgAEmwKHWN1c3RvbV9jb252ZXJzaW9uX2dvYWxfcmVz", - "dWx0GEQgASgLMkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "Lk11dGF0ZUN1c3RvbUNvbnZlcnNpb25Hb2FsUmVzdWx0SAASXQoVY3VzdG9t", - "ZXJfYXNzZXRfcmVzdWx0GDkgASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyQXNzZXRSZXN1bHRIABJwCh9j", - "dXN0b21lcl9jb252ZXJzaW9uX2dvYWxfcmVzdWx0GEIgASgLMkUuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyQ29u", - "dmVyc2lvbkdvYWxSZXN1bHRIABJnChpjdXN0b21lcl9jdXN0b21pemVyX3Jl", - "c3VsdBhKIAEoCzJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5NdXRhdGVDdXN0b21lckN1c3RvbWl6ZXJSZXN1bHRIABJ0CiFjdXN0b21l", - "cl9leHRlbnNpb25fc2V0dGluZ19yZXN1bHQYHiABKAsyRy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJFeHRlbnNp", - "b25TZXR0aW5nUmVzdWx0SAASWwoUY3VzdG9tZXJfZmVlZF9yZXN1bHQYHyAB", - "KAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "Q3VzdG9tZXJGZWVkUmVzdWx0SAASXQoVY3VzdG9tZXJfbGFiZWxfcmVzdWx0", - "GCAgASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11", - "dGF0ZUN1c3RvbWVyTGFiZWxSZXN1bHRIABJ1CiJjdXN0b21lcl9uZWdhdGl2", - "ZV9jcml0ZXJpb25fcmVzdWx0GCIgASgLMkcuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyTmVnYXRpdmVDcml0ZXJp", - "YVJlc3VsdEgAElIKD2N1c3RvbWVyX3Jlc3VsdBgjIAEoCzI3Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lclJlc3Vs", - "dEgAEmkKG2N1c3RvbWl6ZXJfYXR0cmlidXRlX3Jlc3VsdBhGIAEoCzJCLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVDdXN0b21p", - "emVyQXR0cmlidXRlUmVzdWx0SAASVgoRZXhwZXJpbWVudF9yZXN1bHQYUSAB", - "KAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRl", - "RXhwZXJpbWVudFJlc3VsdEgAEl0KFWV4cGVyaW1lbnRfYXJtX3Jlc3VsdBhS", - "IAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRh", - "dGVFeHBlcmltZW50QXJtUmVzdWx0SAASZgoaZXh0ZW5zaW9uX2ZlZWRfaXRl", - "bV9yZXN1bHQYJCABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuTXV0YXRlRXh0ZW5zaW9uRmVlZEl0ZW1SZXN1bHRIABJTChBmZWVk", - "X2l0ZW1fcmVzdWx0GCUgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLk11dGF0ZUZlZWRJdGVtUmVzdWx0SAASWgoUZmVlZF9pdGVt", - "X3NldF9yZXN1bHQYNSABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXMuTXV0YXRlRmVlZEl0ZW1TZXRSZXN1bHRIABJjChlmZWVkX2l0", - "ZW1fc2V0X2xpbmtfcmVzdWx0GDYgASgLMj4uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLk11dGF0ZUZlZWRJdGVtU2V0TGlua1Jlc3VsdEgA", - "EmAKF2ZlZWRfaXRlbV90YXJnZXRfcmVzdWx0GCYgASgLMj0uZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUZlZWRJdGVtVGFyZ2V0", - "UmVzdWx0SAASWQoTZmVlZF9tYXBwaW5nX3Jlc3VsdBgnIAEoCzI6Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVGZWVkTWFwcGlu", - "Z1Jlc3VsdEgAEkoKC2ZlZWRfcmVzdWx0GCggASgLMjMuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUZlZWRSZXN1bHRIABJpChxr", - "ZXl3b3JkX3BsYW5fYWRfZ3JvdXBfcmVzdWx0GCwgASgLMkEuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUtleXdvcmRQbGFuQWRH", - "cm91cFJlc3VsdEgAEmoKHGtleXdvcmRfcGxhbl9jYW1wYWlnbl9yZXN1bHQY", - "LSABKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0", - "YXRlS2V5d29yZFBsYW5DYW1wYWlnblJlc3VsdEgAEngKJGtleXdvcmRfcGxh", - "bl9hZF9ncm91cF9rZXl3b3JkX3Jlc3VsdBgyIAEoCzJILmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbkFkR3Jv", - "dXBLZXl3b3JkUmVzdWx0SAASeQoka2V5d29yZF9wbGFuX2NhbXBhaWduX2tl", - "eXdvcmRfcmVzdWx0GDMgASgLMkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnNlcnZpY2VzLk11dGF0ZUtleXdvcmRQbGFuQ2FtcGFpZ25LZXl3b3JkUmVz", - "dWx0SAASWgoTa2V5d29yZF9wbGFuX3Jlc3VsdBgwIAEoCzI7Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbnNS", - "ZXN1bHRIABJMCgxsYWJlbF9yZXN1bHQYKSABKAsyNC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlTGFiZWxSZXN1bHRIABJVChFt", - "ZWRpYV9maWxlX3Jlc3VsdBgqIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVNZWRpYUZpbGVSZXN1bHRIABJlChlyZW1h", - "cmtldGluZ19hY3Rpb25fcmVzdWx0GCsgASgLMkAuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZVJlbWFya2V0aW5nQWN0aW9uUmVz", - "dWx0SAASYQoXc2hhcmVkX2NyaXRlcmlvbl9yZXN1bHQYDiABKAsyPi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlU2hhcmVkQ3Jp", - "dGVyaW9uUmVzdWx0SAASVQoRc2hhcmVkX3NldF9yZXN1bHQYDyABKAsyOC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlU2hhcmVk", - "U2V0UmVzdWx0SAASbAodc21hcnRfY2FtcGFpZ25fc2V0dGluZ19yZXN1bHQY", - "PSABKAsyQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0", - "YXRlU21hcnRDYW1wYWlnblNldHRpbmdSZXN1bHRIABJTChB1c2VyX2xpc3Rf", - "cmVzdWx0GBAgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZp", - "Y2VzLk11dGF0ZVVzZXJMaXN0UmVzdWx0SABCCgoIcmVzcG9uc2Uy9QUKEEdv", - "b2dsZUFkc1NlcnZpY2USzwEKBlNlYXJjaBI5Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5TZWFyY2hHb29nbGVBZHNSZXF1ZXN0GjouZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLlNlYXJjaEdvb2dsZUFk", - "c1Jlc3BvbnNlIk6C0+STAjQiLy92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9p", - "ZD0qfS9nb29nbGVBZHM6c2VhcmNoOgEq2kERY3VzdG9tZXJfaWQscXVlcnkS", - "6QEKDFNlYXJjaFN0cmVhbRI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5TZWFyY2hHb29nbGVBZHNTdHJlYW1SZXF1ZXN0GkAuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLlNlYXJjaEdvb2dsZUFkc1N0", - "cmVhbVJlc3BvbnNlIlSC0+STAjoiNS92MTIvY3VzdG9tZXJzL3tjdXN0b21l", - "cl9pZD0qfS9nb29nbGVBZHM6c2VhcmNoU3RyZWFtOgEq2kERY3VzdG9tZXJf", - "aWQscXVlcnkwARLbAQoGTXV0YXRlEjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLk11dGF0ZUdvb2dsZUFkc1JlcXVlc3QaOi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlR29vZ2xlQWRzUmVz", - "cG9uc2UiWoLT5JMCNCIvL3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9", - "L2dvb2dsZUFkczptdXRhdGU6ASraQR1jdXN0b21lcl9pZCxtdXRhdGVfb3Bl", - "cmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6", - "Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQoECCiVjb20uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQhVHb29nbGVBZHNTZXJ2", - "aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNlc6ICA0dB", - "QaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oCIUdvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6QWRzOjpH", - "b29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.MetricsReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Common.SegmentsReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposalReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AccountLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AdScheduleViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AgeRangeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilterReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignalReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetSetAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.AudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BatchJobReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustmentReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategyReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.BillingSetupReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CallViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignBudgetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignDraftReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CarrierConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ChangeEventReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ChangeStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ClickViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CombinedAudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionActionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariableReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfigReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomAudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomInterestReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerClientReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttributeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographicReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.DistanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.DomainCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ExperimentReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ExperimentArmReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItemReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedItemReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedItemTargetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedMappingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.GenderViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.GeographicViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.HotelGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeywordReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeywordReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.LabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.LandingPageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.LanguageConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.LeadFormSubmissionDataReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.LifeEventReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.LocationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ManagedPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.MediaFileReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.MobileDeviceConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.OfflineUserDataJobReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.OperatingSystemVersionConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.PaidOrganicSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ParentalStatusViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.PerStoreViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ProductBiddingCategoryConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ProductGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.RecommendationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.RemarketingActionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.SearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.SharedCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.SharedSetReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ShoppingPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.TopicConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.TopicViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.UserInterestReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.UserListReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.UserLocationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.VideoReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.WebpageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupAdServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdParameterServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AdServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AssetGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AssetSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.AudienceServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignDraftServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ConversionActionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ExperimentArmServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ExperimentServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.FeedItemServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.FeedItemSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.FeedMappingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.FeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.LabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.MediaFileServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.RemarketingActionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.SharedCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.SharedSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Services.UserListServiceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest), global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest.Parser, new[]{ "CustomerId", "Query", "PageToken", "PageSize", "ValidateOnly", "ReturnTotalResultsCount", "SummaryRowSetting" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsResponse), global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsResponse.Parser, new[]{ "Results", "NextPageToken", "TotalResultsCount", "FieldMask", "SummaryRow" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamRequest), global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamRequest.Parser, new[]{ "CustomerId", "Query", "SummaryRowSetting" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamResponse), global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamResponse.Parser, new[]{ "Results", "FieldMask", "SummaryRow", "RequestId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow), global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow.Parser, new[]{ "AccountBudget", "AccountBudgetProposal", "AccountLink", "AdGroup", "AdGroupAd", "AdGroupAdAssetCombinationView", "AdGroupAdAssetView", "AdGroupAdLabel", "AdGroupAsset", "AdGroupAssetSet", "AdGroupAudienceView", "AdGroupBidModifier", "AdGroupCriterion", "AdGroupCriterionCustomizer", "AdGroupCriterionLabel", "AdGroupCriterionSimulation", "AdGroupCustomizer", "AdGroupExtensionSetting", "AdGroupFeed", "AdGroupLabel", "AdGroupSimulation", "AdParameter", "AgeRangeView", "AdScheduleView", "DomainCategory", "Asset", "AssetFieldTypeView", "AssetGroupAsset", "AssetGroupSignal", "AssetGroupListingGroupFilter", "AssetGroupProductGroupView", "AssetGroup", "AssetSetAsset", "AssetSet", "AssetSetTypeView", "BatchJob", "BiddingDataExclusion", "BiddingSeasonalityAdjustment", "BiddingStrategy", "BiddingStrategySimulation", "BillingSetup", "CallView", "CampaignBudget", "Campaign", "CampaignAsset", "CampaignAssetSet", "CampaignAudienceView", "CampaignBidModifier", "CampaignConversionGoal", "CampaignCriterion", "CampaignCriterionSimulation", "CampaignCustomizer", "CampaignDraft", "CampaignExtensionSetting", "CampaignFeed", "CampaignGroup", "CampaignLabel", "CampaignSharedSet", "CampaignSimulation", "CarrierConstant", "ChangeEvent", "ChangeStatus", "CombinedAudience", "Audience", "ConversionAction", "ConversionCustomVariable", "ConversionGoalCampaignConfig", "ConversionValueRule", "ConversionValueRuleSet", "ClickView", "CurrencyConstant", "CustomAudience", "CustomConversionGoal", "CustomInterest", "Customer", "CustomerAsset", "CustomerAssetSet", "AccessibleBiddingStrategy", "CustomerCustomizer", "CustomerManagerLink", "CustomerClientLink", "CustomerClient", "CustomerConversionGoal", "CustomerExtensionSetting", "CustomerFeed", "CustomerLabel", "CustomerNegativeCriterion", "CustomerUserAccess", "CustomerUserAccessInvitation", "CustomizerAttribute", "DetailPlacementView", "DetailedDemographic", "DisplayKeywordView", "DistanceView", "DynamicSearchAdsSearchTermView", "ExpandedLandingPageView", "ExtensionFeedItem", "Feed", "FeedItem", "FeedItemSet", "FeedItemSetLink", "FeedItemTarget", "FeedMapping", "FeedPlaceholderView", "GenderView", "GeoTargetConstant", "GeographicView", "GroupPlacementView", "HotelGroupView", "HotelPerformanceView", "HotelReconciliation", "IncomeRangeView", "KeywordView", "KeywordPlan", "KeywordPlanCampaign", "KeywordPlanCampaignKeyword", "KeywordPlanAdGroup", "KeywordPlanAdGroupKeyword", "KeywordThemeConstant", "Label", "LandingPageView", "LanguageConstant", "LocationView", "ManagedPlacementView", "MediaFile", "MobileAppCategoryConstant", "MobileDeviceConstant", "OfflineUserDataJob", "OperatingSystemVersionConstant", "PaidOrganicSearchTermView", "ParentalStatusView", "PerStoreView", "ProductBiddingCategoryConstant", "ProductGroupView", "Recommendation", "SearchTermView", "SharedCriterion", "SharedSet", "SmartCampaignSetting", "ShoppingPerformanceView", "SmartCampaignSearchTermView", "ThirdPartyAppAnalyticsLink", "TopicView", "Experiment", "ExperimentArm", "UserInterest", "LifeEvent", "UserList", "UserLocationView", "RemarketingAction", "TopicConstant", "Video", "WebpageView", "LeadFormSubmissionData", "Metrics", "Segments" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest.Parser, new[]{ "CustomerId", "MutateOperations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsResponse.Parser, new[]{ "PartialFailureError", "MutateOperationResponses" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateOperation), global::Google.Ads.GoogleAds.V12.Services.MutateOperation.Parser, new[]{ "AdGroupAdLabelOperation", "AdGroupAdOperation", "AdGroupAssetOperation", "AdGroupBidModifierOperation", "AdGroupCriterionCustomizerOperation", "AdGroupCriterionLabelOperation", "AdGroupCriterionOperation", "AdGroupCustomizerOperation", "AdGroupExtensionSettingOperation", "AdGroupFeedOperation", "AdGroupLabelOperation", "AdGroupOperation", "AdOperation", "AdParameterOperation", "AssetOperation", "AssetGroupAssetOperation", "AssetGroupListingGroupFilterOperation", "AssetGroupSignalOperation", "AssetGroupOperation", "AssetSetAssetOperation", "AssetSetOperation", "AudienceOperation", "BiddingDataExclusionOperation", "BiddingSeasonalityAdjustmentOperation", "BiddingStrategyOperation", "CampaignAssetOperation", "CampaignAssetSetOperation", "CampaignBidModifierOperation", "CampaignBudgetOperation", "CampaignConversionGoalOperation", "CampaignCriterionOperation", "CampaignCustomizerOperation", "CampaignDraftOperation", "CampaignExtensionSettingOperation", "CampaignFeedOperation", "CampaignGroupOperation", "CampaignLabelOperation", "CampaignOperation", "CampaignSharedSetOperation", "ConversionActionOperation", "ConversionCustomVariableOperation", "ConversionGoalCampaignConfigOperation", "ConversionValueRuleOperation", "ConversionValueRuleSetOperation", "CustomConversionGoalOperation", "CustomerAssetOperation", "CustomerConversionGoalOperation", "CustomerCustomizerOperation", "CustomerExtensionSettingOperation", "CustomerFeedOperation", "CustomerLabelOperation", "CustomerNegativeCriterionOperation", "CustomerOperation", "CustomizerAttributeOperation", "ExperimentOperation", "ExperimentArmOperation", "ExtensionFeedItemOperation", "FeedItemOperation", "FeedItemSetOperation", "FeedItemSetLinkOperation", "FeedItemTargetOperation", "FeedMappingOperation", "FeedOperation", "KeywordPlanAdGroupOperation", "KeywordPlanAdGroupKeywordOperation", "KeywordPlanCampaignKeywordOperation", "KeywordPlanCampaignOperation", "KeywordPlanOperation", "LabelOperation", "MediaFileOperation", "RemarketingActionOperation", "SharedCriterionOperation", "SharedSetOperation", "SmartCampaignSettingOperation", "UserListOperation" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse), global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse.Parser, new[]{ "AdGroupAdLabelResult", "AdGroupAdResult", "AdGroupAssetResult", "AdGroupBidModifierResult", "AdGroupCriterionCustomizerResult", "AdGroupCriterionLabelResult", "AdGroupCriterionResult", "AdGroupCustomizerResult", "AdGroupExtensionSettingResult", "AdGroupFeedResult", "AdGroupLabelResult", "AdGroupResult", "AdParameterResult", "AdResult", "AssetResult", "AssetGroupAssetResult", "AssetGroupListingGroupFilterResult", "AssetGroupSignalResult", "AssetGroupResult", "AssetSetAssetResult", "AssetSetResult", "AudienceResult", "BiddingDataExclusionResult", "BiddingSeasonalityAdjustmentResult", "BiddingStrategyResult", "CampaignAssetResult", "CampaignAssetSetResult", "CampaignBidModifierResult", "CampaignBudgetResult", "CampaignConversionGoalResult", "CampaignCriterionResult", "CampaignCustomizerResult", "CampaignDraftResult", "CampaignExtensionSettingResult", "CampaignFeedResult", "CampaignGroupResult", "CampaignLabelResult", "CampaignResult", "CampaignSharedSetResult", "ConversionActionResult", "ConversionCustomVariableResult", "ConversionGoalCampaignConfigResult", "ConversionValueRuleResult", "ConversionValueRuleSetResult", "CustomConversionGoalResult", "CustomerAssetResult", "CustomerConversionGoalResult", "CustomerCustomizerResult", "CustomerExtensionSettingResult", "CustomerFeedResult", "CustomerLabelResult", "CustomerNegativeCriterionResult", "CustomerResult", "CustomizerAttributeResult", "ExperimentResult", "ExperimentArmResult", "ExtensionFeedItemResult", "FeedItemResult", "FeedItemSetResult", "FeedItemSetLinkResult", "FeedItemTargetResult", "FeedMappingResult", "FeedResult", "KeywordPlanAdGroupResult", "KeywordPlanCampaignResult", "KeywordPlanAdGroupKeywordResult", "KeywordPlanCampaignKeywordResult", "KeywordPlanResult", "LabelResult", "MediaFileResult", "RemarketingActionResult", "SharedCriterionResult", "SharedSetResult", "SmartCampaignSettingResult", "UserListResult" }, new[]{ "Response" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [GoogleAdsService.Search][google.ads.googleads.v12.services.GoogleAdsService.Search]. - /// - public sealed partial class SearchGoogleAdsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchGoogleAdsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsRequest(SearchGoogleAdsRequest other) : this() { - customerId_ = other.customerId_; - query_ = other.query_; - pageToken_ = other.pageToken_; - pageSize_ = other.pageSize_; - validateOnly_ = other.validateOnly_; - returnTotalResultsCount_ = other.returnTotalResultsCount_; - summaryRowSetting_ = other.summaryRowSetting_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsRequest Clone() { - return new SearchGoogleAdsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer being queried. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "query" field. - public const int QueryFieldNumber = 2; - private string query_ = ""; - /// - /// Required. The query string. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } - set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 3; - private string pageToken_ = ""; - /// - /// Token of the page to retrieve. If not specified, the first - /// page of results will be returned. Use the value obtained from - /// `next_page_token` in the previous response in order to request - /// the next page of results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 4; - private int pageSize_; - /// - /// Number of elements to retrieve in a single page. - /// When too large a page is requested, the server may decide to - /// further limit the number of returned resources. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 5; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "return_total_results_count" field. - public const int ReturnTotalResultsCountFieldNumber = 7; - private bool returnTotalResultsCount_; - /// - /// If true, the total number of results that match the query ignoring the - /// LIMIT clause will be included in the response. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ReturnTotalResultsCount { - get { return returnTotalResultsCount_; } - set { - returnTotalResultsCount_ = value; - } - } - - /// Field number for the "summary_row_setting" field. - public const int SummaryRowSettingFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting summaryRowSetting_ = global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified; - /// - /// Determines whether a summary row will be returned. By default, summary row - /// is not returned. If requested, the summary row will be sent in a response - /// by itself after all other query results are returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting SummaryRowSetting { - get { return summaryRowSetting_; } - set { - summaryRowSetting_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchGoogleAdsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchGoogleAdsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (Query != other.Query) return false; - if (PageToken != other.PageToken) return false; - if (PageSize != other.PageSize) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ReturnTotalResultsCount != other.ReturnTotalResultsCount) return false; - if (SummaryRowSetting != other.SummaryRowSetting) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (Query.Length != 0) hash ^= Query.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ReturnTotalResultsCount != false) hash ^= ReturnTotalResultsCount.GetHashCode(); - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) hash ^= SummaryRowSetting.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (Query.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Query); - } - if (PageToken.Length != 0) { - output.WriteRawTag(26); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(32); - output.WriteInt32(PageSize); - } - if (ValidateOnly != false) { - output.WriteRawTag(40); - output.WriteBool(ValidateOnly); - } - if (ReturnTotalResultsCount != false) { - output.WriteRawTag(56); - output.WriteBool(ReturnTotalResultsCount); - } - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) SummaryRowSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (Query.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Query); - } - if (PageToken.Length != 0) { - output.WriteRawTag(26); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(32); - output.WriteInt32(PageSize); - } - if (ValidateOnly != false) { - output.WriteRawTag(40); - output.WriteBool(ValidateOnly); - } - if (ReturnTotalResultsCount != false) { - output.WriteRawTag(56); - output.WriteBool(ReturnTotalResultsCount); - } - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - output.WriteRawTag(64); - output.WriteEnum((int) SummaryRowSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ReturnTotalResultsCount != false) { - size += 1 + 1; - } - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SummaryRowSetting); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchGoogleAdsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.Query.Length != 0) { - Query = other.Query; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ReturnTotalResultsCount != false) { - ReturnTotalResultsCount = other.ReturnTotalResultsCount; - } - if (other.SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - SummaryRowSetting = other.SummaryRowSetting; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - Query = input.ReadString(); - break; - } - case 26: { - PageToken = input.ReadString(); - break; - } - case 32: { - PageSize = input.ReadInt32(); - break; - } - case 40: { - ValidateOnly = input.ReadBool(); - break; - } - case 56: { - ReturnTotalResultsCount = input.ReadBool(); - break; - } - case 64: { - SummaryRowSetting = (global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - Query = input.ReadString(); - break; - } - case 26: { - PageToken = input.ReadString(); - break; - } - case 32: { - PageSize = input.ReadInt32(); - break; - } - case 40: { - ValidateOnly = input.ReadBool(); - break; - } - case 56: { - ReturnTotalResultsCount = input.ReadBool(); - break; - } - case 64: { - SummaryRowSetting = (global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [GoogleAdsService.Search][google.ads.googleads.v12.services.GoogleAdsService.Search]. - /// - public sealed partial class SearchGoogleAdsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchGoogleAdsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsResponse(SearchGoogleAdsResponse other) : this() { - results_ = other.results_.Clone(); - nextPageToken_ = other.nextPageToken_; - totalResultsCount_ = other.totalResultsCount_; - fieldMask_ = other.fieldMask_ != null ? other.fieldMask_.Clone() : null; - summaryRow_ = other.summaryRow_ != null ? other.summaryRow_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsResponse Clone() { - return new SearchGoogleAdsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// The list of rows that matched the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Pagination token used to retrieve the next page of results. - /// Pass the content of this string as the `page_token` attribute of - /// the next request. `next_page_token` is not returned for the last - /// page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "total_results_count" field. - public const int TotalResultsCountFieldNumber = 3; - private long totalResultsCount_; - /// - /// Total number of results that match the query ignoring the LIMIT - /// clause. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalResultsCount { - get { return totalResultsCount_; } - set { - totalResultsCount_ = value; - } - } - - /// Field number for the "field_mask" field. - public const int FieldMaskFieldNumber = 5; - private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMask_; - /// - /// FieldMask that represents what fields were requested by the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMask { - get { return fieldMask_; } - set { - fieldMask_ = value; - } - } - - /// Field number for the "summary_row" field. - public const int SummaryRowFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow summaryRow_; - /// - /// Summary row that contains summary of metrics in results. - /// Summary of metrics means aggregation of metrics across all results, - /// here aggregation could be sum, average, rate, etc. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow SummaryRow { - get { return summaryRow_; } - set { - summaryRow_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchGoogleAdsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchGoogleAdsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (NextPageToken != other.NextPageToken) return false; - if (TotalResultsCount != other.TotalResultsCount) return false; - if (!object.Equals(FieldMask, other.FieldMask)) return false; - if (!object.Equals(SummaryRow, other.SummaryRow)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (TotalResultsCount != 0L) hash ^= TotalResultsCount.GetHashCode(); - if (fieldMask_ != null) hash ^= FieldMask.GetHashCode(); - if (summaryRow_ != null) hash ^= SummaryRow.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalResultsCount != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalResultsCount); - } - if (fieldMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(FieldMask); - } - if (summaryRow_ != null) { - output.WriteRawTag(50); - output.WriteMessage(SummaryRow); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalResultsCount != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalResultsCount); - } - if (fieldMask_ != null) { - output.WriteRawTag(42); - output.WriteMessage(FieldMask); - } - if (summaryRow_ != null) { - output.WriteRawTag(50); - output.WriteMessage(SummaryRow); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (TotalResultsCount != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalResultsCount); - } - if (fieldMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMask); - } - if (summaryRow_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SummaryRow); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchGoogleAdsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - if (other.TotalResultsCount != 0L) { - TotalResultsCount = other.TotalResultsCount; - } - if (other.fieldMask_ != null) { - if (fieldMask_ == null) { - FieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - FieldMask.MergeFrom(other.FieldMask); - } - if (other.summaryRow_ != null) { - if (summaryRow_ == null) { - SummaryRow = new global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow(); - } - SummaryRow.MergeFrom(other.SummaryRow); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalResultsCount = input.ReadInt64(); - break; - } - case 42: { - if (fieldMask_ == null) { - FieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(FieldMask); - break; - } - case 50: { - if (summaryRow_ == null) { - SummaryRow = new global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow(); - } - input.ReadMessage(SummaryRow); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalResultsCount = input.ReadInt64(); - break; - } - case 42: { - if (fieldMask_ == null) { - FieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(FieldMask); - break; - } - case 50: { - if (summaryRow_ == null) { - SummaryRow = new global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow(); - } - input.ReadMessage(SummaryRow); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [GoogleAdsService.SearchStream][google.ads.googleads.v12.services.GoogleAdsService.SearchStream]. - /// - public sealed partial class SearchGoogleAdsStreamRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchGoogleAdsStreamRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsStreamRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsStreamRequest(SearchGoogleAdsStreamRequest other) : this() { - customerId_ = other.customerId_; - query_ = other.query_; - summaryRowSetting_ = other.summaryRowSetting_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsStreamRequest Clone() { - return new SearchGoogleAdsStreamRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer being queried. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "query" field. - public const int QueryFieldNumber = 2; - private string query_ = ""; - /// - /// Required. The query string. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Query { - get { return query_; } - set { - query_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "summary_row_setting" field. - public const int SummaryRowSettingFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting summaryRowSetting_ = global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified; - /// - /// Determines whether a summary row will be returned. By default, summary row - /// is not returned. If requested, the summary row will be sent in a response - /// by itself after all other query results are returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting SummaryRowSetting { - get { return summaryRowSetting_; } - set { - summaryRowSetting_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchGoogleAdsStreamRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchGoogleAdsStreamRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (Query != other.Query) return false; - if (SummaryRowSetting != other.SummaryRowSetting) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (Query.Length != 0) hash ^= Query.GetHashCode(); - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) hash ^= SummaryRowSetting.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (Query.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Query); - } - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) SummaryRowSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (Query.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Query); - } - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) SummaryRowSetting); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (Query.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Query); - } - if (SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SummaryRowSetting); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchGoogleAdsStreamRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.Query.Length != 0) { - Query = other.Query; - } - if (other.SummaryRowSetting != global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.Unspecified) { - SummaryRowSetting = other.SummaryRowSetting; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - Query = input.ReadString(); - break; - } - case 24: { - SummaryRowSetting = (global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - Query = input.ReadString(); - break; - } - case 24: { - SummaryRowSetting = (global::Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [GoogleAdsService.SearchStream][google.ads.googleads.v12.services.GoogleAdsService.SearchStream]. - /// - public sealed partial class SearchGoogleAdsStreamResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchGoogleAdsStreamResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsStreamResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsStreamResponse(SearchGoogleAdsStreamResponse other) : this() { - results_ = other.results_.Clone(); - fieldMask_ = other.fieldMask_ != null ? other.fieldMask_.Clone() : null; - summaryRow_ = other.summaryRow_ != null ? other.summaryRow_.Clone() : null; - requestId_ = other.requestId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SearchGoogleAdsStreamResponse Clone() { - return new SearchGoogleAdsStreamResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// The list of rows that matched the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "field_mask" field. - public const int FieldMaskFieldNumber = 2; - private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMask_; - /// - /// FieldMask that represents what fields were requested by the user. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMask { - get { return fieldMask_; } - set { - fieldMask_ = value; - } - } - - /// Field number for the "summary_row" field. - public const int SummaryRowFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow summaryRow_; - /// - /// Summary row that contains summary of metrics in results. - /// Summary of metrics means aggregation of metrics across all results, - /// here aggregation could be sum, average, rate, etc. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow SummaryRow { - get { return summaryRow_; } - set { - summaryRow_ = value; - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 4; - private string requestId_ = ""; - /// - /// The unique id of the request that is used for debugging purposes. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string RequestId { - get { return requestId_; } - set { - requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SearchGoogleAdsStreamResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SearchGoogleAdsStreamResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(FieldMask, other.FieldMask)) return false; - if (!object.Equals(SummaryRow, other.SummaryRow)) return false; - if (RequestId != other.RequestId) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (fieldMask_ != null) hash ^= FieldMask.GetHashCode(); - if (summaryRow_ != null) hash ^= SummaryRow.GetHashCode(); - if (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (fieldMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FieldMask); - } - if (summaryRow_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SummaryRow); - } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (fieldMask_ != null) { - output.WriteRawTag(18); - output.WriteMessage(FieldMask); - } - if (summaryRow_ != null) { - output.WriteRawTag(26); - output.WriteMessage(SummaryRow); - } - if (RequestId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(RequestId); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (fieldMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMask); - } - if (summaryRow_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SummaryRow); - } - if (RequestId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SearchGoogleAdsStreamResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.fieldMask_ != null) { - if (fieldMask_ == null) { - FieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - FieldMask.MergeFrom(other.FieldMask); - } - if (other.summaryRow_ != null) { - if (summaryRow_ == null) { - SummaryRow = new global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow(); - } - SummaryRow.MergeFrom(other.SummaryRow); - } - if (other.RequestId.Length != 0) { - RequestId = other.RequestId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (fieldMask_ == null) { - FieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(FieldMask); - break; - } - case 26: { - if (summaryRow_ == null) { - SummaryRow = new global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow(); - } - input.ReadMessage(SummaryRow); - break; - } - case 34: { - RequestId = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (fieldMask_ == null) { - FieldMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(FieldMask); - break; - } - case 26: { - if (summaryRow_ == null) { - SummaryRow = new global::Google.Ads.GoogleAds.V12.Services.GoogleAdsRow(); - } - input.ReadMessage(SummaryRow); - break; - } - case 34: { - RequestId = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A returned row from the query. - /// - public sealed partial class GoogleAdsRow : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleAdsRow()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsRow() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsRow(GoogleAdsRow other) : this() { - accountBudget_ = other.accountBudget_ != null ? other.accountBudget_.Clone() : null; - accountBudgetProposal_ = other.accountBudgetProposal_ != null ? other.accountBudgetProposal_.Clone() : null; - accountLink_ = other.accountLink_ != null ? other.accountLink_.Clone() : null; - adGroup_ = other.adGroup_ != null ? other.adGroup_.Clone() : null; - adGroupAd_ = other.adGroupAd_ != null ? other.adGroupAd_.Clone() : null; - adGroupAdAssetCombinationView_ = other.adGroupAdAssetCombinationView_ != null ? other.adGroupAdAssetCombinationView_.Clone() : null; - adGroupAdAssetView_ = other.adGroupAdAssetView_ != null ? other.adGroupAdAssetView_.Clone() : null; - adGroupAdLabel_ = other.adGroupAdLabel_ != null ? other.adGroupAdLabel_.Clone() : null; - adGroupAsset_ = other.adGroupAsset_ != null ? other.adGroupAsset_.Clone() : null; - adGroupAssetSet_ = other.adGroupAssetSet_ != null ? other.adGroupAssetSet_.Clone() : null; - adGroupAudienceView_ = other.adGroupAudienceView_ != null ? other.adGroupAudienceView_.Clone() : null; - adGroupBidModifier_ = other.adGroupBidModifier_ != null ? other.adGroupBidModifier_.Clone() : null; - adGroupCriterion_ = other.adGroupCriterion_ != null ? other.adGroupCriterion_.Clone() : null; - adGroupCriterionCustomizer_ = other.adGroupCriterionCustomizer_ != null ? other.adGroupCriterionCustomizer_.Clone() : null; - adGroupCriterionLabel_ = other.adGroupCriterionLabel_ != null ? other.adGroupCriterionLabel_.Clone() : null; - adGroupCriterionSimulation_ = other.adGroupCriterionSimulation_ != null ? other.adGroupCriterionSimulation_.Clone() : null; - adGroupCustomizer_ = other.adGroupCustomizer_ != null ? other.adGroupCustomizer_.Clone() : null; - adGroupExtensionSetting_ = other.adGroupExtensionSetting_ != null ? other.adGroupExtensionSetting_.Clone() : null; - adGroupFeed_ = other.adGroupFeed_ != null ? other.adGroupFeed_.Clone() : null; - adGroupLabel_ = other.adGroupLabel_ != null ? other.adGroupLabel_.Clone() : null; - adGroupSimulation_ = other.adGroupSimulation_ != null ? other.adGroupSimulation_.Clone() : null; - adParameter_ = other.adParameter_ != null ? other.adParameter_.Clone() : null; - ageRangeView_ = other.ageRangeView_ != null ? other.ageRangeView_.Clone() : null; - adScheduleView_ = other.adScheduleView_ != null ? other.adScheduleView_.Clone() : null; - domainCategory_ = other.domainCategory_ != null ? other.domainCategory_.Clone() : null; - asset_ = other.asset_ != null ? other.asset_.Clone() : null; - assetFieldTypeView_ = other.assetFieldTypeView_ != null ? other.assetFieldTypeView_.Clone() : null; - assetGroupAsset_ = other.assetGroupAsset_ != null ? other.assetGroupAsset_.Clone() : null; - assetGroupSignal_ = other.assetGroupSignal_ != null ? other.assetGroupSignal_.Clone() : null; - assetGroupListingGroupFilter_ = other.assetGroupListingGroupFilter_ != null ? other.assetGroupListingGroupFilter_.Clone() : null; - assetGroupProductGroupView_ = other.assetGroupProductGroupView_ != null ? other.assetGroupProductGroupView_.Clone() : null; - assetGroup_ = other.assetGroup_ != null ? other.assetGroup_.Clone() : null; - assetSetAsset_ = other.assetSetAsset_ != null ? other.assetSetAsset_.Clone() : null; - assetSet_ = other.assetSet_ != null ? other.assetSet_.Clone() : null; - assetSetTypeView_ = other.assetSetTypeView_ != null ? other.assetSetTypeView_.Clone() : null; - batchJob_ = other.batchJob_ != null ? other.batchJob_.Clone() : null; - biddingDataExclusion_ = other.biddingDataExclusion_ != null ? other.biddingDataExclusion_.Clone() : null; - biddingSeasonalityAdjustment_ = other.biddingSeasonalityAdjustment_ != null ? other.biddingSeasonalityAdjustment_.Clone() : null; - biddingStrategy_ = other.biddingStrategy_ != null ? other.biddingStrategy_.Clone() : null; - biddingStrategySimulation_ = other.biddingStrategySimulation_ != null ? other.biddingStrategySimulation_.Clone() : null; - billingSetup_ = other.billingSetup_ != null ? other.billingSetup_.Clone() : null; - callView_ = other.callView_ != null ? other.callView_.Clone() : null; - campaignBudget_ = other.campaignBudget_ != null ? other.campaignBudget_.Clone() : null; - campaign_ = other.campaign_ != null ? other.campaign_.Clone() : null; - campaignAsset_ = other.campaignAsset_ != null ? other.campaignAsset_.Clone() : null; - campaignAssetSet_ = other.campaignAssetSet_ != null ? other.campaignAssetSet_.Clone() : null; - campaignAudienceView_ = other.campaignAudienceView_ != null ? other.campaignAudienceView_.Clone() : null; - campaignBidModifier_ = other.campaignBidModifier_ != null ? other.campaignBidModifier_.Clone() : null; - campaignConversionGoal_ = other.campaignConversionGoal_ != null ? other.campaignConversionGoal_.Clone() : null; - campaignCriterion_ = other.campaignCriterion_ != null ? other.campaignCriterion_.Clone() : null; - campaignCriterionSimulation_ = other.campaignCriterionSimulation_ != null ? other.campaignCriterionSimulation_.Clone() : null; - campaignCustomizer_ = other.campaignCustomizer_ != null ? other.campaignCustomizer_.Clone() : null; - campaignDraft_ = other.campaignDraft_ != null ? other.campaignDraft_.Clone() : null; - campaignExtensionSetting_ = other.campaignExtensionSetting_ != null ? other.campaignExtensionSetting_.Clone() : null; - campaignFeed_ = other.campaignFeed_ != null ? other.campaignFeed_.Clone() : null; - campaignGroup_ = other.campaignGroup_ != null ? other.campaignGroup_.Clone() : null; - campaignLabel_ = other.campaignLabel_ != null ? other.campaignLabel_.Clone() : null; - campaignSharedSet_ = other.campaignSharedSet_ != null ? other.campaignSharedSet_.Clone() : null; - campaignSimulation_ = other.campaignSimulation_ != null ? other.campaignSimulation_.Clone() : null; - carrierConstant_ = other.carrierConstant_ != null ? other.carrierConstant_.Clone() : null; - changeEvent_ = other.changeEvent_ != null ? other.changeEvent_.Clone() : null; - changeStatus_ = other.changeStatus_ != null ? other.changeStatus_.Clone() : null; - combinedAudience_ = other.combinedAudience_ != null ? other.combinedAudience_.Clone() : null; - audience_ = other.audience_ != null ? other.audience_.Clone() : null; - conversionAction_ = other.conversionAction_ != null ? other.conversionAction_.Clone() : null; - conversionCustomVariable_ = other.conversionCustomVariable_ != null ? other.conversionCustomVariable_.Clone() : null; - conversionGoalCampaignConfig_ = other.conversionGoalCampaignConfig_ != null ? other.conversionGoalCampaignConfig_.Clone() : null; - conversionValueRule_ = other.conversionValueRule_ != null ? other.conversionValueRule_.Clone() : null; - conversionValueRuleSet_ = other.conversionValueRuleSet_ != null ? other.conversionValueRuleSet_.Clone() : null; - clickView_ = other.clickView_ != null ? other.clickView_.Clone() : null; - currencyConstant_ = other.currencyConstant_ != null ? other.currencyConstant_.Clone() : null; - customAudience_ = other.customAudience_ != null ? other.customAudience_.Clone() : null; - customConversionGoal_ = other.customConversionGoal_ != null ? other.customConversionGoal_.Clone() : null; - customInterest_ = other.customInterest_ != null ? other.customInterest_.Clone() : null; - customer_ = other.customer_ != null ? other.customer_.Clone() : null; - customerAsset_ = other.customerAsset_ != null ? other.customerAsset_.Clone() : null; - customerAssetSet_ = other.customerAssetSet_ != null ? other.customerAssetSet_.Clone() : null; - accessibleBiddingStrategy_ = other.accessibleBiddingStrategy_ != null ? other.accessibleBiddingStrategy_.Clone() : null; - customerCustomizer_ = other.customerCustomizer_ != null ? other.customerCustomizer_.Clone() : null; - customerManagerLink_ = other.customerManagerLink_ != null ? other.customerManagerLink_.Clone() : null; - customerClientLink_ = other.customerClientLink_ != null ? other.customerClientLink_.Clone() : null; - customerClient_ = other.customerClient_ != null ? other.customerClient_.Clone() : null; - customerConversionGoal_ = other.customerConversionGoal_ != null ? other.customerConversionGoal_.Clone() : null; - customerExtensionSetting_ = other.customerExtensionSetting_ != null ? other.customerExtensionSetting_.Clone() : null; - customerFeed_ = other.customerFeed_ != null ? other.customerFeed_.Clone() : null; - customerLabel_ = other.customerLabel_ != null ? other.customerLabel_.Clone() : null; - customerNegativeCriterion_ = other.customerNegativeCriterion_ != null ? other.customerNegativeCriterion_.Clone() : null; - customerUserAccess_ = other.customerUserAccess_ != null ? other.customerUserAccess_.Clone() : null; - customerUserAccessInvitation_ = other.customerUserAccessInvitation_ != null ? other.customerUserAccessInvitation_.Clone() : null; - customizerAttribute_ = other.customizerAttribute_ != null ? other.customizerAttribute_.Clone() : null; - detailPlacementView_ = other.detailPlacementView_ != null ? other.detailPlacementView_.Clone() : null; - detailedDemographic_ = other.detailedDemographic_ != null ? other.detailedDemographic_.Clone() : null; - displayKeywordView_ = other.displayKeywordView_ != null ? other.displayKeywordView_.Clone() : null; - distanceView_ = other.distanceView_ != null ? other.distanceView_.Clone() : null; - dynamicSearchAdsSearchTermView_ = other.dynamicSearchAdsSearchTermView_ != null ? other.dynamicSearchAdsSearchTermView_.Clone() : null; - expandedLandingPageView_ = other.expandedLandingPageView_ != null ? other.expandedLandingPageView_.Clone() : null; - extensionFeedItem_ = other.extensionFeedItem_ != null ? other.extensionFeedItem_.Clone() : null; - feed_ = other.feed_ != null ? other.feed_.Clone() : null; - feedItem_ = other.feedItem_ != null ? other.feedItem_.Clone() : null; - feedItemSet_ = other.feedItemSet_ != null ? other.feedItemSet_.Clone() : null; - feedItemSetLink_ = other.feedItemSetLink_ != null ? other.feedItemSetLink_.Clone() : null; - feedItemTarget_ = other.feedItemTarget_ != null ? other.feedItemTarget_.Clone() : null; - feedMapping_ = other.feedMapping_ != null ? other.feedMapping_.Clone() : null; - feedPlaceholderView_ = other.feedPlaceholderView_ != null ? other.feedPlaceholderView_.Clone() : null; - genderView_ = other.genderView_ != null ? other.genderView_.Clone() : null; - geoTargetConstant_ = other.geoTargetConstant_ != null ? other.geoTargetConstant_.Clone() : null; - geographicView_ = other.geographicView_ != null ? other.geographicView_.Clone() : null; - groupPlacementView_ = other.groupPlacementView_ != null ? other.groupPlacementView_.Clone() : null; - hotelGroupView_ = other.hotelGroupView_ != null ? other.hotelGroupView_.Clone() : null; - hotelPerformanceView_ = other.hotelPerformanceView_ != null ? other.hotelPerformanceView_.Clone() : null; - hotelReconciliation_ = other.hotelReconciliation_ != null ? other.hotelReconciliation_.Clone() : null; - incomeRangeView_ = other.incomeRangeView_ != null ? other.incomeRangeView_.Clone() : null; - keywordView_ = other.keywordView_ != null ? other.keywordView_.Clone() : null; - keywordPlan_ = other.keywordPlan_ != null ? other.keywordPlan_.Clone() : null; - keywordPlanCampaign_ = other.keywordPlanCampaign_ != null ? other.keywordPlanCampaign_.Clone() : null; - keywordPlanCampaignKeyword_ = other.keywordPlanCampaignKeyword_ != null ? other.keywordPlanCampaignKeyword_.Clone() : null; - keywordPlanAdGroup_ = other.keywordPlanAdGroup_ != null ? other.keywordPlanAdGroup_.Clone() : null; - keywordPlanAdGroupKeyword_ = other.keywordPlanAdGroupKeyword_ != null ? other.keywordPlanAdGroupKeyword_.Clone() : null; - keywordThemeConstant_ = other.keywordThemeConstant_ != null ? other.keywordThemeConstant_.Clone() : null; - label_ = other.label_ != null ? other.label_.Clone() : null; - landingPageView_ = other.landingPageView_ != null ? other.landingPageView_.Clone() : null; - languageConstant_ = other.languageConstant_ != null ? other.languageConstant_.Clone() : null; - locationView_ = other.locationView_ != null ? other.locationView_.Clone() : null; - managedPlacementView_ = other.managedPlacementView_ != null ? other.managedPlacementView_.Clone() : null; - mediaFile_ = other.mediaFile_ != null ? other.mediaFile_.Clone() : null; - mobileAppCategoryConstant_ = other.mobileAppCategoryConstant_ != null ? other.mobileAppCategoryConstant_.Clone() : null; - mobileDeviceConstant_ = other.mobileDeviceConstant_ != null ? other.mobileDeviceConstant_.Clone() : null; - offlineUserDataJob_ = other.offlineUserDataJob_ != null ? other.offlineUserDataJob_.Clone() : null; - operatingSystemVersionConstant_ = other.operatingSystemVersionConstant_ != null ? other.operatingSystemVersionConstant_.Clone() : null; - paidOrganicSearchTermView_ = other.paidOrganicSearchTermView_ != null ? other.paidOrganicSearchTermView_.Clone() : null; - parentalStatusView_ = other.parentalStatusView_ != null ? other.parentalStatusView_.Clone() : null; - perStoreView_ = other.perStoreView_ != null ? other.perStoreView_.Clone() : null; - productBiddingCategoryConstant_ = other.productBiddingCategoryConstant_ != null ? other.productBiddingCategoryConstant_.Clone() : null; - productGroupView_ = other.productGroupView_ != null ? other.productGroupView_.Clone() : null; - recommendation_ = other.recommendation_ != null ? other.recommendation_.Clone() : null; - searchTermView_ = other.searchTermView_ != null ? other.searchTermView_.Clone() : null; - sharedCriterion_ = other.sharedCriterion_ != null ? other.sharedCriterion_.Clone() : null; - sharedSet_ = other.sharedSet_ != null ? other.sharedSet_.Clone() : null; - smartCampaignSetting_ = other.smartCampaignSetting_ != null ? other.smartCampaignSetting_.Clone() : null; - shoppingPerformanceView_ = other.shoppingPerformanceView_ != null ? other.shoppingPerformanceView_.Clone() : null; - smartCampaignSearchTermView_ = other.smartCampaignSearchTermView_ != null ? other.smartCampaignSearchTermView_.Clone() : null; - thirdPartyAppAnalyticsLink_ = other.thirdPartyAppAnalyticsLink_ != null ? other.thirdPartyAppAnalyticsLink_.Clone() : null; - topicView_ = other.topicView_ != null ? other.topicView_.Clone() : null; - experiment_ = other.experiment_ != null ? other.experiment_.Clone() : null; - experimentArm_ = other.experimentArm_ != null ? other.experimentArm_.Clone() : null; - userInterest_ = other.userInterest_ != null ? other.userInterest_.Clone() : null; - lifeEvent_ = other.lifeEvent_ != null ? other.lifeEvent_.Clone() : null; - userList_ = other.userList_ != null ? other.userList_.Clone() : null; - userLocationView_ = other.userLocationView_ != null ? other.userLocationView_.Clone() : null; - remarketingAction_ = other.remarketingAction_ != null ? other.remarketingAction_.Clone() : null; - topicConstant_ = other.topicConstant_ != null ? other.topicConstant_.Clone() : null; - video_ = other.video_ != null ? other.video_.Clone() : null; - webpageView_ = other.webpageView_ != null ? other.webpageView_.Clone() : null; - leadFormSubmissionData_ = other.leadFormSubmissionData_ != null ? other.leadFormSubmissionData_.Clone() : null; - metrics_ = other.metrics_ != null ? other.metrics_.Clone() : null; - segments_ = other.segments_ != null ? other.segments_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleAdsRow Clone() { - return new GoogleAdsRow(this); - } - - /// Field number for the "account_budget" field. - public const int AccountBudgetFieldNumber = 42; - private global::Google.Ads.GoogleAds.V12.Resources.AccountBudget accountBudget_; - /// - /// The account budget in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccountBudget AccountBudget { - get { return accountBudget_; } - set { - accountBudget_ = value; - } - } - - /// Field number for the "account_budget_proposal" field. - public const int AccountBudgetProposalFieldNumber = 43; - private global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal accountBudgetProposal_; - /// - /// The account budget proposal referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal AccountBudgetProposal { - get { return accountBudgetProposal_; } - set { - accountBudgetProposal_ = value; - } - } - - /// Field number for the "account_link" field. - public const int AccountLinkFieldNumber = 143; - private global::Google.Ads.GoogleAds.V12.Resources.AccountLink accountLink_; - /// - /// The AccountLink referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccountLink AccountLink { - get { return accountLink_; } - set { - accountLink_ = value; - } - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroup adGroup_; - /// - /// The ad group referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroup AdGroup { - get { return adGroup_; } - set { - adGroup_ = value; - } - } - - /// Field number for the "ad_group_ad" field. - public const int AdGroupAdFieldNumber = 16; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd adGroupAd_; - /// - /// The ad referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd AdGroupAd { - get { return adGroupAd_; } - set { - adGroupAd_ = value; - } - } - - /// Field number for the "ad_group_ad_asset_combination_view" field. - public const int AdGroupAdAssetCombinationViewFieldNumber = 193; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationView adGroupAdAssetCombinationView_; - /// - /// The ad group ad asset combination view in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationView AdGroupAdAssetCombinationView { - get { return adGroupAdAssetCombinationView_; } - set { - adGroupAdAssetCombinationView_ = value; - } - } - - /// Field number for the "ad_group_ad_asset_view" field. - public const int AdGroupAdAssetViewFieldNumber = 131; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetView adGroupAdAssetView_; - /// - /// The ad group ad asset view in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetView AdGroupAdAssetView { - get { return adGroupAdAssetView_; } - set { - adGroupAdAssetView_ = value; - } - } - - /// Field number for the "ad_group_ad_label" field. - public const int AdGroupAdLabelFieldNumber = 120; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel adGroupAdLabel_; - /// - /// The ad group ad label referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel AdGroupAdLabel { - get { return adGroupAdLabel_; } - set { - adGroupAdLabel_ = value; - } - } - - /// Field number for the "ad_group_asset" field. - public const int AdGroupAssetFieldNumber = 154; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset adGroupAsset_; - /// - /// The ad group asset referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset AdGroupAsset { - get { return adGroupAsset_; } - set { - adGroupAsset_ = value; - } - } - - /// Field number for the "ad_group_asset_set" field. - public const int AdGroupAssetSetFieldNumber = 196; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet adGroupAssetSet_; - /// - /// The ad group asset set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet AdGroupAssetSet { - get { return adGroupAssetSet_; } - set { - adGroupAssetSet_ = value; - } - } - - /// Field number for the "ad_group_audience_view" field. - public const int AdGroupAudienceViewFieldNumber = 57; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceView adGroupAudienceView_; - /// - /// The ad group audience view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceView AdGroupAudienceView { - get { return adGroupAudienceView_; } - set { - adGroupAudienceView_ = value; - } - } - - /// Field number for the "ad_group_bid_modifier" field. - public const int AdGroupBidModifierFieldNumber = 24; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier adGroupBidModifier_; - /// - /// The bid modifier referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier AdGroupBidModifier { - get { return adGroupBidModifier_; } - set { - adGroupBidModifier_ = value; - } - } - - /// Field number for the "ad_group_criterion" field. - public const int AdGroupCriterionFieldNumber = 17; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion adGroupCriterion_; - /// - /// The criterion referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion AdGroupCriterion { - get { return adGroupCriterion_; } - set { - adGroupCriterion_ = value; - } - } - - /// Field number for the "ad_group_criterion_customizer" field. - public const int AdGroupCriterionCustomizerFieldNumber = 187; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer adGroupCriterionCustomizer_; - /// - /// The ad group criterion customizer referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer AdGroupCriterionCustomizer { - get { return adGroupCriterionCustomizer_; } - set { - adGroupCriterionCustomizer_ = value; - } - } - - /// Field number for the "ad_group_criterion_label" field. - public const int AdGroupCriterionLabelFieldNumber = 121; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel adGroupCriterionLabel_; - /// - /// The ad group criterion label referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel AdGroupCriterionLabel { - get { return adGroupCriterionLabel_; } - set { - adGroupCriterionLabel_ = value; - } - } - - /// Field number for the "ad_group_criterion_simulation" field. - public const int AdGroupCriterionSimulationFieldNumber = 110; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulation adGroupCriterionSimulation_; - /// - /// The ad group criterion simulation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulation AdGroupCriterionSimulation { - get { return adGroupCriterionSimulation_; } - set { - adGroupCriterionSimulation_ = value; - } - } - - /// Field number for the "ad_group_customizer" field. - public const int AdGroupCustomizerFieldNumber = 185; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer adGroupCustomizer_; - /// - /// The ad group customizer referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer AdGroupCustomizer { - get { return adGroupCustomizer_; } - set { - adGroupCustomizer_ = value; - } - } - - /// Field number for the "ad_group_extension_setting" field. - public const int AdGroupExtensionSettingFieldNumber = 112; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting adGroupExtensionSetting_; - /// - /// The ad group extension setting referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting AdGroupExtensionSetting { - get { return adGroupExtensionSetting_; } - set { - adGroupExtensionSetting_ = value; - } - } - - /// Field number for the "ad_group_feed" field. - public const int AdGroupFeedFieldNumber = 67; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed adGroupFeed_; - /// - /// The ad group feed referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed AdGroupFeed { - get { return adGroupFeed_; } - set { - adGroupFeed_ = value; - } - } - - /// Field number for the "ad_group_label" field. - public const int AdGroupLabelFieldNumber = 115; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel adGroupLabel_; - /// - /// The ad group label referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel AdGroupLabel { - get { return adGroupLabel_; } - set { - adGroupLabel_ = value; - } - } - - /// Field number for the "ad_group_simulation" field. - public const int AdGroupSimulationFieldNumber = 107; - private global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulation adGroupSimulation_; - /// - /// The ad group simulation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulation AdGroupSimulation { - get { return adGroupSimulation_; } - set { - adGroupSimulation_ = value; - } - } - - /// Field number for the "ad_parameter" field. - public const int AdParameterFieldNumber = 130; - private global::Google.Ads.GoogleAds.V12.Resources.AdParameter adParameter_; - /// - /// The ad parameter referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdParameter AdParameter { - get { return adParameter_; } - set { - adParameter_ = value; - } - } - - /// Field number for the "age_range_view" field. - public const int AgeRangeViewFieldNumber = 48; - private global::Google.Ads.GoogleAds.V12.Resources.AgeRangeView ageRangeView_; - /// - /// The age range view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AgeRangeView AgeRangeView { - get { return ageRangeView_; } - set { - ageRangeView_ = value; - } - } - - /// Field number for the "ad_schedule_view" field. - public const int AdScheduleViewFieldNumber = 89; - private global::Google.Ads.GoogleAds.V12.Resources.AdScheduleView adScheduleView_; - /// - /// The ad schedule view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AdScheduleView AdScheduleView { - get { return adScheduleView_; } - set { - adScheduleView_ = value; - } - } - - /// Field number for the "domain_category" field. - public const int DomainCategoryFieldNumber = 91; - private global::Google.Ads.GoogleAds.V12.Resources.DomainCategory domainCategory_; - /// - /// The domain category referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.DomainCategory DomainCategory { - get { return domainCategory_; } - set { - domainCategory_ = value; - } - } - - /// Field number for the "asset" field. - public const int AssetFieldNumber = 105; - private global::Google.Ads.GoogleAds.V12.Resources.Asset asset_; - /// - /// The asset referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Asset Asset { - get { return asset_; } - set { - asset_ = value; - } - } - - /// Field number for the "asset_field_type_view" field. - public const int AssetFieldTypeViewFieldNumber = 168; - private global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeView assetFieldTypeView_; - /// - /// The asset field type view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeView AssetFieldTypeView { - get { return assetFieldTypeView_; } - set { - assetFieldTypeView_ = value; - } - } - - /// Field number for the "asset_group_asset" field. - public const int AssetGroupAssetFieldNumber = 173; - private global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset assetGroupAsset_; - /// - /// The asset group asset referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset AssetGroupAsset { - get { return assetGroupAsset_; } - set { - assetGroupAsset_ = value; - } - } - - /// Field number for the "asset_group_signal" field. - public const int AssetGroupSignalFieldNumber = 191; - private global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal assetGroupSignal_; - /// - /// The asset group signal referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal AssetGroupSignal { - get { return assetGroupSignal_; } - set { - assetGroupSignal_ = value; - } - } - - /// Field number for the "asset_group_listing_group_filter" field. - public const int AssetGroupListingGroupFilterFieldNumber = 182; - private global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter assetGroupListingGroupFilter_; - /// - /// The asset group listing group filter referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter AssetGroupListingGroupFilter { - get { return assetGroupListingGroupFilter_; } - set { - assetGroupListingGroupFilter_ = value; - } - } - - /// Field number for the "asset_group_product_group_view" field. - public const int AssetGroupProductGroupViewFieldNumber = 189; - private global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupView assetGroupProductGroupView_; - /// - /// The asset group product group view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupView AssetGroupProductGroupView { - get { return assetGroupProductGroupView_; } - set { - assetGroupProductGroupView_ = value; - } - } - - /// Field number for the "asset_group" field. - public const int AssetGroupFieldNumber = 172; - private global::Google.Ads.GoogleAds.V12.Resources.AssetGroup assetGroup_; - /// - /// The asset group referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetGroup AssetGroup { - get { return assetGroup_; } - set { - assetGroup_ = value; - } - } - - /// Field number for the "asset_set_asset" field. - public const int AssetSetAssetFieldNumber = 180; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset assetSetAsset_; - /// - /// The asset set asset referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset AssetSetAsset { - get { return assetSetAsset_; } - set { - assetSetAsset_ = value; - } - } - - /// Field number for the "asset_set" field. - public const int AssetSetFieldNumber = 179; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSet assetSet_; - /// - /// The asset set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSet AssetSet { - get { return assetSet_; } - set { - assetSet_ = value; - } - } - - /// Field number for the "asset_set_type_view" field. - public const int AssetSetTypeViewFieldNumber = 197; - private global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeView assetSetTypeView_; - /// - /// The asset set type view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeView AssetSetTypeView { - get { return assetSetTypeView_; } - set { - assetSetTypeView_ = value; - } - } - - /// Field number for the "batch_job" field. - public const int BatchJobFieldNumber = 139; - private global::Google.Ads.GoogleAds.V12.Resources.BatchJob batchJob_; - /// - /// The batch job referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BatchJob BatchJob { - get { return batchJob_; } - set { - batchJob_ = value; - } - } - - /// Field number for the "bidding_data_exclusion" field. - public const int BiddingDataExclusionFieldNumber = 159; - private global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion biddingDataExclusion_; - /// - /// The bidding data exclusion referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion BiddingDataExclusion { - get { return biddingDataExclusion_; } - set { - biddingDataExclusion_ = value; - } - } - - /// Field number for the "bidding_seasonality_adjustment" field. - public const int BiddingSeasonalityAdjustmentFieldNumber = 160; - private global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment biddingSeasonalityAdjustment_; - /// - /// The bidding seasonality adjustment referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment BiddingSeasonalityAdjustment { - get { return biddingSeasonalityAdjustment_; } - set { - biddingSeasonalityAdjustment_ = value; - } - } - - /// Field number for the "bidding_strategy" field. - public const int BiddingStrategyFieldNumber = 18; - private global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy biddingStrategy_; - /// - /// The bidding strategy referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy BiddingStrategy { - get { return biddingStrategy_; } - set { - biddingStrategy_ = value; - } - } - - /// Field number for the "bidding_strategy_simulation" field. - public const int BiddingStrategySimulationFieldNumber = 158; - private global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulation biddingStrategySimulation_; - /// - /// The bidding strategy simulation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulation BiddingStrategySimulation { - get { return biddingStrategySimulation_; } - set { - biddingStrategySimulation_ = value; - } - } - - /// Field number for the "billing_setup" field. - public const int BillingSetupFieldNumber = 41; - private global::Google.Ads.GoogleAds.V12.Resources.BillingSetup billingSetup_; - /// - /// The billing setup referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.BillingSetup BillingSetup { - get { return billingSetup_; } - set { - billingSetup_ = value; - } - } - - /// Field number for the "call_view" field. - public const int CallViewFieldNumber = 152; - private global::Google.Ads.GoogleAds.V12.Resources.CallView callView_; - /// - /// The call view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CallView CallView { - get { return callView_; } - set { - callView_ = value; - } - } - - /// Field number for the "campaign_budget" field. - public const int CampaignBudgetFieldNumber = 19; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget campaignBudget_; - /// - /// The campaign budget referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget CampaignBudget { - get { return campaignBudget_; } - set { - campaignBudget_ = value; - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Resources.Campaign campaign_; - /// - /// The campaign referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Campaign Campaign { - get { return campaign_; } - set { - campaign_ = value; - } - } - - /// Field number for the "campaign_asset" field. - public const int CampaignAssetFieldNumber = 142; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset campaignAsset_; - /// - /// The campaign asset referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset CampaignAsset { - get { return campaignAsset_; } - set { - campaignAsset_ = value; - } - } - - /// Field number for the "campaign_asset_set" field. - public const int CampaignAssetSetFieldNumber = 181; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet campaignAssetSet_; - /// - /// The campaign asset set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet CampaignAssetSet { - get { return campaignAssetSet_; } - set { - campaignAssetSet_ = value; - } - } - - /// Field number for the "campaign_audience_view" field. - public const int CampaignAudienceViewFieldNumber = 69; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceView campaignAudienceView_; - /// - /// The campaign audience view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceView CampaignAudienceView { - get { return campaignAudienceView_; } - set { - campaignAudienceView_ = value; - } - } - - /// Field number for the "campaign_bid_modifier" field. - public const int CampaignBidModifierFieldNumber = 26; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier campaignBidModifier_; - /// - /// The campaign bid modifier referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier CampaignBidModifier { - get { return campaignBidModifier_; } - set { - campaignBidModifier_ = value; - } - } - - /// Field number for the "campaign_conversion_goal" field. - public const int CampaignConversionGoalFieldNumber = 175; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal campaignConversionGoal_; - /// - /// The CampaignConversionGoal referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal CampaignConversionGoal { - get { return campaignConversionGoal_; } - set { - campaignConversionGoal_ = value; - } - } - - /// Field number for the "campaign_criterion" field. - public const int CampaignCriterionFieldNumber = 20; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion campaignCriterion_; - /// - /// The campaign criterion referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion CampaignCriterion { - get { return campaignCriterion_; } - set { - campaignCriterion_ = value; - } - } - - /// Field number for the "campaign_criterion_simulation" field. - public const int CampaignCriterionSimulationFieldNumber = 111; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulation campaignCriterionSimulation_; - /// - /// The campaign criterion simulation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulation CampaignCriterionSimulation { - get { return campaignCriterionSimulation_; } - set { - campaignCriterionSimulation_ = value; - } - } - - /// Field number for the "campaign_customizer" field. - public const int CampaignCustomizerFieldNumber = 186; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer campaignCustomizer_; - /// - /// The campaign customizer referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer CampaignCustomizer { - get { return campaignCustomizer_; } - set { - campaignCustomizer_ = value; - } - } - - /// Field number for the "campaign_draft" field. - public const int CampaignDraftFieldNumber = 49; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft campaignDraft_; - /// - /// The campaign draft referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft CampaignDraft { - get { return campaignDraft_; } - set { - campaignDraft_ = value; - } - } - - /// Field number for the "campaign_extension_setting" field. - public const int CampaignExtensionSettingFieldNumber = 113; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting campaignExtensionSetting_; - /// - /// The campaign extension setting referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting CampaignExtensionSetting { - get { return campaignExtensionSetting_; } - set { - campaignExtensionSetting_ = value; - } - } - - /// Field number for the "campaign_feed" field. - public const int CampaignFeedFieldNumber = 63; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed campaignFeed_; - /// - /// The campaign feed referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed CampaignFeed { - get { return campaignFeed_; } - set { - campaignFeed_ = value; - } - } - - /// Field number for the "campaign_group" field. - public const int CampaignGroupFieldNumber = 25; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup campaignGroup_; - /// - /// Campaign Group referenced in AWQL query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup CampaignGroup { - get { return campaignGroup_; } - set { - campaignGroup_ = value; - } - } - - /// Field number for the "campaign_label" field. - public const int CampaignLabelFieldNumber = 108; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel campaignLabel_; - /// - /// The campaign label referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel CampaignLabel { - get { return campaignLabel_; } - set { - campaignLabel_ = value; - } - } - - /// Field number for the "campaign_shared_set" field. - public const int CampaignSharedSetFieldNumber = 30; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet campaignSharedSet_; - /// - /// Campaign Shared Set referenced in AWQL query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet CampaignSharedSet { - get { return campaignSharedSet_; } - set { - campaignSharedSet_ = value; - } - } - - /// Field number for the "campaign_simulation" field. - public const int CampaignSimulationFieldNumber = 157; - private global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulation campaignSimulation_; - /// - /// The campaign simulation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulation CampaignSimulation { - get { return campaignSimulation_; } - set { - campaignSimulation_ = value; - } - } - - /// Field number for the "carrier_constant" field. - public const int CarrierConstantFieldNumber = 66; - private global::Google.Ads.GoogleAds.V12.Resources.CarrierConstant carrierConstant_; - /// - /// The carrier constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CarrierConstant CarrierConstant { - get { return carrierConstant_; } - set { - carrierConstant_ = value; - } - } - - /// Field number for the "change_event" field. - public const int ChangeEventFieldNumber = 145; - private global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent changeEvent_; - /// - /// The ChangeEvent referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent ChangeEvent { - get { return changeEvent_; } - set { - changeEvent_ = value; - } - } - - /// Field number for the "change_status" field. - public const int ChangeStatusFieldNumber = 37; - private global::Google.Ads.GoogleAds.V12.Resources.ChangeStatus changeStatus_; - /// - /// The ChangeStatus referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ChangeStatus ChangeStatus { - get { return changeStatus_; } - set { - changeStatus_ = value; - } - } - - /// Field number for the "combined_audience" field. - public const int CombinedAudienceFieldNumber = 148; - private global::Google.Ads.GoogleAds.V12.Resources.CombinedAudience combinedAudience_; - /// - /// The CombinedAudience referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CombinedAudience CombinedAudience { - get { return combinedAudience_; } - set { - combinedAudience_ = value; - } - } - - /// Field number for the "audience" field. - public const int AudienceFieldNumber = 190; - private global::Google.Ads.GoogleAds.V12.Resources.Audience audience_; - /// - /// The Audience referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Audience Audience { - get { return audience_; } - set { - audience_ = value; - } - } - - /// Field number for the "conversion_action" field. - public const int ConversionActionFieldNumber = 103; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionAction conversionAction_; - /// - /// The conversion action referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionAction ConversionAction { - get { return conversionAction_; } - set { - conversionAction_ = value; - } - } - - /// Field number for the "conversion_custom_variable" field. - public const int ConversionCustomVariableFieldNumber = 153; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable conversionCustomVariable_; - /// - /// The conversion custom variable referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable ConversionCustomVariable { - get { return conversionCustomVariable_; } - set { - conversionCustomVariable_ = value; - } - } - - /// Field number for the "conversion_goal_campaign_config" field. - public const int ConversionGoalCampaignConfigFieldNumber = 177; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig conversionGoalCampaignConfig_; - /// - /// The ConversionGoalCampaignConfig referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig ConversionGoalCampaignConfig { - get { return conversionGoalCampaignConfig_; } - set { - conversionGoalCampaignConfig_ = value; - } - } - - /// Field number for the "conversion_value_rule" field. - public const int ConversionValueRuleFieldNumber = 164; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule conversionValueRule_; - /// - /// The conversion value rule referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule ConversionValueRule { - get { return conversionValueRule_; } - set { - conversionValueRule_ = value; - } - } - - /// Field number for the "conversion_value_rule_set" field. - public const int ConversionValueRuleSetFieldNumber = 165; - private global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet conversionValueRuleSet_; - /// - /// The conversion value rule set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet ConversionValueRuleSet { - get { return conversionValueRuleSet_; } - set { - conversionValueRuleSet_ = value; - } - } - - /// Field number for the "click_view" field. - public const int ClickViewFieldNumber = 122; - private global::Google.Ads.GoogleAds.V12.Resources.ClickView clickView_; - /// - /// The ClickView referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ClickView ClickView { - get { return clickView_; } - set { - clickView_ = value; - } - } - - /// Field number for the "currency_constant" field. - public const int CurrencyConstantFieldNumber = 134; - private global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstant currencyConstant_; - /// - /// The currency constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstant CurrencyConstant { - get { return currencyConstant_; } - set { - currencyConstant_ = value; - } - } - - /// Field number for the "custom_audience" field. - public const int CustomAudienceFieldNumber = 147; - private global::Google.Ads.GoogleAds.V12.Resources.CustomAudience customAudience_; - /// - /// The CustomAudience referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomAudience CustomAudience { - get { return customAudience_; } - set { - customAudience_ = value; - } - } - - /// Field number for the "custom_conversion_goal" field. - public const int CustomConversionGoalFieldNumber = 176; - private global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal customConversionGoal_; - /// - /// The CustomConversionGoal referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal CustomConversionGoal { - get { return customConversionGoal_; } - set { - customConversionGoal_ = value; - } - } - - /// Field number for the "custom_interest" field. - public const int CustomInterestFieldNumber = 104; - private global::Google.Ads.GoogleAds.V12.Resources.CustomInterest customInterest_; - /// - /// The CustomInterest referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomInterest CustomInterest { - get { return customInterest_; } - set { - customInterest_ = value; - } - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Resources.Customer customer_; - /// - /// The customer referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Customer Customer { - get { return customer_; } - set { - customer_ = value; - } - } - - /// Field number for the "customer_asset" field. - public const int CustomerAssetFieldNumber = 155; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset customerAsset_; - /// - /// The customer asset referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset CustomerAsset { - get { return customerAsset_; } - set { - customerAsset_ = value; - } - } - - /// Field number for the "customer_asset_set" field. - public const int CustomerAssetSetFieldNumber = 195; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet customerAssetSet_; - /// - /// The customer asset set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet CustomerAssetSet { - get { return customerAssetSet_; } - set { - customerAssetSet_ = value; - } - } - - /// Field number for the "accessible_bidding_strategy" field. - public const int AccessibleBiddingStrategyFieldNumber = 169; - private global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy accessibleBiddingStrategy_; - /// - /// The accessible bidding strategy referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy AccessibleBiddingStrategy { - get { return accessibleBiddingStrategy_; } - set { - accessibleBiddingStrategy_ = value; - } - } - - /// Field number for the "customer_customizer" field. - public const int CustomerCustomizerFieldNumber = 184; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer customerCustomizer_; - /// - /// The customer customizer referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer CustomerCustomizer { - get { return customerCustomizer_; } - set { - customerCustomizer_ = value; - } - } - - /// Field number for the "customer_manager_link" field. - public const int CustomerManagerLinkFieldNumber = 61; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink customerManagerLink_; - /// - /// The CustomerManagerLink referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink CustomerManagerLink { - get { return customerManagerLink_; } - set { - customerManagerLink_ = value; - } - } - - /// Field number for the "customer_client_link" field. - public const int CustomerClientLinkFieldNumber = 62; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink customerClientLink_; - /// - /// The CustomerClientLink referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink CustomerClientLink { - get { return customerClientLink_; } - set { - customerClientLink_ = value; - } - } - - /// Field number for the "customer_client" field. - public const int CustomerClientFieldNumber = 70; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerClient customerClient_; - /// - /// The CustomerClient referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerClient CustomerClient { - get { return customerClient_; } - set { - customerClient_ = value; - } - } - - /// Field number for the "customer_conversion_goal" field. - public const int CustomerConversionGoalFieldNumber = 174; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal customerConversionGoal_; - /// - /// The CustomerConversionGoal referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal CustomerConversionGoal { - get { return customerConversionGoal_; } - set { - customerConversionGoal_ = value; - } - } - - /// Field number for the "customer_extension_setting" field. - public const int CustomerExtensionSettingFieldNumber = 114; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting customerExtensionSetting_; - /// - /// The customer extension setting referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting CustomerExtensionSetting { - get { return customerExtensionSetting_; } - set { - customerExtensionSetting_ = value; - } - } - - /// Field number for the "customer_feed" field. - public const int CustomerFeedFieldNumber = 64; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed customerFeed_; - /// - /// The customer feed referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed CustomerFeed { - get { return customerFeed_; } - set { - customerFeed_ = value; - } - } - - /// Field number for the "customer_label" field. - public const int CustomerLabelFieldNumber = 124; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel customerLabel_; - /// - /// The customer label referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel CustomerLabel { - get { return customerLabel_; } - set { - customerLabel_ = value; - } - } - - /// Field number for the "customer_negative_criterion" field. - public const int CustomerNegativeCriterionFieldNumber = 88; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion customerNegativeCriterion_; - /// - /// The customer negative criterion referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion CustomerNegativeCriterion { - get { return customerNegativeCriterion_; } - set { - customerNegativeCriterion_ = value; - } - } - - /// Field number for the "customer_user_access" field. - public const int CustomerUserAccessFieldNumber = 146; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess customerUserAccess_; - /// - /// The CustomerUserAccess referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess CustomerUserAccess { - get { return customerUserAccess_; } - set { - customerUserAccess_ = value; - } - } - - /// Field number for the "customer_user_access_invitation" field. - public const int CustomerUserAccessInvitationFieldNumber = 150; - private global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation customerUserAccessInvitation_; - /// - /// The CustomerUserAccessInvitation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation CustomerUserAccessInvitation { - get { return customerUserAccessInvitation_; } - set { - customerUserAccessInvitation_ = value; - } - } - - /// Field number for the "customizer_attribute" field. - public const int CustomizerAttributeFieldNumber = 178; - private global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute customizerAttribute_; - /// - /// The customizer attribute referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute CustomizerAttribute { - get { return customizerAttribute_; } - set { - customizerAttribute_ = value; - } - } - - /// Field number for the "detail_placement_view" field. - public const int DetailPlacementViewFieldNumber = 118; - private global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementView detailPlacementView_; - /// - /// The detail placement view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementView DetailPlacementView { - get { return detailPlacementView_; } - set { - detailPlacementView_ = value; - } - } - - /// Field number for the "detailed_demographic" field. - public const int DetailedDemographicFieldNumber = 166; - private global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographic detailedDemographic_; - /// - /// The detailed demographic referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographic DetailedDemographic { - get { return detailedDemographic_; } - set { - detailedDemographic_ = value; - } - } - - /// Field number for the "display_keyword_view" field. - public const int DisplayKeywordViewFieldNumber = 47; - private global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordView displayKeywordView_; - /// - /// The display keyword view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordView DisplayKeywordView { - get { return displayKeywordView_; } - set { - displayKeywordView_ = value; - } - } - - /// Field number for the "distance_view" field. - public const int DistanceViewFieldNumber = 132; - private global::Google.Ads.GoogleAds.V12.Resources.DistanceView distanceView_; - /// - /// The distance view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.DistanceView DistanceView { - get { return distanceView_; } - set { - distanceView_ = value; - } - } - - /// Field number for the "dynamic_search_ads_search_term_view" field. - public const int DynamicSearchAdsSearchTermViewFieldNumber = 106; - private global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermView dynamicSearchAdsSearchTermView_; - /// - /// The dynamic search ads search term view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermView DynamicSearchAdsSearchTermView { - get { return dynamicSearchAdsSearchTermView_; } - set { - dynamicSearchAdsSearchTermView_ = value; - } - } - - /// Field number for the "expanded_landing_page_view" field. - public const int ExpandedLandingPageViewFieldNumber = 128; - private global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageView expandedLandingPageView_; - /// - /// The expanded landing page view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageView ExpandedLandingPageView { - get { return expandedLandingPageView_; } - set { - expandedLandingPageView_ = value; - } - } - - /// Field number for the "extension_feed_item" field. - public const int ExtensionFeedItemFieldNumber = 85; - private global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem extensionFeedItem_; - /// - /// The extension feed item referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem ExtensionFeedItem { - get { return extensionFeedItem_; } - set { - extensionFeedItem_ = value; - } - } - - /// Field number for the "feed" field. - public const int FeedFieldNumber = 46; - private global::Google.Ads.GoogleAds.V12.Resources.Feed feed_; - /// - /// The feed referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Feed Feed { - get { return feed_; } - set { - feed_ = value; - } - } - - /// Field number for the "feed_item" field. - public const int FeedItemFieldNumber = 50; - private global::Google.Ads.GoogleAds.V12.Resources.FeedItem feedItem_; - /// - /// The feed item referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItem FeedItem { - get { return feedItem_; } - set { - feedItem_ = value; - } - } - - /// Field number for the "feed_item_set" field. - public const int FeedItemSetFieldNumber = 149; - private global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet feedItemSet_; - /// - /// The feed item set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet FeedItemSet { - get { return feedItemSet_; } - set { - feedItemSet_ = value; - } - } - - /// Field number for the "feed_item_set_link" field. - public const int FeedItemSetLinkFieldNumber = 151; - private global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink feedItemSetLink_; - /// - /// The feed item set link referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink FeedItemSetLink { - get { return feedItemSetLink_; } - set { - feedItemSetLink_ = value; - } - } - - /// Field number for the "feed_item_target" field. - public const int FeedItemTargetFieldNumber = 116; - private global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget feedItemTarget_; - /// - /// The feed item target referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget FeedItemTarget { - get { return feedItemTarget_; } - set { - feedItemTarget_ = value; - } - } - - /// Field number for the "feed_mapping" field. - public const int FeedMappingFieldNumber = 58; - private global::Google.Ads.GoogleAds.V12.Resources.FeedMapping feedMapping_; - /// - /// The feed mapping referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedMapping FeedMapping { - get { return feedMapping_; } - set { - feedMapping_ = value; - } - } - - /// Field number for the "feed_placeholder_view" field. - public const int FeedPlaceholderViewFieldNumber = 97; - private global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderView feedPlaceholderView_; - /// - /// The feed placeholder view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderView FeedPlaceholderView { - get { return feedPlaceholderView_; } - set { - feedPlaceholderView_ = value; - } - } - - /// Field number for the "gender_view" field. - public const int GenderViewFieldNumber = 40; - private global::Google.Ads.GoogleAds.V12.Resources.GenderView genderView_; - /// - /// The gender view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.GenderView GenderView { - get { return genderView_; } - set { - genderView_ = value; - } - } - - /// Field number for the "geo_target_constant" field. - public const int GeoTargetConstantFieldNumber = 23; - private global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant geoTargetConstant_; - /// - /// The geo target constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant GeoTargetConstant { - get { return geoTargetConstant_; } - set { - geoTargetConstant_ = value; - } - } - - /// Field number for the "geographic_view" field. - public const int GeographicViewFieldNumber = 125; - private global::Google.Ads.GoogleAds.V12.Resources.GeographicView geographicView_; - /// - /// The geographic view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.GeographicView GeographicView { - get { return geographicView_; } - set { - geographicView_ = value; - } - } - - /// Field number for the "group_placement_view" field. - public const int GroupPlacementViewFieldNumber = 119; - private global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementView groupPlacementView_; - /// - /// The group placement view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementView GroupPlacementView { - get { return groupPlacementView_; } - set { - groupPlacementView_ = value; - } - } - - /// Field number for the "hotel_group_view" field. - public const int HotelGroupViewFieldNumber = 51; - private global::Google.Ads.GoogleAds.V12.Resources.HotelGroupView hotelGroupView_; - /// - /// The hotel group view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.HotelGroupView HotelGroupView { - get { return hotelGroupView_; } - set { - hotelGroupView_ = value; - } - } - - /// Field number for the "hotel_performance_view" field. - public const int HotelPerformanceViewFieldNumber = 71; - private global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceView hotelPerformanceView_; - /// - /// The hotel performance view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceView HotelPerformanceView { - get { return hotelPerformanceView_; } - set { - hotelPerformanceView_ = value; - } - } - - /// Field number for the "hotel_reconciliation" field. - public const int HotelReconciliationFieldNumber = 188; - private global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliation hotelReconciliation_; - /// - /// The hotel reconciliation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliation HotelReconciliation { - get { return hotelReconciliation_; } - set { - hotelReconciliation_ = value; - } - } - - /// Field number for the "income_range_view" field. - public const int IncomeRangeViewFieldNumber = 138; - private global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeView incomeRangeView_; - /// - /// The income range view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeView IncomeRangeView { - get { return incomeRangeView_; } - set { - incomeRangeView_ = value; - } - } - - /// Field number for the "keyword_view" field. - public const int KeywordViewFieldNumber = 21; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordView keywordView_; - /// - /// The keyword view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordView KeywordView { - get { return keywordView_; } - set { - keywordView_ = value; - } - } - - /// Field number for the "keyword_plan" field. - public const int KeywordPlanFieldNumber = 32; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan keywordPlan_; - /// - /// The keyword plan referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan KeywordPlan { - get { return keywordPlan_; } - set { - keywordPlan_ = value; - } - } - - /// Field number for the "keyword_plan_campaign" field. - public const int KeywordPlanCampaignFieldNumber = 33; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign keywordPlanCampaign_; - /// - /// The keyword plan campaign referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign KeywordPlanCampaign { - get { return keywordPlanCampaign_; } - set { - keywordPlanCampaign_ = value; - } - } - - /// Field number for the "keyword_plan_campaign_keyword" field. - public const int KeywordPlanCampaignKeywordFieldNumber = 140; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword keywordPlanCampaignKeyword_; - /// - /// The keyword plan campaign keyword referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword KeywordPlanCampaignKeyword { - get { return keywordPlanCampaignKeyword_; } - set { - keywordPlanCampaignKeyword_ = value; - } - } - - /// Field number for the "keyword_plan_ad_group" field. - public const int KeywordPlanAdGroupFieldNumber = 35; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup keywordPlanAdGroup_; - /// - /// The keyword plan ad group referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup KeywordPlanAdGroup { - get { return keywordPlanAdGroup_; } - set { - keywordPlanAdGroup_ = value; - } - } - - /// Field number for the "keyword_plan_ad_group_keyword" field. - public const int KeywordPlanAdGroupKeywordFieldNumber = 141; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword keywordPlanAdGroupKeyword_; - /// - /// The keyword plan ad group referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword KeywordPlanAdGroupKeyword { - get { return keywordPlanAdGroupKeyword_; } - set { - keywordPlanAdGroupKeyword_ = value; - } - } - - /// Field number for the "keyword_theme_constant" field. - public const int KeywordThemeConstantFieldNumber = 163; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant keywordThemeConstant_; - /// - /// The keyword theme constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant KeywordThemeConstant { - get { return keywordThemeConstant_; } - set { - keywordThemeConstant_ = value; - } - } - - /// Field number for the "label" field. - public const int LabelFieldNumber = 52; - private global::Google.Ads.GoogleAds.V12.Resources.Label label_; - /// - /// The label referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Label Label { - get { return label_; } - set { - label_ = value; - } - } - - /// Field number for the "landing_page_view" field. - public const int LandingPageViewFieldNumber = 126; - private global::Google.Ads.GoogleAds.V12.Resources.LandingPageView landingPageView_; - /// - /// The landing page view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.LandingPageView LandingPageView { - get { return landingPageView_; } - set { - landingPageView_ = value; - } - } - - /// Field number for the "language_constant" field. - public const int LanguageConstantFieldNumber = 55; - private global::Google.Ads.GoogleAds.V12.Resources.LanguageConstant languageConstant_; - /// - /// The language constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.LanguageConstant LanguageConstant { - get { return languageConstant_; } - set { - languageConstant_ = value; - } - } - - /// Field number for the "location_view" field. - public const int LocationViewFieldNumber = 123; - private global::Google.Ads.GoogleAds.V12.Resources.LocationView locationView_; - /// - /// The location view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.LocationView LocationView { - get { return locationView_; } - set { - locationView_ = value; - } - } - - /// Field number for the "managed_placement_view" field. - public const int ManagedPlacementViewFieldNumber = 53; - private global::Google.Ads.GoogleAds.V12.Resources.ManagedPlacementView managedPlacementView_; - /// - /// The managed placement view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ManagedPlacementView ManagedPlacementView { - get { return managedPlacementView_; } - set { - managedPlacementView_ = value; - } - } - - /// Field number for the "media_file" field. - public const int MediaFileFieldNumber = 90; - private global::Google.Ads.GoogleAds.V12.Resources.MediaFile mediaFile_; - /// - /// The media file referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.MediaFile MediaFile { - get { return mediaFile_; } - set { - mediaFile_ = value; - } - } - - /// Field number for the "mobile_app_category_constant" field. - public const int MobileAppCategoryConstantFieldNumber = 87; - private global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstant mobileAppCategoryConstant_; - /// - /// The mobile app category constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstant MobileAppCategoryConstant { - get { return mobileAppCategoryConstant_; } - set { - mobileAppCategoryConstant_ = value; - } - } - - /// Field number for the "mobile_device_constant" field. - public const int MobileDeviceConstantFieldNumber = 98; - private global::Google.Ads.GoogleAds.V12.Resources.MobileDeviceConstant mobileDeviceConstant_; - /// - /// The mobile device constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.MobileDeviceConstant MobileDeviceConstant { - get { return mobileDeviceConstant_; } - set { - mobileDeviceConstant_ = value; - } - } - - /// Field number for the "offline_user_data_job" field. - public const int OfflineUserDataJobFieldNumber = 137; - private global::Google.Ads.GoogleAds.V12.Resources.OfflineUserDataJob offlineUserDataJob_; - /// - /// The offline user data job referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.OfflineUserDataJob OfflineUserDataJob { - get { return offlineUserDataJob_; } - set { - offlineUserDataJob_ = value; - } - } - - /// Field number for the "operating_system_version_constant" field. - public const int OperatingSystemVersionConstantFieldNumber = 86; - private global::Google.Ads.GoogleAds.V12.Resources.OperatingSystemVersionConstant operatingSystemVersionConstant_; - /// - /// The operating system version constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.OperatingSystemVersionConstant OperatingSystemVersionConstant { - get { return operatingSystemVersionConstant_; } - set { - operatingSystemVersionConstant_ = value; - } - } - - /// Field number for the "paid_organic_search_term_view" field. - public const int PaidOrganicSearchTermViewFieldNumber = 129; - private global::Google.Ads.GoogleAds.V12.Resources.PaidOrganicSearchTermView paidOrganicSearchTermView_; - /// - /// The paid organic search term view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.PaidOrganicSearchTermView PaidOrganicSearchTermView { - get { return paidOrganicSearchTermView_; } - set { - paidOrganicSearchTermView_ = value; - } - } - - /// Field number for the "parental_status_view" field. - public const int ParentalStatusViewFieldNumber = 45; - private global::Google.Ads.GoogleAds.V12.Resources.ParentalStatusView parentalStatusView_; - /// - /// The parental status view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ParentalStatusView ParentalStatusView { - get { return parentalStatusView_; } - set { - parentalStatusView_ = value; - } - } - - /// Field number for the "per_store_view" field. - public const int PerStoreViewFieldNumber = 198; - private global::Google.Ads.GoogleAds.V12.Resources.PerStoreView perStoreView_; - /// - /// The per store view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.PerStoreView PerStoreView { - get { return perStoreView_; } - set { - perStoreView_ = value; - } - } - - /// Field number for the "product_bidding_category_constant" field. - public const int ProductBiddingCategoryConstantFieldNumber = 109; - private global::Google.Ads.GoogleAds.V12.Resources.ProductBiddingCategoryConstant productBiddingCategoryConstant_; - /// - /// The Product Bidding Category referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ProductBiddingCategoryConstant ProductBiddingCategoryConstant { - get { return productBiddingCategoryConstant_; } - set { - productBiddingCategoryConstant_ = value; - } - } - - /// Field number for the "product_group_view" field. - public const int ProductGroupViewFieldNumber = 54; - private global::Google.Ads.GoogleAds.V12.Resources.ProductGroupView productGroupView_; - /// - /// The product group view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ProductGroupView ProductGroupView { - get { return productGroupView_; } - set { - productGroupView_ = value; - } - } - - /// Field number for the "recommendation" field. - public const int RecommendationFieldNumber = 22; - private global::Google.Ads.GoogleAds.V12.Resources.Recommendation recommendation_; - /// - /// The recommendation referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Recommendation Recommendation { - get { return recommendation_; } - set { - recommendation_ = value; - } - } - - /// Field number for the "search_term_view" field. - public const int SearchTermViewFieldNumber = 68; - private global::Google.Ads.GoogleAds.V12.Resources.SearchTermView searchTermView_; - /// - /// The search term view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.SearchTermView SearchTermView { - get { return searchTermView_; } - set { - searchTermView_ = value; - } - } - - /// Field number for the "shared_criterion" field. - public const int SharedCriterionFieldNumber = 29; - private global::Google.Ads.GoogleAds.V12.Resources.SharedCriterion sharedCriterion_; - /// - /// The shared set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.SharedCriterion SharedCriterion { - get { return sharedCriterion_; } - set { - sharedCriterion_ = value; - } - } - - /// Field number for the "shared_set" field. - public const int SharedSetFieldNumber = 27; - private global::Google.Ads.GoogleAds.V12.Resources.SharedSet sharedSet_; - /// - /// The shared set referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.SharedSet SharedSet { - get { return sharedSet_; } - set { - sharedSet_ = value; - } - } - - /// Field number for the "smart_campaign_setting" field. - public const int SmartCampaignSettingFieldNumber = 167; - private global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSetting smartCampaignSetting_; - /// - /// The Smart campaign setting referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSetting SmartCampaignSetting { - get { return smartCampaignSetting_; } - set { - smartCampaignSetting_ = value; - } - } - - /// Field number for the "shopping_performance_view" field. - public const int ShoppingPerformanceViewFieldNumber = 117; - private global::Google.Ads.GoogleAds.V12.Resources.ShoppingPerformanceView shoppingPerformanceView_; - /// - /// The shopping performance view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ShoppingPerformanceView ShoppingPerformanceView { - get { return shoppingPerformanceView_; } - set { - shoppingPerformanceView_ = value; - } - } - - /// Field number for the "smart_campaign_search_term_view" field. - public const int SmartCampaignSearchTermViewFieldNumber = 170; - private global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSearchTermView smartCampaignSearchTermView_; - /// - /// The Smart campaign search term view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSearchTermView SmartCampaignSearchTermView { - get { return smartCampaignSearchTermView_; } - set { - smartCampaignSearchTermView_ = value; - } - } - - /// Field number for the "third_party_app_analytics_link" field. - public const int ThirdPartyAppAnalyticsLinkFieldNumber = 144; - private global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLink thirdPartyAppAnalyticsLink_; - /// - /// The AccountLink referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLink ThirdPartyAppAnalyticsLink { - get { return thirdPartyAppAnalyticsLink_; } - set { - thirdPartyAppAnalyticsLink_ = value; - } - } - - /// Field number for the "topic_view" field. - public const int TopicViewFieldNumber = 44; - private global::Google.Ads.GoogleAds.V12.Resources.TopicView topicView_; - /// - /// The topic view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.TopicView TopicView { - get { return topicView_; } - set { - topicView_ = value; - } - } - - /// Field number for the "experiment" field. - public const int ExperimentFieldNumber = 133; - private global::Google.Ads.GoogleAds.V12.Resources.Experiment experiment_; - /// - /// The experiment referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Experiment Experiment { - get { return experiment_; } - set { - experiment_ = value; - } - } - - /// Field number for the "experiment_arm" field. - public const int ExperimentArmFieldNumber = 183; - private global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm experimentArm_; - /// - /// The experiment arm referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm ExperimentArm { - get { return experimentArm_; } - set { - experimentArm_ = value; - } - } - - /// Field number for the "user_interest" field. - public const int UserInterestFieldNumber = 59; - private global::Google.Ads.GoogleAds.V12.Resources.UserInterest userInterest_; - /// - /// The user interest referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.UserInterest UserInterest { - get { return userInterest_; } - set { - userInterest_ = value; - } - } - - /// Field number for the "life_event" field. - public const int LifeEventFieldNumber = 161; - private global::Google.Ads.GoogleAds.V12.Resources.LifeEvent lifeEvent_; - /// - /// The life event referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.LifeEvent LifeEvent { - get { return lifeEvent_; } - set { - lifeEvent_ = value; - } - } - - /// Field number for the "user_list" field. - public const int UserListFieldNumber = 38; - private global::Google.Ads.GoogleAds.V12.Resources.UserList userList_; - /// - /// The user list referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.UserList UserList { - get { return userList_; } - set { - userList_ = value; - } - } - - /// Field number for the "user_location_view" field. - public const int UserLocationViewFieldNumber = 135; - private global::Google.Ads.GoogleAds.V12.Resources.UserLocationView userLocationView_; - /// - /// The user location view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.UserLocationView UserLocationView { - get { return userLocationView_; } - set { - userLocationView_ = value; - } - } - - /// Field number for the "remarketing_action" field. - public const int RemarketingActionFieldNumber = 60; - private global::Google.Ads.GoogleAds.V12.Resources.RemarketingAction remarketingAction_; - /// - /// The remarketing action referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.RemarketingAction RemarketingAction { - get { return remarketingAction_; } - set { - remarketingAction_ = value; - } - } - - /// Field number for the "topic_constant" field. - public const int TopicConstantFieldNumber = 31; - private global::Google.Ads.GoogleAds.V12.Resources.TopicConstant topicConstant_; - /// - /// The topic constant referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.TopicConstant TopicConstant { - get { return topicConstant_; } - set { - topicConstant_ = value; - } - } - - /// Field number for the "video" field. - public const int VideoFieldNumber = 39; - private global::Google.Ads.GoogleAds.V12.Resources.Video video_; - /// - /// The video referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.Video Video { - get { return video_; } - set { - video_ = value; - } - } - - /// Field number for the "webpage_view" field. - public const int WebpageViewFieldNumber = 162; - private global::Google.Ads.GoogleAds.V12.Resources.WebpageView webpageView_; - /// - /// The webpage view referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.WebpageView WebpageView { - get { return webpageView_; } - set { - webpageView_ = value; - } - } - - /// Field number for the "lead_form_submission_data" field. - public const int LeadFormSubmissionDataFieldNumber = 192; - private global::Google.Ads.GoogleAds.V12.Resources.LeadFormSubmissionData leadFormSubmissionData_; - /// - /// The lead form user submission referenced in the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.LeadFormSubmissionData LeadFormSubmissionData { - get { return leadFormSubmissionData_; } - set { - leadFormSubmissionData_ = value; - } - } - - /// Field number for the "metrics" field. - public const int MetricsFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.Metrics metrics_; - /// - /// The metrics. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Metrics Metrics { - get { return metrics_; } - set { - metrics_ = value; - } - } - - /// Field number for the "segments" field. - public const int SegmentsFieldNumber = 102; - private global::Google.Ads.GoogleAds.V12.Common.Segments segments_; - /// - /// The segments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.Segments Segments { - get { return segments_; } - set { - segments_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleAdsRow); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleAdsRow other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AccountBudget, other.AccountBudget)) return false; - if (!object.Equals(AccountBudgetProposal, other.AccountBudgetProposal)) return false; - if (!object.Equals(AccountLink, other.AccountLink)) return false; - if (!object.Equals(AdGroup, other.AdGroup)) return false; - if (!object.Equals(AdGroupAd, other.AdGroupAd)) return false; - if (!object.Equals(AdGroupAdAssetCombinationView, other.AdGroupAdAssetCombinationView)) return false; - if (!object.Equals(AdGroupAdAssetView, other.AdGroupAdAssetView)) return false; - if (!object.Equals(AdGroupAdLabel, other.AdGroupAdLabel)) return false; - if (!object.Equals(AdGroupAsset, other.AdGroupAsset)) return false; - if (!object.Equals(AdGroupAssetSet, other.AdGroupAssetSet)) return false; - if (!object.Equals(AdGroupAudienceView, other.AdGroupAudienceView)) return false; - if (!object.Equals(AdGroupBidModifier, other.AdGroupBidModifier)) return false; - if (!object.Equals(AdGroupCriterion, other.AdGroupCriterion)) return false; - if (!object.Equals(AdGroupCriterionCustomizer, other.AdGroupCriterionCustomizer)) return false; - if (!object.Equals(AdGroupCriterionLabel, other.AdGroupCriterionLabel)) return false; - if (!object.Equals(AdGroupCriterionSimulation, other.AdGroupCriterionSimulation)) return false; - if (!object.Equals(AdGroupCustomizer, other.AdGroupCustomizer)) return false; - if (!object.Equals(AdGroupExtensionSetting, other.AdGroupExtensionSetting)) return false; - if (!object.Equals(AdGroupFeed, other.AdGroupFeed)) return false; - if (!object.Equals(AdGroupLabel, other.AdGroupLabel)) return false; - if (!object.Equals(AdGroupSimulation, other.AdGroupSimulation)) return false; - if (!object.Equals(AdParameter, other.AdParameter)) return false; - if (!object.Equals(AgeRangeView, other.AgeRangeView)) return false; - if (!object.Equals(AdScheduleView, other.AdScheduleView)) return false; - if (!object.Equals(DomainCategory, other.DomainCategory)) return false; - if (!object.Equals(Asset, other.Asset)) return false; - if (!object.Equals(AssetFieldTypeView, other.AssetFieldTypeView)) return false; - if (!object.Equals(AssetGroupAsset, other.AssetGroupAsset)) return false; - if (!object.Equals(AssetGroupSignal, other.AssetGroupSignal)) return false; - if (!object.Equals(AssetGroupListingGroupFilter, other.AssetGroupListingGroupFilter)) return false; - if (!object.Equals(AssetGroupProductGroupView, other.AssetGroupProductGroupView)) return false; - if (!object.Equals(AssetGroup, other.AssetGroup)) return false; - if (!object.Equals(AssetSetAsset, other.AssetSetAsset)) return false; - if (!object.Equals(AssetSet, other.AssetSet)) return false; - if (!object.Equals(AssetSetTypeView, other.AssetSetTypeView)) return false; - if (!object.Equals(BatchJob, other.BatchJob)) return false; - if (!object.Equals(BiddingDataExclusion, other.BiddingDataExclusion)) return false; - if (!object.Equals(BiddingSeasonalityAdjustment, other.BiddingSeasonalityAdjustment)) return false; - if (!object.Equals(BiddingStrategy, other.BiddingStrategy)) return false; - if (!object.Equals(BiddingStrategySimulation, other.BiddingStrategySimulation)) return false; - if (!object.Equals(BillingSetup, other.BillingSetup)) return false; - if (!object.Equals(CallView, other.CallView)) return false; - if (!object.Equals(CampaignBudget, other.CampaignBudget)) return false; - if (!object.Equals(Campaign, other.Campaign)) return false; - if (!object.Equals(CampaignAsset, other.CampaignAsset)) return false; - if (!object.Equals(CampaignAssetSet, other.CampaignAssetSet)) return false; - if (!object.Equals(CampaignAudienceView, other.CampaignAudienceView)) return false; - if (!object.Equals(CampaignBidModifier, other.CampaignBidModifier)) return false; - if (!object.Equals(CampaignConversionGoal, other.CampaignConversionGoal)) return false; - if (!object.Equals(CampaignCriterion, other.CampaignCriterion)) return false; - if (!object.Equals(CampaignCriterionSimulation, other.CampaignCriterionSimulation)) return false; - if (!object.Equals(CampaignCustomizer, other.CampaignCustomizer)) return false; - if (!object.Equals(CampaignDraft, other.CampaignDraft)) return false; - if (!object.Equals(CampaignExtensionSetting, other.CampaignExtensionSetting)) return false; - if (!object.Equals(CampaignFeed, other.CampaignFeed)) return false; - if (!object.Equals(CampaignGroup, other.CampaignGroup)) return false; - if (!object.Equals(CampaignLabel, other.CampaignLabel)) return false; - if (!object.Equals(CampaignSharedSet, other.CampaignSharedSet)) return false; - if (!object.Equals(CampaignSimulation, other.CampaignSimulation)) return false; - if (!object.Equals(CarrierConstant, other.CarrierConstant)) return false; - if (!object.Equals(ChangeEvent, other.ChangeEvent)) return false; - if (!object.Equals(ChangeStatus, other.ChangeStatus)) return false; - if (!object.Equals(CombinedAudience, other.CombinedAudience)) return false; - if (!object.Equals(Audience, other.Audience)) return false; - if (!object.Equals(ConversionAction, other.ConversionAction)) return false; - if (!object.Equals(ConversionCustomVariable, other.ConversionCustomVariable)) return false; - if (!object.Equals(ConversionGoalCampaignConfig, other.ConversionGoalCampaignConfig)) return false; - if (!object.Equals(ConversionValueRule, other.ConversionValueRule)) return false; - if (!object.Equals(ConversionValueRuleSet, other.ConversionValueRuleSet)) return false; - if (!object.Equals(ClickView, other.ClickView)) return false; - if (!object.Equals(CurrencyConstant, other.CurrencyConstant)) return false; - if (!object.Equals(CustomAudience, other.CustomAudience)) return false; - if (!object.Equals(CustomConversionGoal, other.CustomConversionGoal)) return false; - if (!object.Equals(CustomInterest, other.CustomInterest)) return false; - if (!object.Equals(Customer, other.Customer)) return false; - if (!object.Equals(CustomerAsset, other.CustomerAsset)) return false; - if (!object.Equals(CustomerAssetSet, other.CustomerAssetSet)) return false; - if (!object.Equals(AccessibleBiddingStrategy, other.AccessibleBiddingStrategy)) return false; - if (!object.Equals(CustomerCustomizer, other.CustomerCustomizer)) return false; - if (!object.Equals(CustomerManagerLink, other.CustomerManagerLink)) return false; - if (!object.Equals(CustomerClientLink, other.CustomerClientLink)) return false; - if (!object.Equals(CustomerClient, other.CustomerClient)) return false; - if (!object.Equals(CustomerConversionGoal, other.CustomerConversionGoal)) return false; - if (!object.Equals(CustomerExtensionSetting, other.CustomerExtensionSetting)) return false; - if (!object.Equals(CustomerFeed, other.CustomerFeed)) return false; - if (!object.Equals(CustomerLabel, other.CustomerLabel)) return false; - if (!object.Equals(CustomerNegativeCriterion, other.CustomerNegativeCriterion)) return false; - if (!object.Equals(CustomerUserAccess, other.CustomerUserAccess)) return false; - if (!object.Equals(CustomerUserAccessInvitation, other.CustomerUserAccessInvitation)) return false; - if (!object.Equals(CustomizerAttribute, other.CustomizerAttribute)) return false; - if (!object.Equals(DetailPlacementView, other.DetailPlacementView)) return false; - if (!object.Equals(DetailedDemographic, other.DetailedDemographic)) return false; - if (!object.Equals(DisplayKeywordView, other.DisplayKeywordView)) return false; - if (!object.Equals(DistanceView, other.DistanceView)) return false; - if (!object.Equals(DynamicSearchAdsSearchTermView, other.DynamicSearchAdsSearchTermView)) return false; - if (!object.Equals(ExpandedLandingPageView, other.ExpandedLandingPageView)) return false; - if (!object.Equals(ExtensionFeedItem, other.ExtensionFeedItem)) return false; - if (!object.Equals(Feed, other.Feed)) return false; - if (!object.Equals(FeedItem, other.FeedItem)) return false; - if (!object.Equals(FeedItemSet, other.FeedItemSet)) return false; - if (!object.Equals(FeedItemSetLink, other.FeedItemSetLink)) return false; - if (!object.Equals(FeedItemTarget, other.FeedItemTarget)) return false; - if (!object.Equals(FeedMapping, other.FeedMapping)) return false; - if (!object.Equals(FeedPlaceholderView, other.FeedPlaceholderView)) return false; - if (!object.Equals(GenderView, other.GenderView)) return false; - if (!object.Equals(GeoTargetConstant, other.GeoTargetConstant)) return false; - if (!object.Equals(GeographicView, other.GeographicView)) return false; - if (!object.Equals(GroupPlacementView, other.GroupPlacementView)) return false; - if (!object.Equals(HotelGroupView, other.HotelGroupView)) return false; - if (!object.Equals(HotelPerformanceView, other.HotelPerformanceView)) return false; - if (!object.Equals(HotelReconciliation, other.HotelReconciliation)) return false; - if (!object.Equals(IncomeRangeView, other.IncomeRangeView)) return false; - if (!object.Equals(KeywordView, other.KeywordView)) return false; - if (!object.Equals(KeywordPlan, other.KeywordPlan)) return false; - if (!object.Equals(KeywordPlanCampaign, other.KeywordPlanCampaign)) return false; - if (!object.Equals(KeywordPlanCampaignKeyword, other.KeywordPlanCampaignKeyword)) return false; - if (!object.Equals(KeywordPlanAdGroup, other.KeywordPlanAdGroup)) return false; - if (!object.Equals(KeywordPlanAdGroupKeyword, other.KeywordPlanAdGroupKeyword)) return false; - if (!object.Equals(KeywordThemeConstant, other.KeywordThemeConstant)) return false; - if (!object.Equals(Label, other.Label)) return false; - if (!object.Equals(LandingPageView, other.LandingPageView)) return false; - if (!object.Equals(LanguageConstant, other.LanguageConstant)) return false; - if (!object.Equals(LocationView, other.LocationView)) return false; - if (!object.Equals(ManagedPlacementView, other.ManagedPlacementView)) return false; - if (!object.Equals(MediaFile, other.MediaFile)) return false; - if (!object.Equals(MobileAppCategoryConstant, other.MobileAppCategoryConstant)) return false; - if (!object.Equals(MobileDeviceConstant, other.MobileDeviceConstant)) return false; - if (!object.Equals(OfflineUserDataJob, other.OfflineUserDataJob)) return false; - if (!object.Equals(OperatingSystemVersionConstant, other.OperatingSystemVersionConstant)) return false; - if (!object.Equals(PaidOrganicSearchTermView, other.PaidOrganicSearchTermView)) return false; - if (!object.Equals(ParentalStatusView, other.ParentalStatusView)) return false; - if (!object.Equals(PerStoreView, other.PerStoreView)) return false; - if (!object.Equals(ProductBiddingCategoryConstant, other.ProductBiddingCategoryConstant)) return false; - if (!object.Equals(ProductGroupView, other.ProductGroupView)) return false; - if (!object.Equals(Recommendation, other.Recommendation)) return false; - if (!object.Equals(SearchTermView, other.SearchTermView)) return false; - if (!object.Equals(SharedCriterion, other.SharedCriterion)) return false; - if (!object.Equals(SharedSet, other.SharedSet)) return false; - if (!object.Equals(SmartCampaignSetting, other.SmartCampaignSetting)) return false; - if (!object.Equals(ShoppingPerformanceView, other.ShoppingPerformanceView)) return false; - if (!object.Equals(SmartCampaignSearchTermView, other.SmartCampaignSearchTermView)) return false; - if (!object.Equals(ThirdPartyAppAnalyticsLink, other.ThirdPartyAppAnalyticsLink)) return false; - if (!object.Equals(TopicView, other.TopicView)) return false; - if (!object.Equals(Experiment, other.Experiment)) return false; - if (!object.Equals(ExperimentArm, other.ExperimentArm)) return false; - if (!object.Equals(UserInterest, other.UserInterest)) return false; - if (!object.Equals(LifeEvent, other.LifeEvent)) return false; - if (!object.Equals(UserList, other.UserList)) return false; - if (!object.Equals(UserLocationView, other.UserLocationView)) return false; - if (!object.Equals(RemarketingAction, other.RemarketingAction)) return false; - if (!object.Equals(TopicConstant, other.TopicConstant)) return false; - if (!object.Equals(Video, other.Video)) return false; - if (!object.Equals(WebpageView, other.WebpageView)) return false; - if (!object.Equals(LeadFormSubmissionData, other.LeadFormSubmissionData)) return false; - if (!object.Equals(Metrics, other.Metrics)) return false; - if (!object.Equals(Segments, other.Segments)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (accountBudget_ != null) hash ^= AccountBudget.GetHashCode(); - if (accountBudgetProposal_ != null) hash ^= AccountBudgetProposal.GetHashCode(); - if (accountLink_ != null) hash ^= AccountLink.GetHashCode(); - if (adGroup_ != null) hash ^= AdGroup.GetHashCode(); - if (adGroupAd_ != null) hash ^= AdGroupAd.GetHashCode(); - if (adGroupAdAssetCombinationView_ != null) hash ^= AdGroupAdAssetCombinationView.GetHashCode(); - if (adGroupAdAssetView_ != null) hash ^= AdGroupAdAssetView.GetHashCode(); - if (adGroupAdLabel_ != null) hash ^= AdGroupAdLabel.GetHashCode(); - if (adGroupAsset_ != null) hash ^= AdGroupAsset.GetHashCode(); - if (adGroupAssetSet_ != null) hash ^= AdGroupAssetSet.GetHashCode(); - if (adGroupAudienceView_ != null) hash ^= AdGroupAudienceView.GetHashCode(); - if (adGroupBidModifier_ != null) hash ^= AdGroupBidModifier.GetHashCode(); - if (adGroupCriterion_ != null) hash ^= AdGroupCriterion.GetHashCode(); - if (adGroupCriterionCustomizer_ != null) hash ^= AdGroupCriterionCustomizer.GetHashCode(); - if (adGroupCriterionLabel_ != null) hash ^= AdGroupCriterionLabel.GetHashCode(); - if (adGroupCriterionSimulation_ != null) hash ^= AdGroupCriterionSimulation.GetHashCode(); - if (adGroupCustomizer_ != null) hash ^= AdGroupCustomizer.GetHashCode(); - if (adGroupExtensionSetting_ != null) hash ^= AdGroupExtensionSetting.GetHashCode(); - if (adGroupFeed_ != null) hash ^= AdGroupFeed.GetHashCode(); - if (adGroupLabel_ != null) hash ^= AdGroupLabel.GetHashCode(); - if (adGroupSimulation_ != null) hash ^= AdGroupSimulation.GetHashCode(); - if (adParameter_ != null) hash ^= AdParameter.GetHashCode(); - if (ageRangeView_ != null) hash ^= AgeRangeView.GetHashCode(); - if (adScheduleView_ != null) hash ^= AdScheduleView.GetHashCode(); - if (domainCategory_ != null) hash ^= DomainCategory.GetHashCode(); - if (asset_ != null) hash ^= Asset.GetHashCode(); - if (assetFieldTypeView_ != null) hash ^= AssetFieldTypeView.GetHashCode(); - if (assetGroupAsset_ != null) hash ^= AssetGroupAsset.GetHashCode(); - if (assetGroupSignal_ != null) hash ^= AssetGroupSignal.GetHashCode(); - if (assetGroupListingGroupFilter_ != null) hash ^= AssetGroupListingGroupFilter.GetHashCode(); - if (assetGroupProductGroupView_ != null) hash ^= AssetGroupProductGroupView.GetHashCode(); - if (assetGroup_ != null) hash ^= AssetGroup.GetHashCode(); - if (assetSetAsset_ != null) hash ^= AssetSetAsset.GetHashCode(); - if (assetSet_ != null) hash ^= AssetSet.GetHashCode(); - if (assetSetTypeView_ != null) hash ^= AssetSetTypeView.GetHashCode(); - if (batchJob_ != null) hash ^= BatchJob.GetHashCode(); - if (biddingDataExclusion_ != null) hash ^= BiddingDataExclusion.GetHashCode(); - if (biddingSeasonalityAdjustment_ != null) hash ^= BiddingSeasonalityAdjustment.GetHashCode(); - if (biddingStrategy_ != null) hash ^= BiddingStrategy.GetHashCode(); - if (biddingStrategySimulation_ != null) hash ^= BiddingStrategySimulation.GetHashCode(); - if (billingSetup_ != null) hash ^= BillingSetup.GetHashCode(); - if (callView_ != null) hash ^= CallView.GetHashCode(); - if (campaignBudget_ != null) hash ^= CampaignBudget.GetHashCode(); - if (campaign_ != null) hash ^= Campaign.GetHashCode(); - if (campaignAsset_ != null) hash ^= CampaignAsset.GetHashCode(); - if (campaignAssetSet_ != null) hash ^= CampaignAssetSet.GetHashCode(); - if (campaignAudienceView_ != null) hash ^= CampaignAudienceView.GetHashCode(); - if (campaignBidModifier_ != null) hash ^= CampaignBidModifier.GetHashCode(); - if (campaignConversionGoal_ != null) hash ^= CampaignConversionGoal.GetHashCode(); - if (campaignCriterion_ != null) hash ^= CampaignCriterion.GetHashCode(); - if (campaignCriterionSimulation_ != null) hash ^= CampaignCriterionSimulation.GetHashCode(); - if (campaignCustomizer_ != null) hash ^= CampaignCustomizer.GetHashCode(); - if (campaignDraft_ != null) hash ^= CampaignDraft.GetHashCode(); - if (campaignExtensionSetting_ != null) hash ^= CampaignExtensionSetting.GetHashCode(); - if (campaignFeed_ != null) hash ^= CampaignFeed.GetHashCode(); - if (campaignGroup_ != null) hash ^= CampaignGroup.GetHashCode(); - if (campaignLabel_ != null) hash ^= CampaignLabel.GetHashCode(); - if (campaignSharedSet_ != null) hash ^= CampaignSharedSet.GetHashCode(); - if (campaignSimulation_ != null) hash ^= CampaignSimulation.GetHashCode(); - if (carrierConstant_ != null) hash ^= CarrierConstant.GetHashCode(); - if (changeEvent_ != null) hash ^= ChangeEvent.GetHashCode(); - if (changeStatus_ != null) hash ^= ChangeStatus.GetHashCode(); - if (combinedAudience_ != null) hash ^= CombinedAudience.GetHashCode(); - if (audience_ != null) hash ^= Audience.GetHashCode(); - if (conversionAction_ != null) hash ^= ConversionAction.GetHashCode(); - if (conversionCustomVariable_ != null) hash ^= ConversionCustomVariable.GetHashCode(); - if (conversionGoalCampaignConfig_ != null) hash ^= ConversionGoalCampaignConfig.GetHashCode(); - if (conversionValueRule_ != null) hash ^= ConversionValueRule.GetHashCode(); - if (conversionValueRuleSet_ != null) hash ^= ConversionValueRuleSet.GetHashCode(); - if (clickView_ != null) hash ^= ClickView.GetHashCode(); - if (currencyConstant_ != null) hash ^= CurrencyConstant.GetHashCode(); - if (customAudience_ != null) hash ^= CustomAudience.GetHashCode(); - if (customConversionGoal_ != null) hash ^= CustomConversionGoal.GetHashCode(); - if (customInterest_ != null) hash ^= CustomInterest.GetHashCode(); - if (customer_ != null) hash ^= Customer.GetHashCode(); - if (customerAsset_ != null) hash ^= CustomerAsset.GetHashCode(); - if (customerAssetSet_ != null) hash ^= CustomerAssetSet.GetHashCode(); - if (accessibleBiddingStrategy_ != null) hash ^= AccessibleBiddingStrategy.GetHashCode(); - if (customerCustomizer_ != null) hash ^= CustomerCustomizer.GetHashCode(); - if (customerManagerLink_ != null) hash ^= CustomerManagerLink.GetHashCode(); - if (customerClientLink_ != null) hash ^= CustomerClientLink.GetHashCode(); - if (customerClient_ != null) hash ^= CustomerClient.GetHashCode(); - if (customerConversionGoal_ != null) hash ^= CustomerConversionGoal.GetHashCode(); - if (customerExtensionSetting_ != null) hash ^= CustomerExtensionSetting.GetHashCode(); - if (customerFeed_ != null) hash ^= CustomerFeed.GetHashCode(); - if (customerLabel_ != null) hash ^= CustomerLabel.GetHashCode(); - if (customerNegativeCriterion_ != null) hash ^= CustomerNegativeCriterion.GetHashCode(); - if (customerUserAccess_ != null) hash ^= CustomerUserAccess.GetHashCode(); - if (customerUserAccessInvitation_ != null) hash ^= CustomerUserAccessInvitation.GetHashCode(); - if (customizerAttribute_ != null) hash ^= CustomizerAttribute.GetHashCode(); - if (detailPlacementView_ != null) hash ^= DetailPlacementView.GetHashCode(); - if (detailedDemographic_ != null) hash ^= DetailedDemographic.GetHashCode(); - if (displayKeywordView_ != null) hash ^= DisplayKeywordView.GetHashCode(); - if (distanceView_ != null) hash ^= DistanceView.GetHashCode(); - if (dynamicSearchAdsSearchTermView_ != null) hash ^= DynamicSearchAdsSearchTermView.GetHashCode(); - if (expandedLandingPageView_ != null) hash ^= ExpandedLandingPageView.GetHashCode(); - if (extensionFeedItem_ != null) hash ^= ExtensionFeedItem.GetHashCode(); - if (feed_ != null) hash ^= Feed.GetHashCode(); - if (feedItem_ != null) hash ^= FeedItem.GetHashCode(); - if (feedItemSet_ != null) hash ^= FeedItemSet.GetHashCode(); - if (feedItemSetLink_ != null) hash ^= FeedItemSetLink.GetHashCode(); - if (feedItemTarget_ != null) hash ^= FeedItemTarget.GetHashCode(); - if (feedMapping_ != null) hash ^= FeedMapping.GetHashCode(); - if (feedPlaceholderView_ != null) hash ^= FeedPlaceholderView.GetHashCode(); - if (genderView_ != null) hash ^= GenderView.GetHashCode(); - if (geoTargetConstant_ != null) hash ^= GeoTargetConstant.GetHashCode(); - if (geographicView_ != null) hash ^= GeographicView.GetHashCode(); - if (groupPlacementView_ != null) hash ^= GroupPlacementView.GetHashCode(); - if (hotelGroupView_ != null) hash ^= HotelGroupView.GetHashCode(); - if (hotelPerformanceView_ != null) hash ^= HotelPerformanceView.GetHashCode(); - if (hotelReconciliation_ != null) hash ^= HotelReconciliation.GetHashCode(); - if (incomeRangeView_ != null) hash ^= IncomeRangeView.GetHashCode(); - if (keywordView_ != null) hash ^= KeywordView.GetHashCode(); - if (keywordPlan_ != null) hash ^= KeywordPlan.GetHashCode(); - if (keywordPlanCampaign_ != null) hash ^= KeywordPlanCampaign.GetHashCode(); - if (keywordPlanCampaignKeyword_ != null) hash ^= KeywordPlanCampaignKeyword.GetHashCode(); - if (keywordPlanAdGroup_ != null) hash ^= KeywordPlanAdGroup.GetHashCode(); - if (keywordPlanAdGroupKeyword_ != null) hash ^= KeywordPlanAdGroupKeyword.GetHashCode(); - if (keywordThemeConstant_ != null) hash ^= KeywordThemeConstant.GetHashCode(); - if (label_ != null) hash ^= Label.GetHashCode(); - if (landingPageView_ != null) hash ^= LandingPageView.GetHashCode(); - if (languageConstant_ != null) hash ^= LanguageConstant.GetHashCode(); - if (locationView_ != null) hash ^= LocationView.GetHashCode(); - if (managedPlacementView_ != null) hash ^= ManagedPlacementView.GetHashCode(); - if (mediaFile_ != null) hash ^= MediaFile.GetHashCode(); - if (mobileAppCategoryConstant_ != null) hash ^= MobileAppCategoryConstant.GetHashCode(); - if (mobileDeviceConstant_ != null) hash ^= MobileDeviceConstant.GetHashCode(); - if (offlineUserDataJob_ != null) hash ^= OfflineUserDataJob.GetHashCode(); - if (operatingSystemVersionConstant_ != null) hash ^= OperatingSystemVersionConstant.GetHashCode(); - if (paidOrganicSearchTermView_ != null) hash ^= PaidOrganicSearchTermView.GetHashCode(); - if (parentalStatusView_ != null) hash ^= ParentalStatusView.GetHashCode(); - if (perStoreView_ != null) hash ^= PerStoreView.GetHashCode(); - if (productBiddingCategoryConstant_ != null) hash ^= ProductBiddingCategoryConstant.GetHashCode(); - if (productGroupView_ != null) hash ^= ProductGroupView.GetHashCode(); - if (recommendation_ != null) hash ^= Recommendation.GetHashCode(); - if (searchTermView_ != null) hash ^= SearchTermView.GetHashCode(); - if (sharedCriterion_ != null) hash ^= SharedCriterion.GetHashCode(); - if (sharedSet_ != null) hash ^= SharedSet.GetHashCode(); - if (smartCampaignSetting_ != null) hash ^= SmartCampaignSetting.GetHashCode(); - if (shoppingPerformanceView_ != null) hash ^= ShoppingPerformanceView.GetHashCode(); - if (smartCampaignSearchTermView_ != null) hash ^= SmartCampaignSearchTermView.GetHashCode(); - if (thirdPartyAppAnalyticsLink_ != null) hash ^= ThirdPartyAppAnalyticsLink.GetHashCode(); - if (topicView_ != null) hash ^= TopicView.GetHashCode(); - if (experiment_ != null) hash ^= Experiment.GetHashCode(); - if (experimentArm_ != null) hash ^= ExperimentArm.GetHashCode(); - if (userInterest_ != null) hash ^= UserInterest.GetHashCode(); - if (lifeEvent_ != null) hash ^= LifeEvent.GetHashCode(); - if (userList_ != null) hash ^= UserList.GetHashCode(); - if (userLocationView_ != null) hash ^= UserLocationView.GetHashCode(); - if (remarketingAction_ != null) hash ^= RemarketingAction.GetHashCode(); - if (topicConstant_ != null) hash ^= TopicConstant.GetHashCode(); - if (video_ != null) hash ^= Video.GetHashCode(); - if (webpageView_ != null) hash ^= WebpageView.GetHashCode(); - if (leadFormSubmissionData_ != null) hash ^= LeadFormSubmissionData.GetHashCode(); - if (metrics_ != null) hash ^= Metrics.GetHashCode(); - if (segments_ != null) hash ^= Segments.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (customer_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Customer); - } - if (campaign_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Campaign); - } - if (adGroup_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AdGroup); - } - if (metrics_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Metrics); - } - if (adGroupAd_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AdGroupAd); - } - if (adGroupCriterion_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(AdGroupCriterion); - } - if (biddingStrategy_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(BiddingStrategy); - } - if (campaignBudget_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(CampaignBudget); - } - if (campaignCriterion_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(CampaignCriterion); - } - if (keywordView_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(KeywordView); - } - if (recommendation_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(Recommendation); - } - if (geoTargetConstant_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(GeoTargetConstant); - } - if (adGroupBidModifier_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(AdGroupBidModifier); - } - if (campaignGroup_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(CampaignGroup); - } - if (campaignBidModifier_ != null) { - output.WriteRawTag(210, 1); - output.WriteMessage(CampaignBidModifier); - } - if (sharedSet_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(SharedSet); - } - if (sharedCriterion_ != null) { - output.WriteRawTag(234, 1); - output.WriteMessage(SharedCriterion); - } - if (campaignSharedSet_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(CampaignSharedSet); - } - if (topicConstant_ != null) { - output.WriteRawTag(250, 1); - output.WriteMessage(TopicConstant); - } - if (keywordPlan_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(KeywordPlan); - } - if (keywordPlanCampaign_ != null) { - output.WriteRawTag(138, 2); - output.WriteMessage(KeywordPlanCampaign); - } - if (keywordPlanAdGroup_ != null) { - output.WriteRawTag(154, 2); - output.WriteMessage(KeywordPlanAdGroup); - } - if (changeStatus_ != null) { - output.WriteRawTag(170, 2); - output.WriteMessage(ChangeStatus); - } - if (userList_ != null) { - output.WriteRawTag(178, 2); - output.WriteMessage(UserList); - } - if (video_ != null) { - output.WriteRawTag(186, 2); - output.WriteMessage(Video); - } - if (genderView_ != null) { - output.WriteRawTag(194, 2); - output.WriteMessage(GenderView); - } - if (billingSetup_ != null) { - output.WriteRawTag(202, 2); - output.WriteMessage(BillingSetup); - } - if (accountBudget_ != null) { - output.WriteRawTag(210, 2); - output.WriteMessage(AccountBudget); - } - if (accountBudgetProposal_ != null) { - output.WriteRawTag(218, 2); - output.WriteMessage(AccountBudgetProposal); - } - if (topicView_ != null) { - output.WriteRawTag(226, 2); - output.WriteMessage(TopicView); - } - if (parentalStatusView_ != null) { - output.WriteRawTag(234, 2); - output.WriteMessage(ParentalStatusView); - } - if (feed_ != null) { - output.WriteRawTag(242, 2); - output.WriteMessage(Feed); - } - if (displayKeywordView_ != null) { - output.WriteRawTag(250, 2); - output.WriteMessage(DisplayKeywordView); - } - if (ageRangeView_ != null) { - output.WriteRawTag(130, 3); - output.WriteMessage(AgeRangeView); - } - if (campaignDraft_ != null) { - output.WriteRawTag(138, 3); - output.WriteMessage(CampaignDraft); - } - if (feedItem_ != null) { - output.WriteRawTag(146, 3); - output.WriteMessage(FeedItem); - } - if (hotelGroupView_ != null) { - output.WriteRawTag(154, 3); - output.WriteMessage(HotelGroupView); - } - if (label_ != null) { - output.WriteRawTag(162, 3); - output.WriteMessage(Label); - } - if (managedPlacementView_ != null) { - output.WriteRawTag(170, 3); - output.WriteMessage(ManagedPlacementView); - } - if (productGroupView_ != null) { - output.WriteRawTag(178, 3); - output.WriteMessage(ProductGroupView); - } - if (languageConstant_ != null) { - output.WriteRawTag(186, 3); - output.WriteMessage(LanguageConstant); - } - if (adGroupAudienceView_ != null) { - output.WriteRawTag(202, 3); - output.WriteMessage(AdGroupAudienceView); - } - if (feedMapping_ != null) { - output.WriteRawTag(210, 3); - output.WriteMessage(FeedMapping); - } - if (userInterest_ != null) { - output.WriteRawTag(218, 3); - output.WriteMessage(UserInterest); - } - if (remarketingAction_ != null) { - output.WriteRawTag(226, 3); - output.WriteMessage(RemarketingAction); - } - if (customerManagerLink_ != null) { - output.WriteRawTag(234, 3); - output.WriteMessage(CustomerManagerLink); - } - if (customerClientLink_ != null) { - output.WriteRawTag(242, 3); - output.WriteMessage(CustomerClientLink); - } - if (campaignFeed_ != null) { - output.WriteRawTag(250, 3); - output.WriteMessage(CampaignFeed); - } - if (customerFeed_ != null) { - output.WriteRawTag(130, 4); - output.WriteMessage(CustomerFeed); - } - if (carrierConstant_ != null) { - output.WriteRawTag(146, 4); - output.WriteMessage(CarrierConstant); - } - if (adGroupFeed_ != null) { - output.WriteRawTag(154, 4); - output.WriteMessage(AdGroupFeed); - } - if (searchTermView_ != null) { - output.WriteRawTag(162, 4); - output.WriteMessage(SearchTermView); - } - if (campaignAudienceView_ != null) { - output.WriteRawTag(170, 4); - output.WriteMessage(CampaignAudienceView); - } - if (customerClient_ != null) { - output.WriteRawTag(178, 4); - output.WriteMessage(CustomerClient); - } - if (hotelPerformanceView_ != null) { - output.WriteRawTag(186, 4); - output.WriteMessage(HotelPerformanceView); - } - if (extensionFeedItem_ != null) { - output.WriteRawTag(170, 5); - output.WriteMessage(ExtensionFeedItem); - } - if (operatingSystemVersionConstant_ != null) { - output.WriteRawTag(178, 5); - output.WriteMessage(OperatingSystemVersionConstant); - } - if (mobileAppCategoryConstant_ != null) { - output.WriteRawTag(186, 5); - output.WriteMessage(MobileAppCategoryConstant); - } - if (customerNegativeCriterion_ != null) { - output.WriteRawTag(194, 5); - output.WriteMessage(CustomerNegativeCriterion); - } - if (adScheduleView_ != null) { - output.WriteRawTag(202, 5); - output.WriteMessage(AdScheduleView); - } - if (mediaFile_ != null) { - output.WriteRawTag(210, 5); - output.WriteMessage(MediaFile); - } - if (domainCategory_ != null) { - output.WriteRawTag(218, 5); - output.WriteMessage(DomainCategory); - } - if (feedPlaceholderView_ != null) { - output.WriteRawTag(138, 6); - output.WriteMessage(FeedPlaceholderView); - } - if (mobileDeviceConstant_ != null) { - output.WriteRawTag(146, 6); - output.WriteMessage(MobileDeviceConstant); - } - if (segments_ != null) { - output.WriteRawTag(178, 6); - output.WriteMessage(Segments); - } - if (conversionAction_ != null) { - output.WriteRawTag(186, 6); - output.WriteMessage(ConversionAction); - } - if (customInterest_ != null) { - output.WriteRawTag(194, 6); - output.WriteMessage(CustomInterest); - } - if (asset_ != null) { - output.WriteRawTag(202, 6); - output.WriteMessage(Asset); - } - if (dynamicSearchAdsSearchTermView_ != null) { - output.WriteRawTag(210, 6); - output.WriteMessage(DynamicSearchAdsSearchTermView); - } - if (adGroupSimulation_ != null) { - output.WriteRawTag(218, 6); - output.WriteMessage(AdGroupSimulation); - } - if (campaignLabel_ != null) { - output.WriteRawTag(226, 6); - output.WriteMessage(CampaignLabel); - } - if (productBiddingCategoryConstant_ != null) { - output.WriteRawTag(234, 6); - output.WriteMessage(ProductBiddingCategoryConstant); - } - if (adGroupCriterionSimulation_ != null) { - output.WriteRawTag(242, 6); - output.WriteMessage(AdGroupCriterionSimulation); - } - if (campaignCriterionSimulation_ != null) { - output.WriteRawTag(250, 6); - output.WriteMessage(CampaignCriterionSimulation); - } - if (adGroupExtensionSetting_ != null) { - output.WriteRawTag(130, 7); - output.WriteMessage(AdGroupExtensionSetting); - } - if (campaignExtensionSetting_ != null) { - output.WriteRawTag(138, 7); - output.WriteMessage(CampaignExtensionSetting); - } - if (customerExtensionSetting_ != null) { - output.WriteRawTag(146, 7); - output.WriteMessage(CustomerExtensionSetting); - } - if (adGroupLabel_ != null) { - output.WriteRawTag(154, 7); - output.WriteMessage(AdGroupLabel); - } - if (feedItemTarget_ != null) { - output.WriteRawTag(162, 7); - output.WriteMessage(FeedItemTarget); - } - if (shoppingPerformanceView_ != null) { - output.WriteRawTag(170, 7); - output.WriteMessage(ShoppingPerformanceView); - } - if (detailPlacementView_ != null) { - output.WriteRawTag(178, 7); - output.WriteMessage(DetailPlacementView); - } - if (groupPlacementView_ != null) { - output.WriteRawTag(186, 7); - output.WriteMessage(GroupPlacementView); - } - if (adGroupAdLabel_ != null) { - output.WriteRawTag(194, 7); - output.WriteMessage(AdGroupAdLabel); - } - if (adGroupCriterionLabel_ != null) { - output.WriteRawTag(202, 7); - output.WriteMessage(AdGroupCriterionLabel); - } - if (clickView_ != null) { - output.WriteRawTag(210, 7); - output.WriteMessage(ClickView); - } - if (locationView_ != null) { - output.WriteRawTag(218, 7); - output.WriteMessage(LocationView); - } - if (customerLabel_ != null) { - output.WriteRawTag(226, 7); - output.WriteMessage(CustomerLabel); - } - if (geographicView_ != null) { - output.WriteRawTag(234, 7); - output.WriteMessage(GeographicView); - } - if (landingPageView_ != null) { - output.WriteRawTag(242, 7); - output.WriteMessage(LandingPageView); - } - if (expandedLandingPageView_ != null) { - output.WriteRawTag(130, 8); - output.WriteMessage(ExpandedLandingPageView); - } - if (paidOrganicSearchTermView_ != null) { - output.WriteRawTag(138, 8); - output.WriteMessage(PaidOrganicSearchTermView); - } - if (adParameter_ != null) { - output.WriteRawTag(146, 8); - output.WriteMessage(AdParameter); - } - if (adGroupAdAssetView_ != null) { - output.WriteRawTag(154, 8); - output.WriteMessage(AdGroupAdAssetView); - } - if (distanceView_ != null) { - output.WriteRawTag(162, 8); - output.WriteMessage(DistanceView); - } - if (experiment_ != null) { - output.WriteRawTag(170, 8); - output.WriteMessage(Experiment); - } - if (currencyConstant_ != null) { - output.WriteRawTag(178, 8); - output.WriteMessage(CurrencyConstant); - } - if (userLocationView_ != null) { - output.WriteRawTag(186, 8); - output.WriteMessage(UserLocationView); - } - if (offlineUserDataJob_ != null) { - output.WriteRawTag(202, 8); - output.WriteMessage(OfflineUserDataJob); - } - if (incomeRangeView_ != null) { - output.WriteRawTag(210, 8); - output.WriteMessage(IncomeRangeView); - } - if (batchJob_ != null) { - output.WriteRawTag(218, 8); - output.WriteMessage(BatchJob); - } - if (keywordPlanCampaignKeyword_ != null) { - output.WriteRawTag(226, 8); - output.WriteMessage(KeywordPlanCampaignKeyword); - } - if (keywordPlanAdGroupKeyword_ != null) { - output.WriteRawTag(234, 8); - output.WriteMessage(KeywordPlanAdGroupKeyword); - } - if (campaignAsset_ != null) { - output.WriteRawTag(242, 8); - output.WriteMessage(CampaignAsset); - } - if (accountLink_ != null) { - output.WriteRawTag(250, 8); - output.WriteMessage(AccountLink); - } - if (thirdPartyAppAnalyticsLink_ != null) { - output.WriteRawTag(130, 9); - output.WriteMessage(ThirdPartyAppAnalyticsLink); - } - if (changeEvent_ != null) { - output.WriteRawTag(138, 9); - output.WriteMessage(ChangeEvent); - } - if (customerUserAccess_ != null) { - output.WriteRawTag(146, 9); - output.WriteMessage(CustomerUserAccess); - } - if (customAudience_ != null) { - output.WriteRawTag(154, 9); - output.WriteMessage(CustomAudience); - } - if (combinedAudience_ != null) { - output.WriteRawTag(162, 9); - output.WriteMessage(CombinedAudience); - } - if (feedItemSet_ != null) { - output.WriteRawTag(170, 9); - output.WriteMessage(FeedItemSet); - } - if (customerUserAccessInvitation_ != null) { - output.WriteRawTag(178, 9); - output.WriteMessage(CustomerUserAccessInvitation); - } - if (feedItemSetLink_ != null) { - output.WriteRawTag(186, 9); - output.WriteMessage(FeedItemSetLink); - } - if (callView_ != null) { - output.WriteRawTag(194, 9); - output.WriteMessage(CallView); - } - if (conversionCustomVariable_ != null) { - output.WriteRawTag(202, 9); - output.WriteMessage(ConversionCustomVariable); - } - if (adGroupAsset_ != null) { - output.WriteRawTag(210, 9); - output.WriteMessage(AdGroupAsset); - } - if (customerAsset_ != null) { - output.WriteRawTag(218, 9); - output.WriteMessage(CustomerAsset); - } - if (campaignSimulation_ != null) { - output.WriteRawTag(234, 9); - output.WriteMessage(CampaignSimulation); - } - if (biddingStrategySimulation_ != null) { - output.WriteRawTag(242, 9); - output.WriteMessage(BiddingStrategySimulation); - } - if (biddingDataExclusion_ != null) { - output.WriteRawTag(250, 9); - output.WriteMessage(BiddingDataExclusion); - } - if (biddingSeasonalityAdjustment_ != null) { - output.WriteRawTag(130, 10); - output.WriteMessage(BiddingSeasonalityAdjustment); - } - if (lifeEvent_ != null) { - output.WriteRawTag(138, 10); - output.WriteMessage(LifeEvent); - } - if (webpageView_ != null) { - output.WriteRawTag(146, 10); - output.WriteMessage(WebpageView); - } - if (keywordThemeConstant_ != null) { - output.WriteRawTag(154, 10); - output.WriteMessage(KeywordThemeConstant); - } - if (conversionValueRule_ != null) { - output.WriteRawTag(162, 10); - output.WriteMessage(ConversionValueRule); - } - if (conversionValueRuleSet_ != null) { - output.WriteRawTag(170, 10); - output.WriteMessage(ConversionValueRuleSet); - } - if (detailedDemographic_ != null) { - output.WriteRawTag(178, 10); - output.WriteMessage(DetailedDemographic); - } - if (smartCampaignSetting_ != null) { - output.WriteRawTag(186, 10); - output.WriteMessage(SmartCampaignSetting); - } - if (assetFieldTypeView_ != null) { - output.WriteRawTag(194, 10); - output.WriteMessage(AssetFieldTypeView); - } - if (accessibleBiddingStrategy_ != null) { - output.WriteRawTag(202, 10); - output.WriteMessage(AccessibleBiddingStrategy); - } - if (smartCampaignSearchTermView_ != null) { - output.WriteRawTag(210, 10); - output.WriteMessage(SmartCampaignSearchTermView); - } - if (assetGroup_ != null) { - output.WriteRawTag(226, 10); - output.WriteMessage(AssetGroup); - } - if (assetGroupAsset_ != null) { - output.WriteRawTag(234, 10); - output.WriteMessage(AssetGroupAsset); - } - if (customerConversionGoal_ != null) { - output.WriteRawTag(242, 10); - output.WriteMessage(CustomerConversionGoal); - } - if (campaignConversionGoal_ != null) { - output.WriteRawTag(250, 10); - output.WriteMessage(CampaignConversionGoal); - } - if (customConversionGoal_ != null) { - output.WriteRawTag(130, 11); - output.WriteMessage(CustomConversionGoal); - } - if (conversionGoalCampaignConfig_ != null) { - output.WriteRawTag(138, 11); - output.WriteMessage(ConversionGoalCampaignConfig); - } - if (customizerAttribute_ != null) { - output.WriteRawTag(146, 11); - output.WriteMessage(CustomizerAttribute); - } - if (assetSet_ != null) { - output.WriteRawTag(154, 11); - output.WriteMessage(AssetSet); - } - if (assetSetAsset_ != null) { - output.WriteRawTag(162, 11); - output.WriteMessage(AssetSetAsset); - } - if (campaignAssetSet_ != null) { - output.WriteRawTag(170, 11); - output.WriteMessage(CampaignAssetSet); - } - if (assetGroupListingGroupFilter_ != null) { - output.WriteRawTag(178, 11); - output.WriteMessage(AssetGroupListingGroupFilter); - } - if (experimentArm_ != null) { - output.WriteRawTag(186, 11); - output.WriteMessage(ExperimentArm); - } - if (customerCustomizer_ != null) { - output.WriteRawTag(194, 11); - output.WriteMessage(CustomerCustomizer); - } - if (adGroupCustomizer_ != null) { - output.WriteRawTag(202, 11); - output.WriteMessage(AdGroupCustomizer); - } - if (campaignCustomizer_ != null) { - output.WriteRawTag(210, 11); - output.WriteMessage(CampaignCustomizer); - } - if (adGroupCriterionCustomizer_ != null) { - output.WriteRawTag(218, 11); - output.WriteMessage(AdGroupCriterionCustomizer); - } - if (hotelReconciliation_ != null) { - output.WriteRawTag(226, 11); - output.WriteMessage(HotelReconciliation); - } - if (assetGroupProductGroupView_ != null) { - output.WriteRawTag(234, 11); - output.WriteMessage(AssetGroupProductGroupView); - } - if (audience_ != null) { - output.WriteRawTag(242, 11); - output.WriteMessage(Audience); - } - if (assetGroupSignal_ != null) { - output.WriteRawTag(250, 11); - output.WriteMessage(AssetGroupSignal); - } - if (leadFormSubmissionData_ != null) { - output.WriteRawTag(130, 12); - output.WriteMessage(LeadFormSubmissionData); - } - if (adGroupAdAssetCombinationView_ != null) { - output.WriteRawTag(138, 12); - output.WriteMessage(AdGroupAdAssetCombinationView); - } - if (customerAssetSet_ != null) { - output.WriteRawTag(154, 12); - output.WriteMessage(CustomerAssetSet); - } - if (adGroupAssetSet_ != null) { - output.WriteRawTag(162, 12); - output.WriteMessage(AdGroupAssetSet); - } - if (assetSetTypeView_ != null) { - output.WriteRawTag(170, 12); - output.WriteMessage(AssetSetTypeView); - } - if (perStoreView_ != null) { - output.WriteRawTag(178, 12); - output.WriteMessage(PerStoreView); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (customer_ != null) { - output.WriteRawTag(10); - output.WriteMessage(Customer); - } - if (campaign_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Campaign); - } - if (adGroup_ != null) { - output.WriteRawTag(26); - output.WriteMessage(AdGroup); - } - if (metrics_ != null) { - output.WriteRawTag(34); - output.WriteMessage(Metrics); - } - if (adGroupAd_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AdGroupAd); - } - if (adGroupCriterion_ != null) { - output.WriteRawTag(138, 1); - output.WriteMessage(AdGroupCriterion); - } - if (biddingStrategy_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(BiddingStrategy); - } - if (campaignBudget_ != null) { - output.WriteRawTag(154, 1); - output.WriteMessage(CampaignBudget); - } - if (campaignCriterion_ != null) { - output.WriteRawTag(162, 1); - output.WriteMessage(CampaignCriterion); - } - if (keywordView_ != null) { - output.WriteRawTag(170, 1); - output.WriteMessage(KeywordView); - } - if (recommendation_ != null) { - output.WriteRawTag(178, 1); - output.WriteMessage(Recommendation); - } - if (geoTargetConstant_ != null) { - output.WriteRawTag(186, 1); - output.WriteMessage(GeoTargetConstant); - } - if (adGroupBidModifier_ != null) { - output.WriteRawTag(194, 1); - output.WriteMessage(AdGroupBidModifier); - } - if (campaignGroup_ != null) { - output.WriteRawTag(202, 1); - output.WriteMessage(CampaignGroup); - } - if (campaignBidModifier_ != null) { - output.WriteRawTag(210, 1); - output.WriteMessage(CampaignBidModifier); - } - if (sharedSet_ != null) { - output.WriteRawTag(218, 1); - output.WriteMessage(SharedSet); - } - if (sharedCriterion_ != null) { - output.WriteRawTag(234, 1); - output.WriteMessage(SharedCriterion); - } - if (campaignSharedSet_ != null) { - output.WriteRawTag(242, 1); - output.WriteMessage(CampaignSharedSet); - } - if (topicConstant_ != null) { - output.WriteRawTag(250, 1); - output.WriteMessage(TopicConstant); - } - if (keywordPlan_ != null) { - output.WriteRawTag(130, 2); - output.WriteMessage(KeywordPlan); - } - if (keywordPlanCampaign_ != null) { - output.WriteRawTag(138, 2); - output.WriteMessage(KeywordPlanCampaign); - } - if (keywordPlanAdGroup_ != null) { - output.WriteRawTag(154, 2); - output.WriteMessage(KeywordPlanAdGroup); - } - if (changeStatus_ != null) { - output.WriteRawTag(170, 2); - output.WriteMessage(ChangeStatus); - } - if (userList_ != null) { - output.WriteRawTag(178, 2); - output.WriteMessage(UserList); - } - if (video_ != null) { - output.WriteRawTag(186, 2); - output.WriteMessage(Video); - } - if (genderView_ != null) { - output.WriteRawTag(194, 2); - output.WriteMessage(GenderView); - } - if (billingSetup_ != null) { - output.WriteRawTag(202, 2); - output.WriteMessage(BillingSetup); - } - if (accountBudget_ != null) { - output.WriteRawTag(210, 2); - output.WriteMessage(AccountBudget); - } - if (accountBudgetProposal_ != null) { - output.WriteRawTag(218, 2); - output.WriteMessage(AccountBudgetProposal); - } - if (topicView_ != null) { - output.WriteRawTag(226, 2); - output.WriteMessage(TopicView); - } - if (parentalStatusView_ != null) { - output.WriteRawTag(234, 2); - output.WriteMessage(ParentalStatusView); - } - if (feed_ != null) { - output.WriteRawTag(242, 2); - output.WriteMessage(Feed); - } - if (displayKeywordView_ != null) { - output.WriteRawTag(250, 2); - output.WriteMessage(DisplayKeywordView); - } - if (ageRangeView_ != null) { - output.WriteRawTag(130, 3); - output.WriteMessage(AgeRangeView); - } - if (campaignDraft_ != null) { - output.WriteRawTag(138, 3); - output.WriteMessage(CampaignDraft); - } - if (feedItem_ != null) { - output.WriteRawTag(146, 3); - output.WriteMessage(FeedItem); - } - if (hotelGroupView_ != null) { - output.WriteRawTag(154, 3); - output.WriteMessage(HotelGroupView); - } - if (label_ != null) { - output.WriteRawTag(162, 3); - output.WriteMessage(Label); - } - if (managedPlacementView_ != null) { - output.WriteRawTag(170, 3); - output.WriteMessage(ManagedPlacementView); - } - if (productGroupView_ != null) { - output.WriteRawTag(178, 3); - output.WriteMessage(ProductGroupView); - } - if (languageConstant_ != null) { - output.WriteRawTag(186, 3); - output.WriteMessage(LanguageConstant); - } - if (adGroupAudienceView_ != null) { - output.WriteRawTag(202, 3); - output.WriteMessage(AdGroupAudienceView); - } - if (feedMapping_ != null) { - output.WriteRawTag(210, 3); - output.WriteMessage(FeedMapping); - } - if (userInterest_ != null) { - output.WriteRawTag(218, 3); - output.WriteMessage(UserInterest); - } - if (remarketingAction_ != null) { - output.WriteRawTag(226, 3); - output.WriteMessage(RemarketingAction); - } - if (customerManagerLink_ != null) { - output.WriteRawTag(234, 3); - output.WriteMessage(CustomerManagerLink); - } - if (customerClientLink_ != null) { - output.WriteRawTag(242, 3); - output.WriteMessage(CustomerClientLink); - } - if (campaignFeed_ != null) { - output.WriteRawTag(250, 3); - output.WriteMessage(CampaignFeed); - } - if (customerFeed_ != null) { - output.WriteRawTag(130, 4); - output.WriteMessage(CustomerFeed); - } - if (carrierConstant_ != null) { - output.WriteRawTag(146, 4); - output.WriteMessage(CarrierConstant); - } - if (adGroupFeed_ != null) { - output.WriteRawTag(154, 4); - output.WriteMessage(AdGroupFeed); - } - if (searchTermView_ != null) { - output.WriteRawTag(162, 4); - output.WriteMessage(SearchTermView); - } - if (campaignAudienceView_ != null) { - output.WriteRawTag(170, 4); - output.WriteMessage(CampaignAudienceView); - } - if (customerClient_ != null) { - output.WriteRawTag(178, 4); - output.WriteMessage(CustomerClient); - } - if (hotelPerformanceView_ != null) { - output.WriteRawTag(186, 4); - output.WriteMessage(HotelPerformanceView); - } - if (extensionFeedItem_ != null) { - output.WriteRawTag(170, 5); - output.WriteMessage(ExtensionFeedItem); - } - if (operatingSystemVersionConstant_ != null) { - output.WriteRawTag(178, 5); - output.WriteMessage(OperatingSystemVersionConstant); - } - if (mobileAppCategoryConstant_ != null) { - output.WriteRawTag(186, 5); - output.WriteMessage(MobileAppCategoryConstant); - } - if (customerNegativeCriterion_ != null) { - output.WriteRawTag(194, 5); - output.WriteMessage(CustomerNegativeCriterion); - } - if (adScheduleView_ != null) { - output.WriteRawTag(202, 5); - output.WriteMessage(AdScheduleView); - } - if (mediaFile_ != null) { - output.WriteRawTag(210, 5); - output.WriteMessage(MediaFile); - } - if (domainCategory_ != null) { - output.WriteRawTag(218, 5); - output.WriteMessage(DomainCategory); - } - if (feedPlaceholderView_ != null) { - output.WriteRawTag(138, 6); - output.WriteMessage(FeedPlaceholderView); - } - if (mobileDeviceConstant_ != null) { - output.WriteRawTag(146, 6); - output.WriteMessage(MobileDeviceConstant); - } - if (segments_ != null) { - output.WriteRawTag(178, 6); - output.WriteMessage(Segments); - } - if (conversionAction_ != null) { - output.WriteRawTag(186, 6); - output.WriteMessage(ConversionAction); - } - if (customInterest_ != null) { - output.WriteRawTag(194, 6); - output.WriteMessage(CustomInterest); - } - if (asset_ != null) { - output.WriteRawTag(202, 6); - output.WriteMessage(Asset); - } - if (dynamicSearchAdsSearchTermView_ != null) { - output.WriteRawTag(210, 6); - output.WriteMessage(DynamicSearchAdsSearchTermView); - } - if (adGroupSimulation_ != null) { - output.WriteRawTag(218, 6); - output.WriteMessage(AdGroupSimulation); - } - if (campaignLabel_ != null) { - output.WriteRawTag(226, 6); - output.WriteMessage(CampaignLabel); - } - if (productBiddingCategoryConstant_ != null) { - output.WriteRawTag(234, 6); - output.WriteMessage(ProductBiddingCategoryConstant); - } - if (adGroupCriterionSimulation_ != null) { - output.WriteRawTag(242, 6); - output.WriteMessage(AdGroupCriterionSimulation); - } - if (campaignCriterionSimulation_ != null) { - output.WriteRawTag(250, 6); - output.WriteMessage(CampaignCriterionSimulation); - } - if (adGroupExtensionSetting_ != null) { - output.WriteRawTag(130, 7); - output.WriteMessage(AdGroupExtensionSetting); - } - if (campaignExtensionSetting_ != null) { - output.WriteRawTag(138, 7); - output.WriteMessage(CampaignExtensionSetting); - } - if (customerExtensionSetting_ != null) { - output.WriteRawTag(146, 7); - output.WriteMessage(CustomerExtensionSetting); - } - if (adGroupLabel_ != null) { - output.WriteRawTag(154, 7); - output.WriteMessage(AdGroupLabel); - } - if (feedItemTarget_ != null) { - output.WriteRawTag(162, 7); - output.WriteMessage(FeedItemTarget); - } - if (shoppingPerformanceView_ != null) { - output.WriteRawTag(170, 7); - output.WriteMessage(ShoppingPerformanceView); - } - if (detailPlacementView_ != null) { - output.WriteRawTag(178, 7); - output.WriteMessage(DetailPlacementView); - } - if (groupPlacementView_ != null) { - output.WriteRawTag(186, 7); - output.WriteMessage(GroupPlacementView); - } - if (adGroupAdLabel_ != null) { - output.WriteRawTag(194, 7); - output.WriteMessage(AdGroupAdLabel); - } - if (adGroupCriterionLabel_ != null) { - output.WriteRawTag(202, 7); - output.WriteMessage(AdGroupCriterionLabel); - } - if (clickView_ != null) { - output.WriteRawTag(210, 7); - output.WriteMessage(ClickView); - } - if (locationView_ != null) { - output.WriteRawTag(218, 7); - output.WriteMessage(LocationView); - } - if (customerLabel_ != null) { - output.WriteRawTag(226, 7); - output.WriteMessage(CustomerLabel); - } - if (geographicView_ != null) { - output.WriteRawTag(234, 7); - output.WriteMessage(GeographicView); - } - if (landingPageView_ != null) { - output.WriteRawTag(242, 7); - output.WriteMessage(LandingPageView); - } - if (expandedLandingPageView_ != null) { - output.WriteRawTag(130, 8); - output.WriteMessage(ExpandedLandingPageView); - } - if (paidOrganicSearchTermView_ != null) { - output.WriteRawTag(138, 8); - output.WriteMessage(PaidOrganicSearchTermView); - } - if (adParameter_ != null) { - output.WriteRawTag(146, 8); - output.WriteMessage(AdParameter); - } - if (adGroupAdAssetView_ != null) { - output.WriteRawTag(154, 8); - output.WriteMessage(AdGroupAdAssetView); - } - if (distanceView_ != null) { - output.WriteRawTag(162, 8); - output.WriteMessage(DistanceView); - } - if (experiment_ != null) { - output.WriteRawTag(170, 8); - output.WriteMessage(Experiment); - } - if (currencyConstant_ != null) { - output.WriteRawTag(178, 8); - output.WriteMessage(CurrencyConstant); - } - if (userLocationView_ != null) { - output.WriteRawTag(186, 8); - output.WriteMessage(UserLocationView); - } - if (offlineUserDataJob_ != null) { - output.WriteRawTag(202, 8); - output.WriteMessage(OfflineUserDataJob); - } - if (incomeRangeView_ != null) { - output.WriteRawTag(210, 8); - output.WriteMessage(IncomeRangeView); - } - if (batchJob_ != null) { - output.WriteRawTag(218, 8); - output.WriteMessage(BatchJob); - } - if (keywordPlanCampaignKeyword_ != null) { - output.WriteRawTag(226, 8); - output.WriteMessage(KeywordPlanCampaignKeyword); - } - if (keywordPlanAdGroupKeyword_ != null) { - output.WriteRawTag(234, 8); - output.WriteMessage(KeywordPlanAdGroupKeyword); - } - if (campaignAsset_ != null) { - output.WriteRawTag(242, 8); - output.WriteMessage(CampaignAsset); - } - if (accountLink_ != null) { - output.WriteRawTag(250, 8); - output.WriteMessage(AccountLink); - } - if (thirdPartyAppAnalyticsLink_ != null) { - output.WriteRawTag(130, 9); - output.WriteMessage(ThirdPartyAppAnalyticsLink); - } - if (changeEvent_ != null) { - output.WriteRawTag(138, 9); - output.WriteMessage(ChangeEvent); - } - if (customerUserAccess_ != null) { - output.WriteRawTag(146, 9); - output.WriteMessage(CustomerUserAccess); - } - if (customAudience_ != null) { - output.WriteRawTag(154, 9); - output.WriteMessage(CustomAudience); - } - if (combinedAudience_ != null) { - output.WriteRawTag(162, 9); - output.WriteMessage(CombinedAudience); - } - if (feedItemSet_ != null) { - output.WriteRawTag(170, 9); - output.WriteMessage(FeedItemSet); - } - if (customerUserAccessInvitation_ != null) { - output.WriteRawTag(178, 9); - output.WriteMessage(CustomerUserAccessInvitation); - } - if (feedItemSetLink_ != null) { - output.WriteRawTag(186, 9); - output.WriteMessage(FeedItemSetLink); - } - if (callView_ != null) { - output.WriteRawTag(194, 9); - output.WriteMessage(CallView); - } - if (conversionCustomVariable_ != null) { - output.WriteRawTag(202, 9); - output.WriteMessage(ConversionCustomVariable); - } - if (adGroupAsset_ != null) { - output.WriteRawTag(210, 9); - output.WriteMessage(AdGroupAsset); - } - if (customerAsset_ != null) { - output.WriteRawTag(218, 9); - output.WriteMessage(CustomerAsset); - } - if (campaignSimulation_ != null) { - output.WriteRawTag(234, 9); - output.WriteMessage(CampaignSimulation); - } - if (biddingStrategySimulation_ != null) { - output.WriteRawTag(242, 9); - output.WriteMessage(BiddingStrategySimulation); - } - if (biddingDataExclusion_ != null) { - output.WriteRawTag(250, 9); - output.WriteMessage(BiddingDataExclusion); - } - if (biddingSeasonalityAdjustment_ != null) { - output.WriteRawTag(130, 10); - output.WriteMessage(BiddingSeasonalityAdjustment); - } - if (lifeEvent_ != null) { - output.WriteRawTag(138, 10); - output.WriteMessage(LifeEvent); - } - if (webpageView_ != null) { - output.WriteRawTag(146, 10); - output.WriteMessage(WebpageView); - } - if (keywordThemeConstant_ != null) { - output.WriteRawTag(154, 10); - output.WriteMessage(KeywordThemeConstant); - } - if (conversionValueRule_ != null) { - output.WriteRawTag(162, 10); - output.WriteMessage(ConversionValueRule); - } - if (conversionValueRuleSet_ != null) { - output.WriteRawTag(170, 10); - output.WriteMessage(ConversionValueRuleSet); - } - if (detailedDemographic_ != null) { - output.WriteRawTag(178, 10); - output.WriteMessage(DetailedDemographic); - } - if (smartCampaignSetting_ != null) { - output.WriteRawTag(186, 10); - output.WriteMessage(SmartCampaignSetting); - } - if (assetFieldTypeView_ != null) { - output.WriteRawTag(194, 10); - output.WriteMessage(AssetFieldTypeView); - } - if (accessibleBiddingStrategy_ != null) { - output.WriteRawTag(202, 10); - output.WriteMessage(AccessibleBiddingStrategy); - } - if (smartCampaignSearchTermView_ != null) { - output.WriteRawTag(210, 10); - output.WriteMessage(SmartCampaignSearchTermView); - } - if (assetGroup_ != null) { - output.WriteRawTag(226, 10); - output.WriteMessage(AssetGroup); - } - if (assetGroupAsset_ != null) { - output.WriteRawTag(234, 10); - output.WriteMessage(AssetGroupAsset); - } - if (customerConversionGoal_ != null) { - output.WriteRawTag(242, 10); - output.WriteMessage(CustomerConversionGoal); - } - if (campaignConversionGoal_ != null) { - output.WriteRawTag(250, 10); - output.WriteMessage(CampaignConversionGoal); - } - if (customConversionGoal_ != null) { - output.WriteRawTag(130, 11); - output.WriteMessage(CustomConversionGoal); - } - if (conversionGoalCampaignConfig_ != null) { - output.WriteRawTag(138, 11); - output.WriteMessage(ConversionGoalCampaignConfig); - } - if (customizerAttribute_ != null) { - output.WriteRawTag(146, 11); - output.WriteMessage(CustomizerAttribute); - } - if (assetSet_ != null) { - output.WriteRawTag(154, 11); - output.WriteMessage(AssetSet); - } - if (assetSetAsset_ != null) { - output.WriteRawTag(162, 11); - output.WriteMessage(AssetSetAsset); - } - if (campaignAssetSet_ != null) { - output.WriteRawTag(170, 11); - output.WriteMessage(CampaignAssetSet); - } - if (assetGroupListingGroupFilter_ != null) { - output.WriteRawTag(178, 11); - output.WriteMessage(AssetGroupListingGroupFilter); - } - if (experimentArm_ != null) { - output.WriteRawTag(186, 11); - output.WriteMessage(ExperimentArm); - } - if (customerCustomizer_ != null) { - output.WriteRawTag(194, 11); - output.WriteMessage(CustomerCustomizer); - } - if (adGroupCustomizer_ != null) { - output.WriteRawTag(202, 11); - output.WriteMessage(AdGroupCustomizer); - } - if (campaignCustomizer_ != null) { - output.WriteRawTag(210, 11); - output.WriteMessage(CampaignCustomizer); - } - if (adGroupCriterionCustomizer_ != null) { - output.WriteRawTag(218, 11); - output.WriteMessage(AdGroupCriterionCustomizer); - } - if (hotelReconciliation_ != null) { - output.WriteRawTag(226, 11); - output.WriteMessage(HotelReconciliation); - } - if (assetGroupProductGroupView_ != null) { - output.WriteRawTag(234, 11); - output.WriteMessage(AssetGroupProductGroupView); - } - if (audience_ != null) { - output.WriteRawTag(242, 11); - output.WriteMessage(Audience); - } - if (assetGroupSignal_ != null) { - output.WriteRawTag(250, 11); - output.WriteMessage(AssetGroupSignal); - } - if (leadFormSubmissionData_ != null) { - output.WriteRawTag(130, 12); - output.WriteMessage(LeadFormSubmissionData); - } - if (adGroupAdAssetCombinationView_ != null) { - output.WriteRawTag(138, 12); - output.WriteMessage(AdGroupAdAssetCombinationView); - } - if (customerAssetSet_ != null) { - output.WriteRawTag(154, 12); - output.WriteMessage(CustomerAssetSet); - } - if (adGroupAssetSet_ != null) { - output.WriteRawTag(162, 12); - output.WriteMessage(AdGroupAssetSet); - } - if (assetSetTypeView_ != null) { - output.WriteRawTag(170, 12); - output.WriteMessage(AssetSetTypeView); - } - if (perStoreView_ != null) { - output.WriteRawTag(178, 12); - output.WriteMessage(PerStoreView); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (accountBudget_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AccountBudget); - } - if (accountBudgetProposal_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AccountBudgetProposal); - } - if (accountLink_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AccountLink); - } - if (adGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroup); - } - if (adGroupAd_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAd); - } - if (adGroupAdAssetCombinationView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAdAssetCombinationView); - } - if (adGroupAdAssetView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAdAssetView); - } - if (adGroupAdLabel_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAdLabel); - } - if (adGroupAsset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAsset); - } - if (adGroupAssetSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAssetSet); - } - if (adGroupAudienceView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAudienceView); - } - if (adGroupBidModifier_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupBidModifier); - } - if (adGroupCriterion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterion); - } - if (adGroupCriterionCustomizer_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionCustomizer); - } - if (adGroupCriterionLabel_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionLabel); - } - if (adGroupCriterionSimulation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionSimulation); - } - if (adGroupCustomizer_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCustomizer); - } - if (adGroupExtensionSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupExtensionSetting); - } - if (adGroupFeed_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupFeed); - } - if (adGroupLabel_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupLabel); - } - if (adGroupSimulation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupSimulation); - } - if (adParameter_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdParameter); - } - if (ageRangeView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AgeRangeView); - } - if (adScheduleView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdScheduleView); - } - if (domainCategory_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DomainCategory); - } - if (asset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Asset); - } - if (assetFieldTypeView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetFieldTypeView); - } - if (assetGroupAsset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupAsset); - } - if (assetGroupSignal_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupSignal); - } - if (assetGroupListingGroupFilter_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupListingGroupFilter); - } - if (assetGroupProductGroupView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupProductGroupView); - } - if (assetGroup_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroup); - } - if (assetSetAsset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSetAsset); - } - if (assetSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSet); - } - if (assetSetTypeView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSetTypeView); - } - if (batchJob_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BatchJob); - } - if (biddingDataExclusion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingDataExclusion); - } - if (biddingSeasonalityAdjustment_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingSeasonalityAdjustment); - } - if (biddingStrategy_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingStrategy); - } - if (biddingStrategySimulation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingStrategySimulation); - } - if (billingSetup_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BillingSetup); - } - if (callView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CallView); - } - if (campaignBudget_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignBudget); - } - if (campaign_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Campaign); - } - if (campaignAsset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAsset); - } - if (campaignAssetSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAssetSet); - } - if (campaignAudienceView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAudienceView); - } - if (campaignBidModifier_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignBidModifier); - } - if (campaignConversionGoal_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignConversionGoal); - } - if (campaignCriterion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignCriterion); - } - if (campaignCriterionSimulation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignCriterionSimulation); - } - if (campaignCustomizer_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignCustomizer); - } - if (campaignDraft_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignDraft); - } - if (campaignExtensionSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignExtensionSetting); - } - if (campaignFeed_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignFeed); - } - if (campaignGroup_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignGroup); - } - if (campaignLabel_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignLabel); - } - if (campaignSharedSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignSharedSet); - } - if (campaignSimulation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignSimulation); - } - if (carrierConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CarrierConstant); - } - if (changeEvent_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChangeEvent); - } - if (changeStatus_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ChangeStatus); - } - if (combinedAudience_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CombinedAudience); - } - if (audience_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Audience); - } - if (conversionAction_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionAction); - } - if (conversionCustomVariable_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionCustomVariable); - } - if (conversionGoalCampaignConfig_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionGoalCampaignConfig); - } - if (conversionValueRule_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRule); - } - if (conversionValueRuleSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRuleSet); - } - if (clickView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ClickView); - } - if (currencyConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CurrencyConstant); - } - if (customAudience_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomAudience); - } - if (customConversionGoal_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomConversionGoal); - } - if (customInterest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomInterest); - } - if (customer_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Customer); - } - if (customerAsset_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerAsset); - } - if (customerAssetSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerAssetSet); - } - if (accessibleBiddingStrategy_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AccessibleBiddingStrategy); - } - if (customerCustomizer_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerCustomizer); - } - if (customerManagerLink_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerManagerLink); - } - if (customerClientLink_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerClientLink); - } - if (customerClient_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerClient); - } - if (customerConversionGoal_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerConversionGoal); - } - if (customerExtensionSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerExtensionSetting); - } - if (customerFeed_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerFeed); - } - if (customerLabel_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerLabel); - } - if (customerNegativeCriterion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerNegativeCriterion); - } - if (customerUserAccess_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerUserAccess); - } - if (customerUserAccessInvitation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerUserAccessInvitation); - } - if (customizerAttribute_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomizerAttribute); - } - if (detailPlacementView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DetailPlacementView); - } - if (detailedDemographic_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DetailedDemographic); - } - if (displayKeywordView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DisplayKeywordView); - } - if (distanceView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DistanceView); - } - if (dynamicSearchAdsSearchTermView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DynamicSearchAdsSearchTermView); - } - if (expandedLandingPageView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExpandedLandingPageView); - } - if (extensionFeedItem_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExtensionFeedItem); - } - if (feed_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Feed); - } - if (feedItem_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItem); - } - if (feedItemSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemSet); - } - if (feedItemSetLink_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemSetLink); - } - if (feedItemTarget_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemTarget); - } - if (feedMapping_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedMapping); - } - if (feedPlaceholderView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedPlaceholderView); - } - if (genderView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GenderView); - } - if (geoTargetConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GeoTargetConstant); - } - if (geographicView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GeographicView); - } - if (groupPlacementView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(GroupPlacementView); - } - if (hotelGroupView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelGroupView); - } - if (hotelPerformanceView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelPerformanceView); - } - if (hotelReconciliation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HotelReconciliation); - } - if (incomeRangeView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(IncomeRangeView); - } - if (keywordView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordView); - } - if (keywordPlan_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlan); - } - if (keywordPlanCampaign_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanCampaign); - } - if (keywordPlanCampaignKeyword_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanCampaignKeyword); - } - if (keywordPlanAdGroup_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanAdGroup); - } - if (keywordPlanAdGroupKeyword_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanAdGroupKeyword); - } - if (keywordThemeConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordThemeConstant); - } - if (label_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Label); - } - if (landingPageView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LandingPageView); - } - if (languageConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LanguageConstant); - } - if (locationView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LocationView); - } - if (managedPlacementView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ManagedPlacementView); - } - if (mediaFile_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MediaFile); - } - if (mobileAppCategoryConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MobileAppCategoryConstant); - } - if (mobileDeviceConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MobileDeviceConstant); - } - if (offlineUserDataJob_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(OfflineUserDataJob); - } - if (operatingSystemVersionConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(OperatingSystemVersionConstant); - } - if (paidOrganicSearchTermView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PaidOrganicSearchTermView); - } - if (parentalStatusView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ParentalStatusView); - } - if (perStoreView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerStoreView); - } - if (productBiddingCategoryConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ProductBiddingCategoryConstant); - } - if (productGroupView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ProductGroupView); - } - if (recommendation_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Recommendation); - } - if (searchTermView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SearchTermView); - } - if (sharedCriterion_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SharedCriterion); - } - if (sharedSet_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SharedSet); - } - if (smartCampaignSetting_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SmartCampaignSetting); - } - if (shoppingPerformanceView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ShoppingPerformanceView); - } - if (smartCampaignSearchTermView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SmartCampaignSearchTermView); - } - if (thirdPartyAppAnalyticsLink_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ThirdPartyAppAnalyticsLink); - } - if (topicView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TopicView); - } - if (experiment_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Experiment); - } - if (experimentArm_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExperimentArm); - } - if (userInterest_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserInterest); - } - if (lifeEvent_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LifeEvent); - } - if (userList_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserList); - } - if (userLocationView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserLocationView); - } - if (remarketingAction_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemarketingAction); - } - if (topicConstant_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(TopicConstant); - } - if (video_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Video); - } - if (webpageView_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(WebpageView); - } - if (leadFormSubmissionData_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LeadFormSubmissionData); - } - if (metrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Metrics); - } - if (segments_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Segments); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleAdsRow other) { - if (other == null) { - return; - } - if (other.accountBudget_ != null) { - if (accountBudget_ == null) { - AccountBudget = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudget(); - } - AccountBudget.MergeFrom(other.AccountBudget); - } - if (other.accountBudgetProposal_ != null) { - if (accountBudgetProposal_ == null) { - AccountBudgetProposal = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal(); - } - AccountBudgetProposal.MergeFrom(other.AccountBudgetProposal); - } - if (other.accountLink_ != null) { - if (accountLink_ == null) { - AccountLink = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - } - AccountLink.MergeFrom(other.AccountLink); - } - if (other.adGroup_ != null) { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - AdGroup.MergeFrom(other.AdGroup); - } - if (other.adGroupAd_ != null) { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - AdGroupAd.MergeFrom(other.AdGroupAd); - } - if (other.adGroupAdAssetCombinationView_ != null) { - if (adGroupAdAssetCombinationView_ == null) { - AdGroupAdAssetCombinationView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationView(); - } - AdGroupAdAssetCombinationView.MergeFrom(other.AdGroupAdAssetCombinationView); - } - if (other.adGroupAdAssetView_ != null) { - if (adGroupAdAssetView_ == null) { - AdGroupAdAssetView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetView(); - } - AdGroupAdAssetView.MergeFrom(other.AdGroupAdAssetView); - } - if (other.adGroupAdLabel_ != null) { - if (adGroupAdLabel_ == null) { - AdGroupAdLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel(); - } - AdGroupAdLabel.MergeFrom(other.AdGroupAdLabel); - } - if (other.adGroupAsset_ != null) { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - AdGroupAsset.MergeFrom(other.AdGroupAsset); - } - if (other.adGroupAssetSet_ != null) { - if (adGroupAssetSet_ == null) { - AdGroupAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - } - AdGroupAssetSet.MergeFrom(other.AdGroupAssetSet); - } - if (other.adGroupAudienceView_ != null) { - if (adGroupAudienceView_ == null) { - AdGroupAudienceView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceView(); - } - AdGroupAudienceView.MergeFrom(other.AdGroupAudienceView); - } - if (other.adGroupBidModifier_ != null) { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - AdGroupBidModifier.MergeFrom(other.AdGroupBidModifier); - } - if (other.adGroupCriterion_ != null) { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - AdGroupCriterion.MergeFrom(other.AdGroupCriterion); - } - if (other.adGroupCriterionCustomizer_ != null) { - if (adGroupCriterionCustomizer_ == null) { - AdGroupCriterionCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - } - AdGroupCriterionCustomizer.MergeFrom(other.AdGroupCriterionCustomizer); - } - if (other.adGroupCriterionLabel_ != null) { - if (adGroupCriterionLabel_ == null) { - AdGroupCriterionLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel(); - } - AdGroupCriterionLabel.MergeFrom(other.AdGroupCriterionLabel); - } - if (other.adGroupCriterionSimulation_ != null) { - if (adGroupCriterionSimulation_ == null) { - AdGroupCriterionSimulation = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulation(); - } - AdGroupCriterionSimulation.MergeFrom(other.AdGroupCriterionSimulation); - } - if (other.adGroupCustomizer_ != null) { - if (adGroupCustomizer_ == null) { - AdGroupCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - } - AdGroupCustomizer.MergeFrom(other.AdGroupCustomizer); - } - if (other.adGroupExtensionSetting_ != null) { - if (adGroupExtensionSetting_ == null) { - AdGroupExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - AdGroupExtensionSetting.MergeFrom(other.AdGroupExtensionSetting); - } - if (other.adGroupFeed_ != null) { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - AdGroupFeed.MergeFrom(other.AdGroupFeed); - } - if (other.adGroupLabel_ != null) { - if (adGroupLabel_ == null) { - AdGroupLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel(); - } - AdGroupLabel.MergeFrom(other.AdGroupLabel); - } - if (other.adGroupSimulation_ != null) { - if (adGroupSimulation_ == null) { - AdGroupSimulation = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulation(); - } - AdGroupSimulation.MergeFrom(other.AdGroupSimulation); - } - if (other.adParameter_ != null) { - if (adParameter_ == null) { - AdParameter = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - AdParameter.MergeFrom(other.AdParameter); - } - if (other.ageRangeView_ != null) { - if (ageRangeView_ == null) { - AgeRangeView = new global::Google.Ads.GoogleAds.V12.Resources.AgeRangeView(); - } - AgeRangeView.MergeFrom(other.AgeRangeView); - } - if (other.adScheduleView_ != null) { - if (adScheduleView_ == null) { - AdScheduleView = new global::Google.Ads.GoogleAds.V12.Resources.AdScheduleView(); - } - AdScheduleView.MergeFrom(other.AdScheduleView); - } - if (other.domainCategory_ != null) { - if (domainCategory_ == null) { - DomainCategory = new global::Google.Ads.GoogleAds.V12.Resources.DomainCategory(); - } - DomainCategory.MergeFrom(other.DomainCategory); - } - if (other.asset_ != null) { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - Asset.MergeFrom(other.Asset); - } - if (other.assetFieldTypeView_ != null) { - if (assetFieldTypeView_ == null) { - AssetFieldTypeView = new global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeView(); - } - AssetFieldTypeView.MergeFrom(other.AssetFieldTypeView); - } - if (other.assetGroupAsset_ != null) { - if (assetGroupAsset_ == null) { - AssetGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - } - AssetGroupAsset.MergeFrom(other.AssetGroupAsset); - } - if (other.assetGroupSignal_ != null) { - if (assetGroupSignal_ == null) { - AssetGroupSignal = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - } - AssetGroupSignal.MergeFrom(other.AssetGroupSignal); - } - if (other.assetGroupListingGroupFilter_ != null) { - if (assetGroupListingGroupFilter_ == null) { - AssetGroupListingGroupFilter = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - AssetGroupListingGroupFilter.MergeFrom(other.AssetGroupListingGroupFilter); - } - if (other.assetGroupProductGroupView_ != null) { - if (assetGroupProductGroupView_ == null) { - AssetGroupProductGroupView = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupView(); - } - AssetGroupProductGroupView.MergeFrom(other.AssetGroupProductGroupView); - } - if (other.assetGroup_ != null) { - if (assetGroup_ == null) { - AssetGroup = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - } - AssetGroup.MergeFrom(other.AssetGroup); - } - if (other.assetSetAsset_ != null) { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - AssetSetAsset.MergeFrom(other.AssetSetAsset); - } - if (other.assetSet_ != null) { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - AssetSet.MergeFrom(other.AssetSet); - } - if (other.assetSetTypeView_ != null) { - if (assetSetTypeView_ == null) { - AssetSetTypeView = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeView(); - } - AssetSetTypeView.MergeFrom(other.AssetSetTypeView); - } - if (other.batchJob_ != null) { - if (batchJob_ == null) { - BatchJob = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob(); - } - BatchJob.MergeFrom(other.BatchJob); - } - if (other.biddingDataExclusion_ != null) { - if (biddingDataExclusion_ == null) { - BiddingDataExclusion = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - BiddingDataExclusion.MergeFrom(other.BiddingDataExclusion); - } - if (other.biddingSeasonalityAdjustment_ != null) { - if (biddingSeasonalityAdjustment_ == null) { - BiddingSeasonalityAdjustment = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - BiddingSeasonalityAdjustment.MergeFrom(other.BiddingSeasonalityAdjustment); - } - if (other.biddingStrategy_ != null) { - if (biddingStrategy_ == null) { - BiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - BiddingStrategy.MergeFrom(other.BiddingStrategy); - } - if (other.biddingStrategySimulation_ != null) { - if (biddingStrategySimulation_ == null) { - BiddingStrategySimulation = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulation(); - } - BiddingStrategySimulation.MergeFrom(other.BiddingStrategySimulation); - } - if (other.billingSetup_ != null) { - if (billingSetup_ == null) { - BillingSetup = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup(); - } - BillingSetup.MergeFrom(other.BillingSetup); - } - if (other.callView_ != null) { - if (callView_ == null) { - CallView = new global::Google.Ads.GoogleAds.V12.Resources.CallView(); - } - CallView.MergeFrom(other.CallView); - } - if (other.campaignBudget_ != null) { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - CampaignBudget.MergeFrom(other.CampaignBudget); - } - if (other.campaign_ != null) { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - Campaign.MergeFrom(other.Campaign); - } - if (other.campaignAsset_ != null) { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - CampaignAsset.MergeFrom(other.CampaignAsset); - } - if (other.campaignAssetSet_ != null) { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - CampaignAssetSet.MergeFrom(other.CampaignAssetSet); - } - if (other.campaignAudienceView_ != null) { - if (campaignAudienceView_ == null) { - CampaignAudienceView = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceView(); - } - CampaignAudienceView.MergeFrom(other.CampaignAudienceView); - } - if (other.campaignBidModifier_ != null) { - if (campaignBidModifier_ == null) { - CampaignBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - CampaignBidModifier.MergeFrom(other.CampaignBidModifier); - } - if (other.campaignConversionGoal_ != null) { - if (campaignConversionGoal_ == null) { - CampaignConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal(); - } - CampaignConversionGoal.MergeFrom(other.CampaignConversionGoal); - } - if (other.campaignCriterion_ != null) { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - CampaignCriterion.MergeFrom(other.CampaignCriterion); - } - if (other.campaignCriterionSimulation_ != null) { - if (campaignCriterionSimulation_ == null) { - CampaignCriterionSimulation = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulation(); - } - CampaignCriterionSimulation.MergeFrom(other.CampaignCriterionSimulation); - } - if (other.campaignCustomizer_ != null) { - if (campaignCustomizer_ == null) { - CampaignCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - } - CampaignCustomizer.MergeFrom(other.CampaignCustomizer); - } - if (other.campaignDraft_ != null) { - if (campaignDraft_ == null) { - CampaignDraft = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - CampaignDraft.MergeFrom(other.CampaignDraft); - } - if (other.campaignExtensionSetting_ != null) { - if (campaignExtensionSetting_ == null) { - CampaignExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - CampaignExtensionSetting.MergeFrom(other.CampaignExtensionSetting); - } - if (other.campaignFeed_ != null) { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - CampaignFeed.MergeFrom(other.CampaignFeed); - } - if (other.campaignGroup_ != null) { - if (campaignGroup_ == null) { - CampaignGroup = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - CampaignGroup.MergeFrom(other.CampaignGroup); - } - if (other.campaignLabel_ != null) { - if (campaignLabel_ == null) { - CampaignLabel = new global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel(); - } - CampaignLabel.MergeFrom(other.CampaignLabel); - } - if (other.campaignSharedSet_ != null) { - if (campaignSharedSet_ == null) { - CampaignSharedSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - } - CampaignSharedSet.MergeFrom(other.CampaignSharedSet); - } - if (other.campaignSimulation_ != null) { - if (campaignSimulation_ == null) { - CampaignSimulation = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulation(); - } - CampaignSimulation.MergeFrom(other.CampaignSimulation); - } - if (other.carrierConstant_ != null) { - if (carrierConstant_ == null) { - CarrierConstant = new global::Google.Ads.GoogleAds.V12.Resources.CarrierConstant(); - } - CarrierConstant.MergeFrom(other.CarrierConstant); - } - if (other.changeEvent_ != null) { - if (changeEvent_ == null) { - ChangeEvent = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent(); - } - ChangeEvent.MergeFrom(other.ChangeEvent); - } - if (other.changeStatus_ != null) { - if (changeStatus_ == null) { - ChangeStatus = new global::Google.Ads.GoogleAds.V12.Resources.ChangeStatus(); - } - ChangeStatus.MergeFrom(other.ChangeStatus); - } - if (other.combinedAudience_ != null) { - if (combinedAudience_ == null) { - CombinedAudience = new global::Google.Ads.GoogleAds.V12.Resources.CombinedAudience(); - } - CombinedAudience.MergeFrom(other.CombinedAudience); - } - if (other.audience_ != null) { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - Audience.MergeFrom(other.Audience); - } - if (other.conversionAction_ != null) { - if (conversionAction_ == null) { - ConversionAction = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - ConversionAction.MergeFrom(other.ConversionAction); - } - if (other.conversionCustomVariable_ != null) { - if (conversionCustomVariable_ == null) { - ConversionCustomVariable = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - ConversionCustomVariable.MergeFrom(other.ConversionCustomVariable); - } - if (other.conversionGoalCampaignConfig_ != null) { - if (conversionGoalCampaignConfig_ == null) { - ConversionGoalCampaignConfig = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - } - ConversionGoalCampaignConfig.MergeFrom(other.ConversionGoalCampaignConfig); - } - if (other.conversionValueRule_ != null) { - if (conversionValueRule_ == null) { - ConversionValueRule = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - ConversionValueRule.MergeFrom(other.ConversionValueRule); - } - if (other.conversionValueRuleSet_ != null) { - if (conversionValueRuleSet_ == null) { - ConversionValueRuleSet = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - ConversionValueRuleSet.MergeFrom(other.ConversionValueRuleSet); - } - if (other.clickView_ != null) { - if (clickView_ == null) { - ClickView = new global::Google.Ads.GoogleAds.V12.Resources.ClickView(); - } - ClickView.MergeFrom(other.ClickView); - } - if (other.currencyConstant_ != null) { - if (currencyConstant_ == null) { - CurrencyConstant = new global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstant(); - } - CurrencyConstant.MergeFrom(other.CurrencyConstant); - } - if (other.customAudience_ != null) { - if (customAudience_ == null) { - CustomAudience = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - } - CustomAudience.MergeFrom(other.CustomAudience); - } - if (other.customConversionGoal_ != null) { - if (customConversionGoal_ == null) { - CustomConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - CustomConversionGoal.MergeFrom(other.CustomConversionGoal); - } - if (other.customInterest_ != null) { - if (customInterest_ == null) { - CustomInterest = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - } - CustomInterest.MergeFrom(other.CustomInterest); - } - if (other.customer_ != null) { - if (customer_ == null) { - Customer = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - Customer.MergeFrom(other.Customer); - } - if (other.customerAsset_ != null) { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - CustomerAsset.MergeFrom(other.CustomerAsset); - } - if (other.customerAssetSet_ != null) { - if (customerAssetSet_ == null) { - CustomerAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - } - CustomerAssetSet.MergeFrom(other.CustomerAssetSet); - } - if (other.accessibleBiddingStrategy_ != null) { - if (accessibleBiddingStrategy_ == null) { - AccessibleBiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy(); - } - AccessibleBiddingStrategy.MergeFrom(other.AccessibleBiddingStrategy); - } - if (other.customerCustomizer_ != null) { - if (customerCustomizer_ == null) { - CustomerCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - } - CustomerCustomizer.MergeFrom(other.CustomerCustomizer); - } - if (other.customerManagerLink_ != null) { - if (customerManagerLink_ == null) { - CustomerManagerLink = new global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink(); - } - CustomerManagerLink.MergeFrom(other.CustomerManagerLink); - } - if (other.customerClientLink_ != null) { - if (customerClientLink_ == null) { - CustomerClientLink = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - } - CustomerClientLink.MergeFrom(other.CustomerClientLink); - } - if (other.customerClient_ != null) { - if (customerClient_ == null) { - CustomerClient = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClient(); - } - CustomerClient.MergeFrom(other.CustomerClient); - } - if (other.customerConversionGoal_ != null) { - if (customerConversionGoal_ == null) { - CustomerConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal(); - } - CustomerConversionGoal.MergeFrom(other.CustomerConversionGoal); - } - if (other.customerExtensionSetting_ != null) { - if (customerExtensionSetting_ == null) { - CustomerExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - CustomerExtensionSetting.MergeFrom(other.CustomerExtensionSetting); - } - if (other.customerFeed_ != null) { - if (customerFeed_ == null) { - CustomerFeed = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - CustomerFeed.MergeFrom(other.CustomerFeed); - } - if (other.customerLabel_ != null) { - if (customerLabel_ == null) { - CustomerLabel = new global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel(); - } - CustomerLabel.MergeFrom(other.CustomerLabel); - } - if (other.customerNegativeCriterion_ != null) { - if (customerNegativeCriterion_ == null) { - CustomerNegativeCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - } - CustomerNegativeCriterion.MergeFrom(other.CustomerNegativeCriterion); - } - if (other.customerUserAccess_ != null) { - if (customerUserAccess_ == null) { - CustomerUserAccess = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess(); - } - CustomerUserAccess.MergeFrom(other.CustomerUserAccess); - } - if (other.customerUserAccessInvitation_ != null) { - if (customerUserAccessInvitation_ == null) { - CustomerUserAccessInvitation = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation(); - } - CustomerUserAccessInvitation.MergeFrom(other.CustomerUserAccessInvitation); - } - if (other.customizerAttribute_ != null) { - if (customizerAttribute_ == null) { - CustomizerAttribute = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - } - CustomizerAttribute.MergeFrom(other.CustomizerAttribute); - } - if (other.detailPlacementView_ != null) { - if (detailPlacementView_ == null) { - DetailPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementView(); - } - DetailPlacementView.MergeFrom(other.DetailPlacementView); - } - if (other.detailedDemographic_ != null) { - if (detailedDemographic_ == null) { - DetailedDemographic = new global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographic(); - } - DetailedDemographic.MergeFrom(other.DetailedDemographic); - } - if (other.displayKeywordView_ != null) { - if (displayKeywordView_ == null) { - DisplayKeywordView = new global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordView(); - } - DisplayKeywordView.MergeFrom(other.DisplayKeywordView); - } - if (other.distanceView_ != null) { - if (distanceView_ == null) { - DistanceView = new global::Google.Ads.GoogleAds.V12.Resources.DistanceView(); - } - DistanceView.MergeFrom(other.DistanceView); - } - if (other.dynamicSearchAdsSearchTermView_ != null) { - if (dynamicSearchAdsSearchTermView_ == null) { - DynamicSearchAdsSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermView(); - } - DynamicSearchAdsSearchTermView.MergeFrom(other.DynamicSearchAdsSearchTermView); - } - if (other.expandedLandingPageView_ != null) { - if (expandedLandingPageView_ == null) { - ExpandedLandingPageView = new global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageView(); - } - ExpandedLandingPageView.MergeFrom(other.ExpandedLandingPageView); - } - if (other.extensionFeedItem_ != null) { - if (extensionFeedItem_ == null) { - ExtensionFeedItem = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - ExtensionFeedItem.MergeFrom(other.ExtensionFeedItem); - } - if (other.feed_ != null) { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - Feed.MergeFrom(other.Feed); - } - if (other.feedItem_ != null) { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - FeedItem.MergeFrom(other.FeedItem); - } - if (other.feedItemSet_ != null) { - if (feedItemSet_ == null) { - FeedItemSet = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - } - FeedItemSet.MergeFrom(other.FeedItemSet); - } - if (other.feedItemSetLink_ != null) { - if (feedItemSetLink_ == null) { - FeedItemSetLink = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink(); - } - FeedItemSetLink.MergeFrom(other.FeedItemSetLink); - } - if (other.feedItemTarget_ != null) { - if (feedItemTarget_ == null) { - FeedItemTarget = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - } - FeedItemTarget.MergeFrom(other.FeedItemTarget); - } - if (other.feedMapping_ != null) { - if (feedMapping_ == null) { - FeedMapping = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - } - FeedMapping.MergeFrom(other.FeedMapping); - } - if (other.feedPlaceholderView_ != null) { - if (feedPlaceholderView_ == null) { - FeedPlaceholderView = new global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderView(); - } - FeedPlaceholderView.MergeFrom(other.FeedPlaceholderView); - } - if (other.genderView_ != null) { - if (genderView_ == null) { - GenderView = new global::Google.Ads.GoogleAds.V12.Resources.GenderView(); - } - GenderView.MergeFrom(other.GenderView); - } - if (other.geoTargetConstant_ != null) { - if (geoTargetConstant_ == null) { - GeoTargetConstant = new global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant(); - } - GeoTargetConstant.MergeFrom(other.GeoTargetConstant); - } - if (other.geographicView_ != null) { - if (geographicView_ == null) { - GeographicView = new global::Google.Ads.GoogleAds.V12.Resources.GeographicView(); - } - GeographicView.MergeFrom(other.GeographicView); - } - if (other.groupPlacementView_ != null) { - if (groupPlacementView_ == null) { - GroupPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementView(); - } - GroupPlacementView.MergeFrom(other.GroupPlacementView); - } - if (other.hotelGroupView_ != null) { - if (hotelGroupView_ == null) { - HotelGroupView = new global::Google.Ads.GoogleAds.V12.Resources.HotelGroupView(); - } - HotelGroupView.MergeFrom(other.HotelGroupView); - } - if (other.hotelPerformanceView_ != null) { - if (hotelPerformanceView_ == null) { - HotelPerformanceView = new global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceView(); - } - HotelPerformanceView.MergeFrom(other.HotelPerformanceView); - } - if (other.hotelReconciliation_ != null) { - if (hotelReconciliation_ == null) { - HotelReconciliation = new global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliation(); - } - HotelReconciliation.MergeFrom(other.HotelReconciliation); - } - if (other.incomeRangeView_ != null) { - if (incomeRangeView_ == null) { - IncomeRangeView = new global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeView(); - } - IncomeRangeView.MergeFrom(other.IncomeRangeView); - } - if (other.keywordView_ != null) { - if (keywordView_ == null) { - KeywordView = new global::Google.Ads.GoogleAds.V12.Resources.KeywordView(); - } - KeywordView.MergeFrom(other.KeywordView); - } - if (other.keywordPlan_ != null) { - if (keywordPlan_ == null) { - KeywordPlan = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - } - KeywordPlan.MergeFrom(other.KeywordPlan); - } - if (other.keywordPlanCampaign_ != null) { - if (keywordPlanCampaign_ == null) { - KeywordPlanCampaign = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - } - KeywordPlanCampaign.MergeFrom(other.KeywordPlanCampaign); - } - if (other.keywordPlanCampaignKeyword_ != null) { - if (keywordPlanCampaignKeyword_ == null) { - KeywordPlanCampaignKeyword = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - } - KeywordPlanCampaignKeyword.MergeFrom(other.KeywordPlanCampaignKeyword); - } - if (other.keywordPlanAdGroup_ != null) { - if (keywordPlanAdGroup_ == null) { - KeywordPlanAdGroup = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - } - KeywordPlanAdGroup.MergeFrom(other.KeywordPlanAdGroup); - } - if (other.keywordPlanAdGroupKeyword_ != null) { - if (keywordPlanAdGroupKeyword_ == null) { - KeywordPlanAdGroupKeyword = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - } - KeywordPlanAdGroupKeyword.MergeFrom(other.KeywordPlanAdGroupKeyword); - } - if (other.keywordThemeConstant_ != null) { - if (keywordThemeConstant_ == null) { - KeywordThemeConstant = new global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant(); - } - KeywordThemeConstant.MergeFrom(other.KeywordThemeConstant); - } - if (other.label_ != null) { - if (label_ == null) { - Label = new global::Google.Ads.GoogleAds.V12.Resources.Label(); - } - Label.MergeFrom(other.Label); - } - if (other.landingPageView_ != null) { - if (landingPageView_ == null) { - LandingPageView = new global::Google.Ads.GoogleAds.V12.Resources.LandingPageView(); - } - LandingPageView.MergeFrom(other.LandingPageView); - } - if (other.languageConstant_ != null) { - if (languageConstant_ == null) { - LanguageConstant = new global::Google.Ads.GoogleAds.V12.Resources.LanguageConstant(); - } - LanguageConstant.MergeFrom(other.LanguageConstant); - } - if (other.locationView_ != null) { - if (locationView_ == null) { - LocationView = new global::Google.Ads.GoogleAds.V12.Resources.LocationView(); - } - LocationView.MergeFrom(other.LocationView); - } - if (other.managedPlacementView_ != null) { - if (managedPlacementView_ == null) { - ManagedPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.ManagedPlacementView(); - } - ManagedPlacementView.MergeFrom(other.ManagedPlacementView); - } - if (other.mediaFile_ != null) { - if (mediaFile_ == null) { - MediaFile = new global::Google.Ads.GoogleAds.V12.Resources.MediaFile(); - } - MediaFile.MergeFrom(other.MediaFile); - } - if (other.mobileAppCategoryConstant_ != null) { - if (mobileAppCategoryConstant_ == null) { - MobileAppCategoryConstant = new global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstant(); - } - MobileAppCategoryConstant.MergeFrom(other.MobileAppCategoryConstant); - } - if (other.mobileDeviceConstant_ != null) { - if (mobileDeviceConstant_ == null) { - MobileDeviceConstant = new global::Google.Ads.GoogleAds.V12.Resources.MobileDeviceConstant(); - } - MobileDeviceConstant.MergeFrom(other.MobileDeviceConstant); - } - if (other.offlineUserDataJob_ != null) { - if (offlineUserDataJob_ == null) { - OfflineUserDataJob = new global::Google.Ads.GoogleAds.V12.Resources.OfflineUserDataJob(); - } - OfflineUserDataJob.MergeFrom(other.OfflineUserDataJob); - } - if (other.operatingSystemVersionConstant_ != null) { - if (operatingSystemVersionConstant_ == null) { - OperatingSystemVersionConstant = new global::Google.Ads.GoogleAds.V12.Resources.OperatingSystemVersionConstant(); - } - OperatingSystemVersionConstant.MergeFrom(other.OperatingSystemVersionConstant); - } - if (other.paidOrganicSearchTermView_ != null) { - if (paidOrganicSearchTermView_ == null) { - PaidOrganicSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.PaidOrganicSearchTermView(); - } - PaidOrganicSearchTermView.MergeFrom(other.PaidOrganicSearchTermView); - } - if (other.parentalStatusView_ != null) { - if (parentalStatusView_ == null) { - ParentalStatusView = new global::Google.Ads.GoogleAds.V12.Resources.ParentalStatusView(); - } - ParentalStatusView.MergeFrom(other.ParentalStatusView); - } - if (other.perStoreView_ != null) { - if (perStoreView_ == null) { - PerStoreView = new global::Google.Ads.GoogleAds.V12.Resources.PerStoreView(); - } - PerStoreView.MergeFrom(other.PerStoreView); - } - if (other.productBiddingCategoryConstant_ != null) { - if (productBiddingCategoryConstant_ == null) { - ProductBiddingCategoryConstant = new global::Google.Ads.GoogleAds.V12.Resources.ProductBiddingCategoryConstant(); - } - ProductBiddingCategoryConstant.MergeFrom(other.ProductBiddingCategoryConstant); - } - if (other.productGroupView_ != null) { - if (productGroupView_ == null) { - ProductGroupView = new global::Google.Ads.GoogleAds.V12.Resources.ProductGroupView(); - } - ProductGroupView.MergeFrom(other.ProductGroupView); - } - if (other.recommendation_ != null) { - if (recommendation_ == null) { - Recommendation = new global::Google.Ads.GoogleAds.V12.Resources.Recommendation(); - } - Recommendation.MergeFrom(other.Recommendation); - } - if (other.searchTermView_ != null) { - if (searchTermView_ == null) { - SearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.SearchTermView(); - } - SearchTermView.MergeFrom(other.SearchTermView); - } - if (other.sharedCriterion_ != null) { - if (sharedCriterion_ == null) { - SharedCriterion = new global::Google.Ads.GoogleAds.V12.Resources.SharedCriterion(); - } - SharedCriterion.MergeFrom(other.SharedCriterion); - } - if (other.sharedSet_ != null) { - if (sharedSet_ == null) { - SharedSet = new global::Google.Ads.GoogleAds.V12.Resources.SharedSet(); - } - SharedSet.MergeFrom(other.SharedSet); - } - if (other.smartCampaignSetting_ != null) { - if (smartCampaignSetting_ == null) { - SmartCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSetting(); - } - SmartCampaignSetting.MergeFrom(other.SmartCampaignSetting); - } - if (other.shoppingPerformanceView_ != null) { - if (shoppingPerformanceView_ == null) { - ShoppingPerformanceView = new global::Google.Ads.GoogleAds.V12.Resources.ShoppingPerformanceView(); - } - ShoppingPerformanceView.MergeFrom(other.ShoppingPerformanceView); - } - if (other.smartCampaignSearchTermView_ != null) { - if (smartCampaignSearchTermView_ == null) { - SmartCampaignSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSearchTermView(); - } - SmartCampaignSearchTermView.MergeFrom(other.SmartCampaignSearchTermView); - } - if (other.thirdPartyAppAnalyticsLink_ != null) { - if (thirdPartyAppAnalyticsLink_ == null) { - ThirdPartyAppAnalyticsLink = new global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLink(); - } - ThirdPartyAppAnalyticsLink.MergeFrom(other.ThirdPartyAppAnalyticsLink); - } - if (other.topicView_ != null) { - if (topicView_ == null) { - TopicView = new global::Google.Ads.GoogleAds.V12.Resources.TopicView(); - } - TopicView.MergeFrom(other.TopicView); - } - if (other.experiment_ != null) { - if (experiment_ == null) { - Experiment = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - } - Experiment.MergeFrom(other.Experiment); - } - if (other.experimentArm_ != null) { - if (experimentArm_ == null) { - ExperimentArm = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - ExperimentArm.MergeFrom(other.ExperimentArm); - } - if (other.userInterest_ != null) { - if (userInterest_ == null) { - UserInterest = new global::Google.Ads.GoogleAds.V12.Resources.UserInterest(); - } - UserInterest.MergeFrom(other.UserInterest); - } - if (other.lifeEvent_ != null) { - if (lifeEvent_ == null) { - LifeEvent = new global::Google.Ads.GoogleAds.V12.Resources.LifeEvent(); - } - LifeEvent.MergeFrom(other.LifeEvent); - } - if (other.userList_ != null) { - if (userList_ == null) { - UserList = new global::Google.Ads.GoogleAds.V12.Resources.UserList(); - } - UserList.MergeFrom(other.UserList); - } - if (other.userLocationView_ != null) { - if (userLocationView_ == null) { - UserLocationView = new global::Google.Ads.GoogleAds.V12.Resources.UserLocationView(); - } - UserLocationView.MergeFrom(other.UserLocationView); - } - if (other.remarketingAction_ != null) { - if (remarketingAction_ == null) { - RemarketingAction = new global::Google.Ads.GoogleAds.V12.Resources.RemarketingAction(); - } - RemarketingAction.MergeFrom(other.RemarketingAction); - } - if (other.topicConstant_ != null) { - if (topicConstant_ == null) { - TopicConstant = new global::Google.Ads.GoogleAds.V12.Resources.TopicConstant(); - } - TopicConstant.MergeFrom(other.TopicConstant); - } - if (other.video_ != null) { - if (video_ == null) { - Video = new global::Google.Ads.GoogleAds.V12.Resources.Video(); - } - Video.MergeFrom(other.Video); - } - if (other.webpageView_ != null) { - if (webpageView_ == null) { - WebpageView = new global::Google.Ads.GoogleAds.V12.Resources.WebpageView(); - } - WebpageView.MergeFrom(other.WebpageView); - } - if (other.leadFormSubmissionData_ != null) { - if (leadFormSubmissionData_ == null) { - LeadFormSubmissionData = new global::Google.Ads.GoogleAds.V12.Resources.LeadFormSubmissionData(); - } - LeadFormSubmissionData.MergeFrom(other.LeadFormSubmissionData); - } - if (other.metrics_ != null) { - if (metrics_ == null) { - Metrics = new global::Google.Ads.GoogleAds.V12.Common.Metrics(); - } - Metrics.MergeFrom(other.Metrics); - } - if (other.segments_ != null) { - if (segments_ == null) { - Segments = new global::Google.Ads.GoogleAds.V12.Common.Segments(); - } - Segments.MergeFrom(other.Segments); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (customer_ == null) { - Customer = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(Customer); - break; - } - case 18: { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - input.ReadMessage(Campaign); - break; - } - case 26: { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - input.ReadMessage(AdGroup); - break; - } - case 34: { - if (metrics_ == null) { - Metrics = new global::Google.Ads.GoogleAds.V12.Common.Metrics(); - } - input.ReadMessage(Metrics); - break; - } - case 130: { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - input.ReadMessage(AdGroupAd); - break; - } - case 138: { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - input.ReadMessage(AdGroupCriterion); - break; - } - case 146: { - if (biddingStrategy_ == null) { - BiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - input.ReadMessage(BiddingStrategy); - break; - } - case 154: { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - input.ReadMessage(CampaignBudget); - break; - } - case 162: { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - input.ReadMessage(CampaignCriterion); - break; - } - case 170: { - if (keywordView_ == null) { - KeywordView = new global::Google.Ads.GoogleAds.V12.Resources.KeywordView(); - } - input.ReadMessage(KeywordView); - break; - } - case 178: { - if (recommendation_ == null) { - Recommendation = new global::Google.Ads.GoogleAds.V12.Resources.Recommendation(); - } - input.ReadMessage(Recommendation); - break; - } - case 186: { - if (geoTargetConstant_ == null) { - GeoTargetConstant = new global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant(); - } - input.ReadMessage(GeoTargetConstant); - break; - } - case 194: { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - input.ReadMessage(AdGroupBidModifier); - break; - } - case 202: { - if (campaignGroup_ == null) { - CampaignGroup = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - input.ReadMessage(CampaignGroup); - break; - } - case 210: { - if (campaignBidModifier_ == null) { - CampaignBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - input.ReadMessage(CampaignBidModifier); - break; - } - case 218: { - if (sharedSet_ == null) { - SharedSet = new global::Google.Ads.GoogleAds.V12.Resources.SharedSet(); - } - input.ReadMessage(SharedSet); - break; - } - case 234: { - if (sharedCriterion_ == null) { - SharedCriterion = new global::Google.Ads.GoogleAds.V12.Resources.SharedCriterion(); - } - input.ReadMessage(SharedCriterion); - break; - } - case 242: { - if (campaignSharedSet_ == null) { - CampaignSharedSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - } - input.ReadMessage(CampaignSharedSet); - break; - } - case 250: { - if (topicConstant_ == null) { - TopicConstant = new global::Google.Ads.GoogleAds.V12.Resources.TopicConstant(); - } - input.ReadMessage(TopicConstant); - break; - } - case 258: { - if (keywordPlan_ == null) { - KeywordPlan = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - } - input.ReadMessage(KeywordPlan); - break; - } - case 266: { - if (keywordPlanCampaign_ == null) { - KeywordPlanCampaign = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - } - input.ReadMessage(KeywordPlanCampaign); - break; - } - case 282: { - if (keywordPlanAdGroup_ == null) { - KeywordPlanAdGroup = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - } - input.ReadMessage(KeywordPlanAdGroup); - break; - } - case 298: { - if (changeStatus_ == null) { - ChangeStatus = new global::Google.Ads.GoogleAds.V12.Resources.ChangeStatus(); - } - input.ReadMessage(ChangeStatus); - break; - } - case 306: { - if (userList_ == null) { - UserList = new global::Google.Ads.GoogleAds.V12.Resources.UserList(); - } - input.ReadMessage(UserList); - break; - } - case 314: { - if (video_ == null) { - Video = new global::Google.Ads.GoogleAds.V12.Resources.Video(); - } - input.ReadMessage(Video); - break; - } - case 322: { - if (genderView_ == null) { - GenderView = new global::Google.Ads.GoogleAds.V12.Resources.GenderView(); - } - input.ReadMessage(GenderView); - break; - } - case 330: { - if (billingSetup_ == null) { - BillingSetup = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup(); - } - input.ReadMessage(BillingSetup); - break; - } - case 338: { - if (accountBudget_ == null) { - AccountBudget = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudget(); - } - input.ReadMessage(AccountBudget); - break; - } - case 346: { - if (accountBudgetProposal_ == null) { - AccountBudgetProposal = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal(); - } - input.ReadMessage(AccountBudgetProposal); - break; - } - case 354: { - if (topicView_ == null) { - TopicView = new global::Google.Ads.GoogleAds.V12.Resources.TopicView(); - } - input.ReadMessage(TopicView); - break; - } - case 362: { - if (parentalStatusView_ == null) { - ParentalStatusView = new global::Google.Ads.GoogleAds.V12.Resources.ParentalStatusView(); - } - input.ReadMessage(ParentalStatusView); - break; - } - case 370: { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - input.ReadMessage(Feed); - break; - } - case 378: { - if (displayKeywordView_ == null) { - DisplayKeywordView = new global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordView(); - } - input.ReadMessage(DisplayKeywordView); - break; - } - case 386: { - if (ageRangeView_ == null) { - AgeRangeView = new global::Google.Ads.GoogleAds.V12.Resources.AgeRangeView(); - } - input.ReadMessage(AgeRangeView); - break; - } - case 394: { - if (campaignDraft_ == null) { - CampaignDraft = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - input.ReadMessage(CampaignDraft); - break; - } - case 402: { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - input.ReadMessage(FeedItem); - break; - } - case 410: { - if (hotelGroupView_ == null) { - HotelGroupView = new global::Google.Ads.GoogleAds.V12.Resources.HotelGroupView(); - } - input.ReadMessage(HotelGroupView); - break; - } - case 418: { - if (label_ == null) { - Label = new global::Google.Ads.GoogleAds.V12.Resources.Label(); - } - input.ReadMessage(Label); - break; - } - case 426: { - if (managedPlacementView_ == null) { - ManagedPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.ManagedPlacementView(); - } - input.ReadMessage(ManagedPlacementView); - break; - } - case 434: { - if (productGroupView_ == null) { - ProductGroupView = new global::Google.Ads.GoogleAds.V12.Resources.ProductGroupView(); - } - input.ReadMessage(ProductGroupView); - break; - } - case 442: { - if (languageConstant_ == null) { - LanguageConstant = new global::Google.Ads.GoogleAds.V12.Resources.LanguageConstant(); - } - input.ReadMessage(LanguageConstant); - break; - } - case 458: { - if (adGroupAudienceView_ == null) { - AdGroupAudienceView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceView(); - } - input.ReadMessage(AdGroupAudienceView); - break; - } - case 466: { - if (feedMapping_ == null) { - FeedMapping = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - } - input.ReadMessage(FeedMapping); - break; - } - case 474: { - if (userInterest_ == null) { - UserInterest = new global::Google.Ads.GoogleAds.V12.Resources.UserInterest(); - } - input.ReadMessage(UserInterest); - break; - } - case 482: { - if (remarketingAction_ == null) { - RemarketingAction = new global::Google.Ads.GoogleAds.V12.Resources.RemarketingAction(); - } - input.ReadMessage(RemarketingAction); - break; - } - case 490: { - if (customerManagerLink_ == null) { - CustomerManagerLink = new global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink(); - } - input.ReadMessage(CustomerManagerLink); - break; - } - case 498: { - if (customerClientLink_ == null) { - CustomerClientLink = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - } - input.ReadMessage(CustomerClientLink); - break; - } - case 506: { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - input.ReadMessage(CampaignFeed); - break; - } - case 514: { - if (customerFeed_ == null) { - CustomerFeed = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - input.ReadMessage(CustomerFeed); - break; - } - case 530: { - if (carrierConstant_ == null) { - CarrierConstant = new global::Google.Ads.GoogleAds.V12.Resources.CarrierConstant(); - } - input.ReadMessage(CarrierConstant); - break; - } - case 538: { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - input.ReadMessage(AdGroupFeed); - break; - } - case 546: { - if (searchTermView_ == null) { - SearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.SearchTermView(); - } - input.ReadMessage(SearchTermView); - break; - } - case 554: { - if (campaignAudienceView_ == null) { - CampaignAudienceView = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceView(); - } - input.ReadMessage(CampaignAudienceView); - break; - } - case 562: { - if (customerClient_ == null) { - CustomerClient = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClient(); - } - input.ReadMessage(CustomerClient); - break; - } - case 570: { - if (hotelPerformanceView_ == null) { - HotelPerformanceView = new global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceView(); - } - input.ReadMessage(HotelPerformanceView); - break; - } - case 682: { - if (extensionFeedItem_ == null) { - ExtensionFeedItem = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - input.ReadMessage(ExtensionFeedItem); - break; - } - case 690: { - if (operatingSystemVersionConstant_ == null) { - OperatingSystemVersionConstant = new global::Google.Ads.GoogleAds.V12.Resources.OperatingSystemVersionConstant(); - } - input.ReadMessage(OperatingSystemVersionConstant); - break; - } - case 698: { - if (mobileAppCategoryConstant_ == null) { - MobileAppCategoryConstant = new global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstant(); - } - input.ReadMessage(MobileAppCategoryConstant); - break; - } - case 706: { - if (customerNegativeCriterion_ == null) { - CustomerNegativeCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - } - input.ReadMessage(CustomerNegativeCriterion); - break; - } - case 714: { - if (adScheduleView_ == null) { - AdScheduleView = new global::Google.Ads.GoogleAds.V12.Resources.AdScheduleView(); - } - input.ReadMessage(AdScheduleView); - break; - } - case 722: { - if (mediaFile_ == null) { - MediaFile = new global::Google.Ads.GoogleAds.V12.Resources.MediaFile(); - } - input.ReadMessage(MediaFile); - break; - } - case 730: { - if (domainCategory_ == null) { - DomainCategory = new global::Google.Ads.GoogleAds.V12.Resources.DomainCategory(); - } - input.ReadMessage(DomainCategory); - break; - } - case 778: { - if (feedPlaceholderView_ == null) { - FeedPlaceholderView = new global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderView(); - } - input.ReadMessage(FeedPlaceholderView); - break; - } - case 786: { - if (mobileDeviceConstant_ == null) { - MobileDeviceConstant = new global::Google.Ads.GoogleAds.V12.Resources.MobileDeviceConstant(); - } - input.ReadMessage(MobileDeviceConstant); - break; - } - case 818: { - if (segments_ == null) { - Segments = new global::Google.Ads.GoogleAds.V12.Common.Segments(); - } - input.ReadMessage(Segments); - break; - } - case 826: { - if (conversionAction_ == null) { - ConversionAction = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - input.ReadMessage(ConversionAction); - break; - } - case 834: { - if (customInterest_ == null) { - CustomInterest = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - } - input.ReadMessage(CustomInterest); - break; - } - case 842: { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - input.ReadMessage(Asset); - break; - } - case 850: { - if (dynamicSearchAdsSearchTermView_ == null) { - DynamicSearchAdsSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermView(); - } - input.ReadMessage(DynamicSearchAdsSearchTermView); - break; - } - case 858: { - if (adGroupSimulation_ == null) { - AdGroupSimulation = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulation(); - } - input.ReadMessage(AdGroupSimulation); - break; - } - case 866: { - if (campaignLabel_ == null) { - CampaignLabel = new global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel(); - } - input.ReadMessage(CampaignLabel); - break; - } - case 874: { - if (productBiddingCategoryConstant_ == null) { - ProductBiddingCategoryConstant = new global::Google.Ads.GoogleAds.V12.Resources.ProductBiddingCategoryConstant(); - } - input.ReadMessage(ProductBiddingCategoryConstant); - break; - } - case 882: { - if (adGroupCriterionSimulation_ == null) { - AdGroupCriterionSimulation = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulation(); - } - input.ReadMessage(AdGroupCriterionSimulation); - break; - } - case 890: { - if (campaignCriterionSimulation_ == null) { - CampaignCriterionSimulation = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulation(); - } - input.ReadMessage(CampaignCriterionSimulation); - break; - } - case 898: { - if (adGroupExtensionSetting_ == null) { - AdGroupExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - input.ReadMessage(AdGroupExtensionSetting); - break; - } - case 906: { - if (campaignExtensionSetting_ == null) { - CampaignExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - input.ReadMessage(CampaignExtensionSetting); - break; - } - case 914: { - if (customerExtensionSetting_ == null) { - CustomerExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - input.ReadMessage(CustomerExtensionSetting); - break; - } - case 922: { - if (adGroupLabel_ == null) { - AdGroupLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel(); - } - input.ReadMessage(AdGroupLabel); - break; - } - case 930: { - if (feedItemTarget_ == null) { - FeedItemTarget = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - } - input.ReadMessage(FeedItemTarget); - break; - } - case 938: { - if (shoppingPerformanceView_ == null) { - ShoppingPerformanceView = new global::Google.Ads.GoogleAds.V12.Resources.ShoppingPerformanceView(); - } - input.ReadMessage(ShoppingPerformanceView); - break; - } - case 946: { - if (detailPlacementView_ == null) { - DetailPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementView(); - } - input.ReadMessage(DetailPlacementView); - break; - } - case 954: { - if (groupPlacementView_ == null) { - GroupPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementView(); - } - input.ReadMessage(GroupPlacementView); - break; - } - case 962: { - if (adGroupAdLabel_ == null) { - AdGroupAdLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel(); - } - input.ReadMessage(AdGroupAdLabel); - break; - } - case 970: { - if (adGroupCriterionLabel_ == null) { - AdGroupCriterionLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel(); - } - input.ReadMessage(AdGroupCriterionLabel); - break; - } - case 978: { - if (clickView_ == null) { - ClickView = new global::Google.Ads.GoogleAds.V12.Resources.ClickView(); - } - input.ReadMessage(ClickView); - break; - } - case 986: { - if (locationView_ == null) { - LocationView = new global::Google.Ads.GoogleAds.V12.Resources.LocationView(); - } - input.ReadMessage(LocationView); - break; - } - case 994: { - if (customerLabel_ == null) { - CustomerLabel = new global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel(); - } - input.ReadMessage(CustomerLabel); - break; - } - case 1002: { - if (geographicView_ == null) { - GeographicView = new global::Google.Ads.GoogleAds.V12.Resources.GeographicView(); - } - input.ReadMessage(GeographicView); - break; - } - case 1010: { - if (landingPageView_ == null) { - LandingPageView = new global::Google.Ads.GoogleAds.V12.Resources.LandingPageView(); - } - input.ReadMessage(LandingPageView); - break; - } - case 1026: { - if (expandedLandingPageView_ == null) { - ExpandedLandingPageView = new global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageView(); - } - input.ReadMessage(ExpandedLandingPageView); - break; - } - case 1034: { - if (paidOrganicSearchTermView_ == null) { - PaidOrganicSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.PaidOrganicSearchTermView(); - } - input.ReadMessage(PaidOrganicSearchTermView); - break; - } - case 1042: { - if (adParameter_ == null) { - AdParameter = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - input.ReadMessage(AdParameter); - break; - } - case 1050: { - if (adGroupAdAssetView_ == null) { - AdGroupAdAssetView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetView(); - } - input.ReadMessage(AdGroupAdAssetView); - break; - } - case 1058: { - if (distanceView_ == null) { - DistanceView = new global::Google.Ads.GoogleAds.V12.Resources.DistanceView(); - } - input.ReadMessage(DistanceView); - break; - } - case 1066: { - if (experiment_ == null) { - Experiment = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - } - input.ReadMessage(Experiment); - break; - } - case 1074: { - if (currencyConstant_ == null) { - CurrencyConstant = new global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstant(); - } - input.ReadMessage(CurrencyConstant); - break; - } - case 1082: { - if (userLocationView_ == null) { - UserLocationView = new global::Google.Ads.GoogleAds.V12.Resources.UserLocationView(); - } - input.ReadMessage(UserLocationView); - break; - } - case 1098: { - if (offlineUserDataJob_ == null) { - OfflineUserDataJob = new global::Google.Ads.GoogleAds.V12.Resources.OfflineUserDataJob(); - } - input.ReadMessage(OfflineUserDataJob); - break; - } - case 1106: { - if (incomeRangeView_ == null) { - IncomeRangeView = new global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeView(); - } - input.ReadMessage(IncomeRangeView); - break; - } - case 1114: { - if (batchJob_ == null) { - BatchJob = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob(); - } - input.ReadMessage(BatchJob); - break; - } - case 1122: { - if (keywordPlanCampaignKeyword_ == null) { - KeywordPlanCampaignKeyword = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - } - input.ReadMessage(KeywordPlanCampaignKeyword); - break; - } - case 1130: { - if (keywordPlanAdGroupKeyword_ == null) { - KeywordPlanAdGroupKeyword = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - } - input.ReadMessage(KeywordPlanAdGroupKeyword); - break; - } - case 1138: { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - input.ReadMessage(CampaignAsset); - break; - } - case 1146: { - if (accountLink_ == null) { - AccountLink = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - } - input.ReadMessage(AccountLink); - break; - } - case 1154: { - if (thirdPartyAppAnalyticsLink_ == null) { - ThirdPartyAppAnalyticsLink = new global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLink(); - } - input.ReadMessage(ThirdPartyAppAnalyticsLink); - break; - } - case 1162: { - if (changeEvent_ == null) { - ChangeEvent = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent(); - } - input.ReadMessage(ChangeEvent); - break; - } - case 1170: { - if (customerUserAccess_ == null) { - CustomerUserAccess = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess(); - } - input.ReadMessage(CustomerUserAccess); - break; - } - case 1178: { - if (customAudience_ == null) { - CustomAudience = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - } - input.ReadMessage(CustomAudience); - break; - } - case 1186: { - if (combinedAudience_ == null) { - CombinedAudience = new global::Google.Ads.GoogleAds.V12.Resources.CombinedAudience(); - } - input.ReadMessage(CombinedAudience); - break; - } - case 1194: { - if (feedItemSet_ == null) { - FeedItemSet = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - } - input.ReadMessage(FeedItemSet); - break; - } - case 1202: { - if (customerUserAccessInvitation_ == null) { - CustomerUserAccessInvitation = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation(); - } - input.ReadMessage(CustomerUserAccessInvitation); - break; - } - case 1210: { - if (feedItemSetLink_ == null) { - FeedItemSetLink = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink(); - } - input.ReadMessage(FeedItemSetLink); - break; - } - case 1218: { - if (callView_ == null) { - CallView = new global::Google.Ads.GoogleAds.V12.Resources.CallView(); - } - input.ReadMessage(CallView); - break; - } - case 1226: { - if (conversionCustomVariable_ == null) { - ConversionCustomVariable = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - input.ReadMessage(ConversionCustomVariable); - break; - } - case 1234: { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - input.ReadMessage(AdGroupAsset); - break; - } - case 1242: { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - input.ReadMessage(CustomerAsset); - break; - } - case 1258: { - if (campaignSimulation_ == null) { - CampaignSimulation = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulation(); - } - input.ReadMessage(CampaignSimulation); - break; - } - case 1266: { - if (biddingStrategySimulation_ == null) { - BiddingStrategySimulation = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulation(); - } - input.ReadMessage(BiddingStrategySimulation); - break; - } - case 1274: { - if (biddingDataExclusion_ == null) { - BiddingDataExclusion = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - input.ReadMessage(BiddingDataExclusion); - break; - } - case 1282: { - if (biddingSeasonalityAdjustment_ == null) { - BiddingSeasonalityAdjustment = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - input.ReadMessage(BiddingSeasonalityAdjustment); - break; - } - case 1290: { - if (lifeEvent_ == null) { - LifeEvent = new global::Google.Ads.GoogleAds.V12.Resources.LifeEvent(); - } - input.ReadMessage(LifeEvent); - break; - } - case 1298: { - if (webpageView_ == null) { - WebpageView = new global::Google.Ads.GoogleAds.V12.Resources.WebpageView(); - } - input.ReadMessage(WebpageView); - break; - } - case 1306: { - if (keywordThemeConstant_ == null) { - KeywordThemeConstant = new global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant(); - } - input.ReadMessage(KeywordThemeConstant); - break; - } - case 1314: { - if (conversionValueRule_ == null) { - ConversionValueRule = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - input.ReadMessage(ConversionValueRule); - break; - } - case 1322: { - if (conversionValueRuleSet_ == null) { - ConversionValueRuleSet = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - input.ReadMessage(ConversionValueRuleSet); - break; - } - case 1330: { - if (detailedDemographic_ == null) { - DetailedDemographic = new global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographic(); - } - input.ReadMessage(DetailedDemographic); - break; - } - case 1338: { - if (smartCampaignSetting_ == null) { - SmartCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSetting(); - } - input.ReadMessage(SmartCampaignSetting); - break; - } - case 1346: { - if (assetFieldTypeView_ == null) { - AssetFieldTypeView = new global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeView(); - } - input.ReadMessage(AssetFieldTypeView); - break; - } - case 1354: { - if (accessibleBiddingStrategy_ == null) { - AccessibleBiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy(); - } - input.ReadMessage(AccessibleBiddingStrategy); - break; - } - case 1362: { - if (smartCampaignSearchTermView_ == null) { - SmartCampaignSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSearchTermView(); - } - input.ReadMessage(SmartCampaignSearchTermView); - break; - } - case 1378: { - if (assetGroup_ == null) { - AssetGroup = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - } - input.ReadMessage(AssetGroup); - break; - } - case 1386: { - if (assetGroupAsset_ == null) { - AssetGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - } - input.ReadMessage(AssetGroupAsset); - break; - } - case 1394: { - if (customerConversionGoal_ == null) { - CustomerConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal(); - } - input.ReadMessage(CustomerConversionGoal); - break; - } - case 1402: { - if (campaignConversionGoal_ == null) { - CampaignConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal(); - } - input.ReadMessage(CampaignConversionGoal); - break; - } - case 1410: { - if (customConversionGoal_ == null) { - CustomConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - input.ReadMessage(CustomConversionGoal); - break; - } - case 1418: { - if (conversionGoalCampaignConfig_ == null) { - ConversionGoalCampaignConfig = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - } - input.ReadMessage(ConversionGoalCampaignConfig); - break; - } - case 1426: { - if (customizerAttribute_ == null) { - CustomizerAttribute = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - } - input.ReadMessage(CustomizerAttribute); - break; - } - case 1434: { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - input.ReadMessage(AssetSet); - break; - } - case 1442: { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - input.ReadMessage(AssetSetAsset); - break; - } - case 1450: { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - input.ReadMessage(CampaignAssetSet); - break; - } - case 1458: { - if (assetGroupListingGroupFilter_ == null) { - AssetGroupListingGroupFilter = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - input.ReadMessage(AssetGroupListingGroupFilter); - break; - } - case 1466: { - if (experimentArm_ == null) { - ExperimentArm = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - input.ReadMessage(ExperimentArm); - break; - } - case 1474: { - if (customerCustomizer_ == null) { - CustomerCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - } - input.ReadMessage(CustomerCustomizer); - break; - } - case 1482: { - if (adGroupCustomizer_ == null) { - AdGroupCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - } - input.ReadMessage(AdGroupCustomizer); - break; - } - case 1490: { - if (campaignCustomizer_ == null) { - CampaignCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - } - input.ReadMessage(CampaignCustomizer); - break; - } - case 1498: { - if (adGroupCriterionCustomizer_ == null) { - AdGroupCriterionCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - } - input.ReadMessage(AdGroupCriterionCustomizer); - break; - } - case 1506: { - if (hotelReconciliation_ == null) { - HotelReconciliation = new global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliation(); - } - input.ReadMessage(HotelReconciliation); - break; - } - case 1514: { - if (assetGroupProductGroupView_ == null) { - AssetGroupProductGroupView = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupView(); - } - input.ReadMessage(AssetGroupProductGroupView); - break; - } - case 1522: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - input.ReadMessage(Audience); - break; - } - case 1530: { - if (assetGroupSignal_ == null) { - AssetGroupSignal = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - } - input.ReadMessage(AssetGroupSignal); - break; - } - case 1538: { - if (leadFormSubmissionData_ == null) { - LeadFormSubmissionData = new global::Google.Ads.GoogleAds.V12.Resources.LeadFormSubmissionData(); - } - input.ReadMessage(LeadFormSubmissionData); - break; - } - case 1546: { - if (adGroupAdAssetCombinationView_ == null) { - AdGroupAdAssetCombinationView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationView(); - } - input.ReadMessage(AdGroupAdAssetCombinationView); - break; - } - case 1562: { - if (customerAssetSet_ == null) { - CustomerAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - } - input.ReadMessage(CustomerAssetSet); - break; - } - case 1570: { - if (adGroupAssetSet_ == null) { - AdGroupAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - } - input.ReadMessage(AdGroupAssetSet); - break; - } - case 1578: { - if (assetSetTypeView_ == null) { - AssetSetTypeView = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeView(); - } - input.ReadMessage(AssetSetTypeView); - break; - } - case 1586: { - if (perStoreView_ == null) { - PerStoreView = new global::Google.Ads.GoogleAds.V12.Resources.PerStoreView(); - } - input.ReadMessage(PerStoreView); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (customer_ == null) { - Customer = new global::Google.Ads.GoogleAds.V12.Resources.Customer(); - } - input.ReadMessage(Customer); - break; - } - case 18: { - if (campaign_ == null) { - Campaign = new global::Google.Ads.GoogleAds.V12.Resources.Campaign(); - } - input.ReadMessage(Campaign); - break; - } - case 26: { - if (adGroup_ == null) { - AdGroup = new global::Google.Ads.GoogleAds.V12.Resources.AdGroup(); - } - input.ReadMessage(AdGroup); - break; - } - case 34: { - if (metrics_ == null) { - Metrics = new global::Google.Ads.GoogleAds.V12.Common.Metrics(); - } - input.ReadMessage(Metrics); - break; - } - case 130: { - if (adGroupAd_ == null) { - AdGroupAd = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAd(); - } - input.ReadMessage(AdGroupAd); - break; - } - case 138: { - if (adGroupCriterion_ == null) { - AdGroupCriterion = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterion(); - } - input.ReadMessage(AdGroupCriterion); - break; - } - case 146: { - if (biddingStrategy_ == null) { - BiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategy(); - } - input.ReadMessage(BiddingStrategy); - break; - } - case 154: { - if (campaignBudget_ == null) { - CampaignBudget = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBudget(); - } - input.ReadMessage(CampaignBudget); - break; - } - case 162: { - if (campaignCriterion_ == null) { - CampaignCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterion(); - } - input.ReadMessage(CampaignCriterion); - break; - } - case 170: { - if (keywordView_ == null) { - KeywordView = new global::Google.Ads.GoogleAds.V12.Resources.KeywordView(); - } - input.ReadMessage(KeywordView); - break; - } - case 178: { - if (recommendation_ == null) { - Recommendation = new global::Google.Ads.GoogleAds.V12.Resources.Recommendation(); - } - input.ReadMessage(Recommendation); - break; - } - case 186: { - if (geoTargetConstant_ == null) { - GeoTargetConstant = new global::Google.Ads.GoogleAds.V12.Resources.GeoTargetConstant(); - } - input.ReadMessage(GeoTargetConstant); - break; - } - case 194: { - if (adGroupBidModifier_ == null) { - AdGroupBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupBidModifier(); - } - input.ReadMessage(AdGroupBidModifier); - break; - } - case 202: { - if (campaignGroup_ == null) { - CampaignGroup = new global::Google.Ads.GoogleAds.V12.Resources.CampaignGroup(); - } - input.ReadMessage(CampaignGroup); - break; - } - case 210: { - if (campaignBidModifier_ == null) { - CampaignBidModifier = new global::Google.Ads.GoogleAds.V12.Resources.CampaignBidModifier(); - } - input.ReadMessage(CampaignBidModifier); - break; - } - case 218: { - if (sharedSet_ == null) { - SharedSet = new global::Google.Ads.GoogleAds.V12.Resources.SharedSet(); - } - input.ReadMessage(SharedSet); - break; - } - case 234: { - if (sharedCriterion_ == null) { - SharedCriterion = new global::Google.Ads.GoogleAds.V12.Resources.SharedCriterion(); - } - input.ReadMessage(SharedCriterion); - break; - } - case 242: { - if (campaignSharedSet_ == null) { - CampaignSharedSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSharedSet(); - } - input.ReadMessage(CampaignSharedSet); - break; - } - case 250: { - if (topicConstant_ == null) { - TopicConstant = new global::Google.Ads.GoogleAds.V12.Resources.TopicConstant(); - } - input.ReadMessage(TopicConstant); - break; - } - case 258: { - if (keywordPlan_ == null) { - KeywordPlan = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - } - input.ReadMessage(KeywordPlan); - break; - } - case 266: { - if (keywordPlanCampaign_ == null) { - KeywordPlanCampaign = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - } - input.ReadMessage(KeywordPlanCampaign); - break; - } - case 282: { - if (keywordPlanAdGroup_ == null) { - KeywordPlanAdGroup = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - } - input.ReadMessage(KeywordPlanAdGroup); - break; - } - case 298: { - if (changeStatus_ == null) { - ChangeStatus = new global::Google.Ads.GoogleAds.V12.Resources.ChangeStatus(); - } - input.ReadMessage(ChangeStatus); - break; - } - case 306: { - if (userList_ == null) { - UserList = new global::Google.Ads.GoogleAds.V12.Resources.UserList(); - } - input.ReadMessage(UserList); - break; - } - case 314: { - if (video_ == null) { - Video = new global::Google.Ads.GoogleAds.V12.Resources.Video(); - } - input.ReadMessage(Video); - break; - } - case 322: { - if (genderView_ == null) { - GenderView = new global::Google.Ads.GoogleAds.V12.Resources.GenderView(); - } - input.ReadMessage(GenderView); - break; - } - case 330: { - if (billingSetup_ == null) { - BillingSetup = new global::Google.Ads.GoogleAds.V12.Resources.BillingSetup(); - } - input.ReadMessage(BillingSetup); - break; - } - case 338: { - if (accountBudget_ == null) { - AccountBudget = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudget(); - } - input.ReadMessage(AccountBudget); - break; - } - case 346: { - if (accountBudgetProposal_ == null) { - AccountBudgetProposal = new global::Google.Ads.GoogleAds.V12.Resources.AccountBudgetProposal(); - } - input.ReadMessage(AccountBudgetProposal); - break; - } - case 354: { - if (topicView_ == null) { - TopicView = new global::Google.Ads.GoogleAds.V12.Resources.TopicView(); - } - input.ReadMessage(TopicView); - break; - } - case 362: { - if (parentalStatusView_ == null) { - ParentalStatusView = new global::Google.Ads.GoogleAds.V12.Resources.ParentalStatusView(); - } - input.ReadMessage(ParentalStatusView); - break; - } - case 370: { - if (feed_ == null) { - Feed = new global::Google.Ads.GoogleAds.V12.Resources.Feed(); - } - input.ReadMessage(Feed); - break; - } - case 378: { - if (displayKeywordView_ == null) { - DisplayKeywordView = new global::Google.Ads.GoogleAds.V12.Resources.DisplayKeywordView(); - } - input.ReadMessage(DisplayKeywordView); - break; - } - case 386: { - if (ageRangeView_ == null) { - AgeRangeView = new global::Google.Ads.GoogleAds.V12.Resources.AgeRangeView(); - } - input.ReadMessage(AgeRangeView); - break; - } - case 394: { - if (campaignDraft_ == null) { - CampaignDraft = new global::Google.Ads.GoogleAds.V12.Resources.CampaignDraft(); - } - input.ReadMessage(CampaignDraft); - break; - } - case 402: { - if (feedItem_ == null) { - FeedItem = new global::Google.Ads.GoogleAds.V12.Resources.FeedItem(); - } - input.ReadMessage(FeedItem); - break; - } - case 410: { - if (hotelGroupView_ == null) { - HotelGroupView = new global::Google.Ads.GoogleAds.V12.Resources.HotelGroupView(); - } - input.ReadMessage(HotelGroupView); - break; - } - case 418: { - if (label_ == null) { - Label = new global::Google.Ads.GoogleAds.V12.Resources.Label(); - } - input.ReadMessage(Label); - break; - } - case 426: { - if (managedPlacementView_ == null) { - ManagedPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.ManagedPlacementView(); - } - input.ReadMessage(ManagedPlacementView); - break; - } - case 434: { - if (productGroupView_ == null) { - ProductGroupView = new global::Google.Ads.GoogleAds.V12.Resources.ProductGroupView(); - } - input.ReadMessage(ProductGroupView); - break; - } - case 442: { - if (languageConstant_ == null) { - LanguageConstant = new global::Google.Ads.GoogleAds.V12.Resources.LanguageConstant(); - } - input.ReadMessage(LanguageConstant); - break; - } - case 458: { - if (adGroupAudienceView_ == null) { - AdGroupAudienceView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAudienceView(); - } - input.ReadMessage(AdGroupAudienceView); - break; - } - case 466: { - if (feedMapping_ == null) { - FeedMapping = new global::Google.Ads.GoogleAds.V12.Resources.FeedMapping(); - } - input.ReadMessage(FeedMapping); - break; - } - case 474: { - if (userInterest_ == null) { - UserInterest = new global::Google.Ads.GoogleAds.V12.Resources.UserInterest(); - } - input.ReadMessage(UserInterest); - break; - } - case 482: { - if (remarketingAction_ == null) { - RemarketingAction = new global::Google.Ads.GoogleAds.V12.Resources.RemarketingAction(); - } - input.ReadMessage(RemarketingAction); - break; - } - case 490: { - if (customerManagerLink_ == null) { - CustomerManagerLink = new global::Google.Ads.GoogleAds.V12.Resources.CustomerManagerLink(); - } - input.ReadMessage(CustomerManagerLink); - break; - } - case 498: { - if (customerClientLink_ == null) { - CustomerClientLink = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClientLink(); - } - input.ReadMessage(CustomerClientLink); - break; - } - case 506: { - if (campaignFeed_ == null) { - CampaignFeed = new global::Google.Ads.GoogleAds.V12.Resources.CampaignFeed(); - } - input.ReadMessage(CampaignFeed); - break; - } - case 514: { - if (customerFeed_ == null) { - CustomerFeed = new global::Google.Ads.GoogleAds.V12.Resources.CustomerFeed(); - } - input.ReadMessage(CustomerFeed); - break; - } - case 530: { - if (carrierConstant_ == null) { - CarrierConstant = new global::Google.Ads.GoogleAds.V12.Resources.CarrierConstant(); - } - input.ReadMessage(CarrierConstant); - break; - } - case 538: { - if (adGroupFeed_ == null) { - AdGroupFeed = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupFeed(); - } - input.ReadMessage(AdGroupFeed); - break; - } - case 546: { - if (searchTermView_ == null) { - SearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.SearchTermView(); - } - input.ReadMessage(SearchTermView); - break; - } - case 554: { - if (campaignAudienceView_ == null) { - CampaignAudienceView = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAudienceView(); - } - input.ReadMessage(CampaignAudienceView); - break; - } - case 562: { - if (customerClient_ == null) { - CustomerClient = new global::Google.Ads.GoogleAds.V12.Resources.CustomerClient(); - } - input.ReadMessage(CustomerClient); - break; - } - case 570: { - if (hotelPerformanceView_ == null) { - HotelPerformanceView = new global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceView(); - } - input.ReadMessage(HotelPerformanceView); - break; - } - case 682: { - if (extensionFeedItem_ == null) { - ExtensionFeedItem = new global::Google.Ads.GoogleAds.V12.Resources.ExtensionFeedItem(); - } - input.ReadMessage(ExtensionFeedItem); - break; - } - case 690: { - if (operatingSystemVersionConstant_ == null) { - OperatingSystemVersionConstant = new global::Google.Ads.GoogleAds.V12.Resources.OperatingSystemVersionConstant(); - } - input.ReadMessage(OperatingSystemVersionConstant); - break; - } - case 698: { - if (mobileAppCategoryConstant_ == null) { - MobileAppCategoryConstant = new global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstant(); - } - input.ReadMessage(MobileAppCategoryConstant); - break; - } - case 706: { - if (customerNegativeCriterion_ == null) { - CustomerNegativeCriterion = new global::Google.Ads.GoogleAds.V12.Resources.CustomerNegativeCriterion(); - } - input.ReadMessage(CustomerNegativeCriterion); - break; - } - case 714: { - if (adScheduleView_ == null) { - AdScheduleView = new global::Google.Ads.GoogleAds.V12.Resources.AdScheduleView(); - } - input.ReadMessage(AdScheduleView); - break; - } - case 722: { - if (mediaFile_ == null) { - MediaFile = new global::Google.Ads.GoogleAds.V12.Resources.MediaFile(); - } - input.ReadMessage(MediaFile); - break; - } - case 730: { - if (domainCategory_ == null) { - DomainCategory = new global::Google.Ads.GoogleAds.V12.Resources.DomainCategory(); - } - input.ReadMessage(DomainCategory); - break; - } - case 778: { - if (feedPlaceholderView_ == null) { - FeedPlaceholderView = new global::Google.Ads.GoogleAds.V12.Resources.FeedPlaceholderView(); - } - input.ReadMessage(FeedPlaceholderView); - break; - } - case 786: { - if (mobileDeviceConstant_ == null) { - MobileDeviceConstant = new global::Google.Ads.GoogleAds.V12.Resources.MobileDeviceConstant(); - } - input.ReadMessage(MobileDeviceConstant); - break; - } - case 818: { - if (segments_ == null) { - Segments = new global::Google.Ads.GoogleAds.V12.Common.Segments(); - } - input.ReadMessage(Segments); - break; - } - case 826: { - if (conversionAction_ == null) { - ConversionAction = new global::Google.Ads.GoogleAds.V12.Resources.ConversionAction(); - } - input.ReadMessage(ConversionAction); - break; - } - case 834: { - if (customInterest_ == null) { - CustomInterest = new global::Google.Ads.GoogleAds.V12.Resources.CustomInterest(); - } - input.ReadMessage(CustomInterest); - break; - } - case 842: { - if (asset_ == null) { - Asset = new global::Google.Ads.GoogleAds.V12.Resources.Asset(); - } - input.ReadMessage(Asset); - break; - } - case 850: { - if (dynamicSearchAdsSearchTermView_ == null) { - DynamicSearchAdsSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.DynamicSearchAdsSearchTermView(); - } - input.ReadMessage(DynamicSearchAdsSearchTermView); - break; - } - case 858: { - if (adGroupSimulation_ == null) { - AdGroupSimulation = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupSimulation(); - } - input.ReadMessage(AdGroupSimulation); - break; - } - case 866: { - if (campaignLabel_ == null) { - CampaignLabel = new global::Google.Ads.GoogleAds.V12.Resources.CampaignLabel(); - } - input.ReadMessage(CampaignLabel); - break; - } - case 874: { - if (productBiddingCategoryConstant_ == null) { - ProductBiddingCategoryConstant = new global::Google.Ads.GoogleAds.V12.Resources.ProductBiddingCategoryConstant(); - } - input.ReadMessage(ProductBiddingCategoryConstant); - break; - } - case 882: { - if (adGroupCriterionSimulation_ == null) { - AdGroupCriterionSimulation = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionSimulation(); - } - input.ReadMessage(AdGroupCriterionSimulation); - break; - } - case 890: { - if (campaignCriterionSimulation_ == null) { - CampaignCriterionSimulation = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCriterionSimulation(); - } - input.ReadMessage(CampaignCriterionSimulation); - break; - } - case 898: { - if (adGroupExtensionSetting_ == null) { - AdGroupExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupExtensionSetting(); - } - input.ReadMessage(AdGroupExtensionSetting); - break; - } - case 906: { - if (campaignExtensionSetting_ == null) { - CampaignExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CampaignExtensionSetting(); - } - input.ReadMessage(CampaignExtensionSetting); - break; - } - case 914: { - if (customerExtensionSetting_ == null) { - CustomerExtensionSetting = new global::Google.Ads.GoogleAds.V12.Resources.CustomerExtensionSetting(); - } - input.ReadMessage(CustomerExtensionSetting); - break; - } - case 922: { - if (adGroupLabel_ == null) { - AdGroupLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupLabel(); - } - input.ReadMessage(AdGroupLabel); - break; - } - case 930: { - if (feedItemTarget_ == null) { - FeedItemTarget = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemTarget(); - } - input.ReadMessage(FeedItemTarget); - break; - } - case 938: { - if (shoppingPerformanceView_ == null) { - ShoppingPerformanceView = new global::Google.Ads.GoogleAds.V12.Resources.ShoppingPerformanceView(); - } - input.ReadMessage(ShoppingPerformanceView); - break; - } - case 946: { - if (detailPlacementView_ == null) { - DetailPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.DetailPlacementView(); - } - input.ReadMessage(DetailPlacementView); - break; - } - case 954: { - if (groupPlacementView_ == null) { - GroupPlacementView = new global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementView(); - } - input.ReadMessage(GroupPlacementView); - break; - } - case 962: { - if (adGroupAdLabel_ == null) { - AdGroupAdLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdLabel(); - } - input.ReadMessage(AdGroupAdLabel); - break; - } - case 970: { - if (adGroupCriterionLabel_ == null) { - AdGroupCriterionLabel = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionLabel(); - } - input.ReadMessage(AdGroupCriterionLabel); - break; - } - case 978: { - if (clickView_ == null) { - ClickView = new global::Google.Ads.GoogleAds.V12.Resources.ClickView(); - } - input.ReadMessage(ClickView); - break; - } - case 986: { - if (locationView_ == null) { - LocationView = new global::Google.Ads.GoogleAds.V12.Resources.LocationView(); - } - input.ReadMessage(LocationView); - break; - } - case 994: { - if (customerLabel_ == null) { - CustomerLabel = new global::Google.Ads.GoogleAds.V12.Resources.CustomerLabel(); - } - input.ReadMessage(CustomerLabel); - break; - } - case 1002: { - if (geographicView_ == null) { - GeographicView = new global::Google.Ads.GoogleAds.V12.Resources.GeographicView(); - } - input.ReadMessage(GeographicView); - break; - } - case 1010: { - if (landingPageView_ == null) { - LandingPageView = new global::Google.Ads.GoogleAds.V12.Resources.LandingPageView(); - } - input.ReadMessage(LandingPageView); - break; - } - case 1026: { - if (expandedLandingPageView_ == null) { - ExpandedLandingPageView = new global::Google.Ads.GoogleAds.V12.Resources.ExpandedLandingPageView(); - } - input.ReadMessage(ExpandedLandingPageView); - break; - } - case 1034: { - if (paidOrganicSearchTermView_ == null) { - PaidOrganicSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.PaidOrganicSearchTermView(); - } - input.ReadMessage(PaidOrganicSearchTermView); - break; - } - case 1042: { - if (adParameter_ == null) { - AdParameter = new global::Google.Ads.GoogleAds.V12.Resources.AdParameter(); - } - input.ReadMessage(AdParameter); - break; - } - case 1050: { - if (adGroupAdAssetView_ == null) { - AdGroupAdAssetView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetView(); - } - input.ReadMessage(AdGroupAdAssetView); - break; - } - case 1058: { - if (distanceView_ == null) { - DistanceView = new global::Google.Ads.GoogleAds.V12.Resources.DistanceView(); - } - input.ReadMessage(DistanceView); - break; - } - case 1066: { - if (experiment_ == null) { - Experiment = new global::Google.Ads.GoogleAds.V12.Resources.Experiment(); - } - input.ReadMessage(Experiment); - break; - } - case 1074: { - if (currencyConstant_ == null) { - CurrencyConstant = new global::Google.Ads.GoogleAds.V12.Resources.CurrencyConstant(); - } - input.ReadMessage(CurrencyConstant); - break; - } - case 1082: { - if (userLocationView_ == null) { - UserLocationView = new global::Google.Ads.GoogleAds.V12.Resources.UserLocationView(); - } - input.ReadMessage(UserLocationView); - break; - } - case 1098: { - if (offlineUserDataJob_ == null) { - OfflineUserDataJob = new global::Google.Ads.GoogleAds.V12.Resources.OfflineUserDataJob(); - } - input.ReadMessage(OfflineUserDataJob); - break; - } - case 1106: { - if (incomeRangeView_ == null) { - IncomeRangeView = new global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeView(); - } - input.ReadMessage(IncomeRangeView); - break; - } - case 1114: { - if (batchJob_ == null) { - BatchJob = new global::Google.Ads.GoogleAds.V12.Resources.BatchJob(); - } - input.ReadMessage(BatchJob); - break; - } - case 1122: { - if (keywordPlanCampaignKeyword_ == null) { - KeywordPlanCampaignKeyword = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - } - input.ReadMessage(KeywordPlanCampaignKeyword); - break; - } - case 1130: { - if (keywordPlanAdGroupKeyword_ == null) { - KeywordPlanAdGroupKeyword = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - } - input.ReadMessage(KeywordPlanAdGroupKeyword); - break; - } - case 1138: { - if (campaignAsset_ == null) { - CampaignAsset = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAsset(); - } - input.ReadMessage(CampaignAsset); - break; - } - case 1146: { - if (accountLink_ == null) { - AccountLink = new global::Google.Ads.GoogleAds.V12.Resources.AccountLink(); - } - input.ReadMessage(AccountLink); - break; - } - case 1154: { - if (thirdPartyAppAnalyticsLink_ == null) { - ThirdPartyAppAnalyticsLink = new global::Google.Ads.GoogleAds.V12.Resources.ThirdPartyAppAnalyticsLink(); - } - input.ReadMessage(ThirdPartyAppAnalyticsLink); - break; - } - case 1162: { - if (changeEvent_ == null) { - ChangeEvent = new global::Google.Ads.GoogleAds.V12.Resources.ChangeEvent(); - } - input.ReadMessage(ChangeEvent); - break; - } - case 1170: { - if (customerUserAccess_ == null) { - CustomerUserAccess = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccess(); - } - input.ReadMessage(CustomerUserAccess); - break; - } - case 1178: { - if (customAudience_ == null) { - CustomAudience = new global::Google.Ads.GoogleAds.V12.Resources.CustomAudience(); - } - input.ReadMessage(CustomAudience); - break; - } - case 1186: { - if (combinedAudience_ == null) { - CombinedAudience = new global::Google.Ads.GoogleAds.V12.Resources.CombinedAudience(); - } - input.ReadMessage(CombinedAudience); - break; - } - case 1194: { - if (feedItemSet_ == null) { - FeedItemSet = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSet(); - } - input.ReadMessage(FeedItemSet); - break; - } - case 1202: { - if (customerUserAccessInvitation_ == null) { - CustomerUserAccessInvitation = new global::Google.Ads.GoogleAds.V12.Resources.CustomerUserAccessInvitation(); - } - input.ReadMessage(CustomerUserAccessInvitation); - break; - } - case 1210: { - if (feedItemSetLink_ == null) { - FeedItemSetLink = new global::Google.Ads.GoogleAds.V12.Resources.FeedItemSetLink(); - } - input.ReadMessage(FeedItemSetLink); - break; - } - case 1218: { - if (callView_ == null) { - CallView = new global::Google.Ads.GoogleAds.V12.Resources.CallView(); - } - input.ReadMessage(CallView); - break; - } - case 1226: { - if (conversionCustomVariable_ == null) { - ConversionCustomVariable = new global::Google.Ads.GoogleAds.V12.Resources.ConversionCustomVariable(); - } - input.ReadMessage(ConversionCustomVariable); - break; - } - case 1234: { - if (adGroupAsset_ == null) { - AdGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAsset(); - } - input.ReadMessage(AdGroupAsset); - break; - } - case 1242: { - if (customerAsset_ == null) { - CustomerAsset = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAsset(); - } - input.ReadMessage(CustomerAsset); - break; - } - case 1258: { - if (campaignSimulation_ == null) { - CampaignSimulation = new global::Google.Ads.GoogleAds.V12.Resources.CampaignSimulation(); - } - input.ReadMessage(CampaignSimulation); - break; - } - case 1266: { - if (biddingStrategySimulation_ == null) { - BiddingStrategySimulation = new global::Google.Ads.GoogleAds.V12.Resources.BiddingStrategySimulation(); - } - input.ReadMessage(BiddingStrategySimulation); - break; - } - case 1274: { - if (biddingDataExclusion_ == null) { - BiddingDataExclusion = new global::Google.Ads.GoogleAds.V12.Resources.BiddingDataExclusion(); - } - input.ReadMessage(BiddingDataExclusion); - break; - } - case 1282: { - if (biddingSeasonalityAdjustment_ == null) { - BiddingSeasonalityAdjustment = new global::Google.Ads.GoogleAds.V12.Resources.BiddingSeasonalityAdjustment(); - } - input.ReadMessage(BiddingSeasonalityAdjustment); - break; - } - case 1290: { - if (lifeEvent_ == null) { - LifeEvent = new global::Google.Ads.GoogleAds.V12.Resources.LifeEvent(); - } - input.ReadMessage(LifeEvent); - break; - } - case 1298: { - if (webpageView_ == null) { - WebpageView = new global::Google.Ads.GoogleAds.V12.Resources.WebpageView(); - } - input.ReadMessage(WebpageView); - break; - } - case 1306: { - if (keywordThemeConstant_ == null) { - KeywordThemeConstant = new global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant(); - } - input.ReadMessage(KeywordThemeConstant); - break; - } - case 1314: { - if (conversionValueRule_ == null) { - ConversionValueRule = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRule(); - } - input.ReadMessage(ConversionValueRule); - break; - } - case 1322: { - if (conversionValueRuleSet_ == null) { - ConversionValueRuleSet = new global::Google.Ads.GoogleAds.V12.Resources.ConversionValueRuleSet(); - } - input.ReadMessage(ConversionValueRuleSet); - break; - } - case 1330: { - if (detailedDemographic_ == null) { - DetailedDemographic = new global::Google.Ads.GoogleAds.V12.Resources.DetailedDemographic(); - } - input.ReadMessage(DetailedDemographic); - break; - } - case 1338: { - if (smartCampaignSetting_ == null) { - SmartCampaignSetting = new global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSetting(); - } - input.ReadMessage(SmartCampaignSetting); - break; - } - case 1346: { - if (assetFieldTypeView_ == null) { - AssetFieldTypeView = new global::Google.Ads.GoogleAds.V12.Resources.AssetFieldTypeView(); - } - input.ReadMessage(AssetFieldTypeView); - break; - } - case 1354: { - if (accessibleBiddingStrategy_ == null) { - AccessibleBiddingStrategy = new global::Google.Ads.GoogleAds.V12.Resources.AccessibleBiddingStrategy(); - } - input.ReadMessage(AccessibleBiddingStrategy); - break; - } - case 1362: { - if (smartCampaignSearchTermView_ == null) { - SmartCampaignSearchTermView = new global::Google.Ads.GoogleAds.V12.Resources.SmartCampaignSearchTermView(); - } - input.ReadMessage(SmartCampaignSearchTermView); - break; - } - case 1378: { - if (assetGroup_ == null) { - AssetGroup = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroup(); - } - input.ReadMessage(AssetGroup); - break; - } - case 1386: { - if (assetGroupAsset_ == null) { - AssetGroupAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupAsset(); - } - input.ReadMessage(AssetGroupAsset); - break; - } - case 1394: { - if (customerConversionGoal_ == null) { - CustomerConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomerConversionGoal(); - } - input.ReadMessage(CustomerConversionGoal); - break; - } - case 1402: { - if (campaignConversionGoal_ == null) { - CampaignConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CampaignConversionGoal(); - } - input.ReadMessage(CampaignConversionGoal); - break; - } - case 1410: { - if (customConversionGoal_ == null) { - CustomConversionGoal = new global::Google.Ads.GoogleAds.V12.Resources.CustomConversionGoal(); - } - input.ReadMessage(CustomConversionGoal); - break; - } - case 1418: { - if (conversionGoalCampaignConfig_ == null) { - ConversionGoalCampaignConfig = new global::Google.Ads.GoogleAds.V12.Resources.ConversionGoalCampaignConfig(); - } - input.ReadMessage(ConversionGoalCampaignConfig); - break; - } - case 1426: { - if (customizerAttribute_ == null) { - CustomizerAttribute = new global::Google.Ads.GoogleAds.V12.Resources.CustomizerAttribute(); - } - input.ReadMessage(CustomizerAttribute); - break; - } - case 1434: { - if (assetSet_ == null) { - AssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AssetSet(); - } - input.ReadMessage(AssetSet); - break; - } - case 1442: { - if (assetSetAsset_ == null) { - AssetSetAsset = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetAsset(); - } - input.ReadMessage(AssetSetAsset); - break; - } - case 1450: { - if (campaignAssetSet_ == null) { - CampaignAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CampaignAssetSet(); - } - input.ReadMessage(CampaignAssetSet); - break; - } - case 1458: { - if (assetGroupListingGroupFilter_ == null) { - AssetGroupListingGroupFilter = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupListingGroupFilter(); - } - input.ReadMessage(AssetGroupListingGroupFilter); - break; - } - case 1466: { - if (experimentArm_ == null) { - ExperimentArm = new global::Google.Ads.GoogleAds.V12.Resources.ExperimentArm(); - } - input.ReadMessage(ExperimentArm); - break; - } - case 1474: { - if (customerCustomizer_ == null) { - CustomerCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CustomerCustomizer(); - } - input.ReadMessage(CustomerCustomizer); - break; - } - case 1482: { - if (adGroupCustomizer_ == null) { - AdGroupCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCustomizer(); - } - input.ReadMessage(AdGroupCustomizer); - break; - } - case 1490: { - if (campaignCustomizer_ == null) { - CampaignCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.CampaignCustomizer(); - } - input.ReadMessage(CampaignCustomizer); - break; - } - case 1498: { - if (adGroupCriterionCustomizer_ == null) { - AdGroupCriterionCustomizer = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupCriterionCustomizer(); - } - input.ReadMessage(AdGroupCriterionCustomizer); - break; - } - case 1506: { - if (hotelReconciliation_ == null) { - HotelReconciliation = new global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliation(); - } - input.ReadMessage(HotelReconciliation); - break; - } - case 1514: { - if (assetGroupProductGroupView_ == null) { - AssetGroupProductGroupView = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupProductGroupView(); - } - input.ReadMessage(AssetGroupProductGroupView); - break; - } - case 1522: { - if (audience_ == null) { - Audience = new global::Google.Ads.GoogleAds.V12.Resources.Audience(); - } - input.ReadMessage(Audience); - break; - } - case 1530: { - if (assetGroupSignal_ == null) { - AssetGroupSignal = new global::Google.Ads.GoogleAds.V12.Resources.AssetGroupSignal(); - } - input.ReadMessage(AssetGroupSignal); - break; - } - case 1538: { - if (leadFormSubmissionData_ == null) { - LeadFormSubmissionData = new global::Google.Ads.GoogleAds.V12.Resources.LeadFormSubmissionData(); - } - input.ReadMessage(LeadFormSubmissionData); - break; - } - case 1546: { - if (adGroupAdAssetCombinationView_ == null) { - AdGroupAdAssetCombinationView = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAdAssetCombinationView(); - } - input.ReadMessage(AdGroupAdAssetCombinationView); - break; - } - case 1562: { - if (customerAssetSet_ == null) { - CustomerAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.CustomerAssetSet(); - } - input.ReadMessage(CustomerAssetSet); - break; - } - case 1570: { - if (adGroupAssetSet_ == null) { - AdGroupAssetSet = new global::Google.Ads.GoogleAds.V12.Resources.AdGroupAssetSet(); - } - input.ReadMessage(AdGroupAssetSet); - break; - } - case 1578: { - if (assetSetTypeView_ == null) { - AssetSetTypeView = new global::Google.Ads.GoogleAds.V12.Resources.AssetSetTypeView(); - } - input.ReadMessage(AssetSetTypeView); - break; - } - case 1586: { - if (perStoreView_ == null) { - PerStoreView = new global::Google.Ads.GoogleAds.V12.Resources.PerStoreView(); - } - input.ReadMessage(PerStoreView); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [GoogleAdsService.Mutate][google.ads.googleads.v12.services.GoogleAdsService.Mutate]. - /// - public sealed partial class MutateGoogleAdsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateGoogleAdsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateGoogleAdsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateGoogleAdsRequest(MutateGoogleAdsRequest other) : this() { - customerId_ = other.customerId_; - mutateOperations_ = other.mutateOperations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - responseContentType_ = other.responseContentType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateGoogleAdsRequest Clone() { - return new MutateGoogleAdsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose resources are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "mutate_operations" field. - public const int MutateOperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_mutateOperations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateOperation.Parser); - private readonly pbc::RepeatedField mutateOperations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual resources. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MutateOperations { - get { return mutateOperations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - /// Field number for the "response_content_type" field. - public const int ResponseContentTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType responseContentType_ = global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified; - /// - /// The response content type setting. Determines whether the mutable resource - /// or just the resource name should be returned post mutation. The mutable - /// resource will only be returned if the resource has the appropriate response - /// field. For example, MutateCampaignResult.campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType ResponseContentType { - get { return responseContentType_; } - set { - responseContentType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateGoogleAdsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateGoogleAdsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!mutateOperations_.Equals(other.mutateOperations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - if (ResponseContentType != other.ResponseContentType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= mutateOperations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) hash ^= ResponseContentType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - mutateOperations_.WriteTo(output, _repeated_mutateOperations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - mutateOperations_.WriteTo(ref output, _repeated_mutateOperations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) ResponseContentType); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += mutateOperations_.CalculateSize(_repeated_mutateOperations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResponseContentType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateGoogleAdsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - mutateOperations_.Add(other.mutateOperations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - if (other.ResponseContentType != global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType.Unspecified) { - ResponseContentType = other.ResponseContentType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - mutateOperations_.AddEntriesFrom(input, _repeated_mutateOperations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - mutateOperations_.AddEntriesFrom(ref input, _repeated_mutateOperations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - case 40: { - ResponseContentType = (global::Google.Ads.GoogleAds.V12.Enums.ResponseContentTypeEnum.Types.ResponseContentType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [GoogleAdsService.Mutate][google.ads.googleads.v12.services.GoogleAdsService.Mutate]. - /// - public sealed partial class MutateGoogleAdsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateGoogleAdsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateGoogleAdsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateGoogleAdsResponse(MutateGoogleAdsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - mutateOperationResponses_ = other.mutateOperationResponses_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateGoogleAdsResponse Clone() { - return new MutateGoogleAdsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "mutate_operation_responses" field. - public const int MutateOperationResponsesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_mutateOperationResponses_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.MutateOperationResponse.Parser); - private readonly pbc::RepeatedField mutateOperationResponses_ = new pbc::RepeatedField(); - /// - /// All responses for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MutateOperationResponses { - get { return mutateOperationResponses_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateGoogleAdsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateGoogleAdsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!mutateOperationResponses_.Equals(other.mutateOperationResponses_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= mutateOperationResponses_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - mutateOperationResponses_.WriteTo(output, _repeated_mutateOperationResponses_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - mutateOperationResponses_.WriteTo(ref output, _repeated_mutateOperationResponses_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += mutateOperationResponses_.CalculateSize(_repeated_mutateOperationResponses_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateGoogleAdsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - mutateOperationResponses_.Add(other.mutateOperationResponses_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - mutateOperationResponses_.AddEntriesFrom(input, _repeated_mutateOperationResponses_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - mutateOperationResponses_.AddEntriesFrom(ref input, _repeated_mutateOperationResponses_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a resource. - /// - public sealed partial class MutateOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateOperation(MutateOperation other) : this() { - switch (other.OperationCase) { - case OperationOneofCase.AdGroupAdLabelOperation: - AdGroupAdLabelOperation = other.AdGroupAdLabelOperation.Clone(); - break; - case OperationOneofCase.AdGroupAdOperation: - AdGroupAdOperation = other.AdGroupAdOperation.Clone(); - break; - case OperationOneofCase.AdGroupAssetOperation: - AdGroupAssetOperation = other.AdGroupAssetOperation.Clone(); - break; - case OperationOneofCase.AdGroupBidModifierOperation: - AdGroupBidModifierOperation = other.AdGroupBidModifierOperation.Clone(); - break; - case OperationOneofCase.AdGroupCriterionCustomizerOperation: - AdGroupCriterionCustomizerOperation = other.AdGroupCriterionCustomizerOperation.Clone(); - break; - case OperationOneofCase.AdGroupCriterionLabelOperation: - AdGroupCriterionLabelOperation = other.AdGroupCriterionLabelOperation.Clone(); - break; - case OperationOneofCase.AdGroupCriterionOperation: - AdGroupCriterionOperation = other.AdGroupCriterionOperation.Clone(); - break; - case OperationOneofCase.AdGroupCustomizerOperation: - AdGroupCustomizerOperation = other.AdGroupCustomizerOperation.Clone(); - break; - case OperationOneofCase.AdGroupExtensionSettingOperation: - AdGroupExtensionSettingOperation = other.AdGroupExtensionSettingOperation.Clone(); - break; - case OperationOneofCase.AdGroupFeedOperation: - AdGroupFeedOperation = other.AdGroupFeedOperation.Clone(); - break; - case OperationOneofCase.AdGroupLabelOperation: - AdGroupLabelOperation = other.AdGroupLabelOperation.Clone(); - break; - case OperationOneofCase.AdGroupOperation: - AdGroupOperation = other.AdGroupOperation.Clone(); - break; - case OperationOneofCase.AdOperation: - AdOperation = other.AdOperation.Clone(); - break; - case OperationOneofCase.AdParameterOperation: - AdParameterOperation = other.AdParameterOperation.Clone(); - break; - case OperationOneofCase.AssetOperation: - AssetOperation = other.AssetOperation.Clone(); - break; - case OperationOneofCase.AssetGroupAssetOperation: - AssetGroupAssetOperation = other.AssetGroupAssetOperation.Clone(); - break; - case OperationOneofCase.AssetGroupListingGroupFilterOperation: - AssetGroupListingGroupFilterOperation = other.AssetGroupListingGroupFilterOperation.Clone(); - break; - case OperationOneofCase.AssetGroupSignalOperation: - AssetGroupSignalOperation = other.AssetGroupSignalOperation.Clone(); - break; - case OperationOneofCase.AssetGroupOperation: - AssetGroupOperation = other.AssetGroupOperation.Clone(); - break; - case OperationOneofCase.AssetSetAssetOperation: - AssetSetAssetOperation = other.AssetSetAssetOperation.Clone(); - break; - case OperationOneofCase.AssetSetOperation: - AssetSetOperation = other.AssetSetOperation.Clone(); - break; - case OperationOneofCase.AudienceOperation: - AudienceOperation = other.AudienceOperation.Clone(); - break; - case OperationOneofCase.BiddingDataExclusionOperation: - BiddingDataExclusionOperation = other.BiddingDataExclusionOperation.Clone(); - break; - case OperationOneofCase.BiddingSeasonalityAdjustmentOperation: - BiddingSeasonalityAdjustmentOperation = other.BiddingSeasonalityAdjustmentOperation.Clone(); - break; - case OperationOneofCase.BiddingStrategyOperation: - BiddingStrategyOperation = other.BiddingStrategyOperation.Clone(); - break; - case OperationOneofCase.CampaignAssetOperation: - CampaignAssetOperation = other.CampaignAssetOperation.Clone(); - break; - case OperationOneofCase.CampaignAssetSetOperation: - CampaignAssetSetOperation = other.CampaignAssetSetOperation.Clone(); - break; - case OperationOneofCase.CampaignBidModifierOperation: - CampaignBidModifierOperation = other.CampaignBidModifierOperation.Clone(); - break; - case OperationOneofCase.CampaignBudgetOperation: - CampaignBudgetOperation = other.CampaignBudgetOperation.Clone(); - break; - case OperationOneofCase.CampaignConversionGoalOperation: - CampaignConversionGoalOperation = other.CampaignConversionGoalOperation.Clone(); - break; - case OperationOneofCase.CampaignCriterionOperation: - CampaignCriterionOperation = other.CampaignCriterionOperation.Clone(); - break; - case OperationOneofCase.CampaignCustomizerOperation: - CampaignCustomizerOperation = other.CampaignCustomizerOperation.Clone(); - break; - case OperationOneofCase.CampaignDraftOperation: - CampaignDraftOperation = other.CampaignDraftOperation.Clone(); - break; - case OperationOneofCase.CampaignExtensionSettingOperation: - CampaignExtensionSettingOperation = other.CampaignExtensionSettingOperation.Clone(); - break; - case OperationOneofCase.CampaignFeedOperation: - CampaignFeedOperation = other.CampaignFeedOperation.Clone(); - break; - case OperationOneofCase.CampaignGroupOperation: - CampaignGroupOperation = other.CampaignGroupOperation.Clone(); - break; - case OperationOneofCase.CampaignLabelOperation: - CampaignLabelOperation = other.CampaignLabelOperation.Clone(); - break; - case OperationOneofCase.CampaignOperation: - CampaignOperation = other.CampaignOperation.Clone(); - break; - case OperationOneofCase.CampaignSharedSetOperation: - CampaignSharedSetOperation = other.CampaignSharedSetOperation.Clone(); - break; - case OperationOneofCase.ConversionActionOperation: - ConversionActionOperation = other.ConversionActionOperation.Clone(); - break; - case OperationOneofCase.ConversionCustomVariableOperation: - ConversionCustomVariableOperation = other.ConversionCustomVariableOperation.Clone(); - break; - case OperationOneofCase.ConversionGoalCampaignConfigOperation: - ConversionGoalCampaignConfigOperation = other.ConversionGoalCampaignConfigOperation.Clone(); - break; - case OperationOneofCase.ConversionValueRuleOperation: - ConversionValueRuleOperation = other.ConversionValueRuleOperation.Clone(); - break; - case OperationOneofCase.ConversionValueRuleSetOperation: - ConversionValueRuleSetOperation = other.ConversionValueRuleSetOperation.Clone(); - break; - case OperationOneofCase.CustomConversionGoalOperation: - CustomConversionGoalOperation = other.CustomConversionGoalOperation.Clone(); - break; - case OperationOneofCase.CustomerAssetOperation: - CustomerAssetOperation = other.CustomerAssetOperation.Clone(); - break; - case OperationOneofCase.CustomerConversionGoalOperation: - CustomerConversionGoalOperation = other.CustomerConversionGoalOperation.Clone(); - break; - case OperationOneofCase.CustomerCustomizerOperation: - CustomerCustomizerOperation = other.CustomerCustomizerOperation.Clone(); - break; - case OperationOneofCase.CustomerExtensionSettingOperation: - CustomerExtensionSettingOperation = other.CustomerExtensionSettingOperation.Clone(); - break; - case OperationOneofCase.CustomerFeedOperation: - CustomerFeedOperation = other.CustomerFeedOperation.Clone(); - break; - case OperationOneofCase.CustomerLabelOperation: - CustomerLabelOperation = other.CustomerLabelOperation.Clone(); - break; - case OperationOneofCase.CustomerNegativeCriterionOperation: - CustomerNegativeCriterionOperation = other.CustomerNegativeCriterionOperation.Clone(); - break; - case OperationOneofCase.CustomerOperation: - CustomerOperation = other.CustomerOperation.Clone(); - break; - case OperationOneofCase.CustomizerAttributeOperation: - CustomizerAttributeOperation = other.CustomizerAttributeOperation.Clone(); - break; - case OperationOneofCase.ExperimentOperation: - ExperimentOperation = other.ExperimentOperation.Clone(); - break; - case OperationOneofCase.ExperimentArmOperation: - ExperimentArmOperation = other.ExperimentArmOperation.Clone(); - break; - case OperationOneofCase.ExtensionFeedItemOperation: - ExtensionFeedItemOperation = other.ExtensionFeedItemOperation.Clone(); - break; - case OperationOneofCase.FeedItemOperation: - FeedItemOperation = other.FeedItemOperation.Clone(); - break; - case OperationOneofCase.FeedItemSetOperation: - FeedItemSetOperation = other.FeedItemSetOperation.Clone(); - break; - case OperationOneofCase.FeedItemSetLinkOperation: - FeedItemSetLinkOperation = other.FeedItemSetLinkOperation.Clone(); - break; - case OperationOneofCase.FeedItemTargetOperation: - FeedItemTargetOperation = other.FeedItemTargetOperation.Clone(); - break; - case OperationOneofCase.FeedMappingOperation: - FeedMappingOperation = other.FeedMappingOperation.Clone(); - break; - case OperationOneofCase.FeedOperation: - FeedOperation = other.FeedOperation.Clone(); - break; - case OperationOneofCase.KeywordPlanAdGroupOperation: - KeywordPlanAdGroupOperation = other.KeywordPlanAdGroupOperation.Clone(); - break; - case OperationOneofCase.KeywordPlanAdGroupKeywordOperation: - KeywordPlanAdGroupKeywordOperation = other.KeywordPlanAdGroupKeywordOperation.Clone(); - break; - case OperationOneofCase.KeywordPlanCampaignKeywordOperation: - KeywordPlanCampaignKeywordOperation = other.KeywordPlanCampaignKeywordOperation.Clone(); - break; - case OperationOneofCase.KeywordPlanCampaignOperation: - KeywordPlanCampaignOperation = other.KeywordPlanCampaignOperation.Clone(); - break; - case OperationOneofCase.KeywordPlanOperation: - KeywordPlanOperation = other.KeywordPlanOperation.Clone(); - break; - case OperationOneofCase.LabelOperation: - LabelOperation = other.LabelOperation.Clone(); - break; - case OperationOneofCase.MediaFileOperation: - MediaFileOperation = other.MediaFileOperation.Clone(); - break; - case OperationOneofCase.RemarketingActionOperation: - RemarketingActionOperation = other.RemarketingActionOperation.Clone(); - break; - case OperationOneofCase.SharedCriterionOperation: - SharedCriterionOperation = other.SharedCriterionOperation.Clone(); - break; - case OperationOneofCase.SharedSetOperation: - SharedSetOperation = other.SharedSetOperation.Clone(); - break; - case OperationOneofCase.SmartCampaignSettingOperation: - SmartCampaignSettingOperation = other.SmartCampaignSettingOperation.Clone(); - break; - case OperationOneofCase.UserListOperation: - UserListOperation = other.UserListOperation.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateOperation Clone() { - return new MutateOperation(this); - } - - /// Field number for the "ad_group_ad_label_operation" field. - public const int AdGroupAdLabelOperationFieldNumber = 17; - /// - /// An ad group ad label mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation AdGroupAdLabelOperation { - get { return operationCase_ == OperationOneofCase.AdGroupAdLabelOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupAdLabelOperation; - } - } - - /// Field number for the "ad_group_ad_operation" field. - public const int AdGroupAdOperationFieldNumber = 1; - /// - /// An ad group ad mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation AdGroupAdOperation { - get { return operationCase_ == OperationOneofCase.AdGroupAdOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupAdOperation; - } - } - - /// Field number for the "ad_group_asset_operation" field. - public const int AdGroupAssetOperationFieldNumber = 56; - /// - /// An ad group asset mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation AdGroupAssetOperation { - get { return operationCase_ == OperationOneofCase.AdGroupAssetOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupAssetOperation; - } - } - - /// Field number for the "ad_group_bid_modifier_operation" field. - public const int AdGroupBidModifierOperationFieldNumber = 2; - /// - /// An ad group bid modifier mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation AdGroupBidModifierOperation { - get { return operationCase_ == OperationOneofCase.AdGroupBidModifierOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupBidModifierOperation; - } - } - - /// Field number for the "ad_group_criterion_customizer_operation" field. - public const int AdGroupCriterionCustomizerOperationFieldNumber = 77; - /// - /// An ad group criterion customizer mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation AdGroupCriterionCustomizerOperation { - get { return operationCase_ == OperationOneofCase.AdGroupCriterionCustomizerOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupCriterionCustomizerOperation; - } - } - - /// Field number for the "ad_group_criterion_label_operation" field. - public const int AdGroupCriterionLabelOperationFieldNumber = 18; - /// - /// An ad group criterion label mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation AdGroupCriterionLabelOperation { - get { return operationCase_ == OperationOneofCase.AdGroupCriterionLabelOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupCriterionLabelOperation; - } - } - - /// Field number for the "ad_group_criterion_operation" field. - public const int AdGroupCriterionOperationFieldNumber = 3; - /// - /// An ad group criterion mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation AdGroupCriterionOperation { - get { return operationCase_ == OperationOneofCase.AdGroupCriterionOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupCriterionOperation; - } - } - - /// Field number for the "ad_group_customizer_operation" field. - public const int AdGroupCustomizerOperationFieldNumber = 75; - /// - /// An ad group customizer mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation AdGroupCustomizerOperation { - get { return operationCase_ == OperationOneofCase.AdGroupCustomizerOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupCustomizerOperation; - } - } - - /// Field number for the "ad_group_extension_setting_operation" field. - public const int AdGroupExtensionSettingOperationFieldNumber = 19; - /// - /// An ad group extension setting mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation AdGroupExtensionSettingOperation { - get { return operationCase_ == OperationOneofCase.AdGroupExtensionSettingOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupExtensionSettingOperation; - } - } - - /// Field number for the "ad_group_feed_operation" field. - public const int AdGroupFeedOperationFieldNumber = 20; - /// - /// An ad group feed mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation AdGroupFeedOperation { - get { return operationCase_ == OperationOneofCase.AdGroupFeedOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupFeedOperation; - } - } - - /// Field number for the "ad_group_label_operation" field. - public const int AdGroupLabelOperationFieldNumber = 21; - /// - /// An ad group label mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation AdGroupLabelOperation { - get { return operationCase_ == OperationOneofCase.AdGroupLabelOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupLabelOperation; - } - } - - /// Field number for the "ad_group_operation" field. - public const int AdGroupOperationFieldNumber = 5; - /// - /// An ad group mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation AdGroupOperation { - get { return operationCase_ == OperationOneofCase.AdGroupOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdGroupOperation; - } - } - - /// Field number for the "ad_operation" field. - public const int AdOperationFieldNumber = 49; - /// - /// An ad mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdOperation AdOperation { - get { return operationCase_ == OperationOneofCase.AdOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdOperation; - } - } - - /// Field number for the "ad_parameter_operation" field. - public const int AdParameterOperationFieldNumber = 22; - /// - /// An ad parameter mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation AdParameterOperation { - get { return operationCase_ == OperationOneofCase.AdParameterOperation ? (global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AdParameterOperation; - } - } - - /// Field number for the "asset_operation" field. - public const int AssetOperationFieldNumber = 23; - /// - /// An asset mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AssetOperation AssetOperation { - get { return operationCase_ == OperationOneofCase.AssetOperation ? (global::Google.Ads.GoogleAds.V12.Services.AssetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AssetOperation; - } - } - - /// Field number for the "asset_group_asset_operation" field. - public const int AssetGroupAssetOperationFieldNumber = 65; - /// - /// An asset group asset mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation AssetGroupAssetOperation { - get { return operationCase_ == OperationOneofCase.AssetGroupAssetOperation ? (global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AssetGroupAssetOperation; - } - } - - /// Field number for the "asset_group_listing_group_filter_operation" field. - public const int AssetGroupListingGroupFilterOperationFieldNumber = 78; - /// - /// An asset group listing group filter mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation AssetGroupListingGroupFilterOperation { - get { return operationCase_ == OperationOneofCase.AssetGroupListingGroupFilterOperation ? (global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AssetGroupListingGroupFilterOperation; - } - } - - /// Field number for the "asset_group_signal_operation" field. - public const int AssetGroupSignalOperationFieldNumber = 80; - /// - /// An asset group signal mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation AssetGroupSignalOperation { - get { return operationCase_ == OperationOneofCase.AssetGroupSignalOperation ? (global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AssetGroupSignalOperation; - } - } - - /// Field number for the "asset_group_operation" field. - public const int AssetGroupOperationFieldNumber = 62; - /// - /// An asset group mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation AssetGroupOperation { - get { return operationCase_ == OperationOneofCase.AssetGroupOperation ? (global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AssetGroupOperation; - } - } - - /// Field number for the "asset_set_asset_operation" field. - public const int AssetSetAssetOperationFieldNumber = 71; - /// - /// An asset set asset mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation AssetSetAssetOperation { - get { return operationCase_ == OperationOneofCase.AssetSetAssetOperation ? (global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AssetSetAssetOperation; - } - } - - /// Field number for the "asset_set_operation" field. - public const int AssetSetOperationFieldNumber = 72; - /// - /// An asset set mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation AssetSetOperation { - get { return operationCase_ == OperationOneofCase.AssetSetOperation ? (global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AssetSetOperation; - } - } - - /// Field number for the "audience_operation" field. - public const int AudienceOperationFieldNumber = 81; - /// - /// An audience mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.AudienceOperation AudienceOperation { - get { return operationCase_ == OperationOneofCase.AudienceOperation ? (global::Google.Ads.GoogleAds.V12.Services.AudienceOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.AudienceOperation; - } - } - - /// Field number for the "bidding_data_exclusion_operation" field. - public const int BiddingDataExclusionOperationFieldNumber = 58; - /// - /// A bidding data exclusion mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation BiddingDataExclusionOperation { - get { return operationCase_ == OperationOneofCase.BiddingDataExclusionOperation ? (global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.BiddingDataExclusionOperation; - } - } - - /// Field number for the "bidding_seasonality_adjustment_operation" field. - public const int BiddingSeasonalityAdjustmentOperationFieldNumber = 59; - /// - /// A bidding seasonality adjustment mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation BiddingSeasonalityAdjustmentOperation { - get { return operationCase_ == OperationOneofCase.BiddingSeasonalityAdjustmentOperation ? (global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.BiddingSeasonalityAdjustmentOperation; - } - } - - /// Field number for the "bidding_strategy_operation" field. - public const int BiddingStrategyOperationFieldNumber = 6; - /// - /// A bidding strategy mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation BiddingStrategyOperation { - get { return operationCase_ == OperationOneofCase.BiddingStrategyOperation ? (global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.BiddingStrategyOperation; - } - } - - /// Field number for the "campaign_asset_operation" field. - public const int CampaignAssetOperationFieldNumber = 52; - /// - /// A campaign asset mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation CampaignAssetOperation { - get { return operationCase_ == OperationOneofCase.CampaignAssetOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignAssetOperation; - } - } - - /// Field number for the "campaign_asset_set_operation" field. - public const int CampaignAssetSetOperationFieldNumber = 73; - /// - /// A campaign asset mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation CampaignAssetSetOperation { - get { return operationCase_ == OperationOneofCase.CampaignAssetSetOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignAssetSetOperation; - } - } - - /// Field number for the "campaign_bid_modifier_operation" field. - public const int CampaignBidModifierOperationFieldNumber = 7; - /// - /// A campaign bid modifier mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation CampaignBidModifierOperation { - get { return operationCase_ == OperationOneofCase.CampaignBidModifierOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignBidModifierOperation; - } - } - - /// Field number for the "campaign_budget_operation" field. - public const int CampaignBudgetOperationFieldNumber = 8; - /// - /// A campaign budget mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation CampaignBudgetOperation { - get { return operationCase_ == OperationOneofCase.CampaignBudgetOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignBudgetOperation; - } - } - - /// Field number for the "campaign_conversion_goal_operation" field. - public const int CampaignConversionGoalOperationFieldNumber = 67; - /// - /// A campaign conversion goal mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation CampaignConversionGoalOperation { - get { return operationCase_ == OperationOneofCase.CampaignConversionGoalOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignConversionGoalOperation; - } - } - - /// Field number for the "campaign_criterion_operation" field. - public const int CampaignCriterionOperationFieldNumber = 13; - /// - /// A campaign criterion mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation CampaignCriterionOperation { - get { return operationCase_ == OperationOneofCase.CampaignCriterionOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignCriterionOperation; - } - } - - /// Field number for the "campaign_customizer_operation" field. - public const int CampaignCustomizerOperationFieldNumber = 76; - /// - /// A campaign customizer mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation CampaignCustomizerOperation { - get { return operationCase_ == OperationOneofCase.CampaignCustomizerOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignCustomizerOperation; - } - } - - /// Field number for the "campaign_draft_operation" field. - public const int CampaignDraftOperationFieldNumber = 24; - /// - /// A campaign draft mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation CampaignDraftOperation { - get { return operationCase_ == OperationOneofCase.CampaignDraftOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignDraftOperation; - } - } - - /// Field number for the "campaign_extension_setting_operation" field. - public const int CampaignExtensionSettingOperationFieldNumber = 26; - /// - /// A campaign extension setting mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation CampaignExtensionSettingOperation { - get { return operationCase_ == OperationOneofCase.CampaignExtensionSettingOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignExtensionSettingOperation; - } - } - - /// Field number for the "campaign_feed_operation" field. - public const int CampaignFeedOperationFieldNumber = 27; - /// - /// A campaign feed mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation CampaignFeedOperation { - get { return operationCase_ == OperationOneofCase.CampaignFeedOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignFeedOperation; - } - } - - /// Field number for the "campaign_group_operation" field. - public const int CampaignGroupOperationFieldNumber = 9; - /// - /// A campaign group mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation CampaignGroupOperation { - get { return operationCase_ == OperationOneofCase.CampaignGroupOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignGroupOperation; - } - } - - /// Field number for the "campaign_label_operation" field. - public const int CampaignLabelOperationFieldNumber = 28; - /// - /// A campaign label mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation CampaignLabelOperation { - get { return operationCase_ == OperationOneofCase.CampaignLabelOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignLabelOperation; - } - } - - /// Field number for the "campaign_operation" field. - public const int CampaignOperationFieldNumber = 10; - /// - /// A campaign mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignOperation CampaignOperation { - get { return operationCase_ == OperationOneofCase.CampaignOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignOperation; - } - } - - /// Field number for the "campaign_shared_set_operation" field. - public const int CampaignSharedSetOperationFieldNumber = 11; - /// - /// A campaign shared set mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation CampaignSharedSetOperation { - get { return operationCase_ == OperationOneofCase.CampaignSharedSetOperation ? (global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CampaignSharedSetOperation; - } - } - - /// Field number for the "conversion_action_operation" field. - public const int ConversionActionOperationFieldNumber = 12; - /// - /// A conversion action mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation ConversionActionOperation { - get { return operationCase_ == OperationOneofCase.ConversionActionOperation ? (global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ConversionActionOperation; - } - } - - /// Field number for the "conversion_custom_variable_operation" field. - public const int ConversionCustomVariableOperationFieldNumber = 55; - /// - /// A conversion custom variable mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation ConversionCustomVariableOperation { - get { return operationCase_ == OperationOneofCase.ConversionCustomVariableOperation ? (global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ConversionCustomVariableOperation; - } - } - - /// Field number for the "conversion_goal_campaign_config_operation" field. - public const int ConversionGoalCampaignConfigOperationFieldNumber = 69; - /// - /// A conversion goal campaign config mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation ConversionGoalCampaignConfigOperation { - get { return operationCase_ == OperationOneofCase.ConversionGoalCampaignConfigOperation ? (global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ConversionGoalCampaignConfigOperation; - } - } - - /// Field number for the "conversion_value_rule_operation" field. - public const int ConversionValueRuleOperationFieldNumber = 63; - /// - /// A conversion value rule mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation ConversionValueRuleOperation { - get { return operationCase_ == OperationOneofCase.ConversionValueRuleOperation ? (global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ConversionValueRuleOperation; - } - } - - /// Field number for the "conversion_value_rule_set_operation" field. - public const int ConversionValueRuleSetOperationFieldNumber = 64; - /// - /// A conversion value rule set mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation ConversionValueRuleSetOperation { - get { return operationCase_ == OperationOneofCase.ConversionValueRuleSetOperation ? (global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ConversionValueRuleSetOperation; - } - } - - /// Field number for the "custom_conversion_goal_operation" field. - public const int CustomConversionGoalOperationFieldNumber = 68; - /// - /// A custom conversion goal mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation CustomConversionGoalOperation { - get { return operationCase_ == OperationOneofCase.CustomConversionGoalOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomConversionGoalOperation; - } - } - - /// Field number for the "customer_asset_operation" field. - public const int CustomerAssetOperationFieldNumber = 57; - /// - /// A customer asset mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation CustomerAssetOperation { - get { return operationCase_ == OperationOneofCase.CustomerAssetOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerAssetOperation; - } - } - - /// Field number for the "customer_conversion_goal_operation" field. - public const int CustomerConversionGoalOperationFieldNumber = 66; - /// - /// A customer conversion goal mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation CustomerConversionGoalOperation { - get { return operationCase_ == OperationOneofCase.CustomerConversionGoalOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerConversionGoalOperation; - } - } - - /// Field number for the "customer_customizer_operation" field. - public const int CustomerCustomizerOperationFieldNumber = 79; - /// - /// A customer customizer mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation CustomerCustomizerOperation { - get { return operationCase_ == OperationOneofCase.CustomerCustomizerOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerCustomizerOperation; - } - } - - /// Field number for the "customer_extension_setting_operation" field. - public const int CustomerExtensionSettingOperationFieldNumber = 30; - /// - /// A customer extension setting mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation CustomerExtensionSettingOperation { - get { return operationCase_ == OperationOneofCase.CustomerExtensionSettingOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerExtensionSettingOperation; - } - } - - /// Field number for the "customer_feed_operation" field. - public const int CustomerFeedOperationFieldNumber = 31; - /// - /// A customer feed mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation CustomerFeedOperation { - get { return operationCase_ == OperationOneofCase.CustomerFeedOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerFeedOperation; - } - } - - /// Field number for the "customer_label_operation" field. - public const int CustomerLabelOperationFieldNumber = 32; - /// - /// A customer label mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation CustomerLabelOperation { - get { return operationCase_ == OperationOneofCase.CustomerLabelOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerLabelOperation; - } - } - - /// Field number for the "customer_negative_criterion_operation" field. - public const int CustomerNegativeCriterionOperationFieldNumber = 34; - /// - /// A customer negative criterion mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation CustomerNegativeCriterionOperation { - get { return operationCase_ == OperationOneofCase.CustomerNegativeCriterionOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerNegativeCriterionOperation; - } - } - - /// Field number for the "customer_operation" field. - public const int CustomerOperationFieldNumber = 35; - /// - /// A customer mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomerOperation CustomerOperation { - get { return operationCase_ == OperationOneofCase.CustomerOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomerOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomerOperation; - } - } - - /// Field number for the "customizer_attribute_operation" field. - public const int CustomizerAttributeOperationFieldNumber = 70; - /// - /// A customizer attribute mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation CustomizerAttributeOperation { - get { return operationCase_ == OperationOneofCase.CustomizerAttributeOperation ? (global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.CustomizerAttributeOperation; - } - } - - /// Field number for the "experiment_operation" field. - public const int ExperimentOperationFieldNumber = 82; - /// - /// An experiment mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation ExperimentOperation { - get { return operationCase_ == OperationOneofCase.ExperimentOperation ? (global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ExperimentOperation; - } - } - - /// Field number for the "experiment_arm_operation" field. - public const int ExperimentArmOperationFieldNumber = 83; - /// - /// An experiment arm mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation ExperimentArmOperation { - get { return operationCase_ == OperationOneofCase.ExperimentArmOperation ? (global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ExperimentArmOperation; - } - } - - /// Field number for the "extension_feed_item_operation" field. - public const int ExtensionFeedItemOperationFieldNumber = 36; - /// - /// An extension feed item mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation ExtensionFeedItemOperation { - get { return operationCase_ == OperationOneofCase.ExtensionFeedItemOperation ? (global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.ExtensionFeedItemOperation; - } - } - - /// Field number for the "feed_item_operation" field. - public const int FeedItemOperationFieldNumber = 37; - /// - /// A feed item mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation FeedItemOperation { - get { return operationCase_ == OperationOneofCase.FeedItemOperation ? (global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.FeedItemOperation; - } - } - - /// Field number for the "feed_item_set_operation" field. - public const int FeedItemSetOperationFieldNumber = 53; - /// - /// A feed item set mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation FeedItemSetOperation { - get { return operationCase_ == OperationOneofCase.FeedItemSetOperation ? (global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.FeedItemSetOperation; - } - } - - /// Field number for the "feed_item_set_link_operation" field. - public const int FeedItemSetLinkOperationFieldNumber = 54; - /// - /// A feed item set link mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation FeedItemSetLinkOperation { - get { return operationCase_ == OperationOneofCase.FeedItemSetLinkOperation ? (global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.FeedItemSetLinkOperation; - } - } - - /// Field number for the "feed_item_target_operation" field. - public const int FeedItemTargetOperationFieldNumber = 38; - /// - /// A feed item target mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation FeedItemTargetOperation { - get { return operationCase_ == OperationOneofCase.FeedItemTargetOperation ? (global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.FeedItemTargetOperation; - } - } - - /// Field number for the "feed_mapping_operation" field. - public const int FeedMappingOperationFieldNumber = 39; - /// - /// A feed mapping mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation FeedMappingOperation { - get { return operationCase_ == OperationOneofCase.FeedMappingOperation ? (global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.FeedMappingOperation; - } - } - - /// Field number for the "feed_operation" field. - public const int FeedOperationFieldNumber = 40; - /// - /// A feed mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.FeedOperation FeedOperation { - get { return operationCase_ == OperationOneofCase.FeedOperation ? (global::Google.Ads.GoogleAds.V12.Services.FeedOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.FeedOperation; - } - } - - /// Field number for the "keyword_plan_ad_group_operation" field. - public const int KeywordPlanAdGroupOperationFieldNumber = 44; - /// - /// A keyword plan ad group operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation KeywordPlanAdGroupOperation { - get { return operationCase_ == OperationOneofCase.KeywordPlanAdGroupOperation ? (global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.KeywordPlanAdGroupOperation; - } - } - - /// Field number for the "keyword_plan_ad_group_keyword_operation" field. - public const int KeywordPlanAdGroupKeywordOperationFieldNumber = 50; - /// - /// A keyword plan ad group keyword operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation KeywordPlanAdGroupKeywordOperation { - get { return operationCase_ == OperationOneofCase.KeywordPlanAdGroupKeywordOperation ? (global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.KeywordPlanAdGroupKeywordOperation; - } - } - - /// Field number for the "keyword_plan_campaign_keyword_operation" field. - public const int KeywordPlanCampaignKeywordOperationFieldNumber = 51; - /// - /// A keyword plan campaign keyword operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation KeywordPlanCampaignKeywordOperation { - get { return operationCase_ == OperationOneofCase.KeywordPlanCampaignKeywordOperation ? (global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.KeywordPlanCampaignKeywordOperation; - } - } - - /// Field number for the "keyword_plan_campaign_operation" field. - public const int KeywordPlanCampaignOperationFieldNumber = 45; - /// - /// A keyword plan campaign operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation KeywordPlanCampaignOperation { - get { return operationCase_ == OperationOneofCase.KeywordPlanCampaignOperation ? (global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.KeywordPlanCampaignOperation; - } - } - - /// Field number for the "keyword_plan_operation" field. - public const int KeywordPlanOperationFieldNumber = 48; - /// - /// A keyword plan operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation KeywordPlanOperation { - get { return operationCase_ == OperationOneofCase.KeywordPlanOperation ? (global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.KeywordPlanOperation; - } - } - - /// Field number for the "label_operation" field. - public const int LabelOperationFieldNumber = 41; - /// - /// A label mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.LabelOperation LabelOperation { - get { return operationCase_ == OperationOneofCase.LabelOperation ? (global::Google.Ads.GoogleAds.V12.Services.LabelOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.LabelOperation; - } - } - - /// Field number for the "media_file_operation" field. - public const int MediaFileOperationFieldNumber = 42; - /// - /// A media file mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MediaFileOperation MediaFileOperation { - get { return operationCase_ == OperationOneofCase.MediaFileOperation ? (global::Google.Ads.GoogleAds.V12.Services.MediaFileOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.MediaFileOperation; - } - } - - /// Field number for the "remarketing_action_operation" field. - public const int RemarketingActionOperationFieldNumber = 43; - /// - /// A remarketing action mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.RemarketingActionOperation RemarketingActionOperation { - get { return operationCase_ == OperationOneofCase.RemarketingActionOperation ? (global::Google.Ads.GoogleAds.V12.Services.RemarketingActionOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.RemarketingActionOperation; - } - } - - /// Field number for the "shared_criterion_operation" field. - public const int SharedCriterionOperationFieldNumber = 14; - /// - /// A shared criterion mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.SharedCriterionOperation SharedCriterionOperation { - get { return operationCase_ == OperationOneofCase.SharedCriterionOperation ? (global::Google.Ads.GoogleAds.V12.Services.SharedCriterionOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.SharedCriterionOperation; - } - } - - /// Field number for the "shared_set_operation" field. - public const int SharedSetOperationFieldNumber = 15; - /// - /// A shared set mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.SharedSetOperation SharedSetOperation { - get { return operationCase_ == OperationOneofCase.SharedSetOperation ? (global::Google.Ads.GoogleAds.V12.Services.SharedSetOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.SharedSetOperation; - } - } - - /// Field number for the "smart_campaign_setting_operation" field. - public const int SmartCampaignSettingOperationFieldNumber = 61; - /// - /// A Smart campaign setting mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingOperation SmartCampaignSettingOperation { - get { return operationCase_ == OperationOneofCase.SmartCampaignSettingOperation ? (global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.SmartCampaignSettingOperation; - } - } - - /// Field number for the "user_list_operation" field. - public const int UserListOperationFieldNumber = 16; - /// - /// A user list mutate operation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.UserListOperation UserListOperation { - get { return operationCase_ == OperationOneofCase.UserListOperation ? (global::Google.Ads.GoogleAds.V12.Services.UserListOperation) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.UserListOperation; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - AdGroupAdLabelOperation = 17, - AdGroupAdOperation = 1, - AdGroupAssetOperation = 56, - AdGroupBidModifierOperation = 2, - AdGroupCriterionCustomizerOperation = 77, - AdGroupCriterionLabelOperation = 18, - AdGroupCriterionOperation = 3, - AdGroupCustomizerOperation = 75, - AdGroupExtensionSettingOperation = 19, - AdGroupFeedOperation = 20, - AdGroupLabelOperation = 21, - AdGroupOperation = 5, - AdOperation = 49, - AdParameterOperation = 22, - AssetOperation = 23, - AssetGroupAssetOperation = 65, - AssetGroupListingGroupFilterOperation = 78, - AssetGroupSignalOperation = 80, - AssetGroupOperation = 62, - AssetSetAssetOperation = 71, - AssetSetOperation = 72, - AudienceOperation = 81, - BiddingDataExclusionOperation = 58, - BiddingSeasonalityAdjustmentOperation = 59, - BiddingStrategyOperation = 6, - CampaignAssetOperation = 52, - CampaignAssetSetOperation = 73, - CampaignBidModifierOperation = 7, - CampaignBudgetOperation = 8, - CampaignConversionGoalOperation = 67, - CampaignCriterionOperation = 13, - CampaignCustomizerOperation = 76, - CampaignDraftOperation = 24, - CampaignExtensionSettingOperation = 26, - CampaignFeedOperation = 27, - CampaignGroupOperation = 9, - CampaignLabelOperation = 28, - CampaignOperation = 10, - CampaignSharedSetOperation = 11, - ConversionActionOperation = 12, - ConversionCustomVariableOperation = 55, - ConversionGoalCampaignConfigOperation = 69, - ConversionValueRuleOperation = 63, - ConversionValueRuleSetOperation = 64, - CustomConversionGoalOperation = 68, - CustomerAssetOperation = 57, - CustomerConversionGoalOperation = 66, - CustomerCustomizerOperation = 79, - CustomerExtensionSettingOperation = 30, - CustomerFeedOperation = 31, - CustomerLabelOperation = 32, - CustomerNegativeCriterionOperation = 34, - CustomerOperation = 35, - CustomizerAttributeOperation = 70, - ExperimentOperation = 82, - ExperimentArmOperation = 83, - ExtensionFeedItemOperation = 36, - FeedItemOperation = 37, - FeedItemSetOperation = 53, - FeedItemSetLinkOperation = 54, - FeedItemTargetOperation = 38, - FeedMappingOperation = 39, - FeedOperation = 40, - KeywordPlanAdGroupOperation = 44, - KeywordPlanAdGroupKeywordOperation = 50, - KeywordPlanCampaignKeywordOperation = 51, - KeywordPlanCampaignOperation = 45, - KeywordPlanOperation = 48, - LabelOperation = 41, - MediaFileOperation = 42, - RemarketingActionOperation = 43, - SharedCriterionOperation = 14, - SharedSetOperation = 15, - SmartCampaignSettingOperation = 61, - UserListOperation = 16, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AdGroupAdLabelOperation, other.AdGroupAdLabelOperation)) return false; - if (!object.Equals(AdGroupAdOperation, other.AdGroupAdOperation)) return false; - if (!object.Equals(AdGroupAssetOperation, other.AdGroupAssetOperation)) return false; - if (!object.Equals(AdGroupBidModifierOperation, other.AdGroupBidModifierOperation)) return false; - if (!object.Equals(AdGroupCriterionCustomizerOperation, other.AdGroupCriterionCustomizerOperation)) return false; - if (!object.Equals(AdGroupCriterionLabelOperation, other.AdGroupCriterionLabelOperation)) return false; - if (!object.Equals(AdGroupCriterionOperation, other.AdGroupCriterionOperation)) return false; - if (!object.Equals(AdGroupCustomizerOperation, other.AdGroupCustomizerOperation)) return false; - if (!object.Equals(AdGroupExtensionSettingOperation, other.AdGroupExtensionSettingOperation)) return false; - if (!object.Equals(AdGroupFeedOperation, other.AdGroupFeedOperation)) return false; - if (!object.Equals(AdGroupLabelOperation, other.AdGroupLabelOperation)) return false; - if (!object.Equals(AdGroupOperation, other.AdGroupOperation)) return false; - if (!object.Equals(AdOperation, other.AdOperation)) return false; - if (!object.Equals(AdParameterOperation, other.AdParameterOperation)) return false; - if (!object.Equals(AssetOperation, other.AssetOperation)) return false; - if (!object.Equals(AssetGroupAssetOperation, other.AssetGroupAssetOperation)) return false; - if (!object.Equals(AssetGroupListingGroupFilterOperation, other.AssetGroupListingGroupFilterOperation)) return false; - if (!object.Equals(AssetGroupSignalOperation, other.AssetGroupSignalOperation)) return false; - if (!object.Equals(AssetGroupOperation, other.AssetGroupOperation)) return false; - if (!object.Equals(AssetSetAssetOperation, other.AssetSetAssetOperation)) return false; - if (!object.Equals(AssetSetOperation, other.AssetSetOperation)) return false; - if (!object.Equals(AudienceOperation, other.AudienceOperation)) return false; - if (!object.Equals(BiddingDataExclusionOperation, other.BiddingDataExclusionOperation)) return false; - if (!object.Equals(BiddingSeasonalityAdjustmentOperation, other.BiddingSeasonalityAdjustmentOperation)) return false; - if (!object.Equals(BiddingStrategyOperation, other.BiddingStrategyOperation)) return false; - if (!object.Equals(CampaignAssetOperation, other.CampaignAssetOperation)) return false; - if (!object.Equals(CampaignAssetSetOperation, other.CampaignAssetSetOperation)) return false; - if (!object.Equals(CampaignBidModifierOperation, other.CampaignBidModifierOperation)) return false; - if (!object.Equals(CampaignBudgetOperation, other.CampaignBudgetOperation)) return false; - if (!object.Equals(CampaignConversionGoalOperation, other.CampaignConversionGoalOperation)) return false; - if (!object.Equals(CampaignCriterionOperation, other.CampaignCriterionOperation)) return false; - if (!object.Equals(CampaignCustomizerOperation, other.CampaignCustomizerOperation)) return false; - if (!object.Equals(CampaignDraftOperation, other.CampaignDraftOperation)) return false; - if (!object.Equals(CampaignExtensionSettingOperation, other.CampaignExtensionSettingOperation)) return false; - if (!object.Equals(CampaignFeedOperation, other.CampaignFeedOperation)) return false; - if (!object.Equals(CampaignGroupOperation, other.CampaignGroupOperation)) return false; - if (!object.Equals(CampaignLabelOperation, other.CampaignLabelOperation)) return false; - if (!object.Equals(CampaignOperation, other.CampaignOperation)) return false; - if (!object.Equals(CampaignSharedSetOperation, other.CampaignSharedSetOperation)) return false; - if (!object.Equals(ConversionActionOperation, other.ConversionActionOperation)) return false; - if (!object.Equals(ConversionCustomVariableOperation, other.ConversionCustomVariableOperation)) return false; - if (!object.Equals(ConversionGoalCampaignConfigOperation, other.ConversionGoalCampaignConfigOperation)) return false; - if (!object.Equals(ConversionValueRuleOperation, other.ConversionValueRuleOperation)) return false; - if (!object.Equals(ConversionValueRuleSetOperation, other.ConversionValueRuleSetOperation)) return false; - if (!object.Equals(CustomConversionGoalOperation, other.CustomConversionGoalOperation)) return false; - if (!object.Equals(CustomerAssetOperation, other.CustomerAssetOperation)) return false; - if (!object.Equals(CustomerConversionGoalOperation, other.CustomerConversionGoalOperation)) return false; - if (!object.Equals(CustomerCustomizerOperation, other.CustomerCustomizerOperation)) return false; - if (!object.Equals(CustomerExtensionSettingOperation, other.CustomerExtensionSettingOperation)) return false; - if (!object.Equals(CustomerFeedOperation, other.CustomerFeedOperation)) return false; - if (!object.Equals(CustomerLabelOperation, other.CustomerLabelOperation)) return false; - if (!object.Equals(CustomerNegativeCriterionOperation, other.CustomerNegativeCriterionOperation)) return false; - if (!object.Equals(CustomerOperation, other.CustomerOperation)) return false; - if (!object.Equals(CustomizerAttributeOperation, other.CustomizerAttributeOperation)) return false; - if (!object.Equals(ExperimentOperation, other.ExperimentOperation)) return false; - if (!object.Equals(ExperimentArmOperation, other.ExperimentArmOperation)) return false; - if (!object.Equals(ExtensionFeedItemOperation, other.ExtensionFeedItemOperation)) return false; - if (!object.Equals(FeedItemOperation, other.FeedItemOperation)) return false; - if (!object.Equals(FeedItemSetOperation, other.FeedItemSetOperation)) return false; - if (!object.Equals(FeedItemSetLinkOperation, other.FeedItemSetLinkOperation)) return false; - if (!object.Equals(FeedItemTargetOperation, other.FeedItemTargetOperation)) return false; - if (!object.Equals(FeedMappingOperation, other.FeedMappingOperation)) return false; - if (!object.Equals(FeedOperation, other.FeedOperation)) return false; - if (!object.Equals(KeywordPlanAdGroupOperation, other.KeywordPlanAdGroupOperation)) return false; - if (!object.Equals(KeywordPlanAdGroupKeywordOperation, other.KeywordPlanAdGroupKeywordOperation)) return false; - if (!object.Equals(KeywordPlanCampaignKeywordOperation, other.KeywordPlanCampaignKeywordOperation)) return false; - if (!object.Equals(KeywordPlanCampaignOperation, other.KeywordPlanCampaignOperation)) return false; - if (!object.Equals(KeywordPlanOperation, other.KeywordPlanOperation)) return false; - if (!object.Equals(LabelOperation, other.LabelOperation)) return false; - if (!object.Equals(MediaFileOperation, other.MediaFileOperation)) return false; - if (!object.Equals(RemarketingActionOperation, other.RemarketingActionOperation)) return false; - if (!object.Equals(SharedCriterionOperation, other.SharedCriterionOperation)) return false; - if (!object.Equals(SharedSetOperation, other.SharedSetOperation)) return false; - if (!object.Equals(SmartCampaignSettingOperation, other.SmartCampaignSettingOperation)) return false; - if (!object.Equals(UserListOperation, other.UserListOperation)) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (operationCase_ == OperationOneofCase.AdGroupAdLabelOperation) hash ^= AdGroupAdLabelOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupAdOperation) hash ^= AdGroupAdOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupAssetOperation) hash ^= AdGroupAssetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupBidModifierOperation) hash ^= AdGroupBidModifierOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionCustomizerOperation) hash ^= AdGroupCriterionCustomizerOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionLabelOperation) hash ^= AdGroupCriterionLabelOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionOperation) hash ^= AdGroupCriterionOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupCustomizerOperation) hash ^= AdGroupCustomizerOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupExtensionSettingOperation) hash ^= AdGroupExtensionSettingOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupFeedOperation) hash ^= AdGroupFeedOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupLabelOperation) hash ^= AdGroupLabelOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdGroupOperation) hash ^= AdGroupOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdOperation) hash ^= AdOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AdParameterOperation) hash ^= AdParameterOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AssetOperation) hash ^= AssetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AssetGroupAssetOperation) hash ^= AssetGroupAssetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AssetGroupListingGroupFilterOperation) hash ^= AssetGroupListingGroupFilterOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AssetGroupSignalOperation) hash ^= AssetGroupSignalOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AssetGroupOperation) hash ^= AssetGroupOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AssetSetAssetOperation) hash ^= AssetSetAssetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AssetSetOperation) hash ^= AssetSetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.AudienceOperation) hash ^= AudienceOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.BiddingDataExclusionOperation) hash ^= BiddingDataExclusionOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.BiddingSeasonalityAdjustmentOperation) hash ^= BiddingSeasonalityAdjustmentOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.BiddingStrategyOperation) hash ^= BiddingStrategyOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignAssetOperation) hash ^= CampaignAssetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignAssetSetOperation) hash ^= CampaignAssetSetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignBidModifierOperation) hash ^= CampaignBidModifierOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignBudgetOperation) hash ^= CampaignBudgetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignConversionGoalOperation) hash ^= CampaignConversionGoalOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignCriterionOperation) hash ^= CampaignCriterionOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignCustomizerOperation) hash ^= CampaignCustomizerOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignDraftOperation) hash ^= CampaignDraftOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignExtensionSettingOperation) hash ^= CampaignExtensionSettingOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignFeedOperation) hash ^= CampaignFeedOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignGroupOperation) hash ^= CampaignGroupOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignLabelOperation) hash ^= CampaignLabelOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignOperation) hash ^= CampaignOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CampaignSharedSetOperation) hash ^= CampaignSharedSetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ConversionActionOperation) hash ^= ConversionActionOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ConversionCustomVariableOperation) hash ^= ConversionCustomVariableOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ConversionGoalCampaignConfigOperation) hash ^= ConversionGoalCampaignConfigOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ConversionValueRuleOperation) hash ^= ConversionValueRuleOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ConversionValueRuleSetOperation) hash ^= ConversionValueRuleSetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomConversionGoalOperation) hash ^= CustomConversionGoalOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerAssetOperation) hash ^= CustomerAssetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerConversionGoalOperation) hash ^= CustomerConversionGoalOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerCustomizerOperation) hash ^= CustomerCustomizerOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerExtensionSettingOperation) hash ^= CustomerExtensionSettingOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerFeedOperation) hash ^= CustomerFeedOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerLabelOperation) hash ^= CustomerLabelOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerNegativeCriterionOperation) hash ^= CustomerNegativeCriterionOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomerOperation) hash ^= CustomerOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.CustomizerAttributeOperation) hash ^= CustomizerAttributeOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ExperimentOperation) hash ^= ExperimentOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ExperimentArmOperation) hash ^= ExperimentArmOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.ExtensionFeedItemOperation) hash ^= ExtensionFeedItemOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.FeedItemOperation) hash ^= FeedItemOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.FeedItemSetOperation) hash ^= FeedItemSetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.FeedItemSetLinkOperation) hash ^= FeedItemSetLinkOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.FeedItemTargetOperation) hash ^= FeedItemTargetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.FeedMappingOperation) hash ^= FeedMappingOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.FeedOperation) hash ^= FeedOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupOperation) hash ^= KeywordPlanAdGroupOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupKeywordOperation) hash ^= KeywordPlanAdGroupKeywordOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignKeywordOperation) hash ^= KeywordPlanCampaignKeywordOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignOperation) hash ^= KeywordPlanCampaignOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.KeywordPlanOperation) hash ^= KeywordPlanOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.LabelOperation) hash ^= LabelOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.MediaFileOperation) hash ^= MediaFileOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.RemarketingActionOperation) hash ^= RemarketingActionOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.SharedCriterionOperation) hash ^= SharedCriterionOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.SharedSetOperation) hash ^= SharedSetOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.SmartCampaignSettingOperation) hash ^= SmartCampaignSettingOperation.GetHashCode(); - if (operationCase_ == OperationOneofCase.UserListOperation) hash ^= UserListOperation.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.AdGroupAdOperation) { - output.WriteRawTag(10); - output.WriteMessage(AdGroupAdOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupBidModifierOperation) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupBidModifierOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionOperation) { - output.WriteRawTag(26); - output.WriteMessage(AdGroupCriterionOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupOperation) { - output.WriteRawTag(42); - output.WriteMessage(AdGroupOperation); - } - if (operationCase_ == OperationOneofCase.BiddingStrategyOperation) { - output.WriteRawTag(50); - output.WriteMessage(BiddingStrategyOperation); - } - if (operationCase_ == OperationOneofCase.CampaignBidModifierOperation) { - output.WriteRawTag(58); - output.WriteMessage(CampaignBidModifierOperation); - } - if (operationCase_ == OperationOneofCase.CampaignBudgetOperation) { - output.WriteRawTag(66); - output.WriteMessage(CampaignBudgetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignGroupOperation) { - output.WriteRawTag(74); - output.WriteMessage(CampaignGroupOperation); - } - if (operationCase_ == OperationOneofCase.CampaignOperation) { - output.WriteRawTag(82); - output.WriteMessage(CampaignOperation); - } - if (operationCase_ == OperationOneofCase.CampaignSharedSetOperation) { - output.WriteRawTag(90); - output.WriteMessage(CampaignSharedSetOperation); - } - if (operationCase_ == OperationOneofCase.ConversionActionOperation) { - output.WriteRawTag(98); - output.WriteMessage(ConversionActionOperation); - } - if (operationCase_ == OperationOneofCase.CampaignCriterionOperation) { - output.WriteRawTag(106); - output.WriteMessage(CampaignCriterionOperation); - } - if (operationCase_ == OperationOneofCase.SharedCriterionOperation) { - output.WriteRawTag(114); - output.WriteMessage(SharedCriterionOperation); - } - if (operationCase_ == OperationOneofCase.SharedSetOperation) { - output.WriteRawTag(122); - output.WriteMessage(SharedSetOperation); - } - if (operationCase_ == OperationOneofCase.UserListOperation) { - output.WriteRawTag(130, 1); - output.WriteMessage(UserListOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupAdLabelOperation) { - output.WriteRawTag(138, 1); - output.WriteMessage(AdGroupAdLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionLabelOperation) { - output.WriteRawTag(146, 1); - output.WriteMessage(AdGroupCriterionLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupExtensionSettingOperation) { - output.WriteRawTag(154, 1); - output.WriteMessage(AdGroupExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupFeedOperation) { - output.WriteRawTag(162, 1); - output.WriteMessage(AdGroupFeedOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupLabelOperation) { - output.WriteRawTag(170, 1); - output.WriteMessage(AdGroupLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdParameterOperation) { - output.WriteRawTag(178, 1); - output.WriteMessage(AdParameterOperation); - } - if (operationCase_ == OperationOneofCase.AssetOperation) { - output.WriteRawTag(186, 1); - output.WriteMessage(AssetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignDraftOperation) { - output.WriteRawTag(194, 1); - output.WriteMessage(CampaignDraftOperation); - } - if (operationCase_ == OperationOneofCase.CampaignExtensionSettingOperation) { - output.WriteRawTag(210, 1); - output.WriteMessage(CampaignExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.CampaignFeedOperation) { - output.WriteRawTag(218, 1); - output.WriteMessage(CampaignFeedOperation); - } - if (operationCase_ == OperationOneofCase.CampaignLabelOperation) { - output.WriteRawTag(226, 1); - output.WriteMessage(CampaignLabelOperation); - } - if (operationCase_ == OperationOneofCase.CustomerExtensionSettingOperation) { - output.WriteRawTag(242, 1); - output.WriteMessage(CustomerExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.CustomerFeedOperation) { - output.WriteRawTag(250, 1); - output.WriteMessage(CustomerFeedOperation); - } - if (operationCase_ == OperationOneofCase.CustomerLabelOperation) { - output.WriteRawTag(130, 2); - output.WriteMessage(CustomerLabelOperation); - } - if (operationCase_ == OperationOneofCase.CustomerNegativeCriterionOperation) { - output.WriteRawTag(146, 2); - output.WriteMessage(CustomerNegativeCriterionOperation); - } - if (operationCase_ == OperationOneofCase.CustomerOperation) { - output.WriteRawTag(154, 2); - output.WriteMessage(CustomerOperation); - } - if (operationCase_ == OperationOneofCase.ExtensionFeedItemOperation) { - output.WriteRawTag(162, 2); - output.WriteMessage(ExtensionFeedItemOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemOperation) { - output.WriteRawTag(170, 2); - output.WriteMessage(FeedItemOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemTargetOperation) { - output.WriteRawTag(178, 2); - output.WriteMessage(FeedItemTargetOperation); - } - if (operationCase_ == OperationOneofCase.FeedMappingOperation) { - output.WriteRawTag(186, 2); - output.WriteMessage(FeedMappingOperation); - } - if (operationCase_ == OperationOneofCase.FeedOperation) { - output.WriteRawTag(194, 2); - output.WriteMessage(FeedOperation); - } - if (operationCase_ == OperationOneofCase.LabelOperation) { - output.WriteRawTag(202, 2); - output.WriteMessage(LabelOperation); - } - if (operationCase_ == OperationOneofCase.MediaFileOperation) { - output.WriteRawTag(210, 2); - output.WriteMessage(MediaFileOperation); - } - if (operationCase_ == OperationOneofCase.RemarketingActionOperation) { - output.WriteRawTag(218, 2); - output.WriteMessage(RemarketingActionOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupOperation) { - output.WriteRawTag(226, 2); - output.WriteMessage(KeywordPlanAdGroupOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignOperation) { - output.WriteRawTag(234, 2); - output.WriteMessage(KeywordPlanCampaignOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanOperation) { - output.WriteRawTag(130, 3); - output.WriteMessage(KeywordPlanOperation); - } - if (operationCase_ == OperationOneofCase.AdOperation) { - output.WriteRawTag(138, 3); - output.WriteMessage(AdOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupKeywordOperation) { - output.WriteRawTag(146, 3); - output.WriteMessage(KeywordPlanAdGroupKeywordOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignKeywordOperation) { - output.WriteRawTag(154, 3); - output.WriteMessage(KeywordPlanCampaignKeywordOperation); - } - if (operationCase_ == OperationOneofCase.CampaignAssetOperation) { - output.WriteRawTag(162, 3); - output.WriteMessage(CampaignAssetOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemSetOperation) { - output.WriteRawTag(170, 3); - output.WriteMessage(FeedItemSetOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemSetLinkOperation) { - output.WriteRawTag(178, 3); - output.WriteMessage(FeedItemSetLinkOperation); - } - if (operationCase_ == OperationOneofCase.ConversionCustomVariableOperation) { - output.WriteRawTag(186, 3); - output.WriteMessage(ConversionCustomVariableOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupAssetOperation) { - output.WriteRawTag(194, 3); - output.WriteMessage(AdGroupAssetOperation); - } - if (operationCase_ == OperationOneofCase.CustomerAssetOperation) { - output.WriteRawTag(202, 3); - output.WriteMessage(CustomerAssetOperation); - } - if (operationCase_ == OperationOneofCase.BiddingDataExclusionOperation) { - output.WriteRawTag(210, 3); - output.WriteMessage(BiddingDataExclusionOperation); - } - if (operationCase_ == OperationOneofCase.BiddingSeasonalityAdjustmentOperation) { - output.WriteRawTag(218, 3); - output.WriteMessage(BiddingSeasonalityAdjustmentOperation); - } - if (operationCase_ == OperationOneofCase.SmartCampaignSettingOperation) { - output.WriteRawTag(234, 3); - output.WriteMessage(SmartCampaignSettingOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupOperation) { - output.WriteRawTag(242, 3); - output.WriteMessage(AssetGroupOperation); - } - if (operationCase_ == OperationOneofCase.ConversionValueRuleOperation) { - output.WriteRawTag(250, 3); - output.WriteMessage(ConversionValueRuleOperation); - } - if (operationCase_ == OperationOneofCase.ConversionValueRuleSetOperation) { - output.WriteRawTag(130, 4); - output.WriteMessage(ConversionValueRuleSetOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupAssetOperation) { - output.WriteRawTag(138, 4); - output.WriteMessage(AssetGroupAssetOperation); - } - if (operationCase_ == OperationOneofCase.CustomerConversionGoalOperation) { - output.WriteRawTag(146, 4); - output.WriteMessage(CustomerConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.CampaignConversionGoalOperation) { - output.WriteRawTag(154, 4); - output.WriteMessage(CampaignConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.CustomConversionGoalOperation) { - output.WriteRawTag(162, 4); - output.WriteMessage(CustomConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.ConversionGoalCampaignConfigOperation) { - output.WriteRawTag(170, 4); - output.WriteMessage(ConversionGoalCampaignConfigOperation); - } - if (operationCase_ == OperationOneofCase.CustomizerAttributeOperation) { - output.WriteRawTag(178, 4); - output.WriteMessage(CustomizerAttributeOperation); - } - if (operationCase_ == OperationOneofCase.AssetSetAssetOperation) { - output.WriteRawTag(186, 4); - output.WriteMessage(AssetSetAssetOperation); - } - if (operationCase_ == OperationOneofCase.AssetSetOperation) { - output.WriteRawTag(194, 4); - output.WriteMessage(AssetSetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignAssetSetOperation) { - output.WriteRawTag(202, 4); - output.WriteMessage(CampaignAssetSetOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCustomizerOperation) { - output.WriteRawTag(218, 4); - output.WriteMessage(AdGroupCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.CampaignCustomizerOperation) { - output.WriteRawTag(226, 4); - output.WriteMessage(CampaignCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionCustomizerOperation) { - output.WriteRawTag(234, 4); - output.WriteMessage(AdGroupCriterionCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupListingGroupFilterOperation) { - output.WriteRawTag(242, 4); - output.WriteMessage(AssetGroupListingGroupFilterOperation); - } - if (operationCase_ == OperationOneofCase.CustomerCustomizerOperation) { - output.WriteRawTag(250, 4); - output.WriteMessage(CustomerCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupSignalOperation) { - output.WriteRawTag(130, 5); - output.WriteMessage(AssetGroupSignalOperation); - } - if (operationCase_ == OperationOneofCase.AudienceOperation) { - output.WriteRawTag(138, 5); - output.WriteMessage(AudienceOperation); - } - if (operationCase_ == OperationOneofCase.ExperimentOperation) { - output.WriteRawTag(146, 5); - output.WriteMessage(ExperimentOperation); - } - if (operationCase_ == OperationOneofCase.ExperimentArmOperation) { - output.WriteRawTag(154, 5); - output.WriteMessage(ExperimentArmOperation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.AdGroupAdOperation) { - output.WriteRawTag(10); - output.WriteMessage(AdGroupAdOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupBidModifierOperation) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupBidModifierOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionOperation) { - output.WriteRawTag(26); - output.WriteMessage(AdGroupCriterionOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupOperation) { - output.WriteRawTag(42); - output.WriteMessage(AdGroupOperation); - } - if (operationCase_ == OperationOneofCase.BiddingStrategyOperation) { - output.WriteRawTag(50); - output.WriteMessage(BiddingStrategyOperation); - } - if (operationCase_ == OperationOneofCase.CampaignBidModifierOperation) { - output.WriteRawTag(58); - output.WriteMessage(CampaignBidModifierOperation); - } - if (operationCase_ == OperationOneofCase.CampaignBudgetOperation) { - output.WriteRawTag(66); - output.WriteMessage(CampaignBudgetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignGroupOperation) { - output.WriteRawTag(74); - output.WriteMessage(CampaignGroupOperation); - } - if (operationCase_ == OperationOneofCase.CampaignOperation) { - output.WriteRawTag(82); - output.WriteMessage(CampaignOperation); - } - if (operationCase_ == OperationOneofCase.CampaignSharedSetOperation) { - output.WriteRawTag(90); - output.WriteMessage(CampaignSharedSetOperation); - } - if (operationCase_ == OperationOneofCase.ConversionActionOperation) { - output.WriteRawTag(98); - output.WriteMessage(ConversionActionOperation); - } - if (operationCase_ == OperationOneofCase.CampaignCriterionOperation) { - output.WriteRawTag(106); - output.WriteMessage(CampaignCriterionOperation); - } - if (operationCase_ == OperationOneofCase.SharedCriterionOperation) { - output.WriteRawTag(114); - output.WriteMessage(SharedCriterionOperation); - } - if (operationCase_ == OperationOneofCase.SharedSetOperation) { - output.WriteRawTag(122); - output.WriteMessage(SharedSetOperation); - } - if (operationCase_ == OperationOneofCase.UserListOperation) { - output.WriteRawTag(130, 1); - output.WriteMessage(UserListOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupAdLabelOperation) { - output.WriteRawTag(138, 1); - output.WriteMessage(AdGroupAdLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionLabelOperation) { - output.WriteRawTag(146, 1); - output.WriteMessage(AdGroupCriterionLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupExtensionSettingOperation) { - output.WriteRawTag(154, 1); - output.WriteMessage(AdGroupExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupFeedOperation) { - output.WriteRawTag(162, 1); - output.WriteMessage(AdGroupFeedOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupLabelOperation) { - output.WriteRawTag(170, 1); - output.WriteMessage(AdGroupLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdParameterOperation) { - output.WriteRawTag(178, 1); - output.WriteMessage(AdParameterOperation); - } - if (operationCase_ == OperationOneofCase.AssetOperation) { - output.WriteRawTag(186, 1); - output.WriteMessage(AssetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignDraftOperation) { - output.WriteRawTag(194, 1); - output.WriteMessage(CampaignDraftOperation); - } - if (operationCase_ == OperationOneofCase.CampaignExtensionSettingOperation) { - output.WriteRawTag(210, 1); - output.WriteMessage(CampaignExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.CampaignFeedOperation) { - output.WriteRawTag(218, 1); - output.WriteMessage(CampaignFeedOperation); - } - if (operationCase_ == OperationOneofCase.CampaignLabelOperation) { - output.WriteRawTag(226, 1); - output.WriteMessage(CampaignLabelOperation); - } - if (operationCase_ == OperationOneofCase.CustomerExtensionSettingOperation) { - output.WriteRawTag(242, 1); - output.WriteMessage(CustomerExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.CustomerFeedOperation) { - output.WriteRawTag(250, 1); - output.WriteMessage(CustomerFeedOperation); - } - if (operationCase_ == OperationOneofCase.CustomerLabelOperation) { - output.WriteRawTag(130, 2); - output.WriteMessage(CustomerLabelOperation); - } - if (operationCase_ == OperationOneofCase.CustomerNegativeCriterionOperation) { - output.WriteRawTag(146, 2); - output.WriteMessage(CustomerNegativeCriterionOperation); - } - if (operationCase_ == OperationOneofCase.CustomerOperation) { - output.WriteRawTag(154, 2); - output.WriteMessage(CustomerOperation); - } - if (operationCase_ == OperationOneofCase.ExtensionFeedItemOperation) { - output.WriteRawTag(162, 2); - output.WriteMessage(ExtensionFeedItemOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemOperation) { - output.WriteRawTag(170, 2); - output.WriteMessage(FeedItemOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemTargetOperation) { - output.WriteRawTag(178, 2); - output.WriteMessage(FeedItemTargetOperation); - } - if (operationCase_ == OperationOneofCase.FeedMappingOperation) { - output.WriteRawTag(186, 2); - output.WriteMessage(FeedMappingOperation); - } - if (operationCase_ == OperationOneofCase.FeedOperation) { - output.WriteRawTag(194, 2); - output.WriteMessage(FeedOperation); - } - if (operationCase_ == OperationOneofCase.LabelOperation) { - output.WriteRawTag(202, 2); - output.WriteMessage(LabelOperation); - } - if (operationCase_ == OperationOneofCase.MediaFileOperation) { - output.WriteRawTag(210, 2); - output.WriteMessage(MediaFileOperation); - } - if (operationCase_ == OperationOneofCase.RemarketingActionOperation) { - output.WriteRawTag(218, 2); - output.WriteMessage(RemarketingActionOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupOperation) { - output.WriteRawTag(226, 2); - output.WriteMessage(KeywordPlanAdGroupOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignOperation) { - output.WriteRawTag(234, 2); - output.WriteMessage(KeywordPlanCampaignOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanOperation) { - output.WriteRawTag(130, 3); - output.WriteMessage(KeywordPlanOperation); - } - if (operationCase_ == OperationOneofCase.AdOperation) { - output.WriteRawTag(138, 3); - output.WriteMessage(AdOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupKeywordOperation) { - output.WriteRawTag(146, 3); - output.WriteMessage(KeywordPlanAdGroupKeywordOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignKeywordOperation) { - output.WriteRawTag(154, 3); - output.WriteMessage(KeywordPlanCampaignKeywordOperation); - } - if (operationCase_ == OperationOneofCase.CampaignAssetOperation) { - output.WriteRawTag(162, 3); - output.WriteMessage(CampaignAssetOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemSetOperation) { - output.WriteRawTag(170, 3); - output.WriteMessage(FeedItemSetOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemSetLinkOperation) { - output.WriteRawTag(178, 3); - output.WriteMessage(FeedItemSetLinkOperation); - } - if (operationCase_ == OperationOneofCase.ConversionCustomVariableOperation) { - output.WriteRawTag(186, 3); - output.WriteMessage(ConversionCustomVariableOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupAssetOperation) { - output.WriteRawTag(194, 3); - output.WriteMessage(AdGroupAssetOperation); - } - if (operationCase_ == OperationOneofCase.CustomerAssetOperation) { - output.WriteRawTag(202, 3); - output.WriteMessage(CustomerAssetOperation); - } - if (operationCase_ == OperationOneofCase.BiddingDataExclusionOperation) { - output.WriteRawTag(210, 3); - output.WriteMessage(BiddingDataExclusionOperation); - } - if (operationCase_ == OperationOneofCase.BiddingSeasonalityAdjustmentOperation) { - output.WriteRawTag(218, 3); - output.WriteMessage(BiddingSeasonalityAdjustmentOperation); - } - if (operationCase_ == OperationOneofCase.SmartCampaignSettingOperation) { - output.WriteRawTag(234, 3); - output.WriteMessage(SmartCampaignSettingOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupOperation) { - output.WriteRawTag(242, 3); - output.WriteMessage(AssetGroupOperation); - } - if (operationCase_ == OperationOneofCase.ConversionValueRuleOperation) { - output.WriteRawTag(250, 3); - output.WriteMessage(ConversionValueRuleOperation); - } - if (operationCase_ == OperationOneofCase.ConversionValueRuleSetOperation) { - output.WriteRawTag(130, 4); - output.WriteMessage(ConversionValueRuleSetOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupAssetOperation) { - output.WriteRawTag(138, 4); - output.WriteMessage(AssetGroupAssetOperation); - } - if (operationCase_ == OperationOneofCase.CustomerConversionGoalOperation) { - output.WriteRawTag(146, 4); - output.WriteMessage(CustomerConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.CampaignConversionGoalOperation) { - output.WriteRawTag(154, 4); - output.WriteMessage(CampaignConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.CustomConversionGoalOperation) { - output.WriteRawTag(162, 4); - output.WriteMessage(CustomConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.ConversionGoalCampaignConfigOperation) { - output.WriteRawTag(170, 4); - output.WriteMessage(ConversionGoalCampaignConfigOperation); - } - if (operationCase_ == OperationOneofCase.CustomizerAttributeOperation) { - output.WriteRawTag(178, 4); - output.WriteMessage(CustomizerAttributeOperation); - } - if (operationCase_ == OperationOneofCase.AssetSetAssetOperation) { - output.WriteRawTag(186, 4); - output.WriteMessage(AssetSetAssetOperation); - } - if (operationCase_ == OperationOneofCase.AssetSetOperation) { - output.WriteRawTag(194, 4); - output.WriteMessage(AssetSetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignAssetSetOperation) { - output.WriteRawTag(202, 4); - output.WriteMessage(CampaignAssetSetOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCustomizerOperation) { - output.WriteRawTag(218, 4); - output.WriteMessage(AdGroupCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.CampaignCustomizerOperation) { - output.WriteRawTag(226, 4); - output.WriteMessage(CampaignCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionCustomizerOperation) { - output.WriteRawTag(234, 4); - output.WriteMessage(AdGroupCriterionCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupListingGroupFilterOperation) { - output.WriteRawTag(242, 4); - output.WriteMessage(AssetGroupListingGroupFilterOperation); - } - if (operationCase_ == OperationOneofCase.CustomerCustomizerOperation) { - output.WriteRawTag(250, 4); - output.WriteMessage(CustomerCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupSignalOperation) { - output.WriteRawTag(130, 5); - output.WriteMessage(AssetGroupSignalOperation); - } - if (operationCase_ == OperationOneofCase.AudienceOperation) { - output.WriteRawTag(138, 5); - output.WriteMessage(AudienceOperation); - } - if (operationCase_ == OperationOneofCase.ExperimentOperation) { - output.WriteRawTag(146, 5); - output.WriteMessage(ExperimentOperation); - } - if (operationCase_ == OperationOneofCase.ExperimentArmOperation) { - output.WriteRawTag(154, 5); - output.WriteMessage(ExperimentArmOperation); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (operationCase_ == OperationOneofCase.AdGroupAdLabelOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAdLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupAdOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAdOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupAssetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAssetOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupBidModifierOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupBidModifierOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionCustomizerOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionLabelOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCriterionOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupCustomizerOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupExtensionSettingOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupFeedOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupFeedOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupLabelOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupLabelOperation); - } - if (operationCase_ == OperationOneofCase.AdGroupOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupOperation); - } - if (operationCase_ == OperationOneofCase.AdOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdOperation); - } - if (operationCase_ == OperationOneofCase.AdParameterOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdParameterOperation); - } - if (operationCase_ == OperationOneofCase.AssetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupAssetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupAssetOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupListingGroupFilterOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupListingGroupFilterOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupSignalOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupSignalOperation); - } - if (operationCase_ == OperationOneofCase.AssetGroupOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupOperation); - } - if (operationCase_ == OperationOneofCase.AssetSetAssetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSetAssetOperation); - } - if (operationCase_ == OperationOneofCase.AssetSetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSetOperation); - } - if (operationCase_ == OperationOneofCase.AudienceOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AudienceOperation); - } - if (operationCase_ == OperationOneofCase.BiddingDataExclusionOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingDataExclusionOperation); - } - if (operationCase_ == OperationOneofCase.BiddingSeasonalityAdjustmentOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingSeasonalityAdjustmentOperation); - } - if (operationCase_ == OperationOneofCase.BiddingStrategyOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BiddingStrategyOperation); - } - if (operationCase_ == OperationOneofCase.CampaignAssetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAssetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignAssetSetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAssetSetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignBidModifierOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignBidModifierOperation); - } - if (operationCase_ == OperationOneofCase.CampaignBudgetOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignBudgetOperation); - } - if (operationCase_ == OperationOneofCase.CampaignConversionGoalOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.CampaignCriterionOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignCriterionOperation); - } - if (operationCase_ == OperationOneofCase.CampaignCustomizerOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.CampaignDraftOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignDraftOperation); - } - if (operationCase_ == OperationOneofCase.CampaignExtensionSettingOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.CampaignFeedOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignFeedOperation); - } - if (operationCase_ == OperationOneofCase.CampaignGroupOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignGroupOperation); - } - if (operationCase_ == OperationOneofCase.CampaignLabelOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignLabelOperation); - } - if (operationCase_ == OperationOneofCase.CampaignOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignOperation); - } - if (operationCase_ == OperationOneofCase.CampaignSharedSetOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignSharedSetOperation); - } - if (operationCase_ == OperationOneofCase.ConversionActionOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionActionOperation); - } - if (operationCase_ == OperationOneofCase.ConversionCustomVariableOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionCustomVariableOperation); - } - if (operationCase_ == OperationOneofCase.ConversionGoalCampaignConfigOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionGoalCampaignConfigOperation); - } - if (operationCase_ == OperationOneofCase.ConversionValueRuleOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRuleOperation); - } - if (operationCase_ == OperationOneofCase.ConversionValueRuleSetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRuleSetOperation); - } - if (operationCase_ == OperationOneofCase.CustomConversionGoalOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.CustomerAssetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerAssetOperation); - } - if (operationCase_ == OperationOneofCase.CustomerConversionGoalOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerConversionGoalOperation); - } - if (operationCase_ == OperationOneofCase.CustomerCustomizerOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerCustomizerOperation); - } - if (operationCase_ == OperationOneofCase.CustomerExtensionSettingOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerExtensionSettingOperation); - } - if (operationCase_ == OperationOneofCase.CustomerFeedOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerFeedOperation); - } - if (operationCase_ == OperationOneofCase.CustomerLabelOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerLabelOperation); - } - if (operationCase_ == OperationOneofCase.CustomerNegativeCriterionOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerNegativeCriterionOperation); - } - if (operationCase_ == OperationOneofCase.CustomerOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerOperation); - } - if (operationCase_ == OperationOneofCase.CustomizerAttributeOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomizerAttributeOperation); - } - if (operationCase_ == OperationOneofCase.ExperimentOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExperimentOperation); - } - if (operationCase_ == OperationOneofCase.ExperimentArmOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExperimentArmOperation); - } - if (operationCase_ == OperationOneofCase.ExtensionFeedItemOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExtensionFeedItemOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemSetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemSetOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemSetLinkOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemSetLinkOperation); - } - if (operationCase_ == OperationOneofCase.FeedItemTargetOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemTargetOperation); - } - if (operationCase_ == OperationOneofCase.FeedMappingOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedMappingOperation); - } - if (operationCase_ == OperationOneofCase.FeedOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanAdGroupOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupKeywordOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanAdGroupKeywordOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignKeywordOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanCampaignKeywordOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanCampaignOperation); - } - if (operationCase_ == OperationOneofCase.KeywordPlanOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanOperation); - } - if (operationCase_ == OperationOneofCase.LabelOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LabelOperation); - } - if (operationCase_ == OperationOneofCase.MediaFileOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MediaFileOperation); - } - if (operationCase_ == OperationOneofCase.RemarketingActionOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemarketingActionOperation); - } - if (operationCase_ == OperationOneofCase.SharedCriterionOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SharedCriterionOperation); - } - if (operationCase_ == OperationOneofCase.SharedSetOperation) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SharedSetOperation); - } - if (operationCase_ == OperationOneofCase.SmartCampaignSettingOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SmartCampaignSettingOperation); - } - if (operationCase_ == OperationOneofCase.UserListOperation) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserListOperation); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateOperation other) { - if (other == null) { - return; - } - switch (other.OperationCase) { - case OperationOneofCase.AdGroupAdLabelOperation: - if (AdGroupAdLabelOperation == null) { - AdGroupAdLabelOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation(); - } - AdGroupAdLabelOperation.MergeFrom(other.AdGroupAdLabelOperation); - break; - case OperationOneofCase.AdGroupAdOperation: - if (AdGroupAdOperation == null) { - AdGroupAdOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation(); - } - AdGroupAdOperation.MergeFrom(other.AdGroupAdOperation); - break; - case OperationOneofCase.AdGroupAssetOperation: - if (AdGroupAssetOperation == null) { - AdGroupAssetOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation(); - } - AdGroupAssetOperation.MergeFrom(other.AdGroupAssetOperation); - break; - case OperationOneofCase.AdGroupBidModifierOperation: - if (AdGroupBidModifierOperation == null) { - AdGroupBidModifierOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation(); - } - AdGroupBidModifierOperation.MergeFrom(other.AdGroupBidModifierOperation); - break; - case OperationOneofCase.AdGroupCriterionCustomizerOperation: - if (AdGroupCriterionCustomizerOperation == null) { - AdGroupCriterionCustomizerOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation(); - } - AdGroupCriterionCustomizerOperation.MergeFrom(other.AdGroupCriterionCustomizerOperation); - break; - case OperationOneofCase.AdGroupCriterionLabelOperation: - if (AdGroupCriterionLabelOperation == null) { - AdGroupCriterionLabelOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation(); - } - AdGroupCriterionLabelOperation.MergeFrom(other.AdGroupCriterionLabelOperation); - break; - case OperationOneofCase.AdGroupCriterionOperation: - if (AdGroupCriterionOperation == null) { - AdGroupCriterionOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation(); - } - AdGroupCriterionOperation.MergeFrom(other.AdGroupCriterionOperation); - break; - case OperationOneofCase.AdGroupCustomizerOperation: - if (AdGroupCustomizerOperation == null) { - AdGroupCustomizerOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation(); - } - AdGroupCustomizerOperation.MergeFrom(other.AdGroupCustomizerOperation); - break; - case OperationOneofCase.AdGroupExtensionSettingOperation: - if (AdGroupExtensionSettingOperation == null) { - AdGroupExtensionSettingOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation(); - } - AdGroupExtensionSettingOperation.MergeFrom(other.AdGroupExtensionSettingOperation); - break; - case OperationOneofCase.AdGroupFeedOperation: - if (AdGroupFeedOperation == null) { - AdGroupFeedOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation(); - } - AdGroupFeedOperation.MergeFrom(other.AdGroupFeedOperation); - break; - case OperationOneofCase.AdGroupLabelOperation: - if (AdGroupLabelOperation == null) { - AdGroupLabelOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation(); - } - AdGroupLabelOperation.MergeFrom(other.AdGroupLabelOperation); - break; - case OperationOneofCase.AdGroupOperation: - if (AdGroupOperation == null) { - AdGroupOperation = new global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation(); - } - AdGroupOperation.MergeFrom(other.AdGroupOperation); - break; - case OperationOneofCase.AdOperation: - if (AdOperation == null) { - AdOperation = new global::Google.Ads.GoogleAds.V12.Services.AdOperation(); - } - AdOperation.MergeFrom(other.AdOperation); - break; - case OperationOneofCase.AdParameterOperation: - if (AdParameterOperation == null) { - AdParameterOperation = new global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation(); - } - AdParameterOperation.MergeFrom(other.AdParameterOperation); - break; - case OperationOneofCase.AssetOperation: - if (AssetOperation == null) { - AssetOperation = new global::Google.Ads.GoogleAds.V12.Services.AssetOperation(); - } - AssetOperation.MergeFrom(other.AssetOperation); - break; - case OperationOneofCase.AssetGroupAssetOperation: - if (AssetGroupAssetOperation == null) { - AssetGroupAssetOperation = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation(); - } - AssetGroupAssetOperation.MergeFrom(other.AssetGroupAssetOperation); - break; - case OperationOneofCase.AssetGroupListingGroupFilterOperation: - if (AssetGroupListingGroupFilterOperation == null) { - AssetGroupListingGroupFilterOperation = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation(); - } - AssetGroupListingGroupFilterOperation.MergeFrom(other.AssetGroupListingGroupFilterOperation); - break; - case OperationOneofCase.AssetGroupSignalOperation: - if (AssetGroupSignalOperation == null) { - AssetGroupSignalOperation = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation(); - } - AssetGroupSignalOperation.MergeFrom(other.AssetGroupSignalOperation); - break; - case OperationOneofCase.AssetGroupOperation: - if (AssetGroupOperation == null) { - AssetGroupOperation = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation(); - } - AssetGroupOperation.MergeFrom(other.AssetGroupOperation); - break; - case OperationOneofCase.AssetSetAssetOperation: - if (AssetSetAssetOperation == null) { - AssetSetAssetOperation = new global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation(); - } - AssetSetAssetOperation.MergeFrom(other.AssetSetAssetOperation); - break; - case OperationOneofCase.AssetSetOperation: - if (AssetSetOperation == null) { - AssetSetOperation = new global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation(); - } - AssetSetOperation.MergeFrom(other.AssetSetOperation); - break; - case OperationOneofCase.AudienceOperation: - if (AudienceOperation == null) { - AudienceOperation = new global::Google.Ads.GoogleAds.V12.Services.AudienceOperation(); - } - AudienceOperation.MergeFrom(other.AudienceOperation); - break; - case OperationOneofCase.BiddingDataExclusionOperation: - if (BiddingDataExclusionOperation == null) { - BiddingDataExclusionOperation = new global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation(); - } - BiddingDataExclusionOperation.MergeFrom(other.BiddingDataExclusionOperation); - break; - case OperationOneofCase.BiddingSeasonalityAdjustmentOperation: - if (BiddingSeasonalityAdjustmentOperation == null) { - BiddingSeasonalityAdjustmentOperation = new global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation(); - } - BiddingSeasonalityAdjustmentOperation.MergeFrom(other.BiddingSeasonalityAdjustmentOperation); - break; - case OperationOneofCase.BiddingStrategyOperation: - if (BiddingStrategyOperation == null) { - BiddingStrategyOperation = new global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation(); - } - BiddingStrategyOperation.MergeFrom(other.BiddingStrategyOperation); - break; - case OperationOneofCase.CampaignAssetOperation: - if (CampaignAssetOperation == null) { - CampaignAssetOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation(); - } - CampaignAssetOperation.MergeFrom(other.CampaignAssetOperation); - break; - case OperationOneofCase.CampaignAssetSetOperation: - if (CampaignAssetSetOperation == null) { - CampaignAssetSetOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation(); - } - CampaignAssetSetOperation.MergeFrom(other.CampaignAssetSetOperation); - break; - case OperationOneofCase.CampaignBidModifierOperation: - if (CampaignBidModifierOperation == null) { - CampaignBidModifierOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation(); - } - CampaignBidModifierOperation.MergeFrom(other.CampaignBidModifierOperation); - break; - case OperationOneofCase.CampaignBudgetOperation: - if (CampaignBudgetOperation == null) { - CampaignBudgetOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation(); - } - CampaignBudgetOperation.MergeFrom(other.CampaignBudgetOperation); - break; - case OperationOneofCase.CampaignConversionGoalOperation: - if (CampaignConversionGoalOperation == null) { - CampaignConversionGoalOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation(); - } - CampaignConversionGoalOperation.MergeFrom(other.CampaignConversionGoalOperation); - break; - case OperationOneofCase.CampaignCriterionOperation: - if (CampaignCriterionOperation == null) { - CampaignCriterionOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation(); - } - CampaignCriterionOperation.MergeFrom(other.CampaignCriterionOperation); - break; - case OperationOneofCase.CampaignCustomizerOperation: - if (CampaignCustomizerOperation == null) { - CampaignCustomizerOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation(); - } - CampaignCustomizerOperation.MergeFrom(other.CampaignCustomizerOperation); - break; - case OperationOneofCase.CampaignDraftOperation: - if (CampaignDraftOperation == null) { - CampaignDraftOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation(); - } - CampaignDraftOperation.MergeFrom(other.CampaignDraftOperation); - break; - case OperationOneofCase.CampaignExtensionSettingOperation: - if (CampaignExtensionSettingOperation == null) { - CampaignExtensionSettingOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation(); - } - CampaignExtensionSettingOperation.MergeFrom(other.CampaignExtensionSettingOperation); - break; - case OperationOneofCase.CampaignFeedOperation: - if (CampaignFeedOperation == null) { - CampaignFeedOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation(); - } - CampaignFeedOperation.MergeFrom(other.CampaignFeedOperation); - break; - case OperationOneofCase.CampaignGroupOperation: - if (CampaignGroupOperation == null) { - CampaignGroupOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation(); - } - CampaignGroupOperation.MergeFrom(other.CampaignGroupOperation); - break; - case OperationOneofCase.CampaignLabelOperation: - if (CampaignLabelOperation == null) { - CampaignLabelOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation(); - } - CampaignLabelOperation.MergeFrom(other.CampaignLabelOperation); - break; - case OperationOneofCase.CampaignOperation: - if (CampaignOperation == null) { - CampaignOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignOperation(); - } - CampaignOperation.MergeFrom(other.CampaignOperation); - break; - case OperationOneofCase.CampaignSharedSetOperation: - if (CampaignSharedSetOperation == null) { - CampaignSharedSetOperation = new global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation(); - } - CampaignSharedSetOperation.MergeFrom(other.CampaignSharedSetOperation); - break; - case OperationOneofCase.ConversionActionOperation: - if (ConversionActionOperation == null) { - ConversionActionOperation = new global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation(); - } - ConversionActionOperation.MergeFrom(other.ConversionActionOperation); - break; - case OperationOneofCase.ConversionCustomVariableOperation: - if (ConversionCustomVariableOperation == null) { - ConversionCustomVariableOperation = new global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation(); - } - ConversionCustomVariableOperation.MergeFrom(other.ConversionCustomVariableOperation); - break; - case OperationOneofCase.ConversionGoalCampaignConfigOperation: - if (ConversionGoalCampaignConfigOperation == null) { - ConversionGoalCampaignConfigOperation = new global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation(); - } - ConversionGoalCampaignConfigOperation.MergeFrom(other.ConversionGoalCampaignConfigOperation); - break; - case OperationOneofCase.ConversionValueRuleOperation: - if (ConversionValueRuleOperation == null) { - ConversionValueRuleOperation = new global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation(); - } - ConversionValueRuleOperation.MergeFrom(other.ConversionValueRuleOperation); - break; - case OperationOneofCase.ConversionValueRuleSetOperation: - if (ConversionValueRuleSetOperation == null) { - ConversionValueRuleSetOperation = new global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation(); - } - ConversionValueRuleSetOperation.MergeFrom(other.ConversionValueRuleSetOperation); - break; - case OperationOneofCase.CustomConversionGoalOperation: - if (CustomConversionGoalOperation == null) { - CustomConversionGoalOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation(); - } - CustomConversionGoalOperation.MergeFrom(other.CustomConversionGoalOperation); - break; - case OperationOneofCase.CustomerAssetOperation: - if (CustomerAssetOperation == null) { - CustomerAssetOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation(); - } - CustomerAssetOperation.MergeFrom(other.CustomerAssetOperation); - break; - case OperationOneofCase.CustomerConversionGoalOperation: - if (CustomerConversionGoalOperation == null) { - CustomerConversionGoalOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation(); - } - CustomerConversionGoalOperation.MergeFrom(other.CustomerConversionGoalOperation); - break; - case OperationOneofCase.CustomerCustomizerOperation: - if (CustomerCustomizerOperation == null) { - CustomerCustomizerOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation(); - } - CustomerCustomizerOperation.MergeFrom(other.CustomerCustomizerOperation); - break; - case OperationOneofCase.CustomerExtensionSettingOperation: - if (CustomerExtensionSettingOperation == null) { - CustomerExtensionSettingOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation(); - } - CustomerExtensionSettingOperation.MergeFrom(other.CustomerExtensionSettingOperation); - break; - case OperationOneofCase.CustomerFeedOperation: - if (CustomerFeedOperation == null) { - CustomerFeedOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation(); - } - CustomerFeedOperation.MergeFrom(other.CustomerFeedOperation); - break; - case OperationOneofCase.CustomerLabelOperation: - if (CustomerLabelOperation == null) { - CustomerLabelOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation(); - } - CustomerLabelOperation.MergeFrom(other.CustomerLabelOperation); - break; - case OperationOneofCase.CustomerNegativeCriterionOperation: - if (CustomerNegativeCriterionOperation == null) { - CustomerNegativeCriterionOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation(); - } - CustomerNegativeCriterionOperation.MergeFrom(other.CustomerNegativeCriterionOperation); - break; - case OperationOneofCase.CustomerOperation: - if (CustomerOperation == null) { - CustomerOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomerOperation(); - } - CustomerOperation.MergeFrom(other.CustomerOperation); - break; - case OperationOneofCase.CustomizerAttributeOperation: - if (CustomizerAttributeOperation == null) { - CustomizerAttributeOperation = new global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation(); - } - CustomizerAttributeOperation.MergeFrom(other.CustomizerAttributeOperation); - break; - case OperationOneofCase.ExperimentOperation: - if (ExperimentOperation == null) { - ExperimentOperation = new global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation(); - } - ExperimentOperation.MergeFrom(other.ExperimentOperation); - break; - case OperationOneofCase.ExperimentArmOperation: - if (ExperimentArmOperation == null) { - ExperimentArmOperation = new global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation(); - } - ExperimentArmOperation.MergeFrom(other.ExperimentArmOperation); - break; - case OperationOneofCase.ExtensionFeedItemOperation: - if (ExtensionFeedItemOperation == null) { - ExtensionFeedItemOperation = new global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation(); - } - ExtensionFeedItemOperation.MergeFrom(other.ExtensionFeedItemOperation); - break; - case OperationOneofCase.FeedItemOperation: - if (FeedItemOperation == null) { - FeedItemOperation = new global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation(); - } - FeedItemOperation.MergeFrom(other.FeedItemOperation); - break; - case OperationOneofCase.FeedItemSetOperation: - if (FeedItemSetOperation == null) { - FeedItemSetOperation = new global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation(); - } - FeedItemSetOperation.MergeFrom(other.FeedItemSetOperation); - break; - case OperationOneofCase.FeedItemSetLinkOperation: - if (FeedItemSetLinkOperation == null) { - FeedItemSetLinkOperation = new global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation(); - } - FeedItemSetLinkOperation.MergeFrom(other.FeedItemSetLinkOperation); - break; - case OperationOneofCase.FeedItemTargetOperation: - if (FeedItemTargetOperation == null) { - FeedItemTargetOperation = new global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation(); - } - FeedItemTargetOperation.MergeFrom(other.FeedItemTargetOperation); - break; - case OperationOneofCase.FeedMappingOperation: - if (FeedMappingOperation == null) { - FeedMappingOperation = new global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation(); - } - FeedMappingOperation.MergeFrom(other.FeedMappingOperation); - break; - case OperationOneofCase.FeedOperation: - if (FeedOperation == null) { - FeedOperation = new global::Google.Ads.GoogleAds.V12.Services.FeedOperation(); - } - FeedOperation.MergeFrom(other.FeedOperation); - break; - case OperationOneofCase.KeywordPlanAdGroupOperation: - if (KeywordPlanAdGroupOperation == null) { - KeywordPlanAdGroupOperation = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation(); - } - KeywordPlanAdGroupOperation.MergeFrom(other.KeywordPlanAdGroupOperation); - break; - case OperationOneofCase.KeywordPlanAdGroupKeywordOperation: - if (KeywordPlanAdGroupKeywordOperation == null) { - KeywordPlanAdGroupKeywordOperation = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation(); - } - KeywordPlanAdGroupKeywordOperation.MergeFrom(other.KeywordPlanAdGroupKeywordOperation); - break; - case OperationOneofCase.KeywordPlanCampaignKeywordOperation: - if (KeywordPlanCampaignKeywordOperation == null) { - KeywordPlanCampaignKeywordOperation = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation(); - } - KeywordPlanCampaignKeywordOperation.MergeFrom(other.KeywordPlanCampaignKeywordOperation); - break; - case OperationOneofCase.KeywordPlanCampaignOperation: - if (KeywordPlanCampaignOperation == null) { - KeywordPlanCampaignOperation = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation(); - } - KeywordPlanCampaignOperation.MergeFrom(other.KeywordPlanCampaignOperation); - break; - case OperationOneofCase.KeywordPlanOperation: - if (KeywordPlanOperation == null) { - KeywordPlanOperation = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation(); - } - KeywordPlanOperation.MergeFrom(other.KeywordPlanOperation); - break; - case OperationOneofCase.LabelOperation: - if (LabelOperation == null) { - LabelOperation = new global::Google.Ads.GoogleAds.V12.Services.LabelOperation(); - } - LabelOperation.MergeFrom(other.LabelOperation); - break; - case OperationOneofCase.MediaFileOperation: - if (MediaFileOperation == null) { - MediaFileOperation = new global::Google.Ads.GoogleAds.V12.Services.MediaFileOperation(); - } - MediaFileOperation.MergeFrom(other.MediaFileOperation); - break; - case OperationOneofCase.RemarketingActionOperation: - if (RemarketingActionOperation == null) { - RemarketingActionOperation = new global::Google.Ads.GoogleAds.V12.Services.RemarketingActionOperation(); - } - RemarketingActionOperation.MergeFrom(other.RemarketingActionOperation); - break; - case OperationOneofCase.SharedCriterionOperation: - if (SharedCriterionOperation == null) { - SharedCriterionOperation = new global::Google.Ads.GoogleAds.V12.Services.SharedCriterionOperation(); - } - SharedCriterionOperation.MergeFrom(other.SharedCriterionOperation); - break; - case OperationOneofCase.SharedSetOperation: - if (SharedSetOperation == null) { - SharedSetOperation = new global::Google.Ads.GoogleAds.V12.Services.SharedSetOperation(); - } - SharedSetOperation.MergeFrom(other.SharedSetOperation); - break; - case OperationOneofCase.SmartCampaignSettingOperation: - if (SmartCampaignSettingOperation == null) { - SmartCampaignSettingOperation = new global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingOperation(); - } - SmartCampaignSettingOperation.MergeFrom(other.SmartCampaignSettingOperation); - break; - case OperationOneofCase.UserListOperation: - if (UserListOperation == null) { - UserListOperation = new global::Google.Ads.GoogleAds.V12.Services.UserListOperation(); - } - UserListOperation.MergeFrom(other.UserListOperation); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation(); - if (operationCase_ == OperationOneofCase.AdGroupAdOperation) { - subBuilder.MergeFrom(AdGroupAdOperation); - } - input.ReadMessage(subBuilder); - AdGroupAdOperation = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation(); - if (operationCase_ == OperationOneofCase.AdGroupBidModifierOperation) { - subBuilder.MergeFrom(AdGroupBidModifierOperation); - } - input.ReadMessage(subBuilder); - AdGroupBidModifierOperation = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionOperation) { - subBuilder.MergeFrom(AdGroupCriterionOperation); - } - input.ReadMessage(subBuilder); - AdGroupCriterionOperation = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation(); - if (operationCase_ == OperationOneofCase.AdGroupOperation) { - subBuilder.MergeFrom(AdGroupOperation); - } - input.ReadMessage(subBuilder); - AdGroupOperation = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation(); - if (operationCase_ == OperationOneofCase.BiddingStrategyOperation) { - subBuilder.MergeFrom(BiddingStrategyOperation); - } - input.ReadMessage(subBuilder); - BiddingStrategyOperation = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation(); - if (operationCase_ == OperationOneofCase.CampaignBidModifierOperation) { - subBuilder.MergeFrom(CampaignBidModifierOperation); - } - input.ReadMessage(subBuilder); - CampaignBidModifierOperation = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation(); - if (operationCase_ == OperationOneofCase.CampaignBudgetOperation) { - subBuilder.MergeFrom(CampaignBudgetOperation); - } - input.ReadMessage(subBuilder); - CampaignBudgetOperation = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation(); - if (operationCase_ == OperationOneofCase.CampaignGroupOperation) { - subBuilder.MergeFrom(CampaignGroupOperation); - } - input.ReadMessage(subBuilder); - CampaignGroupOperation = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Services.CampaignOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignOperation(); - if (operationCase_ == OperationOneofCase.CampaignOperation) { - subBuilder.MergeFrom(CampaignOperation); - } - input.ReadMessage(subBuilder); - CampaignOperation = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation(); - if (operationCase_ == OperationOneofCase.CampaignSharedSetOperation) { - subBuilder.MergeFrom(CampaignSharedSetOperation); - } - input.ReadMessage(subBuilder); - CampaignSharedSetOperation = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation(); - if (operationCase_ == OperationOneofCase.ConversionActionOperation) { - subBuilder.MergeFrom(ConversionActionOperation); - } - input.ReadMessage(subBuilder); - ConversionActionOperation = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation(); - if (operationCase_ == OperationOneofCase.CampaignCriterionOperation) { - subBuilder.MergeFrom(CampaignCriterionOperation); - } - input.ReadMessage(subBuilder); - CampaignCriterionOperation = subBuilder; - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Services.SharedCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SharedCriterionOperation(); - if (operationCase_ == OperationOneofCase.SharedCriterionOperation) { - subBuilder.MergeFrom(SharedCriterionOperation); - } - input.ReadMessage(subBuilder); - SharedCriterionOperation = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Services.SharedSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SharedSetOperation(); - if (operationCase_ == OperationOneofCase.SharedSetOperation) { - subBuilder.MergeFrom(SharedSetOperation); - } - input.ReadMessage(subBuilder); - SharedSetOperation = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Services.UserListOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.UserListOperation(); - if (operationCase_ == OperationOneofCase.UserListOperation) { - subBuilder.MergeFrom(UserListOperation); - } - input.ReadMessage(subBuilder); - UserListOperation = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation(); - if (operationCase_ == OperationOneofCase.AdGroupAdLabelOperation) { - subBuilder.MergeFrom(AdGroupAdLabelOperation); - } - input.ReadMessage(subBuilder); - AdGroupAdLabelOperation = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionLabelOperation) { - subBuilder.MergeFrom(AdGroupCriterionLabelOperation); - } - input.ReadMessage(subBuilder); - AdGroupCriterionLabelOperation = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation(); - if (operationCase_ == OperationOneofCase.AdGroupExtensionSettingOperation) { - subBuilder.MergeFrom(AdGroupExtensionSettingOperation); - } - input.ReadMessage(subBuilder); - AdGroupExtensionSettingOperation = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation(); - if (operationCase_ == OperationOneofCase.AdGroupFeedOperation) { - subBuilder.MergeFrom(AdGroupFeedOperation); - } - input.ReadMessage(subBuilder); - AdGroupFeedOperation = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation(); - if (operationCase_ == OperationOneofCase.AdGroupLabelOperation) { - subBuilder.MergeFrom(AdGroupLabelOperation); - } - input.ReadMessage(subBuilder); - AdGroupLabelOperation = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation(); - if (operationCase_ == OperationOneofCase.AdParameterOperation) { - subBuilder.MergeFrom(AdParameterOperation); - } - input.ReadMessage(subBuilder); - AdParameterOperation = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Services.AssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetOperation(); - if (operationCase_ == OperationOneofCase.AssetOperation) { - subBuilder.MergeFrom(AssetOperation); - } - input.ReadMessage(subBuilder); - AssetOperation = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation(); - if (operationCase_ == OperationOneofCase.CampaignDraftOperation) { - subBuilder.MergeFrom(CampaignDraftOperation); - } - input.ReadMessage(subBuilder); - CampaignDraftOperation = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation(); - if (operationCase_ == OperationOneofCase.CampaignExtensionSettingOperation) { - subBuilder.MergeFrom(CampaignExtensionSettingOperation); - } - input.ReadMessage(subBuilder); - CampaignExtensionSettingOperation = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation(); - if (operationCase_ == OperationOneofCase.CampaignFeedOperation) { - subBuilder.MergeFrom(CampaignFeedOperation); - } - input.ReadMessage(subBuilder); - CampaignFeedOperation = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation(); - if (operationCase_ == OperationOneofCase.CampaignLabelOperation) { - subBuilder.MergeFrom(CampaignLabelOperation); - } - input.ReadMessage(subBuilder); - CampaignLabelOperation = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation(); - if (operationCase_ == OperationOneofCase.CustomerExtensionSettingOperation) { - subBuilder.MergeFrom(CustomerExtensionSettingOperation); - } - input.ReadMessage(subBuilder); - CustomerExtensionSettingOperation = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation(); - if (operationCase_ == OperationOneofCase.CustomerFeedOperation) { - subBuilder.MergeFrom(CustomerFeedOperation); - } - input.ReadMessage(subBuilder); - CustomerFeedOperation = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation(); - if (operationCase_ == OperationOneofCase.CustomerLabelOperation) { - subBuilder.MergeFrom(CustomerLabelOperation); - } - input.ReadMessage(subBuilder); - CustomerLabelOperation = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation(); - if (operationCase_ == OperationOneofCase.CustomerNegativeCriterionOperation) { - subBuilder.MergeFrom(CustomerNegativeCriterionOperation); - } - input.ReadMessage(subBuilder); - CustomerNegativeCriterionOperation = subBuilder; - break; - } - case 282: { - global::Google.Ads.GoogleAds.V12.Services.CustomerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerOperation(); - if (operationCase_ == OperationOneofCase.CustomerOperation) { - subBuilder.MergeFrom(CustomerOperation); - } - input.ReadMessage(subBuilder); - CustomerOperation = subBuilder; - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation(); - if (operationCase_ == OperationOneofCase.ExtensionFeedItemOperation) { - subBuilder.MergeFrom(ExtensionFeedItemOperation); - } - input.ReadMessage(subBuilder); - ExtensionFeedItemOperation = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation(); - if (operationCase_ == OperationOneofCase.FeedItemOperation) { - subBuilder.MergeFrom(FeedItemOperation); - } - input.ReadMessage(subBuilder); - FeedItemOperation = subBuilder; - break; - } - case 306: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation(); - if (operationCase_ == OperationOneofCase.FeedItemTargetOperation) { - subBuilder.MergeFrom(FeedItemTargetOperation); - } - input.ReadMessage(subBuilder); - FeedItemTargetOperation = subBuilder; - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation(); - if (operationCase_ == OperationOneofCase.FeedMappingOperation) { - subBuilder.MergeFrom(FeedMappingOperation); - } - input.ReadMessage(subBuilder); - FeedMappingOperation = subBuilder; - break; - } - case 322: { - global::Google.Ads.GoogleAds.V12.Services.FeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedOperation(); - if (operationCase_ == OperationOneofCase.FeedOperation) { - subBuilder.MergeFrom(FeedOperation); - } - input.ReadMessage(subBuilder); - FeedOperation = subBuilder; - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Services.LabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.LabelOperation(); - if (operationCase_ == OperationOneofCase.LabelOperation) { - subBuilder.MergeFrom(LabelOperation); - } - input.ReadMessage(subBuilder); - LabelOperation = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Services.MediaFileOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MediaFileOperation(); - if (operationCase_ == OperationOneofCase.MediaFileOperation) { - subBuilder.MergeFrom(MediaFileOperation); - } - input.ReadMessage(subBuilder); - MediaFileOperation = subBuilder; - break; - } - case 346: { - global::Google.Ads.GoogleAds.V12.Services.RemarketingActionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.RemarketingActionOperation(); - if (operationCase_ == OperationOneofCase.RemarketingActionOperation) { - subBuilder.MergeFrom(RemarketingActionOperation); - } - input.ReadMessage(subBuilder); - RemarketingActionOperation = subBuilder; - break; - } - case 354: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupOperation) { - subBuilder.MergeFrom(KeywordPlanAdGroupOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupOperation = subBuilder; - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignOperation) { - subBuilder.MergeFrom(KeywordPlanCampaignOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignOperation = subBuilder; - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanOperation) { - subBuilder.MergeFrom(KeywordPlanOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanOperation = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Services.AdOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdOperation(); - if (operationCase_ == OperationOneofCase.AdOperation) { - subBuilder.MergeFrom(AdOperation); - } - input.ReadMessage(subBuilder); - AdOperation = subBuilder; - break; - } - case 402: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupKeywordOperation) { - subBuilder.MergeFrom(KeywordPlanAdGroupKeywordOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupKeywordOperation = subBuilder; - break; - } - case 410: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignKeywordOperation) { - subBuilder.MergeFrom(KeywordPlanCampaignKeywordOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignKeywordOperation = subBuilder; - break; - } - case 418: { - global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation(); - if (operationCase_ == OperationOneofCase.CampaignAssetOperation) { - subBuilder.MergeFrom(CampaignAssetOperation); - } - input.ReadMessage(subBuilder); - CampaignAssetOperation = subBuilder; - break; - } - case 426: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation(); - if (operationCase_ == OperationOneofCase.FeedItemSetOperation) { - subBuilder.MergeFrom(FeedItemSetOperation); - } - input.ReadMessage(subBuilder); - FeedItemSetOperation = subBuilder; - break; - } - case 434: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation(); - if (operationCase_ == OperationOneofCase.FeedItemSetLinkOperation) { - subBuilder.MergeFrom(FeedItemSetLinkOperation); - } - input.ReadMessage(subBuilder); - FeedItemSetLinkOperation = subBuilder; - break; - } - case 442: { - global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation(); - if (operationCase_ == OperationOneofCase.ConversionCustomVariableOperation) { - subBuilder.MergeFrom(ConversionCustomVariableOperation); - } - input.ReadMessage(subBuilder); - ConversionCustomVariableOperation = subBuilder; - break; - } - case 450: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation(); - if (operationCase_ == OperationOneofCase.AdGroupAssetOperation) { - subBuilder.MergeFrom(AdGroupAssetOperation); - } - input.ReadMessage(subBuilder); - AdGroupAssetOperation = subBuilder; - break; - } - case 458: { - global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation(); - if (operationCase_ == OperationOneofCase.CustomerAssetOperation) { - subBuilder.MergeFrom(CustomerAssetOperation); - } - input.ReadMessage(subBuilder); - CustomerAssetOperation = subBuilder; - break; - } - case 466: { - global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation(); - if (operationCase_ == OperationOneofCase.BiddingDataExclusionOperation) { - subBuilder.MergeFrom(BiddingDataExclusionOperation); - } - input.ReadMessage(subBuilder); - BiddingDataExclusionOperation = subBuilder; - break; - } - case 474: { - global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation(); - if (operationCase_ == OperationOneofCase.BiddingSeasonalityAdjustmentOperation) { - subBuilder.MergeFrom(BiddingSeasonalityAdjustmentOperation); - } - input.ReadMessage(subBuilder); - BiddingSeasonalityAdjustmentOperation = subBuilder; - break; - } - case 490: { - global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingOperation(); - if (operationCase_ == OperationOneofCase.SmartCampaignSettingOperation) { - subBuilder.MergeFrom(SmartCampaignSettingOperation); - } - input.ReadMessage(subBuilder); - SmartCampaignSettingOperation = subBuilder; - break; - } - case 498: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupOperation) { - subBuilder.MergeFrom(AssetGroupOperation); - } - input.ReadMessage(subBuilder); - AssetGroupOperation = subBuilder; - break; - } - case 506: { - global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation(); - if (operationCase_ == OperationOneofCase.ConversionValueRuleOperation) { - subBuilder.MergeFrom(ConversionValueRuleOperation); - } - input.ReadMessage(subBuilder); - ConversionValueRuleOperation = subBuilder; - break; - } - case 514: { - global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation(); - if (operationCase_ == OperationOneofCase.ConversionValueRuleSetOperation) { - subBuilder.MergeFrom(ConversionValueRuleSetOperation); - } - input.ReadMessage(subBuilder); - ConversionValueRuleSetOperation = subBuilder; - break; - } - case 522: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupAssetOperation) { - subBuilder.MergeFrom(AssetGroupAssetOperation); - } - input.ReadMessage(subBuilder); - AssetGroupAssetOperation = subBuilder; - break; - } - case 530: { - global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation(); - if (operationCase_ == OperationOneofCase.CustomerConversionGoalOperation) { - subBuilder.MergeFrom(CustomerConversionGoalOperation); - } - input.ReadMessage(subBuilder); - CustomerConversionGoalOperation = subBuilder; - break; - } - case 538: { - global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation(); - if (operationCase_ == OperationOneofCase.CampaignConversionGoalOperation) { - subBuilder.MergeFrom(CampaignConversionGoalOperation); - } - input.ReadMessage(subBuilder); - CampaignConversionGoalOperation = subBuilder; - break; - } - case 546: { - global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation(); - if (operationCase_ == OperationOneofCase.CustomConversionGoalOperation) { - subBuilder.MergeFrom(CustomConversionGoalOperation); - } - input.ReadMessage(subBuilder); - CustomConversionGoalOperation = subBuilder; - break; - } - case 554: { - global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation(); - if (operationCase_ == OperationOneofCase.ConversionGoalCampaignConfigOperation) { - subBuilder.MergeFrom(ConversionGoalCampaignConfigOperation); - } - input.ReadMessage(subBuilder); - ConversionGoalCampaignConfigOperation = subBuilder; - break; - } - case 562: { - global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation(); - if (operationCase_ == OperationOneofCase.CustomizerAttributeOperation) { - subBuilder.MergeFrom(CustomizerAttributeOperation); - } - input.ReadMessage(subBuilder); - CustomizerAttributeOperation = subBuilder; - break; - } - case 570: { - global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation(); - if (operationCase_ == OperationOneofCase.AssetSetAssetOperation) { - subBuilder.MergeFrom(AssetSetAssetOperation); - } - input.ReadMessage(subBuilder); - AssetSetAssetOperation = subBuilder; - break; - } - case 578: { - global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation(); - if (operationCase_ == OperationOneofCase.AssetSetOperation) { - subBuilder.MergeFrom(AssetSetOperation); - } - input.ReadMessage(subBuilder); - AssetSetOperation = subBuilder; - break; - } - case 586: { - global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation(); - if (operationCase_ == OperationOneofCase.CampaignAssetSetOperation) { - subBuilder.MergeFrom(CampaignAssetSetOperation); - } - input.ReadMessage(subBuilder); - CampaignAssetSetOperation = subBuilder; - break; - } - case 602: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCustomizerOperation) { - subBuilder.MergeFrom(AdGroupCustomizerOperation); - } - input.ReadMessage(subBuilder); - AdGroupCustomizerOperation = subBuilder; - break; - } - case 610: { - global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation(); - if (operationCase_ == OperationOneofCase.CampaignCustomizerOperation) { - subBuilder.MergeFrom(CampaignCustomizerOperation); - } - input.ReadMessage(subBuilder); - CampaignCustomizerOperation = subBuilder; - break; - } - case 618: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionCustomizerOperation) { - subBuilder.MergeFrom(AdGroupCriterionCustomizerOperation); - } - input.ReadMessage(subBuilder); - AdGroupCriterionCustomizerOperation = subBuilder; - break; - } - case 626: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupListingGroupFilterOperation) { - subBuilder.MergeFrom(AssetGroupListingGroupFilterOperation); - } - input.ReadMessage(subBuilder); - AssetGroupListingGroupFilterOperation = subBuilder; - break; - } - case 634: { - global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation(); - if (operationCase_ == OperationOneofCase.CustomerCustomizerOperation) { - subBuilder.MergeFrom(CustomerCustomizerOperation); - } - input.ReadMessage(subBuilder); - CustomerCustomizerOperation = subBuilder; - break; - } - case 642: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupSignalOperation) { - subBuilder.MergeFrom(AssetGroupSignalOperation); - } - input.ReadMessage(subBuilder); - AssetGroupSignalOperation = subBuilder; - break; - } - case 650: { - global::Google.Ads.GoogleAds.V12.Services.AudienceOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceOperation(); - if (operationCase_ == OperationOneofCase.AudienceOperation) { - subBuilder.MergeFrom(AudienceOperation); - } - input.ReadMessage(subBuilder); - AudienceOperation = subBuilder; - break; - } - case 658: { - global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation(); - if (operationCase_ == OperationOneofCase.ExperimentOperation) { - subBuilder.MergeFrom(ExperimentOperation); - } - input.ReadMessage(subBuilder); - ExperimentOperation = subBuilder; - break; - } - case 666: { - global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation(); - if (operationCase_ == OperationOneofCase.ExperimentArmOperation) { - subBuilder.MergeFrom(ExperimentArmOperation); - } - input.ReadMessage(subBuilder); - ExperimentArmOperation = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAdOperation(); - if (operationCase_ == OperationOneofCase.AdGroupAdOperation) { - subBuilder.MergeFrom(AdGroupAdOperation); - } - input.ReadMessage(subBuilder); - AdGroupAdOperation = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupBidModifierOperation(); - if (operationCase_ == OperationOneofCase.AdGroupBidModifierOperation) { - subBuilder.MergeFrom(AdGroupBidModifierOperation); - } - input.ReadMessage(subBuilder); - AdGroupBidModifierOperation = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionOperation) { - subBuilder.MergeFrom(AdGroupCriterionOperation); - } - input.ReadMessage(subBuilder); - AdGroupCriterionOperation = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupOperation(); - if (operationCase_ == OperationOneofCase.AdGroupOperation) { - subBuilder.MergeFrom(AdGroupOperation); - } - input.ReadMessage(subBuilder); - AdGroupOperation = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.BiddingStrategyOperation(); - if (operationCase_ == OperationOneofCase.BiddingStrategyOperation) { - subBuilder.MergeFrom(BiddingStrategyOperation); - } - input.ReadMessage(subBuilder); - BiddingStrategyOperation = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignBidModifierOperation(); - if (operationCase_ == OperationOneofCase.CampaignBidModifierOperation) { - subBuilder.MergeFrom(CampaignBidModifierOperation); - } - input.ReadMessage(subBuilder); - CampaignBidModifierOperation = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignBudgetOperation(); - if (operationCase_ == OperationOneofCase.CampaignBudgetOperation) { - subBuilder.MergeFrom(CampaignBudgetOperation); - } - input.ReadMessage(subBuilder); - CampaignBudgetOperation = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignGroupOperation(); - if (operationCase_ == OperationOneofCase.CampaignGroupOperation) { - subBuilder.MergeFrom(CampaignGroupOperation); - } - input.ReadMessage(subBuilder); - CampaignGroupOperation = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Services.CampaignOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignOperation(); - if (operationCase_ == OperationOneofCase.CampaignOperation) { - subBuilder.MergeFrom(CampaignOperation); - } - input.ReadMessage(subBuilder); - CampaignOperation = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignSharedSetOperation(); - if (operationCase_ == OperationOneofCase.CampaignSharedSetOperation) { - subBuilder.MergeFrom(CampaignSharedSetOperation); - } - input.ReadMessage(subBuilder); - CampaignSharedSetOperation = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionActionOperation(); - if (operationCase_ == OperationOneofCase.ConversionActionOperation) { - subBuilder.MergeFrom(ConversionActionOperation); - } - input.ReadMessage(subBuilder); - ConversionActionOperation = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignCriterionOperation(); - if (operationCase_ == OperationOneofCase.CampaignCriterionOperation) { - subBuilder.MergeFrom(CampaignCriterionOperation); - } - input.ReadMessage(subBuilder); - CampaignCriterionOperation = subBuilder; - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Services.SharedCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SharedCriterionOperation(); - if (operationCase_ == OperationOneofCase.SharedCriterionOperation) { - subBuilder.MergeFrom(SharedCriterionOperation); - } - input.ReadMessage(subBuilder); - SharedCriterionOperation = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Services.SharedSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SharedSetOperation(); - if (operationCase_ == OperationOneofCase.SharedSetOperation) { - subBuilder.MergeFrom(SharedSetOperation); - } - input.ReadMessage(subBuilder); - SharedSetOperation = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Services.UserListOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.UserListOperation(); - if (operationCase_ == OperationOneofCase.UserListOperation) { - subBuilder.MergeFrom(UserListOperation); - } - input.ReadMessage(subBuilder); - UserListOperation = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAdLabelOperation(); - if (operationCase_ == OperationOneofCase.AdGroupAdLabelOperation) { - subBuilder.MergeFrom(AdGroupAdLabelOperation); - } - input.ReadMessage(subBuilder); - AdGroupAdLabelOperation = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionLabelOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionLabelOperation) { - subBuilder.MergeFrom(AdGroupCriterionLabelOperation); - } - input.ReadMessage(subBuilder); - AdGroupCriterionLabelOperation = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupExtensionSettingOperation(); - if (operationCase_ == OperationOneofCase.AdGroupExtensionSettingOperation) { - subBuilder.MergeFrom(AdGroupExtensionSettingOperation); - } - input.ReadMessage(subBuilder); - AdGroupExtensionSettingOperation = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupFeedOperation(); - if (operationCase_ == OperationOneofCase.AdGroupFeedOperation) { - subBuilder.MergeFrom(AdGroupFeedOperation); - } - input.ReadMessage(subBuilder); - AdGroupFeedOperation = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupLabelOperation(); - if (operationCase_ == OperationOneofCase.AdGroupLabelOperation) { - subBuilder.MergeFrom(AdGroupLabelOperation); - } - input.ReadMessage(subBuilder); - AdGroupLabelOperation = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdParameterOperation(); - if (operationCase_ == OperationOneofCase.AdParameterOperation) { - subBuilder.MergeFrom(AdParameterOperation); - } - input.ReadMessage(subBuilder); - AdParameterOperation = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Services.AssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetOperation(); - if (operationCase_ == OperationOneofCase.AssetOperation) { - subBuilder.MergeFrom(AssetOperation); - } - input.ReadMessage(subBuilder); - AssetOperation = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignDraftOperation(); - if (operationCase_ == OperationOneofCase.CampaignDraftOperation) { - subBuilder.MergeFrom(CampaignDraftOperation); - } - input.ReadMessage(subBuilder); - CampaignDraftOperation = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignExtensionSettingOperation(); - if (operationCase_ == OperationOneofCase.CampaignExtensionSettingOperation) { - subBuilder.MergeFrom(CampaignExtensionSettingOperation); - } - input.ReadMessage(subBuilder); - CampaignExtensionSettingOperation = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignFeedOperation(); - if (operationCase_ == OperationOneofCase.CampaignFeedOperation) { - subBuilder.MergeFrom(CampaignFeedOperation); - } - input.ReadMessage(subBuilder); - CampaignFeedOperation = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignLabelOperation(); - if (operationCase_ == OperationOneofCase.CampaignLabelOperation) { - subBuilder.MergeFrom(CampaignLabelOperation); - } - input.ReadMessage(subBuilder); - CampaignLabelOperation = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerExtensionSettingOperation(); - if (operationCase_ == OperationOneofCase.CustomerExtensionSettingOperation) { - subBuilder.MergeFrom(CustomerExtensionSettingOperation); - } - input.ReadMessage(subBuilder); - CustomerExtensionSettingOperation = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerFeedOperation(); - if (operationCase_ == OperationOneofCase.CustomerFeedOperation) { - subBuilder.MergeFrom(CustomerFeedOperation); - } - input.ReadMessage(subBuilder); - CustomerFeedOperation = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerLabelOperation(); - if (operationCase_ == OperationOneofCase.CustomerLabelOperation) { - subBuilder.MergeFrom(CustomerLabelOperation); - } - input.ReadMessage(subBuilder); - CustomerLabelOperation = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerNegativeCriterionOperation(); - if (operationCase_ == OperationOneofCase.CustomerNegativeCriterionOperation) { - subBuilder.MergeFrom(CustomerNegativeCriterionOperation); - } - input.ReadMessage(subBuilder); - CustomerNegativeCriterionOperation = subBuilder; - break; - } - case 282: { - global::Google.Ads.GoogleAds.V12.Services.CustomerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerOperation(); - if (operationCase_ == OperationOneofCase.CustomerOperation) { - subBuilder.MergeFrom(CustomerOperation); - } - input.ReadMessage(subBuilder); - CustomerOperation = subBuilder; - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ExtensionFeedItemOperation(); - if (operationCase_ == OperationOneofCase.ExtensionFeedItemOperation) { - subBuilder.MergeFrom(ExtensionFeedItemOperation); - } - input.ReadMessage(subBuilder); - ExtensionFeedItemOperation = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemOperation(); - if (operationCase_ == OperationOneofCase.FeedItemOperation) { - subBuilder.MergeFrom(FeedItemOperation); - } - input.ReadMessage(subBuilder); - FeedItemOperation = subBuilder; - break; - } - case 306: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemTargetOperation(); - if (operationCase_ == OperationOneofCase.FeedItemTargetOperation) { - subBuilder.MergeFrom(FeedItemTargetOperation); - } - input.ReadMessage(subBuilder); - FeedItemTargetOperation = subBuilder; - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedMappingOperation(); - if (operationCase_ == OperationOneofCase.FeedMappingOperation) { - subBuilder.MergeFrom(FeedMappingOperation); - } - input.ReadMessage(subBuilder); - FeedMappingOperation = subBuilder; - break; - } - case 322: { - global::Google.Ads.GoogleAds.V12.Services.FeedOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedOperation(); - if (operationCase_ == OperationOneofCase.FeedOperation) { - subBuilder.MergeFrom(FeedOperation); - } - input.ReadMessage(subBuilder); - FeedOperation = subBuilder; - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Services.LabelOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.LabelOperation(); - if (operationCase_ == OperationOneofCase.LabelOperation) { - subBuilder.MergeFrom(LabelOperation); - } - input.ReadMessage(subBuilder); - LabelOperation = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Services.MediaFileOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MediaFileOperation(); - if (operationCase_ == OperationOneofCase.MediaFileOperation) { - subBuilder.MergeFrom(MediaFileOperation); - } - input.ReadMessage(subBuilder); - MediaFileOperation = subBuilder; - break; - } - case 346: { - global::Google.Ads.GoogleAds.V12.Services.RemarketingActionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.RemarketingActionOperation(); - if (operationCase_ == OperationOneofCase.RemarketingActionOperation) { - subBuilder.MergeFrom(RemarketingActionOperation); - } - input.ReadMessage(subBuilder); - RemarketingActionOperation = subBuilder; - break; - } - case 354: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupOperation) { - subBuilder.MergeFrom(KeywordPlanAdGroupOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupOperation = subBuilder; - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignOperation) { - subBuilder.MergeFrom(KeywordPlanCampaignOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignOperation = subBuilder; - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanOperation) { - subBuilder.MergeFrom(KeywordPlanOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanOperation = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Services.AdOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdOperation(); - if (operationCase_ == OperationOneofCase.AdOperation) { - subBuilder.MergeFrom(AdOperation); - } - input.ReadMessage(subBuilder); - AdOperation = subBuilder; - break; - } - case 402: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanAdGroupKeywordOperation) { - subBuilder.MergeFrom(KeywordPlanAdGroupKeywordOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupKeywordOperation = subBuilder; - break; - } - case 410: { - global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation(); - if (operationCase_ == OperationOneofCase.KeywordPlanCampaignKeywordOperation) { - subBuilder.MergeFrom(KeywordPlanCampaignKeywordOperation); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignKeywordOperation = subBuilder; - break; - } - case 418: { - global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignAssetOperation(); - if (operationCase_ == OperationOneofCase.CampaignAssetOperation) { - subBuilder.MergeFrom(CampaignAssetOperation); - } - input.ReadMessage(subBuilder); - CampaignAssetOperation = subBuilder; - break; - } - case 426: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemSetOperation(); - if (operationCase_ == OperationOneofCase.FeedItemSetOperation) { - subBuilder.MergeFrom(FeedItemSetOperation); - } - input.ReadMessage(subBuilder); - FeedItemSetOperation = subBuilder; - break; - } - case 434: { - global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.FeedItemSetLinkOperation(); - if (operationCase_ == OperationOneofCase.FeedItemSetLinkOperation) { - subBuilder.MergeFrom(FeedItemSetLinkOperation); - } - input.ReadMessage(subBuilder); - FeedItemSetLinkOperation = subBuilder; - break; - } - case 442: { - global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionCustomVariableOperation(); - if (operationCase_ == OperationOneofCase.ConversionCustomVariableOperation) { - subBuilder.MergeFrom(ConversionCustomVariableOperation); - } - input.ReadMessage(subBuilder); - ConversionCustomVariableOperation = subBuilder; - break; - } - case 450: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupAssetOperation(); - if (operationCase_ == OperationOneofCase.AdGroupAssetOperation) { - subBuilder.MergeFrom(AdGroupAssetOperation); - } - input.ReadMessage(subBuilder); - AdGroupAssetOperation = subBuilder; - break; - } - case 458: { - global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerAssetOperation(); - if (operationCase_ == OperationOneofCase.CustomerAssetOperation) { - subBuilder.MergeFrom(CustomerAssetOperation); - } - input.ReadMessage(subBuilder); - CustomerAssetOperation = subBuilder; - break; - } - case 466: { - global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.BiddingDataExclusionOperation(); - if (operationCase_ == OperationOneofCase.BiddingDataExclusionOperation) { - subBuilder.MergeFrom(BiddingDataExclusionOperation); - } - input.ReadMessage(subBuilder); - BiddingDataExclusionOperation = subBuilder; - break; - } - case 474: { - global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.BiddingSeasonalityAdjustmentOperation(); - if (operationCase_ == OperationOneofCase.BiddingSeasonalityAdjustmentOperation) { - subBuilder.MergeFrom(BiddingSeasonalityAdjustmentOperation); - } - input.ReadMessage(subBuilder); - BiddingSeasonalityAdjustmentOperation = subBuilder; - break; - } - case 490: { - global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SmartCampaignSettingOperation(); - if (operationCase_ == OperationOneofCase.SmartCampaignSettingOperation) { - subBuilder.MergeFrom(SmartCampaignSettingOperation); - } - input.ReadMessage(subBuilder); - SmartCampaignSettingOperation = subBuilder; - break; - } - case 498: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupOperation) { - subBuilder.MergeFrom(AssetGroupOperation); - } - input.ReadMessage(subBuilder); - AssetGroupOperation = subBuilder; - break; - } - case 506: { - global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleOperation(); - if (operationCase_ == OperationOneofCase.ConversionValueRuleOperation) { - subBuilder.MergeFrom(ConversionValueRuleOperation); - } - input.ReadMessage(subBuilder); - ConversionValueRuleOperation = subBuilder; - break; - } - case 514: { - global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionValueRuleSetOperation(); - if (operationCase_ == OperationOneofCase.ConversionValueRuleSetOperation) { - subBuilder.MergeFrom(ConversionValueRuleSetOperation); - } - input.ReadMessage(subBuilder); - ConversionValueRuleSetOperation = subBuilder; - break; - } - case 522: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupAssetOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupAssetOperation) { - subBuilder.MergeFrom(AssetGroupAssetOperation); - } - input.ReadMessage(subBuilder); - AssetGroupAssetOperation = subBuilder; - break; - } - case 530: { - global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerConversionGoalOperation(); - if (operationCase_ == OperationOneofCase.CustomerConversionGoalOperation) { - subBuilder.MergeFrom(CustomerConversionGoalOperation); - } - input.ReadMessage(subBuilder); - CustomerConversionGoalOperation = subBuilder; - break; - } - case 538: { - global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignConversionGoalOperation(); - if (operationCase_ == OperationOneofCase.CampaignConversionGoalOperation) { - subBuilder.MergeFrom(CampaignConversionGoalOperation); - } - input.ReadMessage(subBuilder); - CampaignConversionGoalOperation = subBuilder; - break; - } - case 546: { - global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomConversionGoalOperation(); - if (operationCase_ == OperationOneofCase.CustomConversionGoalOperation) { - subBuilder.MergeFrom(CustomConversionGoalOperation); - } - input.ReadMessage(subBuilder); - CustomConversionGoalOperation = subBuilder; - break; - } - case 554: { - global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ConversionGoalCampaignConfigOperation(); - if (operationCase_ == OperationOneofCase.ConversionGoalCampaignConfigOperation) { - subBuilder.MergeFrom(ConversionGoalCampaignConfigOperation); - } - input.ReadMessage(subBuilder); - ConversionGoalCampaignConfigOperation = subBuilder; - break; - } - case 562: { - global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomizerAttributeOperation(); - if (operationCase_ == OperationOneofCase.CustomizerAttributeOperation) { - subBuilder.MergeFrom(CustomizerAttributeOperation); - } - input.ReadMessage(subBuilder); - CustomizerAttributeOperation = subBuilder; - break; - } - case 570: { - global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetSetAssetOperation(); - if (operationCase_ == OperationOneofCase.AssetSetAssetOperation) { - subBuilder.MergeFrom(AssetSetAssetOperation); - } - input.ReadMessage(subBuilder); - AssetSetAssetOperation = subBuilder; - break; - } - case 578: { - global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetSetOperation(); - if (operationCase_ == OperationOneofCase.AssetSetOperation) { - subBuilder.MergeFrom(AssetSetOperation); - } - input.ReadMessage(subBuilder); - AssetSetOperation = subBuilder; - break; - } - case 586: { - global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignAssetSetOperation(); - if (operationCase_ == OperationOneofCase.CampaignAssetSetOperation) { - subBuilder.MergeFrom(CampaignAssetSetOperation); - } - input.ReadMessage(subBuilder); - CampaignAssetSetOperation = subBuilder; - break; - } - case 602: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCustomizerOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCustomizerOperation) { - subBuilder.MergeFrom(AdGroupCustomizerOperation); - } - input.ReadMessage(subBuilder); - AdGroupCustomizerOperation = subBuilder; - break; - } - case 610: { - global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CampaignCustomizerOperation(); - if (operationCase_ == OperationOneofCase.CampaignCustomizerOperation) { - subBuilder.MergeFrom(CampaignCustomizerOperation); - } - input.ReadMessage(subBuilder); - CampaignCustomizerOperation = subBuilder; - break; - } - case 618: { - global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AdGroupCriterionCustomizerOperation(); - if (operationCase_ == OperationOneofCase.AdGroupCriterionCustomizerOperation) { - subBuilder.MergeFrom(AdGroupCriterionCustomizerOperation); - } - input.ReadMessage(subBuilder); - AdGroupCriterionCustomizerOperation = subBuilder; - break; - } - case 626: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupListingGroupFilterOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupListingGroupFilterOperation) { - subBuilder.MergeFrom(AssetGroupListingGroupFilterOperation); - } - input.ReadMessage(subBuilder); - AssetGroupListingGroupFilterOperation = subBuilder; - break; - } - case 634: { - global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.CustomerCustomizerOperation(); - if (operationCase_ == OperationOneofCase.CustomerCustomizerOperation) { - subBuilder.MergeFrom(CustomerCustomizerOperation); - } - input.ReadMessage(subBuilder); - CustomerCustomizerOperation = subBuilder; - break; - } - case 642: { - global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AssetGroupSignalOperation(); - if (operationCase_ == OperationOneofCase.AssetGroupSignalOperation) { - subBuilder.MergeFrom(AssetGroupSignalOperation); - } - input.ReadMessage(subBuilder); - AssetGroupSignalOperation = subBuilder; - break; - } - case 650: { - global::Google.Ads.GoogleAds.V12.Services.AudienceOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.AudienceOperation(); - if (operationCase_ == OperationOneofCase.AudienceOperation) { - subBuilder.MergeFrom(AudienceOperation); - } - input.ReadMessage(subBuilder); - AudienceOperation = subBuilder; - break; - } - case 658: { - global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ExperimentOperation(); - if (operationCase_ == OperationOneofCase.ExperimentOperation) { - subBuilder.MergeFrom(ExperimentOperation); - } - input.ReadMessage(subBuilder); - ExperimentOperation = subBuilder; - break; - } - case 666: { - global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation subBuilder = new global::Google.Ads.GoogleAds.V12.Services.ExperimentArmOperation(); - if (operationCase_ == OperationOneofCase.ExperimentArmOperation) { - subBuilder.MergeFrom(ExperimentArmOperation); - } - input.ReadMessage(subBuilder); - ExperimentArmOperation = subBuilder; - break; - } - } - } - } - #endif - - } - - /// - /// Response message for the resource mutate. - /// - public sealed partial class MutateOperationResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateOperationResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateOperationResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateOperationResponse(MutateOperationResponse other) : this() { - switch (other.ResponseCase) { - case ResponseOneofCase.AdGroupAdLabelResult: - AdGroupAdLabelResult = other.AdGroupAdLabelResult.Clone(); - break; - case ResponseOneofCase.AdGroupAdResult: - AdGroupAdResult = other.AdGroupAdResult.Clone(); - break; - case ResponseOneofCase.AdGroupAssetResult: - AdGroupAssetResult = other.AdGroupAssetResult.Clone(); - break; - case ResponseOneofCase.AdGroupBidModifierResult: - AdGroupBidModifierResult = other.AdGroupBidModifierResult.Clone(); - break; - case ResponseOneofCase.AdGroupCriterionCustomizerResult: - AdGroupCriterionCustomizerResult = other.AdGroupCriterionCustomizerResult.Clone(); - break; - case ResponseOneofCase.AdGroupCriterionLabelResult: - AdGroupCriterionLabelResult = other.AdGroupCriterionLabelResult.Clone(); - break; - case ResponseOneofCase.AdGroupCriterionResult: - AdGroupCriterionResult = other.AdGroupCriterionResult.Clone(); - break; - case ResponseOneofCase.AdGroupCustomizerResult: - AdGroupCustomizerResult = other.AdGroupCustomizerResult.Clone(); - break; - case ResponseOneofCase.AdGroupExtensionSettingResult: - AdGroupExtensionSettingResult = other.AdGroupExtensionSettingResult.Clone(); - break; - case ResponseOneofCase.AdGroupFeedResult: - AdGroupFeedResult = other.AdGroupFeedResult.Clone(); - break; - case ResponseOneofCase.AdGroupLabelResult: - AdGroupLabelResult = other.AdGroupLabelResult.Clone(); - break; - case ResponseOneofCase.AdGroupResult: - AdGroupResult = other.AdGroupResult.Clone(); - break; - case ResponseOneofCase.AdParameterResult: - AdParameterResult = other.AdParameterResult.Clone(); - break; - case ResponseOneofCase.AdResult: - AdResult = other.AdResult.Clone(); - break; - case ResponseOneofCase.AssetResult: - AssetResult = other.AssetResult.Clone(); - break; - case ResponseOneofCase.AssetGroupAssetResult: - AssetGroupAssetResult = other.AssetGroupAssetResult.Clone(); - break; - case ResponseOneofCase.AssetGroupListingGroupFilterResult: - AssetGroupListingGroupFilterResult = other.AssetGroupListingGroupFilterResult.Clone(); - break; - case ResponseOneofCase.AssetGroupSignalResult: - AssetGroupSignalResult = other.AssetGroupSignalResult.Clone(); - break; - case ResponseOneofCase.AssetGroupResult: - AssetGroupResult = other.AssetGroupResult.Clone(); - break; - case ResponseOneofCase.AssetSetAssetResult: - AssetSetAssetResult = other.AssetSetAssetResult.Clone(); - break; - case ResponseOneofCase.AssetSetResult: - AssetSetResult = other.AssetSetResult.Clone(); - break; - case ResponseOneofCase.AudienceResult: - AudienceResult = other.AudienceResult.Clone(); - break; - case ResponseOneofCase.BiddingDataExclusionResult: - BiddingDataExclusionResult = other.BiddingDataExclusionResult.Clone(); - break; - case ResponseOneofCase.BiddingSeasonalityAdjustmentResult: - BiddingSeasonalityAdjustmentResult = other.BiddingSeasonalityAdjustmentResult.Clone(); - break; - case ResponseOneofCase.BiddingStrategyResult: - BiddingStrategyResult = other.BiddingStrategyResult.Clone(); - break; - case ResponseOneofCase.CampaignAssetResult: - CampaignAssetResult = other.CampaignAssetResult.Clone(); - break; - case ResponseOneofCase.CampaignAssetSetResult: - CampaignAssetSetResult = other.CampaignAssetSetResult.Clone(); - break; - case ResponseOneofCase.CampaignBidModifierResult: - CampaignBidModifierResult = other.CampaignBidModifierResult.Clone(); - break; - case ResponseOneofCase.CampaignBudgetResult: - CampaignBudgetResult = other.CampaignBudgetResult.Clone(); - break; - case ResponseOneofCase.CampaignConversionGoalResult: - CampaignConversionGoalResult = other.CampaignConversionGoalResult.Clone(); - break; - case ResponseOneofCase.CampaignCriterionResult: - CampaignCriterionResult = other.CampaignCriterionResult.Clone(); - break; - case ResponseOneofCase.CampaignCustomizerResult: - CampaignCustomizerResult = other.CampaignCustomizerResult.Clone(); - break; - case ResponseOneofCase.CampaignDraftResult: - CampaignDraftResult = other.CampaignDraftResult.Clone(); - break; - case ResponseOneofCase.CampaignExtensionSettingResult: - CampaignExtensionSettingResult = other.CampaignExtensionSettingResult.Clone(); - break; - case ResponseOneofCase.CampaignFeedResult: - CampaignFeedResult = other.CampaignFeedResult.Clone(); - break; - case ResponseOneofCase.CampaignGroupResult: - CampaignGroupResult = other.CampaignGroupResult.Clone(); - break; - case ResponseOneofCase.CampaignLabelResult: - CampaignLabelResult = other.CampaignLabelResult.Clone(); - break; - case ResponseOneofCase.CampaignResult: - CampaignResult = other.CampaignResult.Clone(); - break; - case ResponseOneofCase.CampaignSharedSetResult: - CampaignSharedSetResult = other.CampaignSharedSetResult.Clone(); - break; - case ResponseOneofCase.ConversionActionResult: - ConversionActionResult = other.ConversionActionResult.Clone(); - break; - case ResponseOneofCase.ConversionCustomVariableResult: - ConversionCustomVariableResult = other.ConversionCustomVariableResult.Clone(); - break; - case ResponseOneofCase.ConversionGoalCampaignConfigResult: - ConversionGoalCampaignConfigResult = other.ConversionGoalCampaignConfigResult.Clone(); - break; - case ResponseOneofCase.ConversionValueRuleResult: - ConversionValueRuleResult = other.ConversionValueRuleResult.Clone(); - break; - case ResponseOneofCase.ConversionValueRuleSetResult: - ConversionValueRuleSetResult = other.ConversionValueRuleSetResult.Clone(); - break; - case ResponseOneofCase.CustomConversionGoalResult: - CustomConversionGoalResult = other.CustomConversionGoalResult.Clone(); - break; - case ResponseOneofCase.CustomerAssetResult: - CustomerAssetResult = other.CustomerAssetResult.Clone(); - break; - case ResponseOneofCase.CustomerConversionGoalResult: - CustomerConversionGoalResult = other.CustomerConversionGoalResult.Clone(); - break; - case ResponseOneofCase.CustomerCustomizerResult: - CustomerCustomizerResult = other.CustomerCustomizerResult.Clone(); - break; - case ResponseOneofCase.CustomerExtensionSettingResult: - CustomerExtensionSettingResult = other.CustomerExtensionSettingResult.Clone(); - break; - case ResponseOneofCase.CustomerFeedResult: - CustomerFeedResult = other.CustomerFeedResult.Clone(); - break; - case ResponseOneofCase.CustomerLabelResult: - CustomerLabelResult = other.CustomerLabelResult.Clone(); - break; - case ResponseOneofCase.CustomerNegativeCriterionResult: - CustomerNegativeCriterionResult = other.CustomerNegativeCriterionResult.Clone(); - break; - case ResponseOneofCase.CustomerResult: - CustomerResult = other.CustomerResult.Clone(); - break; - case ResponseOneofCase.CustomizerAttributeResult: - CustomizerAttributeResult = other.CustomizerAttributeResult.Clone(); - break; - case ResponseOneofCase.ExperimentResult: - ExperimentResult = other.ExperimentResult.Clone(); - break; - case ResponseOneofCase.ExperimentArmResult: - ExperimentArmResult = other.ExperimentArmResult.Clone(); - break; - case ResponseOneofCase.ExtensionFeedItemResult: - ExtensionFeedItemResult = other.ExtensionFeedItemResult.Clone(); - break; - case ResponseOneofCase.FeedItemResult: - FeedItemResult = other.FeedItemResult.Clone(); - break; - case ResponseOneofCase.FeedItemSetResult: - FeedItemSetResult = other.FeedItemSetResult.Clone(); - break; - case ResponseOneofCase.FeedItemSetLinkResult: - FeedItemSetLinkResult = other.FeedItemSetLinkResult.Clone(); - break; - case ResponseOneofCase.FeedItemTargetResult: - FeedItemTargetResult = other.FeedItemTargetResult.Clone(); - break; - case ResponseOneofCase.FeedMappingResult: - FeedMappingResult = other.FeedMappingResult.Clone(); - break; - case ResponseOneofCase.FeedResult: - FeedResult = other.FeedResult.Clone(); - break; - case ResponseOneofCase.KeywordPlanAdGroupResult: - KeywordPlanAdGroupResult = other.KeywordPlanAdGroupResult.Clone(); - break; - case ResponseOneofCase.KeywordPlanCampaignResult: - KeywordPlanCampaignResult = other.KeywordPlanCampaignResult.Clone(); - break; - case ResponseOneofCase.KeywordPlanAdGroupKeywordResult: - KeywordPlanAdGroupKeywordResult = other.KeywordPlanAdGroupKeywordResult.Clone(); - break; - case ResponseOneofCase.KeywordPlanCampaignKeywordResult: - KeywordPlanCampaignKeywordResult = other.KeywordPlanCampaignKeywordResult.Clone(); - break; - case ResponseOneofCase.KeywordPlanResult: - KeywordPlanResult = other.KeywordPlanResult.Clone(); - break; - case ResponseOneofCase.LabelResult: - LabelResult = other.LabelResult.Clone(); - break; - case ResponseOneofCase.MediaFileResult: - MediaFileResult = other.MediaFileResult.Clone(); - break; - case ResponseOneofCase.RemarketingActionResult: - RemarketingActionResult = other.RemarketingActionResult.Clone(); - break; - case ResponseOneofCase.SharedCriterionResult: - SharedCriterionResult = other.SharedCriterionResult.Clone(); - break; - case ResponseOneofCase.SharedSetResult: - SharedSetResult = other.SharedSetResult.Clone(); - break; - case ResponseOneofCase.SmartCampaignSettingResult: - SmartCampaignSettingResult = other.SmartCampaignSettingResult.Clone(); - break; - case ResponseOneofCase.UserListResult: - UserListResult = other.UserListResult.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateOperationResponse Clone() { - return new MutateOperationResponse(this); - } - - /// Field number for the "ad_group_ad_label_result" field. - public const int AdGroupAdLabelResultFieldNumber = 17; - /// - /// The result for the ad group ad label mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult AdGroupAdLabelResult { - get { return responseCase_ == ResponseOneofCase.AdGroupAdLabelResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupAdLabelResult; - } - } - - /// Field number for the "ad_group_ad_result" field. - public const int AdGroupAdResultFieldNumber = 1; - /// - /// The result for the ad group ad mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult AdGroupAdResult { - get { return responseCase_ == ResponseOneofCase.AdGroupAdResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupAdResult; - } - } - - /// Field number for the "ad_group_asset_result" field. - public const int AdGroupAssetResultFieldNumber = 56; - /// - /// The result for the ad group asset mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult AdGroupAssetResult { - get { return responseCase_ == ResponseOneofCase.AdGroupAssetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupAssetResult; - } - } - - /// Field number for the "ad_group_bid_modifier_result" field. - public const int AdGroupBidModifierResultFieldNumber = 2; - /// - /// The result for the ad group bid modifier mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult AdGroupBidModifierResult { - get { return responseCase_ == ResponseOneofCase.AdGroupBidModifierResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupBidModifierResult; - } - } - - /// Field number for the "ad_group_criterion_customizer_result" field. - public const int AdGroupCriterionCustomizerResultFieldNumber = 77; - /// - /// The result for the ad group criterion customizer mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult AdGroupCriterionCustomizerResult { - get { return responseCase_ == ResponseOneofCase.AdGroupCriterionCustomizerResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupCriterionCustomizerResult; - } - } - - /// Field number for the "ad_group_criterion_label_result" field. - public const int AdGroupCriterionLabelResultFieldNumber = 18; - /// - /// The result for the ad group criterion label mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult AdGroupCriterionLabelResult { - get { return responseCase_ == ResponseOneofCase.AdGroupCriterionLabelResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupCriterionLabelResult; - } - } - - /// Field number for the "ad_group_criterion_result" field. - public const int AdGroupCriterionResultFieldNumber = 3; - /// - /// The result for the ad group criterion mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult AdGroupCriterionResult { - get { return responseCase_ == ResponseOneofCase.AdGroupCriterionResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupCriterionResult; - } - } - - /// Field number for the "ad_group_customizer_result" field. - public const int AdGroupCustomizerResultFieldNumber = 75; - /// - /// The result for the ad group customizer mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult AdGroupCustomizerResult { - get { return responseCase_ == ResponseOneofCase.AdGroupCustomizerResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupCustomizerResult; - } - } - - /// Field number for the "ad_group_extension_setting_result" field. - public const int AdGroupExtensionSettingResultFieldNumber = 19; - /// - /// The result for the ad group extension setting mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult AdGroupExtensionSettingResult { - get { return responseCase_ == ResponseOneofCase.AdGroupExtensionSettingResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupExtensionSettingResult; - } - } - - /// Field number for the "ad_group_feed_result" field. - public const int AdGroupFeedResultFieldNumber = 20; - /// - /// The result for the ad group feed mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult AdGroupFeedResult { - get { return responseCase_ == ResponseOneofCase.AdGroupFeedResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupFeedResult; - } - } - - /// Field number for the "ad_group_label_result" field. - public const int AdGroupLabelResultFieldNumber = 21; - /// - /// The result for the ad group label mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult AdGroupLabelResult { - get { return responseCase_ == ResponseOneofCase.AdGroupLabelResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupLabelResult; - } - } - - /// Field number for the "ad_group_result" field. - public const int AdGroupResultFieldNumber = 5; - /// - /// The result for the ad group mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult AdGroupResult { - get { return responseCase_ == ResponseOneofCase.AdGroupResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdGroupResult; - } - } - - /// Field number for the "ad_parameter_result" field. - public const int AdParameterResultFieldNumber = 22; - /// - /// The result for the ad parameter mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult AdParameterResult { - get { return responseCase_ == ResponseOneofCase.AdParameterResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdParameterResult; - } - } - - /// Field number for the "ad_result" field. - public const int AdResultFieldNumber = 49; - /// - /// The result for the ad mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAdResult AdResult { - get { return responseCase_ == ResponseOneofCase.AdResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAdResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AdResult; - } - } - - /// Field number for the "asset_result" field. - public const int AssetResultFieldNumber = 23; - /// - /// The result for the asset mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult AssetResult { - get { return responseCase_ == ResponseOneofCase.AssetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AssetResult; - } - } - - /// Field number for the "asset_group_asset_result" field. - public const int AssetGroupAssetResultFieldNumber = 65; - /// - /// The result for the asset group asset mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult AssetGroupAssetResult { - get { return responseCase_ == ResponseOneofCase.AssetGroupAssetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AssetGroupAssetResult; - } - } - - /// Field number for the "asset_group_listing_group_filter_result" field. - public const int AssetGroupListingGroupFilterResultFieldNumber = 78; - /// - /// The result for the asset group listing group filter mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult AssetGroupListingGroupFilterResult { - get { return responseCase_ == ResponseOneofCase.AssetGroupListingGroupFilterResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AssetGroupListingGroupFilterResult; - } - } - - /// Field number for the "asset_group_signal_result" field. - public const int AssetGroupSignalResultFieldNumber = 79; - /// - /// The result for the asset group signal mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult AssetGroupSignalResult { - get { return responseCase_ == ResponseOneofCase.AssetGroupSignalResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AssetGroupSignalResult; - } - } - - /// Field number for the "asset_group_result" field. - public const int AssetGroupResultFieldNumber = 62; - /// - /// The result for the asset group mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult AssetGroupResult { - get { return responseCase_ == ResponseOneofCase.AssetGroupResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AssetGroupResult; - } - } - - /// Field number for the "asset_set_asset_result" field. - public const int AssetSetAssetResultFieldNumber = 71; - /// - /// The result for the asset set asset mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult AssetSetAssetResult { - get { return responseCase_ == ResponseOneofCase.AssetSetAssetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AssetSetAssetResult; - } - } - - /// Field number for the "asset_set_result" field. - public const int AssetSetResultFieldNumber = 72; - /// - /// The result for the asset set mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult AssetSetResult { - get { return responseCase_ == ResponseOneofCase.AssetSetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AssetSetResult; - } - } - - /// Field number for the "audience_result" field. - public const int AudienceResultFieldNumber = 80; - /// - /// The result for the audience mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult AudienceResult { - get { return responseCase_ == ResponseOneofCase.AudienceResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.AudienceResult; - } - } - - /// Field number for the "bidding_data_exclusion_result" field. - public const int BiddingDataExclusionResultFieldNumber = 58; - /// - /// The result for the bidding data exclusion mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult BiddingDataExclusionResult { - get { return responseCase_ == ResponseOneofCase.BiddingDataExclusionResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.BiddingDataExclusionResult; - } - } - - /// Field number for the "bidding_seasonality_adjustment_result" field. - public const int BiddingSeasonalityAdjustmentResultFieldNumber = 59; - /// - /// The result for the bidding seasonality adjustment mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult BiddingSeasonalityAdjustmentResult { - get { return responseCase_ == ResponseOneofCase.BiddingSeasonalityAdjustmentResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.BiddingSeasonalityAdjustmentResult; - } - } - - /// Field number for the "bidding_strategy_result" field. - public const int BiddingStrategyResultFieldNumber = 6; - /// - /// The result for the bidding strategy mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult BiddingStrategyResult { - get { return responseCase_ == ResponseOneofCase.BiddingStrategyResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.BiddingStrategyResult; - } - } - - /// Field number for the "campaign_asset_result" field. - public const int CampaignAssetResultFieldNumber = 52; - /// - /// The result for the campaign asset mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult CampaignAssetResult { - get { return responseCase_ == ResponseOneofCase.CampaignAssetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignAssetResult; - } - } - - /// Field number for the "campaign_asset_set_result" field. - public const int CampaignAssetSetResultFieldNumber = 73; - /// - /// The result for the campaign asset set mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult CampaignAssetSetResult { - get { return responseCase_ == ResponseOneofCase.CampaignAssetSetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignAssetSetResult; - } - } - - /// Field number for the "campaign_bid_modifier_result" field. - public const int CampaignBidModifierResultFieldNumber = 7; - /// - /// The result for the campaign bid modifier mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult CampaignBidModifierResult { - get { return responseCase_ == ResponseOneofCase.CampaignBidModifierResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignBidModifierResult; - } - } - - /// Field number for the "campaign_budget_result" field. - public const int CampaignBudgetResultFieldNumber = 8; - /// - /// The result for the campaign budget mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult CampaignBudgetResult { - get { return responseCase_ == ResponseOneofCase.CampaignBudgetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignBudgetResult; - } - } - - /// Field number for the "campaign_conversion_goal_result" field. - public const int CampaignConversionGoalResultFieldNumber = 67; - /// - /// The result for the campaign conversion goal mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult CampaignConversionGoalResult { - get { return responseCase_ == ResponseOneofCase.CampaignConversionGoalResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignConversionGoalResult; - } - } - - /// Field number for the "campaign_criterion_result" field. - public const int CampaignCriterionResultFieldNumber = 13; - /// - /// The result for the campaign criterion mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult CampaignCriterionResult { - get { return responseCase_ == ResponseOneofCase.CampaignCriterionResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignCriterionResult; - } - } - - /// Field number for the "campaign_customizer_result" field. - public const int CampaignCustomizerResultFieldNumber = 76; - /// - /// The result for the campaign customizer mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult CampaignCustomizerResult { - get { return responseCase_ == ResponseOneofCase.CampaignCustomizerResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignCustomizerResult; - } - } - - /// Field number for the "campaign_draft_result" field. - public const int CampaignDraftResultFieldNumber = 24; - /// - /// The result for the campaign draft mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult CampaignDraftResult { - get { return responseCase_ == ResponseOneofCase.CampaignDraftResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignDraftResult; - } - } - - /// Field number for the "campaign_extension_setting_result" field. - public const int CampaignExtensionSettingResultFieldNumber = 26; - /// - /// The result for the campaign extension setting mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult CampaignExtensionSettingResult { - get { return responseCase_ == ResponseOneofCase.CampaignExtensionSettingResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignExtensionSettingResult; - } - } - - /// Field number for the "campaign_feed_result" field. - public const int CampaignFeedResultFieldNumber = 27; - /// - /// The result for the campaign feed mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult CampaignFeedResult { - get { return responseCase_ == ResponseOneofCase.CampaignFeedResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignFeedResult; - } - } - - /// Field number for the "campaign_group_result" field. - public const int CampaignGroupResultFieldNumber = 9; - /// - /// The result for the campaign group mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult CampaignGroupResult { - get { return responseCase_ == ResponseOneofCase.CampaignGroupResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignGroupResult; - } - } - - /// Field number for the "campaign_label_result" field. - public const int CampaignLabelResultFieldNumber = 28; - /// - /// The result for the campaign label mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult CampaignLabelResult { - get { return responseCase_ == ResponseOneofCase.CampaignLabelResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignLabelResult; - } - } - - /// Field number for the "campaign_result" field. - public const int CampaignResultFieldNumber = 10; - /// - /// The result for the campaign mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult CampaignResult { - get { return responseCase_ == ResponseOneofCase.CampaignResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignResult; - } - } - - /// Field number for the "campaign_shared_set_result" field. - public const int CampaignSharedSetResultFieldNumber = 11; - /// - /// The result for the campaign shared set mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult CampaignSharedSetResult { - get { return responseCase_ == ResponseOneofCase.CampaignSharedSetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CampaignSharedSetResult; - } - } - - /// Field number for the "conversion_action_result" field. - public const int ConversionActionResultFieldNumber = 12; - /// - /// The result for the conversion action mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult ConversionActionResult { - get { return responseCase_ == ResponseOneofCase.ConversionActionResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ConversionActionResult; - } - } - - /// Field number for the "conversion_custom_variable_result" field. - public const int ConversionCustomVariableResultFieldNumber = 55; - /// - /// The result for the conversion custom variable mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult ConversionCustomVariableResult { - get { return responseCase_ == ResponseOneofCase.ConversionCustomVariableResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ConversionCustomVariableResult; - } - } - - /// Field number for the "conversion_goal_campaign_config_result" field. - public const int ConversionGoalCampaignConfigResultFieldNumber = 69; - /// - /// The result for the conversion goal campaign config mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult ConversionGoalCampaignConfigResult { - get { return responseCase_ == ResponseOneofCase.ConversionGoalCampaignConfigResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ConversionGoalCampaignConfigResult; - } - } - - /// Field number for the "conversion_value_rule_result" field. - public const int ConversionValueRuleResultFieldNumber = 63; - /// - /// The result for the conversion value rule mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult ConversionValueRuleResult { - get { return responseCase_ == ResponseOneofCase.ConversionValueRuleResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ConversionValueRuleResult; - } - } - - /// Field number for the "conversion_value_rule_set_result" field. - public const int ConversionValueRuleSetResultFieldNumber = 64; - /// - /// The result for the conversion value rule set mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult ConversionValueRuleSetResult { - get { return responseCase_ == ResponseOneofCase.ConversionValueRuleSetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ConversionValueRuleSetResult; - } - } - - /// Field number for the "custom_conversion_goal_result" field. - public const int CustomConversionGoalResultFieldNumber = 68; - /// - /// The result for the custom conversion goal mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult CustomConversionGoalResult { - get { return responseCase_ == ResponseOneofCase.CustomConversionGoalResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomConversionGoalResult; - } - } - - /// Field number for the "customer_asset_result" field. - public const int CustomerAssetResultFieldNumber = 57; - /// - /// The result for the customer asset mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult CustomerAssetResult { - get { return responseCase_ == ResponseOneofCase.CustomerAssetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerAssetResult; - } - } - - /// Field number for the "customer_conversion_goal_result" field. - public const int CustomerConversionGoalResultFieldNumber = 66; - /// - /// The result for the customer conversion goal mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult CustomerConversionGoalResult { - get { return responseCase_ == ResponseOneofCase.CustomerConversionGoalResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerConversionGoalResult; - } - } - - /// Field number for the "customer_customizer_result" field. - public const int CustomerCustomizerResultFieldNumber = 74; - /// - /// The result for the customer customizer mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult CustomerCustomizerResult { - get { return responseCase_ == ResponseOneofCase.CustomerCustomizerResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerCustomizerResult; - } - } - - /// Field number for the "customer_extension_setting_result" field. - public const int CustomerExtensionSettingResultFieldNumber = 30; - /// - /// The result for the customer extension setting mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult CustomerExtensionSettingResult { - get { return responseCase_ == ResponseOneofCase.CustomerExtensionSettingResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerExtensionSettingResult; - } - } - - /// Field number for the "customer_feed_result" field. - public const int CustomerFeedResultFieldNumber = 31; - /// - /// The result for the customer feed mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult CustomerFeedResult { - get { return responseCase_ == ResponseOneofCase.CustomerFeedResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerFeedResult; - } - } - - /// Field number for the "customer_label_result" field. - public const int CustomerLabelResultFieldNumber = 32; - /// - /// The result for the customer label mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult CustomerLabelResult { - get { return responseCase_ == ResponseOneofCase.CustomerLabelResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerLabelResult; - } - } - - /// Field number for the "customer_negative_criterion_result" field. - public const int CustomerNegativeCriterionResultFieldNumber = 34; - /// - /// The result for the customer negative criterion mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult CustomerNegativeCriterionResult { - get { return responseCase_ == ResponseOneofCase.CustomerNegativeCriterionResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerNegativeCriterionResult; - } - } - - /// Field number for the "customer_result" field. - public const int CustomerResultFieldNumber = 35; - /// - /// The result for the customer mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult CustomerResult { - get { return responseCase_ == ResponseOneofCase.CustomerResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomerResult; - } - } - - /// Field number for the "customizer_attribute_result" field. - public const int CustomizerAttributeResultFieldNumber = 70; - /// - /// The result for the customizer attribute mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult CustomizerAttributeResult { - get { return responseCase_ == ResponseOneofCase.CustomizerAttributeResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.CustomizerAttributeResult; - } - } - - /// Field number for the "experiment_result" field. - public const int ExperimentResultFieldNumber = 81; - /// - /// The result for the experiment mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult ExperimentResult { - get { return responseCase_ == ResponseOneofCase.ExperimentResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ExperimentResult; - } - } - - /// Field number for the "experiment_arm_result" field. - public const int ExperimentArmResultFieldNumber = 82; - /// - /// The result for the experiment arm mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult ExperimentArmResult { - get { return responseCase_ == ResponseOneofCase.ExperimentArmResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ExperimentArmResult; - } - } - - /// Field number for the "extension_feed_item_result" field. - public const int ExtensionFeedItemResultFieldNumber = 36; - /// - /// The result for the extension feed item mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult ExtensionFeedItemResult { - get { return responseCase_ == ResponseOneofCase.ExtensionFeedItemResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.ExtensionFeedItemResult; - } - } - - /// Field number for the "feed_item_result" field. - public const int FeedItemResultFieldNumber = 37; - /// - /// The result for the feed item mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult FeedItemResult { - get { return responseCase_ == ResponseOneofCase.FeedItemResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.FeedItemResult; - } - } - - /// Field number for the "feed_item_set_result" field. - public const int FeedItemSetResultFieldNumber = 53; - /// - /// The result for the feed item set mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult FeedItemSetResult { - get { return responseCase_ == ResponseOneofCase.FeedItemSetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.FeedItemSetResult; - } - } - - /// Field number for the "feed_item_set_link_result" field. - public const int FeedItemSetLinkResultFieldNumber = 54; - /// - /// The result for the feed item set link mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult FeedItemSetLinkResult { - get { return responseCase_ == ResponseOneofCase.FeedItemSetLinkResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.FeedItemSetLinkResult; - } - } - - /// Field number for the "feed_item_target_result" field. - public const int FeedItemTargetResultFieldNumber = 38; - /// - /// The result for the feed item target mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult FeedItemTargetResult { - get { return responseCase_ == ResponseOneofCase.FeedItemTargetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.FeedItemTargetResult; - } - } - - /// Field number for the "feed_mapping_result" field. - public const int FeedMappingResultFieldNumber = 39; - /// - /// The result for the feed mapping mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult FeedMappingResult { - get { return responseCase_ == ResponseOneofCase.FeedMappingResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.FeedMappingResult; - } - } - - /// Field number for the "feed_result" field. - public const int FeedResultFieldNumber = 40; - /// - /// The result for the feed mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult FeedResult { - get { return responseCase_ == ResponseOneofCase.FeedResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.FeedResult; - } - } - - /// Field number for the "keyword_plan_ad_group_result" field. - public const int KeywordPlanAdGroupResultFieldNumber = 44; - /// - /// The result for the keyword plan ad group mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult KeywordPlanAdGroupResult { - get { return responseCase_ == ResponseOneofCase.KeywordPlanAdGroupResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.KeywordPlanAdGroupResult; - } - } - - /// Field number for the "keyword_plan_campaign_result" field. - public const int KeywordPlanCampaignResultFieldNumber = 45; - /// - /// The result for the keyword plan campaign mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult KeywordPlanCampaignResult { - get { return responseCase_ == ResponseOneofCase.KeywordPlanCampaignResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.KeywordPlanCampaignResult; - } - } - - /// Field number for the "keyword_plan_ad_group_keyword_result" field. - public const int KeywordPlanAdGroupKeywordResultFieldNumber = 50; - /// - /// The result for the keyword plan ad group keyword mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult KeywordPlanAdGroupKeywordResult { - get { return responseCase_ == ResponseOneofCase.KeywordPlanAdGroupKeywordResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.KeywordPlanAdGroupKeywordResult; - } - } - - /// Field number for the "keyword_plan_campaign_keyword_result" field. - public const int KeywordPlanCampaignKeywordResultFieldNumber = 51; - /// - /// The result for the keyword plan campaign keyword mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult KeywordPlanCampaignKeywordResult { - get { return responseCase_ == ResponseOneofCase.KeywordPlanCampaignKeywordResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.KeywordPlanCampaignKeywordResult; - } - } - - /// Field number for the "keyword_plan_result" field. - public const int KeywordPlanResultFieldNumber = 48; - /// - /// The result for the keyword plan mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult KeywordPlanResult { - get { return responseCase_ == ResponseOneofCase.KeywordPlanResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.KeywordPlanResult; - } - } - - /// Field number for the "label_result" field. - public const int LabelResultFieldNumber = 41; - /// - /// The result for the label mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateLabelResult LabelResult { - get { return responseCase_ == ResponseOneofCase.LabelResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateLabelResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.LabelResult; - } - } - - /// Field number for the "media_file_result" field. - public const int MediaFileResultFieldNumber = 42; - /// - /// The result for the media file mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateMediaFileResult MediaFileResult { - get { return responseCase_ == ResponseOneofCase.MediaFileResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateMediaFileResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.MediaFileResult; - } - } - - /// Field number for the "remarketing_action_result" field. - public const int RemarketingActionResultFieldNumber = 43; - /// - /// The result for the remarketing action mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateRemarketingActionResult RemarketingActionResult { - get { return responseCase_ == ResponseOneofCase.RemarketingActionResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateRemarketingActionResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.RemarketingActionResult; - } - } - - /// Field number for the "shared_criterion_result" field. - public const int SharedCriterionResultFieldNumber = 14; - /// - /// The result for the shared criterion mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateSharedCriterionResult SharedCriterionResult { - get { return responseCase_ == ResponseOneofCase.SharedCriterionResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateSharedCriterionResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.SharedCriterionResult; - } - } - - /// Field number for the "shared_set_result" field. - public const int SharedSetResultFieldNumber = 15; - /// - /// The result for the shared set mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateSharedSetResult SharedSetResult { - get { return responseCase_ == ResponseOneofCase.SharedSetResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateSharedSetResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.SharedSetResult; - } - } - - /// Field number for the "smart_campaign_setting_result" field. - public const int SmartCampaignSettingResultFieldNumber = 61; - /// - /// The result for the Smart campaign setting mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateSmartCampaignSettingResult SmartCampaignSettingResult { - get { return responseCase_ == ResponseOneofCase.SmartCampaignSettingResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateSmartCampaignSettingResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.SmartCampaignSettingResult; - } - } - - /// Field number for the "user_list_result" field. - public const int UserListResultFieldNumber = 16; - /// - /// The result for the user list mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.MutateUserListResult UserListResult { - get { return responseCase_ == ResponseOneofCase.UserListResult ? (global::Google.Ads.GoogleAds.V12.Services.MutateUserListResult) response_ : null; } - set { - response_ = value; - responseCase_ = value == null ? ResponseOneofCase.None : ResponseOneofCase.UserListResult; - } - } - - private object response_; - /// Enum of possible cases for the "response" oneof. - public enum ResponseOneofCase { - None = 0, - AdGroupAdLabelResult = 17, - AdGroupAdResult = 1, - AdGroupAssetResult = 56, - AdGroupBidModifierResult = 2, - AdGroupCriterionCustomizerResult = 77, - AdGroupCriterionLabelResult = 18, - AdGroupCriterionResult = 3, - AdGroupCustomizerResult = 75, - AdGroupExtensionSettingResult = 19, - AdGroupFeedResult = 20, - AdGroupLabelResult = 21, - AdGroupResult = 5, - AdParameterResult = 22, - AdResult = 49, - AssetResult = 23, - AssetGroupAssetResult = 65, - AssetGroupListingGroupFilterResult = 78, - AssetGroupSignalResult = 79, - AssetGroupResult = 62, - AssetSetAssetResult = 71, - AssetSetResult = 72, - AudienceResult = 80, - BiddingDataExclusionResult = 58, - BiddingSeasonalityAdjustmentResult = 59, - BiddingStrategyResult = 6, - CampaignAssetResult = 52, - CampaignAssetSetResult = 73, - CampaignBidModifierResult = 7, - CampaignBudgetResult = 8, - CampaignConversionGoalResult = 67, - CampaignCriterionResult = 13, - CampaignCustomizerResult = 76, - CampaignDraftResult = 24, - CampaignExtensionSettingResult = 26, - CampaignFeedResult = 27, - CampaignGroupResult = 9, - CampaignLabelResult = 28, - CampaignResult = 10, - CampaignSharedSetResult = 11, - ConversionActionResult = 12, - ConversionCustomVariableResult = 55, - ConversionGoalCampaignConfigResult = 69, - ConversionValueRuleResult = 63, - ConversionValueRuleSetResult = 64, - CustomConversionGoalResult = 68, - CustomerAssetResult = 57, - CustomerConversionGoalResult = 66, - CustomerCustomizerResult = 74, - CustomerExtensionSettingResult = 30, - CustomerFeedResult = 31, - CustomerLabelResult = 32, - CustomerNegativeCriterionResult = 34, - CustomerResult = 35, - CustomizerAttributeResult = 70, - ExperimentResult = 81, - ExperimentArmResult = 82, - ExtensionFeedItemResult = 36, - FeedItemResult = 37, - FeedItemSetResult = 53, - FeedItemSetLinkResult = 54, - FeedItemTargetResult = 38, - FeedMappingResult = 39, - FeedResult = 40, - KeywordPlanAdGroupResult = 44, - KeywordPlanCampaignResult = 45, - KeywordPlanAdGroupKeywordResult = 50, - KeywordPlanCampaignKeywordResult = 51, - KeywordPlanResult = 48, - LabelResult = 41, - MediaFileResult = 42, - RemarketingActionResult = 43, - SharedCriterionResult = 14, - SharedSetResult = 15, - SmartCampaignSettingResult = 61, - UserListResult = 16, - } - private ResponseOneofCase responseCase_ = ResponseOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ResponseOneofCase ResponseCase { - get { return responseCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearResponse() { - responseCase_ = ResponseOneofCase.None; - response_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateOperationResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateOperationResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(AdGroupAdLabelResult, other.AdGroupAdLabelResult)) return false; - if (!object.Equals(AdGroupAdResult, other.AdGroupAdResult)) return false; - if (!object.Equals(AdGroupAssetResult, other.AdGroupAssetResult)) return false; - if (!object.Equals(AdGroupBidModifierResult, other.AdGroupBidModifierResult)) return false; - if (!object.Equals(AdGroupCriterionCustomizerResult, other.AdGroupCriterionCustomizerResult)) return false; - if (!object.Equals(AdGroupCriterionLabelResult, other.AdGroupCriterionLabelResult)) return false; - if (!object.Equals(AdGroupCriterionResult, other.AdGroupCriterionResult)) return false; - if (!object.Equals(AdGroupCustomizerResult, other.AdGroupCustomizerResult)) return false; - if (!object.Equals(AdGroupExtensionSettingResult, other.AdGroupExtensionSettingResult)) return false; - if (!object.Equals(AdGroupFeedResult, other.AdGroupFeedResult)) return false; - if (!object.Equals(AdGroupLabelResult, other.AdGroupLabelResult)) return false; - if (!object.Equals(AdGroupResult, other.AdGroupResult)) return false; - if (!object.Equals(AdParameterResult, other.AdParameterResult)) return false; - if (!object.Equals(AdResult, other.AdResult)) return false; - if (!object.Equals(AssetResult, other.AssetResult)) return false; - if (!object.Equals(AssetGroupAssetResult, other.AssetGroupAssetResult)) return false; - if (!object.Equals(AssetGroupListingGroupFilterResult, other.AssetGroupListingGroupFilterResult)) return false; - if (!object.Equals(AssetGroupSignalResult, other.AssetGroupSignalResult)) return false; - if (!object.Equals(AssetGroupResult, other.AssetGroupResult)) return false; - if (!object.Equals(AssetSetAssetResult, other.AssetSetAssetResult)) return false; - if (!object.Equals(AssetSetResult, other.AssetSetResult)) return false; - if (!object.Equals(AudienceResult, other.AudienceResult)) return false; - if (!object.Equals(BiddingDataExclusionResult, other.BiddingDataExclusionResult)) return false; - if (!object.Equals(BiddingSeasonalityAdjustmentResult, other.BiddingSeasonalityAdjustmentResult)) return false; - if (!object.Equals(BiddingStrategyResult, other.BiddingStrategyResult)) return false; - if (!object.Equals(CampaignAssetResult, other.CampaignAssetResult)) return false; - if (!object.Equals(CampaignAssetSetResult, other.CampaignAssetSetResult)) return false; - if (!object.Equals(CampaignBidModifierResult, other.CampaignBidModifierResult)) return false; - if (!object.Equals(CampaignBudgetResult, other.CampaignBudgetResult)) return false; - if (!object.Equals(CampaignConversionGoalResult, other.CampaignConversionGoalResult)) return false; - if (!object.Equals(CampaignCriterionResult, other.CampaignCriterionResult)) return false; - if (!object.Equals(CampaignCustomizerResult, other.CampaignCustomizerResult)) return false; - if (!object.Equals(CampaignDraftResult, other.CampaignDraftResult)) return false; - if (!object.Equals(CampaignExtensionSettingResult, other.CampaignExtensionSettingResult)) return false; - if (!object.Equals(CampaignFeedResult, other.CampaignFeedResult)) return false; - if (!object.Equals(CampaignGroupResult, other.CampaignGroupResult)) return false; - if (!object.Equals(CampaignLabelResult, other.CampaignLabelResult)) return false; - if (!object.Equals(CampaignResult, other.CampaignResult)) return false; - if (!object.Equals(CampaignSharedSetResult, other.CampaignSharedSetResult)) return false; - if (!object.Equals(ConversionActionResult, other.ConversionActionResult)) return false; - if (!object.Equals(ConversionCustomVariableResult, other.ConversionCustomVariableResult)) return false; - if (!object.Equals(ConversionGoalCampaignConfigResult, other.ConversionGoalCampaignConfigResult)) return false; - if (!object.Equals(ConversionValueRuleResult, other.ConversionValueRuleResult)) return false; - if (!object.Equals(ConversionValueRuleSetResult, other.ConversionValueRuleSetResult)) return false; - if (!object.Equals(CustomConversionGoalResult, other.CustomConversionGoalResult)) return false; - if (!object.Equals(CustomerAssetResult, other.CustomerAssetResult)) return false; - if (!object.Equals(CustomerConversionGoalResult, other.CustomerConversionGoalResult)) return false; - if (!object.Equals(CustomerCustomizerResult, other.CustomerCustomizerResult)) return false; - if (!object.Equals(CustomerExtensionSettingResult, other.CustomerExtensionSettingResult)) return false; - if (!object.Equals(CustomerFeedResult, other.CustomerFeedResult)) return false; - if (!object.Equals(CustomerLabelResult, other.CustomerLabelResult)) return false; - if (!object.Equals(CustomerNegativeCriterionResult, other.CustomerNegativeCriterionResult)) return false; - if (!object.Equals(CustomerResult, other.CustomerResult)) return false; - if (!object.Equals(CustomizerAttributeResult, other.CustomizerAttributeResult)) return false; - if (!object.Equals(ExperimentResult, other.ExperimentResult)) return false; - if (!object.Equals(ExperimentArmResult, other.ExperimentArmResult)) return false; - if (!object.Equals(ExtensionFeedItemResult, other.ExtensionFeedItemResult)) return false; - if (!object.Equals(FeedItemResult, other.FeedItemResult)) return false; - if (!object.Equals(FeedItemSetResult, other.FeedItemSetResult)) return false; - if (!object.Equals(FeedItemSetLinkResult, other.FeedItemSetLinkResult)) return false; - if (!object.Equals(FeedItemTargetResult, other.FeedItemTargetResult)) return false; - if (!object.Equals(FeedMappingResult, other.FeedMappingResult)) return false; - if (!object.Equals(FeedResult, other.FeedResult)) return false; - if (!object.Equals(KeywordPlanAdGroupResult, other.KeywordPlanAdGroupResult)) return false; - if (!object.Equals(KeywordPlanCampaignResult, other.KeywordPlanCampaignResult)) return false; - if (!object.Equals(KeywordPlanAdGroupKeywordResult, other.KeywordPlanAdGroupKeywordResult)) return false; - if (!object.Equals(KeywordPlanCampaignKeywordResult, other.KeywordPlanCampaignKeywordResult)) return false; - if (!object.Equals(KeywordPlanResult, other.KeywordPlanResult)) return false; - if (!object.Equals(LabelResult, other.LabelResult)) return false; - if (!object.Equals(MediaFileResult, other.MediaFileResult)) return false; - if (!object.Equals(RemarketingActionResult, other.RemarketingActionResult)) return false; - if (!object.Equals(SharedCriterionResult, other.SharedCriterionResult)) return false; - if (!object.Equals(SharedSetResult, other.SharedSetResult)) return false; - if (!object.Equals(SmartCampaignSettingResult, other.SmartCampaignSettingResult)) return false; - if (!object.Equals(UserListResult, other.UserListResult)) return false; - if (ResponseCase != other.ResponseCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (responseCase_ == ResponseOneofCase.AdGroupAdLabelResult) hash ^= AdGroupAdLabelResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupAdResult) hash ^= AdGroupAdResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupAssetResult) hash ^= AdGroupAssetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupBidModifierResult) hash ^= AdGroupBidModifierResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionCustomizerResult) hash ^= AdGroupCriterionCustomizerResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionLabelResult) hash ^= AdGroupCriterionLabelResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionResult) hash ^= AdGroupCriterionResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupCustomizerResult) hash ^= AdGroupCustomizerResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupExtensionSettingResult) hash ^= AdGroupExtensionSettingResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupFeedResult) hash ^= AdGroupFeedResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupLabelResult) hash ^= AdGroupLabelResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdGroupResult) hash ^= AdGroupResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdParameterResult) hash ^= AdParameterResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AdResult) hash ^= AdResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AssetResult) hash ^= AssetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AssetGroupAssetResult) hash ^= AssetGroupAssetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AssetGroupListingGroupFilterResult) hash ^= AssetGroupListingGroupFilterResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AssetGroupSignalResult) hash ^= AssetGroupSignalResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AssetGroupResult) hash ^= AssetGroupResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AssetSetAssetResult) hash ^= AssetSetAssetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AssetSetResult) hash ^= AssetSetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.AudienceResult) hash ^= AudienceResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.BiddingDataExclusionResult) hash ^= BiddingDataExclusionResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.BiddingSeasonalityAdjustmentResult) hash ^= BiddingSeasonalityAdjustmentResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.BiddingStrategyResult) hash ^= BiddingStrategyResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignAssetResult) hash ^= CampaignAssetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignAssetSetResult) hash ^= CampaignAssetSetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignBidModifierResult) hash ^= CampaignBidModifierResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignBudgetResult) hash ^= CampaignBudgetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignConversionGoalResult) hash ^= CampaignConversionGoalResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignCriterionResult) hash ^= CampaignCriterionResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignCustomizerResult) hash ^= CampaignCustomizerResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignDraftResult) hash ^= CampaignDraftResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignExtensionSettingResult) hash ^= CampaignExtensionSettingResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignFeedResult) hash ^= CampaignFeedResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignGroupResult) hash ^= CampaignGroupResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignLabelResult) hash ^= CampaignLabelResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignResult) hash ^= CampaignResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CampaignSharedSetResult) hash ^= CampaignSharedSetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ConversionActionResult) hash ^= ConversionActionResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ConversionCustomVariableResult) hash ^= ConversionCustomVariableResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ConversionGoalCampaignConfigResult) hash ^= ConversionGoalCampaignConfigResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ConversionValueRuleResult) hash ^= ConversionValueRuleResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ConversionValueRuleSetResult) hash ^= ConversionValueRuleSetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomConversionGoalResult) hash ^= CustomConversionGoalResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerAssetResult) hash ^= CustomerAssetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerConversionGoalResult) hash ^= CustomerConversionGoalResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerCustomizerResult) hash ^= CustomerCustomizerResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerExtensionSettingResult) hash ^= CustomerExtensionSettingResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerFeedResult) hash ^= CustomerFeedResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerLabelResult) hash ^= CustomerLabelResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerNegativeCriterionResult) hash ^= CustomerNegativeCriterionResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomerResult) hash ^= CustomerResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.CustomizerAttributeResult) hash ^= CustomizerAttributeResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ExperimentResult) hash ^= ExperimentResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ExperimentArmResult) hash ^= ExperimentArmResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.ExtensionFeedItemResult) hash ^= ExtensionFeedItemResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.FeedItemResult) hash ^= FeedItemResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.FeedItemSetResult) hash ^= FeedItemSetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.FeedItemSetLinkResult) hash ^= FeedItemSetLinkResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.FeedItemTargetResult) hash ^= FeedItemTargetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.FeedMappingResult) hash ^= FeedMappingResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.FeedResult) hash ^= FeedResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupResult) hash ^= KeywordPlanAdGroupResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignResult) hash ^= KeywordPlanCampaignResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupKeywordResult) hash ^= KeywordPlanAdGroupKeywordResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignKeywordResult) hash ^= KeywordPlanCampaignKeywordResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.KeywordPlanResult) hash ^= KeywordPlanResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.LabelResult) hash ^= LabelResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.MediaFileResult) hash ^= MediaFileResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.RemarketingActionResult) hash ^= RemarketingActionResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.SharedCriterionResult) hash ^= SharedCriterionResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.SharedSetResult) hash ^= SharedSetResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.SmartCampaignSettingResult) hash ^= SmartCampaignSettingResult.GetHashCode(); - if (responseCase_ == ResponseOneofCase.UserListResult) hash ^= UserListResult.GetHashCode(); - hash ^= (int) responseCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (responseCase_ == ResponseOneofCase.AdGroupAdResult) { - output.WriteRawTag(10); - output.WriteMessage(AdGroupAdResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupBidModifierResult) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupBidModifierResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionResult) { - output.WriteRawTag(26); - output.WriteMessage(AdGroupCriterionResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupResult) { - output.WriteRawTag(42); - output.WriteMessage(AdGroupResult); - } - if (responseCase_ == ResponseOneofCase.BiddingStrategyResult) { - output.WriteRawTag(50); - output.WriteMessage(BiddingStrategyResult); - } - if (responseCase_ == ResponseOneofCase.CampaignBidModifierResult) { - output.WriteRawTag(58); - output.WriteMessage(CampaignBidModifierResult); - } - if (responseCase_ == ResponseOneofCase.CampaignBudgetResult) { - output.WriteRawTag(66); - output.WriteMessage(CampaignBudgetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignGroupResult) { - output.WriteRawTag(74); - output.WriteMessage(CampaignGroupResult); - } - if (responseCase_ == ResponseOneofCase.CampaignResult) { - output.WriteRawTag(82); - output.WriteMessage(CampaignResult); - } - if (responseCase_ == ResponseOneofCase.CampaignSharedSetResult) { - output.WriteRawTag(90); - output.WriteMessage(CampaignSharedSetResult); - } - if (responseCase_ == ResponseOneofCase.ConversionActionResult) { - output.WriteRawTag(98); - output.WriteMessage(ConversionActionResult); - } - if (responseCase_ == ResponseOneofCase.CampaignCriterionResult) { - output.WriteRawTag(106); - output.WriteMessage(CampaignCriterionResult); - } - if (responseCase_ == ResponseOneofCase.SharedCriterionResult) { - output.WriteRawTag(114); - output.WriteMessage(SharedCriterionResult); - } - if (responseCase_ == ResponseOneofCase.SharedSetResult) { - output.WriteRawTag(122); - output.WriteMessage(SharedSetResult); - } - if (responseCase_ == ResponseOneofCase.UserListResult) { - output.WriteRawTag(130, 1); - output.WriteMessage(UserListResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupAdLabelResult) { - output.WriteRawTag(138, 1); - output.WriteMessage(AdGroupAdLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionLabelResult) { - output.WriteRawTag(146, 1); - output.WriteMessage(AdGroupCriterionLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupExtensionSettingResult) { - output.WriteRawTag(154, 1); - output.WriteMessage(AdGroupExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupFeedResult) { - output.WriteRawTag(162, 1); - output.WriteMessage(AdGroupFeedResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupLabelResult) { - output.WriteRawTag(170, 1); - output.WriteMessage(AdGroupLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdParameterResult) { - output.WriteRawTag(178, 1); - output.WriteMessage(AdParameterResult); - } - if (responseCase_ == ResponseOneofCase.AssetResult) { - output.WriteRawTag(186, 1); - output.WriteMessage(AssetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignDraftResult) { - output.WriteRawTag(194, 1); - output.WriteMessage(CampaignDraftResult); - } - if (responseCase_ == ResponseOneofCase.CampaignExtensionSettingResult) { - output.WriteRawTag(210, 1); - output.WriteMessage(CampaignExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.CampaignFeedResult) { - output.WriteRawTag(218, 1); - output.WriteMessage(CampaignFeedResult); - } - if (responseCase_ == ResponseOneofCase.CampaignLabelResult) { - output.WriteRawTag(226, 1); - output.WriteMessage(CampaignLabelResult); - } - if (responseCase_ == ResponseOneofCase.CustomerExtensionSettingResult) { - output.WriteRawTag(242, 1); - output.WriteMessage(CustomerExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.CustomerFeedResult) { - output.WriteRawTag(250, 1); - output.WriteMessage(CustomerFeedResult); - } - if (responseCase_ == ResponseOneofCase.CustomerLabelResult) { - output.WriteRawTag(130, 2); - output.WriteMessage(CustomerLabelResult); - } - if (responseCase_ == ResponseOneofCase.CustomerNegativeCriterionResult) { - output.WriteRawTag(146, 2); - output.WriteMessage(CustomerNegativeCriterionResult); - } - if (responseCase_ == ResponseOneofCase.CustomerResult) { - output.WriteRawTag(154, 2); - output.WriteMessage(CustomerResult); - } - if (responseCase_ == ResponseOneofCase.ExtensionFeedItemResult) { - output.WriteRawTag(162, 2); - output.WriteMessage(ExtensionFeedItemResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemResult) { - output.WriteRawTag(170, 2); - output.WriteMessage(FeedItemResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemTargetResult) { - output.WriteRawTag(178, 2); - output.WriteMessage(FeedItemTargetResult); - } - if (responseCase_ == ResponseOneofCase.FeedMappingResult) { - output.WriteRawTag(186, 2); - output.WriteMessage(FeedMappingResult); - } - if (responseCase_ == ResponseOneofCase.FeedResult) { - output.WriteRawTag(194, 2); - output.WriteMessage(FeedResult); - } - if (responseCase_ == ResponseOneofCase.LabelResult) { - output.WriteRawTag(202, 2); - output.WriteMessage(LabelResult); - } - if (responseCase_ == ResponseOneofCase.MediaFileResult) { - output.WriteRawTag(210, 2); - output.WriteMessage(MediaFileResult); - } - if (responseCase_ == ResponseOneofCase.RemarketingActionResult) { - output.WriteRawTag(218, 2); - output.WriteMessage(RemarketingActionResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupResult) { - output.WriteRawTag(226, 2); - output.WriteMessage(KeywordPlanAdGroupResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignResult) { - output.WriteRawTag(234, 2); - output.WriteMessage(KeywordPlanCampaignResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanResult) { - output.WriteRawTag(130, 3); - output.WriteMessage(KeywordPlanResult); - } - if (responseCase_ == ResponseOneofCase.AdResult) { - output.WriteRawTag(138, 3); - output.WriteMessage(AdResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupKeywordResult) { - output.WriteRawTag(146, 3); - output.WriteMessage(KeywordPlanAdGroupKeywordResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignKeywordResult) { - output.WriteRawTag(154, 3); - output.WriteMessage(KeywordPlanCampaignKeywordResult); - } - if (responseCase_ == ResponseOneofCase.CampaignAssetResult) { - output.WriteRawTag(162, 3); - output.WriteMessage(CampaignAssetResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemSetResult) { - output.WriteRawTag(170, 3); - output.WriteMessage(FeedItemSetResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemSetLinkResult) { - output.WriteRawTag(178, 3); - output.WriteMessage(FeedItemSetLinkResult); - } - if (responseCase_ == ResponseOneofCase.ConversionCustomVariableResult) { - output.WriteRawTag(186, 3); - output.WriteMessage(ConversionCustomVariableResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupAssetResult) { - output.WriteRawTag(194, 3); - output.WriteMessage(AdGroupAssetResult); - } - if (responseCase_ == ResponseOneofCase.CustomerAssetResult) { - output.WriteRawTag(202, 3); - output.WriteMessage(CustomerAssetResult); - } - if (responseCase_ == ResponseOneofCase.BiddingDataExclusionResult) { - output.WriteRawTag(210, 3); - output.WriteMessage(BiddingDataExclusionResult); - } - if (responseCase_ == ResponseOneofCase.BiddingSeasonalityAdjustmentResult) { - output.WriteRawTag(218, 3); - output.WriteMessage(BiddingSeasonalityAdjustmentResult); - } - if (responseCase_ == ResponseOneofCase.SmartCampaignSettingResult) { - output.WriteRawTag(234, 3); - output.WriteMessage(SmartCampaignSettingResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupResult) { - output.WriteRawTag(242, 3); - output.WriteMessage(AssetGroupResult); - } - if (responseCase_ == ResponseOneofCase.ConversionValueRuleResult) { - output.WriteRawTag(250, 3); - output.WriteMessage(ConversionValueRuleResult); - } - if (responseCase_ == ResponseOneofCase.ConversionValueRuleSetResult) { - output.WriteRawTag(130, 4); - output.WriteMessage(ConversionValueRuleSetResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupAssetResult) { - output.WriteRawTag(138, 4); - output.WriteMessage(AssetGroupAssetResult); - } - if (responseCase_ == ResponseOneofCase.CustomerConversionGoalResult) { - output.WriteRawTag(146, 4); - output.WriteMessage(CustomerConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.CampaignConversionGoalResult) { - output.WriteRawTag(154, 4); - output.WriteMessage(CampaignConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.CustomConversionGoalResult) { - output.WriteRawTag(162, 4); - output.WriteMessage(CustomConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.ConversionGoalCampaignConfigResult) { - output.WriteRawTag(170, 4); - output.WriteMessage(ConversionGoalCampaignConfigResult); - } - if (responseCase_ == ResponseOneofCase.CustomizerAttributeResult) { - output.WriteRawTag(178, 4); - output.WriteMessage(CustomizerAttributeResult); - } - if (responseCase_ == ResponseOneofCase.AssetSetAssetResult) { - output.WriteRawTag(186, 4); - output.WriteMessage(AssetSetAssetResult); - } - if (responseCase_ == ResponseOneofCase.AssetSetResult) { - output.WriteRawTag(194, 4); - output.WriteMessage(AssetSetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignAssetSetResult) { - output.WriteRawTag(202, 4); - output.WriteMessage(CampaignAssetSetResult); - } - if (responseCase_ == ResponseOneofCase.CustomerCustomizerResult) { - output.WriteRawTag(210, 4); - output.WriteMessage(CustomerCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCustomizerResult) { - output.WriteRawTag(218, 4); - output.WriteMessage(AdGroupCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.CampaignCustomizerResult) { - output.WriteRawTag(226, 4); - output.WriteMessage(CampaignCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionCustomizerResult) { - output.WriteRawTag(234, 4); - output.WriteMessage(AdGroupCriterionCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupListingGroupFilterResult) { - output.WriteRawTag(242, 4); - output.WriteMessage(AssetGroupListingGroupFilterResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupSignalResult) { - output.WriteRawTag(250, 4); - output.WriteMessage(AssetGroupSignalResult); - } - if (responseCase_ == ResponseOneofCase.AudienceResult) { - output.WriteRawTag(130, 5); - output.WriteMessage(AudienceResult); - } - if (responseCase_ == ResponseOneofCase.ExperimentResult) { - output.WriteRawTag(138, 5); - output.WriteMessage(ExperimentResult); - } - if (responseCase_ == ResponseOneofCase.ExperimentArmResult) { - output.WriteRawTag(146, 5); - output.WriteMessage(ExperimentArmResult); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (responseCase_ == ResponseOneofCase.AdGroupAdResult) { - output.WriteRawTag(10); - output.WriteMessage(AdGroupAdResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupBidModifierResult) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupBidModifierResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionResult) { - output.WriteRawTag(26); - output.WriteMessage(AdGroupCriterionResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupResult) { - output.WriteRawTag(42); - output.WriteMessage(AdGroupResult); - } - if (responseCase_ == ResponseOneofCase.BiddingStrategyResult) { - output.WriteRawTag(50); - output.WriteMessage(BiddingStrategyResult); - } - if (responseCase_ == ResponseOneofCase.CampaignBidModifierResult) { - output.WriteRawTag(58); - output.WriteMessage(CampaignBidModifierResult); - } - if (responseCase_ == ResponseOneofCase.CampaignBudgetResult) { - output.WriteRawTag(66); - output.WriteMessage(CampaignBudgetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignGroupResult) { - output.WriteRawTag(74); - output.WriteMessage(CampaignGroupResult); - } - if (responseCase_ == ResponseOneofCase.CampaignResult) { - output.WriteRawTag(82); - output.WriteMessage(CampaignResult); - } - if (responseCase_ == ResponseOneofCase.CampaignSharedSetResult) { - output.WriteRawTag(90); - output.WriteMessage(CampaignSharedSetResult); - } - if (responseCase_ == ResponseOneofCase.ConversionActionResult) { - output.WriteRawTag(98); - output.WriteMessage(ConversionActionResult); - } - if (responseCase_ == ResponseOneofCase.CampaignCriterionResult) { - output.WriteRawTag(106); - output.WriteMessage(CampaignCriterionResult); - } - if (responseCase_ == ResponseOneofCase.SharedCriterionResult) { - output.WriteRawTag(114); - output.WriteMessage(SharedCriterionResult); - } - if (responseCase_ == ResponseOneofCase.SharedSetResult) { - output.WriteRawTag(122); - output.WriteMessage(SharedSetResult); - } - if (responseCase_ == ResponseOneofCase.UserListResult) { - output.WriteRawTag(130, 1); - output.WriteMessage(UserListResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupAdLabelResult) { - output.WriteRawTag(138, 1); - output.WriteMessage(AdGroupAdLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionLabelResult) { - output.WriteRawTag(146, 1); - output.WriteMessage(AdGroupCriterionLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupExtensionSettingResult) { - output.WriteRawTag(154, 1); - output.WriteMessage(AdGroupExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupFeedResult) { - output.WriteRawTag(162, 1); - output.WriteMessage(AdGroupFeedResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupLabelResult) { - output.WriteRawTag(170, 1); - output.WriteMessage(AdGroupLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdParameterResult) { - output.WriteRawTag(178, 1); - output.WriteMessage(AdParameterResult); - } - if (responseCase_ == ResponseOneofCase.AssetResult) { - output.WriteRawTag(186, 1); - output.WriteMessage(AssetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignDraftResult) { - output.WriteRawTag(194, 1); - output.WriteMessage(CampaignDraftResult); - } - if (responseCase_ == ResponseOneofCase.CampaignExtensionSettingResult) { - output.WriteRawTag(210, 1); - output.WriteMessage(CampaignExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.CampaignFeedResult) { - output.WriteRawTag(218, 1); - output.WriteMessage(CampaignFeedResult); - } - if (responseCase_ == ResponseOneofCase.CampaignLabelResult) { - output.WriteRawTag(226, 1); - output.WriteMessage(CampaignLabelResult); - } - if (responseCase_ == ResponseOneofCase.CustomerExtensionSettingResult) { - output.WriteRawTag(242, 1); - output.WriteMessage(CustomerExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.CustomerFeedResult) { - output.WriteRawTag(250, 1); - output.WriteMessage(CustomerFeedResult); - } - if (responseCase_ == ResponseOneofCase.CustomerLabelResult) { - output.WriteRawTag(130, 2); - output.WriteMessage(CustomerLabelResult); - } - if (responseCase_ == ResponseOneofCase.CustomerNegativeCriterionResult) { - output.WriteRawTag(146, 2); - output.WriteMessage(CustomerNegativeCriterionResult); - } - if (responseCase_ == ResponseOneofCase.CustomerResult) { - output.WriteRawTag(154, 2); - output.WriteMessage(CustomerResult); - } - if (responseCase_ == ResponseOneofCase.ExtensionFeedItemResult) { - output.WriteRawTag(162, 2); - output.WriteMessage(ExtensionFeedItemResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemResult) { - output.WriteRawTag(170, 2); - output.WriteMessage(FeedItemResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemTargetResult) { - output.WriteRawTag(178, 2); - output.WriteMessage(FeedItemTargetResult); - } - if (responseCase_ == ResponseOneofCase.FeedMappingResult) { - output.WriteRawTag(186, 2); - output.WriteMessage(FeedMappingResult); - } - if (responseCase_ == ResponseOneofCase.FeedResult) { - output.WriteRawTag(194, 2); - output.WriteMessage(FeedResult); - } - if (responseCase_ == ResponseOneofCase.LabelResult) { - output.WriteRawTag(202, 2); - output.WriteMessage(LabelResult); - } - if (responseCase_ == ResponseOneofCase.MediaFileResult) { - output.WriteRawTag(210, 2); - output.WriteMessage(MediaFileResult); - } - if (responseCase_ == ResponseOneofCase.RemarketingActionResult) { - output.WriteRawTag(218, 2); - output.WriteMessage(RemarketingActionResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupResult) { - output.WriteRawTag(226, 2); - output.WriteMessage(KeywordPlanAdGroupResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignResult) { - output.WriteRawTag(234, 2); - output.WriteMessage(KeywordPlanCampaignResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanResult) { - output.WriteRawTag(130, 3); - output.WriteMessage(KeywordPlanResult); - } - if (responseCase_ == ResponseOneofCase.AdResult) { - output.WriteRawTag(138, 3); - output.WriteMessage(AdResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupKeywordResult) { - output.WriteRawTag(146, 3); - output.WriteMessage(KeywordPlanAdGroupKeywordResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignKeywordResult) { - output.WriteRawTag(154, 3); - output.WriteMessage(KeywordPlanCampaignKeywordResult); - } - if (responseCase_ == ResponseOneofCase.CampaignAssetResult) { - output.WriteRawTag(162, 3); - output.WriteMessage(CampaignAssetResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemSetResult) { - output.WriteRawTag(170, 3); - output.WriteMessage(FeedItemSetResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemSetLinkResult) { - output.WriteRawTag(178, 3); - output.WriteMessage(FeedItemSetLinkResult); - } - if (responseCase_ == ResponseOneofCase.ConversionCustomVariableResult) { - output.WriteRawTag(186, 3); - output.WriteMessage(ConversionCustomVariableResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupAssetResult) { - output.WriteRawTag(194, 3); - output.WriteMessage(AdGroupAssetResult); - } - if (responseCase_ == ResponseOneofCase.CustomerAssetResult) { - output.WriteRawTag(202, 3); - output.WriteMessage(CustomerAssetResult); - } - if (responseCase_ == ResponseOneofCase.BiddingDataExclusionResult) { - output.WriteRawTag(210, 3); - output.WriteMessage(BiddingDataExclusionResult); - } - if (responseCase_ == ResponseOneofCase.BiddingSeasonalityAdjustmentResult) { - output.WriteRawTag(218, 3); - output.WriteMessage(BiddingSeasonalityAdjustmentResult); - } - if (responseCase_ == ResponseOneofCase.SmartCampaignSettingResult) { - output.WriteRawTag(234, 3); - output.WriteMessage(SmartCampaignSettingResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupResult) { - output.WriteRawTag(242, 3); - output.WriteMessage(AssetGroupResult); - } - if (responseCase_ == ResponseOneofCase.ConversionValueRuleResult) { - output.WriteRawTag(250, 3); - output.WriteMessage(ConversionValueRuleResult); - } - if (responseCase_ == ResponseOneofCase.ConversionValueRuleSetResult) { - output.WriteRawTag(130, 4); - output.WriteMessage(ConversionValueRuleSetResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupAssetResult) { - output.WriteRawTag(138, 4); - output.WriteMessage(AssetGroupAssetResult); - } - if (responseCase_ == ResponseOneofCase.CustomerConversionGoalResult) { - output.WriteRawTag(146, 4); - output.WriteMessage(CustomerConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.CampaignConversionGoalResult) { - output.WriteRawTag(154, 4); - output.WriteMessage(CampaignConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.CustomConversionGoalResult) { - output.WriteRawTag(162, 4); - output.WriteMessage(CustomConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.ConversionGoalCampaignConfigResult) { - output.WriteRawTag(170, 4); - output.WriteMessage(ConversionGoalCampaignConfigResult); - } - if (responseCase_ == ResponseOneofCase.CustomizerAttributeResult) { - output.WriteRawTag(178, 4); - output.WriteMessage(CustomizerAttributeResult); - } - if (responseCase_ == ResponseOneofCase.AssetSetAssetResult) { - output.WriteRawTag(186, 4); - output.WriteMessage(AssetSetAssetResult); - } - if (responseCase_ == ResponseOneofCase.AssetSetResult) { - output.WriteRawTag(194, 4); - output.WriteMessage(AssetSetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignAssetSetResult) { - output.WriteRawTag(202, 4); - output.WriteMessage(CampaignAssetSetResult); - } - if (responseCase_ == ResponseOneofCase.CustomerCustomizerResult) { - output.WriteRawTag(210, 4); - output.WriteMessage(CustomerCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCustomizerResult) { - output.WriteRawTag(218, 4); - output.WriteMessage(AdGroupCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.CampaignCustomizerResult) { - output.WriteRawTag(226, 4); - output.WriteMessage(CampaignCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionCustomizerResult) { - output.WriteRawTag(234, 4); - output.WriteMessage(AdGroupCriterionCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupListingGroupFilterResult) { - output.WriteRawTag(242, 4); - output.WriteMessage(AssetGroupListingGroupFilterResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupSignalResult) { - output.WriteRawTag(250, 4); - output.WriteMessage(AssetGroupSignalResult); - } - if (responseCase_ == ResponseOneofCase.AudienceResult) { - output.WriteRawTag(130, 5); - output.WriteMessage(AudienceResult); - } - if (responseCase_ == ResponseOneofCase.ExperimentResult) { - output.WriteRawTag(138, 5); - output.WriteMessage(ExperimentResult); - } - if (responseCase_ == ResponseOneofCase.ExperimentArmResult) { - output.WriteRawTag(146, 5); - output.WriteMessage(ExperimentArmResult); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (responseCase_ == ResponseOneofCase.AdGroupAdLabelResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAdLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupAdResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAdResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupAssetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupAssetResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupBidModifierResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupBidModifierResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionCustomizerResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionLabelResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCriterionResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCriterionResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupCustomizerResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupExtensionSettingResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupFeedResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupFeedResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupLabelResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdGroupLabelResult); - } - if (responseCase_ == ResponseOneofCase.AdGroupResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupResult); - } - if (responseCase_ == ResponseOneofCase.AdParameterResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdParameterResult); - } - if (responseCase_ == ResponseOneofCase.AdResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AdResult); - } - if (responseCase_ == ResponseOneofCase.AssetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupAssetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupAssetResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupListingGroupFilterResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupListingGroupFilterResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupSignalResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupSignalResult); - } - if (responseCase_ == ResponseOneofCase.AssetGroupResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetGroupResult); - } - if (responseCase_ == ResponseOneofCase.AssetSetAssetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSetAssetResult); - } - if (responseCase_ == ResponseOneofCase.AssetSetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetSetResult); - } - if (responseCase_ == ResponseOneofCase.AudienceResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AudienceResult); - } - if (responseCase_ == ResponseOneofCase.BiddingDataExclusionResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingDataExclusionResult); - } - if (responseCase_ == ResponseOneofCase.BiddingSeasonalityAdjustmentResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(BiddingSeasonalityAdjustmentResult); - } - if (responseCase_ == ResponseOneofCase.BiddingStrategyResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BiddingStrategyResult); - } - if (responseCase_ == ResponseOneofCase.CampaignAssetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAssetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignAssetSetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignAssetSetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignBidModifierResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignBidModifierResult); - } - if (responseCase_ == ResponseOneofCase.CampaignBudgetResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignBudgetResult); - } - if (responseCase_ == ResponseOneofCase.CampaignConversionGoalResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.CampaignCriterionResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignCriterionResult); - } - if (responseCase_ == ResponseOneofCase.CampaignCustomizerResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.CampaignDraftResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignDraftResult); - } - if (responseCase_ == ResponseOneofCase.CampaignExtensionSettingResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.CampaignFeedResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignFeedResult); - } - if (responseCase_ == ResponseOneofCase.CampaignGroupResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignGroupResult); - } - if (responseCase_ == ResponseOneofCase.CampaignLabelResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignLabelResult); - } - if (responseCase_ == ResponseOneofCase.CampaignResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignResult); - } - if (responseCase_ == ResponseOneofCase.CampaignSharedSetResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignSharedSetResult); - } - if (responseCase_ == ResponseOneofCase.ConversionActionResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConversionActionResult); - } - if (responseCase_ == ResponseOneofCase.ConversionCustomVariableResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionCustomVariableResult); - } - if (responseCase_ == ResponseOneofCase.ConversionGoalCampaignConfigResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionGoalCampaignConfigResult); - } - if (responseCase_ == ResponseOneofCase.ConversionValueRuleResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRuleResult); - } - if (responseCase_ == ResponseOneofCase.ConversionValueRuleSetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ConversionValueRuleSetResult); - } - if (responseCase_ == ResponseOneofCase.CustomConversionGoalResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.CustomerAssetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerAssetResult); - } - if (responseCase_ == ResponseOneofCase.CustomerConversionGoalResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerConversionGoalResult); - } - if (responseCase_ == ResponseOneofCase.CustomerCustomizerResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerCustomizerResult); - } - if (responseCase_ == ResponseOneofCase.CustomerExtensionSettingResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerExtensionSettingResult); - } - if (responseCase_ == ResponseOneofCase.CustomerFeedResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerFeedResult); - } - if (responseCase_ == ResponseOneofCase.CustomerLabelResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerLabelResult); - } - if (responseCase_ == ResponseOneofCase.CustomerNegativeCriterionResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerNegativeCriterionResult); - } - if (responseCase_ == ResponseOneofCase.CustomerResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerResult); - } - if (responseCase_ == ResponseOneofCase.CustomizerAttributeResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomizerAttributeResult); - } - if (responseCase_ == ResponseOneofCase.ExperimentResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExperimentResult); - } - if (responseCase_ == ResponseOneofCase.ExperimentArmResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExperimentArmResult); - } - if (responseCase_ == ResponseOneofCase.ExtensionFeedItemResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExtensionFeedItemResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemSetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemSetResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemSetLinkResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemSetLinkResult); - } - if (responseCase_ == ResponseOneofCase.FeedItemTargetResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedItemTargetResult); - } - if (responseCase_ == ResponseOneofCase.FeedMappingResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedMappingResult); - } - if (responseCase_ == ResponseOneofCase.FeedResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeedResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanAdGroupResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanCampaignResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupKeywordResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanAdGroupKeywordResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignKeywordResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanCampaignKeywordResult); - } - if (responseCase_ == ResponseOneofCase.KeywordPlanResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(KeywordPlanResult); - } - if (responseCase_ == ResponseOneofCase.LabelResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(LabelResult); - } - if (responseCase_ == ResponseOneofCase.MediaFileResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(MediaFileResult); - } - if (responseCase_ == ResponseOneofCase.RemarketingActionResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(RemarketingActionResult); - } - if (responseCase_ == ResponseOneofCase.SharedCriterionResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SharedCriterionResult); - } - if (responseCase_ == ResponseOneofCase.SharedSetResult) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SharedSetResult); - } - if (responseCase_ == ResponseOneofCase.SmartCampaignSettingResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(SmartCampaignSettingResult); - } - if (responseCase_ == ResponseOneofCase.UserListResult) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(UserListResult); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateOperationResponse other) { - if (other == null) { - return; - } - switch (other.ResponseCase) { - case ResponseOneofCase.AdGroupAdLabelResult: - if (AdGroupAdLabelResult == null) { - AdGroupAdLabelResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult(); - } - AdGroupAdLabelResult.MergeFrom(other.AdGroupAdLabelResult); - break; - case ResponseOneofCase.AdGroupAdResult: - if (AdGroupAdResult == null) { - AdGroupAdResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult(); - } - AdGroupAdResult.MergeFrom(other.AdGroupAdResult); - break; - case ResponseOneofCase.AdGroupAssetResult: - if (AdGroupAssetResult == null) { - AdGroupAssetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult(); - } - AdGroupAssetResult.MergeFrom(other.AdGroupAssetResult); - break; - case ResponseOneofCase.AdGroupBidModifierResult: - if (AdGroupBidModifierResult == null) { - AdGroupBidModifierResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult(); - } - AdGroupBidModifierResult.MergeFrom(other.AdGroupBidModifierResult); - break; - case ResponseOneofCase.AdGroupCriterionCustomizerResult: - if (AdGroupCriterionCustomizerResult == null) { - AdGroupCriterionCustomizerResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult(); - } - AdGroupCriterionCustomizerResult.MergeFrom(other.AdGroupCriterionCustomizerResult); - break; - case ResponseOneofCase.AdGroupCriterionLabelResult: - if (AdGroupCriterionLabelResult == null) { - AdGroupCriterionLabelResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult(); - } - AdGroupCriterionLabelResult.MergeFrom(other.AdGroupCriterionLabelResult); - break; - case ResponseOneofCase.AdGroupCriterionResult: - if (AdGroupCriterionResult == null) { - AdGroupCriterionResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult(); - } - AdGroupCriterionResult.MergeFrom(other.AdGroupCriterionResult); - break; - case ResponseOneofCase.AdGroupCustomizerResult: - if (AdGroupCustomizerResult == null) { - AdGroupCustomizerResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult(); - } - AdGroupCustomizerResult.MergeFrom(other.AdGroupCustomizerResult); - break; - case ResponseOneofCase.AdGroupExtensionSettingResult: - if (AdGroupExtensionSettingResult == null) { - AdGroupExtensionSettingResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult(); - } - AdGroupExtensionSettingResult.MergeFrom(other.AdGroupExtensionSettingResult); - break; - case ResponseOneofCase.AdGroupFeedResult: - if (AdGroupFeedResult == null) { - AdGroupFeedResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult(); - } - AdGroupFeedResult.MergeFrom(other.AdGroupFeedResult); - break; - case ResponseOneofCase.AdGroupLabelResult: - if (AdGroupLabelResult == null) { - AdGroupLabelResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult(); - } - AdGroupLabelResult.MergeFrom(other.AdGroupLabelResult); - break; - case ResponseOneofCase.AdGroupResult: - if (AdGroupResult == null) { - AdGroupResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult(); - } - AdGroupResult.MergeFrom(other.AdGroupResult); - break; - case ResponseOneofCase.AdParameterResult: - if (AdParameterResult == null) { - AdParameterResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult(); - } - AdParameterResult.MergeFrom(other.AdParameterResult); - break; - case ResponseOneofCase.AdResult: - if (AdResult == null) { - AdResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAdResult(); - } - AdResult.MergeFrom(other.AdResult); - break; - case ResponseOneofCase.AssetResult: - if (AssetResult == null) { - AssetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult(); - } - AssetResult.MergeFrom(other.AssetResult); - break; - case ResponseOneofCase.AssetGroupAssetResult: - if (AssetGroupAssetResult == null) { - AssetGroupAssetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult(); - } - AssetGroupAssetResult.MergeFrom(other.AssetGroupAssetResult); - break; - case ResponseOneofCase.AssetGroupListingGroupFilterResult: - if (AssetGroupListingGroupFilterResult == null) { - AssetGroupListingGroupFilterResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult(); - } - AssetGroupListingGroupFilterResult.MergeFrom(other.AssetGroupListingGroupFilterResult); - break; - case ResponseOneofCase.AssetGroupSignalResult: - if (AssetGroupSignalResult == null) { - AssetGroupSignalResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult(); - } - AssetGroupSignalResult.MergeFrom(other.AssetGroupSignalResult); - break; - case ResponseOneofCase.AssetGroupResult: - if (AssetGroupResult == null) { - AssetGroupResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult(); - } - AssetGroupResult.MergeFrom(other.AssetGroupResult); - break; - case ResponseOneofCase.AssetSetAssetResult: - if (AssetSetAssetResult == null) { - AssetSetAssetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult(); - } - AssetSetAssetResult.MergeFrom(other.AssetSetAssetResult); - break; - case ResponseOneofCase.AssetSetResult: - if (AssetSetResult == null) { - AssetSetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult(); - } - AssetSetResult.MergeFrom(other.AssetSetResult); - break; - case ResponseOneofCase.AudienceResult: - if (AudienceResult == null) { - AudienceResult = new global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult(); - } - AudienceResult.MergeFrom(other.AudienceResult); - break; - case ResponseOneofCase.BiddingDataExclusionResult: - if (BiddingDataExclusionResult == null) { - BiddingDataExclusionResult = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult(); - } - BiddingDataExclusionResult.MergeFrom(other.BiddingDataExclusionResult); - break; - case ResponseOneofCase.BiddingSeasonalityAdjustmentResult: - if (BiddingSeasonalityAdjustmentResult == null) { - BiddingSeasonalityAdjustmentResult = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult(); - } - BiddingSeasonalityAdjustmentResult.MergeFrom(other.BiddingSeasonalityAdjustmentResult); - break; - case ResponseOneofCase.BiddingStrategyResult: - if (BiddingStrategyResult == null) { - BiddingStrategyResult = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult(); - } - BiddingStrategyResult.MergeFrom(other.BiddingStrategyResult); - break; - case ResponseOneofCase.CampaignAssetResult: - if (CampaignAssetResult == null) { - CampaignAssetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult(); - } - CampaignAssetResult.MergeFrom(other.CampaignAssetResult); - break; - case ResponseOneofCase.CampaignAssetSetResult: - if (CampaignAssetSetResult == null) { - CampaignAssetSetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult(); - } - CampaignAssetSetResult.MergeFrom(other.CampaignAssetSetResult); - break; - case ResponseOneofCase.CampaignBidModifierResult: - if (CampaignBidModifierResult == null) { - CampaignBidModifierResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult(); - } - CampaignBidModifierResult.MergeFrom(other.CampaignBidModifierResult); - break; - case ResponseOneofCase.CampaignBudgetResult: - if (CampaignBudgetResult == null) { - CampaignBudgetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult(); - } - CampaignBudgetResult.MergeFrom(other.CampaignBudgetResult); - break; - case ResponseOneofCase.CampaignConversionGoalResult: - if (CampaignConversionGoalResult == null) { - CampaignConversionGoalResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult(); - } - CampaignConversionGoalResult.MergeFrom(other.CampaignConversionGoalResult); - break; - case ResponseOneofCase.CampaignCriterionResult: - if (CampaignCriterionResult == null) { - CampaignCriterionResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult(); - } - CampaignCriterionResult.MergeFrom(other.CampaignCriterionResult); - break; - case ResponseOneofCase.CampaignCustomizerResult: - if (CampaignCustomizerResult == null) { - CampaignCustomizerResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult(); - } - CampaignCustomizerResult.MergeFrom(other.CampaignCustomizerResult); - break; - case ResponseOneofCase.CampaignDraftResult: - if (CampaignDraftResult == null) { - CampaignDraftResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult(); - } - CampaignDraftResult.MergeFrom(other.CampaignDraftResult); - break; - case ResponseOneofCase.CampaignExtensionSettingResult: - if (CampaignExtensionSettingResult == null) { - CampaignExtensionSettingResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult(); - } - CampaignExtensionSettingResult.MergeFrom(other.CampaignExtensionSettingResult); - break; - case ResponseOneofCase.CampaignFeedResult: - if (CampaignFeedResult == null) { - CampaignFeedResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult(); - } - CampaignFeedResult.MergeFrom(other.CampaignFeedResult); - break; - case ResponseOneofCase.CampaignGroupResult: - if (CampaignGroupResult == null) { - CampaignGroupResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult(); - } - CampaignGroupResult.MergeFrom(other.CampaignGroupResult); - break; - case ResponseOneofCase.CampaignLabelResult: - if (CampaignLabelResult == null) { - CampaignLabelResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult(); - } - CampaignLabelResult.MergeFrom(other.CampaignLabelResult); - break; - case ResponseOneofCase.CampaignResult: - if (CampaignResult == null) { - CampaignResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult(); - } - CampaignResult.MergeFrom(other.CampaignResult); - break; - case ResponseOneofCase.CampaignSharedSetResult: - if (CampaignSharedSetResult == null) { - CampaignSharedSetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult(); - } - CampaignSharedSetResult.MergeFrom(other.CampaignSharedSetResult); - break; - case ResponseOneofCase.ConversionActionResult: - if (ConversionActionResult == null) { - ConversionActionResult = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult(); - } - ConversionActionResult.MergeFrom(other.ConversionActionResult); - break; - case ResponseOneofCase.ConversionCustomVariableResult: - if (ConversionCustomVariableResult == null) { - ConversionCustomVariableResult = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult(); - } - ConversionCustomVariableResult.MergeFrom(other.ConversionCustomVariableResult); - break; - case ResponseOneofCase.ConversionGoalCampaignConfigResult: - if (ConversionGoalCampaignConfigResult == null) { - ConversionGoalCampaignConfigResult = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult(); - } - ConversionGoalCampaignConfigResult.MergeFrom(other.ConversionGoalCampaignConfigResult); - break; - case ResponseOneofCase.ConversionValueRuleResult: - if (ConversionValueRuleResult == null) { - ConversionValueRuleResult = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult(); - } - ConversionValueRuleResult.MergeFrom(other.ConversionValueRuleResult); - break; - case ResponseOneofCase.ConversionValueRuleSetResult: - if (ConversionValueRuleSetResult == null) { - ConversionValueRuleSetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult(); - } - ConversionValueRuleSetResult.MergeFrom(other.ConversionValueRuleSetResult); - break; - case ResponseOneofCase.CustomConversionGoalResult: - if (CustomConversionGoalResult == null) { - CustomConversionGoalResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult(); - } - CustomConversionGoalResult.MergeFrom(other.CustomConversionGoalResult); - break; - case ResponseOneofCase.CustomerAssetResult: - if (CustomerAssetResult == null) { - CustomerAssetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult(); - } - CustomerAssetResult.MergeFrom(other.CustomerAssetResult); - break; - case ResponseOneofCase.CustomerConversionGoalResult: - if (CustomerConversionGoalResult == null) { - CustomerConversionGoalResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult(); - } - CustomerConversionGoalResult.MergeFrom(other.CustomerConversionGoalResult); - break; - case ResponseOneofCase.CustomerCustomizerResult: - if (CustomerCustomizerResult == null) { - CustomerCustomizerResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult(); - } - CustomerCustomizerResult.MergeFrom(other.CustomerCustomizerResult); - break; - case ResponseOneofCase.CustomerExtensionSettingResult: - if (CustomerExtensionSettingResult == null) { - CustomerExtensionSettingResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult(); - } - CustomerExtensionSettingResult.MergeFrom(other.CustomerExtensionSettingResult); - break; - case ResponseOneofCase.CustomerFeedResult: - if (CustomerFeedResult == null) { - CustomerFeedResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult(); - } - CustomerFeedResult.MergeFrom(other.CustomerFeedResult); - break; - case ResponseOneofCase.CustomerLabelResult: - if (CustomerLabelResult == null) { - CustomerLabelResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult(); - } - CustomerLabelResult.MergeFrom(other.CustomerLabelResult); - break; - case ResponseOneofCase.CustomerNegativeCriterionResult: - if (CustomerNegativeCriterionResult == null) { - CustomerNegativeCriterionResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult(); - } - CustomerNegativeCriterionResult.MergeFrom(other.CustomerNegativeCriterionResult); - break; - case ResponseOneofCase.CustomerResult: - if (CustomerResult == null) { - CustomerResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult(); - } - CustomerResult.MergeFrom(other.CustomerResult); - break; - case ResponseOneofCase.CustomizerAttributeResult: - if (CustomizerAttributeResult == null) { - CustomizerAttributeResult = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult(); - } - CustomizerAttributeResult.MergeFrom(other.CustomizerAttributeResult); - break; - case ResponseOneofCase.ExperimentResult: - if (ExperimentResult == null) { - ExperimentResult = new global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult(); - } - ExperimentResult.MergeFrom(other.ExperimentResult); - break; - case ResponseOneofCase.ExperimentArmResult: - if (ExperimentArmResult == null) { - ExperimentArmResult = new global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult(); - } - ExperimentArmResult.MergeFrom(other.ExperimentArmResult); - break; - case ResponseOneofCase.ExtensionFeedItemResult: - if (ExtensionFeedItemResult == null) { - ExtensionFeedItemResult = new global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult(); - } - ExtensionFeedItemResult.MergeFrom(other.ExtensionFeedItemResult); - break; - case ResponseOneofCase.FeedItemResult: - if (FeedItemResult == null) { - FeedItemResult = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult(); - } - FeedItemResult.MergeFrom(other.FeedItemResult); - break; - case ResponseOneofCase.FeedItemSetResult: - if (FeedItemSetResult == null) { - FeedItemSetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult(); - } - FeedItemSetResult.MergeFrom(other.FeedItemSetResult); - break; - case ResponseOneofCase.FeedItemSetLinkResult: - if (FeedItemSetLinkResult == null) { - FeedItemSetLinkResult = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult(); - } - FeedItemSetLinkResult.MergeFrom(other.FeedItemSetLinkResult); - break; - case ResponseOneofCase.FeedItemTargetResult: - if (FeedItemTargetResult == null) { - FeedItemTargetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult(); - } - FeedItemTargetResult.MergeFrom(other.FeedItemTargetResult); - break; - case ResponseOneofCase.FeedMappingResult: - if (FeedMappingResult == null) { - FeedMappingResult = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult(); - } - FeedMappingResult.MergeFrom(other.FeedMappingResult); - break; - case ResponseOneofCase.FeedResult: - if (FeedResult == null) { - FeedResult = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult(); - } - FeedResult.MergeFrom(other.FeedResult); - break; - case ResponseOneofCase.KeywordPlanAdGroupResult: - if (KeywordPlanAdGroupResult == null) { - KeywordPlanAdGroupResult = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult(); - } - KeywordPlanAdGroupResult.MergeFrom(other.KeywordPlanAdGroupResult); - break; - case ResponseOneofCase.KeywordPlanCampaignResult: - if (KeywordPlanCampaignResult == null) { - KeywordPlanCampaignResult = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult(); - } - KeywordPlanCampaignResult.MergeFrom(other.KeywordPlanCampaignResult); - break; - case ResponseOneofCase.KeywordPlanAdGroupKeywordResult: - if (KeywordPlanAdGroupKeywordResult == null) { - KeywordPlanAdGroupKeywordResult = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult(); - } - KeywordPlanAdGroupKeywordResult.MergeFrom(other.KeywordPlanAdGroupKeywordResult); - break; - case ResponseOneofCase.KeywordPlanCampaignKeywordResult: - if (KeywordPlanCampaignKeywordResult == null) { - KeywordPlanCampaignKeywordResult = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult(); - } - KeywordPlanCampaignKeywordResult.MergeFrom(other.KeywordPlanCampaignKeywordResult); - break; - case ResponseOneofCase.KeywordPlanResult: - if (KeywordPlanResult == null) { - KeywordPlanResult = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult(); - } - KeywordPlanResult.MergeFrom(other.KeywordPlanResult); - break; - case ResponseOneofCase.LabelResult: - if (LabelResult == null) { - LabelResult = new global::Google.Ads.GoogleAds.V12.Services.MutateLabelResult(); - } - LabelResult.MergeFrom(other.LabelResult); - break; - case ResponseOneofCase.MediaFileResult: - if (MediaFileResult == null) { - MediaFileResult = new global::Google.Ads.GoogleAds.V12.Services.MutateMediaFileResult(); - } - MediaFileResult.MergeFrom(other.MediaFileResult); - break; - case ResponseOneofCase.RemarketingActionResult: - if (RemarketingActionResult == null) { - RemarketingActionResult = new global::Google.Ads.GoogleAds.V12.Services.MutateRemarketingActionResult(); - } - RemarketingActionResult.MergeFrom(other.RemarketingActionResult); - break; - case ResponseOneofCase.SharedCriterionResult: - if (SharedCriterionResult == null) { - SharedCriterionResult = new global::Google.Ads.GoogleAds.V12.Services.MutateSharedCriterionResult(); - } - SharedCriterionResult.MergeFrom(other.SharedCriterionResult); - break; - case ResponseOneofCase.SharedSetResult: - if (SharedSetResult == null) { - SharedSetResult = new global::Google.Ads.GoogleAds.V12.Services.MutateSharedSetResult(); - } - SharedSetResult.MergeFrom(other.SharedSetResult); - break; - case ResponseOneofCase.SmartCampaignSettingResult: - if (SmartCampaignSettingResult == null) { - SmartCampaignSettingResult = new global::Google.Ads.GoogleAds.V12.Services.MutateSmartCampaignSettingResult(); - } - SmartCampaignSettingResult.MergeFrom(other.SmartCampaignSettingResult); - break; - case ResponseOneofCase.UserListResult: - if (UserListResult == null) { - UserListResult = new global::Google.Ads.GoogleAds.V12.Services.MutateUserListResult(); - } - UserListResult.MergeFrom(other.UserListResult); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult(); - if (responseCase_ == ResponseOneofCase.AdGroupAdResult) { - subBuilder.MergeFrom(AdGroupAdResult); - } - input.ReadMessage(subBuilder); - AdGroupAdResult = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult(); - if (responseCase_ == ResponseOneofCase.AdGroupBidModifierResult) { - subBuilder.MergeFrom(AdGroupBidModifierResult); - } - input.ReadMessage(subBuilder); - AdGroupBidModifierResult = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionResult) { - subBuilder.MergeFrom(AdGroupCriterionResult); - } - input.ReadMessage(subBuilder); - AdGroupCriterionResult = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult(); - if (responseCase_ == ResponseOneofCase.AdGroupResult) { - subBuilder.MergeFrom(AdGroupResult); - } - input.ReadMessage(subBuilder); - AdGroupResult = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult(); - if (responseCase_ == ResponseOneofCase.BiddingStrategyResult) { - subBuilder.MergeFrom(BiddingStrategyResult); - } - input.ReadMessage(subBuilder); - BiddingStrategyResult = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult(); - if (responseCase_ == ResponseOneofCase.CampaignBidModifierResult) { - subBuilder.MergeFrom(CampaignBidModifierResult); - } - input.ReadMessage(subBuilder); - CampaignBidModifierResult = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult(); - if (responseCase_ == ResponseOneofCase.CampaignBudgetResult) { - subBuilder.MergeFrom(CampaignBudgetResult); - } - input.ReadMessage(subBuilder); - CampaignBudgetResult = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult(); - if (responseCase_ == ResponseOneofCase.CampaignGroupResult) { - subBuilder.MergeFrom(CampaignGroupResult); - } - input.ReadMessage(subBuilder); - CampaignGroupResult = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult(); - if (responseCase_ == ResponseOneofCase.CampaignResult) { - subBuilder.MergeFrom(CampaignResult); - } - input.ReadMessage(subBuilder); - CampaignResult = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult(); - if (responseCase_ == ResponseOneofCase.CampaignSharedSetResult) { - subBuilder.MergeFrom(CampaignSharedSetResult); - } - input.ReadMessage(subBuilder); - CampaignSharedSetResult = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult(); - if (responseCase_ == ResponseOneofCase.ConversionActionResult) { - subBuilder.MergeFrom(ConversionActionResult); - } - input.ReadMessage(subBuilder); - ConversionActionResult = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult(); - if (responseCase_ == ResponseOneofCase.CampaignCriterionResult) { - subBuilder.MergeFrom(CampaignCriterionResult); - } - input.ReadMessage(subBuilder); - CampaignCriterionResult = subBuilder; - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Services.MutateSharedCriterionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateSharedCriterionResult(); - if (responseCase_ == ResponseOneofCase.SharedCriterionResult) { - subBuilder.MergeFrom(SharedCriterionResult); - } - input.ReadMessage(subBuilder); - SharedCriterionResult = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Services.MutateSharedSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateSharedSetResult(); - if (responseCase_ == ResponseOneofCase.SharedSetResult) { - subBuilder.MergeFrom(SharedSetResult); - } - input.ReadMessage(subBuilder); - SharedSetResult = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Services.MutateUserListResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateUserListResult(); - if (responseCase_ == ResponseOneofCase.UserListResult) { - subBuilder.MergeFrom(UserListResult); - } - input.ReadMessage(subBuilder); - UserListResult = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult(); - if (responseCase_ == ResponseOneofCase.AdGroupAdLabelResult) { - subBuilder.MergeFrom(AdGroupAdLabelResult); - } - input.ReadMessage(subBuilder); - AdGroupAdLabelResult = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionLabelResult) { - subBuilder.MergeFrom(AdGroupCriterionLabelResult); - } - input.ReadMessage(subBuilder); - AdGroupCriterionLabelResult = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult(); - if (responseCase_ == ResponseOneofCase.AdGroupExtensionSettingResult) { - subBuilder.MergeFrom(AdGroupExtensionSettingResult); - } - input.ReadMessage(subBuilder); - AdGroupExtensionSettingResult = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult(); - if (responseCase_ == ResponseOneofCase.AdGroupFeedResult) { - subBuilder.MergeFrom(AdGroupFeedResult); - } - input.ReadMessage(subBuilder); - AdGroupFeedResult = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult(); - if (responseCase_ == ResponseOneofCase.AdGroupLabelResult) { - subBuilder.MergeFrom(AdGroupLabelResult); - } - input.ReadMessage(subBuilder); - AdGroupLabelResult = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult(); - if (responseCase_ == ResponseOneofCase.AdParameterResult) { - subBuilder.MergeFrom(AdParameterResult); - } - input.ReadMessage(subBuilder); - AdParameterResult = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult(); - if (responseCase_ == ResponseOneofCase.AssetResult) { - subBuilder.MergeFrom(AssetResult); - } - input.ReadMessage(subBuilder); - AssetResult = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult(); - if (responseCase_ == ResponseOneofCase.CampaignDraftResult) { - subBuilder.MergeFrom(CampaignDraftResult); - } - input.ReadMessage(subBuilder); - CampaignDraftResult = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult(); - if (responseCase_ == ResponseOneofCase.CampaignExtensionSettingResult) { - subBuilder.MergeFrom(CampaignExtensionSettingResult); - } - input.ReadMessage(subBuilder); - CampaignExtensionSettingResult = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult(); - if (responseCase_ == ResponseOneofCase.CampaignFeedResult) { - subBuilder.MergeFrom(CampaignFeedResult); - } - input.ReadMessage(subBuilder); - CampaignFeedResult = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult(); - if (responseCase_ == ResponseOneofCase.CampaignLabelResult) { - subBuilder.MergeFrom(CampaignLabelResult); - } - input.ReadMessage(subBuilder); - CampaignLabelResult = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult(); - if (responseCase_ == ResponseOneofCase.CustomerExtensionSettingResult) { - subBuilder.MergeFrom(CustomerExtensionSettingResult); - } - input.ReadMessage(subBuilder); - CustomerExtensionSettingResult = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult(); - if (responseCase_ == ResponseOneofCase.CustomerFeedResult) { - subBuilder.MergeFrom(CustomerFeedResult); - } - input.ReadMessage(subBuilder); - CustomerFeedResult = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult(); - if (responseCase_ == ResponseOneofCase.CustomerLabelResult) { - subBuilder.MergeFrom(CustomerLabelResult); - } - input.ReadMessage(subBuilder); - CustomerLabelResult = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult(); - if (responseCase_ == ResponseOneofCase.CustomerNegativeCriterionResult) { - subBuilder.MergeFrom(CustomerNegativeCriterionResult); - } - input.ReadMessage(subBuilder); - CustomerNegativeCriterionResult = subBuilder; - break; - } - case 282: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult(); - if (responseCase_ == ResponseOneofCase.CustomerResult) { - subBuilder.MergeFrom(CustomerResult); - } - input.ReadMessage(subBuilder); - CustomerResult = subBuilder; - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult(); - if (responseCase_ == ResponseOneofCase.ExtensionFeedItemResult) { - subBuilder.MergeFrom(ExtensionFeedItemResult); - } - input.ReadMessage(subBuilder); - ExtensionFeedItemResult = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult(); - if (responseCase_ == ResponseOneofCase.FeedItemResult) { - subBuilder.MergeFrom(FeedItemResult); - } - input.ReadMessage(subBuilder); - FeedItemResult = subBuilder; - break; - } - case 306: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult(); - if (responseCase_ == ResponseOneofCase.FeedItemTargetResult) { - subBuilder.MergeFrom(FeedItemTargetResult); - } - input.ReadMessage(subBuilder); - FeedItemTargetResult = subBuilder; - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult(); - if (responseCase_ == ResponseOneofCase.FeedMappingResult) { - subBuilder.MergeFrom(FeedMappingResult); - } - input.ReadMessage(subBuilder); - FeedMappingResult = subBuilder; - break; - } - case 322: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult(); - if (responseCase_ == ResponseOneofCase.FeedResult) { - subBuilder.MergeFrom(FeedResult); - } - input.ReadMessage(subBuilder); - FeedResult = subBuilder; - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Services.MutateLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateLabelResult(); - if (responseCase_ == ResponseOneofCase.LabelResult) { - subBuilder.MergeFrom(LabelResult); - } - input.ReadMessage(subBuilder); - LabelResult = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Services.MutateMediaFileResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateMediaFileResult(); - if (responseCase_ == ResponseOneofCase.MediaFileResult) { - subBuilder.MergeFrom(MediaFileResult); - } - input.ReadMessage(subBuilder); - MediaFileResult = subBuilder; - break; - } - case 346: { - global::Google.Ads.GoogleAds.V12.Services.MutateRemarketingActionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateRemarketingActionResult(); - if (responseCase_ == ResponseOneofCase.RemarketingActionResult) { - subBuilder.MergeFrom(RemarketingActionResult); - } - input.ReadMessage(subBuilder); - RemarketingActionResult = subBuilder; - break; - } - case 354: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupResult) { - subBuilder.MergeFrom(KeywordPlanAdGroupResult); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupResult = subBuilder; - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignResult) { - subBuilder.MergeFrom(KeywordPlanCampaignResult); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignResult = subBuilder; - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanResult) { - subBuilder.MergeFrom(KeywordPlanResult); - } - input.ReadMessage(subBuilder); - KeywordPlanResult = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdResult(); - if (responseCase_ == ResponseOneofCase.AdResult) { - subBuilder.MergeFrom(AdResult); - } - input.ReadMessage(subBuilder); - AdResult = subBuilder; - break; - } - case 402: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupKeywordResult) { - subBuilder.MergeFrom(KeywordPlanAdGroupKeywordResult); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupKeywordResult = subBuilder; - break; - } - case 410: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignKeywordResult) { - subBuilder.MergeFrom(KeywordPlanCampaignKeywordResult); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignKeywordResult = subBuilder; - break; - } - case 418: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult(); - if (responseCase_ == ResponseOneofCase.CampaignAssetResult) { - subBuilder.MergeFrom(CampaignAssetResult); - } - input.ReadMessage(subBuilder); - CampaignAssetResult = subBuilder; - break; - } - case 426: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult(); - if (responseCase_ == ResponseOneofCase.FeedItemSetResult) { - subBuilder.MergeFrom(FeedItemSetResult); - } - input.ReadMessage(subBuilder); - FeedItemSetResult = subBuilder; - break; - } - case 434: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult(); - if (responseCase_ == ResponseOneofCase.FeedItemSetLinkResult) { - subBuilder.MergeFrom(FeedItemSetLinkResult); - } - input.ReadMessage(subBuilder); - FeedItemSetLinkResult = subBuilder; - break; - } - case 442: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult(); - if (responseCase_ == ResponseOneofCase.ConversionCustomVariableResult) { - subBuilder.MergeFrom(ConversionCustomVariableResult); - } - input.ReadMessage(subBuilder); - ConversionCustomVariableResult = subBuilder; - break; - } - case 450: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult(); - if (responseCase_ == ResponseOneofCase.AdGroupAssetResult) { - subBuilder.MergeFrom(AdGroupAssetResult); - } - input.ReadMessage(subBuilder); - AdGroupAssetResult = subBuilder; - break; - } - case 458: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult(); - if (responseCase_ == ResponseOneofCase.CustomerAssetResult) { - subBuilder.MergeFrom(CustomerAssetResult); - } - input.ReadMessage(subBuilder); - CustomerAssetResult = subBuilder; - break; - } - case 466: { - global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult(); - if (responseCase_ == ResponseOneofCase.BiddingDataExclusionResult) { - subBuilder.MergeFrom(BiddingDataExclusionResult); - } - input.ReadMessage(subBuilder); - BiddingDataExclusionResult = subBuilder; - break; - } - case 474: { - global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult(); - if (responseCase_ == ResponseOneofCase.BiddingSeasonalityAdjustmentResult) { - subBuilder.MergeFrom(BiddingSeasonalityAdjustmentResult); - } - input.ReadMessage(subBuilder); - BiddingSeasonalityAdjustmentResult = subBuilder; - break; - } - case 490: { - global::Google.Ads.GoogleAds.V12.Services.MutateSmartCampaignSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateSmartCampaignSettingResult(); - if (responseCase_ == ResponseOneofCase.SmartCampaignSettingResult) { - subBuilder.MergeFrom(SmartCampaignSettingResult); - } - input.ReadMessage(subBuilder); - SmartCampaignSettingResult = subBuilder; - break; - } - case 498: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupResult) { - subBuilder.MergeFrom(AssetGroupResult); - } - input.ReadMessage(subBuilder); - AssetGroupResult = subBuilder; - break; - } - case 506: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult(); - if (responseCase_ == ResponseOneofCase.ConversionValueRuleResult) { - subBuilder.MergeFrom(ConversionValueRuleResult); - } - input.ReadMessage(subBuilder); - ConversionValueRuleResult = subBuilder; - break; - } - case 514: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult(); - if (responseCase_ == ResponseOneofCase.ConversionValueRuleSetResult) { - subBuilder.MergeFrom(ConversionValueRuleSetResult); - } - input.ReadMessage(subBuilder); - ConversionValueRuleSetResult = subBuilder; - break; - } - case 522: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupAssetResult) { - subBuilder.MergeFrom(AssetGroupAssetResult); - } - input.ReadMessage(subBuilder); - AssetGroupAssetResult = subBuilder; - break; - } - case 530: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult(); - if (responseCase_ == ResponseOneofCase.CustomerConversionGoalResult) { - subBuilder.MergeFrom(CustomerConversionGoalResult); - } - input.ReadMessage(subBuilder); - CustomerConversionGoalResult = subBuilder; - break; - } - case 538: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult(); - if (responseCase_ == ResponseOneofCase.CampaignConversionGoalResult) { - subBuilder.MergeFrom(CampaignConversionGoalResult); - } - input.ReadMessage(subBuilder); - CampaignConversionGoalResult = subBuilder; - break; - } - case 546: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult(); - if (responseCase_ == ResponseOneofCase.CustomConversionGoalResult) { - subBuilder.MergeFrom(CustomConversionGoalResult); - } - input.ReadMessage(subBuilder); - CustomConversionGoalResult = subBuilder; - break; - } - case 554: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult(); - if (responseCase_ == ResponseOneofCase.ConversionGoalCampaignConfigResult) { - subBuilder.MergeFrom(ConversionGoalCampaignConfigResult); - } - input.ReadMessage(subBuilder); - ConversionGoalCampaignConfigResult = subBuilder; - break; - } - case 562: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult(); - if (responseCase_ == ResponseOneofCase.CustomizerAttributeResult) { - subBuilder.MergeFrom(CustomizerAttributeResult); - } - input.ReadMessage(subBuilder); - CustomizerAttributeResult = subBuilder; - break; - } - case 570: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult(); - if (responseCase_ == ResponseOneofCase.AssetSetAssetResult) { - subBuilder.MergeFrom(AssetSetAssetResult); - } - input.ReadMessage(subBuilder); - AssetSetAssetResult = subBuilder; - break; - } - case 578: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult(); - if (responseCase_ == ResponseOneofCase.AssetSetResult) { - subBuilder.MergeFrom(AssetSetResult); - } - input.ReadMessage(subBuilder); - AssetSetResult = subBuilder; - break; - } - case 586: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult(); - if (responseCase_ == ResponseOneofCase.CampaignAssetSetResult) { - subBuilder.MergeFrom(CampaignAssetSetResult); - } - input.ReadMessage(subBuilder); - CampaignAssetSetResult = subBuilder; - break; - } - case 594: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult(); - if (responseCase_ == ResponseOneofCase.CustomerCustomizerResult) { - subBuilder.MergeFrom(CustomerCustomizerResult); - } - input.ReadMessage(subBuilder); - CustomerCustomizerResult = subBuilder; - break; - } - case 602: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCustomizerResult) { - subBuilder.MergeFrom(AdGroupCustomizerResult); - } - input.ReadMessage(subBuilder); - AdGroupCustomizerResult = subBuilder; - break; - } - case 610: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult(); - if (responseCase_ == ResponseOneofCase.CampaignCustomizerResult) { - subBuilder.MergeFrom(CampaignCustomizerResult); - } - input.ReadMessage(subBuilder); - CampaignCustomizerResult = subBuilder; - break; - } - case 618: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionCustomizerResult) { - subBuilder.MergeFrom(AdGroupCriterionCustomizerResult); - } - input.ReadMessage(subBuilder); - AdGroupCriterionCustomizerResult = subBuilder; - break; - } - case 626: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupListingGroupFilterResult) { - subBuilder.MergeFrom(AssetGroupListingGroupFilterResult); - } - input.ReadMessage(subBuilder); - AssetGroupListingGroupFilterResult = subBuilder; - break; - } - case 634: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupSignalResult) { - subBuilder.MergeFrom(AssetGroupSignalResult); - } - input.ReadMessage(subBuilder); - AssetGroupSignalResult = subBuilder; - break; - } - case 642: { - global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult(); - if (responseCase_ == ResponseOneofCase.AudienceResult) { - subBuilder.MergeFrom(AudienceResult); - } - input.ReadMessage(subBuilder); - AudienceResult = subBuilder; - break; - } - case 650: { - global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult(); - if (responseCase_ == ResponseOneofCase.ExperimentResult) { - subBuilder.MergeFrom(ExperimentResult); - } - input.ReadMessage(subBuilder); - ExperimentResult = subBuilder; - break; - } - case 658: { - global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult(); - if (responseCase_ == ResponseOneofCase.ExperimentArmResult) { - subBuilder.MergeFrom(ExperimentArmResult); - } - input.ReadMessage(subBuilder); - ExperimentArmResult = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdResult(); - if (responseCase_ == ResponseOneofCase.AdGroupAdResult) { - subBuilder.MergeFrom(AdGroupAdResult); - } - input.ReadMessage(subBuilder); - AdGroupAdResult = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupBidModifierResult(); - if (responseCase_ == ResponseOneofCase.AdGroupBidModifierResult) { - subBuilder.MergeFrom(AdGroupBidModifierResult); - } - input.ReadMessage(subBuilder); - AdGroupBidModifierResult = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionResult) { - subBuilder.MergeFrom(AdGroupCriterionResult); - } - input.ReadMessage(subBuilder); - AdGroupCriterionResult = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupResult(); - if (responseCase_ == ResponseOneofCase.AdGroupResult) { - subBuilder.MergeFrom(AdGroupResult); - } - input.ReadMessage(subBuilder); - AdGroupResult = subBuilder; - break; - } - case 50: { - global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingStrategyResult(); - if (responseCase_ == ResponseOneofCase.BiddingStrategyResult) { - subBuilder.MergeFrom(BiddingStrategyResult); - } - input.ReadMessage(subBuilder); - BiddingStrategyResult = subBuilder; - break; - } - case 58: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBidModifierResult(); - if (responseCase_ == ResponseOneofCase.CampaignBidModifierResult) { - subBuilder.MergeFrom(CampaignBidModifierResult); - } - input.ReadMessage(subBuilder); - CampaignBidModifierResult = subBuilder; - break; - } - case 66: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignBudgetResult(); - if (responseCase_ == ResponseOneofCase.CampaignBudgetResult) { - subBuilder.MergeFrom(CampaignBudgetResult); - } - input.ReadMessage(subBuilder); - CampaignBudgetResult = subBuilder; - break; - } - case 74: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignGroupResult(); - if (responseCase_ == ResponseOneofCase.CampaignGroupResult) { - subBuilder.MergeFrom(CampaignGroupResult); - } - input.ReadMessage(subBuilder); - CampaignGroupResult = subBuilder; - break; - } - case 82: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignResult(); - if (responseCase_ == ResponseOneofCase.CampaignResult) { - subBuilder.MergeFrom(CampaignResult); - } - input.ReadMessage(subBuilder); - CampaignResult = subBuilder; - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignSharedSetResult(); - if (responseCase_ == ResponseOneofCase.CampaignSharedSetResult) { - subBuilder.MergeFrom(CampaignSharedSetResult); - } - input.ReadMessage(subBuilder); - CampaignSharedSetResult = subBuilder; - break; - } - case 98: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionActionResult(); - if (responseCase_ == ResponseOneofCase.ConversionActionResult) { - subBuilder.MergeFrom(ConversionActionResult); - } - input.ReadMessage(subBuilder); - ConversionActionResult = subBuilder; - break; - } - case 106: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCriterionResult(); - if (responseCase_ == ResponseOneofCase.CampaignCriterionResult) { - subBuilder.MergeFrom(CampaignCriterionResult); - } - input.ReadMessage(subBuilder); - CampaignCriterionResult = subBuilder; - break; - } - case 114: { - global::Google.Ads.GoogleAds.V12.Services.MutateSharedCriterionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateSharedCriterionResult(); - if (responseCase_ == ResponseOneofCase.SharedCriterionResult) { - subBuilder.MergeFrom(SharedCriterionResult); - } - input.ReadMessage(subBuilder); - SharedCriterionResult = subBuilder; - break; - } - case 122: { - global::Google.Ads.GoogleAds.V12.Services.MutateSharedSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateSharedSetResult(); - if (responseCase_ == ResponseOneofCase.SharedSetResult) { - subBuilder.MergeFrom(SharedSetResult); - } - input.ReadMessage(subBuilder); - SharedSetResult = subBuilder; - break; - } - case 130: { - global::Google.Ads.GoogleAds.V12.Services.MutateUserListResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateUserListResult(); - if (responseCase_ == ResponseOneofCase.UserListResult) { - subBuilder.MergeFrom(UserListResult); - } - input.ReadMessage(subBuilder); - UserListResult = subBuilder; - break; - } - case 138: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAdLabelResult(); - if (responseCase_ == ResponseOneofCase.AdGroupAdLabelResult) { - subBuilder.MergeFrom(AdGroupAdLabelResult); - } - input.ReadMessage(subBuilder); - AdGroupAdLabelResult = subBuilder; - break; - } - case 146: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionLabelResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionLabelResult) { - subBuilder.MergeFrom(AdGroupCriterionLabelResult); - } - input.ReadMessage(subBuilder); - AdGroupCriterionLabelResult = subBuilder; - break; - } - case 154: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupExtensionSettingResult(); - if (responseCase_ == ResponseOneofCase.AdGroupExtensionSettingResult) { - subBuilder.MergeFrom(AdGroupExtensionSettingResult); - } - input.ReadMessage(subBuilder); - AdGroupExtensionSettingResult = subBuilder; - break; - } - case 162: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupFeedResult(); - if (responseCase_ == ResponseOneofCase.AdGroupFeedResult) { - subBuilder.MergeFrom(AdGroupFeedResult); - } - input.ReadMessage(subBuilder); - AdGroupFeedResult = subBuilder; - break; - } - case 170: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupLabelResult(); - if (responseCase_ == ResponseOneofCase.AdGroupLabelResult) { - subBuilder.MergeFrom(AdGroupLabelResult); - } - input.ReadMessage(subBuilder); - AdGroupLabelResult = subBuilder; - break; - } - case 178: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdParameterResult(); - if (responseCase_ == ResponseOneofCase.AdParameterResult) { - subBuilder.MergeFrom(AdParameterResult); - } - input.ReadMessage(subBuilder); - AdParameterResult = subBuilder; - break; - } - case 186: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetResult(); - if (responseCase_ == ResponseOneofCase.AssetResult) { - subBuilder.MergeFrom(AssetResult); - } - input.ReadMessage(subBuilder); - AssetResult = subBuilder; - break; - } - case 194: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignDraftResult(); - if (responseCase_ == ResponseOneofCase.CampaignDraftResult) { - subBuilder.MergeFrom(CampaignDraftResult); - } - input.ReadMessage(subBuilder); - CampaignDraftResult = subBuilder; - break; - } - case 210: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignExtensionSettingResult(); - if (responseCase_ == ResponseOneofCase.CampaignExtensionSettingResult) { - subBuilder.MergeFrom(CampaignExtensionSettingResult); - } - input.ReadMessage(subBuilder); - CampaignExtensionSettingResult = subBuilder; - break; - } - case 218: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignFeedResult(); - if (responseCase_ == ResponseOneofCase.CampaignFeedResult) { - subBuilder.MergeFrom(CampaignFeedResult); - } - input.ReadMessage(subBuilder); - CampaignFeedResult = subBuilder; - break; - } - case 226: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignLabelResult(); - if (responseCase_ == ResponseOneofCase.CampaignLabelResult) { - subBuilder.MergeFrom(CampaignLabelResult); - } - input.ReadMessage(subBuilder); - CampaignLabelResult = subBuilder; - break; - } - case 242: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerExtensionSettingResult(); - if (responseCase_ == ResponseOneofCase.CustomerExtensionSettingResult) { - subBuilder.MergeFrom(CustomerExtensionSettingResult); - } - input.ReadMessage(subBuilder); - CustomerExtensionSettingResult = subBuilder; - break; - } - case 250: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerFeedResult(); - if (responseCase_ == ResponseOneofCase.CustomerFeedResult) { - subBuilder.MergeFrom(CustomerFeedResult); - } - input.ReadMessage(subBuilder); - CustomerFeedResult = subBuilder; - break; - } - case 258: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerLabelResult(); - if (responseCase_ == ResponseOneofCase.CustomerLabelResult) { - subBuilder.MergeFrom(CustomerLabelResult); - } - input.ReadMessage(subBuilder); - CustomerLabelResult = subBuilder; - break; - } - case 274: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerNegativeCriteriaResult(); - if (responseCase_ == ResponseOneofCase.CustomerNegativeCriterionResult) { - subBuilder.MergeFrom(CustomerNegativeCriterionResult); - } - input.ReadMessage(subBuilder); - CustomerNegativeCriterionResult = subBuilder; - break; - } - case 282: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerResult(); - if (responseCase_ == ResponseOneofCase.CustomerResult) { - subBuilder.MergeFrom(CustomerResult); - } - input.ReadMessage(subBuilder); - CustomerResult = subBuilder; - break; - } - case 290: { - global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateExtensionFeedItemResult(); - if (responseCase_ == ResponseOneofCase.ExtensionFeedItemResult) { - subBuilder.MergeFrom(ExtensionFeedItemResult); - } - input.ReadMessage(subBuilder); - ExtensionFeedItemResult = subBuilder; - break; - } - case 298: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemResult(); - if (responseCase_ == ResponseOneofCase.FeedItemResult) { - subBuilder.MergeFrom(FeedItemResult); - } - input.ReadMessage(subBuilder); - FeedItemResult = subBuilder; - break; - } - case 306: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemTargetResult(); - if (responseCase_ == ResponseOneofCase.FeedItemTargetResult) { - subBuilder.MergeFrom(FeedItemTargetResult); - } - input.ReadMessage(subBuilder); - FeedItemTargetResult = subBuilder; - break; - } - case 314: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedMappingResult(); - if (responseCase_ == ResponseOneofCase.FeedMappingResult) { - subBuilder.MergeFrom(FeedMappingResult); - } - input.ReadMessage(subBuilder); - FeedMappingResult = subBuilder; - break; - } - case 322: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedResult(); - if (responseCase_ == ResponseOneofCase.FeedResult) { - subBuilder.MergeFrom(FeedResult); - } - input.ReadMessage(subBuilder); - FeedResult = subBuilder; - break; - } - case 330: { - global::Google.Ads.GoogleAds.V12.Services.MutateLabelResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateLabelResult(); - if (responseCase_ == ResponseOneofCase.LabelResult) { - subBuilder.MergeFrom(LabelResult); - } - input.ReadMessage(subBuilder); - LabelResult = subBuilder; - break; - } - case 338: { - global::Google.Ads.GoogleAds.V12.Services.MutateMediaFileResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateMediaFileResult(); - if (responseCase_ == ResponseOneofCase.MediaFileResult) { - subBuilder.MergeFrom(MediaFileResult); - } - input.ReadMessage(subBuilder); - MediaFileResult = subBuilder; - break; - } - case 346: { - global::Google.Ads.GoogleAds.V12.Services.MutateRemarketingActionResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateRemarketingActionResult(); - if (responseCase_ == ResponseOneofCase.RemarketingActionResult) { - subBuilder.MergeFrom(RemarketingActionResult); - } - input.ReadMessage(subBuilder); - RemarketingActionResult = subBuilder; - break; - } - case 354: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupResult) { - subBuilder.MergeFrom(KeywordPlanAdGroupResult); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupResult = subBuilder; - break; - } - case 362: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignResult) { - subBuilder.MergeFrom(KeywordPlanCampaignResult); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignResult = subBuilder; - break; - } - case 386: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanResult) { - subBuilder.MergeFrom(KeywordPlanResult); - } - input.ReadMessage(subBuilder); - KeywordPlanResult = subBuilder; - break; - } - case 394: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdResult(); - if (responseCase_ == ResponseOneofCase.AdResult) { - subBuilder.MergeFrom(AdResult); - } - input.ReadMessage(subBuilder); - AdResult = subBuilder; - break; - } - case 402: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanAdGroupKeywordResult) { - subBuilder.MergeFrom(KeywordPlanAdGroupKeywordResult); - } - input.ReadMessage(subBuilder); - KeywordPlanAdGroupKeywordResult = subBuilder; - break; - } - case 410: { - global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult(); - if (responseCase_ == ResponseOneofCase.KeywordPlanCampaignKeywordResult) { - subBuilder.MergeFrom(KeywordPlanCampaignKeywordResult); - } - input.ReadMessage(subBuilder); - KeywordPlanCampaignKeywordResult = subBuilder; - break; - } - case 418: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetResult(); - if (responseCase_ == ResponseOneofCase.CampaignAssetResult) { - subBuilder.MergeFrom(CampaignAssetResult); - } - input.ReadMessage(subBuilder); - CampaignAssetResult = subBuilder; - break; - } - case 426: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetResult(); - if (responseCase_ == ResponseOneofCase.FeedItemSetResult) { - subBuilder.MergeFrom(FeedItemSetResult); - } - input.ReadMessage(subBuilder); - FeedItemSetResult = subBuilder; - break; - } - case 434: { - global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateFeedItemSetLinkResult(); - if (responseCase_ == ResponseOneofCase.FeedItemSetLinkResult) { - subBuilder.MergeFrom(FeedItemSetLinkResult); - } - input.ReadMessage(subBuilder); - FeedItemSetLinkResult = subBuilder; - break; - } - case 442: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionCustomVariableResult(); - if (responseCase_ == ResponseOneofCase.ConversionCustomVariableResult) { - subBuilder.MergeFrom(ConversionCustomVariableResult); - } - input.ReadMessage(subBuilder); - ConversionCustomVariableResult = subBuilder; - break; - } - case 450: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupAssetResult(); - if (responseCase_ == ResponseOneofCase.AdGroupAssetResult) { - subBuilder.MergeFrom(AdGroupAssetResult); - } - input.ReadMessage(subBuilder); - AdGroupAssetResult = subBuilder; - break; - } - case 458: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerAssetResult(); - if (responseCase_ == ResponseOneofCase.CustomerAssetResult) { - subBuilder.MergeFrom(CustomerAssetResult); - } - input.ReadMessage(subBuilder); - CustomerAssetResult = subBuilder; - break; - } - case 466: { - global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingDataExclusionsResult(); - if (responseCase_ == ResponseOneofCase.BiddingDataExclusionResult) { - subBuilder.MergeFrom(BiddingDataExclusionResult); - } - input.ReadMessage(subBuilder); - BiddingDataExclusionResult = subBuilder; - break; - } - case 474: { - global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateBiddingSeasonalityAdjustmentsResult(); - if (responseCase_ == ResponseOneofCase.BiddingSeasonalityAdjustmentResult) { - subBuilder.MergeFrom(BiddingSeasonalityAdjustmentResult); - } - input.ReadMessage(subBuilder); - BiddingSeasonalityAdjustmentResult = subBuilder; - break; - } - case 490: { - global::Google.Ads.GoogleAds.V12.Services.MutateSmartCampaignSettingResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateSmartCampaignSettingResult(); - if (responseCase_ == ResponseOneofCase.SmartCampaignSettingResult) { - subBuilder.MergeFrom(SmartCampaignSettingResult); - } - input.ReadMessage(subBuilder); - SmartCampaignSettingResult = subBuilder; - break; - } - case 498: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupResult) { - subBuilder.MergeFrom(AssetGroupResult); - } - input.ReadMessage(subBuilder); - AssetGroupResult = subBuilder; - break; - } - case 506: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleResult(); - if (responseCase_ == ResponseOneofCase.ConversionValueRuleResult) { - subBuilder.MergeFrom(ConversionValueRuleResult); - } - input.ReadMessage(subBuilder); - ConversionValueRuleResult = subBuilder; - break; - } - case 514: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionValueRuleSetResult(); - if (responseCase_ == ResponseOneofCase.ConversionValueRuleSetResult) { - subBuilder.MergeFrom(ConversionValueRuleSetResult); - } - input.ReadMessage(subBuilder); - ConversionValueRuleSetResult = subBuilder; - break; - } - case 522: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupAssetResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupAssetResult) { - subBuilder.MergeFrom(AssetGroupAssetResult); - } - input.ReadMessage(subBuilder); - AssetGroupAssetResult = subBuilder; - break; - } - case 530: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerConversionGoalResult(); - if (responseCase_ == ResponseOneofCase.CustomerConversionGoalResult) { - subBuilder.MergeFrom(CustomerConversionGoalResult); - } - input.ReadMessage(subBuilder); - CustomerConversionGoalResult = subBuilder; - break; - } - case 538: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignConversionGoalResult(); - if (responseCase_ == ResponseOneofCase.CampaignConversionGoalResult) { - subBuilder.MergeFrom(CampaignConversionGoalResult); - } - input.ReadMessage(subBuilder); - CampaignConversionGoalResult = subBuilder; - break; - } - case 546: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomConversionGoalResult(); - if (responseCase_ == ResponseOneofCase.CustomConversionGoalResult) { - subBuilder.MergeFrom(CustomConversionGoalResult); - } - input.ReadMessage(subBuilder); - CustomConversionGoalResult = subBuilder; - break; - } - case 554: { - global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateConversionGoalCampaignConfigResult(); - if (responseCase_ == ResponseOneofCase.ConversionGoalCampaignConfigResult) { - subBuilder.MergeFrom(ConversionGoalCampaignConfigResult); - } - input.ReadMessage(subBuilder); - ConversionGoalCampaignConfigResult = subBuilder; - break; - } - case 562: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomizerAttributeResult(); - if (responseCase_ == ResponseOneofCase.CustomizerAttributeResult) { - subBuilder.MergeFrom(CustomizerAttributeResult); - } - input.ReadMessage(subBuilder); - CustomizerAttributeResult = subBuilder; - break; - } - case 570: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetAssetResult(); - if (responseCase_ == ResponseOneofCase.AssetSetAssetResult) { - subBuilder.MergeFrom(AssetSetAssetResult); - } - input.ReadMessage(subBuilder); - AssetSetAssetResult = subBuilder; - break; - } - case 578: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetSetResult(); - if (responseCase_ == ResponseOneofCase.AssetSetResult) { - subBuilder.MergeFrom(AssetSetResult); - } - input.ReadMessage(subBuilder); - AssetSetResult = subBuilder; - break; - } - case 586: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignAssetSetResult(); - if (responseCase_ == ResponseOneofCase.CampaignAssetSetResult) { - subBuilder.MergeFrom(CampaignAssetSetResult); - } - input.ReadMessage(subBuilder); - CampaignAssetSetResult = subBuilder; - break; - } - case 594: { - global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCustomerCustomizerResult(); - if (responseCase_ == ResponseOneofCase.CustomerCustomizerResult) { - subBuilder.MergeFrom(CustomerCustomizerResult); - } - input.ReadMessage(subBuilder); - CustomerCustomizerResult = subBuilder; - break; - } - case 602: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCustomizerResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCustomizerResult) { - subBuilder.MergeFrom(AdGroupCustomizerResult); - } - input.ReadMessage(subBuilder); - AdGroupCustomizerResult = subBuilder; - break; - } - case 610: { - global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateCampaignCustomizerResult(); - if (responseCase_ == ResponseOneofCase.CampaignCustomizerResult) { - subBuilder.MergeFrom(CampaignCustomizerResult); - } - input.ReadMessage(subBuilder); - CampaignCustomizerResult = subBuilder; - break; - } - case 618: { - global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAdGroupCriterionCustomizerResult(); - if (responseCase_ == ResponseOneofCase.AdGroupCriterionCustomizerResult) { - subBuilder.MergeFrom(AdGroupCriterionCustomizerResult); - } - input.ReadMessage(subBuilder); - AdGroupCriterionCustomizerResult = subBuilder; - break; - } - case 626: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupListingGroupFilterResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupListingGroupFilterResult) { - subBuilder.MergeFrom(AssetGroupListingGroupFilterResult); - } - input.ReadMessage(subBuilder); - AssetGroupListingGroupFilterResult = subBuilder; - break; - } - case 634: { - global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAssetGroupSignalResult(); - if (responseCase_ == ResponseOneofCase.AssetGroupSignalResult) { - subBuilder.MergeFrom(AssetGroupSignalResult); - } - input.ReadMessage(subBuilder); - AssetGroupSignalResult = subBuilder; - break; - } - case 642: { - global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateAudienceResult(); - if (responseCase_ == ResponseOneofCase.AudienceResult) { - subBuilder.MergeFrom(AudienceResult); - } - input.ReadMessage(subBuilder); - AudienceResult = subBuilder; - break; - } - case 650: { - global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateExperimentResult(); - if (responseCase_ == ResponseOneofCase.ExperimentResult) { - subBuilder.MergeFrom(ExperimentResult); - } - input.ReadMessage(subBuilder); - ExperimentResult = subBuilder; - break; - } - case 658: { - global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult subBuilder = new global::Google.Ads.GoogleAds.V12.Services.MutateExperimentArmResult(); - if (responseCase_ == ResponseOneofCase.ExperimentArmResult) { - subBuilder.MergeFrom(ExperimentArmResult); - } - input.ReadMessage(subBuilder); - ExperimentArmResult = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsServiceClient.g.cs deleted file mode 100755 index 49958768c..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsServiceClient.g.cs +++ /dev/null @@ -1,1569 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class GoogleAdsServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static GoogleAdsServiceSettings GetDefault() => new GoogleAdsServiceSettings(); - - /// Constructs a new object with default settings. - public GoogleAdsServiceSettings() - { - } - - private GoogleAdsServiceSettings(GoogleAdsServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - SearchSettings = existing.SearchSettings; - SearchStreamSettings = existing.SearchStreamSettings; - MutateSettings = existing.MutateSettings; - OnCopy(existing); - } - - partial void OnCopy(GoogleAdsServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// GoogleAdsServiceClient.Search and GoogleAdsServiceClient.SearchAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings SearchSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// GoogleAdsServiceClient.SearchStream and GoogleAdsServiceClient.SearchStreamAsync. - /// - /// Timeout: 14400 seconds. - public gaxgrpc::CallSettings SearchStreamSettings { get; set; } = gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))); - - /// - /// for synchronous and asynchronous calls to - /// GoogleAdsServiceClient.Mutate and GoogleAdsServiceClient.MutateAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public GoogleAdsServiceSettings Clone() => new GoogleAdsServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class GoogleAdsServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public GoogleAdsServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public GoogleAdsServiceClientBuilder() : base(GoogleAdsServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref GoogleAdsServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override GoogleAdsServiceClient Build() - { - GoogleAdsServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private GoogleAdsServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return GoogleAdsServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return GoogleAdsServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => GoogleAdsServiceClient.ChannelPool; - } - - /// GoogleAdsService client wrapper, for convenient use. - /// - /// Service to fetch data and metrics across resources. - /// - public abstract partial class GoogleAdsServiceClient - { - /// - /// The default endpoint for the GoogleAdsService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default GoogleAdsService scopes. - /// - /// The default GoogleAdsService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(GoogleAdsService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new GoogleAdsServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static GoogleAdsServiceClient Create() => new GoogleAdsServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static GoogleAdsServiceClient Create(grpccore::CallInvoker callInvoker, GoogleAdsServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - GoogleAdsService.GoogleAdsServiceClient grpcClient = new GoogleAdsService.GoogleAdsServiceClient(callInvoker); - return new GoogleAdsServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC GoogleAdsService client - public virtual GoogleAdsService.GoogleAdsServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable Search(SearchGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable SearchAsync(SearchGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being queried. - /// - /// - /// Required. The query string. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable Search(string customerId, string query, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - Search(new SearchGoogleAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Query = gax::GaxPreconditions.CheckNotNullOrEmpty(query, nameof(query)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being queried. - /// - /// - /// Required. The query string. - /// - /// - /// The token returned from the previous request. A value of null or an empty string retrieves the first - /// page. - /// - /// - /// The size of page to request. The response will not be larger than this, but may be smaller. A value of - /// null or 0 uses a server-defined page size. - /// - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable SearchAsync(string customerId, string query, string pageToken = null, int? pageSize = null, gaxgrpc::CallSettings callSettings = null) => - SearchAsync(new SearchGoogleAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Query = gax::GaxPreconditions.CheckNotNullOrEmpty(query, nameof(query)), - PageToken = pageToken ?? "", - PageSize = pageSize ?? 0, - }, callSettings); - - /// - /// Server streaming methods for . - /// - public abstract partial class SearchStreamStream : gaxgrpc::ServerStreamingBase - { - } - - /// - /// Returns all rows that match the search stream query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The server stream. - public virtual SearchStreamStream SearchStream(SearchGoogleAdsStreamRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all rows that match the search stream query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer being queried. - /// - /// - /// Required. The query string. - /// - /// If not null, applies overrides to this RPC call. - /// The server stream. - public virtual SearchStreamStream SearchStream(string customerId, string query, gaxgrpc::CallSettings callSettings = null) => - SearchStream(new SearchGoogleAdsStreamRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Query = gax::GaxPreconditions.CheckNotNullOrEmpty(query, nameof(query)), - }, callSettings); - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateGoogleAdsResponse Mutate(MutateGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAsync(MutateGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAsync(MutateGoogleAdsRequest request, st::CancellationToken cancellationToken) => - MutateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// - /// Required. The ID of the customer whose resources are being modified. - /// - /// - /// Required. The list of operations to perform on individual resources. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateGoogleAdsResponse Mutate(string customerId, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - Mutate(new MutateGoogleAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// - /// Required. The ID of the customer whose resources are being modified. - /// - /// - /// Required. The list of operations to perform on individual resources. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateAsync(string customerId, scg::IEnumerable mutateOperations, gaxgrpc::CallSettings callSettings = null) => - MutateAsync(new MutateGoogleAdsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - MutateOperations = - { - gax::GaxPreconditions.CheckNotNull(mutateOperations, nameof(mutateOperations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// - /// Required. The ID of the customer whose resources are being modified. - /// - /// - /// Required. The list of operations to perform on individual resources. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateAsync(string customerId, scg::IEnumerable mutateOperations, st::CancellationToken cancellationToken) => - MutateAsync(customerId, mutateOperations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// GoogleAdsService client wrapper implementation, for convenient use. - /// - /// Service to fetch data and metrics across resources. - /// - public sealed partial class GoogleAdsServiceClientImpl : GoogleAdsServiceClient - { - private readonly gaxgrpc::ApiCall _callSearch; - - private readonly gaxgrpc::ApiServerStreamingCall _callSearchStream; - - private readonly gaxgrpc::ApiCall _callMutate; - - /// - /// Constructs a client wrapper for the GoogleAdsService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public GoogleAdsServiceClientImpl(GoogleAdsService.GoogleAdsServiceClient grpcClient, GoogleAdsServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - GoogleAdsServiceSettings effectiveSettings = settings ?? GoogleAdsServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callSearch = clientHelper.BuildApiCall("Search", grpcClient.SearchAsync, grpcClient.Search, effectiveSettings.SearchSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callSearch); - Modify_SearchApiCall(ref _callSearch); - _callSearchStream = clientHelper.BuildApiCall("SearchStream", grpcClient.SearchStream, effectiveSettings.SearchStreamSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callSearchStream); - Modify_SearchStreamApiCall(ref _callSearchStream); - _callMutate = clientHelper.BuildApiCall("Mutate", grpcClient.MutateAsync, grpcClient.Mutate, effectiveSettings.MutateSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutate); - Modify_MutateApiCall(ref _callMutate); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_ApiCall(ref gaxgrpc::ApiServerStreamingCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_SearchApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_SearchStreamApiCall(ref gaxgrpc::ApiServerStreamingCall call); - - partial void Modify_MutateApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(GoogleAdsService.GoogleAdsServiceClient grpcClient, GoogleAdsServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC GoogleAdsService client - public override GoogleAdsService.GoogleAdsServiceClient GrpcClient { get; } - - partial void Modify_SearchGoogleAdsRequest(ref SearchGoogleAdsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_SearchGoogleAdsStreamRequest(ref SearchGoogleAdsStreamRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_MutateGoogleAdsRequest(ref MutateGoogleAdsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable Search(SearchGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchGoogleAdsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callSearch, request, callSettings); - } - - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable SearchAsync(SearchGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchGoogleAdsRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callSearch, request, callSettings); - } - - internal sealed partial class SearchStreamStreamImpl : SearchStreamStream - { - /// Construct the server streaming method for SearchStream. - /// The underlying gRPC server streaming call. - public SearchStreamStreamImpl(grpccore::AsyncServerStreamingCall call) => GrpcCall = call; - - public override grpccore::AsyncServerStreamingCall GrpcCall { get; } - } - - /// - /// Returns all rows that match the search stream query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The server stream. - public override GoogleAdsServiceClient.SearchStreamStream SearchStream(SearchGoogleAdsStreamRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SearchGoogleAdsStreamRequest(ref request, ref callSettings); - return new SearchStreamStreamImpl(_callSearchStream.Call(request, callSettings)); - } - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateGoogleAdsResponse Mutate(MutateGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateGoogleAdsRequest(ref request, ref callSettings); - return _callMutate.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateAsync(MutateGoogleAdsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateGoogleAdsRequest(ref request, ref callSettings); - return _callMutate.Async(request, callSettings); - } - } - - public partial class SearchGoogleAdsRequest : gaxgrpc::IPageRequest - { - } - - public partial class SearchGoogleAdsResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Results.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } -} diff --git a/Google.Ads.GoogleAds/src/V12/GoogleAdsServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleAdsServiceGrpc.g.cs deleted file mode 100755 index 4742bfe6c..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleAdsServiceGrpc.g.cs +++ /dev/null @@ -1,983 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/google_ads_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to fetch data and metrics across resources. - /// - public static partial class GoogleAdsService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.GoogleAdsService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsStreamRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsStreamResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateGoogleAdsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateGoogleAdsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Search = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Search", - __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsRequest, - __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SearchStream = new grpc::Method( - grpc::MethodType.ServerStreaming, - __ServiceName, - "SearchStream", - __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsStreamRequest, - __Marshaller_google_ads_googleads_v12_services_SearchGoogleAdsStreamResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_Mutate = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "Mutate", - __Marshaller_google_ads_googleads_v12_services_MutateGoogleAdsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateGoogleAdsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.GoogleAdsServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of GoogleAdsService - [grpc::BindServiceMethod(typeof(GoogleAdsService), "BindService")] - public abstract partial class GoogleAdsServiceBase - { - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Search(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns all rows that match the search stream query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// Used for sending responses back to the client. - /// The context of the server-side call handler being invoked. - /// A task indicating completion of the handler. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SearchStream(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task Mutate(global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for GoogleAdsService - public partial class GoogleAdsServiceClient : grpc::ClientBase - { - /// Creates a new client for GoogleAdsService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GoogleAdsServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for GoogleAdsService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public GoogleAdsServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GoogleAdsServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected GoogleAdsServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsResponse Search(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Search(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsResponse Search(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Search, null, options, request); - } - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchAsync(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all rows that match the search query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SearchAsync(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Search, null, options, request); - } - /// - /// Returns all rows that match the search stream query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall SearchStream(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SearchStream(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all rows that match the search stream query. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [ChangeEventError]() - /// [ChangeStatusError]() - /// [ClickViewError]() - /// [HeaderError]() - /// [InternalError]() - /// [QueryError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncServerStreamingCall SearchStream(global::Google.Ads.GoogleAds.V12.Services.SearchGoogleAdsStreamRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncServerStreamingCall(__Method_SearchStream, null, options, request); - } - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsResponse Mutate(global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return Mutate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsResponse Mutate(global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_Mutate, null, options, request); - } - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAsync(global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes resources. This method supports atomic - /// transactions with multiple types of resources. For example, you can - /// atomically create a campaign and a campaign budget, or perform up to - /// thousands of mutates atomically. - /// - /// This method is essentially a wrapper around a series of mutate methods. The - /// only features it offers over calling those methods directly are: - /// - /// - Atomic transactions - /// - Temp resource names (described below) - /// - Somewhat reduced latency over making a series of mutate calls - /// - /// Note: Only resources that support atomic transactions are included, so this - /// method can't replace all calls to individual services. - /// - /// ## Atomic Transaction Benefits - /// - /// Atomicity makes error handling much easier. If you're making a series of - /// changes and one fails, it can leave your account in an inconsistent state. - /// With atomicity, you either reach the chosen state directly, or the request - /// fails and you can retry. - /// - /// ## Temp Resource Names - /// - /// Temp resource names are a special type of resource name used to create a - /// resource and reference that resource in the same request. For example, if a - /// campaign budget is created with `resource_name` equal to - /// `customers/123/campaignBudgets/-1`, that resource name can be reused in - /// the `Campaign.budget` field in the same request. That way, the two - /// resources are created and linked atomically. - /// - /// To create a temp resource name, put a negative number in the part of the - /// name that the server would normally allocate. - /// - /// Note: - /// - /// - Resources must be created with a temp name before the name can be reused. - /// For example, the previous CampaignBudget+Campaign example would fail if - /// the mutate order was reversed. - /// - Temp names are not remembered across requests. - /// - There's no limit to the number of temp names in a request. - /// - Each temp name must use a unique negative number, even if the resource - /// types differ. - /// - /// ## Latency - /// - /// It's important to group mutates by resource type or the request may time - /// out and fail. Latency is roughly equal to a series of calls to individual - /// mutate methods, where each change in resource type is a new call. For - /// example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - /// mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - /// - /// List of thrown errors: - /// [AdCustomizerError]() - /// [AdError]() - /// [AdGroupAdError]() - /// [AdGroupCriterionError]() - /// [AdGroupError]() - /// [AssetError]() - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [BiddingError]() - /// [CampaignBudgetError]() - /// [CampaignCriterionError]() - /// [CampaignError]() - /// [CampaignExperimentError]() - /// [CampaignSharedSetError]() - /// [CollectionSizeError]() - /// [ContextError]() - /// [ConversionActionError]() - /// [CriterionError]() - /// [CustomerFeedError]() - /// [DatabaseError]() - /// [DateError]() - /// [DateRangeError]() - /// [DistinctError]() - /// [ExtensionFeedItemError]() - /// [ExtensionSettingError]() - /// [FeedAttributeReferenceError]() - /// [FeedError]() - /// [FeedItemError]() - /// [FeedItemSetError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [FunctionParsingError]() - /// [HeaderError]() - /// [ImageError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [LabelError]() - /// [ListOperationError]() - /// [MediaUploadError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [NullError]() - /// [OperationAccessDeniedError]() - /// [PolicyFindingError]() - /// [PolicyViolationError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [SettingError]() - /// [SharedSetError]() - /// [SizeLimitError]() - /// [StringFormatError]() - /// [StringLengthError]() - /// [UrlFieldError]() - /// [UserListError]() - /// [YoutubeVideoRegistrationError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateAsync(global::Google.Ads.GoogleAds.V12.Services.MutateGoogleAdsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_Mutate, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override GoogleAdsServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new GoogleAdsServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(GoogleAdsServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_Search, serviceImpl.Search) - .AddMethod(__Method_SearchStream, serviceImpl.SearchStream) - .AddMethod(__Method_Mutate, serviceImpl.Mutate).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, GoogleAdsServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_Search, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Search)); - serviceBinder.AddMethod(__Method_SearchStream, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.SearchStream)); - serviceBinder.AddMethod(__Method_Mutate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Mutate)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/GoogleVoiceCallStatus.g.cs b/Google.Ads.GoogleAds/src/V12/GoogleVoiceCallStatus.g.cs deleted file mode 100755 index b6821e893..000000000 --- a/Google.Ads.GoogleAds/src/V12/GoogleVoiceCallStatus.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/google_voice_call_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/google_voice_call_status.proto - public static partial class GoogleVoiceCallStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/google_voice_call_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GoogleVoiceCallStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvZ29vZ2xlX3ZvaWNl", - "X2NhbGxfc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMibAoZR29vZ2xlVm9pY2VDYWxsU3RhdHVzRW51bSJPChVHb29nbGVW", - "b2ljZUNhbGxTdGF0dXMSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAES", - "CgoGTUlTU0VEEAISDAoIUkVDRUlWRUQQA0L0AQoiY29tLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5lbnVtc0IaR29vZ2xlVm9pY2VDYWxsU3RhdHVzUHJv", - "dG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRz", - "XFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51", - "bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusEnum.Types.GoogleVoiceCallStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible statuses of a google voice call. - /// - public sealed partial class GoogleVoiceCallStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GoogleVoiceCallStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.GoogleVoiceCallStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleVoiceCallStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleVoiceCallStatusEnum(GoogleVoiceCallStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GoogleVoiceCallStatusEnum Clone() { - return new GoogleVoiceCallStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GoogleVoiceCallStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GoogleVoiceCallStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GoogleVoiceCallStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the GoogleVoiceCallStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible statuses of a google voice call. - /// - public enum GoogleVoiceCallStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The call was missed. - /// - [pbr::OriginalName("MISSED")] Missed = 2, - /// - /// The call was received. - /// - [pbr::OriginalName("RECEIVED")] Received = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GroupPlacementView.g.cs b/Google.Ads.GoogleAds/src/V12/GroupPlacementView.g.cs deleted file mode 100755 index 7a82944ef..000000000 --- a/Google.Ads.GoogleAds/src/V12/GroupPlacementView.g.cs +++ /dev/null @@ -1,460 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/group_placement_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/group_placement_view.proto - public static partial class GroupPlacementViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/group_placement_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static GroupPlacementViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2dyb3VwX3Bs", - "YWNlbWVudF92aWV3LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzGjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcGxh", - "Y2VtZW50X3R5cGUucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", - "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8ixwMKEkdyb3VwUGxh", - "Y2VtZW50VmlldxJKCg1yZXNvdXJjZV9uYW1lGAEgASgJQjPgQQP6QS0KK2dv", - "b2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Hcm91cFBsYWNlbWVudFZpZXcSGwoJ", - "cGxhY2VtZW50GAYgASgJQgPgQQNIAIgBARIeCgxkaXNwbGF5X25hbWUYByAB", - "KAlCA+BBA0gBiAEBEhwKCnRhcmdldF91cmwYCCABKAlCA+BBA0gCiAEBElwK", - "DnBsYWNlbWVudF90eXBlGAUgASgOMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zLlBsYWNlbWVudFR5cGVFbnVtLlBsYWNlbWVudFR5cGVCA+BB", - "Azp+6kF7Citnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vR3JvdXBQbGFjZW1l", - "bnRWaWV3EkxjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9ncm91cFBsYWNlbWVu", - "dFZpZXdzL3thZF9ncm91cF9pZH1+e2Jhc2U2NF9wbGFjZW1lbnR9QgwKCl9w", - "bGFjZW1lbnRCDwoNX2Rpc3BsYXlfbmFtZUINCgtfdGFyZ2V0X3VybEKJAgom", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCF0dyb3Vw", - "UGxhY2VtZW50Vmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementView), global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementView.Parser, new[]{ "ResourceName", "Placement", "DisplayName", "TargetUrl", "PlacementType" }, new[]{ "Placement", "DisplayName", "TargetUrl" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A group placement view. - /// - public sealed partial class GroupPlacementView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GroupPlacementView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.GroupPlacementViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GroupPlacementView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GroupPlacementView(GroupPlacementView other) : this() { - resourceName_ = other.resourceName_; - placement_ = other.placement_; - displayName_ = other.displayName_; - targetUrl_ = other.targetUrl_; - placementType_ = other.placementType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GroupPlacementView Clone() { - return new GroupPlacementView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the group placement view. - /// Group placement view resource names have the form: - /// - /// `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "placement" field. - public const int PlacementFieldNumber = 6; - private string placement_; - /// - /// Output only. The automatic placement string at group level, e. g. web domain, mobile - /// app ID, or a YouTube channel ID. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Placement { - get { return placement_ ?? ""; } - set { - placement_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "placement" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlacement { - get { return placement_ != null; } - } - /// Clears the value of the "placement" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlacement() { - placement_ = null; - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 7; - private string displayName_; - /// - /// Output only. Domain name for websites and YouTube channel name for YouTube channels. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_ ?? ""; } - set { - displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "display_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDisplayName { - get { return displayName_ != null; } - } - /// Clears the value of the "display_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDisplayName() { - displayName_ = null; - } - - /// Field number for the "target_url" field. - public const int TargetUrlFieldNumber = 8; - private string targetUrl_; - /// - /// Output only. URL of the group placement, for example, domain, link to the mobile - /// application in app store, or a YouTube channel URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string TargetUrl { - get { return targetUrl_ ?? ""; } - set { - targetUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "target_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTargetUrl { - get { return targetUrl_ != null; } - } - /// Clears the value of the "target_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTargetUrl() { - targetUrl_ = null; - } - - /// Field number for the "placement_type" field. - public const int PlacementTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType placementType_ = global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified; - /// - /// Output only. Type of the placement, for example, Website, YouTube Channel, Mobile - /// Application. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType PlacementType { - get { return placementType_; } - set { - placementType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GroupPlacementView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GroupPlacementView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Placement != other.Placement) return false; - if (DisplayName != other.DisplayName) return false; - if (TargetUrl != other.TargetUrl) return false; - if (PlacementType != other.PlacementType) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasPlacement) hash ^= Placement.GetHashCode(); - if (HasDisplayName) hash ^= DisplayName.GetHashCode(); - if (HasTargetUrl) hash ^= TargetUrl.GetHashCode(); - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) hash ^= PlacementType.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) PlacementType); - } - if (HasPlacement) { - output.WriteRawTag(50); - output.WriteString(Placement); - } - if (HasDisplayName) { - output.WriteRawTag(58); - output.WriteString(DisplayName); - } - if (HasTargetUrl) { - output.WriteRawTag(66); - output.WriteString(TargetUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) PlacementType); - } - if (HasPlacement) { - output.WriteRawTag(50); - output.WriteString(Placement); - } - if (HasDisplayName) { - output.WriteRawTag(58); - output.WriteString(DisplayName); - } - if (HasTargetUrl) { - output.WriteRawTag(66); - output.WriteString(TargetUrl); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasPlacement) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Placement); - } - if (HasDisplayName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (HasTargetUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetUrl); - } - if (PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlacementType); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GroupPlacementView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasPlacement) { - Placement = other.Placement; - } - if (other.HasDisplayName) { - DisplayName = other.DisplayName; - } - if (other.HasTargetUrl) { - TargetUrl = other.TargetUrl; - } - if (other.PlacementType != global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType.Unspecified) { - PlacementType = other.PlacementType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - PlacementType = (global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType) input.ReadEnum(); - break; - } - case 50: { - Placement = input.ReadString(); - break; - } - case 58: { - DisplayName = input.ReadString(); - break; - } - case 66: { - TargetUrl = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - PlacementType = (global::Google.Ads.GoogleAds.V12.Enums.PlacementTypeEnum.Types.PlacementType) input.ReadEnum(); - break; - } - case 50: { - Placement = input.ReadString(); - break; - } - case 58: { - DisplayName = input.ReadString(); - break; - } - case 66: { - TargetUrl = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/GroupPlacementViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/GroupPlacementViewResourceNames.g.cs deleted file mode 100755 index 547b2ed3e..000000000 --- a/Google.Ads.GoogleAds/src/V12/GroupPlacementViewResourceNames.g.cs +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the GroupPlacementView resource. - public sealed partial class GroupPlacementViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}. - /// - CustomerAdGroupBase64Placement = 1, - } - - private static gax::PathTemplate s_customerAdGroupBase64Placement = new gax::PathTemplate("customers/{customer_id}/groupPlacementViews/{ad_group_id_base64_placement}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static GroupPlacementViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new GroupPlacementViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static GroupPlacementViewName FromCustomerAdGroupBase64Placement(string customerId, string adGroupId, string base64PlacementId) => - new GroupPlacementViewName(ResourceNameType.CustomerAdGroupBase64Placement, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), base64PlacementId: gax::GaxPreconditions.CheckNotNullOrEmpty(base64PlacementId, nameof(base64PlacementId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}. - /// - public static string Format(string customerId, string adGroupId, string base64PlacementId) => - FormatCustomerAdGroupBase64Placement(customerId, adGroupId, base64PlacementId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}. - /// - public static string FormatCustomerAdGroupBase64Placement(string customerId, string adGroupId, string base64PlacementId) => - s_customerAdGroupBase64Placement.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(base64PlacementId, nameof(base64PlacementId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static GroupPlacementViewName Parse(string groupPlacementViewName) => Parse(groupPlacementViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static GroupPlacementViewName Parse(string groupPlacementViewName, bool allowUnparsed) => - TryParse(groupPlacementViewName, allowUnparsed, out GroupPlacementViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string groupPlacementViewName, out GroupPlacementViewName result) => - TryParse(groupPlacementViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string groupPlacementViewName, bool allowUnparsed, out GroupPlacementViewName result) - { - gax::GaxPreconditions.CheckNotNull(groupPlacementViewName, nameof(groupPlacementViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupBase64Placement.TryParseName(groupPlacementViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupBase64Placement(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(groupPlacementViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private GroupPlacementViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string base64PlacementId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - Base64PlacementId = base64PlacementId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Base64Placement ID. Must not be null or empty. - public GroupPlacementViewName(string customerId, string adGroupId, string base64PlacementId) : this(ResourceNameType.CustomerAdGroupBase64Placement, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), base64PlacementId: gax::GaxPreconditions.CheckNotNullOrEmpty(base64PlacementId, nameof(base64PlacementId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Base64Placement ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string Base64PlacementId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupBase64Placement: return s_customerAdGroupBase64Placement.Expand(CustomerId, $"{AdGroupId}~{Base64PlacementId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as GroupPlacementViewName); - - /// - public bool Equals(GroupPlacementViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(GroupPlacementViewName a, GroupPlacementViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(GroupPlacementViewName a, GroupPlacementViewName b) => !(a == b); - } - - public partial class GroupPlacementView - { - /// - /// -typed view over the resource name property. - /// - internal GroupPlacementViewName ResourceNameAsGroupPlacementViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : GroupPlacementViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/HeaderError.g.cs b/Google.Ads.GoogleAds/src/V12/HeaderError.g.cs deleted file mode 100755 index 7ef0188e6..000000000 --- a/Google.Ads.GoogleAds/src/V12/HeaderError.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/header_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/header_error.proto - public static partial class HeaderErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/header_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HeaderErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2hlYWRlcl9lcnJv", - "ci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9ycyJ9Cg9I", - "ZWFkZXJFcnJvckVudW0iagoLSGVhZGVyRXJyb3ISDwoLVU5TUEVDSUZJRUQQ", - "ABILCgdVTktOT1dOEAESHQoZSU5WQUxJRF9MT0dJTl9DVVNUT01FUl9JRBAD", - "Eh4KGklOVkFMSURfTElOS0VEX0NVU1RPTUVSX0lEEAdC8AEKI2NvbS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhBIZWFkZXJFcnJvclByb3Rv", - "UAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5B", - "ZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFk", - "c1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpF", - "cnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorEnum.Types.HeaderError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible header errors. - /// - public sealed partial class HeaderErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HeaderErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.HeaderErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HeaderErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HeaderErrorEnum(HeaderErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HeaderErrorEnum Clone() { - return new HeaderErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HeaderErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HeaderErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HeaderErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the HeaderErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible header errors. - /// - public enum HeaderError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The login customer ID could not be validated. - /// - [pbr::OriginalName("INVALID_LOGIN_CUSTOMER_ID")] InvalidLoginCustomerId = 3, - /// - /// The linked customer ID could not be validated. - /// - [pbr::OriginalName("INVALID_LINKED_CUSTOMER_ID")] InvalidLinkedCustomerId = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelDateSelectionType.g.cs b/Google.Ads.GoogleAds/src/V12/HotelDateSelectionType.g.cs deleted file mode 100755 index c27c7ea01..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelDateSelectionType.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/hotel_date_selection_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/hotel_date_selection_type.proto - public static partial class HotelDateSelectionTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/hotel_date_selection_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelDateSelectionTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaG90ZWxfZGF0ZV9z", - "ZWxlY3Rpb25fdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zIn4KGkhvdGVsRGF0ZVNlbGVjdGlvblR5cGVFbnVtImAKFkhvdGVs", - "RGF0ZVNlbGVjdGlvblR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESFQoRREVGQVVMVF9TRUxFQ1RJT04QMhIRCg1VU0VSX1NFTEVDVEVEEDNC", - "9QEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCG0hvdGVs", - "RGF0ZVNlbGVjdGlvblR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2Vu", - "dW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIe", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeEnum.Types.HotelDateSelectionType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible hotel date selection types - /// - public sealed partial class HotelDateSelectionTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelDateSelectionTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.HotelDateSelectionTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelDateSelectionTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelDateSelectionTypeEnum(HotelDateSelectionTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelDateSelectionTypeEnum Clone() { - return new HotelDateSelectionTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelDateSelectionTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelDateSelectionTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelDateSelectionTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the HotelDateSelectionTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible hotel date selection types. - /// - public enum HotelDateSelectionType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Dates selected by default. - /// - [pbr::OriginalName("DEFAULT_SELECTION")] DefaultSelection = 50, - /// - /// Dates selected by the user. - /// - [pbr::OriginalName("USER_SELECTED")] UserSelected = 51, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelGroupView.g.cs b/Google.Ads.GoogleAds/src/V12/HotelGroupView.g.cs deleted file mode 100755 index b9a19c323..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelGroupView.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/hotel_group_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/hotel_group_view.proto - public static partial class HotelGroupViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/hotel_group_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelGroupViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2hvdGVsX2dy", - "b3VwX3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8izAEKDkhvdGVsR3JvdXBWaWV3EkYKDXJl", - "c291cmNlX25hbWUYASABKAlCL+BBA/pBKQonZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0hvdGVsR3JvdXBWaWV3OnLqQW8KJ2dvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9Ib3RlbEdyb3VwVmlldxJEY3VzdG9tZXJzL3tjdXN0b21lcl9p", - "ZH0vaG90ZWxHcm91cFZpZXdzL3thZF9ncm91cF9pZH1+e2NyaXRlcmlvbl9p", - "ZH1ChQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "QhNIb3RlbEdyb3VwVmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "O3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5S", - "ZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz", - "6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.HotelGroupView), global::Google.Ads.GoogleAds.V12.Resources.HotelGroupView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A hotel group view. - /// - public sealed partial class HotelGroupView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelGroupView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.HotelGroupViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelGroupView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelGroupView(HotelGroupView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelGroupView Clone() { - return new HotelGroupView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the hotel group view. - /// Hotel Group view resource names have the form: - /// - /// `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelGroupView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelGroupView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelGroupView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelGroupViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/HotelGroupViewResourceNames.g.cs deleted file mode 100755 index 47344111c..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelGroupViewResourceNames.g.cs +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the HotelGroupView resource. - public sealed partial class HotelGroupViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id} - /// . - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/hotelGroupViews/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static HotelGroupViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new HotelGroupViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static HotelGroupViewName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new HotelGroupViewName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static HotelGroupViewName Parse(string hotelGroupViewName) => Parse(hotelGroupViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static HotelGroupViewName Parse(string hotelGroupViewName, bool allowUnparsed) => - TryParse(hotelGroupViewName, allowUnparsed, out HotelGroupViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string hotelGroupViewName, out HotelGroupViewName result) => - TryParse(hotelGroupViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string hotelGroupViewName, bool allowUnparsed, out HotelGroupViewName result) - { - gax::GaxPreconditions.CheckNotNull(hotelGroupViewName, nameof(hotelGroupViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(hotelGroupViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(hotelGroupViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private HotelGroupViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public HotelGroupViewName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as HotelGroupViewName); - - /// - public bool Equals(HotelGroupViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(HotelGroupViewName a, HotelGroupViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(HotelGroupViewName a, HotelGroupViewName b) => !(a == b); - } - - public partial class HotelGroupView - { - /// - /// -typed view over the resource name property. - /// - internal HotelGroupViewName ResourceNameAsHotelGroupViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : HotelGroupViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/HotelPerformanceView.g.cs b/Google.Ads.GoogleAds/src/V12/HotelPerformanceView.g.cs deleted file mode 100755 index 51b364f3e..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelPerformanceView.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/hotel_performance_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/hotel_performance_view.proto - public static partial class HotelPerformanceViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/hotel_performance_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelPerformanceViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2hvdGVsX3Bl", - "cmZvcm1hbmNlX3ZpZXcucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8ixgEKFEhvdGVsUGVyZm9ybWFu", - "Y2VWaWV3EkwKDXJlc291cmNlX25hbWUYASABKAlCNeBBA/pBLwotZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0hvdGVsUGVyZm9ybWFuY2VWaWV3OmDqQV0K", - "LWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Ib3RlbFBlcmZvcm1hbmNlVmll", - "dxIsY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vaG90ZWxQZXJmb3JtYW5jZVZp", - "ZXdCiwIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "QhlIb3RlbFBlcmZvcm1hbmNlVmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVz", - "b3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJj", - "ZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceView), global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A hotel performance view. - /// - public sealed partial class HotelPerformanceView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelPerformanceView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.HotelPerformanceViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPerformanceView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPerformanceView(HotelPerformanceView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPerformanceView Clone() { - return new HotelPerformanceView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the hotel performance view. - /// Hotel performance view resource names have the form: - /// - /// `customers/{customer_id}/hotelPerformanceView` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelPerformanceView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelPerformanceView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelPerformanceView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelPerformanceViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/HotelPerformanceViewResourceNames.g.cs deleted file mode 100755 index 04e1e2d41..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelPerformanceViewResourceNames.g.cs +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the HotelPerformanceView resource. - public sealed partial class HotelPerformanceViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/hotelPerformanceView. - Customer = 1, - } - - private static gax::PathTemplate s_customer = new gax::PathTemplate("customers/{customer_id}/hotelPerformanceView"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static HotelPerformanceViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new HotelPerformanceViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/hotelPerformanceView. - /// - /// The Customer ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static HotelPerformanceViewName FromCustomer(string customerId) => - new HotelPerformanceViewName(ResourceNameType.Customer, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/hotelPerformanceView. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/hotelPerformanceView. - /// - public static string Format(string customerId) => FormatCustomer(customerId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/hotelPerformanceView. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/hotelPerformanceView. - /// - public static string FormatCustomer(string customerId) => - s_customer.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelPerformanceView - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static HotelPerformanceViewName Parse(string hotelPerformanceViewName) => - Parse(hotelPerformanceViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelPerformanceView - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static HotelPerformanceViewName Parse(string hotelPerformanceViewName, bool allowUnparsed) => - TryParse(hotelPerformanceViewName, allowUnparsed, out HotelPerformanceViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelPerformanceView - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string hotelPerformanceViewName, out HotelPerformanceViewName result) => - TryParse(hotelPerformanceViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelPerformanceView - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string hotelPerformanceViewName, bool allowUnparsed, out HotelPerformanceViewName result) - { - gax::GaxPreconditions.CheckNotNull(hotelPerformanceViewName, nameof(hotelPerformanceViewName)); - gax::TemplatedResourceName resourceName; - if (s_customer.TryParseName(hotelPerformanceViewName, out resourceName)) - { - result = FromCustomer(resourceName[0]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(hotelPerformanceViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private HotelPerformanceViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/hotelPerformanceView - /// - /// The Customer ID. Must not be null or empty. - public HotelPerformanceViewName(string customerId) : this(ResourceNameType.Customer, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.Customer: return s_customer.Expand(CustomerId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as HotelPerformanceViewName); - - /// - public bool Equals(HotelPerformanceViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(HotelPerformanceViewName a, HotelPerformanceViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(HotelPerformanceViewName a, HotelPerformanceViewName b) => !(a == b); - } - - public partial class HotelPerformanceView - { - /// - /// -typed view over the resource name - /// property. - /// - internal HotelPerformanceViewName ResourceNameAsHotelPerformanceViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : HotelPerformanceViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/HotelPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/HotelPlaceholderField.g.cs deleted file mode 100755 index d96b3b251..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelPlaceholderField.g.cs +++ /dev/null @@ -1,337 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/hotel_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/hotel_placeholder_field.proto - public static partial class HotelPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/hotel_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaG90ZWxfcGxhY2Vo", - "b2xkZXJfZmllbGQucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyLNAwoZSG90ZWxQbGFjZWhvbGRlckZpZWxkRW51bSKvAwoVSG90ZWxQ", - "bGFjZWhvbGRlckZpZWxkEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThAB", - "Eg8KC1BST1BFUlRZX0lEEAISEQoNUFJPUEVSVFlfTkFNRRADEhQKEERFU1RJ", - "TkFUSU9OX05BTUUQBBIPCgtERVNDUklQVElPThAFEgsKB0FERFJFU1MQBhIJ", - "CgVQUklDRRAHEhMKD0ZPUk1BVFRFRF9QUklDRRAIEg4KClNBTEVfUFJJQ0UQ", - "CRIYChRGT1JNQVRURURfU0FMRV9QUklDRRAKEg0KCUlNQUdFX1VSTBALEgwK", - "CENBVEVHT1JZEAwSDwoLU1RBUl9SQVRJTkcQDRIXChNDT05URVhUVUFMX0tF", - "WVdPUkRTEA4SDgoKRklOQUxfVVJMUxAPEhUKEUZJTkFMX01PQklMRV9VUkxT", - "EBASEAoMVFJBQ0tJTkdfVVJMEBESFAoQQU5EUk9JRF9BUFBfTElOSxASEhgK", - "FFNJTUlMQVJfUFJPUEVSVFlfSURTEBMSEAoMSU9TX0FQUF9MSU5LEBQSFAoQ", - "SU9TX0FQUF9TVE9SRV9JRBAVQvUBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zQhtIb3RlbHNQbGFjZWhvbGRlckZpZWxkUHJvdG9QAVpD", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxF", - "bnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldEnum.Types.HotelPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Hotel placeholder fields. - /// For more information about dynamic remarketing feeds, see - /// https://support.google.com/google-ads/answer/6053288. - /// - public sealed partial class HotelPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.HotelPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPlaceholderFieldEnum(HotelPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPlaceholderFieldEnum Clone() { - return new HotelPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the HotelPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Hotel placeholder fields. - /// - public enum HotelPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. Required. Unique ID. - /// - [pbr::OriginalName("PROPERTY_ID")] PropertyId = 2, - /// - /// Data Type: STRING. Required. Main headline with property name to be shown - /// in dynamic ad. - /// - [pbr::OriginalName("PROPERTY_NAME")] PropertyName = 3, - /// - /// Data Type: STRING. Name of destination to be shown in dynamic ad. - /// - [pbr::OriginalName("DESTINATION_NAME")] DestinationName = 4, - /// - /// Data Type: STRING. Description of destination to be shown in dynamic ad. - /// - [pbr::OriginalName("DESCRIPTION")] Description = 5, - /// - /// Data Type: STRING. Complete property address, including postal code. - /// - [pbr::OriginalName("ADDRESS")] Address = 6, - /// - /// Data Type: STRING. Price to be shown in the ad. - /// Example: "100.00 USD" - /// - [pbr::OriginalName("PRICE")] Price = 7, - /// - /// Data Type: STRING. Formatted price to be shown in the ad. - /// Example: "Starting at $100.00 USD", "$80 - $100" - /// - [pbr::OriginalName("FORMATTED_PRICE")] FormattedPrice = 8, - /// - /// Data Type: STRING. Sale price to be shown in the ad. - /// Example: "80.00 USD" - /// - [pbr::OriginalName("SALE_PRICE")] SalePrice = 9, - /// - /// Data Type: STRING. Formatted sale price to be shown in the ad. - /// Example: "On sale for $80.00", "$60 - $80" - /// - [pbr::OriginalName("FORMATTED_SALE_PRICE")] FormattedSalePrice = 10, - /// - /// Data Type: URL. Image to be displayed in the ad. - /// - [pbr::OriginalName("IMAGE_URL")] ImageUrl = 11, - /// - /// Data Type: STRING. Category of property used to group like items together - /// for recommendation engine. - /// - [pbr::OriginalName("CATEGORY")] Category = 12, - /// - /// Data Type: INT64. Star rating (1 to 5) used to group like items - /// together for recommendation engine. - /// - [pbr::OriginalName("STAR_RATING")] StarRating = 13, - /// - /// Data Type: STRING_LIST. Keywords used for product retrieval. - /// - [pbr::OriginalName("CONTEXTUAL_KEYWORDS")] ContextualKeywords = 14, - /// - /// Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded - /// URLs. User will be redirected to these URLs when they click on an ad, or - /// when they click on a specific flight for ads that show multiple - /// flights. - /// - [pbr::OriginalName("FINAL_URLS")] FinalUrls = 15, - /// - /// Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - /// URLs. - /// - [pbr::OriginalName("FINAL_MOBILE_URLS")] FinalMobileUrls = 16, - /// - /// Data Type: URL. Tracking template for the ad when using Upgraded URLs. - /// - [pbr::OriginalName("TRACKING_URL")] TrackingUrl = 17, - /// - /// Data Type: STRING. Android app link. Must be formatted as: - /// android-app://{package_id}/{scheme}/{host_path}. - /// The components are defined as follows: - /// package_id: app ID as specified in Google Play. - /// scheme: the scheme to pass to the application. Can be HTTP, or a custom - /// scheme. - /// host_path: identifies the specific content within your application. - /// - [pbr::OriginalName("ANDROID_APP_LINK")] AndroidAppLink = 18, - /// - /// Data Type: STRING_LIST. List of recommended property IDs to show together - /// with this item. - /// - [pbr::OriginalName("SIMILAR_PROPERTY_IDS")] SimilarPropertyIds = 19, - /// - /// Data Type: STRING. iOS app link. - /// - [pbr::OriginalName("IOS_APP_LINK")] IosAppLink = 20, - /// - /// Data Type: INT64. iOS app store ID. - /// - [pbr::OriginalName("IOS_APP_STORE_ID")] IosAppStoreId = 21, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelPriceBucket.g.cs b/Google.Ads.GoogleAds/src/V12/HotelPriceBucket.g.cs deleted file mode 100755 index d5fbcc966..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelPriceBucket.g.cs +++ /dev/null @@ -1,248 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/hotel_price_bucket.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/hotel_price_bucket.proto - public static partial class HotelPriceBucketReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/hotel_price_bucket.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelPriceBucketReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaG90ZWxfcHJpY2Vf", - "YnVja2V0LnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi", - "lAEKFEhvdGVsUHJpY2VCdWNrZXRFbnVtInwKEEhvdGVsUHJpY2VCdWNrZXQS", - "DwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESEQoNTE9XRVNUX1VOSVFV", - "RRACEg8KC0xPV0VTVF9USUVEEAMSDgoKTk9UX0xPV0VTVBAEEhYKEk9OTFlf", - "UEFSVE5FUl9TSE9XThAFQu8BCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVudW1zQhVIb3RlbFByaWNlQnVja2V0UHJvdG9QAVpDZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "Mi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelPriceBucketEnum), global::Google.Ads.GoogleAds.V12.Enums.HotelPriceBucketEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelPriceBucketEnum.Types.HotelPriceBucket) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing hotel price bucket for a hotel itinerary. - /// - public sealed partial class HotelPriceBucketEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelPriceBucketEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.HotelPriceBucketReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPriceBucketEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPriceBucketEnum(HotelPriceBucketEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelPriceBucketEnum Clone() { - return new HotelPriceBucketEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelPriceBucketEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelPriceBucketEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelPriceBucketEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the HotelPriceBucketEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible hotel price buckets. - /// - public enum HotelPriceBucket { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Uniquely lowest price. Partner has the lowest price, and no other - /// partners are within a small variance of that price. - /// - [pbr::OriginalName("LOWEST_UNIQUE")] LowestUnique = 2, - /// - /// Tied for lowest price. Partner is within a small variance of the lowest - /// price. - /// - [pbr::OriginalName("LOWEST_TIED")] LowestTied = 3, - /// - /// Not lowest price. Partner is not within a small variance of the lowest - /// price. - /// - [pbr::OriginalName("NOT_LOWEST")] NotLowest = 4, - /// - /// Partner was the only one shown. - /// - [pbr::OriginalName("ONLY_PARTNER_SHOWN")] OnlyPartnerShown = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelRateType.g.cs b/Google.Ads.GoogleAds/src/V12/HotelRateType.g.cs deleted file mode 100755 index 671e063ce..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelRateType.g.cs +++ /dev/null @@ -1,251 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/hotel_rate_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/hotel_rate_type.proto - public static partial class HotelRateTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/hotel_rate_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelRateTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaG90ZWxfcmF0ZV90", - "eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiigEK", - "EUhvdGVsUmF0ZVR5cGVFbnVtInUKDUhvdGVsUmF0ZVR5cGUSDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESDwoLVU5BVkFJTEFCTEUQAhIPCgtQVUJM", - "SUNfUkFURRADEhIKDlFVQUxJRklFRF9SQVRFEAQSEAoMUFJJVkFURV9SQVRF", - "EAVC7AEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCEkhv", - "dGVsUmF0ZVR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogID", - "R0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2ds", - "ZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelRateTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.HotelRateTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelRateTypeEnum.Types.HotelRateType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible hotel rate types. - /// - public sealed partial class HotelRateTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelRateTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.HotelRateTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelRateTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelRateTypeEnum(HotelRateTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelRateTypeEnum Clone() { - return new HotelRateTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelRateTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelRateTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelRateTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the HotelRateTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible hotel rate types. - /// - public enum HotelRateType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Rate type information is unavailable. - /// - [pbr::OriginalName("UNAVAILABLE")] Unavailable = 2, - /// - /// Rates available to everyone. - /// - [pbr::OriginalName("PUBLIC_RATE")] PublicRate = 3, - /// - /// A membership program rate is available and satisfies basic requirements - /// like having a public rate available. UI treatment will strikethrough the - /// public rate and indicate that a discount is available to the user. For - /// more on Qualified Rates, visit - /// https://developers.google.com/hotels/hotel-ads/dev-guide/qualified-rates - /// - [pbr::OriginalName("QUALIFIED_RATE")] QualifiedRate = 4, - /// - /// Rates available to users that satisfy some eligibility criteria, for - /// example, all signed-in users, 20% of mobile users, all mobile users in - /// Canada, etc. - /// - [pbr::OriginalName("PRIVATE_RATE")] PrivateRate = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelReconciliation.g.cs b/Google.Ads.GoogleAds/src/V12/HotelReconciliation.g.cs deleted file mode 100755 index c41f2bab9..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelReconciliation.g.cs +++ /dev/null @@ -1,685 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/hotel_reconciliation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/hotel_reconciliation.proto - public static partial class HotelReconciliationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/hotel_reconciliation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelReconciliationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2hvdGVsX3Jl", - "Y29uY2lsaWF0aW9uLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "cmVzb3VyY2VzGkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaG90", - "ZWxfcmVjb25jaWxpYXRpb25fc3RhdHVzLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "IuMEChNIb3RlbFJlY29uY2lsaWF0aW9uEksKDXJlc291cmNlX25hbWUYASAB", - "KAlCNOBBBfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0hvdGVsUmVj", - "b25jaWxpYXRpb24SHQoNY29tbWlzc2lvbl9pZBgCIAEoCUIG4EEC4EEDEhUK", - "CG9yZGVyX2lkGAMgASgJQgPgQQMSOwoIY2FtcGFpZ24YCyABKAlCKeBBA/pB", - "IwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduEhwKD2hvdGVs", - "X2NlbnRlcl9pZBgEIAEoA0ID4EEDEhUKCGhvdGVsX2lkGAUgASgJQgPgQQMS", - "GgoNY2hlY2tfaW5fZGF0ZRgGIAEoCUID4EEDEhsKDmNoZWNrX291dF9kYXRl", - "GAcgASgJQgPgQQMSJwoXcmVjb25jaWxlZF92YWx1ZV9taWNyb3MYCCABKANC", - "BuBBAuBBAxITCgZiaWxsZWQYCSABKAhCA+BBAxJvCgZzdGF0dXMYCiABKA4y", - "Vy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuSG90ZWxSZWNvbmNp", - "bGlhdGlvblN0YXR1c0VudW0uSG90ZWxSZWNvbmNpbGlhdGlvblN0YXR1c0IG", - "4EEC4EEDOm/qQWwKLGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Ib3RlbFJl", - "Y29uY2lsaWF0aW9uEjxjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9ob3RlbFJl", - "Y29uY2lsaWF0aW9ucy97Y29tbWlzc2lvbl9pZH1CigIKJmNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhhIb3RlbFJlY29uY2lsaWF0", - "aW9uUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogID", - "R0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliation), global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliation.Parser, new[]{ "ResourceName", "CommissionId", "OrderId", "Campaign", "HotelCenterId", "HotelId", "CheckInDate", "CheckOutDate", "ReconciledValueMicros", "Billed", "Status" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A hotel reconciliation. It contains conversion information from Hotel - /// bookings to reconcile with advertiser records. These rows may be updated - /// or canceled before billing through Bulk Uploads. - /// - public sealed partial class HotelReconciliation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelReconciliation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.HotelReconciliationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelReconciliation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelReconciliation(HotelReconciliation other) : this() { - resourceName_ = other.resourceName_; - commissionId_ = other.commissionId_; - orderId_ = other.orderId_; - campaign_ = other.campaign_; - hotelCenterId_ = other.hotelCenterId_; - hotelId_ = other.hotelId_; - checkInDate_ = other.checkInDate_; - checkOutDate_ = other.checkOutDate_; - reconciledValueMicros_ = other.reconciledValueMicros_; - billed_ = other.billed_; - status_ = other.status_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelReconciliation Clone() { - return new HotelReconciliation(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the hotel reconciliation. - /// Hotel reconciliation resource names have the form: - /// - /// `customers/{customer_id}/hotelReconciliations/{commission_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "commission_id" field. - public const int CommissionIdFieldNumber = 2; - private string commissionId_ = ""; - /// - /// Required. Output only. The commission ID is Google's ID for this booking. Every booking event is - /// assigned a Commission ID to help you match it to a guest stay. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CommissionId { - get { return commissionId_; } - set { - commissionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "order_id" field. - public const int OrderIdFieldNumber = 3; - private string orderId_ = ""; - /// - /// Output only. The order ID is the identifier for this booking as provided in the - /// 'transaction_id' parameter of the conversion tracking tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string OrderId { - get { return orderId_; } - set { - orderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 11; - private string campaign_ = ""; - /// - /// Output only. The resource name for the Campaign associated with the conversion. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hotel_center_id" field. - public const int HotelCenterIdFieldNumber = 4; - private long hotelCenterId_; - /// - /// Output only. Identifier for the Hotel Center account which provides the rates for the - /// Hotel campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long HotelCenterId { - get { return hotelCenterId_; } - set { - hotelCenterId_ = value; - } - } - - /// Field number for the "hotel_id" field. - public const int HotelIdFieldNumber = 5; - private string hotelId_ = ""; - /// - /// Output only. Unique identifier for the booked property, as provided in the Hotel Center - /// feed. The hotel ID comes from the 'ID' parameter of the conversion tracking - /// tag. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string HotelId { - get { return hotelId_; } - set { - hotelId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "check_in_date" field. - public const int CheckInDateFieldNumber = 6; - private string checkInDate_ = ""; - /// - /// Output only. Check-in date recorded when the booking is made. If the check-in date is - /// modified at reconciliation, the revised date will then take the place of - /// the original date in this column. Format is YYYY-MM-DD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CheckInDate { - get { return checkInDate_; } - set { - checkInDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "check_out_date" field. - public const int CheckOutDateFieldNumber = 7; - private string checkOutDate_ = ""; - /// - /// Output only. Check-out date recorded when the booking is made. If the check-in date is - /// modified at reconciliation, the revised date will then take the place of - /// the original date in this column. Format is YYYY-MM-DD. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CheckOutDate { - get { return checkOutDate_; } - set { - checkOutDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "reconciled_value_micros" field. - public const int ReconciledValueMicrosFieldNumber = 8; - private long reconciledValueMicros_; - /// - /// Required. Output only. Reconciled value is the final value of a booking as paid by the guest. If - /// original booking value changes for any reason, such as itinerary changes or - /// room upsells, the reconciled value should be the full final amount - /// collected. If a booking is canceled, the reconciled value should include - /// the value of any cancellation fees or non-refundable nights charged. Value - /// is in millionths of the base unit currency. For example, $12.35 would be - /// represented as 12350000. Currency unit is in the default customer currency. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ReconciledValueMicros { - get { return reconciledValueMicros_; } - set { - reconciledValueMicros_ = value; - } - } - - /// Field number for the "billed" field. - public const int BilledFieldNumber = 9; - private bool billed_; - /// - /// Output only. Whether a given booking has been billed. Once billed, a booking can't be - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Billed { - get { return billed_; } - set { - billed_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 10; - private global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus status_ = global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus.Unspecified; - /// - /// Required. Output only. Current status of a booking with regards to reconciliation and billing. - /// Bookings should be reconciled within 45 days after the check-out date. - /// Any booking not reconciled within 45 days will be billed at its original - /// value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus Status { - get { return status_; } - set { - status_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelReconciliation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelReconciliation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (CommissionId != other.CommissionId) return false; - if (OrderId != other.OrderId) return false; - if (Campaign != other.Campaign) return false; - if (HotelCenterId != other.HotelCenterId) return false; - if (HotelId != other.HotelId) return false; - if (CheckInDate != other.CheckInDate) return false; - if (CheckOutDate != other.CheckOutDate) return false; - if (ReconciledValueMicros != other.ReconciledValueMicros) return false; - if (Billed != other.Billed) return false; - if (Status != other.Status) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (CommissionId.Length != 0) hash ^= CommissionId.GetHashCode(); - if (OrderId.Length != 0) hash ^= OrderId.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (HotelCenterId != 0L) hash ^= HotelCenterId.GetHashCode(); - if (HotelId.Length != 0) hash ^= HotelId.GetHashCode(); - if (CheckInDate.Length != 0) hash ^= CheckInDate.GetHashCode(); - if (CheckOutDate.Length != 0) hash ^= CheckOutDate.GetHashCode(); - if (ReconciledValueMicros != 0L) hash ^= ReconciledValueMicros.GetHashCode(); - if (Billed != false) hash ^= Billed.GetHashCode(); - if (Status != global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus.Unspecified) hash ^= Status.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CommissionId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CommissionId); - } - if (OrderId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(OrderId); - } - if (HotelCenterId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(HotelCenterId); - } - if (HotelId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(HotelId); - } - if (CheckInDate.Length != 0) { - output.WriteRawTag(50); - output.WriteString(CheckInDate); - } - if (CheckOutDate.Length != 0) { - output.WriteRawTag(58); - output.WriteString(CheckOutDate); - } - if (ReconciledValueMicros != 0L) { - output.WriteRawTag(64); - output.WriteInt64(ReconciledValueMicros); - } - if (Billed != false) { - output.WriteRawTag(72); - output.WriteBool(Billed); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) Status); - } - if (Campaign.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (CommissionId.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CommissionId); - } - if (OrderId.Length != 0) { - output.WriteRawTag(26); - output.WriteString(OrderId); - } - if (HotelCenterId != 0L) { - output.WriteRawTag(32); - output.WriteInt64(HotelCenterId); - } - if (HotelId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(HotelId); - } - if (CheckInDate.Length != 0) { - output.WriteRawTag(50); - output.WriteString(CheckInDate); - } - if (CheckOutDate.Length != 0) { - output.WriteRawTag(58); - output.WriteString(CheckOutDate); - } - if (ReconciledValueMicros != 0L) { - output.WriteRawTag(64); - output.WriteInt64(ReconciledValueMicros); - } - if (Billed != false) { - output.WriteRawTag(72); - output.WriteBool(Billed); - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus.Unspecified) { - output.WriteRawTag(80); - output.WriteEnum((int) Status); - } - if (Campaign.Length != 0) { - output.WriteRawTag(90); - output.WriteString(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (CommissionId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CommissionId); - } - if (OrderId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderId); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (HotelCenterId != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(HotelCenterId); - } - if (HotelId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HotelId); - } - if (CheckInDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CheckInDate); - } - if (CheckOutDate.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CheckOutDate); - } - if (ReconciledValueMicros != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ReconciledValueMicros); - } - if (Billed != false) { - size += 1 + 1; - } - if (Status != global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelReconciliation other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.CommissionId.Length != 0) { - CommissionId = other.CommissionId; - } - if (other.OrderId.Length != 0) { - OrderId = other.OrderId; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - if (other.HotelCenterId != 0L) { - HotelCenterId = other.HotelCenterId; - } - if (other.HotelId.Length != 0) { - HotelId = other.HotelId; - } - if (other.CheckInDate.Length != 0) { - CheckInDate = other.CheckInDate; - } - if (other.CheckOutDate.Length != 0) { - CheckOutDate = other.CheckOutDate; - } - if (other.ReconciledValueMicros != 0L) { - ReconciledValueMicros = other.ReconciledValueMicros; - } - if (other.Billed != false) { - Billed = other.Billed; - } - if (other.Status != global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus.Unspecified) { - Status = other.Status; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CommissionId = input.ReadString(); - break; - } - case 26: { - OrderId = input.ReadString(); - break; - } - case 32: { - HotelCenterId = input.ReadInt64(); - break; - } - case 42: { - HotelId = input.ReadString(); - break; - } - case 50: { - CheckInDate = input.ReadString(); - break; - } - case 58: { - CheckOutDate = input.ReadString(); - break; - } - case 64: { - ReconciledValueMicros = input.ReadInt64(); - break; - } - case 72: { - Billed = input.ReadBool(); - break; - } - case 80: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus) input.ReadEnum(); - break; - } - case 90: { - Campaign = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CommissionId = input.ReadString(); - break; - } - case 26: { - OrderId = input.ReadString(); - break; - } - case 32: { - HotelCenterId = input.ReadInt64(); - break; - } - case 42: { - HotelId = input.ReadString(); - break; - } - case 50: { - CheckInDate = input.ReadString(); - break; - } - case 58: { - CheckOutDate = input.ReadString(); - break; - } - case 64: { - ReconciledValueMicros = input.ReadInt64(); - break; - } - case 72: { - Billed = input.ReadBool(); - break; - } - case 80: { - Status = (global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus) input.ReadEnum(); - break; - } - case 90: { - Campaign = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/HotelReconciliationResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/HotelReconciliationResourceNames.g.cs deleted file mode 100755 index 2f4952d61..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelReconciliationResourceNames.g.cs +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the HotelReconciliation resource. - public sealed partial class HotelReconciliationName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/hotelReconciliations/{commission_id}. - /// - CustomerCommission = 1, - } - - private static gax::PathTemplate s_customerCommission = new gax::PathTemplate("customers/{customer_id}/hotelReconciliations/{commission_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static HotelReconciliationName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new HotelReconciliationName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/hotelReconciliations/{commission_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Commission ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - /// - public static HotelReconciliationName FromCustomerCommission(string customerId, string commissionId) => - new HotelReconciliationName(ResourceNameType.CustomerCommission, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), commissionId: gax::GaxPreconditions.CheckNotNullOrEmpty(commissionId, nameof(commissionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/hotelReconciliations/{commission_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Commission ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/hotelReconciliations/{commission_id}. - /// - public static string Format(string customerId, string commissionId) => - FormatCustomerCommission(customerId, commissionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/hotelReconciliations/{commission_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Commission ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/hotelReconciliations/{commission_id}. - /// - public static string FormatCustomerCommission(string customerId, string commissionId) => - s_customerCommission.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(commissionId, nameof(commissionId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelReconciliations/{commission_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static HotelReconciliationName Parse(string hotelReconciliationName) => Parse(hotelReconciliationName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelReconciliations/{commission_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static HotelReconciliationName Parse(string hotelReconciliationName, bool allowUnparsed) => - TryParse(hotelReconciliationName, allowUnparsed, out HotelReconciliationName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelReconciliations/{commission_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string hotelReconciliationName, out HotelReconciliationName result) => - TryParse(hotelReconciliationName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/hotelReconciliations/{commission_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string hotelReconciliationName, bool allowUnparsed, out HotelReconciliationName result) - { - gax::GaxPreconditions.CheckNotNull(hotelReconciliationName, nameof(hotelReconciliationName)); - gax::TemplatedResourceName resourceName; - if (s_customerCommission.TryParseName(hotelReconciliationName, out resourceName)) - { - result = FromCustomerCommission(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(hotelReconciliationName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private HotelReconciliationName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string commissionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CommissionId = commissionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/hotelReconciliations/{commission_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Commission ID. Must not be null or empty. - public HotelReconciliationName(string customerId, string commissionId) : this(ResourceNameType.CustomerCommission, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), commissionId: gax::GaxPreconditions.CheckNotNullOrEmpty(commissionId, nameof(commissionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Commission ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CommissionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCommission: return s_customerCommission.Expand(CustomerId, CommissionId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as HotelReconciliationName); - - /// - public bool Equals(HotelReconciliationName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(HotelReconciliationName a, HotelReconciliationName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(HotelReconciliationName a, HotelReconciliationName b) => !(a == b); - } - - public partial class HotelReconciliation - { - /// - /// -typed view over the resource name property. - /// - internal HotelReconciliationName ResourceNameAsHotelReconciliationName - { - get => string.IsNullOrEmpty(ResourceName) ? null : HotelReconciliationName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/HotelReconciliationStatus.g.cs b/Google.Ads.GoogleAds/src/V12/HotelReconciliationStatus.g.cs deleted file mode 100755 index 8581491be..000000000 --- a/Google.Ads.GoogleAds/src/V12/HotelReconciliationStatus.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/hotel_reconciliation_status.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/hotel_reconciliation_status.proto - public static partial class HotelReconciliationStatusReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/hotel_reconciliation_status.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static HotelReconciliationStatusReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaG90ZWxfcmVjb25j", - "aWxpYXRpb25fc3RhdHVzLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXMirQEKHUhvdGVsUmVjb25jaWxpYXRpb25TdGF0dXNFbnVtIosB", - "ChlIb3RlbFJlY29uY2lsaWF0aW9uU3RhdHVzEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEhcKE1JFU0VSVkFUSU9OX0VOQUJMRUQQAhIZChVSRUNP", - "TkNJTElBVElPTl9ORUVERUQQAxIOCgpSRUNPTkNJTEVEEAQSDAoIQ0FOQ0VM", - "RUQQBUL4AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0Ie", - "SG90ZWxSZWNvbmNpbGlhdGlvblN0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusEnum.Types.HotelReconciliationStatus) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for HotelReconciliationStatus. - /// - public sealed partial class HotelReconciliationStatusEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HotelReconciliationStatusEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.HotelReconciliationStatusReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelReconciliationStatusEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelReconciliationStatusEnum(HotelReconciliationStatusEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HotelReconciliationStatusEnum Clone() { - return new HotelReconciliationStatusEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HotelReconciliationStatusEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HotelReconciliationStatusEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HotelReconciliationStatusEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the HotelReconciliationStatusEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Status of the hotel booking reconciliation. - /// - public enum HotelReconciliationStatus { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Bookings are for a future date, or a stay is underway but the check-out - /// date hasn't passed. An active reservation can't be reconciled. - /// - [pbr::OriginalName("RESERVATION_ENABLED")] ReservationEnabled = 2, - /// - /// Check-out has already taken place, or the booked dates have passed - /// without cancellation. Bookings that are not reconciled within 45 days of - /// the check-out date are billed based on the original booking price. - /// - [pbr::OriginalName("RECONCILIATION_NEEDED")] ReconciliationNeeded = 3, - /// - /// These bookings have been reconciled. Reconciled bookings are billed 45 - /// days after the check-out date. - /// - [pbr::OriginalName("RECONCILED")] Reconciled = 4, - /// - /// This booking was marked as canceled. Canceled stays with a value greater - /// than zero (due to minimum stay rules or cancellation fees) are billed 45 - /// days after the check-out date. - /// - [pbr::OriginalName("CANCELED")] Canceled = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/IdError.g.cs b/Google.Ads.GoogleAds/src/V12/IdError.g.cs deleted file mode 100755 index 35ad2a956..000000000 --- a/Google.Ads.GoogleAds/src/V12/IdError.g.cs +++ /dev/null @@ -1,231 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/id_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/id_error.proto - public static partial class IdErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/id_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static IdErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2lkX2Vycm9yLnBy", - "b3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIkUKC0lkRXJy", - "b3JFbnVtIjYKB0lkRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dO", - "EAESDQoJTk9UX0ZPVU5EEAJC7AEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZXJyb3JzQgxJZEVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJv", - "cnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVy", - "cm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.IdErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.IdErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.IdErrorEnum.Types.IdError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible ID errors. - /// - public sealed partial class IdErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IdErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.IdErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IdErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IdErrorEnum(IdErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IdErrorEnum Clone() { - return new IdErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IdErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IdErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IdErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the IdErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible ID errors. - /// - public enum IdError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// ID not found - /// - [pbr::OriginalName("NOT_FOUND")] NotFound = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ImageError.g.cs b/Google.Ads.GoogleAds/src/V12/ImageError.g.cs deleted file mode 100755 index 0b9c577e3..000000000 --- a/Google.Ads.GoogleAds/src/V12/ImageError.g.cs +++ /dev/null @@ -1,409 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/image_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/image_error.proto - public static partial class ImageErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/image_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ImageErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ltYWdlX2Vycm9y", - "LnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIsIICg5J", - "bWFnZUVycm9yRW51bSKvCAoKSW1hZ2VFcnJvchIPCgtVTlNQRUNJRklFRBAA", - "EgsKB1VOS05PV04QARIRCg1JTlZBTElEX0lNQUdFEAISEQoNU1RPUkFHRV9F", - "UlJPUhADEg8KC0JBRF9SRVFVRVNUEAQSEwoPVU5FWFBFQ1RFRF9TSVpFEAUS", - "GAoUQU5JTUFURURfTk9UX0FMTE9XRUQQBhIWChJBTklNQVRJT05fVE9PX0xP", - "TkcQBxIQCgxTRVJWRVJfRVJST1IQCBIZChVDTVlLX0pQRUdfTk9UX0FMTE9X", - "RUQQCRIVChFGTEFTSF9OT1RfQUxMT1dFRBAKEhoKFkZMQVNIX1dJVEhPVVRf", - "Q0xJQ0tUQUcQCxImCiJGTEFTSF9FUlJPUl9BRlRFUl9GSVhJTkdfQ0xJQ0tf", - "VEFHEAwSGgoWQU5JTUFURURfVklTVUFMX0VGRkVDVBANEg8KC0ZMQVNIX0VS", - "Uk9SEA4SEgoOTEFZT1VUX1BST0JMRU0QDxIeChpQUk9CTEVNX1JFQURJTkdf", - "SU1BR0VfRklMRRAQEhcKE0VSUk9SX1NUT1JJTkdfSU1BR0UQERIcChhBU1BF", - "Q1RfUkFUSU9fTk9UX0FMTE9XRUQQEhIdChlGTEFTSF9IQVNfTkVUV09SS19P", - "QkpFQ1RTEBMSHQoZRkxBU0hfSEFTX05FVFdPUktfTUVUSE9EUxAUEhEKDUZM", - "QVNIX0hBU19VUkwQFRIcChhGTEFTSF9IQVNfTU9VU0VfVFJBQ0tJTkcQFhIY", - "ChRGTEFTSF9IQVNfUkFORE9NX05VTRAXEhYKEkZMQVNIX1NFTEZfVEFSR0VU", - "UxAYEhsKF0ZMQVNIX0JBRF9HRVRVUkxfVEFSR0VUEBkSHwobRkxBU0hfVkVS", - "U0lPTl9OT1RfU1VQUE9SVEVEEBoSJgoiRkxBU0hfV0lUSE9VVF9IQVJEX0NP", - "REVEX0NMSUNLX1VSTBAbEhYKEklOVkFMSURfRkxBU0hfRklMRRAcEiQKIEZB", - "SUxFRF9UT19GSVhfQ0xJQ0tfVEFHX0lOX0ZMQVNIEB0SJAogRkxBU0hfQUND", - "RVNTRVNfTkVUV09SS19SRVNPVVJDRVMQHhIaChZGTEFTSF9FWFRFUk5BTF9K", - "U19DQUxMEB8SGgoWRkxBU0hfRVhURVJOQUxfRlNfQ0FMTBAgEhIKDkZJTEVf", - "VE9PX0xBUkdFECESGAoUSU1BR0VfREFUQV9UT09fTEFSR0UQIhIaChZJTUFH", - "RV9QUk9DRVNTSU5HX0VSUk9SECMSEwoPSU1BR0VfVE9PX1NNQUxMECQSEQoN", - "SU5WQUxJRF9JTlBVVBAlEhgKFFBST0JMRU1fUkVBRElOR19GSUxFECYSHgoa", - "SU1BR0VfQ09OU1RSQUlOVFNfVklPTEFURUQQJxIWChJGT1JNQVRfTk9UX0FM", - "TE9XRUQQKELvAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnNCD0ltYWdlRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJv", - "cnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIf", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRz", - "OjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.ImageErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.ImageErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.ImageErrorEnum.Types.ImageError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible image errors. - /// - public sealed partial class ImageErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImageErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.ImageErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageErrorEnum(ImageErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImageErrorEnum Clone() { - return new ImageErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImageErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImageErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImageErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ImageErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible image errors. - /// - public enum ImageError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The image is not valid. - /// - [pbr::OriginalName("INVALID_IMAGE")] InvalidImage = 2, - /// - /// The image could not be stored. - /// - [pbr::OriginalName("STORAGE_ERROR")] StorageError = 3, - /// - /// There was a problem with the request. - /// - [pbr::OriginalName("BAD_REQUEST")] BadRequest = 4, - /// - /// The image is not of legal dimensions. - /// - [pbr::OriginalName("UNEXPECTED_SIZE")] UnexpectedSize = 5, - /// - /// Animated image are not permitted. - /// - [pbr::OriginalName("ANIMATED_NOT_ALLOWED")] AnimatedNotAllowed = 6, - /// - /// Animation is too long. - /// - [pbr::OriginalName("ANIMATION_TOO_LONG")] AnimationTooLong = 7, - /// - /// There was an error on the server. - /// - [pbr::OriginalName("SERVER_ERROR")] ServerError = 8, - /// - /// Image cannot be in CMYK color format. - /// - [pbr::OriginalName("CMYK_JPEG_NOT_ALLOWED")] CmykJpegNotAllowed = 9, - /// - /// Flash images are not permitted. - /// - [pbr::OriginalName("FLASH_NOT_ALLOWED")] FlashNotAllowed = 10, - /// - /// Flash images must support clickTag. - /// - [pbr::OriginalName("FLASH_WITHOUT_CLICKTAG")] FlashWithoutClicktag = 11, - /// - /// A flash error has occurred after fixing the click tag. - /// - [pbr::OriginalName("FLASH_ERROR_AFTER_FIXING_CLICK_TAG")] FlashErrorAfterFixingClickTag = 12, - /// - /// Unacceptable visual effects. - /// - [pbr::OriginalName("ANIMATED_VISUAL_EFFECT")] AnimatedVisualEffect = 13, - /// - /// There was a problem with the flash image. - /// - [pbr::OriginalName("FLASH_ERROR")] FlashError = 14, - /// - /// Incorrect image layout. - /// - [pbr::OriginalName("LAYOUT_PROBLEM")] LayoutProblem = 15, - /// - /// There was a problem reading the image file. - /// - [pbr::OriginalName("PROBLEM_READING_IMAGE_FILE")] ProblemReadingImageFile = 16, - /// - /// There was an error storing the image. - /// - [pbr::OriginalName("ERROR_STORING_IMAGE")] ErrorStoringImage = 17, - /// - /// The aspect ratio of the image is not allowed. - /// - [pbr::OriginalName("ASPECT_RATIO_NOT_ALLOWED")] AspectRatioNotAllowed = 18, - /// - /// Flash cannot have network objects. - /// - [pbr::OriginalName("FLASH_HAS_NETWORK_OBJECTS")] FlashHasNetworkObjects = 19, - /// - /// Flash cannot have network methods. - /// - [pbr::OriginalName("FLASH_HAS_NETWORK_METHODS")] FlashHasNetworkMethods = 20, - /// - /// Flash cannot have a Url. - /// - [pbr::OriginalName("FLASH_HAS_URL")] FlashHasUrl = 21, - /// - /// Flash cannot use mouse tracking. - /// - [pbr::OriginalName("FLASH_HAS_MOUSE_TRACKING")] FlashHasMouseTracking = 22, - /// - /// Flash cannot have a random number. - /// - [pbr::OriginalName("FLASH_HAS_RANDOM_NUM")] FlashHasRandomNum = 23, - /// - /// Ad click target cannot be '_self'. - /// - [pbr::OriginalName("FLASH_SELF_TARGETS")] FlashSelfTargets = 24, - /// - /// GetUrl method should only use '_blank'. - /// - [pbr::OriginalName("FLASH_BAD_GETURL_TARGET")] FlashBadGeturlTarget = 25, - /// - /// Flash version is not supported. - /// - [pbr::OriginalName("FLASH_VERSION_NOT_SUPPORTED")] FlashVersionNotSupported = 26, - /// - /// Flash movies need to have hard coded click URL or clickTAG - /// - [pbr::OriginalName("FLASH_WITHOUT_HARD_CODED_CLICK_URL")] FlashWithoutHardCodedClickUrl = 27, - /// - /// Uploaded flash file is corrupted. - /// - [pbr::OriginalName("INVALID_FLASH_FILE")] InvalidFlashFile = 28, - /// - /// Uploaded flash file can be parsed, but the click tag can not be fixed - /// properly. - /// - [pbr::OriginalName("FAILED_TO_FIX_CLICK_TAG_IN_FLASH")] FailedToFixClickTagInFlash = 29, - /// - /// Flash movie accesses network resources - /// - [pbr::OriginalName("FLASH_ACCESSES_NETWORK_RESOURCES")] FlashAccessesNetworkResources = 30, - /// - /// Flash movie attempts to call external javascript code - /// - [pbr::OriginalName("FLASH_EXTERNAL_JS_CALL")] FlashExternalJsCall = 31, - /// - /// Flash movie attempts to call flash system commands - /// - [pbr::OriginalName("FLASH_EXTERNAL_FS_CALL")] FlashExternalFsCall = 32, - /// - /// Image file is too large. - /// - [pbr::OriginalName("FILE_TOO_LARGE")] FileTooLarge = 33, - /// - /// Image data is too large. - /// - [pbr::OriginalName("IMAGE_DATA_TOO_LARGE")] ImageDataTooLarge = 34, - /// - /// Error while processing the image. - /// - [pbr::OriginalName("IMAGE_PROCESSING_ERROR")] ImageProcessingError = 35, - /// - /// Image is too small. - /// - [pbr::OriginalName("IMAGE_TOO_SMALL")] ImageTooSmall = 36, - /// - /// Input was invalid. - /// - [pbr::OriginalName("INVALID_INPUT")] InvalidInput = 37, - /// - /// There was a problem reading the image file. - /// - [pbr::OriginalName("PROBLEM_READING_FILE")] ProblemReadingFile = 38, - /// - /// Image constraints are violated, but details like ASPECT_RATIO_NOT_ALLOWED - /// can't be provided. This happens when asset spec contains more than one - /// constraint and different criteria of different constraints are violated. - /// - [pbr::OriginalName("IMAGE_CONSTRAINTS_VIOLATED")] ImageConstraintsViolated = 39, - /// - /// Image format is not allowed. - /// - [pbr::OriginalName("FORMAT_NOT_ALLOWED")] FormatNotAllowed = 40, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/ImagePlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/ImagePlaceholderField.g.cs deleted file mode 100755 index 906fd7b88..000000000 --- a/Google.Ads.GoogleAds/src/V12/ImagePlaceholderField.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/image_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/image_placeholder_field.proto - public static partial class ImagePlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/image_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static ImagePlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaW1hZ2VfcGxhY2Vo", - "b2xkZXJfZmllbGQucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyJgChlJbWFnZVBsYWNlaG9sZGVyRmllbGRFbnVtIkMKFUltYWdlUGxh", - "Y2Vob2xkZXJGaWVsZBIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIM", - "CghBU1NFVF9JRBACQvQBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LmVudW1zQhpJbWFnZVBsYWNlaG9sZGVyRmllbGRQcm90b1ABWkNnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIi", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldEnum.Types.ImagePlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Advertiser Provided Image placeholder fields. - /// - public sealed partial class ImagePlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImagePlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ImagePlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImagePlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImagePlaceholderFieldEnum(ImagePlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ImagePlaceholderFieldEnum Clone() { - return new ImagePlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ImagePlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ImagePlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ImagePlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the ImagePlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Advertiser Provided Image placeholder fields. - /// - public enum ImagePlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: INT64. The asset ID of the image. - /// - [pbr::OriginalName("ASSET_ID")] AssetId = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/IncomeRangeType.g.cs b/Google.Ads.GoogleAds/src/V12/IncomeRangeType.g.cs deleted file mode 100755 index 2199ebe86..000000000 --- a/Google.Ads.GoogleAds/src/V12/IncomeRangeType.g.cs +++ /dev/null @@ -1,260 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/income_range_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/income_range_type.proto - public static partial class IncomeRangeTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/income_range_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static IncomeRangeTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaW5jb21lX3Jhbmdl", - "X3R5cGUucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcyKD", - "AgoTSW5jb21lUmFuZ2VUeXBlRW51bSLrAQoPSW5jb21lUmFuZ2VUeXBlEg8K", - "C1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEhcKEUlOQ09NRV9SQU5HRV8w", - "XzUwELGQHxIYChJJTkNPTUVfUkFOR0VfNTBfNjAQspAfEhgKEklOQ09NRV9S", - "QU5HRV82MF83MBCzkB8SGAoSSU5DT01FX1JBTkdFXzcwXzgwELSQHxIYChJJ", - "TkNPTUVfUkFOR0VfODBfOTAQtZAfEhgKEklOQ09NRV9SQU5HRV85MF9VUBC2", - "kB8SHwoZSU5DT01FX1JBTkdFX1VOREVURVJNSU5FRBCwkB9C7gEKImNvbS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCFEluY29tZVJhbmdlVHlw", - "ZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29n", - "bGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6", - "OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeEnum.Types.IncomeRangeType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of demographic income ranges. - /// - public sealed partial class IncomeRangeTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IncomeRangeTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.IncomeRangeTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeTypeEnum(IncomeRangeTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeTypeEnum Clone() { - return new IncomeRangeTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IncomeRangeTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IncomeRangeTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IncomeRangeTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the IncomeRangeTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The type of demographic income ranges (for example, between 0% to 50%). - /// - public enum IncomeRangeType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// 0%-50%. - /// - [pbr::OriginalName("INCOME_RANGE_0_50")] IncomeRange050 = 510001, - /// - /// 50% to 60%. - /// - [pbr::OriginalName("INCOME_RANGE_50_60")] IncomeRange5060 = 510002, - /// - /// 60% to 70%. - /// - [pbr::OriginalName("INCOME_RANGE_60_70")] IncomeRange6070 = 510003, - /// - /// 70% to 80%. - /// - [pbr::OriginalName("INCOME_RANGE_70_80")] IncomeRange7080 = 510004, - /// - /// 80% to 90%. - /// - [pbr::OriginalName("INCOME_RANGE_80_90")] IncomeRange8090 = 510005, - /// - /// Greater than 90%. - /// - [pbr::OriginalName("INCOME_RANGE_90_UP")] IncomeRange90Up = 510006, - /// - /// Undetermined income range. - /// - [pbr::OriginalName("INCOME_RANGE_UNDETERMINED")] IncomeRangeUndetermined = 510000, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/IncomeRangeView.g.cs b/Google.Ads.GoogleAds/src/V12/IncomeRangeView.g.cs deleted file mode 100755 index 75dfc7d04..000000000 --- a/Google.Ads.GoogleAds/src/V12/IncomeRangeView.g.cs +++ /dev/null @@ -1,254 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/income_range_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/income_range_view.proto - public static partial class IncomeRangeViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/income_range_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static IncomeRangeViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2luY29tZV9y", - "YW5nZV92aWV3LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29n", - "bGUvYXBpL3Jlc291cmNlLnByb3RvItABCg9JbmNvbWVSYW5nZVZpZXcSRwoN", - "cmVzb3VyY2VfbmFtZRgBIAEoCUIw4EED+kEqCihnb29nbGVhZHMuZ29vZ2xl", - "YXBpcy5jb20vSW5jb21lUmFuZ2VWaWV3OnTqQXEKKGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9JbmNvbWVSYW5nZVZpZXcSRWN1c3RvbWVycy97Y3VzdG9t", - "ZXJfaWR9L2luY29tZVJhbmdlVmlld3Mve2FkX2dyb3VwX2lkfX57Y3JpdGVy", - "aW9uX2lkfUKGAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXNCFEluY29tZVJhbmdlVmlld1Byb3RvUAFaS2dvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVz", - "b3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVz", - "b3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJj", - "ZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeView), global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// An income range view. - /// - public sealed partial class IncomeRangeView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IncomeRangeView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.IncomeRangeViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeView(IncomeRangeView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IncomeRangeView Clone() { - return new IncomeRangeView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the income range view. - /// Income range view resource names have the form: - /// - /// `customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as IncomeRangeView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(IncomeRangeView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(IncomeRangeView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/IncomeRangeViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/IncomeRangeViewResourceNames.g.cs deleted file mode 100755 index 45eaade88..000000000 --- a/Google.Ads.GoogleAds/src/V12/IncomeRangeViewResourceNames.g.cs +++ /dev/null @@ -1,299 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the IncomeRangeView resource. - public sealed partial class IncomeRangeViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id} - /// . - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/incomeRangeViews/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static IncomeRangeViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new IncomeRangeViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static IncomeRangeViewName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new IncomeRangeViewName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static IncomeRangeViewName Parse(string incomeRangeViewName) => Parse(incomeRangeViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static IncomeRangeViewName Parse(string incomeRangeViewName, bool allowUnparsed) => - TryParse(incomeRangeViewName, allowUnparsed, out IncomeRangeViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string incomeRangeViewName, out IncomeRangeViewName result) => - TryParse(incomeRangeViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string incomeRangeViewName, bool allowUnparsed, out IncomeRangeViewName result) - { - gax::GaxPreconditions.CheckNotNull(incomeRangeViewName, nameof(incomeRangeViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(incomeRangeViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(incomeRangeViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private IncomeRangeViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public IncomeRangeViewName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as IncomeRangeViewName); - - /// - public bool Equals(IncomeRangeViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(IncomeRangeViewName a, IncomeRangeViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(IncomeRangeViewName a, IncomeRangeViewName b) => !(a == b); - } - - public partial class IncomeRangeView - { - /// - /// -typed view over the resource name property. - /// - internal IncomeRangeViewName ResourceNameAsIncomeRangeViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : IncomeRangeViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/InteractionEventType.g.cs b/Google.Ads.GoogleAds/src/V12/InteractionEventType.g.cs deleted file mode 100755 index bf21d8e7f..000000000 --- a/Google.Ads.GoogleAds/src/V12/InteractionEventType.g.cs +++ /dev/null @@ -1,251 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/interaction_event_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/interaction_event_type.proto - public static partial class InteractionEventTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/interaction_event_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InteractionEventTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaW50ZXJhY3Rpb25f", - "ZXZlbnRfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zIoUBChhJbnRlcmFjdGlvbkV2ZW50VHlwZUVudW0iaQoUSW50ZXJhY3Rp", - "b25FdmVudFR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESCQoF", - "Q0xJQ0sQAhIOCgpFTkdBR0VNRU5UEAMSDgoKVklERU9fVklFVxAEEggKBE5P", - "TkUQBULzAQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IZ", - "SW50ZXJhY3Rpb25FdmVudFR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "O2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1z", - "ygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.InteractionEventTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.InteractionEventTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.InteractionEventTypeEnum.Types.InteractionEventType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing types of payable and free interactions. - /// - public sealed partial class InteractionEventTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractionEventTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.InteractionEventTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionEventTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionEventTypeEnum(InteractionEventTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionEventTypeEnum Clone() { - return new InteractionEventTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InteractionEventTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InteractionEventTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InteractionEventTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the InteractionEventTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible types of payable and free interactions. - /// - public enum InteractionEventType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Click to site. In most cases, this interaction navigates to an external - /// location, usually the advertiser's landing page. This is also the default - /// InteractionEventType for click events. - /// - [pbr::OriginalName("CLICK")] Click = 2, - /// - /// The user's expressed intent to engage with the ad in-place. - /// - [pbr::OriginalName("ENGAGEMENT")] Engagement = 3, - /// - /// User viewed a video ad. - /// - [pbr::OriginalName("VIDEO_VIEW")] VideoView = 4, - /// - /// The default InteractionEventType for ad conversion events. - /// This is used when an ad conversion row does NOT indicate - /// that the free interactions (for example, the ad conversions) - /// should be 'promoted' and reported as part of the core metrics. - /// These are simply other (ad) conversions. - /// - [pbr::OriginalName("NONE")] None = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/InteractionType.g.cs b/Google.Ads.GoogleAds/src/V12/InteractionType.g.cs deleted file mode 100755 index 22345c5d0..000000000 --- a/Google.Ads.GoogleAds/src/V12/InteractionType.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/interaction_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/interaction_type.proto - public static partial class InteractionTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/interaction_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InteractionTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaW50ZXJhY3Rpb25f", - "dHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zIlIK", - "E0ludGVyYWN0aW9uVHlwZUVudW0iOwoPSW50ZXJhY3Rpb25UeXBlEg8KC1VO", - "U1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgoKBUNBTExTEMA+Qu4BCiJjb20u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhRJbnRlcmFjdGlvblR5", - "cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEy", - "OjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeEnum.Types.InteractionType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible interaction types. - /// - public sealed partial class InteractionTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InteractionTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.InteractionTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionTypeEnum(InteractionTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InteractionTypeEnum Clone() { - return new InteractionTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InteractionTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InteractionTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InteractionTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the InteractionTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible interaction types. - /// - public enum InteractionType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Calls. - /// - [pbr::OriginalName("CALLS")] Calls = 8000, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/Invoice.g.cs b/Google.Ads.GoogleAds/src/V12/Invoice.g.cs deleted file mode 100755 index 9608065a8..000000000 --- a/Google.Ads.GoogleAds/src/V12/Invoice.g.cs +++ /dev/null @@ -1,3299 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/invoice.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/invoice.proto - public static partial class InvoiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/invoice.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InvoiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2ludm9pY2Uu", - "cHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMaK2dv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vZGF0ZXMucHJvdG8aMWdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9pbnZvaWNlX3R5cGUucHJv", - "dG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9h", - "cGkvcmVzb3VyY2UucHJvdG8ijh4KB0ludm9pY2USPwoNcmVzb3VyY2VfbmFt", - "ZRgBIAEoCUIo4EED+kEiCiBnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vSW52", - "b2ljZRIUCgJpZBgZIAEoCUID4EEDSACIAQESTgoEdHlwZRgDIAEoDjI7Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5JbnZvaWNlVHlwZUVudW0u", - "SW52b2ljZVR5cGVCA+BBAxIfCg1iaWxsaW5nX3NldHVwGBogASgJQgPgQQNI", - "AYgBARIlChNwYXltZW50c19hY2NvdW50X2lkGBsgASgJQgPgQQNIAogBARIl", - "ChNwYXltZW50c19wcm9maWxlX2lkGBwgASgJQgPgQQNIA4gBARIcCgppc3N1", - "ZV9kYXRlGB0gASgJQgPgQQNIBIgBARIaCghkdWVfZGF0ZRgeIAEoCUID4EED", - "SAWIAQESSwoSc2VydmljZV9kYXRlX3JhbmdlGAkgASgLMiouZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmNvbW1vbi5EYXRlUmFuZ2VCA+BBAxIfCg1jdXJy", - "ZW5jeV9jb2RlGB8gASgJQgPgQQNIBogBARIvCiJhZGp1c3RtZW50c19zdWJ0", - "b3RhbF9hbW91bnRfbWljcm9zGBMgASgDQgPgQQMSKgodYWRqdXN0bWVudHNf", - "dGF4X2Ftb3VudF9taWNyb3MYFCABKANCA+BBAxIsCh9hZGp1c3RtZW50c190", - "b3RhbF9hbW91bnRfbWljcm9zGBUgASgDQgPgQQMSNAoncmVndWxhdG9yeV9j", - "b3N0c19zdWJ0b3RhbF9hbW91bnRfbWljcm9zGBYgASgDQgPgQQMSLwoicmVn", - "dWxhdG9yeV9jb3N0c190YXhfYW1vdW50X21pY3JvcxgXIAEoA0ID4EEDEjEK", - "JHJlZ3VsYXRvcnlfY29zdHNfdG90YWxfYW1vdW50X21pY3JvcxgYIAEoA0ID", - "4EEDEigKFnN1YnRvdGFsX2Ftb3VudF9taWNyb3MYISABKANCA+BBA0gHiAEB", - "EiMKEXRheF9hbW91bnRfbWljcm9zGCIgASgDQgPgQQNICIgBARIlChN0b3Rh", - "bF9hbW91bnRfbWljcm9zGCMgASgDQgPgQQNICYgBARIjChFjb3JyZWN0ZWRf", - "aW52b2ljZRgkIAEoCUID4EEDSAqIAQESHgoRcmVwbGFjZWRfaW52b2ljZXMY", - "JSADKAlCA+BBAxIZCgdwZGZfdXJsGCYgASgJQgPgQQNIC4gBARJnChhhY2Nv", - "dW50X2J1ZGdldF9zdW1tYXJpZXMYEiADKAsyQC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzLkludm9pY2UuQWNjb3VudEJ1ZGdldFN1bW1h", - "cnlCA+BBAxJaChFhY2NvdW50X3N1bW1hcmllcxgnIAMoCzI6Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuSW52b2ljZS5BY2NvdW50U3Vt", - "bWFyeUID4EEDGs4LCg5BY2NvdW50U3VtbWFyeRIaCghjdXN0b21lchgBIAEo", - "CUID4EEDSACIAQESOwopYmlsbGluZ19jb3JyZWN0aW9uX3N1YnRvdGFsX2Ft", - "b3VudF9taWNyb3MYAiABKANCA+BBA0gBiAEBEjYKJGJpbGxpbmdfY29ycmVj", - "dGlvbl90YXhfYW1vdW50X21pY3JvcxgDIAEoA0ID4EEDSAKIAQESOAomYmls", - "bGluZ19jb3JyZWN0aW9uX3RvdGFsX2Ftb3VudF9taWNyb3MYBCABKANCA+BB", - "A0gDiAEBEjoKKGNvdXBvbl9hZGp1c3RtZW50X3N1YnRvdGFsX2Ftb3VudF9t", - "aWNyb3MYBSABKANCA+BBA0gEiAEBEjUKI2NvdXBvbl9hZGp1c3RtZW50X3Rh", - "eF9hbW91bnRfbWljcm9zGAYgASgDQgPgQQNIBYgBARI3CiVjb3Vwb25fYWRq", - "dXN0bWVudF90b3RhbF9hbW91bnRfbWljcm9zGAcgASgDQgPgQQNIBogBARJB", - "Ci9leGNlc3NfY3JlZGl0X2FkanVzdG1lbnRfc3VidG90YWxfYW1vdW50X21p", - "Y3JvcxgIIAEoA0ID4EEDSAeIAQESPAoqZXhjZXNzX2NyZWRpdF9hZGp1c3Rt", - "ZW50X3RheF9hbW91bnRfbWljcm9zGAkgASgDQgPgQQNICIgBARI+CixleGNl", - "c3NfY3JlZGl0X2FkanVzdG1lbnRfdG90YWxfYW1vdW50X21pY3JvcxgKIAEo", - "A0ID4EEDSAmIAQESOQoncmVndWxhdG9yeV9jb3N0c19zdWJ0b3RhbF9hbW91", - "bnRfbWljcm9zGAsgASgDQgPgQQNICogBARI0CiJyZWd1bGF0b3J5X2Nvc3Rz", - "X3RheF9hbW91bnRfbWljcm9zGAwgASgDQgPgQQNIC4gBARI2CiRyZWd1bGF0", - "b3J5X2Nvc3RzX3RvdGFsX2Ftb3VudF9taWNyb3MYDSABKANCA+BBA0gMiAEB", - "EigKFnN1YnRvdGFsX2Ftb3VudF9taWNyb3MYDiABKANCA+BBA0gNiAEBEiMK", - "EXRheF9hbW91bnRfbWljcm9zGA8gASgDQgPgQQNIDogBARIlChN0b3RhbF9h", - "bW91bnRfbWljcm9zGBAgASgDQgPgQQNID4gBAUILCglfY3VzdG9tZXJCLAoq", - "X2JpbGxpbmdfY29ycmVjdGlvbl9zdWJ0b3RhbF9hbW91bnRfbWljcm9zQicK", - "JV9iaWxsaW5nX2NvcnJlY3Rpb25fdGF4X2Ftb3VudF9taWNyb3NCKQonX2Jp", - "bGxpbmdfY29ycmVjdGlvbl90b3RhbF9hbW91bnRfbWljcm9zQisKKV9jb3Vw", - "b25fYWRqdXN0bWVudF9zdWJ0b3RhbF9hbW91bnRfbWljcm9zQiYKJF9jb3Vw", - "b25fYWRqdXN0bWVudF90YXhfYW1vdW50X21pY3Jvc0IoCiZfY291cG9uX2Fk", - "anVzdG1lbnRfdG90YWxfYW1vdW50X21pY3Jvc0IyCjBfZXhjZXNzX2NyZWRp", - "dF9hZGp1c3RtZW50X3N1YnRvdGFsX2Ftb3VudF9taWNyb3NCLQorX2V4Y2Vz", - "c19jcmVkaXRfYWRqdXN0bWVudF90YXhfYW1vdW50X21pY3Jvc0IvCi1fZXhj", - "ZXNzX2NyZWRpdF9hZGp1c3RtZW50X3RvdGFsX2Ftb3VudF9taWNyb3NCKgoo", - "X3JlZ3VsYXRvcnlfY29zdHNfc3VidG90YWxfYW1vdW50X21pY3Jvc0IlCiNf", - "cmVndWxhdG9yeV9jb3N0c190YXhfYW1vdW50X21pY3Jvc0InCiVfcmVndWxh", - "dG9yeV9jb3N0c190b3RhbF9hbW91bnRfbWljcm9zQhkKF19zdWJ0b3RhbF9h", - "bW91bnRfbWljcm9zQhQKEl90YXhfYW1vdW50X21pY3Jvc0IWChRfdG90YWxf", - "YW1vdW50X21pY3Jvcxr7BgoUQWNjb3VudEJ1ZGdldFN1bW1hcnkSGgoIY3Vz", - "dG9tZXIYCiABKAlCA+BBA0gAiAEBEisKGWN1c3RvbWVyX2Rlc2NyaXB0aXZl", - "X25hbWUYCyABKAlCA+BBA0gBiAEBEiAKDmFjY291bnRfYnVkZ2V0GAwgASgJ", - "QgPgQQNIAogBARIlChNhY2NvdW50X2J1ZGdldF9uYW1lGA0gASgJQgPgQQNI", - "A4gBARInChVwdXJjaGFzZV9vcmRlcl9udW1iZXIYDiABKAlCA+BBA0gEiAEB", - "EigKFnN1YnRvdGFsX2Ftb3VudF9taWNyb3MYDyABKANCA+BBA0gFiAEBEiMK", - "EXRheF9hbW91bnRfbWljcm9zGBAgASgDQgPgQQNIBogBARIlChN0b3RhbF9h", - "bW91bnRfbWljcm9zGBEgASgDQgPgQQNIB4gBARJVChxiaWxsYWJsZV9hY3Rp", - "dml0eV9kYXRlX3JhbmdlGAkgASgLMiouZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmNvbW1vbi5EYXRlUmFuZ2VCA+BBAxImChRzZXJ2ZWRfYW1vdW50X21p", - "Y3JvcxgSIAEoA0ID4EEDSAiIAQESJgoUYmlsbGVkX2Ftb3VudF9taWNyb3MY", - "EyABKANCA+BBA0gJiAEBEiwKGm92ZXJkZWxpdmVyeV9hbW91bnRfbWljcm9z", - "GBQgASgDQgPgQQNICogBARIwCh5pbnZhbGlkX2FjdGl2aXR5X2Ftb3VudF9t", - "aWNyb3MYFSABKANCA+BBA0gLiAEBQgsKCV9jdXN0b21lckIcChpfY3VzdG9t", - "ZXJfZGVzY3JpcHRpdmVfbmFtZUIRCg9fYWNjb3VudF9idWRnZXRCFgoUX2Fj", - "Y291bnRfYnVkZ2V0X25hbWVCGAoWX3B1cmNoYXNlX29yZGVyX251bWJlckIZ", - "Chdfc3VidG90YWxfYW1vdW50X21pY3Jvc0IUChJfdGF4X2Ftb3VudF9taWNy", - "b3NCFgoUX3RvdGFsX2Ftb3VudF9taWNyb3NCFwoVX3NlcnZlZF9hbW91bnRf", - "bWljcm9zQhcKFV9iaWxsZWRfYW1vdW50X21pY3Jvc0IdChtfb3ZlcmRlbGl2", - "ZXJ5X2Ftb3VudF9taWNyb3NCIQofX2ludmFsaWRfYWN0aXZpdHlfYW1vdW50", - "X21pY3JvczpU6kFRCiBnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vSW52b2lj", - "ZRItY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vaW52b2ljZXMve2ludm9pY2Vf", - "aWR9QgUKA19pZEIQCg5fYmlsbGluZ19zZXR1cEIWChRfcGF5bWVudHNfYWNj", - "b3VudF9pZEIWChRfcGF5bWVudHNfcHJvZmlsZV9pZEINCgtfaXNzdWVfZGF0", - "ZUILCglfZHVlX2RhdGVCEAoOX2N1cnJlbmN5X2NvZGVCGQoXX3N1YnRvdGFs", - "X2Ftb3VudF9taWNyb3NCFAoSX3RheF9hbW91bnRfbWljcm9zQhYKFF90b3Rh", - "bF9hbW91bnRfbWljcm9zQhQKEl9jb3JyZWN0ZWRfaW52b2ljZUIKCghfcGRm", - "X3VybEL+AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJj", - "ZXNCDEludm9pY2VQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", - "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL3Jlc291cmNlcztyZXNv", - "dXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuUmVzb3Vy", - "Y2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXFJlc291cmNlc+oCJkdv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.DatesReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Invoice), global::Google.Ads.GoogleAds.V12.Resources.Invoice.Parser, new[]{ "ResourceName", "Id", "Type", "BillingSetup", "PaymentsAccountId", "PaymentsProfileId", "IssueDate", "DueDate", "ServiceDateRange", "CurrencyCode", "AdjustmentsSubtotalAmountMicros", "AdjustmentsTaxAmountMicros", "AdjustmentsTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "CorrectedInvoice", "ReplacedInvoices", "PdfUrl", "AccountBudgetSummaries", "AccountSummaries" }, new[]{ "Id", "BillingSetup", "PaymentsAccountId", "PaymentsProfileId", "IssueDate", "DueDate", "CurrencyCode", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "CorrectedInvoice", "PdfUrl" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Invoice.Types.AccountSummary), global::Google.Ads.GoogleAds.V12.Resources.Invoice.Types.AccountSummary.Parser, new[]{ "Customer", "BillingCorrectionSubtotalAmountMicros", "BillingCorrectionTaxAmountMicros", "BillingCorrectionTotalAmountMicros", "CouponAdjustmentSubtotalAmountMicros", "CouponAdjustmentTaxAmountMicros", "CouponAdjustmentTotalAmountMicros", "ExcessCreditAdjustmentSubtotalAmountMicros", "ExcessCreditAdjustmentTaxAmountMicros", "ExcessCreditAdjustmentTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros" }, new[]{ "Customer", "BillingCorrectionSubtotalAmountMicros", "BillingCorrectionTaxAmountMicros", "BillingCorrectionTotalAmountMicros", "CouponAdjustmentSubtotalAmountMicros", "CouponAdjustmentTaxAmountMicros", "CouponAdjustmentTotalAmountMicros", "ExcessCreditAdjustmentSubtotalAmountMicros", "ExcessCreditAdjustmentTaxAmountMicros", "ExcessCreditAdjustmentTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Invoice.Types.AccountBudgetSummary), global::Google.Ads.GoogleAds.V12.Resources.Invoice.Types.AccountBudgetSummary.Parser, new[]{ "Customer", "CustomerDescriptiveName", "AccountBudget", "AccountBudgetName", "PurchaseOrderNumber", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "BillableActivityDateRange", "ServedAmountMicros", "BilledAmountMicros", "OverdeliveryAmountMicros", "InvalidActivityAmountMicros" }, new[]{ "Customer", "CustomerDescriptiveName", "AccountBudget", "AccountBudgetName", "PurchaseOrderNumber", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "ServedAmountMicros", "BilledAmountMicros", "OverdeliveryAmountMicros", "InvalidActivityAmountMicros" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - /// - /// An invoice. All invoice information is snapshotted to match the PDF invoice. - /// For invoices older than the launch of InvoiceService, the snapshotted - /// information may not match the PDF invoice. - /// - public sealed partial class Invoice : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invoice()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.InvoiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invoice() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invoice(Invoice other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - type_ = other.type_; - billingSetup_ = other.billingSetup_; - paymentsAccountId_ = other.paymentsAccountId_; - paymentsProfileId_ = other.paymentsProfileId_; - issueDate_ = other.issueDate_; - dueDate_ = other.dueDate_; - serviceDateRange_ = other.serviceDateRange_ != null ? other.serviceDateRange_.Clone() : null; - currencyCode_ = other.currencyCode_; - adjustmentsSubtotalAmountMicros_ = other.adjustmentsSubtotalAmountMicros_; - adjustmentsTaxAmountMicros_ = other.adjustmentsTaxAmountMicros_; - adjustmentsTotalAmountMicros_ = other.adjustmentsTotalAmountMicros_; - regulatoryCostsSubtotalAmountMicros_ = other.regulatoryCostsSubtotalAmountMicros_; - regulatoryCostsTaxAmountMicros_ = other.regulatoryCostsTaxAmountMicros_; - regulatoryCostsTotalAmountMicros_ = other.regulatoryCostsTotalAmountMicros_; - subtotalAmountMicros_ = other.subtotalAmountMicros_; - taxAmountMicros_ = other.taxAmountMicros_; - totalAmountMicros_ = other.totalAmountMicros_; - correctedInvoice_ = other.correctedInvoice_; - replacedInvoices_ = other.replacedInvoices_.Clone(); - pdfUrl_ = other.pdfUrl_; - accountBudgetSummaries_ = other.accountBudgetSummaries_.Clone(); - accountSummaries_ = other.accountSummaries_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Invoice Clone() { - return new Invoice(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the invoice. Multiple customers can share a given - /// invoice, so multiple resource names may point to the same invoice. - /// Invoice resource names have the form: - /// - /// `customers/{customer_id}/invoices/{invoice_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 25; - private string id_; - /// - /// Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Id { - get { return id_ ?? ""; } - set { - id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return id_ != null; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - id_ = null; - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType type_ = global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType.Unspecified; - /// - /// Output only. The type of invoice. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType Type { - get { return type_; } - set { - type_ = value; - } - } - - /// Field number for the "billing_setup" field. - public const int BillingSetupFieldNumber = 26; - private string billingSetup_; - /// - /// Output only. The resource name of this invoice's billing setup. - /// - /// `customers/{customer_id}/billingSetups/{billing_setup_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BillingSetup { - get { return billingSetup_ ?? ""; } - set { - billingSetup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "billing_setup" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBillingSetup { - get { return billingSetup_ != null; } - } - /// Clears the value of the "billing_setup" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBillingSetup() { - billingSetup_ = null; - } - - /// Field number for the "payments_account_id" field. - public const int PaymentsAccountIdFieldNumber = 27; - private string paymentsAccountId_; - /// - /// Output only. A 16 digit ID used to identify the payments account associated with the - /// billing setup, for example, "1234-5678-9012-3456". It appears on the - /// invoice PDF as "Billing Account Number". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PaymentsAccountId { - get { return paymentsAccountId_ ?? ""; } - set { - paymentsAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "payments_account_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPaymentsAccountId { - get { return paymentsAccountId_ != null; } - } - /// Clears the value of the "payments_account_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPaymentsAccountId() { - paymentsAccountId_ = null; - } - - /// Field number for the "payments_profile_id" field. - public const int PaymentsProfileIdFieldNumber = 28; - private string paymentsProfileId_; - /// - /// Output only. A 12 digit ID used to identify the payments profile associated with the - /// billing setup, for example, "1234-5678-9012". It appears on the invoice PDF - /// as "Billing ID". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PaymentsProfileId { - get { return paymentsProfileId_ ?? ""; } - set { - paymentsProfileId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "payments_profile_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPaymentsProfileId { - get { return paymentsProfileId_ != null; } - } - /// Clears the value of the "payments_profile_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPaymentsProfileId() { - paymentsProfileId_ = null; - } - - /// Field number for the "issue_date" field. - public const int IssueDateFieldNumber = 29; - private string issueDate_; - /// - /// Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as - /// either "Issue date" or "Invoice date". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IssueDate { - get { return issueDate_ ?? ""; } - set { - issueDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "issue_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIssueDate { - get { return issueDate_ != null; } - } - /// Clears the value of the "issue_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIssueDate() { - issueDate_ = null; - } - - /// Field number for the "due_date" field. - public const int DueDateFieldNumber = 30; - private string dueDate_; - /// - /// Output only. The due date in yyyy-mm-dd format. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DueDate { - get { return dueDate_ ?? ""; } - set { - dueDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "due_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDueDate { - get { return dueDate_ != null; } - } - /// Clears the value of the "due_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDueDate() { - dueDate_ = null; - } - - /// Field number for the "service_date_range" field. - public const int ServiceDateRangeFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Common.DateRange serviceDateRange_; - /// - /// Output only. The service period date range of this invoice. The end date is inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DateRange ServiceDateRange { - get { return serviceDateRange_; } - set { - serviceDateRange_ = value; - } - } - - /// Field number for the "currency_code" field. - public const int CurrencyCodeFieldNumber = 31; - private string currencyCode_; - /// - /// Output only. The currency code. All costs are returned in this currency. A subset of the - /// currency codes derived from the ISO 4217 standard is supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CurrencyCode { - get { return currencyCode_ ?? ""; } - set { - currencyCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyCode { - get { return currencyCode_ != null; } - } - /// Clears the value of the "currency_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyCode() { - currencyCode_ = null; - } - - /// Field number for the "adjustments_subtotal_amount_micros" field. - public const int AdjustmentsSubtotalAmountMicrosFieldNumber = 19; - private long adjustmentsSubtotalAmountMicros_; - /// - /// Output only. The pretax subtotal amount of invoice level adjustments, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AdjustmentsSubtotalAmountMicros { - get { return adjustmentsSubtotalAmountMicros_; } - set { - adjustmentsSubtotalAmountMicros_ = value; - } - } - - /// Field number for the "adjustments_tax_amount_micros" field. - public const int AdjustmentsTaxAmountMicrosFieldNumber = 20; - private long adjustmentsTaxAmountMicros_; - /// - /// Output only. The sum of taxes on the invoice level adjustments, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AdjustmentsTaxAmountMicros { - get { return adjustmentsTaxAmountMicros_; } - set { - adjustmentsTaxAmountMicros_ = value; - } - } - - /// Field number for the "adjustments_total_amount_micros" field. - public const int AdjustmentsTotalAmountMicrosFieldNumber = 21; - private long adjustmentsTotalAmountMicros_; - /// - /// Output only. The total amount of invoice level adjustments, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AdjustmentsTotalAmountMicros { - get { return adjustmentsTotalAmountMicros_; } - set { - adjustmentsTotalAmountMicros_ = value; - } - } - - /// Field number for the "regulatory_costs_subtotal_amount_micros" field. - public const int RegulatoryCostsSubtotalAmountMicrosFieldNumber = 22; - private long regulatoryCostsSubtotalAmountMicros_; - /// - /// Output only. The pretax subtotal amount of invoice level regulatory costs, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RegulatoryCostsSubtotalAmountMicros { - get { return regulatoryCostsSubtotalAmountMicros_; } - set { - regulatoryCostsSubtotalAmountMicros_ = value; - } - } - - /// Field number for the "regulatory_costs_tax_amount_micros" field. - public const int RegulatoryCostsTaxAmountMicrosFieldNumber = 23; - private long regulatoryCostsTaxAmountMicros_; - /// - /// Output only. The sum of taxes on the invoice level regulatory costs, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RegulatoryCostsTaxAmountMicros { - get { return regulatoryCostsTaxAmountMicros_; } - set { - regulatoryCostsTaxAmountMicros_ = value; - } - } - - /// Field number for the "regulatory_costs_total_amount_micros" field. - public const int RegulatoryCostsTotalAmountMicrosFieldNumber = 24; - private long regulatoryCostsTotalAmountMicros_; - /// - /// Output only. The total amount of invoice level regulatory costs, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RegulatoryCostsTotalAmountMicros { - get { return regulatoryCostsTotalAmountMicros_; } - set { - regulatoryCostsTotalAmountMicros_ = value; - } - } - - /// Field number for the "subtotal_amount_micros" field. - public const int SubtotalAmountMicrosFieldNumber = 33; - private long subtotalAmountMicros_; - /// - /// Output only. The pretax subtotal amount, in micros. This equals the - /// sum of the AccountBudgetSummary subtotal amounts, - /// Invoice.adjustments_subtotal_amount_micros, and - /// Invoice.regulatory_costs_subtotal_amount_micros. - /// Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no - /// longer included. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SubtotalAmountMicros { - get { if ((_hasBits0 & 1) != 0) { return subtotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - subtotalAmountMicros_ = value; - } - } - /// Gets whether the "subtotal_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSubtotalAmountMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "subtotal_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSubtotalAmountMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "tax_amount_micros" field. - public const int TaxAmountMicrosFieldNumber = 34; - private long taxAmountMicros_; - /// - /// Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the - /// AccountBudgetSummary tax amounts, plus taxes not associated with a specific - /// account budget. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TaxAmountMicros { - get { if ((_hasBits0 & 2) != 0) { return taxAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - taxAmountMicros_ = value; - } - } - /// Gets whether the "tax_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTaxAmountMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "tax_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTaxAmountMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "total_amount_micros" field. - public const int TotalAmountMicrosFieldNumber = 35; - private long totalAmountMicros_; - /// - /// Output only. The total amount, in micros. This equals the sum of - /// Invoice.subtotal_amount_micros and Invoice.tax_amount_micros. - /// Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is - /// also added as it is no longer already included in - /// Invoice.tax_amount_micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalAmountMicros { - get { if ((_hasBits0 & 4) != 0) { return totalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - totalAmountMicros_ = value; - } - } - /// Gets whether the "total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTotalAmountMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTotalAmountMicros() { - _hasBits0 &= ~4; - } - - /// Field number for the "corrected_invoice" field. - public const int CorrectedInvoiceFieldNumber = 36; - private string correctedInvoice_; - /// - /// Output only. The resource name of the original invoice corrected, wrote off, or canceled - /// by this invoice, if applicable. If `corrected_invoice` is set, - /// `replaced_invoices` will not be set. - /// Invoice resource names have the form: - /// - /// `customers/{customer_id}/invoices/{invoice_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CorrectedInvoice { - get { return correctedInvoice_ ?? ""; } - set { - correctedInvoice_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "corrected_invoice" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCorrectedInvoice { - get { return correctedInvoice_ != null; } - } - /// Clears the value of the "corrected_invoice" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCorrectedInvoice() { - correctedInvoice_ = null; - } - - /// Field number for the "replaced_invoices" field. - public const int ReplacedInvoicesFieldNumber = 37; - private static readonly pb::FieldCodec _repeated_replacedInvoices_codec - = pb::FieldCodec.ForString(298); - private readonly pbc::RepeatedField replacedInvoices_ = new pbc::RepeatedField(); - /// - /// Output only. The resource name of the original invoice(s) being rebilled or replaced by - /// this invoice, if applicable. There might be multiple replaced invoices due - /// to invoice consolidation. The replaced invoices may not belong to the same - /// payments account. If `replaced_invoices` is set, `corrected_invoice` will - /// not be set. - /// Invoice resource names have the form: - /// - /// `customers/{customer_id}/invoices/{invoice_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ReplacedInvoices { - get { return replacedInvoices_; } - } - - /// Field number for the "pdf_url" field. - public const int PdfUrlFieldNumber = 38; - private string pdfUrl_; - /// - /// Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth - /// token to request the PDF with this URL. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PdfUrl { - get { return pdfUrl_ ?? ""; } - set { - pdfUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "pdf_url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPdfUrl { - get { return pdfUrl_ != null; } - } - /// Clears the value of the "pdf_url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPdfUrl() { - pdfUrl_ = null; - } - - /// Field number for the "account_budget_summaries" field. - public const int AccountBudgetSummariesFieldNumber = 18; - private static readonly pb::FieldCodec _repeated_accountBudgetSummaries_codec - = pb::FieldCodec.ForMessage(146, global::Google.Ads.GoogleAds.V12.Resources.Invoice.Types.AccountBudgetSummary.Parser); - private readonly pbc::RepeatedField accountBudgetSummaries_ = new pbc::RepeatedField(); - /// - /// Output only. The list of summarized account budget information associated with this - /// invoice. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AccountBudgetSummaries { - get { return accountBudgetSummaries_; } - } - - /// Field number for the "account_summaries" field. - public const int AccountSummariesFieldNumber = 39; - private static readonly pb::FieldCodec _repeated_accountSummaries_codec - = pb::FieldCodec.ForMessage(314, global::Google.Ads.GoogleAds.V12.Resources.Invoice.Types.AccountSummary.Parser); - private readonly pbc::RepeatedField accountSummaries_ = new pbc::RepeatedField(); - /// - /// Output only. The list of summarized account information associated with this invoice. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AccountSummaries { - get { return accountSummaries_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as Invoice); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Invoice other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Type != other.Type) return false; - if (BillingSetup != other.BillingSetup) return false; - if (PaymentsAccountId != other.PaymentsAccountId) return false; - if (PaymentsProfileId != other.PaymentsProfileId) return false; - if (IssueDate != other.IssueDate) return false; - if (DueDate != other.DueDate) return false; - if (!object.Equals(ServiceDateRange, other.ServiceDateRange)) return false; - if (CurrencyCode != other.CurrencyCode) return false; - if (AdjustmentsSubtotalAmountMicros != other.AdjustmentsSubtotalAmountMicros) return false; - if (AdjustmentsTaxAmountMicros != other.AdjustmentsTaxAmountMicros) return false; - if (AdjustmentsTotalAmountMicros != other.AdjustmentsTotalAmountMicros) return false; - if (RegulatoryCostsSubtotalAmountMicros != other.RegulatoryCostsSubtotalAmountMicros) return false; - if (RegulatoryCostsTaxAmountMicros != other.RegulatoryCostsTaxAmountMicros) return false; - if (RegulatoryCostsTotalAmountMicros != other.RegulatoryCostsTotalAmountMicros) return false; - if (SubtotalAmountMicros != other.SubtotalAmountMicros) return false; - if (TaxAmountMicros != other.TaxAmountMicros) return false; - if (TotalAmountMicros != other.TotalAmountMicros) return false; - if (CorrectedInvoice != other.CorrectedInvoice) return false; - if(!replacedInvoices_.Equals(other.replacedInvoices_)) return false; - if (PdfUrl != other.PdfUrl) return false; - if(!accountBudgetSummaries_.Equals(other.accountBudgetSummaries_)) return false; - if(!accountSummaries_.Equals(other.accountSummaries_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType.Unspecified) hash ^= Type.GetHashCode(); - if (HasBillingSetup) hash ^= BillingSetup.GetHashCode(); - if (HasPaymentsAccountId) hash ^= PaymentsAccountId.GetHashCode(); - if (HasPaymentsProfileId) hash ^= PaymentsProfileId.GetHashCode(); - if (HasIssueDate) hash ^= IssueDate.GetHashCode(); - if (HasDueDate) hash ^= DueDate.GetHashCode(); - if (serviceDateRange_ != null) hash ^= ServiceDateRange.GetHashCode(); - if (HasCurrencyCode) hash ^= CurrencyCode.GetHashCode(); - if (AdjustmentsSubtotalAmountMicros != 0L) hash ^= AdjustmentsSubtotalAmountMicros.GetHashCode(); - if (AdjustmentsTaxAmountMicros != 0L) hash ^= AdjustmentsTaxAmountMicros.GetHashCode(); - if (AdjustmentsTotalAmountMicros != 0L) hash ^= AdjustmentsTotalAmountMicros.GetHashCode(); - if (RegulatoryCostsSubtotalAmountMicros != 0L) hash ^= RegulatoryCostsSubtotalAmountMicros.GetHashCode(); - if (RegulatoryCostsTaxAmountMicros != 0L) hash ^= RegulatoryCostsTaxAmountMicros.GetHashCode(); - if (RegulatoryCostsTotalAmountMicros != 0L) hash ^= RegulatoryCostsTotalAmountMicros.GetHashCode(); - if (HasSubtotalAmountMicros) hash ^= SubtotalAmountMicros.GetHashCode(); - if (HasTaxAmountMicros) hash ^= TaxAmountMicros.GetHashCode(); - if (HasTotalAmountMicros) hash ^= TotalAmountMicros.GetHashCode(); - if (HasCorrectedInvoice) hash ^= CorrectedInvoice.GetHashCode(); - hash ^= replacedInvoices_.GetHashCode(); - if (HasPdfUrl) hash ^= PdfUrl.GetHashCode(); - hash ^= accountBudgetSummaries_.GetHashCode(); - hash ^= accountSummaries_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (serviceDateRange_ != null) { - output.WriteRawTag(74); - output.WriteMessage(ServiceDateRange); - } - accountBudgetSummaries_.WriteTo(output, _repeated_accountBudgetSummaries_codec); - if (AdjustmentsSubtotalAmountMicros != 0L) { - output.WriteRawTag(152, 1); - output.WriteInt64(AdjustmentsSubtotalAmountMicros); - } - if (AdjustmentsTaxAmountMicros != 0L) { - output.WriteRawTag(160, 1); - output.WriteInt64(AdjustmentsTaxAmountMicros); - } - if (AdjustmentsTotalAmountMicros != 0L) { - output.WriteRawTag(168, 1); - output.WriteInt64(AdjustmentsTotalAmountMicros); - } - if (RegulatoryCostsSubtotalAmountMicros != 0L) { - output.WriteRawTag(176, 1); - output.WriteInt64(RegulatoryCostsSubtotalAmountMicros); - } - if (RegulatoryCostsTaxAmountMicros != 0L) { - output.WriteRawTag(184, 1); - output.WriteInt64(RegulatoryCostsTaxAmountMicros); - } - if (RegulatoryCostsTotalAmountMicros != 0L) { - output.WriteRawTag(192, 1); - output.WriteInt64(RegulatoryCostsTotalAmountMicros); - } - if (HasId) { - output.WriteRawTag(202, 1); - output.WriteString(Id); - } - if (HasBillingSetup) { - output.WriteRawTag(210, 1); - output.WriteString(BillingSetup); - } - if (HasPaymentsAccountId) { - output.WriteRawTag(218, 1); - output.WriteString(PaymentsAccountId); - } - if (HasPaymentsProfileId) { - output.WriteRawTag(226, 1); - output.WriteString(PaymentsProfileId); - } - if (HasIssueDate) { - output.WriteRawTag(234, 1); - output.WriteString(IssueDate); - } - if (HasDueDate) { - output.WriteRawTag(242, 1); - output.WriteString(DueDate); - } - if (HasCurrencyCode) { - output.WriteRawTag(250, 1); - output.WriteString(CurrencyCode); - } - if (HasSubtotalAmountMicros) { - output.WriteRawTag(136, 2); - output.WriteInt64(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - output.WriteRawTag(144, 2); - output.WriteInt64(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(152, 2); - output.WriteInt64(TotalAmountMicros); - } - if (HasCorrectedInvoice) { - output.WriteRawTag(162, 2); - output.WriteString(CorrectedInvoice); - } - replacedInvoices_.WriteTo(output, _repeated_replacedInvoices_codec); - if (HasPdfUrl) { - output.WriteRawTag(178, 2); - output.WriteString(PdfUrl); - } - accountSummaries_.WriteTo(output, _repeated_accountSummaries_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) Type); - } - if (serviceDateRange_ != null) { - output.WriteRawTag(74); - output.WriteMessage(ServiceDateRange); - } - accountBudgetSummaries_.WriteTo(ref output, _repeated_accountBudgetSummaries_codec); - if (AdjustmentsSubtotalAmountMicros != 0L) { - output.WriteRawTag(152, 1); - output.WriteInt64(AdjustmentsSubtotalAmountMicros); - } - if (AdjustmentsTaxAmountMicros != 0L) { - output.WriteRawTag(160, 1); - output.WriteInt64(AdjustmentsTaxAmountMicros); - } - if (AdjustmentsTotalAmountMicros != 0L) { - output.WriteRawTag(168, 1); - output.WriteInt64(AdjustmentsTotalAmountMicros); - } - if (RegulatoryCostsSubtotalAmountMicros != 0L) { - output.WriteRawTag(176, 1); - output.WriteInt64(RegulatoryCostsSubtotalAmountMicros); - } - if (RegulatoryCostsTaxAmountMicros != 0L) { - output.WriteRawTag(184, 1); - output.WriteInt64(RegulatoryCostsTaxAmountMicros); - } - if (RegulatoryCostsTotalAmountMicros != 0L) { - output.WriteRawTag(192, 1); - output.WriteInt64(RegulatoryCostsTotalAmountMicros); - } - if (HasId) { - output.WriteRawTag(202, 1); - output.WriteString(Id); - } - if (HasBillingSetup) { - output.WriteRawTag(210, 1); - output.WriteString(BillingSetup); - } - if (HasPaymentsAccountId) { - output.WriteRawTag(218, 1); - output.WriteString(PaymentsAccountId); - } - if (HasPaymentsProfileId) { - output.WriteRawTag(226, 1); - output.WriteString(PaymentsProfileId); - } - if (HasIssueDate) { - output.WriteRawTag(234, 1); - output.WriteString(IssueDate); - } - if (HasDueDate) { - output.WriteRawTag(242, 1); - output.WriteString(DueDate); - } - if (HasCurrencyCode) { - output.WriteRawTag(250, 1); - output.WriteString(CurrencyCode); - } - if (HasSubtotalAmountMicros) { - output.WriteRawTag(136, 2); - output.WriteInt64(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - output.WriteRawTag(144, 2); - output.WriteInt64(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(152, 2); - output.WriteInt64(TotalAmountMicros); - } - if (HasCorrectedInvoice) { - output.WriteRawTag(162, 2); - output.WriteString(CorrectedInvoice); - } - replacedInvoices_.WriteTo(ref output, _repeated_replacedInvoices_codec); - if (HasPdfUrl) { - output.WriteRawTag(178, 2); - output.WriteString(PdfUrl); - } - accountSummaries_.WriteTo(ref output, _repeated_accountSummaries_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Id); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (HasBillingSetup) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(BillingSetup); - } - if (HasPaymentsAccountId) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PaymentsAccountId); - } - if (HasPaymentsProfileId) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PaymentsProfileId); - } - if (HasIssueDate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(IssueDate); - } - if (HasDueDate) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(DueDate); - } - if (serviceDateRange_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceDateRange); - } - if (HasCurrencyCode) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CurrencyCode); - } - if (AdjustmentsSubtotalAmountMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AdjustmentsSubtotalAmountMicros); - } - if (AdjustmentsTaxAmountMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AdjustmentsTaxAmountMicros); - } - if (AdjustmentsTotalAmountMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(AdjustmentsTotalAmountMicros); - } - if (RegulatoryCostsSubtotalAmountMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsSubtotalAmountMicros); - } - if (RegulatoryCostsTaxAmountMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsTaxAmountMicros); - } - if (RegulatoryCostsTotalAmountMicros != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsTotalAmountMicros); - } - if (HasSubtotalAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TotalAmountMicros); - } - if (HasCorrectedInvoice) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(CorrectedInvoice); - } - size += replacedInvoices_.CalculateSize(_repeated_replacedInvoices_codec); - if (HasPdfUrl) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(PdfUrl); - } - size += accountBudgetSummaries_.CalculateSize(_repeated_accountBudgetSummaries_codec); - size += accountSummaries_.CalculateSize(_repeated_accountSummaries_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Invoice other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType.Unspecified) { - Type = other.Type; - } - if (other.HasBillingSetup) { - BillingSetup = other.BillingSetup; - } - if (other.HasPaymentsAccountId) { - PaymentsAccountId = other.PaymentsAccountId; - } - if (other.HasPaymentsProfileId) { - PaymentsProfileId = other.PaymentsProfileId; - } - if (other.HasIssueDate) { - IssueDate = other.IssueDate; - } - if (other.HasDueDate) { - DueDate = other.DueDate; - } - if (other.serviceDateRange_ != null) { - if (serviceDateRange_ == null) { - ServiceDateRange = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - } - ServiceDateRange.MergeFrom(other.ServiceDateRange); - } - if (other.HasCurrencyCode) { - CurrencyCode = other.CurrencyCode; - } - if (other.AdjustmentsSubtotalAmountMicros != 0L) { - AdjustmentsSubtotalAmountMicros = other.AdjustmentsSubtotalAmountMicros; - } - if (other.AdjustmentsTaxAmountMicros != 0L) { - AdjustmentsTaxAmountMicros = other.AdjustmentsTaxAmountMicros; - } - if (other.AdjustmentsTotalAmountMicros != 0L) { - AdjustmentsTotalAmountMicros = other.AdjustmentsTotalAmountMicros; - } - if (other.RegulatoryCostsSubtotalAmountMicros != 0L) { - RegulatoryCostsSubtotalAmountMicros = other.RegulatoryCostsSubtotalAmountMicros; - } - if (other.RegulatoryCostsTaxAmountMicros != 0L) { - RegulatoryCostsTaxAmountMicros = other.RegulatoryCostsTaxAmountMicros; - } - if (other.RegulatoryCostsTotalAmountMicros != 0L) { - RegulatoryCostsTotalAmountMicros = other.RegulatoryCostsTotalAmountMicros; - } - if (other.HasSubtotalAmountMicros) { - SubtotalAmountMicros = other.SubtotalAmountMicros; - } - if (other.HasTaxAmountMicros) { - TaxAmountMicros = other.TaxAmountMicros; - } - if (other.HasTotalAmountMicros) { - TotalAmountMicros = other.TotalAmountMicros; - } - if (other.HasCorrectedInvoice) { - CorrectedInvoice = other.CorrectedInvoice; - } - replacedInvoices_.Add(other.replacedInvoices_); - if (other.HasPdfUrl) { - PdfUrl = other.PdfUrl; - } - accountBudgetSummaries_.Add(other.accountBudgetSummaries_); - accountSummaries_.Add(other.accountSummaries_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType) input.ReadEnum(); - break; - } - case 74: { - if (serviceDateRange_ == null) { - ServiceDateRange = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - } - input.ReadMessage(ServiceDateRange); - break; - } - case 146: { - accountBudgetSummaries_.AddEntriesFrom(input, _repeated_accountBudgetSummaries_codec); - break; - } - case 152: { - AdjustmentsSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 160: { - AdjustmentsTaxAmountMicros = input.ReadInt64(); - break; - } - case 168: { - AdjustmentsTotalAmountMicros = input.ReadInt64(); - break; - } - case 176: { - RegulatoryCostsSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 184: { - RegulatoryCostsTaxAmountMicros = input.ReadInt64(); - break; - } - case 192: { - RegulatoryCostsTotalAmountMicros = input.ReadInt64(); - break; - } - case 202: { - Id = input.ReadString(); - break; - } - case 210: { - BillingSetup = input.ReadString(); - break; - } - case 218: { - PaymentsAccountId = input.ReadString(); - break; - } - case 226: { - PaymentsProfileId = input.ReadString(); - break; - } - case 234: { - IssueDate = input.ReadString(); - break; - } - case 242: { - DueDate = input.ReadString(); - break; - } - case 250: { - CurrencyCode = input.ReadString(); - break; - } - case 264: { - SubtotalAmountMicros = input.ReadInt64(); - break; - } - case 272: { - TaxAmountMicros = input.ReadInt64(); - break; - } - case 280: { - TotalAmountMicros = input.ReadInt64(); - break; - } - case 290: { - CorrectedInvoice = input.ReadString(); - break; - } - case 298: { - replacedInvoices_.AddEntriesFrom(input, _repeated_replacedInvoices_codec); - break; - } - case 306: { - PdfUrl = input.ReadString(); - break; - } - case 314: { - accountSummaries_.AddEntriesFrom(input, _repeated_accountSummaries_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 24: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType) input.ReadEnum(); - break; - } - case 74: { - if (serviceDateRange_ == null) { - ServiceDateRange = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - } - input.ReadMessage(ServiceDateRange); - break; - } - case 146: { - accountBudgetSummaries_.AddEntriesFrom(ref input, _repeated_accountBudgetSummaries_codec); - break; - } - case 152: { - AdjustmentsSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 160: { - AdjustmentsTaxAmountMicros = input.ReadInt64(); - break; - } - case 168: { - AdjustmentsTotalAmountMicros = input.ReadInt64(); - break; - } - case 176: { - RegulatoryCostsSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 184: { - RegulatoryCostsTaxAmountMicros = input.ReadInt64(); - break; - } - case 192: { - RegulatoryCostsTotalAmountMicros = input.ReadInt64(); - break; - } - case 202: { - Id = input.ReadString(); - break; - } - case 210: { - BillingSetup = input.ReadString(); - break; - } - case 218: { - PaymentsAccountId = input.ReadString(); - break; - } - case 226: { - PaymentsProfileId = input.ReadString(); - break; - } - case 234: { - IssueDate = input.ReadString(); - break; - } - case 242: { - DueDate = input.ReadString(); - break; - } - case 250: { - CurrencyCode = input.ReadString(); - break; - } - case 264: { - SubtotalAmountMicros = input.ReadInt64(); - break; - } - case 272: { - TaxAmountMicros = input.ReadInt64(); - break; - } - case 280: { - TotalAmountMicros = input.ReadInt64(); - break; - } - case 290: { - CorrectedInvoice = input.ReadString(); - break; - } - case 298: { - replacedInvoices_.AddEntriesFrom(ref input, _repeated_replacedInvoices_codec); - break; - } - case 306: { - PdfUrl = input.ReadString(); - break; - } - case 314: { - accountSummaries_.AddEntriesFrom(ref input, _repeated_accountSummaries_codec); - break; - } - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the Invoice message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Represents a summarized view at account level. - /// AccountSummary fields are accessible only to customers on the allow-list. - /// - public sealed partial class AccountSummary : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountSummary()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Invoice.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountSummary() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountSummary(AccountSummary other) : this() { - _hasBits0 = other._hasBits0; - customer_ = other.customer_; - billingCorrectionSubtotalAmountMicros_ = other.billingCorrectionSubtotalAmountMicros_; - billingCorrectionTaxAmountMicros_ = other.billingCorrectionTaxAmountMicros_; - billingCorrectionTotalAmountMicros_ = other.billingCorrectionTotalAmountMicros_; - couponAdjustmentSubtotalAmountMicros_ = other.couponAdjustmentSubtotalAmountMicros_; - couponAdjustmentTaxAmountMicros_ = other.couponAdjustmentTaxAmountMicros_; - couponAdjustmentTotalAmountMicros_ = other.couponAdjustmentTotalAmountMicros_; - excessCreditAdjustmentSubtotalAmountMicros_ = other.excessCreditAdjustmentSubtotalAmountMicros_; - excessCreditAdjustmentTaxAmountMicros_ = other.excessCreditAdjustmentTaxAmountMicros_; - excessCreditAdjustmentTotalAmountMicros_ = other.excessCreditAdjustmentTotalAmountMicros_; - regulatoryCostsSubtotalAmountMicros_ = other.regulatoryCostsSubtotalAmountMicros_; - regulatoryCostsTaxAmountMicros_ = other.regulatoryCostsTaxAmountMicros_; - regulatoryCostsTotalAmountMicros_ = other.regulatoryCostsTotalAmountMicros_; - subtotalAmountMicros_ = other.subtotalAmountMicros_; - taxAmountMicros_ = other.taxAmountMicros_; - totalAmountMicros_ = other.totalAmountMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountSummary Clone() { - return new AccountSummary(this); - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 1; - private string customer_; - /// - /// Output only. The account associated with the account summary. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Customer { - get { return customer_ ?? ""; } - set { - customer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomer { - get { return customer_ != null; } - } - /// Clears the value of the "customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomer() { - customer_ = null; - } - - /// Field number for the "billing_correction_subtotal_amount_micros" field. - public const int BillingCorrectionSubtotalAmountMicrosFieldNumber = 2; - private long billingCorrectionSubtotalAmountMicros_; - /// - /// Output only. Pretax billing correction subtotal amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long BillingCorrectionSubtotalAmountMicros { - get { if ((_hasBits0 & 1) != 0) { return billingCorrectionSubtotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - billingCorrectionSubtotalAmountMicros_ = value; - } - } - /// Gets whether the "billing_correction_subtotal_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBillingCorrectionSubtotalAmountMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "billing_correction_subtotal_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBillingCorrectionSubtotalAmountMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "billing_correction_tax_amount_micros" field. - public const int BillingCorrectionTaxAmountMicrosFieldNumber = 3; - private long billingCorrectionTaxAmountMicros_; - /// - /// Output only. Tax on billing correction, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long BillingCorrectionTaxAmountMicros { - get { if ((_hasBits0 & 2) != 0) { return billingCorrectionTaxAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - billingCorrectionTaxAmountMicros_ = value; - } - } - /// Gets whether the "billing_correction_tax_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBillingCorrectionTaxAmountMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "billing_correction_tax_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBillingCorrectionTaxAmountMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "billing_correction_total_amount_micros" field. - public const int BillingCorrectionTotalAmountMicrosFieldNumber = 4; - private long billingCorrectionTotalAmountMicros_; - /// - /// Output only. Total billing correction amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long BillingCorrectionTotalAmountMicros { - get { if ((_hasBits0 & 4) != 0) { return billingCorrectionTotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - billingCorrectionTotalAmountMicros_ = value; - } - } - /// Gets whether the "billing_correction_total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBillingCorrectionTotalAmountMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "billing_correction_total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBillingCorrectionTotalAmountMicros() { - _hasBits0 &= ~4; - } - - /// Field number for the "coupon_adjustment_subtotal_amount_micros" field. - public const int CouponAdjustmentSubtotalAmountMicrosFieldNumber = 5; - private long couponAdjustmentSubtotalAmountMicros_; - /// - /// Output only. Pretax coupon adjustment subtotal amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CouponAdjustmentSubtotalAmountMicros { - get { if ((_hasBits0 & 8) != 0) { return couponAdjustmentSubtotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 8; - couponAdjustmentSubtotalAmountMicros_ = value; - } - } - /// Gets whether the "coupon_adjustment_subtotal_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCouponAdjustmentSubtotalAmountMicros { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "coupon_adjustment_subtotal_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCouponAdjustmentSubtotalAmountMicros() { - _hasBits0 &= ~8; - } - - /// Field number for the "coupon_adjustment_tax_amount_micros" field. - public const int CouponAdjustmentTaxAmountMicrosFieldNumber = 6; - private long couponAdjustmentTaxAmountMicros_; - /// - /// Output only. Tax on coupon adjustment, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CouponAdjustmentTaxAmountMicros { - get { if ((_hasBits0 & 16) != 0) { return couponAdjustmentTaxAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 16; - couponAdjustmentTaxAmountMicros_ = value; - } - } - /// Gets whether the "coupon_adjustment_tax_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCouponAdjustmentTaxAmountMicros { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "coupon_adjustment_tax_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCouponAdjustmentTaxAmountMicros() { - _hasBits0 &= ~16; - } - - /// Field number for the "coupon_adjustment_total_amount_micros" field. - public const int CouponAdjustmentTotalAmountMicrosFieldNumber = 7; - private long couponAdjustmentTotalAmountMicros_; - /// - /// Output only. Total coupon adjustment amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CouponAdjustmentTotalAmountMicros { - get { if ((_hasBits0 & 32) != 0) { return couponAdjustmentTotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 32; - couponAdjustmentTotalAmountMicros_ = value; - } - } - /// Gets whether the "coupon_adjustment_total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCouponAdjustmentTotalAmountMicros { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "coupon_adjustment_total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCouponAdjustmentTotalAmountMicros() { - _hasBits0 &= ~32; - } - - /// Field number for the "excess_credit_adjustment_subtotal_amount_micros" field. - public const int ExcessCreditAdjustmentSubtotalAmountMicrosFieldNumber = 8; - private long excessCreditAdjustmentSubtotalAmountMicros_; - /// - /// Output only. Pretax excess credit adjustment subtotal amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExcessCreditAdjustmentSubtotalAmountMicros { - get { if ((_hasBits0 & 64) != 0) { return excessCreditAdjustmentSubtotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 64; - excessCreditAdjustmentSubtotalAmountMicros_ = value; - } - } - /// Gets whether the "excess_credit_adjustment_subtotal_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExcessCreditAdjustmentSubtotalAmountMicros { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "excess_credit_adjustment_subtotal_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExcessCreditAdjustmentSubtotalAmountMicros() { - _hasBits0 &= ~64; - } - - /// Field number for the "excess_credit_adjustment_tax_amount_micros" field. - public const int ExcessCreditAdjustmentTaxAmountMicrosFieldNumber = 9; - private long excessCreditAdjustmentTaxAmountMicros_; - /// - /// Output only. Tax on excess credit adjustment, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExcessCreditAdjustmentTaxAmountMicros { - get { if ((_hasBits0 & 128) != 0) { return excessCreditAdjustmentTaxAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 128; - excessCreditAdjustmentTaxAmountMicros_ = value; - } - } - /// Gets whether the "excess_credit_adjustment_tax_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExcessCreditAdjustmentTaxAmountMicros { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "excess_credit_adjustment_tax_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExcessCreditAdjustmentTaxAmountMicros() { - _hasBits0 &= ~128; - } - - /// Field number for the "excess_credit_adjustment_total_amount_micros" field. - public const int ExcessCreditAdjustmentTotalAmountMicrosFieldNumber = 10; - private long excessCreditAdjustmentTotalAmountMicros_; - /// - /// Output only. Total excess credit adjustment amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ExcessCreditAdjustmentTotalAmountMicros { - get { if ((_hasBits0 & 256) != 0) { return excessCreditAdjustmentTotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 256; - excessCreditAdjustmentTotalAmountMicros_ = value; - } - } - /// Gets whether the "excess_credit_adjustment_total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExcessCreditAdjustmentTotalAmountMicros { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "excess_credit_adjustment_total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExcessCreditAdjustmentTotalAmountMicros() { - _hasBits0 &= ~256; - } - - /// Field number for the "regulatory_costs_subtotal_amount_micros" field. - public const int RegulatoryCostsSubtotalAmountMicrosFieldNumber = 11; - private long regulatoryCostsSubtotalAmountMicros_; - /// - /// Output only. Pretax regulatory costs subtotal amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RegulatoryCostsSubtotalAmountMicros { - get { if ((_hasBits0 & 512) != 0) { return regulatoryCostsSubtotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 512; - regulatoryCostsSubtotalAmountMicros_ = value; - } - } - /// Gets whether the "regulatory_costs_subtotal_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRegulatoryCostsSubtotalAmountMicros { - get { return (_hasBits0 & 512) != 0; } - } - /// Clears the value of the "regulatory_costs_subtotal_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRegulatoryCostsSubtotalAmountMicros() { - _hasBits0 &= ~512; - } - - /// Field number for the "regulatory_costs_tax_amount_micros" field. - public const int RegulatoryCostsTaxAmountMicrosFieldNumber = 12; - private long regulatoryCostsTaxAmountMicros_; - /// - /// Output only. Tax on regulatory costs, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RegulatoryCostsTaxAmountMicros { - get { if ((_hasBits0 & 1024) != 0) { return regulatoryCostsTaxAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1024; - regulatoryCostsTaxAmountMicros_ = value; - } - } - /// Gets whether the "regulatory_costs_tax_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRegulatoryCostsTaxAmountMicros { - get { return (_hasBits0 & 1024) != 0; } - } - /// Clears the value of the "regulatory_costs_tax_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRegulatoryCostsTaxAmountMicros() { - _hasBits0 &= ~1024; - } - - /// Field number for the "regulatory_costs_total_amount_micros" field. - public const int RegulatoryCostsTotalAmountMicrosFieldNumber = 13; - private long regulatoryCostsTotalAmountMicros_; - /// - /// Output only. Total regulatory costs amount, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RegulatoryCostsTotalAmountMicros { - get { if ((_hasBits0 & 2048) != 0) { return regulatoryCostsTotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2048; - regulatoryCostsTotalAmountMicros_ = value; - } - } - /// Gets whether the "regulatory_costs_total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRegulatoryCostsTotalAmountMicros { - get { return (_hasBits0 & 2048) != 0; } - } - /// Clears the value of the "regulatory_costs_total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRegulatoryCostsTotalAmountMicros() { - _hasBits0 &= ~2048; - } - - /// Field number for the "subtotal_amount_micros" field. - public const int SubtotalAmountMicrosFieldNumber = 14; - private long subtotalAmountMicros_; - /// - /// Output only. Total pretax subtotal amount attributable to the account during the - /// service period, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SubtotalAmountMicros { - get { if ((_hasBits0 & 4096) != 0) { return subtotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4096; - subtotalAmountMicros_ = value; - } - } - /// Gets whether the "subtotal_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSubtotalAmountMicros { - get { return (_hasBits0 & 4096) != 0; } - } - /// Clears the value of the "subtotal_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSubtotalAmountMicros() { - _hasBits0 &= ~4096; - } - - /// Field number for the "tax_amount_micros" field. - public const int TaxAmountMicrosFieldNumber = 15; - private long taxAmountMicros_; - /// - /// Output only. Total tax amount attributable to the account during the service period, - /// in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TaxAmountMicros { - get { if ((_hasBits0 & 8192) != 0) { return taxAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 8192; - taxAmountMicros_ = value; - } - } - /// Gets whether the "tax_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTaxAmountMicros { - get { return (_hasBits0 & 8192) != 0; } - } - /// Clears the value of the "tax_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTaxAmountMicros() { - _hasBits0 &= ~8192; - } - - /// Field number for the "total_amount_micros" field. - public const int TotalAmountMicrosFieldNumber = 16; - private long totalAmountMicros_; - /// - /// Output only. Total amount attributable to the account during the service period, in - /// micros. This equals the sum of the subtotal_amount_micros and - /// tax_amount_micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalAmountMicros { - get { if ((_hasBits0 & 16384) != 0) { return totalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 16384; - totalAmountMicros_ = value; - } - } - /// Gets whether the "total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTotalAmountMicros { - get { return (_hasBits0 & 16384) != 0; } - } - /// Clears the value of the "total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTotalAmountMicros() { - _hasBits0 &= ~16384; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountSummary); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountSummary other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Customer != other.Customer) return false; - if (BillingCorrectionSubtotalAmountMicros != other.BillingCorrectionSubtotalAmountMicros) return false; - if (BillingCorrectionTaxAmountMicros != other.BillingCorrectionTaxAmountMicros) return false; - if (BillingCorrectionTotalAmountMicros != other.BillingCorrectionTotalAmountMicros) return false; - if (CouponAdjustmentSubtotalAmountMicros != other.CouponAdjustmentSubtotalAmountMicros) return false; - if (CouponAdjustmentTaxAmountMicros != other.CouponAdjustmentTaxAmountMicros) return false; - if (CouponAdjustmentTotalAmountMicros != other.CouponAdjustmentTotalAmountMicros) return false; - if (ExcessCreditAdjustmentSubtotalAmountMicros != other.ExcessCreditAdjustmentSubtotalAmountMicros) return false; - if (ExcessCreditAdjustmentTaxAmountMicros != other.ExcessCreditAdjustmentTaxAmountMicros) return false; - if (ExcessCreditAdjustmentTotalAmountMicros != other.ExcessCreditAdjustmentTotalAmountMicros) return false; - if (RegulatoryCostsSubtotalAmountMicros != other.RegulatoryCostsSubtotalAmountMicros) return false; - if (RegulatoryCostsTaxAmountMicros != other.RegulatoryCostsTaxAmountMicros) return false; - if (RegulatoryCostsTotalAmountMicros != other.RegulatoryCostsTotalAmountMicros) return false; - if (SubtotalAmountMicros != other.SubtotalAmountMicros) return false; - if (TaxAmountMicros != other.TaxAmountMicros) return false; - if (TotalAmountMicros != other.TotalAmountMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCustomer) hash ^= Customer.GetHashCode(); - if (HasBillingCorrectionSubtotalAmountMicros) hash ^= BillingCorrectionSubtotalAmountMicros.GetHashCode(); - if (HasBillingCorrectionTaxAmountMicros) hash ^= BillingCorrectionTaxAmountMicros.GetHashCode(); - if (HasBillingCorrectionTotalAmountMicros) hash ^= BillingCorrectionTotalAmountMicros.GetHashCode(); - if (HasCouponAdjustmentSubtotalAmountMicros) hash ^= CouponAdjustmentSubtotalAmountMicros.GetHashCode(); - if (HasCouponAdjustmentTaxAmountMicros) hash ^= CouponAdjustmentTaxAmountMicros.GetHashCode(); - if (HasCouponAdjustmentTotalAmountMicros) hash ^= CouponAdjustmentTotalAmountMicros.GetHashCode(); - if (HasExcessCreditAdjustmentSubtotalAmountMicros) hash ^= ExcessCreditAdjustmentSubtotalAmountMicros.GetHashCode(); - if (HasExcessCreditAdjustmentTaxAmountMicros) hash ^= ExcessCreditAdjustmentTaxAmountMicros.GetHashCode(); - if (HasExcessCreditAdjustmentTotalAmountMicros) hash ^= ExcessCreditAdjustmentTotalAmountMicros.GetHashCode(); - if (HasRegulatoryCostsSubtotalAmountMicros) hash ^= RegulatoryCostsSubtotalAmountMicros.GetHashCode(); - if (HasRegulatoryCostsTaxAmountMicros) hash ^= RegulatoryCostsTaxAmountMicros.GetHashCode(); - if (HasRegulatoryCostsTotalAmountMicros) hash ^= RegulatoryCostsTotalAmountMicros.GetHashCode(); - if (HasSubtotalAmountMicros) hash ^= SubtotalAmountMicros.GetHashCode(); - if (HasTaxAmountMicros) hash ^= TaxAmountMicros.GetHashCode(); - if (HasTotalAmountMicros) hash ^= TotalAmountMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasCustomer) { - output.WriteRawTag(10); - output.WriteString(Customer); - } - if (HasBillingCorrectionSubtotalAmountMicros) { - output.WriteRawTag(16); - output.WriteInt64(BillingCorrectionSubtotalAmountMicros); - } - if (HasBillingCorrectionTaxAmountMicros) { - output.WriteRawTag(24); - output.WriteInt64(BillingCorrectionTaxAmountMicros); - } - if (HasBillingCorrectionTotalAmountMicros) { - output.WriteRawTag(32); - output.WriteInt64(BillingCorrectionTotalAmountMicros); - } - if (HasCouponAdjustmentSubtotalAmountMicros) { - output.WriteRawTag(40); - output.WriteInt64(CouponAdjustmentSubtotalAmountMicros); - } - if (HasCouponAdjustmentTaxAmountMicros) { - output.WriteRawTag(48); - output.WriteInt64(CouponAdjustmentTaxAmountMicros); - } - if (HasCouponAdjustmentTotalAmountMicros) { - output.WriteRawTag(56); - output.WriteInt64(CouponAdjustmentTotalAmountMicros); - } - if (HasExcessCreditAdjustmentSubtotalAmountMicros) { - output.WriteRawTag(64); - output.WriteInt64(ExcessCreditAdjustmentSubtotalAmountMicros); - } - if (HasExcessCreditAdjustmentTaxAmountMicros) { - output.WriteRawTag(72); - output.WriteInt64(ExcessCreditAdjustmentTaxAmountMicros); - } - if (HasExcessCreditAdjustmentTotalAmountMicros) { - output.WriteRawTag(80); - output.WriteInt64(ExcessCreditAdjustmentTotalAmountMicros); - } - if (HasRegulatoryCostsSubtotalAmountMicros) { - output.WriteRawTag(88); - output.WriteInt64(RegulatoryCostsSubtotalAmountMicros); - } - if (HasRegulatoryCostsTaxAmountMicros) { - output.WriteRawTag(96); - output.WriteInt64(RegulatoryCostsTaxAmountMicros); - } - if (HasRegulatoryCostsTotalAmountMicros) { - output.WriteRawTag(104); - output.WriteInt64(RegulatoryCostsTotalAmountMicros); - } - if (HasSubtotalAmountMicros) { - output.WriteRawTag(112); - output.WriteInt64(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - output.WriteRawTag(120); - output.WriteInt64(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(128, 1); - output.WriteInt64(TotalAmountMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasCustomer) { - output.WriteRawTag(10); - output.WriteString(Customer); - } - if (HasBillingCorrectionSubtotalAmountMicros) { - output.WriteRawTag(16); - output.WriteInt64(BillingCorrectionSubtotalAmountMicros); - } - if (HasBillingCorrectionTaxAmountMicros) { - output.WriteRawTag(24); - output.WriteInt64(BillingCorrectionTaxAmountMicros); - } - if (HasBillingCorrectionTotalAmountMicros) { - output.WriteRawTag(32); - output.WriteInt64(BillingCorrectionTotalAmountMicros); - } - if (HasCouponAdjustmentSubtotalAmountMicros) { - output.WriteRawTag(40); - output.WriteInt64(CouponAdjustmentSubtotalAmountMicros); - } - if (HasCouponAdjustmentTaxAmountMicros) { - output.WriteRawTag(48); - output.WriteInt64(CouponAdjustmentTaxAmountMicros); - } - if (HasCouponAdjustmentTotalAmountMicros) { - output.WriteRawTag(56); - output.WriteInt64(CouponAdjustmentTotalAmountMicros); - } - if (HasExcessCreditAdjustmentSubtotalAmountMicros) { - output.WriteRawTag(64); - output.WriteInt64(ExcessCreditAdjustmentSubtotalAmountMicros); - } - if (HasExcessCreditAdjustmentTaxAmountMicros) { - output.WriteRawTag(72); - output.WriteInt64(ExcessCreditAdjustmentTaxAmountMicros); - } - if (HasExcessCreditAdjustmentTotalAmountMicros) { - output.WriteRawTag(80); - output.WriteInt64(ExcessCreditAdjustmentTotalAmountMicros); - } - if (HasRegulatoryCostsSubtotalAmountMicros) { - output.WriteRawTag(88); - output.WriteInt64(RegulatoryCostsSubtotalAmountMicros); - } - if (HasRegulatoryCostsTaxAmountMicros) { - output.WriteRawTag(96); - output.WriteInt64(RegulatoryCostsTaxAmountMicros); - } - if (HasRegulatoryCostsTotalAmountMicros) { - output.WriteRawTag(104); - output.WriteInt64(RegulatoryCostsTotalAmountMicros); - } - if (HasSubtotalAmountMicros) { - output.WriteRawTag(112); - output.WriteInt64(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - output.WriteRawTag(120); - output.WriteInt64(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(128, 1); - output.WriteInt64(TotalAmountMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Customer); - } - if (HasBillingCorrectionSubtotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(BillingCorrectionSubtotalAmountMicros); - } - if (HasBillingCorrectionTaxAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(BillingCorrectionTaxAmountMicros); - } - if (HasBillingCorrectionTotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(BillingCorrectionTotalAmountMicros); - } - if (HasCouponAdjustmentSubtotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CouponAdjustmentSubtotalAmountMicros); - } - if (HasCouponAdjustmentTaxAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CouponAdjustmentTaxAmountMicros); - } - if (HasCouponAdjustmentTotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CouponAdjustmentTotalAmountMicros); - } - if (HasExcessCreditAdjustmentSubtotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExcessCreditAdjustmentSubtotalAmountMicros); - } - if (HasExcessCreditAdjustmentTaxAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExcessCreditAdjustmentTaxAmountMicros); - } - if (HasExcessCreditAdjustmentTotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExcessCreditAdjustmentTotalAmountMicros); - } - if (HasRegulatoryCostsSubtotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsSubtotalAmountMicros); - } - if (HasRegulatoryCostsTaxAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsTaxAmountMicros); - } - if (HasRegulatoryCostsTotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsTotalAmountMicros); - } - if (HasSubtotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TotalAmountMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountSummary other) { - if (other == null) { - return; - } - if (other.HasCustomer) { - Customer = other.Customer; - } - if (other.HasBillingCorrectionSubtotalAmountMicros) { - BillingCorrectionSubtotalAmountMicros = other.BillingCorrectionSubtotalAmountMicros; - } - if (other.HasBillingCorrectionTaxAmountMicros) { - BillingCorrectionTaxAmountMicros = other.BillingCorrectionTaxAmountMicros; - } - if (other.HasBillingCorrectionTotalAmountMicros) { - BillingCorrectionTotalAmountMicros = other.BillingCorrectionTotalAmountMicros; - } - if (other.HasCouponAdjustmentSubtotalAmountMicros) { - CouponAdjustmentSubtotalAmountMicros = other.CouponAdjustmentSubtotalAmountMicros; - } - if (other.HasCouponAdjustmentTaxAmountMicros) { - CouponAdjustmentTaxAmountMicros = other.CouponAdjustmentTaxAmountMicros; - } - if (other.HasCouponAdjustmentTotalAmountMicros) { - CouponAdjustmentTotalAmountMicros = other.CouponAdjustmentTotalAmountMicros; - } - if (other.HasExcessCreditAdjustmentSubtotalAmountMicros) { - ExcessCreditAdjustmentSubtotalAmountMicros = other.ExcessCreditAdjustmentSubtotalAmountMicros; - } - if (other.HasExcessCreditAdjustmentTaxAmountMicros) { - ExcessCreditAdjustmentTaxAmountMicros = other.ExcessCreditAdjustmentTaxAmountMicros; - } - if (other.HasExcessCreditAdjustmentTotalAmountMicros) { - ExcessCreditAdjustmentTotalAmountMicros = other.ExcessCreditAdjustmentTotalAmountMicros; - } - if (other.HasRegulatoryCostsSubtotalAmountMicros) { - RegulatoryCostsSubtotalAmountMicros = other.RegulatoryCostsSubtotalAmountMicros; - } - if (other.HasRegulatoryCostsTaxAmountMicros) { - RegulatoryCostsTaxAmountMicros = other.RegulatoryCostsTaxAmountMicros; - } - if (other.HasRegulatoryCostsTotalAmountMicros) { - RegulatoryCostsTotalAmountMicros = other.RegulatoryCostsTotalAmountMicros; - } - if (other.HasSubtotalAmountMicros) { - SubtotalAmountMicros = other.SubtotalAmountMicros; - } - if (other.HasTaxAmountMicros) { - TaxAmountMicros = other.TaxAmountMicros; - } - if (other.HasTotalAmountMicros) { - TotalAmountMicros = other.TotalAmountMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Customer = input.ReadString(); - break; - } - case 16: { - BillingCorrectionSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 24: { - BillingCorrectionTaxAmountMicros = input.ReadInt64(); - break; - } - case 32: { - BillingCorrectionTotalAmountMicros = input.ReadInt64(); - break; - } - case 40: { - CouponAdjustmentSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 48: { - CouponAdjustmentTaxAmountMicros = input.ReadInt64(); - break; - } - case 56: { - CouponAdjustmentTotalAmountMicros = input.ReadInt64(); - break; - } - case 64: { - ExcessCreditAdjustmentSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 72: { - ExcessCreditAdjustmentTaxAmountMicros = input.ReadInt64(); - break; - } - case 80: { - ExcessCreditAdjustmentTotalAmountMicros = input.ReadInt64(); - break; - } - case 88: { - RegulatoryCostsSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 96: { - RegulatoryCostsTaxAmountMicros = input.ReadInt64(); - break; - } - case 104: { - RegulatoryCostsTotalAmountMicros = input.ReadInt64(); - break; - } - case 112: { - SubtotalAmountMicros = input.ReadInt64(); - break; - } - case 120: { - TaxAmountMicros = input.ReadInt64(); - break; - } - case 128: { - TotalAmountMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Customer = input.ReadString(); - break; - } - case 16: { - BillingCorrectionSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 24: { - BillingCorrectionTaxAmountMicros = input.ReadInt64(); - break; - } - case 32: { - BillingCorrectionTotalAmountMicros = input.ReadInt64(); - break; - } - case 40: { - CouponAdjustmentSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 48: { - CouponAdjustmentTaxAmountMicros = input.ReadInt64(); - break; - } - case 56: { - CouponAdjustmentTotalAmountMicros = input.ReadInt64(); - break; - } - case 64: { - ExcessCreditAdjustmentSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 72: { - ExcessCreditAdjustmentTaxAmountMicros = input.ReadInt64(); - break; - } - case 80: { - ExcessCreditAdjustmentTotalAmountMicros = input.ReadInt64(); - break; - } - case 88: { - RegulatoryCostsSubtotalAmountMicros = input.ReadInt64(); - break; - } - case 96: { - RegulatoryCostsTaxAmountMicros = input.ReadInt64(); - break; - } - case 104: { - RegulatoryCostsTotalAmountMicros = input.ReadInt64(); - break; - } - case 112: { - SubtotalAmountMicros = input.ReadInt64(); - break; - } - case 120: { - TaxAmountMicros = input.ReadInt64(); - break; - } - case 128: { - TotalAmountMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Represents a summarized account budget billable cost. - /// - public sealed partial class AccountBudgetSummary : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountBudgetSummary()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.Invoice.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetSummary() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetSummary(AccountBudgetSummary other) : this() { - _hasBits0 = other._hasBits0; - customer_ = other.customer_; - customerDescriptiveName_ = other.customerDescriptiveName_; - accountBudget_ = other.accountBudget_; - accountBudgetName_ = other.accountBudgetName_; - purchaseOrderNumber_ = other.purchaseOrderNumber_; - subtotalAmountMicros_ = other.subtotalAmountMicros_; - taxAmountMicros_ = other.taxAmountMicros_; - totalAmountMicros_ = other.totalAmountMicros_; - billableActivityDateRange_ = other.billableActivityDateRange_ != null ? other.billableActivityDateRange_.Clone() : null; - servedAmountMicros_ = other.servedAmountMicros_; - billedAmountMicros_ = other.billedAmountMicros_; - overdeliveryAmountMicros_ = other.overdeliveryAmountMicros_; - invalidActivityAmountMicros_ = other.invalidActivityAmountMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AccountBudgetSummary Clone() { - return new AccountBudgetSummary(this); - } - - /// Field number for the "customer" field. - public const int CustomerFieldNumber = 10; - private string customer_; - /// - /// Output only. The resource name of the customer associated with this account budget. - /// This contains the customer ID, which appears on the invoice PDF as - /// "Account ID". - /// Customer resource names have the form: - /// - /// `customers/{customer_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Customer { - get { return customer_ ?? ""; } - set { - customer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "customer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomer { - get { return customer_ != null; } - } - /// Clears the value of the "customer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomer() { - customer_ = null; - } - - /// Field number for the "customer_descriptive_name" field. - public const int CustomerDescriptiveNameFieldNumber = 11; - private string customerDescriptiveName_; - /// - /// Output only. The descriptive name of the account budget's customer. It appears on the - /// invoice PDF as "Account". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerDescriptiveName { - get { return customerDescriptiveName_ ?? ""; } - set { - customerDescriptiveName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "customer_descriptive_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCustomerDescriptiveName { - get { return customerDescriptiveName_ != null; } - } - /// Clears the value of the "customer_descriptive_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCustomerDescriptiveName() { - customerDescriptiveName_ = null; - } - - /// Field number for the "account_budget" field. - public const int AccountBudgetFieldNumber = 12; - private string accountBudget_; - /// - /// Output only. The resource name of the account budget associated with this summarized - /// billable cost. - /// AccountBudget resource names have the form: - /// - /// `customers/{customer_id}/accountBudgets/{account_budget_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccountBudget { - get { return accountBudget_ ?? ""; } - set { - accountBudget_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "account_budget" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccountBudget { - get { return accountBudget_ != null; } - } - /// Clears the value of the "account_budget" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccountBudget() { - accountBudget_ = null; - } - - /// Field number for the "account_budget_name" field. - public const int AccountBudgetNameFieldNumber = 13; - private string accountBudgetName_; - /// - /// Output only. The name of the account budget. It appears on the invoice PDF as "Account - /// budget". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AccountBudgetName { - get { return accountBudgetName_ ?? ""; } - set { - accountBudgetName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "account_budget_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAccountBudgetName { - get { return accountBudgetName_ != null; } - } - /// Clears the value of the "account_budget_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAccountBudgetName() { - accountBudgetName_ = null; - } - - /// Field number for the "purchase_order_number" field. - public const int PurchaseOrderNumberFieldNumber = 14; - private string purchaseOrderNumber_; - /// - /// Output only. The purchase order number of the account budget. It appears on the - /// invoice PDF as "Purchase order". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PurchaseOrderNumber { - get { return purchaseOrderNumber_ ?? ""; } - set { - purchaseOrderNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "purchase_order_number" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPurchaseOrderNumber { - get { return purchaseOrderNumber_ != null; } - } - /// Clears the value of the "purchase_order_number" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPurchaseOrderNumber() { - purchaseOrderNumber_ = null; - } - - /// Field number for the "subtotal_amount_micros" field. - public const int SubtotalAmountMicrosFieldNumber = 15; - private long subtotalAmountMicros_; - /// - /// Output only. The pretax subtotal amount attributable to this budget during the service - /// period, in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SubtotalAmountMicros { - get { if ((_hasBits0 & 1) != 0) { return subtotalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - subtotalAmountMicros_ = value; - } - } - /// Gets whether the "subtotal_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSubtotalAmountMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "subtotal_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSubtotalAmountMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "tax_amount_micros" field. - public const int TaxAmountMicrosFieldNumber = 16; - private long taxAmountMicros_; - /// - /// Output only. The tax amount attributable to this budget during the service period, in - /// micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TaxAmountMicros { - get { if ((_hasBits0 & 2) != 0) { return taxAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - taxAmountMicros_ = value; - } - } - /// Gets whether the "tax_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTaxAmountMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "tax_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTaxAmountMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "total_amount_micros" field. - public const int TotalAmountMicrosFieldNumber = 17; - private long totalAmountMicros_; - /// - /// Output only. The total amount attributable to this budget during the service period, - /// in micros. This equals the sum of the account budget subtotal amount and - /// the account budget tax amount. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalAmountMicros { - get { if ((_hasBits0 & 4) != 0) { return totalAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - totalAmountMicros_ = value; - } - } - /// Gets whether the "total_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTotalAmountMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "total_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTotalAmountMicros() { - _hasBits0 &= ~4; - } - - /// Field number for the "billable_activity_date_range" field. - public const int BillableActivityDateRangeFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Common.DateRange billableActivityDateRange_; - /// - /// Output only. The billable activity date range of the account budget, within the - /// service date range of this invoice. The end date is inclusive. This can - /// be different from the account budget's start and end time. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DateRange BillableActivityDateRange { - get { return billableActivityDateRange_; } - set { - billableActivityDateRange_ = value; - } - } - - /// Field number for the "served_amount_micros" field. - public const int ServedAmountMicrosFieldNumber = 18; - private long servedAmountMicros_; - /// - /// Output only. Accessible only to customers on the allow-list. - /// The pretax served amount attributable to this budget during the service - /// period, in micros. This is only useful to reconcile invoice and delivery - /// data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ServedAmountMicros { - get { if ((_hasBits0 & 8) != 0) { return servedAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 8; - servedAmountMicros_ = value; - } - } - /// Gets whether the "served_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasServedAmountMicros { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "served_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearServedAmountMicros() { - _hasBits0 &= ~8; - } - - /// Field number for the "billed_amount_micros" field. - public const int BilledAmountMicrosFieldNumber = 19; - private long billedAmountMicros_; - /// - /// Output only. Accessible only to customers on the allow-list. - /// The pretax billed amount attributable to this budget during the - /// service period, in micros. This does not account for any adjustments. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long BilledAmountMicros { - get { if ((_hasBits0 & 16) != 0) { return billedAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 16; - billedAmountMicros_ = value; - } - } - /// Gets whether the "billed_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBilledAmountMicros { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "billed_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBilledAmountMicros() { - _hasBits0 &= ~16; - } - - /// Field number for the "overdelivery_amount_micros" field. - public const int OverdeliveryAmountMicrosFieldNumber = 20; - private long overdeliveryAmountMicros_; - /// - /// Output only. Accessible only to customers on the allow-list. - /// The pretax overdelivery amount attributable to this budget during the - /// service period, in micros (negative value). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long OverdeliveryAmountMicros { - get { if ((_hasBits0 & 32) != 0) { return overdeliveryAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 32; - overdeliveryAmountMicros_ = value; - } - } - /// Gets whether the "overdelivery_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasOverdeliveryAmountMicros { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "overdelivery_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOverdeliveryAmountMicros() { - _hasBits0 &= ~32; - } - - /// Field number for the "invalid_activity_amount_micros" field. - public const int InvalidActivityAmountMicrosFieldNumber = 21; - private long invalidActivityAmountMicros_; - /// - /// Output only. Accessible only to customers on the allow-list. - /// The pretax invalid activity amount attributable to this budget in - /// previous months, in micros (negative value). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long InvalidActivityAmountMicros { - get { if ((_hasBits0 & 64) != 0) { return invalidActivityAmountMicros_; } else { return 0L; } } - set { - _hasBits0 |= 64; - invalidActivityAmountMicros_ = value; - } - } - /// Gets whether the "invalid_activity_amount_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasInvalidActivityAmountMicros { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "invalid_activity_amount_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearInvalidActivityAmountMicros() { - _hasBits0 &= ~64; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AccountBudgetSummary); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AccountBudgetSummary other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Customer != other.Customer) return false; - if (CustomerDescriptiveName != other.CustomerDescriptiveName) return false; - if (AccountBudget != other.AccountBudget) return false; - if (AccountBudgetName != other.AccountBudgetName) return false; - if (PurchaseOrderNumber != other.PurchaseOrderNumber) return false; - if (SubtotalAmountMicros != other.SubtotalAmountMicros) return false; - if (TaxAmountMicros != other.TaxAmountMicros) return false; - if (TotalAmountMicros != other.TotalAmountMicros) return false; - if (!object.Equals(BillableActivityDateRange, other.BillableActivityDateRange)) return false; - if (ServedAmountMicros != other.ServedAmountMicros) return false; - if (BilledAmountMicros != other.BilledAmountMicros) return false; - if (OverdeliveryAmountMicros != other.OverdeliveryAmountMicros) return false; - if (InvalidActivityAmountMicros != other.InvalidActivityAmountMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasCustomer) hash ^= Customer.GetHashCode(); - if (HasCustomerDescriptiveName) hash ^= CustomerDescriptiveName.GetHashCode(); - if (HasAccountBudget) hash ^= AccountBudget.GetHashCode(); - if (HasAccountBudgetName) hash ^= AccountBudgetName.GetHashCode(); - if (HasPurchaseOrderNumber) hash ^= PurchaseOrderNumber.GetHashCode(); - if (HasSubtotalAmountMicros) hash ^= SubtotalAmountMicros.GetHashCode(); - if (HasTaxAmountMicros) hash ^= TaxAmountMicros.GetHashCode(); - if (HasTotalAmountMicros) hash ^= TotalAmountMicros.GetHashCode(); - if (billableActivityDateRange_ != null) hash ^= BillableActivityDateRange.GetHashCode(); - if (HasServedAmountMicros) hash ^= ServedAmountMicros.GetHashCode(); - if (HasBilledAmountMicros) hash ^= BilledAmountMicros.GetHashCode(); - if (HasOverdeliveryAmountMicros) hash ^= OverdeliveryAmountMicros.GetHashCode(); - if (HasInvalidActivityAmountMicros) hash ^= InvalidActivityAmountMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (billableActivityDateRange_ != null) { - output.WriteRawTag(74); - output.WriteMessage(BillableActivityDateRange); - } - if (HasCustomer) { - output.WriteRawTag(82); - output.WriteString(Customer); - } - if (HasCustomerDescriptiveName) { - output.WriteRawTag(90); - output.WriteString(CustomerDescriptiveName); - } - if (HasAccountBudget) { - output.WriteRawTag(98); - output.WriteString(AccountBudget); - } - if (HasAccountBudgetName) { - output.WriteRawTag(106); - output.WriteString(AccountBudgetName); - } - if (HasPurchaseOrderNumber) { - output.WriteRawTag(114); - output.WriteString(PurchaseOrderNumber); - } - if (HasSubtotalAmountMicros) { - output.WriteRawTag(120); - output.WriteInt64(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - output.WriteRawTag(128, 1); - output.WriteInt64(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(136, 1); - output.WriteInt64(TotalAmountMicros); - } - if (HasServedAmountMicros) { - output.WriteRawTag(144, 1); - output.WriteInt64(ServedAmountMicros); - } - if (HasBilledAmountMicros) { - output.WriteRawTag(152, 1); - output.WriteInt64(BilledAmountMicros); - } - if (HasOverdeliveryAmountMicros) { - output.WriteRawTag(160, 1); - output.WriteInt64(OverdeliveryAmountMicros); - } - if (HasInvalidActivityAmountMicros) { - output.WriteRawTag(168, 1); - output.WriteInt64(InvalidActivityAmountMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (billableActivityDateRange_ != null) { - output.WriteRawTag(74); - output.WriteMessage(BillableActivityDateRange); - } - if (HasCustomer) { - output.WriteRawTag(82); - output.WriteString(Customer); - } - if (HasCustomerDescriptiveName) { - output.WriteRawTag(90); - output.WriteString(CustomerDescriptiveName); - } - if (HasAccountBudget) { - output.WriteRawTag(98); - output.WriteString(AccountBudget); - } - if (HasAccountBudgetName) { - output.WriteRawTag(106); - output.WriteString(AccountBudgetName); - } - if (HasPurchaseOrderNumber) { - output.WriteRawTag(114); - output.WriteString(PurchaseOrderNumber); - } - if (HasSubtotalAmountMicros) { - output.WriteRawTag(120); - output.WriteInt64(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - output.WriteRawTag(128, 1); - output.WriteInt64(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - output.WriteRawTag(136, 1); - output.WriteInt64(TotalAmountMicros); - } - if (HasServedAmountMicros) { - output.WriteRawTag(144, 1); - output.WriteInt64(ServedAmountMicros); - } - if (HasBilledAmountMicros) { - output.WriteRawTag(152, 1); - output.WriteInt64(BilledAmountMicros); - } - if (HasOverdeliveryAmountMicros) { - output.WriteRawTag(160, 1); - output.WriteInt64(OverdeliveryAmountMicros); - } - if (HasInvalidActivityAmountMicros) { - output.WriteRawTag(168, 1); - output.WriteInt64(InvalidActivityAmountMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasCustomer) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Customer); - } - if (HasCustomerDescriptiveName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerDescriptiveName); - } - if (HasAccountBudget) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AccountBudget); - } - if (HasAccountBudgetName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AccountBudgetName); - } - if (HasPurchaseOrderNumber) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PurchaseOrderNumber); - } - if (HasSubtotalAmountMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(SubtotalAmountMicros); - } - if (HasTaxAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TaxAmountMicros); - } - if (HasTotalAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(TotalAmountMicros); - } - if (billableActivityDateRange_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(BillableActivityDateRange); - } - if (HasServedAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(ServedAmountMicros); - } - if (HasBilledAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(BilledAmountMicros); - } - if (HasOverdeliveryAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(OverdeliveryAmountMicros); - } - if (HasInvalidActivityAmountMicros) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(InvalidActivityAmountMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AccountBudgetSummary other) { - if (other == null) { - return; - } - if (other.HasCustomer) { - Customer = other.Customer; - } - if (other.HasCustomerDescriptiveName) { - CustomerDescriptiveName = other.CustomerDescriptiveName; - } - if (other.HasAccountBudget) { - AccountBudget = other.AccountBudget; - } - if (other.HasAccountBudgetName) { - AccountBudgetName = other.AccountBudgetName; - } - if (other.HasPurchaseOrderNumber) { - PurchaseOrderNumber = other.PurchaseOrderNumber; - } - if (other.HasSubtotalAmountMicros) { - SubtotalAmountMicros = other.SubtotalAmountMicros; - } - if (other.HasTaxAmountMicros) { - TaxAmountMicros = other.TaxAmountMicros; - } - if (other.HasTotalAmountMicros) { - TotalAmountMicros = other.TotalAmountMicros; - } - if (other.billableActivityDateRange_ != null) { - if (billableActivityDateRange_ == null) { - BillableActivityDateRange = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - } - BillableActivityDateRange.MergeFrom(other.BillableActivityDateRange); - } - if (other.HasServedAmountMicros) { - ServedAmountMicros = other.ServedAmountMicros; - } - if (other.HasBilledAmountMicros) { - BilledAmountMicros = other.BilledAmountMicros; - } - if (other.HasOverdeliveryAmountMicros) { - OverdeliveryAmountMicros = other.OverdeliveryAmountMicros; - } - if (other.HasInvalidActivityAmountMicros) { - InvalidActivityAmountMicros = other.InvalidActivityAmountMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 74: { - if (billableActivityDateRange_ == null) { - BillableActivityDateRange = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - } - input.ReadMessage(BillableActivityDateRange); - break; - } - case 82: { - Customer = input.ReadString(); - break; - } - case 90: { - CustomerDescriptiveName = input.ReadString(); - break; - } - case 98: { - AccountBudget = input.ReadString(); - break; - } - case 106: { - AccountBudgetName = input.ReadString(); - break; - } - case 114: { - PurchaseOrderNumber = input.ReadString(); - break; - } - case 120: { - SubtotalAmountMicros = input.ReadInt64(); - break; - } - case 128: { - TaxAmountMicros = input.ReadInt64(); - break; - } - case 136: { - TotalAmountMicros = input.ReadInt64(); - break; - } - case 144: { - ServedAmountMicros = input.ReadInt64(); - break; - } - case 152: { - BilledAmountMicros = input.ReadInt64(); - break; - } - case 160: { - OverdeliveryAmountMicros = input.ReadInt64(); - break; - } - case 168: { - InvalidActivityAmountMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 74: { - if (billableActivityDateRange_ == null) { - BillableActivityDateRange = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - } - input.ReadMessage(BillableActivityDateRange); - break; - } - case 82: { - Customer = input.ReadString(); - break; - } - case 90: { - CustomerDescriptiveName = input.ReadString(); - break; - } - case 98: { - AccountBudget = input.ReadString(); - break; - } - case 106: { - AccountBudgetName = input.ReadString(); - break; - } - case 114: { - PurchaseOrderNumber = input.ReadString(); - break; - } - case 120: { - SubtotalAmountMicros = input.ReadInt64(); - break; - } - case 128: { - TaxAmountMicros = input.ReadInt64(); - break; - } - case 136: { - TotalAmountMicros = input.ReadInt64(); - break; - } - case 144: { - ServedAmountMicros = input.ReadInt64(); - break; - } - case 152: { - BilledAmountMicros = input.ReadInt64(); - break; - } - case 160: { - OverdeliveryAmountMicros = input.ReadInt64(); - break; - } - case 168: { - InvalidActivityAmountMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/InvoiceError.g.cs b/Google.Ads.GoogleAds/src/V12/InvoiceError.g.cs deleted file mode 100755 index f46316afb..000000000 --- a/Google.Ads.GoogleAds/src/V12/InvoiceError.g.cs +++ /dev/null @@ -1,252 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/invoice_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/invoice_error.proto - public static partial class InvoiceErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/invoice_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InvoiceErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ludm9pY2VfZXJy", - "b3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnMi2gEK", - "EEludm9pY2VFcnJvckVudW0ixQEKDEludm9pY2VFcnJvchIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIWChJZRUFSX01PTlRIX1RPT19PTEQQAhIZ", - "ChVOT1RfSU5WT0lDRURfQ1VTVE9NRVIQAxIeChpCSUxMSU5HX1NFVFVQX05P", - "VF9BUFBST1ZFRBAEEioKJkJJTExJTkdfU0VUVVBfTk9UX09OX01PTlRITFlf", - "SU5WT0lDSU5HEAUSGAoUTk9OX1NFUlZJTkdfQ1VTVE9NRVIQBkLxAQojY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCEUludm9pY2VFcnJv", - "clByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFw", - "aXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dv", - "b2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorEnum.Types.InvoiceError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible invoice errors. - /// - public sealed partial class InvoiceErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvoiceErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.InvoiceErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InvoiceErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InvoiceErrorEnum(InvoiceErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InvoiceErrorEnum Clone() { - return new InvoiceErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InvoiceErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InvoiceErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InvoiceErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the InvoiceErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible invoice errors. - /// - public enum InvoiceError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Cannot request invoices issued before 2019-01-01. - /// - [pbr::OriginalName("YEAR_MONTH_TOO_OLD")] YearMonthTooOld = 2, - /// - /// Cannot request invoices for customer who doesn't receive invoices. - /// - [pbr::OriginalName("NOT_INVOICED_CUSTOMER")] NotInvoicedCustomer = 3, - /// - /// Cannot request invoices for a non approved billing setup. - /// - [pbr::OriginalName("BILLING_SETUP_NOT_APPROVED")] BillingSetupNotApproved = 4, - /// - /// Cannot request invoices for a billing setup that is not on monthly - /// invoicing. - /// - [pbr::OriginalName("BILLING_SETUP_NOT_ON_MONTHLY_INVOICING")] BillingSetupNotOnMonthlyInvoicing = 5, - /// - /// Cannot request invoices for a non serving customer. - /// - [pbr::OriginalName("NON_SERVING_CUSTOMER")] NonServingCustomer = 6, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/InvoiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/InvoiceResourceNames.g.cs deleted file mode 100755 index 68c8c61d3..000000000 --- a/Google.Ads.GoogleAds/src/V12/InvoiceResourceNames.g.cs +++ /dev/null @@ -1,249 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the Invoice resource. - public sealed partial class InvoiceName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// A resource name with pattern customers/{customer_id}/invoices/{invoice_id}. - CustomerInvoice = 1, - } - - private static gax::PathTemplate s_customerInvoice = new gax::PathTemplate("customers/{customer_id}/invoices/{invoice_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided . - /// - public static InvoiceName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new InvoiceName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern customers/{customer_id}/invoices/{invoice_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Invoice ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static InvoiceName FromCustomerInvoice(string customerId, string invoiceId) => - new InvoiceName(ResourceNameType.CustomerInvoice, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), invoiceId: gax::GaxPreconditions.CheckNotNullOrEmpty(invoiceId, nameof(invoiceId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/invoices/{invoice_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Invoice ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/invoices/{invoice_id}. - /// - public static string Format(string customerId, string invoiceId) => FormatCustomerInvoice(customerId, invoiceId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/invoices/{invoice_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The Invoice ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/invoices/{invoice_id}. - /// - public static string FormatCustomerInvoice(string customerId, string invoiceId) => - s_customerInvoice.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(invoiceId, nameof(invoiceId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/invoices/{invoice_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static InvoiceName Parse(string invoiceName) => Parse(invoiceName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing an - /// unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/invoices/{invoice_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static InvoiceName Parse(string invoiceName, bool allowUnparsed) => - TryParse(invoiceName, allowUnparsed, out InvoiceName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/invoices/{invoice_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string invoiceName, out InvoiceName result) => TryParse(invoiceName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/invoices/{invoice_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string invoiceName, bool allowUnparsed, out InvoiceName result) - { - gax::GaxPreconditions.CheckNotNull(invoiceName, nameof(invoiceName)); - gax::TemplatedResourceName resourceName; - if (s_customerInvoice.TryParseName(invoiceName, out resourceName)) - { - result = FromCustomerInvoice(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(invoiceName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private InvoiceName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string invoiceId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - InvoiceId = invoiceId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/invoices/{invoice_id} - /// - /// The Customer ID. Must not be null or empty. - /// The Invoice ID. Must not be null or empty. - public InvoiceName(string customerId, string invoiceId) : this(ResourceNameType.CustomerInvoice, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), invoiceId: gax::GaxPreconditions.CheckNotNullOrEmpty(invoiceId, nameof(invoiceId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The Invoice ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string InvoiceId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerInvoice: return s_customerInvoice.Expand(CustomerId, InvoiceId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as InvoiceName); - - /// - public bool Equals(InvoiceName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(InvoiceName a, InvoiceName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(InvoiceName a, InvoiceName b) => !(a == b); - } - - public partial class Invoice - { - /// - /// -typed view over the resource name property. - /// - internal InvoiceName ResourceNameAsInvoiceName - { - get => string.IsNullOrEmpty(ResourceName) ? null : InvoiceName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/InvoiceService.g.cs b/Google.Ads.GoogleAds/src/V12/InvoiceService.g.cs deleted file mode 100755 index 6743be8b1..000000000 --- a/Google.Ads.GoogleAds/src/V12/InvoiceService.g.cs +++ /dev/null @@ -1,571 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/invoice_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/invoice_service.proto - public static partial class InvoiceServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/invoice_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InvoiceServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMvaW52b2ljZV9z", - "ZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMaMmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9tb250aF9vZl95", - "ZWFyLnByb3RvGjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "L2ludm9pY2UucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8a", - "F2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2Jl", - "aGF2aW9yLnByb3RvIrsBChNMaXN0SW52b2ljZXNSZXF1ZXN0EhgKC2N1c3Rv", - "bWVyX2lkGAEgASgJQgPgQQISGgoNYmlsbGluZ19zZXR1cBgCIAEoCUID4EEC", - "EhcKCmlzc3VlX3llYXIYAyABKAlCA+BBAhJVCgtpc3N1ZV9tb250aBgEIAEo", - "DjI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5Nb250aE9mWWVh", - "ckVudW0uTW9udGhPZlllYXJCA+BBAiJVChRMaXN0SW52b2ljZXNSZXNwb25z", - "ZRI9CghpbnZvaWNlcxgBIAMoCzIrLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMuSW52b2ljZTK9AgoOSW52b2ljZVNlcnZpY2US4wEKDExp", - "c3RJbnZvaWNlcxI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNl", - "cy5MaXN0SW52b2ljZXNSZXF1ZXN0GjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzLkxpc3RJbnZvaWNlc1Jlc3BvbnNlImKC0+STAikSJy92", - "MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9pbnZvaWNlc9pBMGN1c3Rv", - "bWVyX2lkLGJpbGxpbmdfc2V0dXAsaXNzdWVfeWVhcixpc3N1ZV9tb250aBpF", - "ykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29v", - "Z2xlYXBpcy5jb20vYXV0aC9hZHdvcmRzQv8BCiVjb20uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzQhNJbnZvaWNlU2VydmljZVByb3RvUAFa", - "SWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dv", - "b2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUu", - "QWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2ds", - "ZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.InvoiceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest), global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest.Parser, new[]{ "CustomerId", "BillingSetup", "IssueYear", "IssueMonth" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ListInvoicesResponse), global::Google.Ads.GoogleAds.V12.Services.ListInvoicesResponse.Parser, new[]{ "Invoices" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for fetching the invoices of a given billing setup that were - /// issued during a given month. - /// - public sealed partial class ListInvoicesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInvoicesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.InvoiceServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInvoicesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInvoicesRequest(ListInvoicesRequest other) : this() { - customerId_ = other.customerId_; - billingSetup_ = other.billingSetup_; - issueYear_ = other.issueYear_; - issueMonth_ = other.issueMonth_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInvoicesRequest Clone() { - return new ListInvoicesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer to fetch invoices for. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "billing_setup" field. - public const int BillingSetupFieldNumber = 2; - private string billingSetup_ = ""; - /// - /// Required. The billing setup resource name of the requested invoices. - /// - /// `customers/{customer_id}/billingSetups/{billing_setup_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BillingSetup { - get { return billingSetup_; } - set { - billingSetup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "issue_year" field. - public const int IssueYearFieldNumber = 3; - private string issueYear_ = ""; - /// - /// Required. The issue year to retrieve invoices, in yyyy format. Only - /// invoices issued in 2019 or later can be retrieved. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string IssueYear { - get { return issueYear_; } - set { - issueYear_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "issue_month" field. - public const int IssueMonthFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear issueMonth_ = global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified; - /// - /// Required. The issue month to retrieve invoices. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear IssueMonth { - get { return issueMonth_; } - set { - issueMonth_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListInvoicesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListInvoicesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (BillingSetup != other.BillingSetup) return false; - if (IssueYear != other.IssueYear) return false; - if (IssueMonth != other.IssueMonth) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (BillingSetup.Length != 0) hash ^= BillingSetup.GetHashCode(); - if (IssueYear.Length != 0) hash ^= IssueYear.GetHashCode(); - if (IssueMonth != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) hash ^= IssueMonth.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (BillingSetup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(BillingSetup); - } - if (IssueYear.Length != 0) { - output.WriteRawTag(26); - output.WriteString(IssueYear); - } - if (IssueMonth != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) IssueMonth); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (BillingSetup.Length != 0) { - output.WriteRawTag(18); - output.WriteString(BillingSetup); - } - if (IssueYear.Length != 0) { - output.WriteRawTag(26); - output.WriteString(IssueYear); - } - if (IssueMonth != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - output.WriteRawTag(32); - output.WriteEnum((int) IssueMonth); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (BillingSetup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BillingSetup); - } - if (IssueYear.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(IssueYear); - } - if (IssueMonth != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) IssueMonth); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListInvoicesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.BillingSetup.Length != 0) { - BillingSetup = other.BillingSetup; - } - if (other.IssueYear.Length != 0) { - IssueYear = other.IssueYear; - } - if (other.IssueMonth != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - IssueMonth = other.IssueMonth; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - BillingSetup = input.ReadString(); - break; - } - case 26: { - IssueYear = input.ReadString(); - break; - } - case 32: { - IssueMonth = (global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - BillingSetup = input.ReadString(); - break; - } - case 26: { - IssueYear = input.ReadString(); - break; - } - case 32: { - IssueMonth = (global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [InvoiceService.ListInvoices][google.ads.googleads.v12.services.InvoiceService.ListInvoices]. - /// - public sealed partial class ListInvoicesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListInvoicesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.InvoiceServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInvoicesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInvoicesResponse(ListInvoicesResponse other) : this() { - invoices_ = other.invoices_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ListInvoicesResponse Clone() { - return new ListInvoicesResponse(this); - } - - /// Field number for the "invoices" field. - public const int InvoicesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_invoices_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Resources.Invoice.Parser); - private readonly pbc::RepeatedField invoices_ = new pbc::RepeatedField(); - /// - /// The list of invoices that match the billing setup and time period. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Invoices { - get { return invoices_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ListInvoicesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ListInvoicesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!invoices_.Equals(other.invoices_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= invoices_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - invoices_.WriteTo(output, _repeated_invoices_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - invoices_.WriteTo(ref output, _repeated_invoices_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += invoices_.CalculateSize(_repeated_invoices_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ListInvoicesResponse other) { - if (other == null) { - return; - } - invoices_.Add(other.invoices_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - invoices_.AddEntriesFrom(input, _repeated_invoices_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - invoices_.AddEntriesFrom(ref input, _repeated_invoices_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/InvoiceServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/InvoiceServiceClient.g.cs deleted file mode 100755 index abf3904ff..000000000 --- a/Google.Ads.GoogleAds/src/V12/InvoiceServiceClient.g.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class InvoiceServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static InvoiceServiceSettings GetDefault() => new InvoiceServiceSettings(); - - /// Constructs a new object with default settings. - public InvoiceServiceSettings() - { - } - - private InvoiceServiceSettings(InvoiceServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - ListInvoicesSettings = existing.ListInvoicesSettings; - OnCopy(existing); - } - - partial void OnCopy(InvoiceServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// InvoiceServiceClient.ListInvoices and InvoiceServiceClient.ListInvoicesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings ListInvoicesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public InvoiceServiceSettings Clone() => new InvoiceServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, endpoint - /// etc. - /// - internal sealed partial class InvoiceServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public InvoiceServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public InvoiceServiceClientBuilder() : base(InvoiceServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref InvoiceServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override InvoiceServiceClient Build() - { - InvoiceServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private InvoiceServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return InvoiceServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return InvoiceServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => InvoiceServiceClient.ChannelPool; - } - - /// InvoiceService client wrapper, for convenient use. - /// - /// A service to fetch invoices issued for a billing setup during a given month. - /// - public abstract partial class InvoiceServiceClient - { - /// - /// The default endpoint for the InvoiceService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default InvoiceService scopes. - /// - /// The default InvoiceService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(InvoiceService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new InvoiceServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use . - /// - /// The created . - public static InvoiceServiceClient Create() => new InvoiceServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static InvoiceServiceClient Create(grpccore::CallInvoker callInvoker, InvoiceServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - InvoiceService.InvoiceServiceClient grpcClient = new InvoiceService.InvoiceServiceClient(callInvoker); - return new InvoiceServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC InvoiceService client - public virtual InvoiceService.InvoiceServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListInvoicesResponse ListInvoices(ListInvoicesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListInvoicesAsync(ListInvoicesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListInvoicesAsync(ListInvoicesRequest request, st::CancellationToken cancellationToken) => - ListInvoicesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer to fetch invoices for. - /// - /// - /// Required. The billing setup resource name of the requested invoices. - /// - /// `customers/{customer_id}/billingSetups/{billing_setup_id}` - /// - /// - /// Required. The issue year to retrieve invoices, in yyyy format. Only - /// invoices issued in 2019 or later can be retrieved. - /// - /// - /// Required. The issue month to retrieve invoices. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual ListInvoicesResponse ListInvoices(string customerId, string billingSetup, string issueYear, gagve::MonthOfYearEnum.Types.MonthOfYear issueMonth, gaxgrpc::CallSettings callSettings = null) => - ListInvoices(new ListInvoicesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - BillingSetup = gax::GaxPreconditions.CheckNotNullOrEmpty(billingSetup, nameof(billingSetup)), - IssueYear = gax::GaxPreconditions.CheckNotNullOrEmpty(issueYear, nameof(issueYear)), - IssueMonth = issueMonth, - }, callSettings); - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer to fetch invoices for. - /// - /// - /// Required. The billing setup resource name of the requested invoices. - /// - /// `customers/{customer_id}/billingSetups/{billing_setup_id}` - /// - /// - /// Required. The issue year to retrieve invoices, in yyyy format. Only - /// invoices issued in 2019 or later can be retrieved. - /// - /// - /// Required. The issue month to retrieve invoices. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task ListInvoicesAsync(string customerId, string billingSetup, string issueYear, gagve::MonthOfYearEnum.Types.MonthOfYear issueMonth, gaxgrpc::CallSettings callSettings = null) => - ListInvoicesAsync(new ListInvoicesRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - BillingSetup = gax::GaxPreconditions.CheckNotNullOrEmpty(billingSetup, nameof(billingSetup)), - IssueYear = gax::GaxPreconditions.CheckNotNullOrEmpty(issueYear, nameof(issueYear)), - IssueMonth = issueMonth, - }, callSettings); - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The ID of the customer to fetch invoices for. - /// - /// - /// Required. The billing setup resource name of the requested invoices. - /// - /// `customers/{customer_id}/billingSetups/{billing_setup_id}` - /// - /// - /// Required. The issue year to retrieve invoices, in yyyy format. Only - /// invoices issued in 2019 or later can be retrieved. - /// - /// - /// Required. The issue month to retrieve invoices. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task ListInvoicesAsync(string customerId, string billingSetup, string issueYear, gagve::MonthOfYearEnum.Types.MonthOfYear issueMonth, st::CancellationToken cancellationToken) => - ListInvoicesAsync(customerId, billingSetup, issueYear, issueMonth, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// InvoiceService client wrapper implementation, for convenient use. - /// - /// A service to fetch invoices issued for a billing setup during a given month. - /// - public sealed partial class InvoiceServiceClientImpl : InvoiceServiceClient - { - private readonly gaxgrpc::ApiCall _callListInvoices; - - /// - /// Constructs a client wrapper for the InvoiceService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public InvoiceServiceClientImpl(InvoiceService.InvoiceServiceClient grpcClient, InvoiceServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - InvoiceServiceSettings effectiveSettings = settings ?? InvoiceServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callListInvoices = clientHelper.BuildApiCall("ListInvoices", grpcClient.ListInvoicesAsync, grpcClient.ListInvoices, effectiveSettings.ListInvoicesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callListInvoices); - Modify_ListInvoicesApiCall(ref _callListInvoices); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_ListInvoicesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(InvoiceService.InvoiceServiceClient grpcClient, InvoiceServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC InvoiceService client - public override InvoiceService.InvoiceServiceClient GrpcClient { get; } - - partial void Modify_ListInvoicesRequest(ref ListInvoicesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override ListInvoicesResponse ListInvoices(ListInvoicesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListInvoicesRequest(ref request, ref callSettings); - return _callListInvoices.Sync(request, callSettings); - } - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task ListInvoicesAsync(ListInvoicesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_ListInvoicesRequest(ref request, ref callSettings); - return _callListInvoices.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/InvoiceServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/InvoiceServiceGrpc.g.cs deleted file mode 100755 index 415efc03b..000000000 --- a/Google.Ads.GoogleAds/src/V12/InvoiceServiceGrpc.g.cs +++ /dev/null @@ -1,257 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/invoice_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// A service to fetch invoices issued for a billing setup during a given month. - /// - public static partial class InvoiceService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.InvoiceService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListInvoicesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_ListInvoicesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.ListInvoicesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_ListInvoices = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "ListInvoices", - __Marshaller_google_ads_googleads_v12_services_ListInvoicesRequest, - __Marshaller_google_ads_googleads_v12_services_ListInvoicesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.InvoiceServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of InvoiceService - [grpc::BindServiceMethod(typeof(InvoiceService), "BindService")] - public abstract partial class InvoiceServiceBase - { - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task ListInvoices(global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for InvoiceService - public partial class InvoiceServiceClient : grpc::ClientBase - { - /// Creates a new client for InvoiceService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public InvoiceServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for InvoiceService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public InvoiceServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected InvoiceServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected InvoiceServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListInvoicesResponse ListInvoices(global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListInvoices(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.ListInvoicesResponse ListInvoices(global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_ListInvoices, null, options, request); - } - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListInvoicesAsync(global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return ListInvoicesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns all invoices associated with a billing setup, for a given month. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [InvoiceError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall ListInvoicesAsync(global::Google.Ads.GoogleAds.V12.Services.ListInvoicesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_ListInvoices, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override InvoiceServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new InvoiceServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(InvoiceServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_ListInvoices, serviceImpl.ListInvoices).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, InvoiceServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_ListInvoices, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ListInvoices)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/InvoiceType.g.cs b/Google.Ads.GoogleAds/src/V12/InvoiceType.g.cs deleted file mode 100755 index e4ae80fe8..000000000 --- a/Google.Ads.GoogleAds/src/V12/InvoiceType.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/invoice_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/invoice_type.proto - public static partial class InvoiceTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/invoice_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static InvoiceTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvaW52b2ljZV90eXBl", - "LnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMiXAoPSW52", - "b2ljZVR5cGVFbnVtIkkKC0ludm9pY2VUeXBlEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEg8KC0NSRURJVF9NRU1PEAISCwoHSU5WT0lDRRADQuoB", - "CiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQhBJbnZvaWNl", - "VHlwZVByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5H", - "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRW51bXPKAh5Hb29nbGVcQWRzXEdv", - "b2dsZUFkc1xWMTJcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTI6OkVudW1zYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeEnum.Types.InvoiceType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing the type of invoices. - /// - public sealed partial class InvoiceTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvoiceTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.InvoiceTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InvoiceTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InvoiceTypeEnum(InvoiceTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InvoiceTypeEnum Clone() { - return new InvoiceTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as InvoiceTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InvoiceTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InvoiceTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the InvoiceTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// The possible type of invoices. - /// - public enum InvoiceType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// An invoice with a negative amount. The account receives a credit. - /// - [pbr::OriginalName("CREDIT_MEMO")] CreditMemo = 2, - /// - /// An invoice with a positive amount. The account owes a balance. - /// - [pbr::OriginalName("INVOICE")] Invoice = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/JobPlaceholderField.g.cs b/Google.Ads.GoogleAds/src/V12/JobPlaceholderField.g.cs deleted file mode 100755 index f155b3c99..000000000 --- a/Google.Ads.GoogleAds/src/V12/JobPlaceholderField.g.cs +++ /dev/null @@ -1,322 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/job_placeholder_field.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/job_placeholder_field.proto - public static partial class JobPlaceholderFieldReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/job_placeholder_field.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static JobPlaceholderFieldReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvam9iX3BsYWNlaG9s", - "ZGVyX2ZpZWxkLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51", - "bXMi8QIKF0pvYlBsYWNlaG9sZGVyRmllbGRFbnVtItUCChNKb2JQbGFjZWhv", - "bGRlckZpZWxkEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgoKBkpP", - "Ql9JRBACEg8KC0xPQ0FUSU9OX0lEEAMSCQoFVElUTEUQBBIMCghTVUJUSVRM", - "RRAFEg8KC0RFU0NSSVBUSU9OEAYSDQoJSU1BR0VfVVJMEAcSDAoIQ0FURUdP", - "UlkQCBIXChNDT05URVhUVUFMX0tFWVdPUkRTEAkSCwoHQUREUkVTUxAKEgoK", - "BlNBTEFSWRALEg4KCkZJTkFMX1VSTFMQDBIVChFGSU5BTF9NT0JJTEVfVVJM", - "UxAOEhAKDFRSQUNLSU5HX1VSTBAPEhQKEEFORFJPSURfQVBQX0xJTksQEBIT", - "Cg9TSU1JTEFSX0pPQl9JRFMQERIQCgxJT1NfQVBQX0xJTksQEhIUChBJT1Nf", - "QVBQX1NUT1JFX0lEEBNC8wEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuZW51bXNCGUpvYnNQbGFjZWhvbGRlckZpZWxkUHJvdG9QAVpDZ29vZ2xl", - "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", - "L3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oC", - "Ikdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldEnum), global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldEnum.Types.JobPlaceholderField) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Values for Job placeholder fields. - /// For more information about dynamic remarketing feeds, see - /// https://support.google.com/google-ads/answer/6053288. - /// - public sealed partial class JobPlaceholderFieldEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobPlaceholderFieldEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.JobPlaceholderFieldReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JobPlaceholderFieldEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JobPlaceholderFieldEnum(JobPlaceholderFieldEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public JobPlaceholderFieldEnum Clone() { - return new JobPlaceholderFieldEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as JobPlaceholderFieldEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(JobPlaceholderFieldEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(JobPlaceholderFieldEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the JobPlaceholderFieldEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible values for Job placeholder fields. - /// - public enum JobPlaceholderField { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Data Type: STRING. Required. If only JOB_ID is specified, then it must be - /// unique. If both JOB_ID and LOCATION_ID are specified, then the - /// pair must be unique. - /// ID) pair must be unique. - /// - [pbr::OriginalName("JOB_ID")] JobId = 2, - /// - /// Data Type: STRING. Combination of JOB_ID and LOCATION_ID must be unique - /// per offer. - /// - [pbr::OriginalName("LOCATION_ID")] LocationId = 3, - /// - /// Data Type: STRING. Required. Main headline with job title to be shown in - /// dynamic ad. - /// - [pbr::OriginalName("TITLE")] Title = 4, - /// - /// Data Type: STRING. Job subtitle to be shown in dynamic ad. - /// - [pbr::OriginalName("SUBTITLE")] Subtitle = 5, - /// - /// Data Type: STRING. Description of job to be shown in dynamic ad. - /// - [pbr::OriginalName("DESCRIPTION")] Description = 6, - /// - /// Data Type: URL. Image to be displayed in the ad. Highly recommended for - /// image ads. - /// - [pbr::OriginalName("IMAGE_URL")] ImageUrl = 7, - /// - /// Data Type: STRING. Category of property used to group like items together - /// for recommendation engine. - /// - [pbr::OriginalName("CATEGORY")] Category = 8, - /// - /// Data Type: STRING_LIST. Keywords used for product retrieval. - /// - [pbr::OriginalName("CONTEXTUAL_KEYWORDS")] ContextualKeywords = 9, - /// - /// Data Type: STRING. Complete property address, including postal code. - /// - [pbr::OriginalName("ADDRESS")] Address = 10, - /// - /// Data Type: STRING. Salary or salary range of job to be shown in dynamic - /// ad. - /// - [pbr::OriginalName("SALARY")] Salary = 11, - /// - /// Data Type: URL_LIST. Required. Final URLs to be used in ad when using - /// Upgraded URLs; the more specific the better (for example, the individual - /// URL of a specific job and its location). - /// - [pbr::OriginalName("FINAL_URLS")] FinalUrls = 12, - /// - /// Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - /// URLs. - /// - [pbr::OriginalName("FINAL_MOBILE_URLS")] FinalMobileUrls = 14, - /// - /// Data Type: URL. Tracking template for the ad when using Upgraded URLs. - /// - [pbr::OriginalName("TRACKING_URL")] TrackingUrl = 15, - /// - /// Data Type: STRING. Android app link. Must be formatted as: - /// android-app://{package_id}/{scheme}/{host_path}. - /// The components are defined as follows: - /// package_id: app ID as specified in Google Play. - /// scheme: the scheme to pass to the application. Can be HTTP, or a custom - /// scheme. - /// host_path: identifies the specific content within your application. - /// - [pbr::OriginalName("ANDROID_APP_LINK")] AndroidAppLink = 16, - /// - /// Data Type: STRING_LIST. List of recommended job IDs to show together with - /// this item. - /// - [pbr::OriginalName("SIMILAR_JOB_IDS")] SimilarJobIds = 17, - /// - /// Data Type: STRING. iOS app link. - /// - [pbr::OriginalName("IOS_APP_LINK")] IosAppLink = 18, - /// - /// Data Type: INT64. iOS app store ID. - /// - [pbr::OriginalName("IOS_APP_STORE_ID")] IosAppStoreId = 19, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordMatchType.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordMatchType.g.cs deleted file mode 100755 index 6ee924a16..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordMatchType.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/keyword_match_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/keyword_match_type.proto - public static partial class KeywordMatchTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/keyword_match_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordMatchTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9tYXRj", - "aF90eXBlLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMi", - "agoUS2V5d29yZE1hdGNoVHlwZUVudW0iUgoQS2V5d29yZE1hdGNoVHlwZRIP", - "CgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIJCgVFWEFDVBACEgoKBlBI", - "UkFTRRADEgkKBUJST0FEEARC7wEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXNCFUtleXdvcmRNYXRjaFR5cGVQcm90b1ABWkNnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIi", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Message describing Keyword match types. - /// - public sealed partial class KeywordMatchTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordMatchTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordMatchTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordMatchTypeEnum(KeywordMatchTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordMatchTypeEnum Clone() { - return new KeywordMatchTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordMatchTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordMatchTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordMatchTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordMatchTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Possible Keyword match types. - /// - public enum KeywordMatchType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// Used for return value only. Represents value unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Exact match. - /// - [pbr::OriginalName("EXACT")] Exact = 2, - /// - /// Phrase match. - /// - [pbr::OriginalName("PHRASE")] Phrase = 3, - /// - /// Broad match. - /// - [pbr::OriginalName("BROAD")] Broad = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlan.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlan.g.cs deleted file mode 100755 index edd28bf9f..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlan.g.cs +++ /dev/null @@ -1,713 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/keyword_plan.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/keyword_plan.proto - public static partial class KeywordPlanReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/keyword_plan.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRf", - "cGxhbi5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cxorZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9kYXRlcy5wcm90", - "bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2tleXdvcmRfcGxh", - "bl9mb3JlY2FzdF9pbnRlcnZhbC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i", - "ZWhhdmlvci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byLGAgoL", - "S2V5d29yZFBsYW4SQwoNcmVzb3VyY2VfbmFtZRgBIAEoCUIs4EEF+kEmCiRn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vS2V5d29yZFBsYW4SFAoCaWQYBSAB", - "KANCA+BBA0gAiAEBEhEKBG5hbWUYBiABKAlIAYgBARJWCg9mb3JlY2FzdF9w", - "ZXJpb2QYBCABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzLktleXdvcmRQbGFuRm9yZWNhc3RQZXJpb2Q6YepBXgokZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFuEjZjdXN0b21lcnMve2N1c3Rv", - "bWVyX2lkfS9rZXl3b3JkUGxhbnMve2tleXdvcmRfcGxhbl9pZH1CBQoDX2lk", - "QgcKBV9uYW1lIt8BChlLZXl3b3JkUGxhbkZvcmVjYXN0UGVyaW9kEnQKDWRh", - "dGVfaW50ZXJ2YWwYASABKA4yWy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuS2V5d29yZFBsYW5Gb3JlY2FzdEludGVydmFsRW51bS5LZXl3b3Jk", - "UGxhbkZvcmVjYXN0SW50ZXJ2YWxIABJACgpkYXRlX3JhbmdlGAIgASgLMiou", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5EYXRlUmFuZ2VIAEIK", - "CghpbnRlcnZhbEKCAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5y", - "ZXNvdXJjZXNCEEtleXdvcmRQbGFuUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNv", - "dXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNl", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.DatesReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan), global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan.Parser, new[]{ "ResourceName", "Id", "Name", "ForecastPeriod" }, new[]{ "Id", "Name" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanForecastPeriod), global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanForecastPeriod.Parser, new[]{ "DateInterval", "DateRange" }, new[]{ "Interval" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Keyword Planner plan. - /// Max number of saved keyword plans: 10000. - /// It's possible to remove plans if limit is reached. - /// - public sealed partial class KeywordPlan : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlan()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlan() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlan(KeywordPlan other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - id_ = other.id_; - name_ = other.name_; - forecastPeriod_ = other.forecastPeriod_ != null ? other.forecastPeriod_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlan Clone() { - return new KeywordPlan(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the Keyword Planner plan. - /// KeywordPlan resource names have the form: - /// - /// `customers/{customer_id}/keywordPlans/{kp_plan_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 5; - private long id_; - /// - /// Output only. The ID of the keyword plan. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 6; - private string name_; - /// - /// The name of the keyword plan. - /// - /// This field is required and should not be empty when creating new keyword - /// plans. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "forecast_period" field. - public const int ForecastPeriodFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanForecastPeriod forecastPeriod_; - /// - /// The date period used for forecasting the plan. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanForecastPeriod ForecastPeriod { - get { return forecastPeriod_; } - set { - forecastPeriod_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlan); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlan other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (!object.Equals(ForecastPeriod, other.ForecastPeriod)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (forecastPeriod_ != null) hash ^= ForecastPeriod.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (forecastPeriod_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ForecastPeriod); - } - if (HasId) { - output.WriteRawTag(40); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (forecastPeriod_ != null) { - output.WriteRawTag(34); - output.WriteMessage(ForecastPeriod); - } - if (HasId) { - output.WriteRawTag(40); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (forecastPeriod_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForecastPeriod); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlan other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.forecastPeriod_ != null) { - if (forecastPeriod_ == null) { - ForecastPeriod = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanForecastPeriod(); - } - ForecastPeriod.MergeFrom(other.ForecastPeriod); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - if (forecastPeriod_ == null) { - ForecastPeriod = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanForecastPeriod(); - } - input.ReadMessage(ForecastPeriod); - break; - } - case 40: { - Id = input.ReadInt64(); - break; - } - case 50: { - Name = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 34: { - if (forecastPeriod_ == null) { - ForecastPeriod = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanForecastPeriod(); - } - input.ReadMessage(ForecastPeriod); - break; - } - case 40: { - Id = input.ReadInt64(); - break; - } - case 50: { - Name = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The forecasting period associated with the keyword plan. - /// - public sealed partial class KeywordPlanForecastPeriod : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanForecastPeriod()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanForecastPeriod() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanForecastPeriod(KeywordPlanForecastPeriod other) : this() { - switch (other.IntervalCase) { - case IntervalOneofCase.DateInterval: - DateInterval = other.DateInterval; - break; - case IntervalOneofCase.DateRange: - DateRange = other.DateRange.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanForecastPeriod Clone() { - return new KeywordPlanForecastPeriod(this); - } - - /// Field number for the "date_interval" field. - public const int DateIntervalFieldNumber = 1; - /// - /// A future date range relative to the current date used for forecasting. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalEnum.Types.KeywordPlanForecastInterval DateInterval { - get { return intervalCase_ == IntervalOneofCase.DateInterval ? (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalEnum.Types.KeywordPlanForecastInterval) interval_ : global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalEnum.Types.KeywordPlanForecastInterval.Unspecified; } - set { - interval_ = value; - intervalCase_ = IntervalOneofCase.DateInterval; - } - } - - /// Field number for the "date_range" field. - public const int DateRangeFieldNumber = 2; - /// - /// The custom date range used for forecasting. It cannot be greater than - /// a year. - /// The start and end dates must be in the future. Otherwise, an error will - /// be returned when the forecasting action is performed. - /// The start and end dates are inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.DateRange DateRange { - get { return intervalCase_ == IntervalOneofCase.DateRange ? (global::Google.Ads.GoogleAds.V12.Common.DateRange) interval_ : null; } - set { - interval_ = value; - intervalCase_ = value == null ? IntervalOneofCase.None : IntervalOneofCase.DateRange; - } - } - - private object interval_; - /// Enum of possible cases for the "interval" oneof. - public enum IntervalOneofCase { - None = 0, - DateInterval = 1, - DateRange = 2, - } - private IntervalOneofCase intervalCase_ = IntervalOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public IntervalOneofCase IntervalCase { - get { return intervalCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearInterval() { - intervalCase_ = IntervalOneofCase.None; - interval_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanForecastPeriod); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanForecastPeriod other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DateInterval != other.DateInterval) return false; - if (!object.Equals(DateRange, other.DateRange)) return false; - if (IntervalCase != other.IntervalCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (intervalCase_ == IntervalOneofCase.DateInterval) hash ^= DateInterval.GetHashCode(); - if (intervalCase_ == IntervalOneofCase.DateRange) hash ^= DateRange.GetHashCode(); - hash ^= (int) intervalCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (intervalCase_ == IntervalOneofCase.DateInterval) { - output.WriteRawTag(8); - output.WriteEnum((int) DateInterval); - } - if (intervalCase_ == IntervalOneofCase.DateRange) { - output.WriteRawTag(18); - output.WriteMessage(DateRange); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (intervalCase_ == IntervalOneofCase.DateInterval) { - output.WriteRawTag(8); - output.WriteEnum((int) DateInterval); - } - if (intervalCase_ == IntervalOneofCase.DateRange) { - output.WriteRawTag(18); - output.WriteMessage(DateRange); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (intervalCase_ == IntervalOneofCase.DateInterval) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DateInterval); - } - if (intervalCase_ == IntervalOneofCase.DateRange) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DateRange); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanForecastPeriod other) { - if (other == null) { - return; - } - switch (other.IntervalCase) { - case IntervalOneofCase.DateInterval: - DateInterval = other.DateInterval; - break; - case IntervalOneofCase.DateRange: - if (DateRange == null) { - DateRange = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - } - DateRange.MergeFrom(other.DateRange); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - interval_ = input.ReadEnum(); - intervalCase_ = IntervalOneofCase.DateInterval; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.DateRange subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - if (intervalCase_ == IntervalOneofCase.DateRange) { - subBuilder.MergeFrom(DateRange); - } - input.ReadMessage(subBuilder); - DateRange = subBuilder; - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - interval_ = input.ReadEnum(); - intervalCase_ = IntervalOneofCase.DateInterval; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Common.DateRange subBuilder = new global::Google.Ads.GoogleAds.V12.Common.DateRange(); - if (intervalCase_ == IntervalOneofCase.DateRange) { - subBuilder.MergeFrom(DateRange); - } - input.ReadMessage(subBuilder); - DateRange = subBuilder; - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroup.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroup.g.cs deleted file mode 100755 index a73f43e24..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroup.g.cs +++ /dev/null @@ -1,477 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/keyword_plan_ad_group.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/keyword_plan_ad_group.proto - public static partial class KeywordPlanAdGroupReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/keyword_plan_ad_group.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanAdGroupReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRf", - "cGxhbl9hZF9ncm91cC5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZ", - "Z29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byK0AwoSS2V5d29yZFBsYW5BZEdy", - "b3VwEkoKDXJlc291cmNlX25hbWUYASABKAlCM+BBBfpBLQorZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFuQWRHcm91cBJVChVrZXl3b3Jk", - "X3BsYW5fY2FtcGFpZ24YBiABKAlCMfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0tleXdvcmRQbGFuQ2FtcGFpZ25IAIgBARIUCgJpZBgHIAEoA0ID", - "4EEDSAGIAQESEQoEbmFtZRgIIAEoCUgCiAEBEhsKDmNwY19iaWRfbWljcm9z", - "GAkgASgDSAOIAQE6eOpBdQorZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tl", - "eXdvcmRQbGFuQWRHcm91cBJGY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0va2V5", - "d29yZFBsYW5BZEdyb3Vwcy97a2V5d29yZF9wbGFuX2FkX2dyb3VwX2lkfUIY", - "ChZfa2V5d29yZF9wbGFuX2NhbXBhaWduQgUKA19pZEIHCgVfbmFtZUIRCg9f", - "Y3BjX2JpZF9taWNyb3NCiQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIucmVzb3VyY2VzQhdLZXl3b3JkUGxhbkFkR3JvdXBQcm90b1ABWktnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTIuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVB", - "ZHNcVjEyXFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", - "Mjo6UmVzb3VyY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup), global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup.Parser, new[]{ "ResourceName", "KeywordPlanCampaign", "Id", "Name", "CpcBidMicros" }, new[]{ "KeywordPlanCampaign", "Id", "Name", "CpcBidMicros" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Keyword Planner ad group. - /// Max number of keyword plan ad groups per plan: 200. - /// - public sealed partial class KeywordPlanAdGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAdGroup()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroup(KeywordPlanAdGroup other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - keywordPlanCampaign_ = other.keywordPlanCampaign_; - id_ = other.id_; - name_ = other.name_; - cpcBidMicros_ = other.cpcBidMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroup Clone() { - return new KeywordPlanAdGroup(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the Keyword Planner ad group. - /// KeywordPlanAdGroup resource names have the form: - /// - /// `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "keyword_plan_campaign" field. - public const int KeywordPlanCampaignFieldNumber = 6; - private string keywordPlanCampaign_; - /// - /// The keyword plan campaign to which this ad group belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanCampaign { - get { return keywordPlanCampaign_ ?? ""; } - set { - keywordPlanCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanCampaign { - get { return keywordPlanCampaign_ != null; } - } - /// Clears the value of the "keyword_plan_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanCampaign() { - keywordPlanCampaign_ = null; - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 7; - private long id_; - /// - /// Output only. The ID of the keyword plan ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 8; - private string name_; - /// - /// The name of the keyword plan ad group. - /// - /// This field is required and should not be empty when creating keyword plan - /// ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "cpc_bid_micros" field. - public const int CpcBidMicrosFieldNumber = 9; - private long cpcBidMicros_; - /// - /// A default ad group max cpc bid in micros in account currency for all - /// biddable keywords under the keyword plan ad group. - /// If not set, will inherit from parent campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidMicros_ = value; - } - } - /// Gets whether the "cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidMicros() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAdGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAdGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (KeywordPlanCampaign != other.KeywordPlanCampaign) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (CpcBidMicros != other.CpcBidMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasKeywordPlanCampaign) hash ^= KeywordPlanCampaign.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasCpcBidMicros) hash ^= CpcBidMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(50); - output.WriteString(KeywordPlanCampaign); - } - if (HasId) { - output.WriteRawTag(56); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(66); - output.WriteString(Name); - } - if (HasCpcBidMicros) { - output.WriteRawTag(72); - output.WriteInt64(CpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(50); - output.WriteString(KeywordPlanCampaign); - } - if (HasId) { - output.WriteRawTag(56); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(66); - output.WriteString(Name); - } - if (HasCpcBidMicros) { - output.WriteRawTag(72); - output.WriteInt64(CpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasKeywordPlanCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanCampaign); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasCpcBidMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAdGroup other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasKeywordPlanCampaign) { - KeywordPlanCampaign = other.KeywordPlanCampaign; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - if (other.HasCpcBidMicros) { - CpcBidMicros = other.CpcBidMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 50: { - KeywordPlanCampaign = input.ReadString(); - break; - } - case 56: { - Id = input.ReadInt64(); - break; - } - case 66: { - Name = input.ReadString(); - break; - } - case 72: { - CpcBidMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 50: { - KeywordPlanCampaign = input.ReadString(); - break; - } - case 56: { - Id = input.ReadInt64(); - break; - } - case 66: { - Name = input.ReadString(); - break; - } - case 72: { - CpcBidMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupError.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupError.g.cs deleted file mode 100755 index cb01fe7c0..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupError.g.cs +++ /dev/null @@ -1,240 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/keyword_plan_ad_group_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/keyword_plan_ad_group_error.proto - public static partial class KeywordPlanAdGroupErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/keyword_plan_ad_group_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanAdGroupErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2tleXdvcmRfcGxh", - "bl9hZF9ncm91cF9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycyJ8ChtLZXl3b3JkUGxhbkFkR3JvdXBFcnJvckVudW0iXQoX", - "S2V5d29yZFBsYW5BZEdyb3VwRXJyb3ISDwoLVU5TUEVDSUZJRUQQABILCgdV", - "TktOT1dOEAESEAoMSU5WQUxJRF9OQU1FEAISEgoORFVQTElDQVRFX05BTUUQ", - "A0L8AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCHEtl", - "eXdvcmRQbGFuQWRHcm91cEVycm9yUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lcnJv", - "cnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVy", - "cm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFcnJvcnPqAiNHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9yc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorEnum.Types.KeywordPlanAdGroupError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible errors from applying a keyword plan - /// ad group. - /// - public sealed partial class KeywordPlanAdGroupErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAdGroupErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupErrorEnum(KeywordPlanAdGroupErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupErrorEnum Clone() { - return new KeywordPlanAdGroupErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAdGroupErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAdGroupErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAdGroupErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanAdGroupErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible errors from applying a keyword plan ad group. - /// - public enum KeywordPlanAdGroupError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The keyword plan ad group name is missing, empty, longer than allowed - /// limit or contains invalid chars. - /// - [pbr::OriginalName("INVALID_NAME")] InvalidName = 2, - /// - /// The keyword plan ad group name is duplicate to an existing keyword plan - /// AdGroup name or other keyword plan AdGroup name in the request. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeyword.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeyword.g.cs deleted file mode 100755 index 5197b78e8..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeyword.g.cs +++ /dev/null @@ -1,573 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/keyword_plan_ad_group_keyword.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/keyword_plan_ad_group_keyword.proto - public static partial class KeywordPlanAdGroupKeywordReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/keyword_plan_ad_group_keyword.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanAdGroupKeywordReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRf", - "cGxhbl9hZF9ncm91cF9rZXl3b3JkLnByb3RvEiJnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMva2V5d29yZF9tYXRjaF90eXBlLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "It0EChlLZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3JkElEKDXJlc291cmNlX25h", - "bWUYASABKAlCOuBBBfpBNAoyZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tl", - "eXdvcmRQbGFuQWRHcm91cEtleXdvcmQSVAoVa2V5d29yZF9wbGFuX2FkX2dy", - "b3VwGAggASgJQjD6QS0KK2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9LZXl3", - "b3JkUGxhbkFkR3JvdXBIAIgBARIUCgJpZBgJIAEoA0ID4EEDSAGIAQESEQoE", - "dGV4dBgKIAEoCUgCiAEBElkKCm1hdGNoX3R5cGUYBSABKA4yRS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuZW51bXMuS2V5d29yZE1hdGNoVHlwZUVudW0u", - "S2V5d29yZE1hdGNoVHlwZRIbCg5jcGNfYmlkX21pY3JvcxgLIAEoA0gDiAEB", - "EhoKCG5lZ2F0aXZlGAwgASgIQgPgQQVIBIgBATqPAepBiwEKMmdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9LZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3JkElVj", - "dXN0b21lcnMve2N1c3RvbWVyX2lkfS9rZXl3b3JkUGxhbkFkR3JvdXBLZXl3", - "b3Jkcy97a2V5d29yZF9wbGFuX2FkX2dyb3VwX2tleXdvcmRfaWR9QhgKFl9r", - "ZXl3b3JkX3BsYW5fYWRfZ3JvdXBCBQoDX2lkQgcKBV90ZXh0QhEKD19jcGNf", - "YmlkX21pY3Jvc0ILCglfbmVnYXRpdmVCkAIKJmNvbS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIucmVzb3VyY2VzQh5LZXl3b3JkUGxhbkFkR3JvdXBLZXl3", - "b3JkUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xl", - "YXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogID", - "R0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdv", - "b2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword), global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword.Parser, new[]{ "ResourceName", "KeywordPlanAdGroup", "Id", "Text", "MatchType", "CpcBidMicros", "Negative" }, new[]{ "KeywordPlanAdGroup", "Id", "Text", "CpcBidMicros", "Negative" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Keyword Plan ad group keyword. - /// Max number of keyword plan keywords per plan: 10000. - /// - public sealed partial class KeywordPlanAdGroupKeyword : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAdGroupKeyword()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeywordReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeyword() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeyword(KeywordPlanAdGroupKeyword other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - keywordPlanAdGroup_ = other.keywordPlanAdGroup_; - id_ = other.id_; - text_ = other.text_; - matchType_ = other.matchType_; - cpcBidMicros_ = other.cpcBidMicros_; - negative_ = other.negative_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeyword Clone() { - return new KeywordPlanAdGroupKeyword(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the Keyword Plan ad group keyword. - /// KeywordPlanAdGroupKeyword resource names have the form: - /// - /// `customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "keyword_plan_ad_group" field. - public const int KeywordPlanAdGroupFieldNumber = 8; - private string keywordPlanAdGroup_; - /// - /// The Keyword Plan ad group to which this keyword belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanAdGroup { - get { return keywordPlanAdGroup_ ?? ""; } - set { - keywordPlanAdGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanAdGroup { - get { return keywordPlanAdGroup_ != null; } - } - /// Clears the value of the "keyword_plan_ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanAdGroup() { - keywordPlanAdGroup_ = null; - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 9; - private long id_; - /// - /// Output only. The ID of the Keyword Plan keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 10; - private string text_; - /// - /// The keyword text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "match_type" field. - public const int MatchTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType matchType_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified; - /// - /// The keyword match type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType MatchType { - get { return matchType_; } - set { - matchType_ = value; - } - } - - /// Field number for the "cpc_bid_micros" field. - public const int CpcBidMicrosFieldNumber = 11; - private long cpcBidMicros_; - /// - /// A keyword level max cpc bid in micros (for example, $1 = 1mm). The currency - /// is the same as the account currency code. This will override any CPC bid - /// set at the keyword plan ad group level. Not applicable for negative - /// keywords. (negative = true) This field is Optional. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidMicros_ = value; - } - } - /// Gets whether the "cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "negative" field. - public const int NegativeFieldNumber = 12; - private bool negative_; - /// - /// Immutable. If true, the keyword is negative. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Negative { - get { if ((_hasBits0 & 4) != 0) { return negative_; } else { return false; } } - set { - _hasBits0 |= 4; - negative_ = value; - } - } - /// Gets whether the "negative" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNegative { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "negative" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNegative() { - _hasBits0 &= ~4; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAdGroupKeyword); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAdGroupKeyword other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (KeywordPlanAdGroup != other.KeywordPlanAdGroup) return false; - if (Id != other.Id) return false; - if (Text != other.Text) return false; - if (MatchType != other.MatchType) return false; - if (CpcBidMicros != other.CpcBidMicros) return false; - if (Negative != other.Negative) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasKeywordPlanAdGroup) hash ^= KeywordPlanAdGroup.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasText) hash ^= Text.GetHashCode(); - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) hash ^= MatchType.GetHashCode(); - if (HasCpcBidMicros) hash ^= CpcBidMicros.GetHashCode(); - if (HasNegative) hash ^= Negative.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) MatchType); - } - if (HasKeywordPlanAdGroup) { - output.WriteRawTag(66); - output.WriteString(KeywordPlanAdGroup); - } - if (HasId) { - output.WriteRawTag(72); - output.WriteInt64(Id); - } - if (HasText) { - output.WriteRawTag(82); - output.WriteString(Text); - } - if (HasCpcBidMicros) { - output.WriteRawTag(88); - output.WriteInt64(CpcBidMicros); - } - if (HasNegative) { - output.WriteRawTag(96); - output.WriteBool(Negative); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) MatchType); - } - if (HasKeywordPlanAdGroup) { - output.WriteRawTag(66); - output.WriteString(KeywordPlanAdGroup); - } - if (HasId) { - output.WriteRawTag(72); - output.WriteInt64(Id); - } - if (HasText) { - output.WriteRawTag(82); - output.WriteString(Text); - } - if (HasCpcBidMicros) { - output.WriteRawTag(88); - output.WriteInt64(CpcBidMicros); - } - if (HasNegative) { - output.WriteRawTag(96); - output.WriteBool(Negative); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasKeywordPlanAdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanAdGroup); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MatchType); - } - if (HasCpcBidMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidMicros); - } - if (HasNegative) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAdGroupKeyword other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasKeywordPlanAdGroup) { - KeywordPlanAdGroup = other.KeywordPlanAdGroup; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasText) { - Text = other.Text; - } - if (other.MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - MatchType = other.MatchType; - } - if (other.HasCpcBidMicros) { - CpcBidMicros = other.CpcBidMicros; - } - if (other.HasNegative) { - Negative = other.Negative; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - MatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 66: { - KeywordPlanAdGroup = input.ReadString(); - break; - } - case 72: { - Id = input.ReadInt64(); - break; - } - case 82: { - Text = input.ReadString(); - break; - } - case 88: { - CpcBidMicros = input.ReadInt64(); - break; - } - case 96: { - Negative = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - MatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 66: { - KeywordPlanAdGroup = input.ReadString(); - break; - } - case 72: { - Id = input.ReadInt64(); - break; - } - case 82: { - Text = input.ReadString(); - break; - } - case 88: { - CpcBidMicros = input.ReadInt64(); - break; - } - case 96: { - Negative = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordError.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordError.g.cs deleted file mode 100755 index 24f7ab664..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordError.g.cs +++ /dev/null @@ -1,270 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/keyword_plan_ad_group_keyword_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/keyword_plan_ad_group_keyword_error.proto - public static partial class KeywordPlanAdGroupKeywordErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/keyword_plan_ad_group_keyword_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanAdGroupKeywordErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2tleXdvcmRfcGxh", - "bl9hZF9ncm91cF9rZXl3b3JkX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZXJyb3JzItQCCiJLZXl3b3JkUGxhbkFkR3JvdXBLZXl3", - "b3JkRXJyb3JFbnVtIq0CCh5LZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3JkRXJy", - "b3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESHgoaSU5WQUxJRF9L", - "RVlXT1JEX01BVENIX1RZUEUQAhIVChFEVVBMSUNBVEVfS0VZV09SRBADEhkK", - "FUtFWVdPUkRfVEVYVF9UT09fTE9ORxAEEh0KGUtFWVdPUkRfSEFTX0lOVkFM", - "SURfQ0hBUlMQBRIeChpLRVlXT1JEX0hBU19UT09fTUFOWV9XT1JEUxAGEhgK", - "FElOVkFMSURfS0VZV09SRF9URVhUEAcSIAocTkVHQVRJVkVfS0VZV09SRF9I", - "QVNfQ1BDX0JJRBAIEiAKHE5FV19CTU1fS0VZV09SRFNfTk9UX0FMTE9XRUQQ", - "CUKDAgojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJvcnNCI0tl", - "eXdvcmRQbGFuQWRHcm91cEtleXdvcmRFcnJvclByb3RvUAFaRWdvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz", - "6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorEnum.Types.KeywordPlanAdGroupKeywordError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible errors from applying an ad group - /// keyword or a campaign keyword from a keyword plan. - /// - public sealed partial class KeywordPlanAdGroupKeywordErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAdGroupKeywordErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanAdGroupKeywordErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeywordErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeywordErrorEnum(KeywordPlanAdGroupKeywordErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeywordErrorEnum Clone() { - return new KeywordPlanAdGroupKeywordErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAdGroupKeywordErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAdGroupKeywordErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAdGroupKeywordErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanAdGroupKeywordErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible errors from applying a keyword plan ad group - /// keyword or keyword plan campaign keyword. - /// - public enum KeywordPlanAdGroupKeywordError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A keyword or negative keyword has invalid match type. - /// - [pbr::OriginalName("INVALID_KEYWORD_MATCH_TYPE")] InvalidKeywordMatchType = 2, - /// - /// A keyword or negative keyword with same text and match type already - /// exists. - /// - [pbr::OriginalName("DUPLICATE_KEYWORD")] DuplicateKeyword = 3, - /// - /// Keyword or negative keyword text exceeds the allowed limit. - /// - [pbr::OriginalName("KEYWORD_TEXT_TOO_LONG")] KeywordTextTooLong = 4, - /// - /// Keyword or negative keyword text has invalid characters or symbols. - /// - [pbr::OriginalName("KEYWORD_HAS_INVALID_CHARS")] KeywordHasInvalidChars = 5, - /// - /// Keyword or negative keyword text has too many words. - /// - [pbr::OriginalName("KEYWORD_HAS_TOO_MANY_WORDS")] KeywordHasTooManyWords = 6, - /// - /// Keyword or negative keyword has invalid text. - /// - [pbr::OriginalName("INVALID_KEYWORD_TEXT")] InvalidKeywordText = 7, - /// - /// Cpc Bid set for negative keyword. - /// - [pbr::OriginalName("NEGATIVE_KEYWORD_HAS_CPC_BID")] NegativeKeywordHasCpcBid = 8, - /// - /// New broad match modifier (BMM) KpAdGroupKeywords are not allowed. - /// - [pbr::OriginalName("NEW_BMM_KEYWORDS_NOT_ALLOWED")] NewBmmKeywordsNotAllowed = 9, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordResourceNames.g.cs deleted file mode 100755 index 12ef69f88..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordResourceNames.g.cs +++ /dev/null @@ -1,310 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the KeywordPlanAdGroupKeyword resource. - public sealed partial class KeywordPlanAdGroupKeywordName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}. - /// - CustomerKeywordPlanAdGroupKeyword = 1, - } - - private static gax::PathTemplate s_customerKeywordPlanAdGroupKeyword = new gax::PathTemplate("customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static KeywordPlanAdGroupKeywordName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new KeywordPlanAdGroupKeywordName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroupKeyword ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static KeywordPlanAdGroupKeywordName FromCustomerKeywordPlanAdGroupKeyword(string customerId, string keywordPlanAdGroupKeywordId) => - new KeywordPlanAdGroupKeywordName(ResourceNameType.CustomerKeywordPlanAdGroupKeyword, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanAdGroupKeywordId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanAdGroupKeywordId, nameof(keywordPlanAdGroupKeywordId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroupKeyword ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}. - /// - public static string Format(string customerId, string keywordPlanAdGroupKeywordId) => - FormatCustomerKeywordPlanAdGroupKeyword(customerId, keywordPlanAdGroupKeywordId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroupKeyword ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}. - /// - public static string FormatCustomerKeywordPlanAdGroupKeyword(string customerId, string keywordPlanAdGroupKeywordId) => - s_customerKeywordPlanAdGroupKeyword.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanAdGroupKeywordId, nameof(keywordPlanAdGroupKeywordId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static KeywordPlanAdGroupKeywordName Parse(string keywordPlanAdGroupKeywordName) => - Parse(keywordPlanAdGroupKeywordName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static KeywordPlanAdGroupKeywordName Parse(string keywordPlanAdGroupKeywordName, bool allowUnparsed) => - TryParse(keywordPlanAdGroupKeywordName, allowUnparsed, out KeywordPlanAdGroupKeywordName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanAdGroupKeywordName, out KeywordPlanAdGroupKeywordName result) => - TryParse(keywordPlanAdGroupKeywordName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanAdGroupKeywordName, bool allowUnparsed, out KeywordPlanAdGroupKeywordName result) - { - gax::GaxPreconditions.CheckNotNull(keywordPlanAdGroupKeywordName, nameof(keywordPlanAdGroupKeywordName)); - gax::TemplatedResourceName resourceName; - if (s_customerKeywordPlanAdGroupKeyword.TryParseName(keywordPlanAdGroupKeywordName, out resourceName)) - { - result = FromCustomerKeywordPlanAdGroupKeyword(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(keywordPlanAdGroupKeywordName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private KeywordPlanAdGroupKeywordName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string keywordPlanAdGroupKeywordId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - KeywordPlanAdGroupKeywordId = keywordPlanAdGroupKeywordId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroupKeyword ID. Must not be null or empty. - /// - public KeywordPlanAdGroupKeywordName(string customerId, string keywordPlanAdGroupKeywordId) : this(ResourceNameType.CustomerKeywordPlanAdGroupKeyword, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanAdGroupKeywordId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanAdGroupKeywordId, nameof(keywordPlanAdGroupKeywordId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The KeywordPlanAdGroupKeyword ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string KeywordPlanAdGroupKeywordId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerKeywordPlanAdGroupKeyword: return s_customerKeywordPlanAdGroupKeyword.Expand(CustomerId, KeywordPlanAdGroupKeywordId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as KeywordPlanAdGroupKeywordName); - - /// - public bool Equals(KeywordPlanAdGroupKeywordName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(KeywordPlanAdGroupKeywordName a, KeywordPlanAdGroupKeywordName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(KeywordPlanAdGroupKeywordName a, KeywordPlanAdGroupKeywordName b) => !(a == b); - } - - public partial class KeywordPlanAdGroupKeyword - { - /// - /// -typed view over the resource name - /// property. - /// - internal KeywordPlanAdGroupKeywordName ResourceNameAsKeywordPlanAdGroupKeywordName - { - get => string.IsNullOrEmpty(ResourceName) ? null : KeywordPlanAdGroupKeywordName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal KeywordPlanAdGroupName KeywordPlanAdGroupAsKeywordPlanAdGroupName - { - get => string.IsNullOrEmpty(KeywordPlanAdGroup) ? null : KeywordPlanAdGroupName.Parse(KeywordPlanAdGroup, allowUnparsed: true); - set => KeywordPlanAdGroup = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordService.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordService.g.cs deleted file mode 100755 index d19bcfe18..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordService.g.cs +++ /dev/null @@ -1,1222 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_ad_group_keyword_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/keyword_plan_ad_group_keyword_service.proto - public static partial class KeywordPlanAdGroupKeywordServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/keyword_plan_ad_group_keyword_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanAdGroupKeywordServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ck1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMva2V5d29yZF9w", - "bGFuX2FkX2dyb3VwX2tleXdvcmRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzGkZnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2tleXdvcmRfcGxhbl9hZF9ncm91cF9rZXl3b3Jk", - "LnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUv", - "YXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5w", - "cm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3Rv", - "YnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3Rv", - "ItMBCidNdXRhdGVLZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3Jkc1JlcXVlc3QS", - "GAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhJeCgpvcGVyYXRpb25zGAIgAygL", - "MkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLktleXdvcmRQ", - "bGFuQWRHcm91cEtleXdvcmRPcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2Zh", - "aWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCCLPAgoiS2V5d29y", - "ZFBsYW5BZEdyb3VwS2V5d29yZE9wZXJhdGlvbhIvCgt1cGRhdGVfbWFzaxgE", - "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSTwoGY3JlYXRlGAEg", - "ASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5LZXl3", - "b3JkUGxhbkFkR3JvdXBLZXl3b3JkSAASTwoGdXBkYXRlGAIgASgLMj0uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5LZXl3b3JkUGxhbkFk", - "R3JvdXBLZXl3b3JkSAASSQoGcmVtb3ZlGAMgASgJQjf6QTQKMmdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9LZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3JkSABC", - "CwoJb3BlcmF0aW9uIrgBCihNdXRhdGVLZXl3b3JkUGxhbkFkR3JvdXBLZXl3", - "b3Jkc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9lcnJvchgDIAEoCzIS", - "Lmdvb2dsZS5ycGMuU3RhdHVzElkKB3Jlc3VsdHMYAiADKAsySC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuTXV0YXRlS2V5d29yZFBsYW5B", - "ZEdyb3VwS2V5d29yZFJlc3VsdCJ3CiVNdXRhdGVLZXl3b3JkUGxhbkFkR3Jv", - "dXBLZXl3b3JkUmVzdWx0Ek4KDXJlc291cmNlX25hbWUYASABKAlCN/pBNAoy", - "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFuQWRHcm91cEtl", - "eXdvcmQyjQMKIEtleXdvcmRQbGFuQWRHcm91cEtleXdvcmRTZXJ2aWNlEqEC", - "CiBNdXRhdGVLZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3JkcxJKLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbkFk", - "R3JvdXBLZXl3b3Jkc1JlcXVlc3QaSy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuTXV0YXRlS2V5d29yZFBsYW5BZEdyb3VwS2V5d29yZHNS", - "ZXNwb25zZSJkgtPkkwJFIkAvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9", - "Kn0va2V5d29yZFBsYW5BZEdyb3VwS2V5d29yZHM6bXV0YXRlOgEq2kEWY3Vz", - "dG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", - "Y29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9hZHdvcmRz", - "QpECCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzQiVL", - "ZXl3b3JkUGxhbkFkR3JvdXBLZXl3b3JkU2VydmljZVByb3RvUAFaSWdvb2ds", - "ZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFk", - "cy92MTIvc2VydmljZXM7c2VydmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdv", - "b2dsZUFkcy5WMTIuU2VydmljZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTJcU2VydmljZXPqAiVHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlNl", - "cnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeywordReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords][google.ads.googleads.v12.services.KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords]. - /// - public sealed partial class MutateKeywordPlanAdGroupKeywordsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanAdGroupKeywordsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordsRequest(MutateKeywordPlanAdGroupKeywordsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordsRequest Clone() { - return new MutateKeywordPlanAdGroupKeywordsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose Keyword Plan ad group keywords are being - /// modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual Keyword Plan ad group - /// keywords. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanAdGroupKeywordsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanAdGroupKeywordsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanAdGroupKeywordsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a Keyword Plan ad group - /// keyword. - /// - public sealed partial class KeywordPlanAdGroupKeywordOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAdGroupKeywordOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeywordOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeywordOperation(KeywordPlanAdGroupKeywordOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupKeywordOperation Clone() { - return new KeywordPlanAdGroupKeywordOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// The FieldMask that determines which resource fields are modified in an - /// update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new Keyword Plan - /// ad group keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The Keyword Plan ad group keyword is expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed Keyword Plan ad group - /// keyword is expected, in this format: - /// - /// `customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAdGroupKeywordOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAdGroupKeywordOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAdGroupKeywordOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupKeyword(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a Keyword Plan ad group keyword mutate. - /// - public sealed partial class MutateKeywordPlanAdGroupKeywordsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanAdGroupKeywordsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordsResponse(MutateKeywordPlanAdGroupKeywordsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordsResponse Clone() { - return new MutateKeywordPlanAdGroupKeywordsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanAdGroupKeywordsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanAdGroupKeywordsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanAdGroupKeywordsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the Keyword Plan ad group keyword mutate. - /// - public sealed partial class MutateKeywordPlanAdGroupKeywordResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanAdGroupKeywordResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordResult(MutateKeywordPlanAdGroupKeywordResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupKeywordResult Clone() { - return new MutateKeywordPlanAdGroupKeywordResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanAdGroupKeywordResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanAdGroupKeywordResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanAdGroupKeywordResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceClient.g.cs deleted file mode 100755 index f5ab01bf9..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceClient.g.cs +++ /dev/null @@ -1,501 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class KeywordPlanAdGroupKeywordServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static KeywordPlanAdGroupKeywordServiceSettings GetDefault() => new KeywordPlanAdGroupKeywordServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public KeywordPlanAdGroupKeywordServiceSettings() - { - } - - private KeywordPlanAdGroupKeywordServiceSettings(KeywordPlanAdGroupKeywordServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateKeywordPlanAdGroupKeywordsSettings = existing.MutateKeywordPlanAdGroupKeywordsSettings; - OnCopy(existing); - } - - partial void OnCopy(KeywordPlanAdGroupKeywordServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanAdGroupKeywordServiceClient.MutateKeywordPlanAdGroupKeywords and - /// KeywordPlanAdGroupKeywordServiceClient.MutateKeywordPlanAdGroupKeywordsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateKeywordPlanAdGroupKeywordsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public KeywordPlanAdGroupKeywordServiceSettings Clone() => new KeywordPlanAdGroupKeywordServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class KeywordPlanAdGroupKeywordServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public KeywordPlanAdGroupKeywordServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public KeywordPlanAdGroupKeywordServiceClientBuilder() : base(KeywordPlanAdGroupKeywordServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref KeywordPlanAdGroupKeywordServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override KeywordPlanAdGroupKeywordServiceClient Build() - { - KeywordPlanAdGroupKeywordServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private KeywordPlanAdGroupKeywordServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return KeywordPlanAdGroupKeywordServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return KeywordPlanAdGroupKeywordServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => KeywordPlanAdGroupKeywordServiceClient.ChannelPool; - } - - /// KeywordPlanAdGroupKeywordService client wrapper, for convenient use. - /// - /// Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is - /// required to add ad group keywords. Positive and negative keywords are - /// supported. A maximum of 10,000 positive keywords are allowed per keyword - /// plan. A maximum of 1,000 negative keywords are allower per keyword plan. This - /// includes campaign negative keywords and ad group negative keywords. - /// - public abstract partial class KeywordPlanAdGroupKeywordServiceClient - { - /// - /// The default endpoint for the KeywordPlanAdGroupKeywordService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default KeywordPlanAdGroupKeywordService scopes. - /// - /// The default KeywordPlanAdGroupKeywordService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(KeywordPlanAdGroupKeywordService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new KeywordPlanAdGroupKeywordServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static KeywordPlanAdGroupKeywordServiceClient Create() => - new KeywordPlanAdGroupKeywordServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static KeywordPlanAdGroupKeywordServiceClient Create(grpccore::CallInvoker callInvoker, KeywordPlanAdGroupKeywordServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - KeywordPlanAdGroupKeywordService.KeywordPlanAdGroupKeywordServiceClient grpcClient = new KeywordPlanAdGroupKeywordService.KeywordPlanAdGroupKeywordServiceClient(callInvoker); - return new KeywordPlanAdGroupKeywordServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC KeywordPlanAdGroupKeywordService client - public virtual KeywordPlanAdGroupKeywordService.KeywordPlanAdGroupKeywordServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanAdGroupKeywordsResponse MutateKeywordPlanAdGroupKeywords(MutateKeywordPlanAdGroupKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupKeywordsAsync(MutateKeywordPlanAdGroupKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupKeywordsAsync(MutateKeywordPlanAdGroupKeywordsRequest request, st::CancellationToken cancellationToken) => - MutateKeywordPlanAdGroupKeywordsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan ad group keywords are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan ad group - /// keywords. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanAdGroupKeywordsResponse MutateKeywordPlanAdGroupKeywords(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanAdGroupKeywords(new MutateKeywordPlanAdGroupKeywordsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan ad group keywords are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan ad group - /// keywords. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupKeywordsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanAdGroupKeywordsAsync(new MutateKeywordPlanAdGroupKeywordsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan ad group keywords are being - /// modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan ad group - /// keywords. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupKeywordsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateKeywordPlanAdGroupKeywordsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// KeywordPlanAdGroupKeywordService client wrapper implementation, for convenient use. - /// - /// Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is - /// required to add ad group keywords. Positive and negative keywords are - /// supported. A maximum of 10,000 positive keywords are allowed per keyword - /// plan. A maximum of 1,000 negative keywords are allower per keyword plan. This - /// includes campaign negative keywords and ad group negative keywords. - /// - public sealed partial class KeywordPlanAdGroupKeywordServiceClientImpl : KeywordPlanAdGroupKeywordServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateKeywordPlanAdGroupKeywords; - - /// - /// Constructs a client wrapper for the KeywordPlanAdGroupKeywordService service, with the specified gRPC client - /// and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public KeywordPlanAdGroupKeywordServiceClientImpl(KeywordPlanAdGroupKeywordService.KeywordPlanAdGroupKeywordServiceClient grpcClient, KeywordPlanAdGroupKeywordServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - KeywordPlanAdGroupKeywordServiceSettings effectiveSettings = settings ?? KeywordPlanAdGroupKeywordServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateKeywordPlanAdGroupKeywords = clientHelper.BuildApiCall("MutateKeywordPlanAdGroupKeywords", grpcClient.MutateKeywordPlanAdGroupKeywordsAsync, grpcClient.MutateKeywordPlanAdGroupKeywords, effectiveSettings.MutateKeywordPlanAdGroupKeywordsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateKeywordPlanAdGroupKeywords); - Modify_MutateKeywordPlanAdGroupKeywordsApiCall(ref _callMutateKeywordPlanAdGroupKeywords); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateKeywordPlanAdGroupKeywordsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(KeywordPlanAdGroupKeywordService.KeywordPlanAdGroupKeywordServiceClient grpcClient, KeywordPlanAdGroupKeywordServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC KeywordPlanAdGroupKeywordService client - public override KeywordPlanAdGroupKeywordService.KeywordPlanAdGroupKeywordServiceClient GrpcClient { get; } - - partial void Modify_MutateKeywordPlanAdGroupKeywordsRequest(ref MutateKeywordPlanAdGroupKeywordsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateKeywordPlanAdGroupKeywordsResponse MutateKeywordPlanAdGroupKeywords(MutateKeywordPlanAdGroupKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanAdGroupKeywordsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanAdGroupKeywords.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateKeywordPlanAdGroupKeywordsAsync(MutateKeywordPlanAdGroupKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanAdGroupKeywordsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanAdGroupKeywords.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceGrpc.g.cs deleted file mode 100755 index 8a679698e..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceGrpc.g.cs +++ /dev/null @@ -1,286 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_ad_group_keyword_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is - /// required to add ad group keywords. Positive and negative keywords are - /// supported. A maximum of 10,000 positive keywords are allowed per keyword - /// plan. A maximum of 1,000 negative keywords are allower per keyword plan. This - /// includes campaign negative keywords and ad group negative keywords. - /// - public static partial class KeywordPlanAdGroupKeywordService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.KeywordPlanAdGroupKeywordService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupKeywordsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupKeywordsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateKeywordPlanAdGroupKeywords = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateKeywordPlanAdGroupKeywords", - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupKeywordsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupKeywordsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of KeywordPlanAdGroupKeywordService - [grpc::BindServiceMethod(typeof(KeywordPlanAdGroupKeywordService), "BindService")] - public abstract partial class KeywordPlanAdGroupKeywordServiceBase - { - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateKeywordPlanAdGroupKeywords(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for KeywordPlanAdGroupKeywordService - public partial class KeywordPlanAdGroupKeywordServiceClient : grpc::ClientBase - { - /// Creates a new client for KeywordPlanAdGroupKeywordService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanAdGroupKeywordServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for KeywordPlanAdGroupKeywordService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanAdGroupKeywordServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanAdGroupKeywordServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanAdGroupKeywordServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsResponse MutateKeywordPlanAdGroupKeywords(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanAdGroupKeywords(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsResponse MutateKeywordPlanAdGroupKeywords(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateKeywordPlanAdGroupKeywords, null, options, request); - } - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanAdGroupKeywordsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanAdGroupKeywordsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan ad group keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanAdGroupKeywordsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupKeywordsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateKeywordPlanAdGroupKeywords, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override KeywordPlanAdGroupKeywordServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new KeywordPlanAdGroupKeywordServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(KeywordPlanAdGroupKeywordServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateKeywordPlanAdGroupKeywords, serviceImpl.MutateKeywordPlanAdGroupKeywords).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, KeywordPlanAdGroupKeywordServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateKeywordPlanAdGroupKeywords, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateKeywordPlanAdGroupKeywords)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceResourceNames.g.cs deleted file mode 100755 index 3430187b9..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupKeywordServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class KeywordPlanAdGroupKeywordOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::KeywordPlanAdGroupKeywordName RemoveAsKeywordPlanAdGroupKeywordName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::KeywordPlanAdGroupKeywordName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateKeywordPlanAdGroupKeywordResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::KeywordPlanAdGroupKeywordName ResourceNameAsKeywordPlanAdGroupKeywordName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanAdGroupKeywordName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupResourceNames.g.cs deleted file mode 100755 index 65b49e856..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupResourceNames.g.cs +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the KeywordPlanAdGroup resource. - public sealed partial class KeywordPlanAdGroupName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id} - /// . - /// - CustomerKeywordPlanAdGroup = 1, - } - - private static gax::PathTemplate s_customerKeywordPlanAdGroup = new gax::PathTemplate("customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static KeywordPlanAdGroupName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new KeywordPlanAdGroupName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroup ID. Must not be null or empty. - /// - /// A new instance of constructed from the provided ids. - public static KeywordPlanAdGroupName FromCustomerKeywordPlanAdGroup(string customerId, string keywordPlanAdGroupId) => - new KeywordPlanAdGroupName(ResourceNameType.CustomerKeywordPlanAdGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanAdGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanAdGroupId, nameof(keywordPlanAdGroupId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroup ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}. - /// - public static string Format(string customerId, string keywordPlanAdGroupId) => - FormatCustomerKeywordPlanAdGroup(customerId, keywordPlanAdGroupId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroup ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}. - /// - public static string FormatCustomerKeywordPlanAdGroup(string customerId, string keywordPlanAdGroupId) => - s_customerKeywordPlanAdGroup.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanAdGroupId, nameof(keywordPlanAdGroupId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static KeywordPlanAdGroupName Parse(string keywordPlanAdGroupName) => Parse(keywordPlanAdGroupName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static KeywordPlanAdGroupName Parse(string keywordPlanAdGroupName, bool allowUnparsed) => - TryParse(keywordPlanAdGroupName, allowUnparsed, out KeywordPlanAdGroupName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanAdGroupName, out KeywordPlanAdGroupName result) => - TryParse(keywordPlanAdGroupName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanAdGroupName, bool allowUnparsed, out KeywordPlanAdGroupName result) - { - gax::GaxPreconditions.CheckNotNull(keywordPlanAdGroupName, nameof(keywordPlanAdGroupName)); - gax::TemplatedResourceName resourceName; - if (s_customerKeywordPlanAdGroup.TryParseName(keywordPlanAdGroupName, out resourceName)) - { - result = FromCustomerKeywordPlanAdGroup(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(keywordPlanAdGroupName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private KeywordPlanAdGroupName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string keywordPlanAdGroupId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - KeywordPlanAdGroupId = keywordPlanAdGroupId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanAdGroup ID. Must not be null or empty. - /// - public KeywordPlanAdGroupName(string customerId, string keywordPlanAdGroupId) : this(ResourceNameType.CustomerKeywordPlanAdGroup, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanAdGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanAdGroupId, nameof(keywordPlanAdGroupId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The KeywordPlanAdGroup ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string KeywordPlanAdGroupId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerKeywordPlanAdGroup: return s_customerKeywordPlanAdGroup.Expand(CustomerId, KeywordPlanAdGroupId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as KeywordPlanAdGroupName); - - /// - public bool Equals(KeywordPlanAdGroupName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(KeywordPlanAdGroupName a, KeywordPlanAdGroupName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(KeywordPlanAdGroupName a, KeywordPlanAdGroupName b) => !(a == b); - } - - public partial class KeywordPlanAdGroup - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::KeywordPlanAdGroupName ResourceNameAsKeywordPlanAdGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanAdGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal KeywordPlanCampaignName KeywordPlanCampaignAsKeywordPlanCampaignName - { - get => string.IsNullOrEmpty(KeywordPlanCampaign) ? null : KeywordPlanCampaignName.Parse(KeywordPlanCampaign, allowUnparsed: true); - set => KeywordPlanCampaign = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanAdGroupName KeywordPlanAdGroupName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::KeywordPlanAdGroupName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupService.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupService.g.cs deleted file mode 100755 index 8e6233c94..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupService.g.cs +++ /dev/null @@ -1,1216 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_ad_group_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/keyword_plan_ad_group_service.proto - public static partial class KeywordPlanAdGroupServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/keyword_plan_ad_group_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanAdGroupServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMva2V5d29yZF9w", - "bGFuX2FkX2dyb3VwX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcy9rZXl3b3JkX3BsYW5fYWRfZ3JvdXAucHJvdG8aHGdvb2dsZS9h", - "cGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3Rv", - "Gh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBp", - "L3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5w", - "cm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8ixQEKIE11dGF0ZUtleXdv", - "cmRQbGFuQWRHcm91cHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPg", - "QQISVwoKb3BlcmF0aW9ucxgCIAMoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5LZXl3b3JkUGxhbkFkR3JvdXBPcGVyYXRpb25CA+BB", - "AhIXCg9wYXJ0aWFsX2ZhaWx1cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgE", - "IAEoCCKzAgobS2V5d29yZFBsYW5BZEdyb3VwT3BlcmF0aW9uEi8KC3VwZGF0", - "ZV9tYXNrGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJICgZj", - "cmVhdGUYASABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3Vy", - "Y2VzLktleXdvcmRQbGFuQWRHcm91cEgAEkgKBnVwZGF0ZRgCIAEoCzI2Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuS2V5d29yZFBsYW5B", - "ZEdyb3VwSAASQgoGcmVtb3ZlGAMgASgJQjD6QS0KK2dvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9LZXl3b3JkUGxhbkFkR3JvdXBIAEILCglvcGVyYXRpb24i", - "qgEKIU11dGF0ZUtleXdvcmRQbGFuQWRHcm91cHNSZXNwb25zZRIxChVwYXJ0", - "aWFsX2ZhaWx1cmVfZXJyb3IYAyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJS", - "CgdyZXN1bHRzGAIgAygLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLk11dGF0ZUtleXdvcmRQbGFuQWRHcm91cFJlc3VsdCJpCh5NdXRh", - "dGVLZXl3b3JkUGxhbkFkR3JvdXBSZXN1bHQSRwoNcmVzb3VyY2VfbmFtZRgB", - "IAEoCUIw+kEtCitnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vS2V5d29yZFBs", - "YW5BZEdyb3VwMuoCChlLZXl3b3JkUGxhbkFkR3JvdXBTZXJ2aWNlEoUCChlN", - "dXRhdGVLZXl3b3JkUGxhbkFkR3JvdXBzEkMuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLnNlcnZpY2VzLk11dGF0ZUtleXdvcmRQbGFuQWRHcm91cHNSZXF1", - "ZXN0GkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0", - "ZUtleXdvcmRQbGFuQWRHcm91cHNSZXNwb25zZSJdgtPkkwI+IjkvdjEyL2N1", - "c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0va2V5d29yZFBsYW5BZEdyb3Vwczpt", - "dXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRpb25zGkXKQRhnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNv", - "bS9hdXRoL2Fkd29yZHNCigIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXNCHktleXdvcmRQbGFuQWRHcm91cFNlcnZpY2VQcm90b1AB", - "Wklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", - "b29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29n", - "bGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6", - "VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroupReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [KeywordPlanAdGroupService.MutateKeywordPlanAdGroups][google.ads.googleads.v12.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups]. - /// - public sealed partial class MutateKeywordPlanAdGroupsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanAdGroupsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupsRequest(MutateKeywordPlanAdGroupsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupsRequest Clone() { - return new MutateKeywordPlanAdGroupsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose Keyword Plan ad groups are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual Keyword Plan ad groups. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanAdGroupsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanAdGroupsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanAdGroupsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a Keyword Plan ad group. - /// - public sealed partial class KeywordPlanAdGroupOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAdGroupOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupOperation(KeywordPlanAdGroupOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupOperation Clone() { - return new KeywordPlanAdGroupOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// The FieldMask that determines which resource fields are modified in an - /// update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new Keyword Plan - /// ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The Keyword Plan ad group is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed Keyword Plan ad group - /// is expected, in this format: - /// - /// `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAdGroupOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAdGroupOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAdGroupOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanAdGroup(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a Keyword Plan ad group mutate. - /// - public sealed partial class MutateKeywordPlanAdGroupsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanAdGroupsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupsResponse(MutateKeywordPlanAdGroupsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupsResponse Clone() { - return new MutateKeywordPlanAdGroupsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. The order of the results is determined by the - /// order of the keywords in the original request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanAdGroupsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanAdGroupsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanAdGroupsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the Keyword Plan ad group mutate. - /// - public sealed partial class MutateKeywordPlanAdGroupResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanAdGroupResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupResult(MutateKeywordPlanAdGroupResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanAdGroupResult Clone() { - return new MutateKeywordPlanAdGroupResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanAdGroupResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanAdGroupResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanAdGroupResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceClient.g.cs deleted file mode 100755 index 26baa8601..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceClient.g.cs +++ /dev/null @@ -1,502 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class KeywordPlanAdGroupServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static KeywordPlanAdGroupServiceSettings GetDefault() => new KeywordPlanAdGroupServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public KeywordPlanAdGroupServiceSettings() - { - } - - private KeywordPlanAdGroupServiceSettings(KeywordPlanAdGroupServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateKeywordPlanAdGroupsSettings = existing.MutateKeywordPlanAdGroupsSettings; - OnCopy(existing); - } - - partial void OnCopy(KeywordPlanAdGroupServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanAdGroupServiceClient.MutateKeywordPlanAdGroups and - /// KeywordPlanAdGroupServiceClient.MutateKeywordPlanAdGroupsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateKeywordPlanAdGroupsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public KeywordPlanAdGroupServiceSettings Clone() => new KeywordPlanAdGroupServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class KeywordPlanAdGroupServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public KeywordPlanAdGroupServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public KeywordPlanAdGroupServiceClientBuilder() : base(KeywordPlanAdGroupServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref KeywordPlanAdGroupServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override KeywordPlanAdGroupServiceClient Build() - { - KeywordPlanAdGroupServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private KeywordPlanAdGroupServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return KeywordPlanAdGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return KeywordPlanAdGroupServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => KeywordPlanAdGroupServiceClient.ChannelPool; - } - - /// KeywordPlanAdGroupService client wrapper, for convenient use. - /// - /// Service to manage Keyword Plan ad groups. - /// - public abstract partial class KeywordPlanAdGroupServiceClient - { - /// - /// The default endpoint for the KeywordPlanAdGroupService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default KeywordPlanAdGroupService scopes. - /// - /// The default KeywordPlanAdGroupService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(KeywordPlanAdGroupService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new KeywordPlanAdGroupServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static KeywordPlanAdGroupServiceClient Create() => new KeywordPlanAdGroupServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static KeywordPlanAdGroupServiceClient Create(grpccore::CallInvoker callInvoker, KeywordPlanAdGroupServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - KeywordPlanAdGroupService.KeywordPlanAdGroupServiceClient grpcClient = new KeywordPlanAdGroupService.KeywordPlanAdGroupServiceClient(callInvoker); - return new KeywordPlanAdGroupServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC KeywordPlanAdGroupService client - public virtual KeywordPlanAdGroupService.KeywordPlanAdGroupServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanAdGroupsResponse MutateKeywordPlanAdGroups(MutateKeywordPlanAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupsAsync(MutateKeywordPlanAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupsAsync(MutateKeywordPlanAdGroupsRequest request, st::CancellationToken cancellationToken) => - MutateKeywordPlanAdGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan ad groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan ad groups. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanAdGroupsResponse MutateKeywordPlanAdGroups(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanAdGroups(new MutateKeywordPlanAdGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan ad groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan ad groups. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanAdGroupsAsync(new MutateKeywordPlanAdGroupsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan ad groups are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan ad groups. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanAdGroupsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateKeywordPlanAdGroupsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// KeywordPlanAdGroupService client wrapper implementation, for convenient use. - /// - /// Service to manage Keyword Plan ad groups. - /// - public sealed partial class KeywordPlanAdGroupServiceClientImpl : KeywordPlanAdGroupServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateKeywordPlanAdGroups; - - /// - /// Constructs a client wrapper for the KeywordPlanAdGroupService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public KeywordPlanAdGroupServiceClientImpl(KeywordPlanAdGroupService.KeywordPlanAdGroupServiceClient grpcClient, KeywordPlanAdGroupServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - KeywordPlanAdGroupServiceSettings effectiveSettings = settings ?? KeywordPlanAdGroupServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateKeywordPlanAdGroups = clientHelper.BuildApiCall("MutateKeywordPlanAdGroups", grpcClient.MutateKeywordPlanAdGroupsAsync, grpcClient.MutateKeywordPlanAdGroups, effectiveSettings.MutateKeywordPlanAdGroupsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateKeywordPlanAdGroups); - Modify_MutateKeywordPlanAdGroupsApiCall(ref _callMutateKeywordPlanAdGroups); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateKeywordPlanAdGroupsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(KeywordPlanAdGroupService.KeywordPlanAdGroupServiceClient grpcClient, KeywordPlanAdGroupServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC KeywordPlanAdGroupService client - public override KeywordPlanAdGroupService.KeywordPlanAdGroupServiceClient GrpcClient { get; } - - partial void Modify_MutateKeywordPlanAdGroupsRequest(ref MutateKeywordPlanAdGroupsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateKeywordPlanAdGroupsResponse MutateKeywordPlanAdGroups(MutateKeywordPlanAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanAdGroupsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanAdGroups.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateKeywordPlanAdGroupsAsync(MutateKeywordPlanAdGroupsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanAdGroupsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanAdGroups.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceGrpc.g.cs deleted file mode 100755 index c530747c4..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceGrpc.g.cs +++ /dev/null @@ -1,292 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_ad_group_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage Keyword Plan ad groups. - /// - public static partial class KeywordPlanAdGroupService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.KeywordPlanAdGroupService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateKeywordPlanAdGroups = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateKeywordPlanAdGroups", - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanAdGroupsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of KeywordPlanAdGroupService - [grpc::BindServiceMethod(typeof(KeywordPlanAdGroupService), "BindService")] - public abstract partial class KeywordPlanAdGroupServiceBase - { - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateKeywordPlanAdGroups(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for KeywordPlanAdGroupService - public partial class KeywordPlanAdGroupServiceClient : grpc::ClientBase - { - /// Creates a new client for KeywordPlanAdGroupService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanAdGroupServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for KeywordPlanAdGroupService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanAdGroupServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanAdGroupServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanAdGroupServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsResponse MutateKeywordPlanAdGroups(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanAdGroups(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsResponse MutateKeywordPlanAdGroups(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateKeywordPlanAdGroups, null, options, request); - } - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanAdGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanAdGroupsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanAdGroupsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanAdGroupsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateKeywordPlanAdGroups, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override KeywordPlanAdGroupServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new KeywordPlanAdGroupServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(KeywordPlanAdGroupServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateKeywordPlanAdGroups, serviceImpl.MutateKeywordPlanAdGroups).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, KeywordPlanAdGroupServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateKeywordPlanAdGroups, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateKeywordPlanAdGroups)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceResourceNames.g.cs deleted file mode 100755 index e767d7eca..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAdGroupServiceResourceNames.g.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class KeywordPlanAdGroupOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanAdGroupName RemoveAsKeywordPlanAdGroupName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::KeywordPlanAdGroupName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateKeywordPlanAdGroupResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::KeywordPlanAdGroupName ResourceNameAsKeywordPlanAdGroupName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanAdGroupName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanAggregateMetricType.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanAggregateMetricType.g.cs deleted file mode 100755 index 8379aeb95..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanAggregateMetricType.g.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/keyword_plan_aggregate_metric_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/keyword_plan_aggregate_metric_type.proto - public static partial class KeywordPlanAggregateMetricTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/keyword_plan_aggregate_metric_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanAggregateMetricTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ckdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9wbGFu", - "X2FnZ3JlZ2F0ZV9tZXRyaWNfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmVudW1zInAKIktleXdvcmRQbGFuQWdncmVnYXRlTWV0cmlj", - "VHlwZUVudW0iSgoeS2V5d29yZFBsYW5BZ2dyZWdhdGVNZXRyaWNUeXBlEg8K", - "C1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgoKBkRFVklDRRACQv0BCiJj", - "b20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQiNLZXl3b3JkUGxh", - "bkFnZ3JlZ2F0ZU1ldHJpY1R5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "O2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1z", - "ygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanAggregateMetricTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanAggregateMetricTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanAggregateMetricTypeEnum.Types.KeywordPlanAggregateMetricType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// The enumeration of keyword plan aggregate metric types. - /// - public sealed partial class KeywordPlanAggregateMetricTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAggregateMetricTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanAggregateMetricTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetricTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetricTypeEnum(KeywordPlanAggregateMetricTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetricTypeEnum Clone() { - return new KeywordPlanAggregateMetricTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAggregateMetricTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAggregateMetricTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAggregateMetricTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanAggregateMetricTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Aggregate fields. - /// - public enum KeywordPlanAggregateMetricType { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The device breakdown of aggregate search volume. - /// - [pbr::OriginalName("DEVICE")] Device = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaign.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaign.g.cs deleted file mode 100755 index 53d205aaa..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaign.g.cs +++ /dev/null @@ -1,799 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/keyword_plan_campaign.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/keyword_plan_campaign.proto - public static partial class KeywordPlanCampaignReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/keyword_plan_campaign.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCampaignReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRf", - "cGxhbl9jYW1wYWlnbi5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEy", - "LnJlc291cmNlcxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1zL2tl", - "eXdvcmRfcGxhbl9uZXR3b3JrLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2Jl", - "aGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIqIFChNL", - "ZXl3b3JkUGxhbkNhbXBhaWduEksKDXJlc291cmNlX25hbWUYASABKAlCNOBB", - "BfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFuQ2Ft", - "cGFpZ24SRAoMa2V5d29yZF9wbGFuGAkgASgJQin6QSYKJGdvb2dsZWFkcy5n", - "b29nbGVhcGlzLmNvbS9LZXl3b3JkUGxhbkgAiAEBEhQKAmlkGAogASgDQgPg", - "QQNIAYgBARIRCgRuYW1lGAsgASgJSAKIAQESSgoSbGFuZ3VhZ2VfY29uc3Rh", - "bnRzGAwgAygJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9MYW5n", - "dWFnZUNvbnN0YW50EmcKFGtleXdvcmRfcGxhbl9uZXR3b3JrGAYgASgOMkku", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLktleXdvcmRQbGFuTmV0", - "d29ya0VudW0uS2V5d29yZFBsYW5OZXR3b3JrEhsKDmNwY19iaWRfbWljcm9z", - "GA0gASgDSAOIAQESTQoLZ2VvX3RhcmdldHMYCCADKAsyOC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLktleXdvcmRQbGFuR2VvVGFyZ2V0", - "OnrqQXcKLGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9LZXl3b3JkUGxhbkNh", - "bXBhaWduEkdjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9rZXl3b3JkUGxhbkNh", - "bXBhaWducy97a2V5d29yZF9wbGFuX2NhbXBhaWduX2lkfUIPCg1fa2V5d29y", - "ZF9wbGFuQgUKA19pZEIHCgVfbmFtZUIRCg9fY3BjX2JpZF9taWNyb3MigQEK", - "FEtleXdvcmRQbGFuR2VvVGFyZ2V0ElEKE2dlb190YXJnZXRfY29uc3RhbnQY", - "AiABKAlCL/pBLAoqZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0dlb1Rhcmdl", - "dENvbnN0YW50SACIAQFCFgoUX2dlb190YXJnZXRfY29uc3RhbnRCigIKJmNv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhhLZXl3b3Jk", - "UGxhbkNhbXBhaWduUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJv", - "dG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVz", - "b3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291", - "cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign), global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign.Parser, new[]{ "ResourceName", "KeywordPlan", "Id", "Name", "LanguageConstants", "KeywordPlanNetwork", "CpcBidMicros", "GeoTargets" }, new[]{ "KeywordPlan", "Id", "Name", "CpcBidMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanGeoTarget), global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanGeoTarget.Parser, new[]{ "GeoTargetConstant" }, new[]{ "GeoTargetConstant" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Keyword Plan campaign. - /// Max number of keyword plan campaigns per plan allowed: 1. - /// - public sealed partial class KeywordPlanCampaign : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaign()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaign() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaign(KeywordPlanCampaign other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - keywordPlan_ = other.keywordPlan_; - id_ = other.id_; - name_ = other.name_; - languageConstants_ = other.languageConstants_.Clone(); - keywordPlanNetwork_ = other.keywordPlanNetwork_; - cpcBidMicros_ = other.cpcBidMicros_; - geoTargets_ = other.geoTargets_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaign Clone() { - return new KeywordPlanCampaign(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the Keyword Plan campaign. - /// KeywordPlanCampaign resource names have the form: - /// - /// `customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "keyword_plan" field. - public const int KeywordPlanFieldNumber = 9; - private string keywordPlan_; - /// - /// The keyword plan this campaign belongs to. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlan { - get { return keywordPlan_ ?? ""; } - set { - keywordPlan_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlan { - get { return keywordPlan_ != null; } - } - /// Clears the value of the "keyword_plan" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlan() { - keywordPlan_ = null; - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 10; - private long id_; - /// - /// Output only. The ID of the Keyword Plan campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 11; - private string name_; - /// - /// The name of the Keyword Plan campaign. - /// - /// This field is required and should not be empty when creating Keyword Plan - /// campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; - } - - /// Field number for the "language_constants" field. - public const int LanguageConstantsFieldNumber = 12; - private static readonly pb::FieldCodec _repeated_languageConstants_codec - = pb::FieldCodec.ForString(98); - private readonly pbc::RepeatedField languageConstants_ = new pbc::RepeatedField(); - /// - /// The languages targeted for the Keyword Plan campaign. - /// Max allowed: 1. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField LanguageConstants { - get { return languageConstants_; } - } - - /// Field number for the "keyword_plan_network" field. - public const int KeywordPlanNetworkFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified; - /// - /// Targeting network. - /// - /// This field is required and should not be empty when creating Keyword Plan - /// campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork KeywordPlanNetwork { - get { return keywordPlanNetwork_; } - set { - keywordPlanNetwork_ = value; - } - } - - /// Field number for the "cpc_bid_micros" field. - public const int CpcBidMicrosFieldNumber = 13; - private long cpcBidMicros_; - /// - /// A default max cpc bid in micros, and in the account currency, for all ad - /// groups under the campaign. - /// - /// This field is required and should not be empty when creating Keyword Plan - /// campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CpcBidMicros { - get { if ((_hasBits0 & 2) != 0) { return cpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 2; - cpcBidMicros_ = value; - } - } - /// Gets whether the "cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCpcBidMicros { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCpcBidMicros() { - _hasBits0 &= ~2; - } - - /// Field number for the "geo_targets" field. - public const int GeoTargetsFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_geoTargets_codec - = pb::FieldCodec.ForMessage(66, global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanGeoTarget.Parser); - private readonly pbc::RepeatedField geoTargets_ = new pbc::RepeatedField(); - /// - /// The geo targets. - /// Max number allowed: 20. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargets { - get { return geoTargets_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaign); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaign other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (KeywordPlan != other.KeywordPlan) return false; - if (Id != other.Id) return false; - if (Name != other.Name) return false; - if(!languageConstants_.Equals(other.languageConstants_)) return false; - if (KeywordPlanNetwork != other.KeywordPlanNetwork) return false; - if (CpcBidMicros != other.CpcBidMicros) return false; - if(!geoTargets_.Equals(other.geoTargets_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasKeywordPlan) hash ^= KeywordPlan.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - hash ^= languageConstants_.GetHashCode(); - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) hash ^= KeywordPlanNetwork.GetHashCode(); - if (HasCpcBidMicros) hash ^= CpcBidMicros.GetHashCode(); - hash ^= geoTargets_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) KeywordPlanNetwork); - } - geoTargets_.WriteTo(output, _repeated_geoTargets_codec); - if (HasKeywordPlan) { - output.WriteRawTag(74); - output.WriteString(KeywordPlan); - } - if (HasId) { - output.WriteRawTag(80); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - languageConstants_.WriteTo(output, _repeated_languageConstants_codec); - if (HasCpcBidMicros) { - output.WriteRawTag(104); - output.WriteInt64(CpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - output.WriteRawTag(48); - output.WriteEnum((int) KeywordPlanNetwork); - } - geoTargets_.WriteTo(ref output, _repeated_geoTargets_codec); - if (HasKeywordPlan) { - output.WriteRawTag(74); - output.WriteString(KeywordPlan); - } - if (HasId) { - output.WriteRawTag(80); - output.WriteInt64(Id); - } - if (HasName) { - output.WriteRawTag(90); - output.WriteString(Name); - } - languageConstants_.WriteTo(ref output, _repeated_languageConstants_codec); - if (HasCpcBidMicros) { - output.WriteRawTag(104); - output.WriteInt64(CpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasKeywordPlan) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlan); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - size += languageConstants_.CalculateSize(_repeated_languageConstants_codec); - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanNetwork); - } - if (HasCpcBidMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CpcBidMicros); - } - size += geoTargets_.CalculateSize(_repeated_geoTargets_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaign other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasKeywordPlan) { - KeywordPlan = other.KeywordPlan; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasName) { - Name = other.Name; - } - languageConstants_.Add(other.languageConstants_); - if (other.KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - KeywordPlanNetwork = other.KeywordPlanNetwork; - } - if (other.HasCpcBidMicros) { - CpcBidMicros = other.CpcBidMicros; - } - geoTargets_.Add(other.geoTargets_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - KeywordPlanNetwork = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork) input.ReadEnum(); - break; - } - case 66: { - geoTargets_.AddEntriesFrom(input, _repeated_geoTargets_codec); - break; - } - case 74: { - KeywordPlan = input.ReadString(); - break; - } - case 80: { - Id = input.ReadInt64(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 98: { - languageConstants_.AddEntriesFrom(input, _repeated_languageConstants_codec); - break; - } - case 104: { - CpcBidMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 48: { - KeywordPlanNetwork = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork) input.ReadEnum(); - break; - } - case 66: { - geoTargets_.AddEntriesFrom(ref input, _repeated_geoTargets_codec); - break; - } - case 74: { - KeywordPlan = input.ReadString(); - break; - } - case 80: { - Id = input.ReadInt64(); - break; - } - case 90: { - Name = input.ReadString(); - break; - } - case 98: { - languageConstants_.AddEntriesFrom(ref input, _repeated_languageConstants_codec); - break; - } - case 104: { - CpcBidMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// A geo target. - /// - public sealed partial class KeywordPlanGeoTarget : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanGeoTarget()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanGeoTarget() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanGeoTarget(KeywordPlanGeoTarget other) : this() { - geoTargetConstant_ = other.geoTargetConstant_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanGeoTarget Clone() { - return new KeywordPlanGeoTarget(this); - } - - /// Field number for the "geo_target_constant" field. - public const int GeoTargetConstantFieldNumber = 2; - private string geoTargetConstant_; - /// - /// Required. The resource name of the geo target. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GeoTargetConstant { - get { return geoTargetConstant_ ?? ""; } - set { - geoTargetConstant_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "geo_target_constant" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGeoTargetConstant { - get { return geoTargetConstant_ != null; } - } - /// Clears the value of the "geo_target_constant" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGeoTargetConstant() { - geoTargetConstant_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanGeoTarget); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanGeoTarget other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (GeoTargetConstant != other.GeoTargetConstant) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasGeoTargetConstant) hash ^= GeoTargetConstant.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasGeoTargetConstant) { - output.WriteRawTag(18); - output.WriteString(GeoTargetConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasGeoTargetConstant) { - output.WriteRawTag(18); - output.WriteString(GeoTargetConstant); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasGeoTargetConstant) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GeoTargetConstant); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanGeoTarget other) { - if (other == null) { - return; - } - if (other.HasGeoTargetConstant) { - GeoTargetConstant = other.GeoTargetConstant; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - GeoTargetConstant = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - GeoTargetConstant = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignError.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignError.g.cs deleted file mode 100755 index eb7e13945..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignError.g.cs +++ /dev/null @@ -1,259 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/keyword_plan_campaign_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/keyword_plan_campaign_error.proto - public static partial class KeywordPlanCampaignErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/keyword_plan_campaign_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCampaignErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2tleXdvcmRfcGxh", - "bl9jYW1wYWlnbl9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLmVycm9ycyLbAQocS2V5d29yZFBsYW5DYW1wYWlnbkVycm9yRW51bSK6", - "AQoYS2V5d29yZFBsYW5DYW1wYWlnbkVycm9yEg8KC1VOU1BFQ0lGSUVEEAAS", - "CwoHVU5LTk9XThABEhAKDElOVkFMSURfTkFNRRACEhUKEUlOVkFMSURfTEFO", - "R1VBR0VTEAMSEAoMSU5WQUxJRF9HRU9TEAQSEgoORFVQTElDQVRFX05BTUUQ", - "BRIVChFNQVhfR0VPU19FWENFRURFRBAGEhoKFk1BWF9MQU5HVUFHRVNfRVhD", - "RUVERUQQB0L9AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lcnJv", - "cnNCHUtleXdvcmRQbGFuQ2FtcGFpZ25FcnJvclByb3RvUAFaRWdvb2dsZS5n", - "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRz", - "LlYxMi5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz", - "6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3Rv", - "Mw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorEnum.Types.KeywordPlanCampaignError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible errors from applying a keyword plan - /// campaign. - /// - public sealed partial class KeywordPlanCampaignErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaignErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignErrorEnum(KeywordPlanCampaignErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignErrorEnum Clone() { - return new KeywordPlanCampaignErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaignErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaignErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaignErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanCampaignErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible errors from applying a keyword plan campaign. - /// - public enum KeywordPlanCampaignError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// A keyword plan campaign name is missing, empty, longer than allowed limit - /// or contains invalid chars. - /// - [pbr::OriginalName("INVALID_NAME")] InvalidName = 2, - /// - /// A keyword plan campaign contains one or more untargetable languages. - /// - [pbr::OriginalName("INVALID_LANGUAGES")] InvalidLanguages = 3, - /// - /// A keyword plan campaign contains one or more invalid geo targets. - /// - [pbr::OriginalName("INVALID_GEOS")] InvalidGeos = 4, - /// - /// The keyword plan campaign name is duplicate to an existing keyword plan - /// campaign name or other keyword plan campaign name in the request. - /// - [pbr::OriginalName("DUPLICATE_NAME")] DuplicateName = 5, - /// - /// The number of geo targets in the keyword plan campaign exceeds limits. - /// - [pbr::OriginalName("MAX_GEOS_EXCEEDED")] MaxGeosExceeded = 6, - /// - /// The number of languages in the keyword plan campaign exceeds limits. - /// - [pbr::OriginalName("MAX_LANGUAGES_EXCEEDED")] MaxLanguagesExceeded = 7, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeyword.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeyword.g.cs deleted file mode 100755 index 1564555e5..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeyword.g.cs +++ /dev/null @@ -1,517 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/keyword_plan_campaign_keyword.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/keyword_plan_campaign_keyword.proto - public static partial class KeywordPlanCampaignKeywordReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/keyword_plan_campaign_keyword.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCampaignKeywordReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRf", - "cGxhbl9jYW1wYWlnbl9rZXl3b3JkLnByb3RvEiJnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIucmVzb3VyY2VzGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMva2V5d29yZF9tYXRjaF90eXBlLnByb3RvGh9nb29nbGUvYXBpL2Zp", - "ZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3Rv", - "IrIEChpLZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZBJSCg1yZXNvdXJjZV9u", - "YW1lGAEgASgJQjvgQQX6QTUKM2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9L", - "ZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZBJVChVrZXl3b3JkX3BsYW5fY2Ft", - "cGFpZ24YCCABKAlCMfpBLgosZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tl", - "eXdvcmRQbGFuQ2FtcGFpZ25IAIgBARIUCgJpZBgJIAEoA0ID4EEDSAGIAQES", - "EQoEdGV4dBgKIAEoCUgCiAEBElkKCm1hdGNoX3R5cGUYBSABKA4yRS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXMuS2V5d29yZE1hdGNoVHlwZUVu", - "dW0uS2V5d29yZE1hdGNoVHlwZRIaCghuZWdhdGl2ZRgLIAEoCEID4EEFSAOI", - "AQE6kQHqQY0BCjNnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vS2V5d29yZFBs", - "YW5DYW1wYWlnbktleXdvcmQSVmN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2tl", - "eXdvcmRQbGFuQ2FtcGFpZ25LZXl3b3Jkcy97a2V5d29yZF9wbGFuX2NhbXBh", - "aWduX2tleXdvcmRfaWR9QhgKFl9rZXl3b3JkX3BsYW5fY2FtcGFpZ25CBQoD", - "X2lkQgcKBV90ZXh0QgsKCV9uZWdhdGl2ZUKRAgomY29tLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCH0tleXdvcmRQbGFuQ2FtcGFpZ25L", - "ZXl3b3JkUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", - "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2Vz", - "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oC", - "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6", - "OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword), global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword.Parser, new[]{ "ResourceName", "KeywordPlanCampaign", "Id", "Text", "MatchType", "Negative" }, new[]{ "KeywordPlanCampaign", "Id", "Text", "Negative" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Keyword Plan Campaign keyword. - /// Only negative keywords are supported for Campaign Keyword. - /// - public sealed partial class KeywordPlanCampaignKeyword : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaignKeyword()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeywordReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeyword() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeyword(KeywordPlanCampaignKeyword other) : this() { - _hasBits0 = other._hasBits0; - resourceName_ = other.resourceName_; - keywordPlanCampaign_ = other.keywordPlanCampaign_; - id_ = other.id_; - text_ = other.text_; - matchType_ = other.matchType_; - negative_ = other.negative_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeyword Clone() { - return new KeywordPlanCampaignKeyword(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Immutable. The resource name of the Keyword Plan Campaign keyword. - /// KeywordPlanCampaignKeyword resource names have the form: - /// - /// `customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "keyword_plan_campaign" field. - public const int KeywordPlanCampaignFieldNumber = 8; - private string keywordPlanCampaign_; - /// - /// The Keyword Plan campaign to which this negative keyword belongs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanCampaign { - get { return keywordPlanCampaign_ ?? ""; } - set { - keywordPlanCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanCampaign { - get { return keywordPlanCampaign_ != null; } - } - /// Clears the value of the "keyword_plan_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanCampaign() { - keywordPlanCampaign_ = null; - } - - /// Field number for the "id" field. - public const int IdFieldNumber = 9; - private long id_; - /// - /// Output only. The ID of the Keyword Plan negative keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } - set { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 10; - private string text_; - /// - /// The keyword text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "match_type" field. - public const int MatchTypeFieldNumber = 5; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType matchType_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified; - /// - /// The keyword match type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType MatchType { - get { return matchType_; } - set { - matchType_ = value; - } - } - - /// Field number for the "negative" field. - public const int NegativeFieldNumber = 11; - private bool negative_; - /// - /// Immutable. If true, the keyword is negative. - /// Must be set to true. Only negative campaign keywords are supported. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Negative { - get { if ((_hasBits0 & 2) != 0) { return negative_; } else { return false; } } - set { - _hasBits0 |= 2; - negative_ = value; - } - } - /// Gets whether the "negative" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNegative { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "negative" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNegative() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaignKeyword); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaignKeyword other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (KeywordPlanCampaign != other.KeywordPlanCampaign) return false; - if (Id != other.Id) return false; - if (Text != other.Text) return false; - if (MatchType != other.MatchType) return false; - if (Negative != other.Negative) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasKeywordPlanCampaign) hash ^= KeywordPlanCampaign.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (HasText) hash ^= Text.GetHashCode(); - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) hash ^= MatchType.GetHashCode(); - if (HasNegative) hash ^= Negative.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) MatchType); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(66); - output.WriteString(KeywordPlanCampaign); - } - if (HasId) { - output.WriteRawTag(72); - output.WriteInt64(Id); - } - if (HasText) { - output.WriteRawTag(82); - output.WriteString(Text); - } - if (HasNegative) { - output.WriteRawTag(88); - output.WriteBool(Negative); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(40); - output.WriteEnum((int) MatchType); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(66); - output.WriteString(KeywordPlanCampaign); - } - if (HasId) { - output.WriteRawTag(72); - output.WriteInt64(Id); - } - if (HasText) { - output.WriteRawTag(82); - output.WriteString(Text); - } - if (HasNegative) { - output.WriteRawTag(88); - output.WriteBool(Negative); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasKeywordPlanCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanCampaign); - } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); - } - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MatchType); - } - if (HasNegative) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaignKeyword other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasKeywordPlanCampaign) { - KeywordPlanCampaign = other.KeywordPlanCampaign; - } - if (other.HasId) { - Id = other.Id; - } - if (other.HasText) { - Text = other.Text; - } - if (other.MatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - MatchType = other.MatchType; - } - if (other.HasNegative) { - Negative = other.Negative; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - MatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 66: { - KeywordPlanCampaign = input.ReadString(); - break; - } - case 72: { - Id = input.ReadInt64(); - break; - } - case 82: { - Text = input.ReadString(); - break; - } - case 88: { - Negative = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 40: { - MatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 66: { - KeywordPlanCampaign = input.ReadString(); - break; - } - case 72: { - Id = input.ReadInt64(); - break; - } - case 82: { - Text = input.ReadString(); - break; - } - case 88: { - Negative = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordError.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordError.g.cs deleted file mode 100755 index 0105bfb98..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordError.g.cs +++ /dev/null @@ -1,236 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/keyword_plan_campaign_keyword_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/keyword_plan_campaign_keyword_error.proto - public static partial class KeywordPlanCampaignKeywordErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/keyword_plan_campaign_keyword_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCampaignKeywordErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2tleXdvcmRfcGxh", - "bl9jYW1wYWlnbl9rZXl3b3JkX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuZXJyb3JzIogBCiNLZXl3b3JkUGxhbkNhbXBhaWduS2V5", - "d29yZEVycm9yRW51bSJhCh9LZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZEVy", - "cm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEiAKHENBTVBBSUdO", - "X0tFWVdPUkRfSVNfUE9TSVRJVkUQCEKEAgojY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lcnJvcnNCJEtleXdvcmRQbGFuQ2FtcGFpZ25LZXl3b3Jk", - "RXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vycm9ycztlcnJvcnOiAgNHQUGq", - "Ah9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuRXJyb3JzygIfR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVB", - "ZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorEnum.Types.KeywordPlanCampaignKeywordError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible errors from applying a keyword plan - /// campaign keyword. - /// - public sealed partial class KeywordPlanCampaignKeywordErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaignKeywordErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanCampaignKeywordErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeywordErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeywordErrorEnum(KeywordPlanCampaignKeywordErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeywordErrorEnum Clone() { - return new KeywordPlanCampaignKeywordErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaignKeywordErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaignKeywordErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaignKeywordErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanCampaignKeywordErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible errors from applying a keyword plan campaign - /// keyword. - /// - public enum KeywordPlanCampaignKeywordError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Keyword plan campaign keyword is positive. - /// - [pbr::OriginalName("CAMPAIGN_KEYWORD_IS_POSITIVE")] CampaignKeywordIsPositive = 8, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordResourceNames.g.cs deleted file mode 100755 index 3fdca7faa..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordResourceNames.g.cs +++ /dev/null @@ -1,310 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the KeywordPlanCampaignKeyword resource. - public sealed partial class KeywordPlanCampaignKeywordName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}. - /// - CustomerKeywordPlanCampaignKeyword = 1, - } - - private static gax::PathTemplate s_customerKeywordPlanCampaignKeyword = new gax::PathTemplate("customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}"); - - /// - /// Creates a containing an unparsed resource name. - /// - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static KeywordPlanCampaignKeywordName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new KeywordPlanCampaignKeywordName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaignKeyword ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static KeywordPlanCampaignKeywordName FromCustomerKeywordPlanCampaignKeyword(string customerId, string keywordPlanCampaignKeywordId) => - new KeywordPlanCampaignKeywordName(ResourceNameType.CustomerKeywordPlanCampaignKeyword, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanCampaignKeywordId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanCampaignKeywordId, nameof(keywordPlanCampaignKeywordId))); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaignKeyword ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}. - /// - public static string Format(string customerId, string keywordPlanCampaignKeywordId) => - FormatCustomerKeywordPlanCampaignKeyword(customerId, keywordPlanCampaignKeywordId); - - /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaignKeyword ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}. - /// - public static string FormatCustomerKeywordPlanCampaignKeyword(string customerId, string keywordPlanCampaignKeywordId) => - s_customerKeywordPlanCampaignKeyword.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanCampaignKeywordId, nameof(keywordPlanCampaignKeywordId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// The parsed if successful. - public static KeywordPlanCampaignKeywordName Parse(string keywordPlanCampaignKeywordName) => - Parse(keywordPlanCampaignKeywordName, false); - - /// - /// Parses the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static KeywordPlanCampaignKeywordName Parse(string keywordPlanCampaignKeywordName, bool allowUnparsed) => - TryParse(keywordPlanCampaignKeywordName, allowUnparsed, out KeywordPlanCampaignKeywordName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new - /// instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id} - /// - /// - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanCampaignKeywordName, out KeywordPlanCampaignKeywordName result) => - TryParse(keywordPlanCampaignKeywordName, false, out result); - - /// - /// Tries to parse the given resource name string into a new - /// instance; optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// - /// customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id} - /// - /// - /// - /// Or may be in any format if is true. - /// - /// - /// The resource name in string form. Must not be null. - /// - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanCampaignKeywordName, bool allowUnparsed, out KeywordPlanCampaignKeywordName result) - { - gax::GaxPreconditions.CheckNotNull(keywordPlanCampaignKeywordName, nameof(keywordPlanCampaignKeywordName)); - gax::TemplatedResourceName resourceName; - if (s_customerKeywordPlanCampaignKeyword.TryParseName(keywordPlanCampaignKeywordName, out resourceName)) - { - result = FromCustomerKeywordPlanCampaignKeyword(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(keywordPlanCampaignKeywordName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private KeywordPlanCampaignKeywordName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string keywordPlanCampaignKeywordId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - KeywordPlanCampaignKeywordId = keywordPlanCampaignKeywordId; - } - - /// - /// Constructs a new instance of a class from the component parts - /// of pattern customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaignKeyword ID. Must not be null or empty. - /// - public KeywordPlanCampaignKeywordName(string customerId, string keywordPlanCampaignKeywordId) : this(ResourceNameType.CustomerKeywordPlanCampaignKeyword, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanCampaignKeywordId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanCampaignKeywordId, nameof(keywordPlanCampaignKeywordId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The KeywordPlanCampaignKeyword ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string KeywordPlanCampaignKeywordId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerKeywordPlanCampaignKeyword: return s_customerKeywordPlanCampaignKeyword.Expand(CustomerId, KeywordPlanCampaignKeywordId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as KeywordPlanCampaignKeywordName); - - /// - public bool Equals(KeywordPlanCampaignKeywordName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(KeywordPlanCampaignKeywordName a, KeywordPlanCampaignKeywordName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(KeywordPlanCampaignKeywordName a, KeywordPlanCampaignKeywordName b) => !(a == b); - } - - public partial class KeywordPlanCampaignKeyword - { - /// - /// -typed view over the resource name - /// property. - /// - internal KeywordPlanCampaignKeywordName ResourceNameAsKeywordPlanCampaignKeywordName - { - get => string.IsNullOrEmpty(ResourceName) ? null : KeywordPlanCampaignKeywordName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal KeywordPlanCampaignName KeywordPlanCampaignAsKeywordPlanCampaignName - { - get => string.IsNullOrEmpty(KeywordPlanCampaign) ? null : KeywordPlanCampaignName.Parse(KeywordPlanCampaign, allowUnparsed: true); - set => KeywordPlanCampaign = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordService.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordService.g.cs deleted file mode 100755 index 2fb771227..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordService.g.cs +++ /dev/null @@ -1,1221 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_campaign_keyword_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/keyword_plan_campaign_keyword_service.proto - public static partial class KeywordPlanCampaignKeywordServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/keyword_plan_campaign_keyword_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCampaignKeywordServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ck1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMva2V5d29yZF9w", - "bGFuX2NhbXBhaWduX2tleXdvcmRfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzGkZnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTIvcmVzb3VyY2VzL2tleXdvcmRfcGxhbl9jYW1wYWlnbl9rZXl3b3Jk", - "LnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGhdnb29nbGUv", - "YXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5w", - "cm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90bxogZ29vZ2xlL3Byb3Rv", - "YnVmL2ZpZWxkX21hc2sucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3Rv", - "ItUBCihNdXRhdGVLZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZHNSZXF1ZXN0", - "EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISXwoKb3BlcmF0aW9ucxgCIAMo", - "CzJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5LZXl3b3Jk", - "UGxhbkNhbXBhaWduS2V5d29yZE9wZXJhdGlvbkID4EECEhcKD3BhcnRpYWxf", - "ZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5GAQgASgIItMCCiNLZXl3", - "b3JkUGxhbkNhbXBhaWduS2V5d29yZE9wZXJhdGlvbhIvCgt1cGRhdGVfbWFz", - "axgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSUAoGY3JlYXRl", - "GAEgASgLMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5L", - "ZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZEgAElAKBnVwZGF0ZRgCIAEoCzI+", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuS2V5d29yZFBs", - "YW5DYW1wYWlnbktleXdvcmRIABJKCgZyZW1vdmUYAyABKAlCOPpBNQozZ29v", - "Z2xlYWRzLmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFuQ2FtcGFpZ25LZXl3", - "b3JkSABCCwoJb3BlcmF0aW9uIroBCilNdXRhdGVLZXl3b3JkUGxhbkNhbXBh", - "aWduS2V5d29yZHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IY", - "AyABKAsyEi5nb29nbGUucnBjLlN0YXR1cxJaCgdyZXN1bHRzGAIgAygLMkku", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUtleXdv", - "cmRQbGFuQ2FtcGFpZ25LZXl3b3JkUmVzdWx0InkKJk11dGF0ZUtleXdvcmRQ", - "bGFuQ2FtcGFpZ25LZXl3b3JkUmVzdWx0Ek8KDXJlc291cmNlX25hbWUYASAB", - "KAlCOPpBNQozZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFu", - "Q2FtcGFpZ25LZXl3b3JkMpIDCiFLZXl3b3JkUGxhbkNhbXBhaWduS2V5d29y", - "ZFNlcnZpY2USpQIKIU11dGF0ZUtleXdvcmRQbGFuQ2FtcGFpZ25LZXl3b3Jk", - "cxJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVL", - "ZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZHNSZXF1ZXN0GkwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUtleXdvcmRQbGFuQ2Ft", - "cGFpZ25LZXl3b3Jkc1Jlc3BvbnNlImWC0+STAkYiQS92MTIvY3VzdG9tZXJz", - "L3tjdXN0b21lcl9pZD0qfS9rZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZHM6", - "bXV0YXRlOgEq2kEWY3VzdG9tZXJfaWQsb3BlcmF0aW9ucxpFykEYZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5j", - "b20vYXV0aC9hZHdvcmRzQpICCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzQiZLZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZFNlcnZp", - "Y2VQcm90b1ABWklnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVh", - "cGlzL2Fkcy9nb29nbGVhZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FB", - "qgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpTZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeywordReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords][google.ads.googleads.v12.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords]. - /// - public sealed partial class MutateKeywordPlanCampaignKeywordsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanCampaignKeywordsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordsRequest(MutateKeywordPlanCampaignKeywordsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordsRequest Clone() { - return new MutateKeywordPlanCampaignKeywordsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose campaign keywords are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual Keyword Plan campaign - /// keywords. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanCampaignKeywordsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanCampaignKeywordsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanCampaignKeywordsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a Keyword Plan campaign - /// keyword. - /// - public sealed partial class KeywordPlanCampaignKeywordOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaignKeywordOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeywordOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeywordOperation(KeywordPlanCampaignKeywordOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignKeywordOperation Clone() { - return new KeywordPlanCampaignKeywordOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// The FieldMask that determines which resource fields are modified in an - /// update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new Keyword Plan - /// campaign keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The Keyword Plan campaign keyword expected to have a - /// valid resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed Keyword Plan campaign - /// keywords expected in this format: - /// - /// `customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaignKeywordOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaignKeywordOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaignKeywordOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignKeyword(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a Keyword Plan campaign keyword mutate. - /// - public sealed partial class MutateKeywordPlanCampaignKeywordsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanCampaignKeywordsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordsResponse(MutateKeywordPlanCampaignKeywordsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordsResponse Clone() { - return new MutateKeywordPlanCampaignKeywordsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanCampaignKeywordsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanCampaignKeywordsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanCampaignKeywordsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the Keyword Plan campaign keyword mutate. - /// - public sealed partial class MutateKeywordPlanCampaignKeywordResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanCampaignKeywordResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordResult(MutateKeywordPlanCampaignKeywordResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignKeywordResult Clone() { - return new MutateKeywordPlanCampaignKeywordResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanCampaignKeywordResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanCampaignKeywordResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanCampaignKeywordResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceClient.g.cs deleted file mode 100755 index 0a70d80c9..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceClient.g.cs +++ /dev/null @@ -1,491 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class KeywordPlanCampaignKeywordServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// - /// Get a new instance of the default . - /// - /// A new instance of the default . - public static KeywordPlanCampaignKeywordServiceSettings GetDefault() => - new KeywordPlanCampaignKeywordServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public KeywordPlanCampaignKeywordServiceSettings() - { - } - - private KeywordPlanCampaignKeywordServiceSettings(KeywordPlanCampaignKeywordServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateKeywordPlanCampaignKeywordsSettings = existing.MutateKeywordPlanCampaignKeywordsSettings; - OnCopy(existing); - } - - partial void OnCopy(KeywordPlanCampaignKeywordServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanCampaignKeywordServiceClient.MutateKeywordPlanCampaignKeywords and - /// KeywordPlanCampaignKeywordServiceClient.MutateKeywordPlanCampaignKeywordsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateKeywordPlanCampaignKeywordsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public KeywordPlanCampaignKeywordServiceSettings Clone() => new KeywordPlanCampaignKeywordServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class KeywordPlanCampaignKeywordServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public KeywordPlanCampaignKeywordServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public KeywordPlanCampaignKeywordServiceClientBuilder() : base(KeywordPlanCampaignKeywordServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref KeywordPlanCampaignKeywordServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override KeywordPlanCampaignKeywordServiceClient Build() - { - KeywordPlanCampaignKeywordServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private KeywordPlanCampaignKeywordServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return KeywordPlanCampaignKeywordServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return KeywordPlanCampaignKeywordServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => KeywordPlanCampaignKeywordServiceClient.ChannelPool; - } - - /// KeywordPlanCampaignKeywordService client wrapper, for convenient use. - /// - /// Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is - /// required to add the campaign keywords. Only negative keywords are supported. - /// A maximum of 1000 negative keywords are allowed per plan. This includes both - /// campaign negative keywords and ad group negative keywords. - /// - public abstract partial class KeywordPlanCampaignKeywordServiceClient - { - /// - /// The default endpoint for the KeywordPlanCampaignKeywordService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default KeywordPlanCampaignKeywordService scopes. - /// - /// The default KeywordPlanCampaignKeywordService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(KeywordPlanCampaignKeywordService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default - /// credentials, endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new KeywordPlanCampaignKeywordServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static KeywordPlanCampaignKeywordServiceClient Create() => - new KeywordPlanCampaignKeywordServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for - /// remote operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static KeywordPlanCampaignKeywordServiceClient Create(grpccore::CallInvoker callInvoker, KeywordPlanCampaignKeywordServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - KeywordPlanCampaignKeywordService.KeywordPlanCampaignKeywordServiceClient grpcClient = new KeywordPlanCampaignKeywordService.KeywordPlanCampaignKeywordServiceClient(callInvoker); - return new KeywordPlanCampaignKeywordServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC KeywordPlanCampaignKeywordService client - public virtual KeywordPlanCampaignKeywordService.KeywordPlanCampaignKeywordServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanCampaignKeywordsResponse MutateKeywordPlanCampaignKeywords(MutateKeywordPlanCampaignKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignKeywordsAsync(MutateKeywordPlanCampaignKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignKeywordsAsync(MutateKeywordPlanCampaignKeywordsRequest request, st::CancellationToken cancellationToken) => - MutateKeywordPlanCampaignKeywordsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose campaign keywords are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan campaign - /// keywords. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanCampaignKeywordsResponse MutateKeywordPlanCampaignKeywords(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanCampaignKeywords(new MutateKeywordPlanCampaignKeywordsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose campaign keywords are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan campaign - /// keywords. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignKeywordsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanCampaignKeywordsAsync(new MutateKeywordPlanCampaignKeywordsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose campaign keywords are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan campaign - /// keywords. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignKeywordsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateKeywordPlanCampaignKeywordsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// KeywordPlanCampaignKeywordService client wrapper implementation, for convenient use. - /// - /// Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is - /// required to add the campaign keywords. Only negative keywords are supported. - /// A maximum of 1000 negative keywords are allowed per plan. This includes both - /// campaign negative keywords and ad group negative keywords. - /// - public sealed partial class KeywordPlanCampaignKeywordServiceClientImpl : KeywordPlanCampaignKeywordServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateKeywordPlanCampaignKeywords; - - /// - /// Constructs a client wrapper for the KeywordPlanCampaignKeywordService service, with the specified gRPC - /// client and settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public KeywordPlanCampaignKeywordServiceClientImpl(KeywordPlanCampaignKeywordService.KeywordPlanCampaignKeywordServiceClient grpcClient, KeywordPlanCampaignKeywordServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - KeywordPlanCampaignKeywordServiceSettings effectiveSettings = settings ?? KeywordPlanCampaignKeywordServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateKeywordPlanCampaignKeywords = clientHelper.BuildApiCall("MutateKeywordPlanCampaignKeywords", grpcClient.MutateKeywordPlanCampaignKeywordsAsync, grpcClient.MutateKeywordPlanCampaignKeywords, effectiveSettings.MutateKeywordPlanCampaignKeywordsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateKeywordPlanCampaignKeywords); - Modify_MutateKeywordPlanCampaignKeywordsApiCall(ref _callMutateKeywordPlanCampaignKeywords); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateKeywordPlanCampaignKeywordsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(KeywordPlanCampaignKeywordService.KeywordPlanCampaignKeywordServiceClient grpcClient, KeywordPlanCampaignKeywordServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC KeywordPlanCampaignKeywordService client - public override KeywordPlanCampaignKeywordService.KeywordPlanCampaignKeywordServiceClient GrpcClient { get; } - - partial void Modify_MutateKeywordPlanCampaignKeywordsRequest(ref MutateKeywordPlanCampaignKeywordsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateKeywordPlanCampaignKeywordsResponse MutateKeywordPlanCampaignKeywords(MutateKeywordPlanCampaignKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanCampaignKeywordsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanCampaignKeywords.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateKeywordPlanCampaignKeywordsAsync(MutateKeywordPlanCampaignKeywordsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanCampaignKeywordsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanCampaignKeywords.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceGrpc.g.cs deleted file mode 100755 index 1ebb4bd79..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceGrpc.g.cs +++ /dev/null @@ -1,280 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_campaign_keyword_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is - /// required to add the campaign keywords. Only negative keywords are supported. - /// A maximum of 1000 negative keywords are allowed per plan. This includes both - /// campaign negative keywords and ad group negative keywords. - /// - public static partial class KeywordPlanCampaignKeywordService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.KeywordPlanCampaignKeywordService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignKeywordsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignKeywordsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateKeywordPlanCampaignKeywords = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateKeywordPlanCampaignKeywords", - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignKeywordsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignKeywordsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of KeywordPlanCampaignKeywordService - [grpc::BindServiceMethod(typeof(KeywordPlanCampaignKeywordService), "BindService")] - public abstract partial class KeywordPlanCampaignKeywordServiceBase - { - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateKeywordPlanCampaignKeywords(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for KeywordPlanCampaignKeywordService - public partial class KeywordPlanCampaignKeywordServiceClient : grpc::ClientBase - { - /// Creates a new client for KeywordPlanCampaignKeywordService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanCampaignKeywordServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for KeywordPlanCampaignKeywordService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanCampaignKeywordServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanCampaignKeywordServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanCampaignKeywordServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsResponse MutateKeywordPlanCampaignKeywords(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanCampaignKeywords(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsResponse MutateKeywordPlanCampaignKeywords(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateKeywordPlanCampaignKeywords, null, options, request); - } - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanCampaignKeywordsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanCampaignKeywordsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan campaign keywords. Operation - /// statuses are returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanAdGroupKeywordError]() - /// [KeywordPlanCampaignKeywordError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanCampaignKeywordsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignKeywordsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateKeywordPlanCampaignKeywords, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override KeywordPlanCampaignKeywordServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new KeywordPlanCampaignKeywordServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(KeywordPlanCampaignKeywordServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateKeywordPlanCampaignKeywords, serviceImpl.MutateKeywordPlanCampaignKeywords).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, KeywordPlanCampaignKeywordServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateKeywordPlanCampaignKeywords, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateKeywordPlanCampaignKeywords)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceResourceNames.g.cs deleted file mode 100755 index cde11a62c..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignKeywordServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class KeywordPlanCampaignKeywordOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::KeywordPlanCampaignKeywordName RemoveAsKeywordPlanCampaignKeywordName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::KeywordPlanCampaignKeywordName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateKeywordPlanCampaignKeywordResult - { - /// - /// -typed view over the resource - /// name property. - /// - internal gagvr::KeywordPlanCampaignKeywordName ResourceNameAsKeywordPlanCampaignKeywordName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanCampaignKeywordName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignResourceNames.g.cs deleted file mode 100755 index 55786c7cf..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignResourceNames.g.cs +++ /dev/null @@ -1,321 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the KeywordPlanCampaign resource. - public sealed partial class KeywordPlanCampaignName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id} - /// . - /// - CustomerKeywordPlanCampaign = 1, - } - - private static gax::PathTemplate s_customerKeywordPlanCampaign = new gax::PathTemplate("customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static KeywordPlanCampaignName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new KeywordPlanCampaignName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaign ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static KeywordPlanCampaignName FromCustomerKeywordPlanCampaign(string customerId, string keywordPlanCampaignId) => - new KeywordPlanCampaignName(ResourceNameType.CustomerKeywordPlanCampaign, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanCampaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanCampaignId, nameof(keywordPlanCampaignId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaign ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}. - /// - public static string Format(string customerId, string keywordPlanCampaignId) => - FormatCustomerKeywordPlanCampaign(customerId, keywordPlanCampaignId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}. - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaign ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}. - /// - public static string FormatCustomerKeywordPlanCampaign(string customerId, string keywordPlanCampaignId) => - s_customerKeywordPlanCampaign.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanCampaignId, nameof(keywordPlanCampaignId))); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static KeywordPlanCampaignName Parse(string keywordPlanCampaignName) => Parse(keywordPlanCampaignName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static KeywordPlanCampaignName Parse(string keywordPlanCampaignName, bool allowUnparsed) => - TryParse(keywordPlanCampaignName, allowUnparsed, out KeywordPlanCampaignName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanCampaignName, out KeywordPlanCampaignName result) => - TryParse(keywordPlanCampaignName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanCampaignName, bool allowUnparsed, out KeywordPlanCampaignName result) - { - gax::GaxPreconditions.CheckNotNull(keywordPlanCampaignName, nameof(keywordPlanCampaignName)); - gax::TemplatedResourceName resourceName; - if (s_customerKeywordPlanCampaign.TryParseName(keywordPlanCampaignName, out resourceName)) - { - result = FromCustomerKeywordPlanCampaign(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(keywordPlanCampaignName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private KeywordPlanCampaignName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string keywordPlanCampaignId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - KeywordPlanCampaignId = keywordPlanCampaignId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id} - /// - /// The Customer ID. Must not be null or empty. - /// - /// The KeywordPlanCampaign ID. Must not be null or empty. - /// - public KeywordPlanCampaignName(string customerId, string keywordPlanCampaignId) : this(ResourceNameType.CustomerKeywordPlanCampaign, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanCampaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanCampaignId, nameof(keywordPlanCampaignId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The KeywordPlanCampaign ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string KeywordPlanCampaignId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerKeywordPlanCampaign: return s_customerKeywordPlanCampaign.Expand(CustomerId, KeywordPlanCampaignId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as KeywordPlanCampaignName); - - /// - public bool Equals(KeywordPlanCampaignName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(KeywordPlanCampaignName a, KeywordPlanCampaignName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(KeywordPlanCampaignName a, KeywordPlanCampaignName b) => !(a == b); - } - - public partial class KeywordPlanCampaign - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::KeywordPlanCampaignName ResourceNameAsKeywordPlanCampaignName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanCampaignName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal KeywordPlanName KeywordPlanAsKeywordPlanName - { - get => string.IsNullOrEmpty(KeywordPlan) ? null : KeywordPlanName.Parse(KeywordPlan, allowUnparsed: true); - set => KeywordPlan = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanCampaignName KeywordPlanCampaignName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::KeywordPlanCampaignName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name - /// property. - /// - internal gax::ResourceNameList LanguageConstantsAsLanguageConstantNames - { - get => new gax::ResourceNameList(LanguageConstants, s => string.IsNullOrEmpty(s) ? null : LanguageConstantName.Parse(s, allowUnparsed: true)); - } - } - - public partial class KeywordPlanGeoTarget - { - /// - /// -typed view over the resource name - /// property. - /// - internal GeoTargetConstantName GeoTargetConstantAsGeoTargetConstantName - { - get => string.IsNullOrEmpty(GeoTargetConstant) ? null : GeoTargetConstantName.Parse(GeoTargetConstant, allowUnparsed: true); - set => GeoTargetConstant = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignService.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignService.g.cs deleted file mode 100755 index ad02ada67..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignService.g.cs +++ /dev/null @@ -1,1216 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_campaign_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/keyword_plan_campaign_service.proto - public static partial class KeywordPlanCampaignServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/keyword_plan_campaign_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCampaignServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMva2V5d29yZF9w", - "bGFuX2NhbXBhaWduX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL3Jl", - "c291cmNlcy9rZXl3b3JkX3BsYW5fY2FtcGFpZ24ucHJvdG8aHGdvb2dsZS9h", - "cGkvYW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3Rv", - "Gh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhlnb29nbGUvYXBp", - "L3Jlc291cmNlLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5w", - "cm90bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8ixwEKIU11dGF0ZUtleXdv", - "cmRQbGFuQ2FtcGFpZ25zUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID", - "4EECElgKCm9wZXJhdGlvbnMYAiADKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuc2VydmljZXMuS2V5d29yZFBsYW5DYW1wYWlnbk9wZXJhdGlvbkID", - "4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9vbmx5", - "GAQgASgIIrcCChxLZXl3b3JkUGxhbkNhbXBhaWduT3BlcmF0aW9uEi8KC3Vw", - "ZGF0ZV9tYXNrGAQgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFzaxJJ", - "CgZjcmVhdGUYASABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVz", - "b3VyY2VzLktleXdvcmRQbGFuQ2FtcGFpZ25IABJJCgZ1cGRhdGUYAiABKAsy", - "Ny5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzLktleXdvcmRQ", - "bGFuQ2FtcGFpZ25IABJDCgZyZW1vdmUYAyABKAlCMfpBLgosZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFuQ2FtcGFpZ25IAEILCglvcGVy", - "YXRpb24irAEKIk11dGF0ZUtleXdvcmRQbGFuQ2FtcGFpZ25zUmVzcG9uc2US", - "MQoVcGFydGlhbF9mYWlsdXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5T", - "dGF0dXMSUwoHcmVzdWx0cxgCIAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbkNhbXBhaWduUmVzdWx0", - "ImsKH011dGF0ZUtleXdvcmRQbGFuQ2FtcGFpZ25SZXN1bHQSSAoNcmVzb3Vy", - "Y2VfbmFtZRgBIAEoCUIx+kEuCixnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "S2V5d29yZFBsYW5DYW1wYWlnbjLvAgoaS2V5d29yZFBsYW5DYW1wYWlnblNl", - "cnZpY2USiQIKGk11dGF0ZUtleXdvcmRQbGFuQ2FtcGFpZ25zEkQuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUtleXdvcmRQbGFu", - "Q2FtcGFpZ25zUmVxdWVzdBpFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbkNhbXBhaWduc1Jlc3BvbnNlIl6C", - "0+STAj8iOi92MTIvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfS9rZXl3b3Jk", - "UGxhbkNhbXBhaWduczptdXRhdGU6ASraQRZjdXN0b21lcl9pZCxvcGVyYXRp", - "b25zGkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3", - "dy5nb29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCiwIKJWNvbS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXNCH0tleXdvcmRQbGFuQ2FtcGFp", - "Z25TZXJ2aWNlUHJvdG9QAVpJZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9zZXJ2aWNlcztzZXJ2aWNl", - "c6ICA0dBQaoCIUdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5TZXJ2aWNlc8oC", - "IUdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxTZXJ2aWNlc+oCJUdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6U2VydmljZXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaignReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsResponse), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v12.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns]. - /// - public sealed partial class MutateKeywordPlanCampaignsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanCampaignsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignsRequest(MutateKeywordPlanCampaignsRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignsRequest Clone() { - return new MutateKeywordPlanCampaignsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose Keyword Plan campaigns are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual Keyword Plan campaigns. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanCampaignsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanCampaignsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanCampaignsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a Keyword Plan campaign. - /// - public sealed partial class KeywordPlanCampaignOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaignOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignOperation(KeywordPlanCampaignOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignOperation Clone() { - return new KeywordPlanCampaignOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// The FieldMask that determines which resource fields are modified in an - /// update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new Keyword Plan - /// campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The Keyword Plan campaign is expected to have a valid - /// resource name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed Keyword Plan campaign - /// is expected, in this format: - /// - /// `customers/{customer_id}/keywordPlanCampaigns/{keywordPlan_campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaignOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaignOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaignOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanCampaign(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a Keyword Plan campaign mutate. - /// - public sealed partial class MutateKeywordPlanCampaignsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanCampaignsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignsResponse(MutateKeywordPlanCampaignsResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignsResponse Clone() { - return new MutateKeywordPlanCampaignsResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanCampaignsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanCampaignsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanCampaignsResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the Keyword Plan campaign mutate. - /// - public sealed partial class MutateKeywordPlanCampaignResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlanCampaignResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignResult(MutateKeywordPlanCampaignResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlanCampaignResult Clone() { - return new MutateKeywordPlanCampaignResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlanCampaignResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlanCampaignResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlanCampaignResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceClient.g.cs deleted file mode 100755 index 14a9b2638..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceClient.g.cs +++ /dev/null @@ -1,510 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class KeywordPlanCampaignServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static KeywordPlanCampaignServiceSettings GetDefault() => new KeywordPlanCampaignServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public KeywordPlanCampaignServiceSettings() - { - } - - private KeywordPlanCampaignServiceSettings(KeywordPlanCampaignServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateKeywordPlanCampaignsSettings = existing.MutateKeywordPlanCampaignsSettings; - OnCopy(existing); - } - - partial void OnCopy(KeywordPlanCampaignServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanCampaignServiceClient.MutateKeywordPlanCampaigns and - /// KeywordPlanCampaignServiceClient.MutateKeywordPlanCampaignsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateKeywordPlanCampaignsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public KeywordPlanCampaignServiceSettings Clone() => new KeywordPlanCampaignServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class KeywordPlanCampaignServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public KeywordPlanCampaignServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public KeywordPlanCampaignServiceClientBuilder() : base(KeywordPlanCampaignServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref KeywordPlanCampaignServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override KeywordPlanCampaignServiceClient Build() - { - KeywordPlanCampaignServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private KeywordPlanCampaignServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return KeywordPlanCampaignServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return KeywordPlanCampaignServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => KeywordPlanCampaignServiceClient.ChannelPool; - } - - /// KeywordPlanCampaignService client wrapper, for convenient use. - /// - /// Service to manage Keyword Plan campaigns. - /// - public abstract partial class KeywordPlanCampaignServiceClient - { - /// - /// The default endpoint for the KeywordPlanCampaignService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default KeywordPlanCampaignService scopes. - /// - /// The default KeywordPlanCampaignService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(KeywordPlanCampaignService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new KeywordPlanCampaignServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static KeywordPlanCampaignServiceClient Create() => new KeywordPlanCampaignServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static KeywordPlanCampaignServiceClient Create(grpccore::CallInvoker callInvoker, KeywordPlanCampaignServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - KeywordPlanCampaignService.KeywordPlanCampaignServiceClient grpcClient = new KeywordPlanCampaignService.KeywordPlanCampaignServiceClient(callInvoker); - return new KeywordPlanCampaignServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC KeywordPlanCampaignService client - public virtual KeywordPlanCampaignService.KeywordPlanCampaignServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanCampaignsResponse MutateKeywordPlanCampaigns(MutateKeywordPlanCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignsAsync(MutateKeywordPlanCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignsAsync(MutateKeywordPlanCampaignsRequest request, st::CancellationToken cancellationToken) => - MutateKeywordPlanCampaignsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan campaigns are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan campaigns. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlanCampaignsResponse MutateKeywordPlanCampaigns(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanCampaigns(new MutateKeywordPlanCampaignsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan campaigns are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan campaigns. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignsAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlanCampaignsAsync(new MutateKeywordPlanCampaignsRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// - /// Required. The ID of the customer whose Keyword Plan campaigns are being modified. - /// - /// - /// Required. The list of operations to perform on individual Keyword Plan campaigns. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlanCampaignsAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateKeywordPlanCampaignsAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// KeywordPlanCampaignService client wrapper implementation, for convenient use. - /// - /// Service to manage Keyword Plan campaigns. - /// - public sealed partial class KeywordPlanCampaignServiceClientImpl : KeywordPlanCampaignServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateKeywordPlanCampaigns; - - /// - /// Constructs a client wrapper for the KeywordPlanCampaignService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public KeywordPlanCampaignServiceClientImpl(KeywordPlanCampaignService.KeywordPlanCampaignServiceClient grpcClient, KeywordPlanCampaignServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - KeywordPlanCampaignServiceSettings effectiveSettings = settings ?? KeywordPlanCampaignServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateKeywordPlanCampaigns = clientHelper.BuildApiCall("MutateKeywordPlanCampaigns", grpcClient.MutateKeywordPlanCampaignsAsync, grpcClient.MutateKeywordPlanCampaigns, effectiveSettings.MutateKeywordPlanCampaignsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateKeywordPlanCampaigns); - Modify_MutateKeywordPlanCampaignsApiCall(ref _callMutateKeywordPlanCampaigns); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateKeywordPlanCampaignsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(KeywordPlanCampaignService.KeywordPlanCampaignServiceClient grpcClient, KeywordPlanCampaignServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC KeywordPlanCampaignService client - public override KeywordPlanCampaignService.KeywordPlanCampaignServiceClient GrpcClient { get; } - - partial void Modify_MutateKeywordPlanCampaignsRequest(ref MutateKeywordPlanCampaignsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateKeywordPlanCampaignsResponse MutateKeywordPlanCampaigns(MutateKeywordPlanCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanCampaignsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanCampaigns.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateKeywordPlanCampaignsAsync(MutateKeywordPlanCampaignsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlanCampaignsRequest(ref request, ref callSettings); - return _callMutateKeywordPlanCampaigns.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceGrpc.g.cs deleted file mode 100755 index 9f1c0ff95..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceGrpc.g.cs +++ /dev/null @@ -1,297 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_campaign_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage Keyword Plan campaigns. - /// - public static partial class KeywordPlanCampaignService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.KeywordPlanCampaignService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateKeywordPlanCampaigns = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateKeywordPlanCampaigns", - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignsRequest, - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlanCampaignsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of KeywordPlanCampaignService - [grpc::BindServiceMethod(typeof(KeywordPlanCampaignService), "BindService")] - public abstract partial class KeywordPlanCampaignServiceBase - { - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateKeywordPlanCampaigns(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for KeywordPlanCampaignService - public partial class KeywordPlanCampaignServiceClient : grpc::ClientBase - { - /// Creates a new client for KeywordPlanCampaignService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanCampaignServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for KeywordPlanCampaignService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanCampaignServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanCampaignServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanCampaignServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsResponse MutateKeywordPlanCampaigns(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanCampaigns(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsResponse MutateKeywordPlanCampaigns(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateKeywordPlanCampaigns, null, options, request); - } - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanCampaignsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlanCampaignsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [FieldMaskError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanCampaignError]() - /// [KeywordPlanError]() - /// [ListOperationError]() - /// [MutateError]() - /// [QuotaError]() - /// [RangeError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlanCampaignsAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlanCampaignsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateKeywordPlanCampaigns, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override KeywordPlanCampaignServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new KeywordPlanCampaignServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(KeywordPlanCampaignServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateKeywordPlanCampaigns, serviceImpl.MutateKeywordPlanCampaigns).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, KeywordPlanCampaignServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateKeywordPlanCampaigns, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateKeywordPlanCampaigns)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceResourceNames.g.cs deleted file mode 100755 index d9a3e439a..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCampaignServiceResourceNames.g.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class KeywordPlanCampaignOperation - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::KeywordPlanCampaignName RemoveAsKeywordPlanCampaignName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::KeywordPlanCampaignName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateKeywordPlanCampaignResult - { - /// - /// -typed view over the resource name - /// property. - /// - internal gagvr::KeywordPlanCampaignName ResourceNameAsKeywordPlanCampaignName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanCampaignName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCommon.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCommon.g.cs deleted file mode 100755 index cc41addb5..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCommon.g.cs +++ /dev/null @@ -1,2446 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/common/keyword_plan_common.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Common { - - /// Holder for reflection information generated from google/ads/googleads/v12/common/keyword_plan_common.proto - public static partial class KeywordPlanCommonReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/common/keyword_plan_common.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCommonReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL2tleXdvcmRfcGxh", - "bl9jb21tb24ucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21t", - "b24aK2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9jb21tb24vZGF0ZXMucHJv", - "dG8aK2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9kZXZpY2UucHJv", - "dG8aR2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9rZXl3b3JkX3Bs", - "YW5fYWdncmVnYXRlX21ldHJpY190eXBlLnByb3RvGkNnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9wbGFuX2NvbXBldGl0aW9uX2xl", - "dmVsLnByb3RvGkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5", - "d29yZF9wbGFuX2NvbmNlcHRfZ3JvdXBfdHlwZS5wcm90bxoyZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zL21vbnRoX29mX3llYXIucHJvdG8iogQK", - "HEtleXdvcmRQbGFuSGlzdG9yaWNhbE1ldHJpY3MSIQoUYXZnX21vbnRobHlf", - "c2VhcmNoZXMYByABKANIAIgBARJUChZtb250aGx5X3NlYXJjaF92b2x1bWVz", - "GAYgAygLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5Nb250", - "aGx5U2VhcmNoVm9sdW1lEnAKC2NvbXBldGl0aW9uGAIgASgOMlsuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmVudW1zLktleXdvcmRQbGFuQ29tcGV0aXRp", - "b25MZXZlbEVudW0uS2V5d29yZFBsYW5Db21wZXRpdGlvbkxldmVsEh4KEWNv", - "bXBldGl0aW9uX2luZGV4GAggASgDSAGIAQESJwoabG93X3RvcF9vZl9wYWdl", - "X2JpZF9taWNyb3MYCSABKANIAogBARIoChtoaWdoX3RvcF9vZl9wYWdlX2Jp", - "ZF9taWNyb3MYCiABKANIA4gBARIfChJhdmVyYWdlX2NwY19taWNyb3MYCyAB", - "KANIBIgBAUIXChVfYXZnX21vbnRobHlfc2VhcmNoZXNCFAoSX2NvbXBldGl0", - "aW9uX2luZGV4Qh0KG19sb3dfdG9wX29mX3BhZ2VfYmlkX21pY3Jvc0IeChxf", - "aGlnaF90b3Bfb2ZfcGFnZV9iaWRfbWljcm9zQhUKE19hdmVyYWdlX2NwY19t", - "aWNyb3MinAEKGEhpc3RvcmljYWxNZXRyaWNzT3B0aW9ucxJOChB5ZWFyX21v", - "bnRoX3JhbmdlGAEgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5ZZWFyTW9udGhSYW5nZUgAiAEBEhsKE2luY2x1ZGVfYXZlcmFnZV9j", - "cGMYAiABKAhCEwoRX3llYXJfbW9udGhfcmFuZ2UisQEKE01vbnRobHlTZWFy", - "Y2hWb2x1bWUSEQoEeWVhchgEIAEoA0gAiAEBEkoKBW1vbnRoGAIgASgOMjsu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zLk1vbnRoT2ZZZWFyRW51", - "bS5Nb250aE9mWWVhchIdChBtb250aGx5X3NlYXJjaGVzGAUgASgDSAGIAQFC", - "BwoFX3llYXJCEwoRX21vbnRobHlfc2VhcmNoZXMioQEKG0tleXdvcmRQbGFu", - "QWdncmVnYXRlTWV0cmljcxKBAQoWYWdncmVnYXRlX21ldHJpY190eXBlcxgB", - "IAMoDjJhLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5LZXl3b3Jk", - "UGxhbkFnZ3JlZ2F0ZU1ldHJpY1R5cGVFbnVtLktleXdvcmRQbGFuQWdncmVn", - "YXRlTWV0cmljVHlwZSJ4CiFLZXl3b3JkUGxhbkFnZ3JlZ2F0ZU1ldHJpY1Jl", - "c3VsdHMSUwoPZGV2aWNlX3NlYXJjaGVzGAEgAygLMjouZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmNvbW1vbi5LZXl3b3JkUGxhbkRldmljZVNlYXJjaGVz", - "IooBChlLZXl3b3JkUGxhbkRldmljZVNlYXJjaGVzEkEKBmRldmljZRgBIAEo", - "DjIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtcy5EZXZpY2VFbnVt", - "LkRldmljZRIZCgxzZWFyY2hfY291bnQYAiABKANIAIgBAUIPCg1fc2VhcmNo", - "X2NvdW50IlcKEktleXdvcmRBbm5vdGF0aW9ucxJBCghjb25jZXB0cxgBIAMo", - "CzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uS2V5d29yZENv", - "bmNlcHQiZAoOS2V5d29yZENvbmNlcHQSDAoEbmFtZRgBIAEoCRJECg1jb25j", - "ZXB0X2dyb3VwGAIgASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNv", - "bW1vbi5Db25jZXB0R3JvdXAihwEKDENvbmNlcHRHcm91cBIMCgRuYW1lGAEg", - "ASgJEmkKBHR5cGUYAiABKA4yWy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZW51bXMuS2V5d29yZFBsYW5Db25jZXB0R3JvdXBUeXBlRW51bS5LZXl3b3Jk", - "UGxhbkNvbmNlcHRHcm91cFR5cGVC9gEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuY29tbW9uQhZLZXl3b3JkUGxhbkNvbW1vblByb3RvUAFaRWdv", - "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", - "ZWFkcy92MTIvY29tbW9uO2NvbW1vbqICA0dBQaoCH0dvb2dsZS5BZHMuR29v", - "Z2xlQWRzLlYxMi5Db21tb27KAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJc", - "Q29tbW9u6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpDb21tb25i", - "BnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.DatesReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanAggregateMetricTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics), global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics.Parser, new[]{ "AvgMonthlySearches", "MonthlySearchVolumes", "Competition", "CompetitionIndex", "LowTopOfPageBidMicros", "HighTopOfPageBidMicros", "AverageCpcMicros" }, new[]{ "AvgMonthlySearches", "CompetitionIndex", "LowTopOfPageBidMicros", "HighTopOfPageBidMicros", "AverageCpcMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions), global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions.Parser, new[]{ "YearMonthRange", "IncludeAverageCpc" }, new[]{ "YearMonthRange" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.MonthlySearchVolume), global::Google.Ads.GoogleAds.V12.Common.MonthlySearchVolume.Parser, new[]{ "Year", "Month", "MonthlySearches" }, new[]{ "Year", "MonthlySearches" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics), global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics.Parser, new[]{ "AggregateMetricTypes" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults), global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults.Parser, new[]{ "DeviceSearches" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordPlanDeviceSearches), global::Google.Ads.GoogleAds.V12.Common.KeywordPlanDeviceSearches.Parser, new[]{ "Device", "SearchCount" }, new[]{ "SearchCount" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordAnnotations), global::Google.Ads.GoogleAds.V12.Common.KeywordAnnotations.Parser, new[]{ "Concepts" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.KeywordConcept), global::Google.Ads.GoogleAds.V12.Common.KeywordConcept.Parser, new[]{ "Name", "ConceptGroup" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Common.ConceptGroup), global::Google.Ads.GoogleAds.V12.Common.ConceptGroup.Parser, new[]{ "Name", "Type" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Historical metrics specific to the targeting options selected. - /// Targeting options include geographies, network, etc. - /// Refer to https://support.google.com/google-ads/answer/3022575 for more - /// details. - /// - public sealed partial class KeywordPlanHistoricalMetrics : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanHistoricalMetrics()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanHistoricalMetrics() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanHistoricalMetrics(KeywordPlanHistoricalMetrics other) : this() { - _hasBits0 = other._hasBits0; - avgMonthlySearches_ = other.avgMonthlySearches_; - monthlySearchVolumes_ = other.monthlySearchVolumes_.Clone(); - competition_ = other.competition_; - competitionIndex_ = other.competitionIndex_; - lowTopOfPageBidMicros_ = other.lowTopOfPageBidMicros_; - highTopOfPageBidMicros_ = other.highTopOfPageBidMicros_; - averageCpcMicros_ = other.averageCpcMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanHistoricalMetrics Clone() { - return new KeywordPlanHistoricalMetrics(this); - } - - /// Field number for the "avg_monthly_searches" field. - public const int AvgMonthlySearchesFieldNumber = 7; - private long avgMonthlySearches_; - /// - /// Approximate number of monthly searches on this query averaged - /// for the past 12 months. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AvgMonthlySearches { - get { if ((_hasBits0 & 1) != 0) { return avgMonthlySearches_; } else { return 0L; } } - set { - _hasBits0 |= 1; - avgMonthlySearches_ = value; - } - } - /// Gets whether the "avg_monthly_searches" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAvgMonthlySearches { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "avg_monthly_searches" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAvgMonthlySearches() { - _hasBits0 &= ~1; - } - - /// Field number for the "monthly_search_volumes" field. - public const int MonthlySearchVolumesFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_monthlySearchVolumes_codec - = pb::FieldCodec.ForMessage(50, global::Google.Ads.GoogleAds.V12.Common.MonthlySearchVolume.Parser); - private readonly pbc::RepeatedField monthlySearchVolumes_ = new pbc::RepeatedField(); - /// - /// Approximate number of searches on this query for the past twelve months. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MonthlySearchVolumes { - get { return monthlySearchVolumes_; } - } - - /// Field number for the "competition" field. - public const int CompetitionFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel competition_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel.Unspecified; - /// - /// The competition level for the query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel Competition { - get { return competition_; } - set { - competition_ = value; - } - } - - /// Field number for the "competition_index" field. - public const int CompetitionIndexFieldNumber = 8; - private long competitionIndex_; - /// - /// The competition index for the query in the range [0, 100]. - /// Shows how competitive ad placement is for a keyword. - /// The level of competition from 0-100 is determined by the number of ad slots - /// filled divided by the total number of ad slots available. If not enough - /// data is available, null is returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CompetitionIndex { - get { if ((_hasBits0 & 2) != 0) { return competitionIndex_; } else { return 0L; } } - set { - _hasBits0 |= 2; - competitionIndex_ = value; - } - } - /// Gets whether the "competition_index" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCompetitionIndex { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "competition_index" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCompetitionIndex() { - _hasBits0 &= ~2; - } - - /// Field number for the "low_top_of_page_bid_micros" field. - public const int LowTopOfPageBidMicrosFieldNumber = 9; - private long lowTopOfPageBidMicros_; - /// - /// Top of page bid low range (20th percentile) in micros for the keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long LowTopOfPageBidMicros { - get { if ((_hasBits0 & 4) != 0) { return lowTopOfPageBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 4; - lowTopOfPageBidMicros_ = value; - } - } - /// Gets whether the "low_top_of_page_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLowTopOfPageBidMicros { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "low_top_of_page_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLowTopOfPageBidMicros() { - _hasBits0 &= ~4; - } - - /// Field number for the "high_top_of_page_bid_micros" field. - public const int HighTopOfPageBidMicrosFieldNumber = 10; - private long highTopOfPageBidMicros_; - /// - /// Top of page bid high range (80th percentile) in micros for the keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long HighTopOfPageBidMicros { - get { if ((_hasBits0 & 8) != 0) { return highTopOfPageBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 8; - highTopOfPageBidMicros_ = value; - } - } - /// Gets whether the "high_top_of_page_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHighTopOfPageBidMicros { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "high_top_of_page_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHighTopOfPageBidMicros() { - _hasBits0 &= ~8; - } - - /// Field number for the "average_cpc_micros" field. - public const int AverageCpcMicrosFieldNumber = 11; - private long averageCpcMicros_; - /// - /// Average Cost Per Click in micros for the keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AverageCpcMicros { - get { if ((_hasBits0 & 16) != 0) { return averageCpcMicros_; } else { return 0L; } } - set { - _hasBits0 |= 16; - averageCpcMicros_ = value; - } - } - /// Gets whether the "average_cpc_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAverageCpcMicros { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "average_cpc_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAverageCpcMicros() { - _hasBits0 &= ~16; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanHistoricalMetrics); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanHistoricalMetrics other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AvgMonthlySearches != other.AvgMonthlySearches) return false; - if(!monthlySearchVolumes_.Equals(other.monthlySearchVolumes_)) return false; - if (Competition != other.Competition) return false; - if (CompetitionIndex != other.CompetitionIndex) return false; - if (LowTopOfPageBidMicros != other.LowTopOfPageBidMicros) return false; - if (HighTopOfPageBidMicros != other.HighTopOfPageBidMicros) return false; - if (AverageCpcMicros != other.AverageCpcMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasAvgMonthlySearches) hash ^= AvgMonthlySearches.GetHashCode(); - hash ^= monthlySearchVolumes_.GetHashCode(); - if (Competition != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel.Unspecified) hash ^= Competition.GetHashCode(); - if (HasCompetitionIndex) hash ^= CompetitionIndex.GetHashCode(); - if (HasLowTopOfPageBidMicros) hash ^= LowTopOfPageBidMicros.GetHashCode(); - if (HasHighTopOfPageBidMicros) hash ^= HighTopOfPageBidMicros.GetHashCode(); - if (HasAverageCpcMicros) hash ^= AverageCpcMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Competition != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Competition); - } - monthlySearchVolumes_.WriteTo(output, _repeated_monthlySearchVolumes_codec); - if (HasAvgMonthlySearches) { - output.WriteRawTag(56); - output.WriteInt64(AvgMonthlySearches); - } - if (HasCompetitionIndex) { - output.WriteRawTag(64); - output.WriteInt64(CompetitionIndex); - } - if (HasLowTopOfPageBidMicros) { - output.WriteRawTag(72); - output.WriteInt64(LowTopOfPageBidMicros); - } - if (HasHighTopOfPageBidMicros) { - output.WriteRawTag(80); - output.WriteInt64(HighTopOfPageBidMicros); - } - if (HasAverageCpcMicros) { - output.WriteRawTag(88); - output.WriteInt64(AverageCpcMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Competition != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Competition); - } - monthlySearchVolumes_.WriteTo(ref output, _repeated_monthlySearchVolumes_codec); - if (HasAvgMonthlySearches) { - output.WriteRawTag(56); - output.WriteInt64(AvgMonthlySearches); - } - if (HasCompetitionIndex) { - output.WriteRawTag(64); - output.WriteInt64(CompetitionIndex); - } - if (HasLowTopOfPageBidMicros) { - output.WriteRawTag(72); - output.WriteInt64(LowTopOfPageBidMicros); - } - if (HasHighTopOfPageBidMicros) { - output.WriteRawTag(80); - output.WriteInt64(HighTopOfPageBidMicros); - } - if (HasAverageCpcMicros) { - output.WriteRawTag(88); - output.WriteInt64(AverageCpcMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasAvgMonthlySearches) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AvgMonthlySearches); - } - size += monthlySearchVolumes_.CalculateSize(_repeated_monthlySearchVolumes_codec); - if (Competition != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Competition); - } - if (HasCompetitionIndex) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CompetitionIndex); - } - if (HasLowTopOfPageBidMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(LowTopOfPageBidMicros); - } - if (HasHighTopOfPageBidMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(HighTopOfPageBidMicros); - } - if (HasAverageCpcMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AverageCpcMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanHistoricalMetrics other) { - if (other == null) { - return; - } - if (other.HasAvgMonthlySearches) { - AvgMonthlySearches = other.AvgMonthlySearches; - } - monthlySearchVolumes_.Add(other.monthlySearchVolumes_); - if (other.Competition != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel.Unspecified) { - Competition = other.Competition; - } - if (other.HasCompetitionIndex) { - CompetitionIndex = other.CompetitionIndex; - } - if (other.HasLowTopOfPageBidMicros) { - LowTopOfPageBidMicros = other.LowTopOfPageBidMicros; - } - if (other.HasHighTopOfPageBidMicros) { - HighTopOfPageBidMicros = other.HighTopOfPageBidMicros; - } - if (other.HasAverageCpcMicros) { - AverageCpcMicros = other.AverageCpcMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - Competition = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel) input.ReadEnum(); - break; - } - case 50: { - monthlySearchVolumes_.AddEntriesFrom(input, _repeated_monthlySearchVolumes_codec); - break; - } - case 56: { - AvgMonthlySearches = input.ReadInt64(); - break; - } - case 64: { - CompetitionIndex = input.ReadInt64(); - break; - } - case 72: { - LowTopOfPageBidMicros = input.ReadInt64(); - break; - } - case 80: { - HighTopOfPageBidMicros = input.ReadInt64(); - break; - } - case 88: { - AverageCpcMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - Competition = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel) input.ReadEnum(); - break; - } - case 50: { - monthlySearchVolumes_.AddEntriesFrom(ref input, _repeated_monthlySearchVolumes_codec); - break; - } - case 56: { - AvgMonthlySearches = input.ReadInt64(); - break; - } - case 64: { - CompetitionIndex = input.ReadInt64(); - break; - } - case 72: { - LowTopOfPageBidMicros = input.ReadInt64(); - break; - } - case 80: { - HighTopOfPageBidMicros = input.ReadInt64(); - break; - } - case 88: { - AverageCpcMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Historical metrics options. - /// - public sealed partial class HistoricalMetricsOptions : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HistoricalMetricsOptions()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HistoricalMetricsOptions() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HistoricalMetricsOptions(HistoricalMetricsOptions other) : this() { - yearMonthRange_ = other.yearMonthRange_ != null ? other.yearMonthRange_.Clone() : null; - includeAverageCpc_ = other.includeAverageCpc_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public HistoricalMetricsOptions Clone() { - return new HistoricalMetricsOptions(this); - } - - /// Field number for the "year_month_range" field. - public const int YearMonthRangeFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Common.YearMonthRange yearMonthRange_; - /// - /// The year month range for historical metrics. If not specified the searches - /// will be returned for past 12 months. - /// Searches data is available for the past 4 years. If the search volume is - /// not available for the entire year_month_range provided, the subset of the - /// year month range for which search volume is available will be returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.YearMonthRange YearMonthRange { - get { return yearMonthRange_; } - set { - yearMonthRange_ = value; - } - } - - /// Field number for the "include_average_cpc" field. - public const int IncludeAverageCpcFieldNumber = 2; - private bool includeAverageCpc_; - /// - /// Indicates whether to include average cost per click value. - /// Average CPC is a legacy value that will be removed and replaced in the - /// future, and as such we are including it as an optioanl value so clients - /// only use it when strictly necessary and to better track clients that use - /// this value. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeAverageCpc { - get { return includeAverageCpc_; } - set { - includeAverageCpc_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as HistoricalMetricsOptions); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(HistoricalMetricsOptions other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(YearMonthRange, other.YearMonthRange)) return false; - if (IncludeAverageCpc != other.IncludeAverageCpc) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (yearMonthRange_ != null) hash ^= YearMonthRange.GetHashCode(); - if (IncludeAverageCpc != false) hash ^= IncludeAverageCpc.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (yearMonthRange_ != null) { - output.WriteRawTag(10); - output.WriteMessage(YearMonthRange); - } - if (IncludeAverageCpc != false) { - output.WriteRawTag(16); - output.WriteBool(IncludeAverageCpc); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (yearMonthRange_ != null) { - output.WriteRawTag(10); - output.WriteMessage(YearMonthRange); - } - if (IncludeAverageCpc != false) { - output.WriteRawTag(16); - output.WriteBool(IncludeAverageCpc); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (yearMonthRange_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YearMonthRange); - } - if (IncludeAverageCpc != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(HistoricalMetricsOptions other) { - if (other == null) { - return; - } - if (other.yearMonthRange_ != null) { - if (yearMonthRange_ == null) { - YearMonthRange = new global::Google.Ads.GoogleAds.V12.Common.YearMonthRange(); - } - YearMonthRange.MergeFrom(other.YearMonthRange); - } - if (other.IncludeAverageCpc != false) { - IncludeAverageCpc = other.IncludeAverageCpc; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - if (yearMonthRange_ == null) { - YearMonthRange = new global::Google.Ads.GoogleAds.V12.Common.YearMonthRange(); - } - input.ReadMessage(YearMonthRange); - break; - } - case 16: { - IncludeAverageCpc = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - if (yearMonthRange_ == null) { - YearMonthRange = new global::Google.Ads.GoogleAds.V12.Common.YearMonthRange(); - } - input.ReadMessage(YearMonthRange); - break; - } - case 16: { - IncludeAverageCpc = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// Monthly search volume. - /// - public sealed partial class MonthlySearchVolume : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MonthlySearchVolume()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MonthlySearchVolume() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MonthlySearchVolume(MonthlySearchVolume other) : this() { - _hasBits0 = other._hasBits0; - year_ = other.year_; - month_ = other.month_; - monthlySearches_ = other.monthlySearches_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MonthlySearchVolume Clone() { - return new MonthlySearchVolume(this); - } - - /// Field number for the "year" field. - public const int YearFieldNumber = 4; - private long year_; - /// - /// The year of the search volume (for example, 2020). - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Year { - get { if ((_hasBits0 & 1) != 0) { return year_; } else { return 0L; } } - set { - _hasBits0 |= 1; - year_ = value; - } - } - /// Gets whether the "year" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasYear { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "year" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearYear() { - _hasBits0 &= ~1; - } - - /// Field number for the "month" field. - public const int MonthFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear month_ = global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified; - /// - /// The month of the search volume. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear Month { - get { return month_; } - set { - month_ = value; - } - } - - /// Field number for the "monthly_searches" field. - public const int MonthlySearchesFieldNumber = 5; - private long monthlySearches_; - /// - /// Approximate number of searches for the month. - /// A null value indicates the search volume is unavailable for - /// that month. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MonthlySearches { - get { if ((_hasBits0 & 2) != 0) { return monthlySearches_; } else { return 0L; } } - set { - _hasBits0 |= 2; - monthlySearches_ = value; - } - } - /// Gets whether the "monthly_searches" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMonthlySearches { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "monthly_searches" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMonthlySearches() { - _hasBits0 &= ~2; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MonthlySearchVolume); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MonthlySearchVolume other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Year != other.Year) return false; - if (Month != other.Month) return false; - if (MonthlySearches != other.MonthlySearches) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasYear) hash ^= Year.GetHashCode(); - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) hash ^= Month.GetHashCode(); - if (HasMonthlySearches) hash ^= MonthlySearches.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Month); - } - if (HasYear) { - output.WriteRawTag(32); - output.WriteInt64(Year); - } - if (HasMonthlySearches) { - output.WriteRawTag(40); - output.WriteInt64(MonthlySearches); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Month); - } - if (HasYear) { - output.WriteRawTag(32); - output.WriteInt64(Year); - } - if (HasMonthlySearches) { - output.WriteRawTag(40); - output.WriteInt64(MonthlySearches); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasYear) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Year); - } - if (Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Month); - } - if (HasMonthlySearches) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MonthlySearches); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MonthlySearchVolume other) { - if (other == null) { - return; - } - if (other.HasYear) { - Year = other.Year; - } - if (other.Month != global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear.Unspecified) { - Month = other.Month; - } - if (other.HasMonthlySearches) { - MonthlySearches = other.MonthlySearches; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 16: { - Month = (global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear) input.ReadEnum(); - break; - } - case 32: { - Year = input.ReadInt64(); - break; - } - case 40: { - MonthlySearches = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 16: { - Month = (global::Google.Ads.GoogleAds.V12.Enums.MonthOfYearEnum.Types.MonthOfYear) input.ReadEnum(); - break; - } - case 32: { - Year = input.ReadInt64(); - break; - } - case 40: { - MonthlySearches = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// The aggregate metrics specification of the request. - /// - public sealed partial class KeywordPlanAggregateMetrics : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAggregateMetrics()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetrics() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetrics(KeywordPlanAggregateMetrics other) : this() { - aggregateMetricTypes_ = other.aggregateMetricTypes_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetrics Clone() { - return new KeywordPlanAggregateMetrics(this); - } - - /// Field number for the "aggregate_metric_types" field. - public const int AggregateMetricTypesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_aggregateMetricTypes_codec - = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanAggregateMetricTypeEnum.Types.KeywordPlanAggregateMetricType) x); - private readonly pbc::RepeatedField aggregateMetricTypes_ = new pbc::RepeatedField(); - /// - /// The list of aggregate metrics to fetch data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AggregateMetricTypes { - get { return aggregateMetricTypes_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAggregateMetrics); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAggregateMetrics other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!aggregateMetricTypes_.Equals(other.aggregateMetricTypes_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= aggregateMetricTypes_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - aggregateMetricTypes_.WriteTo(output, _repeated_aggregateMetricTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - aggregateMetricTypes_.WriteTo(ref output, _repeated_aggregateMetricTypes_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += aggregateMetricTypes_.CalculateSize(_repeated_aggregateMetricTypes_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAggregateMetrics other) { - if (other == null) { - return; - } - aggregateMetricTypes_.Add(other.aggregateMetricTypes_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: - case 8: { - aggregateMetricTypes_.AddEntriesFrom(input, _repeated_aggregateMetricTypes_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - case 8: { - aggregateMetricTypes_.AddEntriesFrom(ref input, _repeated_aggregateMetricTypes_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The aggregated historical metrics for keyword plan keywords. - /// - public sealed partial class KeywordPlanAggregateMetricResults : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAggregateMetricResults()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetricResults() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetricResults(KeywordPlanAggregateMetricResults other) : this() { - deviceSearches_ = other.deviceSearches_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAggregateMetricResults Clone() { - return new KeywordPlanAggregateMetricResults(this); - } - - /// Field number for the "device_searches" field. - public const int DeviceSearchesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_deviceSearches_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.KeywordPlanDeviceSearches.Parser); - private readonly pbc::RepeatedField deviceSearches_ = new pbc::RepeatedField(); - /// - /// The aggregate searches for all the keywords segmented by device - /// for the specified time. - /// Supports the following device types: MOBILE, TABLET, DESKTOP. - /// - /// This is only set when KeywordPlanAggregateMetricTypeEnum.DEVICE is set - /// in the KeywordPlanAggregateMetrics field in the request. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField DeviceSearches { - get { return deviceSearches_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAggregateMetricResults); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAggregateMetricResults other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!deviceSearches_.Equals(other.deviceSearches_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= deviceSearches_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - deviceSearches_.WriteTo(output, _repeated_deviceSearches_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - deviceSearches_.WriteTo(ref output, _repeated_deviceSearches_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += deviceSearches_.CalculateSize(_repeated_deviceSearches_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAggregateMetricResults other) { - if (other == null) { - return; - } - deviceSearches_.Add(other.deviceSearches_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - deviceSearches_.AddEntriesFrom(input, _repeated_deviceSearches_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - deviceSearches_.AddEntriesFrom(ref input, _repeated_deviceSearches_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The total searches for the device type during the specified time period. - /// - public sealed partial class KeywordPlanDeviceSearches : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanDeviceSearches()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanDeviceSearches() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanDeviceSearches(KeywordPlanDeviceSearches other) : this() { - _hasBits0 = other._hasBits0; - device_ = other.device_; - searchCount_ = other.searchCount_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanDeviceSearches Clone() { - return new KeywordPlanDeviceSearches(this); - } - - /// Field number for the "device" field. - public const int DeviceFieldNumber = 1; - private global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device device_ = global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified; - /// - /// The device type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device Device { - get { return device_; } - set { - device_ = value; - } - } - - /// Field number for the "search_count" field. - public const int SearchCountFieldNumber = 2; - private long searchCount_; - /// - /// The total searches for the device. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long SearchCount { - get { if ((_hasBits0 & 1) != 0) { return searchCount_; } else { return 0L; } } - set { - _hasBits0 |= 1; - searchCount_ = value; - } - } - /// Gets whether the "search_count" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSearchCount { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "search_count" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSearchCount() { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanDeviceSearches); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanDeviceSearches other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Device != other.Device) return false; - if (SearchCount != other.SearchCount) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Device != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) hash ^= Device.GetHashCode(); - if (HasSearchCount) hash ^= SearchCount.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Device != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Device); - } - if (HasSearchCount) { - output.WriteRawTag(16); - output.WriteInt64(SearchCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Device != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - output.WriteRawTag(8); - output.WriteEnum((int) Device); - } - if (HasSearchCount) { - output.WriteRawTag(16); - output.WriteInt64(SearchCount); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Device != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Device); - } - if (HasSearchCount) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(SearchCount); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanDeviceSearches other) { - if (other == null) { - return; - } - if (other.Device != global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device.Unspecified) { - Device = other.Device; - } - if (other.HasSearchCount) { - SearchCount = other.SearchCount; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) input.ReadEnum(); - break; - } - case 16: { - SearchCount = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: { - Device = (global::Google.Ads.GoogleAds.V12.Enums.DeviceEnum.Types.Device) input.ReadEnum(); - break; - } - case 16: { - SearchCount = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// The Annotations for the Keyword plan keywords. - /// - public sealed partial class KeywordAnnotations : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordAnnotations()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordAnnotations() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordAnnotations(KeywordAnnotations other) : this() { - concepts_ = other.concepts_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordAnnotations Clone() { - return new KeywordAnnotations(this); - } - - /// Field number for the "concepts" field. - public const int ConceptsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_concepts_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Common.KeywordConcept.Parser); - private readonly pbc::RepeatedField concepts_ = new pbc::RepeatedField(); - /// - /// The list of concepts for the keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Concepts { - get { return concepts_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordAnnotations); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordAnnotations other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!concepts_.Equals(other.concepts_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= concepts_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - concepts_.WriteTo(output, _repeated_concepts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - concepts_.WriteTo(ref output, _repeated_concepts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += concepts_.CalculateSize(_repeated_concepts_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordAnnotations other) { - if (other == null) { - return; - } - concepts_.Add(other.concepts_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - concepts_.AddEntriesFrom(input, _repeated_concepts_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - concepts_.AddEntriesFrom(ref input, _repeated_concepts_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The concept for the keyword. - /// - public sealed partial class KeywordConcept : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordConcept()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordConcept() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordConcept(KeywordConcept other) : this() { - name_ = other.name_; - conceptGroup_ = other.conceptGroup_ != null ? other.conceptGroup_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordConcept Clone() { - return new KeywordConcept(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The concept name for the keyword in the concept_group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "concept_group" field. - public const int ConceptGroupFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.ConceptGroup conceptGroup_; - /// - /// The concept group of the concept details. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.ConceptGroup ConceptGroup { - get { return conceptGroup_; } - set { - conceptGroup_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordConcept); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordConcept other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (!object.Equals(ConceptGroup, other.ConceptGroup)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (conceptGroup_ != null) hash ^= ConceptGroup.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (conceptGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConceptGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (conceptGroup_ != null) { - output.WriteRawTag(18); - output.WriteMessage(ConceptGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (conceptGroup_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConceptGroup); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordConcept other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.conceptGroup_ != null) { - if (conceptGroup_ == null) { - ConceptGroup = new global::Google.Ads.GoogleAds.V12.Common.ConceptGroup(); - } - ConceptGroup.MergeFrom(other.ConceptGroup); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - if (conceptGroup_ == null) { - ConceptGroup = new global::Google.Ads.GoogleAds.V12.Common.ConceptGroup(); - } - input.ReadMessage(ConceptGroup); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 18: { - if (conceptGroup_ == null) { - ConceptGroup = new global::Google.Ads.GoogleAds.V12.Common.ConceptGroup(); - } - input.ReadMessage(ConceptGroup); - break; - } - } - } - } - #endif - - } - - /// - /// The concept group for the keyword concept. - /// - public sealed partial class ConceptGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConceptGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptGroup(ConceptGroup other) : this() { - name_ = other.name_; - type_ = other.type_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ConceptGroup Clone() { - return new ConceptGroup(this); - } - - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; - /// - /// The concept group name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } - set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "type" field. - public const int TypeFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType type_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType.Unspecified; - /// - /// The concept group type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType Type { - get { return type_; } - set { - type_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ConceptGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ConceptGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Name != other.Name) return false; - if (Type != other.Type) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Type != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType.Unspecified) hash ^= Type.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType.Unspecified) { - output.WriteRawTag(16); - output.WriteEnum((int) Type); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (Type != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ConceptGroup other) { - if (other == null) { - return; - } - if (other.Name.Length != 0) { - Name = other.Name; - } - if (other.Type != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType.Unspecified) { - Type = other.Type; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType) input.ReadEnum(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Name = input.ReadString(); - break; - } - case 16: { - Type = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType) input.ReadEnum(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanCompetitionLevel.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanCompetitionLevel.g.cs deleted file mode 100755 index 2a17ba20f..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanCompetitionLevel.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/keyword_plan_competition_level.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/keyword_plan_competition_level.proto - public static partial class KeywordPlanCompetitionLevelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/keyword_plan_competition_level.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanCompetitionLevelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9wbGFu", - "X2NvbXBldGl0aW9uX2xldmVsLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMifQofS2V5d29yZFBsYW5Db21wZXRpdGlvbkxldmVsRW51", - "bSJaChtLZXl3b3JkUGxhbkNvbXBldGl0aW9uTGV2ZWwSDwoLVU5TUEVDSUZJ", - "RUQQABILCgdVTktOT1dOEAESBwoDTE9XEAISCgoGTUVESVVNEAMSCAoESElH", - "SBAEQvoBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1zQiBL", - "ZXl3b3JkUGxhbkNvbXBldGl0aW9uTGV2ZWxQcm90b1ABWkNnb29nbGUuZ29s", - "YW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEy", - "L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEy", - "LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum), global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of keyword competition levels. The competition - /// level indicates how competitive ad placement is for a keyword and - /// is determined by the number of advertisers bidding on that keyword relative - /// to all keywords across Google. The competition level can depend on the - /// location and Search Network targeting options you've selected. - /// - public sealed partial class KeywordPlanCompetitionLevelEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCompetitionLevelEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanCompetitionLevelReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCompetitionLevelEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCompetitionLevelEnum(KeywordPlanCompetitionLevelEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCompetitionLevelEnum Clone() { - return new KeywordPlanCompetitionLevelEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCompetitionLevelEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCompetitionLevelEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCompetitionLevelEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanCompetitionLevelEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Competition level of a keyword. - /// - public enum KeywordPlanCompetitionLevel { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Low competition. The Competition Index range for this is [0, 33]. - /// - [pbr::OriginalName("LOW")] Low = 2, - /// - /// Medium competition. The Competition Index range for this is [34, 66]. - /// - [pbr::OriginalName("MEDIUM")] Medium = 3, - /// - /// High competition. The Competition Index range for this is [67, 100]. - /// - [pbr::OriginalName("HIGH")] High = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanConceptGroupType.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanConceptGroupType.g.cs deleted file mode 100755 index a568c7742..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanConceptGroupType.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/keyword_plan_concept_group_type.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/keyword_plan_concept_group_type.proto - public static partial class KeywordPlanConceptGroupTypeReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/keyword_plan_concept_group_type.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanConceptGroupTypeReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9wbGFu", - "X2NvbmNlcHRfZ3JvdXBfdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zIooBCh9LZXl3b3JkUGxhbkNvbmNlcHRHcm91cFR5cGVF", - "bnVtImcKG0tleXdvcmRQbGFuQ29uY2VwdEdyb3VwVHlwZRIPCgtVTlNQRUNJ", - "RklFRBAAEgsKB1VOS05PV04QARIJCgVCUkFORBACEhAKDE9USEVSX0JSQU5E", - "UxADEg0KCU5PTl9CUkFORBAEQvoBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zQiBLZXl3b3JkUGxhbkNvbmNlcHRHcm91cFR5cGVQcm90", - "b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fk", - "cy9nb29nbGVhZHMvdjEyL2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFk", - "cy5Hb29nbGVBZHMuVjEyLkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVt", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum), global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeEnum.Types.KeywordPlanConceptGroupType) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of keyword plan concept group types. - /// - public sealed partial class KeywordPlanConceptGroupTypeEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanConceptGroupTypeEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanConceptGroupTypeReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanConceptGroupTypeEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanConceptGroupTypeEnum(KeywordPlanConceptGroupTypeEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanConceptGroupTypeEnum Clone() { - return new KeywordPlanConceptGroupTypeEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanConceptGroupTypeEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanConceptGroupTypeEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanConceptGroupTypeEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanConceptGroupTypeEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates keyword plan concept group types. - /// - public enum KeywordPlanConceptGroupType { - /// - /// The concept group classification different from brand/non-brand. - /// This is a catch all bucket for all classifications that are none of the - /// below. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The concept group classification is based on BRAND. - /// - [pbr::OriginalName("BRAND")] Brand = 2, - /// - /// The concept group classification based on BRAND, that didn't fit well - /// with the BRAND classifications. These are generally outliers and can have - /// very few keywords in this type of classification. - /// - [pbr::OriginalName("OTHER_BRANDS")] OtherBrands = 3, - /// - /// These concept group classification is not based on BRAND. This is - /// returned for generic keywords that don't have a brand association. - /// - [pbr::OriginalName("NON_BRAND")] NonBrand = 4, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanError.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanError.g.cs deleted file mode 100755 index 79a5833bd..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanError.g.cs +++ /dev/null @@ -1,295 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/keyword_plan_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/keyword_plan_error.proto - public static partial class KeywordPlanErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/keyword_plan_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2tleXdvcmRfcGxh", - "bl9lcnJvci5wcm90bxIfZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVycm9y", - "cyLIAwoUS2V5d29yZFBsYW5FcnJvckVudW0irwMKEEtleXdvcmRQbGFuRXJy", - "b3ISDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESHwobQklEX01VTFRJ", - "UExJRVJfT1VUX09GX1JBTkdFEAISEAoMQklEX1RPT19ISUdIEAMSDwoLQklE", - "X1RPT19MT1cQBBIiCh5CSURfVE9PX01BTllfRlJBQ1RJT05BTF9ESUdJVFMQ", - "BRIYChREQUlMWV9CVURHRVRfVE9PX0xPVxAGEisKJ0RBSUxZX0JVREdFVF9U", - "T09fTUFOWV9GUkFDVElPTkFMX0RJR0lUUxAHEhEKDUlOVkFMSURfVkFMVUUQ", - "CBIgChxLRVlXT1JEX1BMQU5fSEFTX05PX0tFWVdPUkRTEAkSHAoYS0VZV09S", - "RF9QTEFOX05PVF9FTkFCTEVEEAoSGgoWS0VZV09SRF9QTEFOX05PVF9GT1VO", - "RBALEg8KC01JU1NJTkdfQklEEA0SGwoXTUlTU0lOR19GT1JFQ0FTVF9QRVJJ", - "T0QQDhIfChtJTlZBTElEX0ZPUkVDQVNUX0RBVEVfUkFOR0UQDxIQCgxJTlZB", - "TElEX05BTUUQEEL1AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "cnJvcnNCFUtleXdvcmRQbGFuRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5n", - "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2Vy", - "cm9ycztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIu", - "RXJyb3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVycm9yc+oCI0dv", - "b2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6RXJyb3JzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorEnum.Types.KeywordPlanError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible errors from applying a keyword plan - /// resource (keyword plan, keyword plan campaign, keyword plan ad group or - /// keyword plan keyword) or KeywordPlanService RPC. - /// - public sealed partial class KeywordPlanErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanErrorEnum(KeywordPlanErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanErrorEnum Clone() { - return new KeywordPlanErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible errors from applying a keyword plan. - /// - public enum KeywordPlanError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The plan's bid multiplier value is outside the valid range. - /// - [pbr::OriginalName("BID_MULTIPLIER_OUT_OF_RANGE")] BidMultiplierOutOfRange = 2, - /// - /// The plan's bid value is too high. - /// - [pbr::OriginalName("BID_TOO_HIGH")] BidTooHigh = 3, - /// - /// The plan's bid value is too low. - /// - [pbr::OriginalName("BID_TOO_LOW")] BidTooLow = 4, - /// - /// The plan's cpc bid is not a multiple of the minimum billable unit. - /// - [pbr::OriginalName("BID_TOO_MANY_FRACTIONAL_DIGITS")] BidTooManyFractionalDigits = 5, - /// - /// The plan's daily budget value is too low. - /// - [pbr::OriginalName("DAILY_BUDGET_TOO_LOW")] DailyBudgetTooLow = 6, - /// - /// The plan's daily budget is not a multiple of the minimum billable unit. - /// - [pbr::OriginalName("DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS")] DailyBudgetTooManyFractionalDigits = 7, - /// - /// The input has an invalid value. - /// - [pbr::OriginalName("INVALID_VALUE")] InvalidValue = 8, - /// - /// The plan has no keyword. - /// - [pbr::OriginalName("KEYWORD_PLAN_HAS_NO_KEYWORDS")] KeywordPlanHasNoKeywords = 9, - /// - /// The plan is not enabled and API cannot provide mutation, forecast or - /// stats. - /// - [pbr::OriginalName("KEYWORD_PLAN_NOT_ENABLED")] KeywordPlanNotEnabled = 10, - /// - /// The requested plan cannot be found for providing forecast or stats. - /// - [pbr::OriginalName("KEYWORD_PLAN_NOT_FOUND")] KeywordPlanNotFound = 11, - /// - /// The plan is missing a cpc bid. - /// - [pbr::OriginalName("MISSING_BID")] MissingBid = 13, - /// - /// The plan is missing required forecast_period field. - /// - [pbr::OriginalName("MISSING_FORECAST_PERIOD")] MissingForecastPeriod = 14, - /// - /// The plan's forecast_period has invalid forecast date range. - /// - [pbr::OriginalName("INVALID_FORECAST_DATE_RANGE")] InvalidForecastDateRange = 15, - /// - /// The plan's name is invalid. - /// - [pbr::OriginalName("INVALID_NAME")] InvalidName = 16, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanForecastInterval.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanForecastInterval.g.cs deleted file mode 100755 index 600ca340e..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanForecastInterval.g.cs +++ /dev/null @@ -1,245 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/keyword_plan_forecast_interval.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/keyword_plan_forecast_interval.proto - public static partial class KeywordPlanForecastIntervalReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/keyword_plan_forecast_interval.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanForecastIntervalReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9wbGFu", - "X2ZvcmVjYXN0X2ludGVydmFsLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTIuZW51bXMijwEKH0tleXdvcmRQbGFuRm9yZWNhc3RJbnRlcnZhbEVu", - "dW0ibAobS2V5d29yZFBsYW5Gb3JlY2FzdEludGVydmFsEg8KC1VOU1BFQ0lG", - "SUVEEAASCwoHVU5LTk9XThABEg0KCU5FWFRfV0VFSxADEg4KCk5FWFRfTU9O", - "VEgQBBIQCgxORVhUX1FVQVJURVIQBUL6AQoiY29tLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5lbnVtc0IgS2V5d29yZFBsYW5Gb3JlY2FzdEludGVydmFs", - "UHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dBQaoCHkdvb2ds", - "ZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxMjo6", - "RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalEnum), global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalEnum.Types.KeywordPlanForecastInterval) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of forecast intervals. - /// - public sealed partial class KeywordPlanForecastIntervalEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanForecastIntervalEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanForecastIntervalReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanForecastIntervalEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanForecastIntervalEnum(KeywordPlanForecastIntervalEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanForecastIntervalEnum Clone() { - return new KeywordPlanForecastIntervalEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanForecastIntervalEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanForecastIntervalEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanForecastIntervalEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanForecastIntervalEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Forecast intervals. - /// - public enum KeywordPlanForecastInterval { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// The next week date range for keyword plan. The next week is based - /// on the default locale of the user's account and is mostly SUN-SAT or - /// MON-SUN. - /// This can be different from next-7 days. - /// - [pbr::OriginalName("NEXT_WEEK")] NextWeek = 3, - /// - /// The next month date range for keyword plan. - /// - [pbr::OriginalName("NEXT_MONTH")] NextMonth = 4, - /// - /// The next quarter date range for keyword plan. - /// - [pbr::OriginalName("NEXT_QUARTER")] NextQuarter = 5, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaError.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaError.g.cs deleted file mode 100755 index 2192d1e65..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaError.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/keyword_plan_idea_error.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { - - /// Holder for reflection information generated from google/ads/googleads/v12/errors/keyword_plan_idea_error.proto - public static partial class KeywordPlanIdeaErrorReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/keyword_plan_idea_error.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanIdeaErrorReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2tleXdvcmRfcGxh", - "bl9pZGVhX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "ZXJyb3JzIngKGEtleXdvcmRQbGFuSWRlYUVycm9yRW51bSJcChRLZXl3b3Jk", - "UGxhbklkZWFFcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIT", - "Cg9VUkxfQ1JBV0xfRVJST1IQAhIRCg1JTlZBTElEX1ZBTFVFEANC+QEKI2Nv", - "bS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzQhlLZXl3b3JkUGxh", - "bklkZWFFcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3Rv", - "L2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzO2Vycm9yc6IC", - "A0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FcnJvcnPKAh9Hb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTJcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdv", - "b2dsZUFkczo6VjEyOjpFcnJvcnNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorEnum.Types.KeywordPlanIdeaError) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enum describing possible errors from KeywordPlanIdeaService. - /// - public sealed partial class KeywordPlanIdeaErrorEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanIdeaErrorEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.KeywordPlanIdeaErrorReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanIdeaErrorEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanIdeaErrorEnum(KeywordPlanIdeaErrorEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanIdeaErrorEnum Clone() { - return new KeywordPlanIdeaErrorEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanIdeaErrorEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanIdeaErrorEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanIdeaErrorEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanIdeaErrorEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enum describing possible errors from KeywordPlanIdeaService. - /// - public enum KeywordPlanIdeaError { - /// - /// Enum unspecified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The received error code is not known in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Error when crawling the input URL. - /// - [pbr::OriginalName("URL_CRAWL_ERROR")] UrlCrawlError = 2, - /// - /// The input has an invalid value. - /// - [pbr::OriginalName("INVALID_VALUE")] InvalidValue = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaService.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaService.g.cs deleted file mode 100755 index eaea3da02..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaService.g.cs +++ /dev/null @@ -1,4568 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_idea_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/keyword_plan_idea_service.proto - public static partial class KeywordPlanIdeaServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/keyword_plan_idea_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanIdeaServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMva2V5d29yZF9w", - "bGFuX2lkZWFfc2VydmljZS5wcm90bxIhZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9u", - "L2tleXdvcmRfcGxhbl9jb21tb24ucHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxMi9lbnVtcy9rZXl3b3JkX21hdGNoX3R5cGUucHJvdG8aRGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9rZXl3b3JkX3BsYW5fa2V5d29y", - "ZF9hbm5vdGF0aW9uLnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIv", - "ZW51bXMva2V5d29yZF9wbGFuX25ldHdvcmsucHJvdG8aHGdvb2dsZS9hcGkv", - "YW5ub3RhdGlvbnMucHJvdG8aF2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9n", - "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvIv8GChtHZW5lcmF0ZUtl", - "eXdvcmRJZGVhc1JlcXVlc3QSEwoLY3VzdG9tZXJfaWQYASABKAkSFQoIbGFu", - "Z3VhZ2UYDiABKAlIAYgBARIcChRnZW9fdGFyZ2V0X2NvbnN0YW50cxgPIAMo", - "CRIeChZpbmNsdWRlX2FkdWx0X2tleXdvcmRzGAogASgIEhIKCnBhZ2VfdG9r", - "ZW4YDCABKAkSEQoJcGFnZV9zaXplGA0gASgFEmcKFGtleXdvcmRfcGxhbl9u", - "ZXR3b3JrGAkgASgOMkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVudW1z", - "LktleXdvcmRQbGFuTmV0d29ya0VudW0uS2V5d29yZFBsYW5OZXR3b3JrEnkK", - "EmtleXdvcmRfYW5ub3RhdGlvbhgRIAMoDjJdLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5lbnVtcy5LZXl3b3JkUGxhbktleXdvcmRBbm5vdGF0aW9uRW51", - "bS5LZXl3b3JkUGxhbktleXdvcmRBbm5vdGF0aW9uElcKEWFnZ3JlZ2F0ZV9t", - "ZXRyaWNzGBAgASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1v", - "bi5LZXl3b3JkUGxhbkFnZ3JlZ2F0ZU1ldHJpY3MSXQoaaGlzdG9yaWNhbF9t", - "ZXRyaWNzX29wdGlvbnMYEiABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuY29tbW9uLkhpc3RvcmljYWxNZXRyaWNzT3B0aW9ucxJUChRrZXl3b3Jk", - "X2FuZF91cmxfc2VlZBgCIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5zZXJ2aWNlcy5LZXl3b3JkQW5kVXJsU2VlZEgAEkYKDGtleXdvcmRfc2Vl", - "ZBgDIAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5L", - "ZXl3b3JkU2VlZEgAEj4KCHVybF9zZWVkGAUgASgLMiouZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLnNlcnZpY2VzLlVybFNlZWRIABJACglzaXRlX3NlZWQY", - "CyABKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuU2l0", - "ZVNlZWRIAEIGCgRzZWVkQgsKCV9sYW5ndWFnZSI/ChFLZXl3b3JkQW5kVXJs", - "U2VlZBIQCgN1cmwYAyABKAlIAIgBARIQCghrZXl3b3JkcxgEIAMoCUIGCgRf", - "dXJsIh8KC0tleXdvcmRTZWVkEhAKCGtleXdvcmRzGAIgAygJIiYKCFNpdGVT", - "ZWVkEhEKBHNpdGUYAiABKAlIAIgBAUIHCgVfc2l0ZSIjCgdVcmxTZWVkEhAK", - "A3VybBgCIAEoCUgAiAEBQgYKBF91cmwi/wEKG0dlbmVyYXRlS2V5d29yZElk", - "ZWFSZXNwb25zZRJNCgdyZXN1bHRzGAEgAygLMjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLkdlbmVyYXRlS2V5d29yZElkZWFSZXN1bHQS", - "ZAoYYWdncmVnYXRlX21ldHJpY19yZXN1bHRzGAQgASgLMkIuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLmNvbW1vbi5LZXl3b3JkUGxhbkFnZ3JlZ2F0ZU1l", - "dHJpY1Jlc3VsdHMSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJEhIKCnRvdGFs", - "X3NpemUYAyABKAMi/gEKGUdlbmVyYXRlS2V5d29yZElkZWFSZXN1bHQSEQoE", - "dGV4dBgFIAEoCUgAiAEBElsKFGtleXdvcmRfaWRlYV9tZXRyaWNzGAMgASgL", - "Mj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5LZXl3b3JkUGxh", - "bkhpc3RvcmljYWxNZXRyaWNzElAKE2tleXdvcmRfYW5ub3RhdGlvbnMYBiAB", - "KAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLktleXdvcmRB", - "bm5vdGF0aW9ucxIWCg5jbG9zZV92YXJpYW50cxgHIAMoCUIHCgVfdGV4dCLT", - "AwonR2VuZXJhdGVLZXl3b3JkSGlzdG9yaWNhbE1ldHJpY3NSZXF1ZXN0EhMK", - "C2N1c3RvbWVyX2lkGAEgASgJEhAKCGtleXdvcmRzGAIgAygJEhUKCGxhbmd1", - "YWdlGAQgASgJSACIAQESHgoWaW5jbHVkZV9hZHVsdF9rZXl3b3JkcxgFIAEo", - "CBIcChRnZW9fdGFyZ2V0X2NvbnN0YW50cxgGIAMoCRJnChRrZXl3b3JkX3Bs", - "YW5fbmV0d29yaxgHIAEoDjJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5LZXl3b3JkUGxhbk5ldHdvcmtFbnVtLktleXdvcmRQbGFuTmV0d29y", - "axJXChFhZ2dyZWdhdGVfbWV0cmljcxgIIAEoCzI8Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxMi5jb21tb24uS2V5d29yZFBsYW5BZ2dyZWdhdGVNZXRyaWNz", - "El0KGmhpc3RvcmljYWxfbWV0cmljc19vcHRpb25zGAMgASgLMjkuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5IaXN0b3JpY2FsTWV0cmljc09w", - "dGlvbnNCCwoJX2xhbmd1YWdlIuwBCihHZW5lcmF0ZUtleXdvcmRIaXN0b3Jp", - "Y2FsTWV0cmljc1Jlc3BvbnNlEloKB3Jlc3VsdHMYASADKAsySS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuR2VuZXJhdGVLZXl3b3JkSGlz", - "dG9yaWNhbE1ldHJpY3NSZXN1bHQSZAoYYWdncmVnYXRlX21ldHJpY19yZXN1", - "bHRzGAIgASgLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmNvbW1vbi5L", - "ZXl3b3JkUGxhbkFnZ3JlZ2F0ZU1ldHJpY1Jlc3VsdHMitAEKJkdlbmVyYXRl", - "S2V5d29yZEhpc3RvcmljYWxNZXRyaWNzUmVzdWx0EhEKBHRleHQYASABKAlI", - "AIgBARIWCg5jbG9zZV92YXJpYW50cxgDIAMoCRJWCg9rZXl3b3JkX21ldHJp", - "Y3MYAiABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLktl", - "eXdvcmRQbGFuSGlzdG9yaWNhbE1ldHJpY3NCBwoFX3RleHQiZwocR2VuZXJh", - "dGVBZEdyb3VwVGhlbWVzUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID", - "4EECEhUKCGtleXdvcmRzGAIgAygJQgPgQQISFgoJYWRfZ3JvdXBzGAMgAygJ", - "QgPgQQIi0gEKHUdlbmVyYXRlQWRHcm91cFRoZW1lc1Jlc3BvbnNlEmEKHGFk", - "X2dyb3VwX2tleXdvcmRfc3VnZ2VzdGlvbnMYASADKAsyOy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXMuQWRHcm91cEtleXdvcmRTdWdnZXN0", - "aW9uEk4KEnVudXNhYmxlX2FkX2dyb3VwcxgCIAMoCzIyLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5VbnVzYWJsZUFkR3JvdXAi7QEKGEFk", - "R3JvdXBLZXl3b3JkU3VnZ2VzdGlvbhIUCgxrZXl3b3JkX3RleHQYASABKAkS", - "HgoWc3VnZ2VzdGVkX2tleXdvcmRfdGV4dBgCIAEoCRJjChRzdWdnZXN0ZWRf", - "bWF0Y2hfdHlwZRgDIAEoDjJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcy5LZXl3b3JkTWF0Y2hUeXBlRW51bS5LZXl3b3JkTWF0Y2hUeXBlEhoK", - "EnN1Z2dlc3RlZF9hZF9ncm91cBgEIAEoCRIaChJzdWdnZXN0ZWRfY2FtcGFp", - "Z24YBSABKAkiNQoPVW51c2FibGVBZEdyb3VwEhAKCGFkX2dyb3VwGAEgASgJ", - "EhAKCGNhbXBhaWduGAIgASgJMqAGChZLZXl3b3JkUGxhbklkZWFTZXJ2aWNl", - "EtYBChRHZW5lcmF0ZUtleXdvcmRJZGVhcxI+Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5HZW5lcmF0ZUtleXdvcmRJZGVhc1JlcXVlc3Qa", - "Pi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuR2VuZXJhdGVL", - "ZXl3b3JkSWRlYVJlc3BvbnNlIj6C0+STAjgiMy92MTIvY3VzdG9tZXJzL3tj", - "dXN0b21lcl9pZD0qfTpnZW5lcmF0ZUtleXdvcmRJZGVhczoBKhKHAgogR2Vu", - "ZXJhdGVLZXl3b3JkSGlzdG9yaWNhbE1ldHJpY3MSSi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuR2VuZXJhdGVLZXl3b3JkSGlzdG9yaWNh", - "bE1ldHJpY3NSZXF1ZXN0GksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLkdlbmVyYXRlS2V5d29yZEhpc3RvcmljYWxNZXRyaWNzUmVzcG9u", - "c2UiSoLT5JMCRCI/L3YxMi9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9Omdl", - "bmVyYXRlS2V5d29yZEhpc3RvcmljYWxNZXRyaWNzOgEqEtsBChVHZW5lcmF0", - "ZUFkR3JvdXBUaGVtZXMSPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuR2VuZXJhdGVBZEdyb3VwVGhlbWVzUmVxdWVzdBpALmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5HZW5lcmF0ZUFkR3JvdXBUaGVt", - "ZXNSZXNwb25zZSI/gtPkkwI5IjQvdjEyL2N1c3RvbWVycy97Y3VzdG9tZXJf", - "aWQ9Kn06Z2VuZXJhdGVBZEdyb3VwVGhlbWVzOgEqGkXKQRhnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9h", - "dXRoL2Fkd29yZHNChwIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIu", - "c2VydmljZXNCG0tleXdvcmRQbGFuSWRlYVNlcnZpY2VQcm90b1ABWklnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpT", - "ZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanKeywordAnnotationReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest.Parser, new[]{ "CustomerId", "Language", "GeoTargetConstants", "IncludeAdultKeywords", "PageToken", "PageSize", "KeywordPlanNetwork", "KeywordAnnotation", "AggregateMetrics", "HistoricalMetricsOptions", "KeywordAndUrlSeed", "KeywordSeed", "UrlSeed", "SiteSeed" }, new[]{ "Seed", "Language" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed), global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed.Parser, new[]{ "Url", "Keywords" }, new[]{ "Url" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordSeed), global::Google.Ads.GoogleAds.V12.Services.KeywordSeed.Parser, new[]{ "Keywords" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SiteSeed), global::Google.Ads.GoogleAds.V12.Services.SiteSeed.Parser, new[]{ "Site" }, new[]{ "Site" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UrlSeed), global::Google.Ads.GoogleAds.V12.Services.UrlSeed.Parser, new[]{ "Url" }, new[]{ "Url" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResponse.Parser, new[]{ "Results", "AggregateMetricResults", "NextPageToken", "TotalSize" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResult), global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResult.Parser, new[]{ "Text", "KeywordIdeaMetrics", "KeywordAnnotations", "CloseVariants" }, new[]{ "Text" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest.Parser, new[]{ "CustomerId", "Keywords", "Language", "IncludeAdultKeywords", "GeoTargetConstants", "KeywordPlanNetwork", "AggregateMetrics", "HistoricalMetricsOptions" }, new[]{ "Language" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResponse.Parser, new[]{ "Results", "AggregateMetricResults" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResult), global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResult.Parser, new[]{ "Text", "CloseVariants", "KeywordMetrics" }, new[]{ "Text" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest.Parser, new[]{ "CustomerId", "Keywords", "AdGroups" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesResponse.Parser, new[]{ "AdGroupKeywordSuggestions", "UnusableAdGroups" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.AdGroupKeywordSuggestion), global::Google.Ads.GoogleAds.V12.Services.AdGroupKeywordSuggestion.Parser, new[]{ "KeywordText", "SuggestedKeywordText", "SuggestedMatchType", "SuggestedAdGroup", "SuggestedCampaign" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.UnusableAdGroup), global::Google.Ads.GoogleAds.V12.Services.UnusableAdGroup.Parser, new[]{ "AdGroup", "Campaign" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v12.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. - /// - public sealed partial class GenerateKeywordIdeasRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateKeywordIdeasRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeasRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeasRequest(GenerateKeywordIdeasRequest other) : this() { - customerId_ = other.customerId_; - language_ = other.language_; - geoTargetConstants_ = other.geoTargetConstants_.Clone(); - includeAdultKeywords_ = other.includeAdultKeywords_; - pageToken_ = other.pageToken_; - pageSize_ = other.pageSize_; - keywordPlanNetwork_ = other.keywordPlanNetwork_; - keywordAnnotation_ = other.keywordAnnotation_.Clone(); - aggregateMetrics_ = other.aggregateMetrics_ != null ? other.aggregateMetrics_.Clone() : null; - historicalMetricsOptions_ = other.historicalMetricsOptions_ != null ? other.historicalMetricsOptions_.Clone() : null; - switch (other.SeedCase) { - case SeedOneofCase.KeywordAndUrlSeed: - KeywordAndUrlSeed = other.KeywordAndUrlSeed.Clone(); - break; - case SeedOneofCase.KeywordSeed: - KeywordSeed = other.KeywordSeed.Clone(); - break; - case SeedOneofCase.UrlSeed: - UrlSeed = other.UrlSeed.Clone(); - break; - case SeedOneofCase.SiteSeed: - SiteSeed = other.SiteSeed.Clone(); - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeasRequest Clone() { - return new GenerateKeywordIdeasRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// The ID of the customer with the recommendation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "language" field. - public const int LanguageFieldNumber = 14; - private string language_; - /// - /// The resource name of the language to target. - /// Each keyword belongs to some set of languages; a keyword is included if - /// language is one of its languages. - /// If not set, all keywords will be included. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Language { - get { return language_ ?? ""; } - set { - language_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguage { - get { return language_ != null; } - } - /// Clears the value of the "language" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguage() { - language_ = null; - } - - /// Field number for the "geo_target_constants" field. - public const int GeoTargetConstantsFieldNumber = 15; - private static readonly pb::FieldCodec _repeated_geoTargetConstants_codec - = pb::FieldCodec.ForString(122); - private readonly pbc::RepeatedField geoTargetConstants_ = new pbc::RepeatedField(); - /// - /// The resource names of the location to target. Maximum is 10. - /// An empty list MAY be used to specify all targeting geos. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargetConstants { - get { return geoTargetConstants_; } - } - - /// Field number for the "include_adult_keywords" field. - public const int IncludeAdultKeywordsFieldNumber = 10; - private bool includeAdultKeywords_; - /// - /// If true, adult keywords will be included in response. - /// The default value is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeAdultKeywords { - get { return includeAdultKeywords_; } - set { - includeAdultKeywords_ = value; - } - } - - /// Field number for the "page_token" field. - public const int PageTokenFieldNumber = 12; - private string pageToken_ = ""; - /// - /// Token of the page to retrieve. If not specified, the first - /// page of results will be returned. To request next page of results use the - /// value obtained from `next_page_token` in the previous response. - /// The request fields must match across pages. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string PageToken { - get { return pageToken_; } - set { - pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "page_size" field. - public const int PageSizeFieldNumber = 13; - private int pageSize_; - /// - /// Number of results to retrieve in a single page. - /// A maximum of 10,000 results may be returned, if the page_size - /// exceeds this, it is ignored. - /// If unspecified, at most 10,000 results will be returned. - /// The server may decide to further limit the number of returned resources. - /// If the response contains fewer than 10,000 results it may not be assumed - /// as last page of results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PageSize { - get { return pageSize_; } - set { - pageSize_ = value; - } - } - - /// Field number for the "keyword_plan_network" field. - public const int KeywordPlanNetworkFieldNumber = 9; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified; - /// - /// Targeting network. - /// If not set, Google Search And Partners Network will be used. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork KeywordPlanNetwork { - get { return keywordPlanNetwork_; } - set { - keywordPlanNetwork_ = value; - } - } - - /// Field number for the "keyword_annotation" field. - public const int KeywordAnnotationFieldNumber = 17; - private static readonly pb::FieldCodec _repeated_keywordAnnotation_codec - = pb::FieldCodec.ForEnum(138, x => (int) x, x => (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanKeywordAnnotationEnum.Types.KeywordPlanKeywordAnnotation) x); - private readonly pbc::RepeatedField keywordAnnotation_ = new pbc::RepeatedField(); - /// - /// The keyword annotations to include in response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField KeywordAnnotation { - get { return keywordAnnotation_; } - } - - /// Field number for the "aggregate_metrics" field. - public const int AggregateMetricsFieldNumber = 16; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics aggregateMetrics_; - /// - /// The aggregate fields to include in response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics AggregateMetrics { - get { return aggregateMetrics_; } - set { - aggregateMetrics_ = value; - } - } - - /// Field number for the "historical_metrics_options" field. - public const int HistoricalMetricsOptionsFieldNumber = 18; - private global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions historicalMetricsOptions_; - /// - /// The options for historical metrics data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions HistoricalMetricsOptions { - get { return historicalMetricsOptions_; } - set { - historicalMetricsOptions_ = value; - } - } - - /// Field number for the "keyword_and_url_seed" field. - public const int KeywordAndUrlSeedFieldNumber = 2; - /// - /// A Keyword and a specific Url to generate ideas from - /// for example, cars, www.example.com/cars. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed KeywordAndUrlSeed { - get { return seedCase_ == SeedOneofCase.KeywordAndUrlSeed ? (global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed) seed_ : null; } - set { - seed_ = value; - seedCase_ = value == null ? SeedOneofCase.None : SeedOneofCase.KeywordAndUrlSeed; - } - } - - /// Field number for the "keyword_seed" field. - public const int KeywordSeedFieldNumber = 3; - /// - /// A Keyword or phrase to generate ideas from, for example, cars. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordSeed KeywordSeed { - get { return seedCase_ == SeedOneofCase.KeywordSeed ? (global::Google.Ads.GoogleAds.V12.Services.KeywordSeed) seed_ : null; } - set { - seed_ = value; - seedCase_ = value == null ? SeedOneofCase.None : SeedOneofCase.KeywordSeed; - } - } - - /// Field number for the "url_seed" field. - public const int UrlSeedFieldNumber = 5; - /// - /// A specific url to generate ideas from, for example, www.example.com/cars. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.UrlSeed UrlSeed { - get { return seedCase_ == SeedOneofCase.UrlSeed ? (global::Google.Ads.GoogleAds.V12.Services.UrlSeed) seed_ : null; } - set { - seed_ = value; - seedCase_ = value == null ? SeedOneofCase.None : SeedOneofCase.UrlSeed; - } - } - - /// Field number for the "site_seed" field. - public const int SiteSeedFieldNumber = 11; - /// - /// The site to generate ideas from, for example, www.example.com. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.SiteSeed SiteSeed { - get { return seedCase_ == SeedOneofCase.SiteSeed ? (global::Google.Ads.GoogleAds.V12.Services.SiteSeed) seed_ : null; } - set { - seed_ = value; - seedCase_ = value == null ? SeedOneofCase.None : SeedOneofCase.SiteSeed; - } - } - - private object seed_; - /// Enum of possible cases for the "seed" oneof. - public enum SeedOneofCase { - None = 0, - KeywordAndUrlSeed = 2, - KeywordSeed = 3, - UrlSeed = 5, - SiteSeed = 11, - } - private SeedOneofCase seedCase_ = SeedOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SeedOneofCase SeedCase { - get { return seedCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSeed() { - seedCase_ = SeedOneofCase.None; - seed_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateKeywordIdeasRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateKeywordIdeasRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if (Language != other.Language) return false; - if(!geoTargetConstants_.Equals(other.geoTargetConstants_)) return false; - if (IncludeAdultKeywords != other.IncludeAdultKeywords) return false; - if (PageToken != other.PageToken) return false; - if (PageSize != other.PageSize) return false; - if (KeywordPlanNetwork != other.KeywordPlanNetwork) return false; - if(!keywordAnnotation_.Equals(other.keywordAnnotation_)) return false; - if (!object.Equals(AggregateMetrics, other.AggregateMetrics)) return false; - if (!object.Equals(HistoricalMetricsOptions, other.HistoricalMetricsOptions)) return false; - if (!object.Equals(KeywordAndUrlSeed, other.KeywordAndUrlSeed)) return false; - if (!object.Equals(KeywordSeed, other.KeywordSeed)) return false; - if (!object.Equals(UrlSeed, other.UrlSeed)) return false; - if (!object.Equals(SiteSeed, other.SiteSeed)) return false; - if (SeedCase != other.SeedCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - if (HasLanguage) hash ^= Language.GetHashCode(); - hash ^= geoTargetConstants_.GetHashCode(); - if (IncludeAdultKeywords != false) hash ^= IncludeAdultKeywords.GetHashCode(); - if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); - if (PageSize != 0) hash ^= PageSize.GetHashCode(); - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) hash ^= KeywordPlanNetwork.GetHashCode(); - hash ^= keywordAnnotation_.GetHashCode(); - if (aggregateMetrics_ != null) hash ^= AggregateMetrics.GetHashCode(); - if (historicalMetricsOptions_ != null) hash ^= HistoricalMetricsOptions.GetHashCode(); - if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) hash ^= KeywordAndUrlSeed.GetHashCode(); - if (seedCase_ == SeedOneofCase.KeywordSeed) hash ^= KeywordSeed.GetHashCode(); - if (seedCase_ == SeedOneofCase.UrlSeed) hash ^= UrlSeed.GetHashCode(); - if (seedCase_ == SeedOneofCase.SiteSeed) hash ^= SiteSeed.GetHashCode(); - hash ^= (int) seedCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) { - output.WriteRawTag(18); - output.WriteMessage(KeywordAndUrlSeed); - } - if (seedCase_ == SeedOneofCase.KeywordSeed) { - output.WriteRawTag(26); - output.WriteMessage(KeywordSeed); - } - if (seedCase_ == SeedOneofCase.UrlSeed) { - output.WriteRawTag(42); - output.WriteMessage(UrlSeed); - } - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) KeywordPlanNetwork); - } - if (IncludeAdultKeywords != false) { - output.WriteRawTag(80); - output.WriteBool(IncludeAdultKeywords); - } - if (seedCase_ == SeedOneofCase.SiteSeed) { - output.WriteRawTag(90); - output.WriteMessage(SiteSeed); - } - if (PageToken.Length != 0) { - output.WriteRawTag(98); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(104); - output.WriteInt32(PageSize); - } - if (HasLanguage) { - output.WriteRawTag(114); - output.WriteString(Language); - } - geoTargetConstants_.WriteTo(output, _repeated_geoTargetConstants_codec); - if (aggregateMetrics_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AggregateMetrics); - } - keywordAnnotation_.WriteTo(output, _repeated_keywordAnnotation_codec); - if (historicalMetricsOptions_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(HistoricalMetricsOptions); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) { - output.WriteRawTag(18); - output.WriteMessage(KeywordAndUrlSeed); - } - if (seedCase_ == SeedOneofCase.KeywordSeed) { - output.WriteRawTag(26); - output.WriteMessage(KeywordSeed); - } - if (seedCase_ == SeedOneofCase.UrlSeed) { - output.WriteRawTag(42); - output.WriteMessage(UrlSeed); - } - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - output.WriteRawTag(72); - output.WriteEnum((int) KeywordPlanNetwork); - } - if (IncludeAdultKeywords != false) { - output.WriteRawTag(80); - output.WriteBool(IncludeAdultKeywords); - } - if (seedCase_ == SeedOneofCase.SiteSeed) { - output.WriteRawTag(90); - output.WriteMessage(SiteSeed); - } - if (PageToken.Length != 0) { - output.WriteRawTag(98); - output.WriteString(PageToken); - } - if (PageSize != 0) { - output.WriteRawTag(104); - output.WriteInt32(PageSize); - } - if (HasLanguage) { - output.WriteRawTag(114); - output.WriteString(Language); - } - geoTargetConstants_.WriteTo(ref output, _repeated_geoTargetConstants_codec); - if (aggregateMetrics_ != null) { - output.WriteRawTag(130, 1); - output.WriteMessage(AggregateMetrics); - } - keywordAnnotation_.WriteTo(ref output, _repeated_keywordAnnotation_codec); - if (historicalMetricsOptions_ != null) { - output.WriteRawTag(146, 1); - output.WriteMessage(HistoricalMetricsOptions); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - if (HasLanguage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Language); - } - size += geoTargetConstants_.CalculateSize(_repeated_geoTargetConstants_codec); - if (IncludeAdultKeywords != false) { - size += 1 + 1; - } - if (PageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); - } - if (PageSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); - } - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanNetwork); - } - size += keywordAnnotation_.CalculateSize(_repeated_keywordAnnotation_codec); - if (aggregateMetrics_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(AggregateMetrics); - } - if (historicalMetricsOptions_ != null) { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(HistoricalMetricsOptions); - } - if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordAndUrlSeed); - } - if (seedCase_ == SeedOneofCase.KeywordSeed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordSeed); - } - if (seedCase_ == SeedOneofCase.UrlSeed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UrlSeed); - } - if (seedCase_ == SeedOneofCase.SiteSeed) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SiteSeed); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateKeywordIdeasRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - if (other.HasLanguage) { - Language = other.Language; - } - geoTargetConstants_.Add(other.geoTargetConstants_); - if (other.IncludeAdultKeywords != false) { - IncludeAdultKeywords = other.IncludeAdultKeywords; - } - if (other.PageToken.Length != 0) { - PageToken = other.PageToken; - } - if (other.PageSize != 0) { - PageSize = other.PageSize; - } - if (other.KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - KeywordPlanNetwork = other.KeywordPlanNetwork; - } - keywordAnnotation_.Add(other.keywordAnnotation_); - if (other.aggregateMetrics_ != null) { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - AggregateMetrics.MergeFrom(other.AggregateMetrics); - } - if (other.historicalMetricsOptions_ != null) { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - HistoricalMetricsOptions.MergeFrom(other.HistoricalMetricsOptions); - } - switch (other.SeedCase) { - case SeedOneofCase.KeywordAndUrlSeed: - if (KeywordAndUrlSeed == null) { - KeywordAndUrlSeed = new global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed(); - } - KeywordAndUrlSeed.MergeFrom(other.KeywordAndUrlSeed); - break; - case SeedOneofCase.KeywordSeed: - if (KeywordSeed == null) { - KeywordSeed = new global::Google.Ads.GoogleAds.V12.Services.KeywordSeed(); - } - KeywordSeed.MergeFrom(other.KeywordSeed); - break; - case SeedOneofCase.UrlSeed: - if (UrlSeed == null) { - UrlSeed = new global::Google.Ads.GoogleAds.V12.Services.UrlSeed(); - } - UrlSeed.MergeFrom(other.UrlSeed); - break; - case SeedOneofCase.SiteSeed: - if (SiteSeed == null) { - SiteSeed = new global::Google.Ads.GoogleAds.V12.Services.SiteSeed(); - } - SiteSeed.MergeFrom(other.SiteSeed); - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed(); - if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) { - subBuilder.MergeFrom(KeywordAndUrlSeed); - } - input.ReadMessage(subBuilder); - KeywordAndUrlSeed = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Services.KeywordSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordSeed(); - if (seedCase_ == SeedOneofCase.KeywordSeed) { - subBuilder.MergeFrom(KeywordSeed); - } - input.ReadMessage(subBuilder); - KeywordSeed = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.UrlSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.UrlSeed(); - if (seedCase_ == SeedOneofCase.UrlSeed) { - subBuilder.MergeFrom(UrlSeed); - } - input.ReadMessage(subBuilder); - UrlSeed = subBuilder; - break; - } - case 72: { - KeywordPlanNetwork = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork) input.ReadEnum(); - break; - } - case 80: { - IncludeAdultKeywords = input.ReadBool(); - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Services.SiteSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SiteSeed(); - if (seedCase_ == SeedOneofCase.SiteSeed) { - subBuilder.MergeFrom(SiteSeed); - } - input.ReadMessage(subBuilder); - SiteSeed = subBuilder; - break; - } - case 98: { - PageToken = input.ReadString(); - break; - } - case 104: { - PageSize = input.ReadInt32(); - break; - } - case 114: { - Language = input.ReadString(); - break; - } - case 122: { - geoTargetConstants_.AddEntriesFrom(input, _repeated_geoTargetConstants_codec); - break; - } - case 130: { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - input.ReadMessage(AggregateMetrics); - break; - } - case 138: - case 136: { - keywordAnnotation_.AddEntriesFrom(input, _repeated_keywordAnnotation_codec); - break; - } - case 146: { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - input.ReadMessage(HistoricalMetricsOptions); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordAndUrlSeed(); - if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) { - subBuilder.MergeFrom(KeywordAndUrlSeed); - } - input.ReadMessage(subBuilder); - KeywordAndUrlSeed = subBuilder; - break; - } - case 26: { - global::Google.Ads.GoogleAds.V12.Services.KeywordSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.KeywordSeed(); - if (seedCase_ == SeedOneofCase.KeywordSeed) { - subBuilder.MergeFrom(KeywordSeed); - } - input.ReadMessage(subBuilder); - KeywordSeed = subBuilder; - break; - } - case 42: { - global::Google.Ads.GoogleAds.V12.Services.UrlSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.UrlSeed(); - if (seedCase_ == SeedOneofCase.UrlSeed) { - subBuilder.MergeFrom(UrlSeed); - } - input.ReadMessage(subBuilder); - UrlSeed = subBuilder; - break; - } - case 72: { - KeywordPlanNetwork = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork) input.ReadEnum(); - break; - } - case 80: { - IncludeAdultKeywords = input.ReadBool(); - break; - } - case 90: { - global::Google.Ads.GoogleAds.V12.Services.SiteSeed subBuilder = new global::Google.Ads.GoogleAds.V12.Services.SiteSeed(); - if (seedCase_ == SeedOneofCase.SiteSeed) { - subBuilder.MergeFrom(SiteSeed); - } - input.ReadMessage(subBuilder); - SiteSeed = subBuilder; - break; - } - case 98: { - PageToken = input.ReadString(); - break; - } - case 104: { - PageSize = input.ReadInt32(); - break; - } - case 114: { - Language = input.ReadString(); - break; - } - case 122: { - geoTargetConstants_.AddEntriesFrom(ref input, _repeated_geoTargetConstants_codec); - break; - } - case 130: { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - input.ReadMessage(AggregateMetrics); - break; - } - case 138: - case 136: { - keywordAnnotation_.AddEntriesFrom(ref input, _repeated_keywordAnnotation_codec); - break; - } - case 146: { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - input.ReadMessage(HistoricalMetricsOptions); - break; - } - } - } - } - #endif - - } - - /// - /// Keyword And Url Seed - /// - public sealed partial class KeywordAndUrlSeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordAndUrlSeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordAndUrlSeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordAndUrlSeed(KeywordAndUrlSeed other) : this() { - url_ = other.url_; - keywords_ = other.keywords_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordAndUrlSeed Clone() { - return new KeywordAndUrlSeed(this); - } - - /// Field number for the "url" field. - public const int UrlFieldNumber = 3; - private string url_; - /// - /// The URL to crawl in order to generate keyword ideas. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Url { - get { return url_ ?? ""; } - set { - url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUrl { - get { return url_ != null; } - } - /// Clears the value of the "url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUrl() { - url_ = null; - } - - /// Field number for the "keywords" field. - public const int KeywordsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_keywords_codec - = pb::FieldCodec.ForString(34); - private readonly pbc::RepeatedField keywords_ = new pbc::RepeatedField(); - /// - /// Requires at least one keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Keywords { - get { return keywords_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordAndUrlSeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordAndUrlSeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Url != other.Url) return false; - if(!keywords_.Equals(other.keywords_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUrl) hash ^= Url.GetHashCode(); - hash ^= keywords_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUrl) { - output.WriteRawTag(26); - output.WriteString(Url); - } - keywords_.WriteTo(output, _repeated_keywords_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUrl) { - output.WriteRawTag(26); - output.WriteString(Url); - } - keywords_.WriteTo(ref output, _repeated_keywords_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); - } - size += keywords_.CalculateSize(_repeated_keywords_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordAndUrlSeed other) { - if (other == null) { - return; - } - if (other.HasUrl) { - Url = other.Url; - } - keywords_.Add(other.keywords_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - Url = input.ReadString(); - break; - } - case 34: { - keywords_.AddEntriesFrom(input, _repeated_keywords_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - Url = input.ReadString(); - break; - } - case 34: { - keywords_.AddEntriesFrom(ref input, _repeated_keywords_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Keyword Seed - /// - public sealed partial class KeywordSeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordSeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordSeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordSeed(KeywordSeed other) : this() { - keywords_ = other.keywords_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordSeed Clone() { - return new KeywordSeed(this); - } - - /// Field number for the "keywords" field. - public const int KeywordsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_keywords_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField keywords_ = new pbc::RepeatedField(); - /// - /// Requires at least one keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Keywords { - get { return keywords_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordSeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordSeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!keywords_.Equals(other.keywords_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= keywords_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - keywords_.WriteTo(output, _repeated_keywords_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - keywords_.WriteTo(ref output, _repeated_keywords_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += keywords_.CalculateSize(_repeated_keywords_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordSeed other) { - if (other == null) { - return; - } - keywords_.Add(other.keywords_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - keywords_.AddEntriesFrom(input, _repeated_keywords_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - keywords_.AddEntriesFrom(ref input, _repeated_keywords_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Site Seed - /// - public sealed partial class SiteSeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SiteSeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SiteSeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SiteSeed(SiteSeed other) : this() { - site_ = other.site_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SiteSeed Clone() { - return new SiteSeed(this); - } - - /// Field number for the "site" field. - public const int SiteFieldNumber = 2; - private string site_; - /// - /// The domain name of the site. If the customer requesting the ideas doesn't - /// own the site provided only public information is returned. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Site { - get { return site_ ?? ""; } - set { - site_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "site" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSite { - get { return site_ != null; } - } - /// Clears the value of the "site" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSite() { - site_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SiteSeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SiteSeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Site != other.Site) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSite) hash ^= Site.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasSite) { - output.WriteRawTag(18); - output.WriteString(Site); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasSite) { - output.WriteRawTag(18); - output.WriteString(Site); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSite) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Site); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SiteSeed other) { - if (other == null) { - return; - } - if (other.HasSite) { - Site = other.Site; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Site = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Site = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Url Seed - /// - public sealed partial class UrlSeed : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UrlSeed()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UrlSeed() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UrlSeed(UrlSeed other) : this() { - url_ = other.url_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UrlSeed Clone() { - return new UrlSeed(this); - } - - /// Field number for the "url" field. - public const int UrlFieldNumber = 2; - private string url_; - /// - /// The URL to crawl in order to generate keyword ideas. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Url { - get { return url_ ?? ""; } - set { - url_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "url" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUrl { - get { return url_ != null; } - } - /// Clears the value of the "url" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUrl() { - url_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UrlSeed); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UrlSeed other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Url != other.Url) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasUrl) hash ^= Url.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasUrl) { - output.WriteRawTag(18); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasUrl) { - output.WriteRawTag(18); - output.WriteString(Url); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasUrl) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Url); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UrlSeed other) { - if (other == null) { - return; - } - if (other.HasUrl) { - Url = other.Url; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - Url = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - Url = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v12.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. - /// - public sealed partial class GenerateKeywordIdeaResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateKeywordIdeaResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeaResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeaResponse(GenerateKeywordIdeaResponse other) : this() { - results_ = other.results_.Clone(); - aggregateMetricResults_ = other.aggregateMetricResults_ != null ? other.aggregateMetricResults_.Clone() : null; - nextPageToken_ = other.nextPageToken_; - totalSize_ = other.totalSize_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeaResponse Clone() { - return new GenerateKeywordIdeaResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// Results of generating keyword ideas. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "aggregate_metric_results" field. - public const int AggregateMetricResultsFieldNumber = 4; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults aggregateMetricResults_; - /// - /// The aggregate metrics for all keyword ideas. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults AggregateMetricResults { - get { return aggregateMetricResults_; } - set { - aggregateMetricResults_ = value; - } - } - - /// Field number for the "next_page_token" field. - public const int NextPageTokenFieldNumber = 2; - private string nextPageToken_ = ""; - /// - /// Pagination token used to retrieve the next page of results. - /// Pass the content of this string as the `page_token` attribute of - /// the next request. - /// `next_page_token` is not returned for the last page. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string NextPageToken { - get { return nextPageToken_; } - set { - nextPageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "total_size" field. - public const int TotalSizeFieldNumber = 3; - private long totalSize_; - /// - /// Total number of results available. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TotalSize { - get { return totalSize_; } - set { - totalSize_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateKeywordIdeaResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateKeywordIdeaResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(AggregateMetricResults, other.AggregateMetricResults)) return false; - if (NextPageToken != other.NextPageToken) return false; - if (TotalSize != other.TotalSize) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (aggregateMetricResults_ != null) hash ^= AggregateMetricResults.GetHashCode(); - if (NextPageToken.Length != 0) hash ^= NextPageToken.GetHashCode(); - if (TotalSize != 0L) hash ^= TotalSize.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalSize != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalSize); - } - if (aggregateMetricResults_ != null) { - output.WriteRawTag(34); - output.WriteMessage(AggregateMetricResults); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (NextPageToken.Length != 0) { - output.WriteRawTag(18); - output.WriteString(NextPageToken); - } - if (TotalSize != 0L) { - output.WriteRawTag(24); - output.WriteInt64(TotalSize); - } - if (aggregateMetricResults_ != null) { - output.WriteRawTag(34); - output.WriteMessage(AggregateMetricResults); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (aggregateMetricResults_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregateMetricResults); - } - if (NextPageToken.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); - } - if (TotalSize != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalSize); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateKeywordIdeaResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.aggregateMetricResults_ != null) { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - AggregateMetricResults.MergeFrom(other.AggregateMetricResults); - } - if (other.NextPageToken.Length != 0) { - NextPageToken = other.NextPageToken; - } - if (other.TotalSize != 0L) { - TotalSize = other.TotalSize; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalSize = input.ReadInt64(); - break; - } - case 34: { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - input.ReadMessage(AggregateMetricResults); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - NextPageToken = input.ReadString(); - break; - } - case 24: { - TotalSize = input.ReadInt64(); - break; - } - case 34: { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - input.ReadMessage(AggregateMetricResults); - break; - } - } - } - } - #endif - - } - - /// - /// The result of generating keyword ideas. - /// - public sealed partial class GenerateKeywordIdeaResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateKeywordIdeaResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeaResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeaResult(GenerateKeywordIdeaResult other) : this() { - text_ = other.text_; - keywordIdeaMetrics_ = other.keywordIdeaMetrics_ != null ? other.keywordIdeaMetrics_.Clone() : null; - keywordAnnotations_ = other.keywordAnnotations_ != null ? other.keywordAnnotations_.Clone() : null; - closeVariants_ = other.closeVariants_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordIdeaResult Clone() { - return new GenerateKeywordIdeaResult(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 5; - private string text_; - /// - /// Text of the keyword idea. - /// As in Keyword Plan historical metrics, this text may not be an actual - /// keyword, but the canonical form of multiple keywords. - /// See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "keyword_idea_metrics" field. - public const int KeywordIdeaMetricsFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics keywordIdeaMetrics_; - /// - /// The historical metrics for the keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics KeywordIdeaMetrics { - get { return keywordIdeaMetrics_; } - set { - keywordIdeaMetrics_ = value; - } - } - - /// Field number for the "keyword_annotations" field. - public const int KeywordAnnotationsFieldNumber = 6; - private global::Google.Ads.GoogleAds.V12.Common.KeywordAnnotations keywordAnnotations_; - /// - /// The annotations for the keyword. - /// The annotation data is only provided if requested. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordAnnotations KeywordAnnotations { - get { return keywordAnnotations_; } - set { - keywordAnnotations_ = value; - } - } - - /// Field number for the "close_variants" field. - public const int CloseVariantsFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_closeVariants_codec - = pb::FieldCodec.ForString(58); - private readonly pbc::RepeatedField closeVariants_ = new pbc::RepeatedField(); - /// - /// The list of close variants from the requested keywords that - /// are combined into this GenerateKeywordIdeaResult. See - /// https://support.google.com/google-ads/answer/9342105 for the - /// definition of "close variants". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CloseVariants { - get { return closeVariants_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateKeywordIdeaResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateKeywordIdeaResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) return false; - if (!object.Equals(KeywordIdeaMetrics, other.KeywordIdeaMetrics)) return false; - if (!object.Equals(KeywordAnnotations, other.KeywordAnnotations)) return false; - if(!closeVariants_.Equals(other.closeVariants_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasText) hash ^= Text.GetHashCode(); - if (keywordIdeaMetrics_ != null) hash ^= KeywordIdeaMetrics.GetHashCode(); - if (keywordAnnotations_ != null) hash ^= KeywordAnnotations.GetHashCode(); - hash ^= closeVariants_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (keywordIdeaMetrics_ != null) { - output.WriteRawTag(26); - output.WriteMessage(KeywordIdeaMetrics); - } - if (HasText) { - output.WriteRawTag(42); - output.WriteString(Text); - } - if (keywordAnnotations_ != null) { - output.WriteRawTag(50); - output.WriteMessage(KeywordAnnotations); - } - closeVariants_.WriteTo(output, _repeated_closeVariants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (keywordIdeaMetrics_ != null) { - output.WriteRawTag(26); - output.WriteMessage(KeywordIdeaMetrics); - } - if (HasText) { - output.WriteRawTag(42); - output.WriteString(Text); - } - if (keywordAnnotations_ != null) { - output.WriteRawTag(50); - output.WriteMessage(KeywordAnnotations); - } - closeVariants_.WriteTo(ref output, _repeated_closeVariants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - if (keywordIdeaMetrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordIdeaMetrics); - } - if (keywordAnnotations_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordAnnotations); - } - size += closeVariants_.CalculateSize(_repeated_closeVariants_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateKeywordIdeaResult other) { - if (other == null) { - return; - } - if (other.HasText) { - Text = other.Text; - } - if (other.keywordIdeaMetrics_ != null) { - if (keywordIdeaMetrics_ == null) { - KeywordIdeaMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - KeywordIdeaMetrics.MergeFrom(other.KeywordIdeaMetrics); - } - if (other.keywordAnnotations_ != null) { - if (keywordAnnotations_ == null) { - KeywordAnnotations = new global::Google.Ads.GoogleAds.V12.Common.KeywordAnnotations(); - } - KeywordAnnotations.MergeFrom(other.KeywordAnnotations); - } - closeVariants_.Add(other.closeVariants_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 26: { - if (keywordIdeaMetrics_ == null) { - KeywordIdeaMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - input.ReadMessage(KeywordIdeaMetrics); - break; - } - case 42: { - Text = input.ReadString(); - break; - } - case 50: { - if (keywordAnnotations_ == null) { - KeywordAnnotations = new global::Google.Ads.GoogleAds.V12.Common.KeywordAnnotations(); - } - input.ReadMessage(KeywordAnnotations); - break; - } - case 58: { - closeVariants_.AddEntriesFrom(input, _repeated_closeVariants_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 26: { - if (keywordIdeaMetrics_ == null) { - KeywordIdeaMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - input.ReadMessage(KeywordIdeaMetrics); - break; - } - case 42: { - Text = input.ReadString(); - break; - } - case 50: { - if (keywordAnnotations_ == null) { - KeywordAnnotations = new global::Google.Ads.GoogleAds.V12.Common.KeywordAnnotations(); - } - input.ReadMessage(KeywordAnnotations); - break; - } - case 58: { - closeVariants_.AddEntriesFrom(ref input, _repeated_closeVariants_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for - /// [KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics][google.ads.googleads.v12.services.KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics]. - /// - public sealed partial class GenerateKeywordHistoricalMetricsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateKeywordHistoricalMetricsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsRequest(GenerateKeywordHistoricalMetricsRequest other) : this() { - customerId_ = other.customerId_; - keywords_ = other.keywords_.Clone(); - language_ = other.language_; - includeAdultKeywords_ = other.includeAdultKeywords_; - geoTargetConstants_ = other.geoTargetConstants_.Clone(); - keywordPlanNetwork_ = other.keywordPlanNetwork_; - aggregateMetrics_ = other.aggregateMetrics_ != null ? other.aggregateMetrics_.Clone() : null; - historicalMetricsOptions_ = other.historicalMetricsOptions_ != null ? other.historicalMetricsOptions_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsRequest Clone() { - return new GenerateKeywordHistoricalMetricsRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// The ID of the customer with the recommendation. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "keywords" field. - public const int KeywordsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_keywords_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField keywords_ = new pbc::RepeatedField(); - /// - /// A list of keywords to get historical metrics. - /// Not all inputs will be returned as a result of near-exact deduplication. - /// For example, if stats for "car" and "cars" are requested, only "car" will - /// be returned. - /// A maximum of 10,000 keywords can be used. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Keywords { - get { return keywords_; } - } - - /// Field number for the "language" field. - public const int LanguageFieldNumber = 4; - private string language_; - /// - /// The resource name of the language to target. - /// Each keyword belongs to some set of languages; a keyword is included if - /// language is one of its languages. - /// If not set, all keywords will be included. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Language { - get { return language_ ?? ""; } - set { - language_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguage { - get { return language_ != null; } - } - /// Clears the value of the "language" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguage() { - language_ = null; - } - - /// Field number for the "include_adult_keywords" field. - public const int IncludeAdultKeywordsFieldNumber = 5; - private bool includeAdultKeywords_; - /// - /// If true, adult keywords will be included in response. - /// The default value is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IncludeAdultKeywords { - get { return includeAdultKeywords_; } - set { - includeAdultKeywords_ = value; - } - } - - /// Field number for the "geo_target_constants" field. - public const int GeoTargetConstantsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_geoTargetConstants_codec - = pb::FieldCodec.ForString(50); - private readonly pbc::RepeatedField geoTargetConstants_ = new pbc::RepeatedField(); - /// - /// The resource names of the location to target. Maximum is 10. - /// An empty list MAY be used to specify all targeting geos. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField GeoTargetConstants { - get { return geoTargetConstants_; } - } - - /// Field number for the "keyword_plan_network" field. - public const int KeywordPlanNetworkFieldNumber = 7; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork keywordPlanNetwork_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified; - /// - /// Targeting network. - /// If not set, Google Search And Partners Network will be used. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork KeywordPlanNetwork { - get { return keywordPlanNetwork_; } - set { - keywordPlanNetwork_ = value; - } - } - - /// Field number for the "aggregate_metrics" field. - public const int AggregateMetricsFieldNumber = 8; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics aggregateMetrics_; - /// - /// The aggregate fields to include in response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics AggregateMetrics { - get { return aggregateMetrics_; } - set { - aggregateMetrics_ = value; - } - } - - /// Field number for the "historical_metrics_options" field. - public const int HistoricalMetricsOptionsFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions historicalMetricsOptions_; - /// - /// The options for historical metrics data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions HistoricalMetricsOptions { - get { return historicalMetricsOptions_; } - set { - historicalMetricsOptions_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateKeywordHistoricalMetricsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateKeywordHistoricalMetricsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!keywords_.Equals(other.keywords_)) return false; - if (Language != other.Language) return false; - if (IncludeAdultKeywords != other.IncludeAdultKeywords) return false; - if(!geoTargetConstants_.Equals(other.geoTargetConstants_)) return false; - if (KeywordPlanNetwork != other.KeywordPlanNetwork) return false; - if (!object.Equals(AggregateMetrics, other.AggregateMetrics)) return false; - if (!object.Equals(HistoricalMetricsOptions, other.HistoricalMetricsOptions)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= keywords_.GetHashCode(); - if (HasLanguage) hash ^= Language.GetHashCode(); - if (IncludeAdultKeywords != false) hash ^= IncludeAdultKeywords.GetHashCode(); - hash ^= geoTargetConstants_.GetHashCode(); - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) hash ^= KeywordPlanNetwork.GetHashCode(); - if (aggregateMetrics_ != null) hash ^= AggregateMetrics.GetHashCode(); - if (historicalMetricsOptions_ != null) hash ^= HistoricalMetricsOptions.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - keywords_.WriteTo(output, _repeated_keywords_codec); - if (historicalMetricsOptions_ != null) { - output.WriteRawTag(26); - output.WriteMessage(HistoricalMetricsOptions); - } - if (HasLanguage) { - output.WriteRawTag(34); - output.WriteString(Language); - } - if (IncludeAdultKeywords != false) { - output.WriteRawTag(40); - output.WriteBool(IncludeAdultKeywords); - } - geoTargetConstants_.WriteTo(output, _repeated_geoTargetConstants_codec); - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) KeywordPlanNetwork); - } - if (aggregateMetrics_ != null) { - output.WriteRawTag(66); - output.WriteMessage(AggregateMetrics); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - keywords_.WriteTo(ref output, _repeated_keywords_codec); - if (historicalMetricsOptions_ != null) { - output.WriteRawTag(26); - output.WriteMessage(HistoricalMetricsOptions); - } - if (HasLanguage) { - output.WriteRawTag(34); - output.WriteString(Language); - } - if (IncludeAdultKeywords != false) { - output.WriteRawTag(40); - output.WriteBool(IncludeAdultKeywords); - } - geoTargetConstants_.WriteTo(ref output, _repeated_geoTargetConstants_codec); - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - output.WriteRawTag(56); - output.WriteEnum((int) KeywordPlanNetwork); - } - if (aggregateMetrics_ != null) { - output.WriteRawTag(66); - output.WriteMessage(AggregateMetrics); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += keywords_.CalculateSize(_repeated_keywords_codec); - if (HasLanguage) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Language); - } - if (IncludeAdultKeywords != false) { - size += 1 + 1; - } - size += geoTargetConstants_.CalculateSize(_repeated_geoTargetConstants_codec); - if (KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) KeywordPlanNetwork); - } - if (aggregateMetrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregateMetrics); - } - if (historicalMetricsOptions_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HistoricalMetricsOptions); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateKeywordHistoricalMetricsRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - keywords_.Add(other.keywords_); - if (other.HasLanguage) { - Language = other.Language; - } - if (other.IncludeAdultKeywords != false) { - IncludeAdultKeywords = other.IncludeAdultKeywords; - } - geoTargetConstants_.Add(other.geoTargetConstants_); - if (other.KeywordPlanNetwork != global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified) { - KeywordPlanNetwork = other.KeywordPlanNetwork; - } - if (other.aggregateMetrics_ != null) { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - AggregateMetrics.MergeFrom(other.AggregateMetrics); - } - if (other.historicalMetricsOptions_ != null) { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - HistoricalMetricsOptions.MergeFrom(other.HistoricalMetricsOptions); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - keywords_.AddEntriesFrom(input, _repeated_keywords_codec); - break; - } - case 26: { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - input.ReadMessage(HistoricalMetricsOptions); - break; - } - case 34: { - Language = input.ReadString(); - break; - } - case 40: { - IncludeAdultKeywords = input.ReadBool(); - break; - } - case 50: { - geoTargetConstants_.AddEntriesFrom(input, _repeated_geoTargetConstants_codec); - break; - } - case 56: { - KeywordPlanNetwork = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork) input.ReadEnum(); - break; - } - case 66: { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - input.ReadMessage(AggregateMetrics); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - keywords_.AddEntriesFrom(ref input, _repeated_keywords_codec); - break; - } - case 26: { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - input.ReadMessage(HistoricalMetricsOptions); - break; - } - case 34: { - Language = input.ReadString(); - break; - } - case 40: { - IncludeAdultKeywords = input.ReadBool(); - break; - } - case 50: { - geoTargetConstants_.AddEntriesFrom(ref input, _repeated_geoTargetConstants_codec); - break; - } - case 56: { - KeywordPlanNetwork = (global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork) input.ReadEnum(); - break; - } - case 66: { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - input.ReadMessage(AggregateMetrics); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics][google.ads.googleads.v12.services.KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics]. - /// - public sealed partial class GenerateKeywordHistoricalMetricsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateKeywordHistoricalMetricsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsResponse(GenerateKeywordHistoricalMetricsResponse other) : this() { - results_ = other.results_.Clone(); - aggregateMetricResults_ = other.aggregateMetricResults_ != null ? other.aggregateMetricResults_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsResponse Clone() { - return new GenerateKeywordHistoricalMetricsResponse(this); - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// List of keywords and their historical metrics. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - /// Field number for the "aggregate_metric_results" field. - public const int AggregateMetricResultsFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults aggregateMetricResults_; - /// - /// The aggregate metrics for all keywords. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults AggregateMetricResults { - get { return aggregateMetricResults_; } - set { - aggregateMetricResults_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateKeywordHistoricalMetricsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateKeywordHistoricalMetricsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!results_.Equals(other.results_)) return false; - if (!object.Equals(AggregateMetricResults, other.AggregateMetricResults)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= results_.GetHashCode(); - if (aggregateMetricResults_ != null) hash ^= AggregateMetricResults.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (aggregateMetricResults_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AggregateMetricResults); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (aggregateMetricResults_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AggregateMetricResults); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += results_.CalculateSize(_repeated_results_codec); - if (aggregateMetricResults_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregateMetricResults); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateKeywordHistoricalMetricsResponse other) { - if (other == null) { - return; - } - results_.Add(other.results_); - if (other.aggregateMetricResults_ != null) { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - AggregateMetricResults.MergeFrom(other.AggregateMetricResults); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 18: { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - input.ReadMessage(AggregateMetricResults); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 18: { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - input.ReadMessage(AggregateMetricResults); - break; - } - } - } - } - #endif - - } - - /// - /// The result of generating keyword historical metrics. - /// - public sealed partial class GenerateKeywordHistoricalMetricsResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateKeywordHistoricalMetricsResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsResult(GenerateKeywordHistoricalMetricsResult other) : this() { - text_ = other.text_; - closeVariants_ = other.closeVariants_.Clone(); - keywordMetrics_ = other.keywordMetrics_ != null ? other.keywordMetrics_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateKeywordHistoricalMetricsResult Clone() { - return new GenerateKeywordHistoricalMetricsResult(this); - } - - /// Field number for the "text" field. - public const int TextFieldNumber = 1; - private string text_; - /// - /// The text of the query associated with one or more keywords. - /// Note that we de-dupe your keywords list, eliminating close variants - /// before returning the keywords as text. For example, if your request - /// originally contained the keywords "car" and "cars", the returned search - /// query will only contain "cars". The list of de-duped queries will be - /// included in close_variants field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Text { - get { return text_ ?? ""; } - set { - text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "text" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasText { - get { return text_ != null; } - } - /// Clears the value of the "text" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearText() { - text_ = null; - } - - /// Field number for the "close_variants" field. - public const int CloseVariantsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_closeVariants_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField closeVariants_ = new pbc::RepeatedField(); - /// - /// The list of close variants from the requested keywords whose stats - /// are combined into this GenerateKeywordHistoricalMetricsResult. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CloseVariants { - get { return closeVariants_; } - } - - /// Field number for the "keyword_metrics" field. - public const int KeywordMetricsFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics keywordMetrics_; - /// - /// The historical metrics for text and its close variants - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics KeywordMetrics { - get { return keywordMetrics_; } - set { - keywordMetrics_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateKeywordHistoricalMetricsResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateKeywordHistoricalMetricsResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Text != other.Text) return false; - if(!closeVariants_.Equals(other.closeVariants_)) return false; - if (!object.Equals(KeywordMetrics, other.KeywordMetrics)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasText) hash ^= Text.GetHashCode(); - hash ^= closeVariants_.GetHashCode(); - if (keywordMetrics_ != null) hash ^= KeywordMetrics.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasText) { - output.WriteRawTag(10); - output.WriteString(Text); - } - if (keywordMetrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(KeywordMetrics); - } - closeVariants_.WriteTo(output, _repeated_closeVariants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasText) { - output.WriteRawTag(10); - output.WriteString(Text); - } - if (keywordMetrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(KeywordMetrics); - } - closeVariants_.WriteTo(ref output, _repeated_closeVariants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasText) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); - } - size += closeVariants_.CalculateSize(_repeated_closeVariants_codec); - if (keywordMetrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordMetrics); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateKeywordHistoricalMetricsResult other) { - if (other == null) { - return; - } - if (other.HasText) { - Text = other.Text; - } - closeVariants_.Add(other.closeVariants_); - if (other.keywordMetrics_ != null) { - if (keywordMetrics_ == null) { - KeywordMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - KeywordMetrics.MergeFrom(other.KeywordMetrics); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - Text = input.ReadString(); - break; - } - case 18: { - if (keywordMetrics_ == null) { - KeywordMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - input.ReadMessage(KeywordMetrics); - break; - } - case 26: { - closeVariants_.AddEntriesFrom(input, _repeated_closeVariants_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - Text = input.ReadString(); - break; - } - case 18: { - if (keywordMetrics_ == null) { - KeywordMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - input.ReadMessage(KeywordMetrics); - break; - } - case 26: { - closeVariants_.AddEntriesFrom(ref input, _repeated_closeVariants_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for - /// [KeywordPlanIdeaService.GenerateAdGroupThemes][google.ads.googleads.v12.services.KeywordPlanIdeaService.GenerateAdGroupThemes]. - /// - public sealed partial class GenerateAdGroupThemesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateAdGroupThemesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAdGroupThemesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAdGroupThemesRequest(GenerateAdGroupThemesRequest other) : this() { - customerId_ = other.customerId_; - keywords_ = other.keywords_.Clone(); - adGroups_ = other.adGroups_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAdGroupThemesRequest Clone() { - return new GenerateAdGroupThemesRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "keywords" field. - public const int KeywordsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_keywords_codec - = pb::FieldCodec.ForString(18); - private readonly pbc::RepeatedField keywords_ = new pbc::RepeatedField(); - /// - /// Required. A list of keywords to group into the provided AdGroups. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Keywords { - get { return keywords_; } - } - - /// Field number for the "ad_groups" field. - public const int AdGroupsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_adGroups_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField adGroups_ = new pbc::RepeatedField(); - /// - /// Required. A list of resource names of AdGroups to group keywords into. - /// Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdGroups { - get { return adGroups_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateAdGroupThemesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateAdGroupThemesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!keywords_.Equals(other.keywords_)) return false; - if(!adGroups_.Equals(other.adGroups_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= keywords_.GetHashCode(); - hash ^= adGroups_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - keywords_.WriteTo(output, _repeated_keywords_codec); - adGroups_.WriteTo(output, _repeated_adGroups_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - keywords_.WriteTo(ref output, _repeated_keywords_codec); - adGroups_.WriteTo(ref output, _repeated_adGroups_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += keywords_.CalculateSize(_repeated_keywords_codec); - size += adGroups_.CalculateSize(_repeated_adGroups_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateAdGroupThemesRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - keywords_.Add(other.keywords_); - adGroups_.Add(other.adGroups_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - keywords_.AddEntriesFrom(input, _repeated_keywords_codec); - break; - } - case 26: { - adGroups_.AddEntriesFrom(input, _repeated_adGroups_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - keywords_.AddEntriesFrom(ref input, _repeated_keywords_codec); - break; - } - case 26: { - adGroups_.AddEntriesFrom(ref input, _repeated_adGroups_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [KeywordPlanIdeaService.GenerateAdGroupThemes][google.ads.googleads.v12.services.KeywordPlanIdeaService.GenerateAdGroupThemes]. - /// - public sealed partial class GenerateAdGroupThemesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateAdGroupThemesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAdGroupThemesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAdGroupThemesResponse(GenerateAdGroupThemesResponse other) : this() { - adGroupKeywordSuggestions_ = other.adGroupKeywordSuggestions_.Clone(); - unusableAdGroups_ = other.unusableAdGroups_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateAdGroupThemesResponse Clone() { - return new GenerateAdGroupThemesResponse(this); - } - - /// Field number for the "ad_group_keyword_suggestions" field. - public const int AdGroupKeywordSuggestionsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_adGroupKeywordSuggestions_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.AdGroupKeywordSuggestion.Parser); - private readonly pbc::RepeatedField adGroupKeywordSuggestions_ = new pbc::RepeatedField(); - /// - /// A list of suggested AdGroup/keyword pairings. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdGroupKeywordSuggestions { - get { return adGroupKeywordSuggestions_; } - } - - /// Field number for the "unusable_ad_groups" field. - public const int UnusableAdGroupsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_unusableAdGroups_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.UnusableAdGroup.Parser); - private readonly pbc::RepeatedField unusableAdGroups_ = new pbc::RepeatedField(); - /// - /// A list of provided AdGroups that could not be used as suggestions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField UnusableAdGroups { - get { return unusableAdGroups_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateAdGroupThemesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateAdGroupThemesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!adGroupKeywordSuggestions_.Equals(other.adGroupKeywordSuggestions_)) return false; - if(!unusableAdGroups_.Equals(other.unusableAdGroups_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= adGroupKeywordSuggestions_.GetHashCode(); - hash ^= unusableAdGroups_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - adGroupKeywordSuggestions_.WriteTo(output, _repeated_adGroupKeywordSuggestions_codec); - unusableAdGroups_.WriteTo(output, _repeated_unusableAdGroups_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - adGroupKeywordSuggestions_.WriteTo(ref output, _repeated_adGroupKeywordSuggestions_codec); - unusableAdGroups_.WriteTo(ref output, _repeated_unusableAdGroups_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += adGroupKeywordSuggestions_.CalculateSize(_repeated_adGroupKeywordSuggestions_codec); - size += unusableAdGroups_.CalculateSize(_repeated_unusableAdGroups_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateAdGroupThemesResponse other) { - if (other == null) { - return; - } - adGroupKeywordSuggestions_.Add(other.adGroupKeywordSuggestions_); - unusableAdGroups_.Add(other.unusableAdGroups_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - adGroupKeywordSuggestions_.AddEntriesFrom(input, _repeated_adGroupKeywordSuggestions_codec); - break; - } - case 18: { - unusableAdGroups_.AddEntriesFrom(input, _repeated_unusableAdGroups_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - adGroupKeywordSuggestions_.AddEntriesFrom(ref input, _repeated_adGroupKeywordSuggestions_codec); - break; - } - case 18: { - unusableAdGroups_.AddEntriesFrom(ref input, _repeated_unusableAdGroups_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The suggested text and AdGroup/Campaign pairing for a given keyword. - /// - public sealed partial class AdGroupKeywordSuggestion : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AdGroupKeywordSuggestion()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupKeywordSuggestion() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupKeywordSuggestion(AdGroupKeywordSuggestion other) : this() { - keywordText_ = other.keywordText_; - suggestedKeywordText_ = other.suggestedKeywordText_; - suggestedMatchType_ = other.suggestedMatchType_; - suggestedAdGroup_ = other.suggestedAdGroup_; - suggestedCampaign_ = other.suggestedCampaign_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AdGroupKeywordSuggestion Clone() { - return new AdGroupKeywordSuggestion(this); - } - - /// Field number for the "keyword_text" field. - public const int KeywordTextFieldNumber = 1; - private string keywordText_ = ""; - /// - /// The original keyword text. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordText { - get { return keywordText_; } - set { - keywordText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "suggested_keyword_text" field. - public const int SuggestedKeywordTextFieldNumber = 2; - private string suggestedKeywordText_ = ""; - /// - /// The normalized version of keyword_text for BROAD/EXACT/PHRASE suggestions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SuggestedKeywordText { - get { return suggestedKeywordText_; } - set { - suggestedKeywordText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "suggested_match_type" field. - public const int SuggestedMatchTypeFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType suggestedMatchType_ = global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified; - /// - /// The suggested keyword match type. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType SuggestedMatchType { - get { return suggestedMatchType_; } - set { - suggestedMatchType_ = value; - } - } - - /// Field number for the "suggested_ad_group" field. - public const int SuggestedAdGroupFieldNumber = 4; - private string suggestedAdGroup_ = ""; - /// - /// The suggested AdGroup for the keyword. - /// Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SuggestedAdGroup { - get { return suggestedAdGroup_; } - set { - suggestedAdGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "suggested_campaign" field. - public const int SuggestedCampaignFieldNumber = 5; - private string suggestedCampaign_ = ""; - /// - /// The suggested Campaign for the keyword. - /// Resource name format: `customers/{customer_id}/campaigns/{campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SuggestedCampaign { - get { return suggestedCampaign_; } - set { - suggestedCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as AdGroupKeywordSuggestion); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AdGroupKeywordSuggestion other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordText != other.KeywordText) return false; - if (SuggestedKeywordText != other.SuggestedKeywordText) return false; - if (SuggestedMatchType != other.SuggestedMatchType) return false; - if (SuggestedAdGroup != other.SuggestedAdGroup) return false; - if (SuggestedCampaign != other.SuggestedCampaign) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (KeywordText.Length != 0) hash ^= KeywordText.GetHashCode(); - if (SuggestedKeywordText.Length != 0) hash ^= SuggestedKeywordText.GetHashCode(); - if (SuggestedMatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) hash ^= SuggestedMatchType.GetHashCode(); - if (SuggestedAdGroup.Length != 0) hash ^= SuggestedAdGroup.GetHashCode(); - if (SuggestedCampaign.Length != 0) hash ^= SuggestedCampaign.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (KeywordText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordText); - } - if (SuggestedKeywordText.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SuggestedKeywordText); - } - if (SuggestedMatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) SuggestedMatchType); - } - if (SuggestedAdGroup.Length != 0) { - output.WriteRawTag(34); - output.WriteString(SuggestedAdGroup); - } - if (SuggestedCampaign.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SuggestedCampaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KeywordText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordText); - } - if (SuggestedKeywordText.Length != 0) { - output.WriteRawTag(18); - output.WriteString(SuggestedKeywordText); - } - if (SuggestedMatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - output.WriteRawTag(24); - output.WriteEnum((int) SuggestedMatchType); - } - if (SuggestedAdGroup.Length != 0) { - output.WriteRawTag(34); - output.WriteString(SuggestedAdGroup); - } - if (SuggestedCampaign.Length != 0) { - output.WriteRawTag(42); - output.WriteString(SuggestedCampaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (KeywordText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordText); - } - if (SuggestedKeywordText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SuggestedKeywordText); - } - if (SuggestedMatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SuggestedMatchType); - } - if (SuggestedAdGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SuggestedAdGroup); - } - if (SuggestedCampaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SuggestedCampaign); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AdGroupKeywordSuggestion other) { - if (other == null) { - return; - } - if (other.KeywordText.Length != 0) { - KeywordText = other.KeywordText; - } - if (other.SuggestedKeywordText.Length != 0) { - SuggestedKeywordText = other.SuggestedKeywordText; - } - if (other.SuggestedMatchType != global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified) { - SuggestedMatchType = other.SuggestedMatchType; - } - if (other.SuggestedAdGroup.Length != 0) { - SuggestedAdGroup = other.SuggestedAdGroup; - } - if (other.SuggestedCampaign.Length != 0) { - SuggestedCampaign = other.SuggestedCampaign; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KeywordText = input.ReadString(); - break; - } - case 18: { - SuggestedKeywordText = input.ReadString(); - break; - } - case 24: { - SuggestedMatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 34: { - SuggestedAdGroup = input.ReadString(); - break; - } - case 42: { - SuggestedCampaign = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KeywordText = input.ReadString(); - break; - } - case 18: { - SuggestedKeywordText = input.ReadString(); - break; - } - case 24: { - SuggestedMatchType = (global::Google.Ads.GoogleAds.V12.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType) input.ReadEnum(); - break; - } - case 34: { - SuggestedAdGroup = input.ReadString(); - break; - } - case 42: { - SuggestedCampaign = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An AdGroup/Campaign pair that could not be used as a suggestion for keywords. - /// - /// AdGroups may not be usable if the AdGroup - /// - /// * belongs to a Campaign that is not ENABLED or PAUSED - /// * is itself not ENABLED - /// - public sealed partial class UnusableAdGroup : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnusableAdGroup()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnusableAdGroup() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnusableAdGroup(UnusableAdGroup other) : this() { - adGroup_ = other.adGroup_; - campaign_ = other.campaign_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public UnusableAdGroup Clone() { - return new UnusableAdGroup(this); - } - - /// Field number for the "ad_group" field. - public const int AdGroupFieldNumber = 1; - private string adGroup_ = ""; - /// - /// The AdGroup resource name. - /// Resource name format: `customers/{customer_id}/adGroups/{ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AdGroup { - get { return adGroup_; } - set { - adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "campaign" field. - public const int CampaignFieldNumber = 2; - private string campaign_ = ""; - /// - /// The Campaign resource name. - /// Resource name format: `customers/{customer_id}/campaigns/{campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Campaign { - get { return campaign_; } - set { - campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as UnusableAdGroup); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UnusableAdGroup other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (AdGroup != other.AdGroup) return false; - if (Campaign != other.Campaign) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (AdGroup.Length != 0) hash ^= AdGroup.GetHashCode(); - if (Campaign.Length != 0) hash ^= Campaign.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (AdGroup.Length != 0) { - output.WriteRawTag(10); - output.WriteString(AdGroup); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (AdGroup.Length != 0) { - output.WriteRawTag(10); - output.WriteString(AdGroup); - } - if (Campaign.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Campaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (AdGroup.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AdGroup); - } - if (Campaign.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Campaign); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UnusableAdGroup other) { - if (other == null) { - return; - } - if (other.AdGroup.Length != 0) { - AdGroup = other.AdGroup; - } - if (other.Campaign.Length != 0) { - Campaign = other.Campaign; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - AdGroup = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - AdGroup = input.ReadString(); - break; - } - case 18: { - Campaign = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaServiceClient.g.cs deleted file mode 100755 index 94c303a65..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaServiceClient.g.cs +++ /dev/null @@ -1,615 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using sc = System.Collections; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class KeywordPlanIdeaServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static KeywordPlanIdeaServiceSettings GetDefault() => new KeywordPlanIdeaServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public KeywordPlanIdeaServiceSettings() - { - } - - private KeywordPlanIdeaServiceSettings(KeywordPlanIdeaServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - GenerateKeywordIdeasSettings = existing.GenerateKeywordIdeasSettings; - GenerateKeywordHistoricalMetricsSettings = existing.GenerateKeywordHistoricalMetricsSettings; - GenerateAdGroupThemesSettings = existing.GenerateAdGroupThemesSettings; - OnCopy(existing); - } - - partial void OnCopy(KeywordPlanIdeaServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanIdeaServiceClient.GenerateKeywordIdeas and - /// KeywordPlanIdeaServiceClient.GenerateKeywordIdeasAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateKeywordIdeasSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanIdeaServiceClient.GenerateKeywordHistoricalMetrics and - /// KeywordPlanIdeaServiceClient.GenerateKeywordHistoricalMetricsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateKeywordHistoricalMetricsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanIdeaServiceClient.GenerateAdGroupThemes and - /// KeywordPlanIdeaServiceClient.GenerateAdGroupThemesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateAdGroupThemesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public KeywordPlanIdeaServiceSettings Clone() => new KeywordPlanIdeaServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class KeywordPlanIdeaServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public KeywordPlanIdeaServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public KeywordPlanIdeaServiceClientBuilder() : base(KeywordPlanIdeaServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref KeywordPlanIdeaServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override KeywordPlanIdeaServiceClient Build() - { - KeywordPlanIdeaServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private KeywordPlanIdeaServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return KeywordPlanIdeaServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return KeywordPlanIdeaServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => KeywordPlanIdeaServiceClient.ChannelPool; - } - - /// KeywordPlanIdeaService client wrapper, for convenient use. - /// - /// Service to generate keyword ideas. - /// - public abstract partial class KeywordPlanIdeaServiceClient - { - /// - /// The default endpoint for the KeywordPlanIdeaService service, which is a host of "googleads.googleapis.com" - /// and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default KeywordPlanIdeaService scopes. - /// - /// The default KeywordPlanIdeaService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(KeywordPlanIdeaService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new KeywordPlanIdeaServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint - /// and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static KeywordPlanIdeaServiceClient Create() => new KeywordPlanIdeaServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static KeywordPlanIdeaServiceClient Create(grpccore::CallInvoker callInvoker, KeywordPlanIdeaServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - KeywordPlanIdeaService.KeywordPlanIdeaServiceClient grpcClient = new KeywordPlanIdeaService.KeywordPlanIdeaServiceClient(callInvoker); - return new KeywordPlanIdeaServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC KeywordPlanIdeaService client - public virtual KeywordPlanIdeaService.KeywordPlanIdeaServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public virtual gax::PagedEnumerable GenerateKeywordIdeas(GenerateKeywordIdeasRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public virtual gax::PagedAsyncEnumerable GenerateKeywordIdeasAsync(GenerateKeywordIdeasRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateKeywordHistoricalMetricsResponse GenerateKeywordHistoricalMetrics(GenerateKeywordHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateKeywordHistoricalMetricsAsync(GenerateKeywordHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateKeywordHistoricalMetricsAsync(GenerateKeywordHistoricalMetricsRequest request, st::CancellationToken cancellationToken) => - GenerateKeywordHistoricalMetricsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateAdGroupThemesResponse GenerateAdGroupThemes(GenerateAdGroupThemesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateAdGroupThemesAsync(GenerateAdGroupThemesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateAdGroupThemesAsync(GenerateAdGroupThemesRequest request, st::CancellationToken cancellationToken) => - GenerateAdGroupThemesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// KeywordPlanIdeaService client wrapper implementation, for convenient use. - /// - /// Service to generate keyword ideas. - /// - public sealed partial class KeywordPlanIdeaServiceClientImpl : KeywordPlanIdeaServiceClient - { - private readonly gaxgrpc::ApiCall _callGenerateKeywordIdeas; - - private readonly gaxgrpc::ApiCall _callGenerateKeywordHistoricalMetrics; - - private readonly gaxgrpc::ApiCall _callGenerateAdGroupThemes; - - /// - /// Constructs a client wrapper for the KeywordPlanIdeaService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public KeywordPlanIdeaServiceClientImpl(KeywordPlanIdeaService.KeywordPlanIdeaServiceClient grpcClient, KeywordPlanIdeaServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - KeywordPlanIdeaServiceSettings effectiveSettings = settings ?? KeywordPlanIdeaServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callGenerateKeywordIdeas = clientHelper.BuildApiCall("GenerateKeywordIdeas", grpcClient.GenerateKeywordIdeasAsync, grpcClient.GenerateKeywordIdeas, effectiveSettings.GenerateKeywordIdeasSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callGenerateKeywordIdeas); - Modify_GenerateKeywordIdeasApiCall(ref _callGenerateKeywordIdeas); - _callGenerateKeywordHistoricalMetrics = clientHelper.BuildApiCall("GenerateKeywordHistoricalMetrics", grpcClient.GenerateKeywordHistoricalMetricsAsync, grpcClient.GenerateKeywordHistoricalMetrics, effectiveSettings.GenerateKeywordHistoricalMetricsSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callGenerateKeywordHistoricalMetrics); - Modify_GenerateKeywordHistoricalMetricsApiCall(ref _callGenerateKeywordHistoricalMetrics); - _callGenerateAdGroupThemes = clientHelper.BuildApiCall("GenerateAdGroupThemes", grpcClient.GenerateAdGroupThemesAsync, grpcClient.GenerateAdGroupThemes, effectiveSettings.GenerateAdGroupThemesSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callGenerateAdGroupThemes); - Modify_GenerateAdGroupThemesApiCall(ref _callGenerateAdGroupThemes); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_GenerateKeywordIdeasApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GenerateKeywordHistoricalMetricsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GenerateAdGroupThemesApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(KeywordPlanIdeaService.KeywordPlanIdeaServiceClient grpcClient, KeywordPlanIdeaServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC KeywordPlanIdeaService client - public override KeywordPlanIdeaService.KeywordPlanIdeaServiceClient GrpcClient { get; } - - partial void Modify_GenerateKeywordIdeasRequest(ref GenerateKeywordIdeasRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GenerateKeywordHistoricalMetricsRequest(ref GenerateKeywordHistoricalMetricsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GenerateAdGroupThemesRequest(ref GenerateAdGroupThemesRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable sequence of resources. - public override gax::PagedEnumerable GenerateKeywordIdeas(GenerateKeywordIdeasRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateKeywordIdeasRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedEnumerable(_callGenerateKeywordIdeas, request, callSettings); - } - - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A pageable asynchronous sequence of resources. - public override gax::PagedAsyncEnumerable GenerateKeywordIdeasAsync(GenerateKeywordIdeasRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateKeywordIdeasRequest(ref request, ref callSettings); - return new gaxgrpc::GrpcPagedAsyncEnumerable(_callGenerateKeywordIdeas, request, callSettings); - } - - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateKeywordHistoricalMetricsResponse GenerateKeywordHistoricalMetrics(GenerateKeywordHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateKeywordHistoricalMetricsRequest(ref request, ref callSettings); - return _callGenerateKeywordHistoricalMetrics.Sync(request, callSettings); - } - - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateKeywordHistoricalMetricsAsync(GenerateKeywordHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateKeywordHistoricalMetricsRequest(ref request, ref callSettings); - return _callGenerateKeywordHistoricalMetrics.Async(request, callSettings); - } - - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateAdGroupThemesResponse GenerateAdGroupThemes(GenerateAdGroupThemesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateAdGroupThemesRequest(ref request, ref callSettings); - return _callGenerateAdGroupThemes.Sync(request, callSettings); - } - - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateAdGroupThemesAsync(GenerateAdGroupThemesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateAdGroupThemesRequest(ref request, ref callSettings); - return _callGenerateAdGroupThemes.Async(request, callSettings); - } - } - - public partial class GenerateKeywordIdeasRequest : gaxgrpc::IPageRequest - { - } - - public partial class GenerateKeywordIdeaResponse : gaxgrpc::IPageResponse - { - /// Returns an enumerator that iterates through the resources in this response. - public scg::IEnumerator GetEnumerator() => Results.GetEnumerator(); - - sc::IEnumerator sc::IEnumerable.GetEnumerator() => GetEnumerator(); - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaServiceGrpc.g.cs deleted file mode 100755 index 3e2c3925b..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanIdeaServiceGrpc.g.cs +++ /dev/null @@ -1,500 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_idea_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to generate keyword ideas. - /// - public static partial class KeywordPlanIdeaService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.KeywordPlanIdeaService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateKeywordIdeasRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateKeywordIdeaResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateKeywordHistoricalMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateKeywordHistoricalMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateAdGroupThemesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateAdGroupThemesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateKeywordIdeas = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateKeywordIdeas", - __Marshaller_google_ads_googleads_v12_services_GenerateKeywordIdeasRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateKeywordIdeaResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateKeywordHistoricalMetrics = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateKeywordHistoricalMetrics", - __Marshaller_google_ads_googleads_v12_services_GenerateKeywordHistoricalMetricsRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateKeywordHistoricalMetricsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateAdGroupThemes = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateAdGroupThemes", - __Marshaller_google_ads_googleads_v12_services_GenerateAdGroupThemesRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateAdGroupThemesResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanIdeaServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of KeywordPlanIdeaService - [grpc::BindServiceMethod(typeof(KeywordPlanIdeaService), "BindService")] - public abstract partial class KeywordPlanIdeaServiceBase - { - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateKeywordIdeas(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateKeywordHistoricalMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateAdGroupThemes(global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for KeywordPlanIdeaService - public partial class KeywordPlanIdeaServiceClient : grpc::ClientBase - { - /// Creates a new client for KeywordPlanIdeaService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanIdeaServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for KeywordPlanIdeaService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanIdeaServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanIdeaServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanIdeaServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResponse GenerateKeywordIdeas(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateKeywordIdeas(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeaResponse GenerateKeywordIdeas(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateKeywordIdeas, null, options, request); - } - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateKeywordIdeasAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateKeywordIdeasAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of keyword ideas. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanIdeaError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateKeywordIdeasAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordIdeasRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateKeywordIdeas, null, options, request); - } - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResponse GenerateKeywordHistoricalMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateKeywordHistoricalMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsResponse GenerateKeywordHistoricalMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateKeywordHistoricalMetrics, null, options, request); - } - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateKeywordHistoricalMetricsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateKeywordHistoricalMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of keyword historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateKeywordHistoricalMetricsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateKeywordHistoricalMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateKeywordHistoricalMetrics, null, options, request); - } - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesResponse GenerateAdGroupThemes(global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateAdGroupThemes(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesResponse GenerateAdGroupThemes(global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateAdGroupThemes, null, options, request); - } - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateAdGroupThemesAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateAdGroupThemesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a list of suggested AdGroups and suggested modifications - /// (text, match type) for the given keywords. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [CollectionSizeError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateAdGroupThemesAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateAdGroupThemesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateAdGroupThemes, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override KeywordPlanIdeaServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new KeywordPlanIdeaServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(KeywordPlanIdeaServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_GenerateKeywordIdeas, serviceImpl.GenerateKeywordIdeas) - .AddMethod(__Method_GenerateKeywordHistoricalMetrics, serviceImpl.GenerateKeywordHistoricalMetrics) - .AddMethod(__Method_GenerateAdGroupThemes, serviceImpl.GenerateAdGroupThemes).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, KeywordPlanIdeaServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_GenerateKeywordIdeas, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateKeywordIdeas)); - serviceBinder.AddMethod(__Method_GenerateKeywordHistoricalMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateKeywordHistoricalMetrics)); - serviceBinder.AddMethod(__Method_GenerateAdGroupThemes, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateAdGroupThemes)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanKeywordAnnotation.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanKeywordAnnotation.g.cs deleted file mode 100755 index 19e88c8b9..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanKeywordAnnotation.g.cs +++ /dev/null @@ -1,233 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/keyword_plan_keyword_annotation.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/keyword_plan_keyword_annotation.proto - public static partial class KeywordPlanKeywordAnnotationReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/keyword_plan_keyword_annotation.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanKeywordAnnotationReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9wbGFu", - "X2tleXdvcmRfYW5ub3RhdGlvbi5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zInUKIEtleXdvcmRQbGFuS2V5d29yZEFubm90YXRpb25F", - "bnVtIlEKHEtleXdvcmRQbGFuS2V5d29yZEFubm90YXRpb24SDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESEwoPS0VZV09SRF9DT05DRVBUEAJC+wEK", - "ImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCIUtleXdvcmRQ", - "bGFuS2V5d29yZEFubm90YXRpb25Qcm90b1ABWkNnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjEyL2VudW1z", - "O2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLkVudW1z", - "ygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjEyXEVudW1z6gIiR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpFbnVtc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanKeywordAnnotationEnum), global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanKeywordAnnotationEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanKeywordAnnotationEnum.Types.KeywordPlanKeywordAnnotation) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of keyword plan keyword annotations. - /// - public sealed partial class KeywordPlanKeywordAnnotationEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanKeywordAnnotationEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanKeywordAnnotationReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordAnnotationEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordAnnotationEnum(KeywordPlanKeywordAnnotationEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordAnnotationEnum Clone() { - return new KeywordPlanKeywordAnnotationEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanKeywordAnnotationEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanKeywordAnnotationEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanKeywordAnnotationEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanKeywordAnnotationEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates keyword plan annotations that can be requested. - /// - public enum KeywordPlanKeywordAnnotation { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Return the keyword concept and concept group data. - /// - [pbr::OriginalName("KEYWORD_CONCEPT")] KeywordConcept = 2, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanNetwork.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanNetwork.g.cs deleted file mode 100755 index 53ecf701e..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanNetwork.g.cs +++ /dev/null @@ -1,237 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/keyword_plan_network.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { - - /// Holder for reflection information generated from google/ads/googleads/v12/enums/keyword_plan_network.proto - public static partial class KeywordPlanNetworkReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/keyword_plan_network.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanNetworkReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMva2V5d29yZF9wbGFu", - "X25ldHdvcmsucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVt", - "cyJ/ChZLZXl3b3JkUGxhbk5ldHdvcmtFbnVtImUKEktleXdvcmRQbGFuTmV0", - "d29yaxIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIRCg1HT09HTEVf", - "U0VBUkNIEAISHgoaR09PR0xFX1NFQVJDSF9BTkRfUEFSVE5FUlMQA0LxAQoi", - "Y29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IXS2V5d29yZFBs", - "YW5OZXR3b3JrUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dB", - "QaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVB", - "ZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum), global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkEnum.Types.KeywordPlanNetwork) }, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Container for enumeration of keyword plan forecastable network types. - /// - public sealed partial class KeywordPlanNetworkEnum : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanNetworkEnum()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.KeywordPlanNetworkReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanNetworkEnum() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanNetworkEnum(KeywordPlanNetworkEnum other) : this() { - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanNetworkEnum Clone() { - return new KeywordPlanNetworkEnum(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanNetworkEnum); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanNetworkEnum other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanNetworkEnum other) { - if (other == null) { - return; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - } - } - } - #endif - - #region Nested types - /// Container for nested types declared in the KeywordPlanNetworkEnum message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Enumerates keyword plan forecastable network types. - /// - public enum KeywordPlanNetwork { - /// - /// Not specified. - /// - [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, - /// - /// The value is unknown in this version. - /// - [pbr::OriginalName("UNKNOWN")] Unknown = 1, - /// - /// Google Search. - /// - [pbr::OriginalName("GOOGLE_SEARCH")] GoogleSearch = 2, - /// - /// Google Search + Search partners. - /// - [pbr::OriginalName("GOOGLE_SEARCH_AND_PARTNERS")] GoogleSearchAndPartners = 3, - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanResourceNames.g.cs deleted file mode 100755 index 7105dc7e7..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanResourceNames.g.cs +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the KeywordPlan resource. - public sealed partial class KeywordPlanName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/keywordPlans/{keyword_plan_id}. - /// - CustomerKeywordPlan = 1, - } - - private static gax::PathTemplate s_customerKeywordPlan = new gax::PathTemplate("customers/{customer_id}/keywordPlans/{keyword_plan_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static KeywordPlanName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new KeywordPlanName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/keywordPlans/{keyword_plan_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The KeywordPlan ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static KeywordPlanName FromCustomerKeywordPlan(string customerId, string keywordPlanId) => - new KeywordPlanName(ResourceNameType.CustomerKeywordPlan, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanId, nameof(keywordPlanId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordPlans/{keyword_plan_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The KeywordPlan ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlans/{keyword_plan_id}. - /// - public static string Format(string customerId, string keywordPlanId) => - FormatCustomerKeywordPlan(customerId, keywordPlanId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordPlans/{keyword_plan_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The KeywordPlan ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordPlans/{keyword_plan_id}. - /// - public static string FormatCustomerKeywordPlan(string customerId, string keywordPlanId) => - s_customerKeywordPlan.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanId, nameof(keywordPlanId))); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/keywordPlans/{keyword_plan_id} - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static KeywordPlanName Parse(string keywordPlanName) => Parse(keywordPlanName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/keywordPlans/{keyword_plan_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static KeywordPlanName Parse(string keywordPlanName, bool allowUnparsed) => - TryParse(keywordPlanName, allowUnparsed, out KeywordPlanName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/keywordPlans/{keyword_plan_id} - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanName, out KeywordPlanName result) => - TryParse(keywordPlanName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// customers/{customer_id}/keywordPlans/{keyword_plan_id} - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordPlanName, bool allowUnparsed, out KeywordPlanName result) - { - gax::GaxPreconditions.CheckNotNull(keywordPlanName, nameof(keywordPlanName)); - gax::TemplatedResourceName resourceName; - if (s_customerKeywordPlan.TryParseName(keywordPlanName, out resourceName)) - { - result = FromCustomerKeywordPlan(resourceName[0], resourceName[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(keywordPlanName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private KeywordPlanName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string customerId = null, string keywordPlanId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - CustomerId = customerId; - KeywordPlanId = keywordPlanId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/keywordPlans/{keyword_plan_id} - /// - /// The Customer ID. Must not be null or empty. - /// The KeywordPlan ID. Must not be null or empty. - public KeywordPlanName(string customerId, string keywordPlanId) : this(ResourceNameType.CustomerKeywordPlan, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), keywordPlanId: gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlanId, nameof(keywordPlanId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// - /// The KeywordPlan ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string KeywordPlanId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerKeywordPlan: return s_customerKeywordPlan.Expand(CustomerId, KeywordPlanId); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as KeywordPlanName); - - /// - public bool Equals(KeywordPlanName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(KeywordPlanName a, KeywordPlanName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(KeywordPlanName a, KeywordPlanName b) => !(a == b); - } - - public partial class KeywordPlan - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName ResourceNameAsKeywordPlanName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName KeywordPlanName - { - get => string.IsNullOrEmpty(Name) ? null : gagvr::KeywordPlanName.Parse(Name, allowUnparsed: true); - set => Name = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanService.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanService.g.cs deleted file mode 100755 index 681c574ff..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanService.g.cs +++ /dev/null @@ -1,5736 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/keyword_plan_service.proto - public static partial class KeywordPlanServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/keyword_plan_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordPlanServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMva2V5d29yZF9w", - "bGFuX3NlcnZpY2UucHJvdG8SIWdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5z", - "ZXJ2aWNlcxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjEyL2NvbW1vbi9rZXl3", - "b3JkX3BsYW5fY29tbW9uLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTIvcmVzb3VyY2VzL2tleXdvcmRfcGxhbi5wcm90bxocZ29vZ2xlL2FwaS9h", - "bm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJvdG8aH2dv", - "b2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVz", - "b3VyY2UucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3Rv", - "Ghdnb29nbGUvcnBjL3N0YXR1cy5wcm90byK3AQoZTXV0YXRlS2V5d29yZFBs", - "YW5zUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECElAKCm9wZXJh", - "dGlvbnMYAiADKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuS2V5d29yZFBsYW5PcGVyYXRpb25CA+BBAhIXCg9wYXJ0aWFsX2ZhaWx1", - "cmUYAyABKAgSFQoNdmFsaWRhdGVfb25seRgEIAEoCCKXAgoUS2V5d29yZFBs", - "YW5PcGVyYXRpb24SLwoLdXBkYXRlX21hc2sYBCABKAsyGi5nb29nbGUucHJv", - "dG9idWYuRmllbGRNYXNrEkEKBmNyZWF0ZRgBIAEoCzIvLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxMi5yZXNvdXJjZXMuS2V5d29yZFBsYW5IABJBCgZ1cGRh", - "dGUYAiABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "LktleXdvcmRQbGFuSAASOwoGcmVtb3ZlGAMgASgJQin6QSYKJGdvb2dsZWFk", - "cy5nb29nbGVhcGlzLmNvbS9LZXl3b3JkUGxhbkgAQgsKCW9wZXJhdGlvbiKd", - "AQoaTXV0YXRlS2V5d29yZFBsYW5zUmVzcG9uc2USMQoVcGFydGlhbF9mYWls", - "dXJlX2Vycm9yGAMgASgLMhIuZ29vZ2xlLnJwYy5TdGF0dXMSTAoHcmVzdWx0", - "cxgCIAMoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5N", - "dXRhdGVLZXl3b3JkUGxhbnNSZXN1bHQiXAoYTXV0YXRlS2V5d29yZFBsYW5z", - "UmVzdWx0EkAKDXJlc291cmNlX25hbWUYASABKAlCKfpBJgokZ29vZ2xlYWRz", - "Lmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFuImIKHEdlbmVyYXRlRm9yZWNh", - "c3RDdXJ2ZVJlcXVlc3QSQgoMa2V5d29yZF9wbGFuGAEgASgJQizgQQL6QSYK", - "JGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9LZXl3b3JkUGxhbiKGAQodR2Vu", - "ZXJhdGVGb3JlY2FzdEN1cnZlUmVzcG9uc2USZQoYY2FtcGFpZ25fZm9yZWNh", - "c3RfY3VydmVzGAEgAygLMkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLktleXdvcmRQbGFuQ2FtcGFpZ25Gb3JlY2FzdEN1cnZlImcKIUdl", - "bmVyYXRlRm9yZWNhc3RUaW1lU2VyaWVzUmVxdWVzdBJCCgxrZXl3b3JkX3Bs", - "YW4YASABKAlCLOBBAvpBJgokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tl", - "eXdvcmRQbGFuIpIBCiJHZW5lcmF0ZUZvcmVjYXN0VGltZVNlcmllc1Jlc3Bv", - "bnNlEmwKHHdlZWtseV90aW1lX3Nlcmllc19mb3JlY2FzdHMYASADKAsyRi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuS2V5d29yZFBsYW5X", - "ZWVrbHlUaW1lU2VyaWVzRm9yZWNhc3QiZAoeR2VuZXJhdGVGb3JlY2FzdE1l", - "dHJpY3NSZXF1ZXN0EkIKDGtleXdvcmRfcGxhbhgBIAEoCUIs4EEC+kEmCiRn", - "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vS2V5d29yZFBsYW4isgIKH0dlbmVy", - "YXRlRm9yZWNhc3RNZXRyaWNzUmVzcG9uc2USWgoSY2FtcGFpZ25fZm9yZWNh", - "c3RzGAEgAygLMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2Vz", - "LktleXdvcmRQbGFuQ2FtcGFpZ25Gb3JlY2FzdBJZChJhZF9ncm91cF9mb3Jl", - "Y2FzdHMYAiADKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuS2V5d29yZFBsYW5BZEdyb3VwRm9yZWNhc3QSWAoRa2V5d29yZF9mb3Jl", - "Y2FzdHMYAyADKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vydmlj", - "ZXMuS2V5d29yZFBsYW5LZXl3b3JkRm9yZWNhc3QiqgEKG0tleXdvcmRQbGFu", - "Q2FtcGFpZ25Gb3JlY2FzdBIiChVrZXl3b3JkX3BsYW5fY2FtcGFpZ24YAyAB", - "KAlIAIgBARJNChFjYW1wYWlnbl9mb3JlY2FzdBgCIAEoCzIyLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5Gb3JlY2FzdE1ldHJpY3NCGAoW", - "X2tleXdvcmRfcGxhbl9jYW1wYWlnbiKpAQoaS2V5d29yZFBsYW5BZEdyb3Vw", - "Rm9yZWNhc3QSIgoVa2V5d29yZF9wbGFuX2FkX2dyb3VwGAMgASgJSACIAQES", - "TQoRYWRfZ3JvdXBfZm9yZWNhc3QYAiABKAsyMi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMuRm9yZWNhc3RNZXRyaWNzQhgKFl9rZXl3b3Jk", - "X3BsYW5fYWRfZ3JvdXAiuAEKGktleXdvcmRQbGFuS2V5d29yZEZvcmVjYXN0", - "EioKHWtleXdvcmRfcGxhbl9hZF9ncm91cF9rZXl3b3JkGAMgASgJSACIAQES", - "TAoQa2V5d29yZF9mb3JlY2FzdBgCIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5Gb3JlY2FzdE1ldHJpY3NCIAoeX2tleXdvcmRf", - "cGxhbl9hZF9ncm91cF9rZXl3b3JkIsoBCiBLZXl3b3JkUGxhbkNhbXBhaWdu", - "Rm9yZWNhc3RDdXJ2ZRIiChVrZXl3b3JkX3BsYW5fY2FtcGFpZ24YAyABKAlI", - "AIgBARJoChptYXhfY3BjX2JpZF9mb3JlY2FzdF9jdXJ2ZRgCIAEoCzJELmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5LZXl3b3JkUGxhbk1h", - "eENwY0JpZEZvcmVjYXN0Q3VydmVCGAoWX2tleXdvcmRfcGxhbl9jYW1wYWln", - "biKDAQohS2V5d29yZFBsYW5NYXhDcGNCaWRGb3JlY2FzdEN1cnZlEl4KFW1h", - "eF9jcGNfYmlkX2ZvcmVjYXN0cxgBIAMoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5LZXl3b3JkUGxhbk1heENwY0JpZEZvcmVjYXN0", - "IqgBChxLZXl3b3JkUGxhbk1heENwY0JpZEZvcmVjYXN0Eh8KEm1heF9jcGNf", - "YmlkX21pY3JvcxgDIAEoA0gAiAEBElAKFG1heF9jcGNfYmlkX2ZvcmVjYXN0", - "GAIgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkZv", - "cmVjYXN0TWV0cmljc0IVChNfbWF4X2NwY19iaWRfbWljcm9zIrsBCiNLZXl3", - "b3JkUGxhbldlZWtseVRpbWVTZXJpZXNGb3JlY2FzdBIiChVrZXl3b3JkX3Bs", - "YW5fY2FtcGFpZ24YASABKAlIAIgBARJWChB3ZWVrbHlfZm9yZWNhc3RzGAIg", - "AygLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLktleXdv", - "cmRQbGFuV2Vla2x5Rm9yZWNhc3RCGAoWX2tleXdvcmRfcGxhbl9jYW1wYWln", - "biKJAQoZS2V5d29yZFBsYW5XZWVrbHlGb3JlY2FzdBIXCgpzdGFydF9kYXRl", - "GAEgASgJSACIAQESRAoIZm9yZWNhc3QYAiABKAsyMi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTIuc2VydmljZXMuRm9yZWNhc3RNZXRyaWNzQg0KC19zdGFy", - "dF9kYXRlIskBCg9Gb3JlY2FzdE1ldHJpY3MSGAoLaW1wcmVzc2lvbnMYByAB", - "KAFIAIgBARIQCgNjdHIYCCABKAFIAYgBARIYCgthdmVyYWdlX2NwYxgJIAEo", - "A0gCiAEBEhMKBmNsaWNrcxgKIAEoAUgDiAEBEhgKC2Nvc3RfbWljcm9zGAsg", - "ASgDSASIAQFCDgoMX2ltcHJlc3Npb25zQgYKBF9jdHJCDgoMX2F2ZXJhZ2Vf", - "Y3BjQgkKB19jbGlja3NCDgoMX2Nvc3RfbWljcm9zIp4CCiBHZW5lcmF0ZUhp", - "c3RvcmljYWxNZXRyaWNzUmVxdWVzdBJCCgxrZXl3b3JkX3BsYW4YASABKAlC", - "LOBBAvpBJgokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tleXdvcmRQbGFu", - "ElcKEWFnZ3JlZ2F0ZV9tZXRyaWNzGAIgASgLMjwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLmNvbW1vbi5LZXl3b3JkUGxhbkFnZ3JlZ2F0ZU1ldHJpY3MS", - "XQoaaGlzdG9yaWNhbF9tZXRyaWNzX29wdGlvbnMYAyABKAsyOS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTIuY29tbW9uLkhpc3RvcmljYWxNZXRyaWNzT3B0", - "aW9ucyLiAQohR2VuZXJhdGVIaXN0b3JpY2FsTWV0cmljc1Jlc3BvbnNlElcK", - "B21ldHJpY3MYASADKAsyRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuS2V5d29yZFBsYW5LZXl3b3JkSGlzdG9yaWNhbE1ldHJpY3MSZAoY", - "YWdncmVnYXRlX21ldHJpY19yZXN1bHRzGAIgASgLMkIuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjEyLmNvbW1vbi5LZXl3b3JkUGxhbkFnZ3JlZ2F0ZU1ldHJp", - "Y1Jlc3VsdHMiwQEKI0tleXdvcmRQbGFuS2V5d29yZEhpc3RvcmljYWxNZXRy", - "aWNzEhkKDHNlYXJjaF9xdWVyeRgEIAEoCUgAiAEBEhYKDmNsb3NlX3Zhcmlh", - "bnRzGAMgAygJElYKD2tleXdvcmRfbWV0cmljcxgCIAEoCzI9Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxMi5jb21tb24uS2V5d29yZFBsYW5IaXN0b3JpY2Fs", - "TWV0cmljc0IPCg1fc2VhcmNoX3F1ZXJ5MucKChJLZXl3b3JkUGxhblNlcnZp", - "Y2US6QEKEk11dGF0ZUtleXdvcmRQbGFucxI8Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbnNSZXF1ZXN0Gj0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLk11dGF0ZUtleXdv", - "cmRQbGFuc1Jlc3BvbnNlIlaC0+STAjciMi92MTIvY3VzdG9tZXJzL3tjdXN0", - "b21lcl9pZD0qfS9rZXl3b3JkUGxhbnM6bXV0YXRlOgEq2kEWY3VzdG9tZXJf", - "aWQsb3BlcmF0aW9ucxL6AQoVR2VuZXJhdGVGb3JlY2FzdEN1cnZlEj8uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLkdlbmVyYXRlRm9yZWNh", - "c3RDdXJ2ZVJlcXVlc3QaQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2Vy", - "dmljZXMuR2VuZXJhdGVGb3JlY2FzdEN1cnZlUmVzcG9uc2UiXoLT5JMCSSJE", - "L3YxMi97a2V5d29yZF9wbGFuPWN1c3RvbWVycy8qL2tleXdvcmRQbGFucy8q", - "fTpnZW5lcmF0ZUZvcmVjYXN0Q3VydmU6ASraQQxrZXl3b3JkX3BsYW4SjgIK", - "GkdlbmVyYXRlRm9yZWNhc3RUaW1lU2VyaWVzEkQuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLkdlbmVyYXRlRm9yZWNhc3RUaW1lU2VyaWVz", - "UmVxdWVzdBpFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5H", - "ZW5lcmF0ZUZvcmVjYXN0VGltZVNlcmllc1Jlc3BvbnNlImOC0+STAk4iSS92", - "MTIve2tleXdvcmRfcGxhbj1jdXN0b21lcnMvKi9rZXl3b3JkUGxhbnMvKn06", - "Z2VuZXJhdGVGb3JlY2FzdFRpbWVTZXJpZXM6ASraQQxrZXl3b3JkX3BsYW4S", - "ggIKF0dlbmVyYXRlRm9yZWNhc3RNZXRyaWNzEkEuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjEyLnNlcnZpY2VzLkdlbmVyYXRlRm9yZWNhc3RNZXRyaWNzUmVx", - "dWVzdBpCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5zZXJ2aWNlcy5HZW5l", - "cmF0ZUZvcmVjYXN0TWV0cmljc1Jlc3BvbnNlImCC0+STAksiRi92MTIve2tl", - "eXdvcmRfcGxhbj1jdXN0b21lcnMvKi9rZXl3b3JkUGxhbnMvKn06Z2VuZXJh", - "dGVGb3JlY2FzdE1ldHJpY3M6ASraQQxrZXl3b3JkX3BsYW4SigIKGUdlbmVy", - "YXRlSGlzdG9yaWNhbE1ldHJpY3MSQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTIuc2VydmljZXMuR2VuZXJhdGVIaXN0b3JpY2FsTWV0cmljc1JlcXVlc3Qa", - "RC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuc2VydmljZXMuR2VuZXJhdGVI", - "aXN0b3JpY2FsTWV0cmljc1Jlc3BvbnNlImKC0+STAk0iSC92MTIve2tleXdv", - "cmRfcGxhbj1jdXN0b21lcnMvKi9rZXl3b3JkUGxhbnMvKn06Z2VuZXJhdGVI", - "aXN0b3JpY2FsTWV0cmljczoBKtpBDGtleXdvcmRfcGxhbhpFykEYZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29t0kEnaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5j", - "b20vYXV0aC9hZHdvcmRzQoMCCiVjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djEyLnNlcnZpY2VzQhdLZXl3b3JkUGxhblNlcnZpY2VQcm90b1ABWklnb29n", - "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", - "ZHMvdjEyL3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNc", - "VjEyXFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpT", - "ZXJ2aWNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.KeywordPlanCommonReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Resources.KeywordPlanReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest.Parser, new[]{ "CustomerId", "Operations", "PartialFailure", "ValidateOnly" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation.Parser, new[]{ "UpdateMask", "Create", "Update", "Remove" }, new[]{ "Operation" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResponse), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResponse.Parser, new[]{ "PartialFailureError", "Results" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult), global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult.Parser, new[]{ "ResourceName" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest.Parser, new[]{ "KeywordPlan" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveResponse.Parser, new[]{ "CampaignForecastCurves" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest.Parser, new[]{ "KeywordPlan" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesResponse.Parser, new[]{ "WeeklyTimeSeriesForecasts" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest.Parser, new[]{ "KeywordPlan" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsResponse.Parser, new[]{ "CampaignForecasts", "AdGroupForecasts", "KeywordForecasts" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignForecast), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignForecast.Parser, new[]{ "KeywordPlanCampaign", "CampaignForecast" }, new[]{ "KeywordPlanCampaign" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupForecast), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupForecast.Parser, new[]{ "KeywordPlanAdGroup", "AdGroupForecast" }, new[]{ "KeywordPlanAdGroup" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanKeywordForecast), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanKeywordForecast.Parser, new[]{ "KeywordPlanAdGroupKeyword", "KeywordForecast" }, new[]{ "KeywordPlanAdGroupKeyword" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignForecastCurve), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignForecastCurve.Parser, new[]{ "KeywordPlanCampaign", "MaxCpcBidForecastCurve" }, new[]{ "KeywordPlanCampaign" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecastCurve), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecastCurve.Parser, new[]{ "MaxCpcBidForecasts" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecast), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecast.Parser, new[]{ "MaxCpcBidMicros", "MaxCpcBidForecast" }, new[]{ "MaxCpcBidMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanWeeklyTimeSeriesForecast), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanWeeklyTimeSeriesForecast.Parser, new[]{ "KeywordPlanCampaign", "WeeklyForecasts" }, new[]{ "KeywordPlanCampaign" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanWeeklyForecast), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanWeeklyForecast.Parser, new[]{ "StartDate", "Forecast" }, new[]{ "StartDate" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics), global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics.Parser, new[]{ "Impressions", "Ctr", "AverageCpc", "Clicks", "CostMicros" }, new[]{ "Impressions", "Ctr", "AverageCpc", "Clicks", "CostMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest), global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest.Parser, new[]{ "KeywordPlan", "AggregateMetrics", "HistoricalMetricsOptions" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsResponse), global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsResponse.Parser, new[]{ "Metrics", "AggregateMetricResults" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.KeywordPlanKeywordHistoricalMetrics), global::Google.Ads.GoogleAds.V12.Services.KeywordPlanKeywordHistoricalMetrics.Parser, new[]{ "SearchQuery", "CloseVariants", "KeywordMetrics" }, new[]{ "SearchQuery" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for [KeywordPlanService.MutateKeywordPlans][google.ads.googleads.v12.services.KeywordPlanService.MutateKeywordPlans]. - /// - public sealed partial class MutateKeywordPlansRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlansRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansRequest(MutateKeywordPlansRequest other) : this() { - customerId_ = other.customerId_; - operations_ = other.operations_.Clone(); - partialFailure_ = other.partialFailure_; - validateOnly_ = other.validateOnly_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansRequest Clone() { - return new MutateKeywordPlansRequest(this); - } - - /// Field number for the "customer_id" field. - public const int CustomerIdFieldNumber = 1; - private string customerId_ = ""; - /// - /// Required. The ID of the customer whose keyword plans are being modified. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CustomerId { - get { return customerId_; } - set { - customerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "operations" field. - public const int OperationsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_operations_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanOperation.Parser); - private readonly pbc::RepeatedField operations_ = new pbc::RepeatedField(); - /// - /// Required. The list of operations to perform on individual keyword plans. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Operations { - get { return operations_; } - } - - /// Field number for the "partial_failure" field. - public const int PartialFailureFieldNumber = 3; - private bool partialFailure_; - /// - /// If true, successful operations will be carried out and invalid - /// operations will return errors. If false, all operations will be carried - /// out in one transaction if and only if they are all valid. - /// Default is false. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PartialFailure { - get { return partialFailure_; } - set { - partialFailure_ = value; - } - } - - /// Field number for the "validate_only" field. - public const int ValidateOnlyFieldNumber = 4; - private bool validateOnly_; - /// - /// If true, the request is validated but not executed. Only errors are - /// returned, not results. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ValidateOnly { - get { return validateOnly_; } - set { - validateOnly_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlansRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlansRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (CustomerId != other.CustomerId) return false; - if(!operations_.Equals(other.operations_)) return false; - if (PartialFailure != other.PartialFailure) return false; - if (ValidateOnly != other.ValidateOnly) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); - hash ^= operations_.GetHashCode(); - if (PartialFailure != false) hash ^= PartialFailure.GetHashCode(); - if (ValidateOnly != false) hash ^= ValidateOnly.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (CustomerId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(CustomerId); - } - operations_.WriteTo(ref output, _repeated_operations_codec); - if (PartialFailure != false) { - output.WriteRawTag(24); - output.WriteBool(PartialFailure); - } - if (ValidateOnly != false) { - output.WriteRawTag(32); - output.WriteBool(ValidateOnly); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (CustomerId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CustomerId); - } - size += operations_.CalculateSize(_repeated_operations_codec); - if (PartialFailure != false) { - size += 1 + 1; - } - if (ValidateOnly != false) { - size += 1 + 1; - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlansRequest other) { - if (other == null) { - return; - } - if (other.CustomerId.Length != 0) { - CustomerId = other.CustomerId; - } - operations_.Add(other.operations_); - if (other.PartialFailure != false) { - PartialFailure = other.PartialFailure; - } - if (other.ValidateOnly != false) { - ValidateOnly = other.ValidateOnly; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - CustomerId = input.ReadString(); - break; - } - case 18: { - operations_.AddEntriesFrom(ref input, _repeated_operations_codec); - break; - } - case 24: { - PartialFailure = input.ReadBool(); - break; - } - case 32: { - ValidateOnly = input.ReadBool(); - break; - } - } - } - } - #endif - - } - - /// - /// A single operation (create, update, remove) on a keyword plan. - /// - public sealed partial class KeywordPlanOperation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanOperation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanOperation() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanOperation(KeywordPlanOperation other) : this() { - updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; - switch (other.OperationCase) { - case OperationOneofCase.Create: - Create = other.Create.Clone(); - break; - case OperationOneofCase.Update: - Update = other.Update.Clone(); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanOperation Clone() { - return new KeywordPlanOperation(this); - } - - /// Field number for the "update_mask" field. - public const int UpdateMaskFieldNumber = 4; - private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; - /// - /// The FieldMask that determines which resource fields are modified in an - /// update. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { - get { return updateMask_; } - set { - updateMask_ = value; - } - } - - /// Field number for the "create" field. - public const int CreateFieldNumber = 1; - /// - /// Create operation: No resource name is expected for the new keyword plan. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan Create { - get { return operationCase_ == OperationOneofCase.Create ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Create; - } - } - - /// Field number for the "update" field. - public const int UpdateFieldNumber = 2; - /// - /// Update operation: The keyword plan is expected to have a valid resource - /// name. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan Update { - get { return operationCase_ == OperationOneofCase.Update ? (global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan) operation_ : null; } - set { - operation_ = value; - operationCase_ = value == null ? OperationOneofCase.None : OperationOneofCase.Update; - } - } - - /// Field number for the "remove" field. - public const int RemoveFieldNumber = 3; - /// - /// Remove operation: A resource name for the removed keyword plan is - /// expected in this format: - /// - /// `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Remove { - get { return operationCase_ == OperationOneofCase.Remove ? (string) operation_ : ""; } - set { - operation_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - operationCase_ = OperationOneofCase.Remove; - } - } - - private object operation_; - /// Enum of possible cases for the "operation" oneof. - public enum OperationOneofCase { - None = 0, - Create = 1, - Update = 2, - Remove = 3, - } - private OperationOneofCase operationCase_ = OperationOneofCase.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public OperationOneofCase OperationCase { - get { return operationCase_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearOperation() { - operationCase_ = OperationOneofCase.None; - operation_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanOperation); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanOperation other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(UpdateMask, other.UpdateMask)) return false; - if (!object.Equals(Create, other.Create)) return false; - if (!object.Equals(Update, other.Update)) return false; - if (Remove != other.Remove) return false; - if (OperationCase != other.OperationCase) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); - if (operationCase_ == OperationOneofCase.Create) hash ^= Create.GetHashCode(); - if (operationCase_ == OperationOneofCase.Update) hash ^= Update.GetHashCode(); - if (operationCase_ == OperationOneofCase.Remove) hash ^= Remove.GetHashCode(); - hash ^= (int) operationCase_; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (operationCase_ == OperationOneofCase.Create) { - output.WriteRawTag(10); - output.WriteMessage(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - output.WriteRawTag(18); - output.WriteMessage(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - output.WriteRawTag(26); - output.WriteString(Remove); - } - if (updateMask_ != null) { - output.WriteRawTag(34); - output.WriteMessage(UpdateMask); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (updateMask_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); - } - if (operationCase_ == OperationOneofCase.Create) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Create); - } - if (operationCase_ == OperationOneofCase.Update) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Update); - } - if (operationCase_ == OperationOneofCase.Remove) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Remove); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanOperation other) { - if (other == null) { - return; - } - if (other.updateMask_ != null) { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - UpdateMask.MergeFrom(other.UpdateMask); - } - switch (other.OperationCase) { - case OperationOneofCase.Create: - if (Create == null) { - Create = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - } - Create.MergeFrom(other.Create); - break; - case OperationOneofCase.Update: - if (Update == null) { - Update = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - } - Update.MergeFrom(other.Update); - break; - case OperationOneofCase.Remove: - Remove = other.Remove; - break; - } - - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - if (operationCase_ == OperationOneofCase.Create) { - subBuilder.MergeFrom(Create); - } - input.ReadMessage(subBuilder); - Create = subBuilder; - break; - } - case 18: { - global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan subBuilder = new global::Google.Ads.GoogleAds.V12.Resources.KeywordPlan(); - if (operationCase_ == OperationOneofCase.Update) { - subBuilder.MergeFrom(Update); - } - input.ReadMessage(subBuilder); - Update = subBuilder; - break; - } - case 26: { - Remove = input.ReadString(); - break; - } - case 34: { - if (updateMask_ == null) { - UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); - } - input.ReadMessage(UpdateMask); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for a keyword plan mutate. - /// - public sealed partial class MutateKeywordPlansResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlansResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansResponse(MutateKeywordPlansResponse other) : this() { - partialFailureError_ = other.partialFailureError_ != null ? other.partialFailureError_.Clone() : null; - results_ = other.results_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansResponse Clone() { - return new MutateKeywordPlansResponse(this); - } - - /// Field number for the "partial_failure_error" field. - public const int PartialFailureErrorFieldNumber = 3; - private global::Google.Rpc.Status partialFailureError_; - /// - /// Errors that pertain to operation failures in the partial failure mode. - /// Returned only when partial_failure = true and all errors occur inside the - /// operations. If any errors occur outside the operations (for example, auth - /// errors), we return an RPC level error. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Rpc.Status PartialFailureError { - get { return partialFailureError_; } - set { - partialFailureError_ = value; - } - } - - /// Field number for the "results" field. - public const int ResultsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_results_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResult.Parser); - private readonly pbc::RepeatedField results_ = new pbc::RepeatedField(); - /// - /// All results for the mutate. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Results { - get { return results_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlansResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlansResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!object.Equals(PartialFailureError, other.PartialFailureError)) return false; - if(!results_.Equals(other.results_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (partialFailureError_ != null) hash ^= PartialFailureError.GetHashCode(); - hash ^= results_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - results_.WriteTo(output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - results_.WriteTo(ref output, _repeated_results_codec); - if (partialFailureError_ != null) { - output.WriteRawTag(26); - output.WriteMessage(PartialFailureError); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (partialFailureError_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(PartialFailureError); - } - size += results_.CalculateSize(_repeated_results_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlansResponse other) { - if (other == null) { - return; - } - if (other.partialFailureError_ != null) { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - PartialFailureError.MergeFrom(other.PartialFailureError); - } - results_.Add(other.results_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - results_.AddEntriesFrom(input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - results_.AddEntriesFrom(ref input, _repeated_results_codec); - break; - } - case 26: { - if (partialFailureError_ == null) { - PartialFailureError = new global::Google.Rpc.Status(); - } - input.ReadMessage(PartialFailureError); - break; - } - } - } - } - #endif - - } - - /// - /// The result for the keyword plan mutate. - /// - public sealed partial class MutateKeywordPlansResult : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MutateKeywordPlansResult()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansResult() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansResult(MutateKeywordPlansResult other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public MutateKeywordPlansResult Clone() { - return new MutateKeywordPlansResult(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Returned for successful operations. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as MutateKeywordPlansResult); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MutateKeywordPlansResult other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MutateKeywordPlansResult other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v12.services.KeywordPlanService.GenerateForecastCurve]. - /// - public sealed partial class GenerateForecastCurveRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateForecastCurveRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastCurveRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastCurveRequest(GenerateForecastCurveRequest other) : this() { - keywordPlan_ = other.keywordPlan_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastCurveRequest Clone() { - return new GenerateForecastCurveRequest(this); - } - - /// Field number for the "keyword_plan" field. - public const int KeywordPlanFieldNumber = 1; - private string keywordPlan_ = ""; - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlan { - get { return keywordPlan_; } - set { - keywordPlan_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateForecastCurveRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateForecastCurveRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlan != other.KeywordPlan) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (KeywordPlan.Length != 0) hash ^= KeywordPlan.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (KeywordPlan.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlan); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateForecastCurveRequest other) { - if (other == null) { - return; - } - if (other.KeywordPlan.Length != 0) { - KeywordPlan = other.KeywordPlan; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v12.services.KeywordPlanService.GenerateForecastCurve]. - /// - public sealed partial class GenerateForecastCurveResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateForecastCurveResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[5]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastCurveResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastCurveResponse(GenerateForecastCurveResponse other) : this() { - campaignForecastCurves_ = other.campaignForecastCurves_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastCurveResponse Clone() { - return new GenerateForecastCurveResponse(this); - } - - /// Field number for the "campaign_forecast_curves" field. - public const int CampaignForecastCurvesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_campaignForecastCurves_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignForecastCurve.Parser); - private readonly pbc::RepeatedField campaignForecastCurves_ = new pbc::RepeatedField(); - /// - /// List of forecast curves for the keyword plan campaign. - /// One maximum. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CampaignForecastCurves { - get { return campaignForecastCurves_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateForecastCurveResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateForecastCurveResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!campaignForecastCurves_.Equals(other.campaignForecastCurves_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= campaignForecastCurves_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - campaignForecastCurves_.WriteTo(output, _repeated_campaignForecastCurves_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - campaignForecastCurves_.WriteTo(ref output, _repeated_campaignForecastCurves_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += campaignForecastCurves_.CalculateSize(_repeated_campaignForecastCurves_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateForecastCurveResponse other) { - if (other == null) { - return; - } - campaignForecastCurves_.Add(other.campaignForecastCurves_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - campaignForecastCurves_.AddEntriesFrom(input, _repeated_campaignForecastCurves_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - campaignForecastCurves_.AddEntriesFrom(ref input, _repeated_campaignForecastCurves_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [KeywordPlanService.GenerateForecastTimeSeries][google.ads.googleads.v12.services.KeywordPlanService.GenerateForecastTimeSeries]. - /// - public sealed partial class GenerateForecastTimeSeriesRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateForecastTimeSeriesRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[6]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastTimeSeriesRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastTimeSeriesRequest(GenerateForecastTimeSeriesRequest other) : this() { - keywordPlan_ = other.keywordPlan_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastTimeSeriesRequest Clone() { - return new GenerateForecastTimeSeriesRequest(this); - } - - /// Field number for the "keyword_plan" field. - public const int KeywordPlanFieldNumber = 1; - private string keywordPlan_ = ""; - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlan { - get { return keywordPlan_; } - set { - keywordPlan_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateForecastTimeSeriesRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateForecastTimeSeriesRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlan != other.KeywordPlan) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (KeywordPlan.Length != 0) hash ^= KeywordPlan.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (KeywordPlan.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlan); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateForecastTimeSeriesRequest other) { - if (other == null) { - return; - } - if (other.KeywordPlan.Length != 0) { - KeywordPlan = other.KeywordPlan; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [KeywordPlanService.GenerateForecastTimeSeries][google.ads.googleads.v12.services.KeywordPlanService.GenerateForecastTimeSeries]. - /// - public sealed partial class GenerateForecastTimeSeriesResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateForecastTimeSeriesResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[7]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastTimeSeriesResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastTimeSeriesResponse(GenerateForecastTimeSeriesResponse other) : this() { - weeklyTimeSeriesForecasts_ = other.weeklyTimeSeriesForecasts_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastTimeSeriesResponse Clone() { - return new GenerateForecastTimeSeriesResponse(this); - } - - /// Field number for the "weekly_time_series_forecasts" field. - public const int WeeklyTimeSeriesForecastsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_weeklyTimeSeriesForecasts_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanWeeklyTimeSeriesForecast.Parser); - private readonly pbc::RepeatedField weeklyTimeSeriesForecasts_ = new pbc::RepeatedField(); - /// - /// List of weekly time series forecasts for the keyword plan campaign. - /// One maximum. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField WeeklyTimeSeriesForecasts { - get { return weeklyTimeSeriesForecasts_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateForecastTimeSeriesResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateForecastTimeSeriesResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!weeklyTimeSeriesForecasts_.Equals(other.weeklyTimeSeriesForecasts_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= weeklyTimeSeriesForecasts_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - weeklyTimeSeriesForecasts_.WriteTo(output, _repeated_weeklyTimeSeriesForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - weeklyTimeSeriesForecasts_.WriteTo(ref output, _repeated_weeklyTimeSeriesForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += weeklyTimeSeriesForecasts_.CalculateSize(_repeated_weeklyTimeSeriesForecasts_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateForecastTimeSeriesResponse other) { - if (other == null) { - return; - } - weeklyTimeSeriesForecasts_.Add(other.weeklyTimeSeriesForecasts_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - weeklyTimeSeriesForecasts_.AddEntriesFrom(input, _repeated_weeklyTimeSeriesForecasts_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - weeklyTimeSeriesForecasts_.AddEntriesFrom(ref input, _repeated_weeklyTimeSeriesForecasts_codec); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v12.services.KeywordPlanService.GenerateForecastMetrics]. - /// - public sealed partial class GenerateForecastMetricsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateForecastMetricsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[8]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastMetricsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastMetricsRequest(GenerateForecastMetricsRequest other) : this() { - keywordPlan_ = other.keywordPlan_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastMetricsRequest Clone() { - return new GenerateForecastMetricsRequest(this); - } - - /// Field number for the "keyword_plan" field. - public const int KeywordPlanFieldNumber = 1; - private string keywordPlan_ = ""; - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlan { - get { return keywordPlan_; } - set { - keywordPlan_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateForecastMetricsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateForecastMetricsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlan != other.KeywordPlan) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (KeywordPlan.Length != 0) hash ^= KeywordPlan.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (KeywordPlan.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlan); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateForecastMetricsRequest other) { - if (other == null) { - return; - } - if (other.KeywordPlan.Length != 0) { - KeywordPlan = other.KeywordPlan; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v12.services.KeywordPlanService.GenerateForecastMetrics]. - /// - public sealed partial class GenerateForecastMetricsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateForecastMetricsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[9]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastMetricsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastMetricsResponse(GenerateForecastMetricsResponse other) : this() { - campaignForecasts_ = other.campaignForecasts_.Clone(); - adGroupForecasts_ = other.adGroupForecasts_.Clone(); - keywordForecasts_ = other.keywordForecasts_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateForecastMetricsResponse Clone() { - return new GenerateForecastMetricsResponse(this); - } - - /// Field number for the "campaign_forecasts" field. - public const int CampaignForecastsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_campaignForecasts_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanCampaignForecast.Parser); - private readonly pbc::RepeatedField campaignForecasts_ = new pbc::RepeatedField(); - /// - /// List of campaign forecasts. - /// One maximum. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CampaignForecasts { - get { return campaignForecasts_; } - } - - /// Field number for the "ad_group_forecasts" field. - public const int AdGroupForecastsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_adGroupForecasts_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanAdGroupForecast.Parser); - private readonly pbc::RepeatedField adGroupForecasts_ = new pbc::RepeatedField(); - /// - /// List of ad group forecasts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField AdGroupForecasts { - get { return adGroupForecasts_; } - } - - /// Field number for the "keyword_forecasts" field. - public const int KeywordForecastsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_keywordForecasts_codec - = pb::FieldCodec.ForMessage(26, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanKeywordForecast.Parser); - private readonly pbc::RepeatedField keywordForecasts_ = new pbc::RepeatedField(); - /// - /// List of keyword forecasts. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField KeywordForecasts { - get { return keywordForecasts_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateForecastMetricsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateForecastMetricsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!campaignForecasts_.Equals(other.campaignForecasts_)) return false; - if(!adGroupForecasts_.Equals(other.adGroupForecasts_)) return false; - if(!keywordForecasts_.Equals(other.keywordForecasts_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= campaignForecasts_.GetHashCode(); - hash ^= adGroupForecasts_.GetHashCode(); - hash ^= keywordForecasts_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - campaignForecasts_.WriteTo(output, _repeated_campaignForecasts_codec); - adGroupForecasts_.WriteTo(output, _repeated_adGroupForecasts_codec); - keywordForecasts_.WriteTo(output, _repeated_keywordForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - campaignForecasts_.WriteTo(ref output, _repeated_campaignForecasts_codec); - adGroupForecasts_.WriteTo(ref output, _repeated_adGroupForecasts_codec); - keywordForecasts_.WriteTo(ref output, _repeated_keywordForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += campaignForecasts_.CalculateSize(_repeated_campaignForecasts_codec); - size += adGroupForecasts_.CalculateSize(_repeated_adGroupForecasts_codec); - size += keywordForecasts_.CalculateSize(_repeated_keywordForecasts_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateForecastMetricsResponse other) { - if (other == null) { - return; - } - campaignForecasts_.Add(other.campaignForecasts_); - adGroupForecasts_.Add(other.adGroupForecasts_); - keywordForecasts_.Add(other.keywordForecasts_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - campaignForecasts_.AddEntriesFrom(input, _repeated_campaignForecasts_codec); - break; - } - case 18: { - adGroupForecasts_.AddEntriesFrom(input, _repeated_adGroupForecasts_codec); - break; - } - case 26: { - keywordForecasts_.AddEntriesFrom(input, _repeated_keywordForecasts_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - campaignForecasts_.AddEntriesFrom(ref input, _repeated_campaignForecasts_codec); - break; - } - case 18: { - adGroupForecasts_.AddEntriesFrom(ref input, _repeated_adGroupForecasts_codec); - break; - } - case 26: { - keywordForecasts_.AddEntriesFrom(ref input, _repeated_keywordForecasts_codec); - break; - } - } - } - } - #endif - - } - - /// - /// A campaign forecast. - /// - public sealed partial class KeywordPlanCampaignForecast : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaignForecast()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignForecast() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignForecast(KeywordPlanCampaignForecast other) : this() { - keywordPlanCampaign_ = other.keywordPlanCampaign_; - campaignForecast_ = other.campaignForecast_ != null ? other.campaignForecast_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignForecast Clone() { - return new KeywordPlanCampaignForecast(this); - } - - /// Field number for the "keyword_plan_campaign" field. - public const int KeywordPlanCampaignFieldNumber = 3; - private string keywordPlanCampaign_; - /// - /// The resource name of the Keyword Plan campaign related to the forecast. - /// - /// `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanCampaign { - get { return keywordPlanCampaign_ ?? ""; } - set { - keywordPlanCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanCampaign { - get { return keywordPlanCampaign_ != null; } - } - /// Clears the value of the "keyword_plan_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanCampaign() { - keywordPlanCampaign_ = null; - } - - /// Field number for the "campaign_forecast" field. - public const int CampaignForecastFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics campaignForecast_; - /// - /// The forecast for the Keyword Plan campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics CampaignForecast { - get { return campaignForecast_; } - set { - campaignForecast_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaignForecast); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaignForecast other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlanCampaign != other.KeywordPlanCampaign) return false; - if (!object.Equals(CampaignForecast, other.CampaignForecast)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasKeywordPlanCampaign) hash ^= KeywordPlanCampaign.GetHashCode(); - if (campaignForecast_ != null) hash ^= CampaignForecast.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (campaignForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignForecast); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanCampaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (campaignForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(CampaignForecast); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanCampaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasKeywordPlanCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanCampaign); - } - if (campaignForecast_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CampaignForecast); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaignForecast other) { - if (other == null) { - return; - } - if (other.HasKeywordPlanCampaign) { - KeywordPlanCampaign = other.KeywordPlanCampaign; - } - if (other.campaignForecast_ != null) { - if (campaignForecast_ == null) { - CampaignForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - CampaignForecast.MergeFrom(other.CampaignForecast); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (campaignForecast_ == null) { - CampaignForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(CampaignForecast); - break; - } - case 26: { - KeywordPlanCampaign = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (campaignForecast_ == null) { - CampaignForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(CampaignForecast); - break; - } - case 26: { - KeywordPlanCampaign = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// An ad group forecast. - /// - public sealed partial class KeywordPlanAdGroupForecast : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanAdGroupForecast()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[11]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupForecast() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupForecast(KeywordPlanAdGroupForecast other) : this() { - keywordPlanAdGroup_ = other.keywordPlanAdGroup_; - adGroupForecast_ = other.adGroupForecast_ != null ? other.adGroupForecast_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanAdGroupForecast Clone() { - return new KeywordPlanAdGroupForecast(this); - } - - /// Field number for the "keyword_plan_ad_group" field. - public const int KeywordPlanAdGroupFieldNumber = 3; - private string keywordPlanAdGroup_; - /// - /// The resource name of the Keyword Plan ad group related to the forecast. - /// - /// `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanAdGroup { - get { return keywordPlanAdGroup_ ?? ""; } - set { - keywordPlanAdGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_ad_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanAdGroup { - get { return keywordPlanAdGroup_ != null; } - } - /// Clears the value of the "keyword_plan_ad_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanAdGroup() { - keywordPlanAdGroup_ = null; - } - - /// Field number for the "ad_group_forecast" field. - public const int AdGroupForecastFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics adGroupForecast_; - /// - /// The forecast for the Keyword Plan ad group. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics AdGroupForecast { - get { return adGroupForecast_; } - set { - adGroupForecast_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanAdGroupForecast); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanAdGroupForecast other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlanAdGroup != other.KeywordPlanAdGroup) return false; - if (!object.Equals(AdGroupForecast, other.AdGroupForecast)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasKeywordPlanAdGroup) hash ^= KeywordPlanAdGroup.GetHashCode(); - if (adGroupForecast_ != null) hash ^= AdGroupForecast.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (adGroupForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupForecast); - } - if (HasKeywordPlanAdGroup) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanAdGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (adGroupForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AdGroupForecast); - } - if (HasKeywordPlanAdGroup) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanAdGroup); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasKeywordPlanAdGroup) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanAdGroup); - } - if (adGroupForecast_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AdGroupForecast); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanAdGroupForecast other) { - if (other == null) { - return; - } - if (other.HasKeywordPlanAdGroup) { - KeywordPlanAdGroup = other.KeywordPlanAdGroup; - } - if (other.adGroupForecast_ != null) { - if (adGroupForecast_ == null) { - AdGroupForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - AdGroupForecast.MergeFrom(other.AdGroupForecast); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (adGroupForecast_ == null) { - AdGroupForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(AdGroupForecast); - break; - } - case 26: { - KeywordPlanAdGroup = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (adGroupForecast_ == null) { - AdGroupForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(AdGroupForecast); - break; - } - case 26: { - KeywordPlanAdGroup = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// A keyword forecast. - /// - public sealed partial class KeywordPlanKeywordForecast : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanKeywordForecast()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[12]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordForecast() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordForecast(KeywordPlanKeywordForecast other) : this() { - keywordPlanAdGroupKeyword_ = other.keywordPlanAdGroupKeyword_; - keywordForecast_ = other.keywordForecast_ != null ? other.keywordForecast_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordForecast Clone() { - return new KeywordPlanKeywordForecast(this); - } - - /// Field number for the "keyword_plan_ad_group_keyword" field. - public const int KeywordPlanAdGroupKeywordFieldNumber = 3; - private string keywordPlanAdGroupKeyword_; - /// - /// The resource name of the Keyword Plan keyword related to the forecast. - /// - /// `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanAdGroupKeyword { - get { return keywordPlanAdGroupKeyword_ ?? ""; } - set { - keywordPlanAdGroupKeyword_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_ad_group_keyword" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanAdGroupKeyword { - get { return keywordPlanAdGroupKeyword_ != null; } - } - /// Clears the value of the "keyword_plan_ad_group_keyword" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanAdGroupKeyword() { - keywordPlanAdGroupKeyword_ = null; - } - - /// Field number for the "keyword_forecast" field. - public const int KeywordForecastFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics keywordForecast_; - /// - /// The forecast for the Keyword Plan keyword. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics KeywordForecast { - get { return keywordForecast_; } - set { - keywordForecast_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanKeywordForecast); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanKeywordForecast other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlanAdGroupKeyword != other.KeywordPlanAdGroupKeyword) return false; - if (!object.Equals(KeywordForecast, other.KeywordForecast)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasKeywordPlanAdGroupKeyword) hash ^= KeywordPlanAdGroupKeyword.GetHashCode(); - if (keywordForecast_ != null) hash ^= KeywordForecast.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (keywordForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(KeywordForecast); - } - if (HasKeywordPlanAdGroupKeyword) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanAdGroupKeyword); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (keywordForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(KeywordForecast); - } - if (HasKeywordPlanAdGroupKeyword) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanAdGroupKeyword); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasKeywordPlanAdGroupKeyword) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanAdGroupKeyword); - } - if (keywordForecast_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordForecast); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanKeywordForecast other) { - if (other == null) { - return; - } - if (other.HasKeywordPlanAdGroupKeyword) { - KeywordPlanAdGroupKeyword = other.KeywordPlanAdGroupKeyword; - } - if (other.keywordForecast_ != null) { - if (keywordForecast_ == null) { - KeywordForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - KeywordForecast.MergeFrom(other.KeywordForecast); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (keywordForecast_ == null) { - KeywordForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(KeywordForecast); - break; - } - case 26: { - KeywordPlanAdGroupKeyword = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (keywordForecast_ == null) { - KeywordForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(KeywordForecast); - break; - } - case 26: { - KeywordPlanAdGroupKeyword = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The forecast curve for the campaign. - /// - public sealed partial class KeywordPlanCampaignForecastCurve : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanCampaignForecastCurve()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[13]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignForecastCurve() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignForecastCurve(KeywordPlanCampaignForecastCurve other) : this() { - keywordPlanCampaign_ = other.keywordPlanCampaign_; - maxCpcBidForecastCurve_ = other.maxCpcBidForecastCurve_ != null ? other.maxCpcBidForecastCurve_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanCampaignForecastCurve Clone() { - return new KeywordPlanCampaignForecastCurve(this); - } - - /// Field number for the "keyword_plan_campaign" field. - public const int KeywordPlanCampaignFieldNumber = 3; - private string keywordPlanCampaign_; - /// - /// The resource name of the Keyword Plan campaign related to the forecast. - /// - /// `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanCampaign { - get { return keywordPlanCampaign_ ?? ""; } - set { - keywordPlanCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanCampaign { - get { return keywordPlanCampaign_ != null; } - } - /// Clears the value of the "keyword_plan_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanCampaign() { - keywordPlanCampaign_ = null; - } - - /// Field number for the "max_cpc_bid_forecast_curve" field. - public const int MaxCpcBidForecastCurveFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecastCurve maxCpcBidForecastCurve_; - /// - /// The max cpc bid forecast curve for the campaign. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecastCurve MaxCpcBidForecastCurve { - get { return maxCpcBidForecastCurve_; } - set { - maxCpcBidForecastCurve_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanCampaignForecastCurve); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanCampaignForecastCurve other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlanCampaign != other.KeywordPlanCampaign) return false; - if (!object.Equals(MaxCpcBidForecastCurve, other.MaxCpcBidForecastCurve)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasKeywordPlanCampaign) hash ^= KeywordPlanCampaign.GetHashCode(); - if (maxCpcBidForecastCurve_ != null) hash ^= MaxCpcBidForecastCurve.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (maxCpcBidForecastCurve_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MaxCpcBidForecastCurve); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanCampaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (maxCpcBidForecastCurve_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MaxCpcBidForecastCurve); - } - if (HasKeywordPlanCampaign) { - output.WriteRawTag(26); - output.WriteString(KeywordPlanCampaign); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasKeywordPlanCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanCampaign); - } - if (maxCpcBidForecastCurve_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxCpcBidForecastCurve); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanCampaignForecastCurve other) { - if (other == null) { - return; - } - if (other.HasKeywordPlanCampaign) { - KeywordPlanCampaign = other.KeywordPlanCampaign; - } - if (other.maxCpcBidForecastCurve_ != null) { - if (maxCpcBidForecastCurve_ == null) { - MaxCpcBidForecastCurve = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecastCurve(); - } - MaxCpcBidForecastCurve.MergeFrom(other.MaxCpcBidForecastCurve); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (maxCpcBidForecastCurve_ == null) { - MaxCpcBidForecastCurve = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecastCurve(); - } - input.ReadMessage(MaxCpcBidForecastCurve); - break; - } - case 26: { - KeywordPlanCampaign = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (maxCpcBidForecastCurve_ == null) { - MaxCpcBidForecastCurve = new global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecastCurve(); - } - input.ReadMessage(MaxCpcBidForecastCurve); - break; - } - case 26: { - KeywordPlanCampaign = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// The max cpc bid forecast curve. - /// - public sealed partial class KeywordPlanMaxCpcBidForecastCurve : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanMaxCpcBidForecastCurve()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[14]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanMaxCpcBidForecastCurve() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanMaxCpcBidForecastCurve(KeywordPlanMaxCpcBidForecastCurve other) : this() { - maxCpcBidForecasts_ = other.maxCpcBidForecasts_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanMaxCpcBidForecastCurve Clone() { - return new KeywordPlanMaxCpcBidForecastCurve(this); - } - - /// Field number for the "max_cpc_bid_forecasts" field. - public const int MaxCpcBidForecastsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_maxCpcBidForecasts_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanMaxCpcBidForecast.Parser); - private readonly pbc::RepeatedField maxCpcBidForecasts_ = new pbc::RepeatedField(); - /// - /// The forecasts for the Keyword Plan campaign at different max CPC bids. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField MaxCpcBidForecasts { - get { return maxCpcBidForecasts_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanMaxCpcBidForecastCurve); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanMaxCpcBidForecastCurve other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!maxCpcBidForecasts_.Equals(other.maxCpcBidForecasts_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= maxCpcBidForecasts_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - maxCpcBidForecasts_.WriteTo(output, _repeated_maxCpcBidForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - maxCpcBidForecasts_.WriteTo(ref output, _repeated_maxCpcBidForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += maxCpcBidForecasts_.CalculateSize(_repeated_maxCpcBidForecasts_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanMaxCpcBidForecastCurve other) { - if (other == null) { - return; - } - maxCpcBidForecasts_.Add(other.maxCpcBidForecasts_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - maxCpcBidForecasts_.AddEntriesFrom(input, _repeated_maxCpcBidForecasts_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - maxCpcBidForecasts_.AddEntriesFrom(ref input, _repeated_maxCpcBidForecasts_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The forecast of the campaign at a specific bid. - /// - public sealed partial class KeywordPlanMaxCpcBidForecast : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanMaxCpcBidForecast()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[15]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanMaxCpcBidForecast() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanMaxCpcBidForecast(KeywordPlanMaxCpcBidForecast other) : this() { - _hasBits0 = other._hasBits0; - maxCpcBidMicros_ = other.maxCpcBidMicros_; - maxCpcBidForecast_ = other.maxCpcBidForecast_ != null ? other.maxCpcBidForecast_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanMaxCpcBidForecast Clone() { - return new KeywordPlanMaxCpcBidForecast(this); - } - - /// Field number for the "max_cpc_bid_micros" field. - public const int MaxCpcBidMicrosFieldNumber = 3; - private long maxCpcBidMicros_; - /// - /// The max cpc bid in micros. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long MaxCpcBidMicros { - get { if ((_hasBits0 & 1) != 0) { return maxCpcBidMicros_; } else { return 0L; } } - set { - _hasBits0 |= 1; - maxCpcBidMicros_ = value; - } - } - /// Gets whether the "max_cpc_bid_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxCpcBidMicros { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "max_cpc_bid_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxCpcBidMicros() { - _hasBits0 &= ~1; - } - - /// Field number for the "max_cpc_bid_forecast" field. - public const int MaxCpcBidForecastFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics maxCpcBidForecast_; - /// - /// The forecast for the Keyword Plan campaign at the specific bid. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics MaxCpcBidForecast { - get { return maxCpcBidForecast_; } - set { - maxCpcBidForecast_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanMaxCpcBidForecast); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanMaxCpcBidForecast other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (MaxCpcBidMicros != other.MaxCpcBidMicros) return false; - if (!object.Equals(MaxCpcBidForecast, other.MaxCpcBidForecast)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasMaxCpcBidMicros) hash ^= MaxCpcBidMicros.GetHashCode(); - if (maxCpcBidForecast_ != null) hash ^= MaxCpcBidForecast.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (maxCpcBidForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MaxCpcBidForecast); - } - if (HasMaxCpcBidMicros) { - output.WriteRawTag(24); - output.WriteInt64(MaxCpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (maxCpcBidForecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(MaxCpcBidForecast); - } - if (HasMaxCpcBidMicros) { - output.WriteRawTag(24); - output.WriteInt64(MaxCpcBidMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasMaxCpcBidMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxCpcBidMicros); - } - if (maxCpcBidForecast_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(MaxCpcBidForecast); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanMaxCpcBidForecast other) { - if (other == null) { - return; - } - if (other.HasMaxCpcBidMicros) { - MaxCpcBidMicros = other.MaxCpcBidMicros; - } - if (other.maxCpcBidForecast_ != null) { - if (maxCpcBidForecast_ == null) { - MaxCpcBidForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - MaxCpcBidForecast.MergeFrom(other.MaxCpcBidForecast); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (maxCpcBidForecast_ == null) { - MaxCpcBidForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(MaxCpcBidForecast); - break; - } - case 24: { - MaxCpcBidMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (maxCpcBidForecast_ == null) { - MaxCpcBidForecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(MaxCpcBidForecast); - break; - } - case 24: { - MaxCpcBidMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// The weekly time series forecast for the keyword plan campaign. - /// - public sealed partial class KeywordPlanWeeklyTimeSeriesForecast : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanWeeklyTimeSeriesForecast()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[16]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanWeeklyTimeSeriesForecast() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanWeeklyTimeSeriesForecast(KeywordPlanWeeklyTimeSeriesForecast other) : this() { - keywordPlanCampaign_ = other.keywordPlanCampaign_; - weeklyForecasts_ = other.weeklyForecasts_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanWeeklyTimeSeriesForecast Clone() { - return new KeywordPlanWeeklyTimeSeriesForecast(this); - } - - /// Field number for the "keyword_plan_campaign" field. - public const int KeywordPlanCampaignFieldNumber = 1; - private string keywordPlanCampaign_; - /// - /// The resource name of the Keyword Plan campaign related to the forecast. - /// - /// `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlanCampaign { - get { return keywordPlanCampaign_ ?? ""; } - set { - keywordPlanCampaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "keyword_plan_campaign" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasKeywordPlanCampaign { - get { return keywordPlanCampaign_ != null; } - } - /// Clears the value of the "keyword_plan_campaign" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearKeywordPlanCampaign() { - keywordPlanCampaign_ = null; - } - - /// Field number for the "weekly_forecasts" field. - public const int WeeklyForecastsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_weeklyForecasts_codec - = pb::FieldCodec.ForMessage(18, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanWeeklyForecast.Parser); - private readonly pbc::RepeatedField weeklyForecasts_ = new pbc::RepeatedField(); - /// - /// The forecasts for the Keyword Plan campaign at different max CPC bids. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField WeeklyForecasts { - get { return weeklyForecasts_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanWeeklyTimeSeriesForecast); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanWeeklyTimeSeriesForecast other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlanCampaign != other.KeywordPlanCampaign) return false; - if(!weeklyForecasts_.Equals(other.weeklyForecasts_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasKeywordPlanCampaign) hash ^= KeywordPlanCampaign.GetHashCode(); - hash ^= weeklyForecasts_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasKeywordPlanCampaign) { - output.WriteRawTag(10); - output.WriteString(KeywordPlanCampaign); - } - weeklyForecasts_.WriteTo(output, _repeated_weeklyForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasKeywordPlanCampaign) { - output.WriteRawTag(10); - output.WriteString(KeywordPlanCampaign); - } - weeklyForecasts_.WriteTo(ref output, _repeated_weeklyForecasts_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasKeywordPlanCampaign) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlanCampaign); - } - size += weeklyForecasts_.CalculateSize(_repeated_weeklyForecasts_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanWeeklyTimeSeriesForecast other) { - if (other == null) { - return; - } - if (other.HasKeywordPlanCampaign) { - KeywordPlanCampaign = other.KeywordPlanCampaign; - } - weeklyForecasts_.Add(other.weeklyForecasts_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KeywordPlanCampaign = input.ReadString(); - break; - } - case 18: { - weeklyForecasts_.AddEntriesFrom(input, _repeated_weeklyForecasts_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KeywordPlanCampaign = input.ReadString(); - break; - } - case 18: { - weeklyForecasts_.AddEntriesFrom(ref input, _repeated_weeklyForecasts_codec); - break; - } - } - } - } - #endif - - } - - /// - /// The forecast of the campaign for the week starting start_date. - /// - public sealed partial class KeywordPlanWeeklyForecast : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanWeeklyForecast()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[17]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanWeeklyForecast() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanWeeklyForecast(KeywordPlanWeeklyForecast other) : this() { - startDate_ = other.startDate_; - forecast_ = other.forecast_ != null ? other.forecast_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanWeeklyForecast Clone() { - return new KeywordPlanWeeklyForecast(this); - } - - /// Field number for the "start_date" field. - public const int StartDateFieldNumber = 1; - private string startDate_; - /// - /// The start date, in yyyy-mm-dd format. This date is inclusive. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string StartDate { - get { return startDate_ ?? ""; } - set { - startDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "start_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStartDate { - get { return startDate_ != null; } - } - /// Clears the value of the "start_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStartDate() { - startDate_ = null; - } - - /// Field number for the "forecast" field. - public const int ForecastFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics forecast_; - /// - /// The forecast for the Keyword Plan campaign for the week. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics Forecast { - get { return forecast_; } - set { - forecast_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanWeeklyForecast); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanWeeklyForecast other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartDate != other.StartDate) return false; - if (!object.Equals(Forecast, other.Forecast)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasStartDate) hash ^= StartDate.GetHashCode(); - if (forecast_ != null) hash ^= Forecast.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasStartDate) { - output.WriteRawTag(10); - output.WriteString(StartDate); - } - if (forecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Forecast); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasStartDate) { - output.WriteRawTag(10); - output.WriteString(StartDate); - } - if (forecast_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Forecast); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasStartDate) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(StartDate); - } - if (forecast_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forecast); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanWeeklyForecast other) { - if (other == null) { - return; - } - if (other.HasStartDate) { - StartDate = other.StartDate; - } - if (other.forecast_ != null) { - if (forecast_ == null) { - Forecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - Forecast.MergeFrom(other.Forecast); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - StartDate = input.ReadString(); - break; - } - case 18: { - if (forecast_ == null) { - Forecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(Forecast); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - StartDate = input.ReadString(); - break; - } - case 18: { - if (forecast_ == null) { - Forecast = new global::Google.Ads.GoogleAds.V12.Services.ForecastMetrics(); - } - input.ReadMessage(Forecast); - break; - } - } - } - } - #endif - - } - - /// - /// Forecast metrics. - /// - public sealed partial class ForecastMetrics : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForecastMetrics()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[18]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ForecastMetrics() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ForecastMetrics(ForecastMetrics other) : this() { - _hasBits0 = other._hasBits0; - impressions_ = other.impressions_; - ctr_ = other.ctr_; - averageCpc_ = other.averageCpc_; - clicks_ = other.clicks_; - costMicros_ = other.costMicros_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ForecastMetrics Clone() { - return new ForecastMetrics(this); - } - - /// Field number for the "impressions" field. - public const int ImpressionsFieldNumber = 7; - private double impressions_; - /// - /// Impressions - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Impressions { - get { if ((_hasBits0 & 1) != 0) { return impressions_; } else { return 0D; } } - set { - _hasBits0 |= 1; - impressions_ = value; - } - } - /// Gets whether the "impressions" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasImpressions { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "impressions" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearImpressions() { - _hasBits0 &= ~1; - } - - /// Field number for the "ctr" field. - public const int CtrFieldNumber = 8; - private double ctr_; - /// - /// Ctr - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Ctr { - get { if ((_hasBits0 & 2) != 0) { return ctr_; } else { return 0D; } } - set { - _hasBits0 |= 2; - ctr_ = value; - } - } - /// Gets whether the "ctr" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCtr { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "ctr" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCtr() { - _hasBits0 &= ~2; - } - - /// Field number for the "average_cpc" field. - public const int AverageCpcFieldNumber = 9; - private long averageCpc_; - /// - /// AVG cpc - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long AverageCpc { - get { if ((_hasBits0 & 4) != 0) { return averageCpc_; } else { return 0L; } } - set { - _hasBits0 |= 4; - averageCpc_ = value; - } - } - /// Gets whether the "average_cpc" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAverageCpc { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "average_cpc" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAverageCpc() { - _hasBits0 &= ~4; - } - - /// Field number for the "clicks" field. - public const int ClicksFieldNumber = 10; - private double clicks_; - /// - /// Clicks - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public double Clicks { - get { if ((_hasBits0 & 8) != 0) { return clicks_; } else { return 0D; } } - set { - _hasBits0 |= 8; - clicks_ = value; - } - } - /// Gets whether the "clicks" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClicks { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "clicks" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClicks() { - _hasBits0 &= ~8; - } - - /// Field number for the "cost_micros" field. - public const int CostMicrosFieldNumber = 11; - private long costMicros_; - /// - /// Cost - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long CostMicros { - get { if ((_hasBits0 & 16) != 0) { return costMicros_; } else { return 0L; } } - set { - _hasBits0 |= 16; - costMicros_ = value; - } - } - /// Gets whether the "cost_micros" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCostMicros { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "cost_micros" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCostMicros() { - _hasBits0 &= ~16; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ForecastMetrics); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ForecastMetrics other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Impressions, other.Impressions)) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Ctr, other.Ctr)) return false; - if (AverageCpc != other.AverageCpc) return false; - if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Clicks, other.Clicks)) return false; - if (CostMicros != other.CostMicros) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasImpressions) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Impressions); - if (HasCtr) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Ctr); - if (HasAverageCpc) hash ^= AverageCpc.GetHashCode(); - if (HasClicks) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Clicks); - if (HasCostMicros) hash ^= CostMicros.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (HasImpressions) { - output.WriteRawTag(57); - output.WriteDouble(Impressions); - } - if (HasCtr) { - output.WriteRawTag(65); - output.WriteDouble(Ctr); - } - if (HasAverageCpc) { - output.WriteRawTag(72); - output.WriteInt64(AverageCpc); - } - if (HasClicks) { - output.WriteRawTag(81); - output.WriteDouble(Clicks); - } - if (HasCostMicros) { - output.WriteRawTag(88); - output.WriteInt64(CostMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (HasImpressions) { - output.WriteRawTag(57); - output.WriteDouble(Impressions); - } - if (HasCtr) { - output.WriteRawTag(65); - output.WriteDouble(Ctr); - } - if (HasAverageCpc) { - output.WriteRawTag(72); - output.WriteInt64(AverageCpc); - } - if (HasClicks) { - output.WriteRawTag(81); - output.WriteDouble(Clicks); - } - if (HasCostMicros) { - output.WriteRawTag(88); - output.WriteInt64(CostMicros); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasImpressions) { - size += 1 + 8; - } - if (HasCtr) { - size += 1 + 8; - } - if (HasAverageCpc) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(AverageCpc); - } - if (HasClicks) { - size += 1 + 8; - } - if (HasCostMicros) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(CostMicros); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ForecastMetrics other) { - if (other == null) { - return; - } - if (other.HasImpressions) { - Impressions = other.Impressions; - } - if (other.HasCtr) { - Ctr = other.Ctr; - } - if (other.HasAverageCpc) { - AverageCpc = other.AverageCpc; - } - if (other.HasClicks) { - Clicks = other.Clicks; - } - if (other.HasCostMicros) { - CostMicros = other.CostMicros; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 57: { - Impressions = input.ReadDouble(); - break; - } - case 65: { - Ctr = input.ReadDouble(); - break; - } - case 72: { - AverageCpc = input.ReadInt64(); - break; - } - case 81: { - Clicks = input.ReadDouble(); - break; - } - case 88: { - CostMicros = input.ReadInt64(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 57: { - Impressions = input.ReadDouble(); - break; - } - case 65: { - Ctr = input.ReadDouble(); - break; - } - case 72: { - AverageCpc = input.ReadInt64(); - break; - } - case 81: { - Clicks = input.ReadDouble(); - break; - } - case 88: { - CostMicros = input.ReadInt64(); - break; - } - } - } - } - #endif - - } - - /// - /// Request message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v12.services.KeywordPlanService.GenerateHistoricalMetrics]. - /// - public sealed partial class GenerateHistoricalMetricsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateHistoricalMetricsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[19]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateHistoricalMetricsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateHistoricalMetricsRequest(GenerateHistoricalMetricsRequest other) : this() { - keywordPlan_ = other.keywordPlan_; - aggregateMetrics_ = other.aggregateMetrics_ != null ? other.aggregateMetrics_.Clone() : null; - historicalMetricsOptions_ = other.historicalMetricsOptions_ != null ? other.historicalMetricsOptions_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateHistoricalMetricsRequest Clone() { - return new GenerateHistoricalMetricsRequest(this); - } - - /// Field number for the "keyword_plan" field. - public const int KeywordPlanFieldNumber = 1; - private string keywordPlan_ = ""; - /// - /// Required. The resource name of the keyword plan of which historical metrics are - /// requested. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string KeywordPlan { - get { return keywordPlan_; } - set { - keywordPlan_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "aggregate_metrics" field. - public const int AggregateMetricsFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics aggregateMetrics_; - /// - /// The aggregate fields to include in response. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics AggregateMetrics { - get { return aggregateMetrics_; } - set { - aggregateMetrics_ = value; - } - } - - /// Field number for the "historical_metrics_options" field. - public const int HistoricalMetricsOptionsFieldNumber = 3; - private global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions historicalMetricsOptions_; - /// - /// The options for historical metrics data. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions HistoricalMetricsOptions { - get { return historicalMetricsOptions_; } - set { - historicalMetricsOptions_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateHistoricalMetricsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateHistoricalMetricsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (KeywordPlan != other.KeywordPlan) return false; - if (!object.Equals(AggregateMetrics, other.AggregateMetrics)) return false; - if (!object.Equals(HistoricalMetricsOptions, other.HistoricalMetricsOptions)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (KeywordPlan.Length != 0) hash ^= KeywordPlan.GetHashCode(); - if (aggregateMetrics_ != null) hash ^= AggregateMetrics.GetHashCode(); - if (historicalMetricsOptions_ != null) hash ^= HistoricalMetricsOptions.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (aggregateMetrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AggregateMetrics); - } - if (historicalMetricsOptions_ != null) { - output.WriteRawTag(26); - output.WriteMessage(HistoricalMetricsOptions); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (KeywordPlan.Length != 0) { - output.WriteRawTag(10); - output.WriteString(KeywordPlan); - } - if (aggregateMetrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AggregateMetrics); - } - if (historicalMetricsOptions_ != null) { - output.WriteRawTag(26); - output.WriteMessage(HistoricalMetricsOptions); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (KeywordPlan.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(KeywordPlan); - } - if (aggregateMetrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregateMetrics); - } - if (historicalMetricsOptions_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(HistoricalMetricsOptions); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateHistoricalMetricsRequest other) { - if (other == null) { - return; - } - if (other.KeywordPlan.Length != 0) { - KeywordPlan = other.KeywordPlan; - } - if (other.aggregateMetrics_ != null) { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - AggregateMetrics.MergeFrom(other.AggregateMetrics); - } - if (other.historicalMetricsOptions_ != null) { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - HistoricalMetricsOptions.MergeFrom(other.HistoricalMetricsOptions); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - case 18: { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - input.ReadMessage(AggregateMetrics); - break; - } - case 26: { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - input.ReadMessage(HistoricalMetricsOptions); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - KeywordPlan = input.ReadString(); - break; - } - case 18: { - if (aggregateMetrics_ == null) { - AggregateMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetrics(); - } - input.ReadMessage(AggregateMetrics); - break; - } - case 26: { - if (historicalMetricsOptions_ == null) { - HistoricalMetricsOptions = new global::Google.Ads.GoogleAds.V12.Common.HistoricalMetricsOptions(); - } - input.ReadMessage(HistoricalMetricsOptions); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v12.services.KeywordPlanService.GenerateHistoricalMetrics]. - /// - public sealed partial class GenerateHistoricalMetricsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GenerateHistoricalMetricsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[20]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateHistoricalMetricsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateHistoricalMetricsResponse(GenerateHistoricalMetricsResponse other) : this() { - metrics_ = other.metrics_.Clone(); - aggregateMetricResults_ = other.aggregateMetricResults_ != null ? other.aggregateMetricResults_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public GenerateHistoricalMetricsResponse Clone() { - return new GenerateHistoricalMetricsResponse(this); - } - - /// Field number for the "metrics" field. - public const int MetricsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_metrics_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Services.KeywordPlanKeywordHistoricalMetrics.Parser); - private readonly pbc::RepeatedField metrics_ = new pbc::RepeatedField(); - /// - /// List of keyword historical metrics. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Metrics { - get { return metrics_; } - } - - /// Field number for the "aggregate_metric_results" field. - public const int AggregateMetricResultsFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults aggregateMetricResults_; - /// - /// The aggregate metrics for all the keywords in the keyword planner plan. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults AggregateMetricResults { - get { return aggregateMetricResults_; } - set { - aggregateMetricResults_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as GenerateHistoricalMetricsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(GenerateHistoricalMetricsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!metrics_.Equals(other.metrics_)) return false; - if (!object.Equals(AggregateMetricResults, other.AggregateMetricResults)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= metrics_.GetHashCode(); - if (aggregateMetricResults_ != null) hash ^= AggregateMetricResults.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - metrics_.WriteTo(output, _repeated_metrics_codec); - if (aggregateMetricResults_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AggregateMetricResults); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - metrics_.WriteTo(ref output, _repeated_metrics_codec); - if (aggregateMetricResults_ != null) { - output.WriteRawTag(18); - output.WriteMessage(AggregateMetricResults); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += metrics_.CalculateSize(_repeated_metrics_codec); - if (aggregateMetricResults_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AggregateMetricResults); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(GenerateHistoricalMetricsResponse other) { - if (other == null) { - return; - } - metrics_.Add(other.metrics_); - if (other.aggregateMetricResults_ != null) { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - AggregateMetricResults.MergeFrom(other.AggregateMetricResults); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - metrics_.AddEntriesFrom(input, _repeated_metrics_codec); - break; - } - case 18: { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - input.ReadMessage(AggregateMetricResults); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - metrics_.AddEntriesFrom(ref input, _repeated_metrics_codec); - break; - } - case 18: { - if (aggregateMetricResults_ == null) { - AggregateMetricResults = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanAggregateMetricResults(); - } - input.ReadMessage(AggregateMetricResults); - break; - } - } - } - } - #endif - - } - - /// - /// A keyword historical metrics. - /// - public sealed partial class KeywordPlanKeywordHistoricalMetrics : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordPlanKeywordHistoricalMetrics()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.MessageTypes[21]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordHistoricalMetrics() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordHistoricalMetrics(KeywordPlanKeywordHistoricalMetrics other) : this() { - searchQuery_ = other.searchQuery_; - closeVariants_ = other.closeVariants_.Clone(); - keywordMetrics_ = other.keywordMetrics_ != null ? other.keywordMetrics_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordPlanKeywordHistoricalMetrics Clone() { - return new KeywordPlanKeywordHistoricalMetrics(this); - } - - /// Field number for the "search_query" field. - public const int SearchQueryFieldNumber = 4; - private string searchQuery_; - /// - /// The text of the query associated with one or more ad_group_keywords in the - /// plan. - /// - /// Note that we de-dupe your keywords list, eliminating close variants before - /// returning the plan's keywords as text. For example, if your plan originally - /// contained the keywords 'car' and 'cars', the returned search query will - /// only contain 'cars'. - /// Starting V5, the list of de-duped queries will be included in - /// close_variants field. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string SearchQuery { - get { return searchQuery_ ?? ""; } - set { - searchQuery_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "search_query" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSearchQuery { - get { return searchQuery_ != null; } - } - /// Clears the value of the "search_query" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSearchQuery() { - searchQuery_ = null; - } - - /// Field number for the "close_variants" field. - public const int CloseVariantsFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_closeVariants_codec - = pb::FieldCodec.ForString(26); - private readonly pbc::RepeatedField closeVariants_ = new pbc::RepeatedField(); - /// - /// The list of close variant queries for search_query whose search results - /// are combined into the search_query. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField CloseVariants { - get { return closeVariants_; } - } - - /// Field number for the "keyword_metrics" field. - public const int KeywordMetricsFieldNumber = 2; - private global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics keywordMetrics_; - /// - /// The historical metrics for the query associated with one or more - /// ad_group_keywords in the plan. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics KeywordMetrics { - get { return keywordMetrics_; } - set { - keywordMetrics_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordPlanKeywordHistoricalMetrics); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordPlanKeywordHistoricalMetrics other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (SearchQuery != other.SearchQuery) return false; - if(!closeVariants_.Equals(other.closeVariants_)) return false; - if (!object.Equals(KeywordMetrics, other.KeywordMetrics)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (HasSearchQuery) hash ^= SearchQuery.GetHashCode(); - hash ^= closeVariants_.GetHashCode(); - if (keywordMetrics_ != null) hash ^= KeywordMetrics.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (keywordMetrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(KeywordMetrics); - } - closeVariants_.WriteTo(output, _repeated_closeVariants_codec); - if (HasSearchQuery) { - output.WriteRawTag(34); - output.WriteString(SearchQuery); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (keywordMetrics_ != null) { - output.WriteRawTag(18); - output.WriteMessage(KeywordMetrics); - } - closeVariants_.WriteTo(ref output, _repeated_closeVariants_codec); - if (HasSearchQuery) { - output.WriteRawTag(34); - output.WriteString(SearchQuery); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (HasSearchQuery) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(SearchQuery); - } - size += closeVariants_.CalculateSize(_repeated_closeVariants_codec); - if (keywordMetrics_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeywordMetrics); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordPlanKeywordHistoricalMetrics other) { - if (other == null) { - return; - } - if (other.HasSearchQuery) { - SearchQuery = other.SearchQuery; - } - closeVariants_.Add(other.closeVariants_); - if (other.keywordMetrics_ != null) { - if (keywordMetrics_ == null) { - KeywordMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - KeywordMetrics.MergeFrom(other.KeywordMetrics); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 18: { - if (keywordMetrics_ == null) { - KeywordMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - input.ReadMessage(KeywordMetrics); - break; - } - case 26: { - closeVariants_.AddEntriesFrom(input, _repeated_closeVariants_codec); - break; - } - case 34: { - SearchQuery = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 18: { - if (keywordMetrics_ == null) { - KeywordMetrics = new global::Google.Ads.GoogleAds.V12.Common.KeywordPlanHistoricalMetrics(); - } - input.ReadMessage(KeywordMetrics); - break; - } - case 26: { - closeVariants_.AddEntriesFrom(ref input, _repeated_closeVariants_codec); - break; - } - case 34: { - SearchQuery = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceClient.g.cs deleted file mode 100755 index 9dcd8dc26..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceClient.g.cs +++ /dev/null @@ -1,1657 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class KeywordPlanServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static KeywordPlanServiceSettings GetDefault() => new KeywordPlanServiceSettings(); - - /// Constructs a new object with default settings. - public KeywordPlanServiceSettings() - { - } - - private KeywordPlanServiceSettings(KeywordPlanServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - MutateKeywordPlansSettings = existing.MutateKeywordPlansSettings; - GenerateForecastCurveSettings = existing.GenerateForecastCurveSettings; - GenerateForecastTimeSeriesSettings = existing.GenerateForecastTimeSeriesSettings; - GenerateForecastMetricsSettings = existing.GenerateForecastMetricsSettings; - GenerateHistoricalMetricsSettings = existing.GenerateHistoricalMetricsSettings; - OnCopy(existing); - } - - partial void OnCopy(KeywordPlanServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanServiceClient.MutateKeywordPlans and KeywordPlanServiceClient.MutateKeywordPlansAsync - /// . - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings MutateKeywordPlansSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanServiceClient.GenerateForecastCurve and - /// KeywordPlanServiceClient.GenerateForecastCurveAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateForecastCurveSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanServiceClient.GenerateForecastTimeSeries and - /// KeywordPlanServiceClient.GenerateForecastTimeSeriesAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateForecastTimeSeriesSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanServiceClient.GenerateForecastMetrics and - /// KeywordPlanServiceClient.GenerateForecastMetricsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateForecastMetricsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// - /// for synchronous and asynchronous calls to - /// KeywordPlanServiceClient.GenerateHistoricalMetrics and - /// KeywordPlanServiceClient.GenerateHistoricalMetricsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings GenerateHistoricalMetricsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public KeywordPlanServiceSettings Clone() => new KeywordPlanServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of credentials, - /// endpoint etc. - /// - internal sealed partial class KeywordPlanServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public KeywordPlanServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public KeywordPlanServiceClientBuilder() : base(KeywordPlanServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref KeywordPlanServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override KeywordPlanServiceClient Build() - { - KeywordPlanServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private KeywordPlanServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return KeywordPlanServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return KeywordPlanServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => KeywordPlanServiceClient.ChannelPool; - } - - /// KeywordPlanService client wrapper, for convenient use. - /// - /// Service to manage keyword plans. - /// - public abstract partial class KeywordPlanServiceClient - { - /// - /// The default endpoint for the KeywordPlanService service, which is a host of "googleads.googleapis.com" and a - /// port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default KeywordPlanService scopes. - /// - /// The default KeywordPlanService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(KeywordPlanService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new KeywordPlanServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, endpoint and - /// settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static KeywordPlanServiceClient Create() => new KeywordPlanServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static KeywordPlanServiceClient Create(grpccore::CallInvoker callInvoker, KeywordPlanServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - KeywordPlanService.KeywordPlanServiceClient grpcClient = new KeywordPlanService.KeywordPlanServiceClient(callInvoker); - return new KeywordPlanServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC KeywordPlanService client - public virtual KeywordPlanService.KeywordPlanServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlansResponse MutateKeywordPlans(MutateKeywordPlansRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlansAsync(MutateKeywordPlansRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlansAsync(MutateKeywordPlansRequest request, st::CancellationToken cancellationToken) => - MutateKeywordPlansAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose keyword plans are being modified. - /// - /// - /// Required. The list of operations to perform on individual keyword plans. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual MutateKeywordPlansResponse MutateKeywordPlans(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlans(new MutateKeywordPlansRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose keyword plans are being modified. - /// - /// - /// Required. The list of operations to perform on individual keyword plans. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlansAsync(string customerId, scg::IEnumerable operations, gaxgrpc::CallSettings callSettings = null) => - MutateKeywordPlansAsync(new MutateKeywordPlansRequest - { - CustomerId = gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), - Operations = - { - gax::GaxPreconditions.CheckNotNull(operations, nameof(operations)), - }, - }, callSettings); - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// - /// Required. The ID of the customer whose keyword plans are being modified. - /// - /// - /// Required. The list of operations to perform on individual keyword plans. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task MutateKeywordPlansAsync(string customerId, scg::IEnumerable operations, st::CancellationToken cancellationToken) => - MutateKeywordPlansAsync(customerId, operations, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastCurveResponse GenerateForecastCurve(GenerateForecastCurveRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastCurveAsync(GenerateForecastCurveRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastCurveAsync(GenerateForecastCurveRequest request, st::CancellationToken cancellationToken) => - GenerateForecastCurveAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastCurveResponse GenerateForecastCurve(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastCurve(new GenerateForecastCurveRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastCurveAsync(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastCurveAsync(new GenerateForecastCurveRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastCurveAsync(string keywordPlan, st::CancellationToken cancellationToken) => - GenerateForecastCurveAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastCurveResponse GenerateForecastCurve(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastCurve(new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastCurveAsync(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastCurveAsync(new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastCurveAsync(gagvr::KeywordPlanName keywordPlan, st::CancellationToken cancellationToken) => - GenerateForecastCurveAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastTimeSeriesResponse GenerateForecastTimeSeries(GenerateForecastTimeSeriesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastTimeSeriesAsync(GenerateForecastTimeSeriesRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastTimeSeriesAsync(GenerateForecastTimeSeriesRequest request, st::CancellationToken cancellationToken) => - GenerateForecastTimeSeriesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastTimeSeriesResponse GenerateForecastTimeSeries(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastTimeSeries(new GenerateForecastTimeSeriesRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastTimeSeriesAsync(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastTimeSeriesAsync(new GenerateForecastTimeSeriesRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastTimeSeriesAsync(string keywordPlan, st::CancellationToken cancellationToken) => - GenerateForecastTimeSeriesAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastTimeSeriesResponse GenerateForecastTimeSeries(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastTimeSeries(new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastTimeSeriesAsync(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastTimeSeriesAsync(new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastTimeSeriesAsync(gagvr::KeywordPlanName keywordPlan, st::CancellationToken cancellationToken) => - GenerateForecastTimeSeriesAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastMetricsResponse GenerateForecastMetrics(GenerateForecastMetricsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastMetricsAsync(GenerateForecastMetricsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastMetricsAsync(GenerateForecastMetricsRequest request, st::CancellationToken cancellationToken) => - GenerateForecastMetricsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastMetricsResponse GenerateForecastMetrics(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastMetrics(new GenerateForecastMetricsRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastMetricsAsync(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastMetricsAsync(new GenerateForecastMetricsRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastMetricsAsync(string keywordPlan, st::CancellationToken cancellationToken) => - GenerateForecastMetricsAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateForecastMetricsResponse GenerateForecastMetrics(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastMetrics(new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastMetricsAsync(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateForecastMetricsAsync(new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan to be forecasted. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateForecastMetricsAsync(gagvr::KeywordPlanName keywordPlan, st::CancellationToken cancellationToken) => - GenerateForecastMetricsAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateHistoricalMetricsResponse GenerateHistoricalMetrics(GenerateHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateHistoricalMetricsAsync(GenerateHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateHistoricalMetricsAsync(GenerateHistoricalMetricsRequest request, st::CancellationToken cancellationToken) => - GenerateHistoricalMetricsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan of which historical metrics are - /// requested. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateHistoricalMetricsResponse GenerateHistoricalMetrics(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateHistoricalMetrics(new GenerateHistoricalMetricsRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan of which historical metrics are - /// requested. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateHistoricalMetricsAsync(string keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateHistoricalMetricsAsync(new GenerateHistoricalMetricsRequest - { - KeywordPlan = gax::GaxPreconditions.CheckNotNullOrEmpty(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan of which historical metrics are - /// requested. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateHistoricalMetricsAsync(string keywordPlan, st::CancellationToken cancellationToken) => - GenerateHistoricalMetricsAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan of which historical metrics are - /// requested. - /// - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual GenerateHistoricalMetricsResponse GenerateHistoricalMetrics(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateHistoricalMetrics(new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan of which historical metrics are - /// requested. - /// - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task GenerateHistoricalMetricsAsync(gagvr::KeywordPlanName keywordPlan, gaxgrpc::CallSettings callSettings = null) => - GenerateHistoricalMetricsAsync(new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gax::GaxPreconditions.CheckNotNull(keywordPlan, nameof(keywordPlan)), - }, callSettings); - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// - /// Required. The resource name of the keyword plan of which historical metrics are - /// requested. - /// - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task GenerateHistoricalMetricsAsync(gagvr::KeywordPlanName keywordPlan, st::CancellationToken cancellationToken) => - GenerateHistoricalMetricsAsync(keywordPlan, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// KeywordPlanService client wrapper implementation, for convenient use. - /// - /// Service to manage keyword plans. - /// - public sealed partial class KeywordPlanServiceClientImpl : KeywordPlanServiceClient - { - private readonly gaxgrpc::ApiCall _callMutateKeywordPlans; - - private readonly gaxgrpc::ApiCall _callGenerateForecastCurve; - - private readonly gaxgrpc::ApiCall _callGenerateForecastTimeSeries; - - private readonly gaxgrpc::ApiCall _callGenerateForecastMetrics; - - private readonly gaxgrpc::ApiCall _callGenerateHistoricalMetrics; - - /// - /// Constructs a client wrapper for the KeywordPlanService service, with the specified gRPC client and settings. - /// - /// The underlying gRPC client. - /// The base used within this client. - /// Optional to use within this client. - public KeywordPlanServiceClientImpl(KeywordPlanService.KeywordPlanServiceClient grpcClient, KeywordPlanServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - KeywordPlanServiceSettings effectiveSettings = settings ?? KeywordPlanServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callMutateKeywordPlans = clientHelper.BuildApiCall("MutateKeywordPlans", grpcClient.MutateKeywordPlansAsync, grpcClient.MutateKeywordPlans, effectiveSettings.MutateKeywordPlansSettings).WithGoogleRequestParam("customer_id", request => request.CustomerId); - Modify_ApiCall(ref _callMutateKeywordPlans); - Modify_MutateKeywordPlansApiCall(ref _callMutateKeywordPlans); - _callGenerateForecastCurve = clientHelper.BuildApiCall("GenerateForecastCurve", grpcClient.GenerateForecastCurveAsync, grpcClient.GenerateForecastCurve, effectiveSettings.GenerateForecastCurveSettings).WithGoogleRequestParam("keyword_plan", request => request.KeywordPlan); - Modify_ApiCall(ref _callGenerateForecastCurve); - Modify_GenerateForecastCurveApiCall(ref _callGenerateForecastCurve); - _callGenerateForecastTimeSeries = clientHelper.BuildApiCall("GenerateForecastTimeSeries", grpcClient.GenerateForecastTimeSeriesAsync, grpcClient.GenerateForecastTimeSeries, effectiveSettings.GenerateForecastTimeSeriesSettings).WithGoogleRequestParam("keyword_plan", request => request.KeywordPlan); - Modify_ApiCall(ref _callGenerateForecastTimeSeries); - Modify_GenerateForecastTimeSeriesApiCall(ref _callGenerateForecastTimeSeries); - _callGenerateForecastMetrics = clientHelper.BuildApiCall("GenerateForecastMetrics", grpcClient.GenerateForecastMetricsAsync, grpcClient.GenerateForecastMetrics, effectiveSettings.GenerateForecastMetricsSettings).WithGoogleRequestParam("keyword_plan", request => request.KeywordPlan); - Modify_ApiCall(ref _callGenerateForecastMetrics); - Modify_GenerateForecastMetricsApiCall(ref _callGenerateForecastMetrics); - _callGenerateHistoricalMetrics = clientHelper.BuildApiCall("GenerateHistoricalMetrics", grpcClient.GenerateHistoricalMetricsAsync, grpcClient.GenerateHistoricalMetrics, effectiveSettings.GenerateHistoricalMetricsSettings).WithGoogleRequestParam("keyword_plan", request => request.KeywordPlan); - Modify_ApiCall(ref _callGenerateHistoricalMetrics); - Modify_GenerateHistoricalMetricsApiCall(ref _callGenerateHistoricalMetrics); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_MutateKeywordPlansApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GenerateForecastCurveApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GenerateForecastTimeSeriesApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GenerateForecastMetricsApiCall(ref gaxgrpc::ApiCall call); - - partial void Modify_GenerateHistoricalMetricsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(KeywordPlanService.KeywordPlanServiceClient grpcClient, KeywordPlanServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC KeywordPlanService client - public override KeywordPlanService.KeywordPlanServiceClient GrpcClient { get; } - - partial void Modify_MutateKeywordPlansRequest(ref MutateKeywordPlansRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GenerateForecastCurveRequest(ref GenerateForecastCurveRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GenerateForecastTimeSeriesRequest(ref GenerateForecastTimeSeriesRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GenerateForecastMetricsRequest(ref GenerateForecastMetricsRequest request, ref gaxgrpc::CallSettings settings); - - partial void Modify_GenerateHistoricalMetricsRequest(ref GenerateHistoricalMetricsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override MutateKeywordPlansResponse MutateKeywordPlans(MutateKeywordPlansRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlansRequest(ref request, ref callSettings); - return _callMutateKeywordPlans.Sync(request, callSettings); - } - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task MutateKeywordPlansAsync(MutateKeywordPlansRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_MutateKeywordPlansRequest(ref request, ref callSettings); - return _callMutateKeywordPlans.Async(request, callSettings); - } - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateForecastCurveResponse GenerateForecastCurve(GenerateForecastCurveRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateForecastCurveRequest(ref request, ref callSettings); - return _callGenerateForecastCurve.Sync(request, callSettings); - } - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateForecastCurveAsync(GenerateForecastCurveRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateForecastCurveRequest(ref request, ref callSettings); - return _callGenerateForecastCurve.Async(request, callSettings); - } - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateForecastTimeSeriesResponse GenerateForecastTimeSeries(GenerateForecastTimeSeriesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateForecastTimeSeriesRequest(ref request, ref callSettings); - return _callGenerateForecastTimeSeries.Sync(request, callSettings); - } - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateForecastTimeSeriesAsync(GenerateForecastTimeSeriesRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateForecastTimeSeriesRequest(ref request, ref callSettings); - return _callGenerateForecastTimeSeries.Async(request, callSettings); - } - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateForecastMetricsResponse GenerateForecastMetrics(GenerateForecastMetricsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateForecastMetricsRequest(ref request, ref callSettings); - return _callGenerateForecastMetrics.Sync(request, callSettings); - } - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateForecastMetricsAsync(GenerateForecastMetricsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateForecastMetricsRequest(ref request, ref callSettings); - return _callGenerateForecastMetrics.Async(request, callSettings); - } - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override GenerateHistoricalMetricsResponse GenerateHistoricalMetrics(GenerateHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateHistoricalMetricsRequest(ref request, ref callSettings); - return _callGenerateHistoricalMetrics.Sync(request, callSettings); - } - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task GenerateHistoricalMetricsAsync(GenerateHistoricalMetricsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_GenerateHistoricalMetricsRequest(ref request, ref callSettings); - return _callGenerateHistoricalMetrics.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceGrpc.g.cs deleted file mode 100755 index b375636c8..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceGrpc.g.cs +++ /dev/null @@ -1,818 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_plan_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to manage keyword plans. - /// - public static partial class KeywordPlanService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.KeywordPlanService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlansRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlansResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateForecastCurveRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateForecastCurveResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateForecastTimeSeriesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateForecastTimeSeriesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateForecastMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateForecastMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsResponse.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateHistoricalMetricsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_GenerateHistoricalMetricsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_MutateKeywordPlans = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "MutateKeywordPlans", - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlansRequest, - __Marshaller_google_ads_googleads_v12_services_MutateKeywordPlansResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateForecastCurve = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateForecastCurve", - __Marshaller_google_ads_googleads_v12_services_GenerateForecastCurveRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateForecastCurveResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateForecastTimeSeries = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateForecastTimeSeries", - __Marshaller_google_ads_googleads_v12_services_GenerateForecastTimeSeriesRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateForecastTimeSeriesResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateForecastMetrics = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateForecastMetrics", - __Marshaller_google_ads_googleads_v12_services_GenerateForecastMetricsRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateForecastMetricsResponse); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_GenerateHistoricalMetrics = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "GenerateHistoricalMetrics", - __Marshaller_google_ads_googleads_v12_services_GenerateHistoricalMetricsRequest, - __Marshaller_google_ads_googleads_v12_services_GenerateHistoricalMetricsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordPlanServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of KeywordPlanService - [grpc::BindServiceMethod(typeof(KeywordPlanService), "BindService")] - public abstract partial class KeywordPlanServiceBase - { - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task MutateKeywordPlans(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateForecastCurve(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateForecastTimeSeries(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateForecastMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task GenerateHistoricalMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for KeywordPlanService - public partial class KeywordPlanServiceClient : grpc::ClientBase - { - /// Creates a new client for KeywordPlanService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for KeywordPlanService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordPlanServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordPlanServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResponse MutateKeywordPlans(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlans(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansResponse MutateKeywordPlans(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_MutateKeywordPlans, null, options, request); - } - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlansAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return MutateKeywordPlansAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Creates, updates, or removes keyword plans. Operation statuses are - /// returned. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [DatabaseError]() - /// [FieldError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [MutateError]() - /// [NewResourceCreationError]() - /// [QuotaError]() - /// [RequestError]() - /// [ResourceCountLimitExceededError]() - /// [StringLengthError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall MutateKeywordPlansAsync(global::Google.Ads.GoogleAds.V12.Services.MutateKeywordPlansRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_MutateKeywordPlans, null, options, request); - } - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveResponse GenerateForecastCurve(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateForecastCurve(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveResponse GenerateForecastCurve(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateForecastCurve, null, options, request); - } - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateForecastCurveAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateForecastCurveAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested Keyword Plan forecast curve. - /// Only the bidding strategy is considered for generating forecast curve. - /// The bidding strategy value specified in the plan is ignored. - /// - /// To generate a forecast at a value specified in the plan, use - /// KeywordPlanService.GenerateForecastMetrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateForecastCurveAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastCurveRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateForecastCurve, null, options, request); - } - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesResponse GenerateForecastTimeSeries(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateForecastTimeSeries(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesResponse GenerateForecastTimeSeries(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateForecastTimeSeries, null, options, request); - } - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateForecastTimeSeriesAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateForecastTimeSeriesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns a forecast in the form of a time series for the Keyword Plan over - /// the next 52 weeks. - /// (1) Forecasts closer to the current date are generally more accurate than - /// further out. - /// - /// (2) The forecast reflects seasonal trends using current and - /// prior traffic patterns. The forecast period of the plan is ignored. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateForecastTimeSeriesAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastTimeSeriesRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateForecastTimeSeries, null, options, request); - } - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsResponse GenerateForecastMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateForecastMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsResponse GenerateForecastMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateForecastMetrics, null, options, request); - } - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateForecastMetricsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateForecastMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested Keyword Plan forecasts. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateForecastMetricsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateForecastMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateForecastMetrics, null, options, request); - } - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsResponse GenerateHistoricalMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateHistoricalMetrics(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsResponse GenerateHistoricalMetrics(global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_GenerateHistoricalMetrics, null, options, request); - } - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateHistoricalMetricsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return GenerateHistoricalMetricsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns the requested Keyword Plan historical metrics. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [KeywordPlanError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall GenerateHistoricalMetricsAsync(global::Google.Ads.GoogleAds.V12.Services.GenerateHistoricalMetricsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_GenerateHistoricalMetrics, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override KeywordPlanServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new KeywordPlanServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(KeywordPlanServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_MutateKeywordPlans, serviceImpl.MutateKeywordPlans) - .AddMethod(__Method_GenerateForecastCurve, serviceImpl.GenerateForecastCurve) - .AddMethod(__Method_GenerateForecastTimeSeries, serviceImpl.GenerateForecastTimeSeries) - .AddMethod(__Method_GenerateForecastMetrics, serviceImpl.GenerateForecastMetrics) - .AddMethod(__Method_GenerateHistoricalMetrics, serviceImpl.GenerateHistoricalMetrics).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, KeywordPlanServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_MutateKeywordPlans, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.MutateKeywordPlans)); - serviceBinder.AddMethod(__Method_GenerateForecastCurve, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateForecastCurve)); - serviceBinder.AddMethod(__Method_GenerateForecastTimeSeries, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateForecastTimeSeries)); - serviceBinder.AddMethod(__Method_GenerateForecastMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateForecastMetrics)); - serviceBinder.AddMethod(__Method_GenerateHistoricalMetrics, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GenerateHistoricalMetrics)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceResourceNames.g.cs deleted file mode 100755 index 9eecb0163..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordPlanServiceResourceNames.g.cs +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; - -namespace Google.Ads.GoogleAds.V12.Services -{ - public partial class KeywordPlanOperation - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName RemoveAsKeywordPlanName - { - get => string.IsNullOrEmpty(Remove) ? null : gagvr::KeywordPlanName.Parse(Remove, allowUnparsed: true); - set => Remove = value?.ToString() ?? ""; - } - } - - public partial class MutateKeywordPlansResult - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName ResourceNameAsKeywordPlanName - { - get => string.IsNullOrEmpty(ResourceName) ? null : gagvr::KeywordPlanName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } - - public partial class GenerateForecastCurveRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName KeywordPlanAsKeywordPlanName - { - get => string.IsNullOrEmpty(KeywordPlan) ? null : gagvr::KeywordPlanName.Parse(KeywordPlan, allowUnparsed: true); - set => KeywordPlan = value?.ToString() ?? ""; - } - } - - public partial class GenerateForecastTimeSeriesRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName KeywordPlanAsKeywordPlanName - { - get => string.IsNullOrEmpty(KeywordPlan) ? null : gagvr::KeywordPlanName.Parse(KeywordPlan, allowUnparsed: true); - set => KeywordPlan = value?.ToString() ?? ""; - } - } - - public partial class GenerateForecastMetricsRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName KeywordPlanAsKeywordPlanName - { - get => string.IsNullOrEmpty(KeywordPlan) ? null : gagvr::KeywordPlanName.Parse(KeywordPlan, allowUnparsed: true); - set => KeywordPlan = value?.ToString() ?? ""; - } - } - - public partial class GenerateHistoricalMetricsRequest - { - /// - /// -typed view over the resource name property. - /// - internal gagvr::KeywordPlanName KeywordPlanAsKeywordPlanName - { - get => string.IsNullOrEmpty(KeywordPlan) ? null : gagvr::KeywordPlanName.Parse(KeywordPlan, allowUnparsed: true); - set => KeywordPlan = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstant.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordThemeConstant.g.cs deleted file mode 100755 index 79e25eb30..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstant.g.cs +++ /dev/null @@ -1,418 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/keyword_theme_constant.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/keyword_theme_constant.proto - public static partial class KeywordThemeConstantReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/keyword_theme_constant.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordThemeConstantReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRf", - "dGhlbWVfY29uc3RhbnQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5yZXNvdXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i9AIKFEtleXdvcmRUaGVtZUNv", - "bnN0YW50EkwKDXJlc291cmNlX25hbWUYASABKAlCNeBBA/pBLwotZ29vZ2xl", - "YWRzLmdvb2dsZWFwaXMuY29tL0tleXdvcmRUaGVtZUNvbnN0YW50Eh4KDGNv", - "dW50cnlfY29kZRgCIAEoCUID4EEDSACIAQESHwoNbGFuZ3VhZ2VfY29kZRgD", - "IAEoCUID4EEDSAGIAQESHgoMZGlzcGxheV9uYW1lGAQgASgJQgPgQQNIAogB", - "ATp56kF2Ci1nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vS2V5d29yZFRoZW1l", - "Q29uc3RhbnQSRWtleXdvcmRUaGVtZUNvbnN0YW50cy97ZXhwcmVzc19jYXRl", - "Z29yeV9pZH1+e2V4cHJlc3Nfc3ViX2NhdGVnb3J5X2lkfUIPCg1fY291bnRy", - "eV9jb2RlQhAKDl9sYW5ndWFnZV9jb2RlQg8KDV9kaXNwbGF5X25hbWVCiwIK", - "JmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzQhlLZXl3", - "b3JkVGhlbWVDb25zdGFudFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2Vz", - "O3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5S", - "ZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz", - "6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant), global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant.Parser, new[]{ "ResourceName", "CountryCode", "LanguageCode", "DisplayName" }, new[]{ "CountryCode", "LanguageCode", "DisplayName" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A Smart Campaign keyword theme constant. - /// - public sealed partial class KeywordThemeConstant : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordThemeConstant()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstantReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordThemeConstant() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordThemeConstant(KeywordThemeConstant other) : this() { - resourceName_ = other.resourceName_; - countryCode_ = other.countryCode_; - languageCode_ = other.languageCode_; - displayName_ = other.displayName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordThemeConstant Clone() { - return new KeywordThemeConstant(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the keyword theme constant. - /// Keyword theme constant resource names have the form: - /// - /// `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 2; - private string countryCode_; - /// - /// Output only. The ISO-3166 Alpha-2 country code of the constant, eg. "US". - /// To display and query matching purpose, the keyword theme needs to be - /// localized. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "country_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } - } - /// Clears the value of the "country_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 3; - private string languageCode_; - /// - /// Output only. The ISO-639-1 language code with 2 letters of the constant, eg. "en". - /// To display and query matching purpose, the keyword theme needs to be - /// localized. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_ ?? ""; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "language_code" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLanguageCode { - get { return languageCode_ != null; } - } - /// Clears the value of the "language_code" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLanguageCode() { - languageCode_ = null; - } - - /// Field number for the "display_name" field. - public const int DisplayNameFieldNumber = 4; - private string displayName_; - /// - /// Output only. The display name of the keyword theme or sub keyword theme. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DisplayName { - get { return displayName_ ?? ""; } - set { - displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "display_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDisplayName { - get { return displayName_ != null; } - } - /// Clears the value of the "display_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDisplayName() { - displayName_ = null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordThemeConstant); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordThemeConstant other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - if (CountryCode != other.CountryCode) return false; - if (LanguageCode != other.LanguageCode) return false; - if (DisplayName != other.DisplayName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); - if (HasLanguageCode) hash ^= LanguageCode.GetHashCode(); - if (HasDisplayName) hash ^= DisplayName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCountryCode) { - output.WriteRawTag(18); - output.WriteString(CountryCode); - } - if (HasLanguageCode) { - output.WriteRawTag(26); - output.WriteString(LanguageCode); - } - if (HasDisplayName) { - output.WriteRawTag(34); - output.WriteString(DisplayName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (HasCountryCode) { - output.WriteRawTag(18); - output.WriteString(CountryCode); - } - if (HasLanguageCode) { - output.WriteRawTag(26); - output.WriteString(LanguageCode); - } - if (HasDisplayName) { - output.WriteRawTag(34); - output.WriteString(DisplayName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (HasLanguageCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (HasDisplayName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordThemeConstant other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; - } - if (other.HasLanguageCode) { - LanguageCode = other.LanguageCode; - } - if (other.HasDisplayName) { - DisplayName = other.DisplayName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CountryCode = input.ReadString(); - break; - } - case 26: { - LanguageCode = input.ReadString(); - break; - } - case 34: { - DisplayName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - case 18: { - CountryCode = input.ReadString(); - break; - } - case 26: { - LanguageCode = input.ReadString(); - break; - } - case 34: { - DisplayName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantResourceNames.g.cs deleted file mode 100755 index 274ae4102..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantResourceNames.g.cs +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the KeywordThemeConstant resource. - public sealed partial class KeywordThemeConstantName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern keywordThemeConstants/{express_category_id}~{express_sub_category_id} - /// . - /// - ExpressCategoryExpressSubCategory = 1, - } - - private static gax::PathTemplate s_expressCategoryExpressSubCategory = new gax::PathTemplate("keywordThemeConstants/{express_category_id_express_sub_category_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static KeywordThemeConstantName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new KeywordThemeConstantName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id}. - /// - /// The ExpressCategory ID. Must not be null or empty. - /// - /// The ExpressSubCategory ID. Must not be null or empty. - /// - /// - /// A new instance of constructed from the provided ids. - /// - public static KeywordThemeConstantName FromExpressCategoryExpressSubCategory(string expressCategoryId, string expressSubCategoryId) => - new KeywordThemeConstantName(ResourceNameType.ExpressCategoryExpressSubCategory, expressCategoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(expressCategoryId, nameof(expressCategoryId)), expressSubCategoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(expressSubCategoryId, nameof(expressSubCategoryId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id}. - /// - /// The ExpressCategory ID. Must not be null or empty. - /// - /// The ExpressSubCategory ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id}. - /// - public static string Format(string expressCategoryId, string expressSubCategoryId) => - FormatExpressCategoryExpressSubCategory(expressCategoryId, expressSubCategoryId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id}. - /// - /// The ExpressCategory ID. Must not be null or empty. - /// - /// The ExpressSubCategory ID. Must not be null or empty. - /// - /// - /// The string representation of this with pattern - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id}. - /// - public static string FormatExpressCategoryExpressSubCategory(string expressCategoryId, string expressSubCategoryId) => - s_expressCategoryExpressSubCategory.Expand($"{(gax::GaxPreconditions.CheckNotNullOrEmpty(expressCategoryId, nameof(expressCategoryId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(expressSubCategoryId, nameof(expressSubCategoryId)))}"); - - /// - /// Parses the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static KeywordThemeConstantName Parse(string keywordThemeConstantName) => - Parse(keywordThemeConstantName, false); - - /// - /// Parses the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static KeywordThemeConstantName Parse(string keywordThemeConstantName, bool allowUnparsed) => - TryParse(keywordThemeConstantName, allowUnparsed, out KeywordThemeConstantName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordThemeConstantName, out KeywordThemeConstantName result) => - TryParse(keywordThemeConstantName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; - /// optionally allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// keywordThemeConstants/{express_category_id}~{express_sub_category_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing - /// failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordThemeConstantName, bool allowUnparsed, out KeywordThemeConstantName result) - { - gax::GaxPreconditions.CheckNotNull(keywordThemeConstantName, nameof(keywordThemeConstantName)); - gax::TemplatedResourceName resourceName; - if (s_expressCategoryExpressSubCategory.TryParseName(keywordThemeConstantName, out resourceName)) - { - string[] split0 = ParseSplitHelper(resourceName[0], new char[] { '~', }); - if (split0 == null) - { - result = null; - return false; - } - result = FromExpressCategoryExpressSubCategory(split0[0], split0[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(keywordThemeConstantName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private KeywordThemeConstantName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string expressCategoryId = null, string expressSubCategoryId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - ExpressCategoryId = expressCategoryId; - ExpressSubCategoryId = expressSubCategoryId; - } - - /// - /// Constructs a new instance of a class from the component parts of - /// pattern keywordThemeConstants/{express_category_id}~{express_sub_category_id} - /// - /// The ExpressCategory ID. Must not be null or empty. - /// - /// The ExpressSubCategory ID. Must not be null or empty. - /// - public KeywordThemeConstantName(string expressCategoryId, string expressSubCategoryId) : this(ResourceNameType.ExpressCategoryExpressSubCategory, expressCategoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(expressCategoryId, nameof(expressCategoryId)), expressSubCategoryId: gax::GaxPreconditions.CheckNotNullOrEmpty(expressSubCategoryId, nameof(expressSubCategoryId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The ExpressCategory ID. Will not be null, unless this instance contains an unparsed resource - /// name. - /// - public string ExpressCategoryId { get; } - - /// - /// The ExpressSubCategory ID. Will not be null, unless this instance contains an unparsed - /// resource name. - /// - public string ExpressSubCategoryId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.ExpressCategoryExpressSubCategory: return s_expressCategoryExpressSubCategory.Expand($"{ExpressCategoryId}~{ExpressSubCategoryId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as KeywordThemeConstantName); - - /// - public bool Equals(KeywordThemeConstantName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(KeywordThemeConstantName a, KeywordThemeConstantName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(KeywordThemeConstantName a, KeywordThemeConstantName b) => !(a == b); - } - - public partial class KeywordThemeConstant - { - /// - /// -typed view over the resource name - /// property. - /// - internal KeywordThemeConstantName ResourceNameAsKeywordThemeConstantName - { - get => string.IsNullOrEmpty(ResourceName) ? null : KeywordThemeConstantName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantService.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantService.g.cs deleted file mode 100755 index e24a7d2e0..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantService.g.cs +++ /dev/null @@ -1,530 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_theme_constant_service.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Services { - - /// Holder for reflection information generated from google/ads/googleads/v12/services/keyword_theme_constant_service.proto - public static partial class KeywordThemeConstantServiceReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/services/keyword_theme_constant_service.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordThemeConstantServiceReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXMva2V5d29yZF90", - "aGVtZV9jb25zdGFudF9zZXJ2aWNlLnByb3RvEiFnb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTIuc2VydmljZXMaP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9y", - "ZXNvdXJjZXMva2V5d29yZF90aGVtZV9jb25zdGFudC5wcm90bxocZ29vZ2xl", - "L2FwaS9hbm5vdGF0aW9ucy5wcm90bxoXZ29vZ2xlL2FwaS9jbGllbnQucHJv", - "dG8iZgojU3VnZ2VzdEtleXdvcmRUaGVtZUNvbnN0YW50c1JlcXVlc3QSEgoK", - "cXVlcnlfdGV4dBgBIAEoCRIUCgxjb3VudHJ5X2NvZGUYAiABKAkSFQoNbGFu", - "Z3VhZ2VfY29kZRgDIAEoCSKBAQokU3VnZ2VzdEtleXdvcmRUaGVtZUNvbnN0", - "YW50c1Jlc3BvbnNlElkKF2tleXdvcmRfdGhlbWVfY29uc3RhbnRzGAEgAygL", - "MjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNlcy5LZXl3b3Jk", - "VGhlbWVDb25zdGFudDLFAgobS2V5d29yZFRoZW1lQ29uc3RhbnRTZXJ2aWNl", - "Et4BChxTdWdnZXN0S2V5d29yZFRoZW1lQ29uc3RhbnRzEkYuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjEyLnNlcnZpY2VzLlN1Z2dlc3RLZXl3b3JkVGhlbWVD", - "b25zdGFudHNSZXF1ZXN0GkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnNl", - "cnZpY2VzLlN1Z2dlc3RLZXl3b3JkVGhlbWVDb25zdGFudHNSZXNwb25zZSIt", - "gtPkkwInIiIvdjEyL2tleXdvcmRUaGVtZUNvbnN0YW50czpzdWdnZXN0OgEq", - "GkXKQRhnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5n", - "b29nbGVhcGlzLmNvbS9hdXRoL2Fkd29yZHNCjAIKJWNvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuc2VydmljZXNCIEtleXdvcmRUaGVtZUNvbnN0YW50", - "U2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dv", - "b2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvc2VydmljZXM7c2VydmljZXOi", - "AgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTIuU2VydmljZXPKAiFH", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcU2VydmljZXPqAiVHb29nbGU6OkFk", - "czo6R29vZ2xlQWRzOjpWMTI6OlNlcnZpY2VzYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstantReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest), global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest.Parser, new[]{ "QueryText", "CountryCode", "LanguageCode" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsResponse), global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsResponse.Parser, new[]{ "KeywordThemeConstants" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// Request message for - /// [KeywordThemeConstantService.SuggestKeywordThemeConstants][google.ads.googleads.v12.services.KeywordThemeConstantService.SuggestKeywordThemeConstants]. - /// - public sealed partial class SuggestKeywordThemeConstantsRequest : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestKeywordThemeConstantsRequest()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordThemeConstantServiceReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestKeywordThemeConstantsRequest() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestKeywordThemeConstantsRequest(SuggestKeywordThemeConstantsRequest other) : this() { - queryText_ = other.queryText_; - countryCode_ = other.countryCode_; - languageCode_ = other.languageCode_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestKeywordThemeConstantsRequest Clone() { - return new SuggestKeywordThemeConstantsRequest(this); - } - - /// Field number for the "query_text" field. - public const int QueryTextFieldNumber = 1; - private string queryText_ = ""; - /// - /// The query text of a keyword theme that will be used to map to similar - /// keyword themes. For example, "plumber" or "roofer". - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string QueryText { - get { return queryText_; } - set { - queryText_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 2; - private string countryCode_ = ""; - /// - /// Upper-case, two-letter country code as defined by ISO-3166. This for - /// refining the scope of the query, default to 'US' if not set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_; } - set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "language_code" field. - public const int LanguageCodeFieldNumber = 3; - private string languageCode_ = ""; - /// - /// The two letter language code for get corresponding keyword theme for - /// refining the scope of the query, default to 'en' if not set. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string LanguageCode { - get { return languageCode_; } - set { - languageCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuggestKeywordThemeConstantsRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuggestKeywordThemeConstantsRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (QueryText != other.QueryText) return false; - if (CountryCode != other.CountryCode) return false; - if (LanguageCode != other.LanguageCode) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (QueryText.Length != 0) hash ^= QueryText.GetHashCode(); - if (CountryCode.Length != 0) hash ^= CountryCode.GetHashCode(); - if (LanguageCode.Length != 0) hash ^= LanguageCode.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (QueryText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(QueryText); - } - if (CountryCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CountryCode); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (QueryText.Length != 0) { - output.WriteRawTag(10); - output.WriteString(QueryText); - } - if (CountryCode.Length != 0) { - output.WriteRawTag(18); - output.WriteString(CountryCode); - } - if (LanguageCode.Length != 0) { - output.WriteRawTag(26); - output.WriteString(LanguageCode); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (QueryText.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(QueryText); - } - if (CountryCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); - } - if (LanguageCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(LanguageCode); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuggestKeywordThemeConstantsRequest other) { - if (other == null) { - return; - } - if (other.QueryText.Length != 0) { - QueryText = other.QueryText; - } - if (other.CountryCode.Length != 0) { - CountryCode = other.CountryCode; - } - if (other.LanguageCode.Length != 0) { - LanguageCode = other.LanguageCode; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - QueryText = input.ReadString(); - break; - } - case 18: { - CountryCode = input.ReadString(); - break; - } - case 26: { - LanguageCode = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - QueryText = input.ReadString(); - break; - } - case 18: { - CountryCode = input.ReadString(); - break; - } - case 26: { - LanguageCode = input.ReadString(); - break; - } - } - } - } - #endif - - } - - /// - /// Response message for - /// [KeywordThemeConstantService.SuggestKeywordThemeConstants][google.ads.googleads.v12.services.KeywordThemeConstantService.SuggestKeywordThemeConstants]. - /// - public sealed partial class SuggestKeywordThemeConstantsResponse : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SuggestKeywordThemeConstantsResponse()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordThemeConstantServiceReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestKeywordThemeConstantsResponse() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestKeywordThemeConstantsResponse(SuggestKeywordThemeConstantsResponse other) : this() { - keywordThemeConstants_ = other.keywordThemeConstants_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SuggestKeywordThemeConstantsResponse Clone() { - return new SuggestKeywordThemeConstantsResponse(this); - } - - /// Field number for the "keyword_theme_constants" field. - public const int KeywordThemeConstantsFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_keywordThemeConstants_codec - = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V12.Resources.KeywordThemeConstant.Parser); - private readonly pbc::RepeatedField keywordThemeConstants_ = new pbc::RepeatedField(); - /// - /// Smart Campaign keyword theme suggestions. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField KeywordThemeConstants { - get { return keywordThemeConstants_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as SuggestKeywordThemeConstantsResponse); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SuggestKeywordThemeConstantsResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!keywordThemeConstants_.Equals(other.keywordThemeConstants_)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - hash ^= keywordThemeConstants_.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - keywordThemeConstants_.WriteTo(output, _repeated_keywordThemeConstants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - keywordThemeConstants_.WriteTo(ref output, _repeated_keywordThemeConstants_codec); - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - size += keywordThemeConstants_.CalculateSize(_repeated_keywordThemeConstants_codec); - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SuggestKeywordThemeConstantsResponse other) { - if (other == null) { - return; - } - keywordThemeConstants_.Add(other.keywordThemeConstants_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - keywordThemeConstants_.AddEntriesFrom(input, _repeated_keywordThemeConstants_codec); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - keywordThemeConstants_.AddEntriesFrom(ref input, _repeated_keywordThemeConstants_codec); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantServiceClient.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantServiceClient.g.cs deleted file mode 100755 index fbc601e77..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantServiceClient.g.cs +++ /dev/null @@ -1,350 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using gaxgrpc = Google.Api.Gax.Grpc; -using proto = Google.Protobuf; -using grpccore = Grpc.Core; -using grpcinter = Grpc.Core.Interceptors; -using mel = Microsoft.Extensions.Logging; -using sys = System; -using scg = System.Collections.Generic; -using sco = System.Collections.ObjectModel; -using st = System.Threading; -using stt = System.Threading.Tasks; - -namespace Google.Ads.GoogleAds.V12.Services -{ - /// Settings for instances. - public sealed partial class KeywordThemeConstantServiceSettings : gaxgrpc::ServiceSettingsBase - { - /// Get a new instance of the default . - /// A new instance of the default . - public static KeywordThemeConstantServiceSettings GetDefault() => new KeywordThemeConstantServiceSettings(); - - /// - /// Constructs a new object with default settings. - /// - public KeywordThemeConstantServiceSettings() - { - } - - private KeywordThemeConstantServiceSettings(KeywordThemeConstantServiceSettings existing) : base(existing) - { - gax::GaxPreconditions.CheckNotNull(existing, nameof(existing)); - SuggestKeywordThemeConstantsSettings = existing.SuggestKeywordThemeConstantsSettings; - OnCopy(existing); - } - - partial void OnCopy(KeywordThemeConstantServiceSettings existing); - - /// - /// for synchronous and asynchronous calls to - /// KeywordThemeConstantServiceClient.SuggestKeywordThemeConstants and - /// KeywordThemeConstantServiceClient.SuggestKeywordThemeConstantsAsync. - /// - /// - /// - /// Initial retry delay: 5000 milliseconds. - /// Retry delay multiplier: 1.3 - /// Retry maximum delay: 60000 milliseconds. - /// Maximum attempts: Unlimited - /// - /// - /// Retriable status codes: , - /// . - /// - /// - /// Timeout: 14400 seconds. - /// - /// - public gaxgrpc::CallSettings SuggestKeywordThemeConstantsSettings { get; set; } = gaxgrpc::CallSettingsExtensions.WithRetry(gaxgrpc::CallSettings.FromExpiration(gax::Expiration.FromTimeout(sys::TimeSpan.FromMilliseconds(14400000))), gaxgrpc::RetrySettings.FromExponentialBackoff(maxAttempts: 2147483647, initialBackoff: sys::TimeSpan.FromMilliseconds(5000), maxBackoff: sys::TimeSpan.FromMilliseconds(60000), backoffMultiplier: 1.3, retryFilter: gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.Unavailable, grpccore::StatusCode.DeadlineExceeded))); - - /// Creates a deep clone of this object, with all the same property values. - /// A deep clone of this object. - public KeywordThemeConstantServiceSettings Clone() => new KeywordThemeConstantServiceSettings(this); - } - - /// - /// Builder class for to provide simple configuration of - /// credentials, endpoint etc. - /// - internal sealed partial class KeywordThemeConstantServiceClientBuilder : gaxgrpc::ClientBuilderBase - { - /// The settings to use for RPCs, or null for the default settings. - public KeywordThemeConstantServiceSettings Settings { get; set; } - - /// Creates a new builder with default settings. - public KeywordThemeConstantServiceClientBuilder() : base(KeywordThemeConstantServiceClient.ServiceMetadata) - { - } - - partial void InterceptBuild(ref KeywordThemeConstantServiceClient client); - - partial void InterceptBuildAsync(st::CancellationToken cancellationToken, ref stt::Task task); - - /// Builds the resulting client. - public override KeywordThemeConstantServiceClient Build() - { - KeywordThemeConstantServiceClient client = null; - InterceptBuild(ref client); - return client ?? BuildImpl(); - } - - /// Builds the resulting client asynchronously. - public override stt::Task BuildAsync(st::CancellationToken cancellationToken = default) - { - stt::Task task = null; - InterceptBuildAsync(cancellationToken, ref task); - return task ?? BuildAsyncImpl(cancellationToken); - } - - private KeywordThemeConstantServiceClient BuildImpl() - { - Validate(); - grpccore::CallInvoker callInvoker = CreateCallInvoker(); - return KeywordThemeConstantServiceClient.Create(callInvoker, Settings, Logger); - } - - private async stt::Task BuildAsyncImpl(st::CancellationToken cancellationToken) - { - Validate(); - grpccore::CallInvoker callInvoker = await CreateCallInvokerAsync(cancellationToken).ConfigureAwait(false); - return KeywordThemeConstantServiceClient.Create(callInvoker, Settings, Logger); - } - - /// Returns the channel pool to use when no other options are specified. - protected override gaxgrpc::ChannelPool GetChannelPool() => KeywordThemeConstantServiceClient.ChannelPool; - } - - /// KeywordThemeConstantService client wrapper, for convenient use. - /// - /// Service to fetch Smart Campaign keyword themes. - /// - public abstract partial class KeywordThemeConstantServiceClient - { - /// - /// The default endpoint for the KeywordThemeConstantService service, which is a host of - /// "googleads.googleapis.com" and a port of 443. - /// - public static string DefaultEndpoint { get; } = "googleads.googleapis.com:443"; - - /// The default KeywordThemeConstantService scopes. - /// - /// The default KeywordThemeConstantService scopes are: - /// https://www.googleapis.com/auth/adwords - /// - public static scg::IReadOnlyList DefaultScopes { get; } = new sco::ReadOnlyCollection(new string[] - { - "https://www.googleapis.com/auth/adwords", - }); - - /// The service metadata associated with this client type. - public static gaxgrpc::ServiceMetadata ServiceMetadata { get; } = new gaxgrpc::ServiceMetadata(KeywordThemeConstantService.Descriptor, DefaultEndpoint, DefaultScopes, true, gax::ApiTransports.Grpc, PackageApiMetadata.ApiMetadata); - - internal static gaxgrpc::ChannelPool ChannelPool { get; } = new gaxgrpc::ChannelPool(ServiceMetadata); - - /// - /// Asynchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// - /// The to use while creating the client. - /// - /// The task representing the created . - public static stt::Task CreateAsync(st::CancellationToken cancellationToken = default) => - new KeywordThemeConstantServiceClientBuilder().BuildAsync(cancellationToken); - - /// - /// Synchronously creates a using the default credentials, - /// endpoint and settings. To specify custom credentials or other settings, use - /// . - /// - /// The created . - public static KeywordThemeConstantServiceClient Create() => new KeywordThemeConstantServiceClientBuilder().Build(); - - /// - /// Creates a which uses the specified call invoker for remote - /// operations. - /// - /// - /// The for remote operations. Must not be null. - /// - /// Optional . - /// Optional . - /// The created . - internal static KeywordThemeConstantServiceClient Create(grpccore::CallInvoker callInvoker, KeywordThemeConstantServiceSettings settings = null, mel::ILogger logger = null) - { - gax::GaxPreconditions.CheckNotNull(callInvoker, nameof(callInvoker)); - grpcinter::Interceptor interceptor = settings?.Interceptor; - if (interceptor != null) - { - callInvoker = grpcinter::CallInvokerExtensions.Intercept(callInvoker, interceptor); - } - KeywordThemeConstantService.KeywordThemeConstantServiceClient grpcClient = new KeywordThemeConstantService.KeywordThemeConstantServiceClient(callInvoker); - return new KeywordThemeConstantServiceClientImpl(grpcClient, settings, logger); - } - - /// - /// Shuts down any channels automatically created by and - /// . Channels which weren't automatically created are not - /// affected. - /// - /// - /// After calling this method, further calls to and - /// will create new channels, which could in turn be shut down - /// by another call to this method. - /// - /// A task representing the asynchronous shutdown operation. - public static stt::Task ShutdownDefaultChannelsAsync() => ChannelPool.ShutdownChannelsAsync(); - - /// The underlying gRPC KeywordThemeConstantService client - public virtual KeywordThemeConstantService.KeywordThemeConstantServiceClient GrpcClient => throw new sys::NotImplementedException(); - - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public virtual SuggestKeywordThemeConstantsResponse SuggestKeywordThemeConstants(SuggestKeywordThemeConstantsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public virtual stt::Task SuggestKeywordThemeConstantsAsync(SuggestKeywordThemeConstantsRequest request, gaxgrpc::CallSettings callSettings = null) => - throw new sys::NotImplementedException(); - - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// A to use for this RPC. - /// A Task containing the RPC response. - public virtual stt::Task SuggestKeywordThemeConstantsAsync(SuggestKeywordThemeConstantsRequest request, st::CancellationToken cancellationToken) => - SuggestKeywordThemeConstantsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken)); - } - - /// KeywordThemeConstantService client wrapper implementation, for convenient use. - /// - /// Service to fetch Smart Campaign keyword themes. - /// - public sealed partial class KeywordThemeConstantServiceClientImpl : KeywordThemeConstantServiceClient - { - private readonly gaxgrpc::ApiCall _callSuggestKeywordThemeConstants; - - /// - /// Constructs a client wrapper for the KeywordThemeConstantService service, with the specified gRPC client and - /// settings. - /// - /// The underlying gRPC client. - /// - /// The base used within this client. - /// - /// Optional to use within this client. - public KeywordThemeConstantServiceClientImpl(KeywordThemeConstantService.KeywordThemeConstantServiceClient grpcClient, KeywordThemeConstantServiceSettings settings, mel::ILogger logger) - { - GrpcClient = grpcClient; - KeywordThemeConstantServiceSettings effectiveSettings = settings ?? KeywordThemeConstantServiceSettings.GetDefault(); - gaxgrpc::ClientHelper clientHelper = new gaxgrpc::ClientHelper(effectiveSettings, logger); - _callSuggestKeywordThemeConstants = clientHelper.BuildApiCall("SuggestKeywordThemeConstants", grpcClient.SuggestKeywordThemeConstantsAsync, grpcClient.SuggestKeywordThemeConstants, effectiveSettings.SuggestKeywordThemeConstantsSettings); - Modify_ApiCall(ref _callSuggestKeywordThemeConstants); - Modify_SuggestKeywordThemeConstantsApiCall(ref _callSuggestKeywordThemeConstants); - OnConstruction(grpcClient, effectiveSettings, clientHelper); - } - - partial void Modify_ApiCall(ref gaxgrpc::ApiCall call) where TRequest : class, proto::IMessage where TResponse : class, proto::IMessage; - - partial void Modify_SuggestKeywordThemeConstantsApiCall(ref gaxgrpc::ApiCall call); - - partial void OnConstruction(KeywordThemeConstantService.KeywordThemeConstantServiceClient grpcClient, KeywordThemeConstantServiceSettings effectiveSettings, gaxgrpc::ClientHelper clientHelper); - - /// The underlying gRPC KeywordThemeConstantService client - public override KeywordThemeConstantService.KeywordThemeConstantServiceClient GrpcClient { get; } - - partial void Modify_SuggestKeywordThemeConstantsRequest(ref SuggestKeywordThemeConstantsRequest request, ref gaxgrpc::CallSettings settings); - - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// The RPC response. - public override SuggestKeywordThemeConstantsResponse SuggestKeywordThemeConstants(SuggestKeywordThemeConstantsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SuggestKeywordThemeConstantsRequest(ref request, ref callSettings); - return _callSuggestKeywordThemeConstants.Sync(request, callSettings); - } - - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request object containing all of the parameters for the API call. - /// If not null, applies overrides to this RPC call. - /// A Task containing the RPC response. - public override stt::Task SuggestKeywordThemeConstantsAsync(SuggestKeywordThemeConstantsRequest request, gaxgrpc::CallSettings callSettings = null) - { - Modify_SuggestKeywordThemeConstantsRequest(ref request, ref callSettings); - return _callSuggestKeywordThemeConstants.Async(request, callSettings); - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantServiceGrpc.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantServiceGrpc.g.cs deleted file mode 100755 index 46c61d17b..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordThemeConstantServiceGrpc.g.cs +++ /dev/null @@ -1,247 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/services/keyword_theme_constant_service.proto -// -// Original file comments: -// Copyright 2022 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 -// -// http://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. -// -#pragma warning disable 0414, 1591, 8981 -#region Designer generated code - -using grpc = global::Grpc.Core; - -namespace Google.Ads.GoogleAds.V12.Services { - /// - /// Service to fetch Smart Campaign keyword themes. - /// - public static partial class KeywordThemeConstantService - { - static readonly string __ServiceName = "google.ads.googleads.v12.services.KeywordThemeConstantService"; - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (message is global::Google.Protobuf.IBufferMessage) - { - context.SetPayloadLength(message.CalculateSize()); - global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); - context.Complete(); - return; - } - #endif - context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static class __Helper_MessageCache - { - public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage - { - #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION - if (__Helper_MessageCache.IsBufferMessage) - { - return parser.ParseFrom(context.PayloadAsReadOnlySequence()); - } - #endif - return parser.ParseFrom(context.PayloadAsNewBuffer()); - } - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SuggestKeywordThemeConstantsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest.Parser)); - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Marshaller __Marshaller_google_ads_googleads_v12_services_SuggestKeywordThemeConstantsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsResponse.Parser)); - - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - static readonly grpc::Method __Method_SuggestKeywordThemeConstants = new grpc::Method( - grpc::MethodType.Unary, - __ServiceName, - "SuggestKeywordThemeConstants", - __Marshaller_google_ads_googleads_v12_services_SuggestKeywordThemeConstantsRequest, - __Marshaller_google_ads_googleads_v12_services_SuggestKeywordThemeConstantsResponse); - - /// Service descriptor - public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor - { - get { return global::Google.Ads.GoogleAds.V12.Services.KeywordThemeConstantServiceReflection.Descriptor.Services[0]; } - } - - /// Base class for server-side implementations of KeywordThemeConstantService - [grpc::BindServiceMethod(typeof(KeywordThemeConstantService), "BindService")] - public abstract partial class KeywordThemeConstantServiceBase - { - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request received from the client. - /// The context of the server-side call handler being invoked. - /// The response to send back to the client (wrapped by a task). - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::System.Threading.Tasks.Task SuggestKeywordThemeConstants(global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest request, grpc::ServerCallContext context) - { - throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); - } - - } - - /// Client for KeywordThemeConstantService - public partial class KeywordThemeConstantServiceClient : grpc::ClientBase - { - /// Creates a new client for KeywordThemeConstantService - /// The channel to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordThemeConstantServiceClient(grpc::ChannelBase channel) : base(channel) - { - } - /// Creates a new client for KeywordThemeConstantService that uses a custom CallInvoker. - /// The callInvoker to use to make remote calls. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public KeywordThemeConstantServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) - { - } - /// Protected parameterless constructor to allow creation of test doubles. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordThemeConstantServiceClient() : base() - { - } - /// Protected constructor to allow creation of configured clients. - /// The client configuration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected KeywordThemeConstantServiceClient(ClientBaseConfiguration configuration) : base(configuration) - { - } - - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsResponse SuggestKeywordThemeConstants(global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SuggestKeywordThemeConstants(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The response received from the server. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsResponse SuggestKeywordThemeConstants(global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest request, grpc::CallOptions options) - { - return CallInvoker.BlockingUnaryCall(__Method_SuggestKeywordThemeConstants, null, options, request); - } - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The initial metadata to send with the call. This parameter is optional. - /// An optional deadline for the call. The call will be cancelled if deadline is hit. - /// An optional token for canceling the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SuggestKeywordThemeConstantsAsync(global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) - { - return SuggestKeywordThemeConstantsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); - } - /// - /// Returns KeywordThemeConstant suggestions by keyword themes. - /// - /// List of thrown errors: - /// [AuthenticationError]() - /// [AuthorizationError]() - /// [HeaderError]() - /// [InternalError]() - /// [QuotaError]() - /// [RequestError]() - /// - /// The request to send to the server. - /// The options for the call. - /// The call object. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public virtual grpc::AsyncUnaryCall SuggestKeywordThemeConstantsAsync(global::Google.Ads.GoogleAds.V12.Services.SuggestKeywordThemeConstantsRequest request, grpc::CallOptions options) - { - return CallInvoker.AsyncUnaryCall(__Method_SuggestKeywordThemeConstants, null, options, request); - } - /// Creates a new instance of client from given ClientBaseConfiguration. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - protected override KeywordThemeConstantServiceClient NewInstance(ClientBaseConfiguration configuration) - { - return new KeywordThemeConstantServiceClient(configuration); - } - } - - /// Creates service definition that can be registered with a server - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static grpc::ServerServiceDefinition BindService(KeywordThemeConstantServiceBase serviceImpl) - { - return grpc::ServerServiceDefinition.CreateBuilder() - .AddMethod(__Method_SuggestKeywordThemeConstants, serviceImpl.SuggestKeywordThemeConstants).Build(); - } - - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. - /// Note: this method is part of an experimental API that can change or be removed without any prior notice. - /// Service methods will be bound by calling AddMethod on this object. - /// An object implementing the server-side handling logic. - [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] - public static void BindService(grpc::ServiceBinderBase serviceBinder, KeywordThemeConstantServiceBase serviceImpl) - { - serviceBinder.AddMethod(__Method_SuggestKeywordThemeConstants, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SuggestKeywordThemeConstants)); - } - - } -} -#endregion diff --git a/Google.Ads.GoogleAds/src/V12/KeywordView.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordView.g.cs deleted file mode 100755 index 7fe82ceb1..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordView.g.cs +++ /dev/null @@ -1,253 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/keyword_view.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/keyword_view.proto - public static partial class KeywordViewReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/keyword_view.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static KeywordViewReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2tleXdvcmRf", - "dmlldy5wcm90bxIiZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLnJlc291cmNl", - "cxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xlL2Fw", - "aS9yZXNvdXJjZS5wcm90byLAAQoLS2V5d29yZFZpZXcSQwoNcmVzb3VyY2Vf", - "bmFtZRgBIAEoCUIs4EED+kEmCiRnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "S2V5d29yZFZpZXc6bOpBaQokZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0tl", - "eXdvcmRWaWV3EkFjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9rZXl3b3JkVmll", - "d3Mve2FkX2dyb3VwX2lkfX57Y3JpdGVyaW9uX2lkfUKCAgomY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCEEtleXdvcmRWaWV3UHJv", - "dG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxMi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIi", - "R29vZ2xlLkFkcy5Hb29nbGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTI6OlJlc291cmNlc2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.KeywordView), global::Google.Ads.GoogleAds.V12.Resources.KeywordView.Parser, new[]{ "ResourceName" }, null, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A keyword view. - /// - public sealed partial class KeywordView : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeywordView()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.KeywordViewReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordView() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordView(KeywordView other) : this() { - resourceName_ = other.resourceName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public KeywordView Clone() { - return new KeywordView(this); - } - - /// Field number for the "resource_name" field. - public const int ResourceNameFieldNumber = 1; - private string resourceName_ = ""; - /// - /// Output only. The resource name of the keyword view. - /// Keyword view resource names have the form: - /// - /// `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as KeywordView); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(KeywordView other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() { - int hash = 1; - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); - #else - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ResourceName.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ResourceName); - } - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } - #endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() { - int size = 0; - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } - if (_unknownFields != null) { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(KeywordView other) { - if (other == null) { - return; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) { - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); - #else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - #endif - } - - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: { - ResourceName = input.ReadString(); - break; - } - } - } - } - #endif - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Google.Ads.GoogleAds/src/V12/KeywordViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V12/KeywordViewResourceNames.g.cs deleted file mode 100755 index 39c02d2aa..000000000 --- a/Google.Ads.GoogleAds/src/V12/KeywordViewResourceNames.g.cs +++ /dev/null @@ -1,296 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gax = Google.Api.Gax; -using sys = System; - -namespace Google.Ads.GoogleAds.V12.Resources -{ - /// Resource name for the KeywordView resource. - public sealed partial class KeywordViewName : gax::IResourceName, sys::IEquatable - { - /// The possible contents of . - public enum ResourceNameType - { - /// An unparsed resource name. - Unparsed = 0, - - /// - /// A resource name with pattern customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}. - /// - CustomerAdGroupCriterion = 1, - } - - private static gax::PathTemplate s_customerAdGroupCriterion = new gax::PathTemplate("customers/{customer_id}/keywordViews/{ad_group_id_criterion_id}"); - - /// Creates a containing an unparsed resource name. - /// The unparsed resource name. Must not be null. - /// - /// A new instance of containing the provided - /// . - /// - public static KeywordViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new KeywordViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); - - /// - /// Creates a with the pattern - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// A new instance of constructed from the provided ids. - public static KeywordViewName FromCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - new KeywordViewName(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}. - /// - public static string Format(string customerId, string adGroupId, string criterionId) => - FormatCustomerAdGroupCriterion(customerId, adGroupId, criterionId); - - /// - /// Formats the IDs into the string representation of this with pattern - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}. - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - /// - /// The string representation of this with pattern - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}. - /// - public static string FormatCustomerAdGroupCriterion(string customerId, string adGroupId, string criterionId) => - s_customerAdGroupCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId)))}"); - - /// Parses the given resource name string into a new instance. - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// The parsed if successful. - public static KeywordViewName Parse(string keywordViewName) => Parse(keywordViewName, false); - - /// - /// Parses the given resource name string into a new instance; optionally allowing - /// an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// The parsed if successful. - public static KeywordViewName Parse(string keywordViewName, bool allowUnparsed) => - TryParse(keywordViewName, allowUnparsed, out KeywordViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); - - /// - /// Tries to parse the given resource name string into a new instance. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// - /// The resource name in string form. Must not be null. - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordViewName, out KeywordViewName result) => - TryParse(keywordViewName, false, out result); - - /// - /// Tries to parse the given resource name string into a new instance; optionally - /// allowing an unparseable resource name. - /// - /// - /// To parse successfully, the resource name must be formatted as one of the following: - /// - /// - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id} - /// - /// - /// Or may be in any format if is true. - /// - /// The resource name in string form. Must not be null. - /// - /// If true will successfully store an unparseable resource name into the - /// property; otherwise will throw an if an unparseable resource name is - /// specified. - /// - /// - /// When this method returns, the parsed , or null if parsing failed. - /// - /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string keywordViewName, bool allowUnparsed, out KeywordViewName result) - { - gax::GaxPreconditions.CheckNotNull(keywordViewName, nameof(keywordViewName)); - gax::TemplatedResourceName resourceName; - if (s_customerAdGroupCriterion.TryParseName(keywordViewName, out resourceName)) - { - string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); - if (split1 == null) - { - result = null; - return false; - } - result = FromCustomerAdGroupCriterion(resourceName[0], split1[0], split1[1]); - return true; - } - if (allowUnparsed) - { - if (gax::UnparsedResourceName.TryParse(keywordViewName, out gax::UnparsedResourceName unparsedResourceName)) - { - result = FromUnparsed(unparsedResourceName); - return true; - } - } - result = null; - return false; - } - - private static string[] ParseSplitHelper(string s, char[] separators) - { - string[] result = new string[separators.Length + 1]; - int i0 = 0; - for (int i = 0; i <= separators.Length; i++) - { - int i1 = i < separators.Length ? s.IndexOf(separators[i], i0) : s.Length; - if (i1 < 0 || i1 == i0) - { - return null; - } - result[i] = s.Substring(i0, i1 - i0); - i0 = i1 + 1; - } - return result; - } - - private KeywordViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string adGroupId = null, string criterionId = null, string customerId = null) - { - Type = type; - UnparsedResource = unparsedResourceName; - AdGroupId = adGroupId; - CriterionId = criterionId; - CustomerId = customerId; - } - - /// - /// Constructs a new instance of a class from the component parts of pattern - /// customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id} - /// - /// The Customer ID. Must not be null or empty. - /// The AdGroup ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public KeywordViewName(string customerId, string adGroupId, string criterionId) : this(ResourceNameType.CustomerAdGroupCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), adGroupId: gax::GaxPreconditions.CheckNotNullOrEmpty(adGroupId, nameof(adGroupId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) - { - } - - /// The of the contained resource name. - public ResourceNameType Type { get; } - - /// - /// The contained . Only non-null if this instance contains an - /// unparsed resource name. - /// - public gax::UnparsedResourceName UnparsedResource { get; } - - /// - /// The AdGroup ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string AdGroupId { get; } - - /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CriterionId { get; } - - /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. - /// - public string CustomerId { get; } - - /// Whether this instance contains a resource name with a known pattern. - public bool IsKnownPattern => Type != ResourceNameType.Unparsed; - - /// The string representation of the resource name. - /// The string representation of the resource name. - public override string ToString() - { - switch (Type) - { - case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerAdGroupCriterion: return s_customerAdGroupCriterion.Expand(CustomerId, $"{AdGroupId}~{CriterionId}"); - default: throw new sys::InvalidOperationException("Unrecognized resource-type."); - } - } - - /// Returns a hash code for this resource name. - public override int GetHashCode() => ToString().GetHashCode(); - - /// - public override bool Equals(object obj) => Equals(obj as KeywordViewName); - - /// - public bool Equals(KeywordViewName other) => ToString() == other?.ToString(); - - /// - public static bool operator ==(KeywordViewName a, KeywordViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); - - /// - public static bool operator !=(KeywordViewName a, KeywordViewName b) => !(a == b); - } - - public partial class KeywordView - { - /// - /// -typed view over the resource name property. - /// - internal KeywordViewName ResourceNameAsKeywordViewName - { - get => string.IsNullOrEmpty(ResourceName) ? null : KeywordViewName.Parse(ResourceName, allowUnparsed: true); - set => ResourceName = value?.ToString() ?? ""; - } - } -} diff --git a/Google.Ads.GoogleAds/src/V12/Label.g.cs b/Google.Ads.GoogleAds/src/V12/Label.g.cs deleted file mode 100755 index 994742950..000000000 --- a/Google.Ads.GoogleAds/src/V12/Label.g.cs +++ /dev/null @@ -1,458 +0,0 @@ -// -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/label.proto -// -#pragma warning disable 1591, 0612, 3021, 8981 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { - - /// Holder for reflection information generated from google/ads/googleads/v12/resources/label.proto - public static partial class LabelReflection { - - #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/label.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static LabelReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2xhYmVsLnBy", - "b3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2VzGjBnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTIvY29tbW9uL3RleHRfbGFiZWwucHJvdG8a", - "MWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcy9sYWJlbF9zdGF0dXMu", - "cHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8i4QIKBUxhYmVsEj0KDXJlc291cmNlX25h", - "bWUYASABKAlCJuBBBfpBIAoeZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0xh", - "YmVsEhQKAmlkGAYgASgDQgPgQQNIAIgBARIRCgRuYW1lGAcgASgJSAGIAQES", - "UAoGc3RhdHVzGAQgASgOMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjEyLmVu", - "dW1zLkxhYmVsU3RhdHVzRW51bS5MYWJlbFN0YXR1c0ID4EEDEj4KCnRleHRf", - "bGFiZWwYBSABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuY29tbW9u", - "LlRleHRMYWJlbDpO6kFLCh5nb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vTGFi", - "ZWwSKWN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2xhYmVscy97bGFiZWxfaWR9", - "QgUKA19pZEIHCgVfbmFtZUL8AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxMi5yZXNvdXJjZXNCCkxhYmVsUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9yZXNv", - "dXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxSZXNv", - "dXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJlc291cmNl", - "c2IGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V12.Common.TextLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V12.Enums.LabelStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.Label), global::Google.Ads.GoogleAds.V12.Resources.Label.Parser, new[]{ "ResourceName", "Id", "Name", "Status", "TextLabel" }, new[]{ "Id", "Name" }, null, null, null) - })); - } - #endregion - - } - #region Messages - /// - /// A label. - /// - public sealed partial class Label : pb::IMessage [pbr::OriginalName("LEAD_FORM_LOCATION_ANSWER_TYPE_DISALLOWED")] LeadFormLocationAnswerTypeDisallowed = 37, + /// + /// Page Feed label text contains invalid characters. + /// + [pbr::OriginalName("PAGE_FEED_INVALID_LABEL_TEXT")] PageFeedInvalidLabelText = 38, } } diff --git a/Google.Ads.GoogleAds/src/V14/AssetGroup.g.cs b/Google.Ads.GoogleAds/src/V14/AssetGroup.g.cs index d2d452331..8525540aa 100755 --- a/Google.Ads.GoogleAds/src/V14/AssetGroup.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AssetGroup.g.cs @@ -27,31 +27,39 @@ static AssetGroupReflection() { "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2Fzc2V0X2dy", "b3VwLnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", "GjBnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvYWRfc3RyZW5ndGgu", - "cHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9hc3NldF9n", - "cm91cF9zdGF0dXMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", - "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iigQKCkFzc2V0R3Jv", - "dXASQgoNcmVzb3VyY2VfbmFtZRgBIAEoCUIr4EEF+kElCiNnb29nbGVhZHMu", - "Z29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cBIPCgJpZBgJIAEoA0ID4EEDEjsK", - "CGNhbXBhaWduGAIgASgJQingQQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlz", - "LmNvbS9DYW1wYWlnbhIRCgRuYW1lGAMgASgJQgPgQQISEgoKZmluYWxfdXJs", - "cxgEIAMoCRIZChFmaW5hbF9tb2JpbGVfdXJscxgFIAMoCRJVCgZzdGF0dXMY", - "BiABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQXNzZXRH", - "cm91cFN0YXR1c0VudW0uQXNzZXRHcm91cFN0YXR1cxINCgVwYXRoMRgHIAEo", - "CRINCgVwYXRoMhgIIAEoCRJTCgthZF9zdHJlbmd0aBgKIAEoDjI5Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5BZFN0cmVuZ3RoRW51bS5BZFN0", - "cmVuZ3RoQgPgQQM6XupBWwojZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fz", - "c2V0R3JvdXASNGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fzc2V0R3JvdXBz", - "L3thc3NldF9ncm91cF9pZH1CgQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQucmVzb3VyY2VzQg9Bc3NldEdyb3VwUHJvdG9QAVpLZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "NC9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjE0LlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "NFxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OlJl", - "c291cmNlc2IGcHJvdG8z")); + "cHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9hc3NldF9n", + "cm91cF9wcmltYXJ5X3N0YXR1cy5wcm90bxpGZ29vZ2xlL2Fkcy9nb29nbGVh", + "ZHMvdjE0L2VudW1zL2Fzc2V0X2dyb3VwX3ByaW1hcnlfc3RhdHVzX3JlYXNv", + "bi5wcm90bxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2Fzc2V0", + "X2dyb3VwX3N0YXR1cy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlv", + "ci5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byKDBgoKQXNzZXRH", + "cm91cBJCCg1yZXNvdXJjZV9uYW1lGAEgASgJQivgQQX6QSUKI2dvb2dsZWFk", + "cy5nb29nbGVhcGlzLmNvbS9Bc3NldEdyb3VwEg8KAmlkGAkgASgDQgPgQQMS", + "OwoIY2FtcGFpZ24YAiABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFw", + "aXMuY29tL0NhbXBhaWduEhEKBG5hbWUYAyABKAlCA+BBAhISCgpmaW5hbF91", + "cmxzGAQgAygJEhkKEWZpbmFsX21vYmlsZV91cmxzGAUgAygJElUKBnN0YXR1", + "cxgGIAEoDjJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Bc3Nl", + "dEdyb3VwU3RhdHVzRW51bS5Bc3NldEdyb3VwU3RhdHVzEnAKDnByaW1hcnlf", + "c3RhdHVzGAsgASgOMlMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1z", + "LkFzc2V0R3JvdXBQcmltYXJ5U3RhdHVzRW51bS5Bc3NldEdyb3VwUHJpbWFy", + "eVN0YXR1c0ID4EEDEoQBChZwcmltYXJ5X3N0YXR1c19yZWFzb25zGAwgAygO", + "Ml8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkFzc2V0R3JvdXBQ", + "cmltYXJ5U3RhdHVzUmVhc29uRW51bS5Bc3NldEdyb3VwUHJpbWFyeVN0YXR1", + "c1JlYXNvbkID4EEDEg0KBXBhdGgxGAcgASgJEg0KBXBhdGgyGAggASgJElMK", + "C2FkX3N0cmVuZ3RoGAogASgOMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmVudW1zLkFkU3RyZW5ndGhFbnVtLkFkU3RyZW5ndGhCA+BBAzpe6kFbCiNn", + "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cBI0Y3VzdG9tZXJz", + "L3tjdXN0b21lcl9pZH0vYXNzZXRHcm91cHMve2Fzc2V0X2dyb3VwX2lkfUKB", + "AgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXNCD0Fz", + "c2V0R3JvdXBQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", + "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcztyZXNvdXJj", + "ZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuUmVzb3VyY2Vz", + "ygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XFJlc291cmNlc+oCJkdvb2ds", + "ZTo6QWRzOjpHb29nbGVBZHM6OlYxNDo6UmVzb3VyY2VzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Enums.AdStrengthReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetGroupStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Enums.AdStrengthReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReasonReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetGroupStatusReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.AssetGroup), global::Google.Ads.GoogleAds.V14.Resources.AssetGroup.Parser, new[]{ "ResourceName", "Id", "Campaign", "Name", "FinalUrls", "FinalMobileUrls", "Status", "Path1", "Path2", "AdStrength" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.AssetGroup), global::Google.Ads.GoogleAds.V14.Resources.AssetGroup.Parser, new[]{ "ResourceName", "Id", "Campaign", "Name", "FinalUrls", "FinalMobileUrls", "Status", "PrimaryStatus", "PrimaryStatusReasons", "Path1", "Path2", "AdStrength" }, null, null, null, null) })); } #endregion @@ -104,6 +112,8 @@ public AssetGroup(AssetGroup other) : this() { finalUrls_ = other.finalUrls_.Clone(); finalMobileUrls_ = other.finalMobileUrls_.Clone(); status_ = other.status_; + primaryStatus_ = other.primaryStatus_; + primaryStatusReasons_ = other.primaryStatusReasons_.Clone(); path1_ = other.path1_; path2_ = other.path2_; adStrength_ = other.adStrength_; @@ -227,6 +237,38 @@ public string Name { } } + /// Field number for the "primary_status" field. + public const int PrimaryStatusFieldNumber = 11; + private global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus primaryStatus_ = global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus.Unspecified; + /// + /// Output only. The primary status of the asset group. Provides insights into + /// why an asset group is not serving or not serving optimally. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus PrimaryStatus { + get { return primaryStatus_; } + set { + primaryStatus_ = value; + } + } + + /// Field number for the "primary_status_reasons" field. + public const int PrimaryStatusReasonsFieldNumber = 12; + private static readonly pb::FieldCodec _repeated_primaryStatusReasons_codec + = pb::FieldCodec.ForEnum(98, x => (int) x, x => (global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReasonEnum.Types.AssetGroupPrimaryStatusReason) x); + private readonly pbc::RepeatedField primaryStatusReasons_ = new pbc::RepeatedField(); + /// + /// Output only. Provides reasons into why an asset group is not serving or not + /// serving optimally. It will be empty when the asset group is serving without + /// issues. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrimaryStatusReasons { + get { return primaryStatusReasons_; } + } + /// Field number for the "path1" field. public const int Path1FieldNumber = 7; private string path1_ = ""; @@ -296,6 +338,8 @@ public bool Equals(AssetGroup other) { if(!finalUrls_.Equals(other.finalUrls_)) return false; if(!finalMobileUrls_.Equals(other.finalMobileUrls_)) return false; if (Status != other.Status) return false; + if (PrimaryStatus != other.PrimaryStatus) return false; + if(!primaryStatusReasons_.Equals(other.primaryStatusReasons_)) return false; if (Path1 != other.Path1) return false; if (Path2 != other.Path2) return false; if (AdStrength != other.AdStrength) return false; @@ -313,6 +357,8 @@ public override int GetHashCode() { hash ^= finalUrls_.GetHashCode(); hash ^= finalMobileUrls_.GetHashCode(); if (Status != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) hash ^= Status.GetHashCode(); + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus.Unspecified) hash ^= PrimaryStatus.GetHashCode(); + hash ^= primaryStatusReasons_.GetHashCode(); if (Path1.Length != 0) hash ^= Path1.GetHashCode(); if (Path2.Length != 0) hash ^= Path2.GetHashCode(); if (AdStrength != global::Google.Ads.GoogleAds.V14.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) hash ^= AdStrength.GetHashCode(); @@ -368,6 +414,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(80); output.WriteEnum((int) AdStrength); } + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) PrimaryStatus); + } + primaryStatusReasons_.WriteTo(output, _repeated_primaryStatusReasons_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -412,6 +463,11 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(80); output.WriteEnum((int) AdStrength); } + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus.Unspecified) { + output.WriteRawTag(88); + output.WriteEnum((int) PrimaryStatus); + } + primaryStatusReasons_.WriteTo(ref output, _repeated_primaryStatusReasons_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -439,6 +495,10 @@ public int CalculateSize() { if (Status != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); } + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrimaryStatus); + } + size += primaryStatusReasons_.CalculateSize(_repeated_primaryStatusReasons_codec); if (Path1.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path1); } @@ -477,6 +537,10 @@ public void MergeFrom(AssetGroup other) { if (other.Status != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupStatusEnum.Types.AssetGroupStatus.Unspecified) { Status = other.Status; } + if (other.PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus.Unspecified) { + PrimaryStatus = other.PrimaryStatus; + } + primaryStatusReasons_.Add(other.primaryStatusReasons_); if (other.Path1.Length != 0) { Path1 = other.Path1; } @@ -541,6 +605,15 @@ public void MergeFrom(pb::CodedInputStream input) { AdStrength = (global::Google.Ads.GoogleAds.V14.Enums.AdStrengthEnum.Types.AdStrength) input.ReadEnum(); break; } + case 88: { + PrimaryStatus = (global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus) input.ReadEnum(); + break; + } + case 98: + case 96: { + primaryStatusReasons_.AddEntriesFrom(input, _repeated_primaryStatusReasons_codec); + break; + } } } #endif @@ -596,6 +669,15 @@ public void MergeFrom(pb::CodedInputStream input) { AdStrength = (global::Google.Ads.GoogleAds.V14.Enums.AdStrengthEnum.Types.AdStrength) input.ReadEnum(); break; } + case 88: { + PrimaryStatus = (global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus) input.ReadEnum(); + break; + } + case 98: + case 96: { + primaryStatusReasons_.AddEntriesFrom(ref input, _repeated_primaryStatusReasons_codec); + break; + } } } } diff --git a/Google.Ads.GoogleAds/src/V14/AssetGroupAsset.g.cs b/Google.Ads.GoogleAds/src/V14/AssetGroupAsset.g.cs index 4d6ea05e9..d98ee43f9 100755 --- a/Google.Ads.GoogleAds/src/V14/AssetGroupAsset.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AssetGroupAsset.g.cs @@ -26,39 +26,51 @@ static AssetGroupAssetReflection() { string.Concat( "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2Fzc2V0X2dy", "b3VwX2Fzc2V0LnByb3RvEiJnb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvY29tbW9uL3BvbGlj", - "eV9zdW1tYXJ5LnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51", - "bXMvYXNzZXRfZmllbGRfdHlwZS5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjE0L2VudW1zL2Fzc2V0X2xpbmtfc3RhdHVzLnByb3RvGjxnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTQvZW51bXMvYXNzZXRfcGVyZm9ybWFuY2VfbGFi", - "ZWwucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdv", - "b2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iwAUKD0Fzc2V0R3JvdXBBc3NldBJH", - "Cg1yZXNvdXJjZV9uYW1lGAEgASgJQjDgQQX6QSoKKGdvb2dsZWFkcy5nb29n", - "bGVhcGlzLmNvbS9Bc3NldEdyb3VwQXNzZXQSQAoLYXNzZXRfZ3JvdXAYAiAB", - "KAlCK+BBBfpBJQojZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3Jv", - "dXASNQoFYXNzZXQYAyABKAlCJuBBBfpBIAoeZ29vZ2xlYWRzLmdvb2dsZWFw", - "aXMuY29tL0Fzc2V0ElUKCmZpZWxkX3R5cGUYBCABKA4yQS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZW51bXMuQXNzZXRGaWVsZFR5cGVFbnVtLkFzc2V0", - "RmllbGRUeXBlElMKBnN0YXR1cxgFIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5lbnVtcy5Bc3NldExpbmtTdGF0dXNFbnVtLkFzc2V0TGlua1N0", - "YXR1cxJvChFwZXJmb3JtYW5jZV9sYWJlbBgGIAEoDjJPLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5lbnVtcy5Bc3NldFBlcmZvcm1hbmNlTGFiZWxFbnVt", - "LkFzc2V0UGVyZm9ybWFuY2VMYWJlbEID4EEDEksKDnBvbGljeV9zdW1tYXJ5", - "GAcgASgLMi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5Qb2xp", - "Y3lTdW1tYXJ5QgPgQQM6gAHqQX0KKGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9Bc3NldEdyb3VwQXNzZXQSUWN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fz", - "c2V0R3JvdXBBc3NldHMve2Fzc2V0X2dyb3VwX2lkfX57YXNzZXRfaWR9fntm", - "aWVsZF90eXBlfUKGAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5y", - "ZXNvdXJjZXNCFEFzc2V0R3JvdXBBc3NldFByb3RvUAFaS2dvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQv", - "cmVzb3VyY2VzO3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xl", - "QWRzLlYxNC5SZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRc", - "UmVzb3VyY2Vz6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpSZXNv", - "dXJjZXNiBnByb3RvMw==")); + "b3VyY2VzGjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvY29tbW9uL2Fzc2V0", + "X3BvbGljeS5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2NvbW1v", + "bi9wb2xpY3lfc3VtbWFyeS5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", + "djE0L2VudW1zL2Fzc2V0X2ZpZWxkX3R5cGUucHJvdG8aPmdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9lbnVtcy9hc3NldF9saW5rX3ByaW1hcnlfc3RhdHVz", + "LnByb3RvGkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvYXNzZXRf", + "bGlua19wcmltYXJ5X3N0YXR1c19yZWFzb24ucHJvdG8aNmdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9lbnVtcy9hc3NldF9saW5rX3N0YXR1cy5wcm90bxo8", + "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2Fzc2V0X3BlcmZvcm1h", + "bmNlX2xhYmVsLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy", + "b3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIpoICg9Bc3NldEdyb3Vw", + "QXNzZXQSRwoNcmVzb3VyY2VfbmFtZRgBIAEoCUIw4EEF+kEqCihnb29nbGVh", + "ZHMuZ29vZ2xlYXBpcy5jb20vQXNzZXRHcm91cEFzc2V0EkAKC2Fzc2V0X2dy", + "b3VwGAIgASgJQivgQQX6QSUKI2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9B", + "c3NldEdyb3VwEjUKBWFzc2V0GAMgASgJQibgQQX6QSAKHmdvb2dsZWFkcy5n", + "b29nbGVhcGlzLmNvbS9Bc3NldBJVCgpmaWVsZF90eXBlGAQgASgOMkEuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkFzc2V0RmllbGRUeXBlRW51", + "bS5Bc3NldEZpZWxkVHlwZRJTCgZzdGF0dXMYBSABKA4yQy5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZW51bXMuQXNzZXRMaW5rU3RhdHVzRW51bS5Bc3Nl", + "dExpbmtTdGF0dXMSbgoOcHJpbWFyeV9zdGF0dXMYCCABKA4yUS5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQXNzZXRMaW5rUHJpbWFyeVN0YXR1", + "c0VudW0uQXNzZXRMaW5rUHJpbWFyeVN0YXR1c0ID4EEDEoIBChZwcmltYXJ5", + "X3N0YXR1c19yZWFzb25zGAkgAygOMl0uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LmVudW1zLkFzc2V0TGlua1ByaW1hcnlTdGF0dXNSZWFzb25FbnVtLkFz", + "c2V0TGlua1ByaW1hcnlTdGF0dXNSZWFzb25CA+BBAxJjChZwcmltYXJ5X3N0", + "YXR1c19kZXRhaWxzGAogAygLMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmNvbW1vbi5Bc3NldExpbmtQcmltYXJ5U3RhdHVzRGV0YWlsc0ID4EEDEm8K", + "EXBlcmZvcm1hbmNlX2xhYmVsGAYgASgOMk8uZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVudW1zLkFzc2V0UGVyZm9ybWFuY2VMYWJlbEVudW0uQXNzZXRQ", + "ZXJmb3JtYW5jZUxhYmVsQgPgQQMSSwoOcG9saWN5X3N1bW1hcnkYByABKAsy", + "Li5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlBvbGljeVN1bW1h", + "cnlCA+BBAzqAAepBfQooZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0", + "R3JvdXBBc3NldBJRY3VzdG9tZXJzL3tjdXN0b21lcl9pZH0vYXNzZXRHcm91", + "cEFzc2V0cy97YXNzZXRfZ3JvdXBfaWR9fnthc3NldF9pZH1+e2ZpZWxkX3R5", + "cGV9QoYCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", + "c0IUQXNzZXRHcm91cEFzc2V0UHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcv", + "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJj", + "ZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0", + "LlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxSZXNvdXJj", + "ZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OlJlc291cmNlc2IG", + "cHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.PolicySummaryReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetPerformanceLabelReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.AssetPolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.PolicySummaryReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusReasonReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetLinkStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetPerformanceLabelReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.AssetGroupAsset), global::Google.Ads.GoogleAds.V14.Resources.AssetGroupAsset.Parser, new[]{ "ResourceName", "AssetGroup", "Asset", "FieldType", "Status", "PerformanceLabel", "PolicySummary" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.AssetGroupAsset), global::Google.Ads.GoogleAds.V14.Resources.AssetGroupAsset.Parser, new[]{ "ResourceName", "AssetGroup", "Asset", "FieldType", "Status", "PrimaryStatus", "PrimaryStatusReasons", "PrimaryStatusDetails", "PerformanceLabel", "PolicySummary" }, null, null, null, null) })); } #endregion @@ -108,6 +120,9 @@ public AssetGroupAsset(AssetGroupAsset other) : this() { asset_ = other.asset_; fieldType_ = other.fieldType_; status_ = other.status_; + primaryStatus_ = other.primaryStatus_; + primaryStatusReasons_ = other.primaryStatusReasons_.Clone(); + primaryStatusDetails_ = other.primaryStatusDetails_.Clone(); performanceLabel_ = other.performanceLabel_; policySummary_ = other.policySummary_ != null ? other.policySummary_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -198,6 +213,56 @@ public string Asset { } } + /// Field number for the "primary_status" field. + public const int PrimaryStatusFieldNumber = 8; + private global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus primaryStatus_ = global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus.Unspecified; + /// + /// Output only. Provides the PrimaryStatus of this asset link. + /// Primary status is meant essentially to differentiate between the plain + /// "status" field, which has advertiser set values of enabled, paused, or + /// removed. The primary status takes into account other signals (for assets + /// its mainly policy and quality approvals) to come up with a more + /// comprehensive status to indicate its serving state. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus PrimaryStatus { + get { return primaryStatus_; } + set { + primaryStatus_ = value; + } + } + + /// Field number for the "primary_status_reasons" field. + public const int PrimaryStatusReasonsFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_primaryStatusReasons_codec + = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusReasonEnum.Types.AssetLinkPrimaryStatusReason) x); + private readonly pbc::RepeatedField primaryStatusReasons_ = new pbc::RepeatedField(); + /// + /// Output only. Provides a list of reasons for why an asset is not serving or + /// not serving at full capacity. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrimaryStatusReasons { + get { return primaryStatusReasons_; } + } + + /// Field number for the "primary_status_details" field. + public const int PrimaryStatusDetailsFieldNumber = 10; + private static readonly pb::FieldCodec _repeated_primaryStatusDetails_codec + = pb::FieldCodec.ForMessage(82, global::Google.Ads.GoogleAds.V14.Common.AssetLinkPrimaryStatusDetails.Parser); + private readonly pbc::RepeatedField primaryStatusDetails_ = new pbc::RepeatedField(); + /// + /// Output only. Provides the details of the primary status and its associated + /// reasons. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrimaryStatusDetails { + get { return primaryStatusDetails_; } + } + /// Field number for the "performance_label" field. public const int PerformanceLabelFieldNumber = 6; private global::Google.Ads.GoogleAds.V14.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel performanceLabel_ = global::Google.Ads.GoogleAds.V14.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified; @@ -248,6 +313,9 @@ public bool Equals(AssetGroupAsset other) { if (Asset != other.Asset) return false; if (FieldType != other.FieldType) return false; if (Status != other.Status) return false; + if (PrimaryStatus != other.PrimaryStatus) return false; + if(!primaryStatusReasons_.Equals(other.primaryStatusReasons_)) return false; + if(!primaryStatusDetails_.Equals(other.primaryStatusDetails_)) return false; if (PerformanceLabel != other.PerformanceLabel) return false; if (!object.Equals(PolicySummary, other.PolicySummary)) return false; return Equals(_unknownFields, other._unknownFields); @@ -262,6 +330,9 @@ public override int GetHashCode() { if (Asset.Length != 0) hash ^= Asset.GetHashCode(); if (FieldType != global::Google.Ads.GoogleAds.V14.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) hash ^= FieldType.GetHashCode(); if (Status != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) hash ^= Status.GetHashCode(); + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus.Unspecified) hash ^= PrimaryStatus.GetHashCode(); + hash ^= primaryStatusReasons_.GetHashCode(); + hash ^= primaryStatusDetails_.GetHashCode(); if (PerformanceLabel != global::Google.Ads.GoogleAds.V14.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) hash ^= PerformanceLabel.GetHashCode(); if (policySummary_ != null) hash ^= PolicySummary.GetHashCode(); if (_unknownFields != null) { @@ -310,6 +381,12 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteMessage(PolicySummary); } + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) PrimaryStatus); + } + primaryStatusReasons_.WriteTo(output, _repeated_primaryStatusReasons_codec); + primaryStatusDetails_.WriteTo(output, _repeated_primaryStatusDetails_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -348,6 +425,12 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteMessage(PolicySummary); } + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus.Unspecified) { + output.WriteRawTag(64); + output.WriteEnum((int) PrimaryStatus); + } + primaryStatusReasons_.WriteTo(ref output, _repeated_primaryStatusReasons_codec); + primaryStatusDetails_.WriteTo(ref output, _repeated_primaryStatusDetails_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -373,6 +456,11 @@ public int CalculateSize() { if (Status != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); } + if (PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus.Unspecified) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrimaryStatus); + } + size += primaryStatusReasons_.CalculateSize(_repeated_primaryStatusReasons_codec); + size += primaryStatusDetails_.CalculateSize(_repeated_primaryStatusDetails_codec); if (PerformanceLabel != global::Google.Ads.GoogleAds.V14.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PerformanceLabel); } @@ -406,6 +494,11 @@ public void MergeFrom(AssetGroupAsset other) { if (other.Status != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkStatusEnum.Types.AssetLinkStatus.Unspecified) { Status = other.Status; } + if (other.PrimaryStatus != global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus.Unspecified) { + PrimaryStatus = other.PrimaryStatus; + } + primaryStatusReasons_.Add(other.primaryStatusReasons_); + primaryStatusDetails_.Add(other.primaryStatusDetails_); if (other.PerformanceLabel != global::Google.Ads.GoogleAds.V14.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { PerformanceLabel = other.PerformanceLabel; } @@ -461,6 +554,19 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(PolicySummary); break; } + case 64: { + PrimaryStatus = (global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus) input.ReadEnum(); + break; + } + case 74: + case 72: { + primaryStatusReasons_.AddEntriesFrom(input, _repeated_primaryStatusReasons_codec); + break; + } + case 82: { + primaryStatusDetails_.AddEntriesFrom(input, _repeated_primaryStatusDetails_codec); + break; + } } } #endif @@ -507,6 +613,19 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(PolicySummary); break; } + case 64: { + PrimaryStatus = (global::Google.Ads.GoogleAds.V14.Enums.AssetLinkPrimaryStatusEnum.Types.AssetLinkPrimaryStatus) input.ReadEnum(); + break; + } + case 74: + case 72: { + primaryStatusReasons_.AddEntriesFrom(ref input, _repeated_primaryStatusReasons_codec); + break; + } + case 82: { + primaryStatusDetails_.AddEntriesFrom(ref input, _repeated_primaryStatusDetails_codec); + break; + } } } } diff --git a/Google.Ads.GoogleAds/src/V14/AssetGroupListingGroupFilter.g.cs b/Google.Ads.GoogleAds/src/V14/AssetGroupListingGroupFilter.g.cs index 06bb79e6d..87f3edcb7 100755 --- a/Google.Ads.GoogleAds/src/V14/AssetGroupListingGroupFilter.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AssetGroupListingGroupFilter.g.cs @@ -39,7 +39,7 @@ static AssetGroupListingGroupFilterReflection() { "c3RpbmdfZ3JvdXBfZmlsdGVyX3R5cGVfZW51bS5wcm90bxpCZ29vZ2xlL2Fk", "cy9nb29nbGVhZHMvdjE0L2VudW1zL2xpc3RpbmdfZ3JvdXBfZmlsdGVyX3Zl", "cnRpY2FsLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", - "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIvgFChxBc3NldEdyb3VwTGlz", + "Ghlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvItAGChxBc3NldEdyb3VwTGlz", "dGluZ0dyb3VwRmlsdGVyElQKDXJlc291cmNlX25hbWUYASABKAlCPeBBBfpB", "Nwo1Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXBMaXN0aW5n", "R3JvdXBGaWx0ZXISQAoLYXNzZXRfZ3JvdXAYAiABKAlCK+BBBfpBJQojZ29v", @@ -53,59 +53,65 @@ static AssetGroupListingGroupFilterReflection() { "c291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24SYgobcGFyZW50", "X2xpc3RpbmdfZ3JvdXBfZmlsdGVyGAcgASgJQj3gQQX6QTcKNWdvb2dsZWFk", "cy5nb29nbGVhcGlzLmNvbS9Bc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVy", - "Op0B6kGZAQo1Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Fzc2V0R3JvdXBM", - "aXN0aW5nR3JvdXBGaWx0ZXISYGN1c3RvbWVycy97Y3VzdG9tZXJfaWR9L2Fz", - "c2V0R3JvdXBMaXN0aW5nR3JvdXBGaWx0ZXJzL3thc3NldF9ncm91cF9pZH1+", - "e2xpc3RpbmdfZ3JvdXBfZmlsdGVyX2lkfSLHDQobTGlzdGluZ0dyb3VwRmls", - "dGVyRGltZW5zaW9uEnoKGHByb2R1Y3RfYmlkZGluZ19jYXRlZ29yeRgBIAEo", - "CzJWLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuTGlzdGlu", - "Z0dyb3VwRmlsdGVyRGltZW5zaW9uLlByb2R1Y3RCaWRkaW5nQ2F0ZWdvcnlI", - "ABJlCg1wcm9kdWN0X2JyYW5kGAIgASgLMkwuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24u", - "UHJvZHVjdEJyYW5kSAASaQoPcHJvZHVjdF9jaGFubmVsGAMgASgLMk4uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5MaXN0aW5nR3JvdXBG", - "aWx0ZXJEaW1lbnNpb24uUHJvZHVjdENoYW5uZWxIABJtChFwcm9kdWN0X2Nv", - "bmRpdGlvbhgEIAEoCzJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", - "dXJjZXMuTGlzdGluZ0dyb3VwRmlsdGVyRGltZW5zaW9uLlByb2R1Y3RDb25k", - "aXRpb25IABJ6Chhwcm9kdWN0X2N1c3RvbV9hdHRyaWJ1dGUYBSABKAsyVi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkxpc3RpbmdHcm91", - "cEZpbHRlckRpbWVuc2lvbi5Qcm9kdWN0Q3VzdG9tQXR0cmlidXRlSAASaAoP", - "cHJvZHVjdF9pdGVtX2lkGAYgASgLMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24uUHJv", - "ZHVjdEl0ZW1JZEgAEmMKDHByb2R1Y3RfdHlwZRgHIAEoCzJLLmdvb2dsZS5h", + "ElYKBHBhdGgYCCABKAsyQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", + "b3VyY2VzLkxpc3RpbmdHcm91cEZpbHRlckRpbWVuc2lvblBhdGhCA+BBAzqd", + "AepBmQEKNWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldEdyb3VwTGlz", + "dGluZ0dyb3VwRmlsdGVyEmBjdXN0b21lcnMve2N1c3RvbWVyX2lkfS9hc3Nl", + "dEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVycy97YXNzZXRfZ3JvdXBfaWR9fnts", + "aXN0aW5nX2dyb3VwX2ZpbHRlcl9pZH0iewofTGlzdGluZ0dyb3VwRmlsdGVy", + "RGltZW5zaW9uUGF0aBJYCgpkaW1lbnNpb25zGAEgAygLMj8uZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJE", + "aW1lbnNpb25CA+BBAyLHDQobTGlzdGluZ0dyb3VwRmlsdGVyRGltZW5zaW9u", + "EnoKGHByb2R1Y3RfYmlkZGluZ19jYXRlZ29yeRgBIAEoCzJWLmdvb2dsZS5h", "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuTGlzdGluZ0dyb3VwRmlsdGVy", - "RGltZW5zaW9uLlByb2R1Y3RUeXBlSAAaswEKFlByb2R1Y3RCaWRkaW5nQ2F0", - "ZWdvcnkSDwoCaWQYASABKANIAIgBARKAAQoFbGV2ZWwYAiABKA4ycS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuTGlzdGluZ0dyb3VwRmlsdGVy", - "QmlkZGluZ0NhdGVnb3J5TGV2ZWxFbnVtLkxpc3RpbmdHcm91cEZpbHRlckJp", - "ZGRpbmdDYXRlZ29yeUxldmVsQgUKA19pZBosCgxQcm9kdWN0QnJhbmQSEgoF", - "dmFsdWUYASABKAlIAIgBAUIICgZfdmFsdWUaiAEKDlByb2R1Y3RDaGFubmVs", - "EnYKB2NoYW5uZWwYASABKA4yZS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZW51bXMuTGlzdGluZ0dyb3VwRmlsdGVyUHJvZHVjdENoYW5uZWxFbnVtLkxp", - "c3RpbmdHcm91cEZpbHRlclByb2R1Y3RDaGFubmVsGpABChBQcm9kdWN0Q29u", - "ZGl0aW9uEnwKCWNvbmRpdGlvbhgBIAEoDjJpLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5lbnVtcy5MaXN0aW5nR3JvdXBGaWx0ZXJQcm9kdWN0Q29uZGl0", - "aW9uRW51bS5MaXN0aW5nR3JvdXBGaWx0ZXJQcm9kdWN0Q29uZGl0aW9uGrkB", - "ChZQcm9kdWN0Q3VzdG9tQXR0cmlidXRlEhIKBXZhbHVlGAEgASgJSACIAQES", - "gAEKBWluZGV4GAIgASgOMnEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVu", - "dW1zLkxpc3RpbmdHcm91cEZpbHRlckN1c3RvbUF0dHJpYnV0ZUluZGV4RW51", - "bS5MaXN0aW5nR3JvdXBGaWx0ZXJDdXN0b21BdHRyaWJ1dGVJbmRleEIICgZf", - "dmFsdWUaLQoNUHJvZHVjdEl0ZW1JZBISCgV2YWx1ZRgBIAEoCUgAiAEBQggK", - "Bl92YWx1ZRqlAQoLUHJvZHVjdFR5cGUSEgoFdmFsdWUYASABKAlIAIgBARJ4", - "CgVsZXZlbBgCIAEoDjJpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVt", - "cy5MaXN0aW5nR3JvdXBGaWx0ZXJQcm9kdWN0VHlwZUxldmVsRW51bS5MaXN0", - "aW5nR3JvdXBGaWx0ZXJQcm9kdWN0VHlwZUxldmVsQggKBl92YWx1ZUILCglk", - "aW1lbnNpb25CkwIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzQiFBc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyUHJvdG9QAVpL", - "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxNC9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjE0LlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxNFxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRz", - "OjpWMTQ6OlJlc291cmNlc2IGcHJvdG8z")); + "RGltZW5zaW9uLlByb2R1Y3RCaWRkaW5nQ2F0ZWdvcnlIABJlCg1wcm9kdWN0", + "X2JyYW5kGAIgASgLMkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24uUHJvZHVjdEJyYW5k", + "SAASaQoPcHJvZHVjdF9jaGFubmVsGAMgASgLMk4uZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnJlc291cmNlcy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNp", + "b24uUHJvZHVjdENoYW5uZWxIABJtChFwcm9kdWN0X2NvbmRpdGlvbhgEIAEo", + "CzJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuTGlzdGlu", + "Z0dyb3VwRmlsdGVyRGltZW5zaW9uLlByb2R1Y3RDb25kaXRpb25IABJ6Chhw", + "cm9kdWN0X2N1c3RvbV9hdHRyaWJ1dGUYBSABKAsyVi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQucmVzb3VyY2VzLkxpc3RpbmdHcm91cEZpbHRlckRpbWVu", + "c2lvbi5Qcm9kdWN0Q3VzdG9tQXR0cmlidXRlSAASaAoPcHJvZHVjdF9pdGVt", + "X2lkGAYgASgLMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", + "cy5MaXN0aW5nR3JvdXBGaWx0ZXJEaW1lbnNpb24uUHJvZHVjdEl0ZW1JZEgA", + "EmMKDHByb2R1Y3RfdHlwZRgHIAEoCzJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5yZXNvdXJjZXMuTGlzdGluZ0dyb3VwRmlsdGVyRGltZW5zaW9uLlBy", + "b2R1Y3RUeXBlSAAaswEKFlByb2R1Y3RCaWRkaW5nQ2F0ZWdvcnkSDwoCaWQY", + "ASABKANIAIgBARKAAQoFbGV2ZWwYAiABKA4ycS5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZW51bXMuTGlzdGluZ0dyb3VwRmlsdGVyQmlkZGluZ0NhdGVn", + "b3J5TGV2ZWxFbnVtLkxpc3RpbmdHcm91cEZpbHRlckJpZGRpbmdDYXRlZ29y", + "eUxldmVsQgUKA19pZBosCgxQcm9kdWN0QnJhbmQSEgoFdmFsdWUYASABKAlI", + "AIgBAUIICgZfdmFsdWUaiAEKDlByb2R1Y3RDaGFubmVsEnYKB2NoYW5uZWwY", + "ASABKA4yZS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuTGlzdGlu", + "Z0dyb3VwRmlsdGVyUHJvZHVjdENoYW5uZWxFbnVtLkxpc3RpbmdHcm91cEZp", + "bHRlclByb2R1Y3RDaGFubmVsGpABChBQcm9kdWN0Q29uZGl0aW9uEnwKCWNv", + "bmRpdGlvbhgBIAEoDjJpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVt", + "cy5MaXN0aW5nR3JvdXBGaWx0ZXJQcm9kdWN0Q29uZGl0aW9uRW51bS5MaXN0", + "aW5nR3JvdXBGaWx0ZXJQcm9kdWN0Q29uZGl0aW9uGrkBChZQcm9kdWN0Q3Vz", + "dG9tQXR0cmlidXRlEhIKBXZhbHVlGAEgASgJSACIAQESgAEKBWluZGV4GAIg", + "ASgOMnEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkxpc3RpbmdH", + "cm91cEZpbHRlckN1c3RvbUF0dHJpYnV0ZUluZGV4RW51bS5MaXN0aW5nR3Jv", + "dXBGaWx0ZXJDdXN0b21BdHRyaWJ1dGVJbmRleEIICgZfdmFsdWUaLQoNUHJv", + "ZHVjdEl0ZW1JZBISCgV2YWx1ZRgBIAEoCUgAiAEBQggKBl92YWx1ZRqlAQoL", + "UHJvZHVjdFR5cGUSEgoFdmFsdWUYASABKAlIAIgBARJ4CgVsZXZlbBgCIAEo", + "DjJpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5MaXN0aW5nR3Jv", + "dXBGaWx0ZXJQcm9kdWN0VHlwZUxldmVsRW51bS5MaXN0aW5nR3JvdXBGaWx0", + "ZXJQcm9kdWN0VHlwZUxldmVsQggKBl92YWx1ZUILCglkaW1lbnNpb25CkwIK", + "JmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzQiFBc3Nl", + "dEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyUHJvdG9QAVpLZ29vZ2xlLmdvbGFu", + "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNC9y", + "ZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVB", + "ZHMuVjE0LlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxS", + "ZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OlJlc291", + "cmNlc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterBiddingCategoryLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterCustomAttributeIndexReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterProductChannelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterProductConditionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterProductTypeLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterTypeEnumReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterVerticalReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.AssetGroupListingGroupFilter), global::Google.Ads.GoogleAds.V14.Resources.AssetGroupListingGroupFilter.Parser, new[]{ "ResourceName", "AssetGroup", "Id", "Type", "Vertical", "CaseValue", "ParentListingGroupFilter" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.AssetGroupListingGroupFilter), global::Google.Ads.GoogleAds.V14.Resources.AssetGroupListingGroupFilter.Parser, new[]{ "ResourceName", "AssetGroup", "Id", "Type", "Vertical", "CaseValue", "ParentListingGroupFilter", "Path" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimensionPath), global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimensionPath.Parser, new[]{ "Dimensions" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension), global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Parser, new[]{ "ProductBiddingCategory", "ProductBrand", "ProductChannel", "ProductCondition", "ProductCustomAttribute", "ProductItemId", "ProductType" }, new[]{ "Dimension" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory), global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Types.ProductBiddingCategory.Parser, new[]{ "Id", "Level" }, new[]{ "Id" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Types.ProductBrand), global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Types.ProductBrand.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Types.ProductChannel), global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Types.ProductChannel.Parser, new[]{ "Channel" }, null, null, null, null), @@ -164,6 +170,7 @@ public AssetGroupListingGroupFilter(AssetGroupListingGroupFilter other) : this() vertical_ = other.vertical_; caseValue_ = other.caseValue_ != null ? other.caseValue_.Clone() : null; parentListingGroupFilter_ = other.parentListingGroupFilter_; + path_ = other.path_ != null ? other.path_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -285,6 +292,21 @@ public string ParentListingGroupFilter { } } + /// Field number for the "path" field. + public const int PathFieldNumber = 8; + private global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimensionPath path_; + /// + /// Output only. The path of dimensions defining this listing group filter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimensionPath Path { + get { return path_; } + set { + path_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -307,6 +329,7 @@ public bool Equals(AssetGroupListingGroupFilter other) { if (Vertical != other.Vertical) return false; if (!object.Equals(CaseValue, other.CaseValue)) return false; if (ParentListingGroupFilter != other.ParentListingGroupFilter) return false; + if (!object.Equals(Path, other.Path)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -321,6 +344,7 @@ public override int GetHashCode() { if (Vertical != global::Google.Ads.GoogleAds.V14.Enums.ListingGroupFilterVerticalEnum.Types.ListingGroupFilterVertical.Unspecified) hash ^= Vertical.GetHashCode(); if (caseValue_ != null) hash ^= CaseValue.GetHashCode(); if (ParentListingGroupFilter.Length != 0) hash ^= ParentListingGroupFilter.GetHashCode(); + if (path_ != null) hash ^= Path.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -367,6 +391,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteString(ParentListingGroupFilter); } + if (path_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Path); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -405,6 +433,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(58); output.WriteString(ParentListingGroupFilter); } + if (path_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Path); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -436,6 +468,9 @@ public int CalculateSize() { if (ParentListingGroupFilter.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentListingGroupFilter); } + if (path_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Path); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -472,6 +507,12 @@ public void MergeFrom(AssetGroupListingGroupFilter other) { if (other.ParentListingGroupFilter.Length != 0) { ParentListingGroupFilter = other.ParentListingGroupFilter; } + if (other.path_ != null) { + if (path_ == null) { + Path = new global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimensionPath(); + } + Path.MergeFrom(other.Path); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -518,6 +559,13 @@ public void MergeFrom(pb::CodedInputStream input) { ParentListingGroupFilter = input.ReadString(); break; } + case 66: { + if (path_ == null) { + Path = new global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimensionPath(); + } + input.ReadMessage(Path); + break; + } } } #endif @@ -564,6 +612,198 @@ public void MergeFrom(pb::CodedInputStream input) { ParentListingGroupFilter = input.ReadString(); break; } + case 66: { + if (path_ == null) { + Path = new global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimensionPath(); + } + input.ReadMessage(Path); + break; + } + } + } + } + #endif + + } + + /// + /// The path defining of dimensions defining a listing group filter. + /// + public sealed partial class ListingGroupFilterDimensionPath : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListingGroupFilterDimensionPath()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.AssetGroupListingGroupFilterReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListingGroupFilterDimensionPath() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListingGroupFilterDimensionPath(ListingGroupFilterDimensionPath other) : this() { + dimensions_ = other.dimensions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListingGroupFilterDimensionPath Clone() { + return new ListingGroupFilterDimensionPath(this); + } + + /// Field number for the "dimensions" field. + public const int DimensionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dimensions_codec + = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V14.Resources.ListingGroupFilterDimension.Parser); + private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); + /// + /// Output only. The complete path of dimensions through the listing group + /// filter hierarchy (excluding the root node) to this listing group filter. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Dimensions { + get { return dimensions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListingGroupFilterDimensionPath); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListingGroupFilterDimensionPath other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dimensions_.Equals(other.dimensions_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dimensions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dimensions_.WriteTo(output, _repeated_dimensions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dimensions_.WriteTo(ref output, _repeated_dimensions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dimensions_.CalculateSize(_repeated_dimensions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListingGroupFilterDimensionPath other) { + if (other == null) { + return; + } + dimensions_.Add(other.dimensions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); + break; + } } } } @@ -588,7 +828,7 @@ public sealed partial class ListingGroupFilterDimension : pb::IMessage // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/price_extension_price_unit.proto +// source: google/ads/googleads/v14/enums/asset_group_primary_status.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code @@ -9,37 +9,37 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { +namespace Google.Ads.GoogleAds.V14.Enums { - /// Holder for reflection information generated from google/ads/googleads/v12/enums/price_extension_price_unit.proto - public static partial class PriceExtensionPriceUnitReflection { + /// Holder for reflection information generated from google/ads/googleads/v14/enums/asset_group_primary_status.proto + public static partial class AssetGroupPrimaryStatusReflection { #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/price_extension_price_unit.proto + /// File descriptor for google/ads/googleads/v14/enums/asset_group_primary_status.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; - static PriceExtensionPriceUnitReflection() { + static AssetGroupPrimaryStatusReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvcHJpY2VfZXh0ZW5z", - "aW9uX3ByaWNlX3VuaXQucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "Mi5lbnVtcyKsAQobUHJpY2VFeHRlbnNpb25QcmljZVVuaXRFbnVtIowBChdQ", - "cmljZUV4dGVuc2lvblByaWNlVW5pdBIPCgtVTlNQRUNJRklFRBAAEgsKB1VO", - "S05PV04QARIMCghQRVJfSE9VUhACEgsKB1BFUl9EQVkQAxIMCghQRVJfV0VF", - "SxAEEg0KCVBFUl9NT05USBAFEgwKCFBFUl9ZRUFSEAYSDQoJUEVSX05JR0hU", - "EAdC9gEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZW51bXNCHFBy", - "aWNlRXh0ZW5zaW9uUHJpY2VVbml0UHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5v", - "cmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVt", - "cztlbnVtc6ICA0dBQaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVt", - "c8oCHkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6", - "QWRzOjpHb29nbGVBZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); + "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvYXNzZXRfZ3JvdXBf", + "cHJpbWFyeV9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5lbnVtcyKqAQobQXNzZXRHcm91cFByaW1hcnlTdGF0dXNFbnVtIooBChdB", + "c3NldEdyb3VwUHJpbWFyeVN0YXR1cxIPCgtVTlNQRUNJRklFRBAAEgsKB1VO", + "S05PV04QARIMCghFTElHSUJMRRACEgoKBlBBVVNFRBADEgsKB1JFTU9WRUQQ", + "BBIQCgxOT1RfRUxJR0lCTEUQBRILCgdMSU1JVEVEEAYSCwoHUEVORElORxAH", + "QvYBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zQhxBc3Nl", + "dEdyb3VwUHJpbWFyeVN0YXR1c1Byb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3Jn", + "L2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvZW51bXM7", + "ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuRW51bXPK", + "Ah5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcRW51bXPqAiJHb29nbGU6OkFk", + "czo6R29vZ2xlQWRzOjpWMTQ6OkVudW1zYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum), global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitEnum.Types.PriceExtensionPriceUnit) }, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum), global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusEnum.Types.AssetGroupPrimaryStatus) }, null, null) })); } #endregion @@ -47,23 +47,23 @@ static PriceExtensionPriceUnitReflection() { } #region Messages /// - /// Container for enum describing price extension price unit. + /// Container for enum describing possible asset group primary status. /// - public sealed partial class PriceExtensionPriceUnitEnum : pb::IMessage + public sealed partial class AssetGroupPrimaryStatusEnum : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PriceExtensionPriceUnitEnum()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupPrimaryStatusEnum()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.PriceExtensionPriceUnitReflection.Descriptor.MessageTypes[0]; } + get { return global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -74,7 +74,7 @@ public sealed partial class PriceExtensionPriceUnitEnum : pb::IMessageContainer for nested types declared in the PriceExtensionPriceUnitEnum message type. + /// Container for nested types declared in the AssetGroupPrimaryStatusEnum message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Price extension price unit. + /// Enum describing the possible asset group primary status. Provides insights + /// into why an asset group is not serving or not serving optimally. /// - public enum PriceExtensionPriceUnit { + public enum AssetGroupPrimaryStatus { /// /// Not specified. /// @@ -217,29 +218,29 @@ public enum PriceExtensionPriceUnit { /// [pbr::OriginalName("UNKNOWN")] Unknown = 1, /// - /// Per hour. + /// The asset group is eligible to serve. /// - [pbr::OriginalName("PER_HOUR")] PerHour = 2, + [pbr::OriginalName("ELIGIBLE")] Eligible = 2, /// - /// Per day. + /// The asset group is paused. /// - [pbr::OriginalName("PER_DAY")] PerDay = 3, + [pbr::OriginalName("PAUSED")] Paused = 3, /// - /// Per week. + /// The asset group is removed. /// - [pbr::OriginalName("PER_WEEK")] PerWeek = 4, + [pbr::OriginalName("REMOVED")] Removed = 4, /// - /// Per month. + /// The asset group is not eligible to serve. /// - [pbr::OriginalName("PER_MONTH")] PerMonth = 5, + [pbr::OriginalName("NOT_ELIGIBLE")] NotEligible = 5, /// - /// Per year. + /// The asset group has limited servability. /// - [pbr::OriginalName("PER_YEAR")] PerYear = 6, + [pbr::OriginalName("LIMITED")] Limited = 6, /// - /// Per night. + /// The asset group is pending approval and may serve in the future. /// - [pbr::OriginalName("PER_NIGHT")] PerNight = 7, + [pbr::OriginalName("PENDING")] Pending = 7, } } diff --git a/Google.Ads.GoogleAds/src/V12/CampaignPrimaryStatus.g.cs b/Google.Ads.GoogleAds/src/V14/AssetGroupPrimaryStatusReason.g.cs similarity index 60% rename from Google.Ads.GoogleAds/src/V12/CampaignPrimaryStatus.g.cs rename to Google.Ads.GoogleAds/src/V14/AssetGroupPrimaryStatusReason.g.cs index 746cabb57..c7b3cfa5f 100755 --- a/Google.Ads.GoogleAds/src/V12/CampaignPrimaryStatus.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AssetGroupPrimaryStatusReason.g.cs @@ -1,6 +1,6 @@ // // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/campaign_primary_status.proto +// source: google/ads/googleads/v14/enums/asset_group_primary_status_reason.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code @@ -9,38 +9,41 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { +namespace Google.Ads.GoogleAds.V14.Enums { - /// Holder for reflection information generated from google/ads/googleads/v12/enums/campaign_primary_status.proto - public static partial class CampaignPrimaryStatusReflection { + /// Holder for reflection information generated from google/ads/googleads/v14/enums/asset_group_primary_status_reason.proto + public static partial class AssetGroupPrimaryStatusReasonReflection { #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/campaign_primary_status.proto + /// File descriptor for google/ads/googleads/v14/enums/asset_group_primary_status_reason.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; - static CampaignPrimaryStatusReflection() { + static AssetGroupPrimaryStatusReasonReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY2FtcGFpZ25fcHJp", - "bWFyeV9zdGF0dXMucHJvdG8SHmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5l", - "bnVtcyLSAQoZQ2FtcGFpZ25QcmltYXJ5U3RhdHVzRW51bSK0AQoVQ2FtcGFp", - "Z25QcmltYXJ5U3RhdHVzEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThAB", - "EgwKCEVMSUdJQkxFEAISCgoGUEFVU0VEEAMSCwoHUkVNT1ZFRBAEEgkKBUVO", - "REVEEAUSCwoHUEVORElORxAGEhEKDU1JU0NPTkZJR1VSRUQQBxILCgdMSU1J", - "VEVEEAgSDAoITEVBUk5JTkcQCRIQCgxOT1RfRUxJR0lCTEUQCkL0AQoiY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0IaQ2FtcGFpZ25Qcmlt", - "YXJ5U3RhdHVzUHJvdG9QAVpDZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxMi9lbnVtcztlbnVtc6ICA0dB", - "QaoCHkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5FbnVtc8oCHkdvb2dsZVxB", - "ZHNcR29vZ2xlQWRzXFYxMlxFbnVtc+oCIkdvb2dsZTo6QWRzOjpHb29nbGVB", - "ZHM6OlYxMjo6RW51bXNiBnByb3RvMw==")); + "CkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvYXNzZXRfZ3JvdXBf", + "cHJpbWFyeV9zdGF0dXNfcmVhc29uLnByb3RvEh5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZW51bXMivQIKIUFzc2V0R3JvdXBQcmltYXJ5U3RhdHVzUmVh", + "c29uRW51bSKXAgodQXNzZXRHcm91cFByaW1hcnlTdGF0dXNSZWFzb24SDwoL", + "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFgoSQVNTRVRfR1JPVVBfUEFV", + "U0VEEAISFwoTQVNTRVRfR1JPVVBfUkVNT1ZFRBADEhQKEENBTVBBSUdOX1JF", + "TU9WRUQQBBITCg9DQU1QQUlHTl9QQVVTRUQQBRIUChBDQU1QQUlHTl9QRU5E", + "SU5HEAYSEgoOQ0FNUEFJR05fRU5ERUQQBxIXChNBU1NFVF9HUk9VUF9MSU1J", + "VEVEEAgSGwoXQVNTRVRfR1JPVVBfRElTQVBQUk9WRUQQCRIcChhBU1NFVF9H", + "Uk9VUF9VTkRFUl9SRVZJRVcQCkL8AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5lbnVtc0IiQXNzZXRHcm91cFByaW1hcnlTdGF0dXNSZWFzb25Q", + "cm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlz", + "L2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xl", + "LkFkcy5Hb29nbGVBZHMuVjE0LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVB", + "ZHNcVjE0XEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpF", + "bnVtc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusEnum.Types.CampaignPrimaryStatus) }, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReasonEnum), global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReasonEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReasonEnum.Types.AssetGroupPrimaryStatusReason) }, null, null) })); } #endregion @@ -48,23 +51,23 @@ static CampaignPrimaryStatusReflection() { } #region Messages /// - /// Container for enum describing possible campaign primary status. + /// Container for enum describing possible asset group primary status reasons. /// - public sealed partial class CampaignPrimaryStatusEnum : pb::IMessage + public sealed partial class AssetGroupPrimaryStatusReasonEnum : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignPrimaryStatusEnum()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AssetGroupPrimaryStatusReasonEnum()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.CampaignPrimaryStatusReflection.Descriptor.MessageTypes[0]; } + get { return global::Google.Ads.GoogleAds.V14.Enums.AssetGroupPrimaryStatusReasonReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -75,7 +78,7 @@ public sealed partial class CampaignPrimaryStatusEnum : pb::IMessageContainer for nested types declared in the CampaignPrimaryStatusEnum message type. + /// Container for nested types declared in the AssetGroupPrimaryStatusReasonEnum message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Enum describing the possible campaign primary status. Provides insight into - /// why a campaign is not serving or not serving optimally. Modification to the - /// campaign and its related entities might take a while to be reflected in - /// this status. + /// Enum describing the possible asset group primary status reasons. Provides + /// reasons into why an asset group is not serving or not serving optimally. + /// It will be empty when the asset group is serving without issues. /// - public enum CampaignPrimaryStatus { + public enum AssetGroupPrimaryStatusReason { /// /// Not specified. /// @@ -221,44 +223,42 @@ public enum CampaignPrimaryStatus { /// [pbr::OriginalName("UNKNOWN")] Unknown = 1, /// - /// The campaign is eligible to serve. + /// The user-specified asset group status is paused. /// - [pbr::OriginalName("ELIGIBLE")] Eligible = 2, + [pbr::OriginalName("ASSET_GROUP_PAUSED")] AssetGroupPaused = 2, /// - /// The user-specified campaign status is paused. + /// The user-specified asset group status is removed. /// - [pbr::OriginalName("PAUSED")] Paused = 3, + [pbr::OriginalName("ASSET_GROUP_REMOVED")] AssetGroupRemoved = 3, /// /// The user-specified campaign status is removed. /// - [pbr::OriginalName("REMOVED")] Removed = 4, + [pbr::OriginalName("CAMPAIGN_REMOVED")] CampaignRemoved = 4, /// - /// The user-specified time for this campaign to end has passed. + /// The user-specified campaign status is paused. /// - [pbr::OriginalName("ENDED")] Ended = 5, + [pbr::OriginalName("CAMPAIGN_PAUSED")] CampaignPaused = 5, /// - /// The campaign may serve in the future. + /// The user-specified time for this campaign to start is in the future. /// - [pbr::OriginalName("PENDING")] Pending = 6, + [pbr::OriginalName("CAMPAIGN_PENDING")] CampaignPending = 6, /// - /// The campaign or its associated entities have incorrect user-specified - /// settings. + /// The user-specified time for this campaign to end has passed. /// - [pbr::OriginalName("MISCONFIGURED")] Misconfigured = 7, + [pbr::OriginalName("CAMPAIGN_ENDED")] CampaignEnded = 7, /// - /// The campaign or its associated entities are limited by user-specified - /// settings. + /// The asset group is approved but only serves in limited capacity due to + /// policies. /// - [pbr::OriginalName("LIMITED")] Limited = 8, + [pbr::OriginalName("ASSET_GROUP_LIMITED")] AssetGroupLimited = 8, /// - /// The automated bidding system is adjusting to user-specified changes to - /// the campaign or associated entities. + /// The asset group has been marked as disapproved. /// - [pbr::OriginalName("LEARNING")] Learning = 9, + [pbr::OriginalName("ASSET_GROUP_DISAPPROVED")] AssetGroupDisapproved = 9, /// - /// The campaign is not eligible to serve. + /// The asset group has not completed policy review. /// - [pbr::OriginalName("NOT_ELIGIBLE")] NotEligible = 10, + [pbr::OriginalName("ASSET_GROUP_UNDER_REVIEW")] AssetGroupUnderReview = 10, } } diff --git a/Google.Ads.GoogleAds/src/V14/AssetLinkError.g.cs b/Google.Ads.GoogleAds/src/V14/AssetLinkError.g.cs index fd25772a3..ec4630cd9 100755 --- a/Google.Ads.GoogleAds/src/V14/AssetLinkError.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AssetLinkError.g.cs @@ -26,7 +26,7 @@ static AssetLinkErrorReflection() { string.Concat( "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL2Fzc2V0X2xpbmtf", "ZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMi", - "oQcKEkFzc2V0TGlua0Vycm9yRW51bSKKBwoOQXNzZXRMaW5rRXJyb3ISDwoL", + "3AcKEkFzc2V0TGlua0Vycm9yRW51bSLFBwoOQXNzZXRMaW5rRXJyb3ISDwoL", "VU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESFwoTUElOTklOR19VTlNVUFBP", "UlRFRBACEhoKFlVOU1VQUE9SVEVEX0ZJRUxEX1RZUEUQAxIrCidGSUVMRF9U", "WVBFX0lOQ09NUEFUSUJMRV9XSVRIX0FTU0VUX1RZUEUQBBIuCipGSUVMRF9U", @@ -46,13 +46,14 @@ static AssetLinkErrorReflection() { "SUNBTExZX0NSRUFURURfTElOS1MQExIuCipDQU5OT1RfTElOS19UT19BVVRP", "TUFUSUNBTExZX0NSRUFURURfQVNTRVQQFBIjCh9DQU5OT1RfTU9ESUZZX0FT", "U0VUX0xJTktfU09VUkNFEBUSOQo1Q0FOTk9UX0xJTktfTE9DQVRJT05fTEVB", - "RF9GT1JNX1dJVEhPVVRfTE9DQVRJT05fQVNTRVQQFkLzAQojY29tLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnNCE0Fzc2V0TGlua0Vycm9yUHJv", - "dG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xl", - "LkFkcy5Hb29nbGVBZHMuVjE0LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xl", - "QWRzXFYxNFxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6", - "OkVycm9yc2IGcHJvdG8z")); + "RF9GT1JNX1dJVEhPVVRfTE9DQVRJT05fQVNTRVQQFhIZChVDVVNUT01FUl9O", + "T1RfVkVSSUZJRUQQFxIeChpVTlNVUFBPUlRFRF9DQUxMX1RPX0FDVElPThAY", + "QvMBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9yc0ITQXNz", + "ZXRMaW5rRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", + "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9ycztlcnJvcnOi", + "AgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuRXJyb3JzygIfR29v", + "Z2xlXEFkc1xHb29nbGVBZHNcVjE0XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpH", + "b29nbGVBZHM6OlYxNDo6RXJyb3JzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -335,6 +336,14 @@ public enum AssetLinkError { /// Customer/Campaign because there are no Location assets. /// [pbr::OriginalName("CANNOT_LINK_LOCATION_LEAD_FORM_WITHOUT_LOCATION_ASSET")] CannotLinkLocationLeadFormWithoutLocationAsset = 22, + /// + /// Customer is not verified. + /// + [pbr::OriginalName("CUSTOMER_NOT_VERIFIED")] CustomerNotVerified = 23, + /// + /// Call to action value is not supported. + /// + [pbr::OriginalName("UNSUPPORTED_CALL_TO_ACTION")] UnsupportedCallToAction = 24, } } diff --git a/Google.Ads.GoogleAds/src/V14/AssetPolicy.g.cs b/Google.Ads.GoogleAds/src/V14/AssetPolicy.g.cs index ad381cc95..c7fa4e637 100755 --- a/Google.Ads.GoogleAds/src/V14/AssetPolicy.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AssetPolicy.g.cs @@ -344,7 +344,6 @@ public void MergeFrom(pb::CodedInputStream input) { /// annotated with it. For instance, when the reason is ASSET_DISAPPROVED, the /// details field will contain additional information about the offline /// evaluation errors which led to the asset being disapproved. - /// Next Id: 4 /// public sealed partial class AssetLinkPrimaryStatusDetails : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -695,7 +694,6 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Details related to AssetLinkPrimaryStatusReasonPB.ASSET_DISAPPROVED - /// Next Id: 2 /// public sealed partial class AssetDisapproved : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/src/V14/AudienceInsightsService.g.cs b/Google.Ads.GoogleAds/src/V14/AudienceInsightsService.g.cs index c4cf57d43..e3660482f 100755 --- a/Google.Ads.GoogleAds/src/V14/AudienceInsightsService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AudienceInsightsService.g.cs @@ -1898,7 +1898,8 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Request message for [AudienceInsightsService.ListAudienceInsightsDates][]. + /// Request message for + /// [AudienceInsightsService.ListInsightsEligibleDates][google.ads.googleads.v14.services.AudienceInsightsService.ListInsightsEligibleDates]. /// public sealed partial class ListInsightsEligibleDatesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -2053,7 +2054,8 @@ public void MergeFrom(pb::CodedInputStream input) { } /// - /// Response message for [AudienceInsightsService.ListAudienceInsightsDates][]. + /// Response message for + /// [AudienceInsightsService.ListInsightsEligibleDates][google.ads.googleads.v14.services.AudienceInsightsService.ListInsightsEligibleDates]. /// public sealed partial class ListInsightsEligibleDatesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/src/V14/AuthenticationError.g.cs b/Google.Ads.GoogleAds/src/V14/AuthenticationError.g.cs index 8e32c565f..e5636dde2 100755 --- a/Google.Ads.GoogleAds/src/V14/AuthenticationError.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AuthenticationError.g.cs @@ -26,7 +26,7 @@ static AuthenticationErrorReflection() { string.Concat( "Cjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL2F1dGhlbnRpY2F0", "aW9uX2Vycm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJy", - "b3JzIugEChdBdXRoZW50aWNhdGlvbkVycm9yRW51bSLMBAoTQXV0aGVudGlj", + "b3JzIt4FChdBdXRoZW50aWNhdGlvbkVycm9yRW51bSLCBQoTQXV0aGVudGlj", "YXRpb25FcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIYChRB", "VVRIRU5USUNBVElPTl9FUlJPUhACEh4KGkNMSUVOVF9DVVNUT01FUl9JRF9J", "TlZBTElEEAUSFgoSQ1VTVE9NRVJfTk9UX0ZPVU5EEAgSGgoWR09PR0xFX0FD", @@ -39,13 +39,16 @@ static AuthenticationErrorReflection() { "VE9LRU5fUkVWT0tFRBASEh4KGk9BVVRIX1RPS0VOX0hFQURFUl9JTlZBTElE", "EBMSGAoUTE9HSU5fQ09PS0lFX0lOVkFMSUQQFBITCg9VU0VSX0lEX0lOVkFM", "SUQQFhImCiJUV09fU1RFUF9WRVJJRklDQVRJT05fTk9UX0VOUk9MTEVEEBcS", - "JAogQURWQU5DRURfUFJPVEVDVElPTl9OT1RfRU5ST0xMRUQQGEL4AQojY29t", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnNCGEF1dGhlbnRpY2F0", - "aW9uRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9n", - "b29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9ycztlcnJvcnOiAgNH", - "QUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuRXJyb3JzygIfR29vZ2xl", - "XEFkc1xHb29nbGVBZHNcVjE0XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29n", - "bGVBZHM6OlYxNDo6RXJyb3JzYgZwcm90bzM=")); + "JAogQURWQU5DRURfUFJPVEVDVElPTl9OT1RfRU5ST0xMRUQQGBIfChtPUkdB", + "TklaQVRJT05fTk9UX1JFQ09HTklaRUQQGhIdChlPUkdBTklaQVRJT05fTk9U", + "X0FQUFJPVkVEEBsSNAowT1JHQU5JWkFUSU9OX05PVF9BU1NPQ0lBVEVEX1dJ", + "VEhfREVWRUxPUEVSX1RPS0VOEBxC+AEKI2NvbS5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZXJyb3JzQhhBdXRoZW50aWNhdGlvbkVycm9yUHJvdG9QAVpF", + "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", + "Z2xlYWRzL3YxNC9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5H", + "b29nbGVBZHMuVjE0LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", + "NFxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkVycm9y", + "c2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -303,6 +306,20 @@ public enum AuthenticationError { /// Google account at https://landing.google.com/advancedprotection. /// [pbr::OriginalName("ADVANCED_PROTECTION_NOT_ENROLLED")] AdvancedProtectionNotEnrolled = 24, + /// + /// The Cloud organization associated with the project is not recognized. + /// + [pbr::OriginalName("ORGANIZATION_NOT_RECOGNIZED")] OrganizationNotRecognized = 26, + /// + /// The Cloud organization associated with the project is not approved for + /// prod access. + /// + [pbr::OriginalName("ORGANIZATION_NOT_APPROVED")] OrganizationNotApproved = 27, + /// + /// The Cloud organization associated with the project is not associated with + /// the developer token. + /// + [pbr::OriginalName("ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN")] OrganizationNotAssociatedWithDeveloperToken = 28, } } diff --git a/Google.Ads.GoogleAds/src/V14/AuthorizationError.g.cs b/Google.Ads.GoogleAds/src/V14/AuthorizationError.g.cs index a9b2b5ab3..55953af9e 100755 --- a/Google.Ads.GoogleAds/src/V14/AuthorizationError.g.cs +++ b/Google.Ads.GoogleAds/src/V14/AuthorizationError.g.cs @@ -26,7 +26,7 @@ static AuthorizationErrorReflection() { string.Concat( "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL2F1dGhvcml6YXRp", "b25fZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", - "cnMi9AMKFkF1dGhvcml6YXRpb25FcnJvckVudW0i2QMKEkF1dGhvcml6YXRp", + "cnMingQKFkF1dGhvcml6YXRpb25FcnJvckVudW0igwQKEkF1dGhvcml6YXRp", "b25FcnJvchIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIaChZVU0VS", "X1BFUk1JU1NJT05fREVOSUVEEAISJAogREVWRUxPUEVSX1RPS0VOX05PVF9P", "Tl9BTExPV0xJU1QQDRIeChpERVZFTE9QRVJfVE9LRU5fUFJPSElCSVRFRBAE", @@ -37,12 +37,13 @@ static AuthorizationErrorReflection() { "QUxJRF9MT0dJTl9DVVNUT01FUl9JRF9TRVJWSU5HX0NVU1RPTUVSX0lEX0NP", "TUJJTkFUSU9OEAsSGQoVU0VSVklDRV9BQ0NFU1NfREVOSUVEEAwSIgoeQUND", "RVNTX0RFTklFRF9GT1JfQUNDT1VOVF9UWVBFEBkSGAoUTUVUUklDX0FDQ0VT", - "U19ERU5JRUQQGkL3AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", - "cnJvcnNCF0F1dGhvcml6YXRpb25FcnJvclByb3RvUAFaRWdvb2dsZS5nb2xh", - "bmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQv", - "ZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYx", - "NC5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcRXJyb3Jz6gIj", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpFcnJvcnNiBnByb3RvMw==")); + "U19ERU5JRUQQGhIoCiRDTE9VRF9QUk9KRUNUX05PVF9VTkRFUl9PUkdBTkla", + "QVRJT04QG0L3AQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", + "cnNCF0F1dGhvcml6YXRpb25FcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcu", + "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvZXJy", + "b3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNC5F", + "cnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcRXJyb3Jz6gIjR29v", + "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpFcnJvcnNiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -289,6 +290,10 @@ public enum AuthorizationError { /// The developer does not have access to the metrics queried. /// [pbr::OriginalName("METRIC_ACCESS_DENIED")] MetricAccessDenied = 26, + /// + /// The Google Cloud project is not under the required organization. + /// + [pbr::OriginalName("CLOUD_PROJECT_NOT_UNDER_ORGANIZATION")] CloudProjectNotUnderOrganization = 27, } } diff --git a/Google.Ads.GoogleAds/src/V14/CallToActionType.g.cs b/Google.Ads.GoogleAds/src/V14/CallToActionType.g.cs index f0f653768..5f499033a 100755 --- a/Google.Ads.GoogleAds/src/V14/CallToActionType.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CallToActionType.g.cs @@ -26,17 +26,19 @@ static CallToActionTypeReflection() { string.Concat( "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvY2FsbF90b19hY3Rp", "b25fdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1z", - "Is0BChRDYWxsVG9BY3Rpb25UeXBlRW51bSK0AQoQQ2FsbFRvQWN0aW9uVHlw", + "IsMCChRDYWxsVG9BY3Rpb25UeXBlRW51bSKqAgoQQ2FsbFRvQWN0aW9uVHlw", "ZRIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIOCgpMRUFSTl9NT1JF", "EAISDQoJR0VUX1FVT1RFEAMSDQoJQVBQTFlfTk9XEAQSCwoHU0lHTl9VUBAF", "Eg4KCkNPTlRBQ1RfVVMQBhINCglTVUJTQ1JJQkUQBxIMCghET1dOTE9BRBAI", - "EgwKCEJPT0tfTk9XEAkSDAoIU0hPUF9OT1cQCkLvAQoiY29tLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5lbnVtc0IVQ2FsbFRvQWN0aW9uVHlwZVByb3Rv", - "UAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", - "L2dvb2dsZWFkcy92MTQvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRz", - "Lkdvb2dsZUFkcy5WMTQuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xW", - "MTRcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkVudW1z", - "YgZwcm90bzM=")); + "EgwKCEJPT0tfTk9XEAkSDAoIU0hPUF9OT1cQChILCgdCVVlfTk9XEAsSDgoK", + "RE9OQVRFX05PVxAMEg0KCU9SREVSX05PVxANEgwKCFBMQVlfTk9XEA4SDAoI", + "U0VFX01PUkUQDxINCglTVEFSVF9OT1cQEBIOCgpWSVNJVF9TSVRFEBESDQoJ", + "V0FUQ0hfTk9XEBJC7wEKImNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "ZW51bXNCFUNhbGxUb0FjdGlvblR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5n", + "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L2Vu", + "dW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0LkVu", + "dW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XEVudW1z6gIiR29vZ2xl", + "OjpBZHM6Okdvb2dsZUFkczo6VjE0OjpFbnVtc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -253,6 +255,38 @@ public enum CallToActionType { /// The call to action type is shop now. /// [pbr::OriginalName("SHOP_NOW")] ShopNow = 10, + /// + /// The call to action type is buy now. + /// + [pbr::OriginalName("BUY_NOW")] BuyNow = 11, + /// + /// The call to action type is donate now. + /// + [pbr::OriginalName("DONATE_NOW")] DonateNow = 12, + /// + /// The call to action type is order now. + /// + [pbr::OriginalName("ORDER_NOW")] OrderNow = 13, + /// + /// The call to action type is play now. + /// + [pbr::OriginalName("PLAY_NOW")] PlayNow = 14, + /// + /// The call to action type is see more. + /// + [pbr::OriginalName("SEE_MORE")] SeeMore = 15, + /// + /// The call to action type is start now. + /// + [pbr::OriginalName("START_NOW")] StartNow = 16, + /// + /// The call to action type is visit site. + /// + [pbr::OriginalName("VISIT_SITE")] VisitSite = 17, + /// + /// The call to action type is watch now. + /// + [pbr::OriginalName("WATCH_NOW")] WatchNow = 18, } } diff --git a/Google.Ads.GoogleAds/src/V14/Campaign.g.cs b/Google.Ads.GoogleAds/src/V14/Campaign.g.cs index f7e8ba1f8..575a9d45f 100755 --- a/Google.Ads.GoogleAds/src/V14/Campaign.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Campaign.g.cs @@ -66,7 +66,7 @@ static CampaignReflection() { "NC9lbnVtcy92YW5pdHlfcGhhcm1hX2Rpc3BsYXlfdXJsX21vZGUucHJvdG8a", "N2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy92YW5pdHlfcGhhcm1h", "X3RleHQucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", - "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i90EKCENhbXBhaWduEkAKDXJl", + "GWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i30MKCENhbXBhaWduEkAKDXJl", "c291cmNlX25hbWUYASABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdvb2dsZWFw", "aXMuY29tL0NhbXBhaWduEhQKAmlkGDsgASgDQgPgQQNIAYgBARIRCgRuYW1l", "GDogASgJSAKIAQESbAoOcHJpbWFyeV9zdGF0dXMYUSABKA4yTy5nb29nbGUu", @@ -98,177 +98,182 @@ static CampaignReflection() { "Q2FtcGFpZ24uTG9jYWxTZXJ2aWNlc0NhbXBhaWduU2V0dGluZ3MSZQoYdHJh", "dmVsX2NhbXBhaWduX3NldHRpbmdzGFUgASgLMkMuZ29vZ2xlLmFkcy5nb29n", "bGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbi5UcmF2ZWxDYW1wYWlnblNl", - "dHRpbmdzEloKGXJlYWxfdGltZV9iaWRkaW5nX3NldHRpbmcYJyABKAsyNy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlJlYWxUaW1lQmlkZGlu", - "Z1NldHRpbmcSVgoQbmV0d29ya19zZXR0aW5ncxgOIAEoCzI8Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ24uTmV0d29ya1Nl", - "dHRpbmdzElkKDWhvdGVsX3NldHRpbmcYICABKAsyPS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWduLkhvdGVsU2V0dGluZ0lu", - "Zm9CA+BBBRJoChpkeW5hbWljX3NlYXJjaF9hZHNfc2V0dGluZxghIAEoCzJE", + "dHRpbmdzEmsKG2Rpc2NvdmVyeV9jYW1wYWlnbl9zZXR0aW5ncxhXIAEoCzJG", "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ24u", - "RHluYW1pY1NlYXJjaEFkc1NldHRpbmcSVgoQc2hvcHBpbmdfc2V0dGluZxgk", + "RGlzY292ZXJ5Q2FtcGFpZ25TZXR0aW5ncxJaChlyZWFsX3RpbWVfYmlkZGlu", + "Z19zZXR0aW5nGCcgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNv", + "bW1vbi5SZWFsVGltZUJpZGRpbmdTZXR0aW5nElYKEG5ldHdvcmtfc2V0dGlu", + "Z3MYDiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", + "LkNhbXBhaWduLk5ldHdvcmtTZXR0aW5ncxJZCg1ob3RlbF9zZXR0aW5nGCAg", + "ASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1w", + "YWlnbi5Ib3RlbFNldHRpbmdJbmZvQgPgQQUSaAoaZHluYW1pY19zZWFyY2hf", + "YWRzX3NldHRpbmcYISABKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "cmVzb3VyY2VzLkNhbXBhaWduLkR5bmFtaWNTZWFyY2hBZHNTZXR0aW5nElYK", + "EHNob3BwaW5nX3NldHRpbmcYJCABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQucmVzb3VyY2VzLkNhbXBhaWduLlNob3BwaW5nU2V0dGluZxJMChF0", + "YXJnZXRpbmdfc2V0dGluZxgrIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5jb21tb24uVGFyZ2V0aW5nU2V0dGluZxJgChBhdWRpZW5jZV9zZXR0", + "aW5nGEkgASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", + "cy5DYW1wYWlnbi5BdWRpZW5jZVNldHRpbmdCA+BBBUgEiAEBEmIKF2dlb190", + "YXJnZXRfdHlwZV9zZXR0aW5nGC8gASgLMkEuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbi5HZW9UYXJnZXRUeXBlU2V0dGlu", + "ZxJhChZsb2NhbF9jYW1wYWlnbl9zZXR0aW5nGDIgASgLMkEuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbi5Mb2NhbENhbXBh", + "aWduU2V0dGluZxJdChRhcHBfY2FtcGFpZ25fc2V0dGluZxgzIAEoCzI/Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ24uQXBw", + "Q2FtcGFpZ25TZXR0aW5nEj4KBmxhYmVscxg9IAMoCUIu4EED+kEoCiZnb29n", + "bGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25MYWJlbBJvCg9leHBlcmlt", + "ZW50X3R5cGUYESABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51", + "bXMuQ2FtcGFpZ25FeHBlcmltZW50VHlwZUVudW0uQ2FtcGFpZ25FeHBlcmlt", + "ZW50VHlwZUID4EEDEkUKDWJhc2VfY2FtcGFpZ24YOCABKAlCKeBBA/pBIwoh", + "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduSAWIAQESSgoPY2Ft", + "cGFpZ25fYnVkZ2V0GD4gASgJQiz6QSkKJ2dvb2dsZWFkcy5nb29nbGVhcGlz", + "LmNvbS9DYW1wYWlnbkJ1ZGdldEgGiAEBEm8KFWJpZGRpbmdfc3RyYXRlZ3lf", + "dHlwZRgWIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5C", + "aWRkaW5nU3RyYXRlZ3lUeXBlRW51bS5CaWRkaW5nU3RyYXRlZ3lUeXBlQgPg", + "QQMSXwobYWNjZXNzaWJsZV9iaWRkaW5nX3N0cmF0ZWd5GEcgASgJQjrgQQP6", + "QTQKMmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9BY2Nlc3NpYmxlQmlkZGlu", + "Z1N0cmF0ZWd5EhcKCnN0YXJ0X2RhdGUYPyABKAlIB4gBARJICg5jYW1wYWln", + "bl9ncm91cBhMIAEoCUIr+kEoCiZnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", + "Q2FtcGFpZ25Hcm91cEgIiAEBEhUKCGVuZF9kYXRlGEAgASgJSAmIAQESHQoQ", + "ZmluYWxfdXJsX3N1ZmZpeBhBIAEoCUgKiAEBEkoKDmZyZXF1ZW5jeV9jYXBz", + "GCggAygLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5GcmVx", + "dWVuY3lDYXBFbnRyeRJ+Ch52aWRlb19icmFuZF9zYWZldHlfc3VpdGFiaWxp", + "dHkYKiABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQnJh", + "bmRTYWZldHlTdWl0YWJpbGl0eUVudW0uQnJhbmRTYWZldHlTdWl0YWJpbGl0", + "eUID4EEDElAKDXZhbml0eV9waGFybWEYLCABKAsyOS5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWduLlZhbml0eVBoYXJtYRJi", + "ChZzZWxlY3RpdmVfb3B0aW1pemF0aW9uGC0gASgLMkIuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbi5TZWxlY3RpdmVPcHRp", + "bWl6YXRpb24SZwoZb3B0aW1pemF0aW9uX2dvYWxfc2V0dGluZxg2IAEoCzJE", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ24u", + "T3B0aW1pemF0aW9uR29hbFNldHRpbmcSWwoQdHJhY2tpbmdfc2V0dGluZxgu", "IAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2Ft", - "cGFpZ24uU2hvcHBpbmdTZXR0aW5nEkwKEXRhcmdldGluZ19zZXR0aW5nGCsg", - "ASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5UYXJnZXRp", - "bmdTZXR0aW5nEmAKEGF1ZGllbmNlX3NldHRpbmcYSSABKAsyPC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWduLkF1ZGllbmNl", - "U2V0dGluZ0ID4EEFSASIAQESYgoXZ2VvX3RhcmdldF90eXBlX3NldHRpbmcY", - "LyABKAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNh", - "bXBhaWduLkdlb1RhcmdldFR5cGVTZXR0aW5nEmEKFmxvY2FsX2NhbXBhaWdu", - "X3NldHRpbmcYMiABKAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzLkNhbXBhaWduLkxvY2FsQ2FtcGFpZ25TZXR0aW5nEl0KFGFwcF9j", - "YW1wYWlnbl9zZXR0aW5nGDMgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5DYW1wYWlnbi5BcHBDYW1wYWlnblNldHRpbmcSPgoG", - "bGFiZWxzGD0gAygJQi7gQQP6QSgKJmdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bS9DYW1wYWlnbkxhYmVsEm8KD2V4cGVyaW1lbnRfdHlwZRgRIAEoDjJRLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5DYW1wYWlnbkV4cGVyaW1l", - "bnRUeXBlRW51bS5DYW1wYWlnbkV4cGVyaW1lbnRUeXBlQgPgQQMSRQoNYmFz", - "ZV9jYW1wYWlnbhg4IAEoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBp", - "cy5jb20vQ2FtcGFpZ25IBYgBARJKCg9jYW1wYWlnbl9idWRnZXQYPiABKAlC", - "LPpBKQonZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduQnVkZ2V0", - "SAaIAQESbwoVYmlkZGluZ19zdHJhdGVneV90eXBlGBYgASgOMksuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkJpZGRpbmdTdHJhdGVneVR5cGVF", - "bnVtLkJpZGRpbmdTdHJhdGVneVR5cGVCA+BBAxJfChthY2Nlc3NpYmxlX2Jp", - "ZGRpbmdfc3RyYXRlZ3kYRyABKAlCOuBBA/pBNAoyZ29vZ2xlYWRzLmdvb2ds", - "ZWFwaXMuY29tL0FjY2Vzc2libGVCaWRkaW5nU3RyYXRlZ3kSFwoKc3RhcnRf", - "ZGF0ZRg/IAEoCUgHiAEBEkgKDmNhbXBhaWduX2dyb3VwGEwgASgJQiv6QSgK", - "Jmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbkdyb3VwSAiIAQES", - "FQoIZW5kX2RhdGUYQCABKAlICYgBARIdChBmaW5hbF91cmxfc3VmZml4GEEg", - "ASgJSAqIAQESSgoOZnJlcXVlbmN5X2NhcHMYKCADKAsyMi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuY29tbW9uLkZyZXF1ZW5jeUNhcEVudHJ5En4KHnZp", - "ZGVvX2JyYW5kX3NhZmV0eV9zdWl0YWJpbGl0eRgqIAEoDjJRLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5CcmFuZFNhZmV0eVN1aXRhYmlsaXR5", - "RW51bS5CcmFuZFNhZmV0eVN1aXRhYmlsaXR5QgPgQQMSUAoNdmFuaXR5X3Bo", - "YXJtYRgsIAEoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", - "ZXMuQ2FtcGFpZ24uVmFuaXR5UGhhcm1hEmIKFnNlbGVjdGl2ZV9vcHRpbWl6", - "YXRpb24YLSABKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", - "Y2VzLkNhbXBhaWduLlNlbGVjdGl2ZU9wdGltaXphdGlvbhJnChlvcHRpbWl6", - "YXRpb25fZ29hbF9zZXR0aW5nGDYgASgLMkQuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbi5PcHRpbWl6YXRpb25Hb2FsU2V0", - "dGluZxJbChB0cmFja2luZ19zZXR0aW5nGC4gASgLMjwuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbi5UcmFja2luZ1NldHRp", - "bmdCA+BBAxJRCgxwYXltZW50X21vZGUYNCABKA4yOy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuZW51bXMuUGF5bWVudE1vZGVFbnVtLlBheW1lbnRNb2Rl", - "EiQKEm9wdGltaXphdGlvbl9zY29yZRhCIAEoAUID4EEDSAuIAQESbAohZXhj", - "bHVkZWRfcGFyZW50X2Fzc2V0X2ZpZWxkX3R5cGVzGEUgAygOMkEuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkFzc2V0RmllbGRUeXBlRW51bS5B", - "c3NldEZpZWxkVHlwZRJmCh9leGNsdWRlZF9wYXJlbnRfYXNzZXRfc2V0X3R5", - "cGVzGFAgAygOMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkFz", - "c2V0U2V0VHlwZUVudW0uQXNzZXRTZXRUeXBlEiIKFXVybF9leHBhbnNpb25f", - "b3B0X291dBhIIAEoCEgMiAEBEmgKF3BlcmZvcm1hbmNlX21heF91cGdyYWRl", - "GE0gASgLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5D", - "YW1wYWlnbi5QZXJmb3JtYW5jZU1heFVwZ3JhZGVCA+BBAxJQChhob3RlbF9w", - "cm9wZXJ0eV9hc3NldF9zZXQYUyABKAlCKeBBBfpBIwohZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0Fzc2V0U2V0SA2IAQESWwoMbGlzdGluZ190eXBlGFYg", - "ASgOMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkxpc3RpbmdU", - "eXBlRW51bS5MaXN0aW5nVHlwZUID4EEFSA6IAQESSQoQYmlkZGluZ19zdHJh", - "dGVneRhDIAEoCUIt+kEqCihnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQmlk", - "ZGluZ1N0cmF0ZWd5SAASQQoKY29tbWlzc2lvbhgxIAEoCzIrLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uQ29tbWlzc2lvbkgAEkAKCm1hbnVh", - "bF9jcGEYSiABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9u", - "Lk1hbnVhbENwYUgAEkAKCm1hbnVhbF9jcGMYGCABKAsyKi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuY29tbW9uLk1hbnVhbENwY0gAEkAKCm1hbnVhbF9j", - "cG0YGSABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLk1h", - "bnVhbENwbUgAEkUKCm1hbnVhbF9jcHYYJSABKAsyKi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuY29tbW9uLk1hbnVhbENwdkID4EEDSAASVAoUbWF4aW1p", - "emVfY29udmVyc2lvbnMYHiABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuY29tbW9uLk1heGltaXplQ29udmVyc2lvbnNIABJdChltYXhpbWl6ZV9j", - "b252ZXJzaW9uX3ZhbHVlGB8gASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LmNvbW1vbi5NYXhpbWl6ZUNvbnZlcnNpb25WYWx1ZUgAEkAKCnRhcmdl", - "dF9jcGEYGiABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9u", - "LlRhcmdldENwYUgAElkKF3RhcmdldF9pbXByZXNzaW9uX3NoYXJlGDAgASgL", - "MjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5UYXJnZXRJbXBy", - "ZXNzaW9uU2hhcmVIABJCCgt0YXJnZXRfcm9hcxgdIAEoCzIrLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uVGFyZ2V0Um9hc0gAEkQKDHRhcmdl", - "dF9zcGVuZBgbIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21t", - "b24uVGFyZ2V0U3BlbmRIABJCCgtwZXJjZW50X2NwYxgiIAEoCzIrLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uUGVyY2VudENwY0gAEkAKCnRh", - "cmdldF9jcG0YKSABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29t", - "bW9uLlRhcmdldENwbUgAGp8CChVQZXJmb3JtYW5jZU1heFVwZ3JhZGUSSwoY", - "cGVyZm9ybWFuY2VfbWF4X2NhbXBhaWduGAEgASgJQingQQP6QSMKIWdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbhJHChRwcmVfdXBncmFkZV9j", - "YW1wYWlnbhgCIAEoCUIp4EED+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5j", - "b20vQ2FtcGFpZ24ScAoGc3RhdHVzGAMgASgOMlsuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVudW1zLlBlcmZvcm1hbmNlTWF4VXBncmFkZVN0YXR1c0Vu", - "dW0uUGVyZm9ybWFuY2VNYXhVcGdyYWRlU3RhdHVzQgPgQQMamQIKD05ldHdv", - "cmtTZXR0aW5ncxIhChR0YXJnZXRfZ29vZ2xlX3NlYXJjaBgFIAEoCEgAiAEB", - "EiIKFXRhcmdldF9zZWFyY2hfbmV0d29yaxgGIAEoCEgBiAEBEiMKFnRhcmdl", - "dF9jb250ZW50X25ldHdvcmsYByABKAhIAogBARIqCh10YXJnZXRfcGFydG5l", - "cl9zZWFyY2hfbmV0d29yaxgIIAEoCEgDiAEBQhcKFV90YXJnZXRfZ29vZ2xl", - "X3NlYXJjaEIYChZfdGFyZ2V0X3NlYXJjaF9uZXR3b3JrQhkKF190YXJnZXRf", - "Y29udGVudF9uZXR3b3JrQiAKHl90YXJnZXRfcGFydG5lcl9zZWFyY2hfbmV0", - "d29yaxpJChBIb3RlbFNldHRpbmdJbmZvEiEKD2hvdGVsX2NlbnRlcl9pZBgC", - "IAEoA0ID4EEFSACIAQFCEgoQX2hvdGVsX2NlbnRlcl9pZBrCAQoXRHluYW1p", - "Y1NlYXJjaEFkc1NldHRpbmcSGAoLZG9tYWluX25hbWUYBiABKAlCA+BBAhIa", - "Cg1sYW5ndWFnZV9jb2RlGAcgASgJQgPgQQISIwoWdXNlX3N1cHBsaWVkX3Vy", - "bHNfb25seRgIIAEoCEgAiAEBEjEKBWZlZWRzGAkgAygJQiL6QR8KHWdvb2ds", - "ZWFkcy5nb29nbGVhcGlzLmNvbS9GZWVkQhkKF191c2Vfc3VwcGxpZWRfdXJs", - "c19vbmx5GogCCg9TaG9wcGluZ1NldHRpbmcSHQoLbWVyY2hhbnRfaWQYBSAB", - "KANCA+BBBUgAiAEBEhoKDXNhbGVzX2NvdW50cnkYBiABKAlIAYgBARISCgpm", - "ZWVkX2xhYmVsGAogASgJEh4KEWNhbXBhaWduX3ByaW9yaXR5GAcgASgFSAKI", - "AQESGQoMZW5hYmxlX2xvY2FsGAggASgISAOIAQESIgoVdXNlX3ZlaGljbGVf", - "aW52ZW50b3J5GAkgASgIQgPgQQVCDgoMX21lcmNoYW50X2lkQhAKDl9zYWxl", - "c19jb3VudHJ5QhQKEl9jYW1wYWlnbl9wcmlvcml0eUIPCg1fZW5hYmxlX2xv", - "Y2FsGkIKD1RyYWNraW5nU2V0dGluZxIeCgx0cmFja2luZ191cmwYAiABKAlC", - "A+BBA0gAiAEBQg8KDV90cmFja2luZ191cmwa/AEKFEdlb1RhcmdldFR5cGVT", - "ZXR0aW5nEnEKGHBvc2l0aXZlX2dlb190YXJnZXRfdHlwZRgBIAEoDjJPLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Qb3NpdGl2ZUdlb1Rhcmdl", - "dFR5cGVFbnVtLlBvc2l0aXZlR2VvVGFyZ2V0VHlwZRJxChhuZWdhdGl2ZV9n", - "ZW9fdGFyZ2V0X3R5cGUYAiABKA4yTy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuZW51bXMuTmVnYXRpdmVHZW9UYXJnZXRUeXBlRW51bS5OZWdhdGl2ZUdl", - "b1RhcmdldFR5cGUafwoUTG9jYWxDYW1wYWlnblNldHRpbmcSZwoUbG9jYXRp", - "b25fc291cmNlX3R5cGUYASABKA4ySS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuZW51bXMuTG9jYXRpb25Tb3VyY2VUeXBlRW51bS5Mb2NhdGlvblNvdXJj", - "ZVR5cGUargIKEkFwcENhbXBhaWduU2V0dGluZxKNAQoaYmlkZGluZ19zdHJh", - "dGVneV9nb2FsX3R5cGUYASABKA4yaS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuZW51bXMuQXBwQ2FtcGFpZ25CaWRkaW5nU3RyYXRlZ3lHb2FsVHlwZUVu", - "dW0uQXBwQ2FtcGFpZ25CaWRkaW5nU3RyYXRlZ3lHb2FsVHlwZRIYCgZhcHBf", - "aWQYBCABKAlCA+BBBUgAiAEBEmMKCWFwcF9zdG9yZRgDIAEoDjJLLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5BcHBDYW1wYWlnbkFwcFN0b3Jl", - "RW51bS5BcHBDYW1wYWlnbkFwcFN0b3JlQgPgQQVCCQoHX2FwcF9pZBr1AQoM", - "VmFuaXR5UGhhcm1hEoEBCh52YW5pdHlfcGhhcm1hX2Rpc3BsYXlfdXJsX21v", - "ZGUYASABKA4yWS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuVmFu", - "aXR5UGhhcm1hRGlzcGxheVVybE1vZGVFbnVtLlZhbml0eVBoYXJtYURpc3Bs", - "YXlVcmxNb2RlEmEKEnZhbml0eV9waGFybWFfdGV4dBgCIAEoDjJFLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5WYW5pdHlQaGFybWFUZXh0RW51", - "bS5WYW5pdHlQaGFybWFUZXh0GmMKFVNlbGVjdGl2ZU9wdGltaXphdGlvbhJK", - "ChJjb252ZXJzaW9uX2FjdGlvbnMYAiADKAlCLvpBKwopZ29vZ2xlYWRzLmdv", - "b2dsZWFwaXMuY29tL0NvbnZlcnNpb25BY3Rpb24aiQEKF09wdGltaXphdGlv", - "bkdvYWxTZXR0aW5nEm4KF29wdGltaXphdGlvbl9nb2FsX3R5cGVzGAEgAygO", - "Mk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLk9wdGltaXphdGlv", - "bkdvYWxUeXBlRW51bS5PcHRpbWl6YXRpb25Hb2FsVHlwZRpSCg9BdWRpZW5j", - "ZVNldHRpbmcSJgoUdXNlX2F1ZGllbmNlX2dyb3VwZWQYASABKAhCA+BBBUgA", - "iAEBQhcKFV91c2VfYXVkaWVuY2VfZ3JvdXBlZBpwCh1Mb2NhbFNlcnZpY2Vz", - "Q2FtcGFpZ25TZXR0aW5ncxJPCg1jYXRlZ29yeV9iaWRzGAEgAygLMjguZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbi5DYXRl", - "Z29yeUJpZBp1CgtDYXRlZ29yeUJpZBIYCgtjYXRlZ29yeV9pZBgBIAEoCUgA", - "iAEBEiIKFW1hbnVhbF9jcGFfYmlkX21pY3JvcxgCIAEoA0gBiAEBQg4KDF9j", - "YXRlZ29yeV9pZEIYChZfbWFudWFsX2NwYV9iaWRfbWljcm9zGlMKFlRyYXZl", - "bENhbXBhaWduU2V0dGluZ3MSIwoRdHJhdmVsX2FjY291bnRfaWQYASABKANC", - "A+BBBUgAiAEBQhQKEl90cmF2ZWxfYWNjb3VudF9pZDpX6kFUCiFnb29nbGVh", - "ZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ24SL2N1c3RvbWVycy97Y3VzdG9t", - "ZXJfaWR9L2NhbXBhaWducy97Y2FtcGFpZ25faWR9QhsKGWNhbXBhaWduX2Jp", - "ZGRpbmdfc3RyYXRlZ3lCBQoDX2lkQgcKBV9uYW1lQhgKFl90cmFja2luZ191", - "cmxfdGVtcGxhdGVCEwoRX2F1ZGllbmNlX3NldHRpbmdCEAoOX2Jhc2VfY2Ft", - "cGFpZ25CEgoQX2NhbXBhaWduX2J1ZGdldEINCgtfc3RhcnRfZGF0ZUIRCg9f", - "Y2FtcGFpZ25fZ3JvdXBCCwoJX2VuZF9kYXRlQhMKEV9maW5hbF91cmxfc3Vm", - "Zml4QhUKE19vcHRpbWl6YXRpb25fc2NvcmVCGAoWX3VybF9leHBhbnNpb25f", - "b3B0X291dEIbChlfaG90ZWxfcHJvcGVydHlfYXNzZXRfc2V0Qg8KDV9saXN0", - "aW5nX3R5cGVC/wEKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzQg1DYW1wYWlnblByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2Vz", - "O3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNC5S", - "ZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcUmVzb3VyY2Vz", - "6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpSZXNvdXJjZXNiBnBy", - "b3RvMw==")); + "cGFpZ24uVHJhY2tpbmdTZXR0aW5nQgPgQQMSUQoMcGF5bWVudF9tb2RlGDQg", + "ASgOMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlBheW1lbnRN", + "b2RlRW51bS5QYXltZW50TW9kZRIkChJvcHRpbWl6YXRpb25fc2NvcmUYQiAB", + "KAFCA+BBA0gLiAEBEmwKIWV4Y2x1ZGVkX3BhcmVudF9hc3NldF9maWVsZF90", + "eXBlcxhFIAMoDjJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5B", + "c3NldEZpZWxkVHlwZUVudW0uQXNzZXRGaWVsZFR5cGUSZgofZXhjbHVkZWRf", + "cGFyZW50X2Fzc2V0X3NldF90eXBlcxhQIAMoDjI9Lmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5lbnVtcy5Bc3NldFNldFR5cGVFbnVtLkFzc2V0U2V0VHlw", + "ZRIiChV1cmxfZXhwYW5zaW9uX29wdF9vdXQYSCABKAhIDIgBARJoChdwZXJm", + "b3JtYW5jZV9tYXhfdXBncmFkZRhNIAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ24uUGVyZm9ybWFuY2VNYXhVcGdy", + "YWRlQgPgQQMSUAoYaG90ZWxfcHJvcGVydHlfYXNzZXRfc2V0GFMgASgJQing", + "QQX6QSMKIWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Bc3NldFNldEgNiAEB", + "ElsKDGxpc3RpbmdfdHlwZRhWIAEoDjI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5lbnVtcy5MaXN0aW5nVHlwZUVudW0uTGlzdGluZ1R5cGVCA+BBBUgO", + "iAEBEkkKEGJpZGRpbmdfc3RyYXRlZ3kYQyABKAlCLfpBKgooZ29vZ2xlYWRz", + "Lmdvb2dsZWFwaXMuY29tL0JpZGRpbmdTdHJhdGVneUgAEkEKCmNvbW1pc3Np", + "b24YMSABKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkNv", + "bW1pc3Npb25IABJACgptYW51YWxfY3BhGEogASgLMiouZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmNvbW1vbi5NYW51YWxDcGFIABJACgptYW51YWxfY3Bj", + "GBggASgLMiouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5NYW51", + "YWxDcGNIABJACgptYW51YWxfY3BtGBkgASgLMiouZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmNvbW1vbi5NYW51YWxDcG1IABJACgptYW51YWxfY3B2GCUg", + "ASgLMiouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5NYW51YWxD", + "cHZIABJUChRtYXhpbWl6ZV9jb252ZXJzaW9ucxgeIAEoCzI0Lmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uTWF4aW1pemVDb252ZXJzaW9uc0gA", + "El0KGW1heGltaXplX2NvbnZlcnNpb25fdmFsdWUYHyABKAsyOC5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLk1heGltaXplQ29udmVyc2lvblZh", + "bHVlSAASQAoKdGFyZ2V0X2NwYRgaIAEoCzIqLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5jb21tb24uVGFyZ2V0Q3BhSAASWQoXdGFyZ2V0X2ltcHJlc3Np", + "b25fc2hhcmUYMCABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29t", + "bW9uLlRhcmdldEltcHJlc3Npb25TaGFyZUgAEkIKC3RhcmdldF9yb2FzGB0g", + "ASgLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5UYXJnZXRS", + "b2FzSAASRAoMdGFyZ2V0X3NwZW5kGBsgASgLMiwuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmNvbW1vbi5UYXJnZXRTcGVuZEgAEkIKC3BlcmNlbnRfY3Bj", + "GCIgASgLMisuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5QZXJj", + "ZW50Q3BjSAASQAoKdGFyZ2V0X2NwbRgpIAEoCzIqLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5jb21tb24uVGFyZ2V0Q3BtSAAanwIKFVBlcmZvcm1hbmNl", + "TWF4VXBncmFkZRJLChhwZXJmb3JtYW5jZV9tYXhfY2FtcGFpZ24YASABKAlC", + "KeBBA/pBIwohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduEkcK", + "FHByZV91cGdyYWRlX2NhbXBhaWduGAIgASgJQingQQP6QSMKIWdvb2dsZWFk", + "cy5nb29nbGVhcGlzLmNvbS9DYW1wYWlnbhJwCgZzdGF0dXMYAyABKA4yWy5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuUGVyZm9ybWFuY2VNYXhV", + "cGdyYWRlU3RhdHVzRW51bS5QZXJmb3JtYW5jZU1heFVwZ3JhZGVTdGF0dXNC", + "A+BBAxqZAgoPTmV0d29ya1NldHRpbmdzEiEKFHRhcmdldF9nb29nbGVfc2Vh", + "cmNoGAUgASgISACIAQESIgoVdGFyZ2V0X3NlYXJjaF9uZXR3b3JrGAYgASgI", + "SAGIAQESIwoWdGFyZ2V0X2NvbnRlbnRfbmV0d29yaxgHIAEoCEgCiAEBEioK", + "HXRhcmdldF9wYXJ0bmVyX3NlYXJjaF9uZXR3b3JrGAggASgISAOIAQFCFwoV", + "X3RhcmdldF9nb29nbGVfc2VhcmNoQhgKFl90YXJnZXRfc2VhcmNoX25ldHdv", + "cmtCGQoXX3RhcmdldF9jb250ZW50X25ldHdvcmtCIAoeX3RhcmdldF9wYXJ0", + "bmVyX3NlYXJjaF9uZXR3b3JrGkkKEEhvdGVsU2V0dGluZ0luZm8SIQoPaG90", + "ZWxfY2VudGVyX2lkGAIgASgDQgPgQQVIAIgBAUISChBfaG90ZWxfY2VudGVy", + "X2lkGsIBChdEeW5hbWljU2VhcmNoQWRzU2V0dGluZxIYCgtkb21haW5fbmFt", + "ZRgGIAEoCUID4EECEhoKDWxhbmd1YWdlX2NvZGUYByABKAlCA+BBAhIjChZ1", + "c2Vfc3VwcGxpZWRfdXJsc19vbmx5GAggASgISACIAQESMQoFZmVlZHMYCSAD", + "KAlCIvpBHwodZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0ZlZWRCGQoXX3Vz", + "ZV9zdXBwbGllZF91cmxzX29ubHkargIKD1Nob3BwaW5nU2V0dGluZxIdCgtt", + "ZXJjaGFudF9pZBgFIAEoA0ID4EEFSACIAQESGgoNc2FsZXNfY291bnRyeRgG", + "IAEoCUgBiAEBEhIKCmZlZWRfbGFiZWwYCiABKAkSHgoRY2FtcGFpZ25fcHJp", + "b3JpdHkYByABKAVIAogBARIZCgxlbmFibGVfbG9jYWwYCCABKAhIA4gBARIi", + "ChV1c2VfdmVoaWNsZV9pbnZlbnRvcnkYCSABKAhCA+BBBRIkChdhZHZlcnRp", + "c2luZ19wYXJ0bmVyX2lkcxgLIAMoA0ID4EEFQg4KDF9tZXJjaGFudF9pZEIQ", + "Cg5fc2FsZXNfY291bnRyeUIUChJfY2FtcGFpZ25fcHJpb3JpdHlCDwoNX2Vu", + "YWJsZV9sb2NhbBpCCg9UcmFja2luZ1NldHRpbmcSHgoMdHJhY2tpbmdfdXJs", + "GAIgASgJQgPgQQNIAIgBAUIPCg1fdHJhY2tpbmdfdXJsGvwBChRHZW9UYXJn", + "ZXRUeXBlU2V0dGluZxJxChhwb3NpdGl2ZV9nZW9fdGFyZ2V0X3R5cGUYASAB", + "KA4yTy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuUG9zaXRpdmVH", + "ZW9UYXJnZXRUeXBlRW51bS5Qb3NpdGl2ZUdlb1RhcmdldFR5cGUScQoYbmVn", + "YXRpdmVfZ2VvX3RhcmdldF90eXBlGAIgASgOMk8uZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmVudW1zLk5lZ2F0aXZlR2VvVGFyZ2V0VHlwZUVudW0uTmVn", + "YXRpdmVHZW9UYXJnZXRUeXBlGn8KFExvY2FsQ2FtcGFpZ25TZXR0aW5nEmcK", + "FGxvY2F0aW9uX3NvdXJjZV90eXBlGAEgASgOMkkuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmVudW1zLkxvY2F0aW9uU291cmNlVHlwZUVudW0uTG9jYXRp", + "b25Tb3VyY2VUeXBlGq4CChJBcHBDYW1wYWlnblNldHRpbmcSjQEKGmJpZGRp", + "bmdfc3RyYXRlZ3lfZ29hbF90eXBlGAEgASgOMmkuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmVudW1zLkFwcENhbXBhaWduQmlkZGluZ1N0cmF0ZWd5R29h", + "bFR5cGVFbnVtLkFwcENhbXBhaWduQmlkZGluZ1N0cmF0ZWd5R29hbFR5cGUS", + "GAoGYXBwX2lkGAQgASgJQgPgQQVIAIgBARJjCglhcHBfc3RvcmUYAyABKA4y", + "Sy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQXBwQ2FtcGFpZ25B", + "cHBTdG9yZUVudW0uQXBwQ2FtcGFpZ25BcHBTdG9yZUID4EEFQgkKB19hcHBf", + "aWQa9QEKDFZhbml0eVBoYXJtYRKBAQoedmFuaXR5X3BoYXJtYV9kaXNwbGF5", + "X3VybF9tb2RlGAEgASgOMlkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVu", + "dW1zLlZhbml0eVBoYXJtYURpc3BsYXlVcmxNb2RlRW51bS5WYW5pdHlQaGFy", + "bWFEaXNwbGF5VXJsTW9kZRJhChJ2YW5pdHlfcGhhcm1hX3RleHQYAiABKA4y", + "RS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuVmFuaXR5UGhhcm1h", + "VGV4dEVudW0uVmFuaXR5UGhhcm1hVGV4dBpjChVTZWxlY3RpdmVPcHRpbWl6", + "YXRpb24SSgoSY29udmVyc2lvbl9hY3Rpb25zGAIgAygJQi76QSsKKWdvb2ds", + "ZWFkcy5nb29nbGVhcGlzLmNvbS9Db252ZXJzaW9uQWN0aW9uGokBChdPcHRp", + "bWl6YXRpb25Hb2FsU2V0dGluZxJuChdvcHRpbWl6YXRpb25fZ29hbF90eXBl", + "cxgBIAMoDjJNLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5PcHRp", + "bWl6YXRpb25Hb2FsVHlwZUVudW0uT3B0aW1pemF0aW9uR29hbFR5cGUaUgoP", + "QXVkaWVuY2VTZXR0aW5nEiYKFHVzZV9hdWRpZW5jZV9ncm91cGVkGAEgASgI", + "QgPgQQVIAIgBAUIXChVfdXNlX2F1ZGllbmNlX2dyb3VwZWQacAodTG9jYWxT", + "ZXJ2aWNlc0NhbXBhaWduU2V0dGluZ3MSTwoNY2F0ZWdvcnlfYmlkcxgBIAMo", + "CzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFp", + "Z24uQ2F0ZWdvcnlCaWQadQoLQ2F0ZWdvcnlCaWQSGAoLY2F0ZWdvcnlfaWQY", + "ASABKAlIAIgBARIiChVtYW51YWxfY3BhX2JpZF9taWNyb3MYAiABKANIAYgB", + "AUIOCgxfY2F0ZWdvcnlfaWRCGAoWX21hbnVhbF9jcGFfYmlkX21pY3JvcxpT", + "ChZUcmF2ZWxDYW1wYWlnblNldHRpbmdzEiMKEXRyYXZlbF9hY2NvdW50X2lk", + "GAEgASgDQgPgQQVIAIgBAUIUChJfdHJhdmVsX2FjY291bnRfaWQaWAoZRGlz", + "Y292ZXJ5Q2FtcGFpZ25TZXR0aW5ncxIkChJ1cGdyYWRlZF90YXJnZXRpbmcY", + "ASABKAhCA+BBBUgAiAEBQhUKE191cGdyYWRlZF90YXJnZXRpbmc6V+pBVAoh", + "Z29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0NhbXBhaWduEi9jdXN0b21lcnMv", + "e2N1c3RvbWVyX2lkfS9jYW1wYWlnbnMve2NhbXBhaWduX2lkfUIbChljYW1w", + "YWlnbl9iaWRkaW5nX3N0cmF0ZWd5QgUKA19pZEIHCgVfbmFtZUIYChZfdHJh", + "Y2tpbmdfdXJsX3RlbXBsYXRlQhMKEV9hdWRpZW5jZV9zZXR0aW5nQhAKDl9i", + "YXNlX2NhbXBhaWduQhIKEF9jYW1wYWlnbl9idWRnZXRCDQoLX3N0YXJ0X2Rh", + "dGVCEQoPX2NhbXBhaWduX2dyb3VwQgsKCV9lbmRfZGF0ZUITChFfZmluYWxf", + "dXJsX3N1ZmZpeEIVChNfb3B0aW1pemF0aW9uX3Njb3JlQhgKFl91cmxfZXhw", + "YW5zaW9uX29wdF9vdXRCGwoZX2hvdGVsX3Byb3BlcnR5X2Fzc2V0X3NldEIP", + "Cg1fbGlzdGluZ190eXBlQv8BCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnJlc291cmNlc0INQ2FtcGFpZ25Qcm90b1ABWktnb29nbGUuZ29sYW5n", + "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L3Jl", + "c291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFk", + "cy5WMTQuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XFJl", + "c291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNDo6UmVzb3Vy", + "Y2VzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.BiddingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.CustomParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.FrequencyCapReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.RealTimeBiddingSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.TargetingSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AdServingOptimizationStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AdvertisingChannelSubTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AdvertisingChannelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AppCampaignAppStoreReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AppCampaignBiddingStrategyGoalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetFieldTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AssetSetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.BiddingStrategySystemStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.BiddingStrategyTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.BrandSafetySuitabilityReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.CampaignExperimentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.CampaignPrimaryStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.CampaignPrimaryStatusReasonReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.CampaignServingStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.CampaignStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.LocationSourceTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.NegativeGeoTargetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.OptimizationGoalTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.PaymentModeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.PerformanceMaxUpgradeStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.PositiveGeoTargetTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.VanityPharmaDisplayUrlModeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.VanityPharmaTextReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Parser, new[]{ "ResourceName", "Id", "Name", "PrimaryStatus", "PrimaryStatusReasons", "Status", "ServingStatus", "BiddingStrategySystemStatus", "AdServingOptimizationStatus", "AdvertisingChannelType", "AdvertisingChannelSubType", "TrackingUrlTemplate", "UrlCustomParameters", "LocalServicesCampaignSettings", "TravelCampaignSettings", "RealTimeBiddingSetting", "NetworkSettings", "HotelSetting", "DynamicSearchAdsSetting", "ShoppingSetting", "TargetingSetting", "AudienceSetting", "GeoTargetTypeSetting", "LocalCampaignSetting", "AppCampaignSetting", "Labels", "ExperimentType", "BaseCampaign", "CampaignBudget", "BiddingStrategyType", "AccessibleBiddingStrategy", "StartDate", "CampaignGroup", "EndDate", "FinalUrlSuffix", "FrequencyCaps", "VideoBrandSafetySuitability", "VanityPharma", "SelectiveOptimization", "OptimizationGoalSetting", "TrackingSetting", "PaymentMode", "OptimizationScore", "ExcludedParentAssetFieldTypes", "ExcludedParentAssetSetTypes", "UrlExpansionOptOut", "PerformanceMaxUpgrade", "HotelPropertyAssetSet", "ListingType", "BiddingStrategy", "Commission", "ManualCpa", "ManualCpc", "ManualCpm", "ManualCpv", "MaximizeConversions", "MaximizeConversionValue", "TargetCpa", "TargetImpressionShare", "TargetRoas", "TargetSpend", "PercentCpc", "TargetCpm" }, new[]{ "CampaignBiddingStrategy", "Id", "Name", "TrackingUrlTemplate", "AudienceSetting", "BaseCampaign", "CampaignBudget", "StartDate", "CampaignGroup", "EndDate", "FinalUrlSuffix", "OptimizationScore", "UrlExpansionOptOut", "HotelPropertyAssetSet", "ListingType" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.PerformanceMaxUpgrade), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.PerformanceMaxUpgrade.Parser, new[]{ "PerformanceMaxCampaign", "PreUpgradeCampaign", "Status" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Parser, new[]{ "ResourceName", "Id", "Name", "PrimaryStatus", "PrimaryStatusReasons", "Status", "ServingStatus", "BiddingStrategySystemStatus", "AdServingOptimizationStatus", "AdvertisingChannelType", "AdvertisingChannelSubType", "TrackingUrlTemplate", "UrlCustomParameters", "LocalServicesCampaignSettings", "TravelCampaignSettings", "DiscoveryCampaignSettings", "RealTimeBiddingSetting", "NetworkSettings", "HotelSetting", "DynamicSearchAdsSetting", "ShoppingSetting", "TargetingSetting", "AudienceSetting", "GeoTargetTypeSetting", "LocalCampaignSetting", "AppCampaignSetting", "Labels", "ExperimentType", "BaseCampaign", "CampaignBudget", "BiddingStrategyType", "AccessibleBiddingStrategy", "StartDate", "CampaignGroup", "EndDate", "FinalUrlSuffix", "FrequencyCaps", "VideoBrandSafetySuitability", "VanityPharma", "SelectiveOptimization", "OptimizationGoalSetting", "TrackingSetting", "PaymentMode", "OptimizationScore", "ExcludedParentAssetFieldTypes", "ExcludedParentAssetSetTypes", "UrlExpansionOptOut", "PerformanceMaxUpgrade", "HotelPropertyAssetSet", "ListingType", "BiddingStrategy", "Commission", "ManualCpa", "ManualCpc", "ManualCpm", "ManualCpv", "MaximizeConversions", "MaximizeConversionValue", "TargetCpa", "TargetImpressionShare", "TargetRoas", "TargetSpend", "PercentCpc", "TargetCpm" }, new[]{ "CampaignBiddingStrategy", "Id", "Name", "TrackingUrlTemplate", "AudienceSetting", "BaseCampaign", "CampaignBudget", "StartDate", "CampaignGroup", "EndDate", "FinalUrlSuffix", "OptimizationScore", "UrlExpansionOptOut", "HotelPropertyAssetSet", "ListingType" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.PerformanceMaxUpgrade), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.PerformanceMaxUpgrade.Parser, new[]{ "PerformanceMaxCampaign", "PreUpgradeCampaign", "Status" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.NetworkSettings), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.NetworkSettings.Parser, new[]{ "TargetGoogleSearch", "TargetSearchNetwork", "TargetContentNetwork", "TargetPartnerSearchNetwork" }, new[]{ "TargetGoogleSearch", "TargetSearchNetwork", "TargetContentNetwork", "TargetPartnerSearchNetwork" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.HotelSettingInfo), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.HotelSettingInfo.Parser, new[]{ "HotelCenterId" }, new[]{ "HotelCenterId" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DynamicSearchAdsSetting), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DynamicSearchAdsSetting.Parser, new[]{ "DomainName", "LanguageCode", "UseSuppliedUrlsOnly", "Feeds" }, new[]{ "UseSuppliedUrlsOnly" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.ShoppingSetting), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.ShoppingSetting.Parser, new[]{ "MerchantId", "SalesCountry", "FeedLabel", "CampaignPriority", "EnableLocal", "UseVehicleInventory" }, new[]{ "MerchantId", "SalesCountry", "CampaignPriority", "EnableLocal" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.ShoppingSetting), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.ShoppingSetting.Parser, new[]{ "MerchantId", "SalesCountry", "FeedLabel", "CampaignPriority", "EnableLocal", "UseVehicleInventory", "AdvertisingPartnerIds" }, new[]{ "MerchantId", "SalesCountry", "CampaignPriority", "EnableLocal" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.TrackingSetting), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.TrackingSetting.Parser, new[]{ "TrackingUrl" }, new[]{ "TrackingUrl" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.GeoTargetTypeSetting), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.GeoTargetTypeSetting.Parser, new[]{ "PositiveGeoTargetType", "NegativeGeoTargetType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.LocalCampaignSetting), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.LocalCampaignSetting.Parser, new[]{ "LocationSourceType" }, null, null, null, null), @@ -279,7 +284,8 @@ static CampaignReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.AudienceSetting), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.AudienceSetting.Parser, new[]{ "UseAudienceGrouped" }, new[]{ "UseAudienceGrouped" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.LocalServicesCampaignSettings), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.LocalServicesCampaignSettings.Parser, new[]{ "CategoryBids" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.CategoryBid), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.CategoryBid.Parser, new[]{ "CategoryId", "ManualCpaBidMicros" }, new[]{ "CategoryId", "ManualCpaBidMicros" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.TravelCampaignSettings), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.TravelCampaignSettings.Parser, new[]{ "TravelAccountId" }, new[]{ "TravelAccountId" }, null, null, null)}) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.TravelCampaignSettings), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.TravelCampaignSettings.Parser, new[]{ "TravelAccountId" }, new[]{ "TravelAccountId" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DiscoveryCampaignSettings), global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DiscoveryCampaignSettings.Parser, new[]{ "UpgradedTargeting" }, new[]{ "UpgradedTargeting" }, null, null, null)}) })); } #endregion @@ -340,6 +346,7 @@ public Campaign(Campaign other) : this() { urlCustomParameters_ = other.urlCustomParameters_.Clone(); localServicesCampaignSettings_ = other.localServicesCampaignSettings_ != null ? other.localServicesCampaignSettings_.Clone() : null; travelCampaignSettings_ = other.travelCampaignSettings_ != null ? other.travelCampaignSettings_.Clone() : null; + discoveryCampaignSettings_ = other.discoveryCampaignSettings_ != null ? other.discoveryCampaignSettings_.Clone() : null; realTimeBiddingSetting_ = other.realTimeBiddingSetting_ != null ? other.realTimeBiddingSetting_.Clone() : null; networkSettings_ = other.networkSettings_ != null ? other.networkSettings_.Clone() : null; hotelSetting_ = other.hotelSetting_ != null ? other.hotelSetting_.Clone() : null; @@ -725,6 +732,21 @@ public void ClearTrackingUrlTemplate() { } } + /// Field number for the "discovery_campaign_settings" field. + public const int DiscoveryCampaignSettingsFieldNumber = 87; + private global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DiscoveryCampaignSettings discoveryCampaignSettings_; + /// + /// Settings for Discovery campaign. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DiscoveryCampaignSettings DiscoveryCampaignSettings { + get { return discoveryCampaignSettings_; } + set { + discoveryCampaignSettings_ = value; + } + } + /// Field number for the "real_time_bidding_setting" field. public const int RealTimeBiddingSettingFieldNumber = 39; private global::Google.Ads.GoogleAds.V14.Common.RealTimeBiddingSetting realTimeBiddingSetting_; @@ -1180,6 +1202,9 @@ public void ClearFinalUrlSuffix() { /// /// Selective optimization setting for this campaign, which includes a set of /// conversion actions to optimize this campaign towards. + /// This feature only applies to app campaigns that use MULTI_CHANNEL as + /// AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as + /// AdvertisingChannelSubType. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1524,8 +1549,7 @@ public void ClearBiddingStrategy() { /// Field number for the "manual_cpv" field. public const int ManualCpvFieldNumber = 37; /// - /// Output only. A bidding strategy that pays a configurable amount per video - /// view. + /// A bidding strategy that pays a configurable amount per video view. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1729,6 +1753,7 @@ public bool Equals(Campaign other) { if(!urlCustomParameters_.Equals(other.urlCustomParameters_)) return false; if (!object.Equals(LocalServicesCampaignSettings, other.LocalServicesCampaignSettings)) return false; if (!object.Equals(TravelCampaignSettings, other.TravelCampaignSettings)) return false; + if (!object.Equals(DiscoveryCampaignSettings, other.DiscoveryCampaignSettings)) return false; if (!object.Equals(RealTimeBiddingSetting, other.RealTimeBiddingSetting)) return false; if (!object.Equals(NetworkSettings, other.NetworkSettings)) return false; if (!object.Equals(HotelSetting, other.HotelSetting)) return false; @@ -1800,6 +1825,7 @@ public override int GetHashCode() { hash ^= urlCustomParameters_.GetHashCode(); if (localServicesCampaignSettings_ != null) hash ^= LocalServicesCampaignSettings.GetHashCode(); if (travelCampaignSettings_ != null) hash ^= TravelCampaignSettings.GetHashCode(); + if (discoveryCampaignSettings_ != null) hash ^= DiscoveryCampaignSettings.GetHashCode(); if (realTimeBiddingSetting_ != null) hash ^= RealTimeBiddingSetting.GetHashCode(); if (networkSettings_ != null) hash ^= NetworkSettings.GetHashCode(); if (hotelSetting_ != null) hash ^= HotelSetting.GetHashCode(); @@ -2101,6 +2127,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(176, 5); output.WriteEnum((int) ListingType); } + if (discoveryCampaignSettings_ != null) { + output.WriteRawTag(186, 5); + output.WriteMessage(DiscoveryCampaignSettings); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2345,6 +2375,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(176, 5); output.WriteEnum((int) ListingType); } + if (discoveryCampaignSettings_ != null) { + output.WriteRawTag(186, 5); + output.WriteMessage(DiscoveryCampaignSettings); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2396,6 +2430,9 @@ public int CalculateSize() { if (travelCampaignSettings_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(TravelCampaignSettings); } + if (discoveryCampaignSettings_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DiscoveryCampaignSettings); + } if (realTimeBiddingSetting_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(RealTimeBiddingSetting); } @@ -2591,6 +2628,12 @@ public void MergeFrom(Campaign other) { } TravelCampaignSettings.MergeFrom(other.TravelCampaignSettings); } + if (other.discoveryCampaignSettings_ != null) { + if (discoveryCampaignSettings_ == null) { + DiscoveryCampaignSettings = new global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DiscoveryCampaignSettings(); + } + DiscoveryCampaignSettings.MergeFrom(other.DiscoveryCampaignSettings); + } if (other.realTimeBiddingSetting_ != null) { if (realTimeBiddingSetting_ == null) { RealTimeBiddingSetting = new global::Google.Ads.GoogleAds.V14.Common.RealTimeBiddingSetting(); @@ -3200,6 +3243,13 @@ public void MergeFrom(pb::CodedInputStream input) { ListingType = (global::Google.Ads.GoogleAds.V14.Enums.ListingTypeEnum.Types.ListingType) input.ReadEnum(); break; } + case 698: { + if (discoveryCampaignSettings_ == null) { + DiscoveryCampaignSettings = new global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DiscoveryCampaignSettings(); + } + input.ReadMessage(DiscoveryCampaignSettings); + break; + } } } #endif @@ -3586,6 +3636,13 @@ public void MergeFrom(pb::CodedInputStream input) { ListingType = (global::Google.Ads.GoogleAds.V14.Enums.ListingTypeEnum.Types.ListingType) input.ReadEnum(); break; } + case 698: { + if (discoveryCampaignSettings_ == null) { + DiscoveryCampaignSettings = new global::Google.Ads.GoogleAds.V14.Resources.Campaign.Types.DiscoveryCampaignSettings(); + } + input.ReadMessage(DiscoveryCampaignSettings); + break; + } } } } @@ -4835,6 +4892,7 @@ public ShoppingSetting(ShoppingSetting other) : this() { campaignPriority_ = other.campaignPriority_; enableLocal_ = other.enableLocal_; useVehicleInventory_ = other.useVehicleInventory_; + advertisingPartnerIds_ = other.advertisingPartnerIds_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -5011,6 +5069,21 @@ public bool UseVehicleInventory { } } + /// Field number for the "advertising_partner_ids" field. + public const int AdvertisingPartnerIdsFieldNumber = 11; + private static readonly pb::FieldCodec _repeated_advertisingPartnerIds_codec + = pb::FieldCodec.ForInt64(90); + private readonly pbc::RepeatedField advertisingPartnerIds_ = new pbc::RepeatedField(); + /// + /// Immutable. The ads account IDs of advertising partners cooperating within + /// the campaign. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AdvertisingPartnerIds { + get { return advertisingPartnerIds_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -5032,6 +5105,7 @@ public bool Equals(ShoppingSetting other) { if (CampaignPriority != other.CampaignPriority) return false; if (EnableLocal != other.EnableLocal) return false; if (UseVehicleInventory != other.UseVehicleInventory) return false; + if(!advertisingPartnerIds_.Equals(other.advertisingPartnerIds_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5045,6 +5119,7 @@ public override int GetHashCode() { if (HasCampaignPriority) hash ^= CampaignPriority.GetHashCode(); if (HasEnableLocal) hash ^= EnableLocal.GetHashCode(); if (UseVehicleInventory != false) hash ^= UseVehicleInventory.GetHashCode(); + hash ^= advertisingPartnerIds_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5087,6 +5162,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(82); output.WriteString(FeedLabel); } + advertisingPartnerIds_.WriteTo(output, _repeated_advertisingPartnerIds_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5121,6 +5197,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(82); output.WriteString(FeedLabel); } + advertisingPartnerIds_.WriteTo(ref output, _repeated_advertisingPartnerIds_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5149,6 +5226,7 @@ public int CalculateSize() { if (UseVehicleInventory != false) { size += 1 + 1; } + size += advertisingPartnerIds_.CalculateSize(_repeated_advertisingPartnerIds_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5179,6 +5257,7 @@ public void MergeFrom(ShoppingSetting other) { if (other.UseVehicleInventory != false) { UseVehicleInventory = other.UseVehicleInventory; } + advertisingPartnerIds_.Add(other.advertisingPartnerIds_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5218,6 +5297,11 @@ public void MergeFrom(pb::CodedInputStream input) { FeedLabel = input.ReadString(); break; } + case 90: + case 88: { + advertisingPartnerIds_.AddEntriesFrom(input, _repeated_advertisingPartnerIds_codec); + break; + } } } #endif @@ -5257,6 +5341,11 @@ public void MergeFrom(pb::CodedInputStream input) { FeedLabel = input.ReadString(); break; } + case 90: + case 88: { + advertisingPartnerIds_.AddEntriesFrom(ref input, _repeated_advertisingPartnerIds_codec); + break; + } } } } @@ -6432,6 +6521,9 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Selective optimization setting for this campaign, which includes a set of /// conversion actions to optimize this campaign towards. + /// This feature only applies to app campaigns that use MULTI_CHANNEL as + /// AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as + /// AdvertisingChannelSubType. /// public sealed partial class SelectiveOptimization : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -7680,6 +7772,222 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Settings for Discovery campaign. + /// + public sealed partial class DiscoveryCampaignSettings : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DiscoveryCampaignSettings()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.Campaign.Descriptor.NestedTypes[16]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscoveryCampaignSettings() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscoveryCampaignSettings(DiscoveryCampaignSettings other) : this() { + _hasBits0 = other._hasBits0; + upgradedTargeting_ = other.upgradedTargeting_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DiscoveryCampaignSettings Clone() { + return new DiscoveryCampaignSettings(this); + } + + /// Field number for the "upgraded_targeting" field. + public const int UpgradedTargetingFieldNumber = 1; + private readonly static bool UpgradedTargetingDefaultValue = false; + + private bool upgradedTargeting_; + /// + /// Immutable. Specifies whether this campaign uses upgraded targeting + /// options. When this field is set to `true`, you can use location and + /// language targeting at the ad group level as opposed to the standard + /// campaign-level targeting. This field defaults to `false`, and can only be + /// set when creating a campaign. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool UpgradedTargeting { + get { if ((_hasBits0 & 1) != 0) { return upgradedTargeting_; } else { return UpgradedTargetingDefaultValue; } } + set { + _hasBits0 |= 1; + upgradedTargeting_ = value; + } + } + /// Gets whether the "upgraded_targeting" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasUpgradedTargeting { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "upgraded_targeting" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearUpgradedTargeting() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DiscoveryCampaignSettings); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DiscoveryCampaignSettings other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UpgradedTargeting != other.UpgradedTargeting) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasUpgradedTargeting) hash ^= UpgradedTargeting.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUpgradedTargeting) { + output.WriteRawTag(8); + output.WriteBool(UpgradedTargeting); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUpgradedTargeting) { + output.WriteRawTag(8); + output.WriteBool(UpgradedTargeting); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasUpgradedTargeting) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DiscoveryCampaignSettings other) { + if (other == null) { + return; + } + if (other.HasUpgradedTargeting) { + UpgradedTargeting = other.UpgradedTargeting; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + UpgradedTargeting = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UpgradedTargeting = input.ReadBool(); + break; + } + } + } + } + #endif + + } + } #endregion diff --git a/Google.Ads.GoogleAds/src/V14/CampaignError.g.cs b/Google.Ads.GoogleAds/src/V14/CampaignError.g.cs index e8c641411..5dbaa436d 100755 --- a/Google.Ads.GoogleAds/src/V14/CampaignError.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CampaignError.g.cs @@ -25,8 +25,8 @@ static CampaignErrorReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL2NhbXBhaWduX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzItEX", - "ChFDYW1wYWlnbkVycm9yRW51bSK7FwoNQ2FtcGFpZ25FcnJvchIPCgtVTlNQ", + "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzIqQY", + "ChFDYW1wYWlnbkVycm9yRW51bSKOGAoNQ2FtcGFpZ25FcnJvchIPCgtVTlNQ", "RUNJRklFRBAAEgsKB1VOS05PV04QARIhCh1DQU5OT1RfVEFSR0VUX0NPTlRF", "TlRfTkVUV09SSxADEiAKHENBTk5PVF9UQVJHRVRfU0VBUkNIX05FVFdPUksQ", "BBI2CjJDQU5OT1RfVEFSR0VUX1NFQVJDSF9ORVRXT1JLX1dJVEhPVVRfR09P", @@ -93,12 +93,14 @@ static CampaignErrorReflection() { "Tk9UX0VOQUJMRUQQTxItCilOT1RfQ09NUEFUSUJMRV9XSVRIX0JJRERJTkdf", "U1RSQVRFR1lfVFlQRRBQEjYKMk5PVF9DT01QQVRJQkxFX1dJVEhfR09PR0xF", "X0FUVFJJQlVUSU9OX0NPTlZFUlNJT05TEFESGwoXQ09OVkVSU0lPTl9MQUdf", - "VE9PX0hJR0gQUkLyAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", - "cnJvcnNCEkNhbXBhaWduRXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9y", - "Zy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9y", - "cztlcnJvcnOiAgNHQUGqAh9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuRXJy", - "b3JzygIfR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XEVycm9yc+oCI0dvb2ds", - "ZTo6QWRzOjpHb29nbGVBZHM6OlYxNDo6RXJyb3JzYgZwcm90bzM=")); + "VE9PX0hJR0gQUhIiCh5OT1RfTElOS0VEX0FEVkVSVElTSU5HX1BBUlRORVIQ", + "UxItCilJTlZBTElEX05VTUJFUl9PRl9BRFZFUlRJU0lOR19QQVJUTkVSX0lE", + "UxBUQvIBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9yc0IS", + "Q2FtcGFpZ25FcnJvclByb3RvUAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", + "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzO2Vycm9y", + "c6ICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNC5FcnJvcnPKAh9H", + "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6", + "Okdvb2dsZUFkczo6VjE0OjpFcnJvcnNiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -589,6 +591,15 @@ public enum CampaignError { /// Customer level conversion lag is too high. /// [pbr::OriginalName("CONVERSION_LAG_TOO_HIGH")] ConversionLagTooHigh = 82, + /// + /// The advertiser set as an advertising partner is not an actively linked + /// advertiser to this customer. + /// + [pbr::OriginalName("NOT_LINKED_ADVERTISING_PARTNER")] NotLinkedAdvertisingPartner = 83, + /// + /// Invalid number of advertising partner IDs. + /// + [pbr::OriginalName("INVALID_NUMBER_OF_ADVERTISING_PARTNER_IDS")] InvalidNumberOfAdvertisingPartnerIds = 84, } } diff --git a/Google.Ads.GoogleAds/src/V14/CampaignPrimaryStatusReason.g.cs b/Google.Ads.GoogleAds/src/V14/CampaignPrimaryStatusReason.g.cs index d31fb1134..55c1b4864 100755 --- a/Google.Ads.GoogleAds/src/V14/CampaignPrimaryStatusReason.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CampaignPrimaryStatusReason.g.cs @@ -26,8 +26,8 @@ static CampaignPrimaryStatusReasonReflection() { string.Concat( "CkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvY2FtcGFpZ25fcHJp", "bWFyeV9zdGF0dXNfcmVhc29uLnByb3RvEh5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZW51bXMi1gcKH0NhbXBhaWduUHJpbWFyeVN0YXR1c1JlYXNvbkVu", - "dW0isgcKG0NhbXBhaWduUHJpbWFyeVN0YXR1c1JlYXNvbhIPCgtVTlNQRUNJ", + "cy52MTQuZW51bXMixAgKH0NhbXBhaWduUHJpbWFyeVN0YXR1c1JlYXNvbkVu", + "dW0ioAgKG0NhbXBhaWduUHJpbWFyeVN0YXR1c1JlYXNvbhIPCgtVTlNQRUNJ", "RklFRBAAEgsKB1VOS05PV04QARIUChBDQU1QQUlHTl9SRU1PVkVEEAISEwoP", "Q0FNUEFJR05fUEFVU0VEEAMSFAoQQ0FNUEFJR05fUEVORElORxAEEhIKDkNB", "TVBBSUdOX0VOREVEEAUSEgoOQ0FNUEFJR05fRFJBRlQQBhIiCh5CSURESU5H", @@ -48,12 +48,15 @@ static CampaignPrimaryStatusReasonReflection() { "X0FEX0dST1VQX0NSSVRFUklBEB0SGQoVQ0FNUEFJR05fR1JPVVBfUEFVU0VE", "EB4SKgomQ0FNUEFJR05fR1JPVVBfQUxMX0dST1VQX0JVREdFVFNfRU5ERUQQ", "HxIUChBBUFBfTk9UX1JFTEVBU0VEECASGgoWQVBQX1BBUlRJQUxMWV9SRUxF", - "QVNFRBAhQvoBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1z", - "QiBDYW1wYWlnblByaW1hcnlTdGF0dXNSZWFzb25Qcm90b1ABWkNnb29nbGUu", - "Z29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMv", - "djE0L2VudW1zO2VudW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMu", - "VjE0LkVudW1zygIeR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XEVudW1z6gIi", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpFbnVtc2IGcHJvdG8z")); + "QVNFRBAhEiAKHEhBU19BU1NFVF9HUk9VUFNfRElTQVBQUk9WRUQQIhImCiJI", + "QVNfQVNTRVRfR1JPVVBTX0xJTUlURURfQllfUE9MSUNZECMSIgoeTU9TVF9B", + "U1NFVF9HUk9VUFNfVU5ERVJfUkVWSUVXECRC+gEKImNvbS5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZW51bXNCIENhbXBhaWduUHJpbWFyeVN0YXR1c1Jl", + "YXNvblByb3RvUAFaQ2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", + "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvZW51bXM7ZW51bXOiAgNHQUGqAh5H", + "b29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuRW51bXPKAh5Hb29nbGVcQWRzXEdv", + "b2dsZUFkc1xWMTRcRW51bXPqAiJHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", + "MTQ6OkVudW1zYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -371,6 +374,18 @@ public enum CampaignPrimaryStatusReason { /// target countries of the campaign. /// [pbr::OriginalName("APP_PARTIALLY_RELEASED")] AppPartiallyReleased = 33, + /// + /// At least one asset group in this campaign is disapproved. + /// + [pbr::OriginalName("HAS_ASSET_GROUPS_DISAPPROVED")] HasAssetGroupsDisapproved = 34, + /// + /// At least one asset group in this campaign is limited by policy. + /// + [pbr::OriginalName("HAS_ASSET_GROUPS_LIMITED_BY_POLICY")] HasAssetGroupsLimitedByPolicy = 35, + /// + /// Most asset groups in this campaign are pending review. + /// + [pbr::OriginalName("MOST_ASSET_GROUPS_UNDER_REVIEW")] MostAssetGroupsUnderReview = 36, } } diff --git a/Google.Ads.GoogleAds/src/V12/CarrierConstant.g.cs b/Google.Ads.GoogleAds/src/V14/CampaignSearchTermInsight.g.cs similarity index 60% rename from Google.Ads.GoogleAds/src/V12/CarrierConstant.g.cs rename to Google.Ads.GoogleAds/src/V14/CampaignSearchTermInsight.g.cs index 87bdc260e..750062e3b 100755 --- a/Google.Ads.GoogleAds/src/V12/CarrierConstant.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CampaignSearchTermInsight.g.cs @@ -1,6 +1,6 @@ // // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/carrier_constant.proto +// source: google/ads/googleads/v14/resources/campaign_search_term_insight.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code @@ -9,41 +9,44 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { +namespace Google.Ads.GoogleAds.V14.Resources { - /// Holder for reflection information generated from google/ads/googleads/v12/resources/carrier_constant.proto - public static partial class CarrierConstantReflection { + /// Holder for reflection information generated from google/ads/googleads/v14/resources/campaign_search_term_insight.proto + public static partial class CampaignSearchTermInsightReflection { #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/carrier_constant.proto + /// File descriptor for google/ads/googleads/v14/resources/campaign_search_term_insight.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; - static CarrierConstantReflection() { + static CampaignSearchTermInsightReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "Cjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL2NhcnJpZXJf", - "Y29uc3RhbnQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNv", - "dXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2ds", - "ZS9hcGkvcmVzb3VyY2UucHJvdG8imQIKD0NhcnJpZXJDb25zdGFudBJHCg1y", - "ZXNvdXJjZV9uYW1lGAEgASgJQjDgQQP6QSoKKGdvb2dsZWFkcy5nb29nbGVh", - "cGlzLmNvbS9DYXJyaWVyQ29uc3RhbnQSFAoCaWQYBSABKANCA+BBA0gAiAEB", - "EhYKBG5hbWUYBiABKAlCA+BBA0gBiAEBEh4KDGNvdW50cnlfY29kZRgHIAEo", - "CUID4EEDSAKIAQE6TupBSwooZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL0Nh", - "cnJpZXJDb25zdGFudBIfY2FycmllckNvbnN0YW50cy97Y3JpdGVyaW9uX2lk", - "fUIFCgNfaWRCBwoFX25hbWVCDwoNX2NvdW50cnlfY29kZUKGAgomY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5yZXNvdXJjZXNCFENhcnJpZXJDb25z", - "dGFudFByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzO3Jlc291cmNlc6IC", - "A0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxMi5SZXNvdXJjZXPKAiJH", - "b29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcUmVzb3VyY2Vz6gImR29vZ2xlOjpB", - "ZHM6Okdvb2dsZUFkczo6VjEyOjpSZXNvdXJjZXNiBnByb3RvMw==")); + "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2NhbXBhaWdu", + "X3NlYXJjaF90ZXJtX2luc2lnaHQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5yZXNvdXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", + "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8i+QIKGUNhbXBhaWdu", + "U2VhcmNoVGVybUluc2lnaHQSUQoNcmVzb3VyY2VfbmFtZRgBIAEoCUI64EED", + "+kE0CjJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ2FtcGFpZ25TZWFyY2hU", + "ZXJtSW5zaWdodBIgCg5jYXRlZ29yeV9sYWJlbBgCIAEoCUID4EEDSACIAQES", + "FAoCaWQYAyABKANCA+BBA0gBiAEBEh0KC2NhbXBhaWduX2lkGAQgASgDQgPg", + "QQNIAogBATqHAepBgwEKMmdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9DYW1w", + "YWlnblNlYXJjaFRlcm1JbnNpZ2h0Ek1jdXN0b21lcnMve2N1c3RvbWVyX2lk", + "fS9jYW1wYWlnblNlYXJjaFRlcm1JbnNpZ2h0cy97Y2FtcGFpZ25faWR9fntj", + "bHVzdGVyX2lkfUIRCg9fY2F0ZWdvcnlfbGFiZWxCBQoDX2lkQg4KDF9jYW1w", + "YWlnbl9pZEKQAgomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", + "dXJjZXNCHkNhbXBhaWduU2VhcmNoVGVybUluc2lnaHRQcm90b1ABWktnb29n", + "bGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVh", + "ZHMvdjE0L3Jlc291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRz", + "Lkdvb2dsZUFkcy5WMTQuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVB", + "ZHNcVjE0XFJlc291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYx", + "NDo6UmVzb3VyY2VzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.CarrierConstant), global::Google.Ads.GoogleAds.V12.Resources.CarrierConstant.Parser, new[]{ "ResourceName", "Id", "Name", "CountryCode" }, new[]{ "Id", "Name", "CountryCode" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsight), global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsight.Parser, new[]{ "ResourceName", "CategoryLabel", "Id", "CampaignId" }, new[]{ "CategoryLabel", "Id", "CampaignId" }, null, null, null) })); } #endregion @@ -51,24 +54,25 @@ static CarrierConstantReflection() { } #region Messages /// - /// A carrier criterion that can be used in campaign targeting. + /// A Campaign search term view. + /// Historical data is available starting March 2023. /// - public sealed partial class CarrierConstant : pb::IMessage + public sealed partial class CampaignSearchTermInsight : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CarrierConstant()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CampaignSearchTermInsight()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.CarrierConstantReflection.Descriptor.MessageTypes[0]; } + get { return global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsightReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -79,7 +83,7 @@ public sealed partial class CarrierConstant : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CarrierConstant() { + public CampaignSearchTermInsight() { OnConstruction(); } @@ -87,29 +91,29 @@ public CarrierConstant() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CarrierConstant(CarrierConstant other) : this() { + public CampaignSearchTermInsight(CampaignSearchTermInsight other) : this() { _hasBits0 = other._hasBits0; resourceName_ = other.resourceName_; + categoryLabel_ = other.categoryLabel_; id_ = other.id_; - name_ = other.name_; - countryCode_ = other.countryCode_; + campaignId_ = other.campaignId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public CarrierConstant Clone() { - return new CarrierConstant(this); + public CampaignSearchTermInsight Clone() { + return new CampaignSearchTermInsight(this); } /// Field number for the "resource_name" field. public const int ResourceNameFieldNumber = 1; private string resourceName_ = ""; /// - /// Output only. The resource name of the carrier criterion. - /// Carrier criterion resource names have the form: + /// Output only. The resource name of the campaign level search term insight. + /// Campaign level search term insight resource names have the form: /// - /// `carrierConstants/{criterion_id}` + /// `customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{category_id}` /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -120,98 +124,105 @@ public string ResourceName { } } - /// Field number for the "id" field. - public const int IdFieldNumber = 5; - private long id_; + /// Field number for the "category_label" field. + public const int CategoryLabelFieldNumber = 2; + private readonly static string CategoryLabelDefaultValue = ""; + + private string categoryLabel_; /// - /// Output only. The ID of the carrier criterion. + /// Output only. The label for the search category. An empty string denotes the + /// catch-all category for search terms that didn't fit into another category. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0L; } } + public string CategoryLabel { + get { return categoryLabel_ ?? CategoryLabelDefaultValue; } set { - _hasBits0 |= 1; - id_ = value; + categoryLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Gets whether the "id" field is set + /// Gets whether the "category_label" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } + public bool HasCategoryLabel { + get { return categoryLabel_ != null; } } - /// Clears the value of the "id" field + /// Clears the value of the "category_label" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; + public void ClearCategoryLabel() { + categoryLabel_ = null; } - /// Field number for the "name" field. - public const int NameFieldNumber = 6; - private string name_; + /// Field number for the "id" field. + public const int IdFieldNumber = 3; + private readonly static long IdDefaultValue = 0L; + + private long id_; /// - /// Output only. The full name of the carrier in English. + /// Output only. The ID of the insight. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } + public long Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + _hasBits0 |= 1; + id_ = value; } } - /// Gets whether the "name" field is set + /// Gets whether the "id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } + public bool HasId { + get { return (_hasBits0 & 1) != 0; } } - /// Clears the value of the "name" field + /// Clears the value of the "id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; + public void ClearId() { + _hasBits0 &= ~1; } - /// Field number for the "country_code" field. - public const int CountryCodeFieldNumber = 7; - private string countryCode_; + /// Field number for the "campaign_id" field. + public const int CampaignIdFieldNumber = 4; + private readonly static long CampaignIdDefaultValue = 0L; + + private long campaignId_; /// - /// Output only. The country code of the country where the carrier is located, for example, - /// "AR", "FR", etc. + /// Output only. The ID of the campaign. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CountryCode { - get { return countryCode_ ?? ""; } + public long CampaignId { + get { if ((_hasBits0 & 2) != 0) { return campaignId_; } else { return CampaignIdDefaultValue; } } set { - countryCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + _hasBits0 |= 2; + campaignId_ = value; } } - /// Gets whether the "country_code" field is set + /// Gets whether the "campaign_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCountryCode { - get { return countryCode_ != null; } + public bool HasCampaignId { + get { return (_hasBits0 & 2) != 0; } } - /// Clears the value of the "country_code" field + /// Clears the value of the "campaign_id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCountryCode() { - countryCode_ = null; + public void ClearCampaignId() { + _hasBits0 &= ~2; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as CarrierConstant); + return Equals(other as CampaignSearchTermInsight); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(CarrierConstant other) { + public bool Equals(CampaignSearchTermInsight other) { if (ReferenceEquals(other, null)) { return false; } @@ -219,9 +230,9 @@ public bool Equals(CarrierConstant other) { return true; } if (ResourceName != other.ResourceName) return false; + if (CategoryLabel != other.CategoryLabel) return false; if (Id != other.Id) return false; - if (Name != other.Name) return false; - if (CountryCode != other.CountryCode) return false; + if (CampaignId != other.CampaignId) return false; return Equals(_unknownFields, other._unknownFields); } @@ -230,9 +241,9 @@ public bool Equals(CarrierConstant other) { public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); + if (HasCategoryLabel) hash ^= CategoryLabel.GetHashCode(); if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasCountryCode) hash ^= CountryCode.GetHashCode(); + if (HasCampaignId) hash ^= CampaignId.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -255,17 +266,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ResourceName); } + if (HasCategoryLabel) { + output.WriteRawTag(18); + output.WriteString(CategoryLabel); + } if (HasId) { - output.WriteRawTag(40); + output.WriteRawTag(24); output.WriteInt64(Id); } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (HasCountryCode) { - output.WriteRawTag(58); - output.WriteString(CountryCode); + if (HasCampaignId) { + output.WriteRawTag(32); + output.WriteInt64(CampaignId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -281,17 +292,17 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ResourceName); } + if (HasCategoryLabel) { + output.WriteRawTag(18); + output.WriteString(CategoryLabel); + } if (HasId) { - output.WriteRawTag(40); + output.WriteRawTag(24); output.WriteInt64(Id); } - if (HasName) { - output.WriteRawTag(50); - output.WriteString(Name); - } - if (HasCountryCode) { - output.WriteRawTag(58); - output.WriteString(CountryCode); + if (HasCampaignId) { + output.WriteRawTag(32); + output.WriteInt64(CampaignId); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -306,14 +317,14 @@ public int CalculateSize() { if (ResourceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); } + if (HasCategoryLabel) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CategoryLabel); + } if (HasId) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); - } - if (HasCountryCode) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CountryCode); + if (HasCampaignId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(CampaignId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -323,21 +334,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(CarrierConstant other) { + public void MergeFrom(CampaignSearchTermInsight other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } + if (other.HasCategoryLabel) { + CategoryLabel = other.CategoryLabel; + } if (other.HasId) { Id = other.Id; } - if (other.HasName) { - Name = other.Name; - } - if (other.HasCountryCode) { - CountryCode = other.CountryCode; + if (other.HasCampaignId) { + CampaignId = other.CampaignId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -358,16 +369,16 @@ public void MergeFrom(pb::CodedInputStream input) { ResourceName = input.ReadString(); break; } - case 40: { - Id = input.ReadInt64(); + case 18: { + CategoryLabel = input.ReadString(); break; } - case 50: { - Name = input.ReadString(); + case 24: { + Id = input.ReadInt64(); break; } - case 58: { - CountryCode = input.ReadString(); + case 32: { + CampaignId = input.ReadInt64(); break; } } @@ -389,16 +400,16 @@ public void MergeFrom(pb::CodedInputStream input) { ResourceName = input.ReadString(); break; } - case 40: { - Id = input.ReadInt64(); + case 18: { + CategoryLabel = input.ReadString(); break; } - case 50: { - Name = input.ReadString(); + case 24: { + Id = input.ReadInt64(); break; } - case 58: { - CountryCode = input.ReadString(); + case 32: { + CampaignId = input.ReadInt64(); break; } } diff --git a/Google.Ads.GoogleAds/src/V12/SmartCampaignSearchTermViewResourceNames.g.cs b/Google.Ads.GoogleAds/src/V14/CampaignSearchTermInsightResourceNames.g.cs similarity index 52% rename from Google.Ads.GoogleAds/src/V12/SmartCampaignSearchTermViewResourceNames.g.cs rename to Google.Ads.GoogleAds/src/V14/CampaignSearchTermInsightResourceNames.g.cs index 33343098b..8453945cd 100755 --- a/Google.Ads.GoogleAds/src/V12/SmartCampaignSearchTermViewResourceNames.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CampaignSearchTermInsightResourceNames.g.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,12 +18,12 @@ using gax = Google.Api.Gax; using sys = System; -namespace Google.Ads.GoogleAds.V12.Resources +namespace Google.Ads.GoogleAds.V14.Resources { - /// Resource name for the SmartCampaignSearchTermView resource. - public sealed partial class SmartCampaignSearchTermViewName : gax::IResourceName, sys::IEquatable + /// Resource name for the CampaignSearchTermInsight resource. + public sealed partial class CampaignSearchTermInsightName : gax::IResourceName, sys::IEquatable { - /// The possible contents of . + /// The possible contents of . public enum ResourceNameType { /// An unparsed resource name. @@ -31,87 +31,87 @@ public enum ResourceNameType /// /// A resource name with pattern - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}. + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}. /// - CustomerCampaignQuery = 1, + CustomerCampaignCluster = 1, } - private static gax::PathTemplate s_customerCampaignQuery = new gax::PathTemplate("customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id_query}"); + private static gax::PathTemplate s_customerCampaignCluster = new gax::PathTemplate("customers/{customer_id}/campaignSearchTermInsights/{campaign_id_cluster_id}"); /// - /// Creates a containing an unparsed resource name. + /// Creates a containing an unparsed resource name. /// /// The unparsed resource name. Must not be null. /// - /// A new instance of containing the provided + /// A new instance of containing the provided /// . /// - public static SmartCampaignSearchTermViewName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new SmartCampaignSearchTermViewName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + public static CampaignSearchTermInsightName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CampaignSearchTermInsightName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); /// - /// Creates a with the pattern - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}. + /// Creates a with the pattern + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}. /// /// The Customer ID. Must not be null or empty. /// The Campaign ID. Must not be null or empty. - /// The Query ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. /// - /// A new instance of constructed from the provided ids. + /// A new instance of constructed from the provided ids. /// - public static SmartCampaignSearchTermViewName FromCustomerCampaignQuery(string customerId, string campaignId, string queryId) => - new SmartCampaignSearchTermViewName(ResourceNameType.CustomerCampaignQuery, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), queryId: gax::GaxPreconditions.CheckNotNullOrEmpty(queryId, nameof(queryId))); + public static CampaignSearchTermInsightName FromCustomerCampaignCluster(string customerId, string campaignId, string clusterId) => + new CampaignSearchTermInsightName(ResourceNameType.CustomerCampaignCluster, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}. + /// Formats the IDs into the string representation of this with + /// pattern customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}. /// /// The Customer ID. Must not be null or empty. /// The Campaign ID. Must not be null or empty. - /// The Query ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. /// - /// The string representation of this with pattern - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}. + /// The string representation of this with pattern + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}. /// - public static string Format(string customerId, string campaignId, string queryId) => - FormatCustomerCampaignQuery(customerId, campaignId, queryId); + public static string Format(string customerId, string campaignId, string clusterId) => + FormatCustomerCampaignCluster(customerId, campaignId, clusterId); /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}. + /// Formats the IDs into the string representation of this with + /// pattern customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}. /// /// The Customer ID. Must not be null or empty. /// The Campaign ID. Must not be null or empty. - /// The Query ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. /// - /// The string representation of this with pattern - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query}. + /// The string representation of this with pattern + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id}. /// - public static string FormatCustomerCampaignQuery(string customerId, string campaignId, string queryId) => - s_customerCampaignQuery.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(queryId, nameof(queryId)))}"); + public static string FormatCustomerCampaignCluster(string customerId, string campaignId, string clusterId) => + s_customerCampaignCluster.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), $"{(gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)))}~{(gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId)))}"); /// - /// Parses the given resource name string into a new instance. + /// Parses the given resource name string into a new instance. /// /// /// To parse successfully, the resource name must be formatted as one of the following: /// /// /// - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query} + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id} /// /// /// /// - /// + /// /// The resource name in string form. Must not be null. /// - /// The parsed if successful. - public static SmartCampaignSearchTermViewName Parse(string smartCampaignSearchTermViewName) => - Parse(smartCampaignSearchTermViewName, false); + /// The parsed if successful. + public static CampaignSearchTermInsightName Parse(string campaignSearchTermInsightName) => + Parse(campaignSearchTermInsightName, false); /// - /// Parses the given resource name string into a new instance; + /// Parses the given resource name string into a new instance; /// optionally allowing an unparseable resource name. /// /// @@ -119,13 +119,13 @@ public static SmartCampaignSearchTermViewName Parse(string smartCampaignSearchTe /// /// /// - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query} + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id} /// /// /// /// Or may be in any format if is true. /// - /// + /// /// The resource name in string form. Must not be null. /// /// @@ -133,12 +133,12 @@ public static SmartCampaignSearchTermViewName Parse(string smartCampaignSearchTe /// property; otherwise will throw an if an unparseable resource name is /// specified. /// - /// The parsed if successful. - public static SmartCampaignSearchTermViewName Parse(string smartCampaignSearchTermViewName, bool allowUnparsed) => - TryParse(smartCampaignSearchTermViewName, allowUnparsed, out SmartCampaignSearchTermViewName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + /// The parsed if successful. + public static CampaignSearchTermInsightName Parse(string campaignSearchTermInsightName, bool allowUnparsed) => + TryParse(campaignSearchTermInsightName, allowUnparsed, out CampaignSearchTermInsightName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); /// - /// Tries to parse the given resource name string into a new + /// Tries to parse the given resource name string into a new /// instance. /// /// @@ -146,24 +146,24 @@ public static SmartCampaignSearchTermViewName Parse(string smartCampaignSearchTe /// /// /// - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query} + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id} /// /// /// /// - /// + /// /// The resource name in string form. Must not be null. /// /// - /// When this method returns, the parsed , or null if - /// parsing failed. + /// When this method returns, the parsed , or null if parsing + /// failed. /// /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string smartCampaignSearchTermViewName, out SmartCampaignSearchTermViewName result) => - TryParse(smartCampaignSearchTermViewName, false, out result); + public static bool TryParse(string campaignSearchTermInsightName, out CampaignSearchTermInsightName result) => + TryParse(campaignSearchTermInsightName, false, out result); /// - /// Tries to parse the given resource name string into a new + /// Tries to parse the given resource name string into a new /// instance; optionally allowing an unparseable resource name. /// /// @@ -171,13 +171,13 @@ public static bool TryParse(string smartCampaignSearchTermViewName, out SmartCam /// /// /// - /// customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query} + /// customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id} /// /// /// /// Or may be in any format if is true. /// - /// + /// /// The resource name in string form. Must not be null. /// /// @@ -186,15 +186,15 @@ public static bool TryParse(string smartCampaignSearchTermViewName, out SmartCam /// specified. /// /// - /// When this method returns, the parsed , or null if - /// parsing failed. + /// When this method returns, the parsed , or null if parsing + /// failed. /// /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string smartCampaignSearchTermViewName, bool allowUnparsed, out SmartCampaignSearchTermViewName result) + public static bool TryParse(string campaignSearchTermInsightName, bool allowUnparsed, out CampaignSearchTermInsightName result) { - gax::GaxPreconditions.CheckNotNull(smartCampaignSearchTermViewName, nameof(smartCampaignSearchTermViewName)); + gax::GaxPreconditions.CheckNotNull(campaignSearchTermInsightName, nameof(campaignSearchTermInsightName)); gax::TemplatedResourceName resourceName; - if (s_customerCampaignQuery.TryParseName(smartCampaignSearchTermViewName, out resourceName)) + if (s_customerCampaignCluster.TryParseName(campaignSearchTermInsightName, out resourceName)) { string[] split1 = ParseSplitHelper(resourceName[1], new char[] { '~', }); if (split1 == null) @@ -202,12 +202,12 @@ public static bool TryParse(string smartCampaignSearchTermViewName, bool allowUn result = null; return false; } - result = FromCustomerCampaignQuery(resourceName[0], split1[0], split1[1]); + result = FromCustomerCampaignCluster(resourceName[0], split1[0], split1[1]); return true; } if (allowUnparsed) { - if (gax::UnparsedResourceName.TryParse(smartCampaignSearchTermViewName, out gax::UnparsedResourceName unparsedResourceName)) + if (gax::UnparsedResourceName.TryParse(campaignSearchTermInsightName, out gax::UnparsedResourceName unparsedResourceName)) { result = FromUnparsed(unparsedResourceName); return true; @@ -234,23 +234,23 @@ private static string[] ParseSplitHelper(string s, char[] separators) return result; } - private SmartCampaignSearchTermViewName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string customerId = null, string queryId = null) + private CampaignSearchTermInsightName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string campaignId = null, string clusterId = null, string customerId = null) { Type = type; UnparsedResource = unparsedResourceName; CampaignId = campaignId; + ClusterId = clusterId; CustomerId = customerId; - QueryId = queryId; } /// - /// Constructs a new instance of a class from the component parts - /// of pattern customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{query} + /// Constructs a new instance of a class from the component parts of + /// pattern customers/{customer_id}/campaignSearchTermInsights/{campaign_id}~{cluster_id} /// /// The Customer ID. Must not be null or empty. /// The Campaign ID. Must not be null or empty. - /// The Query ID. Must not be null or empty. - public SmartCampaignSearchTermViewName(string customerId, string campaignId, string queryId) : this(ResourceNameType.CustomerCampaignQuery, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), queryId: gax::GaxPreconditions.CheckNotNullOrEmpty(queryId, nameof(queryId))) + /// The Cluster ID. Must not be null or empty. + public CampaignSearchTermInsightName(string customerId, string campaignId, string clusterId) : this(ResourceNameType.CustomerCampaignCluster, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), campaignId: gax::GaxPreconditions.CheckNotNullOrEmpty(campaignId, nameof(campaignId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))) { } @@ -269,14 +269,14 @@ public SmartCampaignSearchTermViewName(string customerId, string campaignId, str public string CampaignId { get; } /// - /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. + /// The Cluster ID. Will not be null, unless this instance contains an unparsed resource name. /// - public string CustomerId { get; } + public string ClusterId { get; } /// - /// The Query ID. Will not be null, unless this instance contains an unparsed resource name. + /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. /// - public string QueryId { get; } + public string CustomerId { get; } /// Whether this instance contains a resource name with a known pattern. public bool IsKnownPattern => Type != ResourceNameType.Unparsed; @@ -288,7 +288,7 @@ public override string ToString() switch (Type) { case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCampaignQuery: return s_customerCampaignQuery.Expand(CustomerId, $"{CampaignId}~{QueryId}"); + case ResourceNameType.CustomerCampaignCluster: return s_customerCampaignCluster.Expand(CustomerId, $"{CampaignId}~{ClusterId}"); default: throw new sys::InvalidOperationException("Unrecognized resource-type."); } } @@ -297,37 +297,28 @@ public override string ToString() public override int GetHashCode() => ToString().GetHashCode(); /// - public override bool Equals(object obj) => Equals(obj as SmartCampaignSearchTermViewName); + public override bool Equals(object obj) => Equals(obj as CampaignSearchTermInsightName); /// - public bool Equals(SmartCampaignSearchTermViewName other) => ToString() == other?.ToString(); + public bool Equals(CampaignSearchTermInsightName other) => ToString() == other?.ToString(); /// - public static bool operator ==(SmartCampaignSearchTermViewName a, SmartCampaignSearchTermViewName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + public static bool operator ==(CampaignSearchTermInsightName a, CampaignSearchTermInsightName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); /// - public static bool operator !=(SmartCampaignSearchTermViewName a, SmartCampaignSearchTermViewName b) => !(a == b); + public static bool operator !=(CampaignSearchTermInsightName a, CampaignSearchTermInsightName b) => !(a == b); } - public partial class SmartCampaignSearchTermView + public partial class CampaignSearchTermInsight { /// - /// -typed view over the resource name + /// -typed view over the resource name /// property. /// - internal SmartCampaignSearchTermViewName ResourceNameAsSmartCampaignSearchTermViewName + internal CampaignSearchTermInsightName ResourceNameAsCampaignSearchTermInsightName { - get => string.IsNullOrEmpty(ResourceName) ? null : SmartCampaignSearchTermViewName.Parse(ResourceName, allowUnparsed: true); + get => string.IsNullOrEmpty(ResourceName) ? null : CampaignSearchTermInsightName.Parse(ResourceName, allowUnparsed: true); set => ResourceName = value?.ToString() ?? ""; } - - /// - /// -typed view over the resource name property. - /// - internal CampaignName CampaignAsCampaignName - { - get => string.IsNullOrEmpty(Campaign) ? null : CampaignName.Parse(Campaign, allowUnparsed: true); - set => Campaign = value?.ToString() ?? ""; - } } } diff --git a/Google.Ads.GoogleAds/src/V14/ConversionActionType.g.cs b/Google.Ads.GoogleAds/src/V14/ConversionActionType.g.cs index df2d22317..504a740c0 100755 --- a/Google.Ads.GoogleAds/src/V14/ConversionActionType.g.cs +++ b/Google.Ads.GoogleAds/src/V14/ConversionActionType.g.cs @@ -409,7 +409,7 @@ public enum ConversionActionType { [pbr::OriginalName("STORE_VISITS")] StoreVisits = 36, /// /// Conversions created from website events (such as form submissions or page - /// loads), that don't use individually coded event snippets. + /// loads), that don't use individually coded event snippets. Read only. /// [pbr::OriginalName("WEBPAGE_CODELESS")] WebpageCodeless = 37, /// diff --git a/Google.Ads.GoogleAds/src/V14/ConversionGoalCampaignConfigService.g.cs b/Google.Ads.GoogleAds/src/V14/ConversionGoalCampaignConfigService.g.cs index 4797fd456..0661a3673 100755 --- a/Google.Ads.GoogleAds/src/V14/ConversionGoalCampaignConfigService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/ConversionGoalCampaignConfigService.g.cs @@ -83,7 +83,7 @@ static ConversionGoalCampaignConfigServiceReflection() { #region Messages /// /// Request message for - /// [ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfig][]. + /// [ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfigs][google.ads.googleads.v14.services.ConversionGoalCampaignConfigService.MutateConversionGoalCampaignConfigs]. /// public sealed partial class MutateConversionGoalCampaignConfigsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/src/V12/ConversionTrackingStatusEnum.g.cs b/Google.Ads.GoogleAds/src/V14/ConvertingUserPriorEngagementTypeAndLtvBucket.g.cs similarity index 62% rename from Google.Ads.GoogleAds/src/V12/ConversionTrackingStatusEnum.g.cs rename to Google.Ads.GoogleAds/src/V14/ConvertingUserPriorEngagementTypeAndLtvBucket.g.cs index 1a41064ae..f6063ab24 100755 --- a/Google.Ads.GoogleAds/src/V12/ConversionTrackingStatusEnum.g.cs +++ b/Google.Ads.GoogleAds/src/V14/ConvertingUserPriorEngagementTypeAndLtvBucket.g.cs @@ -1,6 +1,6 @@ // // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/enums/conversion_tracking_status_enum.proto +// source: google/ads/googleads/v14/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code @@ -9,39 +9,38 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Enums { +namespace Google.Ads.GoogleAds.V14.Enums { - /// Holder for reflection information generated from google/ads/googleads/v12/enums/conversion_tracking_status_enum.proto - public static partial class ConversionTrackingStatusEnumReflection { + /// Holder for reflection information generated from google/ads/googleads/v14/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto + public static partial class ConvertingUserPriorEngagementTypeAndLtvBucketReflection { #region Descriptor - /// File descriptor for google/ads/googleads/v12/enums/conversion_tracking_status_enum.proto + /// File descriptor for google/ads/googleads/v14/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; - static ConversionTrackingStatusEnumReflection() { + static ConvertingUserPriorEngagementTypeAndLtvBucketReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "CkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZW51bXMvY29udmVyc2lvbl90", - "cmFja2luZ19zdGF0dXNfZW51bS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjEyLmVudW1zIoMCChxDb252ZXJzaW9uVHJhY2tpbmdTdGF0dXNFbnVt", - "IuIBChhDb252ZXJzaW9uVHJhY2tpbmdTdGF0dXMSDwoLVU5TUEVDSUZJRUQQ", - "ABILCgdVTktOT1dOEAESGgoWTk9UX0NPTlZFUlNJT05fVFJBQ0tFRBACEicK", - "I0NPTlZFUlNJT05fVFJBQ0tJTkdfTUFOQUdFRF9CWV9TRUxGEAMSLworQ09O", - "VkVSU0lPTl9UUkFDS0lOR19NQU5BR0VEX0JZX1RISVNfTUFOQUdFUhAEEjIK", - "LkNPTlZFUlNJT05fVFJBQ0tJTkdfTUFOQUdFRF9CWV9BTk9USEVSX01BTkFH", - "RVIQBUL7AQoiY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxMi5lbnVtc0Ih", - "Q29udmVyc2lvblRyYWNraW5nU3RhdHVzRW51bVByb3RvUAFaQ2dvb2dsZS5n", + "Cllnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvY29udmVydGluZ191", + "c2VyX3ByaW9yX2VuZ2FnZW1lbnRfdHlwZV9hbmRfbHR2X2J1Y2tldC5wcm90", + "bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zIrABCjFDb252ZXJ0", + "aW5nVXNlclByaW9yRW5nYWdlbWVudFR5cGVBbmRMdHZCdWNrZXRFbnVtInsK", + "LUNvbnZlcnRpbmdVc2VyUHJpb3JFbmdhZ2VtZW50VHlwZUFuZEx0dkJ1Y2tl", + "dBIPCgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIHCgNORVcQAhINCglS", + "RVRVUk5JTkcQAxIUChBORVdfQU5EX0hJR0hfTFRWEARCjAIKImNvbS5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXNCMkNvbnZlcnRpbmdVc2VyUHJp", + "b3JFbmdhZ2VtZW50VHlwZUFuZEx0dkJ1Y2tldFByb3RvUAFaQ2dvb2dsZS5n", "b2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92", - "MTIvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", - "MTIuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTJcRW51bXPqAiJH", - "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVudW1zYgZwcm90bzM=")); + "MTQvZW51bXM7ZW51bXOiAgNHQUGqAh5Hb29nbGUuQWRzLkdvb2dsZUFkcy5W", + "MTQuRW51bXPKAh5Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcRW51bXPqAiJH", + "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkVudW1zYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum), global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnum.Types.ConversionTrackingStatus) }, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum), global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket) }, null, null) })); } #endregion @@ -49,24 +48,24 @@ static ConversionTrackingStatusEnumReflection() { } #region Messages /// - /// Container for enum representing the conversion tracking status of the - /// customer. + /// Container for enumeration of converting user prior engagement types and + /// lifetime-value bucket. /// - public sealed partial class ConversionTrackingStatusEnum : pb::IMessage + public sealed partial class ConvertingUserPriorEngagementTypeAndLtvBucketEnum : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConversionTrackingStatusEnum()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConvertingUserPriorEngagementTypeAndLtvBucketEnum()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Enums.ConversionTrackingStatusEnumReflection.Descriptor.MessageTypes[0]; } + get { return global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -77,7 +76,7 @@ public sealed partial class ConversionTrackingStatusEnum : pb::IMessageContainer for nested types declared in the ConversionTrackingStatusEnum message type. + /// Container for nested types declared in the ConvertingUserPriorEngagementTypeAndLtvBucketEnum message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Conversion Tracking status of the customer. + /// Enumerates converting user prior engagement types and lifetime-value bucket /// - public enum ConversionTrackingStatus { + public enum ConvertingUserPriorEngagementTypeAndLtvBucket { /// /// Not specified. /// [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, /// - /// Used for return value only. Represents value unknown in this version. + /// The value is unknown in this version. /// [pbr::OriginalName("UNKNOWN")] Unknown = 1, /// - /// Customer does not use any conversion tracking. + /// Converting user is new to the advertiser. /// - [pbr::OriginalName("NOT_CONVERSION_TRACKED")] NotConversionTracked = 2, + [pbr::OriginalName("NEW")] New = 2, /// - /// The conversion actions are created and managed by this customer. + /// Converting user is returning to the advertiser. Definition of returning + /// differs among conversion types, such as a second store visit versus a + /// second online purchase. /// - [pbr::OriginalName("CONVERSION_TRACKING_MANAGED_BY_SELF")] ConversionTrackingManagedBySelf = 3, + [pbr::OriginalName("RETURNING")] Returning = 3, /// - /// The conversion actions are created and managed by the manager specified - /// in the request's `login-customer-id`. + /// Converting user is new to the advertiser and has high lifetime value. /// - [pbr::OriginalName("CONVERSION_TRACKING_MANAGED_BY_THIS_MANAGER")] ConversionTrackingManagedByThisManager = 4, - /// - /// The conversion actions are created and managed by a manager different - /// from the customer or manager specified in the request's - /// `login-customer-id`. - /// - [pbr::OriginalName("CONVERSION_TRACKING_MANAGED_BY_ANOTHER_MANAGER")] ConversionTrackingManagedByAnotherManager = 5, + [pbr::OriginalName("NEW_AND_HIGH_LTV")] NewAndHighLtv = 4, } } diff --git a/Google.Ads.GoogleAds/src/V14/Criteria.g.cs b/Google.Ads.GoogleAds/src/V14/Criteria.g.cs index b3aebe807..ba980f7d3 100755 --- a/Google.Ads.GoogleAds/src/V14/Criteria.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Criteria.g.cs @@ -68,194 +68,198 @@ static CriteriaReflection() { "aWRCBwoFX25hbWUiSAoMTG9jYXRpb25JbmZvEiAKE2dlb190YXJnZXRfY29u", "c3RhbnQYAiABKAlIAIgBAUIWChRfZ2VvX3RhcmdldF9jb25zdGFudCJNCgpE", "ZXZpY2VJbmZvEj8KBHR5cGUYASABKA4yMS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZW51bXMuRGV2aWNlRW51bS5EZXZpY2Ui+AEKEExpc3RpbmdHcm91", + "cy52MTQuZW51bXMuRGV2aWNlRW51bS5EZXZpY2UiywIKEExpc3RpbmdHcm91", "cEluZm8SUwoEdHlwZRgBIAEoDjJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", "NC5lbnVtcy5MaXN0aW5nR3JvdXBUeXBlRW51bS5MaXN0aW5nR3JvdXBUeXBl", "EkkKCmNhc2VfdmFsdWUYAiABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", "MTQuY29tbW9uLkxpc3RpbmdEaW1lbnNpb25JbmZvEiYKGXBhcmVudF9hZF9n", - "cm91cF9jcml0ZXJpb24YBCABKAlIAIgBAUIcChpfcGFyZW50X2FkX2dyb3Vw", - "X2NyaXRlcmlvbiJdChBMaXN0aW5nU2NvcGVJbmZvEkkKCmRpbWVuc2lvbnMY", - "AiADKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkxpc3Rp", - "bmdEaW1lbnNpb25JbmZvIucNChRMaXN0aW5nRGltZW5zaW9uSW5mbxJACgho", - "b3RlbF9pZBgCIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21t", - "b24uSG90ZWxJZEluZm9IABJGCgtob3RlbF9jbGFzcxgDIAEoCzIvLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uSG90ZWxDbGFzc0luZm9IABJX", - "ChRob3RlbF9jb3VudHJ5X3JlZ2lvbhgEIAEoCzI3Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5jb21tb24uSG90ZWxDb3VudHJ5UmVnaW9uSW5mb0gAEkYK", - "C2hvdGVsX3N0YXRlGAUgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LmNvbW1vbi5Ib3RlbFN0YXRlSW5mb0gAEkQKCmhvdGVsX2NpdHkYBiABKAsy", - "Li5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkhvdGVsQ2l0eUlu", - "Zm9IABJfChhwcm9kdWN0X2JpZGRpbmdfY2F0ZWdvcnkYDSABKAsyOy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlByb2R1Y3RCaWRkaW5nQ2F0", - "ZWdvcnlJbmZvSAASSgoNcHJvZHVjdF9icmFuZBgPIAEoCzIxLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uUHJvZHVjdEJyYW5kSW5mb0gAEk4K", - "D3Byb2R1Y3RfY2hhbm5lbBgIIAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5jb21tb24uUHJvZHVjdENoYW5uZWxJbmZvSAASZQobcHJvZHVjdF9j", - "aGFubmVsX2V4Y2x1c2l2aXR5GAkgASgLMj4uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmNvbW1vbi5Qcm9kdWN0Q2hhbm5lbEV4Y2x1c2l2aXR5SW5mb0gA", - "ElIKEXByb2R1Y3RfY29uZGl0aW9uGAogASgLMjUuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmNvbW1vbi5Qcm9kdWN0Q29uZGl0aW9uSW5mb0gAEl8KGHBy", - "b2R1Y3RfY3VzdG9tX2F0dHJpYnV0ZRgQIAEoCzI7Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5jb21tb24uUHJvZHVjdEN1c3RvbUF0dHJpYnV0ZUluZm9I", - "ABJNCg9wcm9kdWN0X2l0ZW1faWQYCyABKAsyMi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuY29tbW9uLlByb2R1Y3RJdGVtSWRJbmZvSAASSAoMcHJvZHVj", - "dF90eXBlGAwgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1v", - "bi5Qcm9kdWN0VHlwZUluZm9IABJQChBwcm9kdWN0X2dyb3VwaW5nGBEgASgL", - "MjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5Qcm9kdWN0R3Jv", - "dXBpbmdJbmZvSAASTAoOcHJvZHVjdF9sYWJlbHMYEiABKAsyMi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlByb2R1Y3RMYWJlbHNJbmZvSAAS", - "XwoYcHJvZHVjdF9sZWdhY3lfY29uZGl0aW9uGBMgASgLMjsuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LmNvbW1vbi5Qcm9kdWN0TGVnYWN5Q29uZGl0aW9u", - "SW5mb0gAElEKEXByb2R1Y3RfdHlwZV9mdWxsGBQgASgLMjQuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LmNvbW1vbi5Qcm9kdWN0VHlwZUZ1bGxJbmZvSAAS", - "RgoLYWN0aXZpdHlfaWQYFSABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuY29tbW9uLkFjdGl2aXR5SWRJbmZvSAASTgoPYWN0aXZpdHlfcmF0aW5n", - "GBYgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5BY3Rp", - "dml0eVJhdGluZ0luZm9IABJQChBhY3Rpdml0eV9jb3VudHJ5GBcgASgLMjQu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5BY3Rpdml0eUNvdW50", - "cnlJbmZvSAASYQoZdW5rbm93bl9saXN0aW5nX2RpbWVuc2lvbhgOIAEoCzI8", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uVW5rbm93bkxpc3Rp", - "bmdEaW1lbnNpb25JbmZvSABCCwoJZGltZW5zaW9uIisKC0hvdGVsSWRJbmZv", - "EhIKBXZhbHVlGAIgASgJSACIAQFCCAoGX3ZhbHVlIi4KDkhvdGVsQ2xhc3NJ", - "bmZvEhIKBXZhbHVlGAIgASgDSACIAQFCCAoGX3ZhbHVlIlwKFkhvdGVsQ291", - "bnRyeVJlZ2lvbkluZm8SJQoYY291bnRyeV9yZWdpb25fY3JpdGVyaW9uGAIg", - "ASgJSACIAQFCGwoZX2NvdW50cnlfcmVnaW9uX2NyaXRlcmlvbiJCCg5Ib3Rl", - "bFN0YXRlSW5mbxIcCg9zdGF0ZV9jcml0ZXJpb24YAiABKAlIAIgBAUISChBf", - "c3RhdGVfY3JpdGVyaW9uIj8KDUhvdGVsQ2l0eUluZm8SGwoOY2l0eV9jcml0", - "ZXJpb24YAiABKAlIAIgBAUIRCg9fY2l0eV9jcml0ZXJpb24ioAEKGlByb2R1", - "Y3RCaWRkaW5nQ2F0ZWdvcnlJbmZvEg8KAmlkGAQgASgDSACIAQESagoFbGV2", - "ZWwYAyABKA4yWy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuUHJv", - "ZHVjdEJpZGRpbmdDYXRlZ29yeUxldmVsRW51bS5Qcm9kdWN0QmlkZGluZ0Nh", - "dGVnb3J5TGV2ZWxCBQoDX2lkIjAKEFByb2R1Y3RCcmFuZEluZm8SEgoFdmFs", - "dWUYAiABKAlIAIgBAUIICgZfdmFsdWUiaAoSUHJvZHVjdENoYW5uZWxJbmZv", - "ElIKB2NoYW5uZWwYASABKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZW51bXMuUHJvZHVjdENoYW5uZWxFbnVtLlByb2R1Y3RDaGFubmVsIpUBCh1Q", - "cm9kdWN0Q2hhbm5lbEV4Y2x1c2l2aXR5SW5mbxJ0ChNjaGFubmVsX2V4Y2x1", - "c2l2aXR5GAEgASgOMlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1z", - "LlByb2R1Y3RDaGFubmVsRXhjbHVzaXZpdHlFbnVtLlByb2R1Y3RDaGFubmVs", - "RXhjbHVzaXZpdHkicAoUUHJvZHVjdENvbmRpdGlvbkluZm8SWAoJY29uZGl0", - "aW9uGAEgASgOMkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlBy", - "b2R1Y3RDb25kaXRpb25FbnVtLlByb2R1Y3RDb25kaXRpb24ipgEKGlByb2R1", - "Y3RDdXN0b21BdHRyaWJ1dGVJbmZvEhIKBXZhbHVlGAMgASgJSACIAQESagoF", - "aW5kZXgYAiABKA4yWy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMu", - "UHJvZHVjdEN1c3RvbUF0dHJpYnV0ZUluZGV4RW51bS5Qcm9kdWN0Q3VzdG9t", - "QXR0cmlidXRlSW5kZXhCCAoGX3ZhbHVlIjEKEVByb2R1Y3RJdGVtSWRJbmZv", - "EhIKBXZhbHVlGAIgASgJSACIAQFCCAoGX3ZhbHVlIoUBCg9Qcm9kdWN0VHlw", - "ZUluZm8SEgoFdmFsdWUYAyABKAlIAIgBARJUCgVsZXZlbBgCIAEoDjJFLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Qcm9kdWN0VHlwZUxldmVs", - "RW51bS5Qcm9kdWN0VHlwZUxldmVsQggKBl92YWx1ZSIzChNQcm9kdWN0R3Jv", - "dXBpbmdJbmZvEhIKBXZhbHVlGAEgASgJSACIAQFCCAoGX3ZhbHVlIjEKEVBy", - "b2R1Y3RMYWJlbHNJbmZvEhIKBXZhbHVlGAEgASgJSACIAQFCCAoGX3ZhbHVl", - "IjoKGlByb2R1Y3RMZWdhY3lDb25kaXRpb25JbmZvEhIKBXZhbHVlGAEgASgJ", - "SACIAQFCCAoGX3ZhbHVlIjMKE1Byb2R1Y3RUeXBlRnVsbEluZm8SEgoFdmFs", - "dWUYASABKAlIAIgBAUIICgZfdmFsdWUiHQobVW5rbm93bkxpc3RpbmdEaW1l", - "bnNpb25JbmZvIn0KGkhvdGVsRGF0ZVNlbGVjdGlvblR5cGVJbmZvEl8KBHR5", - "cGUYASABKA4yUS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuSG90", - "ZWxEYXRlU2VsZWN0aW9uVHlwZUVudW0uSG90ZWxEYXRlU2VsZWN0aW9uVHlw", - "ZSJnCh1Ib3RlbEFkdmFuY2VCb29raW5nV2luZG93SW5mbxIVCghtaW5fZGF5", - "cxgDIAEoA0gAiAEBEhUKCG1heF9kYXlzGAQgASgDSAGIAQFCCwoJX21pbl9k", - "YXlzQgsKCV9tYXhfZGF5cyJnChVIb3RlbExlbmd0aE9mU3RheUluZm8SFwoK", - "bWluX25pZ2h0cxgDIAEoA0gAiAEBEhcKCm1heF9uaWdodHMYBCABKANIAYgB", - "AUINCgtfbWluX25pZ2h0c0INCgtfbWF4X25pZ2h0cyJBChlIb3RlbENoZWNr", - "SW5EYXRlUmFuZ2VJbmZvEhIKCnN0YXJ0X2RhdGUYASABKAkSEAoIZW5kX2Rh", - "dGUYAiABKAkiYwoTSG90ZWxDaGVja0luRGF5SW5mbxJMCgtkYXlfb2Zfd2Vl", - "axgBIAEoDjI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5EYXlP", - "ZldlZWtFbnVtLkRheU9mV2VlayIuCg5BY3Rpdml0eUlkSW5mbxISCgV2YWx1", - "ZRgBIAEoCUgAiAEBQggKBl92YWx1ZSIyChJBY3Rpdml0eVJhdGluZ0luZm8S", - "EgoFdmFsdWUYASABKANIAIgBAUIICgZfdmFsdWUiMwoTQWN0aXZpdHlDb3Vu", - "dHJ5SW5mbxISCgV2YWx1ZRgBIAEoCUgAiAEBQggKBl92YWx1ZSJoChNJbnRl", - "cmFjdGlvblR5cGVJbmZvElEKBHR5cGUYASABKA4yQy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuZW51bXMuSW50ZXJhY3Rpb25UeXBlRW51bS5JbnRlcmFj", - "dGlvblR5cGUi0gIKDkFkU2NoZWR1bGVJbmZvElMKDHN0YXJ0X21pbnV0ZRgB", - "IAEoDjI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5NaW51dGVP", - "ZkhvdXJFbnVtLk1pbnV0ZU9mSG91chJRCgplbmRfbWludXRlGAIgASgOMj0u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLk1pbnV0ZU9mSG91ckVu", - "dW0uTWludXRlT2ZIb3VyEhcKCnN0YXJ0X2hvdXIYBiABKAVIAIgBARIVCghl", - "bmRfaG91chgHIAEoBUgBiAEBEkwKC2RheV9vZl93ZWVrGAUgASgOMjcuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkRheU9mV2Vla0VudW0uRGF5", - "T2ZXZWVrQg0KC19zdGFydF9ob3VyQgsKCV9lbmRfaG91ciJbCgxBZ2VSYW5n", - "ZUluZm8SSwoEdHlwZRgBIAEoDjI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5lbnVtcy5BZ2VSYW5nZVR5cGVFbnVtLkFnZVJhbmdlVHlwZSJVCgpHZW5k", - "ZXJJbmZvEkcKBHR5cGUYASABKA4yOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuZW51bXMuR2VuZGVyVHlwZUVudW0uR2VuZGVyVHlwZSJkCg9JbmNvbWVS", - "YW5nZUluZm8SUQoEdHlwZRgBIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5lbnVtcy5JbmNvbWVSYW5nZVR5cGVFbnVtLkluY29tZVJhbmdlVHlw", - "ZSJtChJQYXJlbnRhbFN0YXR1c0luZm8SVwoEdHlwZRgBIAEoDjJJLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5QYXJlbnRhbFN0YXR1c1R5cGVF", - "bnVtLlBhcmVudGFsU3RhdHVzVHlwZSI2ChBZb3VUdWJlVmlkZW9JbmZvEhUK", - "CHZpZGVvX2lkGAIgASgJSACIAQFCCwoJX3ZpZGVvX2lkIjwKEllvdVR1YmVD", - "aGFubmVsSW5mbxIXCgpjaGFubmVsX2lkGAIgASgJSACIAQFCDQoLX2NoYW5u", - "ZWxfaWQiNAoMVXNlckxpc3RJbmZvEhYKCXVzZXJfbGlzdBgCIAEoCUgAiAEB", - "QgwKCl91c2VyX2xpc3QilQIKDVByb3hpbWl0eUluZm8SQAoJZ2VvX3BvaW50", - "GAEgASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5HZW9Q", - "b2ludEluZm8SEwoGcmFkaXVzGAUgASgBSACIAQESYwoMcmFkaXVzX3VuaXRz", - "GAMgASgOMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlByb3hp", - "bWl0eVJhZGl1c1VuaXRzRW51bS5Qcm94aW1pdHlSYWRpdXNVbml0cxI9Cgdh", - "ZGRyZXNzGAQgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1v", - "bi5BZGRyZXNzSW5mb0IJCgdfcmFkaXVzIpwBCgxHZW9Qb2ludEluZm8SJwoa", - "bG9uZ2l0dWRlX2luX21pY3JvX2RlZ3JlZXMYAyABKAVIAIgBARImChlsYXRp", - "dHVkZV9pbl9taWNyb19kZWdyZWVzGAQgASgFSAGIAQFCHQobX2xvbmdpdHVk", - "ZV9pbl9taWNyb19kZWdyZWVzQhwKGl9sYXRpdHVkZV9pbl9taWNyb19kZWdy", - "ZWVzIscCCgtBZGRyZXNzSW5mbxIYCgtwb3N0YWxfY29kZRgIIAEoCUgAiAEB", - "EhoKDXByb3ZpbmNlX2NvZGUYCSABKAlIAYgBARIZCgxjb3VudHJ5X2NvZGUY", - "CiABKAlIAogBARIaCg1wcm92aW5jZV9uYW1lGAsgASgJSAOIAQESGwoOc3Ry", - "ZWV0X2FkZHJlc3MYDCABKAlIBIgBARIcCg9zdHJlZXRfYWRkcmVzczIYDSAB", - "KAlIBYgBARIWCgljaXR5X25hbWUYDiABKAlIBogBAUIOCgxfcG9zdGFsX2Nv", - "ZGVCEAoOX3Byb3ZpbmNlX2NvZGVCDwoNX2NvdW50cnlfY29kZUIQCg5fcHJv", - "dmluY2VfbmFtZUIRCg9fc3RyZWV0X2FkZHJlc3NCEgoQX3N0cmVldF9hZGRy", - "ZXNzMkIMCgpfY2l0eV9uYW1lIkkKCVRvcGljSW5mbxIbCg50b3BpY19jb25z", - "dGFudBgDIAEoCUgAiAEBEgwKBHBhdGgYBCADKAlCEQoPX3RvcGljX2NvbnN0", - "YW50IkQKDExhbmd1YWdlSW5mbxIeChFsYW5ndWFnZV9jb25zdGFudBgCIAEo", - "CUgAiAEBQhQKEl9sYW5ndWFnZV9jb25zdGFudCI1CgtJcEJsb2NrSW5mbxIX", - "CgppcF9hZGRyZXNzGAIgASgJSACIAQFCDQoLX2lwX2FkZHJlc3MiZwoQQ29u", - "dGVudExhYmVsSW5mbxJTCgR0eXBlGAEgASgOMkUuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVudW1zLkNvbnRlbnRMYWJlbFR5cGVFbnVtLkNvbnRlbnRM", - "YWJlbFR5cGUiQQoLQ2FycmllckluZm8SHQoQY2Fycmllcl9jb25zdGFudBgC", - "IAEoCUgAiAEBQhMKEV9jYXJyaWVyX2NvbnN0YW50IlIKEFVzZXJJbnRlcmVz", - "dEluZm8SIwoWdXNlcl9pbnRlcmVzdF9jYXRlZ29yeRgCIAEoCUgAiAEBQhkK", - "F191c2VyX2ludGVyZXN0X2NhdGVnb3J5IukBCgtXZWJwYWdlSW5mbxIbCg5j", - "cml0ZXJpb25fbmFtZRgDIAEoCUgAiAEBEkkKCmNvbmRpdGlvbnMYAiADKAsy", - "NS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLldlYnBhZ2VDb25k", - "aXRpb25JbmZvEhsKE2NvdmVyYWdlX3BlcmNlbnRhZ2UYBCABKAESQgoGc2Ft", - "cGxlGAUgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5X", - "ZWJwYWdlU2FtcGxlSW5mb0IRCg9fY3JpdGVyaW9uX25hbWUiiQIKFFdlYnBh", - "Z2VDb25kaXRpb25JbmZvEmQKB29wZXJhbmQYASABKA4yUy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZW51bXMuV2VicGFnZUNvbmRpdGlvbk9wZXJhbmRF", - "bnVtLldlYnBhZ2VDb25kaXRpb25PcGVyYW5kEmcKCG9wZXJhdG9yGAIgASgO", - "MlUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLldlYnBhZ2VDb25k", - "aXRpb25PcGVyYXRvckVudW0uV2VicGFnZUNvbmRpdGlvbk9wZXJhdG9yEhUK", - "CGFyZ3VtZW50GAQgASgJSACIAQFCCwoJX2FyZ3VtZW50IigKEVdlYnBhZ2VT", - "YW1wbGVJbmZvEhMKC3NhbXBsZV91cmxzGAEgAygJInIKGk9wZXJhdGluZ1N5", - "c3RlbVZlcnNpb25JbmZvEi4KIW9wZXJhdGluZ19zeXN0ZW1fdmVyc2lvbl9j", - "b25zdGFudBgCIAEoCUgAiAEBQiQKIl9vcGVyYXRpbmdfc3lzdGVtX3ZlcnNp", - "b25fY29uc3RhbnQicAoTQXBwUGF5bWVudE1vZGVsSW5mbxJZCgR0eXBlGAEg", - "ASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkFwcFBheW1l", - "bnRNb2RlbFR5cGVFbnVtLkFwcFBheW1lbnRNb2RlbFR5cGUiUgoQTW9iaWxl", - "RGV2aWNlSW5mbxIjChZtb2JpbGVfZGV2aWNlX2NvbnN0YW50GAIgASgJSACI", - "AQFCGQoXX21vYmlsZV9kZXZpY2VfY29uc3RhbnQiRgoSQ3VzdG9tQWZmaW5p", - "dHlJbmZvEhwKD2N1c3RvbV9hZmZpbml0eRgCIAEoCUgAiAEBQhIKEF9jdXN0", - "b21fYWZmaW5pdHkiQAoQQ3VzdG9tSW50ZW50SW5mbxIaCg1jdXN0b21faW50", - "ZW50GAIgASgJSACIAQFCEAoOX2N1c3RvbV9pbnRlbnQi+QIKEUxvY2F0aW9u", - "R3JvdXBJbmZvEhEKBGZlZWQYBSABKAlIAIgBARIcChRnZW9fdGFyZ2V0X2Nv", - "bnN0YW50cxgGIAMoCRITCgZyYWRpdXMYByABKANIAYgBARJrCgxyYWRpdXNf", - "dW5pdHMYBCABKA4yVS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMu", - "TG9jYXRpb25Hcm91cFJhZGl1c1VuaXRzRW51bS5Mb2NhdGlvbkdyb3VwUmFk", - "aXVzVW5pdHMSFgoOZmVlZF9pdGVtX3NldHMYCCADKAkSNQooZW5hYmxlX2N1", - "c3RvbWVyX2xldmVsX2xvY2F0aW9uX2Fzc2V0X3NldBgJIAEoCEgCiAEBEiEK", - "GWxvY2F0aW9uX2dyb3VwX2Fzc2V0X3NldHMYCiADKAlCBwoFX2ZlZWRCCQoH", - "X3JhZGl1c0IrCilfZW5hYmxlX2N1c3RvbWVyX2xldmVsX2xvY2F0aW9uX2Fz", - "c2V0X3NldCItChJDdXN0b21BdWRpZW5jZUluZm8SFwoPY3VzdG9tX2F1ZGll", - "bmNlGAEgASgJIjEKFENvbWJpbmVkQXVkaWVuY2VJbmZvEhkKEWNvbWJpbmVk", - "X2F1ZGllbmNlGAEgASgJIiAKDEF1ZGllbmNlSW5mbxIQCghhdWRpZW5jZRgB", - "IAEoCSJoChBLZXl3b3JkVGhlbWVJbmZvEiAKFmtleXdvcmRfdGhlbWVfY29u", - "c3RhbnQYASABKAlIABIhChdmcmVlX2Zvcm1fa2V5d29yZF90aGVtZRgCIAEo", - "CUgAQg8KDWtleXdvcmRfdGhlbWUiKAoSTG9jYWxTZXJ2aWNlSWRJbmZvEhIK", - "CnNlcnZpY2VfaWQYASABKAlC7QEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuY29tbW9uQg1Dcml0ZXJpYVByb3RvUAFaRWdvb2dsZS5nb2xhbmcu", - "b3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvY29t", - "bW9uO2NvbW1vbqICA0dBQaoCH0dvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNC5D", - "b21tb27KAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcQ29tbW9u6gIjR29v", - "Z2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpDb21tb25iBnByb3RvMw==")); + "cm91cF9jcml0ZXJpb24YBCABKAlIAIgBARJICgRwYXRoGAUgASgLMjUuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5MaXN0aW5nRGltZW5zaW9u", + "UGF0aEgBiAEBQhwKGl9wYXJlbnRfYWRfZ3JvdXBfY3JpdGVyaW9uQgcKBV9w", + "YXRoImEKFExpc3RpbmdEaW1lbnNpb25QYXRoEkkKCmRpbWVuc2lvbnMYASAD", + "KAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkxpc3RpbmdE", + "aW1lbnNpb25JbmZvIl0KEExpc3RpbmdTY29wZUluZm8SSQoKZGltZW5zaW9u", + "cxgCIAMoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uTGlz", + "dGluZ0RpbWVuc2lvbkluZm8i5w0KFExpc3RpbmdEaW1lbnNpb25JbmZvEkAK", + "CGhvdGVsX2lkGAIgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNv", + "bW1vbi5Ib3RlbElkSW5mb0gAEkYKC2hvdGVsX2NsYXNzGAMgASgLMi8uZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5Ib3RlbENsYXNzSW5mb0gA", + "ElcKFGhvdGVsX2NvdW50cnlfcmVnaW9uGAQgASgLMjcuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmNvbW1vbi5Ib3RlbENvdW50cnlSZWdpb25JbmZvSAAS", + "RgoLaG90ZWxfc3RhdGUYBSABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuY29tbW9uLkhvdGVsU3RhdGVJbmZvSAASRAoKaG90ZWxfY2l0eRgGIAEo", + "CzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uSG90ZWxDaXR5", + "SW5mb0gAEl8KGHByb2R1Y3RfYmlkZGluZ19jYXRlZ29yeRgNIAEoCzI7Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uUHJvZHVjdEJpZGRpbmdD", + "YXRlZ29yeUluZm9IABJKCg1wcm9kdWN0X2JyYW5kGA8gASgLMjEuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5Qcm9kdWN0QnJhbmRJbmZvSAAS", + "TgoPcHJvZHVjdF9jaGFubmVsGAggASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmNvbW1vbi5Qcm9kdWN0Q2hhbm5lbEluZm9IABJlChtwcm9kdWN0", + "X2NoYW5uZWxfZXhjbHVzaXZpdHkYCSABKAsyPi5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuY29tbW9uLlByb2R1Y3RDaGFubmVsRXhjbHVzaXZpdHlJbmZv", + "SAASUgoRcHJvZHVjdF9jb25kaXRpb24YCiABKAsyNS5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuY29tbW9uLlByb2R1Y3RDb25kaXRpb25JbmZvSAASXwoY", + "cHJvZHVjdF9jdXN0b21fYXR0cmlidXRlGBAgASgLMjsuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmNvbW1vbi5Qcm9kdWN0Q3VzdG9tQXR0cmlidXRlSW5m", + "b0gAEk0KD3Byb2R1Y3RfaXRlbV9pZBgLIAEoCzIyLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5jb21tb24uUHJvZHVjdEl0ZW1JZEluZm9IABJICgxwcm9k", + "dWN0X3R5cGUYDCABKAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29t", + "bW9uLlByb2R1Y3RUeXBlSW5mb0gAElAKEHByb2R1Y3RfZ3JvdXBpbmcYESAB", + "KAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlByb2R1Y3RH", + "cm91cGluZ0luZm9IABJMCg5wcm9kdWN0X2xhYmVscxgSIAEoCzIyLmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uUHJvZHVjdExhYmVsc0luZm9I", + "ABJfChhwcm9kdWN0X2xlZ2FjeV9jb25kaXRpb24YEyABKAsyOy5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlByb2R1Y3RMZWdhY3lDb25kaXRp", + "b25JbmZvSAASUQoRcHJvZHVjdF90eXBlX2Z1bGwYFCABKAsyNC5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlByb2R1Y3RUeXBlRnVsbEluZm9I", + "ABJGCgthY3Rpdml0eV9pZBgVIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5jb21tb24uQWN0aXZpdHlJZEluZm9IABJOCg9hY3Rpdml0eV9yYXRp", + "bmcYFiABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkFj", + "dGl2aXR5UmF0aW5nSW5mb0gAElAKEGFjdGl2aXR5X2NvdW50cnkYFyABKAsy", + "NC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkFjdGl2aXR5Q291", + "bnRyeUluZm9IABJhChl1bmtub3duX2xpc3RpbmdfZGltZW5zaW9uGA4gASgL", + "MjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5Vbmtub3duTGlz", + "dGluZ0RpbWVuc2lvbkluZm9IAEILCglkaW1lbnNpb24iKwoLSG90ZWxJZElu", + "Zm8SEgoFdmFsdWUYAiABKAlIAIgBAUIICgZfdmFsdWUiLgoOSG90ZWxDbGFz", + "c0luZm8SEgoFdmFsdWUYAiABKANIAIgBAUIICgZfdmFsdWUiXAoWSG90ZWxD", + "b3VudHJ5UmVnaW9uSW5mbxIlChhjb3VudHJ5X3JlZ2lvbl9jcml0ZXJpb24Y", + "AiABKAlIAIgBAUIbChlfY291bnRyeV9yZWdpb25fY3JpdGVyaW9uIkIKDkhv", + "dGVsU3RhdGVJbmZvEhwKD3N0YXRlX2NyaXRlcmlvbhgCIAEoCUgAiAEBQhIK", + "EF9zdGF0ZV9jcml0ZXJpb24iPwoNSG90ZWxDaXR5SW5mbxIbCg5jaXR5X2Ny", + "aXRlcmlvbhgCIAEoCUgAiAEBQhEKD19jaXR5X2NyaXRlcmlvbiKgAQoaUHJv", + "ZHVjdEJpZGRpbmdDYXRlZ29yeUluZm8SDwoCaWQYBCABKANIAIgBARJqCgVs", + "ZXZlbBgDIAEoDjJbLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Q", + "cm9kdWN0QmlkZGluZ0NhdGVnb3J5TGV2ZWxFbnVtLlByb2R1Y3RCaWRkaW5n", + "Q2F0ZWdvcnlMZXZlbEIFCgNfaWQiMAoQUHJvZHVjdEJyYW5kSW5mbxISCgV2", + "YWx1ZRgCIAEoCUgAiAEBQggKBl92YWx1ZSJoChJQcm9kdWN0Q2hhbm5lbElu", + "Zm8SUgoHY2hhbm5lbBgBIAEoDjJBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5lbnVtcy5Qcm9kdWN0Q2hhbm5lbEVudW0uUHJvZHVjdENoYW5uZWwilQEK", + "HVByb2R1Y3RDaGFubmVsRXhjbHVzaXZpdHlJbmZvEnQKE2NoYW5uZWxfZXhj", + "bHVzaXZpdHkYASABKA4yVy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51", + "bXMuUHJvZHVjdENoYW5uZWxFeGNsdXNpdml0eUVudW0uUHJvZHVjdENoYW5u", + "ZWxFeGNsdXNpdml0eSJwChRQcm9kdWN0Q29uZGl0aW9uSW5mbxJYCgljb25k", + "aXRpb24YASABKA4yRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMu", + "UHJvZHVjdENvbmRpdGlvbkVudW0uUHJvZHVjdENvbmRpdGlvbiKmAQoaUHJv", + "ZHVjdEN1c3RvbUF0dHJpYnV0ZUluZm8SEgoFdmFsdWUYAyABKAlIAIgBARJq", + "CgVpbmRleBgCIAEoDjJbLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVt", + "cy5Qcm9kdWN0Q3VzdG9tQXR0cmlidXRlSW5kZXhFbnVtLlByb2R1Y3RDdXN0", + "b21BdHRyaWJ1dGVJbmRleEIICgZfdmFsdWUiMQoRUHJvZHVjdEl0ZW1JZElu", + "Zm8SEgoFdmFsdWUYAiABKAlIAIgBAUIICgZfdmFsdWUihQEKD1Byb2R1Y3RU", + "eXBlSW5mbxISCgV2YWx1ZRgDIAEoCUgAiAEBElQKBWxldmVsGAIgASgOMkUu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlByb2R1Y3RUeXBlTGV2", + "ZWxFbnVtLlByb2R1Y3RUeXBlTGV2ZWxCCAoGX3ZhbHVlIjMKE1Byb2R1Y3RH", + "cm91cGluZ0luZm8SEgoFdmFsdWUYASABKAlIAIgBAUIICgZfdmFsdWUiMQoR", + "UHJvZHVjdExhYmVsc0luZm8SEgoFdmFsdWUYASABKAlIAIgBAUIICgZfdmFs", + "dWUiOgoaUHJvZHVjdExlZ2FjeUNvbmRpdGlvbkluZm8SEgoFdmFsdWUYASAB", + "KAlIAIgBAUIICgZfdmFsdWUiMwoTUHJvZHVjdFR5cGVGdWxsSW5mbxISCgV2", + "YWx1ZRgBIAEoCUgAiAEBQggKBl92YWx1ZSIdChtVbmtub3duTGlzdGluZ0Rp", + "bWVuc2lvbkluZm8ifQoaSG90ZWxEYXRlU2VsZWN0aW9uVHlwZUluZm8SXwoE", + "dHlwZRgBIAEoDjJRLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5I", + "b3RlbERhdGVTZWxlY3Rpb25UeXBlRW51bS5Ib3RlbERhdGVTZWxlY3Rpb25U", + "eXBlImcKHUhvdGVsQWR2YW5jZUJvb2tpbmdXaW5kb3dJbmZvEhUKCG1pbl9k", + "YXlzGAMgASgDSACIAQESFQoIbWF4X2RheXMYBCABKANIAYgBAUILCglfbWlu", + "X2RheXNCCwoJX21heF9kYXlzImcKFUhvdGVsTGVuZ3RoT2ZTdGF5SW5mbxIX", + "CgptaW5fbmlnaHRzGAMgASgDSACIAQESFwoKbWF4X25pZ2h0cxgEIAEoA0gB", + "iAEBQg0KC19taW5fbmlnaHRzQg0KC19tYXhfbmlnaHRzIkEKGUhvdGVsQ2hl", + "Y2tJbkRhdGVSYW5nZUluZm8SEgoKc3RhcnRfZGF0ZRgBIAEoCRIQCghlbmRf", + "ZGF0ZRgCIAEoCSJjChNIb3RlbENoZWNrSW5EYXlJbmZvEkwKC2RheV9vZl93", + "ZWVrGAEgASgOMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkRh", + "eU9mV2Vla0VudW0uRGF5T2ZXZWVrIi4KDkFjdGl2aXR5SWRJbmZvEhIKBXZh", + "bHVlGAEgASgJSACIAQFCCAoGX3ZhbHVlIjIKEkFjdGl2aXR5UmF0aW5nSW5m", + "bxISCgV2YWx1ZRgBIAEoA0gAiAEBQggKBl92YWx1ZSIzChNBY3Rpdml0eUNv", + "dW50cnlJbmZvEhIKBXZhbHVlGAEgASgJSACIAQFCCAoGX3ZhbHVlImgKE0lu", + "dGVyYWN0aW9uVHlwZUluZm8SUQoEdHlwZRgBIAEoDjJDLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5lbnVtcy5JbnRlcmFjdGlvblR5cGVFbnVtLkludGVy", + "YWN0aW9uVHlwZSLSAgoOQWRTY2hlZHVsZUluZm8SUwoMc3RhcnRfbWludXRl", + "GAEgASgOMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLk1pbnV0", + "ZU9mSG91ckVudW0uTWludXRlT2ZIb3VyElEKCmVuZF9taW51dGUYAiABKA4y", + "PS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuTWludXRlT2ZIb3Vy", + "RW51bS5NaW51dGVPZkhvdXISFwoKc3RhcnRfaG91chgGIAEoBUgAiAEBEhUK", + "CGVuZF9ob3VyGAcgASgFSAGIAQESTAoLZGF5X29mX3dlZWsYBSABKA4yNy5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuRGF5T2ZXZWVrRW51bS5E", + "YXlPZldlZWtCDQoLX3N0YXJ0X2hvdXJCCwoJX2VuZF9ob3VyIlsKDEFnZVJh", + "bmdlSW5mbxJLCgR0eXBlGAEgASgOMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LmVudW1zLkFnZVJhbmdlVHlwZUVudW0uQWdlUmFuZ2VUeXBlIlUKCkdl", + "bmRlckluZm8SRwoEdHlwZRgBIAEoDjI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5lbnVtcy5HZW5kZXJUeXBlRW51bS5HZW5kZXJUeXBlImQKD0luY29t", + "ZVJhbmdlSW5mbxJRCgR0eXBlGAEgASgOMkMuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVudW1zLkluY29tZVJhbmdlVHlwZUVudW0uSW5jb21lUmFuZ2VU", + "eXBlIm0KElBhcmVudGFsU3RhdHVzSW5mbxJXCgR0eXBlGAEgASgOMkkuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlBhcmVudGFsU3RhdHVzVHlw", + "ZUVudW0uUGFyZW50YWxTdGF0dXNUeXBlIjYKEFlvdVR1YmVWaWRlb0luZm8S", + "FQoIdmlkZW9faWQYAiABKAlIAIgBAUILCglfdmlkZW9faWQiPAoSWW91VHVi", + "ZUNoYW5uZWxJbmZvEhcKCmNoYW5uZWxfaWQYAiABKAlIAIgBAUINCgtfY2hh", + "bm5lbF9pZCI0CgxVc2VyTGlzdEluZm8SFgoJdXNlcl9saXN0GAIgASgJSACI", + "AQFCDAoKX3VzZXJfbGlzdCKVAgoNUHJveGltaXR5SW5mbxJACglnZW9fcG9p", + "bnQYASABKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkdl", + "b1BvaW50SW5mbxITCgZyYWRpdXMYBSABKAFIAIgBARJjCgxyYWRpdXNfdW5p", + "dHMYAyABKA4yTS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuUHJv", + "eGltaXR5UmFkaXVzVW5pdHNFbnVtLlByb3hpbWl0eVJhZGl1c1VuaXRzEj0K", + "B2FkZHJlc3MYBCABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29t", + "bW9uLkFkZHJlc3NJbmZvQgkKB19yYWRpdXMinAEKDEdlb1BvaW50SW5mbxIn", + "Chpsb25naXR1ZGVfaW5fbWljcm9fZGVncmVlcxgDIAEoBUgAiAEBEiYKGWxh", + "dGl0dWRlX2luX21pY3JvX2RlZ3JlZXMYBCABKAVIAYgBAUIdChtfbG9uZ2l0", + "dWRlX2luX21pY3JvX2RlZ3JlZXNCHAoaX2xhdGl0dWRlX2luX21pY3JvX2Rl", + "Z3JlZXMixwIKC0FkZHJlc3NJbmZvEhgKC3Bvc3RhbF9jb2RlGAggASgJSACI", + "AQESGgoNcHJvdmluY2VfY29kZRgJIAEoCUgBiAEBEhkKDGNvdW50cnlfY29k", + "ZRgKIAEoCUgCiAEBEhoKDXByb3ZpbmNlX25hbWUYCyABKAlIA4gBARIbCg5z", + "dHJlZXRfYWRkcmVzcxgMIAEoCUgEiAEBEhwKD3N0cmVldF9hZGRyZXNzMhgN", + "IAEoCUgFiAEBEhYKCWNpdHlfbmFtZRgOIAEoCUgGiAEBQg4KDF9wb3N0YWxf", + "Y29kZUIQCg5fcHJvdmluY2VfY29kZUIPCg1fY291bnRyeV9jb2RlQhAKDl9w", + "cm92aW5jZV9uYW1lQhEKD19zdHJlZXRfYWRkcmVzc0ISChBfc3RyZWV0X2Fk", + "ZHJlc3MyQgwKCl9jaXR5X25hbWUiSQoJVG9waWNJbmZvEhsKDnRvcGljX2Nv", + "bnN0YW50GAMgASgJSACIAQESDAoEcGF0aBgEIAMoCUIRCg9fdG9waWNfY29u", + "c3RhbnQiRAoMTGFuZ3VhZ2VJbmZvEh4KEWxhbmd1YWdlX2NvbnN0YW50GAIg", + "ASgJSACIAQFCFAoSX2xhbmd1YWdlX2NvbnN0YW50IjUKC0lwQmxvY2tJbmZv", + "EhcKCmlwX2FkZHJlc3MYAiABKAlIAIgBAUINCgtfaXBfYWRkcmVzcyJnChBD", + "b250ZW50TGFiZWxJbmZvElMKBHR5cGUYASABKA4yRS5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuZW51bXMuQ29udGVudExhYmVsVHlwZUVudW0uQ29udGVu", + "dExhYmVsVHlwZSJBCgtDYXJyaWVySW5mbxIdChBjYXJyaWVyX2NvbnN0YW50", + "GAIgASgJSACIAQFCEwoRX2NhcnJpZXJfY29uc3RhbnQiUgoQVXNlckludGVy", + "ZXN0SW5mbxIjChZ1c2VyX2ludGVyZXN0X2NhdGVnb3J5GAIgASgJSACIAQFC", + "GQoXX3VzZXJfaW50ZXJlc3RfY2F0ZWdvcnki6QEKC1dlYnBhZ2VJbmZvEhsK", + "DmNyaXRlcmlvbl9uYW1lGAMgASgJSACIAQESSQoKY29uZGl0aW9ucxgCIAMo", + "CzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uV2VicGFnZUNv", + "bmRpdGlvbkluZm8SGwoTY292ZXJhZ2VfcGVyY2VudGFnZRgEIAEoARJCCgZz", + "YW1wbGUYBSABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9u", + "LldlYnBhZ2VTYW1wbGVJbmZvQhEKD19jcml0ZXJpb25fbmFtZSKJAgoUV2Vi", + "cGFnZUNvbmRpdGlvbkluZm8SZAoHb3BlcmFuZBgBIAEoDjJTLmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5XZWJwYWdlQ29uZGl0aW9uT3BlcmFu", + "ZEVudW0uV2VicGFnZUNvbmRpdGlvbk9wZXJhbmQSZwoIb3BlcmF0b3IYAiAB", + "KA4yVS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuV2VicGFnZUNv", + "bmRpdGlvbk9wZXJhdG9yRW51bS5XZWJwYWdlQ29uZGl0aW9uT3BlcmF0b3IS", + "FQoIYXJndW1lbnQYBCABKAlIAIgBAUILCglfYXJndW1lbnQiKAoRV2VicGFn", + "ZVNhbXBsZUluZm8SEwoLc2FtcGxlX3VybHMYASADKAkicgoaT3BlcmF0aW5n", + "U3lzdGVtVmVyc2lvbkluZm8SLgohb3BlcmF0aW5nX3N5c3RlbV92ZXJzaW9u", + "X2NvbnN0YW50GAIgASgJSACIAQFCJAoiX29wZXJhdGluZ19zeXN0ZW1fdmVy", + "c2lvbl9jb25zdGFudCJwChNBcHBQYXltZW50TW9kZWxJbmZvElkKBHR5cGUY", + "ASABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQXBwUGF5", + "bWVudE1vZGVsVHlwZUVudW0uQXBwUGF5bWVudE1vZGVsVHlwZSJSChBNb2Jp", + "bGVEZXZpY2VJbmZvEiMKFm1vYmlsZV9kZXZpY2VfY29uc3RhbnQYAiABKAlI", + "AIgBAUIZChdfbW9iaWxlX2RldmljZV9jb25zdGFudCJGChJDdXN0b21BZmZp", + "bml0eUluZm8SHAoPY3VzdG9tX2FmZmluaXR5GAIgASgJSACIAQFCEgoQX2N1", + "c3RvbV9hZmZpbml0eSJAChBDdXN0b21JbnRlbnRJbmZvEhoKDWN1c3RvbV9p", + "bnRlbnQYAiABKAlIAIgBAUIQCg5fY3VzdG9tX2ludGVudCL5AgoRTG9jYXRp", + "b25Hcm91cEluZm8SEQoEZmVlZBgFIAEoCUgAiAEBEhwKFGdlb190YXJnZXRf", + "Y29uc3RhbnRzGAYgAygJEhMKBnJhZGl1cxgHIAEoA0gBiAEBEmsKDHJhZGl1", + "c191bml0cxgEIAEoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVt", + "cy5Mb2NhdGlvbkdyb3VwUmFkaXVzVW5pdHNFbnVtLkxvY2F0aW9uR3JvdXBS", + "YWRpdXNVbml0cxIWCg5mZWVkX2l0ZW1fc2V0cxgIIAMoCRI1CihlbmFibGVf", + "Y3VzdG9tZXJfbGV2ZWxfbG9jYXRpb25fYXNzZXRfc2V0GAkgASgISAKIAQES", + "IQoZbG9jYXRpb25fZ3JvdXBfYXNzZXRfc2V0cxgKIAMoCUIHCgVfZmVlZEIJ", + "CgdfcmFkaXVzQisKKV9lbmFibGVfY3VzdG9tZXJfbGV2ZWxfbG9jYXRpb25f", + "YXNzZXRfc2V0Ii0KEkN1c3RvbUF1ZGllbmNlSW5mbxIXCg9jdXN0b21fYXVk", + "aWVuY2UYASABKAkiMQoUQ29tYmluZWRBdWRpZW5jZUluZm8SGQoRY29tYmlu", + "ZWRfYXVkaWVuY2UYASABKAkiIAoMQXVkaWVuY2VJbmZvEhAKCGF1ZGllbmNl", + "GAEgASgJImgKEEtleXdvcmRUaGVtZUluZm8SIAoWa2V5d29yZF90aGVtZV9j", + "b25zdGFudBgBIAEoCUgAEiEKF2ZyZWVfZm9ybV9rZXl3b3JkX3RoZW1lGAIg", + "ASgJSABCDwoNa2V5d29yZF90aGVtZSIoChJMb2NhbFNlcnZpY2VJZEluZm8S", + "EgoKc2VydmljZV9pZBgBIAEoCULtAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5jb21tb25CDUNyaXRlcmlhUHJvdG9QAVpFZ29vZ2xlLmdvbGFu", + "Zy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNC9j", + "b21tb247Y29tbW9uogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0", + "LkNvbW1vbsoCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxDb21tb27qAiNH", + "b29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkNvbW1vbmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Enums.AgeRangeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AppPaymentModelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ContentLabelTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.DayOfWeekReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.GenderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.HotelDateSelectionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.IncomeRangeTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.InteractionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.KeywordMatchTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ListingGroupTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.LocationGroupRadiusUnitsReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.MinuteOfHourReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ParentalStatusTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductBiddingCategoryLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductChannelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductChannelExclusivityReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductConditionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductCustomAttributeIndexReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductTypeLevelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProximityRadiusUnitsReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.WebpageConditionOperandReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.WebpageConditionOperatorReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -266,7 +270,8 @@ static CriteriaReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.MobileApplicationInfo), global::Google.Ads.GoogleAds.V14.Common.MobileApplicationInfo.Parser, new[]{ "AppId", "Name" }, new[]{ "AppId", "Name" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.LocationInfo), global::Google.Ads.GoogleAds.V14.Common.LocationInfo.Parser, new[]{ "GeoTargetConstant" }, new[]{ "GeoTargetConstant" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.DeviceInfo), global::Google.Ads.GoogleAds.V14.Common.DeviceInfo.Parser, new[]{ "Type" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.ListingGroupInfo), global::Google.Ads.GoogleAds.V14.Common.ListingGroupInfo.Parser, new[]{ "Type", "CaseValue", "ParentAdGroupCriterion" }, new[]{ "ParentAdGroupCriterion" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.ListingGroupInfo), global::Google.Ads.GoogleAds.V14.Common.ListingGroupInfo.Parser, new[]{ "Type", "CaseValue", "ParentAdGroupCriterion", "Path" }, new[]{ "ParentAdGroupCriterion", "Path" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.ListingDimensionPath), global::Google.Ads.GoogleAds.V14.Common.ListingDimensionPath.Parser, new[]{ "Dimensions" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.ListingScopeInfo), global::Google.Ads.GoogleAds.V14.Common.ListingScopeInfo.Parser, new[]{ "Dimensions" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.ListingDimensionInfo), global::Google.Ads.GoogleAds.V14.Common.ListingDimensionInfo.Parser, new[]{ "HotelId", "HotelClass", "HotelCountryRegion", "HotelState", "HotelCity", "ProductBiddingCategory", "ProductBrand", "ProductChannel", "ProductChannelExclusivity", "ProductCondition", "ProductCustomAttribute", "ProductItemId", "ProductType", "ProductGrouping", "ProductLabels", "ProductLegacyCondition", "ProductTypeFull", "ActivityId", "ActivityRating", "ActivityCountry", "UnknownListingDimension" }, new[]{ "Dimension" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.HotelIdInfo), global::Google.Ads.GoogleAds.V14.Common.HotelIdInfo.Parser, new[]{ "Value" }, new[]{ "Value" }, null, null, null), @@ -1935,6 +1940,7 @@ public ListingGroupInfo(ListingGroupInfo other) : this() { type_ = other.type_; caseValue_ = other.caseValue_ != null ? other.caseValue_.Clone() : null; parentAdGroupCriterion_ = other.parentAdGroupCriterion_; + path_ = other.path_ != null ? other.path_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2005,6 +2011,21 @@ public void ClearParentAdGroupCriterion() { parentAdGroupCriterion_ = null; } + /// Field number for the "path" field. + public const int PathFieldNumber = 5; + private global::Google.Ads.GoogleAds.V14.Common.ListingDimensionPath path_; + /// + /// The path of dimensions defining this listing group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Common.ListingDimensionPath Path { + get { return path_; } + set { + path_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -2023,6 +2044,7 @@ public bool Equals(ListingGroupInfo other) { if (Type != other.Type) return false; if (!object.Equals(CaseValue, other.CaseValue)) return false; if (ParentAdGroupCriterion != other.ParentAdGroupCriterion) return false; + if (!object.Equals(Path, other.Path)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2033,6 +2055,7 @@ public override int GetHashCode() { if (Type != global::Google.Ads.GoogleAds.V14.Enums.ListingGroupTypeEnum.Types.ListingGroupType.Unspecified) hash ^= Type.GetHashCode(); if (caseValue_ != null) hash ^= CaseValue.GetHashCode(); if (HasParentAdGroupCriterion) hash ^= ParentAdGroupCriterion.GetHashCode(); + if (path_ != null) hash ^= Path.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2063,6 +2086,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(ParentAdGroupCriterion); } + if (path_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Path); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2085,6 +2112,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(ParentAdGroupCriterion); } + if (path_ != null) { + output.WriteRawTag(42); + output.WriteMessage(Path); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2104,6 +2135,9 @@ public int CalculateSize() { if (HasParentAdGroupCriterion) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ParentAdGroupCriterion); } + if (path_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Path); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2128,6 +2162,12 @@ public void MergeFrom(ListingGroupInfo other) { if (other.HasParentAdGroupCriterion) { ParentAdGroupCriterion = other.ParentAdGroupCriterion; } + if (other.path_ != null) { + if (path_ == null) { + Path = new global::Google.Ads.GoogleAds.V14.Common.ListingDimensionPath(); + } + Path.MergeFrom(other.Path); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2158,6 +2198,13 @@ public void MergeFrom(pb::CodedInputStream input) { ParentAdGroupCriterion = input.ReadString(); break; } + case 42: { + if (path_ == null) { + Path = new global::Google.Ads.GoogleAds.V14.Common.ListingDimensionPath(); + } + input.ReadMessage(Path); + break; + } } } #endif @@ -2188,6 +2235,198 @@ public void MergeFrom(pb::CodedInputStream input) { ParentAdGroupCriterion = input.ReadString(); break; } + case 42: { + if (path_ == null) { + Path = new global::Google.Ads.GoogleAds.V14.Common.ListingDimensionPath(); + } + input.ReadMessage(Path); + break; + } + } + } + } + #endif + + } + + /// + /// The path of dimensions defining a listing group. + /// + public sealed partial class ListingDimensionPath : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListingDimensionPath()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListingDimensionPath() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListingDimensionPath(ListingDimensionPath other) : this() { + dimensions_ = other.dimensions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ListingDimensionPath Clone() { + return new ListingDimensionPath(this); + } + + /// Field number for the "dimensions" field. + public const int DimensionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_dimensions_codec + = pb::FieldCodec.ForMessage(10, global::Google.Ads.GoogleAds.V14.Common.ListingDimensionInfo.Parser); + private readonly pbc::RepeatedField dimensions_ = new pbc::RepeatedField(); + /// + /// The complete path of dimensions through the listing group hierarchy, from + /// the root (excluding the root itself) to this listing group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Dimensions { + get { return dimensions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ListingDimensionPath); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ListingDimensionPath other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!dimensions_.Equals(other.dimensions_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + hash ^= dimensions_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + dimensions_.WriteTo(output, _repeated_dimensions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + dimensions_.WriteTo(ref output, _repeated_dimensions_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + size += dimensions_.CalculateSize(_repeated_dimensions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ListingDimensionPath other) { + if (other == null) { + return; + } + dimensions_.Add(other.dimensions_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + dimensions_.AddEntriesFrom(input, _repeated_dimensions_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + dimensions_.AddEntriesFrom(ref input, _repeated_dimensions_codec); + break; + } } } } @@ -2212,7 +2451,7 @@ public sealed partial class ListingScopeInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[8]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -2396,7 +2635,7 @@ public sealed partial class ListingDimensionInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[10]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -3968,7 +4207,7 @@ public sealed partial class HotelClassInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[11]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4179,7 +4418,7 @@ public sealed partial class HotelCountryRegionInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[13]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4597,7 +4836,7 @@ public sealed partial class HotelCityInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[14]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4807,7 +5046,7 @@ public sealed partial class ProductBiddingCategoryInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[16]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5270,7 +5509,7 @@ public sealed partial class ProductChannelInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[21]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6313,7 +6552,7 @@ public sealed partial class ProductTypeInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[22]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6563,7 +6802,7 @@ public sealed partial class ProductGroupingInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[24]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6983,7 +7222,7 @@ public sealed partial class ProductLegacyConditionInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[33]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -8926,7 +9165,7 @@ public sealed partial class ActivityRatingInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[37]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -9952,7 +10191,7 @@ public sealed partial class AgeRangeInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[38]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10147,7 +10386,7 @@ public sealed partial class GenderInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[39]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[40]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10342,7 +10581,7 @@ public sealed partial class IncomeRangeInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[40]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[41]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10537,7 +10776,7 @@ public sealed partial class ParentalStatusInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[42]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -10941,7 +11180,7 @@ public sealed partial class YouTubeChannelInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[44]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11368,7 +11607,7 @@ public sealed partial class ProximityInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[45]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[46]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11718,7 +11957,7 @@ public sealed partial class GeoPointInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[46]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[47]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11984,7 +12223,7 @@ public sealed partial class AddressInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[47]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12521,7 +12760,7 @@ public sealed partial class TopicInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[48]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12762,7 +13001,7 @@ public sealed partial class LanguageInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[49]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -12975,7 +13214,7 @@ public sealed partial class IpBlockInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[50]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13184,7 +13423,7 @@ public sealed partial class ContentLabelInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[51]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[52]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13379,7 +13618,7 @@ public sealed partial class CarrierInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[52]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[53]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13588,7 +13827,7 @@ public sealed partial class UserInterestInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[53]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[54]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -13797,7 +14036,7 @@ public sealed partial class WebpageInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[54]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[55]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14139,7 +14378,7 @@ public sealed partial class WebpageConditionInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[56]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[57]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -14612,7 +14851,7 @@ public sealed partial class OperatingSystemVersionInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[59]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[60]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15226,7 +15465,7 @@ public sealed partial class CustomAffinityInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[61]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[62]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -15646,7 +15885,7 @@ public sealed partial class LocationGroupInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[62]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[63]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16111,7 +16350,7 @@ public sealed partial class CustomAudienceInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[65]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[66]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16696,7 +16935,7 @@ public sealed partial class KeywordThemeInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[66]; } + get { return global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor.MessageTypes[67]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -16995,7 +17234,7 @@ public sealed partial class LocalServiceIdInfo : pb::IMessage + /// Audience segment criteria cannot be added when use_audience_grouped bit + /// is set. + /// + [pbr::OriginalName("CANNOT_ADD_AUDIENCE_SEGMENT_CRITERION_WHEN_AUDIENCE_GROUPED_IS_SET")] CannotAddAudienceSegmentCriterionWhenAudienceGroupedIsSet = 152, + /// + /// Only one audience is allowed in an ad group. + /// + [pbr::OriginalName("ONE_AUDIENCE_ALLOWED_PER_AD_GROUP")] OneAudienceAllowedPerAdGroup = 153, + /// + /// Invalid detailed demographics criterion. + /// + [pbr::OriginalName("INVALID_DETAILED_DEMOGRAPHIC")] InvalidDetailedDemographic = 154, } } diff --git a/Google.Ads.GoogleAds/src/V14/Customer.g.cs b/Google.Ads.GoogleAds/src/V14/Customer.g.cs index 83874d6f8..d2eb92a80 100755 --- a/Google.Ads.GoogleAds/src/V14/Customer.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Customer.g.cs @@ -48,7 +48,7 @@ static CustomerReflection() { "MTQvZXJyb3JzL3N0cmluZ19mb3JtYXRfZXJyb3IucHJvdG8aOWdvb2dsZS9h", "ZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvc3RyaW5nX2xlbmd0aF9lcnJvci5w", "cm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl", - "L2FwaS9yZXNvdXJjZS5wcm90byKlDgoIQ3VzdG9tZXISQAoNcmVzb3VyY2Vf", + "L2FwaS9yZXNvdXJjZS5wcm90byKMDwoIQ3VzdG9tZXISQAoNcmVzb3VyY2Vf", "bmFtZRgBIAEoCUIp4EEF+kEjCiFnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", "Q3VzdG9tZXISFAoCaWQYEyABKANCA+BBA0gAiAEBEh0KEGRlc2NyaXB0aXZl", "X25hbWUYFCABKAlIAYgBARIfCg1jdXJyZW5jeV9jb2RlGBUgASgJQgPgQQVI", @@ -79,100 +79,104 @@ static CustomerReflection() { "X2RvbmVfZGF0ZV90aW1lGCkgASgJQgPgQQNIDogBARJ0CiNvZmZsaW5lX2Nv", "bnZlcnNpb25fY2xpZW50X3N1bW1hcmllcxgrIAMoCzJCLmdvb2dsZS5hZHMu", "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuT2ZmbGluZUNvbnZlcnNpb25DbGll", - "bnRTdW1tYXJ5QgPgQQM6P+pBPAohZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29t", - "L0N1c3RvbWVyEhdjdXN0b21lcnMve2N1c3RvbWVyX2lkfUIFCgNfaWRCEwoR", - "X2Rlc2NyaXB0aXZlX25hbWVCEAoOX2N1cnJlbmN5X2NvZGVCDAoKX3RpbWVf", - "em9uZUIYChZfdHJhY2tpbmdfdXJsX3RlbXBsYXRlQhMKEV9maW5hbF91cmxf", - "c3VmZml4QhcKFV9hdXRvX3RhZ2dpbmdfZW5hYmxlZEIVChNfaGFzX3BhcnRu", - "ZXJzX2JhZGdlQgoKCF9tYW5hZ2VyQg8KDV90ZXN0X2FjY291bnRCFQoTX29w", - "dGltaXphdGlvbl9zY29yZUIlCiNfbG9jYXRpb25fYXNzZXRfYXV0b19taWdy", - "YXRpb25fZG9uZUIiCiBfaW1hZ2VfYXNzZXRfYXV0b19taWdyYXRpb25fZG9u", - "ZUIvCi1fbG9jYXRpb25fYXNzZXRfYXV0b19taWdyYXRpb25fZG9uZV9kYXRl", - "X3RpbWVCLAoqX2ltYWdlX2Fzc2V0X2F1dG9fbWlncmF0aW9uX2RvbmVfZGF0", - "ZV90aW1lIpwCChRDYWxsUmVwb3J0aW5nU2V0dGluZxIjChZjYWxsX3JlcG9y", - "dGluZ19lbmFibGVkGAogASgISACIAQESLgohY2FsbF9jb252ZXJzaW9uX3Jl", - "cG9ydGluZ19lbmFibGVkGAsgASgISAGIAQESUwoWY2FsbF9jb252ZXJzaW9u", - "X2FjdGlvbhgMIAEoCUIu+kErCilnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20v", - "Q29udmVyc2lvbkFjdGlvbkgCiAEBQhkKF19jYWxsX3JlcG9ydGluZ19lbmFi", - "bGVkQiQKIl9jYWxsX2NvbnZlcnNpb25fcmVwb3J0aW5nX2VuYWJsZWRCGQoX", - "X2NhbGxfY29udmVyc2lvbl9hY3Rpb24izgMKGUNvbnZlcnNpb25UcmFja2lu", - "Z1NldHRpbmcSKAoWY29udmVyc2lvbl90cmFja2luZ19pZBgDIAEoA0ID4EED", - "SACIAQESNgokY3Jvc3NfYWNjb3VudF9jb252ZXJzaW9uX3RyYWNraW5nX2lk", - "GAQgASgDQgPgQQNIAYgBARIpChxhY2NlcHRlZF9jdXN0b21lcl9kYXRhX3Rl", - "cm1zGAUgASgIQgPgQQMSfgoaY29udmVyc2lvbl90cmFja2luZ19zdGF0dXMY", - "BiABKA4yVS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQ29udmVy", - "c2lvblRyYWNraW5nU3RhdHVzRW51bS5Db252ZXJzaW9uVHJhY2tpbmdTdGF0", - "dXNCA+BBAxIzCiZlbmhhbmNlZF9jb252ZXJzaW9uc19mb3JfbGVhZHNfZW5h", - "YmxlZBgHIAEoCEID4EEDEisKHmdvb2dsZV9hZHNfY29udmVyc2lvbl9jdXN0", - "b21lchgIIAEoCUID4EEDQhkKF19jb252ZXJzaW9uX3RyYWNraW5nX2lkQicK", - "JV9jcm9zc19hY2NvdW50X2NvbnZlcnNpb25fdHJhY2tpbmdfaWQiWQoSUmVt", - "YXJrZXRpbmdTZXR0aW5nEigKFmdvb2dsZV9nbG9iYWxfc2l0ZV90YWcYAiAB", - "KAlCA+BBA0gAiAEBQhkKF19nb29nbGVfZ2xvYmFsX3NpdGVfdGFnIqcFCh5P", - "ZmZsaW5lQ29udmVyc2lvbkNsaWVudFN1bW1hcnkSagoGY2xpZW50GAEgASgO", - "MlUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLk9mZmxpbmVFdmVu", - "dFVwbG9hZENsaWVudEVudW0uT2ZmbGluZUV2ZW50VXBsb2FkQ2xpZW50QgPg", - "QQMSfAoGc3RhdHVzGAIgASgOMmcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LmVudW1zLk9mZmxpbmVDb252ZXJzaW9uRGlhZ25vc3RpY1N0YXR1c0VudW0u", - "T2ZmbGluZUNvbnZlcnNpb25EaWFnbm9zdGljU3RhdHVzQgPgQQMSHgoRdG90", - "YWxfZXZlbnRfY291bnQYAyABKANCA+BBAxIjChZzdWNjZXNzZnVsX2V2ZW50", - "X2NvdW50GAQgASgDQgPgQQMSGQoMc3VjY2Vzc19yYXRlGAUgASgBQgPgQQMS", - "IgoVbGFzdF91cGxvYWRfZGF0ZV90aW1lGAYgASgJQgPgQQMSYAoPZGFpbHlf", - "c3VtbWFyaWVzGAcgAygLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", - "c291cmNlcy5PZmZsaW5lQ29udmVyc2lvblVwbG9hZFN1bW1hcnlCA+BBAxJe", - "Cg1qb2Jfc3VtbWFyaWVzGAggAygLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5PZmZsaW5lQ29udmVyc2lvblVwbG9hZFN1bW1hcnlC", - "A+BBAxJVCgZhbGVydHMYCSADKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQucmVzb3VyY2VzLk9mZmxpbmVDb252ZXJzaW9uVXBsb2FkQWxlcnRCA+BB", - "AyKeAQoeT2ZmbGluZUNvbnZlcnNpb25VcGxvYWRTdW1tYXJ5Eh0KEHN1Y2Nl", - "c3NmdWxfY291bnQYAyABKANCA+BBAxIZCgxmYWlsZWRfY291bnQYBCABKANC", - "A+BBAxIVCgZqb2JfaWQYASABKANCA+BBA0gAEhoKC3VwbG9hZF9kYXRlGAIg", - "ASgJQgPgQQNIAEIPCg1kaW1lbnNpb25fa2V5IpMBChxPZmZsaW5lQ29udmVy", - "c2lvblVwbG9hZEFsZXJ0ElQKBWVycm9yGAEgASgLMkAuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnJlc291cmNlcy5PZmZsaW5lQ29udmVyc2lvblVwbG9h", - "ZEVycm9yQgPgQQMSHQoQZXJyb3JfcGVyY2VudGFnZRgCIAEoAUID4EEDIu0I", - "ChxPZmZsaW5lQ29udmVyc2lvblVwbG9hZEVycm9yEnIKFWNvbGxlY3Rpb25f", - "c2l6ZV9lcnJvchgBIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", - "cnJvcnMuQ29sbGVjdGlvblNpemVFcnJvckVudW0uQ29sbGVjdGlvblNpemVF", - "cnJvckID4EEDSAASlwEKImNvbnZlcnNpb25fYWRqdXN0bWVudF91cGxvYWRf", - "ZXJyb3IYAiABKA4yZC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3Jz", - "LkNvbnZlcnNpb25BZGp1c3RtZW50VXBsb2FkRXJyb3JFbnVtLkNvbnZlcnNp", - "b25BZGp1c3RtZW50VXBsb2FkRXJyb3JCA+BBA0gAEngKF2NvbnZlcnNpb25f", - "dXBsb2FkX2Vycm9yGAMgASgOMlAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LmVycm9ycy5Db252ZXJzaW9uVXBsb2FkRXJyb3JFbnVtLkNvbnZlcnNpb25V", - "cGxvYWRFcnJvckID4EEDSAASUwoKZGF0ZV9lcnJvchgEIAEoDjI4Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRGF0ZUVycm9yRW51bS5EYXRl", - "RXJyb3JCA+BBA0gAEl8KDmRpc3RpbmN0X2Vycm9yGAUgASgOMkAuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5EaXN0aW5jdEVycm9yRW51bS5E", - "aXN0aW5jdEVycm9yQgPgQQNIABJWCgtmaWVsZF9lcnJvchgGIAEoDjI6Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRmllbGRFcnJvckVudW0u", - "RmllbGRFcnJvckID4EEDSAASWQoMbXV0YXRlX2Vycm9yGAcgASgOMjwuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5NdXRhdGVFcnJvckVudW0u", - "TXV0YXRlRXJyb3JCA+BBA0gAEnIKFW5vdF9hbGxvd2xpc3RlZF9lcnJvchgI", - "IAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuTm90QWxs", - "b3dsaXN0ZWRFcnJvckVudW0uTm90QWxsb3dsaXN0ZWRFcnJvckID4EEDSAAS", - "bAoTc3RyaW5nX2Zvcm1hdF9lcnJvchgJIAEoDjJILmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5lcnJvcnMuU3RyaW5nRm9ybWF0RXJyb3JFbnVtLlN0cmlu", - "Z0Zvcm1hdEVycm9yQgPgQQNIABJsChNzdHJpbmdfbGVuZ3RoX2Vycm9yGAog", - "ASgOMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5TdHJpbmdM", - "ZW5ndGhFcnJvckVudW0uU3RyaW5nTGVuZ3RoRXJyb3JCA+BBA0gAQgwKCmVy", - "cm9yX2NvZGVC/wEKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzQg1DdXN0b21lclByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dl", - "bnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2Vz", - "O3Jlc291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNC5S", - "ZXNvdXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcUmVzb3VyY2Vz", - "6gImR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpSZXNvdXJjZXNiBnBy", - "b3RvMw==")); + "bnRTdW1tYXJ5QgPgQQMSZQoaY3VzdG9tZXJfYWdyZWVtZW50X3NldHRpbmcY", + "LCABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkN1", + "c3RvbWVyQWdyZWVtZW50U2V0dGluZ0ID4EEDOj/qQTwKIWdvb2dsZWFkcy5n", + "b29nbGVhcGlzLmNvbS9DdXN0b21lchIXY3VzdG9tZXJzL3tjdXN0b21lcl9p", + "ZH1CBQoDX2lkQhMKEV9kZXNjcmlwdGl2ZV9uYW1lQhAKDl9jdXJyZW5jeV9j", + "b2RlQgwKCl90aW1lX3pvbmVCGAoWX3RyYWNraW5nX3VybF90ZW1wbGF0ZUIT", + "ChFfZmluYWxfdXJsX3N1ZmZpeEIXChVfYXV0b190YWdnaW5nX2VuYWJsZWRC", + "FQoTX2hhc19wYXJ0bmVyc19iYWRnZUIKCghfbWFuYWdlckIPCg1fdGVzdF9h", + "Y2NvdW50QhUKE19vcHRpbWl6YXRpb25fc2NvcmVCJQojX2xvY2F0aW9uX2Fz", + "c2V0X2F1dG9fbWlncmF0aW9uX2RvbmVCIgogX2ltYWdlX2Fzc2V0X2F1dG9f", + "bWlncmF0aW9uX2RvbmVCLwotX2xvY2F0aW9uX2Fzc2V0X2F1dG9fbWlncmF0", + "aW9uX2RvbmVfZGF0ZV90aW1lQiwKKl9pbWFnZV9hc3NldF9hdXRvX21pZ3Jh", + "dGlvbl9kb25lX2RhdGVfdGltZSKcAgoUQ2FsbFJlcG9ydGluZ1NldHRpbmcS", + "IwoWY2FsbF9yZXBvcnRpbmdfZW5hYmxlZBgKIAEoCEgAiAEBEi4KIWNhbGxf", + "Y29udmVyc2lvbl9yZXBvcnRpbmdfZW5hYmxlZBgLIAEoCEgBiAEBElMKFmNh", + "bGxfY29udmVyc2lvbl9hY3Rpb24YDCABKAlCLvpBKwopZ29vZ2xlYWRzLmdv", + "b2dsZWFwaXMuY29tL0NvbnZlcnNpb25BY3Rpb25IAogBAUIZChdfY2FsbF9y", + "ZXBvcnRpbmdfZW5hYmxlZEIkCiJfY2FsbF9jb252ZXJzaW9uX3JlcG9ydGlu", + "Z19lbmFibGVkQhkKF19jYWxsX2NvbnZlcnNpb25fYWN0aW9uIs4DChlDb252", + "ZXJzaW9uVHJhY2tpbmdTZXR0aW5nEigKFmNvbnZlcnNpb25fdHJhY2tpbmdf", + "aWQYAyABKANCA+BBA0gAiAEBEjYKJGNyb3NzX2FjY291bnRfY29udmVyc2lv", + "bl90cmFja2luZ19pZBgEIAEoA0ID4EEDSAGIAQESKQocYWNjZXB0ZWRfY3Vz", + "dG9tZXJfZGF0YV90ZXJtcxgFIAEoCEID4EEDEn4KGmNvbnZlcnNpb25fdHJh", + "Y2tpbmdfc3RhdHVzGAYgASgOMlUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmVudW1zLkNvbnZlcnNpb25UcmFja2luZ1N0YXR1c0VudW0uQ29udmVyc2lv", + "blRyYWNraW5nU3RhdHVzQgPgQQMSMwomZW5oYW5jZWRfY29udmVyc2lvbnNf", + "Zm9yX2xlYWRzX2VuYWJsZWQYByABKAhCA+BBAxIrCh5nb29nbGVfYWRzX2Nv", + "bnZlcnNpb25fY3VzdG9tZXIYCCABKAlCA+BBA0IZChdfY29udmVyc2lvbl90", + "cmFja2luZ19pZEInCiVfY3Jvc3NfYWNjb3VudF9jb252ZXJzaW9uX3RyYWNr", + "aW5nX2lkIlkKElJlbWFya2V0aW5nU2V0dGluZxIoChZnb29nbGVfZ2xvYmFs", + "X3NpdGVfdGFnGAIgASgJQgPgQQNIAIgBAUIZChdfZ29vZ2xlX2dsb2JhbF9z", + "aXRlX3RhZyKnBQoeT2ZmbGluZUNvbnZlcnNpb25DbGllbnRTdW1tYXJ5EmoK", + "BmNsaWVudBgBIAEoDjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVt", + "cy5PZmZsaW5lRXZlbnRVcGxvYWRDbGllbnRFbnVtLk9mZmxpbmVFdmVudFVw", + "bG9hZENsaWVudEID4EEDEnwKBnN0YXR1cxgCIAEoDjJnLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5lbnVtcy5PZmZsaW5lQ29udmVyc2lvbkRpYWdub3N0", + "aWNTdGF0dXNFbnVtLk9mZmxpbmVDb252ZXJzaW9uRGlhZ25vc3RpY1N0YXR1", + "c0ID4EEDEh4KEXRvdGFsX2V2ZW50X2NvdW50GAMgASgDQgPgQQMSIwoWc3Vj", + "Y2Vzc2Z1bF9ldmVudF9jb3VudBgEIAEoA0ID4EEDEhkKDHN1Y2Nlc3NfcmF0", + "ZRgFIAEoAUID4EEDEiIKFWxhc3RfdXBsb2FkX2RhdGVfdGltZRgGIAEoCUID", + "4EEDEmAKD2RhaWx5X3N1bW1hcmllcxgHIAMoCzJCLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuT2ZmbGluZUNvbnZlcnNpb25VcGxvYWRT", + "dW1tYXJ5QgPgQQMSXgoNam9iX3N1bW1hcmllcxgIIAMoCzJCLmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuT2ZmbGluZUNvbnZlcnNpb25V", + "cGxvYWRTdW1tYXJ5QgPgQQMSVQoGYWxlcnRzGAkgAygLMkAuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5PZmZsaW5lQ29udmVyc2lvblVw", + "bG9hZEFsZXJ0QgPgQQMingEKHk9mZmxpbmVDb252ZXJzaW9uVXBsb2FkU3Vt", + "bWFyeRIdChBzdWNjZXNzZnVsX2NvdW50GAMgASgDQgPgQQMSGQoMZmFpbGVk", + "X2NvdW50GAQgASgDQgPgQQMSFQoGam9iX2lkGAEgASgDQgPgQQNIABIaCgt1", + "cGxvYWRfZGF0ZRgCIAEoCUID4EEDSABCDwoNZGltZW5zaW9uX2tleSKTAQoc", + "T2ZmbGluZUNvbnZlcnNpb25VcGxvYWRBbGVydBJUCgVlcnJvchgBIAEoCzJA", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuT2ZmbGluZUNv", + "bnZlcnNpb25VcGxvYWRFcnJvckID4EEDEh0KEGVycm9yX3BlcmNlbnRhZ2UY", + "AiABKAFCA+BBAyLtCAocT2ZmbGluZUNvbnZlcnNpb25VcGxvYWRFcnJvchJy", + "ChVjb2xsZWN0aW9uX3NpemVfZXJyb3IYASABKA4yTC5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuZXJyb3JzLkNvbGxlY3Rpb25TaXplRXJyb3JFbnVtLkNv", + "bGxlY3Rpb25TaXplRXJyb3JCA+BBA0gAEpcBCiJjb252ZXJzaW9uX2FkanVz", + "dG1lbnRfdXBsb2FkX2Vycm9yGAIgASgOMmQuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVycm9ycy5Db252ZXJzaW9uQWRqdXN0bWVudFVwbG9hZEVycm9y", + "RW51bS5Db252ZXJzaW9uQWRqdXN0bWVudFVwbG9hZEVycm9yQgPgQQNIABJ4", + "Chdjb252ZXJzaW9uX3VwbG9hZF9lcnJvchgDIAEoDjJQLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5lcnJvcnMuQ29udmVyc2lvblVwbG9hZEVycm9yRW51", + "bS5Db252ZXJzaW9uVXBsb2FkRXJyb3JCA+BBA0gAElMKCmRhdGVfZXJyb3IY", + "BCABKA4yOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkRhdGVF", + "cnJvckVudW0uRGF0ZUVycm9yQgPgQQNIABJfCg5kaXN0aW5jdF9lcnJvchgF", + "IAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRGlzdGlu", + "Y3RFcnJvckVudW0uRGlzdGluY3RFcnJvckID4EEDSAASVgoLZmllbGRfZXJy", + "b3IYBiABKA4yOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkZp", + "ZWxkRXJyb3JFbnVtLkZpZWxkRXJyb3JCA+BBA0gAElkKDG11dGF0ZV9lcnJv", + "chgHIAEoDjI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuTXV0", + "YXRlRXJyb3JFbnVtLk11dGF0ZUVycm9yQgPgQQNIABJyChVub3RfYWxsb3ds", + "aXN0ZWRfZXJyb3IYCCABKA4yTC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "ZXJyb3JzLk5vdEFsbG93bGlzdGVkRXJyb3JFbnVtLk5vdEFsbG93bGlzdGVk", + "RXJyb3JCA+BBA0gAEmwKE3N0cmluZ19mb3JtYXRfZXJyb3IYCSABKA4ySC5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlN0cmluZ0Zvcm1hdEVy", + "cm9yRW51bS5TdHJpbmdGb3JtYXRFcnJvckID4EEDSAASbAoTc3RyaW5nX2xl", + "bmd0aF9lcnJvchgKIAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", + "cnJvcnMuU3RyaW5nTGVuZ3RoRXJyb3JFbnVtLlN0cmluZ0xlbmd0aEVycm9y", + "QgPgQQNIAEIMCgplcnJvcl9jb2RlIkEKGEN1c3RvbWVyQWdyZWVtZW50U2V0", + "dGluZxIlChhhY2NlcHRlZF9sZWFkX2Zvcm1fdGVybXMYASABKAhCA+BBA0L/", + "AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXNCDUN1", + "c3RvbWVyUHJvdG9QAVpLZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29v", + "Z2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXM7cmVzb3VyY2Vz", + "ogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0LlJlc291cmNlc8oC", + "Ikdvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxSZXNvdXJjZXPqAiZHb29nbGU6", + "OkFkczo6R29vZ2xlQWRzOjpWMTQ6OlJlc291cmNlc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Enums.ConversionTrackingStatusEnumReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.CustomerPayPerConversionEligibilityFailureReasonReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.CustomerStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.OfflineConversionDiagnosticStatusEnumReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.OfflineEventUploadClientEnumReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CollectionSizeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionAdjustmentUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DistinctErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FieldErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MutateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NotAllowlistedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.StringFormatErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.StringLengthErrorReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Customer), global::Google.Ads.GoogleAds.V14.Resources.Customer.Parser, new[]{ "ResourceName", "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "Manager", "TestAccount", "CallReportingSetting", "ConversionTrackingSetting", "RemarketingSetting", "PayPerConversionEligibilityFailureReasons", "OptimizationScore", "OptimizationScoreWeight", "Status", "LocationAssetAutoMigrationDone", "ImageAssetAutoMigrationDone", "LocationAssetAutoMigrationDoneDateTime", "ImageAssetAutoMigrationDoneDateTime", "OfflineConversionClientSummaries" }, new[]{ "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "Manager", "TestAccount", "OptimizationScore", "LocationAssetAutoMigrationDone", "ImageAssetAutoMigrationDone", "LocationAssetAutoMigrationDoneDateTime", "ImageAssetAutoMigrationDoneDateTime" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Customer), global::Google.Ads.GoogleAds.V14.Resources.Customer.Parser, new[]{ "ResourceName", "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "Manager", "TestAccount", "CallReportingSetting", "ConversionTrackingSetting", "RemarketingSetting", "PayPerConversionEligibilityFailureReasons", "OptimizationScore", "OptimizationScoreWeight", "Status", "LocationAssetAutoMigrationDone", "ImageAssetAutoMigrationDone", "LocationAssetAutoMigrationDoneDateTime", "ImageAssetAutoMigrationDoneDateTime", "OfflineConversionClientSummaries", "CustomerAgreementSetting" }, new[]{ "Id", "DescriptiveName", "CurrencyCode", "TimeZone", "TrackingUrlTemplate", "FinalUrlSuffix", "AutoTaggingEnabled", "HasPartnersBadge", "Manager", "TestAccount", "OptimizationScore", "LocationAssetAutoMigrationDone", "ImageAssetAutoMigrationDone", "LocationAssetAutoMigrationDoneDateTime", "ImageAssetAutoMigrationDoneDateTime" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.CallReportingSetting), global::Google.Ads.GoogleAds.V14.Resources.CallReportingSetting.Parser, new[]{ "CallReportingEnabled", "CallConversionReportingEnabled", "CallConversionAction" }, new[]{ "CallReportingEnabled", "CallConversionReportingEnabled", "CallConversionAction" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.ConversionTrackingSetting), global::Google.Ads.GoogleAds.V14.Resources.ConversionTrackingSetting.Parser, new[]{ "ConversionTrackingId", "CrossAccountConversionTrackingId", "AcceptedCustomerDataTerms", "ConversionTrackingStatus", "EnhancedConversionsForLeadsEnabled", "GoogleAdsConversionCustomer" }, new[]{ "ConversionTrackingId", "CrossAccountConversionTrackingId" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.RemarketingSetting), global::Google.Ads.GoogleAds.V14.Resources.RemarketingSetting.Parser, new[]{ "GoogleGlobalSiteTag" }, new[]{ "GoogleGlobalSiteTag" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionClientSummary), global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionClientSummary.Parser, new[]{ "Client", "Status", "TotalEventCount", "SuccessfulEventCount", "SuccessRate", "LastUploadDateTime", "DailySummaries", "JobSummaries", "Alerts" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadSummary), global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadSummary.Parser, new[]{ "SuccessfulCount", "FailedCount", "JobId", "UploadDate" }, new[]{ "DimensionKey" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadAlert), global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadAlert.Parser, new[]{ "Error", "ErrorPercentage" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadError), global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadError.Parser, new[]{ "CollectionSizeError", "ConversionAdjustmentUploadError", "ConversionUploadError", "DateError", "DistinctError", "FieldError", "MutateError", "NotAllowlistedError", "StringFormatError", "StringLengthError" }, new[]{ "ErrorCode" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadError), global::Google.Ads.GoogleAds.V14.Resources.OfflineConversionUploadError.Parser, new[]{ "CollectionSizeError", "ConversionAdjustmentUploadError", "ConversionUploadError", "DateError", "DistinctError", "FieldError", "MutateError", "NotAllowlistedError", "StringFormatError", "StringLengthError" }, new[]{ "ErrorCode" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.CustomerAgreementSetting), global::Google.Ads.GoogleAds.V14.Resources.CustomerAgreementSetting.Parser, new[]{ "AcceptedLeadFormTerms" }, null, null, null, null) })); } #endregion @@ -241,6 +245,7 @@ public Customer(Customer other) : this() { locationAssetAutoMigrationDoneDateTime_ = other.locationAssetAutoMigrationDoneDateTime_; imageAssetAutoMigrationDoneDateTime_ = other.imageAssetAutoMigrationDoneDateTime_; offlineConversionClientSummaries_ = other.offlineConversionClientSummaries_.Clone(); + customerAgreementSetting_ = other.customerAgreementSetting_ != null ? other.customerAgreementSetting_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -846,6 +851,21 @@ public void ClearImageAssetAutoMigrationDoneDateTime() { get { return offlineConversionClientSummaries_; } } + /// Field number for the "customer_agreement_setting" field. + public const int CustomerAgreementSettingFieldNumber = 44; + private global::Google.Ads.GoogleAds.V14.Resources.CustomerAgreementSetting customerAgreementSetting_; + /// + /// Output only. Customer Agreement Setting for a customer. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.CustomerAgreementSetting CustomerAgreementSetting { + get { return customerAgreementSetting_; } + set { + customerAgreementSetting_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -884,6 +904,7 @@ public bool Equals(Customer other) { if (LocationAssetAutoMigrationDoneDateTime != other.LocationAssetAutoMigrationDoneDateTime) return false; if (ImageAssetAutoMigrationDoneDateTime != other.ImageAssetAutoMigrationDoneDateTime) return false; if(!offlineConversionClientSummaries_.Equals(other.offlineConversionClientSummaries_)) return false; + if (!object.Equals(CustomerAgreementSetting, other.CustomerAgreementSetting)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -914,6 +935,7 @@ public override int GetHashCode() { if (HasLocationAssetAutoMigrationDoneDateTime) hash ^= LocationAssetAutoMigrationDoneDateTime.GetHashCode(); if (HasImageAssetAutoMigrationDoneDateTime) hash ^= ImageAssetAutoMigrationDoneDateTime.GetHashCode(); hash ^= offlineConversionClientSummaries_.GetHashCode(); + if (customerAgreementSetting_ != null) hash ^= CustomerAgreementSetting.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -1018,6 +1040,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteString(ImageAssetAutoMigrationDoneDateTime); } offlineConversionClientSummaries_.WriteTo(output, _repeated_offlineConversionClientSummaries_codec); + if (customerAgreementSetting_ != null) { + output.WriteRawTag(226, 2); + output.WriteMessage(CustomerAgreementSetting); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1114,6 +1140,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteString(ImageAssetAutoMigrationDoneDateTime); } offlineConversionClientSummaries_.WriteTo(ref output, _repeated_offlineConversionClientSummaries_codec); + if (customerAgreementSetting_ != null) { + output.WriteRawTag(226, 2); + output.WriteMessage(CustomerAgreementSetting); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1189,6 +1219,9 @@ public int CalculateSize() { size += 2 + pb::CodedOutputStream.ComputeStringSize(ImageAssetAutoMigrationDoneDateTime); } size += offlineConversionClientSummaries_.CalculateSize(_repeated_offlineConversionClientSummaries_codec); + if (customerAgreementSetting_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerAgreementSetting); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -1275,6 +1308,12 @@ public void MergeFrom(Customer other) { ImageAssetAutoMigrationDoneDateTime = other.ImageAssetAutoMigrationDoneDateTime; } offlineConversionClientSummaries_.Add(other.offlineConversionClientSummaries_); + if (other.customerAgreementSetting_ != null) { + if (customerAgreementSetting_ == null) { + CustomerAgreementSetting = new global::Google.Ads.GoogleAds.V14.Resources.CustomerAgreementSetting(); + } + CustomerAgreementSetting.MergeFrom(other.CustomerAgreementSetting); + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -1392,6 +1431,13 @@ public void MergeFrom(pb::CodedInputStream input) { offlineConversionClientSummaries_.AddEntriesFrom(input, _repeated_offlineConversionClientSummaries_codec); break; } + case 354: { + if (customerAgreementSetting_ == null) { + CustomerAgreementSetting = new global::Google.Ads.GoogleAds.V14.Resources.CustomerAgreementSetting(); + } + input.ReadMessage(CustomerAgreementSetting); + break; + } } } #endif @@ -1509,6 +1555,13 @@ public void MergeFrom(pb::CodedInputStream input) { offlineConversionClientSummaries_.AddEntriesFrom(ref input, _repeated_offlineConversionClientSummaries_codec); break; } + case 354: { + if (customerAgreementSetting_ == null) { + CustomerAgreementSetting = new global::Google.Ads.GoogleAds.V14.Resources.CustomerAgreementSetting(); + } + input.ReadMessage(CustomerAgreementSetting); + break; + } } } } @@ -2496,7 +2549,6 @@ public void MergeFrom(pb::CodedInputStream input) { /// Offline conversion upload diagnostic summarized by client. This proto /// contains general information, breakdown by date/job and alerts for offline /// conversion upload results. - /// Next tag: 10 /// public sealed partial class OfflineConversionClientSummary : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -2981,7 +3033,6 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Historical upload summary, grouped by upload date or job. - /// Next tag: 5 /// public sealed partial class OfflineConversionUploadSummary : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -3358,7 +3409,6 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Alert for offline conversion client summary. - /// Next tag: 3 /// public sealed partial class OfflineConversionUploadAlert : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -3603,7 +3653,6 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Possible errors for offline conversion client summary. - /// Next tag: 11 /// public sealed partial class OfflineConversionUploadError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -4374,6 +4423,201 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// Customer Agreement Setting for a customer. + /// + public sealed partial class CustomerAgreementSetting : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerAgreementSetting()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.CustomerReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerAgreementSetting() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerAgreementSetting(CustomerAgreementSetting other) : this() { + acceptedLeadFormTerms_ = other.acceptedLeadFormTerms_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CustomerAgreementSetting Clone() { + return new CustomerAgreementSetting(this); + } + + /// Field number for the "accepted_lead_form_terms" field. + public const int AcceptedLeadFormTermsFieldNumber = 1; + private bool acceptedLeadFormTerms_; + /// + /// Output only. Whether the customer has accepted lead form term of service. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool AcceptedLeadFormTerms { + get { return acceptedLeadFormTerms_; } + set { + acceptedLeadFormTerms_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CustomerAgreementSetting); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CustomerAgreementSetting other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AcceptedLeadFormTerms != other.AcceptedLeadFormTerms) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AcceptedLeadFormTerms != false) hash ^= AcceptedLeadFormTerms.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AcceptedLeadFormTerms != false) { + output.WriteRawTag(8); + output.WriteBool(AcceptedLeadFormTerms); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AcceptedLeadFormTerms != false) { + output.WriteRawTag(8); + output.WriteBool(AcceptedLeadFormTerms); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AcceptedLeadFormTerms != false) { + size += 1 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CustomerAgreementSetting other) { + if (other == null) { + return; + } + if (other.AcceptedLeadFormTerms != false) { + AcceptedLeadFormTerms = other.AcceptedLeadFormTerms; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + AcceptedLeadFormTerms = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + AcceptedLeadFormTerms = input.ReadBool(); + break; + } + } + } + } + #endif + + } + #endregion } diff --git a/Google.Ads.GoogleAds/src/V12/MobileAppCategoryConstant.g.cs b/Google.Ads.GoogleAds/src/V14/CustomerSearchTermInsight.g.cs similarity index 63% rename from Google.Ads.GoogleAds/src/V12/MobileAppCategoryConstant.g.cs rename to Google.Ads.GoogleAds/src/V14/CustomerSearchTermInsight.g.cs index 3aa2174ef..2dd661a91 100755 --- a/Google.Ads.GoogleAds/src/V12/MobileAppCategoryConstant.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CustomerSearchTermInsight.g.cs @@ -1,6 +1,6 @@ // // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/resources/mobile_app_category_constant.proto +// source: google/ads/googleads/v14/resources/customer_search_term_insight.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code @@ -9,42 +9,43 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Resources { +namespace Google.Ads.GoogleAds.V14.Resources { - /// Holder for reflection information generated from google/ads/googleads/v12/resources/mobile_app_category_constant.proto - public static partial class MobileAppCategoryConstantReflection { + /// Holder for reflection information generated from google/ads/googleads/v14/resources/customer_search_term_insight.proto + public static partial class CustomerSearchTermInsightReflection { #region Descriptor - /// File descriptor for google/ads/googleads/v12/resources/mobile_app_category_constant.proto + /// File descriptor for google/ads/googleads/v14/resources/customer_search_term_insight.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; - static MobileAppCategoryConstantReflection() { + static CustomerSearchTermInsightReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvcmVzb3VyY2VzL21vYmlsZV9h", - "cHBfY2F0ZWdvcnlfY29uc3RhbnQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxMi5yZXNvdXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", - "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8imgIKGU1vYmlsZUFw", - "cENhdGVnb3J5Q29uc3RhbnQSUQoNcmVzb3VyY2VfbmFtZRgBIAEoCUI64EED", - "+kE0CjJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vTW9iaWxlQXBwQ2F0ZWdv", - "cnlDb25zdGFudBIUCgJpZBgEIAEoBUID4EEDSACIAQESFgoEbmFtZRgFIAEo", - "CUID4EEDSAGIAQE6bOpBaQoyZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL01v", - "YmlsZUFwcENhdGVnb3J5Q29uc3RhbnQSM21vYmlsZUFwcENhdGVnb3J5Q29u", - "c3RhbnRzL3ttb2JpbGVfYXBwX2NhdGVnb3J5X2lkfUIFCgNfaWRCBwoFX25h", - "bWVCkAIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIucmVzb3VyY2Vz", - "Qh5Nb2JpbGVBcHBDYXRlZ29yeUNvbnN0YW50UHJvdG9QAVpLZ29vZ2xlLmdv", - "bGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3Yx", - "Mi9yZXNvdXJjZXM7cmVzb3VyY2VzogIDR0FBqgIiR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjEyLlJlc291cmNlc8oCIkdvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxSZXNvdXJjZXPqAiZHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OlJl", - "c291cmNlc2IGcHJvdG8z")); + "CkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2N1c3RvbWVy", + "X3NlYXJjaF90ZXJtX2luc2lnaHQucHJvdG8SImdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5yZXNvdXJjZXMaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3Iu", + "cHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJvdG8iugIKGUN1c3RvbWVy", + "U2VhcmNoVGVybUluc2lnaHQSUQoNcmVzb3VyY2VfbmFtZRgBIAEoCUI64EED", + "+kE0CjJnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ3VzdG9tZXJTZWFyY2hU", + "ZXJtSW5zaWdodBIgCg5jYXRlZ29yeV9sYWJlbBgCIAEoCUID4EEDSACIAQES", + "FAoCaWQYAyABKANCA+BBA0gBiAEBOnjqQXUKMmdvb2dsZWFkcy5nb29nbGVh", + "cGlzLmNvbS9DdXN0b21lclNlYXJjaFRlcm1JbnNpZ2h0Ej9jdXN0b21lcnMv", + "e2N1c3RvbWVyX2lkfS9jdXN0b21lclNlYXJjaFRlcm1JbnNpZ2h0cy97Y2x1", + "c3Rlcl9pZH1CEQoPX2NhdGVnb3J5X2xhYmVsQgUKA19pZEKQAgomY29tLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXNCHkN1c3RvbWVyU2Vh", + "cmNoVGVybUluc2lnaHRQcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5w", + "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlczty", + "ZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuUmVz", + "b3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XFJlc291cmNlc+oC", + "Jkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNDo6UmVzb3VyY2VzYgZwcm90", + "bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstant), global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstant.Parser, new[]{ "ResourceName", "Id", "Name" }, new[]{ "Id", "Name" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsight), global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsight.Parser, new[]{ "ResourceName", "CategoryLabel", "Id" }, new[]{ "CategoryLabel", "Id" }, null, null, null) })); } #endregion @@ -52,24 +53,25 @@ static MobileAppCategoryConstantReflection() { } #region Messages /// - /// A mobile application category constant. + /// A Customer search term view. + /// Historical data is available starting March 2023. /// - public sealed partial class MobileAppCategoryConstant : pb::IMessage + public sealed partial class CustomerSearchTermInsight : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MobileAppCategoryConstant()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CustomerSearchTermInsight()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Resources.MobileAppCategoryConstantReflection.Descriptor.MessageTypes[0]; } + get { return global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsightReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -80,7 +82,7 @@ public sealed partial class MobileAppCategoryConstant : pb::IMessageField number for the "resource_name" field. public const int ResourceNameFieldNumber = 1; private string resourceName_ = ""; /// - /// Output only. The resource name of the mobile app category constant. - /// Mobile app category constant resource names have the form: + /// Output only. The resource name of the customer level search term insight. + /// Customer level search term insight resource names have the form: /// - /// `mobileAppCategoryConstants/{mobile_app_category_id}` + /// `customers/{customer_id}/customerSearchTermInsights/{category_id}` /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -120,70 +122,75 @@ public string ResourceName { } } - /// Field number for the "id" field. - public const int IdFieldNumber = 4; - private int id_; + /// Field number for the "category_label" field. + public const int CategoryLabelFieldNumber = 2; + private readonly static string CategoryLabelDefaultValue = ""; + + private string categoryLabel_; /// - /// Output only. The ID of the mobile app category constant. + /// Output only. The label for the search category. An empty string denotes the + /// catch-all category for search terms that didn't fit into another category. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Id { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return 0; } } + public string CategoryLabel { + get { return categoryLabel_ ?? CategoryLabelDefaultValue; } set { - _hasBits0 |= 1; - id_ = value; + categoryLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Gets whether the "id" field is set + /// Gets whether the "category_label" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId { - get { return (_hasBits0 & 1) != 0; } + public bool HasCategoryLabel { + get { return categoryLabel_ != null; } } - /// Clears the value of the "id" field + /// Clears the value of the "category_label" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() { - _hasBits0 &= ~1; + public void ClearCategoryLabel() { + categoryLabel_ = null; } - /// Field number for the "name" field. - public const int NameFieldNumber = 5; - private string name_; + /// Field number for the "id" field. + public const int IdFieldNumber = 3; + private readonly static long IdDefaultValue = 0L; + + private long id_; /// - /// Output only. Mobile app category name. + /// Output only. The ID of the insight. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_ ?? ""; } + public long Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + _hasBits0 |= 1; + id_ = value; } } - /// Gets whether the "name" field is set + /// Gets whether the "id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName { - get { return name_ != null; } + public bool HasId { + get { return (_hasBits0 & 1) != 0; } } - /// Clears the value of the "name" field + /// Clears the value of the "id" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() { - name_ = null; + public void ClearId() { + _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as MobileAppCategoryConstant); + return Equals(other as CustomerSearchTermInsight); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(MobileAppCategoryConstant other) { + public bool Equals(CustomerSearchTermInsight other) { if (ReferenceEquals(other, null)) { return false; } @@ -191,8 +198,8 @@ public bool Equals(MobileAppCategoryConstant other) { return true; } if (ResourceName != other.ResourceName) return false; + if (CategoryLabel != other.CategoryLabel) return false; if (Id != other.Id) return false; - if (Name != other.Name) return false; return Equals(_unknownFields, other._unknownFields); } @@ -201,8 +208,8 @@ public bool Equals(MobileAppCategoryConstant other) { public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); + if (HasCategoryLabel) hash ^= CategoryLabel.GetHashCode(); if (HasId) hash ^= Id.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -225,13 +232,13 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ResourceName); } - if (HasId) { - output.WriteRawTag(32); - output.WriteInt32(Id); + if (HasCategoryLabel) { + output.WriteRawTag(18); + output.WriteString(CategoryLabel); } - if (HasName) { - output.WriteRawTag(42); - output.WriteString(Name); + if (HasId) { + output.WriteRawTag(24); + output.WriteInt64(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -247,13 +254,13 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(10); output.WriteString(ResourceName); } - if (HasId) { - output.WriteRawTag(32); - output.WriteInt32(Id); + if (HasCategoryLabel) { + output.WriteRawTag(18); + output.WriteString(CategoryLabel); } - if (HasName) { - output.WriteRawTag(42); - output.WriteString(Name); + if (HasId) { + output.WriteRawTag(24); + output.WriteInt64(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -268,11 +275,11 @@ public int CalculateSize() { if (ResourceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); } - if (HasId) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); + if (HasCategoryLabel) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CategoryLabel); } - if (HasName) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -282,19 +289,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(MobileAppCategoryConstant other) { + public void MergeFrom(CustomerSearchTermInsight other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } + if (other.HasCategoryLabel) { + CategoryLabel = other.CategoryLabel; + } if (other.HasId) { Id = other.Id; } - if (other.HasName) { - Name = other.Name; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -314,12 +321,12 @@ public void MergeFrom(pb::CodedInputStream input) { ResourceName = input.ReadString(); break; } - case 32: { - Id = input.ReadInt32(); + case 18: { + CategoryLabel = input.ReadString(); break; } - case 42: { - Name = input.ReadString(); + case 24: { + Id = input.ReadInt64(); break; } } @@ -341,12 +348,12 @@ public void MergeFrom(pb::CodedInputStream input) { ResourceName = input.ReadString(); break; } - case 32: { - Id = input.ReadInt32(); + case 18: { + CategoryLabel = input.ReadString(); break; } - case 42: { - Name = input.ReadString(); + case 24: { + Id = input.ReadInt64(); break; } } diff --git a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionResourceNames.g.cs b/Google.Ads.GoogleAds/src/V14/CustomerSearchTermInsightResourceNames.g.cs similarity index 55% rename from Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionResourceNames.g.cs rename to Google.Ads.GoogleAds/src/V14/CustomerSearchTermInsightResourceNames.g.cs index 5397210c8..e7be9fda6 100755 --- a/Google.Ads.GoogleAds/src/V12/CustomerNegativeCriterionResourceNames.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CustomerSearchTermInsightResourceNames.g.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,105 +18,105 @@ using gax = Google.Api.Gax; using sys = System; -namespace Google.Ads.GoogleAds.V12.Resources +namespace Google.Ads.GoogleAds.V14.Resources { - /// Resource name for the CustomerNegativeCriterion resource. - public sealed partial class CustomerNegativeCriterionName : gax::IResourceName, sys::IEquatable + /// Resource name for the CustomerSearchTermInsight resource. + public sealed partial class CustomerSearchTermInsightName : gax::IResourceName, sys::IEquatable { - /// The possible contents of . + /// The possible contents of . public enum ResourceNameType { /// An unparsed resource name. Unparsed = 0, /// - /// A resource name with pattern customers/{customer_id}/customerNegativeCriteria/{criterion_id}. + /// A resource name with pattern customers/{customer_id}/customerSearchTermInsights/{cluster_id}. /// - CustomerCriterion = 1, + CustomerCluster = 1, } - private static gax::PathTemplate s_customerCriterion = new gax::PathTemplate("customers/{customer_id}/customerNegativeCriteria/{criterion_id}"); + private static gax::PathTemplate s_customerCluster = new gax::PathTemplate("customers/{customer_id}/customerSearchTermInsights/{cluster_id}"); /// - /// Creates a containing an unparsed resource name. + /// Creates a containing an unparsed resource name. /// /// The unparsed resource name. Must not be null. /// - /// A new instance of containing the provided + /// A new instance of containing the provided /// . /// - public static CustomerNegativeCriterionName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => - new CustomerNegativeCriterionName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); + public static CustomerSearchTermInsightName FromUnparsed(gax::UnparsedResourceName unparsedResourceName) => + new CustomerSearchTermInsightName(ResourceNameType.Unparsed, gax::GaxPreconditions.CheckNotNull(unparsedResourceName, nameof(unparsedResourceName))); /// - /// Creates a with the pattern - /// customers/{customer_id}/customerNegativeCriteria/{criterion_id}. + /// Creates a with the pattern + /// customers/{customer_id}/customerSearchTermInsights/{cluster_id}. /// /// The Customer ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. /// - /// A new instance of constructed from the provided ids. + /// A new instance of constructed from the provided ids. /// - public static CustomerNegativeCriterionName FromCustomerCriterion(string customerId, string criterionId) => - new CustomerNegativeCriterionName(ResourceNameType.CustomerCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); + public static CustomerSearchTermInsightName FromCustomerCluster(string customerId, string clusterId) => + new CustomerSearchTermInsightName(ResourceNameType.CustomerCluster, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/customerNegativeCriteria/{criterion_id}. + /// Formats the IDs into the string representation of this with + /// pattern customers/{customer_id}/customerSearchTermInsights/{cluster_id}. /// /// The Customer ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerNegativeCriteria/{criterion_id}. + /// The string representation of this with pattern + /// customers/{customer_id}/customerSearchTermInsights/{cluster_id}. /// - public static string Format(string customerId, string criterionId) => FormatCustomerCriterion(customerId, criterionId); + public static string Format(string customerId, string clusterId) => FormatCustomerCluster(customerId, clusterId); /// - /// Formats the IDs into the string representation of this with - /// pattern customers/{customer_id}/customerNegativeCriteria/{criterion_id}. + /// Formats the IDs into the string representation of this with + /// pattern customers/{customer_id}/customerSearchTermInsights/{cluster_id}. /// /// The Customer ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. + /// The Cluster ID. Must not be null or empty. /// - /// The string representation of this with pattern - /// customers/{customer_id}/customerNegativeCriteria/{criterion_id}. + /// The string representation of this with pattern + /// customers/{customer_id}/customerSearchTermInsights/{cluster_id}. /// - public static string FormatCustomerCriterion(string customerId, string criterionId) => - s_customerCriterion.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))); + public static string FormatCustomerCluster(string customerId, string clusterId) => + s_customerCluster.Expand(gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))); /// - /// Parses the given resource name string into a new instance. + /// Parses the given resource name string into a new instance. /// /// /// To parse successfully, the resource name must be formatted as one of the following: /// /// - /// customers/{customer_id}/customerNegativeCriteria/{criterion_id} + /// customers/{customer_id}/customerSearchTermInsights/{cluster_id} /// /// /// - /// + /// /// The resource name in string form. Must not be null. /// - /// The parsed if successful. - public static CustomerNegativeCriterionName Parse(string customerNegativeCriterionName) => - Parse(customerNegativeCriterionName, false); + /// The parsed if successful. + public static CustomerSearchTermInsightName Parse(string customerSearchTermInsightName) => + Parse(customerSearchTermInsightName, false); /// - /// Parses the given resource name string into a new instance; + /// Parses the given resource name string into a new instance; /// optionally allowing an unparseable resource name. /// /// /// To parse successfully, the resource name must be formatted as one of the following: /// /// - /// customers/{customer_id}/customerNegativeCriteria/{criterion_id} + /// customers/{customer_id}/customerSearchTermInsights/{cluster_id} /// /// /// Or may be in any format if is true. /// - /// + /// /// The resource name in string form. Must not be null. /// /// @@ -124,47 +124,47 @@ public static CustomerNegativeCriterionName Parse(string customerNegativeCriteri /// property; otherwise will throw an if an unparseable resource name is /// specified. /// - /// The parsed if successful. - public static CustomerNegativeCriterionName Parse(string customerNegativeCriterionName, bool allowUnparsed) => - TryParse(customerNegativeCriterionName, allowUnparsed, out CustomerNegativeCriterionName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); + /// The parsed if successful. + public static CustomerSearchTermInsightName Parse(string customerSearchTermInsightName, bool allowUnparsed) => + TryParse(customerSearchTermInsightName, allowUnparsed, out CustomerSearchTermInsightName result) ? result : throw new sys::ArgumentException("The given resource-name matches no pattern."); /// - /// Tries to parse the given resource name string into a new + /// Tries to parse the given resource name string into a new /// instance. /// /// /// To parse successfully, the resource name must be formatted as one of the following: /// /// - /// customers/{customer_id}/customerNegativeCriteria/{criterion_id} + /// customers/{customer_id}/customerSearchTermInsights/{cluster_id} /// /// /// - /// + /// /// The resource name in string form. Must not be null. /// /// - /// When this method returns, the parsed , or null if parsing + /// When this method returns, the parsed , or null if parsing /// failed. /// /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerNegativeCriterionName, out CustomerNegativeCriterionName result) => - TryParse(customerNegativeCriterionName, false, out result); + public static bool TryParse(string customerSearchTermInsightName, out CustomerSearchTermInsightName result) => + TryParse(customerSearchTermInsightName, false, out result); /// - /// Tries to parse the given resource name string into a new + /// Tries to parse the given resource name string into a new /// instance; optionally allowing an unparseable resource name. /// /// /// To parse successfully, the resource name must be formatted as one of the following: /// /// - /// customers/{customer_id}/customerNegativeCriteria/{criterion_id} + /// customers/{customer_id}/customerSearchTermInsights/{cluster_id} /// /// /// Or may be in any format if is true. /// - /// + /// /// The resource name in string form. Must not be null. /// /// @@ -173,22 +173,22 @@ public static bool TryParse(string customerNegativeCriterionName, out CustomerNe /// specified. /// /// - /// When this method returns, the parsed , or null if parsing + /// When this method returns, the parsed , or null if parsing /// failed. /// /// true if the name was parsed successfully; false otherwise. - public static bool TryParse(string customerNegativeCriterionName, bool allowUnparsed, out CustomerNegativeCriterionName result) + public static bool TryParse(string customerSearchTermInsightName, bool allowUnparsed, out CustomerSearchTermInsightName result) { - gax::GaxPreconditions.CheckNotNull(customerNegativeCriterionName, nameof(customerNegativeCriterionName)); + gax::GaxPreconditions.CheckNotNull(customerSearchTermInsightName, nameof(customerSearchTermInsightName)); gax::TemplatedResourceName resourceName; - if (s_customerCriterion.TryParseName(customerNegativeCriterionName, out resourceName)) + if (s_customerCluster.TryParseName(customerSearchTermInsightName, out resourceName)) { - result = FromCustomerCriterion(resourceName[0], resourceName[1]); + result = FromCustomerCluster(resourceName[0], resourceName[1]); return true; } if (allowUnparsed) { - if (gax::UnparsedResourceName.TryParse(customerNegativeCriterionName, out gax::UnparsedResourceName unparsedResourceName)) + if (gax::UnparsedResourceName.TryParse(customerSearchTermInsightName, out gax::UnparsedResourceName unparsedResourceName)) { result = FromUnparsed(unparsedResourceName); return true; @@ -198,21 +198,21 @@ public static bool TryParse(string customerNegativeCriterionName, bool allowUnpa return false; } - private CustomerNegativeCriterionName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string criterionId = null, string customerId = null) + private CustomerSearchTermInsightName(ResourceNameType type, gax::UnparsedResourceName unparsedResourceName = null, string clusterId = null, string customerId = null) { Type = type; UnparsedResource = unparsedResourceName; - CriterionId = criterionId; + ClusterId = clusterId; CustomerId = customerId; } /// - /// Constructs a new instance of a class from the component parts of - /// pattern customers/{customer_id}/customerNegativeCriteria/{criterion_id} + /// Constructs a new instance of a class from the component parts of + /// pattern customers/{customer_id}/customerSearchTermInsights/{cluster_id} /// /// The Customer ID. Must not be null or empty. - /// The Criterion ID. Must not be null or empty. - public CustomerNegativeCriterionName(string customerId, string criterionId) : this(ResourceNameType.CustomerCriterion, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), criterionId: gax::GaxPreconditions.CheckNotNullOrEmpty(criterionId, nameof(criterionId))) + /// The Cluster ID. Must not be null or empty. + public CustomerSearchTermInsightName(string customerId, string clusterId) : this(ResourceNameType.CustomerCluster, customerId: gax::GaxPreconditions.CheckNotNullOrEmpty(customerId, nameof(customerId)), clusterId: gax::GaxPreconditions.CheckNotNullOrEmpty(clusterId, nameof(clusterId))) { } @@ -226,9 +226,9 @@ public CustomerNegativeCriterionName(string customerId, string criterionId) : th public gax::UnparsedResourceName UnparsedResource { get; } /// - /// The Criterion ID. Will not be null, unless this instance contains an unparsed resource name. + /// The Cluster ID. Will not be null, unless this instance contains an unparsed resource name. /// - public string CriterionId { get; } + public string ClusterId { get; } /// /// The Customer ID. Will not be null, unless this instance contains an unparsed resource name. @@ -245,7 +245,7 @@ public override string ToString() switch (Type) { case ResourceNameType.Unparsed: return UnparsedResource.ToString(); - case ResourceNameType.CustomerCriterion: return s_customerCriterion.Expand(CustomerId, CriterionId); + case ResourceNameType.CustomerCluster: return s_customerCluster.Expand(CustomerId, ClusterId); default: throw new sys::InvalidOperationException("Unrecognized resource-type."); } } @@ -254,27 +254,27 @@ public override string ToString() public override int GetHashCode() => ToString().GetHashCode(); /// - public override bool Equals(object obj) => Equals(obj as CustomerNegativeCriterionName); + public override bool Equals(object obj) => Equals(obj as CustomerSearchTermInsightName); /// - public bool Equals(CustomerNegativeCriterionName other) => ToString() == other?.ToString(); + public bool Equals(CustomerSearchTermInsightName other) => ToString() == other?.ToString(); /// - public static bool operator ==(CustomerNegativeCriterionName a, CustomerNegativeCriterionName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); + public static bool operator ==(CustomerSearchTermInsightName a, CustomerSearchTermInsightName b) => ReferenceEquals(a, b) || (a?.Equals(b) ?? false); /// - public static bool operator !=(CustomerNegativeCriterionName a, CustomerNegativeCriterionName b) => !(a == b); + public static bool operator !=(CustomerSearchTermInsightName a, CustomerSearchTermInsightName b) => !(a == b); } - public partial class CustomerNegativeCriterion + public partial class CustomerSearchTermInsight { /// - /// -typed view over the resource name + /// -typed view over the resource name /// property. /// - internal CustomerNegativeCriterionName ResourceNameAsCustomerNegativeCriterionName + internal CustomerSearchTermInsightName ResourceNameAsCustomerSearchTermInsightName { - get => string.IsNullOrEmpty(ResourceName) ? null : CustomerNegativeCriterionName.Parse(ResourceName, allowUnparsed: true); + get => string.IsNullOrEmpty(ResourceName) ? null : CustomerSearchTermInsightName.Parse(ResourceName, allowUnparsed: true); set => ResourceName = value?.ToString() ?? ""; } } diff --git a/Google.Ads.GoogleAds/src/V14/CustomerUserAccessInvitationService.g.cs b/Google.Ads.GoogleAds/src/V14/CustomerUserAccessInvitationService.g.cs index 6c1a5c025..0a2ec58df 100755 --- a/Google.Ads.GoogleAds/src/V14/CustomerUserAccessInvitationService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/CustomerUserAccessInvitationService.g.cs @@ -76,7 +76,7 @@ static CustomerUserAccessInvitationServiceReflection() { #region Messages /// /// Request message for - /// [CustomerUserAccessInvitation.MutateCustomerUserAccessInvitation][] + /// [CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation][google.ads.googleads.v14.services.CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation] /// public sealed partial class MutateCustomerUserAccessInvitationRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/src/V14/Errors.g.cs b/Google.Ads.GoogleAds/src/V14/Errors.g.cs index 2b3bdedf1..38369402b 100755 --- a/Google.Ads.GoogleAds/src/V14/Errors.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Errors.g.cs @@ -203,423 +203,427 @@ static ErrorsReflection() { "djE0L2Vycm9ycy9yZXF1ZXN0X2Vycm9yLnByb3RvGkJnb29nbGUvYWRzL2dv", "b2dsZWFkcy92MTQvZXJyb3JzL3Jlc291cmNlX2FjY2Vzc19kZW5pZWRfZXJy", "b3IucHJvdG8aSWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvcmVz", - "b3VyY2VfY291bnRfbGltaXRfZXhjZWVkZWRfZXJyb3IucHJvdG8aM2dvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvc2V0dGluZ19lcnJvci5wcm90", - "bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9ycy9zaGFyZWRfY3Jp", - "dGVyaW9uX2Vycm9yLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", - "ZXJyb3JzL3NoYXJlZF9zZXRfZXJyb3IucHJvdG8aNmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxNC9lcnJvcnMvc2l6ZV9saW1pdF9lcnJvci5wcm90bxo6Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9ycy9zbWFydF9jYW1wYWlnbl9l", - "cnJvci5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9ycy9z", - "dHJpbmdfZm9ybWF0X2Vycm9yLnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTQvZXJyb3JzL3N0cmluZ19sZW5ndGhfZXJyb3IucHJvdG8aSmdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvdGhpcmRfcGFydHlfYXBwX2Fu", - "YWx5dGljc19saW5rX2Vycm9yLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTQvZXJyb3JzL3RpbWVfem9uZV9lcnJvci5wcm90bxo1Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjE0L2Vycm9ycy91cmxfZmllbGRfZXJyb3IucHJvdG8a", - "NWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvdXNlcl9kYXRhX2Vy", - "cm9yLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL3Vz", - "ZXJfbGlzdF9lcnJvci5wcm90bxpGZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", - "L2Vycm9ycy95b3V0dWJlX3ZpZGVvX3JlZ2lzdHJhdGlvbl9lcnJvci5wcm90", - "bxoeZ29vZ2xlL3Byb3RvYnVmL2R1cmF0aW9uLnByb3RvImcKEEdvb2dsZUFk", - "c0ZhaWx1cmUSPwoGZXJyb3JzGAEgAygLMi8uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5Hb29nbGVBZHNFcnJvchISCgpyZXF1ZXN0X2lkGAIg", - "ASgJIpwCCg5Hb29nbGVBZHNFcnJvchI+CgplcnJvcl9jb2RlGAEgASgLMiou", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5FcnJvckNvZGUSDwoH", - "bWVzc2FnZRgCIAEoCRI3Cgd0cmlnZ2VyGAMgASgLMiYuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LmNvbW1vbi5WYWx1ZRJACghsb2NhdGlvbhgEIAEoCzIu", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRXJyb3JMb2NhdGlv", - "bhI+CgdkZXRhaWxzGAUgASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LmVycm9ycy5FcnJvckRldGFpbHMioHoKCUVycm9yQ29kZRJXCg1yZXF1ZXN0", - "X2Vycm9yGAEgASgOMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5SZXF1ZXN0RXJyb3JFbnVtLlJlcXVlc3RFcnJvckgAEnAKFmJpZGRpbmdf", - "c3RyYXRlZ3lfZXJyb3IYAiABKA4yTi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuZXJyb3JzLkJpZGRpbmdTdHJhdGVneUVycm9yRW51bS5CaWRkaW5nU3Ry", - "YXRlZ3lFcnJvckgAElsKD3VybF9maWVsZF9lcnJvchgDIAEoDjJALmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuVXJsRmllbGRFcnJvckVudW0u", - "VXJsRmllbGRFcnJvckgAEmoKFGxpc3Rfb3BlcmF0aW9uX2Vycm9yGAQgASgO", - "MkouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5MaXN0T3BlcmF0", - "aW9uRXJyb3JFbnVtLkxpc3RPcGVyYXRpb25FcnJvckgAElEKC3F1ZXJ5X2Vy", - "cm9yGAUgASgOMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5R", - "dWVyeUVycm9yRW51bS5RdWVyeUVycm9ySAASVAoMbXV0YXRlX2Vycm9yGAcg", - "ASgOMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5NdXRhdGVF", - "cnJvckVudW0uTXV0YXRlRXJyb3JIABJeChBmaWVsZF9tYXNrX2Vycm9yGAgg", - "ASgOMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5GaWVsZE1h", - "c2tFcnJvckVudW0uRmllbGRNYXNrRXJyb3JIABJpChNhdXRob3JpemF0aW9u", - "X2Vycm9yGAkgASgOMkouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5BdXRob3JpemF0aW9uRXJyb3JFbnVtLkF1dGhvcml6YXRpb25FcnJvckgA", - "EloKDmludGVybmFsX2Vycm9yGAogASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5JbnRlcm5hbEVycm9yRW51bS5JbnRlcm5hbEVycm9y", - "SAASUQoLcXVvdGFfZXJyb3IYCyABKA4yOi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZXJyb3JzLlF1b3RhRXJyb3JFbnVtLlF1b3RhRXJyb3JIABJICghh", - "ZF9lcnJvchgMIAEoDjI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", - "cnMuQWRFcnJvckVudW0uQWRFcnJvckgAElgKDmFkX2dyb3VwX2Vycm9yGA0g", - "ASgOMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5BZEdyb3Vw", - "RXJyb3JFbnVtLkFkR3JvdXBFcnJvckgAEm0KFWNhbXBhaWduX2J1ZGdldF9l", - "cnJvchgOIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMu", - "Q2FtcGFpZ25CdWRnZXRFcnJvckVudW0uQ2FtcGFpZ25CdWRnZXRFcnJvckgA", - "EloKDmNhbXBhaWduX2Vycm9yGA8gASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5DYW1wYWlnbkVycm9yRW51bS5DYW1wYWlnbkVycm9y", - "SAASbAoUYXV0aGVudGljYXRpb25fZXJyb3IYESABKA4yTC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkF1dGhlbnRpY2F0aW9uRXJyb3JFbnVt", - "LkF1dGhlbnRpY2F0aW9uRXJyb3JIABKUAQojYWRfZ3JvdXBfY3JpdGVyaW9u", - "X2N1c3RvbWl6ZXJfZXJyb3IYoQEgASgOMmQuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5BZEdyb3VwQ3JpdGVyaW9uQ3VzdG9taXplckVycm9y", - "RW51bS5BZEdyb3VwQ3JpdGVyaW9uQ3VzdG9taXplckVycm9ySAASdAoYYWRf", - "Z3JvdXBfY3JpdGVyaW9uX2Vycm9yGBIgASgOMlAuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVycm9ycy5BZEdyb3VwQ3JpdGVyaW9uRXJyb3JFbnVtLkFk", - "R3JvdXBDcml0ZXJpb25FcnJvckgAEngKGWFkX2dyb3VwX2N1c3RvbWl6ZXJf", - "ZXJyb3IYnwEgASgOMlIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5BZEdyb3VwQ3VzdG9taXplckVycm9yRW51bS5BZEdyb3VwQ3VzdG9taXpl", - "ckVycm9ySAASZwoTYWRfY3VzdG9taXplcl9lcnJvchgTIAEoDjJILmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQWRDdXN0b21pemVyRXJyb3JF", - "bnVtLkFkQ3VzdG9taXplckVycm9ySAASXwoRYWRfZ3JvdXBfYWRfZXJyb3IY", - "FSABKA4yQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFkR3Jv", - "dXBBZEVycm9yRW51bS5BZEdyb3VwQWRFcnJvckgAEl4KEGFkX3NoYXJpbmdf", - "ZXJyb3IYGCABKA4yQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3Jz", - "LkFkU2hhcmluZ0Vycm9yRW51bS5BZFNoYXJpbmdFcnJvckgAEksKCWFkeF9l", - "cnJvchgZIAEoDjI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMu", - "QWR4RXJyb3JFbnVtLkFkeEVycm9ySAASUQoLYXNzZXRfZXJyb3IYayABKA4y", - "Oi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFzc2V0RXJyb3JF", - "bnVtLkFzc2V0RXJyb3JIABJyChdhc3NldF9ncm91cF9hc3NldF9lcnJvchiV", - "ASABKA4yTi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFzc2V0", - "R3JvdXBBc3NldEVycm9yRW51bS5Bc3NldEdyb3VwQXNzZXRFcnJvckgAEpsB", - "CiZhc3NldF9ncm91cF9saXN0aW5nX2dyb3VwX2ZpbHRlcl9lcnJvchibASAB", - "KA4yaC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFzc2V0R3Jv", - "dXBMaXN0aW5nR3JvdXBGaWx0ZXJFcnJvckVudW0uQXNzZXRHcm91cExpc3Rp", - "bmdHcm91cEZpbHRlckVycm9ySAASYgoRYXNzZXRfZ3JvdXBfZXJyb3IYlAEg", - "ASgOMkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Bc3NldEdy", - "b3VwRXJyb3JFbnVtLkFzc2V0R3JvdXBFcnJvckgAEmwKFWFzc2V0X3NldF9h", - "c3NldF9lcnJvchiZASABKA4ySi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZXJyb3JzLkFzc2V0U2V0QXNzZXRFcnJvckVudW0uQXNzZXRTZXRBc3NldEVy", - "cm9ySAASaQoUYXNzZXRfc2V0X2xpbmtfZXJyb3IYmgEgASgOMkguZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Bc3NldFNldExpbmtFcnJvckVu", - "dW0uQXNzZXRTZXRMaW5rRXJyb3JIABJcCg9hc3NldF9zZXRfZXJyb3IYmAEg", - "ASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Bc3NldFNl", - "dEVycm9yRW51bS5Bc3NldFNldEVycm9ySAASVwoNYmlkZGluZ19lcnJvchga", - "IAEoDjI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQmlkZGlu", - "Z0Vycm9yRW51bS5CaWRkaW5nRXJyb3JIABJ2ChhjYW1wYWlnbl9jcml0ZXJp", - "b25fZXJyb3IYHSABKA4yUi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJy", - "b3JzLkNhbXBhaWduQ3JpdGVyaW9uRXJyb3JFbnVtLkNhbXBhaWduQ3JpdGVy", - "aW9uRXJyb3JIABKHAQoeY2FtcGFpZ25fY29udmVyc2lvbl9nb2FsX2Vycm9y", - "GKYBIAEoDjJcLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ2Ft", - "cGFpZ25Db252ZXJzaW9uR29hbEVycm9yRW51bS5DYW1wYWlnbkNvbnZlcnNp", - "b25Hb2FsRXJyb3JIABJ6ChljYW1wYWlnbl9jdXN0b21pemVyX2Vycm9yGKAB", - "IAEoDjJULmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ2FtcGFp", - "Z25DdXN0b21pemVyRXJyb3JFbnVtLkNhbXBhaWduQ3VzdG9taXplckVycm9y", - "SAASbQoVY29sbGVjdGlvbl9zaXplX2Vycm9yGB8gASgOMkwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LmVycm9ycy5Db2xsZWN0aW9uU2l6ZUVycm9yRW51", - "bS5Db2xsZWN0aW9uU2l6ZUVycm9ySAASmgEKJWNvbnZlcnNpb25fZ29hbF9j", - "YW1wYWlnbl9jb25maWdfZXJyb3IYpQEgASgOMmguZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVycm9ycy5Db252ZXJzaW9uR29hbENhbXBhaWduQ29uZmln", - "RXJyb3JFbnVtLkNvbnZlcnNpb25Hb2FsQ2FtcGFpZ25Db25maWdFcnJvckgA", - "EmQKEmNvdW50cnlfY29kZV9lcnJvchhtIAEoDjJGLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5lcnJvcnMuQ291bnRyeUNvZGVFcnJvckVudW0uQ291bnRy", - "eUNvZGVFcnJvckgAEl0KD2NyaXRlcmlvbl9lcnJvchggIAEoDjJCLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ3JpdGVyaW9uRXJyb3JFbnVt", - "LkNyaXRlcmlvbkVycm9ySAASgQEKHGN1c3RvbV9jb252ZXJzaW9uX2dvYWxf", - "ZXJyb3IYlgEgASgOMlguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5DdXN0b21Db252ZXJzaW9uR29hbEVycm9yRW51bS5DdXN0b21Db252ZXJz", - "aW9uR29hbEVycm9ySAASegoZY3VzdG9tZXJfY3VzdG9taXplcl9lcnJvchie", - "ASABKA4yVC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkN1c3Rv", - "bWVyQ3VzdG9taXplckVycm9yRW51bS5DdXN0b21lckN1c3RvbWl6ZXJFcnJv", - "ckgAEloKDmN1c3RvbWVyX2Vycm9yGFogASgOMkAuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVycm9ycy5DdXN0b21lckVycm9yRW51bS5DdXN0b21lckVy", - "cm9ySAASfQoaY3VzdG9taXplcl9hdHRyaWJ1dGVfZXJyb3IYlwEgASgOMlYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5DdXN0b21pemVyQXR0", - "cmlidXRlRXJyb3JFbnVtLkN1c3RvbWl6ZXJBdHRyaWJ1dGVFcnJvckgAEk4K", - "CmRhdGVfZXJyb3IYISABKA4yOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZXJyb3JzLkRhdGVFcnJvckVudW0uRGF0ZUVycm9ySAASXgoQZGF0ZV9yYW5n", - "ZV9lcnJvchgiIAEoDjJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", - "cnMuRGF0ZVJhbmdlRXJyb3JFbnVtLkRhdGVSYW5nZUVycm9ySAASWgoOZGlz", - "dGluY3RfZXJyb3IYIyABKA4yQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZXJyb3JzLkRpc3RpbmN0RXJyb3JFbnVtLkRpc3RpbmN0RXJyb3JIABKGAQoe", - "ZmVlZF9hdHRyaWJ1dGVfcmVmZXJlbmNlX2Vycm9yGCQgASgOMlwuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5GZWVkQXR0cmlidXRlUmVmZXJl", - "bmNlRXJyb3JFbnVtLkZlZWRBdHRyaWJ1dGVSZWZlcmVuY2VFcnJvckgAEloK", - "DmZ1bmN0aW9uX2Vycm9yGCUgASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LmVycm9ycy5GdW5jdGlvbkVycm9yRW51bS5GdW5jdGlvbkVycm9ySAAS", - "cAoWZnVuY3Rpb25fcGFyc2luZ19lcnJvchgmIAEoDjJOLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5lcnJvcnMuRnVuY3Rpb25QYXJzaW5nRXJyb3JFbnVt", - "LkZ1bmN0aW9uUGFyc2luZ0Vycm9ySAASSAoIaWRfZXJyb3IYJyABKA4yNC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLklkRXJyb3JFbnVtLklk", - "RXJyb3JIABJRCgtpbWFnZV9lcnJvchgoIAEoDjI6Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5lcnJvcnMuSW1hZ2VFcnJvckVudW0uSW1hZ2VFcnJvckgA", - "EmcKE2xhbmd1YWdlX2NvZGVfZXJyb3IYbiABKA4ySC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuZXJyb3JzLkxhbmd1YWdlQ29kZUVycm9yRW51bS5MYW5n", - "dWFnZUNvZGVFcnJvckgAEmQKEm1lZGlhX2J1bmRsZV9lcnJvchgqIAEoDjJG", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuTWVkaWFCdW5kbGVF", - "cnJvckVudW0uTWVkaWFCdW5kbGVFcnJvckgAEmQKEm1lZGlhX3VwbG9hZF9l", - "cnJvchh0IAEoDjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMu", - "TWVkaWFVcGxvYWRFcnJvckVudW0uTWVkaWFVcGxvYWRFcnJvckgAEl4KEG1l", - "ZGlhX2ZpbGVfZXJyb3IYViABKA4yQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuZXJyb3JzLk1lZGlhRmlsZUVycm9yRW51bS5NZWRpYUZpbGVFcnJvckgA", - "Em4KFW1lcmNoYW50X2NlbnRlcl9lcnJvchiiASABKA4yTC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLk1lcmNoYW50Q2VudGVyRXJyb3JFbnVt", - "Lk1lcmNoYW50Q2VudGVyRXJyb3JIABJgChBtdWx0aXBsaWVyX2Vycm9yGCwg", - "ASgOMkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5NdWx0aXBs", - "aWVyRXJyb3JFbnVtLk11bHRpcGxpZXJFcnJvckgAEn0KG25ld19yZXNvdXJj", - "ZV9jcmVhdGlvbl9lcnJvchgtIAEoDjJWLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5lcnJvcnMuTmV3UmVzb3VyY2VDcmVhdGlvbkVycm9yRW51bS5OZXdS", - "ZXNvdXJjZUNyZWF0aW9uRXJyb3JIABJbCg9ub3RfZW1wdHlfZXJyb3IYLiAB", - "KA4yQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLk5vdEVtcHR5", - "RXJyb3JFbnVtLk5vdEVtcHR5RXJyb3JIABJOCgpudWxsX2Vycm9yGC8gASgO", - "MjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5OdWxsRXJyb3JF", - "bnVtLk51bGxFcnJvckgAEloKDm9wZXJhdG9yX2Vycm9yGDAgASgOMkAuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5PcGVyYXRvckVycm9yRW51", - "bS5PcGVyYXRvckVycm9ySAASUQoLcmFuZ2VfZXJyb3IYMSABKA4yOi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlJhbmdlRXJyb3JFbnVtLlJh", - "bmdlRXJyb3JIABJsChRyZWNvbW1lbmRhdGlvbl9lcnJvchg6IAEoDjJMLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuUmVjb21tZW5kYXRpb25F", - "cnJvckVudW0uUmVjb21tZW5kYXRpb25FcnJvckgAEmEKEXJlZ2lvbl9jb2Rl", - "X2Vycm9yGDMgASgOMkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5SZWdpb25Db2RlRXJyb3JFbnVtLlJlZ2lvbkNvZGVFcnJvckgAElcKDXNl", - "dHRpbmdfZXJyb3IYNCABKA4yPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZXJyb3JzLlNldHRpbmdFcnJvckVudW0uU2V0dGluZ0Vycm9ySAASZwoTc3Ry", - "aW5nX2Zvcm1hdF9lcnJvchg1IAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5lcnJvcnMuU3RyaW5nRm9ybWF0RXJyb3JFbnVtLlN0cmluZ0Zvcm1h", - "dEVycm9ySAASZwoTc3RyaW5nX2xlbmd0aF9lcnJvchg2IAEoDjJILmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuU3RyaW5nTGVuZ3RoRXJyb3JF", - "bnVtLlN0cmluZ0xlbmd0aEVycm9ySAASgwEKHW9wZXJhdGlvbl9hY2Nlc3Nf", - "ZGVuaWVkX2Vycm9yGDcgASgOMlouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LmVycm9ycy5PcGVyYXRpb25BY2Nlc3NEZW5pZWRFcnJvckVudW0uT3BlcmF0", - "aW9uQWNjZXNzRGVuaWVkRXJyb3JIABKAAQoccmVzb3VyY2VfYWNjZXNzX2Rl", - "bmllZF9lcnJvchg4IAEoDjJYLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", - "cnJvcnMuUmVzb3VyY2VBY2Nlc3NEZW5pZWRFcnJvckVudW0uUmVzb3VyY2VB", - "Y2Nlc3NEZW5pZWRFcnJvckgAEpMBCiNyZXNvdXJjZV9jb3VudF9saW1pdF9l", - "eGNlZWRlZF9lcnJvchg5IAEoDjJkLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5lcnJvcnMuUmVzb3VyY2VDb3VudExpbWl0RXhjZWVkZWRFcnJvckVudW0u", - "UmVzb3VyY2VDb3VudExpbWl0RXhjZWVkZWRFcnJvckgAEowBCiB5b3V0dWJl", - "X3ZpZGVvX3JlZ2lzdHJhdGlvbl9lcnJvchh1IAEoDjJgLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5lcnJvcnMuWW91dHViZVZpZGVvUmVnaXN0cmF0aW9u", - "RXJyb3JFbnVtLllvdXR1YmVWaWRlb1JlZ2lzdHJhdGlvbkVycm9ySAASewob", - "YWRfZ3JvdXBfYmlkX21vZGlmaWVyX2Vycm9yGDsgASgOMlQuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LmVycm9ycy5BZEdyb3VwQmlkTW9kaWZpZXJFcnJv", - "ckVudW0uQWRHcm91cEJpZE1vZGlmaWVyRXJyb3JIABJXCg1jb250ZXh0X2Vy", - "cm9yGDwgASgOMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5D", - "b250ZXh0RXJyb3JFbnVtLkNvbnRleHRFcnJvckgAElEKC2ZpZWxkX2Vycm9y", - "GD0gASgOMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5GaWVs", - "ZEVycm9yRW51bS5GaWVsZEVycm9ySAASXgoQc2hhcmVkX3NldF9lcnJvchg+", - "IAEoDjJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuU2hhcmVk", - "U2V0RXJyb3JFbnVtLlNoYXJlZFNldEVycm9ySAAScAoWc2hhcmVkX2NyaXRl", - "cmlvbl9lcnJvchg/IAEoDjJOLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", - "cnJvcnMuU2hhcmVkQ3JpdGVyaW9uRXJyb3JFbnVtLlNoYXJlZENyaXRlcmlv", - "bkVycm9ySAASdwoZY2FtcGFpZ25fc2hhcmVkX3NldF9lcnJvchhAIAEoDjJS", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ2FtcGFpZ25TaGFy", - "ZWRTZXRFcnJvckVudW0uQ2FtcGFpZ25TaGFyZWRTZXRFcnJvckgAEnMKF2Nv", - "bnZlcnNpb25fYWN0aW9uX2Vycm9yGEEgASgOMlAuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVycm9ycy5Db252ZXJzaW9uQWN0aW9uRXJyb3JFbnVtLkNv", - "bnZlcnNpb25BY3Rpb25FcnJvckgAEpIBCiJjb252ZXJzaW9uX2FkanVzdG1l", - "bnRfdXBsb2FkX2Vycm9yGHMgASgOMmQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LmVycm9ycy5Db252ZXJzaW9uQWRqdXN0bWVudFVwbG9hZEVycm9yRW51", - "bS5Db252ZXJzaW9uQWRqdXN0bWVudFVwbG9hZEVycm9ySAASjQEKIGNvbnZl", - "cnNpb25fY3VzdG9tX3ZhcmlhYmxlX2Vycm9yGI8BIAEoDjJgLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ29udmVyc2lvbkN1c3RvbVZhcmlh", - "YmxlRXJyb3JFbnVtLkNvbnZlcnNpb25DdXN0b21WYXJpYWJsZUVycm9ySAAS", - "cwoXY29udmVyc2lvbl91cGxvYWRfZXJyb3IYbyABKA4yUC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkNvbnZlcnNpb25VcGxvYWRFcnJvckVu", - "dW0uQ29udmVyc2lvblVwbG9hZEVycm9ySAASfgobY29udmVyc2lvbl92YWx1", - "ZV9ydWxlX2Vycm9yGJEBIAEoDjJWLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5lcnJvcnMuQ29udmVyc2lvblZhbHVlUnVsZUVycm9yRW51bS5Db252ZXJz", - "aW9uVmFsdWVSdWxlRXJyb3JIABKIAQofY29udmVyc2lvbl92YWx1ZV9ydWxl", - "X3NldF9lcnJvchiSASABKA4yXC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZXJyb3JzLkNvbnZlcnNpb25WYWx1ZVJ1bGVTZXRFcnJvckVudW0uQ29udmVy", - "c2lvblZhbHVlUnVsZVNldEVycm9ySAASVAoMaGVhZGVyX2Vycm9yGEIgASgO", - "MjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5IZWFkZXJFcnJv", - "ckVudW0uSGVhZGVyRXJyb3JIABJaCg5kYXRhYmFzZV9lcnJvchhDIAEoDjJA", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRGF0YWJhc2VFcnJv", - "ckVudW0uRGF0YWJhc2VFcnJvckgAEmoKFHBvbGljeV9maW5kaW5nX2Vycm9y", - "GEQgASgOMkouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Qb2xp", - "Y3lGaW5kaW5nRXJyb3JFbnVtLlBvbGljeUZpbmRpbmdFcnJvckgAEk4KCmVu", - "dW1fZXJyb3IYRiABKA4yOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJy", - "b3JzLkVudW1FcnJvckVudW0uRW51bUVycm9ySAASZAoSa2V5d29yZF9wbGFu", - "X2Vycm9yGEcgASgOMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5LZXl3b3JkUGxhbkVycm9yRW51bS5LZXl3b3JkUGxhbkVycm9ySAASfQob", - "a2V5d29yZF9wbGFuX2NhbXBhaWduX2Vycm9yGEggASgOMlYuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LmVycm9ycy5LZXl3b3JkUGxhbkNhbXBhaWduRXJy", - "b3JFbnVtLktleXdvcmRQbGFuQ2FtcGFpZ25FcnJvckgAEpQBCiNrZXl3b3Jk", - "X3BsYW5fY2FtcGFpZ25fa2V5d29yZF9lcnJvchiEASABKA4yZC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLktleXdvcmRQbGFuQ2FtcGFpZ25L", - "ZXl3b3JkRXJyb3JFbnVtLktleXdvcmRQbGFuQ2FtcGFpZ25LZXl3b3JkRXJy", - "b3JIABJ7ChtrZXl3b3JkX3BsYW5fYWRfZ3JvdXBfZXJyb3IYSiABKA4yVC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLktleXdvcmRQbGFuQWRH", - "cm91cEVycm9yRW51bS5LZXl3b3JkUGxhbkFkR3JvdXBFcnJvckgAEpIBCiNr", - "ZXl3b3JkX3BsYW5fYWRfZ3JvdXBfa2V5d29yZF9lcnJvchiFASABKA4yYi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLktleXdvcmRQbGFuQWRH", - "cm91cEtleXdvcmRFcnJvckVudW0uS2V5d29yZFBsYW5BZEdyb3VwS2V5d29y", - "ZEVycm9ySAAScQoXa2V5d29yZF9wbGFuX2lkZWFfZXJyb3IYTCABKA4yTi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLktleXdvcmRQbGFuSWRl", - "YUVycm9yRW51bS5LZXl3b3JkUGxhbklkZWFFcnJvckgAEoMBCh1hY2NvdW50", - "X2J1ZGdldF9wcm9wb3NhbF9lcnJvchhNIAEoDjJaLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5lcnJvcnMuQWNjb3VudEJ1ZGdldFByb3Bvc2FsRXJyb3JF", - "bnVtLkFjY291bnRCdWRnZXRQcm9wb3NhbEVycm9ySAASWwoPdXNlcl9saXN0", - "X2Vycm9yGE4gASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5Vc2VyTGlzdEVycm9yRW51bS5Vc2VyTGlzdEVycm9ySAASZQoSY2hhbmdl", - "X2V2ZW50X2Vycm9yGIgBIAEoDjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5lcnJvcnMuQ2hhbmdlRXZlbnRFcnJvckVudW0uQ2hhbmdlRXZlbnRFcnJv", - "ckgAEmcKE2NoYW5nZV9zdGF0dXNfZXJyb3IYTyABKA4ySC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkNoYW5nZVN0YXR1c0Vycm9yRW51bS5D", - "aGFuZ2VTdGF0dXNFcnJvckgAEk4KCmZlZWRfZXJyb3IYUCABKA4yOC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkZlZWRFcnJvckVudW0uRmVl", - "ZEVycm9ySAASlgEKJGdlb190YXJnZXRfY29uc3RhbnRfc3VnZ2VzdGlvbl9l", - "cnJvchhRIAEoDjJmLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMu", - "R2VvVGFyZ2V0Q29uc3RhbnRTdWdnZXN0aW9uRXJyb3JFbnVtLkdlb1Rhcmdl", - "dENvbnN0YW50U3VnZ2VzdGlvbkVycm9ySAASagoUY2FtcGFpZ25fZHJhZnRf", - "ZXJyb3IYUiABKA4ySi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3Jz", - "LkNhbXBhaWduRHJhZnRFcnJvckVudW0uQ2FtcGFpZ25EcmFmdEVycm9ySAAS", - "WwoPZmVlZF9pdGVtX2Vycm9yGFMgASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5GZWVkSXRlbUVycm9yRW51bS5GZWVkSXRlbUVycm9y", - "SAASUQoLbGFiZWxfZXJyb3IYVCABKA4yOi5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZXJyb3JzLkxhYmVsRXJyb3JFbnVtLkxhYmVsRXJyb3JIABJnChNi", - "aWxsaW5nX3NldHVwX2Vycm9yGFcgASgOMkguZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5CaWxsaW5nU2V0dXBFcnJvckVudW0uQmlsbGluZ1Nl", - "dHVwRXJyb3JIABJ6ChpjdXN0b21lcl9jbGllbnRfbGlua19lcnJvchhYIAEo", - "DjJULmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ3VzdG9tZXJD", - "bGllbnRMaW5rRXJyb3JFbnVtLkN1c3RvbWVyQ2xpZW50TGlua0Vycm9ySAAS", - "fQobY3VzdG9tZXJfbWFuYWdlcl9saW5rX2Vycm9yGFsgASgOMlYuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5DdXN0b21lck1hbmFnZXJMaW5r", - "RXJyb3JFbnVtLkN1c3RvbWVyTWFuYWdlckxpbmtFcnJvckgAEmQKEmZlZWRf", - "bWFwcGluZ19lcnJvchhcIAEoDjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5lcnJvcnMuRmVlZE1hcHBpbmdFcnJvckVudW0uRmVlZE1hcHBpbmdFcnJv", - "ckgAEmcKE2N1c3RvbWVyX2ZlZWRfZXJyb3IYXSABKA4ySC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkN1c3RvbWVyRmVlZEVycm9yRW51bS5D", - "dXN0b21lckZlZWRFcnJvckgAEmUKE2FkX2dyb3VwX2ZlZWRfZXJyb3IYXiAB", - "KA4yRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFkR3JvdXBG", - "ZWVkRXJyb3JFbnVtLkFkR3JvdXBGZWVkRXJyb3JIABJnChNjYW1wYWlnbl9m", - "ZWVkX2Vycm9yGGAgASgOMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVy", - "cm9ycy5DYW1wYWlnbkZlZWRFcnJvckVudW0uQ2FtcGFpZ25GZWVkRXJyb3JI", - "ABJtChVjdXN0b21faW50ZXJlc3RfZXJyb3IYYSABKA4yTC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkN1c3RvbUludGVyZXN0RXJyb3JFbnVt", - "LkN1c3RvbUludGVyZXN0RXJyb3JIABJ5ChljYW1wYWlnbl9leHBlcmltZW50", - "X2Vycm9yGGIgASgOMlQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", - "cy5DYW1wYWlnbkV4cGVyaW1lbnRFcnJvckVudW0uQ2FtcGFpZ25FeHBlcmlt", - "ZW50RXJyb3JIABJ3ChlleHRlbnNpb25fZmVlZF9pdGVtX2Vycm9yGGQgASgO", - "MlIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5FeHRlbnNpb25G", - "ZWVkSXRlbUVycm9yRW51bS5FeHRlbnNpb25GZWVkSXRlbUVycm9ySAASZAoS", - "YWRfcGFyYW1ldGVyX2Vycm9yGGUgASgOMkYuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5BZFBhcmFtZXRlckVycm9yRW51bS5BZFBhcmFtZXRl", - "ckVycm9ySAASegoaZmVlZF9pdGVtX3ZhbGlkYXRpb25fZXJyb3IYZiABKA4y", - "VC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkZlZWRJdGVtVmFs", - "aWRhdGlvbkVycm9yRW51bS5GZWVkSXRlbVZhbGlkYXRpb25FcnJvckgAEnMK", - "F2V4dGVuc2lvbl9zZXR0aW5nX2Vycm9yGGcgASgOMlAuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LmVycm9ycy5FeHRlbnNpb25TZXR0aW5nRXJyb3JFbnVt", - "LkV4dGVuc2lvblNldHRpbmdFcnJvckgAEmYKE2ZlZWRfaXRlbV9zZXRfZXJy", - "b3IYjAEgASgOMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5G", - "ZWVkSXRlbVNldEVycm9yRW51bS5GZWVkSXRlbVNldEVycm9ySAAScwoYZmVl", - "ZF9pdGVtX3NldF9saW5rX2Vycm9yGI0BIAEoDjJOLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5lcnJvcnMuRmVlZEl0ZW1TZXRMaW5rRXJyb3JFbnVtLkZl", - "ZWRJdGVtU2V0TGlua0Vycm9ySAASbgoWZmVlZF9pdGVtX3RhcmdldF9lcnJv", - "chhoIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRmVl", - "ZEl0ZW1UYXJnZXRFcnJvckVudW0uRmVlZEl0ZW1UYXJnZXRFcnJvckgAEnAK", - "FnBvbGljeV92aW9sYXRpb25fZXJyb3IYaSABKA4yTi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuZXJyb3JzLlBvbGljeVZpb2xhdGlvbkVycm9yRW51bS5Q", - "b2xpY3lWaW9sYXRpb25FcnJvckgAEm0KFXBhcnRpYWxfZmFpbHVyZV9lcnJv", - "chhwIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuUGFy", - "dGlhbEZhaWx1cmVFcnJvckVudW0uUGFydGlhbEZhaWx1cmVFcnJvckgAEo8B", - "CiFwb2xpY3lfdmFsaWRhdGlvbl9wYXJhbWV0ZXJfZXJyb3IYciABKA4yYi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlBvbGljeVZhbGlkYXRp", - "b25QYXJhbWV0ZXJFcnJvckVudW0uUG9saWN5VmFsaWRhdGlvblBhcmFtZXRl", - "ckVycm9ySAASXgoQc2l6ZV9saW1pdF9lcnJvchh2IAEoDjJCLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuU2l6ZUxpbWl0RXJyb3JFbnVtLlNp", - "emVMaW1pdEVycm9ySAASewobb2ZmbGluZV91c2VyX2RhdGFfam9iX2Vycm9y", - "GHcgASgOMlQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5PZmZs", - "aW5lVXNlckRhdGFKb2JFcnJvckVudW0uT2ZmbGluZVVzZXJEYXRhSm9iRXJy", - "b3JIABJuChVub3RfYWxsb3dsaXN0ZWRfZXJyb3IYiQEgASgOMkwuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Ob3RBbGxvd2xpc3RlZEVycm9y", - "RW51bS5Ob3RBbGxvd2xpc3RlZEVycm9ySAASZAoSbWFuYWdlcl9saW5rX2Vy", - "cm9yGHkgASgOMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5N", - "YW5hZ2VyTGlua0Vycm9yRW51bS5NYW5hZ2VyTGlua0Vycm9ySAASZwoTY3Vy", - "cmVuY3lfY29kZV9lcnJvchh6IAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5lcnJvcnMuQ3VycmVuY3lDb2RlRXJyb3JFbnVtLkN1cnJlbmN5Q29k", - "ZUVycm9ySAASYAoQZXhwZXJpbWVudF9lcnJvchh7IAEoDjJELmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRXhwZXJpbWVudEVycm9yRW51bS5F", - "eHBlcmltZW50RXJyb3JIABJzChdhY2Nlc3NfaW52aXRhdGlvbl9lcnJvchh8", - "IAEoDjJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQWNjZXNz", - "SW52aXRhdGlvbkVycm9yRW51bS5BY2Nlc3NJbnZpdGF0aW9uRXJyb3JIABJe", - "ChByZWFjaF9wbGFuX2Vycm9yGH0gASgOMkIuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVycm9ycy5SZWFjaFBsYW5FcnJvckVudW0uUmVhY2hQbGFuRXJy", - "b3JIABJXCg1pbnZvaWNlX2Vycm9yGH4gASgOMj4uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVycm9ycy5JbnZvaWNlRXJyb3JFbnVtLkludm9pY2VFcnJv", - "ckgAEnAKFnBheW1lbnRzX2FjY291bnRfZXJyb3IYfyABKA4yTi5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlBheW1lbnRzQWNjb3VudEVycm9y", - "RW51bS5QYXltZW50c0FjY291bnRFcnJvckgAElwKD3RpbWVfem9uZV9lcnJv", - "chiAASABKA4yQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlRp", - "bWVab25lRXJyb3JFbnVtLlRpbWVab25lRXJyb3JIABJfChBhc3NldF9saW5r", - "X2Vycm9yGIEBIAEoDjJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", - "cnMuQXNzZXRMaW5rRXJyb3JFbnVtLkFzc2V0TGlua0Vycm9ySAASXAoPdXNl", - "cl9kYXRhX2Vycm9yGIIBIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5lcnJvcnMuVXNlckRhdGFFcnJvckVudW0uVXNlckRhdGFFcnJvckgAElwK", - "D2JhdGNoX2pvYl9lcnJvchiDASABKA4yQC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZXJyb3JzLkJhdGNoSm9iRXJyb3JFbnVtLkJhdGNoSm9iRXJyb3JI", - "ABJlChJhY2NvdW50X2xpbmtfZXJyb3IYhgEgASgOMkYuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LmVycm9ycy5BY2NvdW50TGlua0Vycm9yRW51bS5BY2Nv", - "dW50TGlua0Vycm9ySAASlQEKJHRoaXJkX3BhcnR5X2FwcF9hbmFseXRpY3Nf", - "bGlua19lcnJvchiHASABKA4yZC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "ZXJyb3JzLlRoaXJkUGFydHlBcHBBbmFseXRpY3NMaW5rRXJyb3JFbnVtLlRo", - "aXJkUGFydHlBcHBBbmFseXRpY3NMaW5rRXJyb3JIABJ7ChpjdXN0b21lcl91", - "c2VyX2FjY2Vzc19lcnJvchiKASABKA4yVC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZXJyb3JzLkN1c3RvbWVyVXNlckFjY2Vzc0Vycm9yRW51bS5DdXN0", - "b21lclVzZXJBY2Nlc3NFcnJvckgAEm4KFWN1c3RvbV9hdWRpZW5jZV9lcnJv", - "chiLASABKA4yTC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkN1", - "c3RvbUF1ZGllbmNlRXJyb3JFbnVtLkN1c3RvbUF1ZGllbmNlRXJyb3JIABJb", - "Cg5hdWRpZW5jZV9lcnJvchikASABKA4yQC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZXJyb3JzLkF1ZGllbmNlRXJyb3JFbnVtLkF1ZGllbmNlRXJyb3JI", - "ABJrChRzbWFydF9jYW1wYWlnbl9lcnJvchiTASABKA4ySi5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLlNtYXJ0Q2FtcGFpZ25FcnJvckVudW0u", - "U21hcnRDYW1wYWlnbkVycm9ySAASawoUZXhwZXJpbWVudF9hcm1fZXJyb3IY", - "nAEgASgOMkouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5FeHBl", - "cmltZW50QXJtRXJyb3JFbnVtLkV4cGVyaW1lbnRBcm1FcnJvckgAEnQKF2F1", - "ZGllbmNlX2luc2lnaHRzX2Vycm9yGKcBIAEoDjJQLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5lcnJvcnMuQXVkaWVuY2VJbnNpZ2h0c0Vycm9yRW51bS5B", - "dWRpZW5jZUluc2lnaHRzRXJyb3JIABLCAQo0Y3VzdG9tZXJfc2tfYWRfbmV0", - "d29ya19jb252ZXJzaW9uX3ZhbHVlX3NjaGVtYV9lcnJvchiqASABKA4ygAEu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5DdXN0b21lclNrQWRO", - "ZXR3b3JrQ29udmVyc2lvblZhbHVlU2NoZW1hRXJyb3JFbnVtLkN1c3RvbWVy", - "U2tBZE5ldHdvcmtDb252ZXJzaW9uVmFsdWVTY2hlbWFFcnJvckgAElsKDmN1", - "cnJlbmN5X2Vycm9yGKsBIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5lcnJvcnMuQ3VycmVuY3lFcnJvckVudW0uQ3VycmVuY3lFcnJvckgAQgwK", - "CmVycm9yX2NvZGUiswEKDUVycm9yTG9jYXRpb24SXAoTZmllbGRfcGF0aF9l", - "bGVtZW50cxgCIAMoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", - "cnMuRXJyb3JMb2NhdGlvbi5GaWVsZFBhdGhFbGVtZW50GkQKEEZpZWxkUGF0", - "aEVsZW1lbnQSEgoKZmllbGRfbmFtZRgBIAEoCRISCgVpbmRleBgDIAEoBUgA", - "iAEBQggKBl9pbmRleCKIAwoMRXJyb3JEZXRhaWxzEh4KFnVucHVibGlzaGVk", - "X2Vycm9yX2NvZGUYASABKAkSWQoYcG9saWN5X3Zpb2xhdGlvbl9kZXRhaWxz", - "GAIgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Qb2xp", - "Y3lWaW9sYXRpb25EZXRhaWxzElUKFnBvbGljeV9maW5kaW5nX2RldGFpbHMY", - "AyABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlBvbGlj", - "eUZpbmRpbmdEZXRhaWxzEk8KE3F1b3RhX2Vycm9yX2RldGFpbHMYBCABKAsy", - "Mi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlF1b3RhRXJyb3JE", - "ZXRhaWxzElUKFnJlc291cmNlX2NvdW50X2RldGFpbHMYBSABKAsyNS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlJlc291cmNlQ291bnREZXRh", - "aWxzIrQBChZQb2xpY3lWaW9sYXRpb25EZXRhaWxzEiMKG2V4dGVybmFsX3Bv", - "bGljeV9kZXNjcmlwdGlvbhgCIAEoCRJACgNrZXkYBCABKAsyMy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlBvbGljeVZpb2xhdGlvbktleRIc", - "ChRleHRlcm5hbF9wb2xpY3lfbmFtZRgFIAEoCRIVCg1pc19leGVtcHRpYmxl", - "GAYgASgIImcKFFBvbGljeUZpbmRpbmdEZXRhaWxzEk8KFHBvbGljeV90b3Bp", - "Y19lbnRyaWVzGAEgAygLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNv", - "bW1vbi5Qb2xpY3lUb3BpY0VudHJ5IvkBChFRdW90YUVycm9yRGV0YWlscxJV", - "CgpyYXRlX3Njb3BlGAEgASgOMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LmVycm9ycy5RdW90YUVycm9yRGV0YWlscy5RdW90YVJhdGVTY29wZRIRCgly", - "YXRlX25hbWUYAiABKAkSLgoLcmV0cnlfZGVsYXkYAyABKAsyGS5nb29nbGUu", - "cHJvdG9idWYuRHVyYXRpb24iSgoOUXVvdGFSYXRlU2NvcGUSDwoLVU5TUEVD", - "SUZJRUQQABILCgdVTktOT1dOEAESCwoHQUNDT1VOVBACEg0KCURFVkVMT1BF", - "UhADIswBChRSZXNvdXJjZUNvdW50RGV0YWlscxIUCgxlbmNsb3NpbmdfaWQY", - "ASABKAkSGgoSZW5jbG9zaW5nX3Jlc291cmNlGAUgASgJEg0KBWxpbWl0GAIg", - "ASgFElsKCmxpbWl0X3R5cGUYAyABKA4yRy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuZW51bXMuUmVzb3VyY2VMaW1pdFR5cGVFbnVtLlJlc291cmNlTGlt", - "aXRUeXBlEhYKDmV4aXN0aW5nX2NvdW50GAQgASgFQusBCiNjb20uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LmVycm9yc0ILRXJyb3JzUHJvdG9QAVpFZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxNC9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjE0LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxF", - "cnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkVycm9yc2IG", - "cHJvdG8z")); + "b3VyY2VfY291bnRfbGltaXRfZXhjZWVkZWRfZXJyb3IucHJvdG8aP2dvb2ds", + "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvc2VhcmNoX3Rlcm1faW5zaWdo", + "dF9lcnJvci5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9y", + "cy9zZXR0aW5nX2Vycm9yLnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92", + "MTQvZXJyb3JzL3NoYXJlZF9jcml0ZXJpb25fZXJyb3IucHJvdG8aNmdvb2ds", + "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvc2hhcmVkX3NldF9lcnJvci5w", + "cm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9ycy9zaXplX2xp", + "bWl0X2Vycm9yLnByb3RvGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJy", + "b3JzL3NtYXJ0X2NhbXBhaWduX2Vycm9yLnByb3RvGjlnb29nbGUvYWRzL2dv", + "b2dsZWFkcy92MTQvZXJyb3JzL3N0cmluZ19mb3JtYXRfZXJyb3IucHJvdG8a", + "OWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvc3RyaW5nX2xlbmd0", + "aF9lcnJvci5wcm90bxpKZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9y", + "cy90aGlyZF9wYXJ0eV9hcHBfYW5hbHl0aWNzX2xpbmtfZXJyb3IucHJvdG8a", + "NWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lcnJvcnMvdGltZV96b25lX2Vy", + "cm9yLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL3Vy", + "bF9maWVsZF9lcnJvci5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", + "L2Vycm9ycy91c2VyX2RhdGFfZXJyb3IucHJvdG8aNWdvb2dsZS9hZHMvZ29v", + "Z2xlYWRzL3YxNC9lcnJvcnMvdXNlcl9saXN0X2Vycm9yLnByb3RvGkZnb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL3lvdXR1YmVfdmlkZW9fcmVn", + "aXN0cmF0aW9uX2Vycm9yLnByb3RvGh5nb29nbGUvcHJvdG9idWYvZHVyYXRp", + "b24ucHJvdG8iZwoQR29vZ2xlQWRzRmFpbHVyZRI/CgZlcnJvcnMYASADKAsy", + "Ly5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkdvb2dsZUFkc0Vy", + "cm9yEhIKCnJlcXVlc3RfaWQYAiABKAkinAIKDkdvb2dsZUFkc0Vycm9yEj4K", + "CmVycm9yX2NvZGUYASABKAsyKi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "ZXJyb3JzLkVycm9yQ29kZRIPCgdtZXNzYWdlGAIgASgJEjcKB3RyaWdnZXIY", + "AyABKAsyJi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlZhbHVl", + "EkAKCGxvY2F0aW9uGAQgASgLMi4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmVycm9ycy5FcnJvckxvY2F0aW9uEj4KB2RldGFpbHMYBSABKAsyLS5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkVycm9yRGV0YWlscyKaewoJ", + "RXJyb3JDb2RlElcKDXJlcXVlc3RfZXJyb3IYASABKA4yPi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLlJlcXVlc3RFcnJvckVudW0uUmVxdWVz", + "dEVycm9ySAAScAoWYmlkZGluZ19zdHJhdGVneV9lcnJvchgCIAEoDjJOLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQmlkZGluZ1N0cmF0ZWd5", + "RXJyb3JFbnVtLkJpZGRpbmdTdHJhdGVneUVycm9ySAASWwoPdXJsX2ZpZWxk", + "X2Vycm9yGAMgASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", + "cy5VcmxGaWVsZEVycm9yRW51bS5VcmxGaWVsZEVycm9ySAASagoUbGlzdF9v", + "cGVyYXRpb25fZXJyb3IYBCABKA4ySi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuZXJyb3JzLkxpc3RPcGVyYXRpb25FcnJvckVudW0uTGlzdE9wZXJhdGlv", + "bkVycm9ySAASUQoLcXVlcnlfZXJyb3IYBSABKA4yOi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuZXJyb3JzLlF1ZXJ5RXJyb3JFbnVtLlF1ZXJ5RXJyb3JI", + "ABJUCgxtdXRhdGVfZXJyb3IYByABKA4yPC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZXJyb3JzLk11dGF0ZUVycm9yRW51bS5NdXRhdGVFcnJvckgAEl4K", + "EGZpZWxkX21hc2tfZXJyb3IYCCABKA4yQi5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZXJyb3JzLkZpZWxkTWFza0Vycm9yRW51bS5GaWVsZE1hc2tFcnJv", + "ckgAEmkKE2F1dGhvcml6YXRpb25fZXJyb3IYCSABKA4ySi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkF1dGhvcml6YXRpb25FcnJvckVudW0u", + "QXV0aG9yaXphdGlvbkVycm9ySAASWgoOaW50ZXJuYWxfZXJyb3IYCiABKA4y", + "QC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkludGVybmFsRXJy", + "b3JFbnVtLkludGVybmFsRXJyb3JIABJRCgtxdW90YV9lcnJvchgLIAEoDjI6", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuUXVvdGFFcnJvckVu", + "dW0uUXVvdGFFcnJvckgAEkgKCGFkX2Vycm9yGAwgASgOMjQuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LmVycm9ycy5BZEVycm9yRW51bS5BZEVycm9ySAAS", + "WAoOYWRfZ3JvdXBfZXJyb3IYDSABKA4yPi5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZXJyb3JzLkFkR3JvdXBFcnJvckVudW0uQWRHcm91cEVycm9ySAAS", + "bQoVY2FtcGFpZ25fYnVkZ2V0X2Vycm9yGA4gASgOMkwuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmVycm9ycy5DYW1wYWlnbkJ1ZGdldEVycm9yRW51bS5D", + "YW1wYWlnbkJ1ZGdldEVycm9ySAASWgoOY2FtcGFpZ25fZXJyb3IYDyABKA4y", + "QC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkNhbXBhaWduRXJy", + "b3JFbnVtLkNhbXBhaWduRXJyb3JIABJsChRhdXRoZW50aWNhdGlvbl9lcnJv", + "chgRIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQXV0", + "aGVudGljYXRpb25FcnJvckVudW0uQXV0aGVudGljYXRpb25FcnJvckgAEpQB", + "CiNhZF9ncm91cF9jcml0ZXJpb25fY3VzdG9taXplcl9lcnJvchihASABKA4y", + "ZC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFkR3JvdXBDcml0", + "ZXJpb25DdXN0b21pemVyRXJyb3JFbnVtLkFkR3JvdXBDcml0ZXJpb25DdXN0", + "b21pemVyRXJyb3JIABJ0ChhhZF9ncm91cF9jcml0ZXJpb25fZXJyb3IYEiAB", + "KA4yUC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFkR3JvdXBD", + "cml0ZXJpb25FcnJvckVudW0uQWRHcm91cENyaXRlcmlvbkVycm9ySAASeAoZ", + "YWRfZ3JvdXBfY3VzdG9taXplcl9lcnJvchifASABKA4yUi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkFkR3JvdXBDdXN0b21pemVyRXJyb3JF", + "bnVtLkFkR3JvdXBDdXN0b21pemVyRXJyb3JIABJnChNhZF9jdXN0b21pemVy", + "X2Vycm9yGBMgASgOMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", + "cy5BZEN1c3RvbWl6ZXJFcnJvckVudW0uQWRDdXN0b21pemVyRXJyb3JIABJf", + "ChFhZF9ncm91cF9hZF9lcnJvchgVIAEoDjJCLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5lcnJvcnMuQWRHcm91cEFkRXJyb3JFbnVtLkFkR3JvdXBBZEVy", + "cm9ySAASXgoQYWRfc2hhcmluZ19lcnJvchgYIAEoDjJCLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5lcnJvcnMuQWRTaGFyaW5nRXJyb3JFbnVtLkFkU2hh", + "cmluZ0Vycm9ySAASSwoJYWR4X2Vycm9yGBkgASgOMjYuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmVycm9ycy5BZHhFcnJvckVudW0uQWR4RXJyb3JIABJR", + "Cgthc3NldF9lcnJvchhrIAEoDjI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5lcnJvcnMuQXNzZXRFcnJvckVudW0uQXNzZXRFcnJvckgAEnIKF2Fzc2V0", + "X2dyb3VwX2Fzc2V0X2Vycm9yGJUBIAEoDjJOLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5lcnJvcnMuQXNzZXRHcm91cEFzc2V0RXJyb3JFbnVtLkFzc2V0", + "R3JvdXBBc3NldEVycm9ySAASmwEKJmFzc2V0X2dyb3VwX2xpc3RpbmdfZ3Jv", + "dXBfZmlsdGVyX2Vycm9yGJsBIAEoDjJoLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5lcnJvcnMuQXNzZXRHcm91cExpc3RpbmdHcm91cEZpbHRlckVycm9y", + "RW51bS5Bc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyRXJyb3JIABJiChFh", + "c3NldF9ncm91cF9lcnJvchiUASABKA4yRC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZXJyb3JzLkFzc2V0R3JvdXBFcnJvckVudW0uQXNzZXRHcm91cEVy", + "cm9ySAASbAoVYXNzZXRfc2V0X2Fzc2V0X2Vycm9yGJkBIAEoDjJKLmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQXNzZXRTZXRBc3NldEVycm9y", + "RW51bS5Bc3NldFNldEFzc2V0RXJyb3JIABJpChRhc3NldF9zZXRfbGlua19l", + "cnJvchiaASABKA4ySC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3Jz", + "LkFzc2V0U2V0TGlua0Vycm9yRW51bS5Bc3NldFNldExpbmtFcnJvckgAElwK", + "D2Fzc2V0X3NldF9lcnJvchiYASABKA4yQC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZXJyb3JzLkFzc2V0U2V0RXJyb3JFbnVtLkFzc2V0U2V0RXJyb3JI", + "ABJXCg1iaWRkaW5nX2Vycm9yGBogASgOMj4uZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVycm9ycy5CaWRkaW5nRXJyb3JFbnVtLkJpZGRpbmdFcnJvckgA", + "EnYKGGNhbXBhaWduX2NyaXRlcmlvbl9lcnJvchgdIAEoDjJSLmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ2FtcGFpZ25Dcml0ZXJpb25FcnJv", + "ckVudW0uQ2FtcGFpZ25Dcml0ZXJpb25FcnJvckgAEocBCh5jYW1wYWlnbl9j", + "b252ZXJzaW9uX2dvYWxfZXJyb3IYpgEgASgOMlwuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmVycm9ycy5DYW1wYWlnbkNvbnZlcnNpb25Hb2FsRXJyb3JF", + "bnVtLkNhbXBhaWduQ29udmVyc2lvbkdvYWxFcnJvckgAEnoKGWNhbXBhaWdu", + "X2N1c3RvbWl6ZXJfZXJyb3IYoAEgASgOMlQuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVycm9ycy5DYW1wYWlnbkN1c3RvbWl6ZXJFcnJvckVudW0uQ2Ft", + "cGFpZ25DdXN0b21pemVyRXJyb3JIABJtChVjb2xsZWN0aW9uX3NpemVfZXJy", + "b3IYHyABKA4yTC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkNv", + "bGxlY3Rpb25TaXplRXJyb3JFbnVtLkNvbGxlY3Rpb25TaXplRXJyb3JIABKa", + "AQolY29udmVyc2lvbl9nb2FsX2NhbXBhaWduX2NvbmZpZ19lcnJvchilASAB", + "KA4yaC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkNvbnZlcnNp", + "b25Hb2FsQ2FtcGFpZ25Db25maWdFcnJvckVudW0uQ29udmVyc2lvbkdvYWxD", + "YW1wYWlnbkNvbmZpZ0Vycm9ySAASZAoSY291bnRyeV9jb2RlX2Vycm9yGG0g", + "ASgOMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Db3VudHJ5", + "Q29kZUVycm9yRW51bS5Db3VudHJ5Q29kZUVycm9ySAASXQoPY3JpdGVyaW9u", + "X2Vycm9yGCAgASgOMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", + "cy5Dcml0ZXJpb25FcnJvckVudW0uQ3JpdGVyaW9uRXJyb3JIABKBAQocY3Vz", + "dG9tX2NvbnZlcnNpb25fZ29hbF9lcnJvchiWASABKA4yWC5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkN1c3RvbUNvbnZlcnNpb25Hb2FsRXJy", + "b3JFbnVtLkN1c3RvbUNvbnZlcnNpb25Hb2FsRXJyb3JIABJ6ChljdXN0b21l", + "cl9jdXN0b21pemVyX2Vycm9yGJ4BIAEoDjJULmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5lcnJvcnMuQ3VzdG9tZXJDdXN0b21pemVyRXJyb3JFbnVtLkN1", + "c3RvbWVyQ3VzdG9taXplckVycm9ySAASWgoOY3VzdG9tZXJfZXJyb3IYWiAB", + "KA4yQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkN1c3RvbWVy", + "RXJyb3JFbnVtLkN1c3RvbWVyRXJyb3JIABJ9ChpjdXN0b21pemVyX2F0dHJp", + "YnV0ZV9lcnJvchiXASABKA4yVi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "ZXJyb3JzLkN1c3RvbWl6ZXJBdHRyaWJ1dGVFcnJvckVudW0uQ3VzdG9taXpl", + "ckF0dHJpYnV0ZUVycm9ySAASTgoKZGF0ZV9lcnJvchghIAEoDjI4Lmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRGF0ZUVycm9yRW51bS5EYXRl", + "RXJyb3JIABJeChBkYXRlX3JhbmdlX2Vycm9yGCIgASgOMkIuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LmVycm9ycy5EYXRlUmFuZ2VFcnJvckVudW0uRGF0", + "ZVJhbmdlRXJyb3JIABJaCg5kaXN0aW5jdF9lcnJvchgjIAEoDjJALmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRGlzdGluY3RFcnJvckVudW0u", + "RGlzdGluY3RFcnJvckgAEoYBCh5mZWVkX2F0dHJpYnV0ZV9yZWZlcmVuY2Vf", + "ZXJyb3IYJCABKA4yXC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3Jz", + "LkZlZWRBdHRyaWJ1dGVSZWZlcmVuY2VFcnJvckVudW0uRmVlZEF0dHJpYnV0", + "ZVJlZmVyZW5jZUVycm9ySAASWgoOZnVuY3Rpb25fZXJyb3IYJSABKA4yQC5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkZ1bmN0aW9uRXJyb3JF", + "bnVtLkZ1bmN0aW9uRXJyb3JIABJwChZmdW5jdGlvbl9wYXJzaW5nX2Vycm9y", + "GCYgASgOMk4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5GdW5j", + "dGlvblBhcnNpbmdFcnJvckVudW0uRnVuY3Rpb25QYXJzaW5nRXJyb3JIABJI", + "CghpZF9lcnJvchgnIAEoDjI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", + "cnJvcnMuSWRFcnJvckVudW0uSWRFcnJvckgAElEKC2ltYWdlX2Vycm9yGCgg", + "ASgOMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5JbWFnZUVy", + "cm9yRW51bS5JbWFnZUVycm9ySAASZwoTbGFuZ3VhZ2VfY29kZV9lcnJvchhu", + "IAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuTGFuZ3Vh", + "Z2VDb2RlRXJyb3JFbnVtLkxhbmd1YWdlQ29kZUVycm9ySAASZAoSbWVkaWFf", + "YnVuZGxlX2Vycm9yGCogASgOMkYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmVycm9ycy5NZWRpYUJ1bmRsZUVycm9yRW51bS5NZWRpYUJ1bmRsZUVycm9y", + "SAASZAoSbWVkaWFfdXBsb2FkX2Vycm9yGHQgASgOMkYuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmVycm9ycy5NZWRpYVVwbG9hZEVycm9yRW51bS5NZWRp", + "YVVwbG9hZEVycm9ySAASXgoQbWVkaWFfZmlsZV9lcnJvchhWIAEoDjJCLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuTWVkaWFGaWxlRXJyb3JF", + "bnVtLk1lZGlhRmlsZUVycm9ySAASbgoVbWVyY2hhbnRfY2VudGVyX2Vycm9y", + "GKIBIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuTWVy", + "Y2hhbnRDZW50ZXJFcnJvckVudW0uTWVyY2hhbnRDZW50ZXJFcnJvckgAEmAK", + "EG11bHRpcGxpZXJfZXJyb3IYLCABKA4yRC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZXJyb3JzLk11bHRpcGxpZXJFcnJvckVudW0uTXVsdGlwbGllckVy", + "cm9ySAASfQobbmV3X3Jlc291cmNlX2NyZWF0aW9uX2Vycm9yGC0gASgOMlYu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5OZXdSZXNvdXJjZUNy", + "ZWF0aW9uRXJyb3JFbnVtLk5ld1Jlc291cmNlQ3JlYXRpb25FcnJvckgAElsK", + "D25vdF9lbXB0eV9lcnJvchguIAEoDjJALmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5lcnJvcnMuTm90RW1wdHlFcnJvckVudW0uTm90RW1wdHlFcnJvckgA", + "Ek4KCm51bGxfZXJyb3IYLyABKA4yOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuZXJyb3JzLk51bGxFcnJvckVudW0uTnVsbEVycm9ySAASWgoOb3BlcmF0", + "b3JfZXJyb3IYMCABKA4yQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJy", + "b3JzLk9wZXJhdG9yRXJyb3JFbnVtLk9wZXJhdG9yRXJyb3JIABJRCgtyYW5n", + "ZV9lcnJvchgxIAEoDjI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", + "cnMuUmFuZ2VFcnJvckVudW0uUmFuZ2VFcnJvckgAEmwKFHJlY29tbWVuZGF0", + "aW9uX2Vycm9yGDogASgOMkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVy", + "cm9ycy5SZWNvbW1lbmRhdGlvbkVycm9yRW51bS5SZWNvbW1lbmRhdGlvbkVy", + "cm9ySAASYQoRcmVnaW9uX2NvZGVfZXJyb3IYMyABKA4yRC5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLlJlZ2lvbkNvZGVFcnJvckVudW0uUmVn", + "aW9uQ29kZUVycm9ySAASVwoNc2V0dGluZ19lcnJvchg0IAEoDjI+Lmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuU2V0dGluZ0Vycm9yRW51bS5T", + "ZXR0aW5nRXJyb3JIABJnChNzdHJpbmdfZm9ybWF0X2Vycm9yGDUgASgOMkgu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5TdHJpbmdGb3JtYXRF", + "cnJvckVudW0uU3RyaW5nRm9ybWF0RXJyb3JIABJnChNzdHJpbmdfbGVuZ3Ro", + "X2Vycm9yGDYgASgOMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", + "cy5TdHJpbmdMZW5ndGhFcnJvckVudW0uU3RyaW5nTGVuZ3RoRXJyb3JIABKD", + "AQodb3BlcmF0aW9uX2FjY2Vzc19kZW5pZWRfZXJyb3IYNyABKA4yWi5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLk9wZXJhdGlvbkFjY2Vzc0Rl", + "bmllZEVycm9yRW51bS5PcGVyYXRpb25BY2Nlc3NEZW5pZWRFcnJvckgAEoAB", + "ChxyZXNvdXJjZV9hY2Nlc3NfZGVuaWVkX2Vycm9yGDggASgOMlguZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5SZXNvdXJjZUFjY2Vzc0Rlbmll", + "ZEVycm9yRW51bS5SZXNvdXJjZUFjY2Vzc0RlbmllZEVycm9ySAASkwEKI3Jl", + "c291cmNlX2NvdW50X2xpbWl0X2V4Y2VlZGVkX2Vycm9yGDkgASgOMmQuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5SZXNvdXJjZUNvdW50TGlt", + "aXRFeGNlZWRlZEVycm9yRW51bS5SZXNvdXJjZUNvdW50TGltaXRFeGNlZWRl", + "ZEVycm9ySAASjAEKIHlvdXR1YmVfdmlkZW9fcmVnaXN0cmF0aW9uX2Vycm9y", + "GHUgASgOMmAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Zb3V0", + "dWJlVmlkZW9SZWdpc3RyYXRpb25FcnJvckVudW0uWW91dHViZVZpZGVvUmVn", + "aXN0cmF0aW9uRXJyb3JIABJ7ChthZF9ncm91cF9iaWRfbW9kaWZpZXJfZXJy", + "b3IYOyABKA4yVC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFk", + "R3JvdXBCaWRNb2RpZmllckVycm9yRW51bS5BZEdyb3VwQmlkTW9kaWZpZXJF", + "cnJvckgAElcKDWNvbnRleHRfZXJyb3IYPCABKA4yPi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuZXJyb3JzLkNvbnRleHRFcnJvckVudW0uQ29udGV4dEVy", + "cm9ySAASUQoLZmllbGRfZXJyb3IYPSABKA4yOi5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZXJyb3JzLkZpZWxkRXJyb3JFbnVtLkZpZWxkRXJyb3JIABJe", + "ChBzaGFyZWRfc2V0X2Vycm9yGD4gASgOMkIuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVycm9ycy5TaGFyZWRTZXRFcnJvckVudW0uU2hhcmVkU2V0RXJy", + "b3JIABJwChZzaGFyZWRfY3JpdGVyaW9uX2Vycm9yGD8gASgOMk4uZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5TaGFyZWRDcml0ZXJpb25FcnJv", + "ckVudW0uU2hhcmVkQ3JpdGVyaW9uRXJyb3JIABJ3ChljYW1wYWlnbl9zaGFy", + "ZWRfc2V0X2Vycm9yGEAgASgOMlIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmVycm9ycy5DYW1wYWlnblNoYXJlZFNldEVycm9yRW51bS5DYW1wYWlnblNo", + "YXJlZFNldEVycm9ySAAScwoXY29udmVyc2lvbl9hY3Rpb25fZXJyb3IYQSAB", + "KA4yUC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkNvbnZlcnNp", + "b25BY3Rpb25FcnJvckVudW0uQ29udmVyc2lvbkFjdGlvbkVycm9ySAASkgEK", + "ImNvbnZlcnNpb25fYWRqdXN0bWVudF91cGxvYWRfZXJyb3IYcyABKA4yZC5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkNvbnZlcnNpb25BZGp1", + "c3RtZW50VXBsb2FkRXJyb3JFbnVtLkNvbnZlcnNpb25BZGp1c3RtZW50VXBs", + "b2FkRXJyb3JIABKNAQogY29udmVyc2lvbl9jdXN0b21fdmFyaWFibGVfZXJy", + "b3IYjwEgASgOMmAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5D", + "b252ZXJzaW9uQ3VzdG9tVmFyaWFibGVFcnJvckVudW0uQ29udmVyc2lvbkN1", + "c3RvbVZhcmlhYmxlRXJyb3JIABJzChdjb252ZXJzaW9uX3VwbG9hZF9lcnJv", + "chhvIAEoDjJQLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ29u", + "dmVyc2lvblVwbG9hZEVycm9yRW51bS5Db252ZXJzaW9uVXBsb2FkRXJyb3JI", + "ABJ+Chtjb252ZXJzaW9uX3ZhbHVlX3J1bGVfZXJyb3IYkQEgASgOMlYuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Db252ZXJzaW9uVmFsdWVS", + "dWxlRXJyb3JFbnVtLkNvbnZlcnNpb25WYWx1ZVJ1bGVFcnJvckgAEogBCh9j", + "b252ZXJzaW9uX3ZhbHVlX3J1bGVfc2V0X2Vycm9yGJIBIAEoDjJcLmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ29udmVyc2lvblZhbHVlUnVs", + "ZVNldEVycm9yRW51bS5Db252ZXJzaW9uVmFsdWVSdWxlU2V0RXJyb3JIABJU", + "CgxoZWFkZXJfZXJyb3IYQiABKA4yPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuZXJyb3JzLkhlYWRlckVycm9yRW51bS5IZWFkZXJFcnJvckgAEloKDmRh", + "dGFiYXNlX2Vycm9yGEMgASgOMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmVycm9ycy5EYXRhYmFzZUVycm9yRW51bS5EYXRhYmFzZUVycm9ySAASagoU", + "cG9saWN5X2ZpbmRpbmdfZXJyb3IYRCABKA4ySi5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZXJyb3JzLlBvbGljeUZpbmRpbmdFcnJvckVudW0uUG9saWN5", + "RmluZGluZ0Vycm9ySAASTgoKZW51bV9lcnJvchhGIAEoDjI4Lmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuRW51bUVycm9yRW51bS5FbnVtRXJy", + "b3JIABJkChJrZXl3b3JkX3BsYW5fZXJyb3IYRyABKA4yRi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLktleXdvcmRQbGFuRXJyb3JFbnVtLktl", + "eXdvcmRQbGFuRXJyb3JIABJ9ChtrZXl3b3JkX3BsYW5fY2FtcGFpZ25fZXJy", + "b3IYSCABKA4yVi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLktl", + "eXdvcmRQbGFuQ2FtcGFpZ25FcnJvckVudW0uS2V5d29yZFBsYW5DYW1wYWln", + "bkVycm9ySAASlAEKI2tleXdvcmRfcGxhbl9jYW1wYWlnbl9rZXl3b3JkX2Vy", + "cm9yGIQBIAEoDjJkLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMu", + "S2V5d29yZFBsYW5DYW1wYWlnbktleXdvcmRFcnJvckVudW0uS2V5d29yZFBs", + "YW5DYW1wYWlnbktleXdvcmRFcnJvckgAEnsKG2tleXdvcmRfcGxhbl9hZF9n", + "cm91cF9lcnJvchhKIAEoDjJULmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", + "cnJvcnMuS2V5d29yZFBsYW5BZEdyb3VwRXJyb3JFbnVtLktleXdvcmRQbGFu", + "QWRHcm91cEVycm9ySAASkgEKI2tleXdvcmRfcGxhbl9hZF9ncm91cF9rZXl3", + "b3JkX2Vycm9yGIUBIAEoDjJiLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", + "cnJvcnMuS2V5d29yZFBsYW5BZEdyb3VwS2V5d29yZEVycm9yRW51bS5LZXl3", + "b3JkUGxhbkFkR3JvdXBLZXl3b3JkRXJyb3JIABJxChdrZXl3b3JkX3BsYW5f", + "aWRlYV9lcnJvchhMIAEoDjJOLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", + "cnJvcnMuS2V5d29yZFBsYW5JZGVhRXJyb3JFbnVtLktleXdvcmRQbGFuSWRl", + "YUVycm9ySAASgwEKHWFjY291bnRfYnVkZ2V0X3Byb3Bvc2FsX2Vycm9yGE0g", + "ASgOMlouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5BY2NvdW50", + "QnVkZ2V0UHJvcG9zYWxFcnJvckVudW0uQWNjb3VudEJ1ZGdldFByb3Bvc2Fs", + "RXJyb3JIABJbCg91c2VyX2xpc3RfZXJyb3IYTiABKA4yQC5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLlVzZXJMaXN0RXJyb3JFbnVtLlVzZXJM", + "aXN0RXJyb3JIABJlChJjaGFuZ2VfZXZlbnRfZXJyb3IYiAEgASgOMkYuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5DaGFuZ2VFdmVudEVycm9y", + "RW51bS5DaGFuZ2VFdmVudEVycm9ySAASZwoTY2hhbmdlX3N0YXR1c19lcnJv", + "chhPIAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ2hh", + "bmdlU3RhdHVzRXJyb3JFbnVtLkNoYW5nZVN0YXR1c0Vycm9ySAASTgoKZmVl", + "ZF9lcnJvchhQIAEoDjI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", + "cnMuRmVlZEVycm9yRW51bS5GZWVkRXJyb3JIABKWAQokZ2VvX3RhcmdldF9j", + "b25zdGFudF9zdWdnZXN0aW9uX2Vycm9yGFEgASgOMmYuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmVycm9ycy5HZW9UYXJnZXRDb25zdGFudFN1Z2dlc3Rp", + "b25FcnJvckVudW0uR2VvVGFyZ2V0Q29uc3RhbnRTdWdnZXN0aW9uRXJyb3JI", + "ABJqChRjYW1wYWlnbl9kcmFmdF9lcnJvchhSIAEoDjJKLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5lcnJvcnMuQ2FtcGFpZ25EcmFmdEVycm9yRW51bS5D", + "YW1wYWlnbkRyYWZ0RXJyb3JIABJbCg9mZWVkX2l0ZW1fZXJyb3IYUyABKA4y", + "QC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkZlZWRJdGVtRXJy", + "b3JFbnVtLkZlZWRJdGVtRXJyb3JIABJRCgtsYWJlbF9lcnJvchhUIAEoDjI6", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuTGFiZWxFcnJvckVu", + "dW0uTGFiZWxFcnJvckgAEmcKE2JpbGxpbmdfc2V0dXBfZXJyb3IYVyABKA4y", + "SC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkJpbGxpbmdTZXR1", + "cEVycm9yRW51bS5CaWxsaW5nU2V0dXBFcnJvckgAEnoKGmN1c3RvbWVyX2Ns", + "aWVudF9saW5rX2Vycm9yGFggASgOMlQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LmVycm9ycy5DdXN0b21lckNsaWVudExpbmtFcnJvckVudW0uQ3VzdG9t", + "ZXJDbGllbnRMaW5rRXJyb3JIABJ9ChtjdXN0b21lcl9tYW5hZ2VyX2xpbmtf", + "ZXJyb3IYWyABKA4yVi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3Jz", + "LkN1c3RvbWVyTWFuYWdlckxpbmtFcnJvckVudW0uQ3VzdG9tZXJNYW5hZ2Vy", + "TGlua0Vycm9ySAASZAoSZmVlZF9tYXBwaW5nX2Vycm9yGFwgASgOMkYuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5GZWVkTWFwcGluZ0Vycm9y", + "RW51bS5GZWVkTWFwcGluZ0Vycm9ySAASZwoTY3VzdG9tZXJfZmVlZF9lcnJv", + "chhdIAEoDjJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ3Vz", + "dG9tZXJGZWVkRXJyb3JFbnVtLkN1c3RvbWVyRmVlZEVycm9ySAASZQoTYWRf", + "Z3JvdXBfZmVlZF9lcnJvchheIAEoDjJGLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5lcnJvcnMuQWRHcm91cEZlZWRFcnJvckVudW0uQWRHcm91cEZlZWRF", + "cnJvckgAEmcKE2NhbXBhaWduX2ZlZWRfZXJyb3IYYCABKA4ySC5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkNhbXBhaWduRmVlZEVycm9yRW51", + "bS5DYW1wYWlnbkZlZWRFcnJvckgAEm0KFWN1c3RvbV9pbnRlcmVzdF9lcnJv", + "chhhIAEoDjJMLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ3Vz", + "dG9tSW50ZXJlc3RFcnJvckVudW0uQ3VzdG9tSW50ZXJlc3RFcnJvckgAEnkK", + "GWNhbXBhaWduX2V4cGVyaW1lbnRfZXJyb3IYYiABKA4yVC5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZXJyb3JzLkNhbXBhaWduRXhwZXJpbWVudEVycm9y", + "RW51bS5DYW1wYWlnbkV4cGVyaW1lbnRFcnJvckgAEncKGWV4dGVuc2lvbl9m", + "ZWVkX2l0ZW1fZXJyb3IYZCABKA4yUi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuZXJyb3JzLkV4dGVuc2lvbkZlZWRJdGVtRXJyb3JFbnVtLkV4dGVuc2lv", + "bkZlZWRJdGVtRXJyb3JIABJkChJhZF9wYXJhbWV0ZXJfZXJyb3IYZSABKA4y", + "Ri5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFkUGFyYW1ldGVy", + "RXJyb3JFbnVtLkFkUGFyYW1ldGVyRXJyb3JIABJ6ChpmZWVkX2l0ZW1fdmFs", + "aWRhdGlvbl9lcnJvchhmIAEoDjJULmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5lcnJvcnMuRmVlZEl0ZW1WYWxpZGF0aW9uRXJyb3JFbnVtLkZlZWRJdGVt", + "VmFsaWRhdGlvbkVycm9ySAAScwoXZXh0ZW5zaW9uX3NldHRpbmdfZXJyb3IY", + "ZyABKA4yUC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkV4dGVu", + "c2lvblNldHRpbmdFcnJvckVudW0uRXh0ZW5zaW9uU2V0dGluZ0Vycm9ySAAS", + "ZgoTZmVlZF9pdGVtX3NldF9lcnJvchiMASABKA4yRi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuZXJyb3JzLkZlZWRJdGVtU2V0RXJyb3JFbnVtLkZlZWRJ", + "dGVtU2V0RXJyb3JIABJzChhmZWVkX2l0ZW1fc2V0X2xpbmtfZXJyb3IYjQEg", + "ASgOMk4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5GZWVkSXRl", + "bVNldExpbmtFcnJvckVudW0uRmVlZEl0ZW1TZXRMaW5rRXJyb3JIABJuChZm", + "ZWVkX2l0ZW1fdGFyZ2V0X2Vycm9yGGggASgOMkwuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmVycm9ycy5GZWVkSXRlbVRhcmdldEVycm9yRW51bS5GZWVk", + "SXRlbVRhcmdldEVycm9ySAAScAoWcG9saWN5X3Zpb2xhdGlvbl9lcnJvchhp", + "IAEoDjJOLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuUG9saWN5", + "VmlvbGF0aW9uRXJyb3JFbnVtLlBvbGljeVZpb2xhdGlvbkVycm9ySAASbQoV", + "cGFydGlhbF9mYWlsdXJlX2Vycm9yGHAgASgOMkwuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmVycm9ycy5QYXJ0aWFsRmFpbHVyZUVycm9yRW51bS5QYXJ0", + "aWFsRmFpbHVyZUVycm9ySAASjwEKIXBvbGljeV92YWxpZGF0aW9uX3BhcmFt", + "ZXRlcl9lcnJvchhyIAEoDjJiLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", + "cnJvcnMuUG9saWN5VmFsaWRhdGlvblBhcmFtZXRlckVycm9yRW51bS5Qb2xp", + "Y3lWYWxpZGF0aW9uUGFyYW1ldGVyRXJyb3JIABJeChBzaXplX2xpbWl0X2Vy", + "cm9yGHYgASgOMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5T", + "aXplTGltaXRFcnJvckVudW0uU2l6ZUxpbWl0RXJyb3JIABJ7ChtvZmZsaW5l", + "X3VzZXJfZGF0YV9qb2JfZXJyb3IYdyABKA4yVC5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZXJyb3JzLk9mZmxpbmVVc2VyRGF0YUpvYkVycm9yRW51bS5P", + "ZmZsaW5lVXNlckRhdGFKb2JFcnJvckgAEm4KFW5vdF9hbGxvd2xpc3RlZF9l", + "cnJvchiJASABKA4yTC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3Jz", + "Lk5vdEFsbG93bGlzdGVkRXJyb3JFbnVtLk5vdEFsbG93bGlzdGVkRXJyb3JI", + "ABJkChJtYW5hZ2VyX2xpbmtfZXJyb3IYeSABKA4yRi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuZXJyb3JzLk1hbmFnZXJMaW5rRXJyb3JFbnVtLk1hbmFn", + "ZXJMaW5rRXJyb3JIABJnChNjdXJyZW5jeV9jb2RlX2Vycm9yGHogASgOMkgu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5DdXJyZW5jeUNvZGVF", + "cnJvckVudW0uQ3VycmVuY3lDb2RlRXJyb3JIABJgChBleHBlcmltZW50X2Vy", + "cm9yGHsgASgOMkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5F", + "eHBlcmltZW50RXJyb3JFbnVtLkV4cGVyaW1lbnRFcnJvckgAEnMKF2FjY2Vz", + "c19pbnZpdGF0aW9uX2Vycm9yGHwgASgOMlAuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVycm9ycy5BY2Nlc3NJbnZpdGF0aW9uRXJyb3JFbnVtLkFjY2Vz", + "c0ludml0YXRpb25FcnJvckgAEl4KEHJlYWNoX3BsYW5fZXJyb3IYfSABKA4y", + "Qi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLlJlYWNoUGxhbkVy", + "cm9yRW51bS5SZWFjaFBsYW5FcnJvckgAElcKDWludm9pY2VfZXJyb3IYfiAB", + "KA4yPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkludm9pY2VF", + "cnJvckVudW0uSW52b2ljZUVycm9ySAAScAoWcGF5bWVudHNfYWNjb3VudF9l", + "cnJvchh/IAEoDjJOLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMu", + "UGF5bWVudHNBY2NvdW50RXJyb3JFbnVtLlBheW1lbnRzQWNjb3VudEVycm9y", + "SAASXAoPdGltZV96b25lX2Vycm9yGIABIAEoDjJALmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5lcnJvcnMuVGltZVpvbmVFcnJvckVudW0uVGltZVpvbmVF", + "cnJvckgAEl8KEGFzc2V0X2xpbmtfZXJyb3IYgQEgASgOMkIuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LmVycm9ycy5Bc3NldExpbmtFcnJvckVudW0uQXNz", + "ZXRMaW5rRXJyb3JIABJcCg91c2VyX2RhdGFfZXJyb3IYggEgASgOMkAuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5Vc2VyRGF0YUVycm9yRW51", + "bS5Vc2VyRGF0YUVycm9ySAASXAoPYmF0Y2hfam9iX2Vycm9yGIMBIAEoDjJA", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQmF0Y2hKb2JFcnJv", + "ckVudW0uQmF0Y2hKb2JFcnJvckgAEmUKEmFjY291bnRfbGlua19lcnJvchiG", + "ASABKA4yRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkFjY291", + "bnRMaW5rRXJyb3JFbnVtLkFjY291bnRMaW5rRXJyb3JIABKVAQokdGhpcmRf", + "cGFydHlfYXBwX2FuYWx5dGljc19saW5rX2Vycm9yGIcBIAEoDjJkLmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuVGhpcmRQYXJ0eUFwcEFuYWx5", + "dGljc0xpbmtFcnJvckVudW0uVGhpcmRQYXJ0eUFwcEFuYWx5dGljc0xpbmtF", + "cnJvckgAEnsKGmN1c3RvbWVyX3VzZXJfYWNjZXNzX2Vycm9yGIoBIAEoDjJU", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ3VzdG9tZXJVc2Vy", + "QWNjZXNzRXJyb3JFbnVtLkN1c3RvbWVyVXNlckFjY2Vzc0Vycm9ySAASbgoV", + "Y3VzdG9tX2F1ZGllbmNlX2Vycm9yGIsBIAEoDjJMLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5lcnJvcnMuQ3VzdG9tQXVkaWVuY2VFcnJvckVudW0uQ3Vz", + "dG9tQXVkaWVuY2VFcnJvckgAElsKDmF1ZGllbmNlX2Vycm9yGKQBIAEoDjJA", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQXVkaWVuY2VFcnJv", + "ckVudW0uQXVkaWVuY2VFcnJvckgAEngKGXNlYXJjaF90ZXJtX2luc2lnaHRf", + "ZXJyb3IYrgEgASgOMlIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", + "cy5TZWFyY2hUZXJtSW5zaWdodEVycm9yRW51bS5TZWFyY2hUZXJtSW5zaWdo", + "dEVycm9ySAASawoUc21hcnRfY2FtcGFpZ25fZXJyb3IYkwEgASgOMkouZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5TbWFydENhbXBhaWduRXJy", + "b3JFbnVtLlNtYXJ0Q2FtcGFpZ25FcnJvckgAEmsKFGV4cGVyaW1lbnRfYXJt", + "X2Vycm9yGJwBIAEoDjJKLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", + "cnMuRXhwZXJpbWVudEFybUVycm9yRW51bS5FeHBlcmltZW50QXJtRXJyb3JI", + "ABJ0ChdhdWRpZW5jZV9pbnNpZ2h0c19lcnJvchinASABKA4yUC5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzLkF1ZGllbmNlSW5zaWdodHNFcnJv", + "ckVudW0uQXVkaWVuY2VJbnNpZ2h0c0Vycm9ySAASwgEKNGN1c3RvbWVyX3Nr", + "X2FkX25ldHdvcmtfY29udmVyc2lvbl92YWx1ZV9zY2hlbWFfZXJyb3IYqgEg", + "ASgOMoABLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMuQ3VzdG9t", + "ZXJTa0FkTmV0d29ya0NvbnZlcnNpb25WYWx1ZVNjaGVtYUVycm9yRW51bS5D", + "dXN0b21lclNrQWROZXR3b3JrQ29udmVyc2lvblZhbHVlU2NoZW1hRXJyb3JI", + "ABJbCg5jdXJyZW5jeV9lcnJvchirASABKA4yQC5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZXJyb3JzLkN1cnJlbmN5RXJyb3JFbnVtLkN1cnJlbmN5RXJy", + "b3JIAEIMCgplcnJvcl9jb2RlIrMBCg1FcnJvckxvY2F0aW9uElwKE2ZpZWxk", + "X3BhdGhfZWxlbWVudHMYAiADKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuZXJyb3JzLkVycm9yTG9jYXRpb24uRmllbGRQYXRoRWxlbWVudBpEChBG", + "aWVsZFBhdGhFbGVtZW50EhIKCmZpZWxkX25hbWUYASABKAkSEgoFaW5kZXgY", + "AyABKAVIAIgBAUIICgZfaW5kZXgiiAMKDEVycm9yRGV0YWlscxIeChZ1bnB1", + "Ymxpc2hlZF9lcnJvcl9jb2RlGAEgASgJElkKGHBvbGljeV92aW9sYXRpb25f", + "ZGV0YWlscxgCIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJv", + "cnMuUG9saWN5VmlvbGF0aW9uRGV0YWlscxJVChZwb2xpY3lfZmluZGluZ19k", + "ZXRhaWxzGAMgASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9y", + "cy5Qb2xpY3lGaW5kaW5nRGV0YWlscxJPChNxdW90YV9lcnJvcl9kZXRhaWxz", + "GAQgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5RdW90", + "YUVycm9yRGV0YWlscxJVChZyZXNvdXJjZV9jb3VudF9kZXRhaWxzGAUgASgL", + "MjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVycm9ycy5SZXNvdXJjZUNv", + "dW50RGV0YWlscyK0AQoWUG9saWN5VmlvbGF0aW9uRGV0YWlscxIjChtleHRl", + "cm5hbF9wb2xpY3lfZGVzY3JpcHRpb24YAiABKAkSQAoDa2V5GAQgASgLMjMu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5Qb2xpY3lWaW9sYXRp", + "b25LZXkSHAoUZXh0ZXJuYWxfcG9saWN5X25hbWUYBSABKAkSFQoNaXNfZXhl", + "bXB0aWJsZRgGIAEoCCJnChRQb2xpY3lGaW5kaW5nRGV0YWlscxJPChRwb2xp", + "Y3lfdG9waWNfZW50cmllcxgBIAMoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5jb21tb24uUG9saWN5VG9waWNFbnRyeSL5AQoRUXVvdGFFcnJvckRl", + "dGFpbHMSVQoKcmF0ZV9zY29wZRgBIAEoDjJBLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5lcnJvcnMuUXVvdGFFcnJvckRldGFpbHMuUXVvdGFSYXRlU2Nv", + "cGUSEQoJcmF0ZV9uYW1lGAIgASgJEi4KC3JldHJ5X2RlbGF5GAMgASgLMhku", + "Z29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uIkoKDlF1b3RhUmF0ZVNjb3BlEg8K", + "C1VOU1BFQ0lGSUVEEAASCwoHVU5LTk9XThABEgsKB0FDQ09VTlQQAhINCglE", + "RVZFTE9QRVIQAyLMAQoUUmVzb3VyY2VDb3VudERldGFpbHMSFAoMZW5jbG9z", + "aW5nX2lkGAEgASgJEhoKEmVuY2xvc2luZ19yZXNvdXJjZRgFIAEoCRINCgVs", + "aW1pdBgCIAEoBRJbCgpsaW1pdF90eXBlGAMgASgOMkcuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LmVudW1zLlJlc291cmNlTGltaXRUeXBlRW51bS5SZXNv", + "dXJjZUxpbWl0VHlwZRIWCg5leGlzdGluZ19jb3VudBgEIAEoBULrAQojY29t", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnNCC0Vycm9yc1Byb3Rv", + "UAFaRWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRz", + "L2dvb2dsZWFkcy92MTQvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5B", + "ZHMuR29vZ2xlQWRzLlYxNC5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFk", + "c1xWMTRcRXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpF", + "cnJvcnNiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.ValueReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ResourceLimitTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AccessInvitationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AccountBudgetProposalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AccountLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupAdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupBidModifierErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupCriterionCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdParameterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdSharingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdxErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetGroupAssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetGroupListingGroupFilterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetSetAssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetSetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AudienceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AudienceInsightsErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AuthenticationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AuthorizationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BatchJobErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BiddingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BiddingStrategyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BillingSetupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignBudgetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignConversionGoalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignDraftErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignExperimentErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignSharedSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ChangeEventErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ChangeStatusErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CollectionSizeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ContextErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionActionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionAdjustmentUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionCustomVariableErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionGoalCampaignConfigErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionValueRuleErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionValueRuleSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CountryCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CurrencyCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CurrencyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomAudienceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomConversionGoalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomInterestErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerClientLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerManagerLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerSkAdNetworkConversionValueSchemaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerUserAccessErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomizerAttributeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DatabaseErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DateRangeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DistinctErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.EnumErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExperimentArmErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExperimentErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExtensionFeedItemErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExtensionSettingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedAttributeReferenceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemSetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemTargetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemValidationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedMappingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FieldErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FieldMaskErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FunctionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FunctionParsingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.GeoTargetConstantSuggestionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.HeaderErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.IdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ImageErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.InternalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.InvoiceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanAdGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanAdGroupKeywordErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanCampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanCampaignKeywordErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanIdeaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.LabelErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.LanguageCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ListOperationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ManagerLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MediaBundleErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MediaFileErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MediaUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MerchantCenterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MultiplierErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MutateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NewResourceCreationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NotAllowlistedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NotEmptyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NullErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.OfflineUserDataJobErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.OperationAccessDeniedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.OperatorErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PartialFailureErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PaymentsAccountErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PolicyFindingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PolicyValidationParameterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PolicyViolationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.QueryErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.QuotaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RangeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ReachPlanErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RecommendationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RegionCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RequestErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ResourceAccessDeniedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ResourceCountLimitExceededErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SettingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SharedCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SharedSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SizeLimitErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SmartCampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.StringFormatErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.StringLengthErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ThirdPartyAppAnalyticsLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.TimeZoneErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.UrlFieldErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.UserDataErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.UserListErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.YoutubeVideoRegistrationErrorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.PolicyReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.ValueReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ResourceLimitTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AccessInvitationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AccountBudgetProposalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AccountLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupAdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupBidModifierErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupCriterionCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdGroupFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdParameterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdSharingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AdxErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetGroupAssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetGroupListingGroupFilterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetSetAssetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AssetSetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AudienceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AudienceInsightsErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AuthenticationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.AuthorizationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BatchJobErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BiddingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BiddingStrategyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.BillingSetupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignBudgetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignConversionGoalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignDraftErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignExperimentErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CampaignSharedSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ChangeEventErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ChangeStatusErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CollectionSizeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ContextErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionActionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionAdjustmentUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionCustomVariableErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionGoalCampaignConfigErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionValueRuleErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ConversionValueRuleSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CountryCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CurrencyCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CurrencyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomAudienceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomConversionGoalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomInterestErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerClientLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerCustomizerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerFeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerManagerLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerSkAdNetworkConversionValueSchemaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomerUserAccessErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.CustomizerAttributeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DatabaseErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DateRangeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.DistinctErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.EnumErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExperimentArmErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExperimentErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExtensionFeedItemErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ExtensionSettingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedAttributeReferenceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemSetLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemTargetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedItemValidationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FeedMappingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FieldErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FieldMaskErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FunctionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.FunctionParsingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.GeoTargetConstantSuggestionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.HeaderErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.IdErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ImageErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.InternalErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.InvoiceErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanAdGroupErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanAdGroupKeywordErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanCampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanCampaignKeywordErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.KeywordPlanIdeaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.LabelErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.LanguageCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ListOperationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ManagerLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MediaBundleErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MediaFileErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MediaUploadErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MerchantCenterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MultiplierErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.MutateErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NewResourceCreationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NotAllowlistedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NotEmptyErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.NullErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.OfflineUserDataJobErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.OperationAccessDeniedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.OperatorErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PartialFailureErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PaymentsAccountErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PolicyFindingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PolicyValidationParameterErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.PolicyViolationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.QueryErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.QuotaErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RangeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ReachPlanErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RecommendationErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RegionCodeErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.RequestErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ResourceAccessDeniedErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ResourceCountLimitExceededErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SettingErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SharedCriterionErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SharedSetErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SizeLimitErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.SmartCampaignErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.StringFormatErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.StringLengthErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.ThirdPartyAppAnalyticsLinkErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.TimeZoneErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.UrlFieldErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.UserDataErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.UserListErrorReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Errors.YoutubeVideoRegistrationErrorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.GoogleAdsFailure), global::Google.Ads.GoogleAds.V14.Errors.GoogleAdsFailure.Parser, new[]{ "Errors", "RequestId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.GoogleAdsError), global::Google.Ads.GoogleAds.V14.Errors.GoogleAdsError.Parser, new[]{ "ErrorCode", "Message", "Trigger", "Location", "Details" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.ErrorCode), global::Google.Ads.GoogleAds.V14.Errors.ErrorCode.Parser, new[]{ "RequestError", "BiddingStrategyError", "UrlFieldError", "ListOperationError", "QueryError", "MutateError", "FieldMaskError", "AuthorizationError", "InternalError", "QuotaError", "AdError", "AdGroupError", "CampaignBudgetError", "CampaignError", "AuthenticationError", "AdGroupCriterionCustomizerError", "AdGroupCriterionError", "AdGroupCustomizerError", "AdCustomizerError", "AdGroupAdError", "AdSharingError", "AdxError", "AssetError", "AssetGroupAssetError", "AssetGroupListingGroupFilterError", "AssetGroupError", "AssetSetAssetError", "AssetSetLinkError", "AssetSetError", "BiddingError", "CampaignCriterionError", "CampaignConversionGoalError", "CampaignCustomizerError", "CollectionSizeError", "ConversionGoalCampaignConfigError", "CountryCodeError", "CriterionError", "CustomConversionGoalError", "CustomerCustomizerError", "CustomerError", "CustomizerAttributeError", "DateError", "DateRangeError", "DistinctError", "FeedAttributeReferenceError", "FunctionError", "FunctionParsingError", "IdError", "ImageError", "LanguageCodeError", "MediaBundleError", "MediaUploadError", "MediaFileError", "MerchantCenterError", "MultiplierError", "NewResourceCreationError", "NotEmptyError", "NullError", "OperatorError", "RangeError", "RecommendationError", "RegionCodeError", "SettingError", "StringFormatError", "StringLengthError", "OperationAccessDeniedError", "ResourceAccessDeniedError", "ResourceCountLimitExceededError", "YoutubeVideoRegistrationError", "AdGroupBidModifierError", "ContextError", "FieldError", "SharedSetError", "SharedCriterionError", "CampaignSharedSetError", "ConversionActionError", "ConversionAdjustmentUploadError", "ConversionCustomVariableError", "ConversionUploadError", "ConversionValueRuleError", "ConversionValueRuleSetError", "HeaderError", "DatabaseError", "PolicyFindingError", "EnumError", "KeywordPlanError", "KeywordPlanCampaignError", "KeywordPlanCampaignKeywordError", "KeywordPlanAdGroupError", "KeywordPlanAdGroupKeywordError", "KeywordPlanIdeaError", "AccountBudgetProposalError", "UserListError", "ChangeEventError", "ChangeStatusError", "FeedError", "GeoTargetConstantSuggestionError", "CampaignDraftError", "FeedItemError", "LabelError", "BillingSetupError", "CustomerClientLinkError", "CustomerManagerLinkError", "FeedMappingError", "CustomerFeedError", "AdGroupFeedError", "CampaignFeedError", "CustomInterestError", "CampaignExperimentError", "ExtensionFeedItemError", "AdParameterError", "FeedItemValidationError", "ExtensionSettingError", "FeedItemSetError", "FeedItemSetLinkError", "FeedItemTargetError", "PolicyViolationError", "PartialFailureError", "PolicyValidationParameterError", "SizeLimitError", "OfflineUserDataJobError", "NotAllowlistedError", "ManagerLinkError", "CurrencyCodeError", "ExperimentError", "AccessInvitationError", "ReachPlanError", "InvoiceError", "PaymentsAccountError", "TimeZoneError", "AssetLinkError", "UserDataError", "BatchJobError", "AccountLinkError", "ThirdPartyAppAnalyticsLinkError", "CustomerUserAccessError", "CustomAudienceError", "AudienceError", "SmartCampaignError", "ExperimentArmError", "AudienceInsightsError", "CustomerSkAdNetworkConversionValueSchemaError", "CurrencyError" }, new[]{ "ErrorCode" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.ErrorCode), global::Google.Ads.GoogleAds.V14.Errors.ErrorCode.Parser, new[]{ "RequestError", "BiddingStrategyError", "UrlFieldError", "ListOperationError", "QueryError", "MutateError", "FieldMaskError", "AuthorizationError", "InternalError", "QuotaError", "AdError", "AdGroupError", "CampaignBudgetError", "CampaignError", "AuthenticationError", "AdGroupCriterionCustomizerError", "AdGroupCriterionError", "AdGroupCustomizerError", "AdCustomizerError", "AdGroupAdError", "AdSharingError", "AdxError", "AssetError", "AssetGroupAssetError", "AssetGroupListingGroupFilterError", "AssetGroupError", "AssetSetAssetError", "AssetSetLinkError", "AssetSetError", "BiddingError", "CampaignCriterionError", "CampaignConversionGoalError", "CampaignCustomizerError", "CollectionSizeError", "ConversionGoalCampaignConfigError", "CountryCodeError", "CriterionError", "CustomConversionGoalError", "CustomerCustomizerError", "CustomerError", "CustomizerAttributeError", "DateError", "DateRangeError", "DistinctError", "FeedAttributeReferenceError", "FunctionError", "FunctionParsingError", "IdError", "ImageError", "LanguageCodeError", "MediaBundleError", "MediaUploadError", "MediaFileError", "MerchantCenterError", "MultiplierError", "NewResourceCreationError", "NotEmptyError", "NullError", "OperatorError", "RangeError", "RecommendationError", "RegionCodeError", "SettingError", "StringFormatError", "StringLengthError", "OperationAccessDeniedError", "ResourceAccessDeniedError", "ResourceCountLimitExceededError", "YoutubeVideoRegistrationError", "AdGroupBidModifierError", "ContextError", "FieldError", "SharedSetError", "SharedCriterionError", "CampaignSharedSetError", "ConversionActionError", "ConversionAdjustmentUploadError", "ConversionCustomVariableError", "ConversionUploadError", "ConversionValueRuleError", "ConversionValueRuleSetError", "HeaderError", "DatabaseError", "PolicyFindingError", "EnumError", "KeywordPlanError", "KeywordPlanCampaignError", "KeywordPlanCampaignKeywordError", "KeywordPlanAdGroupError", "KeywordPlanAdGroupKeywordError", "KeywordPlanIdeaError", "AccountBudgetProposalError", "UserListError", "ChangeEventError", "ChangeStatusError", "FeedError", "GeoTargetConstantSuggestionError", "CampaignDraftError", "FeedItemError", "LabelError", "BillingSetupError", "CustomerClientLinkError", "CustomerManagerLinkError", "FeedMappingError", "CustomerFeedError", "AdGroupFeedError", "CampaignFeedError", "CustomInterestError", "CampaignExperimentError", "ExtensionFeedItemError", "AdParameterError", "FeedItemValidationError", "ExtensionSettingError", "FeedItemSetError", "FeedItemSetLinkError", "FeedItemTargetError", "PolicyViolationError", "PartialFailureError", "PolicyValidationParameterError", "SizeLimitError", "OfflineUserDataJobError", "NotAllowlistedError", "ManagerLinkError", "CurrencyCodeError", "ExperimentError", "AccessInvitationError", "ReachPlanError", "InvoiceError", "PaymentsAccountError", "TimeZoneError", "AssetLinkError", "UserDataError", "BatchJobError", "AccountLinkError", "ThirdPartyAppAnalyticsLinkError", "CustomerUserAccessError", "CustomAudienceError", "AudienceError", "SearchTermInsightError", "SmartCampaignError", "ExperimentArmError", "AudienceInsightsError", "CustomerSkAdNetworkConversionValueSchemaError", "CurrencyError" }, new[]{ "ErrorCode" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.ErrorLocation), global::Google.Ads.GoogleAds.V14.Errors.ErrorLocation.Parser, new[]{ "FieldPathElements" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.ErrorLocation.Types.FieldPathElement), global::Google.Ads.GoogleAds.V14.Errors.ErrorLocation.Types.FieldPathElement.Parser, new[]{ "FieldName", "Index" }, new[]{ "Index" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.ErrorDetails), global::Google.Ads.GoogleAds.V14.Errors.ErrorDetails.Parser, new[]{ "UnpublishedErrorCode", "PolicyViolationDetails", "PolicyFindingDetails", "QuotaErrorDetails", "ResourceCountDetails" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.PolicyViolationDetails), global::Google.Ads.GoogleAds.V14.Errors.PolicyViolationDetails.Parser, new[]{ "ExternalPolicyDescription", "Key", "ExternalPolicyName", "IsExemptible" }, null, null, null, null), @@ -1701,6 +1705,9 @@ public ErrorCode(ErrorCode other) : this() { case ErrorCodeOneofCase.AudienceError: AudienceError = other.AudienceError; break; + case ErrorCodeOneofCase.SearchTermInsightError: + SearchTermInsightError = other.SearchTermInsightError; + break; case ErrorCodeOneofCase.SmartCampaignError: SmartCampaignError = other.SmartCampaignError; break; @@ -5729,6 +5736,35 @@ public void ClearAudienceError() { } } + /// Field number for the "search_term_insight_error" field. + public const int SearchTermInsightErrorFieldNumber = 174; + /// + /// The reasons for the Search term insight error + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorEnum.Types.SearchTermInsightError SearchTermInsightError { + get { return HasSearchTermInsightError ? (global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorEnum.Types.SearchTermInsightError) errorCode_ : global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorEnum.Types.SearchTermInsightError.Unspecified; } + set { + errorCode_ = value; + errorCodeCase_ = ErrorCodeOneofCase.SearchTermInsightError; + } + } + /// Gets whether the "search_term_insight_error" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSearchTermInsightError { + get { return errorCodeCase_ == ErrorCodeOneofCase.SearchTermInsightError; } + } + /// Clears the value of the oneof if it's currently set to "search_term_insight_error" + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSearchTermInsightError() { + if (HasSearchTermInsightError) { + ClearErrorCode(); + } + } + /// Field number for the "smart_campaign_error" field. public const int SmartCampaignErrorFieldNumber = 147; /// @@ -6016,6 +6052,7 @@ public enum ErrorCodeOneofCase { CustomerUserAccessError = 138, CustomAudienceError = 139, AudienceError = 164, + SearchTermInsightError = 174, SmartCampaignError = 147, ExperimentArmError = 156, AudienceInsightsError = 167, @@ -6189,6 +6226,7 @@ public bool Equals(ErrorCode other) { if (CustomerUserAccessError != other.CustomerUserAccessError) return false; if (CustomAudienceError != other.CustomAudienceError) return false; if (AudienceError != other.AudienceError) return false; + if (SearchTermInsightError != other.SearchTermInsightError) return false; if (SmartCampaignError != other.SmartCampaignError) return false; if (ExperimentArmError != other.ExperimentArmError) return false; if (AudienceInsightsError != other.AudienceInsightsError) return false; @@ -6340,6 +6378,7 @@ public override int GetHashCode() { if (HasCustomerUserAccessError) hash ^= CustomerUserAccessError.GetHashCode(); if (HasCustomAudienceError) hash ^= CustomAudienceError.GetHashCode(); if (HasAudienceError) hash ^= AudienceError.GetHashCode(); + if (HasSearchTermInsightError) hash ^= SearchTermInsightError.GetHashCode(); if (HasSmartCampaignError) hash ^= SmartCampaignError.GetHashCode(); if (HasExperimentArmError) hash ^= ExperimentArmError.GetHashCode(); if (HasAudienceInsightsError) hash ^= AudienceInsightsError.GetHashCode(); @@ -6936,6 +6975,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(216, 10); output.WriteEnum((int) CurrencyError); } + if (HasSearchTermInsightError) { + output.WriteRawTag(240, 10); + output.WriteEnum((int) SearchTermInsightError); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7518,6 +7561,10 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(216, 10); output.WriteEnum((int) CurrencyError); } + if (HasSearchTermInsightError) { + output.WriteRawTag(240, 10); + output.WriteEnum((int) SearchTermInsightError); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7942,6 +7989,9 @@ public int CalculateSize() { if (HasAudienceError) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) AudienceError); } + if (HasSearchTermInsightError) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SearchTermInsightError); + } if (HasSmartCampaignError) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SmartCampaignError); } @@ -8384,6 +8434,9 @@ public void MergeFrom(ErrorCode other) { case ErrorCodeOneofCase.AudienceError: AudienceError = other.AudienceError; break; + case ErrorCodeOneofCase.SearchTermInsightError: + SearchTermInsightError = other.SearchTermInsightError; + break; case ErrorCodeOneofCase.SmartCampaignError: SmartCampaignError = other.SmartCampaignError; break; @@ -9131,6 +9184,11 @@ public void MergeFrom(pb::CodedInputStream input) { errorCodeCase_ = ErrorCodeOneofCase.CurrencyError; break; } + case 1392: { + errorCode_ = input.ReadEnum(); + errorCodeCase_ = ErrorCodeOneofCase.SearchTermInsightError; + break; + } } } #endif @@ -9861,6 +9919,11 @@ public void MergeFrom(pb::CodedInputStream input) { errorCodeCase_ = ErrorCodeOneofCase.CurrencyError; break; } + case 1392: { + errorCode_ = input.ReadEnum(); + errorCodeCase_ = ErrorCodeOneofCase.SearchTermInsightError; + break; + } } } } diff --git a/Google.Ads.GoogleAds/src/V14/ExperimentError.g.cs b/Google.Ads.GoogleAds/src/V14/ExperimentError.g.cs index 047252139..93e9e33bc 100755 --- a/Google.Ads.GoogleAds/src/V14/ExperimentError.g.cs +++ b/Google.Ads.GoogleAds/src/V14/ExperimentError.g.cs @@ -26,7 +26,7 @@ static ExperimentErrorReflection() { string.Concat( "CjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL2V4cGVyaW1lbnRf", "ZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMi", - "xAcKE0V4cGVyaW1lbnRFcnJvckVudW0irAcKD0V4cGVyaW1lbnRFcnJvchIP", + "yAgKE0V4cGVyaW1lbnRFcnJvckVudW0isAgKD0V4cGVyaW1lbnRFcnJvchIP", "CgtVTlNQRUNJRklFRBAAEgsKB1VOS05PV04QARIhCh1DQU5OT1RfU0VUX1NU", "QVJUX0RBVEVfSU5fUEFTVBACEh4KGkVORF9EQVRFX0JFRk9SRV9TVEFSVF9E", "QVRFEAMSIAocU1RBUlRfREFURV9UT09fRkFSX0lOX0ZVVFVSRRAEEh0KGURV", @@ -47,13 +47,16 @@ static ExperimentErrorReflection() { "QURVQVRFRBAWEjgKNENBTk5PVF9DUkVBVEVfRVhQRVJJTUVOVF9DQU1QQUlH", "Tl9XSVRIX1NIQVJFRF9CVURHRVQQFxI4CjRDQU5OT1RfQ1JFQVRFX0VYUEVS", "SU1FTlRfQ0FNUEFJR05fV0lUSF9DVVNUT01fQlVER0VUEBgSHQoZU1RBVFVT", - "X1RSQU5TSVRJT05fSU5WQUxJRBAZQvQBCiNjb20uZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVycm9yc0IURXhwZXJpbWVudEVycm9yUHJvdG9QAVpFZ29v", - "Z2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xl", - "YWRzL3YxNC9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29n", - "bGVBZHMuVjE0LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxF", - "cnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkVycm9yc2IG", - "cHJvdG8z")); + "X1RSQU5TSVRJT05fSU5WQUxJRBAZEiYKIkRVUExJQ0FURV9FWFBFUklNRU5U", + "X0NBTVBBSUdOX05BTUUQGhIoCiRDQU5OT1RfUkVNT1ZFX0lOX0NSRUFUSU9O", + "X0VYUEVSSU1FTlQQGxIwCixDQU5OT1RfQUREX0NBTVBBSUdOX1dJVEhfREVQ", + "UkVDQVRFRF9BRF9UWVBFUxAcQvQBCiNjb20uZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVycm9yc0IURXhwZXJpbWVudEVycm9yUHJvdG9QAVpFZ29vZ2xl", + "LmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRz", + "L3YxNC9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVB", + "ZHMuVjE0LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxFcnJv", + "cnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkVycm9yc2IGcHJv", + "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -336,6 +339,19 @@ public enum ExperimentError { /// Invalid status transition. /// [pbr::OriginalName("STATUS_TRANSITION_INVALID")] StatusTransitionInvalid = 25, + /// + /// The experiment campaign name conflicts with a pre-existing campaign. + /// + [pbr::OriginalName("DUPLICATE_EXPERIMENT_CAMPAIGN_NAME")] DuplicateExperimentCampaignName = 26, + /// + /// Cannot remove in creation experiments. + /// + [pbr::OriginalName("CANNOT_REMOVE_IN_CREATION_EXPERIMENT")] CannotRemoveInCreationExperiment = 27, + /// + /// Cannot add campaign with deprecated ad types. Deprecated ad types: + /// ENHANCED_DISPLAY, GALLERY, GMAIL, KEYWORDLESS, TEXT. + /// + [pbr::OriginalName("CANNOT_ADD_CAMPAIGN_WITH_DEPRECATED_AD_TYPES")] CannotAddCampaignWithDeprecatedAdTypes = 28, } } diff --git a/Google.Ads.GoogleAds/src/V14/GoogleAdsService.g.cs b/Google.Ads.GoogleAds/src/V14/GoogleAdsService.g.cs index 891c7bf34..409506fd3 100755 --- a/Google.Ads.GoogleAds/src/V14/GoogleAdsService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/GoogleAdsService.g.cs @@ -108,950 +108,958 @@ static GoogleAdsServiceReflection() { "c291cmNlcy9jYW1wYWlnbl9mZWVkLnByb3RvGjdnb29nbGUvYWRzL2dvb2ds", "ZWFkcy92MTQvcmVzb3VyY2VzL2NhbXBhaWduX2dyb3VwLnByb3RvGjdnb29n", "bGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2NhbXBhaWduX2xhYmVs", - "LnByb3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2Nh", - "bXBhaWduX3NoYXJlZF9zZXQucHJvdG8aPGdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxNC9yZXNvdXJjZXMvY2FtcGFpZ25fc2ltdWxhdGlvbi5wcm90bxo5Z29v", - "Z2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jYXJyaWVyX2NvbnN0", - "YW50LnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2Vz", - "L2NoYW5nZV9ldmVudC5wcm90bxo2Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", - "L3Jlc291cmNlcy9jaGFuZ2Vfc3RhdHVzLnByb3RvGjNnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTQvcmVzb3VyY2VzL2NsaWNrX3ZpZXcucHJvdG8aOmdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY29tYmluZWRfYXVkaWVu", - "Y2UucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMv", - "Y29udmVyc2lvbl9hY3Rpb24ucHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxNC9yZXNvdXJjZXMvY29udmVyc2lvbl9jdXN0b21fdmFyaWFibGUucHJv", - "dG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY29udmVy", - "c2lvbl9nb2FsX2NhbXBhaWduX2NvbmZpZy5wcm90bxo+Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjE0L3Jlc291cmNlcy9jb252ZXJzaW9uX3ZhbHVlX3J1bGUu", - "cHJvdG8aQmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY29u", - "dmVyc2lvbl92YWx1ZV9ydWxlX3NldC5wcm90bxo6Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjE0L3Jlc291cmNlcy9jdXJyZW5jeV9jb25zdGFudC5wcm90bxo4", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21fYXVk", - "aWVuY2UucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJj", - "ZXMvY3VzdG9tX2NvbnZlcnNpb25fZ29hbC5wcm90bxo4Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21faW50ZXJlc3QucHJvdG8a", - "MWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY3VzdG9tZXIu", - "cHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY3Vz", - "dG9tZXJfYXNzZXQucHJvdG8aO2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9y", - "ZXNvdXJjZXMvY3VzdG9tZXJfYXNzZXRfc2V0LnByb3RvGjhnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2N1c3RvbWVyX2NsaWVudC5wcm90", - "bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21l", - "cl9jbGllbnRfbGluay5wcm90bxpBZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", - "L3Jlc291cmNlcy9jdXN0b21lcl9jb252ZXJzaW9uX2dvYWwucHJvdG8aPGdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY3VzdG9tZXJfY3Vz", - "dG9taXplci5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291", - "cmNlcy9jdXN0b21lcl9leHRlbnNpb25fc2V0dGluZy5wcm90bxo2Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21lcl9mZWVkLnBy", - "b3RvGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2N1c3Rv", - "bWVyX2xhYmVsLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVz", - "b3VyY2VzL2N1c3RvbWVyX21hbmFnZXJfbGluay5wcm90bxpEZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21lcl9uZWdhdGl2ZV9j", - "cml0ZXJpb24ucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNv", - "dXJjZXMvY3VzdG9tZXJfdXNlcl9hY2Nlc3MucHJvdG8aSGdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY3VzdG9tZXJfdXNlcl9hY2Nlc3Nf", - "aW52aXRhdGlvbi5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jl", - "c291cmNlcy9jdXN0b21pemVyX2F0dHJpYnV0ZS5wcm90bxo+Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9kZXRhaWxfcGxhY2VtZW50X3Zp", - "ZXcucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMv", - "ZGV0YWlsZWRfZGVtb2dyYXBoaWMucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxNC9yZXNvdXJjZXMvZGlzcGxheV9rZXl3b3JkX3ZpZXcucHJvdG8a", - "Nmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvZGlzdGFuY2Vf", - "dmlldy5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNl", - "cy9kb21haW5fY2F0ZWdvcnkucHJvdG8aTGdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxNC9yZXNvdXJjZXMvZHluYW1pY19zZWFyY2hfYWRzX3NlYXJjaF90ZXJt", - "X3ZpZXcucHJvdG8aQ2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJj", - "ZXMvZXhwYW5kZWRfbGFuZGluZ19wYWdlX3ZpZXcucHJvdG8aM2dvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvZXhwZXJpbWVudC5wcm90bxo3", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9leHBlcmltZW50", - "X2FybS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNl", - "cy9leHRlbnNpb25fZmVlZF9pdGVtLnByb3RvGi1nb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTQvcmVzb3VyY2VzL2ZlZWQucHJvdG8aMmdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxNC9yZXNvdXJjZXMvZmVlZF9pdGVtLnByb3RvGjZnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2ZlZWRfaXRlbV9zZXQucHJv", - "dG8aO2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvZmVlZF9p", - "dGVtX3NldF9saW5rLnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", - "cmVzb3VyY2VzL2ZlZWRfaXRlbV90YXJnZXQucHJvdG8aNWdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvZmVlZF9tYXBwaW5nLnByb3RvGj5n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2ZlZWRfcGxhY2Vo", - "b2xkZXJfdmlldy5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jl", - "c291cmNlcy9nZW5kZXJfdmlldy5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjE0L3Jlc291cmNlcy9nZW9fdGFyZ2V0X2NvbnN0YW50LnByb3RvGjhn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2dlb2dyYXBoaWNf", + "LnByb3RvGkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2Nh", + "bXBhaWduX3NlYXJjaF90ZXJtX2luc2lnaHQucHJvdG8aPGdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY2FtcGFpZ25fc2hhcmVkX3NldC5w", + "cm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jYW1w", + "YWlnbl9zaW11bGF0aW9uLnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92", + "MTQvcmVzb3VyY2VzL2NhcnJpZXJfY29uc3RhbnQucHJvdG8aNWdvb2dsZS9h", + "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY2hhbmdlX2V2ZW50LnByb3Rv", + "GjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2NoYW5nZV9z", + "dGF0dXMucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJj", + "ZXMvY2xpY2tfdmlldy5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", + "L3Jlc291cmNlcy9jb21iaW5lZF9hdWRpZW5jZS5wcm90bxo6Z29vZ2xlL2Fk", + "cy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jb252ZXJzaW9uX2FjdGlvbi5w", + "cm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jb252", + "ZXJzaW9uX2N1c3RvbV92YXJpYWJsZS5wcm90bxpIZ29vZ2xlL2Fkcy9nb29n", + "bGVhZHMvdjE0L3Jlc291cmNlcy9jb252ZXJzaW9uX2dvYWxfY2FtcGFpZ25f", + "Y29uZmlnLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3Vy", + "Y2VzL2NvbnZlcnNpb25fdmFsdWVfcnVsZS5wcm90bxpCZ29vZ2xlL2Fkcy9n", + "b29nbGVhZHMvdjE0L3Jlc291cmNlcy9jb252ZXJzaW9uX3ZhbHVlX3J1bGVf", + "c2V0LnByb3RvGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2Vz", + "L2N1cnJlbmN5X2NvbnN0YW50LnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvcmVzb3VyY2VzL2N1c3RvbV9hdWRpZW5jZS5wcm90bxo/Z29vZ2xl", + "L2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21fY29udmVyc2lv", + "bl9nb2FsLnByb3RvGjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3Vy", + "Y2VzL2N1c3RvbV9pbnRlcmVzdC5wcm90bxoxZ29vZ2xlL2Fkcy9nb29nbGVh", + "ZHMvdjE0L3Jlc291cmNlcy9jdXN0b21lci5wcm90bxo3Z29vZ2xlL2Fkcy9n", + "b29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21lcl9hc3NldC5wcm90bxo7", + "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21lcl9h", + "c3NldF9zZXQucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNv", + "dXJjZXMvY3VzdG9tZXJfY2xpZW50LnByb3RvGj1nb29nbGUvYWRzL2dvb2ds", + "ZWFkcy92MTQvcmVzb3VyY2VzL2N1c3RvbWVyX2NsaWVudF9saW5rLnByb3Rv", + "GkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2N1c3RvbWVy", + "X2NvbnZlcnNpb25fZ29hbC5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", + "djE0L3Jlc291cmNlcy9jdXN0b21lcl9jdXN0b21pemVyLnByb3RvGkNnb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2N1c3RvbWVyX2V4dGVu", + "c2lvbl9zZXR0aW5nLnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", + "cmVzb3VyY2VzL2N1c3RvbWVyX2ZlZWQucHJvdG8aN2dvb2dsZS9hZHMvZ29v", + "Z2xlYWRzL3YxNC9yZXNvdXJjZXMvY3VzdG9tZXJfbGFiZWwucHJvdG8aPmdv", + "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvY3VzdG9tZXJfbWFu", + "YWdlcl9saW5rLnByb3RvGkRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVz", + "b3VyY2VzL2N1c3RvbWVyX25lZ2F0aXZlX2NyaXRlcmlvbi5wcm90bxpFZ29v", + "Z2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9jdXN0b21lcl9zZWFy", + "Y2hfdGVybV9pbnNpZ2h0LnByb3RvGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92", + "MTQvcmVzb3VyY2VzL2N1c3RvbWVyX3VzZXJfYWNjZXNzLnByb3RvGkhnb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2N1c3RvbWVyX3VzZXJf", + "YWNjZXNzX2ludml0YXRpb24ucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRz", + "L3YxNC9yZXNvdXJjZXMvY3VzdG9taXplcl9hdHRyaWJ1dGUucHJvdG8aPmdv", + "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvZGV0YWlsX3BsYWNl", + "bWVudF92aWV3LnByb3RvGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVz", + "b3VyY2VzL2RldGFpbGVkX2RlbW9ncmFwaGljLnByb3RvGj1nb29nbGUvYWRz", + "L2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2Rpc3BsYXlfa2V5d29yZF92aWV3", + "LnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2Rp", + "c3RhbmNlX3ZpZXcucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9y", + "ZXNvdXJjZXMvZG9tYWluX2NhdGVnb3J5LnByb3RvGkxnb29nbGUvYWRzL2dv", + "b2dsZWFkcy92MTQvcmVzb3VyY2VzL2R5bmFtaWNfc2VhcmNoX2Fkc19zZWFy", + "Y2hfdGVybV92aWV3LnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", + "cmVzb3VyY2VzL2V4cGFuZGVkX2xhbmRpbmdfcGFnZV92aWV3LnByb3RvGjNn", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2V4cGVyaW1lbnQu", + "cHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvZXhw", + "ZXJpbWVudF9hcm0ucHJvdG8aPGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9y", + "ZXNvdXJjZXMvZXh0ZW5zaW9uX2ZlZWRfaXRlbS5wcm90bxotZ29vZ2xlL2Fk", + "cy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9mZWVkLnByb3RvGjJnb29nbGUv", + "YWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2ZlZWRfaXRlbS5wcm90bxo2", + "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9mZWVkX2l0ZW1f", + "c2V0LnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2Vz", + "L2ZlZWRfaXRlbV9zZXRfbGluay5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVh", + "ZHMvdjE0L3Jlc291cmNlcy9mZWVkX2l0ZW1fdGFyZ2V0LnByb3RvGjVnb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2ZlZWRfbWFwcGluZy5w", + "cm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9mZWVk", + "X3BsYWNlaG9sZGVyX3ZpZXcucHJvdG8aNGdvb2dsZS9hZHMvZ29vZ2xlYWRz", + "L3YxNC9yZXNvdXJjZXMvZ2VuZGVyX3ZpZXcucHJvdG8aPGdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvZ2VvX3RhcmdldF9jb25zdGFudC5w", + "cm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9nZW9n", + "cmFwaGljX3ZpZXcucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9y", + "ZXNvdXJjZXMvZ3JvdXBfcGxhY2VtZW50X3ZpZXcucHJvdG8aOWdvb2dsZS9h", + "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvaG90ZWxfZ3JvdXBfdmlldy5w", + "cm90bxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9ob3Rl", + "bF9wZXJmb3JtYW5jZV92aWV3LnByb3RvGj1nb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvcmVzb3VyY2VzL2hvdGVsX3JlY29uY2lsaWF0aW9uLnByb3RvGjpn", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2luY29tZV9yYW5n", + "ZV92aWV3LnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3Vy", + "Y2VzL2tleXdvcmRfcGxhbi5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", + "djE0L3Jlc291cmNlcy9rZXl3b3JkX3BsYW5fYWRfZ3JvdXAucHJvdG8aRmdv", + "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMva2V5d29yZF9wbGFu", + "X2FkX2dyb3VwX2tleXdvcmQucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRz", + "L3YxNC9yZXNvdXJjZXMva2V5d29yZF9wbGFuX2NhbXBhaWduLnByb3RvGkZn", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2tleXdvcmRfcGxh", + "bl9jYW1wYWlnbl9rZXl3b3JkLnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvcmVzb3VyY2VzL2tleXdvcmRfdGhlbWVfY29uc3RhbnQucHJvdG8a", + "NWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMva2V5d29yZF92", + "aWV3LnByb3RvGi5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2Vz", + "L2xhYmVsLnByb3RvGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3Vy", + "Y2VzL2xhbmRpbmdfcGFnZV92aWV3LnByb3RvGjpnb29nbGUvYWRzL2dvb2ds", + "ZWFkcy92MTQvcmVzb3VyY2VzL2xhbmd1YWdlX2NvbnN0YW50LnByb3RvGkJn", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2xlYWRfZm9ybV9z", + "dWJtaXNzaW9uX2RhdGEucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", + "NC9yZXNvdXJjZXMvbGlmZV9ldmVudC5wcm90bxo2Z29vZ2xlL2Fkcy9nb29n", + "bGVhZHMvdjE0L3Jlc291cmNlcy9sb2NhdGlvbl92aWV3LnByb3RvGj9nb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL21hbmFnZWRfcGxhY2Vt", + "ZW50X3ZpZXcucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNv", + "dXJjZXMvbWVkaWFfZmlsZS5wcm90bxpFZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", + "djE0L3Jlc291cmNlcy9tb2JpbGVfYXBwX2NhdGVnb3J5X2NvbnN0YW50LnBy", + "b3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL21vYmls", + "ZV9kZXZpY2VfY29uc3RhbnQucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRz", + "L3YxNC9yZXNvdXJjZXMvb2ZmbGluZV91c2VyX2RhdGFfam9iLnByb3RvGkpn", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL29wZXJhdGluZ19z", + "eXN0ZW1fdmVyc2lvbl9jb25zdGFudC5wcm90bxpGZ29vZ2xlL2Fkcy9nb29n", + "bGVhZHMvdjE0L3Jlc291cmNlcy9wYWlkX29yZ2FuaWNfc2VhcmNoX3Rlcm1f", "dmlldy5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNl", - "cy9ncm91cF9wbGFjZW1lbnRfdmlldy5wcm90bxo5Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjE0L3Jlc291cmNlcy9ob3RlbF9ncm91cF92aWV3LnByb3RvGj9n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL2hvdGVsX3BlcmZv", - "cm1hbmNlX3ZpZXcucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9y", - "ZXNvdXJjZXMvaG90ZWxfcmVjb25jaWxpYXRpb24ucHJvdG8aOmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvaW5jb21lX3JhbmdlX3ZpZXcu", - "cHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMva2V5", - "d29yZF9wbGFuLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVz", - "b3VyY2VzL2tleXdvcmRfcGxhbl9hZF9ncm91cC5wcm90bxpGZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9rZXl3b3JkX3BsYW5fYWRfZ3Jv", - "dXBfa2V5d29yZC5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jl", - "c291cmNlcy9rZXl3b3JkX3BsYW5fY2FtcGFpZ24ucHJvdG8aRmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMva2V5d29yZF9wbGFuX2NhbXBh", - "aWduX2tleXdvcmQucHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9y", - "ZXNvdXJjZXMva2V5d29yZF90aGVtZV9jb25zdGFudC5wcm90bxo1Z29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9rZXl3b3JkX3ZpZXcucHJv", - "dG8aLmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvbGFiZWwu", - "cHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvbGFu", - "ZGluZ19wYWdlX3ZpZXcucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "NC9yZXNvdXJjZXMvbGFuZ3VhZ2VfY29uc3RhbnQucHJvdG8aQmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvbGVhZF9mb3JtX3N1Ym1pc3Np", - "b25fZGF0YS5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291", - "cmNlcy9saWZlX2V2ZW50LnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTQvcmVzb3VyY2VzL2xvY2F0aW9uX3ZpZXcucHJvdG8aP2dvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvbWFuYWdlZF9wbGFjZW1lbnRfdmll", - "dy5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9t", - "ZWRpYV9maWxlLnByb3RvGkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVz", - "b3VyY2VzL21vYmlsZV9hcHBfY2F0ZWdvcnlfY29uc3RhbnQucHJvdG8aP2dv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvbW9iaWxlX2Rldmlj", - "ZV9jb25zdGFudC5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jl", - "c291cmNlcy9vZmZsaW5lX3VzZXJfZGF0YV9qb2IucHJvdG8aSmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvb3BlcmF0aW5nX3N5c3RlbV92", - "ZXJzaW9uX2NvbnN0YW50LnByb3RvGkZnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTQvcmVzb3VyY2VzL3BhaWRfb3JnYW5pY19zZWFyY2hfdGVybV92aWV3LnBy", - "b3RvGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3BhcmVu", - "dGFsX3N0YXR1c192aWV3LnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTQvcmVzb3VyY2VzL3Blcl9zdG9yZV92aWV3LnByb3RvGkpnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3Byb2R1Y3RfYmlkZGluZ19jYXRl", - "Z29yeV9jb25zdGFudC5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", - "L3Jlc291cmNlcy9wcm9kdWN0X2dyb3VwX3ZpZXcucHJvdG8aNWdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvcHJvZHVjdF9saW5rLnByb3Rv", - "Gjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3F1YWxpZnlp", - "bmdfcXVlc3Rpb24ucHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9y", - "ZXNvdXJjZXMvcmVjb21tZW5kYXRpb24ucHJvdG8aO2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxNC9yZXNvdXJjZXMvcmVtYXJrZXRpbmdfYWN0aW9uLnByb3Rv", - "Gjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3NlYXJjaF90", - "ZXJtX3ZpZXcucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNv", - "dXJjZXMvc2hhcmVkX2NyaXRlcmlvbi5wcm90bxozZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjE0L3Jlc291cmNlcy9zaGFyZWRfc2V0LnByb3RvGkJnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3Nob3BwaW5nX3BlcmZvcm1h", - "bmNlX3ZpZXcucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNv", - "dXJjZXMvc21hcnRfY2FtcGFpZ25fc2VhcmNoX3Rlcm1fdmlldy5wcm90bxo/", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9zbWFydF9jYW1w", - "YWlnbl9zZXR0aW5nLnByb3RvGkdnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", - "cmVzb3VyY2VzL3RoaXJkX3BhcnR5X2FwcF9hbmFseXRpY3NfbGluay5wcm90", - "bxo3Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy90b3BpY19j", - "b25zdGFudC5wcm90bxozZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291", - "cmNlcy90b3BpY192aWV3LnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTQvcmVzb3VyY2VzL3RyYXZlbF9hY3Rpdml0eV9ncm91cF92aWV3LnByb3Rv", - "Gklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3RyYXZlbF9h", - "Y3Rpdml0eV9wZXJmb3JtYW5jZV92aWV3LnByb3RvGjZnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTQvcmVzb3VyY2VzL3VzZXJfaW50ZXJlc3QucHJvdG8aMmdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvdXNlcl9saXN0LnBy", - "b3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3VzZXJf", - "bG9jYXRpb25fdmlldy5wcm90bxouZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", - "L3Jlc291cmNlcy92aWRlby5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djE0L3Jlc291cmNlcy93ZWJwYWdlX3ZpZXcucHJvdG8aQWdvb2dsZS9hZHMv", - "Z29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9hZF9ncm91cF9hZF9sYWJlbF9zZXJ2", - "aWNlLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMv", - "YWRfZ3JvdXBfYWRfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjE0L3NlcnZpY2VzL2FkX2dyb3VwX2Fzc2V0X3NlcnZpY2UucHJvdG8a", - "RWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9hZF9ncm91cF9i", - "aWRfbW9kaWZpZXJfc2VydmljZS5wcm90bxpNZ29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjE0L3NlcnZpY2VzL2FkX2dyb3VwX2NyaXRlcmlvbl9jdXN0b21pemVy", - "X3NlcnZpY2UucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2", - "aWNlcy9hZF9ncm91cF9jcml0ZXJpb25fbGFiZWxfc2VydmljZS5wcm90bxpC", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2FkX2dyb3VwX2Ny", - "aXRlcmlvbl9zZXJ2aWNlLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92", - "MTQvc2VydmljZXMvYWRfZ3JvdXBfY3VzdG9taXplcl9zZXJ2aWNlLnByb3Rv", - "Gkpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvYWRfZ3JvdXBf", - "ZXh0ZW5zaW9uX3NldHRpbmdfc2VydmljZS5wcm90bxo9Z29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjE0L3NlcnZpY2VzL2FkX2dyb3VwX2ZlZWRfc2VydmljZS5w", - "cm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2FkX2dy", - "b3VwX2xhYmVsX3NlcnZpY2UucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxNC9zZXJ2aWNlcy9hZF9ncm91cF9zZXJ2aWNlLnByb3RvGjxnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvYWRfcGFyYW1ldGVyX3NlcnZp", - "Y2UucHJvdG8aMmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9h", - "ZF9zZXJ2aWNlLnByb3RvGkFnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2Vy", - "dmljZXMvYXNzZXRfZ3JvdXBfYXNzZXRfc2VydmljZS5wcm90bxpQZ29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2Fzc2V0X2dyb3VwX2xpc3Rp", - "bmdfZ3JvdXBfZmlsdGVyX3NlcnZpY2UucHJvdG8aO2dvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxNC9zZXJ2aWNlcy9hc3NldF9ncm91cF9zZXJ2aWNlLnByb3Rv", - "GkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvYXNzZXRfZ3Jv", - "dXBfc2lnbmFsX3NlcnZpY2UucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRz", - "L3YxNC9zZXJ2aWNlcy9hc3NldF9zZXJ2aWNlLnByb3RvGj9nb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTQvc2VydmljZXMvYXNzZXRfc2V0X2Fzc2V0X3NlcnZp", - "Y2UucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9h", - "c3NldF9zZXRfc2VydmljZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djE0L3NlcnZpY2VzL2F1ZGllbmNlX3NlcnZpY2UucHJvdG8aRmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9iaWRkaW5nX2RhdGFfZXhjbHVz", - "aW9uX3NlcnZpY2UucHJvdG8aTmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9z", - "ZXJ2aWNlcy9iaWRkaW5nX3NlYXNvbmFsaXR5X2FkanVzdG1lbnRfc2Vydmlj", - "ZS5wcm90bxpAZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2Jp", - "ZGRpbmdfc3RyYXRlZ3lfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjE0L3NlcnZpY2VzL2NhbXBhaWduX2Fzc2V0X3NlcnZpY2UucHJv", - "dG8aQmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWln", - "bl9hc3NldF9zZXRfc2VydmljZS5wcm90bxpFZ29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjE0L3NlcnZpY2VzL2NhbXBhaWduX2JpZF9tb2RpZmllcl9zZXJ2aWNl", - "LnByb3RvGj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvY2Ft", - "cGFpZ25fYnVkZ2V0X3NlcnZpY2UucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWlnbl9jb252ZXJzaW9uX2dvYWxfc2Vy", - "dmljZS5wcm90bxpCZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2Vz", - "L2NhbXBhaWduX2NyaXRlcmlvbl9zZXJ2aWNlLnByb3RvGkNnb29nbGUvYWRz", - "L2dvb2dsZWFkcy92MTQvc2VydmljZXMvY2FtcGFpZ25fY3VzdG9taXplcl9z", - "ZXJ2aWNlLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2Vydmlj", - "ZXMvY2FtcGFpZ25fZHJhZnRfc2VydmljZS5wcm90bxpKZ29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjE0L3NlcnZpY2VzL2NhbXBhaWduX2V4dGVuc2lvbl9zZXR0", - "aW5nX3NlcnZpY2UucHJvdG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9z", - "ZXJ2aWNlcy9jYW1wYWlnbl9mZWVkX3NlcnZpY2UucHJvdG8aPmdvb2dsZS9h", - "ZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWlnbl9ncm91cF9zZXJ2", - "aWNlLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMv", - "Y2FtcGFpZ25fbGFiZWxfc2VydmljZS5wcm90bxo4Z29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjE0L3NlcnZpY2VzL2NhbXBhaWduX3NlcnZpY2UucHJvdG8aQ2dv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWlnbl9zaGFy", - "ZWRfc2V0X3NlcnZpY2UucHJvdG8aQWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "NC9zZXJ2aWNlcy9jb252ZXJzaW9uX2FjdGlvbl9zZXJ2aWNlLnByb3RvGkpn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvY29udmVyc2lvbl9j", - "dXN0b21fdmFyaWFibGVfc2VydmljZS5wcm90bxpPZ29vZ2xlL2Fkcy9nb29n", - "bGVhZHMvdjE0L3NlcnZpY2VzL2NvbnZlcnNpb25fZ29hbF9jYW1wYWlnbl9j", - "b25maWdfc2VydmljZS5wcm90bxpFZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", - "L3NlcnZpY2VzL2NvbnZlcnNpb25fdmFsdWVfcnVsZV9zZXJ2aWNlLnByb3Rv", - "Gklnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvY29udmVyc2lv", - "bl92YWx1ZV9ydWxlX3NldF9zZXJ2aWNlLnByb3RvGkZnb29nbGUvYWRzL2dv", - "b2dsZWFkcy92MTQvc2VydmljZXMvY3VzdG9tX2NvbnZlcnNpb25fZ29hbF9z", - "ZXJ2aWNlLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2Vydmlj", - "ZXMvY3VzdG9tZXJfYXNzZXRfc2VydmljZS5wcm90bxpIZ29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjE0L3NlcnZpY2VzL2N1c3RvbWVyX2NvbnZlcnNpb25fZ29h", - "bF9zZXJ2aWNlLnByb3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2Vy", - "dmljZXMvY3VzdG9tZXJfY3VzdG9taXplcl9zZXJ2aWNlLnByb3RvGkpnb29n", - "bGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvY3VzdG9tZXJfZXh0ZW5z", - "aW9uX3NldHRpbmdfc2VydmljZS5wcm90bxo9Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjE0L3NlcnZpY2VzL2N1c3RvbWVyX2ZlZWRfc2VydmljZS5wcm90bxo+", - "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2N1c3RvbWVyX2xh", - "YmVsX3NlcnZpY2UucHJvdG8aS2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9z", - "ZXJ2aWNlcy9jdXN0b21lcl9uZWdhdGl2ZV9jcml0ZXJpb25fc2VydmljZS5w", - "cm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2N1c3Rv", - "bWVyX3NlcnZpY2UucHJvdG8aRGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9z", - "ZXJ2aWNlcy9jdXN0b21pemVyX2F0dHJpYnV0ZV9zZXJ2aWNlLnByb3RvGj5n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvZXhwZXJpbWVudF9h", - "cm1fc2VydmljZS5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Nl", - "cnZpY2VzL2V4cGVyaW1lbnRfc2VydmljZS5wcm90bxpDZ29vZ2xlL2Fkcy9n", - "b29nbGVhZHMvdjE0L3NlcnZpY2VzL2V4dGVuc2lvbl9mZWVkX2l0ZW1fc2Vy", - "dmljZS5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2Vz", - "L2ZlZWRfaXRlbV9zZXJ2aWNlLnByb3RvGkJnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTQvc2VydmljZXMvZmVlZF9pdGVtX3NldF9saW5rX3NlcnZpY2UucHJv", - "dG8aPWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9mZWVkX2l0", - "ZW1fc2V0X3NlcnZpY2UucHJvdG8aQGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", - "NC9zZXJ2aWNlcy9mZWVkX2l0ZW1fdGFyZ2V0X3NlcnZpY2UucHJvdG8aPGdv", - "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9mZWVkX21hcHBpbmdf", - "c2VydmljZS5wcm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZp", - "Y2VzL2ZlZWRfc2VydmljZS5wcm90bxpNZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", - "djE0L3NlcnZpY2VzL2tleXdvcmRfcGxhbl9hZF9ncm91cF9rZXl3b3JkX3Nl", - "cnZpY2UucHJvdG8aRWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNl", - "cy9rZXl3b3JkX3BsYW5fYWRfZ3JvdXBfc2VydmljZS5wcm90bxpNZ29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2tleXdvcmRfcGxhbl9jYW1w", - "YWlnbl9rZXl3b3JkX3NlcnZpY2UucHJvdG8aRWdvb2dsZS9hZHMvZ29vZ2xl", - "YWRzL3YxNC9zZXJ2aWNlcy9rZXl3b3JkX3BsYW5fY2FtcGFpZ25fc2Vydmlj", - "ZS5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2tl", - "eXdvcmRfcGxhbl9zZXJ2aWNlLnByb3RvGjVnb29nbGUvYWRzL2dvb2dsZWFk", - "cy92MTQvc2VydmljZXMvbGFiZWxfc2VydmljZS5wcm90bxo6Z29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL21lZGlhX2ZpbGVfc2VydmljZS5w", - "cm90bxpCZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL3JlbWFy", - "a2V0aW5nX2FjdGlvbl9zZXJ2aWNlLnByb3RvGkBnb29nbGUvYWRzL2dvb2ds", - "ZWFkcy92MTQvc2VydmljZXMvc2hhcmVkX2NyaXRlcmlvbl9zZXJ2aWNlLnBy", - "b3RvGjpnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvc2hhcmVk", - "X3NldF9zZXJ2aWNlLnByb3RvGkZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", - "c2VydmljZXMvc21hcnRfY2FtcGFpZ25fc2V0dGluZ19zZXJ2aWNlLnByb3Rv", - "Gjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvdXNlcl9saXN0", - "X3NlcnZpY2UucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8a", - "F2dvb2dsZS9hcGkvY2xpZW50LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2Jl", - "aGF2aW9yLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90", - "bxoXZ29vZ2xlL3JwYy9zdGF0dXMucHJvdG8ijgIKFlNlYXJjaEdvb2dsZUFk", - "c1JlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BBAhISCgVxdWVyeRgC", - "IAEoCUID4EECEhIKCnBhZ2VfdG9rZW4YAyABKAkSEQoJcGFnZV9zaXplGAQg", - "ASgFEhUKDXZhbGlkYXRlX29ubHkYBSABKAgSIgoacmV0dXJuX3RvdGFsX3Jl", - "c3VsdHNfY291bnQYByABKAgSZAoTc3VtbWFyeV9yb3dfc2V0dGluZxgIIAEo", - "DjJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5TdW1tYXJ5Um93", - "U2V0dGluZ0VudW0uU3VtbWFyeVJvd1NldHRpbmcihwIKF1NlYXJjaEdvb2ds", - "ZUFkc1Jlc3BvbnNlEkAKB3Jlc3VsdHMYASADKAsyLy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuc2VydmljZXMuR29vZ2xlQWRzUm93EhcKD25leHRfcGFn", - "ZV90b2tlbhgCIAEoCRIbChN0b3RhbF9yZXN1bHRzX2NvdW50GAMgASgDEi4K", - "CmZpZWxkX21hc2sYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNr", - "EkQKC3N1bW1hcnlfcm93GAYgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnNlcnZpY2VzLkdvb2dsZUFkc1JvdyKyAQocU2VhcmNoR29vZ2xlQWRz", - "U3RyZWFtUmVxdWVzdBIYCgtjdXN0b21lcl9pZBgBIAEoCUID4EECEhIKBXF1", - "ZXJ5GAIgASgJQgPgQQISZAoTc3VtbWFyeV9yb3dfc2V0dGluZxgDIAEoDjJH", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5TdW1tYXJ5Um93U2V0", - "dGluZ0VudW0uU3VtbWFyeVJvd1NldHRpbmci6wEKHVNlYXJjaEdvb2dsZUFk", - "c1N0cmVhbVJlc3BvbnNlEkAKB3Jlc3VsdHMYASADKAsyLy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuR29vZ2xlQWRzUm93Ei4KCmZpZWxk", - "X21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrEkQKC3N1", - "bW1hcnlfcm93GAMgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", - "cnZpY2VzLkdvb2dsZUFkc1JvdxISCgpyZXF1ZXN0X2lkGAQgASgJIpZnCgxH", - "b29nbGVBZHNSb3cSSQoOYWNjb3VudF9idWRnZXQYKiABKAsyMS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFjY291bnRCdWRnZXQSWgoX", - "YWNjb3VudF9idWRnZXRfcHJvcG9zYWwYKyABKAsyOS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLkFjY291bnRCdWRnZXRQcm9wb3NhbBJG", - "CgxhY2NvdW50X2xpbmsYjwEgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5BY2NvdW50TGluaxI9CghhZF9ncm91cBgDIAEoCzIr", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRHcm91cBJC", - "CgthZF9ncm91cF9hZBgQIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5yZXNvdXJjZXMuQWRHcm91cEFkEm4KImFkX2dyb3VwX2FkX2Fzc2V0X2Nv", - "bWJpbmF0aW9uX3ZpZXcYwQEgASgLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5BZEdyb3VwQWRBc3NldENvbWJpbmF0aW9uVmlldxJX", - "ChZhZF9ncm91cF9hZF9hc3NldF92aWV3GIMBIAEoCzI2Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRHcm91cEFkQXNzZXRWaWV3Ek0K", - "EWFkX2dyb3VwX2FkX2xhYmVsGHggASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5BZEdyb3VwQWRMYWJlbBJJCg5hZF9ncm91cF9h", - "c3NldBiaASABKAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", - "Y2VzLkFkR3JvdXBBc3NldBJQChJhZF9ncm91cF9hc3NldF9zZXQYxAEgASgL", - "MjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BZEdyb3Vw", - "QXNzZXRTZXQSVwoWYWRfZ3JvdXBfYXVkaWVuY2Vfdmlldxg5IAEoCzI3Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRHcm91cEF1ZGll", - "bmNlVmlldxJVChVhZF9ncm91cF9iaWRfbW9kaWZpZXIYGCABKAsyNi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkR3JvdXBCaWRNb2Rp", - "ZmllchJQChJhZF9ncm91cF9jcml0ZXJpb24YESABKAsyNC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkR3JvdXBDcml0ZXJpb24SZgod", - "YWRfZ3JvdXBfY3JpdGVyaW9uX2N1c3RvbWl6ZXIYuwEgASgLMj4uZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BZEdyb3VwQ3JpdGVyaW9u", - "Q3VzdG9taXplchJbChhhZF9ncm91cF9jcml0ZXJpb25fbGFiZWwYeSABKAsy", - "OS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkR3JvdXBD", - "cml0ZXJpb25MYWJlbBJlCh1hZF9ncm91cF9jcml0ZXJpb25fc2ltdWxhdGlv", - "bhhuIAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", - "QWRHcm91cENyaXRlcmlvblNpbXVsYXRpb24SUwoTYWRfZ3JvdXBfY3VzdG9t", - "aXplchi5ASABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", - "Y2VzLkFkR3JvdXBDdXN0b21pemVyEl8KGmFkX2dyb3VwX2V4dGVuc2lvbl9z", - "ZXR0aW5nGHAgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", - "cmNlcy5BZEdyb3VwRXh0ZW5zaW9uU2V0dGluZxJGCg1hZF9ncm91cF9mZWVk", - "GEMgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5B", - "ZEdyb3VwRmVlZBJICg5hZF9ncm91cF9sYWJlbBhzIAEoCzIwLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRHcm91cExhYmVsElIKE2Fk", - "X2dyb3VwX3NpbXVsYXRpb24YayABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQucmVzb3VyY2VzLkFkR3JvdXBTaW11bGF0aW9uEkYKDGFkX3BhcmFt", - "ZXRlchiCASABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", - "Y2VzLkFkUGFyYW1ldGVyEkgKDmFnZV9yYW5nZV92aWV3GDAgASgLMjAuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BZ2VSYW5nZVZpZXcS", - "TAoQYWRfc2NoZWR1bGVfdmlldxhZIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5yZXNvdXJjZXMuQWRTY2hlZHVsZVZpZXcSSwoPZG9tYWluX2Nh", - "dGVnb3J5GFsgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", - "cmNlcy5Eb21haW5DYXRlZ29yeRI4CgVhc3NldBhpIAEoCzIpLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQXNzZXQSVgoVYXNzZXRfZmll", - "bGRfdHlwZV92aWV3GKgBIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5yZXNvdXJjZXMuQXNzZXRGaWVsZFR5cGVWaWV3Ek8KEWFzc2V0X2dyb3Vw", - "X2Fzc2V0GK0BIAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", - "dXJjZXMuQXNzZXRHcm91cEFzc2V0ElEKEmFzc2V0X2dyb3VwX3NpZ25hbBi/", - "ASABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFz", - "c2V0R3JvdXBTaWduYWwSawogYXNzZXRfZ3JvdXBfbGlzdGluZ19ncm91cF9m", - "aWx0ZXIYtgEgASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", - "cmNlcy5Bc3NldEdyb3VwTGlzdGluZ0dyb3VwRmlsdGVyEmcKHmFzc2V0X2dy", - "b3VwX3Byb2R1Y3RfZ3JvdXBfdmlldxi9ASABKAsyPi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLkFzc2V0R3JvdXBQcm9kdWN0R3JvdXBW", - "aWV3EkQKC2Fzc2V0X2dyb3VwGKwBIAEoCzIuLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5yZXNvdXJjZXMuQXNzZXRHcm91cBJLCg9hc3NldF9zZXRfYXNz", - "ZXQYtAEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", - "cy5Bc3NldFNldEFzc2V0EkAKCWFzc2V0X3NldBizASABKAsyLC5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFzc2V0U2V0ElIKE2Fzc2V0", - "X3NldF90eXBlX3ZpZXcYxQEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5Bc3NldFNldFR5cGVWaWV3EkAKCWJhdGNoX2pvYhiL", - "ASABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkJh", - "dGNoSm9iElkKFmJpZGRpbmdfZGF0YV9leGNsdXNpb24YnwEgASgLMjguZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5CaWRkaW5nRGF0YUV4", - "Y2x1c2lvbhJpCh5iaWRkaW5nX3NlYXNvbmFsaXR5X2FkanVzdG1lbnQYoAEg", - "ASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5CaWRk", - "aW5nU2Vhc29uYWxpdHlBZGp1c3RtZW50Ek0KEGJpZGRpbmdfc3RyYXRlZ3kY", - "EiABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkJp", - "ZGRpbmdTdHJhdGVneRJjChtiaWRkaW5nX3N0cmF0ZWd5X3NpbXVsYXRpb24Y", - "ngEgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5C", - "aWRkaW5nU3RyYXRlZ3lTaW11bGF0aW9uEkcKDWJpbGxpbmdfc2V0dXAYKSAB", - "KAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkJpbGxp", - "bmdTZXR1cBJACgljYWxsX3ZpZXcYmAEgASgLMiwuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LnJlc291cmNlcy5DYWxsVmlldxJLCg9jYW1wYWlnbl9idWRn", - "ZXQYEyABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", - "LkNhbXBhaWduQnVkZ2V0Ej4KCGNhbXBhaWduGAIgASgLMiwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbhJKCg5jYW1wYWln", - "bl9hc3NldBiOASABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzLkNhbXBhaWduQXNzZXQSUQoSY2FtcGFpZ25fYXNzZXRfc2V0GLUB", - "IAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2Ft", - "cGFpZ25Bc3NldFNldBJYChZjYW1wYWlnbl9hdWRpZW5jZV92aWV3GEUgASgL", - "MjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWln", - "bkF1ZGllbmNlVmlldxJWChVjYW1wYWlnbl9iaWRfbW9kaWZpZXIYGiABKAsy", - "Ny5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWdu", - "QmlkTW9kaWZpZXISXQoYY2FtcGFpZ25fY29udmVyc2lvbl9nb2FsGK8BIAEo", - "CzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFp", - "Z25Db252ZXJzaW9uR29hbBJRChJjYW1wYWlnbl9jcml0ZXJpb24YFCABKAsy", + "cy9wYXJlbnRhbF9zdGF0dXNfdmlldy5wcm90bxo3Z29vZ2xlL2Fkcy9nb29n", + "bGVhZHMvdjE0L3Jlc291cmNlcy9wZXJfc3RvcmVfdmlldy5wcm90bxpKZ29v", + "Z2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9wcm9kdWN0X2JpZGRp", + "bmdfY2F0ZWdvcnlfY29uc3RhbnQucHJvdG8aO2dvb2dsZS9hZHMvZ29vZ2xl", + "YWRzL3YxNC9yZXNvdXJjZXMvcHJvZHVjdF9ncm91cF92aWV3LnByb3RvGjVn", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3Byb2R1Y3RfbGlu", + "ay5wcm90bxo8Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9x", + "dWFsaWZ5aW5nX3F1ZXN0aW9uLnByb3RvGjdnb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvcmVzb3VyY2VzL3JlY29tbWVuZGF0aW9uLnByb3RvGjtnb29nbGUv", + "YWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3JlbWFya2V0aW5nX2FjdGlv", + "bi5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9z", + "ZWFyY2hfdGVybV92aWV3LnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92", + "MTQvcmVzb3VyY2VzL3NoYXJlZF9jcml0ZXJpb24ucHJvdG8aM2dvb2dsZS9h", + "ZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvc2hhcmVkX3NldC5wcm90bxpC", + "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy9zaG9wcGluZ19w", + "ZXJmb3JtYW5jZV92aWV3LnByb3RvGkhnb29nbGUvYWRzL2dvb2dsZWFkcy92", + "MTQvcmVzb3VyY2VzL3NtYXJ0X2NhbXBhaWduX3NlYXJjaF90ZXJtX3ZpZXcu", + "cHJvdG8aP2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMvc21h", + "cnRfY2FtcGFpZ25fc2V0dGluZy5wcm90bxpHZ29vZ2xlL2Fkcy9nb29nbGVh", + "ZHMvdjE0L3Jlc291cmNlcy90aGlyZF9wYXJ0eV9hcHBfYW5hbHl0aWNzX2xp", + "bmsucHJvdG8aN2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9yZXNvdXJjZXMv", + "dG9waWNfY29uc3RhbnQucHJvdG8aM2dvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", + "NC9yZXNvdXJjZXMvdG9waWNfdmlldy5wcm90bxpDZ29vZ2xlL2Fkcy9nb29n", + "bGVhZHMvdjE0L3Jlc291cmNlcy90cmF2ZWxfYWN0aXZpdHlfZ3JvdXBfdmll", + "dy5wcm90bxpJZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy90", + "cmF2ZWxfYWN0aXZpdHlfcGVyZm9ybWFuY2Vfdmlldy5wcm90bxo2Z29vZ2xl", + "L2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlcy91c2VyX2ludGVyZXN0LnBy", + "b3RvGjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzL3VzZXJf", + "bGlzdC5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNl", + "cy91c2VyX2xvY2F0aW9uX3ZpZXcucHJvdG8aLmdvb2dsZS9hZHMvZ29vZ2xl", + "YWRzL3YxNC9yZXNvdXJjZXMvdmlkZW8ucHJvdG8aNWdvb2dsZS9hZHMvZ29v", + "Z2xlYWRzL3YxNC9yZXNvdXJjZXMvd2VicGFnZV92aWV3LnByb3RvGkFnb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvYWRfZ3JvdXBfYWRfbGFi", + "ZWxfc2VydmljZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Nl", + "cnZpY2VzL2FkX2dyb3VwX2FkX3NlcnZpY2UucHJvdG8aPmdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9hZF9ncm91cF9hc3NldF9zZXJ2aWNl", + "LnByb3RvGkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvYWRf", + "Z3JvdXBfYmlkX21vZGlmaWVyX3NlcnZpY2UucHJvdG8aTWdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9hZF9ncm91cF9jcml0ZXJpb25fY3Vz", + "dG9taXplcl9zZXJ2aWNlLnByb3RvGkhnb29nbGUvYWRzL2dvb2dsZWFkcy92", + "MTQvc2VydmljZXMvYWRfZ3JvdXBfY3JpdGVyaW9uX2xhYmVsX3NlcnZpY2Uu", + "cHJvdG8aQmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9hZF9n", + "cm91cF9jcml0ZXJpb25fc2VydmljZS5wcm90bxpDZ29vZ2xlL2Fkcy9nb29n", + "bGVhZHMvdjE0L3NlcnZpY2VzL2FkX2dyb3VwX2N1c3RvbWl6ZXJfc2Vydmlj", + "ZS5wcm90bxpKZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2Fk", + "X2dyb3VwX2V4dGVuc2lvbl9zZXR0aW5nX3NlcnZpY2UucHJvdG8aPWdvb2ds", + "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9hZF9ncm91cF9mZWVkX3Nl", + "cnZpY2UucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNl", + "cy9hZF9ncm91cF9sYWJlbF9zZXJ2aWNlLnByb3RvGjhnb29nbGUvYWRzL2dv", + "b2dsZWFkcy92MTQvc2VydmljZXMvYWRfZ3JvdXBfc2VydmljZS5wcm90bxo8", + "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2FkX3BhcmFtZXRl", + "cl9zZXJ2aWNlLnByb3RvGjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2Vy", + "dmljZXMvYWRfc2VydmljZS5wcm90bxpBZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", + "djE0L3NlcnZpY2VzL2Fzc2V0X2dyb3VwX2Fzc2V0X3NlcnZpY2UucHJvdG8a", + "UGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9hc3NldF9ncm91", + "cF9saXN0aW5nX2dyb3VwX2ZpbHRlcl9zZXJ2aWNlLnByb3RvGjtnb29nbGUv", + "YWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvYXNzZXRfZ3JvdXBfc2Vydmlj", + "ZS5wcm90bxpCZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2Fz", + "c2V0X2dyb3VwX3NpZ25hbF9zZXJ2aWNlLnByb3RvGjVnb29nbGUvYWRzL2dv", + "b2dsZWFkcy92MTQvc2VydmljZXMvYXNzZXRfc2VydmljZS5wcm90bxo/Z29v", + "Z2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2Fzc2V0X3NldF9hc3Nl", + "dF9zZXJ2aWNlLnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2Vy", + "dmljZXMvYXNzZXRfc2V0X3NlcnZpY2UucHJvdG8aOGdvb2dsZS9hZHMvZ29v", + "Z2xlYWRzL3YxNC9zZXJ2aWNlcy9hdWRpZW5jZV9zZXJ2aWNlLnByb3RvGkZn", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvYmlkZGluZ19kYXRh", + "X2V4Y2x1c2lvbl9zZXJ2aWNlLnByb3RvGk5nb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvc2VydmljZXMvYmlkZGluZ19zZWFzb25hbGl0eV9hZGp1c3RtZW50", + "X3NlcnZpY2UucHJvdG8aQGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2", + "aWNlcy9iaWRkaW5nX3N0cmF0ZWd5X3NlcnZpY2UucHJvdG8aPmdvb2dsZS9h", + "ZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWlnbl9hc3NldF9zZXJ2", + "aWNlLnByb3RvGkJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMv", + "Y2FtcGFpZ25fYXNzZXRfc2V0X3NlcnZpY2UucHJvdG8aRWdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWlnbl9iaWRfbW9kaWZpZXJf", + "c2VydmljZS5wcm90bxo/Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZp", + "Y2VzL2NhbXBhaWduX2J1ZGdldF9zZXJ2aWNlLnByb3RvGkhnb29nbGUvYWRz", + "L2dvb2dsZWFkcy92MTQvc2VydmljZXMvY2FtcGFpZ25fY29udmVyc2lvbl9n", + "b2FsX3NlcnZpY2UucHJvdG8aQmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9z", + "ZXJ2aWNlcy9jYW1wYWlnbl9jcml0ZXJpb25fc2VydmljZS5wcm90bxpDZ29v", + "Z2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2NhbXBhaWduX2N1c3Rv", + "bWl6ZXJfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", + "L3NlcnZpY2VzL2NhbXBhaWduX2RyYWZ0X3NlcnZpY2UucHJvdG8aSmdvb2ds", + "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWlnbl9leHRlbnNp", + "b25fc2V0dGluZ19zZXJ2aWNlLnByb3RvGj1nb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvc2VydmljZXMvY2FtcGFpZ25fZmVlZF9zZXJ2aWNlLnByb3RvGj5n", + "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvY2FtcGFpZ25fZ3Jv", + "dXBfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3Nl", + "cnZpY2VzL2NhbXBhaWduX2xhYmVsX3NlcnZpY2UucHJvdG8aOGdvb2dsZS9h", + "ZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jYW1wYWlnbl9zZXJ2aWNlLnBy", + "b3RvGkNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvY2FtcGFp", + "Z25fc2hhcmVkX3NldF9zZXJ2aWNlLnByb3RvGkFnb29nbGUvYWRzL2dvb2ds", + "ZWFkcy92MTQvc2VydmljZXMvY29udmVyc2lvbl9hY3Rpb25fc2VydmljZS5w", + "cm90bxpKZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2NvbnZl", + "cnNpb25fY3VzdG9tX3ZhcmlhYmxlX3NlcnZpY2UucHJvdG8aT2dvb2dsZS9h", + "ZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jb252ZXJzaW9uX2dvYWxfY2Ft", + "cGFpZ25fY29uZmlnX3NlcnZpY2UucHJvdG8aRWdvb2dsZS9hZHMvZ29vZ2xl", + "YWRzL3YxNC9zZXJ2aWNlcy9jb252ZXJzaW9uX3ZhbHVlX3J1bGVfc2Vydmlj", + "ZS5wcm90bxpJZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2Nv", + "bnZlcnNpb25fdmFsdWVfcnVsZV9zZXRfc2VydmljZS5wcm90bxpGZ29vZ2xl", + "L2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2N1c3RvbV9jb252ZXJzaW9u", + "X2dvYWxfc2VydmljZS5wcm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", + "L3NlcnZpY2VzL2N1c3RvbWVyX2Fzc2V0X3NlcnZpY2UucHJvdG8aSGdvb2ds", + "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jdXN0b21lcl9jb252ZXJz", + "aW9uX2dvYWxfc2VydmljZS5wcm90bxpDZ29vZ2xlL2Fkcy9nb29nbGVhZHMv", + "djE0L3NlcnZpY2VzL2N1c3RvbWVyX2N1c3RvbWl6ZXJfc2VydmljZS5wcm90", + "bxpKZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2N1c3RvbWVy", + "X2V4dGVuc2lvbl9zZXR0aW5nX3NlcnZpY2UucHJvdG8aPWdvb2dsZS9hZHMv", + "Z29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jdXN0b21lcl9mZWVkX3NlcnZpY2Uu", + "cHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9jdXN0", + "b21lcl9sYWJlbF9zZXJ2aWNlLnByb3RvGktnb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvc2VydmljZXMvY3VzdG9tZXJfbmVnYXRpdmVfY3JpdGVyaW9uX3Nl", + "cnZpY2UucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNl", + "cy9jdXN0b21lcl9zZXJ2aWNlLnByb3RvGkRnb29nbGUvYWRzL2dvb2dsZWFk", + "cy92MTQvc2VydmljZXMvY3VzdG9taXplcl9hdHRyaWJ1dGVfc2VydmljZS5w", + "cm90bxo+Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL2V4cGVy", + "aW1lbnRfYXJtX3NlcnZpY2UucHJvdG8aOmdvb2dsZS9hZHMvZ29vZ2xlYWRz", + "L3YxNC9zZXJ2aWNlcy9leHBlcmltZW50X3NlcnZpY2UucHJvdG8aQ2dvb2ds", + "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9leHRlbnNpb25fZmVlZF9p", + "dGVtX3NlcnZpY2UucHJvdG8aOWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9z", + "ZXJ2aWNlcy9mZWVkX2l0ZW1fc2VydmljZS5wcm90bxpCZ29vZ2xlL2Fkcy9n", + "b29nbGVhZHMvdjE0L3NlcnZpY2VzL2ZlZWRfaXRlbV9zZXRfbGlua19zZXJ2", + "aWNlLnByb3RvGj1nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMv", + "ZmVlZF9pdGVtX3NldF9zZXJ2aWNlLnByb3RvGkBnb29nbGUvYWRzL2dvb2ds", + "ZWFkcy92MTQvc2VydmljZXMvZmVlZF9pdGVtX3RhcmdldF9zZXJ2aWNlLnBy", + "b3RvGjxnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXMvZmVlZF9t", + "YXBwaW5nX3NlcnZpY2UucHJvdG8aNGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", + "NC9zZXJ2aWNlcy9mZWVkX3NlcnZpY2UucHJvdG8aTWdvb2dsZS9hZHMvZ29v", + "Z2xlYWRzL3YxNC9zZXJ2aWNlcy9rZXl3b3JkX3BsYW5fYWRfZ3JvdXBfa2V5", + "d29yZF9zZXJ2aWNlLnByb3RvGkVnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", + "c2VydmljZXMva2V5d29yZF9wbGFuX2FkX2dyb3VwX3NlcnZpY2UucHJvdG8a", + "TWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9rZXl3b3JkX3Bs", + "YW5fY2FtcGFpZ25fa2V5d29yZF9zZXJ2aWNlLnByb3RvGkVnb29nbGUvYWRz", + "L2dvb2dsZWFkcy92MTQvc2VydmljZXMva2V5d29yZF9wbGFuX2NhbXBhaWdu", + "X3NlcnZpY2UucHJvdG8aPGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2", + "aWNlcy9rZXl3b3JkX3BsYW5fc2VydmljZS5wcm90bxo1Z29vZ2xlL2Fkcy9n", + "b29nbGVhZHMvdjE0L3NlcnZpY2VzL2xhYmVsX3NlcnZpY2UucHJvdG8aOmdv", + "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNlcy9tZWRpYV9maWxlX3Nl", + "cnZpY2UucHJvdG8aQmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9zZXJ2aWNl", + "cy9yZW1hcmtldGluZ19hY3Rpb25fc2VydmljZS5wcm90bxpAZ29vZ2xlL2Fk", + "cy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL3NoYXJlZF9jcml0ZXJpb25fc2Vy", + "dmljZS5wcm90bxo6Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2Vz", + "L3NoYXJlZF9zZXRfc2VydmljZS5wcm90bxpGZ29vZ2xlL2Fkcy9nb29nbGVh", + "ZHMvdjE0L3NlcnZpY2VzL3NtYXJ0X2NhbXBhaWduX3NldHRpbmdfc2Vydmlj", + "ZS5wcm90bxo5Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L3NlcnZpY2VzL3Vz", + "ZXJfbGlzdF9zZXJ2aWNlLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", + "LnByb3RvGhdnb29nbGUvYXBpL2NsaWVudC5wcm90bxofZ29vZ2xlL2FwaS9m", + "aWVsZF9iZWhhdmlvci5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21h", + "c2sucHJvdG8aF2dvb2dsZS9ycGMvc3RhdHVzLnByb3RvIo4CChZTZWFyY2hH", + "b29nbGVBZHNSZXF1ZXN0EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISEgoF", + "cXVlcnkYAiABKAlCA+BBAhISCgpwYWdlX3Rva2VuGAMgASgJEhEKCXBhZ2Vf", + "c2l6ZRgEIAEoBRIVCg12YWxpZGF0ZV9vbmx5GAUgASgIEiIKGnJldHVybl90", + "b3RhbF9yZXN1bHRzX2NvdW50GAcgASgIEmQKE3N1bW1hcnlfcm93X3NldHRp", + "bmcYCCABKA4yRy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuU3Vt", + "bWFyeVJvd1NldHRpbmdFbnVtLlN1bW1hcnlSb3dTZXR0aW5nIocCChdTZWFy", + "Y2hHb29nbGVBZHNSZXNwb25zZRJACgdyZXN1bHRzGAEgAygLMi8uZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkdvb2dsZUFkc1JvdxIXCg9u", + "ZXh0X3BhZ2VfdG9rZW4YAiABKAkSGwoTdG90YWxfcmVzdWx0c19jb3VudBgD", + "IAEoAxIuCgpmaWVsZF9tYXNrGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZp", + "ZWxkTWFzaxJECgtzdW1tYXJ5X3JvdxgGIAEoCzIvLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5zZXJ2aWNlcy5Hb29nbGVBZHNSb3cisgEKHFNlYXJjaEdv", + "b2dsZUFkc1N0cmVhbVJlcXVlc3QSGAoLY3VzdG9tZXJfaWQYASABKAlCA+BB", + "AhISCgVxdWVyeRgCIAEoCUID4EECEmQKE3N1bW1hcnlfcm93X3NldHRpbmcY", + "AyABKA4yRy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuU3VtbWFy", + "eVJvd1NldHRpbmdFbnVtLlN1bW1hcnlSb3dTZXR0aW5nIusBCh1TZWFyY2hH", + "b29nbGVBZHNTdHJlYW1SZXNwb25zZRJACgdyZXN1bHRzGAEgAygLMi8uZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkdvb2dsZUFkc1JvdxIu", + "CgpmaWVsZF9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkZpZWxkTWFz", + "axJECgtzdW1tYXJ5X3JvdxgDIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5zZXJ2aWNlcy5Hb29nbGVBZHNSb3cSEgoKcmVxdWVzdF9pZBgEIAEo", + "CSLiaAoMR29vZ2xlQWRzUm93EkkKDmFjY291bnRfYnVkZ2V0GCogASgLMjEu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BY2NvdW50QnVk", + "Z2V0EloKF2FjY291bnRfYnVkZ2V0X3Byb3Bvc2FsGCsgASgLMjkuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BY2NvdW50QnVkZ2V0UHJv", + "cG9zYWwSRgoMYWNjb3VudF9saW5rGI8BIAEoCzIvLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuQWNjb3VudExpbmsSPQoIYWRfZ3JvdXAY", + "AyABKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFk", + "R3JvdXASQgoLYWRfZ3JvdXBfYWQYECABKAsyLS5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQucmVzb3VyY2VzLkFkR3JvdXBBZBJuCiJhZF9ncm91cF9hZF9h", + "c3NldF9jb21iaW5hdGlvbl92aWV3GMEBIAEoCzJBLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRHcm91cEFkQXNzZXRDb21iaW5hdGlv", + "blZpZXcSVwoWYWRfZ3JvdXBfYWRfYXNzZXRfdmlldxiDASABKAsyNi5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkR3JvdXBBZEFzc2V0", + "VmlldxJNChFhZF9ncm91cF9hZF9sYWJlbBh4IAEoCzIyLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRHcm91cEFkTGFiZWwSSQoOYWRf", + "Z3JvdXBfYXNzZXQYmgEgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnJlc291cmNlcy5BZEdyb3VwQXNzZXQSUAoSYWRfZ3JvdXBfYXNzZXRfc2V0", + "GMQBIAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", + "QWRHcm91cEFzc2V0U2V0ElcKFmFkX2dyb3VwX2F1ZGllbmNlX3ZpZXcYOSAB", + "KAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkR3Jv", + "dXBBdWRpZW5jZVZpZXcSVQoVYWRfZ3JvdXBfYmlkX21vZGlmaWVyGBggASgL", + "MjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BZEdyb3Vw", + "QmlkTW9kaWZpZXISUAoSYWRfZ3JvdXBfY3JpdGVyaW9uGBEgASgLMjQuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BZEdyb3VwQ3JpdGVy", + "aW9uEmYKHWFkX2dyb3VwX2NyaXRlcmlvbl9jdXN0b21pemVyGLsBIAEoCzI+", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRHcm91cENy", + "aXRlcmlvbkN1c3RvbWl6ZXISWwoYYWRfZ3JvdXBfY3JpdGVyaW9uX2xhYmVs", + "GHkgASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5B", + "ZEdyb3VwQ3JpdGVyaW9uTGFiZWwSZQodYWRfZ3JvdXBfY3JpdGVyaW9uX3Np", + "bXVsYXRpb24YbiABKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", + "b3VyY2VzLkFkR3JvdXBDcml0ZXJpb25TaW11bGF0aW9uElMKE2FkX2dyb3Vw", + "X2N1c3RvbWl6ZXIYuQEgASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnJlc291cmNlcy5BZEdyb3VwQ3VzdG9taXplchJfChphZF9ncm91cF9leHRl", + "bnNpb25fc2V0dGluZxhwIAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5yZXNvdXJjZXMuQWRHcm91cEV4dGVuc2lvblNldHRpbmcSRgoNYWRfZ3Jv", + "dXBfZmVlZBhDIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", + "dXJjZXMuQWRHcm91cEZlZWQSSAoOYWRfZ3JvdXBfbGFiZWwYcyABKAsyMC5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkR3JvdXBMYWJl", + "bBJSChNhZF9ncm91cF9zaW11bGF0aW9uGGsgASgLMjUuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LnJlc291cmNlcy5BZEdyb3VwU2ltdWxhdGlvbhJGCgxh", + "ZF9wYXJhbWV0ZXIYggEgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnJlc291cmNlcy5BZFBhcmFtZXRlchJICg5hZ2VfcmFuZ2VfdmlldxgwIAEo", + "CzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWdlUmFu", + "Z2VWaWV3EkwKEGFkX3NjaGVkdWxlX3ZpZXcYWSABKAsyMi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkU2NoZWR1bGVWaWV3EksKD2Rv", + "bWFpbl9jYXRlZ29yeRhbIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5yZXNvdXJjZXMuRG9tYWluQ2F0ZWdvcnkSOAoFYXNzZXQYaSABKAsyKS5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFzc2V0ElYKFWFz", + "c2V0X2ZpZWxkX3R5cGVfdmlldxioASABKAsyNi5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQucmVzb3VyY2VzLkFzc2V0RmllbGRUeXBlVmlldxJPChFhc3Nl", + "dF9ncm91cF9hc3NldBitASABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQucmVzb3VyY2VzLkFzc2V0R3JvdXBBc3NldBJRChJhc3NldF9ncm91cF9z", + "aWduYWwYvwEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5Bc3NldEdyb3VwU2lnbmFsEmsKIGFzc2V0X2dyb3VwX2xpc3Rpbmdf", + "Z3JvdXBfZmlsdGVyGLYBIAEoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5yZXNvdXJjZXMuQXNzZXRHcm91cExpc3RpbmdHcm91cEZpbHRlchJnCh5h", + "c3NldF9ncm91cF9wcm9kdWN0X2dyb3VwX3ZpZXcYvQEgASgLMj4uZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5Bc3NldEdyb3VwUHJvZHVj", + "dEdyb3VwVmlldxJECgthc3NldF9ncm91cBisASABKAsyLi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFzc2V0R3JvdXASSwoPYXNzZXRf", + "c2V0X2Fzc2V0GLQBIAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5y", + "ZXNvdXJjZXMuQXNzZXRTZXRBc3NldBJACglhc3NldF9zZXQYswEgASgLMiwu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5Bc3NldFNldBJS", + "ChNhc3NldF9zZXRfdHlwZV92aWV3GMUBIAEoCzI0Lmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuQXNzZXRTZXRUeXBlVmlldxJACgliYXRj", + "aF9qb2IYiwEgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5CYXRjaEpvYhJZChZiaWRkaW5nX2RhdGFfZXhjbHVzaW9uGJ8BIAEo", + "CzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQmlkZGlu", + "Z0RhdGFFeGNsdXNpb24SaQoeYmlkZGluZ19zZWFzb25hbGl0eV9hZGp1c3Rt", + "ZW50GKABIAEoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", + "ZXMuQmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudBJNChBiaWRkaW5nX3N0", + "cmF0ZWd5GBIgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5CaWRkaW5nU3RyYXRlZ3kSYwobYmlkZGluZ19zdHJhdGVneV9zaW11", + "bGF0aW9uGJ4BIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", + "dXJjZXMuQmlkZGluZ1N0cmF0ZWd5U2ltdWxhdGlvbhJHCg1iaWxsaW5nX3Nl", + "dHVwGCkgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", + "cy5CaWxsaW5nU2V0dXASQAoJY2FsbF92aWV3GJgBIAEoCzIsLmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FsbFZpZXcSSwoPY2FtcGFp", + "Z25fYnVkZ2V0GBMgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", + "c291cmNlcy5DYW1wYWlnbkJ1ZGdldBI+CghjYW1wYWlnbhgCIAEoCzIsLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ24SSgoO", + "Y2FtcGFpZ25fYXNzZXQYjgEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnJlc291cmNlcy5DYW1wYWlnbkFzc2V0ElEKEmNhbXBhaWduX2Fzc2V0", + "X3NldBi1ASABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", + "Y2VzLkNhbXBhaWduQXNzZXRTZXQSWAoWY2FtcGFpZ25fYXVkaWVuY2Vfdmll", + "dxhFIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", + "Q2FtcGFpZ25BdWRpZW5jZVZpZXcSVgoVY2FtcGFpZ25fYmlkX21vZGlmaWVy", + "GBogASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5D", + "YW1wYWlnbkJpZE1vZGlmaWVyEl0KGGNhbXBhaWduX2NvbnZlcnNpb25fZ29h", + "bBivASABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", + "LkNhbXBhaWduQ29udmVyc2lvbkdvYWwSUQoSY2FtcGFpZ25fY3JpdGVyaW9u", + "GBQgASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5D", + "YW1wYWlnbkNyaXRlcmlvbhJUChNjYW1wYWlnbl9jdXN0b21pemVyGLoBIAEo", + "CzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFp", + "Z25DdXN0b21pemVyEkkKDmNhbXBhaWduX2RyYWZ0GDEgASgLMjEuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbkRyYWZ0EmAK", + "GmNhbXBhaWduX2V4dGVuc2lvbl9zZXR0aW5nGHEgASgLMjwuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbkV4dGVuc2lvblNl", + "dHRpbmcSRwoNY2FtcGFpZ25fZmVlZBg/IAEoCzIwLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ25GZWVkEkkKDmNhbXBhaWdu", + "X2dyb3VwGBkgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5DYW1wYWlnbkdyb3VwEkkKDmNhbXBhaWduX2xhYmVsGGwgASgLMjEu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbkxh", + "YmVsEmQKHGNhbXBhaWduX3NlYXJjaF90ZXJtX2luc2lnaHQYzAEgASgLMj0u", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnblNl", + "YXJjaFRlcm1JbnNpZ2h0ElIKE2NhbXBhaWduX3NoYXJlZF9zZXQYHiABKAsy", "NS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWdu", - "Q3JpdGVyaW9uElQKE2NhbXBhaWduX2N1c3RvbWl6ZXIYugEgASgLMjYuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnbkN1c3Rv", - "bWl6ZXISSQoOY2FtcGFpZ25fZHJhZnQYMSABKAsyMS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWduRHJhZnQSYAoaY2FtcGFp", - "Z25fZXh0ZW5zaW9uX3NldHRpbmcYcSABKAsyPC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWduRXh0ZW5zaW9uU2V0dGluZxJH", - "Cg1jYW1wYWlnbl9mZWVkGD8gASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5DYW1wYWlnbkZlZWQSSQoOY2FtcGFpZ25fZ3JvdXAY", - "GSABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNh", - "bXBhaWduR3JvdXASSQoOY2FtcGFpZ25fbGFiZWwYbCABKAsyMS5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNhbXBhaWduTGFiZWwSUgoT", - "Y2FtcGFpZ25fc2hhcmVkX3NldBgeIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5yZXNvdXJjZXMuQ2FtcGFpZ25TaGFyZWRTZXQSVAoTY2FtcGFp", - "Z25fc2ltdWxhdGlvbhidASABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQucmVzb3VyY2VzLkNhbXBhaWduU2ltdWxhdGlvbhJNChBjYXJyaWVyX2Nv", - "bnN0YW50GEIgASgLMjMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", - "cmNlcy5DYXJyaWVyQ29uc3RhbnQSRgoMY2hhbmdlX2V2ZW50GJEBIAEoCzIv", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2hhbmdlRXZl", - "bnQSRwoNY2hhbmdlX3N0YXR1cxglIAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5yZXNvdXJjZXMuQ2hhbmdlU3RhdHVzElAKEWNvbWJpbmVkX2F1", - "ZGllbmNlGJQBIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", - "dXJjZXMuQ29tYmluZWRBdWRpZW5jZRI/CghhdWRpZW5jZRi+ASABKAsyLC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkF1ZGllbmNlEk8K", - "EWNvbnZlcnNpb25fYWN0aW9uGGcgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5Db252ZXJzaW9uQWN0aW9uEmEKGmNvbnZlcnNp", - "b25fY3VzdG9tX3ZhcmlhYmxlGJkBIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5yZXNvdXJjZXMuQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlEmoK", - "H2NvbnZlcnNpb25fZ29hbF9jYW1wYWlnbl9jb25maWcYsQEgASgLMkAuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5Db252ZXJzaW9uR29h", - "bENhbXBhaWduQ29uZmlnElcKFWNvbnZlcnNpb25fdmFsdWVfcnVsZRikASAB", - "KAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNvbnZl", - "cnNpb25WYWx1ZVJ1bGUSXgoZY29udmVyc2lvbl92YWx1ZV9ydWxlX3NldBil", - "ASABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNv", - "bnZlcnNpb25WYWx1ZVJ1bGVTZXQSQQoKY2xpY2tfdmlldxh6IAEoCzItLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2xpY2tWaWV3ElAK", - "EWN1cnJlbmN5X2NvbnN0YW50GIYBIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5yZXNvdXJjZXMuQ3VycmVuY3lDb25zdGFudBJMCg9jdXN0b21f", - "YXVkaWVuY2UYkwEgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", - "c291cmNlcy5DdXN0b21BdWRpZW5jZRJZChZjdXN0b21fY29udmVyc2lvbl9n", - "b2FsGLABIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", - "ZXMuQ3VzdG9tQ29udmVyc2lvbkdvYWwSSwoPY3VzdG9tX2ludGVyZXN0GGgg", - "ASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DdXN0", - "b21JbnRlcmVzdBI+CghjdXN0b21lchgBIAEoCzIsLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9tZXISSgoOY3VzdG9tZXJfYXNz", - "ZXQYmwEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", - "cy5DdXN0b21lckFzc2V0ElEKEmN1c3RvbWVyX2Fzc2V0X3NldBjDASABKAsy", - "NC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkN1c3RvbWVy", - "QXNzZXRTZXQSYwobYWNjZXNzaWJsZV9iaWRkaW5nX3N0cmF0ZWd5GKkBIAEo", - "CzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWNjZXNz", - "aWJsZUJpZGRpbmdTdHJhdGVneRJUChNjdXN0b21lcl9jdXN0b21pemVyGLgB", + "U2hhcmVkU2V0ElQKE2NhbXBhaWduX3NpbXVsYXRpb24YnQEgASgLMjYuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DYW1wYWlnblNpbXVs", + "YXRpb24STQoQY2Fycmllcl9jb25zdGFudBhCIAEoCzIzLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ2FycmllckNvbnN0YW50EkYKDGNo", + "YW5nZV9ldmVudBiRASABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "cmVzb3VyY2VzLkNoYW5nZUV2ZW50EkcKDWNoYW5nZV9zdGF0dXMYJSABKAsy", + "MC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNoYW5nZVN0", + "YXR1cxJQChFjb21iaW5lZF9hdWRpZW5jZRiUASABKAsyNC5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNvbWJpbmVkQXVkaWVuY2USPwoI", + "YXVkaWVuY2UYvgEgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", + "c291cmNlcy5BdWRpZW5jZRJPChFjb252ZXJzaW9uX2FjdGlvbhhnIAEoCzI0", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ29udmVyc2lv", + "bkFjdGlvbhJhChpjb252ZXJzaW9uX2N1c3RvbV92YXJpYWJsZRiZASABKAsy", + "PC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkNvbnZlcnNp", + "b25DdXN0b21WYXJpYWJsZRJqCh9jb252ZXJzaW9uX2dvYWxfY2FtcGFpZ25f", + "Y29uZmlnGLEBIAEoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", + "dXJjZXMuQ29udmVyc2lvbkdvYWxDYW1wYWlnbkNvbmZpZxJXChVjb252ZXJz", + "aW9uX3ZhbHVlX3J1bGUYpAEgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnJlc291cmNlcy5Db252ZXJzaW9uVmFsdWVSdWxlEl4KGWNvbnZlcnNp", + "b25fdmFsdWVfcnVsZV9zZXQYpQEgASgLMjouZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LnJlc291cmNlcy5Db252ZXJzaW9uVmFsdWVSdWxlU2V0EkEKCmNs", + "aWNrX3ZpZXcYeiABKAsyLS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", + "b3VyY2VzLkNsaWNrVmlldxJQChFjdXJyZW5jeV9jb25zdGFudBiGASABKAsy", + "NC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkN1cnJlbmN5", + "Q29uc3RhbnQSTAoPY3VzdG9tX2F1ZGllbmNlGJMBIAEoCzIyLmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9tQXVkaWVuY2USWQoW", + "Y3VzdG9tX2NvbnZlcnNpb25fZ29hbBiwASABKAsyOC5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQucmVzb3VyY2VzLkN1c3RvbUNvbnZlcnNpb25Hb2FsEksK", + "D2N1c3RvbV9pbnRlcmVzdBhoIAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5yZXNvdXJjZXMuQ3VzdG9tSW50ZXJlc3QSPgoIY3VzdG9tZXIYASAB", + "KAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkN1c3Rv", + "bWVyEkoKDmN1c3RvbWVyX2Fzc2V0GJsBIAEoCzIxLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9tZXJBc3NldBJRChJjdXN0b21l", + "cl9hc3NldF9zZXQYwwEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnJlc291cmNlcy5DdXN0b21lckFzc2V0U2V0EmMKG2FjY2Vzc2libGVfYmlk", + "ZGluZ19zdHJhdGVneRipASABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQucmVzb3VyY2VzLkFjY2Vzc2libGVCaWRkaW5nU3RyYXRlZ3kSVAoTY3Vz", + "dG9tZXJfY3VzdG9taXplchi4ASABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQucmVzb3VyY2VzLkN1c3RvbWVyQ3VzdG9taXplchJWChVjdXN0b21l", + "cl9tYW5hZ2VyX2xpbmsYPSABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQucmVzb3VyY2VzLkN1c3RvbWVyTWFuYWdlckxpbmsSVAoUY3VzdG9tZXJf", + "Y2xpZW50X2xpbmsYPiABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "cmVzb3VyY2VzLkN1c3RvbWVyQ2xpZW50TGluaxJLCg9jdXN0b21lcl9jbGll", + "bnQYRiABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", + "LkN1c3RvbWVyQ2xpZW50El0KGGN1c3RvbWVyX2NvbnZlcnNpb25fZ29hbBiu", + "ASABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkN1", + "c3RvbWVyQ29udmVyc2lvbkdvYWwSYAoaY3VzdG9tZXJfZXh0ZW5zaW9uX3Nl", + "dHRpbmcYciABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", + "Y2VzLkN1c3RvbWVyRXh0ZW5zaW9uU2V0dGluZxJHCg1jdXN0b21lcl9mZWVk", + "GEAgASgLMjAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5D", + "dXN0b21lckZlZWQSSQoOY3VzdG9tZXJfbGFiZWwYfCABKAsyMS5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkN1c3RvbWVyTGFiZWwSYgob", + "Y3VzdG9tZXJfbmVnYXRpdmVfY3JpdGVyaW9uGFggASgLMj0uZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DdXN0b21lck5lZ2F0aXZlQ3Jp", + "dGVyaW9uEmQKHGN1c3RvbWVyX3NlYXJjaF90ZXJtX2luc2lnaHQYzQEgASgL", + "Mj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DdXN0b21l", + "clNlYXJjaFRlcm1JbnNpZ2h0ElUKFGN1c3RvbWVyX3VzZXJfYWNjZXNzGJIB", "IAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3Vz", - "dG9tZXJDdXN0b21pemVyElYKFWN1c3RvbWVyX21hbmFnZXJfbGluaxg9IAEo", - "CzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9t", - "ZXJNYW5hZ2VyTGluaxJUChRjdXN0b21lcl9jbGllbnRfbGluaxg+IAEoCzI2", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9tZXJD", - "bGllbnRMaW5rEksKD2N1c3RvbWVyX2NsaWVudBhGIAEoCzIyLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9tZXJDbGllbnQSXQoY", - "Y3VzdG9tZXJfY29udmVyc2lvbl9nb2FsGK4BIAEoCzI6Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9tZXJDb252ZXJzaW9uR29h", - "bBJgChpjdXN0b21lcl9leHRlbnNpb25fc2V0dGluZxhyIAEoCzI8Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQ3VzdG9tZXJFeHRlbnNp", - "b25TZXR0aW5nEkcKDWN1c3RvbWVyX2ZlZWQYQCABKAsyMC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkN1c3RvbWVyRmVlZBJJCg5jdXN0", - "b21lcl9sYWJlbBh8IAEoCzIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5y", - "ZXNvdXJjZXMuQ3VzdG9tZXJMYWJlbBJiChtjdXN0b21lcl9uZWdhdGl2ZV9j", - "cml0ZXJpb24YWCABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzLkN1c3RvbWVyTmVnYXRpdmVDcml0ZXJpb24SVQoUY3VzdG9tZXJf", - "dXNlcl9hY2Nlc3MYkgEgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LnJlc291cmNlcy5DdXN0b21lclVzZXJBY2Nlc3MSagofY3VzdG9tZXJfdXNl", - "cl9hY2Nlc3NfaW52aXRhdGlvbhiWASABKAsyQC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQucmVzb3VyY2VzLkN1c3RvbWVyVXNlckFjY2Vzc0ludml0YXRp", - "b24SVgoUY3VzdG9taXplcl9hdHRyaWJ1dGUYsgEgASgLMjcuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5DdXN0b21pemVyQXR0cmlidXRl", - "ElYKFWRldGFpbF9wbGFjZW1lbnRfdmlldxh2IAEoCzI3Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuRGV0YWlsUGxhY2VtZW50VmlldxJW", - "ChRkZXRhaWxlZF9kZW1vZ3JhcGhpYximASABKAsyNy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLkRldGFpbGVkRGVtb2dyYXBoaWMSVAoU", - "ZGlzcGxheV9rZXl3b3JkX3ZpZXcYLyABKAsyNi5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQucmVzb3VyY2VzLkRpc3BsYXlLZXl3b3JkVmlldxJICg1kaXN0", - "YW5jZV92aWV3GIQBIAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5y", - "ZXNvdXJjZXMuRGlzdGFuY2VWaWV3Em8KI2R5bmFtaWNfc2VhcmNoX2Fkc19z", - "ZWFyY2hfdGVybV92aWV3GGogASgLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnJlc291cmNlcy5EeW5hbWljU2VhcmNoQWRzU2VhcmNoVGVybVZpZXcS", - "YAoaZXhwYW5kZWRfbGFuZGluZ19wYWdlX3ZpZXcYgAEgASgLMjsuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5FeHBhbmRlZExhbmRpbmdQ", - "YWdlVmlldxJSChNleHRlbnNpb25fZmVlZF9pdGVtGFUgASgLMjUuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5FeHRlbnNpb25GZWVkSXRl", - "bRI2CgRmZWVkGC4gASgLMiguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", - "c291cmNlcy5GZWVkEj8KCWZlZWRfaXRlbRgyIAEoCzIsLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuRmVlZEl0ZW0SRwoNZmVlZF9pdGVt", - "X3NldBiVASABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", - "Y2VzLkZlZWRJdGVtU2V0ElAKEmZlZWRfaXRlbV9zZXRfbGluaxiXASABKAsy", - "My5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkZlZWRJdGVt", - "U2V0TGluaxJMChBmZWVkX2l0ZW1fdGFyZ2V0GHQgASgLMjIuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5GZWVkSXRlbVRhcmdldBJFCgxm", - "ZWVkX21hcHBpbmcYOiABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "cmVzb3VyY2VzLkZlZWRNYXBwaW5nElYKFWZlZWRfcGxhY2Vob2xkZXJfdmll", - "dxhhIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", - "RmVlZFBsYWNlaG9sZGVyVmlldxJDCgtnZW5kZXJfdmlldxgoIAEoCzIuLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuR2VuZGVyVmlldxJS", - "ChNnZW9fdGFyZ2V0X2NvbnN0YW50GBcgASgLMjUuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LnJlc291cmNlcy5HZW9UYXJnZXRDb25zdGFudBJLCg9nZW9n", - "cmFwaGljX3ZpZXcYfSABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "cmVzb3VyY2VzLkdlb2dyYXBoaWNWaWV3ElQKFGdyb3VwX3BsYWNlbWVudF92", - "aWV3GHcgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", - "cy5Hcm91cFBsYWNlbWVudFZpZXcSTAoQaG90ZWxfZ3JvdXBfdmlldxgzIAEo", - "CzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuSG90ZWxH", - "cm91cFZpZXcSWAoWaG90ZWxfcGVyZm9ybWFuY2VfdmlldxhHIAEoCzI4Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuSG90ZWxQZXJmb3Jt", - "YW5jZVZpZXcSVgoUaG90ZWxfcmVjb25jaWxpYXRpb24YvAEgASgLMjcuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5Ib3RlbFJlY29uY2ls", - "aWF0aW9uEk8KEWluY29tZV9yYW5nZV92aWV3GIoBIAEoCzIzLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuSW5jb21lUmFuZ2VWaWV3EkUK", - "DGtleXdvcmRfdmlldxgVIAEoCzIvLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5yZXNvdXJjZXMuS2V5d29yZFZpZXcSRQoMa2V5d29yZF9wbGFuGCAgASgL", - "Mi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5LZXl3b3Jk", - "UGxhbhJWChVrZXl3b3JkX3BsYW5fY2FtcGFpZ24YISABKAsyNy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLktleXdvcmRQbGFuQ2FtcGFp", - "Z24SZgoda2V5d29yZF9wbGFuX2NhbXBhaWduX2tleXdvcmQYjAEgASgLMj4u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5LZXl3b3JkUGxh", - "bkNhbXBhaWduS2V5d29yZBJVChVrZXl3b3JkX3BsYW5fYWRfZ3JvdXAYIyAB", - "KAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLktleXdv", - "cmRQbGFuQWRHcm91cBJlCh1rZXl3b3JkX3BsYW5fYWRfZ3JvdXBfa2V5d29y", - "ZBiNASABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", - "LktleXdvcmRQbGFuQWRHcm91cEtleXdvcmQSWQoWa2V5d29yZF90aGVtZV9j", - "b25zdGFudBijASABKAsyOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzLktleXdvcmRUaGVtZUNvbnN0YW50EjgKBWxhYmVsGDQgASgLMiku", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5MYWJlbBJOChFs", - "YW5kaW5nX3BhZ2Vfdmlldxh+IAEoCzIzLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5yZXNvdXJjZXMuTGFuZGluZ1BhZ2VWaWV3Ek8KEWxhbmd1YWdlX2Nv", - "bnN0YW50GDcgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", - "cmNlcy5MYW5ndWFnZUNvbnN0YW50EkcKDWxvY2F0aW9uX3ZpZXcYeyABKAsy", - "MC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkxvY2F0aW9u", - "VmlldxJYChZtYW5hZ2VkX3BsYWNlbWVudF92aWV3GDUgASgLMjguZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5NYW5hZ2VkUGxhY2VtZW50", - "VmlldxJBCgptZWRpYV9maWxlGFogASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5NZWRpYUZpbGUSYwocbW9iaWxlX2FwcF9jYXRl", - "Z29yeV9jb25zdGFudBhXIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5yZXNvdXJjZXMuTW9iaWxlQXBwQ2F0ZWdvcnlDb25zdGFudBJYChZtb2Jp", - "bGVfZGV2aWNlX2NvbnN0YW50GGIgASgLMjguZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5Nb2JpbGVEZXZpY2VDb25zdGFudBJWChVvZmZs", - "aW5lX3VzZXJfZGF0YV9qb2IYiQEgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5PZmZsaW5lVXNlckRhdGFKb2ISbQohb3BlcmF0", - "aW5nX3N5c3RlbV92ZXJzaW9uX2NvbnN0YW50GFYgASgLMkIuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5PcGVyYXRpbmdTeXN0ZW1WZXJz", - "aW9uQ29uc3RhbnQSZQodcGFpZF9vcmdhbmljX3NlYXJjaF90ZXJtX3ZpZXcY", - "gQEgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5Q", - "YWlkT3JnYW5pY1NlYXJjaFRlcm1WaWV3ElQKE3F1YWxpZnlpbmdfcXVlc3Rp", - "b24YygEgASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", - "cy5RdWFsaWZ5aW5nUXVlc3Rpb24SVAoUcGFyZW50YWxfc3RhdHVzX3ZpZXcY", - "LSABKAsyNi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlBh", - "cmVudGFsU3RhdHVzVmlldxJJCg5wZXJfc3RvcmVfdmlldxjGASABKAsyMC5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlBlclN0b3JlVmll", - "dxJtCiFwcm9kdWN0X2JpZGRpbmdfY2F0ZWdvcnlfY29uc3RhbnQYbSABKAsy", - "Qi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlByb2R1Y3RC", - "aWRkaW5nQ2F0ZWdvcnlDb25zdGFudBJQChJwcm9kdWN0X2dyb3VwX3ZpZXcY", - "NiABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlBy", - "b2R1Y3RHcm91cFZpZXcSRgoMcHJvZHVjdF9saW5rGMIBIAEoCzIvLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuUHJvZHVjdExpbmsSSgoO", - "cmVjb21tZW5kYXRpb24YFiABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uEkwKEHNlYXJjaF90ZXJtX3Zp", - "ZXcYRCABKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", - "LlNlYXJjaFRlcm1WaWV3Ek0KEHNoYXJlZF9jcml0ZXJpb24YHSABKAsyMy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlNoYXJlZENyaXRl", - "cmlvbhJBCgpzaGFyZWRfc2V0GBsgASgLMi0uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnJlc291cmNlcy5TaGFyZWRTZXQSWQoWc21hcnRfY2FtcGFpZ25f", - "c2V0dGluZxinASABKAsyOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", - "b3VyY2VzLlNtYXJ0Q2FtcGFpZ25TZXR0aW5nEl4KGXNob3BwaW5nX3BlcmZv", - "cm1hbmNlX3ZpZXcYdSABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "cmVzb3VyY2VzLlNob3BwaW5nUGVyZm9ybWFuY2VWaWV3EmkKH3NtYXJ0X2Nh", - "bXBhaWduX3NlYXJjaF90ZXJtX3ZpZXcYqgEgASgLMj8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnJlc291cmNlcy5TbWFydENhbXBhaWduU2VhcmNoVGVy", - "bVZpZXcSZwoedGhpcmRfcGFydHlfYXBwX2FuYWx5dGljc19saW5rGJABIAEo", - "CzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuVGhpcmRQ", - "YXJ0eUFwcEFuYWx5dGljc0xpbmsSQQoKdG9waWNfdmlldxgsIAEoCzItLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuVG9waWNWaWV3EmAK", - "GnRyYXZlbF9hY3Rpdml0eV9ncm91cF92aWV3GMkBIAEoCzI7Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuVHJhdmVsQWN0aXZpdHlHcm91", - "cFZpZXcSbAogdHJhdmVsX2FjdGl2aXR5X3BlcmZvcm1hbmNlX3ZpZXcYyAEg", - "ASgLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5UcmF2", - "ZWxBY3Rpdml0eVBlcmZvcm1hbmNlVmlldxJDCgpleHBlcmltZW50GIUBIAEo", - "CzIuLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuRXhwZXJp", - "bWVudBJKCg5leHBlcmltZW50X2FybRi3ASABKAsyMS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLkV4cGVyaW1lbnRBcm0SRwoNdXNlcl9p", - "bnRlcmVzdBg7IAEoCzIwLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", - "dXJjZXMuVXNlckludGVyZXN0EkIKCmxpZmVfZXZlbnQYoQEgASgLMi0uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5MaWZlRXZlbnQSPwoJ", - "dXNlcl9saXN0GCYgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", - "c291cmNlcy5Vc2VyTGlzdBJRChJ1c2VyX2xvY2F0aW9uX3ZpZXcYhwEgASgL", - "MjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5Vc2VyTG9j", - "YXRpb25WaWV3ElEKEnJlbWFya2V0aW5nX2FjdGlvbhg8IAEoCzI1Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuUmVtYXJrZXRpbmdBY3Rp", - "b24SSQoOdG9waWNfY29uc3RhbnQYHyABKAsyMS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQucmVzb3VyY2VzLlRvcGljQ29uc3RhbnQSOAoFdmlkZW8YJyAB", - "KAsyKS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlZpZGVv", - "EkYKDHdlYnBhZ2VfdmlldxiiASABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQucmVzb3VyY2VzLldlYnBhZ2VWaWV3El4KGWxlYWRfZm9ybV9zdWJt", - "aXNzaW9uX2RhdGEYwAEgASgLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LnJlc291cmNlcy5MZWFkRm9ybVN1Ym1pc3Npb25EYXRhEjkKB21ldHJpY3MY", - "BCABKAsyKC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLk1ldHJp", - "Y3MSOwoIc2VnbWVudHMYZiABKAsyKS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuY29tbW9uLlNlZ21lbnRzIqICChZNdXRhdGVHb29nbGVBZHNSZXF1ZXN0", - "EhgKC2N1c3RvbWVyX2lkGAEgASgJQgPgQQISUgoRbXV0YXRlX29wZXJhdGlv", - "bnMYAiADKAsyMi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", - "TXV0YXRlT3BlcmF0aW9uQgPgQQISFwoPcGFydGlhbF9mYWlsdXJlGAMgASgI", - "EhUKDXZhbGlkYXRlX29ubHkYBCABKAgSagoVcmVzcG9uc2VfY29udGVudF90", - "eXBlGAUgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlJl", - "c3BvbnNlQ29udGVudFR5cGVFbnVtLlJlc3BvbnNlQ29udGVudFR5cGUirAEK", - "F011dGF0ZUdvb2dsZUFkc1Jlc3BvbnNlEjEKFXBhcnRpYWxfZmFpbHVyZV9l", - "cnJvchgDIAEoCzISLmdvb2dsZS5ycGMuU3RhdHVzEl4KGm11dGF0ZV9vcGVy", - "YXRpb25fcmVzcG9uc2VzGAEgAygLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnNlcnZpY2VzLk11dGF0ZU9wZXJhdGlvblJlc3BvbnNlIoI7Cg9NdXRh", - "dGVPcGVyYXRpb24SYQobYWRfZ3JvdXBfYWRfbGFiZWxfb3BlcmF0aW9uGBEg", - "ASgLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkFkR3Jv", - "dXBBZExhYmVsT3BlcmF0aW9uSAASVgoVYWRfZ3JvdXBfYWRfb3BlcmF0aW9u", - "GAEgASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkFk", - "R3JvdXBBZE9wZXJhdGlvbkgAElwKGGFkX2dyb3VwX2Fzc2V0X29wZXJhdGlv", - "bhg4IAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5B", - "ZEdyb3VwQXNzZXRPcGVyYXRpb25IABJpCh9hZF9ncm91cF9iaWRfbW9kaWZp", - "ZXJfb3BlcmF0aW9uGAIgASgLMj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LnNlcnZpY2VzLkFkR3JvdXBCaWRNb2RpZmllck9wZXJhdGlvbkgAEnkKJ2Fk", - "X2dyb3VwX2NyaXRlcmlvbl9jdXN0b21pemVyX29wZXJhdGlvbhhNIAEoCzJG", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZEdyb3VwQ3Jp", - "dGVyaW9uQ3VzdG9taXplck9wZXJhdGlvbkgAEm8KImFkX2dyb3VwX2NyaXRl", - "cmlvbl9sYWJlbF9vcGVyYXRpb24YEiABKAsyQS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuQWRHcm91cENyaXRlcmlvbkxhYmVsT3BlcmF0", - "aW9uSAASZAocYWRfZ3JvdXBfY3JpdGVyaW9uX29wZXJhdGlvbhgDIAEoCzI8", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZEdyb3VwQ3Jp", - "dGVyaW9uT3BlcmF0aW9uSAASZgodYWRfZ3JvdXBfY3VzdG9taXplcl9vcGVy", - "YXRpb24YSyABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", - "ZXMuQWRHcm91cEN1c3RvbWl6ZXJPcGVyYXRpb25IABJzCiRhZF9ncm91cF9l", - "eHRlbnNpb25fc2V0dGluZ19vcGVyYXRpb24YEyABKAsyQy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuQWRHcm91cEV4dGVuc2lvblNldHRp", - "bmdPcGVyYXRpb25IABJaChdhZF9ncm91cF9mZWVkX29wZXJhdGlvbhgUIAEo", - "CzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZEdyb3Vw", - "RmVlZE9wZXJhdGlvbkgAElwKGGFkX2dyb3VwX2xhYmVsX29wZXJhdGlvbhgV", - "IAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZEdy", - "b3VwTGFiZWxPcGVyYXRpb25IABJRChJhZF9ncm91cF9vcGVyYXRpb24YBSAB", - "KAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQWRHcm91", - "cE9wZXJhdGlvbkgAEkYKDGFkX29wZXJhdGlvbhgxIAEoCzIuLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZE9wZXJhdGlvbkgAElkKFmFk", - "X3BhcmFtZXRlcl9vcGVyYXRpb24YFiABKAsyNy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuQWRQYXJhbWV0ZXJPcGVyYXRpb25IABJMCg9h", - "c3NldF9vcGVyYXRpb24YFyABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuc2VydmljZXMuQXNzZXRPcGVyYXRpb25IABJiChthc3NldF9ncm91cF9h", - "c3NldF9vcGVyYXRpb24YQSABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuc2VydmljZXMuQXNzZXRHcm91cEFzc2V0T3BlcmF0aW9uSAASfgoqYXNz", - "ZXRfZ3JvdXBfbGlzdGluZ19ncm91cF9maWx0ZXJfb3BlcmF0aW9uGE4gASgL", - "MkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkFzc2V0R3Jv", - "dXBMaXN0aW5nR3JvdXBGaWx0ZXJPcGVyYXRpb25IABJkChxhc3NldF9ncm91", - "cF9zaWduYWxfb3BlcmF0aW9uGFAgASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnNlcnZpY2VzLkFzc2V0R3JvdXBTaWduYWxPcGVyYXRpb25IABJX", - "ChVhc3NldF9ncm91cF9vcGVyYXRpb24YPiABKAsyNi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuc2VydmljZXMuQXNzZXRHcm91cE9wZXJhdGlvbkgAEl4K", - "GWFzc2V0X3NldF9hc3NldF9vcGVyYXRpb24YRyABKAsyOS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuQXNzZXRTZXRBc3NldE9wZXJhdGlv", - "bkgAElMKE2Fzc2V0X3NldF9vcGVyYXRpb24YSCABKAsyNC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuQXNzZXRTZXRPcGVyYXRpb25IABJS", - "ChJhdWRpZW5jZV9vcGVyYXRpb24YUSABKAsyNC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuQXVkaWVuY2VPcGVyYXRpb25IABJsCiBiaWRk", - "aW5nX2RhdGFfZXhjbHVzaW9uX29wZXJhdGlvbhg6IAEoCzJALmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5CaWRkaW5nRGF0YUV4Y2x1c2lv", - "bk9wZXJhdGlvbkgAEnwKKGJpZGRpbmdfc2Vhc29uYWxpdHlfYWRqdXN0bWVu", - "dF9vcGVyYXRpb24YOyABKAsySC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "c2VydmljZXMuQmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVudE9wZXJhdGlv", - "bkgAEmEKGmJpZGRpbmdfc3RyYXRlZ3lfb3BlcmF0aW9uGAYgASgLMjsuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkJpZGRpbmdTdHJhdGVn", - "eU9wZXJhdGlvbkgAEl0KGGNhbXBhaWduX2Fzc2V0X29wZXJhdGlvbhg0IAEo", - "CzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DYW1wYWln", - "bkFzc2V0T3BlcmF0aW9uSAASZAocY2FtcGFpZ25fYXNzZXRfc2V0X29wZXJh", - "dGlvbhhJIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNl", - "cy5DYW1wYWlnbkFzc2V0U2V0T3BlcmF0aW9uSAASagofY2FtcGFpZ25fYmlk", - "X21vZGlmaWVyX29wZXJhdGlvbhgHIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5zZXJ2aWNlcy5DYW1wYWlnbkJpZE1vZGlmaWVyT3BlcmF0aW9u", - "SAASXwoZY2FtcGFpZ25fYnVkZ2V0X29wZXJhdGlvbhgIIAEoCzI6Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DYW1wYWlnbkJ1ZGdldE9w", - "ZXJhdGlvbkgAEnAKImNhbXBhaWduX2NvbnZlcnNpb25fZ29hbF9vcGVyYXRp", - "b24YQyABKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", - "Q2FtcGFpZ25Db252ZXJzaW9uR29hbE9wZXJhdGlvbkgAEmUKHGNhbXBhaWdu", - "X2NyaXRlcmlvbl9vcGVyYXRpb24YDSABKAsyPS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuQ2FtcGFpZ25Dcml0ZXJpb25PcGVyYXRpb25I", - "ABJnCh1jYW1wYWlnbl9jdXN0b21pemVyX29wZXJhdGlvbhhMIAEoCzI+Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DYW1wYWlnbkN1c3Rv", - "bWl6ZXJPcGVyYXRpb25IABJdChhjYW1wYWlnbl9kcmFmdF9vcGVyYXRpb24Y", - "GCABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ2Ft", - "cGFpZ25EcmFmdE9wZXJhdGlvbkgAEnQKJGNhbXBhaWduX2V4dGVuc2lvbl9z", - "ZXR0aW5nX29wZXJhdGlvbhgaIAEoCzJELmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5zZXJ2aWNlcy5DYW1wYWlnbkV4dGVuc2lvblNldHRpbmdPcGVyYXRp", - "b25IABJbChdjYW1wYWlnbl9mZWVkX29wZXJhdGlvbhgbIAEoCzI4Lmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DYW1wYWlnbkZlZWRPcGVy", - "YXRpb25IABJdChhjYW1wYWlnbl9ncm91cF9vcGVyYXRpb24YCSABKAsyOS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ2FtcGFpZ25Hcm91", - "cE9wZXJhdGlvbkgAEl0KGGNhbXBhaWduX2xhYmVsX29wZXJhdGlvbhgcIAEo", - "CzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DYW1wYWln", - "bkxhYmVsT3BlcmF0aW9uSAASUgoSY2FtcGFpZ25fb3BlcmF0aW9uGAogASgL", - "MjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkNhbXBhaWdu", - "T3BlcmF0aW9uSAASZgodY2FtcGFpZ25fc2hhcmVkX3NldF9vcGVyYXRpb24Y", - "CyABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ2Ft", - "cGFpZ25TaGFyZWRTZXRPcGVyYXRpb25IABJjChtjb252ZXJzaW9uX2FjdGlv", - "bl9vcGVyYXRpb24YDCABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "c2VydmljZXMuQ29udmVyc2lvbkFjdGlvbk9wZXJhdGlvbkgAEnQKJGNvbnZl", - "cnNpb25fY3VzdG9tX3ZhcmlhYmxlX29wZXJhdGlvbhg3IAEoCzJELmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5Db252ZXJzaW9uQ3VzdG9t", - "VmFyaWFibGVPcGVyYXRpb25IABJ9Ciljb252ZXJzaW9uX2dvYWxfY2FtcGFp", - "Z25fY29uZmlnX29wZXJhdGlvbhhFIAEoCzJILmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5zZXJ2aWNlcy5Db252ZXJzaW9uR29hbENhbXBhaWduQ29uZmln", - "T3BlcmF0aW9uSAASagofY29udmVyc2lvbl92YWx1ZV9ydWxlX29wZXJhdGlv", - "bhg/IAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5D", - "b252ZXJzaW9uVmFsdWVSdWxlT3BlcmF0aW9uSAAScQojY29udmVyc2lvbl92", - "YWx1ZV9ydWxlX3NldF9vcGVyYXRpb24YQCABKAsyQi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuc2VydmljZXMuQ29udmVyc2lvblZhbHVlUnVsZVNldE9w", - "ZXJhdGlvbkgAEmwKIGN1c3RvbV9jb252ZXJzaW9uX2dvYWxfb3BlcmF0aW9u", - "GEQgASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkN1", - "c3RvbUNvbnZlcnNpb25Hb2FsT3BlcmF0aW9uSAASXQoYY3VzdG9tZXJfYXNz", - "ZXRfb3BlcmF0aW9uGDkgASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LnNlcnZpY2VzLkN1c3RvbWVyQXNzZXRPcGVyYXRpb25IABJwCiJjdXN0b21l", - "cl9jb252ZXJzaW9uX2dvYWxfb3BlcmF0aW9uGEIgASgLMkIuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkN1c3RvbWVyQ29udmVyc2lvbkdv", - "YWxPcGVyYXRpb25IABJnCh1jdXN0b21lcl9jdXN0b21pemVyX29wZXJhdGlv", - "bhhPIAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5D", - "dXN0b21lckN1c3RvbWl6ZXJPcGVyYXRpb25IABJ0CiRjdXN0b21lcl9leHRl", - "bnNpb25fc2V0dGluZ19vcGVyYXRpb24YHiABKAsyRC5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuc2VydmljZXMuQ3VzdG9tZXJFeHRlbnNpb25TZXR0aW5n", - "T3BlcmF0aW9uSAASWwoXY3VzdG9tZXJfZmVlZF9vcGVyYXRpb24YHyABKAsy", - "OC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ3VzdG9tZXJG", - "ZWVkT3BlcmF0aW9uSAASXQoYY3VzdG9tZXJfbGFiZWxfb3BlcmF0aW9uGCAg", - "ASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkN1c3Rv", - "bWVyTGFiZWxPcGVyYXRpb25IABJ2CiVjdXN0b21lcl9uZWdhdGl2ZV9jcml0", - "ZXJpb25fb3BlcmF0aW9uGCIgASgLMkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnNlcnZpY2VzLkN1c3RvbWVyTmVnYXRpdmVDcml0ZXJpb25PcGVyYXRp", - "b25IABJSChJjdXN0b21lcl9vcGVyYXRpb24YIyABKAsyNC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ3VzdG9tZXJPcGVyYXRpb25IABJp", - "Ch5jdXN0b21pemVyX2F0dHJpYnV0ZV9vcGVyYXRpb24YRiABKAsyPy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ3VzdG9taXplckF0dHJp", - "YnV0ZU9wZXJhdGlvbkgAElYKFGV4cGVyaW1lbnRfb3BlcmF0aW9uGFIgASgL", - "MjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkV4cGVyaW1l", - "bnRPcGVyYXRpb25IABJdChhleHBlcmltZW50X2FybV9vcGVyYXRpb24YUyAB", - "KAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuRXhwZXJp", - "bWVudEFybU9wZXJhdGlvbkgAEmYKHWV4dGVuc2lvbl9mZWVkX2l0ZW1fb3Bl", - "cmF0aW9uGCQgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", - "Y2VzLkV4dGVuc2lvbkZlZWRJdGVtT3BlcmF0aW9uSAASUwoTZmVlZF9pdGVt", - "X29wZXJhdGlvbhglIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5z", - "ZXJ2aWNlcy5GZWVkSXRlbU9wZXJhdGlvbkgAEloKF2ZlZWRfaXRlbV9zZXRf", - "b3BlcmF0aW9uGDUgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", - "cnZpY2VzLkZlZWRJdGVtU2V0T3BlcmF0aW9uSAASYwocZmVlZF9pdGVtX3Nl", - "dF9saW5rX29wZXJhdGlvbhg2IAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5zZXJ2aWNlcy5GZWVkSXRlbVNldExpbmtPcGVyYXRpb25IABJgChpm", - "ZWVkX2l0ZW1fdGFyZ2V0X29wZXJhdGlvbhgmIAEoCzI6Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5GZWVkSXRlbVRhcmdldE9wZXJhdGlv", - "bkgAElkKFmZlZWRfbWFwcGluZ19vcGVyYXRpb24YJyABKAsyNy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuRmVlZE1hcHBpbmdPcGVyYXRp", - "b25IABJKCg5mZWVkX29wZXJhdGlvbhgoIAEoCzIwLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5zZXJ2aWNlcy5GZWVkT3BlcmF0aW9uSAASaQofa2V5d29y", - "ZF9wbGFuX2FkX2dyb3VwX29wZXJhdGlvbhgsIAEoCzI+Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5LZXl3b3JkUGxhbkFkR3JvdXBPcGVy", - "YXRpb25IABJ4CidrZXl3b3JkX3BsYW5fYWRfZ3JvdXBfa2V5d29yZF9vcGVy", - "YXRpb24YMiABKAsyRS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", - "ZXMuS2V5d29yZFBsYW5BZEdyb3VwS2V5d29yZE9wZXJhdGlvbkgAEnkKJ2tl", - "eXdvcmRfcGxhbl9jYW1wYWlnbl9rZXl3b3JkX29wZXJhdGlvbhgzIAEoCzJG", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5LZXl3b3JkUGxh", - "bkNhbXBhaWduS2V5d29yZE9wZXJhdGlvbkgAEmoKH2tleXdvcmRfcGxhbl9j", - "YW1wYWlnbl9vcGVyYXRpb24YLSABKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuc2VydmljZXMuS2V5d29yZFBsYW5DYW1wYWlnbk9wZXJhdGlvbkgA", - "ElkKFmtleXdvcmRfcGxhbl9vcGVyYXRpb24YMCABKAsyNy5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuS2V5d29yZFBsYW5PcGVyYXRpb25I", - "ABJMCg9sYWJlbF9vcGVyYXRpb24YKSABKAsyMS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuTGFiZWxPcGVyYXRpb25IABJVChRtZWRpYV9m", - "aWxlX29wZXJhdGlvbhgqIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5zZXJ2aWNlcy5NZWRpYUZpbGVPcGVyYXRpb25IABJlChxyZW1hcmtldGlu", - "Z19hY3Rpb25fb3BlcmF0aW9uGCsgASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LnNlcnZpY2VzLlJlbWFya2V0aW5nQWN0aW9uT3BlcmF0aW9uSAAS", - "YQoac2hhcmVkX2NyaXRlcmlvbl9vcGVyYXRpb24YDiABKAsyOy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuU2hhcmVkQ3JpdGVyaW9uT3Bl", - "cmF0aW9uSAASVQoUc2hhcmVkX3NldF9vcGVyYXRpb24YDyABKAsyNS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuU2hhcmVkU2V0T3BlcmF0", - "aW9uSAASbAogc21hcnRfY2FtcGFpZ25fc2V0dGluZ19vcGVyYXRpb24YPSAB", - "KAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuU21hcnRD", - "YW1wYWlnblNldHRpbmdPcGVyYXRpb25IABJTChN1c2VyX2xpc3Rfb3BlcmF0", - "aW9uGBAgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2Vz", - "LlVzZXJMaXN0T3BlcmF0aW9uSABCCwoJb3BlcmF0aW9uIos7ChdNdXRhdGVP", - "cGVyYXRpb25SZXNwb25zZRJhChhhZF9ncm91cF9hZF9sYWJlbF9yZXN1bHQY", - "ESABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0", - "YXRlQWRHcm91cEFkTGFiZWxSZXN1bHRIABJWChJhZF9ncm91cF9hZF9yZXN1", - "bHQYASABKAsyOC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", - "TXV0YXRlQWRHcm91cEFkUmVzdWx0SAASXAoVYWRfZ3JvdXBfYXNzZXRfcmVz", - "dWx0GDggASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2Vz", - "Lk11dGF0ZUFkR3JvdXBBc3NldFJlc3VsdEgAEmkKHGFkX2dyb3VwX2JpZF9t", - "b2RpZmllcl9yZXN1bHQYAiABKAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuc2VydmljZXMuTXV0YXRlQWRHcm91cEJpZE1vZGlmaWVyUmVzdWx0SAAS", - "eQokYWRfZ3JvdXBfY3JpdGVyaW9uX2N1c3RvbWl6ZXJfcmVzdWx0GE0gASgL", - "MkkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUFk", - "R3JvdXBDcml0ZXJpb25DdXN0b21pemVyUmVzdWx0SAASbwofYWRfZ3JvdXBf", - "Y3JpdGVyaW9uX2xhYmVsX3Jlc3VsdBgSIAEoCzJELmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQ3JpdGVyaW9uTGFi", - "ZWxSZXN1bHRIABJkChlhZF9ncm91cF9jcml0ZXJpb25fcmVzdWx0GAMgASgL", - "Mj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUFk", - "R3JvdXBDcml0ZXJpb25SZXN1bHRIABJmChphZF9ncm91cF9jdXN0b21pemVy", - "X3Jlc3VsdBhLIAEoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2", - "aWNlcy5NdXRhdGVBZEdyb3VwQ3VzdG9taXplclJlc3VsdEgAEnMKIWFkX2dy", - "b3VwX2V4dGVuc2lvbl9zZXR0aW5nX3Jlc3VsdBgTIAEoCzJGLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwRXh0ZW5z", - "aW9uU2V0dGluZ1Jlc3VsdEgAEloKFGFkX2dyb3VwX2ZlZWRfcmVzdWx0GBQg", - "ASgLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0", - "ZUFkR3JvdXBGZWVkUmVzdWx0SAASXAoVYWRfZ3JvdXBfbGFiZWxfcmVzdWx0", - "GBUgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11", - "dGF0ZUFkR3JvdXBMYWJlbFJlc3VsdEgAElEKD2FkX2dyb3VwX3Jlc3VsdBgF", - "IAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRh", - "dGVBZEdyb3VwUmVzdWx0SAASWQoTYWRfcGFyYW1ldGVyX3Jlc3VsdBgWIAEo", - "CzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVB", - "ZFBhcmFtZXRlclJlc3VsdEgAEkYKCWFkX3Jlc3VsdBgxIAEoCzIxLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZFJlc3VsdEgA", - "EkwKDGFzc2V0X3Jlc3VsdBgXIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5zZXJ2aWNlcy5NdXRhdGVBc3NldFJlc3VsdEgAEmIKGGFzc2V0X2dy", - "b3VwX2Fzc2V0X3Jlc3VsdBhBIAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5zZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3VwQXNzZXRSZXN1bHRIABJ+", - "Cidhc3NldF9ncm91cF9saXN0aW5nX2dyb3VwX2ZpbHRlcl9yZXN1bHQYTiAB", - "KAsySy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRl", - "QXNzZXRHcm91cExpc3RpbmdHcm91cEZpbHRlclJlc3VsdEgAEmQKGWFzc2V0", - "X2dyb3VwX3NpZ25hbF9yZXN1bHQYTyABKAsyPy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQXNzZXRHcm91cFNpZ25hbFJlc3Vs", - "dEgAElcKEmFzc2V0X2dyb3VwX3Jlc3VsdBg+IAEoCzI5Lmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBc3NldEdyb3VwUmVzdWx0", - "SAASXgoWYXNzZXRfc2V0X2Fzc2V0X3Jlc3VsdBhHIAEoCzI8Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBc3NldFNldEFzc2V0", - "UmVzdWx0SAASUwoQYXNzZXRfc2V0X3Jlc3VsdBhIIAEoCzI3Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBc3NldFNldFJlc3Vs", - "dEgAElIKD2F1ZGllbmNlX3Jlc3VsdBhQIAEoCzI3Lmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBdWRpZW5jZVJlc3VsdEgAEm0K", - "HWJpZGRpbmdfZGF0YV9leGNsdXNpb25fcmVzdWx0GDogASgLMkQuZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUJpZGRpbmdEYXRh", - "RXhjbHVzaW9uc1Jlc3VsdEgAEn0KJWJpZGRpbmdfc2Vhc29uYWxpdHlfYWRq", - "dXN0bWVudF9yZXN1bHQYOyABKAsyTC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQuc2VydmljZXMuTXV0YXRlQmlkZGluZ1NlYXNvbmFsaXR5QWRqdXN0bWVu", - "dHNSZXN1bHRIABJhChdiaWRkaW5nX3N0cmF0ZWd5X3Jlc3VsdBgGIAEoCzI+", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVCaWRk", - "aW5nU3RyYXRlZ3lSZXN1bHRIABJdChVjYW1wYWlnbl9hc3NldF9yZXN1bHQY", - "NCABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0", - "YXRlQ2FtcGFpZ25Bc3NldFJlc3VsdEgAEmQKGWNhbXBhaWduX2Fzc2V0X3Nl", - "dF9yZXN1bHQYSSABKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vy", - "dmljZXMuTXV0YXRlQ2FtcGFpZ25Bc3NldFNldFJlc3VsdEgAEmoKHGNhbXBh", - "aWduX2JpZF9tb2RpZmllcl9yZXN1bHQYByABKAsyQi5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25CaWRNb2RpZmll", - "clJlc3VsdEgAEl8KFmNhbXBhaWduX2J1ZGdldF9yZXN1bHQYCCABKAsyPS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ2FtcGFp", - "Z25CdWRnZXRSZXN1bHRIABJwCh9jYW1wYWlnbl9jb252ZXJzaW9uX2dvYWxf", - "cmVzdWx0GEMgASgLMkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", - "Y2VzLk11dGF0ZUNhbXBhaWduQ29udmVyc2lvbkdvYWxSZXN1bHRIABJlChlj", - "YW1wYWlnbl9jcml0ZXJpb25fcmVzdWx0GA0gASgLMkAuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQ3JpdGVyaW9u", - "UmVzdWx0SAASZwoaY2FtcGFpZ25fY3VzdG9taXplcl9yZXN1bHQYTCABKAsy", - "QS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ2Ft", - "cGFpZ25DdXN0b21pemVyUmVzdWx0SAASXQoVY2FtcGFpZ25fZHJhZnRfcmVz", - "dWx0GBggASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2Vz", - "Lk11dGF0ZUNhbXBhaWduRHJhZnRSZXN1bHRIABJ0CiFjYW1wYWlnbl9leHRl", - "bnNpb25fc2V0dGluZ19yZXN1bHQYGiABKAsyRy5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25FeHRlbnNpb25TZXR0", - "aW5nUmVzdWx0SAASWwoUY2FtcGFpZ25fZmVlZF9yZXN1bHQYGyABKAsyOy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ2FtcGFp", - "Z25GZWVkUmVzdWx0SAASXQoVY2FtcGFpZ25fZ3JvdXBfcmVzdWx0GAkgASgL", - "MjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNh", - "bXBhaWduR3JvdXBSZXN1bHRIABJdChVjYW1wYWlnbl9sYWJlbF9yZXN1bHQY", - "HCABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0", - "YXRlQ2FtcGFpZ25MYWJlbFJlc3VsdEgAElIKD2NhbXBhaWduX3Jlc3VsdBgK", - "IAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRh", - "dGVDYW1wYWlnblJlc3VsdEgAEmYKGmNhbXBhaWduX3NoYXJlZF9zZXRfcmVz", - "dWx0GAsgASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2Vz", - "Lk11dGF0ZUNhbXBhaWduU2hhcmVkU2V0UmVzdWx0SAASYwoYY29udmVyc2lv", - "bl9hY3Rpb25fcmVzdWx0GAwgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LnNlcnZpY2VzLk11dGF0ZUNvbnZlcnNpb25BY3Rpb25SZXN1bHRIABJ0", - "CiFjb252ZXJzaW9uX2N1c3RvbV92YXJpYWJsZV9yZXN1bHQYNyABKAsyRy5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ29udmVy", - "c2lvbkN1c3RvbVZhcmlhYmxlUmVzdWx0SAASfQomY29udmVyc2lvbl9nb2Fs", - "X2NhbXBhaWduX2NvbmZpZ19yZXN1bHQYRSABKAsySy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ29udmVyc2lvbkdvYWxDYW1w", - "YWlnbkNvbmZpZ1Jlc3VsdEgAEmoKHGNvbnZlcnNpb25fdmFsdWVfcnVsZV9y", - "ZXN1bHQYPyABKAsyQi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", - "ZXMuTXV0YXRlQ29udmVyc2lvblZhbHVlUnVsZVJlc3VsdEgAEnEKIGNvbnZl", - "cnNpb25fdmFsdWVfcnVsZV9zZXRfcmVzdWx0GEAgASgLMkUuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNvbnZlcnNpb25WYWx1", - "ZVJ1bGVTZXRSZXN1bHRIABJsCh1jdXN0b21fY29udmVyc2lvbl9nb2FsX3Jl", - "c3VsdBhEIAEoCzJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNl", - "cy5NdXRhdGVDdXN0b21Db252ZXJzaW9uR29hbFJlc3VsdEgAEl0KFWN1c3Rv", - "bWVyX2Fzc2V0X3Jlc3VsdBg5IAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckFzc2V0UmVzdWx0SAAScAof", - "Y3VzdG9tZXJfY29udmVyc2lvbl9nb2FsX3Jlc3VsdBhCIAEoCzJFLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckNv", - "bnZlcnNpb25Hb2FsUmVzdWx0SAASZwoaY3VzdG9tZXJfY3VzdG9taXplcl9y", - "ZXN1bHQYSiABKAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", - "ZXMuTXV0YXRlQ3VzdG9tZXJDdXN0b21pemVyUmVzdWx0SAASdAohY3VzdG9t", - "ZXJfZXh0ZW5zaW9uX3NldHRpbmdfcmVzdWx0GB4gASgLMkcuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyRXh0ZW5z", - "aW9uU2V0dGluZ1Jlc3VsdEgAElsKFGN1c3RvbWVyX2ZlZWRfcmVzdWx0GB8g", - "ASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0", - "ZUN1c3RvbWVyRmVlZFJlc3VsdEgAEl0KFWN1c3RvbWVyX2xhYmVsX3Jlc3Vs", - "dBggIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5N", - "dXRhdGVDdXN0b21lckxhYmVsUmVzdWx0SAASdQoiY3VzdG9tZXJfbmVnYXRp", - "dmVfY3JpdGVyaW9uX3Jlc3VsdBgiIAEoCzJHLmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lck5lZ2F0aXZlQ3JpdGVy", - "aWFSZXN1bHRIABJSCg9jdXN0b21lcl9yZXN1bHQYIyABKAsyNy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJSZXN1", - "bHRIABJpChtjdXN0b21pemVyX2F0dHJpYnV0ZV9yZXN1bHQYRiABKAsyQi5n", + "dG9tZXJVc2VyQWNjZXNzEmoKH2N1c3RvbWVyX3VzZXJfYWNjZXNzX2ludml0", + "YXRpb24YlgEgASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5DdXN0b21lclVzZXJBY2Nlc3NJbnZpdGF0aW9uElYKFGN1c3RvbWl6", + "ZXJfYXR0cmlidXRlGLIBIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5yZXNvdXJjZXMuQ3VzdG9taXplckF0dHJpYnV0ZRJWChVkZXRhaWxfcGxh", + "Y2VtZW50X3ZpZXcYdiABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "cmVzb3VyY2VzLkRldGFpbFBsYWNlbWVudFZpZXcSVgoUZGV0YWlsZWRfZGVt", + "b2dyYXBoaWMYpgEgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", + "c291cmNlcy5EZXRhaWxlZERlbW9ncmFwaGljElQKFGRpc3BsYXlfa2V5d29y", + "ZF92aWV3GC8gASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5EaXNwbGF5S2V5d29yZFZpZXcSSAoNZGlzdGFuY2VfdmlldxiEASAB", + "KAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkRpc3Rh", + "bmNlVmlldxJvCiNkeW5hbWljX3NlYXJjaF9hZHNfc2VhcmNoX3Rlcm1fdmll", + "dxhqIAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", + "RHluYW1pY1NlYXJjaEFkc1NlYXJjaFRlcm1WaWV3EmAKGmV4cGFuZGVkX2xh", + "bmRpbmdfcGFnZV92aWV3GIABIAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5yZXNvdXJjZXMuRXhwYW5kZWRMYW5kaW5nUGFnZVZpZXcSUgoTZXh0", + "ZW5zaW9uX2ZlZWRfaXRlbRhVIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5yZXNvdXJjZXMuRXh0ZW5zaW9uRmVlZEl0ZW0SNgoEZmVlZBguIAEo", + "CzIoLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuRmVlZBI/", + "CglmZWVkX2l0ZW0YMiABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "cmVzb3VyY2VzLkZlZWRJdGVtEkcKDWZlZWRfaXRlbV9zZXQYlQEgASgLMi8u", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5GZWVkSXRlbVNl", + "dBJQChJmZWVkX2l0ZW1fc2V0X2xpbmsYlwEgASgLMjMuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LnJlc291cmNlcy5GZWVkSXRlbVNldExpbmsSTAoQZmVl", + "ZF9pdGVtX3RhcmdldBh0IAEoCzIyLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5yZXNvdXJjZXMuRmVlZEl0ZW1UYXJnZXQSRQoMZmVlZF9tYXBwaW5nGDog", + "ASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5GZWVk", + "TWFwcGluZxJWChVmZWVkX3BsYWNlaG9sZGVyX3ZpZXcYYSABKAsyNy5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkZlZWRQbGFjZWhvbGRl", + "clZpZXcSQwoLZ2VuZGVyX3ZpZXcYKCABKAsyLi5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQucmVzb3VyY2VzLkdlbmRlclZpZXcSUgoTZ2VvX3RhcmdldF9j", + "b25zdGFudBgXIAEoCzI1Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", + "dXJjZXMuR2VvVGFyZ2V0Q29uc3RhbnQSSwoPZ2VvZ3JhcGhpY192aWV3GH0g", + "ASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5HZW9n", + "cmFwaGljVmlldxJUChRncm91cF9wbGFjZW1lbnRfdmlldxh3IAEoCzI2Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuR3JvdXBQbGFjZW1l", + "bnRWaWV3EkwKEGhvdGVsX2dyb3VwX3ZpZXcYMyABKAsyMi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkhvdGVsR3JvdXBWaWV3ElgKFmhv", + "dGVsX3BlcmZvcm1hbmNlX3ZpZXcYRyABKAsyOC5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQucmVzb3VyY2VzLkhvdGVsUGVyZm9ybWFuY2VWaWV3ElYKFGhv", + "dGVsX3JlY29uY2lsaWF0aW9uGLwBIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5yZXNvdXJjZXMuSG90ZWxSZWNvbmNpbGlhdGlvbhJPChFpbmNv", + "bWVfcmFuZ2VfdmlldxiKASABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQucmVzb3VyY2VzLkluY29tZVJhbmdlVmlldxJFCgxrZXl3b3JkX3ZpZXcY", + "FSABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLktl", + "eXdvcmRWaWV3EkUKDGtleXdvcmRfcGxhbhggIAEoCzIvLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuS2V5d29yZFBsYW4SVgoVa2V5d29y", + "ZF9wbGFuX2NhbXBhaWduGCEgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnJlc291cmNlcy5LZXl3b3JkUGxhbkNhbXBhaWduEmYKHWtleXdvcmRf", + "cGxhbl9jYW1wYWlnbl9rZXl3b3JkGIwBIAEoCzI+Lmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuS2V5d29yZFBsYW5DYW1wYWlnbktleXdv", + "cmQSVQoVa2V5d29yZF9wbGFuX2FkX2dyb3VwGCMgASgLMjYuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5LZXl3b3JkUGxhbkFkR3JvdXAS", + "ZQoda2V5d29yZF9wbGFuX2FkX2dyb3VwX2tleXdvcmQYjQEgASgLMj0uZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5LZXl3b3JkUGxhbkFk", + "R3JvdXBLZXl3b3JkElkKFmtleXdvcmRfdGhlbWVfY29uc3RhbnQYowEgASgL", + "MjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5LZXl3b3Jk", + "VGhlbWVDb25zdGFudBI4CgVsYWJlbBg0IAEoCzIpLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuTGFiZWwSTgoRbGFuZGluZ19wYWdlX3Zp", + "ZXcYfiABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2Vz", + "LkxhbmRpbmdQYWdlVmlldxJPChFsYW5ndWFnZV9jb25zdGFudBg3IAEoCzI0", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuTGFuZ3VhZ2VD", + "b25zdGFudBJHCg1sb2NhdGlvbl92aWV3GHsgASgLMjAuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LnJlc291cmNlcy5Mb2NhdGlvblZpZXcSWAoWbWFuYWdl", + "ZF9wbGFjZW1lbnRfdmlldxg1IAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5yZXNvdXJjZXMuTWFuYWdlZFBsYWNlbWVudFZpZXcSQQoKbWVkaWFf", + "ZmlsZRhaIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", + "ZXMuTWVkaWFGaWxlEmMKHG1vYmlsZV9hcHBfY2F0ZWdvcnlfY29uc3RhbnQY", + "VyABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLk1v", + "YmlsZUFwcENhdGVnb3J5Q29uc3RhbnQSWAoWbW9iaWxlX2RldmljZV9jb25z", + "dGFudBhiIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", + "ZXMuTW9iaWxlRGV2aWNlQ29uc3RhbnQSVgoVb2ZmbGluZV91c2VyX2RhdGFf", + "am9iGIkBIAEoCzI2Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", + "ZXMuT2ZmbGluZVVzZXJEYXRhSm9iEm0KIW9wZXJhdGluZ19zeXN0ZW1fdmVy", + "c2lvbl9jb25zdGFudBhWIAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5yZXNvdXJjZXMuT3BlcmF0aW5nU3lzdGVtVmVyc2lvbkNvbnN0YW50EmUK", + "HXBhaWRfb3JnYW5pY19zZWFyY2hfdGVybV92aWV3GIEBIAEoCzI9Lmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuUGFpZE9yZ2FuaWNTZWFy", + "Y2hUZXJtVmlldxJUChNxdWFsaWZ5aW5nX3F1ZXN0aW9uGMoBIAEoCzI2Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuUXVhbGlmeWluZ1F1", + "ZXN0aW9uElQKFHBhcmVudGFsX3N0YXR1c192aWV3GC0gASgLMjYuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5QYXJlbnRhbFN0YXR1c1Zp", + "ZXcSSQoOcGVyX3N0b3JlX3ZpZXcYxgEgASgLMjAuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnJlc291cmNlcy5QZXJTdG9yZVZpZXcSbQohcHJvZHVjdF9i", + "aWRkaW5nX2NhdGVnb3J5X2NvbnN0YW50GG0gASgLMkIuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LnJlc291cmNlcy5Qcm9kdWN0QmlkZGluZ0NhdGVnb3J5", + "Q29uc3RhbnQSUAoScHJvZHVjdF9ncm91cF92aWV3GDYgASgLMjQuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5Qcm9kdWN0R3JvdXBWaWV3", + "EkYKDHByb2R1Y3RfbGluaxjCASABKAsyLy5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQucmVzb3VyY2VzLlByb2R1Y3RMaW5rEkoKDnJlY29tbWVuZGF0aW9u", + "GBYgASgLMjIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5S", + "ZWNvbW1lbmRhdGlvbhJMChBzZWFyY2hfdGVybV92aWV3GEQgASgLMjIuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5TZWFyY2hUZXJtVmll", + "dxJNChBzaGFyZWRfY3JpdGVyaW9uGB0gASgLMjMuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnJlc291cmNlcy5TaGFyZWRDcml0ZXJpb24SQQoKc2hhcmVk", + "X3NldBgbIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", + "ZXMuU2hhcmVkU2V0ElkKFnNtYXJ0X2NhbXBhaWduX3NldHRpbmcYpwEgASgL", + "MjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5TbWFydENh", + "bXBhaWduU2V0dGluZxJeChlzaG9wcGluZ19wZXJmb3JtYW5jZV92aWV3GHUg", + "ASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5TaG9w", + "cGluZ1BlcmZvcm1hbmNlVmlldxJpCh9zbWFydF9jYW1wYWlnbl9zZWFyY2hf", + "dGVybV92aWV3GKoBIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5y", + "ZXNvdXJjZXMuU21hcnRDYW1wYWlnblNlYXJjaFRlcm1WaWV3EmcKHnRoaXJk", + "X3BhcnR5X2FwcF9hbmFseXRpY3NfbGluaxiQASABKAsyPi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlRoaXJkUGFydHlBcHBBbmFseXRp", + "Y3NMaW5rEkEKCnRvcGljX3ZpZXcYLCABKAsyLS5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQucmVzb3VyY2VzLlRvcGljVmlldxJgChp0cmF2ZWxfYWN0aXZp", + "dHlfZ3JvdXBfdmlldxjJASABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQucmVzb3VyY2VzLlRyYXZlbEFjdGl2aXR5R3JvdXBWaWV3EmwKIHRyYXZl", + "bF9hY3Rpdml0eV9wZXJmb3JtYW5jZV92aWV3GMgBIAEoCzJBLmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuVHJhdmVsQWN0aXZpdHlQZXJm", + "b3JtYW5jZVZpZXcSQwoKZXhwZXJpbWVudBiFASABKAsyLi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkV4cGVyaW1lbnQSSgoOZXhwZXJp", + "bWVudF9hcm0YtwEgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJl", + "c291cmNlcy5FeHBlcmltZW50QXJtEkcKDXVzZXJfaW50ZXJlc3QYOyABKAsy", + "MC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlVzZXJJbnRl", + "cmVzdBJCCgpsaWZlX2V2ZW50GKEBIAEoCzItLmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5yZXNvdXJjZXMuTGlmZUV2ZW50Ej8KCXVzZXJfbGlzdBgmIAEo", + "CzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuVXNlckxp", + "c3QSUQoSdXNlcl9sb2NhdGlvbl92aWV3GIcBIAEoCzI0Lmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuVXNlckxvY2F0aW9uVmlldxJRChJy", + "ZW1hcmtldGluZ19hY3Rpb24YPCABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQucmVzb3VyY2VzLlJlbWFya2V0aW5nQWN0aW9uEkkKDnRvcGljX2Nv", + "bnN0YW50GB8gASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", + "cmNlcy5Ub3BpY0NvbnN0YW50EjgKBXZpZGVvGCcgASgLMikuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5WaWRlbxJGCgx3ZWJwYWdlX3Zp", + "ZXcYogEgASgLMi8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNl", + "cy5XZWJwYWdlVmlldxJeChlsZWFkX2Zvcm1fc3VibWlzc2lvbl9kYXRhGMAB", + "IAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuTGVh", + "ZEZvcm1TdWJtaXNzaW9uRGF0YRI5CgdtZXRyaWNzGAQgASgLMiguZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5NZXRyaWNzEjsKCHNlZ21lbnRz", + "GGYgASgLMikuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5TZWdt", + "ZW50cyKiAgoWTXV0YXRlR29vZ2xlQWRzUmVxdWVzdBIYCgtjdXN0b21lcl9p", + "ZBgBIAEoCUID4EECElIKEW11dGF0ZV9vcGVyYXRpb25zGAIgAygLMjIuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZU9wZXJhdGlv", + "bkID4EECEhcKD3BhcnRpYWxfZmFpbHVyZRgDIAEoCBIVCg12YWxpZGF0ZV9v", + "bmx5GAQgASgIEmoKFXJlc3BvbnNlX2NvbnRlbnRfdHlwZRgFIAEoDjJLLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5SZXNwb25zZUNvbnRlbnRU", + "eXBlRW51bS5SZXNwb25zZUNvbnRlbnRUeXBlIqwBChdNdXRhdGVHb29nbGVB", + "ZHNSZXNwb25zZRIxChVwYXJ0aWFsX2ZhaWx1cmVfZXJyb3IYAyABKAsyEi5n", + "b29nbGUucnBjLlN0YXR1cxJeChptdXRhdGVfb3BlcmF0aW9uX3Jlc3BvbnNl", + "cxgBIAMoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5N", + "dXRhdGVPcGVyYXRpb25SZXNwb25zZSKCOwoPTXV0YXRlT3BlcmF0aW9uEmEK", + "G2FkX2dyb3VwX2FkX2xhYmVsX29wZXJhdGlvbhgRIAEoCzI6Lmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZEdyb3VwQWRMYWJlbE9wZXJh", + "dGlvbkgAElYKFWFkX2dyb3VwX2FkX29wZXJhdGlvbhgBIAEoCzI1Lmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZEdyb3VwQWRPcGVyYXRp", + "b25IABJcChhhZF9ncm91cF9hc3NldF9vcGVyYXRpb24YOCABKAsyOC5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQWRHcm91cEFzc2V0T3Bl", + "cmF0aW9uSAASaQofYWRfZ3JvdXBfYmlkX21vZGlmaWVyX29wZXJhdGlvbhgC", + "IAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZEdy", + "b3VwQmlkTW9kaWZpZXJPcGVyYXRpb25IABJ5CidhZF9ncm91cF9jcml0ZXJp", + "b25fY3VzdG9taXplcl9vcGVyYXRpb24YTSABKAsyRi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuc2VydmljZXMuQWRHcm91cENyaXRlcmlvbkN1c3RvbWl6", + "ZXJPcGVyYXRpb25IABJvCiJhZF9ncm91cF9jcml0ZXJpb25fbGFiZWxfb3Bl", + "cmF0aW9uGBIgASgLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLkFkR3JvdXBDcml0ZXJpb25MYWJlbE9wZXJhdGlvbkgAEmQKHGFkX2dy", + "b3VwX2NyaXRlcmlvbl9vcGVyYXRpb24YAyABKAsyPC5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuc2VydmljZXMuQWRHcm91cENyaXRlcmlvbk9wZXJhdGlv", + "bkgAEmYKHWFkX2dyb3VwX2N1c3RvbWl6ZXJfb3BlcmF0aW9uGEsgASgLMj0u", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkFkR3JvdXBDdXN0", + "b21pemVyT3BlcmF0aW9uSAAScwokYWRfZ3JvdXBfZXh0ZW5zaW9uX3NldHRp", + "bmdfb3BlcmF0aW9uGBMgASgLMkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnNlcnZpY2VzLkFkR3JvdXBFeHRlbnNpb25TZXR0aW5nT3BlcmF0aW9uSAAS", + "WgoXYWRfZ3JvdXBfZmVlZF9vcGVyYXRpb24YFCABKAsyNy5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuQWRHcm91cEZlZWRPcGVyYXRpb25I", + "ABJcChhhZF9ncm91cF9sYWJlbF9vcGVyYXRpb24YFSABKAsyOC5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQWRHcm91cExhYmVsT3BlcmF0", + "aW9uSAASUQoSYWRfZ3JvdXBfb3BlcmF0aW9uGAUgASgLMjMuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkFkR3JvdXBPcGVyYXRpb25IABJG", + "CgxhZF9vcGVyYXRpb24YMSABKAsyLi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuc2VydmljZXMuQWRPcGVyYXRpb25IABJZChZhZF9wYXJhbWV0ZXJfb3Bl", + "cmF0aW9uGBYgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLkFkUGFyYW1ldGVyT3BlcmF0aW9uSAASTAoPYXNzZXRfb3BlcmF0aW9u", + "GBcgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkFz", + "c2V0T3BlcmF0aW9uSAASYgobYXNzZXRfZ3JvdXBfYXNzZXRfb3BlcmF0aW9u", + "GEEgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkFz", + "c2V0R3JvdXBBc3NldE9wZXJhdGlvbkgAEn4KKmFzc2V0X2dyb3VwX2xpc3Rp", + "bmdfZ3JvdXBfZmlsdGVyX29wZXJhdGlvbhhOIAEoCzJILmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5Bc3NldEdyb3VwTGlzdGluZ0dyb3Vw", + "RmlsdGVyT3BlcmF0aW9uSAASZAocYXNzZXRfZ3JvdXBfc2lnbmFsX29wZXJh", + "dGlvbhhQIAEoCzI8Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNl", + "cy5Bc3NldEdyb3VwU2lnbmFsT3BlcmF0aW9uSAASVwoVYXNzZXRfZ3JvdXBf", + "b3BlcmF0aW9uGD4gASgLMjYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", + "cnZpY2VzLkFzc2V0R3JvdXBPcGVyYXRpb25IABJeChlhc3NldF9zZXRfYXNz", + "ZXRfb3BlcmF0aW9uGEcgASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnNlcnZpY2VzLkFzc2V0U2V0QXNzZXRPcGVyYXRpb25IABJTChNhc3NldF9z", + "ZXRfb3BlcmF0aW9uGEggASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnNlcnZpY2VzLkFzc2V0U2V0T3BlcmF0aW9uSAASUgoSYXVkaWVuY2Vfb3Bl", + "cmF0aW9uGFEgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLkF1ZGllbmNlT3BlcmF0aW9uSAASbAogYmlkZGluZ19kYXRhX2V4Y2x1", + "c2lvbl9vcGVyYXRpb24YOiABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuc2VydmljZXMuQmlkZGluZ0RhdGFFeGNsdXNpb25PcGVyYXRpb25IABJ8", + "CihiaWRkaW5nX3NlYXNvbmFsaXR5X2FkanVzdG1lbnRfb3BlcmF0aW9uGDsg", + "ASgLMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkJpZGRp", + "bmdTZWFzb25hbGl0eUFkanVzdG1lbnRPcGVyYXRpb25IABJhChpiaWRkaW5n", + "X3N0cmF0ZWd5X29wZXJhdGlvbhgGIAEoCzI7Lmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5zZXJ2aWNlcy5CaWRkaW5nU3RyYXRlZ3lPcGVyYXRpb25IABJd", + "ChhjYW1wYWlnbl9hc3NldF9vcGVyYXRpb24YNCABKAsyOS5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ2FtcGFpZ25Bc3NldE9wZXJhdGlv", + "bkgAEmQKHGNhbXBhaWduX2Fzc2V0X3NldF9vcGVyYXRpb24YSSABKAsyPC5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ2FtcGFpZ25Bc3Nl", + "dFNldE9wZXJhdGlvbkgAEmoKH2NhbXBhaWduX2JpZF9tb2RpZmllcl9vcGVy", + "YXRpb24YByABKAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", + "ZXMuQ2FtcGFpZ25CaWRNb2RpZmllck9wZXJhdGlvbkgAEl8KGWNhbXBhaWdu", + "X2J1ZGdldF9vcGVyYXRpb24YCCABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuc2VydmljZXMuQ2FtcGFpZ25CdWRnZXRPcGVyYXRpb25IABJwCiJj", + "YW1wYWlnbl9jb252ZXJzaW9uX2dvYWxfb3BlcmF0aW9uGEMgASgLMkIuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkNhbXBhaWduQ29udmVy", + "c2lvbkdvYWxPcGVyYXRpb25IABJlChxjYW1wYWlnbl9jcml0ZXJpb25fb3Bl", + "cmF0aW9uGA0gASgLMj0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLkNhbXBhaWduQ3JpdGVyaW9uT3BlcmF0aW9uSAASZwodY2FtcGFpZ25f", + "Y3VzdG9taXplcl9vcGVyYXRpb24YTCABKAsyPi5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuc2VydmljZXMuQ2FtcGFpZ25DdXN0b21pemVyT3BlcmF0aW9u", + "SAASXQoYY2FtcGFpZ25fZHJhZnRfb3BlcmF0aW9uGBggASgLMjkuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkNhbXBhaWduRHJhZnRPcGVy", + "YXRpb25IABJ0CiRjYW1wYWlnbl9leHRlbnNpb25fc2V0dGluZ19vcGVyYXRp", + "b24YGiABKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "Q2FtcGFpZ25FeHRlbnNpb25TZXR0aW5nT3BlcmF0aW9uSAASWwoXY2FtcGFp", + "Z25fZmVlZF9vcGVyYXRpb24YGyABKAsyOC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuc2VydmljZXMuQ2FtcGFpZ25GZWVkT3BlcmF0aW9uSAASXQoYY2Ft", + "cGFpZ25fZ3JvdXBfb3BlcmF0aW9uGAkgASgLMjkuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnNlcnZpY2VzLkNhbXBhaWduR3JvdXBPcGVyYXRpb25IABJd", + "ChhjYW1wYWlnbl9sYWJlbF9vcGVyYXRpb24YHCABKAsyOS5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ2FtcGFpZ25MYWJlbE9wZXJhdGlv", + "bkgAElIKEmNhbXBhaWduX29wZXJhdGlvbhgKIAEoCzI0Lmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DYW1wYWlnbk9wZXJhdGlvbkgAEmYK", + "HWNhbXBhaWduX3NoYXJlZF9zZXRfb3BlcmF0aW9uGAsgASgLMj0uZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkNhbXBhaWduU2hhcmVkU2V0", + "T3BlcmF0aW9uSAASYwobY29udmVyc2lvbl9hY3Rpb25fb3BlcmF0aW9uGAwg", + "ASgLMjwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkNvbnZl", + "cnNpb25BY3Rpb25PcGVyYXRpb25IABJ0CiRjb252ZXJzaW9uX2N1c3RvbV92", + "YXJpYWJsZV9vcGVyYXRpb24YNyABKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuc2VydmljZXMuQ29udmVyc2lvbkN1c3RvbVZhcmlhYmxlT3BlcmF0", + "aW9uSAASfQopY29udmVyc2lvbl9nb2FsX2NhbXBhaWduX2NvbmZpZ19vcGVy", + "YXRpb24YRSABKAsySC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", + "ZXMuQ29udmVyc2lvbkdvYWxDYW1wYWlnbkNvbmZpZ09wZXJhdGlvbkgAEmoK", + "H2NvbnZlcnNpb25fdmFsdWVfcnVsZV9vcGVyYXRpb24YPyABKAsyPy5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ29udmVyc2lvblZhbHVl", + "UnVsZU9wZXJhdGlvbkgAEnEKI2NvbnZlcnNpb25fdmFsdWVfcnVsZV9zZXRf", + "b3BlcmF0aW9uGEAgASgLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", + "cnZpY2VzLkNvbnZlcnNpb25WYWx1ZVJ1bGVTZXRPcGVyYXRpb25IABJsCiBj", + "dXN0b21fY29udmVyc2lvbl9nb2FsX29wZXJhdGlvbhhEIAEoCzJALmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DdXN0b21Db252ZXJzaW9u", + "R29hbE9wZXJhdGlvbkgAEl0KGGN1c3RvbWVyX2Fzc2V0X29wZXJhdGlvbhg5", + "IAEoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DdXN0", + "b21lckFzc2V0T3BlcmF0aW9uSAAScAoiY3VzdG9tZXJfY29udmVyc2lvbl9n", + "b2FsX29wZXJhdGlvbhhCIAEoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5zZXJ2aWNlcy5DdXN0b21lckNvbnZlcnNpb25Hb2FsT3BlcmF0aW9uSAAS", + "ZwodY3VzdG9tZXJfY3VzdG9taXplcl9vcGVyYXRpb24YTyABKAsyPi5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuQ3VzdG9tZXJDdXN0b21p", + "emVyT3BlcmF0aW9uSAASdAokY3VzdG9tZXJfZXh0ZW5zaW9uX3NldHRpbmdf", + "b3BlcmF0aW9uGB4gASgLMkQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", + "cnZpY2VzLkN1c3RvbWVyRXh0ZW5zaW9uU2V0dGluZ09wZXJhdGlvbkgAElsK", + "F2N1c3RvbWVyX2ZlZWRfb3BlcmF0aW9uGB8gASgLMjguZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LnNlcnZpY2VzLkN1c3RvbWVyRmVlZE9wZXJhdGlvbkgA", + "El0KGGN1c3RvbWVyX2xhYmVsX29wZXJhdGlvbhggIAEoCzI5Lmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5DdXN0b21lckxhYmVsT3BlcmF0", + "aW9uSAASdgolY3VzdG9tZXJfbmVnYXRpdmVfY3JpdGVyaW9uX29wZXJhdGlv", + "bhgiIAEoCzJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5D", + "dXN0b21lck5lZ2F0aXZlQ3JpdGVyaW9uT3BlcmF0aW9uSAASUgoSY3VzdG9t", + "ZXJfb3BlcmF0aW9uGCMgASgLMjQuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnNlcnZpY2VzLkN1c3RvbWVyT3BlcmF0aW9uSAASaQoeY3VzdG9taXplcl9h", + "dHRyaWJ1dGVfb3BlcmF0aW9uGEYgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LnNlcnZpY2VzLkN1c3RvbWl6ZXJBdHRyaWJ1dGVPcGVyYXRpb25I", + "ABJWChRleHBlcmltZW50X29wZXJhdGlvbhhSIAEoCzI2Lmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5FeHBlcmltZW50T3BlcmF0aW9uSAAS", + "XQoYZXhwZXJpbWVudF9hcm1fb3BlcmF0aW9uGFMgASgLMjkuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkV4cGVyaW1lbnRBcm1PcGVyYXRp", + "b25IABJmCh1leHRlbnNpb25fZmVlZF9pdGVtX29wZXJhdGlvbhgkIAEoCzI9", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5FeHRlbnNpb25G", + "ZWVkSXRlbU9wZXJhdGlvbkgAElMKE2ZlZWRfaXRlbV9vcGVyYXRpb24YJSAB", + "KAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuRmVlZEl0", + "ZW1PcGVyYXRpb25IABJaChdmZWVkX2l0ZW1fc2V0X29wZXJhdGlvbhg1IAEo", + "CzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5GZWVkSXRl", + "bVNldE9wZXJhdGlvbkgAEmMKHGZlZWRfaXRlbV9zZXRfbGlua19vcGVyYXRp", + "b24YNiABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "RmVlZEl0ZW1TZXRMaW5rT3BlcmF0aW9uSAASYAoaZmVlZF9pdGVtX3Rhcmdl", + "dF9vcGVyYXRpb24YJiABKAsyOi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "c2VydmljZXMuRmVlZEl0ZW1UYXJnZXRPcGVyYXRpb25IABJZChZmZWVkX21h", + "cHBpbmdfb3BlcmF0aW9uGCcgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnNlcnZpY2VzLkZlZWRNYXBwaW5nT3BlcmF0aW9uSAASSgoOZmVlZF9v", + "cGVyYXRpb24YKCABKAsyMC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vy", + "dmljZXMuRmVlZE9wZXJhdGlvbkgAEmkKH2tleXdvcmRfcGxhbl9hZF9ncm91", + "cF9vcGVyYXRpb24YLCABKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "c2VydmljZXMuS2V5d29yZFBsYW5BZEdyb3VwT3BlcmF0aW9uSAASeAona2V5", + "d29yZF9wbGFuX2FkX2dyb3VwX2tleXdvcmRfb3BlcmF0aW9uGDIgASgLMkUu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLktleXdvcmRQbGFu", + "QWRHcm91cEtleXdvcmRPcGVyYXRpb25IABJ5CidrZXl3b3JkX3BsYW5fY2Ft", + "cGFpZ25fa2V5d29yZF9vcGVyYXRpb24YMyABKAsyRi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuc2VydmljZXMuS2V5d29yZFBsYW5DYW1wYWlnbktleXdv", + "cmRPcGVyYXRpb25IABJqCh9rZXl3b3JkX3BsYW5fY2FtcGFpZ25fb3BlcmF0", + "aW9uGC0gASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2Vz", + "LktleXdvcmRQbGFuQ2FtcGFpZ25PcGVyYXRpb25IABJZChZrZXl3b3JkX3Bs", + "YW5fb3BlcmF0aW9uGDAgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnNlcnZpY2VzLktleXdvcmRQbGFuT3BlcmF0aW9uSAASTAoPbGFiZWxfb3Bl", + "cmF0aW9uGCkgASgLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLkxhYmVsT3BlcmF0aW9uSAASVQoUbWVkaWFfZmlsZV9vcGVyYXRpb24Y", + "KiABKAsyNS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTWVk", + "aWFGaWxlT3BlcmF0aW9uSAASZQoccmVtYXJrZXRpbmdfYWN0aW9uX29wZXJh", + "dGlvbhgrIAEoCzI9Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNl", + "cy5SZW1hcmtldGluZ0FjdGlvbk9wZXJhdGlvbkgAEmEKGnNoYXJlZF9jcml0", + "ZXJpb25fb3BlcmF0aW9uGA4gASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnNlcnZpY2VzLlNoYXJlZENyaXRlcmlvbk9wZXJhdGlvbkgAElUKFHNo", + "YXJlZF9zZXRfb3BlcmF0aW9uGA8gASgLMjUuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LnNlcnZpY2VzLlNoYXJlZFNldE9wZXJhdGlvbkgAEmwKIHNtYXJ0", + "X2NhbXBhaWduX3NldHRpbmdfb3BlcmF0aW9uGD0gASgLMkAuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLlNtYXJ0Q2FtcGFpZ25TZXR0aW5n", + "T3BlcmF0aW9uSAASUwoTdXNlcl9saXN0X29wZXJhdGlvbhgQIAEoCzI0Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5Vc2VyTGlzdE9wZXJh", + "dGlvbkgAQgsKCW9wZXJhdGlvbiKLOwoXTXV0YXRlT3BlcmF0aW9uUmVzcG9u", + "c2USYQoYYWRfZ3JvdXBfYWRfbGFiZWxfcmVzdWx0GBEgASgLMj0uZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBBZExh", + "YmVsUmVzdWx0SAASVgoSYWRfZ3JvdXBfYWRfcmVzdWx0GAEgASgLMjguZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUFkR3JvdXBB", + "ZFJlc3VsdEgAElwKFWFkX2dyb3VwX2Fzc2V0X3Jlc3VsdBg4IAEoCzI7Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZEdyb3Vw", + "QXNzZXRSZXN1bHRIABJpChxhZF9ncm91cF9iaWRfbW9kaWZpZXJfcmVzdWx0", + "GAIgASgLMkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11", + "dGF0ZUFkR3JvdXBCaWRNb2RpZmllclJlc3VsdEgAEnkKJGFkX2dyb3VwX2Ny", + "aXRlcmlvbl9jdXN0b21pemVyX3Jlc3VsdBhNIAEoCzJJLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQ3JpdGVyaW9u", + "Q3VzdG9taXplclJlc3VsdEgAEm8KH2FkX2dyb3VwX2NyaXRlcmlvbl9sYWJl", + "bF9yZXN1bHQYEiABKAsyRC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vy", + "dmljZXMuTXV0YXRlQWRHcm91cENyaXRlcmlvbkxhYmVsUmVzdWx0SAASZAoZ", + "YWRfZ3JvdXBfY3JpdGVyaW9uX3Jlc3VsdBgDIAEoCzI/Lmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwQ3JpdGVyaW9u", + "UmVzdWx0SAASZgoaYWRfZ3JvdXBfY3VzdG9taXplcl9yZXN1bHQYSyABKAsy", + "QC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQWRH", + "cm91cEN1c3RvbWl6ZXJSZXN1bHRIABJzCiFhZF9ncm91cF9leHRlbnNpb25f", + "c2V0dGluZ19yZXN1bHQYEyABKAsyRi5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuc2VydmljZXMuTXV0YXRlQWRHcm91cEV4dGVuc2lvblNldHRpbmdSZXN1", + "bHRIABJaChRhZF9ncm91cF9mZWVkX3Jlc3VsdBgUIAEoCzI6Lmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwRmVlZFJl", + "c3VsdEgAElwKFWFkX2dyb3VwX2xhYmVsX3Jlc3VsdBgVIAEoCzI7Lmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVBZEdyb3VwTGFi", + "ZWxSZXN1bHRIABJRCg9hZF9ncm91cF9yZXN1bHQYBSABKAsyNi5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQWRHcm91cFJlc3Vs", + "dEgAElkKE2FkX3BhcmFtZXRlcl9yZXN1bHQYFiABKAsyOi5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQWRQYXJhbWV0ZXJSZXN1", + "bHRIABJGCglhZF9yZXN1bHQYMSABKAsyMS5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuc2VydmljZXMuTXV0YXRlQWRSZXN1bHRIABJMCgxhc3NldF9yZXN1", + "bHQYFyABKAsyNC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "TXV0YXRlQXNzZXRSZXN1bHRIABJiChhhc3NldF9ncm91cF9hc3NldF9yZXN1", + "bHQYQSABKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "TXV0YXRlQXNzZXRHcm91cEFzc2V0UmVzdWx0SAASfgonYXNzZXRfZ3JvdXBf", + "bGlzdGluZ19ncm91cF9maWx0ZXJfcmVzdWx0GE4gASgLMksuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUFzc2V0R3JvdXBMaXN0", + "aW5nR3JvdXBGaWx0ZXJSZXN1bHRIABJkChlhc3NldF9ncm91cF9zaWduYWxf", + "cmVzdWx0GE8gASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLk11dGF0ZUFzc2V0R3JvdXBTaWduYWxSZXN1bHRIABJXChJhc3NldF9n", + "cm91cF9yZXN1bHQYPiABKAsyOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "c2VydmljZXMuTXV0YXRlQXNzZXRHcm91cFJlc3VsdEgAEl4KFmFzc2V0X3Nl", + "dF9hc3NldF9yZXN1bHQYRyABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuc2VydmljZXMuTXV0YXRlQXNzZXRTZXRBc3NldFJlc3VsdEgAElMKEGFz", + "c2V0X3NldF9yZXN1bHQYSCABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuc2VydmljZXMuTXV0YXRlQXNzZXRTZXRSZXN1bHRIABJSCg9hdWRpZW5j", + "ZV9yZXN1bHQYUCABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vy", + "dmljZXMuTXV0YXRlQXVkaWVuY2VSZXN1bHRIABJtCh1iaWRkaW5nX2RhdGFf", + "ZXhjbHVzaW9uX3Jlc3VsdBg6IAEoCzJELmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5zZXJ2aWNlcy5NdXRhdGVCaWRkaW5nRGF0YUV4Y2x1c2lvbnNSZXN1", + "bHRIABJ9CiViaWRkaW5nX3NlYXNvbmFsaXR5X2FkanVzdG1lbnRfcmVzdWx0", + "GDsgASgLMkwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11", + "dGF0ZUJpZGRpbmdTZWFzb25hbGl0eUFkanVzdG1lbnRzUmVzdWx0SAASYQoX", + "YmlkZGluZ19zdHJhdGVneV9yZXN1bHQYBiABKAsyPi5nb29nbGUuYWRzLmdv", + "b2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQmlkZGluZ1N0cmF0ZWd5UmVz", + "dWx0SAASXQoVY2FtcGFpZ25fYXNzZXRfcmVzdWx0GDQgASgLMjwuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQXNz", + "ZXRSZXN1bHRIABJkChljYW1wYWlnbl9hc3NldF9zZXRfcmVzdWx0GEkgASgL", + "Mj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNh", + "bXBhaWduQXNzZXRTZXRSZXN1bHRIABJqChxjYW1wYWlnbl9iaWRfbW9kaWZp", + "ZXJfcmVzdWx0GAcgASgLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", + "cnZpY2VzLk11dGF0ZUNhbXBhaWduQmlkTW9kaWZpZXJSZXN1bHRIABJfChZj", + "YW1wYWlnbl9idWRnZXRfcmVzdWx0GAggASgLMj0uZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQnVkZ2V0UmVzdWx0", + "SAAScAofY2FtcGFpZ25fY29udmVyc2lvbl9nb2FsX3Jlc3VsdBhDIAEoCzJF", + "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVDYW1w", + "YWlnbkNvbnZlcnNpb25Hb2FsUmVzdWx0SAASZQoZY2FtcGFpZ25fY3JpdGVy", + "aW9uX3Jlc3VsdBgNIAEoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5z", + "ZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkNyaXRlcmlvblJlc3VsdEgAEmcKGmNh", + "bXBhaWduX2N1c3RvbWl6ZXJfcmVzdWx0GEwgASgLMkEuZ29vZ2xlLmFkcy5n", + "b29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduQ3VzdG9taXpl", + "clJlc3VsdEgAEl0KFWNhbXBhaWduX2RyYWZ0X3Jlc3VsdBgYIAEoCzI8Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVDYW1wYWln", + "bkRyYWZ0UmVzdWx0SAASdAohY2FtcGFpZ25fZXh0ZW5zaW9uX3NldHRpbmdf", + "cmVzdWx0GBogASgLMkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLk11dGF0ZUNhbXBhaWduRXh0ZW5zaW9uU2V0dGluZ1Jlc3VsdEgAElsK", + "FGNhbXBhaWduX2ZlZWRfcmVzdWx0GBsgASgLMjsuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduRmVlZFJlc3VsdEgA", + "El0KFWNhbXBhaWduX2dyb3VwX3Jlc3VsdBgJIAEoCzI8Lmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVDYW1wYWlnbkdyb3VwUmVz", + "dWx0SAASXQoVY2FtcGFpZ25fbGFiZWxfcmVzdWx0GBwgASgLMjwuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNhbXBhaWduTGFi", + "ZWxSZXN1bHRIABJSCg9jYW1wYWlnbl9yZXN1bHQYCiABKAsyNy5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ2FtcGFpZ25SZXN1", + "bHRIABJmChpjYW1wYWlnbl9zaGFyZWRfc2V0X3Jlc3VsdBgLIAEoCzJALmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVDYW1wYWln", + "blNoYXJlZFNldFJlc3VsdEgAEmMKGGNvbnZlcnNpb25fYWN0aW9uX3Jlc3Vs", + "dBgMIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5N", + "dXRhdGVDb252ZXJzaW9uQWN0aW9uUmVzdWx0SAASdAohY29udmVyc2lvbl9j", + "dXN0b21fdmFyaWFibGVfcmVzdWx0GDcgASgLMkcuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNvbnZlcnNpb25DdXN0b21WYXJp", + "YWJsZVJlc3VsdEgAEn0KJmNvbnZlcnNpb25fZ29hbF9jYW1wYWlnbl9jb25m", + "aWdfcmVzdWx0GEUgASgLMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", + "cnZpY2VzLk11dGF0ZUNvbnZlcnNpb25Hb2FsQ2FtcGFpZ25Db25maWdSZXN1", + "bHRIABJqChxjb252ZXJzaW9uX3ZhbHVlX3J1bGVfcmVzdWx0GD8gASgLMkIu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUNvbnZl", + "cnNpb25WYWx1ZVJ1bGVSZXN1bHRIABJxCiBjb252ZXJzaW9uX3ZhbHVlX3J1", + "bGVfc2V0X3Jlc3VsdBhAIAEoCzJFLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5zZXJ2aWNlcy5NdXRhdGVDb252ZXJzaW9uVmFsdWVSdWxlU2V0UmVzdWx0", + "SAASbAodY3VzdG9tX2NvbnZlcnNpb25fZ29hbF9yZXN1bHQYRCABKAsyQy5n", "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ3VzdG9t", - "aXplckF0dHJpYnV0ZVJlc3VsdEgAElYKEWV4cGVyaW1lbnRfcmVzdWx0GFEg", - "ASgLMjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0", - "ZUV4cGVyaW1lbnRSZXN1bHRIABJdChVleHBlcmltZW50X2FybV9yZXN1bHQY", - "UiABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0", - "YXRlRXhwZXJpbWVudEFybVJlc3VsdEgAEmYKGmV4dGVuc2lvbl9mZWVkX2l0", - "ZW1fcmVzdWx0GCQgASgLMkAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNl", - "cnZpY2VzLk11dGF0ZUV4dGVuc2lvbkZlZWRJdGVtUmVzdWx0SAASUwoQZmVl", - "ZF9pdGVtX3Jlc3VsdBglIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5zZXJ2aWNlcy5NdXRhdGVGZWVkSXRlbVJlc3VsdEgAEloKFGZlZWRfaXRl", - "bV9zZXRfcmVzdWx0GDUgASgLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LnNlcnZpY2VzLk11dGF0ZUZlZWRJdGVtU2V0UmVzdWx0SAASYwoZZmVlZF9p", - "dGVtX3NldF9saW5rX3Jlc3VsdBg2IAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xl", - "YWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVGZWVkSXRlbVNldExpbmtSZXN1bHRI", - "ABJgChdmZWVkX2l0ZW1fdGFyZ2V0X3Jlc3VsdBgmIAEoCzI9Lmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVGZWVkSXRlbVRhcmdl", - "dFJlc3VsdEgAElkKE2ZlZWRfbWFwcGluZ19yZXN1bHQYJyABKAsyOi5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlRmVlZE1hcHBp", - "bmdSZXN1bHRIABJKCgtmZWVkX3Jlc3VsdBgoIAEoCzIzLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVGZWVkUmVzdWx0SAASaQoc", - "a2V5d29yZF9wbGFuX2FkX2dyb3VwX3Jlc3VsdBgsIAEoCzJBLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbkFk", - "R3JvdXBSZXN1bHRIABJqChxrZXl3b3JkX3BsYW5fY2FtcGFpZ25fcmVzdWx0", - "GC0gASgLMkIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11", - "dGF0ZUtleXdvcmRQbGFuQ2FtcGFpZ25SZXN1bHRIABJ4CiRrZXl3b3JkX3Bs", - "YW5fYWRfZ3JvdXBfa2V5d29yZF9yZXN1bHQYMiABKAsySC5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlS2V5d29yZFBsYW5BZEdy", - "b3VwS2V5d29yZFJlc3VsdEgAEnkKJGtleXdvcmRfcGxhbl9jYW1wYWlnbl9r", - "ZXl3b3JkX3Jlc3VsdBgzIAEoCzJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxhbkNhbXBhaWduS2V5d29yZFJl", - "c3VsdEgAEloKE2tleXdvcmRfcGxhbl9yZXN1bHQYMCABKAsyOy5nb29nbGUu", - "YWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlS2V5d29yZFBsYW5z", - "UmVzdWx0SAASTAoMbGFiZWxfcmVzdWx0GCkgASgLMjQuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUxhYmVsUmVzdWx0SAASVQoR", - "bWVkaWFfZmlsZV9yZXN1bHQYKiABKAsyOC5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQuc2VydmljZXMuTXV0YXRlTWVkaWFGaWxlUmVzdWx0SAASZQoZcmVt", - "YXJrZXRpbmdfYWN0aW9uX3Jlc3VsdBgrIAEoCzJALmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVSZW1hcmtldGluZ0FjdGlvblJl", - "c3VsdEgAEmEKF3NoYXJlZF9jcml0ZXJpb25fcmVzdWx0GA4gASgLMj4uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZVNoYXJlZENy", - "aXRlcmlvblJlc3VsdEgAElUKEXNoYXJlZF9zZXRfcmVzdWx0GA8gASgLMjgu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZVNoYXJl", - "ZFNldFJlc3VsdEgAEmwKHXNtYXJ0X2NhbXBhaWduX3NldHRpbmdfcmVzdWx0", - "GD0gASgLMkMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11", - "dGF0ZVNtYXJ0Q2FtcGFpZ25TZXR0aW5nUmVzdWx0SAASUwoQdXNlcl9saXN0", - "X3Jlc3VsdBgQIAEoCzI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2", - "aWNlcy5NdXRhdGVVc2VyTGlzdFJlc3VsdEgAQgoKCHJlc3BvbnNlMvUFChBH", - "b29nbGVBZHNTZXJ2aWNlEs8BCgZTZWFyY2gSOS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuU2VhcmNoR29vZ2xlQWRzUmVxdWVzdBo6Lmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5TZWFyY2hHb29nbGVB", - "ZHNSZXNwb25zZSJOgtPkkwI0Ii8vdjE0L2N1c3RvbWVycy97Y3VzdG9tZXJf", - "aWQ9Kn0vZ29vZ2xlQWRzOnNlYXJjaDoBKtpBEWN1c3RvbWVyX2lkLHF1ZXJ5", - "EukBCgxTZWFyY2hTdHJlYW0SPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "c2VydmljZXMuU2VhcmNoR29vZ2xlQWRzU3RyZWFtUmVxdWVzdBpALmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5TZWFyY2hHb29nbGVBZHNT", - "dHJlYW1SZXNwb25zZSJUgtPkkwI6IjUvdjE0L2N1c3RvbWVycy97Y3VzdG9t", - "ZXJfaWQ9Kn0vZ29vZ2xlQWRzOnNlYXJjaFN0cmVhbToBKtpBEWN1c3RvbWVy", - "X2lkLHF1ZXJ5MAES2wEKBk11dGF0ZRI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5zZXJ2aWNlcy5NdXRhdGVHb29nbGVBZHNSZXF1ZXN0GjouZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUdvb2dsZUFkc1Jl", - "c3BvbnNlIlqC0+STAjQiLy92MTQvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0q", - "fS9nb29nbGVBZHM6bXV0YXRlOgEq2kEdY3VzdG9tZXJfaWQsbXV0YXRlX29w", - "ZXJhdGlvbnMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbdJBJ2h0dHBz", - "Oi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KBAgolY29tLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlc0IVR29vZ2xlQWRzU2Vy", - "dmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2ds", - "ZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXM7c2VydmljZXOiAgNH", - "QUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuU2VydmljZXPKAiFHb29n", - "bGVcQWRzXEdvb2dsZUFkc1xWMTRcU2VydmljZXPqAiVHb29nbGU6OkFkczo6", - "R29vZ2xlQWRzOjpWMTQ6OlNlcnZpY2VzYgZwcm90bzM=")); + "Q29udmVyc2lvbkdvYWxSZXN1bHRIABJdChVjdXN0b21lcl9hc3NldF9yZXN1", + "bHQYOSABKAsyPC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "TXV0YXRlQ3VzdG9tZXJBc3NldFJlc3VsdEgAEnAKH2N1c3RvbWVyX2NvbnZl", + "cnNpb25fZ29hbF9yZXN1bHQYQiABKAsyRS5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJDb252ZXJzaW9uR29hbFJl", + "c3VsdEgAEmcKGmN1c3RvbWVyX2N1c3RvbWl6ZXJfcmVzdWx0GEogASgLMkEu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUN1c3Rv", + "bWVyQ3VzdG9taXplclJlc3VsdEgAEnQKIWN1c3RvbWVyX2V4dGVuc2lvbl9z", + "ZXR0aW5nX3Jlc3VsdBgeIAEoCzJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckV4dGVuc2lvblNldHRpbmdSZXN1", + "bHRIABJbChRjdXN0b21lcl9mZWVkX3Jlc3VsdBgfIAEoCzI7Lmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVDdXN0b21lckZlZWRS", + "ZXN1bHRIABJdChVjdXN0b21lcl9sYWJlbF9yZXN1bHQYICABKAsyPC5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlQ3VzdG9tZXJM", + "YWJlbFJlc3VsdEgAEnUKImN1c3RvbWVyX25lZ2F0aXZlX2NyaXRlcmlvbl9y", + "ZXN1bHQYIiABKAsyRy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", + "ZXMuTXV0YXRlQ3VzdG9tZXJOZWdhdGl2ZUNyaXRlcmlhUmVzdWx0SAASUgoP", + "Y3VzdG9tZXJfcmVzdWx0GCMgASgLMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnNlcnZpY2VzLk11dGF0ZUN1c3RvbWVyUmVzdWx0SAASaQobY3VzdG9t", + "aXplcl9hdHRyaWJ1dGVfcmVzdWx0GEYgASgLMkIuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUN1c3RvbWl6ZXJBdHRyaWJ1dGVS", + "ZXN1bHRIABJWChFleHBlcmltZW50X3Jlc3VsdBhRIAEoCzI5Lmdvb2dsZS5h", + "ZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVFeHBlcmltZW50UmVz", + "dWx0SAASXQoVZXhwZXJpbWVudF9hcm1fcmVzdWx0GFIgASgLMjwuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk11dGF0ZUV4cGVyaW1lbnRB", + "cm1SZXN1bHRIABJmChpleHRlbnNpb25fZmVlZF9pdGVtX3Jlc3VsdBgkIAEo", + "CzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVF", + "eHRlbnNpb25GZWVkSXRlbVJlc3VsdEgAElMKEGZlZWRfaXRlbV9yZXN1bHQY", + "JSABKAsyNy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0", + "YXRlRmVlZEl0ZW1SZXN1bHRIABJaChRmZWVkX2l0ZW1fc2V0X3Jlc3VsdBg1", + "IAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRh", + "dGVGZWVkSXRlbVNldFJlc3VsdEgAEmMKGWZlZWRfaXRlbV9zZXRfbGlua19y", + "ZXN1bHQYNiABKAsyPi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vydmlj", + "ZXMuTXV0YXRlRmVlZEl0ZW1TZXRMaW5rUmVzdWx0SAASYAoXZmVlZF9pdGVt", + "X3RhcmdldF9yZXN1bHQYJiABKAsyPS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuc2VydmljZXMuTXV0YXRlRmVlZEl0ZW1UYXJnZXRSZXN1bHRIABJZChNm", + "ZWVkX21hcHBpbmdfcmVzdWx0GCcgASgLMjouZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LnNlcnZpY2VzLk11dGF0ZUZlZWRNYXBwaW5nUmVzdWx0SAASSgoL", + "ZmVlZF9yZXN1bHQYKCABKAsyMy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", + "c2VydmljZXMuTXV0YXRlRmVlZFJlc3VsdEgAEmkKHGtleXdvcmRfcGxhbl9h", + "ZF9ncm91cF9yZXN1bHQYLCABKAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuc2VydmljZXMuTXV0YXRlS2V5d29yZFBsYW5BZEdyb3VwUmVzdWx0SAAS", + "agoca2V5d29yZF9wbGFuX2NhbXBhaWduX3Jlc3VsdBgtIAEoCzJCLmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVLZXl3b3JkUGxh", + "bkNhbXBhaWduUmVzdWx0SAASeAoka2V5d29yZF9wbGFuX2FkX2dyb3VwX2tl", + "eXdvcmRfcmVzdWx0GDIgASgLMkguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnNlcnZpY2VzLk11dGF0ZUtleXdvcmRQbGFuQWRHcm91cEtleXdvcmRSZXN1", + "bHRIABJ5CiRrZXl3b3JkX3BsYW5fY2FtcGFpZ25fa2V5d29yZF9yZXN1bHQY", + "MyABKAsySS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0", + "YXRlS2V5d29yZFBsYW5DYW1wYWlnbktleXdvcmRSZXN1bHRIABJaChNrZXl3", + "b3JkX3BsYW5fcmVzdWx0GDAgASgLMjsuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnNlcnZpY2VzLk11dGF0ZUtleXdvcmRQbGFuc1Jlc3VsdEgAEkwKDGxh", + "YmVsX3Jlc3VsdBgpIAEoCzI0Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5z", + "ZXJ2aWNlcy5NdXRhdGVMYWJlbFJlc3VsdEgAElUKEW1lZGlhX2ZpbGVfcmVz", + "dWx0GCogASgLMjguZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2Vz", + "Lk11dGF0ZU1lZGlhRmlsZVJlc3VsdEgAEmUKGXJlbWFya2V0aW5nX2FjdGlv", + "bl9yZXN1bHQYKyABKAsyQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vy", + "dmljZXMuTXV0YXRlUmVtYXJrZXRpbmdBY3Rpb25SZXN1bHRIABJhChdzaGFy", + "ZWRfY3JpdGVyaW9uX3Jlc3VsdBgOIAEoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xl", + "YWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVTaGFyZWRDcml0ZXJpb25SZXN1bHRI", + "ABJVChFzaGFyZWRfc2V0X3Jlc3VsdBgPIAEoCzI4Lmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVTaGFyZWRTZXRSZXN1bHRIABJs", + "Ch1zbWFydF9jYW1wYWlnbl9zZXR0aW5nX3Jlc3VsdBg9IAEoCzJDLmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5NdXRhdGVTbWFydENhbXBh", + "aWduU2V0dGluZ1Jlc3VsdEgAElMKEHVzZXJfbGlzdF9yZXN1bHQYECABKAsy", + "Ny5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTXV0YXRlVXNl", + "ckxpc3RSZXN1bHRIAEIKCghyZXNwb25zZTL1BQoQR29vZ2xlQWRzU2Vydmlj", + "ZRLPAQoGU2VhcmNoEjkuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLlNlYXJjaEdvb2dsZUFkc1JlcXVlc3QaOi5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuc2VydmljZXMuU2VhcmNoR29vZ2xlQWRzUmVzcG9uc2UiToLT", + "5JMCNCIvL3YxNC9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2dvb2dsZUFk", + "czpzZWFyY2g6ASraQRFjdXN0b21lcl9pZCxxdWVyeRLpAQoMU2VhcmNoU3Ry", + "ZWFtEj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLlNlYXJj", + "aEdvb2dsZUFkc1N0cmVhbVJlcXVlc3QaQC5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuc2VydmljZXMuU2VhcmNoR29vZ2xlQWRzU3RyZWFtUmVzcG9uc2Ui", + "VILT5JMCOiI1L3YxNC9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9L2dvb2ds", + "ZUFkczpzZWFyY2hTdHJlYW06ASraQRFjdXN0b21lcl9pZCxxdWVyeTABEtsB", + "CgZNdXRhdGUSOS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "TXV0YXRlR29vZ2xlQWRzUmVxdWVzdBo6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5zZXJ2aWNlcy5NdXRhdGVHb29nbGVBZHNSZXNwb25zZSJagtPkkwI0", + "Ii8vdjE0L2N1c3RvbWVycy97Y3VzdG9tZXJfaWQ9Kn0vZ29vZ2xlQWRzOm11", + "dGF0ZToBKtpBHWN1c3RvbWVyX2lkLG11dGF0ZV9vcGVyYXRpb25zGkXKQRhn", + "b29nbGVhZHMuZ29vZ2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVh", + "cGlzLmNvbS9hdXRoL2Fkd29yZHNCgQIKJWNvbS5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuc2VydmljZXNCFUdvb2dsZUFkc1NlcnZpY2VQcm90b1ABWkln", + "b29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29n", + "bGVhZHMvdjE0L3NlcnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFk", + "cy5Hb29nbGVBZHMuVjE0LlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVB", + "ZHNcVjE0XFNlcnZpY2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0", + "OjpTZXJ2aWNlc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.MetricsReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.SegmentsReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SummaryRowSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccessibleBiddingStrategyReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccountBudgetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccountBudgetProposalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccountLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdAssetCombinationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdAssetViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAudienceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupBidModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdScheduleViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AgeRangeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetFieldTypeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupListingGroupFilterReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupProductGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupSignalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetSetAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetSetTypeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BatchJobReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingDataExclusionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingSeasonalityAdjustmentReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingStrategyReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingStrategySimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BillingSetupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CallViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignAudienceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignBidModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignBudgetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignDraftReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignSharedSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CarrierConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ChangeEventReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ChangeStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ClickViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CombinedAudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionActionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionCustomVariableReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionGoalCampaignConfigReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionValueRuleReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionValueRuleSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CurrencyConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomAudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomInterestReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerClientReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerClientLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerManagerLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerNegativeCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerUserAccessReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerUserAccessInvitationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomizerAttributeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DetailPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DetailedDemographicReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DisplayKeywordViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DistanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DomainCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DynamicSearchAdsSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExpandedLandingPageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExperimentReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExperimentArmReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExtensionFeedItemReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemSetLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemTargetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedMappingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedPlaceholderViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GenderViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GeoTargetConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GeographicViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GroupPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.HotelGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.HotelPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.HotelReconciliationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.IncomeRangeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanAdGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanAdGroupKeywordReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanCampaignReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanCampaignKeywordReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordThemeConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LandingPageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LanguageConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LeadFormSubmissionDataReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LifeEventReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LocationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ManagedPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.MediaFileReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.MobileAppCategoryConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.MobileDeviceConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.OfflineUserDataJobReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.OperatingSystemVersionConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.PaidOrganicSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ParentalStatusViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.PerStoreViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ProductBiddingCategoryConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ProductGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ProductLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.QualifyingQuestionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.RecommendationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.RemarketingActionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SharedCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SharedSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ShoppingPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SmartCampaignSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SmartCampaignSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ThirdPartyAppAnalyticsLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TopicConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TopicViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TravelActivityGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TravelActivityPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.UserInterestReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.UserListReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.UserLocationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.VideoReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.WebpageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupAdLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupAdServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupBidModifierServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCriterionLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdParameterServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupSignalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetSetAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AudienceServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.BiddingDataExclusionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.BiddingStrategyServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignAssetSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignBidModifierServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignBudgetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignDraftServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignSharedSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionActionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionCustomVariableServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionValueRuleServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionValueRuleSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerNegativeCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomizerAttributeServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ExperimentArmServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ExperimentServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ExtensionFeedItemServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemSetLinkServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemTargetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedMappingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanAdGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanCampaignServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.LabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.MediaFileServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.RemarketingActionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.SharedCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.SharedSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.SmartCampaignSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.UserListServiceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.MetricsReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.SegmentsReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ResponseContentTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SummaryRowSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccessibleBiddingStrategyReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccountBudgetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccountBudgetProposalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AccountLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdAssetCombinationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdAssetViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAdLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupAudienceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupBidModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCriterionSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdGroupSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdParameterReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdScheduleViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AgeRangeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetFieldTypeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupListingGroupFilterReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupProductGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetGroupSignalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetSetAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetSetTypeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BatchJobReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingDataExclusionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingSeasonalityAdjustmentReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingStrategyReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BiddingStrategySimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.BillingSetupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CallViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignAudienceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignBidModifierReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignBudgetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignDraftReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsightReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignSharedSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CampaignSimulationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CarrierConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ChangeEventReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ChangeStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ClickViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CombinedAudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionActionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionCustomVariableReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionGoalCampaignConfigReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionValueRuleReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ConversionValueRuleSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CurrencyConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomAudienceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomInterestReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerAssetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerAssetSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerClientReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerClientLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerConversionGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerCustomizerReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerExtensionSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerFeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerLabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerManagerLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerNegativeCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsightReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerUserAccessReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomerUserAccessInvitationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.CustomizerAttributeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DetailPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DetailedDemographicReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DisplayKeywordViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DistanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DomainCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.DynamicSearchAdsSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExpandedLandingPageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExperimentReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExperimentArmReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ExtensionFeedItemReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemSetLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedItemTargetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedMappingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.FeedPlaceholderViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GenderViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GeoTargetConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GeographicViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.GroupPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.HotelGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.HotelPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.HotelReconciliationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.IncomeRangeViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanAdGroupReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanAdGroupKeywordReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanCampaignReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordPlanCampaignKeywordReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordThemeConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.KeywordViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LabelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LandingPageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LanguageConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LeadFormSubmissionDataReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LifeEventReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.LocationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ManagedPlacementViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.MediaFileReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.MobileAppCategoryConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.MobileDeviceConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.OfflineUserDataJobReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.OperatingSystemVersionConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.PaidOrganicSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ParentalStatusViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.PerStoreViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ProductBiddingCategoryConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ProductGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ProductLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.QualifyingQuestionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.RecommendationReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.RemarketingActionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SharedCriterionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SharedSetReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ShoppingPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SmartCampaignSearchTermViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.SmartCampaignSettingReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.ThirdPartyAppAnalyticsLinkReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TopicConstantReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TopicViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TravelActivityGroupViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.TravelActivityPerformanceViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.UserInterestReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.UserListReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.UserLocationViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.VideoReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.WebpageViewReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupAdLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupAdServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupBidModifierServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCriterionCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCriterionLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdParameterServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AdServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupListingGroupFilterServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetGroupSignalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetSetAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AssetSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.AudienceServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.BiddingDataExclusionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.BiddingSeasonalityAdjustmentServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.BiddingStrategyServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignAssetSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignBidModifierServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignBudgetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignDraftServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CampaignSharedSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionActionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionCustomVariableServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionGoalCampaignConfigServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionValueRuleServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ConversionValueRuleSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerAssetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerConversionGoalServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerCustomizerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerExtensionSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerFeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerLabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerNegativeCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomerServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.CustomizerAttributeServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ExperimentArmServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ExperimentServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.ExtensionFeedItemServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemSetLinkServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedItemTargetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedMappingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.FeedServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanAdGroupKeywordServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanAdGroupServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanCampaignKeywordServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanCampaignServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.KeywordPlanServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.LabelServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.MediaFileServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.RemarketingActionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.SharedCriterionServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.SharedSetServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.SmartCampaignSettingServiceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Services.UserListServiceReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsRequest), global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsRequest.Parser, new[]{ "CustomerId", "Query", "PageToken", "PageSize", "ValidateOnly", "ReturnTotalResultsCount", "SummaryRowSetting" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsResponse), global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsResponse.Parser, new[]{ "Results", "NextPageToken", "TotalResultsCount", "FieldMask", "SummaryRow" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsStreamRequest), global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsStreamRequest.Parser, new[]{ "CustomerId", "Query", "SummaryRowSetting" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsStreamResponse), global::Google.Ads.GoogleAds.V14.Services.SearchGoogleAdsStreamResponse.Parser, new[]{ "Results", "FieldMask", "SummaryRow", "RequestId" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.GoogleAdsRow), global::Google.Ads.GoogleAds.V14.Services.GoogleAdsRow.Parser, new[]{ "AccountBudget", "AccountBudgetProposal", "AccountLink", "AdGroup", "AdGroupAd", "AdGroupAdAssetCombinationView", "AdGroupAdAssetView", "AdGroupAdLabel", "AdGroupAsset", "AdGroupAssetSet", "AdGroupAudienceView", "AdGroupBidModifier", "AdGroupCriterion", "AdGroupCriterionCustomizer", "AdGroupCriterionLabel", "AdGroupCriterionSimulation", "AdGroupCustomizer", "AdGroupExtensionSetting", "AdGroupFeed", "AdGroupLabel", "AdGroupSimulation", "AdParameter", "AgeRangeView", "AdScheduleView", "DomainCategory", "Asset", "AssetFieldTypeView", "AssetGroupAsset", "AssetGroupSignal", "AssetGroupListingGroupFilter", "AssetGroupProductGroupView", "AssetGroup", "AssetSetAsset", "AssetSet", "AssetSetTypeView", "BatchJob", "BiddingDataExclusion", "BiddingSeasonalityAdjustment", "BiddingStrategy", "BiddingStrategySimulation", "BillingSetup", "CallView", "CampaignBudget", "Campaign", "CampaignAsset", "CampaignAssetSet", "CampaignAudienceView", "CampaignBidModifier", "CampaignConversionGoal", "CampaignCriterion", "CampaignCustomizer", "CampaignDraft", "CampaignExtensionSetting", "CampaignFeed", "CampaignGroup", "CampaignLabel", "CampaignSharedSet", "CampaignSimulation", "CarrierConstant", "ChangeEvent", "ChangeStatus", "CombinedAudience", "Audience", "ConversionAction", "ConversionCustomVariable", "ConversionGoalCampaignConfig", "ConversionValueRule", "ConversionValueRuleSet", "ClickView", "CurrencyConstant", "CustomAudience", "CustomConversionGoal", "CustomInterest", "Customer", "CustomerAsset", "CustomerAssetSet", "AccessibleBiddingStrategy", "CustomerCustomizer", "CustomerManagerLink", "CustomerClientLink", "CustomerClient", "CustomerConversionGoal", "CustomerExtensionSetting", "CustomerFeed", "CustomerLabel", "CustomerNegativeCriterion", "CustomerUserAccess", "CustomerUserAccessInvitation", "CustomizerAttribute", "DetailPlacementView", "DetailedDemographic", "DisplayKeywordView", "DistanceView", "DynamicSearchAdsSearchTermView", "ExpandedLandingPageView", "ExtensionFeedItem", "Feed", "FeedItem", "FeedItemSet", "FeedItemSetLink", "FeedItemTarget", "FeedMapping", "FeedPlaceholderView", "GenderView", "GeoTargetConstant", "GeographicView", "GroupPlacementView", "HotelGroupView", "HotelPerformanceView", "HotelReconciliation", "IncomeRangeView", "KeywordView", "KeywordPlan", "KeywordPlanCampaign", "KeywordPlanCampaignKeyword", "KeywordPlanAdGroup", "KeywordPlanAdGroupKeyword", "KeywordThemeConstant", "Label", "LandingPageView", "LanguageConstant", "LocationView", "ManagedPlacementView", "MediaFile", "MobileAppCategoryConstant", "MobileDeviceConstant", "OfflineUserDataJob", "OperatingSystemVersionConstant", "PaidOrganicSearchTermView", "QualifyingQuestion", "ParentalStatusView", "PerStoreView", "ProductBiddingCategoryConstant", "ProductGroupView", "ProductLink", "Recommendation", "SearchTermView", "SharedCriterion", "SharedSet", "SmartCampaignSetting", "ShoppingPerformanceView", "SmartCampaignSearchTermView", "ThirdPartyAppAnalyticsLink", "TopicView", "TravelActivityGroupView", "TravelActivityPerformanceView", "Experiment", "ExperimentArm", "UserInterest", "LifeEvent", "UserList", "UserLocationView", "RemarketingAction", "TopicConstant", "Video", "WebpageView", "LeadFormSubmissionData", "Metrics", "Segments" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.GoogleAdsRow), global::Google.Ads.GoogleAds.V14.Services.GoogleAdsRow.Parser, new[]{ "AccountBudget", "AccountBudgetProposal", "AccountLink", "AdGroup", "AdGroupAd", "AdGroupAdAssetCombinationView", "AdGroupAdAssetView", "AdGroupAdLabel", "AdGroupAsset", "AdGroupAssetSet", "AdGroupAudienceView", "AdGroupBidModifier", "AdGroupCriterion", "AdGroupCriterionCustomizer", "AdGroupCriterionLabel", "AdGroupCriterionSimulation", "AdGroupCustomizer", "AdGroupExtensionSetting", "AdGroupFeed", "AdGroupLabel", "AdGroupSimulation", "AdParameter", "AgeRangeView", "AdScheduleView", "DomainCategory", "Asset", "AssetFieldTypeView", "AssetGroupAsset", "AssetGroupSignal", "AssetGroupListingGroupFilter", "AssetGroupProductGroupView", "AssetGroup", "AssetSetAsset", "AssetSet", "AssetSetTypeView", "BatchJob", "BiddingDataExclusion", "BiddingSeasonalityAdjustment", "BiddingStrategy", "BiddingStrategySimulation", "BillingSetup", "CallView", "CampaignBudget", "Campaign", "CampaignAsset", "CampaignAssetSet", "CampaignAudienceView", "CampaignBidModifier", "CampaignConversionGoal", "CampaignCriterion", "CampaignCustomizer", "CampaignDraft", "CampaignExtensionSetting", "CampaignFeed", "CampaignGroup", "CampaignLabel", "CampaignSearchTermInsight", "CampaignSharedSet", "CampaignSimulation", "CarrierConstant", "ChangeEvent", "ChangeStatus", "CombinedAudience", "Audience", "ConversionAction", "ConversionCustomVariable", "ConversionGoalCampaignConfig", "ConversionValueRule", "ConversionValueRuleSet", "ClickView", "CurrencyConstant", "CustomAudience", "CustomConversionGoal", "CustomInterest", "Customer", "CustomerAsset", "CustomerAssetSet", "AccessibleBiddingStrategy", "CustomerCustomizer", "CustomerManagerLink", "CustomerClientLink", "CustomerClient", "CustomerConversionGoal", "CustomerExtensionSetting", "CustomerFeed", "CustomerLabel", "CustomerNegativeCriterion", "CustomerSearchTermInsight", "CustomerUserAccess", "CustomerUserAccessInvitation", "CustomizerAttribute", "DetailPlacementView", "DetailedDemographic", "DisplayKeywordView", "DistanceView", "DynamicSearchAdsSearchTermView", "ExpandedLandingPageView", "ExtensionFeedItem", "Feed", "FeedItem", "FeedItemSet", "FeedItemSetLink", "FeedItemTarget", "FeedMapping", "FeedPlaceholderView", "GenderView", "GeoTargetConstant", "GeographicView", "GroupPlacementView", "HotelGroupView", "HotelPerformanceView", "HotelReconciliation", "IncomeRangeView", "KeywordView", "KeywordPlan", "KeywordPlanCampaign", "KeywordPlanCampaignKeyword", "KeywordPlanAdGroup", "KeywordPlanAdGroupKeyword", "KeywordThemeConstant", "Label", "LandingPageView", "LanguageConstant", "LocationView", "ManagedPlacementView", "MediaFile", "MobileAppCategoryConstant", "MobileDeviceConstant", "OfflineUserDataJob", "OperatingSystemVersionConstant", "PaidOrganicSearchTermView", "QualifyingQuestion", "ParentalStatusView", "PerStoreView", "ProductBiddingCategoryConstant", "ProductGroupView", "ProductLink", "Recommendation", "SearchTermView", "SharedCriterion", "SharedSet", "SmartCampaignSetting", "ShoppingPerformanceView", "SmartCampaignSearchTermView", "ThirdPartyAppAnalyticsLink", "TopicView", "TravelActivityGroupView", "TravelActivityPerformanceView", "Experiment", "ExperimentArm", "UserInterest", "LifeEvent", "UserList", "UserLocationView", "RemarketingAction", "TopicConstant", "Video", "WebpageView", "LeadFormSubmissionData", "Metrics", "Segments" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.MutateGoogleAdsRequest), global::Google.Ads.GoogleAds.V14.Services.MutateGoogleAdsRequest.Parser, new[]{ "CustomerId", "MutateOperations", "PartialFailure", "ValidateOnly", "ResponseContentType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.MutateGoogleAdsResponse), global::Google.Ads.GoogleAds.V14.Services.MutateGoogleAdsResponse.Parser, new[]{ "PartialFailureError", "MutateOperationResponses" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Services.MutateOperation), global::Google.Ads.GoogleAds.V14.Services.MutateOperation.Parser, new[]{ "AdGroupAdLabelOperation", "AdGroupAdOperation", "AdGroupAssetOperation", "AdGroupBidModifierOperation", "AdGroupCriterionCustomizerOperation", "AdGroupCriterionLabelOperation", "AdGroupCriterionOperation", "AdGroupCustomizerOperation", "AdGroupExtensionSettingOperation", "AdGroupFeedOperation", "AdGroupLabelOperation", "AdGroupOperation", "AdOperation", "AdParameterOperation", "AssetOperation", "AssetGroupAssetOperation", "AssetGroupListingGroupFilterOperation", "AssetGroupSignalOperation", "AssetGroupOperation", "AssetSetAssetOperation", "AssetSetOperation", "AudienceOperation", "BiddingDataExclusionOperation", "BiddingSeasonalityAdjustmentOperation", "BiddingStrategyOperation", "CampaignAssetOperation", "CampaignAssetSetOperation", "CampaignBidModifierOperation", "CampaignBudgetOperation", "CampaignConversionGoalOperation", "CampaignCriterionOperation", "CampaignCustomizerOperation", "CampaignDraftOperation", "CampaignExtensionSettingOperation", "CampaignFeedOperation", "CampaignGroupOperation", "CampaignLabelOperation", "CampaignOperation", "CampaignSharedSetOperation", "ConversionActionOperation", "ConversionCustomVariableOperation", "ConversionGoalCampaignConfigOperation", "ConversionValueRuleOperation", "ConversionValueRuleSetOperation", "CustomConversionGoalOperation", "CustomerAssetOperation", "CustomerConversionGoalOperation", "CustomerCustomizerOperation", "CustomerExtensionSettingOperation", "CustomerFeedOperation", "CustomerLabelOperation", "CustomerNegativeCriterionOperation", "CustomerOperation", "CustomizerAttributeOperation", "ExperimentOperation", "ExperimentArmOperation", "ExtensionFeedItemOperation", "FeedItemOperation", "FeedItemSetOperation", "FeedItemSetLinkOperation", "FeedItemTargetOperation", "FeedMappingOperation", "FeedOperation", "KeywordPlanAdGroupOperation", "KeywordPlanAdGroupKeywordOperation", "KeywordPlanCampaignKeywordOperation", "KeywordPlanCampaignOperation", "KeywordPlanOperation", "LabelOperation", "MediaFileOperation", "RemarketingActionOperation", "SharedCriterionOperation", "SharedSetOperation", "SmartCampaignSettingOperation", "UserListOperation" }, new[]{ "Operation" }, null, null, null), @@ -2572,6 +2580,7 @@ public GoogleAdsRow(GoogleAdsRow other) : this() { campaignFeed_ = other.campaignFeed_ != null ? other.campaignFeed_.Clone() : null; campaignGroup_ = other.campaignGroup_ != null ? other.campaignGroup_.Clone() : null; campaignLabel_ = other.campaignLabel_ != null ? other.campaignLabel_.Clone() : null; + campaignSearchTermInsight_ = other.campaignSearchTermInsight_ != null ? other.campaignSearchTermInsight_.Clone() : null; campaignSharedSet_ = other.campaignSharedSet_ != null ? other.campaignSharedSet_.Clone() : null; campaignSimulation_ = other.campaignSimulation_ != null ? other.campaignSimulation_.Clone() : null; carrierConstant_ = other.carrierConstant_ != null ? other.carrierConstant_.Clone() : null; @@ -2602,6 +2611,7 @@ public GoogleAdsRow(GoogleAdsRow other) : this() { customerFeed_ = other.customerFeed_ != null ? other.customerFeed_.Clone() : null; customerLabel_ = other.customerLabel_ != null ? other.customerLabel_.Clone() : null; customerNegativeCriterion_ = other.customerNegativeCriterion_ != null ? other.customerNegativeCriterion_.Clone() : null; + customerSearchTermInsight_ = other.customerSearchTermInsight_ != null ? other.customerSearchTermInsight_.Clone() : null; customerUserAccess_ = other.customerUserAccess_ != null ? other.customerUserAccess_.Clone() : null; customerUserAccessInvitation_ = other.customerUserAccessInvitation_ != null ? other.customerUserAccessInvitation_.Clone() : null; customizerAttribute_ = other.customizerAttribute_ != null ? other.customizerAttribute_.Clone() : null; @@ -3524,6 +3534,21 @@ public GoogleAdsRow Clone() { } } + /// Field number for the "campaign_search_term_insight" field. + public const int CampaignSearchTermInsightFieldNumber = 204; + private global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsight campaignSearchTermInsight_; + /// + /// The campaign search term insight referenced in the query. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsight CampaignSearchTermInsight { + get { return campaignSearchTermInsight_; } + set { + campaignSearchTermInsight_ = value; + } + } + /// Field number for the "campaign_shared_set" field. public const int CampaignSharedSetFieldNumber = 30; private global::Google.Ads.GoogleAds.V14.Resources.CampaignSharedSet campaignSharedSet_; @@ -3974,6 +3999,21 @@ public GoogleAdsRow Clone() { } } + /// Field number for the "customer_search_term_insight" field. + public const int CustomerSearchTermInsightFieldNumber = 205; + private global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsight customerSearchTermInsight_; + /// + /// The customer search term insight referenced in the query. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsight CustomerSearchTermInsight { + get { return customerSearchTermInsight_; } + set { + customerSearchTermInsight_ = value; + } + } + /// Field number for the "customer_user_access" field. public const int CustomerUserAccessFieldNumber = 146; private global::Google.Ads.GoogleAds.V14.Resources.CustomerUserAccess customerUserAccess_; @@ -5140,6 +5180,7 @@ public bool Equals(GoogleAdsRow other) { if (!object.Equals(CampaignFeed, other.CampaignFeed)) return false; if (!object.Equals(CampaignGroup, other.CampaignGroup)) return false; if (!object.Equals(CampaignLabel, other.CampaignLabel)) return false; + if (!object.Equals(CampaignSearchTermInsight, other.CampaignSearchTermInsight)) return false; if (!object.Equals(CampaignSharedSet, other.CampaignSharedSet)) return false; if (!object.Equals(CampaignSimulation, other.CampaignSimulation)) return false; if (!object.Equals(CarrierConstant, other.CarrierConstant)) return false; @@ -5170,6 +5211,7 @@ public bool Equals(GoogleAdsRow other) { if (!object.Equals(CustomerFeed, other.CustomerFeed)) return false; if (!object.Equals(CustomerLabel, other.CustomerLabel)) return false; if (!object.Equals(CustomerNegativeCriterion, other.CustomerNegativeCriterion)) return false; + if (!object.Equals(CustomerSearchTermInsight, other.CustomerSearchTermInsight)) return false; if (!object.Equals(CustomerUserAccess, other.CustomerUserAccess)) return false; if (!object.Equals(CustomerUserAccessInvitation, other.CustomerUserAccessInvitation)) return false; if (!object.Equals(CustomizerAttribute, other.CustomizerAttribute)) return false; @@ -5306,6 +5348,7 @@ public override int GetHashCode() { if (campaignFeed_ != null) hash ^= CampaignFeed.GetHashCode(); if (campaignGroup_ != null) hash ^= CampaignGroup.GetHashCode(); if (campaignLabel_ != null) hash ^= CampaignLabel.GetHashCode(); + if (campaignSearchTermInsight_ != null) hash ^= CampaignSearchTermInsight.GetHashCode(); if (campaignSharedSet_ != null) hash ^= CampaignSharedSet.GetHashCode(); if (campaignSimulation_ != null) hash ^= CampaignSimulation.GetHashCode(); if (carrierConstant_ != null) hash ^= CarrierConstant.GetHashCode(); @@ -5336,6 +5379,7 @@ public override int GetHashCode() { if (customerFeed_ != null) hash ^= CustomerFeed.GetHashCode(); if (customerLabel_ != null) hash ^= CustomerLabel.GetHashCode(); if (customerNegativeCriterion_ != null) hash ^= CustomerNegativeCriterion.GetHashCode(); + if (customerSearchTermInsight_ != null) hash ^= CustomerSearchTermInsight.GetHashCode(); if (customerUserAccess_ != null) hash ^= CustomerUserAccess.GetHashCode(); if (customerUserAccessInvitation_ != null) hash ^= CustomerUserAccessInvitation.GetHashCode(); if (customizerAttribute_ != null) hash ^= CustomizerAttribute.GetHashCode(); @@ -6063,6 +6107,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(210, 12); output.WriteMessage(QualifyingQuestion); } + if (campaignSearchTermInsight_ != null) { + output.WriteRawTag(226, 12); + output.WriteMessage(CampaignSearchTermInsight); + } + if (customerSearchTermInsight_ != null) { + output.WriteRawTag(234, 12); + output.WriteMessage(CustomerSearchTermInsight); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6709,6 +6761,14 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(210, 12); output.WriteMessage(QualifyingQuestion); } + if (campaignSearchTermInsight_ != null) { + output.WriteRawTag(226, 12); + output.WriteMessage(CampaignSearchTermInsight); + } + if (customerSearchTermInsight_ != null) { + output.WriteRawTag(234, 12); + output.WriteMessage(CustomerSearchTermInsight); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6887,6 +6947,9 @@ public int CalculateSize() { if (campaignLabel_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignLabel); } + if (campaignSearchTermInsight_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignSearchTermInsight); + } if (campaignSharedSet_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(CampaignSharedSet); } @@ -6977,6 +7040,9 @@ public int CalculateSize() { if (customerNegativeCriterion_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerNegativeCriterion); } + if (customerSearchTermInsight_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerSearchTermInsight); + } if (customerUserAccess_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(CustomerUserAccess); } @@ -7544,6 +7610,12 @@ public void MergeFrom(GoogleAdsRow other) { } CampaignLabel.MergeFrom(other.CampaignLabel); } + if (other.campaignSearchTermInsight_ != null) { + if (campaignSearchTermInsight_ == null) { + CampaignSearchTermInsight = new global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsight(); + } + CampaignSearchTermInsight.MergeFrom(other.CampaignSearchTermInsight); + } if (other.campaignSharedSet_ != null) { if (campaignSharedSet_ == null) { CampaignSharedSet = new global::Google.Ads.GoogleAds.V14.Resources.CampaignSharedSet(); @@ -7724,6 +7796,12 @@ public void MergeFrom(GoogleAdsRow other) { } CustomerNegativeCriterion.MergeFrom(other.CustomerNegativeCriterion); } + if (other.customerSearchTermInsight_ != null) { + if (customerSearchTermInsight_ == null) { + CustomerSearchTermInsight = new global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsight(); + } + CustomerSearchTermInsight.MergeFrom(other.CustomerSearchTermInsight); + } if (other.customerUserAccess_ != null) { if (customerUserAccess_ == null) { CustomerUserAccess = new global::Google.Ads.GoogleAds.V14.Resources.CustomerUserAccess(); @@ -9290,6 +9368,20 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(QualifyingQuestion); break; } + case 1634: { + if (campaignSearchTermInsight_ == null) { + CampaignSearchTermInsight = new global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsight(); + } + input.ReadMessage(CampaignSearchTermInsight); + break; + } + case 1642: { + if (customerSearchTermInsight_ == null) { + CustomerSearchTermInsight = new global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsight(); + } + input.ReadMessage(CustomerSearchTermInsight); + break; + } } } #endif @@ -10418,6 +10510,20 @@ public void MergeFrom(pb::CodedInputStream input) { input.ReadMessage(QualifyingQuestion); break; } + case 1634: { + if (campaignSearchTermInsight_ == null) { + CampaignSearchTermInsight = new global::Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsight(); + } + input.ReadMessage(CampaignSearchTermInsight); + break; + } + case 1642: { + if (customerSearchTermInsight_ == null) { + CustomerSearchTermInsight = new global::Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsight(); + } + input.ReadMessage(CustomerSearchTermInsight); + break; + } } } } diff --git a/Google.Ads.GoogleAds/src/V14/Invoice.g.cs b/Google.Ads.GoogleAds/src/V14/Invoice.g.cs index 3f0fbfeea..301a5dabb 100755 --- a/Google.Ads.GoogleAds/src/V14/Invoice.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Invoice.g.cs @@ -30,7 +30,7 @@ static InvoiceReflection() { "b2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9pbnZvaWNlX3R5cGUucHJv", "dG8aMmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9tb250aF9vZl95", "ZWFyLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGhln", - "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvIv8iCgdJbnZvaWNlEj8KDXJlc291", + "b29nbGUvYXBpL3Jlc291cmNlLnByb3RvIqUnCgdJbnZvaWNlEj8KDXJlc291", "cmNlX25hbWUYASABKAlCKOBBA/pBIgogZ29vZ2xlYWRzLmdvb2dsZWFwaXMu", "Y29tL0ludm9pY2USFAoCaWQYGSABKAlCA+BBA0gAiAEBEk4KBHR5cGUYAyAB", "KA4yOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuSW52b2ljZVR5", @@ -47,100 +47,112 @@ static InvoiceReflection() { "YXRvcnlfY29zdHNfc3VidG90YWxfYW1vdW50X21pY3JvcxgWIAEoA0ID4EED", "Ei8KInJlZ3VsYXRvcnlfY29zdHNfdGF4X2Ftb3VudF9taWNyb3MYFyABKANC", "A+BBAxIxCiRyZWd1bGF0b3J5X2Nvc3RzX3RvdGFsX2Ftb3VudF9taWNyb3MY", - "GCABKANCA+BBAxIoChZzdWJ0b3RhbF9hbW91bnRfbWljcm9zGCEgASgDQgPg", - "QQNIB4gBARIjChF0YXhfYW1vdW50X21pY3JvcxgiIAEoA0ID4EEDSAiIAQES", - "JQoTdG90YWxfYW1vdW50X21pY3JvcxgjIAEoA0ID4EEDSAmIAQESIwoRY29y", - "cmVjdGVkX2ludm9pY2UYJCABKAlCA+BBA0gKiAEBEh4KEXJlcGxhY2VkX2lu", - "dm9pY2VzGCUgAygJQgPgQQMSGQoHcGRmX3VybBgmIAEoCUID4EEDSAuIAQES", - "ZwoYYWNjb3VudF9idWRnZXRfc3VtbWFyaWVzGBIgAygLMkAuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5JbnZvaWNlLkFjY291bnRCdWRn", - "ZXRTdW1tYXJ5QgPgQQMSWgoRYWNjb3VudF9zdW1tYXJpZXMYJyADKAsyOi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkludm9pY2UuQWNj", - "b3VudFN1bW1hcnlCA+BBAxrOCwoOQWNjb3VudFN1bW1hcnkSGgoIY3VzdG9t", - "ZXIYASABKAlCA+BBA0gAiAEBEjsKKWJpbGxpbmdfY29ycmVjdGlvbl9zdWJ0", - "b3RhbF9hbW91bnRfbWljcm9zGAIgASgDQgPgQQNIAYgBARI2CiRiaWxsaW5n", - "X2NvcnJlY3Rpb25fdGF4X2Ftb3VudF9taWNyb3MYAyABKANCA+BBA0gCiAEB", - "EjgKJmJpbGxpbmdfY29ycmVjdGlvbl90b3RhbF9hbW91bnRfbWljcm9zGAQg", - "ASgDQgPgQQNIA4gBARI6Cihjb3Vwb25fYWRqdXN0bWVudF9zdWJ0b3RhbF9h", - "bW91bnRfbWljcm9zGAUgASgDQgPgQQNIBIgBARI1CiNjb3Vwb25fYWRqdXN0", - "bWVudF90YXhfYW1vdW50X21pY3JvcxgGIAEoA0ID4EEDSAWIAQESNwolY291", - "cG9uX2FkanVzdG1lbnRfdG90YWxfYW1vdW50X21pY3JvcxgHIAEoA0ID4EED", - "SAaIAQESQQovZXhjZXNzX2NyZWRpdF9hZGp1c3RtZW50X3N1YnRvdGFsX2Ft", - "b3VudF9taWNyb3MYCCABKANCA+BBA0gHiAEBEjwKKmV4Y2Vzc19jcmVkaXRf", - "YWRqdXN0bWVudF90YXhfYW1vdW50X21pY3JvcxgJIAEoA0ID4EEDSAiIAQES", - "PgosZXhjZXNzX2NyZWRpdF9hZGp1c3RtZW50X3RvdGFsX2Ftb3VudF9taWNy", - "b3MYCiABKANCA+BBA0gJiAEBEjkKJ3JlZ3VsYXRvcnlfY29zdHNfc3VidG90", - "YWxfYW1vdW50X21pY3JvcxgLIAEoA0ID4EEDSAqIAQESNAoicmVndWxhdG9y", - "eV9jb3N0c190YXhfYW1vdW50X21pY3JvcxgMIAEoA0ID4EEDSAuIAQESNgok", - "cmVndWxhdG9yeV9jb3N0c190b3RhbF9hbW91bnRfbWljcm9zGA0gASgDQgPg", - "QQNIDIgBARIoChZzdWJ0b3RhbF9hbW91bnRfbWljcm9zGA4gASgDQgPgQQNI", - "DYgBARIjChF0YXhfYW1vdW50X21pY3JvcxgPIAEoA0ID4EEDSA6IAQESJQoT", - "dG90YWxfYW1vdW50X21pY3JvcxgQIAEoA0ID4EEDSA+IAQFCCwoJX2N1c3Rv", - "bWVyQiwKKl9iaWxsaW5nX2NvcnJlY3Rpb25fc3VidG90YWxfYW1vdW50X21p", - "Y3Jvc0InCiVfYmlsbGluZ19jb3JyZWN0aW9uX3RheF9hbW91bnRfbWljcm9z", - "QikKJ19iaWxsaW5nX2NvcnJlY3Rpb25fdG90YWxfYW1vdW50X21pY3Jvc0Ir", - "CilfY291cG9uX2FkanVzdG1lbnRfc3VidG90YWxfYW1vdW50X21pY3Jvc0Im", - "CiRfY291cG9uX2FkanVzdG1lbnRfdGF4X2Ftb3VudF9taWNyb3NCKAomX2Nv", - "dXBvbl9hZGp1c3RtZW50X3RvdGFsX2Ftb3VudF9taWNyb3NCMgowX2V4Y2Vz", - "c19jcmVkaXRfYWRqdXN0bWVudF9zdWJ0b3RhbF9hbW91bnRfbWljcm9zQi0K", - "K19leGNlc3NfY3JlZGl0X2FkanVzdG1lbnRfdGF4X2Ftb3VudF9taWNyb3NC", - "LwotX2V4Y2Vzc19jcmVkaXRfYWRqdXN0bWVudF90b3RhbF9hbW91bnRfbWlj", - "cm9zQioKKF9yZWd1bGF0b3J5X2Nvc3RzX3N1YnRvdGFsX2Ftb3VudF9taWNy", - "b3NCJQojX3JlZ3VsYXRvcnlfY29zdHNfdGF4X2Ftb3VudF9taWNyb3NCJwol", - "X3JlZ3VsYXRvcnlfY29zdHNfdG90YWxfYW1vdW50X21pY3Jvc0IZChdfc3Vi", - "dG90YWxfYW1vdW50X21pY3Jvc0IUChJfdGF4X2Ftb3VudF9taWNyb3NCFgoU", - "X3RvdGFsX2Ftb3VudF9taWNyb3Ma6AcKFEFjY291bnRCdWRnZXRTdW1tYXJ5", - "EhoKCGN1c3RvbWVyGAogASgJQgPgQQNIAIgBARIrChljdXN0b21lcl9kZXNj", - "cmlwdGl2ZV9uYW1lGAsgASgJQgPgQQNIAYgBARIgCg5hY2NvdW50X2J1ZGdl", - "dBgMIAEoCUID4EEDSAKIAQESJQoTYWNjb3VudF9idWRnZXRfbmFtZRgNIAEo", - "CUID4EEDSAOIAQESJwoVcHVyY2hhc2Vfb3JkZXJfbnVtYmVyGA4gASgJQgPg", - "QQNIBIgBARIoChZzdWJ0b3RhbF9hbW91bnRfbWljcm9zGA8gASgDQgPgQQNI", - "BYgBARIjChF0YXhfYW1vdW50X21pY3JvcxgQIAEoA0ID4EEDSAaIAQESJQoT", - "dG90YWxfYW1vdW50X21pY3JvcxgRIAEoA0ID4EEDSAeIAQESVQocYmlsbGFi", - "bGVfYWN0aXZpdHlfZGF0ZV9yYW5nZRgJIAEoCzIqLmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5jb21tb24uRGF0ZVJhbmdlQgPgQQMSJgoUc2VydmVkX2Ft", - "b3VudF9taWNyb3MYEiABKANCA+BBA0gIiAEBEiYKFGJpbGxlZF9hbW91bnRf", - "bWljcm9zGBMgASgDQgPgQQNICYgBARIsChpvdmVyZGVsaXZlcnlfYW1vdW50", - "X21pY3JvcxgUIAEoA0ID4EEDSAqIAQESMAoeaW52YWxpZF9hY3Rpdml0eV9h", - "bW91bnRfbWljcm9zGBUgASgDQgPgQQNIC4gBARJrChppbnZhbGlkX2FjdGl2", - "aXR5X3N1bW1hcmllcxgWIAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5yZXNvdXJjZXMuSW52b2ljZS5JbnZhbGlkQWN0aXZpdHlTdW1tYXJ5QgPg", - "QQNCCwoJX2N1c3RvbWVyQhwKGl9jdXN0b21lcl9kZXNjcmlwdGl2ZV9uYW1l", - "QhEKD19hY2NvdW50X2J1ZGdldEIWChRfYWNjb3VudF9idWRnZXRfbmFtZUIY", - "ChZfcHVyY2hhc2Vfb3JkZXJfbnVtYmVyQhkKF19zdWJ0b3RhbF9hbW91bnRf", - "bWljcm9zQhQKEl90YXhfYW1vdW50X21pY3Jvc0IWChRfdG90YWxfYW1vdW50", - "X21pY3Jvc0IXChVfc2VydmVkX2Ftb3VudF9taWNyb3NCFwoVX2JpbGxlZF9h", - "bW91bnRfbWljcm9zQh0KG19vdmVyZGVsaXZlcnlfYW1vdW50X21pY3Jvc0Ih", - "Ch9faW52YWxpZF9hY3Rpdml0eV9hbW91bnRfbWljcm9zGoEEChZJbnZhbGlk", - "QWN0aXZpdHlTdW1tYXJ5EmgKGW9yaWdpbmFsX21vbnRoX29mX3NlcnZpY2UY", - "ASABKA4yOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuTW9udGhP", - "ZlllYXJFbnVtLk1vbnRoT2ZZZWFyQgPgQQNIAIgBARIqChhvcmlnaW5hbF95", - "ZWFyX29mX3NlcnZpY2UYAiABKAlCA+BBA0gBiAEBEiUKE29yaWdpbmFsX2lu", - "dm9pY2VfaWQYAyABKAlCA+BBA0gCiAEBEi4KHG9yaWdpbmFsX2FjY291bnRf", - "YnVkZ2V0X25hbWUYBCABKAlCA+BBA0gDiAEBEjAKHm9yaWdpbmFsX3B1cmNo", - "YXNlX29yZGVyX251bWJlchgFIAEoCUID4EEDSASIAQESHwoNYW1vdW50X21p", - "Y3JvcxgGIAEoA0ID4EEDSAWIAQFCHAoaX29yaWdpbmFsX21vbnRoX29mX3Nl", - "cnZpY2VCGwoZX29yaWdpbmFsX3llYXJfb2Zfc2VydmljZUIWChRfb3JpZ2lu", - "YWxfaW52b2ljZV9pZEIfCh1fb3JpZ2luYWxfYWNjb3VudF9idWRnZXRfbmFt", - "ZUIhCh9fb3JpZ2luYWxfcHVyY2hhc2Vfb3JkZXJfbnVtYmVyQhAKDl9hbW91", - "bnRfbWljcm9zOlTqQVEKIGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9JbnZv", - "aWNlEi1jdXN0b21lcnMve2N1c3RvbWVyX2lkfS9pbnZvaWNlcy97aW52b2lj", - "ZV9pZH1CBQoDX2lkQhAKDl9iaWxsaW5nX3NldHVwQhYKFF9wYXltZW50c19h", - "Y2NvdW50X2lkQhYKFF9wYXltZW50c19wcm9maWxlX2lkQg0KC19pc3N1ZV9k", - "YXRlQgsKCV9kdWVfZGF0ZUIQCg5fY3VycmVuY3lfY29kZUIZChdfc3VidG90", - "YWxfYW1vdW50X21pY3Jvc0IUChJfdGF4X2Ftb3VudF9taWNyb3NCFgoUX3Rv", - "dGFsX2Ftb3VudF9taWNyb3NCFAoSX2NvcnJlY3RlZF9pbnZvaWNlQgoKCF9w", - "ZGZfdXJsQv4BCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291", - "cmNlc0IMSW52b2ljZVByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzO3Jl", - "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNC5SZXNv", - "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcUmVzb3VyY2Vz6gIm", - "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpSZXNvdXJjZXNiBnByb3Rv", - "Mw==")); + "GCABKANCA+BBAxI2CiRleHBvcnRfY2hhcmdlX3N1YnRvdGFsX2Ftb3VudF9t", + "aWNyb3MYKCABKANCA+BBA0gHiAEBEjEKH2V4cG9ydF9jaGFyZ2VfdGF4X2Ft", + "b3VudF9taWNyb3MYKSABKANCA+BBA0gIiAEBEjMKIWV4cG9ydF9jaGFyZ2Vf", + "dG90YWxfYW1vdW50X21pY3JvcxgqIAEoA0ID4EEDSAmIAQESKAoWc3VidG90", + "YWxfYW1vdW50X21pY3JvcxghIAEoA0ID4EEDSAqIAQESIwoRdGF4X2Ftb3Vu", + "dF9taWNyb3MYIiABKANCA+BBA0gLiAEBEiUKE3RvdGFsX2Ftb3VudF9taWNy", + "b3MYIyABKANCA+BBA0gMiAEBEiMKEWNvcnJlY3RlZF9pbnZvaWNlGCQgASgJ", + "QgPgQQNIDYgBARIeChFyZXBsYWNlZF9pbnZvaWNlcxglIAMoCUID4EEDEhkK", + "B3BkZl91cmwYJiABKAlCA+BBA0gOiAEBEmcKGGFjY291bnRfYnVkZ2V0X3N1", + "bW1hcmllcxgSIAMoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", + "dXJjZXMuSW52b2ljZS5BY2NvdW50QnVkZ2V0U3VtbWFyeUID4EEDEloKEWFj", + "Y291bnRfc3VtbWFyaWVzGCcgAygLMjouZ29vZ2xlLmFkcy5nb29nbGVhZHMu", + "djE0LnJlc291cmNlcy5JbnZvaWNlLkFjY291bnRTdW1tYXJ5QgPgQQMa4Q0K", + "DkFjY291bnRTdW1tYXJ5EhoKCGN1c3RvbWVyGAEgASgJQgPgQQNIAIgBARI7", + "CiliaWxsaW5nX2NvcnJlY3Rpb25fc3VidG90YWxfYW1vdW50X21pY3JvcxgC", + "IAEoA0ID4EEDSAGIAQESNgokYmlsbGluZ19jb3JyZWN0aW9uX3RheF9hbW91", + "bnRfbWljcm9zGAMgASgDQgPgQQNIAogBARI4CiZiaWxsaW5nX2NvcnJlY3Rp", + "b25fdG90YWxfYW1vdW50X21pY3JvcxgEIAEoA0ID4EEDSAOIAQESOgooY291", + "cG9uX2FkanVzdG1lbnRfc3VidG90YWxfYW1vdW50X21pY3JvcxgFIAEoA0ID", + "4EEDSASIAQESNQojY291cG9uX2FkanVzdG1lbnRfdGF4X2Ftb3VudF9taWNy", + "b3MYBiABKANCA+BBA0gFiAEBEjcKJWNvdXBvbl9hZGp1c3RtZW50X3RvdGFs", + "X2Ftb3VudF9taWNyb3MYByABKANCA+BBA0gGiAEBEkEKL2V4Y2Vzc19jcmVk", + "aXRfYWRqdXN0bWVudF9zdWJ0b3RhbF9hbW91bnRfbWljcm9zGAggASgDQgPg", + "QQNIB4gBARI8CipleGNlc3NfY3JlZGl0X2FkanVzdG1lbnRfdGF4X2Ftb3Vu", + "dF9taWNyb3MYCSABKANCA+BBA0gIiAEBEj4KLGV4Y2Vzc19jcmVkaXRfYWRq", + "dXN0bWVudF90b3RhbF9hbW91bnRfbWljcm9zGAogASgDQgPgQQNICYgBARI5", + "CidyZWd1bGF0b3J5X2Nvc3RzX3N1YnRvdGFsX2Ftb3VudF9taWNyb3MYCyAB", + "KANCA+BBA0gKiAEBEjQKInJlZ3VsYXRvcnlfY29zdHNfdGF4X2Ftb3VudF9t", + "aWNyb3MYDCABKANCA+BBA0gLiAEBEjYKJHJlZ3VsYXRvcnlfY29zdHNfdG90", + "YWxfYW1vdW50X21pY3JvcxgNIAEoA0ID4EEDSAyIAQESNgokZXhwb3J0X2No", + "YXJnZV9zdWJ0b3RhbF9hbW91bnRfbWljcm9zGBEgASgDQgPgQQNIDYgBARIx", + "Ch9leHBvcnRfY2hhcmdlX3RheF9hbW91bnRfbWljcm9zGBIgASgDQgPgQQNI", + "DogBARIzCiFleHBvcnRfY2hhcmdlX3RvdGFsX2Ftb3VudF9taWNyb3MYEyAB", + "KANCA+BBA0gPiAEBEigKFnN1YnRvdGFsX2Ftb3VudF9taWNyb3MYDiABKANC", + "A+BBA0gQiAEBEiMKEXRheF9hbW91bnRfbWljcm9zGA8gASgDQgPgQQNIEYgB", + "ARIlChN0b3RhbF9hbW91bnRfbWljcm9zGBAgASgDQgPgQQNIEogBAUILCglf", + "Y3VzdG9tZXJCLAoqX2JpbGxpbmdfY29ycmVjdGlvbl9zdWJ0b3RhbF9hbW91", + "bnRfbWljcm9zQicKJV9iaWxsaW5nX2NvcnJlY3Rpb25fdGF4X2Ftb3VudF9t", + "aWNyb3NCKQonX2JpbGxpbmdfY29ycmVjdGlvbl90b3RhbF9hbW91bnRfbWlj", + "cm9zQisKKV9jb3Vwb25fYWRqdXN0bWVudF9zdWJ0b3RhbF9hbW91bnRfbWlj", + "cm9zQiYKJF9jb3Vwb25fYWRqdXN0bWVudF90YXhfYW1vdW50X21pY3Jvc0Io", + "CiZfY291cG9uX2FkanVzdG1lbnRfdG90YWxfYW1vdW50X21pY3Jvc0IyCjBf", + "ZXhjZXNzX2NyZWRpdF9hZGp1c3RtZW50X3N1YnRvdGFsX2Ftb3VudF9taWNy", + "b3NCLQorX2V4Y2Vzc19jcmVkaXRfYWRqdXN0bWVudF90YXhfYW1vdW50X21p", + "Y3Jvc0IvCi1fZXhjZXNzX2NyZWRpdF9hZGp1c3RtZW50X3RvdGFsX2Ftb3Vu", + "dF9taWNyb3NCKgooX3JlZ3VsYXRvcnlfY29zdHNfc3VidG90YWxfYW1vdW50", + "X21pY3Jvc0IlCiNfcmVndWxhdG9yeV9jb3N0c190YXhfYW1vdW50X21pY3Jv", + "c0InCiVfcmVndWxhdG9yeV9jb3N0c190b3RhbF9hbW91bnRfbWljcm9zQicK", + "JV9leHBvcnRfY2hhcmdlX3N1YnRvdGFsX2Ftb3VudF9taWNyb3NCIgogX2V4", + "cG9ydF9jaGFyZ2VfdGF4X2Ftb3VudF9taWNyb3NCJAoiX2V4cG9ydF9jaGFy", + "Z2VfdG90YWxfYW1vdW50X21pY3Jvc0IZChdfc3VidG90YWxfYW1vdW50X21p", + "Y3Jvc0IUChJfdGF4X2Ftb3VudF9taWNyb3NCFgoUX3RvdGFsX2Ftb3VudF9t", + "aWNyb3Ma6AcKFEFjY291bnRCdWRnZXRTdW1tYXJ5EhoKCGN1c3RvbWVyGAog", + "ASgJQgPgQQNIAIgBARIrChljdXN0b21lcl9kZXNjcmlwdGl2ZV9uYW1lGAsg", + "ASgJQgPgQQNIAYgBARIgCg5hY2NvdW50X2J1ZGdldBgMIAEoCUID4EEDSAKI", + "AQESJQoTYWNjb3VudF9idWRnZXRfbmFtZRgNIAEoCUID4EEDSAOIAQESJwoV", + "cHVyY2hhc2Vfb3JkZXJfbnVtYmVyGA4gASgJQgPgQQNIBIgBARIoChZzdWJ0", + "b3RhbF9hbW91bnRfbWljcm9zGA8gASgDQgPgQQNIBYgBARIjChF0YXhfYW1v", + "dW50X21pY3JvcxgQIAEoA0ID4EEDSAaIAQESJQoTdG90YWxfYW1vdW50X21p", + "Y3JvcxgRIAEoA0ID4EEDSAeIAQESVQocYmlsbGFibGVfYWN0aXZpdHlfZGF0", + "ZV9yYW5nZRgJIAEoCzIqLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21t", + "b24uRGF0ZVJhbmdlQgPgQQMSJgoUc2VydmVkX2Ftb3VudF9taWNyb3MYEiAB", + "KANCA+BBA0gIiAEBEiYKFGJpbGxlZF9hbW91bnRfbWljcm9zGBMgASgDQgPg", + "QQNICYgBARIsChpvdmVyZGVsaXZlcnlfYW1vdW50X21pY3JvcxgUIAEoA0ID", + "4EEDSAqIAQESMAoeaW52YWxpZF9hY3Rpdml0eV9hbW91bnRfbWljcm9zGBUg", + "ASgDQgPgQQNIC4gBARJrChppbnZhbGlkX2FjdGl2aXR5X3N1bW1hcmllcxgW", + "IAMoCzJCLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuSW52", + "b2ljZS5JbnZhbGlkQWN0aXZpdHlTdW1tYXJ5QgPgQQNCCwoJX2N1c3RvbWVy", + "QhwKGl9jdXN0b21lcl9kZXNjcmlwdGl2ZV9uYW1lQhEKD19hY2NvdW50X2J1", + "ZGdldEIWChRfYWNjb3VudF9idWRnZXRfbmFtZUIYChZfcHVyY2hhc2Vfb3Jk", + "ZXJfbnVtYmVyQhkKF19zdWJ0b3RhbF9hbW91bnRfbWljcm9zQhQKEl90YXhf", + "YW1vdW50X21pY3Jvc0IWChRfdG90YWxfYW1vdW50X21pY3Jvc0IXChVfc2Vy", + "dmVkX2Ftb3VudF9taWNyb3NCFwoVX2JpbGxlZF9hbW91bnRfbWljcm9zQh0K", + "G19vdmVyZGVsaXZlcnlfYW1vdW50X21pY3Jvc0IhCh9faW52YWxpZF9hY3Rp", + "dml0eV9hbW91bnRfbWljcm9zGoEEChZJbnZhbGlkQWN0aXZpdHlTdW1tYXJ5", + "EmgKGW9yaWdpbmFsX21vbnRoX29mX3NlcnZpY2UYASABKA4yOy5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuZW51bXMuTW9udGhPZlllYXJFbnVtLk1vbnRo", + "T2ZZZWFyQgPgQQNIAIgBARIqChhvcmlnaW5hbF95ZWFyX29mX3NlcnZpY2UY", + "AiABKAlCA+BBA0gBiAEBEiUKE29yaWdpbmFsX2ludm9pY2VfaWQYAyABKAlC", + "A+BBA0gCiAEBEi4KHG9yaWdpbmFsX2FjY291bnRfYnVkZ2V0X25hbWUYBCAB", + "KAlCA+BBA0gDiAEBEjAKHm9yaWdpbmFsX3B1cmNoYXNlX29yZGVyX251bWJl", + "chgFIAEoCUID4EEDSASIAQESHwoNYW1vdW50X21pY3JvcxgGIAEoA0ID4EED", + "SAWIAQFCHAoaX29yaWdpbmFsX21vbnRoX29mX3NlcnZpY2VCGwoZX29yaWdp", + "bmFsX3llYXJfb2Zfc2VydmljZUIWChRfb3JpZ2luYWxfaW52b2ljZV9pZEIf", + "Ch1fb3JpZ2luYWxfYWNjb3VudF9idWRnZXRfbmFtZUIhCh9fb3JpZ2luYWxf", + "cHVyY2hhc2Vfb3JkZXJfbnVtYmVyQhAKDl9hbW91bnRfbWljcm9zOlTqQVEK", + "IGdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9JbnZvaWNlEi1jdXN0b21lcnMv", + "e2N1c3RvbWVyX2lkfS9pbnZvaWNlcy97aW52b2ljZV9pZH1CBQoDX2lkQhAK", + "Dl9iaWxsaW5nX3NldHVwQhYKFF9wYXltZW50c19hY2NvdW50X2lkQhYKFF9w", + "YXltZW50c19wcm9maWxlX2lkQg0KC19pc3N1ZV9kYXRlQgsKCV9kdWVfZGF0", + "ZUIQCg5fY3VycmVuY3lfY29kZUInCiVfZXhwb3J0X2NoYXJnZV9zdWJ0b3Rh", + "bF9hbW91bnRfbWljcm9zQiIKIF9leHBvcnRfY2hhcmdlX3RheF9hbW91bnRf", + "bWljcm9zQiQKIl9leHBvcnRfY2hhcmdlX3RvdGFsX2Ftb3VudF9taWNyb3NC", + "GQoXX3N1YnRvdGFsX2Ftb3VudF9taWNyb3NCFAoSX3RheF9hbW91bnRfbWlj", + "cm9zQhYKFF90b3RhbF9hbW91bnRfbWljcm9zQhQKEl9jb3JyZWN0ZWRfaW52", + "b2ljZUIKCghfcGRmX3VybEL+AQomY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5yZXNvdXJjZXNCDEludm9pY2VQcm90b1ABWktnb29nbGUuZ29sYW5n", + "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L3Jl", + "c291cmNlcztyZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFk", + "cy5WMTQuUmVzb3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XFJl", + "c291cmNlc+oCJkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNDo6UmVzb3Vy", + "Y2VzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.DatesReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.InvoiceTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.MonthOfYearReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Invoice), global::Google.Ads.GoogleAds.V14.Resources.Invoice.Parser, new[]{ "ResourceName", "Id", "Type", "BillingSetup", "PaymentsAccountId", "PaymentsProfileId", "IssueDate", "DueDate", "ServiceDateRange", "CurrencyCode", "AdjustmentsSubtotalAmountMicros", "AdjustmentsTaxAmountMicros", "AdjustmentsTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "CorrectedInvoice", "ReplacedInvoices", "PdfUrl", "AccountBudgetSummaries", "AccountSummaries" }, new[]{ "Id", "BillingSetup", "PaymentsAccountId", "PaymentsProfileId", "IssueDate", "DueDate", "CurrencyCode", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "CorrectedInvoice", "PdfUrl" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.AccountSummary), global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.AccountSummary.Parser, new[]{ "Customer", "BillingCorrectionSubtotalAmountMicros", "BillingCorrectionTaxAmountMicros", "BillingCorrectionTotalAmountMicros", "CouponAdjustmentSubtotalAmountMicros", "CouponAdjustmentTaxAmountMicros", "CouponAdjustmentTotalAmountMicros", "ExcessCreditAdjustmentSubtotalAmountMicros", "ExcessCreditAdjustmentTaxAmountMicros", "ExcessCreditAdjustmentTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros" }, new[]{ "Customer", "BillingCorrectionSubtotalAmountMicros", "BillingCorrectionTaxAmountMicros", "BillingCorrectionTotalAmountMicros", "CouponAdjustmentSubtotalAmountMicros", "CouponAdjustmentTaxAmountMicros", "CouponAdjustmentTotalAmountMicros", "ExcessCreditAdjustmentSubtotalAmountMicros", "ExcessCreditAdjustmentTaxAmountMicros", "ExcessCreditAdjustmentTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Invoice), global::Google.Ads.GoogleAds.V14.Resources.Invoice.Parser, new[]{ "ResourceName", "Id", "Type", "BillingSetup", "PaymentsAccountId", "PaymentsProfileId", "IssueDate", "DueDate", "ServiceDateRange", "CurrencyCode", "AdjustmentsSubtotalAmountMicros", "AdjustmentsTaxAmountMicros", "AdjustmentsTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "ExportChargeSubtotalAmountMicros", "ExportChargeTaxAmountMicros", "ExportChargeTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "CorrectedInvoice", "ReplacedInvoices", "PdfUrl", "AccountBudgetSummaries", "AccountSummaries" }, new[]{ "Id", "BillingSetup", "PaymentsAccountId", "PaymentsProfileId", "IssueDate", "DueDate", "CurrencyCode", "ExportChargeSubtotalAmountMicros", "ExportChargeTaxAmountMicros", "ExportChargeTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "CorrectedInvoice", "PdfUrl" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.AccountSummary), global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.AccountSummary.Parser, new[]{ "Customer", "BillingCorrectionSubtotalAmountMicros", "BillingCorrectionTaxAmountMicros", "BillingCorrectionTotalAmountMicros", "CouponAdjustmentSubtotalAmountMicros", "CouponAdjustmentTaxAmountMicros", "CouponAdjustmentTotalAmountMicros", "ExcessCreditAdjustmentSubtotalAmountMicros", "ExcessCreditAdjustmentTaxAmountMicros", "ExcessCreditAdjustmentTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "ExportChargeSubtotalAmountMicros", "ExportChargeTaxAmountMicros", "ExportChargeTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros" }, new[]{ "Customer", "BillingCorrectionSubtotalAmountMicros", "BillingCorrectionTaxAmountMicros", "BillingCorrectionTotalAmountMicros", "CouponAdjustmentSubtotalAmountMicros", "CouponAdjustmentTaxAmountMicros", "CouponAdjustmentTotalAmountMicros", "ExcessCreditAdjustmentSubtotalAmountMicros", "ExcessCreditAdjustmentTaxAmountMicros", "ExcessCreditAdjustmentTotalAmountMicros", "RegulatoryCostsSubtotalAmountMicros", "RegulatoryCostsTaxAmountMicros", "RegulatoryCostsTotalAmountMicros", "ExportChargeSubtotalAmountMicros", "ExportChargeTaxAmountMicros", "ExportChargeTotalAmountMicros", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.AccountBudgetSummary), global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.AccountBudgetSummary.Parser, new[]{ "Customer", "CustomerDescriptiveName", "AccountBudget", "AccountBudgetName", "PurchaseOrderNumber", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "BillableActivityDateRange", "ServedAmountMicros", "BilledAmountMicros", "OverdeliveryAmountMicros", "InvalidActivityAmountMicros", "InvalidActivitySummaries" }, new[]{ "Customer", "CustomerDescriptiveName", "AccountBudget", "AccountBudgetName", "PurchaseOrderNumber", "SubtotalAmountMicros", "TaxAmountMicros", "TotalAmountMicros", "ServedAmountMicros", "BilledAmountMicros", "OverdeliveryAmountMicros", "InvalidActivityAmountMicros" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.InvalidActivitySummary), global::Google.Ads.GoogleAds.V14.Resources.Invoice.Types.InvalidActivitySummary.Parser, new[]{ "OriginalMonthOfService", "OriginalYearOfService", "OriginalInvoiceId", "OriginalAccountBudgetName", "OriginalPurchaseOrderNumber", "AmountMicros" }, new[]{ "OriginalMonthOfService", "OriginalYearOfService", "OriginalInvoiceId", "OriginalAccountBudgetName", "OriginalPurchaseOrderNumber", "AmountMicros" }, null, null, null)}) })); @@ -206,6 +218,9 @@ public Invoice(Invoice other) : this() { regulatoryCostsSubtotalAmountMicros_ = other.regulatoryCostsSubtotalAmountMicros_; regulatoryCostsTaxAmountMicros_ = other.regulatoryCostsTaxAmountMicros_; regulatoryCostsTotalAmountMicros_ = other.regulatoryCostsTotalAmountMicros_; + exportChargeSubtotalAmountMicros_ = other.exportChargeSubtotalAmountMicros_; + exportChargeTaxAmountMicros_ = other.exportChargeTaxAmountMicros_; + exportChargeTotalAmountMicros_ = other.exportChargeTotalAmountMicros_; subtotalAmountMicros_ = other.subtotalAmountMicros_; taxAmountMicros_ = other.taxAmountMicros_; totalAmountMicros_ = other.totalAmountMicros_; @@ -579,18 +594,107 @@ public long RegulatoryCostsTotalAmountMicros { } } + /// Field number for the "export_charge_subtotal_amount_micros" field. + public const int ExportChargeSubtotalAmountMicrosFieldNumber = 40; + private readonly static long ExportChargeSubtotalAmountMicrosDefaultValue = 0L; + + private long exportChargeSubtotalAmountMicros_; + /// + /// Output only. The pretax subtotal amount of invoice level export charges, in + /// micros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ExportChargeSubtotalAmountMicros { + get { if ((_hasBits0 & 8) != 0) { return exportChargeSubtotalAmountMicros_; } else { return ExportChargeSubtotalAmountMicrosDefaultValue; } } + set { + _hasBits0 |= 8; + exportChargeSubtotalAmountMicros_ = value; + } + } + /// Gets whether the "export_charge_subtotal_amount_micros" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasExportChargeSubtotalAmountMicros { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "export_charge_subtotal_amount_micros" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExportChargeSubtotalAmountMicros() { + _hasBits0 &= ~8; + } + + /// Field number for the "export_charge_tax_amount_micros" field. + public const int ExportChargeTaxAmountMicrosFieldNumber = 41; + private readonly static long ExportChargeTaxAmountMicrosDefaultValue = 0L; + + private long exportChargeTaxAmountMicros_; + /// + /// Output only. The sum of taxes on the invoice level export charges, in + /// micros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ExportChargeTaxAmountMicros { + get { if ((_hasBits0 & 16) != 0) { return exportChargeTaxAmountMicros_; } else { return ExportChargeTaxAmountMicrosDefaultValue; } } + set { + _hasBits0 |= 16; + exportChargeTaxAmountMicros_ = value; + } + } + /// Gets whether the "export_charge_tax_amount_micros" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasExportChargeTaxAmountMicros { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "export_charge_tax_amount_micros" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExportChargeTaxAmountMicros() { + _hasBits0 &= ~16; + } + + /// Field number for the "export_charge_total_amount_micros" field. + public const int ExportChargeTotalAmountMicrosFieldNumber = 42; + private readonly static long ExportChargeTotalAmountMicrosDefaultValue = 0L; + + private long exportChargeTotalAmountMicros_; + /// + /// Output only. The total amount of invoice level export charges, in micros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ExportChargeTotalAmountMicros { + get { if ((_hasBits0 & 32) != 0) { return exportChargeTotalAmountMicros_; } else { return ExportChargeTotalAmountMicrosDefaultValue; } } + set { + _hasBits0 |= 32; + exportChargeTotalAmountMicros_ = value; + } + } + /// Gets whether the "export_charge_total_amount_micros" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasExportChargeTotalAmountMicros { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "export_charge_total_amount_micros" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExportChargeTotalAmountMicros() { + _hasBits0 &= ~32; + } + /// Field number for the "subtotal_amount_micros" field. public const int SubtotalAmountMicrosFieldNumber = 33; private readonly static long SubtotalAmountMicrosDefaultValue = 0L; private long subtotalAmountMicros_; /// - /// Output only. The pretax subtotal amount, in micros. This equals the - /// sum of the AccountBudgetSummary subtotal amounts, - /// Invoice.adjustments_subtotal_amount_micros, and - /// Invoice.regulatory_costs_subtotal_amount_micros. - /// Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no - /// longer included. + /// Output only. The pretax subtotal amount, in micros. This is equal to the + /// sum of the AccountBudgetSummary subtotal amounts and + /// Invoice.adjustments_subtotal_amount_micros. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -653,10 +757,10 @@ public void ClearTaxAmountMicros() { private long totalAmountMicros_; /// /// Output only. The total amount, in micros. This equals the sum of - /// Invoice.subtotal_amount_micros and Invoice.tax_amount_micros. - /// Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is - /// also added as it is no longer already included in - /// Invoice.tax_amount_micros. + /// Invoice.subtotal_amount_micros, Invoice.tax_amount_micros, + /// Invoice.regulatory_costs_subtotal_amount_micros, and + /// Invoice.export_charge_subtotal_amount_micros (which is separated into a + /// separate line item starting with V14.1). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -825,6 +929,9 @@ public bool Equals(Invoice other) { if (RegulatoryCostsSubtotalAmountMicros != other.RegulatoryCostsSubtotalAmountMicros) return false; if (RegulatoryCostsTaxAmountMicros != other.RegulatoryCostsTaxAmountMicros) return false; if (RegulatoryCostsTotalAmountMicros != other.RegulatoryCostsTotalAmountMicros) return false; + if (ExportChargeSubtotalAmountMicros != other.ExportChargeSubtotalAmountMicros) return false; + if (ExportChargeTaxAmountMicros != other.ExportChargeTaxAmountMicros) return false; + if (ExportChargeTotalAmountMicros != other.ExportChargeTotalAmountMicros) return false; if (SubtotalAmountMicros != other.SubtotalAmountMicros) return false; if (TaxAmountMicros != other.TaxAmountMicros) return false; if (TotalAmountMicros != other.TotalAmountMicros) return false; @@ -856,6 +963,9 @@ public override int GetHashCode() { if (RegulatoryCostsSubtotalAmountMicros != 0L) hash ^= RegulatoryCostsSubtotalAmountMicros.GetHashCode(); if (RegulatoryCostsTaxAmountMicros != 0L) hash ^= RegulatoryCostsTaxAmountMicros.GetHashCode(); if (RegulatoryCostsTotalAmountMicros != 0L) hash ^= RegulatoryCostsTotalAmountMicros.GetHashCode(); + if (HasExportChargeSubtotalAmountMicros) hash ^= ExportChargeSubtotalAmountMicros.GetHashCode(); + if (HasExportChargeTaxAmountMicros) hash ^= ExportChargeTaxAmountMicros.GetHashCode(); + if (HasExportChargeTotalAmountMicros) hash ^= ExportChargeTotalAmountMicros.GetHashCode(); if (HasSubtotalAmountMicros) hash ^= SubtotalAmountMicros.GetHashCode(); if (HasTaxAmountMicros) hash ^= TaxAmountMicros.GetHashCode(); if (HasTotalAmountMicros) hash ^= TotalAmountMicros.GetHashCode(); @@ -969,6 +1079,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteString(PdfUrl); } accountSummaries_.WriteTo(output, _repeated_accountSummaries_codec); + if (HasExportChargeSubtotalAmountMicros) { + output.WriteRawTag(192, 2); + output.WriteInt64(ExportChargeSubtotalAmountMicros); + } + if (HasExportChargeTaxAmountMicros) { + output.WriteRawTag(200, 2); + output.WriteInt64(ExportChargeTaxAmountMicros); + } + if (HasExportChargeTotalAmountMicros) { + output.WriteRawTag(208, 2); + output.WriteInt64(ExportChargeTotalAmountMicros); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -1066,6 +1188,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteString(PdfUrl); } accountSummaries_.WriteTo(ref output, _repeated_accountSummaries_codec); + if (HasExportChargeSubtotalAmountMicros) { + output.WriteRawTag(192, 2); + output.WriteInt64(ExportChargeSubtotalAmountMicros); + } + if (HasExportChargeTaxAmountMicros) { + output.WriteRawTag(200, 2); + output.WriteInt64(ExportChargeTaxAmountMicros); + } + if (HasExportChargeTotalAmountMicros) { + output.WriteRawTag(208, 2); + output.WriteInt64(ExportChargeTotalAmountMicros); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -1124,6 +1258,15 @@ public int CalculateSize() { if (RegulatoryCostsTotalAmountMicros != 0L) { size += 2 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsTotalAmountMicros); } + if (HasExportChargeSubtotalAmountMicros) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ExportChargeSubtotalAmountMicros); + } + if (HasExportChargeTaxAmountMicros) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ExportChargeTaxAmountMicros); + } + if (HasExportChargeTotalAmountMicros) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ExportChargeTotalAmountMicros); + } if (HasSubtotalAmountMicros) { size += 2 + pb::CodedOutputStream.ComputeInt64Size(SubtotalAmountMicros); } @@ -1205,6 +1348,15 @@ public void MergeFrom(Invoice other) { if (other.RegulatoryCostsTotalAmountMicros != 0L) { RegulatoryCostsTotalAmountMicros = other.RegulatoryCostsTotalAmountMicros; } + if (other.HasExportChargeSubtotalAmountMicros) { + ExportChargeSubtotalAmountMicros = other.ExportChargeSubtotalAmountMicros; + } + if (other.HasExportChargeTaxAmountMicros) { + ExportChargeTaxAmountMicros = other.ExportChargeTaxAmountMicros; + } + if (other.HasExportChargeTotalAmountMicros) { + ExportChargeTotalAmountMicros = other.ExportChargeTotalAmountMicros; + } if (other.HasSubtotalAmountMicros) { SubtotalAmountMicros = other.SubtotalAmountMicros; } @@ -1337,6 +1489,18 @@ public void MergeFrom(pb::CodedInputStream input) { accountSummaries_.AddEntriesFrom(input, _repeated_accountSummaries_codec); break; } + case 320: { + ExportChargeSubtotalAmountMicros = input.ReadInt64(); + break; + } + case 328: { + ExportChargeTaxAmountMicros = input.ReadInt64(); + break; + } + case 336: { + ExportChargeTotalAmountMicros = input.ReadInt64(); + break; + } } } #endif @@ -1451,6 +1615,18 @@ public void MergeFrom(pb::CodedInputStream input) { accountSummaries_.AddEntriesFrom(ref input, _repeated_accountSummaries_codec); break; } + case 320: { + ExportChargeSubtotalAmountMicros = input.ReadInt64(); + break; + } + case 328: { + ExportChargeTaxAmountMicros = input.ReadInt64(); + break; + } + case 336: { + ExportChargeTotalAmountMicros = input.ReadInt64(); + break; + } } } } @@ -1513,6 +1689,9 @@ public AccountSummary(AccountSummary other) : this() { regulatoryCostsSubtotalAmountMicros_ = other.regulatoryCostsSubtotalAmountMicros_; regulatoryCostsTaxAmountMicros_ = other.regulatoryCostsTaxAmountMicros_; regulatoryCostsTotalAmountMicros_ = other.regulatoryCostsTotalAmountMicros_; + exportChargeSubtotalAmountMicros_ = other.exportChargeSubtotalAmountMicros_; + exportChargeTaxAmountMicros_ = other.exportChargeTaxAmountMicros_; + exportChargeTotalAmountMicros_ = other.exportChargeTotalAmountMicros_; subtotalAmountMicros_ = other.subtotalAmountMicros_; taxAmountMicros_ = other.taxAmountMicros_; totalAmountMicros_ = other.totalAmountMicros_; @@ -1914,6 +2093,96 @@ public void ClearRegulatoryCostsTotalAmountMicros() { _hasBits0 &= ~2048; } + /// Field number for the "export_charge_subtotal_amount_micros" field. + public const int ExportChargeSubtotalAmountMicrosFieldNumber = 17; + private readonly static long ExportChargeSubtotalAmountMicrosDefaultValue = 0L; + + private long exportChargeSubtotalAmountMicros_; + /// + /// Output only. Pretax export charge subtotal amount, in micros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ExportChargeSubtotalAmountMicros { + get { if ((_hasBits0 & 32768) != 0) { return exportChargeSubtotalAmountMicros_; } else { return ExportChargeSubtotalAmountMicrosDefaultValue; } } + set { + _hasBits0 |= 32768; + exportChargeSubtotalAmountMicros_ = value; + } + } + /// Gets whether the "export_charge_subtotal_amount_micros" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasExportChargeSubtotalAmountMicros { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "export_charge_subtotal_amount_micros" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExportChargeSubtotalAmountMicros() { + _hasBits0 &= ~32768; + } + + /// Field number for the "export_charge_tax_amount_micros" field. + public const int ExportChargeTaxAmountMicrosFieldNumber = 18; + private readonly static long ExportChargeTaxAmountMicrosDefaultValue = 0L; + + private long exportChargeTaxAmountMicros_; + /// + /// Output only. Tax on export charge, in micros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ExportChargeTaxAmountMicros { + get { if ((_hasBits0 & 65536) != 0) { return exportChargeTaxAmountMicros_; } else { return ExportChargeTaxAmountMicrosDefaultValue; } } + set { + _hasBits0 |= 65536; + exportChargeTaxAmountMicros_ = value; + } + } + /// Gets whether the "export_charge_tax_amount_micros" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasExportChargeTaxAmountMicros { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "export_charge_tax_amount_micros" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExportChargeTaxAmountMicros() { + _hasBits0 &= ~65536; + } + + /// Field number for the "export_charge_total_amount_micros" field. + public const int ExportChargeTotalAmountMicrosFieldNumber = 19; + private readonly static long ExportChargeTotalAmountMicrosDefaultValue = 0L; + + private long exportChargeTotalAmountMicros_; + /// + /// Output only. Total export charge amount, in micros. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ExportChargeTotalAmountMicros { + get { if ((_hasBits0 & 131072) != 0) { return exportChargeTotalAmountMicros_; } else { return ExportChargeTotalAmountMicrosDefaultValue; } } + set { + _hasBits0 |= 131072; + exportChargeTotalAmountMicros_ = value; + } + } + /// Gets whether the "export_charge_total_amount_micros" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasExportChargeTotalAmountMicros { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "export_charge_total_amount_micros" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearExportChargeTotalAmountMicros() { + _hasBits0 &= ~131072; + } + /// Field number for the "subtotal_amount_micros" field. public const int SubtotalAmountMicrosFieldNumber = 14; private readonly static long SubtotalAmountMicrosDefaultValue = 0L; @@ -2036,6 +2305,9 @@ public bool Equals(AccountSummary other) { if (RegulatoryCostsSubtotalAmountMicros != other.RegulatoryCostsSubtotalAmountMicros) return false; if (RegulatoryCostsTaxAmountMicros != other.RegulatoryCostsTaxAmountMicros) return false; if (RegulatoryCostsTotalAmountMicros != other.RegulatoryCostsTotalAmountMicros) return false; + if (ExportChargeSubtotalAmountMicros != other.ExportChargeSubtotalAmountMicros) return false; + if (ExportChargeTaxAmountMicros != other.ExportChargeTaxAmountMicros) return false; + if (ExportChargeTotalAmountMicros != other.ExportChargeTotalAmountMicros) return false; if (SubtotalAmountMicros != other.SubtotalAmountMicros) return false; if (TaxAmountMicros != other.TaxAmountMicros) return false; if (TotalAmountMicros != other.TotalAmountMicros) return false; @@ -2059,6 +2331,9 @@ public override int GetHashCode() { if (HasRegulatoryCostsSubtotalAmountMicros) hash ^= RegulatoryCostsSubtotalAmountMicros.GetHashCode(); if (HasRegulatoryCostsTaxAmountMicros) hash ^= RegulatoryCostsTaxAmountMicros.GetHashCode(); if (HasRegulatoryCostsTotalAmountMicros) hash ^= RegulatoryCostsTotalAmountMicros.GetHashCode(); + if (HasExportChargeSubtotalAmountMicros) hash ^= ExportChargeSubtotalAmountMicros.GetHashCode(); + if (HasExportChargeTaxAmountMicros) hash ^= ExportChargeTaxAmountMicros.GetHashCode(); + if (HasExportChargeTotalAmountMicros) hash ^= ExportChargeTotalAmountMicros.GetHashCode(); if (HasSubtotalAmountMicros) hash ^= SubtotalAmountMicros.GetHashCode(); if (HasTaxAmountMicros) hash ^= TaxAmountMicros.GetHashCode(); if (HasTotalAmountMicros) hash ^= TotalAmountMicros.GetHashCode(); @@ -2144,6 +2419,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(128, 1); output.WriteInt64(TotalAmountMicros); } + if (HasExportChargeSubtotalAmountMicros) { + output.WriteRawTag(136, 1); + output.WriteInt64(ExportChargeSubtotalAmountMicros); + } + if (HasExportChargeTaxAmountMicros) { + output.WriteRawTag(144, 1); + output.WriteInt64(ExportChargeTaxAmountMicros); + } + if (HasExportChargeTotalAmountMicros) { + output.WriteRawTag(152, 1); + output.WriteInt64(ExportChargeTotalAmountMicros); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2218,6 +2505,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(128, 1); output.WriteInt64(TotalAmountMicros); } + if (HasExportChargeSubtotalAmountMicros) { + output.WriteRawTag(136, 1); + output.WriteInt64(ExportChargeSubtotalAmountMicros); + } + if (HasExportChargeTaxAmountMicros) { + output.WriteRawTag(144, 1); + output.WriteInt64(ExportChargeTaxAmountMicros); + } + if (HasExportChargeTotalAmountMicros) { + output.WriteRawTag(152, 1); + output.WriteInt64(ExportChargeTotalAmountMicros); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2267,6 +2566,15 @@ public int CalculateSize() { if (HasRegulatoryCostsTotalAmountMicros) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(RegulatoryCostsTotalAmountMicros); } + if (HasExportChargeSubtotalAmountMicros) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ExportChargeSubtotalAmountMicros); + } + if (HasExportChargeTaxAmountMicros) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ExportChargeTaxAmountMicros); + } + if (HasExportChargeTotalAmountMicros) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(ExportChargeTotalAmountMicros); + } if (HasSubtotalAmountMicros) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(SubtotalAmountMicros); } @@ -2327,6 +2635,15 @@ public void MergeFrom(AccountSummary other) { if (other.HasRegulatoryCostsTotalAmountMicros) { RegulatoryCostsTotalAmountMicros = other.RegulatoryCostsTotalAmountMicros; } + if (other.HasExportChargeSubtotalAmountMicros) { + ExportChargeSubtotalAmountMicros = other.ExportChargeSubtotalAmountMicros; + } + if (other.HasExportChargeTaxAmountMicros) { + ExportChargeTaxAmountMicros = other.ExportChargeTaxAmountMicros; + } + if (other.HasExportChargeTotalAmountMicros) { + ExportChargeTotalAmountMicros = other.ExportChargeTotalAmountMicros; + } if (other.HasSubtotalAmountMicros) { SubtotalAmountMicros = other.SubtotalAmountMicros; } @@ -2415,6 +2732,18 @@ public void MergeFrom(pb::CodedInputStream input) { TotalAmountMicros = input.ReadInt64(); break; } + case 136: { + ExportChargeSubtotalAmountMicros = input.ReadInt64(); + break; + } + case 144: { + ExportChargeTaxAmountMicros = input.ReadInt64(); + break; + } + case 152: { + ExportChargeTotalAmountMicros = input.ReadInt64(); + break; + } } } #endif @@ -2494,6 +2823,18 @@ public void MergeFrom(pb::CodedInputStream input) { TotalAmountMicros = input.ReadInt64(); break; } + case 136: { + ExportChargeSubtotalAmountMicros = input.ReadInt64(); + break; + } + case 144: { + ExportChargeTaxAmountMicros = input.ReadInt64(); + break; + } + case 152: { + ExportChargeTotalAmountMicros = input.ReadInt64(); + break; + } } } } diff --git a/Google.Ads.GoogleAds/src/V14/Metrics.g.cs b/Google.Ads.GoogleAds/src/V14/Metrics.g.cs index 1555938f7..5c9a16983 100755 --- a/Google.Ads.GoogleAds/src/V14/Metrics.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Metrics.g.cs @@ -28,7 +28,7 @@ static MetricsReflection() { "dG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24aO2dvb2dsZS9h", "ZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9pbnRlcmFjdGlvbl9ldmVudF90eXBl", "LnByb3RvGjlnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvcXVhbGl0", - "eV9zY29yZV9idWNrZXQucHJvdG8ioFwKB01ldHJpY3MSMAoiYWJzb2x1dGVf", + "eV9zY29yZV9idWNrZXQucHJvdG8ipF4KB01ldHJpY3MSMAoiYWJzb2x1dGVf", "dG9wX2ltcHJlc3Npb25fcGVyY2VudGFnZRi3ASABKAFIAIgBARIdCg9hY3Rp", "dmVfdmlld19jcG0YuAEgASgBSAGIAQESHQoPYWN0aXZlX3ZpZXdfY3RyGLkB", "IAEoAUgCiAEBEiUKF2FjdGl2ZV92aWV3X2ltcHJlc3Npb25zGLoBIAEoA0gD", @@ -39,268 +39,276 @@ static MetricsReflection() { "iAEBEjQKJmFsbF9jb252ZXJzaW9uc19mcm9tX2ludGVyYWN0aW9uc19yYXRl", "GL8BIAEoAUgIiAEBEiMKFWFsbF9jb252ZXJzaW9uc192YWx1ZRjAASABKAFI", "CYgBARIxCihhbGxfY29udmVyc2lvbnNfdmFsdWVfYnlfY29udmVyc2lvbl9k", - "YXRlGPABIAEoARIdCg9hbGxfY29udmVyc2lvbnMYwQEgASgBSAqIAQESKwoi", - "YWxsX2NvbnZlcnNpb25zX2J5X2NvbnZlcnNpb25fZGF0ZRjxASABKAESLAoe", - "YWxsX2NvbnZlcnNpb25zX3ZhbHVlX3Blcl9jb3N0GMIBIAEoAUgLiAEBEjAK", - "ImFsbF9jb252ZXJzaW9uc19mcm9tX2NsaWNrX3RvX2NhbGwYwwEgASgBSAyI", - "AQESLQofYWxsX2NvbnZlcnNpb25zX2Zyb21fZGlyZWN0aW9ucxjEASABKAFI", - "DYgBARJFCjdhbGxfY29udmVyc2lvbnNfZnJvbV9pbnRlcmFjdGlvbnNfdmFs", - "dWVfcGVyX2ludGVyYWN0aW9uGMUBIAEoAUgOiAEBEicKGWFsbF9jb252ZXJz", - "aW9uc19mcm9tX21lbnUYxgEgASgBSA+IAQESKAoaYWxsX2NvbnZlcnNpb25z", - "X2Zyb21fb3JkZXIYxwEgASgBSBCIAQESMwolYWxsX2NvbnZlcnNpb25zX2Zy", - "b21fb3RoZXJfZW5nYWdlbWVudBjIASABKAFIEYgBARIuCiBhbGxfY29udmVy", - "c2lvbnNfZnJvbV9zdG9yZV92aXNpdBjJASABKAFIEogBARIwCiJhbGxfY29u", - "dmVyc2lvbnNfZnJvbV9zdG9yZV93ZWJzaXRlGMoBIAEoAUgTiAEBEkcKOWF1", - "Y3Rpb25faW5zaWdodF9zZWFyY2hfYWJzb2x1dGVfdG9wX2ltcHJlc3Npb25f", - "cGVyY2VudGFnZRiCAiABKAFIFIgBARI1CidhdWN0aW9uX2luc2lnaHRfc2Vh", - "cmNoX2ltcHJlc3Npb25fc2hhcmUYgwIgASgBSBWIAQESNQonYXVjdGlvbl9p", - "bnNpZ2h0X3NlYXJjaF9vdXRyYW5raW5nX3NoYXJlGIQCIAEoAUgWiAEBEjEK", - "I2F1Y3Rpb25faW5zaWdodF9zZWFyY2hfb3ZlcmxhcF9yYXRlGIUCIAEoAUgX", - "iAEBEjgKKmF1Y3Rpb25faW5zaWdodF9zZWFyY2hfcG9zaXRpb25fYWJvdmVf", - "cmF0ZRiGAiABKAFIGIgBARI+CjBhdWN0aW9uX2luc2lnaHRfc2VhcmNoX3Rv", - "cF9pbXByZXNzaW9uX3BlcmNlbnRhZ2UYhwIgASgBSBmIAQESGgoMYXZlcmFn", - "ZV9jb3N0GMsBIAEoAUgaiAEBEhkKC2F2ZXJhZ2VfY3BjGMwBIAEoAUgbiAEB", - "EhkKC2F2ZXJhZ2VfY3BlGM0BIAEoAUgciAEBEhkKC2F2ZXJhZ2VfY3BtGM4B", - "IAEoAUgdiAEBEhkKC2F2ZXJhZ2VfY3B2GM8BIAEoAUgeiAEBEiAKEmF2ZXJh", - "Z2VfcGFnZV92aWV3cxjQASABKAFIH4gBARIiChRhdmVyYWdlX3RpbWVfb25f", - "c2l0ZRjRASABKAFIIIgBARInChliZW5jaG1hcmtfYXZlcmFnZV9tYXhfY3Bj", - "GNIBIAEoAUghiAEBEi4KIGJpZGRhYmxlX2FwcF9pbnN0YWxsX2NvbnZlcnNp", - "b25zGP4BIAEoAUgiiAEBEjMKJWJpZGRhYmxlX2FwcF9wb3N0X2luc3RhbGxf", - "Y29udmVyc2lvbnMY/wEgASgBSCOIAQESGwoNYmVuY2htYXJrX2N0chjTASAB", - "KAFIJIgBARIZCgtib3VuY2VfcmF0ZRjUASABKAFIJYgBARIUCgZjbGlja3MY", - "gwEgASgDSCaIAQESHQoPY29tYmluZWRfY2xpY2tzGJwBIAEoA0gniAEBEicK", - "GWNvbWJpbmVkX2NsaWNrc19wZXJfcXVlcnkYnQEgASgBSCiIAQESHgoQY29t", - "YmluZWRfcXVlcmllcxieASABKANIKYgBARIyCiRjb250ZW50X2J1ZGdldF9s", - "b3N0X2ltcHJlc3Npb25fc2hhcmUYnwEgASgBSCqIAQESJgoYY29udGVudF9p", - "bXByZXNzaW9uX3NoYXJlGKABIAEoAUgriAEBEjgKKmNvbnZlcnNpb25fbGFz", - "dF9yZWNlaXZlZF9yZXF1ZXN0X2RhdGVfdGltZRihASABKAlILIgBARItCh9j", - "b252ZXJzaW9uX2xhc3RfY29udmVyc2lvbl9kYXRlGKIBIAEoCUgtiAEBEjAK", - "ImNvbnRlbnRfcmFua19sb3N0X2ltcHJlc3Npb25fc2hhcmUYowEgASgBSC6I", - "AQESMAoiY29udmVyc2lvbnNfZnJvbV9pbnRlcmFjdGlvbnNfcmF0ZRikASAB", - "KAFIL4gBARIfChFjb252ZXJzaW9uc192YWx1ZRilASABKAFIMIgBARItCiRj", - "b252ZXJzaW9uc192YWx1ZV9ieV9jb252ZXJzaW9uX2RhdGUY8gEgASgBEigK", - "GmNvbnZlcnNpb25zX3ZhbHVlX3Blcl9jb3N0GKYBIAEoAUgxiAEBEkEKM2Nv", + "YXRlGPABIAEoARItCh9hbGxfbmV3X2N1c3RvbWVyX2xpZmV0aW1lX3ZhbHVl", + "GKYCIAEoAUgKiAEBEh0KD2FsbF9jb252ZXJzaW9ucxjBASABKAFIC4gBARIr", + "CiJhbGxfY29udmVyc2lvbnNfYnlfY29udmVyc2lvbl9kYXRlGPEBIAEoARIs", + "Ch5hbGxfY29udmVyc2lvbnNfdmFsdWVfcGVyX2Nvc3QYwgEgASgBSAyIAQES", + "MAoiYWxsX2NvbnZlcnNpb25zX2Zyb21fY2xpY2tfdG9fY2FsbBjDASABKAFI", + "DYgBARItCh9hbGxfY29udmVyc2lvbnNfZnJvbV9kaXJlY3Rpb25zGMQBIAEo", + "AUgOiAEBEkUKN2FsbF9jb252ZXJzaW9uc19mcm9tX2ludGVyYWN0aW9uc192", + "YWx1ZV9wZXJfaW50ZXJhY3Rpb24YxQEgASgBSA+IAQESJwoZYWxsX2NvbnZl", + "cnNpb25zX2Zyb21fbWVudRjGASABKAFIEIgBARIoChphbGxfY29udmVyc2lv", + "bnNfZnJvbV9vcmRlchjHASABKAFIEYgBARIzCiVhbGxfY29udmVyc2lvbnNf", + "ZnJvbV9vdGhlcl9lbmdhZ2VtZW50GMgBIAEoAUgSiAEBEi4KIGFsbF9jb252", + "ZXJzaW9uc19mcm9tX3N0b3JlX3Zpc2l0GMkBIAEoAUgTiAEBEjAKImFsbF9j", + "b252ZXJzaW9uc19mcm9tX3N0b3JlX3dlYnNpdGUYygEgASgBSBSIAQESRwo5", + "YXVjdGlvbl9pbnNpZ2h0X3NlYXJjaF9hYnNvbHV0ZV90b3BfaW1wcmVzc2lv", + "bl9wZXJjZW50YWdlGIICIAEoAUgViAEBEjUKJ2F1Y3Rpb25faW5zaWdodF9z", + "ZWFyY2hfaW1wcmVzc2lvbl9zaGFyZRiDAiABKAFIFogBARI1CidhdWN0aW9u", + "X2luc2lnaHRfc2VhcmNoX291dHJhbmtpbmdfc2hhcmUYhAIgASgBSBeIAQES", + "MQojYXVjdGlvbl9pbnNpZ2h0X3NlYXJjaF9vdmVybGFwX3JhdGUYhQIgASgB", + "SBiIAQESOAoqYXVjdGlvbl9pbnNpZ2h0X3NlYXJjaF9wb3NpdGlvbl9hYm92", + "ZV9yYXRlGIYCIAEoAUgZiAEBEj4KMGF1Y3Rpb25faW5zaWdodF9zZWFyY2hf", + "dG9wX2ltcHJlc3Npb25fcGVyY2VudGFnZRiHAiABKAFIGogBARIaCgxhdmVy", + "YWdlX2Nvc3QYywEgASgBSBuIAQESGQoLYXZlcmFnZV9jcGMYzAEgASgBSByI", + "AQESGQoLYXZlcmFnZV9jcGUYzQEgASgBSB2IAQESGQoLYXZlcmFnZV9jcG0Y", + "zgEgASgBSB6IAQESGQoLYXZlcmFnZV9jcHYYzwEgASgBSB+IAQESIAoSYXZl", + "cmFnZV9wYWdlX3ZpZXdzGNABIAEoAUggiAEBEiIKFGF2ZXJhZ2VfdGltZV9v", + "bl9zaXRlGNEBIAEoAUghiAEBEicKGWJlbmNobWFya19hdmVyYWdlX21heF9j", + "cGMY0gEgASgBSCKIAQESLgogYmlkZGFibGVfYXBwX2luc3RhbGxfY29udmVy", + "c2lvbnMY/gEgASgBSCOIAQESMwolYmlkZGFibGVfYXBwX3Bvc3RfaW5zdGFs", + "bF9jb252ZXJzaW9ucxj/ASABKAFIJIgBARIbCg1iZW5jaG1hcmtfY3RyGNMB", + "IAEoAUgliAEBEhkKC2JvdW5jZV9yYXRlGNQBIAEoAUgmiAEBEhQKBmNsaWNr", + "cxiDASABKANIJ4gBARIdCg9jb21iaW5lZF9jbGlja3MYnAEgASgDSCiIAQES", + "JwoZY29tYmluZWRfY2xpY2tzX3Blcl9xdWVyeRidASABKAFIKYgBARIeChBj", + "b21iaW5lZF9xdWVyaWVzGJ4BIAEoA0gqiAEBEjIKJGNvbnRlbnRfYnVkZ2V0", + "X2xvc3RfaW1wcmVzc2lvbl9zaGFyZRifASABKAFIK4gBARImChhjb250ZW50", + "X2ltcHJlc3Npb25fc2hhcmUYoAEgASgBSCyIAQESOAoqY29udmVyc2lvbl9s", + "YXN0X3JlY2VpdmVkX3JlcXVlc3RfZGF0ZV90aW1lGKEBIAEoCUgtiAEBEi0K", + "H2NvbnZlcnNpb25fbGFzdF9jb252ZXJzaW9uX2RhdGUYogEgASgJSC6IAQES", + "MAoiY29udGVudF9yYW5rX2xvc3RfaW1wcmVzc2lvbl9zaGFyZRijASABKAFI", + "L4gBARIwCiJjb252ZXJzaW9uc19mcm9tX2ludGVyYWN0aW9uc19yYXRlGKQB", + "IAEoAUgwiAEBEh8KEWNvbnZlcnNpb25zX3ZhbHVlGKUBIAEoAUgxiAEBEi0K", + "JGNvbnZlcnNpb25zX3ZhbHVlX2J5X2NvbnZlcnNpb25fZGF0ZRjyASABKAES", + "KQobbmV3X2N1c3RvbWVyX2xpZmV0aW1lX3ZhbHVlGKUCIAEoAUgyiAEBEigK", + "GmNvbnZlcnNpb25zX3ZhbHVlX3Blcl9jb3N0GKYBIAEoAUgziAEBEkEKM2Nv", "bnZlcnNpb25zX2Zyb21faW50ZXJhY3Rpb25zX3ZhbHVlX3Blcl9pbnRlcmFj", - "dGlvbhinASABKAFIMogBARIZCgtjb252ZXJzaW9ucxioASABKAFIM4gBARIn", + "dGlvbhinASABKAFINIgBARIZCgtjb252ZXJzaW9ucxioASABKAFINYgBARIn", "Ch5jb252ZXJzaW9uc19ieV9jb252ZXJzaW9uX2RhdGUY8wEgASgBEhkKC2Nv", - "c3RfbWljcm9zGKkBIAEoA0g0iAEBEiYKGGNvc3RfcGVyX2FsbF9jb252ZXJz", - "aW9ucxiqASABKAFINYgBARIhChNjb3N0X3Blcl9jb252ZXJzaW9uGKsBIAEo", - "AUg2iAEBEjoKLGNvc3RfcGVyX2N1cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9j", - "b252ZXJzaW9uGKwBIAEoAUg3iAEBEiYKGGNyb3NzX2RldmljZV9jb252ZXJz", - "aW9ucxitASABKAFIOIgBARIRCgNjdHIYrgEgASgBSDmIAQESMgokY3VycmVu", - "dF9tb2RlbF9hdHRyaWJ1dGVkX2NvbnZlcnNpb25zGK8BIAEoAUg6iAEBEkkK", + "c3RfbWljcm9zGKkBIAEoA0g2iAEBEiYKGGNvc3RfcGVyX2FsbF9jb252ZXJz", + "aW9ucxiqASABKAFIN4gBARIhChNjb3N0X3Blcl9jb252ZXJzaW9uGKsBIAEo", + "AUg4iAEBEjoKLGNvc3RfcGVyX2N1cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9j", + "b252ZXJzaW9uGKwBIAEoAUg5iAEBEiYKGGNyb3NzX2RldmljZV9jb252ZXJz", + "aW9ucxitASABKAFIOogBARIRCgNjdHIYrgEgASgBSDuIAQESMgokY3VycmVu", + "dF9tb2RlbF9hdHRyaWJ1dGVkX2NvbnZlcnNpb25zGK8BIAEoAUg8iAEBEkkK", "O2N1cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9jb252ZXJzaW9uc19mcm9tX2lu", - "dGVyYWN0aW9uc19yYXRlGLABIAEoAUg7iAEBEloKTGN1cnJlbnRfbW9kZWxf", + "dGVyYWN0aW9uc19yYXRlGLABIAEoAUg9iAEBEloKTGN1cnJlbnRfbW9kZWxf", "YXR0cmlidXRlZF9jb252ZXJzaW9uc19mcm9tX2ludGVyYWN0aW9uc192YWx1", - "ZV9wZXJfaW50ZXJhY3Rpb24YsQEgASgBSDyIAQESOAoqY3VycmVudF9tb2Rl", - "bF9hdHRyaWJ1dGVkX2NvbnZlcnNpb25zX3ZhbHVlGLIBIAEoAUg9iAEBEkEK", + "ZV9wZXJfaW50ZXJhY3Rpb24YsQEgASgBSD6IAQESOAoqY3VycmVudF9tb2Rl", + "bF9hdHRyaWJ1dGVkX2NvbnZlcnNpb25zX3ZhbHVlGLIBIAEoAUg/iAEBEkEK", "M2N1cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9jb252ZXJzaW9uc192YWx1ZV9w", - "ZXJfY29zdBizASABKAFIPogBARIdCg9lbmdhZ2VtZW50X3JhdGUYtAEgASgB", - "SD+IAQESGQoLZW5nYWdlbWVudHMYtQEgASgDSECIAQESLQofaG90ZWxfYXZl", - "cmFnZV9sZWFkX3ZhbHVlX21pY3JvcxjVASABKAFIQYgBARIqChxob3RlbF9j", - "b21taXNzaW9uX3JhdGVfbWljcm9zGIACIAEoA0hCiAEBEiwKHmhvdGVsX2V4", - "cGVjdGVkX2NvbW1pc3Npb25fY29zdBiBAiABKAFIQ4gBARIvCiFob3RlbF9w", - "cmljZV9kaWZmZXJlbmNlX3BlcmNlbnRhZ2UY1gEgASgBSESIAQESKAoaaG90", - "ZWxfZWxpZ2libGVfaW1wcmVzc2lvbnMY1wEgASgDSEWIAQESdAohaGlzdG9y", + "ZXJfY29zdBizASABKAFIQIgBARIdCg9lbmdhZ2VtZW50X3JhdGUYtAEgASgB", + "SEGIAQESGQoLZW5nYWdlbWVudHMYtQEgASgDSEKIAQESLQofaG90ZWxfYXZl", + "cmFnZV9sZWFkX3ZhbHVlX21pY3JvcxjVASABKAFIQ4gBARIqChxob3RlbF9j", + "b21taXNzaW9uX3JhdGVfbWljcm9zGIACIAEoA0hEiAEBEiwKHmhvdGVsX2V4", + "cGVjdGVkX2NvbW1pc3Npb25fY29zdBiBAiABKAFIRYgBARIvCiFob3RlbF9w", + "cmljZV9kaWZmZXJlbmNlX3BlcmNlbnRhZ2UY1gEgASgBSEaIAQESKAoaaG90", + "ZWxfZWxpZ2libGVfaW1wcmVzc2lvbnMY1wEgASgDSEeIAQESdAohaGlzdG9y", "aWNhbF9jcmVhdGl2ZV9xdWFsaXR5X3Njb3JlGFAgASgOMkkuZ29vZ2xlLmFk", "cy5nb29nbGVhZHMudjE0LmVudW1zLlF1YWxpdHlTY29yZUJ1Y2tldEVudW0u", "UXVhbGl0eVNjb3JlQnVja2V0EngKJWhpc3RvcmljYWxfbGFuZGluZ19wYWdl", "X3F1YWxpdHlfc2NvcmUYUSABKA4ySS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", "MTQuZW51bXMuUXVhbGl0eVNjb3JlQnVja2V0RW51bS5RdWFsaXR5U2NvcmVC", - "dWNrZXQSJgoYaGlzdG9yaWNhbF9xdWFsaXR5X3Njb3JlGNgBIAEoA0hGiAEB", + "dWNrZXQSJgoYaGlzdG9yaWNhbF9xdWFsaXR5X3Njb3JlGNgBIAEoA0hIiAEB", "EnIKH2hpc3RvcmljYWxfc2VhcmNoX3ByZWRpY3RlZF9jdHIYUyABKA4ySS5n", "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuUXVhbGl0eVNjb3JlQnVj", "a2V0RW51bS5RdWFsaXR5U2NvcmVCdWNrZXQSHAoOZ21haWxfZm9yd2FyZHMY", - "2QEgASgDSEeIAQESGQoLZ21haWxfc2F2ZXMY2gEgASgDSEiIAQESJAoWZ21h", - "aWxfc2Vjb25kYXJ5X2NsaWNrcxjbASABKANISYgBARIqChxpbXByZXNzaW9u", - "c19mcm9tX3N0b3JlX3JlYWNoGNwBIAEoA0hKiAEBEhkKC2ltcHJlc3Npb25z", - "GN0BIAEoA0hLiAEBEh4KEGludGVyYWN0aW9uX3JhdGUY3gEgASgBSEyIAQES", - "GgoMaW50ZXJhY3Rpb25zGN8BIAEoA0hNiAEBEm4KF2ludGVyYWN0aW9uX2V2", + "2QEgASgDSEmIAQESGQoLZ21haWxfc2F2ZXMY2gEgASgDSEqIAQESJAoWZ21h", + "aWxfc2Vjb25kYXJ5X2NsaWNrcxjbASABKANIS4gBARIqChxpbXByZXNzaW9u", + "c19mcm9tX3N0b3JlX3JlYWNoGNwBIAEoA0hMiAEBEhkKC2ltcHJlc3Npb25z", + "GN0BIAEoA0hNiAEBEh4KEGludGVyYWN0aW9uX3JhdGUY3gEgASgBSE6IAQES", + "GgoMaW50ZXJhY3Rpb25zGN8BIAEoA0hPiAEBEm4KF2ludGVyYWN0aW9uX2V2", "ZW50X3R5cGVzGGQgAygOMk0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVu", "dW1zLkludGVyYWN0aW9uRXZlbnRUeXBlRW51bS5JbnRlcmFjdGlvbkV2ZW50", - "VHlwZRIgChJpbnZhbGlkX2NsaWNrX3JhdGUY4AEgASgBSE6IAQESHAoOaW52", - "YWxpZF9jbGlja3MY4QEgASgDSE+IAQESGwoNbWVzc2FnZV9jaGF0cxjiASAB", - "KANIUIgBARIhChNtZXNzYWdlX2ltcHJlc3Npb25zGOMBIAEoA0hRiAEBEh8K", - "EW1lc3NhZ2VfY2hhdF9yYXRlGOQBIAEoAUhSiAEBEi8KIW1vYmlsZV9mcmll", - "bmRseV9jbGlja3NfcGVyY2VudGFnZRjlASABKAFIU4gBARInChlvcHRpbWl6", - "YXRpb25fc2NvcmVfdXBsaWZ0GPcBIAEoAUhUiAEBEiQKFm9wdGltaXphdGlv", - "bl9zY29yZV91cmwY+AEgASgJSFWIAQESHAoOb3JnYW5pY19jbGlja3MY5gEg", - "ASgDSFaIAQESJgoYb3JnYW5pY19jbGlja3NfcGVyX3F1ZXJ5GOcBIAEoAUhX", - "iAEBEiEKE29yZ2FuaWNfaW1wcmVzc2lvbnMY6AEgASgDSFiIAQESKwodb3Jn", - "YW5pY19pbXByZXNzaW9uc19wZXJfcXVlcnkY6QEgASgBSFmIAQESHQoPb3Jn", - "YW5pY19xdWVyaWVzGOoBIAEoA0haiAEBEiIKFHBlcmNlbnRfbmV3X3Zpc2l0", - "b3JzGOsBIAEoAUhbiAEBEhkKC3Bob25lX2NhbGxzGOwBIAEoA0hciAEBEh8K", - "EXBob25lX2ltcHJlc3Npb25zGO0BIAEoA0hdiAEBEiAKEnBob25lX3Rocm91", - "Z2hfcmF0ZRjuASABKAFIXogBARIaCgxyZWxhdGl2ZV9jdHIY7wEgASgBSF+I", + "VHlwZRIgChJpbnZhbGlkX2NsaWNrX3JhdGUY4AEgASgBSFCIAQESHAoOaW52", + "YWxpZF9jbGlja3MY4QEgASgDSFGIAQESGwoNbWVzc2FnZV9jaGF0cxjiASAB", + "KANIUogBARIhChNtZXNzYWdlX2ltcHJlc3Npb25zGOMBIAEoA0hTiAEBEh8K", + "EW1lc3NhZ2VfY2hhdF9yYXRlGOQBIAEoAUhUiAEBEi8KIW1vYmlsZV9mcmll", + "bmRseV9jbGlja3NfcGVyY2VudGFnZRjlASABKAFIVYgBARInChlvcHRpbWl6", + "YXRpb25fc2NvcmVfdXBsaWZ0GPcBIAEoAUhWiAEBEiQKFm9wdGltaXphdGlv", + "bl9zY29yZV91cmwY+AEgASgJSFeIAQESHAoOb3JnYW5pY19jbGlja3MY5gEg", + "ASgDSFiIAQESJgoYb3JnYW5pY19jbGlja3NfcGVyX3F1ZXJ5GOcBIAEoAUhZ", + "iAEBEiEKE29yZ2FuaWNfaW1wcmVzc2lvbnMY6AEgASgDSFqIAQESKwodb3Jn", + "YW5pY19pbXByZXNzaW9uc19wZXJfcXVlcnkY6QEgASgBSFuIAQESHQoPb3Jn", + "YW5pY19xdWVyaWVzGOoBIAEoA0hciAEBEiIKFHBlcmNlbnRfbmV3X3Zpc2l0", + "b3JzGOsBIAEoAUhdiAEBEhkKC3Bob25lX2NhbGxzGOwBIAEoA0heiAEBEh8K", + "EXBob25lX2ltcHJlc3Npb25zGO0BIAEoA0hfiAEBEiAKEnBob25lX3Rocm91", + "Z2hfcmF0ZRjuASABKAFIYIgBARIaCgxyZWxhdGl2ZV9jdHIY7wEgASgBSGGI", "AQESMgokc2VhcmNoX2Fic29sdXRlX3RvcF9pbXByZXNzaW9uX3NoYXJlGIgB", - "IAEoAUhgiAEBEj4KMHNlYXJjaF9idWRnZXRfbG9zdF9hYnNvbHV0ZV90b3Bf", - "aW1wcmVzc2lvbl9zaGFyZRiJASABKAFIYYgBARIxCiNzZWFyY2hfYnVkZ2V0", - "X2xvc3RfaW1wcmVzc2lvbl9zaGFyZRiKASABKAFIYogBARI1CidzZWFyY2hf", - "YnVkZ2V0X2xvc3RfdG9wX2ltcHJlc3Npb25fc2hhcmUYiwEgASgBSGOIAQES", - "IAoSc2VhcmNoX2NsaWNrX3NoYXJlGIwBIAEoAUhkiAEBEjEKI3NlYXJjaF9l", - "eGFjdF9tYXRjaF9pbXByZXNzaW9uX3NoYXJlGI0BIAEoAUhliAEBEiUKF3Nl", - "YXJjaF9pbXByZXNzaW9uX3NoYXJlGI4BIAEoAUhmiAEBEjwKLnNlYXJjaF9y", + "IAEoAUhiiAEBEj4KMHNlYXJjaF9idWRnZXRfbG9zdF9hYnNvbHV0ZV90b3Bf", + "aW1wcmVzc2lvbl9zaGFyZRiJASABKAFIY4gBARIxCiNzZWFyY2hfYnVkZ2V0", + "X2xvc3RfaW1wcmVzc2lvbl9zaGFyZRiKASABKAFIZIgBARI1CidzZWFyY2hf", + "YnVkZ2V0X2xvc3RfdG9wX2ltcHJlc3Npb25fc2hhcmUYiwEgASgBSGWIAQES", + "IAoSc2VhcmNoX2NsaWNrX3NoYXJlGIwBIAEoAUhmiAEBEjEKI3NlYXJjaF9l", + "eGFjdF9tYXRjaF9pbXByZXNzaW9uX3NoYXJlGI0BIAEoAUhniAEBEiUKF3Nl", + "YXJjaF9pbXByZXNzaW9uX3NoYXJlGI4BIAEoAUhoiAEBEjwKLnNlYXJjaF9y", "YW5rX2xvc3RfYWJzb2x1dGVfdG9wX2ltcHJlc3Npb25fc2hhcmUYjwEgASgB", - "SGeIAQESLwohc2VhcmNoX3JhbmtfbG9zdF9pbXByZXNzaW9uX3NoYXJlGJAB", - "IAEoAUhoiAEBEjMKJXNlYXJjaF9yYW5rX2xvc3RfdG9wX2ltcHJlc3Npb25f", - "c2hhcmUYkQEgASgBSGmIAQESKQobc2VhcmNoX3RvcF9pbXByZXNzaW9uX3No", - "YXJlGJIBIAEoAUhqiAEBEhkKC3NwZWVkX3Njb3JlGJMBIAEoA0hriAEBEicK", - "GWF2ZXJhZ2VfdGFyZ2V0X2NwYV9taWNyb3MYogIgASgDSGyIAQESIQoTYXZl", - "cmFnZV90YXJnZXRfcm9hcxj6ASABKAFIbYgBARInChl0b3BfaW1wcmVzc2lv", - "bl9wZXJjZW50YWdlGJQBIAEoAUhuiAEBEj4KMHZhbGlkX2FjY2VsZXJhdGVk", - "X21vYmlsZV9wYWdlc19jbGlja3NfcGVyY2VudGFnZRiVASABKAFIb4gBARIn", - "Chl2YWx1ZV9wZXJfYWxsX2NvbnZlcnNpb25zGJYBIAEoAUhwiAEBEjoKLHZh", - "bHVlX3Blcl9hbGxfY29udmVyc2lvbnNfYnlfY29udmVyc2lvbl9kYXRlGPQB", - "IAEoAUhxiAEBEiIKFHZhbHVlX3Blcl9jb252ZXJzaW9uGJcBIAEoAUhyiAEB", - "EjYKKHZhbHVlX3Blcl9jb252ZXJzaW9uc19ieV9jb252ZXJzaW9uX2RhdGUY", - "9QEgASgBSHOIAQESOwotdmFsdWVfcGVyX2N1cnJlbnRfbW9kZWxfYXR0cmli", - "dXRlZF9jb252ZXJzaW9uGJgBIAEoAUh0iAEBEiYKGHZpZGVvX3F1YXJ0aWxl", - "X3AxMDBfcmF0ZRiEASABKAFIdYgBARIlChd2aWRlb19xdWFydGlsZV9wMjVf", - "cmF0ZRiFASABKAFIdogBARIlChd2aWRlb19xdWFydGlsZV9wNTBfcmF0ZRiG", - "ASABKAFId4gBARIlChd2aWRlb19xdWFydGlsZV9wNzVfcmF0ZRiHASABKAFI", - "eIgBARIdCg92aWRlb192aWV3X3JhdGUYmQEgASgBSHmIAQESGQoLdmlkZW9f", - "dmlld3MYmgEgASgDSHqIAQESJgoYdmlld190aHJvdWdoX2NvbnZlcnNpb25z", - "GJsBIAEoA0h7iAEBEiIKGXNrX2FkX25ldHdvcmtfY29udmVyc2lvbnMY9gEg", - "ASgDEiMKGnB1Ymxpc2hlcl9wdXJjaGFzZWRfY2xpY2tzGIgCIAEoAxIhChhw", - "dWJsaXNoZXJfb3JnYW5pY19jbGlja3MYiQIgASgDEiEKGHB1Ymxpc2hlcl91", - "bmtub3duX2NsaWNrcxiKAiABKAMSPwoxYWxsX2NvbnZlcnNpb25zX2Zyb21f", - "bG9jYXRpb25fYXNzZXRfY2xpY2tfdG9fY2FsbBiLAiABKAFIfIgBARI8Ci5h", - "bGxfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9kaXJlY3Rpb25z", - "GIwCIAEoAUh9iAEBEjYKKGFsbF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9u", - "X2Fzc2V0X21lbnUYjQIgASgBSH6IAQESNwopYWxsX2NvbnZlcnNpb25zX2Zy", - "b21fbG9jYXRpb25fYXNzZXRfb3JkZXIYjgIgASgBSH+IAQESQwo0YWxsX2Nv", - "bnZlcnNpb25zX2Zyb21fbG9jYXRpb25fYXNzZXRfb3RoZXJfZW5nYWdlbWVu", - "dBiPAiABKAFIgAGIAQESPwowYWxsX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRp", - "b25fYXNzZXRfc3RvcmVfdmlzaXRzGJACIAEoAUiBAYgBARI6CithbGxfY29u", - "dmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF93ZWJzaXRlGJECIAEoAUiC", - "AYgBARJDCjRlbGlnaWJsZV9pbXByZXNzaW9uc19mcm9tX2xvY2F0aW9uX2Fz", - "c2V0X3N0b3JlX3JlYWNoGJICIAEoA0iDAYgBARJJCjp2aWV3X3Rocm91Z2hf", - "Y29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9jbGlja190b19jYWxs", - "GJMCIAEoAUiEAYgBARJGCjd2aWV3X3Rocm91Z2hfY29udmVyc2lvbnNfZnJv", - "bV9sb2NhdGlvbl9hc3NldF9kaXJlY3Rpb25zGJQCIAEoAUiFAYgBARJACjF2", - "aWV3X3Rocm91Z2hfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9t", - "ZW51GJUCIAEoAUiGAYgBARJBCjJ2aWV3X3Rocm91Z2hfY29udmVyc2lvbnNf", - "ZnJvbV9sb2NhdGlvbl9hc3NldF9vcmRlchiWAiABKAFIhwGIAQESTAo9dmll", - "d190aHJvdWdoX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRpb25fYXNzZXRfb3Ro", - "ZXJfZW5nYWdlbWVudBiXAiABKAFIiAGIAQESSAo5dmlld190aHJvdWdoX2Nv", - "bnZlcnNpb25zX2Zyb21fbG9jYXRpb25fYXNzZXRfc3RvcmVfdmlzaXRzGJgC", - "IAEoAUiJAYgBARJDCjR2aWV3X3Rocm91Z2hfY29udmVyc2lvbnNfZnJvbV9s", - "b2NhdGlvbl9hc3NldF93ZWJzaXRlGJkCIAEoAUiKAYgBAUIlCiNfYWJzb2x1", - "dGVfdG9wX2ltcHJlc3Npb25fcGVyY2VudGFnZUISChBfYWN0aXZlX3ZpZXdf", - "Y3BtQhIKEF9hY3RpdmVfdmlld19jdHJCGgoYX2FjdGl2ZV92aWV3X2ltcHJl", - "c3Npb25zQhwKGl9hY3RpdmVfdmlld19tZWFzdXJhYmlsaXR5QiUKI19hY3Rp", - "dmVfdmlld19tZWFzdXJhYmxlX2Nvc3RfbWljcm9zQiUKI19hY3RpdmVfdmll", - "d19tZWFzdXJhYmxlX2ltcHJlc3Npb25zQhoKGF9hY3RpdmVfdmlld192aWV3", - "YWJpbGl0eUIpCidfYWxsX2NvbnZlcnNpb25zX2Zyb21faW50ZXJhY3Rpb25z", - "X3JhdGVCGAoWX2FsbF9jb252ZXJzaW9uc192YWx1ZUISChBfYWxsX2NvbnZl", - "cnNpb25zQiEKH19hbGxfY29udmVyc2lvbnNfdmFsdWVfcGVyX2Nvc3RCJQoj", - "X2FsbF9jb252ZXJzaW9uc19mcm9tX2NsaWNrX3RvX2NhbGxCIgogX2FsbF9j", - "b252ZXJzaW9uc19mcm9tX2RpcmVjdGlvbnNCOgo4X2FsbF9jb252ZXJzaW9u", - "c19mcm9tX2ludGVyYWN0aW9uc192YWx1ZV9wZXJfaW50ZXJhY3Rpb25CHAoa", - "X2FsbF9jb252ZXJzaW9uc19mcm9tX21lbnVCHQobX2FsbF9jb252ZXJzaW9u", - "c19mcm9tX29yZGVyQigKJl9hbGxfY29udmVyc2lvbnNfZnJvbV9vdGhlcl9l", - "bmdhZ2VtZW50QiMKIV9hbGxfY29udmVyc2lvbnNfZnJvbV9zdG9yZV92aXNp", - "dEIlCiNfYWxsX2NvbnZlcnNpb25zX2Zyb21fc3RvcmVfd2Vic2l0ZUI8Cjpf", - "YXVjdGlvbl9pbnNpZ2h0X3NlYXJjaF9hYnNvbHV0ZV90b3BfaW1wcmVzc2lv", - "bl9wZXJjZW50YWdlQioKKF9hdWN0aW9uX2luc2lnaHRfc2VhcmNoX2ltcHJl", - "c3Npb25fc2hhcmVCKgooX2F1Y3Rpb25faW5zaWdodF9zZWFyY2hfb3V0cmFu", - "a2luZ19zaGFyZUImCiRfYXVjdGlvbl9pbnNpZ2h0X3NlYXJjaF9vdmVybGFw", - "X3JhdGVCLQorX2F1Y3Rpb25faW5zaWdodF9zZWFyY2hfcG9zaXRpb25fYWJv", - "dmVfcmF0ZUIzCjFfYXVjdGlvbl9pbnNpZ2h0X3NlYXJjaF90b3BfaW1wcmVz", - "c2lvbl9wZXJjZW50YWdlQg8KDV9hdmVyYWdlX2Nvc3RCDgoMX2F2ZXJhZ2Vf", - "Y3BjQg4KDF9hdmVyYWdlX2NwZUIOCgxfYXZlcmFnZV9jcG1CDgoMX2F2ZXJh", - "Z2VfY3B2QhUKE19hdmVyYWdlX3BhZ2Vfdmlld3NCFwoVX2F2ZXJhZ2VfdGlt", - "ZV9vbl9zaXRlQhwKGl9iZW5jaG1hcmtfYXZlcmFnZV9tYXhfY3BjQiMKIV9i", - "aWRkYWJsZV9hcHBfaW5zdGFsbF9jb252ZXJzaW9uc0IoCiZfYmlkZGFibGVf", - "YXBwX3Bvc3RfaW5zdGFsbF9jb252ZXJzaW9uc0IQCg5fYmVuY2htYXJrX2N0", - "ckIOCgxfYm91bmNlX3JhdGVCCQoHX2NsaWNrc0ISChBfY29tYmluZWRfY2xp", - "Y2tzQhwKGl9jb21iaW5lZF9jbGlja3NfcGVyX3F1ZXJ5QhMKEV9jb21iaW5l", - "ZF9xdWVyaWVzQicKJV9jb250ZW50X2J1ZGdldF9sb3N0X2ltcHJlc3Npb25f", - "c2hhcmVCGwoZX2NvbnRlbnRfaW1wcmVzc2lvbl9zaGFyZUItCitfY29udmVy", - "c2lvbl9sYXN0X3JlY2VpdmVkX3JlcXVlc3RfZGF0ZV90aW1lQiIKIF9jb252", - "ZXJzaW9uX2xhc3RfY29udmVyc2lvbl9kYXRlQiUKI19jb250ZW50X3Jhbmtf", - "bG9zdF9pbXByZXNzaW9uX3NoYXJlQiUKI19jb252ZXJzaW9uc19mcm9tX2lu", - "dGVyYWN0aW9uc19yYXRlQhQKEl9jb252ZXJzaW9uc192YWx1ZUIdChtfY29u", - "dmVyc2lvbnNfdmFsdWVfcGVyX2Nvc3RCNgo0X2NvbnZlcnNpb25zX2Zyb21f", - "aW50ZXJhY3Rpb25zX3ZhbHVlX3Blcl9pbnRlcmFjdGlvbkIOCgxfY29udmVy", - "c2lvbnNCDgoMX2Nvc3RfbWljcm9zQhsKGV9jb3N0X3Blcl9hbGxfY29udmVy", - "c2lvbnNCFgoUX2Nvc3RfcGVyX2NvbnZlcnNpb25CLwotX2Nvc3RfcGVyX2N1", - "cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9jb252ZXJzaW9uQhsKGV9jcm9zc19k", - "ZXZpY2VfY29udmVyc2lvbnNCBgoEX2N0ckInCiVfY3VycmVudF9tb2RlbF9h", - "dHRyaWJ1dGVkX2NvbnZlcnNpb25zQj4KPF9jdXJyZW50X21vZGVsX2F0dHJp", - "YnV0ZWRfY29udmVyc2lvbnNfZnJvbV9pbnRlcmFjdGlvbnNfcmF0ZUJPCk1f", - "Y3VycmVudF9tb2RlbF9hdHRyaWJ1dGVkX2NvbnZlcnNpb25zX2Zyb21faW50", - "ZXJhY3Rpb25zX3ZhbHVlX3Blcl9pbnRlcmFjdGlvbkItCitfY3VycmVudF9t", - "b2RlbF9hdHRyaWJ1dGVkX2NvbnZlcnNpb25zX3ZhbHVlQjYKNF9jdXJyZW50", - "X21vZGVsX2F0dHJpYnV0ZWRfY29udmVyc2lvbnNfdmFsdWVfcGVyX2Nvc3RC", - "EgoQX2VuZ2FnZW1lbnRfcmF0ZUIOCgxfZW5nYWdlbWVudHNCIgogX2hvdGVs", - "X2F2ZXJhZ2VfbGVhZF92YWx1ZV9taWNyb3NCHwodX2hvdGVsX2NvbW1pc3Np", - "b25fcmF0ZV9taWNyb3NCIQofX2hvdGVsX2V4cGVjdGVkX2NvbW1pc3Npb25f", - "Y29zdEIkCiJfaG90ZWxfcHJpY2VfZGlmZmVyZW5jZV9wZXJjZW50YWdlQh0K", - "G19ob3RlbF9lbGlnaWJsZV9pbXByZXNzaW9uc0IbChlfaGlzdG9yaWNhbF9x", - "dWFsaXR5X3Njb3JlQhEKD19nbWFpbF9mb3J3YXJkc0IOCgxfZ21haWxfc2F2", - "ZXNCGQoXX2dtYWlsX3NlY29uZGFyeV9jbGlja3NCHwodX2ltcHJlc3Npb25z", - "X2Zyb21fc3RvcmVfcmVhY2hCDgoMX2ltcHJlc3Npb25zQhMKEV9pbnRlcmFj", - "dGlvbl9yYXRlQg8KDV9pbnRlcmFjdGlvbnNCFQoTX2ludmFsaWRfY2xpY2tf", - "cmF0ZUIRCg9faW52YWxpZF9jbGlja3NCEAoOX21lc3NhZ2VfY2hhdHNCFgoU", - "X21lc3NhZ2VfaW1wcmVzc2lvbnNCFAoSX21lc3NhZ2VfY2hhdF9yYXRlQiQK", - "Il9tb2JpbGVfZnJpZW5kbHlfY2xpY2tzX3BlcmNlbnRhZ2VCHAoaX29wdGlt", - "aXphdGlvbl9zY29yZV91cGxpZnRCGQoXX29wdGltaXphdGlvbl9zY29yZV91", - "cmxCEQoPX29yZ2FuaWNfY2xpY2tzQhsKGV9vcmdhbmljX2NsaWNrc19wZXJf", - "cXVlcnlCFgoUX29yZ2FuaWNfaW1wcmVzc2lvbnNCIAoeX29yZ2FuaWNfaW1w", - "cmVzc2lvbnNfcGVyX3F1ZXJ5QhIKEF9vcmdhbmljX3F1ZXJpZXNCFwoVX3Bl", - "cmNlbnRfbmV3X3Zpc2l0b3JzQg4KDF9waG9uZV9jYWxsc0IUChJfcGhvbmVf", - "aW1wcmVzc2lvbnNCFQoTX3Bob25lX3Rocm91Z2hfcmF0ZUIPCg1fcmVsYXRp", - "dmVfY3RyQicKJV9zZWFyY2hfYWJzb2x1dGVfdG9wX2ltcHJlc3Npb25fc2hh", - "cmVCMwoxX3NlYXJjaF9idWRnZXRfbG9zdF9hYnNvbHV0ZV90b3BfaW1wcmVz", - "c2lvbl9zaGFyZUImCiRfc2VhcmNoX2J1ZGdldF9sb3N0X2ltcHJlc3Npb25f", - "c2hhcmVCKgooX3NlYXJjaF9idWRnZXRfbG9zdF90b3BfaW1wcmVzc2lvbl9z", - "aGFyZUIVChNfc2VhcmNoX2NsaWNrX3NoYXJlQiYKJF9zZWFyY2hfZXhhY3Rf", - "bWF0Y2hfaW1wcmVzc2lvbl9zaGFyZUIaChhfc2VhcmNoX2ltcHJlc3Npb25f", - "c2hhcmVCMQovX3NlYXJjaF9yYW5rX2xvc3RfYWJzb2x1dGVfdG9wX2ltcHJl", - "c3Npb25fc2hhcmVCJAoiX3NlYXJjaF9yYW5rX2xvc3RfaW1wcmVzc2lvbl9z", - "aGFyZUIoCiZfc2VhcmNoX3JhbmtfbG9zdF90b3BfaW1wcmVzc2lvbl9zaGFy", - "ZUIeChxfc2VhcmNoX3RvcF9pbXByZXNzaW9uX3NoYXJlQg4KDF9zcGVlZF9z", - "Y29yZUIcChpfYXZlcmFnZV90YXJnZXRfY3BhX21pY3Jvc0IWChRfYXZlcmFn", - "ZV90YXJnZXRfcm9hc0IcChpfdG9wX2ltcHJlc3Npb25fcGVyY2VudGFnZUIz", - "CjFfdmFsaWRfYWNjZWxlcmF0ZWRfbW9iaWxlX3BhZ2VzX2NsaWNrc19wZXJj", - "ZW50YWdlQhwKGl92YWx1ZV9wZXJfYWxsX2NvbnZlcnNpb25zQi8KLV92YWx1", - "ZV9wZXJfYWxsX2NvbnZlcnNpb25zX2J5X2NvbnZlcnNpb25fZGF0ZUIXChVf", - "dmFsdWVfcGVyX2NvbnZlcnNpb25CKwopX3ZhbHVlX3Blcl9jb252ZXJzaW9u", - "c19ieV9jb252ZXJzaW9uX2RhdGVCMAouX3ZhbHVlX3Blcl9jdXJyZW50X21v", - "ZGVsX2F0dHJpYnV0ZWRfY29udmVyc2lvbkIbChlfdmlkZW9fcXVhcnRpbGVf", - "cDEwMF9yYXRlQhoKGF92aWRlb19xdWFydGlsZV9wMjVfcmF0ZUIaChhfdmlk", - "ZW9fcXVhcnRpbGVfcDUwX3JhdGVCGgoYX3ZpZGVvX3F1YXJ0aWxlX3A3NV9y", - "YXRlQhIKEF92aWRlb192aWV3X3JhdGVCDgoMX3ZpZGVvX3ZpZXdzQhsKGV92", - "aWV3X3Rocm91Z2hfY29udmVyc2lvbnNCNAoyX2FsbF9jb252ZXJzaW9uc19m", - "cm9tX2xvY2F0aW9uX2Fzc2V0X2NsaWNrX3RvX2NhbGxCMQovX2FsbF9jb252", - "ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X2RpcmVjdGlvbnNCKwopX2Fs", - "bF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X21lbnVCLAoqX2Fs", - "bF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X29yZGVyQjcKNV9h", - "bGxfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9vdGhlcl9lbmdh", - "Z2VtZW50QjMKMV9hbGxfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3Nl", - "dF9zdG9yZV92aXNpdHNCLgosX2FsbF9jb252ZXJzaW9uc19mcm9tX2xvY2F0", - "aW9uX2Fzc2V0X3dlYnNpdGVCNwo1X2VsaWdpYmxlX2ltcHJlc3Npb25zX2Zy", - "b21fbG9jYXRpb25fYXNzZXRfc3RvcmVfcmVhY2hCPQo7X3ZpZXdfdGhyb3Vn", - "aF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X2NsaWNrX3RvX2Nh", - "bGxCOgo4X3ZpZXdfdGhyb3VnaF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9u", - "X2Fzc2V0X2RpcmVjdGlvbnNCNAoyX3ZpZXdfdGhyb3VnaF9jb252ZXJzaW9u", - "c19mcm9tX2xvY2F0aW9uX2Fzc2V0X21lbnVCNQozX3ZpZXdfdGhyb3VnaF9j", - "b252ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X29yZGVyQkAKPl92aWV3", - "X3Rocm91Z2hfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9vdGhl", - "cl9lbmdhZ2VtZW50QjwKOl92aWV3X3Rocm91Z2hfY29udmVyc2lvbnNfZnJv", - "bV9sb2NhdGlvbl9hc3NldF9zdG9yZV92aXNpdHNCNwo1X3ZpZXdfdGhyb3Vn", - "aF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X3dlYnNpdGVC7AEK", - "I2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uQgxNZXRyaWNz", - "UHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBp", - "cy9hZHMvZ29vZ2xlYWRzL3YxNC9jb21tb247Y29tbW9uogIDR0FBqgIfR29v", - "Z2xlLkFkcy5Hb29nbGVBZHMuVjE0LkNvbW1vbsoCH0dvb2dsZVxBZHNcR29v", - "Z2xlQWRzXFYxNFxDb21tb27qAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpW", - "MTQ6OkNvbW1vbmIGcHJvdG8z")); + "SGmIAQESLwohc2VhcmNoX3JhbmtfbG9zdF9pbXByZXNzaW9uX3NoYXJlGJAB", + "IAEoAUhqiAEBEjMKJXNlYXJjaF9yYW5rX2xvc3RfdG9wX2ltcHJlc3Npb25f", + "c2hhcmUYkQEgASgBSGuIAQESKQobc2VhcmNoX3RvcF9pbXByZXNzaW9uX3No", + "YXJlGJIBIAEoAUhsiAEBEk8KDXNlYXJjaF92b2x1bWUYpwIgASgLMjIuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5TZWFyY2hWb2x1bWVSYW5n", + "ZUhtiAEBEhkKC3NwZWVkX3Njb3JlGJMBIAEoA0huiAEBEicKGWF2ZXJhZ2Vf", + "dGFyZ2V0X2NwYV9taWNyb3MYogIgASgDSG+IAQESIQoTYXZlcmFnZV90YXJn", + "ZXRfcm9hcxj6ASABKAFIcIgBARInChl0b3BfaW1wcmVzc2lvbl9wZXJjZW50", + "YWdlGJQBIAEoAUhxiAEBEj4KMHZhbGlkX2FjY2VsZXJhdGVkX21vYmlsZV9w", + "YWdlc19jbGlja3NfcGVyY2VudGFnZRiVASABKAFIcogBARInChl2YWx1ZV9w", + "ZXJfYWxsX2NvbnZlcnNpb25zGJYBIAEoAUhziAEBEjoKLHZhbHVlX3Blcl9h", + "bGxfY29udmVyc2lvbnNfYnlfY29udmVyc2lvbl9kYXRlGPQBIAEoAUh0iAEB", + "EiIKFHZhbHVlX3Blcl9jb252ZXJzaW9uGJcBIAEoAUh1iAEBEjYKKHZhbHVl", + "X3Blcl9jb252ZXJzaW9uc19ieV9jb252ZXJzaW9uX2RhdGUY9QEgASgBSHaI", + "AQESOwotdmFsdWVfcGVyX2N1cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9jb252", + "ZXJzaW9uGJgBIAEoAUh3iAEBEiYKGHZpZGVvX3F1YXJ0aWxlX3AxMDBfcmF0", + "ZRiEASABKAFIeIgBARIlChd2aWRlb19xdWFydGlsZV9wMjVfcmF0ZRiFASAB", + "KAFIeYgBARIlChd2aWRlb19xdWFydGlsZV9wNTBfcmF0ZRiGASABKAFIeogB", + "ARIlChd2aWRlb19xdWFydGlsZV9wNzVfcmF0ZRiHASABKAFIe4gBARIdCg92", + "aWRlb192aWV3X3JhdGUYmQEgASgBSHyIAQESGQoLdmlkZW9fdmlld3MYmgEg", + "ASgDSH2IAQESJgoYdmlld190aHJvdWdoX2NvbnZlcnNpb25zGJsBIAEoA0h+", + "iAEBEiIKGXNrX2FkX25ldHdvcmtfY29udmVyc2lvbnMY9gEgASgDEiMKGnB1", + "Ymxpc2hlcl9wdXJjaGFzZWRfY2xpY2tzGIgCIAEoAxIhChhwdWJsaXNoZXJf", + "b3JnYW5pY19jbGlja3MYiQIgASgDEiEKGHB1Ymxpc2hlcl91bmtub3duX2Ns", + "aWNrcxiKAiABKAMSPwoxYWxsX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRpb25f", + "YXNzZXRfY2xpY2tfdG9fY2FsbBiLAiABKAFIf4gBARI9Ci5hbGxfY29udmVy", + "c2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9kaXJlY3Rpb25zGIwCIAEoAUiA", + "AYgBARI3CihhbGxfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9t", + "ZW51GI0CIAEoAUiBAYgBARI4CilhbGxfY29udmVyc2lvbnNfZnJvbV9sb2Nh", + "dGlvbl9hc3NldF9vcmRlchiOAiABKAFIggGIAQESQwo0YWxsX2NvbnZlcnNp", + "b25zX2Zyb21fbG9jYXRpb25fYXNzZXRfb3RoZXJfZW5nYWdlbWVudBiPAiAB", + "KAFIgwGIAQESPwowYWxsX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRpb25fYXNz", + "ZXRfc3RvcmVfdmlzaXRzGJACIAEoAUiEAYgBARI6CithbGxfY29udmVyc2lv", + "bnNfZnJvbV9sb2NhdGlvbl9hc3NldF93ZWJzaXRlGJECIAEoAUiFAYgBARJD", + "CjRlbGlnaWJsZV9pbXByZXNzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X3N0", + "b3JlX3JlYWNoGJICIAEoA0iGAYgBARJJCjp2aWV3X3Rocm91Z2hfY29udmVy", + "c2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9jbGlja190b19jYWxsGJMCIAEo", + "AUiHAYgBARJGCjd2aWV3X3Rocm91Z2hfY29udmVyc2lvbnNfZnJvbV9sb2Nh", + "dGlvbl9hc3NldF9kaXJlY3Rpb25zGJQCIAEoAUiIAYgBARJACjF2aWV3X3Ro", + "cm91Z2hfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlvbl9hc3NldF9tZW51GJUC", + "IAEoAUiJAYgBARJBCjJ2aWV3X3Rocm91Z2hfY29udmVyc2lvbnNfZnJvbV9s", + "b2NhdGlvbl9hc3NldF9vcmRlchiWAiABKAFIigGIAQESTAo9dmlld190aHJv", + "dWdoX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRpb25fYXNzZXRfb3RoZXJfZW5n", + "YWdlbWVudBiXAiABKAFIiwGIAQESSAo5dmlld190aHJvdWdoX2NvbnZlcnNp", + "b25zX2Zyb21fbG9jYXRpb25fYXNzZXRfc3RvcmVfdmlzaXRzGJgCIAEoAUiM", + "AYgBARJDCjR2aWV3X3Rocm91Z2hfY29udmVyc2lvbnNfZnJvbV9sb2NhdGlv", + "bl9hc3NldF93ZWJzaXRlGJkCIAEoAUiNAYgBAUIlCiNfYWJzb2x1dGVfdG9w", + "X2ltcHJlc3Npb25fcGVyY2VudGFnZUISChBfYWN0aXZlX3ZpZXdfY3BtQhIK", + "EF9hY3RpdmVfdmlld19jdHJCGgoYX2FjdGl2ZV92aWV3X2ltcHJlc3Npb25z", + "QhwKGl9hY3RpdmVfdmlld19tZWFzdXJhYmlsaXR5QiUKI19hY3RpdmVfdmll", + "d19tZWFzdXJhYmxlX2Nvc3RfbWljcm9zQiUKI19hY3RpdmVfdmlld19tZWFz", + "dXJhYmxlX2ltcHJlc3Npb25zQhoKGF9hY3RpdmVfdmlld192aWV3YWJpbGl0", + "eUIpCidfYWxsX2NvbnZlcnNpb25zX2Zyb21faW50ZXJhY3Rpb25zX3JhdGVC", + "GAoWX2FsbF9jb252ZXJzaW9uc192YWx1ZUIiCiBfYWxsX25ld19jdXN0b21l", + "cl9saWZldGltZV92YWx1ZUISChBfYWxsX2NvbnZlcnNpb25zQiEKH19hbGxf", + "Y29udmVyc2lvbnNfdmFsdWVfcGVyX2Nvc3RCJQojX2FsbF9jb252ZXJzaW9u", + "c19mcm9tX2NsaWNrX3RvX2NhbGxCIgogX2FsbF9jb252ZXJzaW9uc19mcm9t", + "X2RpcmVjdGlvbnNCOgo4X2FsbF9jb252ZXJzaW9uc19mcm9tX2ludGVyYWN0", + "aW9uc192YWx1ZV9wZXJfaW50ZXJhY3Rpb25CHAoaX2FsbF9jb252ZXJzaW9u", + "c19mcm9tX21lbnVCHQobX2FsbF9jb252ZXJzaW9uc19mcm9tX29yZGVyQigK", + "Jl9hbGxfY29udmVyc2lvbnNfZnJvbV9vdGhlcl9lbmdhZ2VtZW50QiMKIV9h", + "bGxfY29udmVyc2lvbnNfZnJvbV9zdG9yZV92aXNpdEIlCiNfYWxsX2NvbnZl", + "cnNpb25zX2Zyb21fc3RvcmVfd2Vic2l0ZUI8CjpfYXVjdGlvbl9pbnNpZ2h0", + "X3NlYXJjaF9hYnNvbHV0ZV90b3BfaW1wcmVzc2lvbl9wZXJjZW50YWdlQioK", + "KF9hdWN0aW9uX2luc2lnaHRfc2VhcmNoX2ltcHJlc3Npb25fc2hhcmVCKgoo", + "X2F1Y3Rpb25faW5zaWdodF9zZWFyY2hfb3V0cmFua2luZ19zaGFyZUImCiRf", + "YXVjdGlvbl9pbnNpZ2h0X3NlYXJjaF9vdmVybGFwX3JhdGVCLQorX2F1Y3Rp", + "b25faW5zaWdodF9zZWFyY2hfcG9zaXRpb25fYWJvdmVfcmF0ZUIzCjFfYXVj", + "dGlvbl9pbnNpZ2h0X3NlYXJjaF90b3BfaW1wcmVzc2lvbl9wZXJjZW50YWdl", + "Qg8KDV9hdmVyYWdlX2Nvc3RCDgoMX2F2ZXJhZ2VfY3BjQg4KDF9hdmVyYWdl", + "X2NwZUIOCgxfYXZlcmFnZV9jcG1CDgoMX2F2ZXJhZ2VfY3B2QhUKE19hdmVy", + "YWdlX3BhZ2Vfdmlld3NCFwoVX2F2ZXJhZ2VfdGltZV9vbl9zaXRlQhwKGl9i", + "ZW5jaG1hcmtfYXZlcmFnZV9tYXhfY3BjQiMKIV9iaWRkYWJsZV9hcHBfaW5z", + "dGFsbF9jb252ZXJzaW9uc0IoCiZfYmlkZGFibGVfYXBwX3Bvc3RfaW5zdGFs", + "bF9jb252ZXJzaW9uc0IQCg5fYmVuY2htYXJrX2N0ckIOCgxfYm91bmNlX3Jh", + "dGVCCQoHX2NsaWNrc0ISChBfY29tYmluZWRfY2xpY2tzQhwKGl9jb21iaW5l", + "ZF9jbGlja3NfcGVyX3F1ZXJ5QhMKEV9jb21iaW5lZF9xdWVyaWVzQicKJV9j", + "b250ZW50X2J1ZGdldF9sb3N0X2ltcHJlc3Npb25fc2hhcmVCGwoZX2NvbnRl", + "bnRfaW1wcmVzc2lvbl9zaGFyZUItCitfY29udmVyc2lvbl9sYXN0X3JlY2Vp", + "dmVkX3JlcXVlc3RfZGF0ZV90aW1lQiIKIF9jb252ZXJzaW9uX2xhc3RfY29u", + "dmVyc2lvbl9kYXRlQiUKI19jb250ZW50X3JhbmtfbG9zdF9pbXByZXNzaW9u", + "X3NoYXJlQiUKI19jb252ZXJzaW9uc19mcm9tX2ludGVyYWN0aW9uc19yYXRl", + "QhQKEl9jb252ZXJzaW9uc192YWx1ZUIeChxfbmV3X2N1c3RvbWVyX2xpZmV0", + "aW1lX3ZhbHVlQh0KG19jb252ZXJzaW9uc192YWx1ZV9wZXJfY29zdEI2CjRf", + "Y29udmVyc2lvbnNfZnJvbV9pbnRlcmFjdGlvbnNfdmFsdWVfcGVyX2ludGVy", + "YWN0aW9uQg4KDF9jb252ZXJzaW9uc0IOCgxfY29zdF9taWNyb3NCGwoZX2Nv", + "c3RfcGVyX2FsbF9jb252ZXJzaW9uc0IWChRfY29zdF9wZXJfY29udmVyc2lv", + "bkIvCi1fY29zdF9wZXJfY3VycmVudF9tb2RlbF9hdHRyaWJ1dGVkX2NvbnZl", + "cnNpb25CGwoZX2Nyb3NzX2RldmljZV9jb252ZXJzaW9uc0IGCgRfY3RyQicK", + "JV9jdXJyZW50X21vZGVsX2F0dHJpYnV0ZWRfY29udmVyc2lvbnNCPgo8X2N1", + "cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9jb252ZXJzaW9uc19mcm9tX2ludGVy", + "YWN0aW9uc19yYXRlQk8KTV9jdXJyZW50X21vZGVsX2F0dHJpYnV0ZWRfY29u", + "dmVyc2lvbnNfZnJvbV9pbnRlcmFjdGlvbnNfdmFsdWVfcGVyX2ludGVyYWN0", + "aW9uQi0KK19jdXJyZW50X21vZGVsX2F0dHJpYnV0ZWRfY29udmVyc2lvbnNf", + "dmFsdWVCNgo0X2N1cnJlbnRfbW9kZWxfYXR0cmlidXRlZF9jb252ZXJzaW9u", + "c192YWx1ZV9wZXJfY29zdEISChBfZW5nYWdlbWVudF9yYXRlQg4KDF9lbmdh", + "Z2VtZW50c0IiCiBfaG90ZWxfYXZlcmFnZV9sZWFkX3ZhbHVlX21pY3Jvc0If", + "Ch1faG90ZWxfY29tbWlzc2lvbl9yYXRlX21pY3Jvc0IhCh9faG90ZWxfZXhw", + "ZWN0ZWRfY29tbWlzc2lvbl9jb3N0QiQKIl9ob3RlbF9wcmljZV9kaWZmZXJl", + "bmNlX3BlcmNlbnRhZ2VCHQobX2hvdGVsX2VsaWdpYmxlX2ltcHJlc3Npb25z", + "QhsKGV9oaXN0b3JpY2FsX3F1YWxpdHlfc2NvcmVCEQoPX2dtYWlsX2Zvcndh", + "cmRzQg4KDF9nbWFpbF9zYXZlc0IZChdfZ21haWxfc2Vjb25kYXJ5X2NsaWNr", + "c0IfCh1faW1wcmVzc2lvbnNfZnJvbV9zdG9yZV9yZWFjaEIOCgxfaW1wcmVz", + "c2lvbnNCEwoRX2ludGVyYWN0aW9uX3JhdGVCDwoNX2ludGVyYWN0aW9uc0IV", + "ChNfaW52YWxpZF9jbGlja19yYXRlQhEKD19pbnZhbGlkX2NsaWNrc0IQCg5f", + "bWVzc2FnZV9jaGF0c0IWChRfbWVzc2FnZV9pbXByZXNzaW9uc0IUChJfbWVz", + "c2FnZV9jaGF0X3JhdGVCJAoiX21vYmlsZV9mcmllbmRseV9jbGlja3NfcGVy", + "Y2VudGFnZUIcChpfb3B0aW1pemF0aW9uX3Njb3JlX3VwbGlmdEIZChdfb3B0", + "aW1pemF0aW9uX3Njb3JlX3VybEIRCg9fb3JnYW5pY19jbGlja3NCGwoZX29y", + "Z2FuaWNfY2xpY2tzX3Blcl9xdWVyeUIWChRfb3JnYW5pY19pbXByZXNzaW9u", + "c0IgCh5fb3JnYW5pY19pbXByZXNzaW9uc19wZXJfcXVlcnlCEgoQX29yZ2Fu", + "aWNfcXVlcmllc0IXChVfcGVyY2VudF9uZXdfdmlzaXRvcnNCDgoMX3Bob25l", + "X2NhbGxzQhQKEl9waG9uZV9pbXByZXNzaW9uc0IVChNfcGhvbmVfdGhyb3Vn", + "aF9yYXRlQg8KDV9yZWxhdGl2ZV9jdHJCJwolX3NlYXJjaF9hYnNvbHV0ZV90", + "b3BfaW1wcmVzc2lvbl9zaGFyZUIzCjFfc2VhcmNoX2J1ZGdldF9sb3N0X2Fi", + "c29sdXRlX3RvcF9pbXByZXNzaW9uX3NoYXJlQiYKJF9zZWFyY2hfYnVkZ2V0", + "X2xvc3RfaW1wcmVzc2lvbl9zaGFyZUIqCihfc2VhcmNoX2J1ZGdldF9sb3N0", + "X3RvcF9pbXByZXNzaW9uX3NoYXJlQhUKE19zZWFyY2hfY2xpY2tfc2hhcmVC", + "JgokX3NlYXJjaF9leGFjdF9tYXRjaF9pbXByZXNzaW9uX3NoYXJlQhoKGF9z", + "ZWFyY2hfaW1wcmVzc2lvbl9zaGFyZUIxCi9fc2VhcmNoX3JhbmtfbG9zdF9h", + "YnNvbHV0ZV90b3BfaW1wcmVzc2lvbl9zaGFyZUIkCiJfc2VhcmNoX3Jhbmtf", + "bG9zdF9pbXByZXNzaW9uX3NoYXJlQigKJl9zZWFyY2hfcmFua19sb3N0X3Rv", + "cF9pbXByZXNzaW9uX3NoYXJlQh4KHF9zZWFyY2hfdG9wX2ltcHJlc3Npb25f", + "c2hhcmVCEAoOX3NlYXJjaF92b2x1bWVCDgoMX3NwZWVkX3Njb3JlQhwKGl9h", + "dmVyYWdlX3RhcmdldF9jcGFfbWljcm9zQhYKFF9hdmVyYWdlX3RhcmdldF9y", + "b2FzQhwKGl90b3BfaW1wcmVzc2lvbl9wZXJjZW50YWdlQjMKMV92YWxpZF9h", + "Y2NlbGVyYXRlZF9tb2JpbGVfcGFnZXNfY2xpY2tzX3BlcmNlbnRhZ2VCHAoa", + "X3ZhbHVlX3Blcl9hbGxfY29udmVyc2lvbnNCLwotX3ZhbHVlX3Blcl9hbGxf", + "Y29udmVyc2lvbnNfYnlfY29udmVyc2lvbl9kYXRlQhcKFV92YWx1ZV9wZXJf", + "Y29udmVyc2lvbkIrCilfdmFsdWVfcGVyX2NvbnZlcnNpb25zX2J5X2NvbnZl", + "cnNpb25fZGF0ZUIwCi5fdmFsdWVfcGVyX2N1cnJlbnRfbW9kZWxfYXR0cmli", + "dXRlZF9jb252ZXJzaW9uQhsKGV92aWRlb19xdWFydGlsZV9wMTAwX3JhdGVC", + "GgoYX3ZpZGVvX3F1YXJ0aWxlX3AyNV9yYXRlQhoKGF92aWRlb19xdWFydGls", + "ZV9wNTBfcmF0ZUIaChhfdmlkZW9fcXVhcnRpbGVfcDc1X3JhdGVCEgoQX3Zp", + "ZGVvX3ZpZXdfcmF0ZUIOCgxfdmlkZW9fdmlld3NCGwoZX3ZpZXdfdGhyb3Vn", + "aF9jb252ZXJzaW9uc0I0CjJfYWxsX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRp", + "b25fYXNzZXRfY2xpY2tfdG9fY2FsbEIxCi9fYWxsX2NvbnZlcnNpb25zX2Zy", + "b21fbG9jYXRpb25fYXNzZXRfZGlyZWN0aW9uc0IrCilfYWxsX2NvbnZlcnNp", + "b25zX2Zyb21fbG9jYXRpb25fYXNzZXRfbWVudUIsCipfYWxsX2NvbnZlcnNp", + "b25zX2Zyb21fbG9jYXRpb25fYXNzZXRfb3JkZXJCNwo1X2FsbF9jb252ZXJz", + "aW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X290aGVyX2VuZ2FnZW1lbnRCMwox", + "X2FsbF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X3N0b3JlX3Zp", + "c2l0c0IuCixfYWxsX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRpb25fYXNzZXRf", + "d2Vic2l0ZUI3CjVfZWxpZ2libGVfaW1wcmVzc2lvbnNfZnJvbV9sb2NhdGlv", + "bl9hc3NldF9zdG9yZV9yZWFjaEI9Cjtfdmlld190aHJvdWdoX2NvbnZlcnNp", + "b25zX2Zyb21fbG9jYXRpb25fYXNzZXRfY2xpY2tfdG9fY2FsbEI6Cjhfdmll", + "d190aHJvdWdoX2NvbnZlcnNpb25zX2Zyb21fbG9jYXRpb25fYXNzZXRfZGly", + "ZWN0aW9uc0I0CjJfdmlld190aHJvdWdoX2NvbnZlcnNpb25zX2Zyb21fbG9j", + "YXRpb25fYXNzZXRfbWVudUI1CjNfdmlld190aHJvdWdoX2NvbnZlcnNpb25z", + "X2Zyb21fbG9jYXRpb25fYXNzZXRfb3JkZXJCQAo+X3ZpZXdfdGhyb3VnaF9j", + "b252ZXJzaW9uc19mcm9tX2xvY2F0aW9uX2Fzc2V0X290aGVyX2VuZ2FnZW1l", + "bnRCPAo6X3ZpZXdfdGhyb3VnaF9jb252ZXJzaW9uc19mcm9tX2xvY2F0aW9u", + "X2Fzc2V0X3N0b3JlX3Zpc2l0c0I3CjVfdmlld190aHJvdWdoX2NvbnZlcnNp", + "b25zX2Zyb21fbG9jYXRpb25fYXNzZXRfd2Vic2l0ZSJHChFTZWFyY2hWb2x1", + "bWVSYW5nZRIQCgNtaW4YASABKANIAIgBARIQCgNtYXgYAiABKANIAYgBAUIG", + "CgRfbWluQgYKBF9tYXhC7AEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQuY29tbW9uQgxNZXRyaWNzUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcv", + "Z2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNC9jb21tb247", + "Y29tbW9uogIDR0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0LkNvbW1v", + "bsoCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYxNFxDb21tb27qAiNHb29nbGU6", + "OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkNvbW1vbmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Enums.InteractionEventTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.QualityScoreBucketReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.Metrics), global::Google.Ads.GoogleAds.V14.Common.Metrics.Parser, new[]{ "AbsoluteTopImpressionPercentage", "ActiveViewCpm", "ActiveViewCtr", "ActiveViewImpressions", "ActiveViewMeasurability", "ActiveViewMeasurableCostMicros", "ActiveViewMeasurableImpressions", "ActiveViewViewability", "AllConversionsFromInteractionsRate", "AllConversionsValue", "AllConversionsValueByConversionDate", "AllConversions", "AllConversionsByConversionDate", "AllConversionsValuePerCost", "AllConversionsFromClickToCall", "AllConversionsFromDirections", "AllConversionsFromInteractionsValuePerInteraction", "AllConversionsFromMenu", "AllConversionsFromOrder", "AllConversionsFromOtherEngagement", "AllConversionsFromStoreVisit", "AllConversionsFromStoreWebsite", "AuctionInsightSearchAbsoluteTopImpressionPercentage", "AuctionInsightSearchImpressionShare", "AuctionInsightSearchOutrankingShare", "AuctionInsightSearchOverlapRate", "AuctionInsightSearchPositionAboveRate", "AuctionInsightSearchTopImpressionPercentage", "AverageCost", "AverageCpc", "AverageCpe", "AverageCpm", "AverageCpv", "AveragePageViews", "AverageTimeOnSite", "BenchmarkAverageMaxCpc", "BiddableAppInstallConversions", "BiddableAppPostInstallConversions", "BenchmarkCtr", "BounceRate", "Clicks", "CombinedClicks", "CombinedClicksPerQuery", "CombinedQueries", "ContentBudgetLostImpressionShare", "ContentImpressionShare", "ConversionLastReceivedRequestDateTime", "ConversionLastConversionDate", "ContentRankLostImpressionShare", "ConversionsFromInteractionsRate", "ConversionsValue", "ConversionsValueByConversionDate", "ConversionsValuePerCost", "ConversionsFromInteractionsValuePerInteraction", "Conversions", "ConversionsByConversionDate", "CostMicros", "CostPerAllConversions", "CostPerConversion", "CostPerCurrentModelAttributedConversion", "CrossDeviceConversions", "Ctr", "CurrentModelAttributedConversions", "CurrentModelAttributedConversionsFromInteractionsRate", "CurrentModelAttributedConversionsFromInteractionsValuePerInteraction", "CurrentModelAttributedConversionsValue", "CurrentModelAttributedConversionsValuePerCost", "EngagementRate", "Engagements", "HotelAverageLeadValueMicros", "HotelCommissionRateMicros", "HotelExpectedCommissionCost", "HotelPriceDifferencePercentage", "HotelEligibleImpressions", "HistoricalCreativeQualityScore", "HistoricalLandingPageQualityScore", "HistoricalQualityScore", "HistoricalSearchPredictedCtr", "GmailForwards", "GmailSaves", "GmailSecondaryClicks", "ImpressionsFromStoreReach", "Impressions", "InteractionRate", "Interactions", "InteractionEventTypes", "InvalidClickRate", "InvalidClicks", "MessageChats", "MessageImpressions", "MessageChatRate", "MobileFriendlyClicksPercentage", "OptimizationScoreUplift", "OptimizationScoreUrl", "OrganicClicks", "OrganicClicksPerQuery", "OrganicImpressions", "OrganicImpressionsPerQuery", "OrganicQueries", "PercentNewVisitors", "PhoneCalls", "PhoneImpressions", "PhoneThroughRate", "RelativeCtr", "SearchAbsoluteTopImpressionShare", "SearchBudgetLostAbsoluteTopImpressionShare", "SearchBudgetLostImpressionShare", "SearchBudgetLostTopImpressionShare", "SearchClickShare", "SearchExactMatchImpressionShare", "SearchImpressionShare", "SearchRankLostAbsoluteTopImpressionShare", "SearchRankLostImpressionShare", "SearchRankLostTopImpressionShare", "SearchTopImpressionShare", "SpeedScore", "AverageTargetCpaMicros", "AverageTargetRoas", "TopImpressionPercentage", "ValidAcceleratedMobilePagesClicksPercentage", "ValuePerAllConversions", "ValuePerAllConversionsByConversionDate", "ValuePerConversion", "ValuePerConversionsByConversionDate", "ValuePerCurrentModelAttributedConversion", "VideoQuartileP100Rate", "VideoQuartileP25Rate", "VideoQuartileP50Rate", "VideoQuartileP75Rate", "VideoViewRate", "VideoViews", "ViewThroughConversions", "SkAdNetworkConversions", "PublisherPurchasedClicks", "PublisherOrganicClicks", "PublisherUnknownClicks", "AllConversionsFromLocationAssetClickToCall", "AllConversionsFromLocationAssetDirections", "AllConversionsFromLocationAssetMenu", "AllConversionsFromLocationAssetOrder", "AllConversionsFromLocationAssetOtherEngagement", "AllConversionsFromLocationAssetStoreVisits", "AllConversionsFromLocationAssetWebsite", "EligibleImpressionsFromLocationAssetStoreReach", "ViewThroughConversionsFromLocationAssetClickToCall", "ViewThroughConversionsFromLocationAssetDirections", "ViewThroughConversionsFromLocationAssetMenu", "ViewThroughConversionsFromLocationAssetOrder", "ViewThroughConversionsFromLocationAssetOtherEngagement", "ViewThroughConversionsFromLocationAssetStoreVisits", "ViewThroughConversionsFromLocationAssetWebsite" }, new[]{ "AbsoluteTopImpressionPercentage", "ActiveViewCpm", "ActiveViewCtr", "ActiveViewImpressions", "ActiveViewMeasurability", "ActiveViewMeasurableCostMicros", "ActiveViewMeasurableImpressions", "ActiveViewViewability", "AllConversionsFromInteractionsRate", "AllConversionsValue", "AllConversions", "AllConversionsValuePerCost", "AllConversionsFromClickToCall", "AllConversionsFromDirections", "AllConversionsFromInteractionsValuePerInteraction", "AllConversionsFromMenu", "AllConversionsFromOrder", "AllConversionsFromOtherEngagement", "AllConversionsFromStoreVisit", "AllConversionsFromStoreWebsite", "AuctionInsightSearchAbsoluteTopImpressionPercentage", "AuctionInsightSearchImpressionShare", "AuctionInsightSearchOutrankingShare", "AuctionInsightSearchOverlapRate", "AuctionInsightSearchPositionAboveRate", "AuctionInsightSearchTopImpressionPercentage", "AverageCost", "AverageCpc", "AverageCpe", "AverageCpm", "AverageCpv", "AveragePageViews", "AverageTimeOnSite", "BenchmarkAverageMaxCpc", "BiddableAppInstallConversions", "BiddableAppPostInstallConversions", "BenchmarkCtr", "BounceRate", "Clicks", "CombinedClicks", "CombinedClicksPerQuery", "CombinedQueries", "ContentBudgetLostImpressionShare", "ContentImpressionShare", "ConversionLastReceivedRequestDateTime", "ConversionLastConversionDate", "ContentRankLostImpressionShare", "ConversionsFromInteractionsRate", "ConversionsValue", "ConversionsValuePerCost", "ConversionsFromInteractionsValuePerInteraction", "Conversions", "CostMicros", "CostPerAllConversions", "CostPerConversion", "CostPerCurrentModelAttributedConversion", "CrossDeviceConversions", "Ctr", "CurrentModelAttributedConversions", "CurrentModelAttributedConversionsFromInteractionsRate", "CurrentModelAttributedConversionsFromInteractionsValuePerInteraction", "CurrentModelAttributedConversionsValue", "CurrentModelAttributedConversionsValuePerCost", "EngagementRate", "Engagements", "HotelAverageLeadValueMicros", "HotelCommissionRateMicros", "HotelExpectedCommissionCost", "HotelPriceDifferencePercentage", "HotelEligibleImpressions", "HistoricalQualityScore", "GmailForwards", "GmailSaves", "GmailSecondaryClicks", "ImpressionsFromStoreReach", "Impressions", "InteractionRate", "Interactions", "InvalidClickRate", "InvalidClicks", "MessageChats", "MessageImpressions", "MessageChatRate", "MobileFriendlyClicksPercentage", "OptimizationScoreUplift", "OptimizationScoreUrl", "OrganicClicks", "OrganicClicksPerQuery", "OrganicImpressions", "OrganicImpressionsPerQuery", "OrganicQueries", "PercentNewVisitors", "PhoneCalls", "PhoneImpressions", "PhoneThroughRate", "RelativeCtr", "SearchAbsoluteTopImpressionShare", "SearchBudgetLostAbsoluteTopImpressionShare", "SearchBudgetLostImpressionShare", "SearchBudgetLostTopImpressionShare", "SearchClickShare", "SearchExactMatchImpressionShare", "SearchImpressionShare", "SearchRankLostAbsoluteTopImpressionShare", "SearchRankLostImpressionShare", "SearchRankLostTopImpressionShare", "SearchTopImpressionShare", "SpeedScore", "AverageTargetCpaMicros", "AverageTargetRoas", "TopImpressionPercentage", "ValidAcceleratedMobilePagesClicksPercentage", "ValuePerAllConversions", "ValuePerAllConversionsByConversionDate", "ValuePerConversion", "ValuePerConversionsByConversionDate", "ValuePerCurrentModelAttributedConversion", "VideoQuartileP100Rate", "VideoQuartileP25Rate", "VideoQuartileP50Rate", "VideoQuartileP75Rate", "VideoViewRate", "VideoViews", "ViewThroughConversions", "AllConversionsFromLocationAssetClickToCall", "AllConversionsFromLocationAssetDirections", "AllConversionsFromLocationAssetMenu", "AllConversionsFromLocationAssetOrder", "AllConversionsFromLocationAssetOtherEngagement", "AllConversionsFromLocationAssetStoreVisits", "AllConversionsFromLocationAssetWebsite", "EligibleImpressionsFromLocationAssetStoreReach", "ViewThroughConversionsFromLocationAssetClickToCall", "ViewThroughConversionsFromLocationAssetDirections", "ViewThroughConversionsFromLocationAssetMenu", "ViewThroughConversionsFromLocationAssetOrder", "ViewThroughConversionsFromLocationAssetOtherEngagement", "ViewThroughConversionsFromLocationAssetStoreVisits", "ViewThroughConversionsFromLocationAssetWebsite" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.Metrics), global::Google.Ads.GoogleAds.V14.Common.Metrics.Parser, new[]{ "AbsoluteTopImpressionPercentage", "ActiveViewCpm", "ActiveViewCtr", "ActiveViewImpressions", "ActiveViewMeasurability", "ActiveViewMeasurableCostMicros", "ActiveViewMeasurableImpressions", "ActiveViewViewability", "AllConversionsFromInteractionsRate", "AllConversionsValue", "AllConversionsValueByConversionDate", "AllNewCustomerLifetimeValue", "AllConversions", "AllConversionsByConversionDate", "AllConversionsValuePerCost", "AllConversionsFromClickToCall", "AllConversionsFromDirections", "AllConversionsFromInteractionsValuePerInteraction", "AllConversionsFromMenu", "AllConversionsFromOrder", "AllConversionsFromOtherEngagement", "AllConversionsFromStoreVisit", "AllConversionsFromStoreWebsite", "AuctionInsightSearchAbsoluteTopImpressionPercentage", "AuctionInsightSearchImpressionShare", "AuctionInsightSearchOutrankingShare", "AuctionInsightSearchOverlapRate", "AuctionInsightSearchPositionAboveRate", "AuctionInsightSearchTopImpressionPercentage", "AverageCost", "AverageCpc", "AverageCpe", "AverageCpm", "AverageCpv", "AveragePageViews", "AverageTimeOnSite", "BenchmarkAverageMaxCpc", "BiddableAppInstallConversions", "BiddableAppPostInstallConversions", "BenchmarkCtr", "BounceRate", "Clicks", "CombinedClicks", "CombinedClicksPerQuery", "CombinedQueries", "ContentBudgetLostImpressionShare", "ContentImpressionShare", "ConversionLastReceivedRequestDateTime", "ConversionLastConversionDate", "ContentRankLostImpressionShare", "ConversionsFromInteractionsRate", "ConversionsValue", "ConversionsValueByConversionDate", "NewCustomerLifetimeValue", "ConversionsValuePerCost", "ConversionsFromInteractionsValuePerInteraction", "Conversions", "ConversionsByConversionDate", "CostMicros", "CostPerAllConversions", "CostPerConversion", "CostPerCurrentModelAttributedConversion", "CrossDeviceConversions", "Ctr", "CurrentModelAttributedConversions", "CurrentModelAttributedConversionsFromInteractionsRate", "CurrentModelAttributedConversionsFromInteractionsValuePerInteraction", "CurrentModelAttributedConversionsValue", "CurrentModelAttributedConversionsValuePerCost", "EngagementRate", "Engagements", "HotelAverageLeadValueMicros", "HotelCommissionRateMicros", "HotelExpectedCommissionCost", "HotelPriceDifferencePercentage", "HotelEligibleImpressions", "HistoricalCreativeQualityScore", "HistoricalLandingPageQualityScore", "HistoricalQualityScore", "HistoricalSearchPredictedCtr", "GmailForwards", "GmailSaves", "GmailSecondaryClicks", "ImpressionsFromStoreReach", "Impressions", "InteractionRate", "Interactions", "InteractionEventTypes", "InvalidClickRate", "InvalidClicks", "MessageChats", "MessageImpressions", "MessageChatRate", "MobileFriendlyClicksPercentage", "OptimizationScoreUplift", "OptimizationScoreUrl", "OrganicClicks", "OrganicClicksPerQuery", "OrganicImpressions", "OrganicImpressionsPerQuery", "OrganicQueries", "PercentNewVisitors", "PhoneCalls", "PhoneImpressions", "PhoneThroughRate", "RelativeCtr", "SearchAbsoluteTopImpressionShare", "SearchBudgetLostAbsoluteTopImpressionShare", "SearchBudgetLostImpressionShare", "SearchBudgetLostTopImpressionShare", "SearchClickShare", "SearchExactMatchImpressionShare", "SearchImpressionShare", "SearchRankLostAbsoluteTopImpressionShare", "SearchRankLostImpressionShare", "SearchRankLostTopImpressionShare", "SearchTopImpressionShare", "SearchVolume", "SpeedScore", "AverageTargetCpaMicros", "AverageTargetRoas", "TopImpressionPercentage", "ValidAcceleratedMobilePagesClicksPercentage", "ValuePerAllConversions", "ValuePerAllConversionsByConversionDate", "ValuePerConversion", "ValuePerConversionsByConversionDate", "ValuePerCurrentModelAttributedConversion", "VideoQuartileP100Rate", "VideoQuartileP25Rate", "VideoQuartileP50Rate", "VideoQuartileP75Rate", "VideoViewRate", "VideoViews", "ViewThroughConversions", "SkAdNetworkConversions", "PublisherPurchasedClicks", "PublisherOrganicClicks", "PublisherUnknownClicks", "AllConversionsFromLocationAssetClickToCall", "AllConversionsFromLocationAssetDirections", "AllConversionsFromLocationAssetMenu", "AllConversionsFromLocationAssetOrder", "AllConversionsFromLocationAssetOtherEngagement", "AllConversionsFromLocationAssetStoreVisits", "AllConversionsFromLocationAssetWebsite", "EligibleImpressionsFromLocationAssetStoreReach", "ViewThroughConversionsFromLocationAssetClickToCall", "ViewThroughConversionsFromLocationAssetDirections", "ViewThroughConversionsFromLocationAssetMenu", "ViewThroughConversionsFromLocationAssetOrder", "ViewThroughConversionsFromLocationAssetOtherEngagement", "ViewThroughConversionsFromLocationAssetStoreVisits", "ViewThroughConversionsFromLocationAssetWebsite" }, new[]{ "AbsoluteTopImpressionPercentage", "ActiveViewCpm", "ActiveViewCtr", "ActiveViewImpressions", "ActiveViewMeasurability", "ActiveViewMeasurableCostMicros", "ActiveViewMeasurableImpressions", "ActiveViewViewability", "AllConversionsFromInteractionsRate", "AllConversionsValue", "AllNewCustomerLifetimeValue", "AllConversions", "AllConversionsValuePerCost", "AllConversionsFromClickToCall", "AllConversionsFromDirections", "AllConversionsFromInteractionsValuePerInteraction", "AllConversionsFromMenu", "AllConversionsFromOrder", "AllConversionsFromOtherEngagement", "AllConversionsFromStoreVisit", "AllConversionsFromStoreWebsite", "AuctionInsightSearchAbsoluteTopImpressionPercentage", "AuctionInsightSearchImpressionShare", "AuctionInsightSearchOutrankingShare", "AuctionInsightSearchOverlapRate", "AuctionInsightSearchPositionAboveRate", "AuctionInsightSearchTopImpressionPercentage", "AverageCost", "AverageCpc", "AverageCpe", "AverageCpm", "AverageCpv", "AveragePageViews", "AverageTimeOnSite", "BenchmarkAverageMaxCpc", "BiddableAppInstallConversions", "BiddableAppPostInstallConversions", "BenchmarkCtr", "BounceRate", "Clicks", "CombinedClicks", "CombinedClicksPerQuery", "CombinedQueries", "ContentBudgetLostImpressionShare", "ContentImpressionShare", "ConversionLastReceivedRequestDateTime", "ConversionLastConversionDate", "ContentRankLostImpressionShare", "ConversionsFromInteractionsRate", "ConversionsValue", "NewCustomerLifetimeValue", "ConversionsValuePerCost", "ConversionsFromInteractionsValuePerInteraction", "Conversions", "CostMicros", "CostPerAllConversions", "CostPerConversion", "CostPerCurrentModelAttributedConversion", "CrossDeviceConversions", "Ctr", "CurrentModelAttributedConversions", "CurrentModelAttributedConversionsFromInteractionsRate", "CurrentModelAttributedConversionsFromInteractionsValuePerInteraction", "CurrentModelAttributedConversionsValue", "CurrentModelAttributedConversionsValuePerCost", "EngagementRate", "Engagements", "HotelAverageLeadValueMicros", "HotelCommissionRateMicros", "HotelExpectedCommissionCost", "HotelPriceDifferencePercentage", "HotelEligibleImpressions", "HistoricalQualityScore", "GmailForwards", "GmailSaves", "GmailSecondaryClicks", "ImpressionsFromStoreReach", "Impressions", "InteractionRate", "Interactions", "InvalidClickRate", "InvalidClicks", "MessageChats", "MessageImpressions", "MessageChatRate", "MobileFriendlyClicksPercentage", "OptimizationScoreUplift", "OptimizationScoreUrl", "OrganicClicks", "OrganicClicksPerQuery", "OrganicImpressions", "OrganicImpressionsPerQuery", "OrganicQueries", "PercentNewVisitors", "PhoneCalls", "PhoneImpressions", "PhoneThroughRate", "RelativeCtr", "SearchAbsoluteTopImpressionShare", "SearchBudgetLostAbsoluteTopImpressionShare", "SearchBudgetLostImpressionShare", "SearchBudgetLostTopImpressionShare", "SearchClickShare", "SearchExactMatchImpressionShare", "SearchImpressionShare", "SearchRankLostAbsoluteTopImpressionShare", "SearchRankLostImpressionShare", "SearchRankLostTopImpressionShare", "SearchTopImpressionShare", "SearchVolume", "SpeedScore", "AverageTargetCpaMicros", "AverageTargetRoas", "TopImpressionPercentage", "ValidAcceleratedMobilePagesClicksPercentage", "ValuePerAllConversions", "ValuePerAllConversionsByConversionDate", "ValuePerConversion", "ValuePerConversionsByConversionDate", "ValuePerCurrentModelAttributedConversion", "VideoQuartileP100Rate", "VideoQuartileP25Rate", "VideoQuartileP50Rate", "VideoQuartileP75Rate", "VideoViewRate", "VideoViews", "ViewThroughConversions", "AllConversionsFromLocationAssetClickToCall", "AllConversionsFromLocationAssetDirections", "AllConversionsFromLocationAssetMenu", "AllConversionsFromLocationAssetOrder", "AllConversionsFromLocationAssetOtherEngagement", "AllConversionsFromLocationAssetStoreVisits", "AllConversionsFromLocationAssetWebsite", "EligibleImpressionsFromLocationAssetStoreReach", "ViewThroughConversionsFromLocationAssetClickToCall", "ViewThroughConversionsFromLocationAssetDirections", "ViewThroughConversionsFromLocationAssetMenu", "ViewThroughConversionsFromLocationAssetOrder", "ViewThroughConversionsFromLocationAssetOtherEngagement", "ViewThroughConversionsFromLocationAssetStoreVisits", "ViewThroughConversionsFromLocationAssetWebsite" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.SearchVolumeRange), global::Google.Ads.GoogleAds.V14.Common.SearchVolumeRange.Parser, new[]{ "Min", "Max" }, new[]{ "Min", "Max" }, null, null, null) })); } #endregion @@ -365,6 +373,7 @@ public Metrics(Metrics other) : this() { allConversionsFromInteractionsRate_ = other.allConversionsFromInteractionsRate_; allConversionsValue_ = other.allConversionsValue_; allConversionsValueByConversionDate_ = other.allConversionsValueByConversionDate_; + allNewCustomerLifetimeValue_ = other.allNewCustomerLifetimeValue_; allConversions_ = other.allConversions_; allConversionsByConversionDate_ = other.allConversionsByConversionDate_; allConversionsValuePerCost_ = other.allConversionsValuePerCost_; @@ -406,6 +415,7 @@ public Metrics(Metrics other) : this() { conversionsFromInteractionsRate_ = other.conversionsFromInteractionsRate_; conversionsValue_ = other.conversionsValue_; conversionsValueByConversionDate_ = other.conversionsValueByConversionDate_; + newCustomerLifetimeValue_ = other.newCustomerLifetimeValue_; conversionsValuePerCost_ = other.conversionsValuePerCost_; conversionsFromInteractionsValuePerInteraction_ = other.conversionsFromInteractionsValuePerInteraction_; conversions_ = other.conversions_; @@ -469,6 +479,7 @@ public Metrics(Metrics other) : this() { searchRankLostImpressionShare_ = other.searchRankLostImpressionShare_; searchRankLostTopImpressionShare_ = other.searchRankLostTopImpressionShare_; searchTopImpressionShare_ = other.searchTopImpressionShare_; + searchVolume_ = other.searchVolume_ != null ? other.searchVolume_.Clone() : null; speedScore_ = other.speedScore_; averageTargetCpaMicros_ = other.averageTargetCpaMicros_; averageTargetRoas_ = other.averageTargetRoas_; @@ -841,6 +852,42 @@ public double AllConversionsValueByConversionDate { } } + /// Field number for the "all_new_customer_lifetime_value" field. + public const int AllNewCustomerLifetimeValueFieldNumber = 294; + private readonly static double AllNewCustomerLifetimeValueDefaultValue = 0D; + + private double allNewCustomerLifetimeValue_; + /// + /// All of new customers' lifetime conversion value. If you have set up + /// customer acquisition goal at either account level or campaign level, this + /// will include the additional conversion value from new customers for both + /// biddable and non-biddable conversions. If your campaign has adopted the + /// customer acquisition goal and selected "bid higher for new customers", + /// these values will be included in "all_conversions_value". See + /// https://support.google.com/google-ads/answer/12080169 for more details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double AllNewCustomerLifetimeValue { + get { if ((_hasBits4 & 512) != 0) { return allNewCustomerLifetimeValue_; } else { return AllNewCustomerLifetimeValueDefaultValue; } } + set { + _hasBits4 |= 512; + allNewCustomerLifetimeValue_ = value; + } + } + /// Gets whether the "all_new_customer_lifetime_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAllNewCustomerLifetimeValue { + get { return (_hasBits4 & 512) != 0; } + } + /// Clears the value of the "all_new_customer_lifetime_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAllNewCustomerLifetimeValue() { + _hasBits4 &= ~512; + } + /// Field number for the "all_conversions" field. public const int AllConversionsFieldNumber = 193; private readonly static double AllConversionsDefaultValue = 0D; @@ -2139,6 +2186,42 @@ public double ConversionsValueByConversionDate { } } + /// Field number for the "new_customer_lifetime_value" field. + public const int NewCustomerLifetimeValueFieldNumber = 293; + private readonly static double NewCustomerLifetimeValueDefaultValue = 0D; + + private double newCustomerLifetimeValue_; + /// + /// New customers' lifetime conversion value. If you have set up + /// customer acquisition goal at either account level or campaign level, this + /// will include the additional conversion value from new customers for + /// biddable conversions. If your campaign has adopted the customer + /// acquisition goal and selected "bid higher for new customers", these values + /// will be included in "conversions_value" for optimization. See + /// https://support.google.com/google-ads/answer/12080169 for more details. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public double NewCustomerLifetimeValue { + get { if ((_hasBits4 & 256) != 0) { return newCustomerLifetimeValue_; } else { return NewCustomerLifetimeValueDefaultValue; } } + set { + _hasBits4 |= 256; + newCustomerLifetimeValue_ = value; + } + } + /// Gets whether the "new_customer_lifetime_value" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasNewCustomerLifetimeValue { + get { return (_hasBits4 & 256) != 0; } + } + /// Clears the value of the "new_customer_lifetime_value" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearNewCustomerLifetimeValue() { + _hasBits4 &= ~256; + } + /// Field number for the "conversions_value_per_cost" field. public const int ConversionsValuePerCostFieldNumber = 166; private readonly static double ConversionsValuePerCostDefaultValue = 0D; @@ -4078,6 +4161,21 @@ public void ClearSearchTopImpressionShare() { _hasBits0 &= ~32768; } + /// Field number for the "search_volume" field. + public const int SearchVolumeFieldNumber = 295; + private global::Google.Ads.GoogleAds.V14.Common.SearchVolumeRange searchVolume_; + /// + /// Search volume range for a search term insight category. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Common.SearchVolumeRange SearchVolume { + get { return searchVolume_; } + set { + searchVolume_ = value; + } + } + /// Field number for the "speed_score" field. public const int SpeedScoreFieldNumber = 147; private readonly static long SpeedScoreDefaultValue = 0L; @@ -5176,6 +5274,7 @@ public bool Equals(Metrics other) { if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AllConversionsFromInteractionsRate, other.AllConversionsFromInteractionsRate)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AllConversionsValue, other.AllConversionsValue)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AllConversionsValueByConversionDate, other.AllConversionsValueByConversionDate)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AllNewCustomerLifetimeValue, other.AllNewCustomerLifetimeValue)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AllConversions, other.AllConversions)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AllConversionsByConversionDate, other.AllConversionsByConversionDate)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AllConversionsValuePerCost, other.AllConversionsValuePerCost)) return false; @@ -5217,6 +5316,7 @@ public bool Equals(Metrics other) { if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionsFromInteractionsRate, other.ConversionsFromInteractionsRate)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionsValue, other.ConversionsValue)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionsValueByConversionDate, other.ConversionsValueByConversionDate)) return false; + if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NewCustomerLifetimeValue, other.NewCustomerLifetimeValue)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionsValuePerCost, other.ConversionsValuePerCost)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ConversionsFromInteractionsValuePerInteraction, other.ConversionsFromInteractionsValuePerInteraction)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Conversions, other.Conversions)) return false; @@ -5280,6 +5380,7 @@ public bool Equals(Metrics other) { if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SearchRankLostImpressionShare, other.SearchRankLostImpressionShare)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SearchRankLostTopImpressionShare, other.SearchRankLostTopImpressionShare)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SearchTopImpressionShare, other.SearchTopImpressionShare)) return false; + if (!object.Equals(SearchVolume, other.SearchVolume)) return false; if (SpeedScore != other.SpeedScore) return false; if (AverageTargetCpaMicros != other.AverageTargetCpaMicros) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AverageTargetRoas, other.AverageTargetRoas)) return false; @@ -5334,6 +5435,7 @@ public override int GetHashCode() { if (HasAllConversionsFromInteractionsRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AllConversionsFromInteractionsRate); if (HasAllConversionsValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AllConversionsValue); if (AllConversionsValueByConversionDate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AllConversionsValueByConversionDate); + if (HasAllNewCustomerLifetimeValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AllNewCustomerLifetimeValue); if (HasAllConversions) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AllConversions); if (AllConversionsByConversionDate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AllConversionsByConversionDate); if (HasAllConversionsValuePerCost) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AllConversionsValuePerCost); @@ -5375,6 +5477,7 @@ public override int GetHashCode() { if (HasConversionsFromInteractionsRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionsFromInteractionsRate); if (HasConversionsValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionsValue); if (ConversionsValueByConversionDate != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionsValueByConversionDate); + if (HasNewCustomerLifetimeValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NewCustomerLifetimeValue); if (HasConversionsValuePerCost) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionsValuePerCost); if (HasConversionsFromInteractionsValuePerInteraction) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConversionsFromInteractionsValuePerInteraction); if (HasConversions) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Conversions); @@ -5438,6 +5541,7 @@ public override int GetHashCode() { if (HasSearchRankLostImpressionShare) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SearchRankLostImpressionShare); if (HasSearchRankLostTopImpressionShare) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SearchRankLostTopImpressionShare); if (HasSearchTopImpressionShare) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SearchTopImpressionShare); + if (searchVolume_ != null) hash ^= SearchVolume.GetHashCode(); if (HasSpeedScore) hash ^= SpeedScore.GetHashCode(); if (HasAverageTargetCpaMicros) hash ^= AverageTargetCpaMicros.GetHashCode(); if (HasAverageTargetRoas) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AverageTargetRoas); @@ -6093,6 +6197,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(144, 18); output.WriteInt64(AverageTargetCpaMicros); } + if (HasNewCustomerLifetimeValue) { + output.WriteRawTag(169, 18); + output.WriteDouble(NewCustomerLifetimeValue); + } + if (HasAllNewCustomerLifetimeValue) { + output.WriteRawTag(177, 18); + output.WriteDouble(AllNewCustomerLifetimeValue); + } + if (searchVolume_ != null) { + output.WriteRawTag(186, 18); + output.WriteMessage(SearchVolume); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6704,6 +6820,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(144, 18); output.WriteInt64(AverageTargetCpaMicros); } + if (HasNewCustomerLifetimeValue) { + output.WriteRawTag(169, 18); + output.WriteDouble(NewCustomerLifetimeValue); + } + if (HasAllNewCustomerLifetimeValue) { + output.WriteRawTag(177, 18); + output.WriteDouble(AllNewCustomerLifetimeValue); + } + if (searchVolume_ != null) { + output.WriteRawTag(186, 18); + output.WriteMessage(SearchVolume); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6747,6 +6875,9 @@ public int CalculateSize() { if (AllConversionsValueByConversionDate != 0D) { size += 2 + 8; } + if (HasAllNewCustomerLifetimeValue) { + size += 2 + 8; + } if (HasAllConversions) { size += 2 + 8; } @@ -6870,6 +7001,9 @@ public int CalculateSize() { if (ConversionsValueByConversionDate != 0D) { size += 2 + 8; } + if (HasNewCustomerLifetimeValue) { + size += 2 + 8; + } if (HasConversionsValuePerCost) { size += 2 + 8; } @@ -7057,6 +7191,9 @@ public int CalculateSize() { if (HasSearchTopImpressionShare) { size += 2 + 8; } + if (searchVolume_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(SearchVolume); + } if (HasSpeedScore) { size += 2 + pb::CodedOutputStream.ComputeInt64Size(SpeedScore); } @@ -7210,6 +7347,9 @@ public void MergeFrom(Metrics other) { if (other.AllConversionsValueByConversionDate != 0D) { AllConversionsValueByConversionDate = other.AllConversionsValueByConversionDate; } + if (other.HasAllNewCustomerLifetimeValue) { + AllNewCustomerLifetimeValue = other.AllNewCustomerLifetimeValue; + } if (other.HasAllConversions) { AllConversions = other.AllConversions; } @@ -7333,6 +7473,9 @@ public void MergeFrom(Metrics other) { if (other.ConversionsValueByConversionDate != 0D) { ConversionsValueByConversionDate = other.ConversionsValueByConversionDate; } + if (other.HasNewCustomerLifetimeValue) { + NewCustomerLifetimeValue = other.NewCustomerLifetimeValue; + } if (other.HasConversionsValuePerCost) { ConversionsValuePerCost = other.ConversionsValuePerCost; } @@ -7520,6 +7663,12 @@ public void MergeFrom(Metrics other) { if (other.HasSearchTopImpressionShare) { SearchTopImpressionShare = other.SearchTopImpressionShare; } + if (other.searchVolume_ != null) { + if (searchVolume_ == null) { + SearchVolume = new global::Google.Ads.GoogleAds.V14.Common.SearchVolumeRange(); + } + SearchVolume.MergeFrom(other.SearchVolume); + } if (other.HasSpeedScore) { SpeedScore = other.SpeedScore; } @@ -8248,6 +8397,21 @@ public void MergeFrom(pb::CodedInputStream input) { AverageTargetCpaMicros = input.ReadInt64(); break; } + case 2345: { + NewCustomerLifetimeValue = input.ReadDouble(); + break; + } + case 2353: { + AllNewCustomerLifetimeValue = input.ReadDouble(); + break; + } + case 2362: { + if (searchVolume_ == null) { + SearchVolume = new global::Google.Ads.GoogleAds.V14.Common.SearchVolumeRange(); + } + input.ReadMessage(SearchVolume); + break; + } } } #endif @@ -8868,6 +9032,289 @@ public void MergeFrom(pb::CodedInputStream input) { AverageTargetCpaMicros = input.ReadInt64(); break; } + case 2345: { + NewCustomerLifetimeValue = input.ReadDouble(); + break; + } + case 2353: { + AllNewCustomerLifetimeValue = input.ReadDouble(); + break; + } + case 2362: { + if (searchVolume_ == null) { + SearchVolume = new global::Google.Ads.GoogleAds.V14.Common.SearchVolumeRange(); + } + input.ReadMessage(SearchVolume); + break; + } + } + } + } + #endif + + } + + /// + /// Search volume range. + /// Actual search volume falls within this range. + /// + public sealed partial class SearchVolumeRange : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchVolumeRange()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Common.MetricsReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchVolumeRange() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchVolumeRange(SearchVolumeRange other) : this() { + _hasBits0 = other._hasBits0; + min_ = other.min_; + max_ = other.max_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchVolumeRange Clone() { + return new SearchVolumeRange(this); + } + + /// Field number for the "min" field. + public const int MinFieldNumber = 1; + private readonly static long MinDefaultValue = 0L; + + private long min_; + /// + /// Lower bound of search volume. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Min { + get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } } + set { + _hasBits0 |= 1; + min_ = value; + } + } + /// Gets whether the "min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMin() { + _hasBits0 &= ~1; + } + + /// Field number for the "max" field. + public const int MaxFieldNumber = 2; + private readonly static long MaxDefaultValue = 0L; + + private long max_; + /// + /// Upper bound of search volume. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Max { + get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } } + set { + _hasBits0 |= 2; + max_ = value; + } + } + /// Gets whether the "max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMax() { + _hasBits0 &= ~2; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SearchVolumeRange); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchVolumeRange other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Min != other.Min) return false; + if (Max != other.Max) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (HasMin) hash ^= Min.GetHashCode(); + if (HasMax) hash ^= Max.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt64(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt64(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMin) { + output.WriteRawTag(8); + output.WriteInt64(Min); + } + if (HasMax) { + output.WriteRawTag(16); + output.WriteInt64(Max); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (HasMin) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Min); + } + if (HasMax) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Max); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SearchVolumeRange other) { + if (other == null) { + return; + } + if (other.HasMin) { + Min = other.Min; + } + if (other.HasMax) { + Max = other.Max; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Min = input.ReadInt64(); + break; + } + case 16: { + Max = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Min = input.ReadInt64(); + break; + } + case 16: { + Max = input.ReadInt64(); + break; + } } } } diff --git a/Google.Ads.GoogleAds/src/V14/OfflineConversionDiagnosticStatusEnum.g.cs b/Google.Ads.GoogleAds/src/V14/OfflineConversionDiagnosticStatusEnum.g.cs index 612b60923..cfb037e34 100755 --- a/Google.Ads.GoogleAds/src/V14/OfflineConversionDiagnosticStatusEnum.g.cs +++ b/Google.Ads.GoogleAds/src/V14/OfflineConversionDiagnosticStatusEnum.g.cs @@ -206,7 +206,7 @@ public void MergeFrom(pb::CodedInputStream input) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Next id: 8 + /// Possible statuses of the offline ingestion setup. /// public enum OfflineConversionDiagnosticStatus { /// diff --git a/Google.Ads.GoogleAds/src/V14/OfflineEventUploadClientEnum.g.cs b/Google.Ads.GoogleAds/src/V14/OfflineEventUploadClientEnum.g.cs index 783614ce0..871efb0ae 100755 --- a/Google.Ads.GoogleAds/src/V14/OfflineEventUploadClientEnum.g.cs +++ b/Google.Ads.GoogleAds/src/V14/OfflineEventUploadClientEnum.g.cs @@ -205,7 +205,7 @@ public void MergeFrom(pb::CodedInputStream input) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Next id: 5 + /// Type of client. /// public enum OfflineEventUploadClient { /// diff --git a/Google.Ads.GoogleAds/src/V14/ReachPlanService.g.cs b/Google.Ads.GoogleAds/src/V14/ReachPlanService.g.cs index 509b9012f..d52ecb896 100755 --- a/Google.Ads.GoogleAds/src/V14/ReachPlanService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/ReachPlanService.g.cs @@ -97,92 +97,93 @@ static ReachPlanServiceReflection() { "bG9jYXRpb25faWQihgEKEENhbXBhaWduRHVyYXRpb24SHQoQZHVyYXRpb25f", "aW5fZGF5cxgCIAEoBUgAiAEBEj4KCmRhdGVfcmFuZ2UYAyABKAsyKi5nb29n", "bGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkRhdGVSYW5nZUITChFfZHVy", - "YXRpb25faW5fZGF5cyLfAQoOUGxhbm5lZFByb2R1Y3QSIwoWcGxhbm5hYmxl", - "X3Byb2R1Y3RfY29kZRgDIAEoCUgAiAEBEhoKDWJ1ZGdldF9taWNyb3MYBCAB", - "KANIAYgBARJfChphZHZhbmNlZF9wcm9kdWN0X3RhcmdldGluZxgFIAEoCzI7", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5BZHZhbmNlZFBy", - "b2R1Y3RUYXJnZXRpbmdCGQoXX3BsYW5uYWJsZV9wcm9kdWN0X2NvZGVCEAoO", - "X2J1ZGdldF9taWNyb3MiwwEKHUdlbmVyYXRlUmVhY2hGb3JlY2FzdFJlc3Bv", - "bnNlEl4KGm9uX3RhcmdldF9hdWRpZW5jZV9tZXRyaWNzGAEgASgLMjouZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLk9uVGFyZ2V0QXVkaWVu", - "Y2VNZXRyaWNzEkIKC3JlYWNoX2N1cnZlGAIgASgLMi0uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnNlcnZpY2VzLlJlYWNoQ3VydmUiVwoKUmVhY2hDdXJ2", - "ZRJJCg9yZWFjaF9mb3JlY2FzdHMYASADKAsyMC5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuc2VydmljZXMuUmVhY2hGb3JlY2FzdCLMAQoNUmVhY2hGb3Jl", - "Y2FzdBITCgtjb3N0X21pY3JvcxgFIAEoAxI9Cghmb3JlY2FzdBgCIAEoCzIr", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5Gb3JlY2FzdBJn", - "Ch9wbGFubmVkX3Byb2R1Y3RfcmVhY2hfZm9yZWNhc3RzGAQgAygLMj4uZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLlBsYW5uZWRQcm9kdWN0", - "UmVhY2hGb3JlY2FzdCKGBQoIRm9yZWNhc3QSHAoPb25fdGFyZ2V0X3JlYWNo", - "GAUgASgDSACIAQESGAoLdG90YWxfcmVhY2gYBiABKANIAYgBARIiChVvbl90", - "YXJnZXRfaW1wcmVzc2lvbnMYByABKANIAogBARIeChF0b3RhbF9pbXByZXNz", - "aW9ucxgIIAEoA0gDiAEBEiEKFHZpZXdhYmxlX2ltcHJlc3Npb25zGAkgASgD", - "SASIAQESZgoeZWZmZWN0aXZlX2ZyZXF1ZW5jeV9icmVha2Rvd25zGAogAygL", - "Mj4uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkVmZmVjdGl2", - "ZUZyZXF1ZW5jeUJyZWFrZG93bhIjChZvbl90YXJnZXRfY292aWV3X3JlYWNo", - "GAsgASgDSAWIAQESHwoSdG90YWxfY292aWV3X3JlYWNoGAwgASgDSAaIAQES", - "KQocb25fdGFyZ2V0X2Nvdmlld19pbXByZXNzaW9ucxgNIAEoA0gHiAEBEiUK", - "GHRvdGFsX2Nvdmlld19pbXByZXNzaW9ucxgOIAEoA0gIiAEBQhIKEF9vbl90", - "YXJnZXRfcmVhY2hCDgoMX3RvdGFsX3JlYWNoQhgKFl9vbl90YXJnZXRfaW1w", - "cmVzc2lvbnNCFAoSX3RvdGFsX2ltcHJlc3Npb25zQhcKFV92aWV3YWJsZV9p", - "bXByZXNzaW9uc0IZChdfb25fdGFyZ2V0X2Nvdmlld19yZWFjaEIVChNfdG90", - "YWxfY292aWV3X3JlYWNoQh8KHV9vbl90YXJnZXRfY292aWV3X2ltcHJlc3Np", - "b25zQhsKGV90b3RhbF9jb3ZpZXdfaW1wcmVzc2lvbnMirwEKG1BsYW5uZWRQ", - "cm9kdWN0UmVhY2hGb3JlY2FzdBIeChZwbGFubmFibGVfcHJvZHVjdF9jb2Rl", - "GAEgASgJEhMKC2Nvc3RfbWljcm9zGAIgASgDElsKGHBsYW5uZWRfcHJvZHVj", - "dF9mb3JlY2FzdBgDIAEoCzI5Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5z", - "ZXJ2aWNlcy5QbGFubmVkUHJvZHVjdEZvcmVjYXN0IsQDChZQbGFubmVkUHJv", - "ZHVjdEZvcmVjYXN0EhcKD29uX3RhcmdldF9yZWFjaBgBIAEoAxITCgt0b3Rh", - "bF9yZWFjaBgCIAEoAxIdChVvbl90YXJnZXRfaW1wcmVzc2lvbnMYAyABKAMS", - "GQoRdG90YWxfaW1wcmVzc2lvbnMYBCABKAMSIQoUdmlld2FibGVfaW1wcmVz", - "c2lvbnMYBSABKANIAIgBARIjChZvbl90YXJnZXRfY292aWV3X3JlYWNoGAYg", - "ASgDSAGIAQESHwoSdG90YWxfY292aWV3X3JlYWNoGAcgASgDSAKIAQESKQoc", - "b25fdGFyZ2V0X2Nvdmlld19pbXByZXNzaW9ucxgIIAEoA0gDiAEBEiUKGHRv", - "dGFsX2Nvdmlld19pbXByZXNzaW9ucxgJIAEoA0gEiAEBQhcKFV92aWV3YWJs", - "ZV9pbXByZXNzaW9uc0IZChdfb25fdGFyZ2V0X2Nvdmlld19yZWFjaEIVChNf", - "dG90YWxfY292aWV3X3JlYWNoQh8KHV9vbl90YXJnZXRfY292aWV3X2ltcHJl", - "c3Npb25zQhsKGV90b3RhbF9jb3ZpZXdfaW1wcmVzc2lvbnMikwEKF09uVGFy", - "Z2V0QXVkaWVuY2VNZXRyaWNzEiIKFXlvdXR1YmVfYXVkaWVuY2Vfc2l6ZRgD", - "IAEoA0gAiAEBEiEKFGNlbnN1c19hdWRpZW5jZV9zaXplGAQgASgDSAGIAQFC", - "GAoWX3lvdXR1YmVfYXVkaWVuY2Vfc2l6ZUIXChVfY2Vuc3VzX2F1ZGllbmNl", - "X3NpemUi/AEKG0VmZmVjdGl2ZUZyZXF1ZW5jeUJyZWFrZG93bhIbChNlZmZl", - "Y3RpdmVfZnJlcXVlbmN5GAEgASgFEhcKD29uX3RhcmdldF9yZWFjaBgCIAEo", - "AxITCgt0b3RhbF9yZWFjaBgDIAEoAxIjChZlZmZlY3RpdmVfY292aWV3X3Jl", - "YWNoGAQgASgDSACIAQESLQogb25fdGFyZ2V0X2VmZmVjdGl2ZV9jb3ZpZXdf", - "cmVhY2gYBSABKANIAYgBAUIZChdfZWZmZWN0aXZlX2Nvdmlld19yZWFjaEIj", - "CiFfb25fdGFyZ2V0X2VmZmVjdGl2ZV9jb3ZpZXdfcmVhY2giLwoVRm9yZWNh", - "c3RNZXRyaWNPcHRpb25zEhYKDmluY2x1ZGVfY292aWV3GAEgASgIIl0KEUF1", - "ZGllbmNlVGFyZ2V0aW5nEkgKDXVzZXJfaW50ZXJlc3QYASADKAsyMS5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLlVzZXJJbnRlcmVzdEluZm8i", - "jQEKGEFkdmFuY2VkUHJvZHVjdFRhcmdldGluZxJbChd5b3V0dWJlX3NlbGVj", - "dF9zZXR0aW5ncxgBIAEoCzI4Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5z", - "ZXJ2aWNlcy5Zb3VUdWJlU2VsZWN0U2V0dGluZ3NIAEIUChJhZHZhbmNlZF90", - "YXJnZXRpbmciKgoVWW91VHViZVNlbGVjdFNldHRpbmdzEhEKCWxpbmV1cF9p", - "ZBgBIAEoAyI9ChNZb3VUdWJlU2VsZWN0TGluZVVwEhEKCWxpbmV1cF9pZBgB", - "IAEoAxITCgtsaW5ldXBfbmFtZRgCIAEoCTKMBgoQUmVhY2hQbGFuU2Vydmlj", - "ZRLFAQoWTGlzdFBsYW5uYWJsZUxvY2F0aW9ucxJALmdvb2dsZS5hZHMuZ29v", - "Z2xlYWRzLnYxNC5zZXJ2aWNlcy5MaXN0UGxhbm5hYmxlTG9jYXRpb25zUmVx", - "dWVzdBpBLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5MaXN0", - "UGxhbm5hYmxlTG9jYXRpb25zUmVzcG9uc2UiJoLT5JMCICIbL3YxNDpsaXN0", - "UGxhbm5hYmxlTG9jYXRpb25zOgEqEtkBChVMaXN0UGxhbm5hYmxlUHJvZHVj", - "dHMSPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTGlzdFBs", - "YW5uYWJsZVByb2R1Y3RzUmVxdWVzdBpALmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5zZXJ2aWNlcy5MaXN0UGxhbm5hYmxlUHJvZHVjdHNSZXNwb25zZSI9", - "gtPkkwIfIhovdjE0Omxpc3RQbGFubmFibGVQcm9kdWN0czoBKtpBFXBsYW5u", - "YWJsZV9sb2NhdGlvbl9pZBKMAgoVR2VuZXJhdGVSZWFjaEZvcmVjYXN0Ej8u", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLkdlbmVyYXRlUmVh", - "Y2hGb3JlY2FzdFJlcXVlc3QaQC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", - "c2VydmljZXMuR2VuZXJhdGVSZWFjaEZvcmVjYXN0UmVzcG9uc2UicILT5JMC", - "OSI0L3YxNC9jdXN0b21lcnMve2N1c3RvbWVyX2lkPSp9OmdlbmVyYXRlUmVh", - "Y2hGb3JlY2FzdDoBKtpBLmN1c3RvbWVyX2lkLGNhbXBhaWduX2R1cmF0aW9u", - "LHBsYW5uZWRfcHJvZHVjdHMaRcpBGGdvb2dsZWFkcy5nb29nbGVhcGlzLmNv", - "bdJBJ2h0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvYWR3b3Jkc0KB", - "AgolY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlc0IVUmVh", - "Y2hQbGFuU2VydmljZVByb3RvUAFaSWdvb2dsZS5nb2xhbmcub3JnL2dlbnBy", - "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvc2VydmljZXM7c2Vy", - "dmljZXOiAgNHQUGqAiFHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuU2Vydmlj", - "ZXPKAiFHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcU2VydmljZXPqAiVHb29n", - "bGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OlNlcnZpY2VzYgZwcm90bzM=")); + "YXRpb25faW5fZGF5cyLpAQoOUGxhbm5lZFByb2R1Y3QSKAoWcGxhbm5hYmxl", + "X3Byb2R1Y3RfY29kZRgDIAEoCUID4EECSACIAQESHwoNYnVkZ2V0X21pY3Jv", + "cxgEIAEoA0ID4EECSAGIAQESXwoaYWR2YW5jZWRfcHJvZHVjdF90YXJnZXRp", + "bmcYBSABKAsyOy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "QWR2YW5jZWRQcm9kdWN0VGFyZ2V0aW5nQhkKF19wbGFubmFibGVfcHJvZHVj", + "dF9jb2RlQhAKDl9idWRnZXRfbWljcm9zIsMBCh1HZW5lcmF0ZVJlYWNoRm9y", + "ZWNhc3RSZXNwb25zZRJeChpvbl90YXJnZXRfYXVkaWVuY2VfbWV0cmljcxgB", + "IAEoCzI6Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5PblRh", + "cmdldEF1ZGllbmNlTWV0cmljcxJCCgtyZWFjaF9jdXJ2ZRgCIAEoCzItLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5SZWFjaEN1cnZlIlcK", + "ClJlYWNoQ3VydmUSSQoPcmVhY2hfZm9yZWNhc3RzGAEgAygLMjAuZ29vZ2xl", + "LmFkcy5nb29nbGVhZHMudjE0LnNlcnZpY2VzLlJlYWNoRm9yZWNhc3QizAEK", + "DVJlYWNoRm9yZWNhc3QSEwoLY29zdF9taWNyb3MYBSABKAMSPQoIZm9yZWNh", + "c3QYAiABKAsyKy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMu", + "Rm9yZWNhc3QSZwofcGxhbm5lZF9wcm9kdWN0X3JlYWNoX2ZvcmVjYXN0cxgE", + "IAMoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5QbGFu", + "bmVkUHJvZHVjdFJlYWNoRm9yZWNhc3QihgUKCEZvcmVjYXN0EhwKD29uX3Rh", + "cmdldF9yZWFjaBgFIAEoA0gAiAEBEhgKC3RvdGFsX3JlYWNoGAYgASgDSAGI", + "AQESIgoVb25fdGFyZ2V0X2ltcHJlc3Npb25zGAcgASgDSAKIAQESHgoRdG90", + "YWxfaW1wcmVzc2lvbnMYCCABKANIA4gBARIhChR2aWV3YWJsZV9pbXByZXNz", + "aW9ucxgJIAEoA0gEiAEBEmYKHmVmZmVjdGl2ZV9mcmVxdWVuY3lfYnJlYWtk", + "b3ducxgKIAMoCzI+Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNl", + "cy5FZmZlY3RpdmVGcmVxdWVuY3lCcmVha2Rvd24SIwoWb25fdGFyZ2V0X2Nv", + "dmlld19yZWFjaBgLIAEoA0gFiAEBEh8KEnRvdGFsX2Nvdmlld19yZWFjaBgM", + "IAEoA0gGiAEBEikKHG9uX3RhcmdldF9jb3ZpZXdfaW1wcmVzc2lvbnMYDSAB", + "KANIB4gBARIlChh0b3RhbF9jb3ZpZXdfaW1wcmVzc2lvbnMYDiABKANICIgB", + "AUISChBfb25fdGFyZ2V0X3JlYWNoQg4KDF90b3RhbF9yZWFjaEIYChZfb25f", + "dGFyZ2V0X2ltcHJlc3Npb25zQhQKEl90b3RhbF9pbXByZXNzaW9uc0IXChVf", + "dmlld2FibGVfaW1wcmVzc2lvbnNCGQoXX29uX3RhcmdldF9jb3ZpZXdfcmVh", + "Y2hCFQoTX3RvdGFsX2Nvdmlld19yZWFjaEIfCh1fb25fdGFyZ2V0X2Nvdmll", + "d19pbXByZXNzaW9uc0IbChlfdG90YWxfY292aWV3X2ltcHJlc3Npb25zIq8B", + "ChtQbGFubmVkUHJvZHVjdFJlYWNoRm9yZWNhc3QSHgoWcGxhbm5hYmxlX3By", + "b2R1Y3RfY29kZRgBIAEoCRITCgtjb3N0X21pY3JvcxgCIAEoAxJbChhwbGFu", + "bmVkX3Byb2R1Y3RfZm9yZWNhc3QYAyABKAsyOS5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuc2VydmljZXMuUGxhbm5lZFByb2R1Y3RGb3JlY2FzdCLEAwoW", + "UGxhbm5lZFByb2R1Y3RGb3JlY2FzdBIXCg9vbl90YXJnZXRfcmVhY2gYASAB", + "KAMSEwoLdG90YWxfcmVhY2gYAiABKAMSHQoVb25fdGFyZ2V0X2ltcHJlc3Np", + "b25zGAMgASgDEhkKEXRvdGFsX2ltcHJlc3Npb25zGAQgASgDEiEKFHZpZXdh", + "YmxlX2ltcHJlc3Npb25zGAUgASgDSACIAQESIwoWb25fdGFyZ2V0X2Nvdmll", + "d19yZWFjaBgGIAEoA0gBiAEBEh8KEnRvdGFsX2Nvdmlld19yZWFjaBgHIAEo", + "A0gCiAEBEikKHG9uX3RhcmdldF9jb3ZpZXdfaW1wcmVzc2lvbnMYCCABKANI", + "A4gBARIlChh0b3RhbF9jb3ZpZXdfaW1wcmVzc2lvbnMYCSABKANIBIgBAUIX", + "ChVfdmlld2FibGVfaW1wcmVzc2lvbnNCGQoXX29uX3RhcmdldF9jb3ZpZXdf", + "cmVhY2hCFQoTX3RvdGFsX2Nvdmlld19yZWFjaEIfCh1fb25fdGFyZ2V0X2Nv", + "dmlld19pbXByZXNzaW9uc0IbChlfdG90YWxfY292aWV3X2ltcHJlc3Npb25z", + "IpMBChdPblRhcmdldEF1ZGllbmNlTWV0cmljcxIiChV5b3V0dWJlX2F1ZGll", + "bmNlX3NpemUYAyABKANIAIgBARIhChRjZW5zdXNfYXVkaWVuY2Vfc2l6ZRgE", + "IAEoA0gBiAEBQhgKFl95b3V0dWJlX2F1ZGllbmNlX3NpemVCFwoVX2NlbnN1", + "c19hdWRpZW5jZV9zaXplIvwBChtFZmZlY3RpdmVGcmVxdWVuY3lCcmVha2Rv", + "d24SGwoTZWZmZWN0aXZlX2ZyZXF1ZW5jeRgBIAEoBRIXCg9vbl90YXJnZXRf", + "cmVhY2gYAiABKAMSEwoLdG90YWxfcmVhY2gYAyABKAMSIwoWZWZmZWN0aXZl", + "X2Nvdmlld19yZWFjaBgEIAEoA0gAiAEBEi0KIG9uX3RhcmdldF9lZmZlY3Rp", + "dmVfY292aWV3X3JlYWNoGAUgASgDSAGIAQFCGQoXX2VmZmVjdGl2ZV9jb3Zp", + "ZXdfcmVhY2hCIwohX29uX3RhcmdldF9lZmZlY3RpdmVfY292aWV3X3JlYWNo", + "Ii8KFUZvcmVjYXN0TWV0cmljT3B0aW9ucxIWCg5pbmNsdWRlX2NvdmlldxgB", + "IAEoCCJdChFBdWRpZW5jZVRhcmdldGluZxJICg11c2VyX2ludGVyZXN0GAEg", + "AygLMjEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5Vc2VySW50", + "ZXJlc3RJbmZvIo0BChhBZHZhbmNlZFByb2R1Y3RUYXJnZXRpbmcSWwoXeW91", + "dHViZV9zZWxlY3Rfc2V0dGluZ3MYASABKAsyOC5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuc2VydmljZXMuWW91VHViZVNlbGVjdFNldHRpbmdzSABCFAoS", + "YWR2YW5jZWRfdGFyZ2V0aW5nIioKFVlvdVR1YmVTZWxlY3RTZXR0aW5ncxIR", + "CglsaW5ldXBfaWQYASABKAMiPQoTWW91VHViZVNlbGVjdExpbmVVcBIRCgls", + "aW5ldXBfaWQYASABKAMSEwoLbGluZXVwX25hbWUYAiABKAkyjAYKEFJlYWNo", + "UGxhblNlcnZpY2USxQEKFkxpc3RQbGFubmFibGVMb2NhdGlvbnMSQC5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuc2VydmljZXMuTGlzdFBsYW5uYWJsZUxv", + "Y2F0aW9uc1JlcXVlc3QaQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vy", + "dmljZXMuTGlzdFBsYW5uYWJsZUxvY2F0aW9uc1Jlc3BvbnNlIiaC0+STAiAi", + "Gy92MTQ6bGlzdFBsYW5uYWJsZUxvY2F0aW9uczoBKhLZAQoVTGlzdFBsYW5u", + "YWJsZVByb2R1Y3RzEj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnNlcnZp", + "Y2VzLkxpc3RQbGFubmFibGVQcm9kdWN0c1JlcXVlc3QaQC5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuc2VydmljZXMuTGlzdFBsYW5uYWJsZVByb2R1Y3Rz", + "UmVzcG9uc2UiPYLT5JMCHyIaL3YxNDpsaXN0UGxhbm5hYmxlUHJvZHVjdHM6", + "ASraQRVwbGFubmFibGVfbG9jYXRpb25faWQSjAIKFUdlbmVyYXRlUmVhY2hG", + "b3JlY2FzdBI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5zZXJ2aWNlcy5H", + "ZW5lcmF0ZVJlYWNoRm9yZWNhc3RSZXF1ZXN0GkAuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LnNlcnZpY2VzLkdlbmVyYXRlUmVhY2hGb3JlY2FzdFJlc3Bv", + "bnNlInCC0+STAjkiNC92MTQvY3VzdG9tZXJzL3tjdXN0b21lcl9pZD0qfTpn", + "ZW5lcmF0ZVJlYWNoRm9yZWNhc3Q6ASraQS5jdXN0b21lcl9pZCxjYW1wYWln", + "bl9kdXJhdGlvbixwbGFubmVkX3Byb2R1Y3RzGkXKQRhnb29nbGVhZHMuZ29v", + "Z2xlYXBpcy5jb23SQSdodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRo", + "L2Fkd29yZHNCgQIKJWNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuc2Vy", + "dmljZXNCFVJlYWNoUGxhblNlcnZpY2VQcm90b1ABWklnb29nbGUuZ29sYW5n", + "Lm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L3Nl", + "cnZpY2VzO3NlcnZpY2VzogIDR0FBqgIhR29vZ2xlLkFkcy5Hb29nbGVBZHMu", + "VjE0LlNlcnZpY2VzygIhR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XFNlcnZp", + "Y2Vz6gIlR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpTZXJ2aWNlc2IG", + "cHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Common.DatesReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.FrequencyCapTimeUnitReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ReachPlanAgeRangeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ReachPlanNetworkReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.ClientReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -682,7 +683,7 @@ public void ClearName() { /// If present, will always be a GeoTargetConstant ID. Additional information /// such as country name is provided by /// [ReachPlanService.ListPlannableLocations][google.ads.googleads.v14.services.ReachPlanService.ListPlannableLocations] - /// or [GoogleAdsService.Search/SearchStream][]. + /// or GoogleAdsService.Search/SearchStream. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -742,7 +743,7 @@ public void ClearCountryCode() { private string locationType_; /// /// The location's type. Location types correspond to target_type returned by - /// searching location type in [GoogleAdsService.Search/SearchStream][]. + /// searching location type in GoogleAdsService.Search/SearchStream. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] diff --git a/Google.Ads.GoogleAds/src/V14/Recommendation.g.cs b/Google.Ads.GoogleAds/src/V14/Recommendation.g.cs index e46b44aec..52ee828a1 100755 --- a/Google.Ads.GoogleAds/src/V14/Recommendation.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Recommendation.g.cs @@ -38,7 +38,7 @@ static RecommendationReflection() { "Z2xlYWRzL3YxNC9yZXNvdXJjZXMvYWQucHJvdG8aLmdvb2dsZS9hZHMvZ29v", "Z2xlYWRzL3YxNC9yZXNvdXJjZXMvYXNzZXQucHJvdG8aH2dvb2dsZS9hcGkv", "ZmllbGRfYmVoYXZpb3IucHJvdG8aGWdvb2dsZS9hcGkvcmVzb3VyY2UucHJv", - "dG8imGsKDlJlY29tbWVuZGF0aW9uEkYKDXJlc291cmNlX25hbWUYASABKAlC", + "dG8im3IKDlJlY29tbWVuZGF0aW9uEkYKDXJlc291cmNlX25hbWUYASABKAlC", "L+BBBfpBKQonZ29vZ2xlYWRzLmdvb2dsZWFwaXMuY29tL1JlY29tbWVuZGF0", "aW9uElwKBHR5cGUYAiABKA4ySS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQu", "ZW51bXMuUmVjb21tZW5kYXRpb25UeXBlRW51bS5SZWNvbW1lbmRhdGlvblR5", @@ -184,180 +184,200 @@ static RecommendationReflection() { "c2VUYXJnZXRDcGFSZWNvbW1lbmRhdGlvbkID4EEDSAASgQEKIGxvd2VyX3Rh", "cmdldF9yb2FzX3JlY29tbWVuZGF0aW9uGDggASgLMlAuZ29vZ2xlLmFkcy5n", "b29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1lbmRhdGlvbi5Mb3dlclRh", - "cmdldFJvYXNSZWNvbW1lbmRhdGlvbkID4EEDSAAaTQoMTWVyY2hhbnRJbmZv", - "Eg8KAmlkGAEgASgDQgPgQQMSEQoEbmFtZRgCIAEoCUID4EEDEhkKDG11bHRp", - "X2NsaWVudBgDIAEoCEID4EEDGuUBChRSZWNvbW1lbmRhdGlvbkltcGFjdBJj", - "CgxiYXNlX21ldHJpY3MYASABKAsySC5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLlJlY29tbWVuZGF0aW9uTWV0", - "cmljc0ID4EEDEmgKEXBvdGVudGlhbF9tZXRyaWNzGAIgASgLMkguZ29vZ2xl", - "LmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1lbmRhdGlvbi5S", - "ZWNvbW1lbmRhdGlvbk1ldHJpY3NCA+BBAxr4AQoVUmVjb21tZW5kYXRpb25N", - "ZXRyaWNzEh0KC2ltcHJlc3Npb25zGAYgASgBQgPgQQNIAIgBARIYCgZjbGlj", - "a3MYByABKAFCA+BBA0gBiAEBEh0KC2Nvc3RfbWljcm9zGAggASgDQgPgQQNI", - "AogBARIdCgtjb252ZXJzaW9ucxgJIAEoAUID4EEDSAOIAQESHQoLdmlkZW9f", - "dmlld3MYCiABKAFCA+BBA0gEiAEBQg4KDF9pbXByZXNzaW9uc0IJCgdfY2xp", - "Y2tzQg4KDF9jb3N0X21pY3Jvc0IOCgxfY29udmVyc2lvbnNCDgoMX3ZpZGVv", - "X3ZpZXdzGqAEChxDYW1wYWlnbkJ1ZGdldFJlY29tbWVuZGF0aW9uEi4KHGN1", - "cnJlbnRfYnVkZ2V0X2Ftb3VudF9taWNyb3MYByABKANCA+BBA0gAiAEBEjIK", - "IHJlY29tbWVuZGVkX2J1ZGdldF9hbW91bnRfbWljcm9zGAggASgDQgPgQQNI", - "AYgBARKPAQoOYnVkZ2V0X29wdGlvbnMYAyADKAsyci5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLkNhbXBhaWdu", - "QnVkZ2V0UmVjb21tZW5kYXRpb24uQ2FtcGFpZ25CdWRnZXRSZWNvbW1lbmRh", - "dGlvbk9wdGlvbkID4EEDGsMBCiJDYW1wYWlnbkJ1ZGdldFJlY29tbWVuZGF0", - "aW9uT3B0aW9uEiYKFGJ1ZGdldF9hbW91bnRfbWljcm9zGAMgASgDQgPgQQNI", - "AIgBARJcCgZpbXBhY3QYAiABKAsyRy5nb29nbGUuYWRzLmdvb2dsZWFkcy52", - "MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLlJlY29tbWVuZGF0aW9uSW1w", - "YWN0QgPgQQNCFwoVX2J1ZGdldF9hbW91bnRfbWljcm9zQh8KHV9jdXJyZW50", - "X2J1ZGdldF9hbW91bnRfbWljcm9zQiMKIV9yZWNvbW1lbmRlZF9idWRnZXRf", - "YW1vdW50X21pY3JvcxqoAQoVS2V5d29yZFJlY29tbWVuZGF0aW9uEkIKB2tl", - "eXdvcmQYASABKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9u", - "LktleXdvcmRJbmZvQgPgQQMSLAoacmVjb21tZW5kZWRfY3BjX2JpZF9taWNy", - "b3MYAyABKANCA+BBA0gAiAEBQh0KG19yZWNvbW1lbmRlZF9jcGNfYmlkX21p", - "Y3Jvcxq5AQoUVGV4dEFkUmVjb21tZW5kYXRpb24SNwoCYWQYASABKAsyJi5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFkQgPgQQMSHwoN", - "Y3JlYXRpb25fZGF0ZRgEIAEoCUID4EEDSACIAQESIQoPYXV0b19hcHBseV9k", - "YXRlGAUgASgJQgPgQQNIAYgBAUIQCg5fY3JlYXRpb25fZGF0ZUISChBfYXV0", - "b19hcHBseV9kYXRlGpsFChxUYXJnZXRDcGFPcHRJblJlY29tbWVuZGF0aW9u", - "EogBCgdvcHRpb25zGAEgAygLMnIuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LnJlc291cmNlcy5SZWNvbW1lbmRhdGlvbi5UYXJnZXRDcGFPcHRJblJlY29t", - "bWVuZGF0aW9uLlRhcmdldENwYU9wdEluUmVjb21tZW5kYXRpb25PcHRpb25C", - "A+BBAxIvCh1yZWNvbW1lbmRlZF90YXJnZXRfY3BhX21pY3JvcxgDIAEoA0ID", - "4EEDSACIAQEanAMKIlRhcmdldENwYU9wdEluUmVjb21tZW5kYXRpb25PcHRp", - "b24SeAoEZ29hbBgBIAEoDjJlLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", - "bnVtcy5UYXJnZXRDcGFPcHRJblJlY29tbWVuZGF0aW9uR29hbEVudW0uVGFy", - "Z2V0Q3BhT3B0SW5SZWNvbW1lbmRhdGlvbkdvYWxCA+BBAxIjChF0YXJnZXRf", - "Y3BhX21pY3JvcxgFIAEoA0ID4EEDSACIAQESOAomcmVxdWlyZWRfY2FtcGFp", - "Z25fYnVkZ2V0X2Ftb3VudF9taWNyb3MYBiABKANCA+BBA0gBiAEBElwKBmlt", - "cGFjdBgEIAEoCzJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJj", - "ZXMuUmVjb21tZW5kYXRpb24uUmVjb21tZW5kYXRpb25JbXBhY3RCA+BBA0IU", - "ChJfdGFyZ2V0X2NwYV9taWNyb3NCKQonX3JlcXVpcmVkX2NhbXBhaWduX2J1", - "ZGdldF9hbW91bnRfbWljcm9zQiAKHl9yZWNvbW1lbmRlZF90YXJnZXRfY3Bh", - "X21pY3JvcxqBAQomTWF4aW1pemVDb252ZXJzaW9uc09wdEluUmVjb21tZW5k", - "YXRpb24SMgogcmVjb21tZW5kZWRfYnVkZ2V0X2Ftb3VudF9taWNyb3MYAiAB", - "KANCA+BBA0gAiAEBQiMKIV9yZWNvbW1lbmRlZF9idWRnZXRfYW1vdW50X21p", - "Y3JvcxogCh5FbmhhbmNlZENwY09wdEluUmVjb21tZW5kYXRpb24aIwohU2Vh", - "cmNoUGFydG5lcnNPcHRJblJlY29tbWVuZGF0aW9uGnwKIU1heGltaXplQ2xp", - "Y2tzT3B0SW5SZWNvbW1lbmRhdGlvbhIyCiByZWNvbW1lbmRlZF9idWRnZXRf", - "YW1vdW50X21pY3JvcxgCIAEoA0ID4EEDSACIAQFCIwohX3JlY29tbWVuZGVk", - "X2J1ZGdldF9hbW91bnRfbWljcm9zGiIKIE9wdGltaXplQWRSb3RhdGlvblJl", - "Y29tbWVuZGF0aW9uGtYBChpDYWxsb3V0QXNzZXRSZWNvbW1lbmRhdGlvbhJb", - "CiNyZWNvbW1lbmRlZF9jYW1wYWlnbl9jYWxsb3V0X2Fzc2V0cxgBIAMoCzIp", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQXNzZXRCA+BB", - "AxJbCiNyZWNvbW1lbmRlZF9jdXN0b21lcl9jYWxsb3V0X2Fzc2V0cxgCIAMo", - "CzIpLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQXNzZXRC", - "A+BBAxrZAQobU2l0ZWxpbmtBc3NldFJlY29tbWVuZGF0aW9uElwKJHJlY29t", - "bWVuZGVkX2NhbXBhaWduX3NpdGVsaW5rX2Fzc2V0cxgBIAMoCzIpLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQXNzZXRCA+BBAxJcCiRy", - "ZWNvbW1lbmRlZF9jdXN0b21lcl9zaXRlbGlua19hc3NldHMYAiADKAsyKS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLkFzc2V0QgPgQQMa", - "GQoXQ2FsbEFzc2V0UmVjb21tZW5kYXRpb24a0AEKHktleXdvcmRNYXRjaFR5", - "cGVSZWNvbW1lbmRhdGlvbhJCCgdrZXl3b3JkGAEgASgLMiwuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LmNvbW1vbi5LZXl3b3JkSW5mb0ID4EEDEmoKFnJl", - "Y29tbWVuZGVkX21hdGNoX3R5cGUYAiABKA4yRS5nb29nbGUuYWRzLmdvb2ds", - "ZWFkcy52MTQuZW51bXMuS2V5d29yZE1hdGNoVHlwZUVudW0uS2V5d29yZE1h", - "dGNoVHlwZUID4EEDGtoBCh5Nb3ZlVW51c2VkQnVkZ2V0UmVjb21tZW5kYXRp", - "b24SKAoWZXhjZXNzX2NhbXBhaWduX2J1ZGdldBgDIAEoCUID4EEDSACIAQES", - "cwoVYnVkZ2V0X3JlY29tbWVuZGF0aW9uGAIgASgLMk8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1lbmRhdGlvbi5DYW1wYWln", - "bkJ1ZGdldFJlY29tbWVuZGF0aW9uQgPgQQNCGQoXX2V4Y2Vzc19jYW1wYWln", - "bl9idWRnZXQaywEKHVRhcmdldFJvYXNPcHRJblJlY29tbWVuZGF0aW9uEikK", - "F3JlY29tbWVuZGVkX3RhcmdldF9yb2FzGAEgASgBQgPgQQNIAIgBARI4CiZy", - "ZXF1aXJlZF9jYW1wYWlnbl9idWRnZXRfYW1vdW50X21pY3JvcxgCIAEoA0ID", - "4EEDSAGIAQFCGgoYX3JlY29tbWVuZGVkX3RhcmdldF9yb2FzQikKJ19yZXF1", - "aXJlZF9jYW1wYWlnbl9idWRnZXRfYW1vdW50X21pY3JvcxqxAQolUmVzcG9u", - "c2l2ZVNlYXJjaEFkQXNzZXRSZWNvbW1lbmRhdGlvbhI/CgpjdXJyZW50X2Fk", - "GAMgASgLMiYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5B", - "ZEID4EEDEkcKEnJlY29tbWVuZGVkX2Fzc2V0cxgCIAEoCzImLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRCA+BBAxq5AQoxUmVzcG9u", - "c2l2ZVNlYXJjaEFkSW1wcm92ZUFkU3RyZW5ndGhSZWNvbW1lbmRhdGlvbhI/", - "CgpjdXJyZW50X2FkGAEgASgLMiYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", - "LnJlc291cmNlcy5BZEID4EEDEkMKDnJlY29tbWVuZGVkX2FkGAIgASgLMiYu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BZEID4EEDGlsK", - "IFJlc3BvbnNpdmVTZWFyY2hBZFJlY29tbWVuZGF0aW9uEjcKAmFkGAEgASgL", - "MiYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5BZEID4EED", - "GpQCCiJVc2VCcm9hZE1hdGNoS2V5d29yZFJlY29tbWVuZGF0aW9uEkIKB2tl", - "eXdvcmQYASADKAsyLC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9u", - "LktleXdvcmRJbmZvQgPgQQMSJQoYc3VnZ2VzdGVkX2tleXdvcmRzX2NvdW50", - "GAIgASgDQgPgQQMSJAoXY2FtcGFpZ25fa2V5d29yZHNfY291bnQYAyABKANC", - "A+BBAxIoChtjYW1wYWlnbl91c2VzX3NoYXJlZF9idWRnZXQYBCABKAhCA+BB", - "AxIzCiZyZXF1aXJlZF9jYW1wYWlnbl9idWRnZXRfYW1vdW50X21pY3JvcxgF", - "IAEoA0ID4EEDGncKOlVwZ3JhZGVTbWFydFNob3BwaW5nQ2FtcGFpZ25Ub1Bl", - "cmZvcm1hbmNlTWF4UmVjb21tZW5kYXRpb24SGAoLbWVyY2hhbnRfaWQYASAB", - "KANCA+BBAxIfChJzYWxlc19jb3VudHJ5X2NvZGUYAiABKAlCA+BBAxrFAQol", - "UmFpc2VUYXJnZXRDcGFCaWRUb29Mb3dSZWNvbW1lbmRhdGlvbhIvCh1yZWNv", - "bW1lbmRlZF90YXJnZXRfbXVsdGlwbGllchgBIAEoAUID4EEDSACIAQESKwoZ", - "YXZlcmFnZV90YXJnZXRfY3BhX21pY3JvcxgCIAEoA0ID4EEDSAGIAQFCIAoe", - "X3JlY29tbWVuZGVkX3RhcmdldF9tdWx0aXBsaWVyQhwKGl9hdmVyYWdlX3Rh", - "cmdldF9jcGFfbWljcm9zGiUKI0Rpc3BsYXlFeHBhbnNpb25PcHRJblJlY29t", - "bWVuZGF0aW9uGjQKMlVwZ3JhZGVMb2NhbENhbXBhaWduVG9QZXJmb3JtYW5j", - "ZU1heFJlY29tbWVuZGF0aW9uGq8BCiZGb3JlY2FzdGluZ1NldFRhcmdldFJv", - "YXNSZWNvbW1lbmRhdGlvbhIkChdyZWNvbW1lbmRlZF90YXJnZXRfcm9hcxgB", - "IAEoAUID4EEDEl8KD2NhbXBhaWduX2J1ZGdldBgCIAEoCzJBLmdvb2dsZS5h", - "ZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuUmVjb21tZW5kYXRpb24uQ2Ft", - "cGFpZ25CdWRnZXRCA+BBAxrVAQokU2hvcHBpbmdPZmZlckF0dHJpYnV0ZVJl", - "Y29tbWVuZGF0aW9uElYKCG1lcmNoYW50GAEgASgLMj8uZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1lbmRhdGlvbi5NZXJjaGFu", - "dEluZm9CA+BBAxIXCgpmZWVkX2xhYmVsGAIgASgJQgPgQQMSGQoMb2ZmZXJz", - "X2NvdW50GAMgASgDQgPgQQMSIQoUZGVtb3RlZF9vZmZlcnNfY291bnQYBCAB", - "KANCA+BBAxrlAQosU2hvcHBpbmdGaXhEaXNhcHByb3ZlZFByb2R1Y3RzUmVj", - "b21tZW5kYXRpb24SVgoIbWVyY2hhbnQYASABKAsyPy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLk1lcmNoYW50", - "SW5mb0ID4EEDEhcKCmZlZWRfbGFiZWwYAiABKAlCA+BBAxIbCg5wcm9kdWN0", - "c19jb3VudBgDIAEoA0ID4EEDEicKGmRpc2FwcHJvdmVkX3Byb2R1Y3RzX2Nv", - "dW50GAQgASgDQgPgQQMavgEKJVNob3BwaW5nVGFyZ2V0QWxsT2ZmZXJzUmVj", - "b21tZW5kYXRpb24SVgoIbWVyY2hhbnQYASABKAsyPy5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLk1lcmNoYW50", - "SW5mb0ID4EEDEiQKF3VudGFyZ2V0ZWRfb2ZmZXJzX2NvdW50GAIgASgDQgPg", - "QQMSFwoKZmVlZF9sYWJlbBgDIAEoCUID4EEDGosCCitTaG9wcGluZ0FkZFBy", - "b2R1Y3RzVG9DYW1wYWlnblJlY29tbWVuZGF0aW9uElYKCG1lcmNoYW50GAEg", - "ASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNv", - "bW1lbmRhdGlvbi5NZXJjaGFudEluZm9CA+BBAxIXCgpmZWVkX2xhYmVsGAIg", - "ASgJQgPgQQMSawoGcmVhc29uGAMgASgOMlYuZ29vZ2xlLmFkcy5nb29nbGVh", - "ZHMudjE0LmVudW1zLlNob3BwaW5nQWRkUHJvZHVjdHNUb0NhbXBhaWduUmVj", - "b21tZW5kYXRpb25FbnVtLlJlYXNvbkID4EEDGqgBCjVTaG9wcGluZ01lcmNo", - "YW50Q2VudGVyQWNjb3VudFN1c3BlbnNpb25SZWNvbW1lbmRhdGlvbhJWCght", - "ZXJjaGFudBgBIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNv", - "dXJjZXMuUmVjb21tZW5kYXRpb24uTWVyY2hhbnRJbmZvQgPgQQMSFwoKZmVl", - "ZF9sYWJlbBgCIAEoCUID4EEDGr0BCkpTaG9wcGluZ01pZ3JhdGVSZWd1bGFy", - "U2hvcHBpbmdDYW1wYWlnbk9mZmVyc1RvUGVyZm9ybWFuY2VNYXhSZWNvbW1l", + "cmdldFJvYXNSZWNvbW1lbmRhdGlvbkID4EEDSAASigEKJXBlcmZvcm1hbmNl", + "X21heF9vcHRfaW5fcmVjb21tZW5kYXRpb24YOSABKAsyVC5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLlBlcmZv", + "cm1hbmNlTWF4T3B0SW5SZWNvbW1lbmRhdGlvbkID4EEDSAASowEKMmltcHJv", + "dmVfcGVyZm9ybWFuY2VfbWF4X2FkX3N0cmVuZ3RoX3JlY29tbWVuZGF0aW9u", + "GDogASgLMmAuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5S", + "ZWNvbW1lbmRhdGlvbi5JbXByb3ZlUGVyZm9ybWFuY2VNYXhBZFN0cmVuZ3Ro", + "UmVjb21tZW5kYXRpb25CA+BBA0gAEsYBCkVtaWdyYXRlX2R5bmFtaWNfc2Vh", + "cmNoX2Fkc19jYW1wYWlnbl90b19wZXJmb3JtYW5jZV9tYXhfcmVjb21tZW5k", + "YXRpb24YOyABKAsycC5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", + "Y2VzLlJlY29tbWVuZGF0aW9uLk1pZ3JhdGVEeW5hbWljU2VhcmNoQWRzQ2Ft", + "cGFpZ25Ub1BlcmZvcm1hbmNlTWF4UmVjb21tZW5kYXRpb25CA+BBA0gAGk0K", + "DE1lcmNoYW50SW5mbxIPCgJpZBgBIAEoA0ID4EEDEhEKBG5hbWUYAiABKAlC", + "A+BBAxIZCgxtdWx0aV9jbGllbnQYAyABKAhCA+BBAxrlAQoUUmVjb21tZW5k", + "YXRpb25JbXBhY3QSYwoMYmFzZV9tZXRyaWNzGAEgASgLMkguZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1lbmRhdGlvbi5SZWNv", + "bW1lbmRhdGlvbk1ldHJpY3NCA+BBAxJoChFwb3RlbnRpYWxfbWV0cmljcxgC", + "IAEoCzJILmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuUmVj", + "b21tZW5kYXRpb24uUmVjb21tZW5kYXRpb25NZXRyaWNzQgPgQQMa+AEKFVJl", + "Y29tbWVuZGF0aW9uTWV0cmljcxIdCgtpbXByZXNzaW9ucxgGIAEoAUID4EED", + "SACIAQESGAoGY2xpY2tzGAcgASgBQgPgQQNIAYgBARIdCgtjb3N0X21pY3Jv", + "cxgIIAEoA0ID4EEDSAKIAQESHQoLY29udmVyc2lvbnMYCSABKAFCA+BBA0gD", + "iAEBEh0KC3ZpZGVvX3ZpZXdzGAogASgBQgPgQQNIBIgBAUIOCgxfaW1wcmVz", + "c2lvbnNCCQoHX2NsaWNrc0IOCgxfY29zdF9taWNyb3NCDgoMX2NvbnZlcnNp", + "b25zQg4KDF92aWRlb192aWV3cxqgBAocQ2FtcGFpZ25CdWRnZXRSZWNvbW1l", + "bmRhdGlvbhIuChxjdXJyZW50X2J1ZGdldF9hbW91bnRfbWljcm9zGAcgASgD", + "QgPgQQNIAIgBARIyCiByZWNvbW1lbmRlZF9idWRnZXRfYW1vdW50X21pY3Jv", + "cxgIIAEoA0ID4EEDSAGIAQESjwEKDmJ1ZGdldF9vcHRpb25zGAMgAygLMnIu", + "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1lbmRh", + "dGlvbi5DYW1wYWlnbkJ1ZGdldFJlY29tbWVuZGF0aW9uLkNhbXBhaWduQnVk", + "Z2V0UmVjb21tZW5kYXRpb25PcHRpb25CA+BBAxrDAQoiQ2FtcGFpZ25CdWRn", + "ZXRSZWNvbW1lbmRhdGlvbk9wdGlvbhImChRidWRnZXRfYW1vdW50X21pY3Jv", + "cxgDIAEoA0ID4EEDSACIAQESXAoGaW1wYWN0GAIgASgLMkcuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1lbmRhdGlvbi5SZWNv", + "bW1lbmRhdGlvbkltcGFjdEID4EEDQhcKFV9idWRnZXRfYW1vdW50X21pY3Jv", + "c0IfCh1fY3VycmVudF9idWRnZXRfYW1vdW50X21pY3Jvc0IjCiFfcmVjb21t", + "ZW5kZWRfYnVkZ2V0X2Ftb3VudF9taWNyb3Ma5QIKFUtleXdvcmRSZWNvbW1l", + "bmRhdGlvbhJCCgdrZXl3b3JkGAEgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmNvbW1vbi5LZXl3b3JkSW5mb0ID4EEDEm4KDHNlYXJjaF90ZXJt", + "cxgEIAMoCzJTLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", + "UmVjb21tZW5kYXRpb24uS2V5d29yZFJlY29tbWVuZGF0aW9uLlNlYXJjaFRl", + "cm1CA+BBAxIsChpyZWNvbW1lbmRlZF9jcGNfYmlkX21pY3JvcxgDIAEoA0ID", + "4EEDSACIAQEaSwoKU2VhcmNoVGVybRIRCgR0ZXh0GAEgASgJQgPgQQMSKgod", + "ZXN0aW1hdGVkX3dlZWtseV9zZWFyY2hfY291bnQYAiABKANCA+BBA0IdChtf", + "cmVjb21tZW5kZWRfY3BjX2JpZF9taWNyb3MauQEKFFRleHRBZFJlY29tbWVu", + "ZGF0aW9uEjcKAmFkGAEgASgLMiYuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnJlc291cmNlcy5BZEID4EEDEh8KDWNyZWF0aW9uX2RhdGUYBCABKAlCA+BB", + "A0gAiAEBEiEKD2F1dG9fYXBwbHlfZGF0ZRgFIAEoCUID4EEDSAGIAQFCEAoO", + "X2NyZWF0aW9uX2RhdGVCEgoQX2F1dG9fYXBwbHlfZGF0ZRqbBQocVGFyZ2V0", + "Q3BhT3B0SW5SZWNvbW1lbmRhdGlvbhKIAQoHb3B0aW9ucxgBIAMoCzJyLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuUmVjb21tZW5kYXRp", + "b24uVGFyZ2V0Q3BhT3B0SW5SZWNvbW1lbmRhdGlvbi5UYXJnZXRDcGFPcHRJ", + "blJlY29tbWVuZGF0aW9uT3B0aW9uQgPgQQMSLwodcmVjb21tZW5kZWRfdGFy", + "Z2V0X2NwYV9taWNyb3MYAyABKANCA+BBA0gAiAEBGpwDCiJUYXJnZXRDcGFP", + "cHRJblJlY29tbWVuZGF0aW9uT3B0aW9uEngKBGdvYWwYASABKA4yZS5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuVGFyZ2V0Q3BhT3B0SW5SZWNv", + "bW1lbmRhdGlvbkdvYWxFbnVtLlRhcmdldENwYU9wdEluUmVjb21tZW5kYXRp", + "b25Hb2FsQgPgQQMSIwoRdGFyZ2V0X2NwYV9taWNyb3MYBSABKANCA+BBA0gA", + "iAEBEjgKJnJlcXVpcmVkX2NhbXBhaWduX2J1ZGdldF9hbW91bnRfbWljcm9z", + "GAYgASgDQgPgQQNIAYgBARJcCgZpbXBhY3QYBCABKAsyRy5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLlJlY29t", + "bWVuZGF0aW9uSW1wYWN0QgPgQQNCFAoSX3RhcmdldF9jcGFfbWljcm9zQikK", + "J19yZXF1aXJlZF9jYW1wYWlnbl9idWRnZXRfYW1vdW50X21pY3Jvc0IgCh5f", + "cmVjb21tZW5kZWRfdGFyZ2V0X2NwYV9taWNyb3MagQEKJk1heGltaXplQ29u", + "dmVyc2lvbnNPcHRJblJlY29tbWVuZGF0aW9uEjIKIHJlY29tbWVuZGVkX2J1", + "ZGdldF9hbW91bnRfbWljcm9zGAIgASgDQgPgQQNIAIgBAUIjCiFfcmVjb21t", + "ZW5kZWRfYnVkZ2V0X2Ftb3VudF9taWNyb3MaIAoeRW5oYW5jZWRDcGNPcHRJ", + "blJlY29tbWVuZGF0aW9uGiMKIVNlYXJjaFBhcnRuZXJzT3B0SW5SZWNvbW1l", + "bmRhdGlvbhp8CiFNYXhpbWl6ZUNsaWNrc09wdEluUmVjb21tZW5kYXRpb24S", + "MgogcmVjb21tZW5kZWRfYnVkZ2V0X2Ftb3VudF9taWNyb3MYAiABKANCA+BB", + "A0gAiAEBQiMKIV9yZWNvbW1lbmRlZF9idWRnZXRfYW1vdW50X21pY3Jvcxoi", + "CiBPcHRpbWl6ZUFkUm90YXRpb25SZWNvbW1lbmRhdGlvbhrWAQoaQ2FsbG91", + "dEFzc2V0UmVjb21tZW5kYXRpb24SWwojcmVjb21tZW5kZWRfY2FtcGFpZ25f", + "Y2FsbG91dF9hc3NldHMYASADKAsyKS5nb29nbGUuYWRzLmdvb2dsZWFkcy52", + "MTQucmVzb3VyY2VzLkFzc2V0QgPgQQMSWwojcmVjb21tZW5kZWRfY3VzdG9t", + "ZXJfY2FsbG91dF9hc3NldHMYAiADKAsyKS5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQucmVzb3VyY2VzLkFzc2V0QgPgQQMa2QEKG1NpdGVsaW5rQXNzZXRS", + "ZWNvbW1lbmRhdGlvbhJcCiRyZWNvbW1lbmRlZF9jYW1wYWlnbl9zaXRlbGlu", + "a19hc3NldHMYASADKAsyKS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVz", + "b3VyY2VzLkFzc2V0QgPgQQMSXAokcmVjb21tZW5kZWRfY3VzdG9tZXJfc2l0", + "ZWxpbmtfYXNzZXRzGAIgAygLMikuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LnJlc291cmNlcy5Bc3NldEID4EEDGhkKF0NhbGxBc3NldFJlY29tbWVuZGF0", + "aW9uGtABCh5LZXl3b3JkTWF0Y2hUeXBlUmVjb21tZW5kYXRpb24SQgoHa2V5", + "d29yZBgBIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24u", + "S2V5d29yZEluZm9CA+BBAxJqChZyZWNvbW1lbmRlZF9tYXRjaF90eXBlGAIg", + "ASgOMkUuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLktleXdvcmRN", + "YXRjaFR5cGVFbnVtLktleXdvcmRNYXRjaFR5cGVCA+BBAxraAQoeTW92ZVVu", + "dXNlZEJ1ZGdldFJlY29tbWVuZGF0aW9uEigKFmV4Y2Vzc19jYW1wYWlnbl9i", + "dWRnZXQYAyABKAlCA+BBA0gAiAEBEnMKFWJ1ZGdldF9yZWNvbW1lbmRhdGlv", + "bhgCIAEoCzJPLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", + "UmVjb21tZW5kYXRpb24uQ2FtcGFpZ25CdWRnZXRSZWNvbW1lbmRhdGlvbkID", + "4EEDQhkKF19leGNlc3NfY2FtcGFpZ25fYnVkZ2V0GssBCh1UYXJnZXRSb2Fz", + "T3B0SW5SZWNvbW1lbmRhdGlvbhIpChdyZWNvbW1lbmRlZF90YXJnZXRfcm9h", + "cxgBIAEoAUID4EEDSACIAQESOAomcmVxdWlyZWRfY2FtcGFpZ25fYnVkZ2V0", + "X2Ftb3VudF9taWNyb3MYAiABKANCA+BBA0gBiAEBQhoKGF9yZWNvbW1lbmRl", + "ZF90YXJnZXRfcm9hc0IpCidfcmVxdWlyZWRfY2FtcGFpZ25fYnVkZ2V0X2Ft", + "b3VudF9taWNyb3MasQEKJVJlc3BvbnNpdmVTZWFyY2hBZEFzc2V0UmVjb21t", + "ZW5kYXRpb24SPwoKY3VycmVudF9hZBgDIAEoCzImLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRCA+BBAxJHChJyZWNvbW1lbmRlZF9h", + "c3NldHMYAiABKAsyJi5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", + "Y2VzLkFkQgPgQQMauQEKMVJlc3BvbnNpdmVTZWFyY2hBZEltcHJvdmVBZFN0", + "cmVuZ3RoUmVjb21tZW5kYXRpb24SPwoKY3VycmVudF9hZBgBIAEoCzImLmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMuQWRCA+BBAxJDCg5y", + "ZWNvbW1lbmRlZF9hZBgCIAEoCzImLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5yZXNvdXJjZXMuQWRCA+BBAxpbCiBSZXNwb25zaXZlU2VhcmNoQWRSZWNv", + "bW1lbmRhdGlvbhI3CgJhZBgBIAEoCzImLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", + "LnYxNC5yZXNvdXJjZXMuQWRCA+BBAxqUAgoiVXNlQnJvYWRNYXRjaEtleXdv", + "cmRSZWNvbW1lbmRhdGlvbhJCCgdrZXl3b3JkGAEgAygLMiwuZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LmNvbW1vbi5LZXl3b3JkSW5mb0ID4EEDEiUKGHN1", + "Z2dlc3RlZF9rZXl3b3Jkc19jb3VudBgCIAEoA0ID4EEDEiQKF2NhbXBhaWdu", + "X2tleXdvcmRzX2NvdW50GAMgASgDQgPgQQMSKAobY2FtcGFpZ25fdXNlc19z", + "aGFyZWRfYnVkZ2V0GAQgASgIQgPgQQMSMwomcmVxdWlyZWRfY2FtcGFpZ25f", + "YnVkZ2V0X2Ftb3VudF9taWNyb3MYBSABKANCA+BBAxp3CjpVcGdyYWRlU21h", + "cnRTaG9wcGluZ0NhbXBhaWduVG9QZXJmb3JtYW5jZU1heFJlY29tbWVuZGF0", + "aW9uEhgKC21lcmNoYW50X2lkGAEgASgDQgPgQQMSHwoSc2FsZXNfY291bnRy", + "eV9jb2RlGAIgASgJQgPgQQMaxQEKJVJhaXNlVGFyZ2V0Q3BhQmlkVG9vTG93", + "UmVjb21tZW5kYXRpb24SLwodcmVjb21tZW5kZWRfdGFyZ2V0X211bHRpcGxp", + "ZXIYASABKAFCA+BBA0gAiAEBEisKGWF2ZXJhZ2VfdGFyZ2V0X2NwYV9taWNy", + "b3MYAiABKANCA+BBA0gBiAEBQiAKHl9yZWNvbW1lbmRlZF90YXJnZXRfbXVs", + "dGlwbGllckIcChpfYXZlcmFnZV90YXJnZXRfY3BhX21pY3JvcxolCiNEaXNw", + "bGF5RXhwYW5zaW9uT3B0SW5SZWNvbW1lbmRhdGlvbho0CjJVcGdyYWRlTG9j", + "YWxDYW1wYWlnblRvUGVyZm9ybWFuY2VNYXhSZWNvbW1lbmRhdGlvbhqvAQom", + "Rm9yZWNhc3RpbmdTZXRUYXJnZXRSb2FzUmVjb21tZW5kYXRpb24SJAoXcmVj", + "b21tZW5kZWRfdGFyZ2V0X3JvYXMYASABKAFCA+BBAxJfCg9jYW1wYWlnbl9i", + "dWRnZXQYAiABKAsyQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3Vy", + "Y2VzLlJlY29tbWVuZGF0aW9uLkNhbXBhaWduQnVkZ2V0QgPgQQMa1QEKJFNo", + "b3BwaW5nT2ZmZXJBdHRyaWJ1dGVSZWNvbW1lbmRhdGlvbhJWCghtZXJjaGFu", + "dBgBIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5yZXNvdXJjZXMu", + "UmVjb21tZW5kYXRpb24uTWVyY2hhbnRJbmZvQgPgQQMSFwoKZmVlZF9sYWJl", + "bBgCIAEoCUID4EEDEhkKDG9mZmVyc19jb3VudBgDIAEoA0ID4EEDEiEKFGRl", + "bW90ZWRfb2ZmZXJzX2NvdW50GAQgASgDQgPgQQMa5QEKLFNob3BwaW5nRml4", + "RGlzYXBwcm92ZWRQcm9kdWN0c1JlY29tbWVuZGF0aW9uElYKCG1lcmNoYW50", + "GAEgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5S", + "ZWNvbW1lbmRhdGlvbi5NZXJjaGFudEluZm9CA+BBAxIXCgpmZWVkX2xhYmVs", + "GAIgASgJQgPgQQMSGwoOcHJvZHVjdHNfY291bnQYAyABKANCA+BBAxInChpk", + "aXNhcHByb3ZlZF9wcm9kdWN0c19jb3VudBgEIAEoA0ID4EEDGr4BCiVTaG9w", + "cGluZ1RhcmdldEFsbE9mZmVyc1JlY29tbWVuZGF0aW9uElYKCG1lcmNoYW50", + "GAEgASgLMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5S", + "ZWNvbW1lbmRhdGlvbi5NZXJjaGFudEluZm9CA+BBAxIkChd1bnRhcmdldGVk", + "X29mZmVyc19jb3VudBgCIAEoA0ID4EEDEhcKCmZlZWRfbGFiZWwYAyABKAlC", + "A+BBAxqLAgorU2hvcHBpbmdBZGRQcm9kdWN0c1RvQ2FtcGFpZ25SZWNvbW1l", "bmRhdGlvbhJWCghtZXJjaGFudBgBIAEoCzI/Lmdvb2dsZS5hZHMuZ29vZ2xl", "YWRzLnYxNC5yZXNvdXJjZXMuUmVjb21tZW5kYXRpb24uTWVyY2hhbnRJbmZv", - "QgPgQQMSFwoKZmVlZF9sYWJlbBgCIAEoCUID4EEDGpsBChRUYXJnZXRBZGp1", - "c3RtZW50SW5mbxIcCgpzaGFyZWRfc2V0GAEgASgJQgPgQQNIAIgBARIqCh1y", - "ZWNvbW1lbmRlZF90YXJnZXRfbXVsdGlwbGllchgCIAEoAUID4EEDEioKHWN1", - "cnJlbnRfYXZlcmFnZV90YXJnZXRfbWljcm9zGAMgASgDQgPgQQNCDQoLX3No", - "YXJlZF9zZXQagwIKHFJhaXNlVGFyZ2V0Q3BhUmVjb21tZW5kYXRpb24SZwoR", - "dGFyZ2V0X2FkanVzdG1lbnQYASABKAsyRy5nb29nbGUuYWRzLmdvb2dsZWFk", - "cy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLlRhcmdldEFkanVzdG1l", - "bnRJbmZvQgPgQQMSZQoQYXBwX2JpZGRpbmdfZ29hbBgCIAEoDjJBLmdvb2ds", - "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5BcHBCaWRkaW5nR29hbEVudW0u", - "QXBwQmlkZGluZ0dvYWxCA+BBA0gAiAEBQhMKEV9hcHBfYmlkZGluZ19nb2Fs", - "GogBCh1Mb3dlclRhcmdldFJvYXNSZWNvbW1lbmRhdGlvbhJnChF0YXJnZXRf", - "YWRqdXN0bWVudBgBIAEoCzJHLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5y", - "ZXNvdXJjZXMuUmVjb21tZW5kYXRpb24uVGFyZ2V0QWRqdXN0bWVudEluZm9C", - "A+BBAxoqCihEeW5hbWljSW1hZ2VFeHRlbnNpb25PcHRJblJlY29tbWVuZGF0", - "aW9uGn0KDkNhbXBhaWduQnVkZ2V0EiIKFWN1cnJlbnRfYW1vdW50X21pY3Jv", - "cxgBIAEoA0ID4EEDEioKHXJlY29tbWVuZGVkX25ld19hbW91bnRfbWljcm9z", - "GAIgASgDQgPgQQMSGwoObmV3X3N0YXJ0X2RhdGUYAyABKAlCA+BBAzpp6kFm", - "Cidnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vUmVjb21tZW5kYXRpb24SO2N1", - "c3RvbWVycy97Y3VzdG9tZXJfaWR9L3JlY29tbWVuZGF0aW9ucy97cmVjb21t", - "ZW5kYXRpb25faWR9QhAKDnJlY29tbWVuZGF0aW9uQhIKEF9jYW1wYWlnbl9i", - "dWRnZXRCCwoJX2NhbXBhaWduQgsKCV9hZF9ncm91cEIMCgpfZGlzbWlzc2Vk", - "QoUCCiZjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlc0IT", - "UmVjb21tZW5kYXRpb25Qcm90b1ABWktnb29nbGUuZ29sYW5nLm9yZy9nZW5w", - "cm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L3Jlc291cmNlczty", - "ZXNvdXJjZXOiAgNHQUGqAiJHb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuUmVz", - "b3VyY2VzygIiR29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XFJlc291cmNlc+oC", - "Jkdvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNDo6UmVzb3VyY2VzYgZwcm90", - "bzM=")); + "QgPgQQMSFwoKZmVlZF9sYWJlbBgCIAEoCUID4EEDEmsKBnJlYXNvbhgDIAEo", + "DjJWLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5TaG9wcGluZ0Fk", + "ZFByb2R1Y3RzVG9DYW1wYWlnblJlY29tbWVuZGF0aW9uRW51bS5SZWFzb25C", + "A+BBAxqoAQo1U2hvcHBpbmdNZXJjaGFudENlbnRlckFjY291bnRTdXNwZW5z", + "aW9uUmVjb21tZW5kYXRpb24SVgoIbWVyY2hhbnQYASABKAsyPy5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9uLk1l", + "cmNoYW50SW5mb0ID4EEDEhcKCmZlZWRfbGFiZWwYAiABKAlCA+BBAxq9AQpK", + "U2hvcHBpbmdNaWdyYXRlUmVndWxhclNob3BwaW5nQ2FtcGFpZ25PZmZlcnNU", + "b1BlcmZvcm1hbmNlTWF4UmVjb21tZW5kYXRpb24SVgoIbWVyY2hhbnQYASAB", + "KAsyPy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29t", + "bWVuZGF0aW9uLk1lcmNoYW50SW5mb0ID4EEDEhcKCmZlZWRfbGFiZWwYAiAB", + "KAlCA+BBAxqbAQoUVGFyZ2V0QWRqdXN0bWVudEluZm8SHAoKc2hhcmVkX3Nl", + "dBgBIAEoCUID4EEDSACIAQESKgodcmVjb21tZW5kZWRfdGFyZ2V0X211bHRp", + "cGxpZXIYAiABKAFCA+BBAxIqCh1jdXJyZW50X2F2ZXJhZ2VfdGFyZ2V0X21p", + "Y3JvcxgDIAEoA0ID4EEDQg0KC19zaGFyZWRfc2V0GoMCChxSYWlzZVRhcmdl", + "dENwYVJlY29tbWVuZGF0aW9uEmcKEXRhcmdldF9hZGp1c3RtZW50GAEgASgL", + "MkcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LnJlc291cmNlcy5SZWNvbW1l", + "bmRhdGlvbi5UYXJnZXRBZGp1c3RtZW50SW5mb0ID4EEDEmUKEGFwcF9iaWRk", + "aW5nX2dvYWwYAiABKA4yQS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51", + "bXMuQXBwQmlkZGluZ0dvYWxFbnVtLkFwcEJpZGRpbmdHb2FsQgPgQQNIAIgB", + "AUITChFfYXBwX2JpZGRpbmdfZ29hbBqIAQodTG93ZXJUYXJnZXRSb2FzUmVj", + "b21tZW5kYXRpb24SZwoRdGFyZ2V0X2FkanVzdG1lbnQYASABKAsyRy5nb29n", + "bGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzLlJlY29tbWVuZGF0aW9u", + "LlRhcmdldEFkanVzdG1lbnRJbmZvQgPgQQMaKgooRHluYW1pY0ltYWdlRXh0", + "ZW5zaW9uT3B0SW5SZWNvbW1lbmRhdGlvbhp9Cg5DYW1wYWlnbkJ1ZGdldBIi", + "ChVjdXJyZW50X2Ftb3VudF9taWNyb3MYASABKANCA+BBAxIqCh1yZWNvbW1l", + "bmRlZF9uZXdfYW1vdW50X21pY3JvcxgCIAEoA0ID4EEDEhsKDm5ld19zdGFy", + "dF9kYXRlGAMgASgJQgPgQQMaIwohUGVyZm9ybWFuY2VNYXhPcHRJblJlY29t", + "bWVuZGF0aW9uGkkKLUltcHJvdmVQZXJmb3JtYW5jZU1heEFkU3RyZW5ndGhS", + "ZWNvbW1lbmRhdGlvbhIYCgthc3NldF9ncm91cBgBIAEoCUID4EEDGlgKPU1p", + "Z3JhdGVEeW5hbWljU2VhcmNoQWRzQ2FtcGFpZ25Ub1BlcmZvcm1hbmNlTWF4", + "UmVjb21tZW5kYXRpb24SFwoKYXBwbHlfbGluaxgBIAEoCUID4EEDOmnqQWYK", + "J2dvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9SZWNvbW1lbmRhdGlvbhI7Y3Vz", + "dG9tZXJzL3tjdXN0b21lcl9pZH0vcmVjb21tZW5kYXRpb25zL3tyZWNvbW1l", + "bmRhdGlvbl9pZH1CEAoOcmVjb21tZW5kYXRpb25CEgoQX2NhbXBhaWduX2J1", + "ZGdldEILCglfY2FtcGFpZ25CCwoJX2FkX2dyb3VwQgwKCl9kaXNtaXNzZWRC", + "hQIKJmNvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQucmVzb3VyY2VzQhNS", + "ZWNvbW1lbmRhdGlvblByb3RvUAFaS2dvb2dsZS5nb2xhbmcub3JnL2dlbnBy", + "b3RvL2dvb2dsZWFwaXMvYWRzL2dvb2dsZWFkcy92MTQvcmVzb3VyY2VzO3Jl", + "c291cmNlc6ICA0dBQaoCIkdvb2dsZS5BZHMuR29vZ2xlQWRzLlYxNC5SZXNv", + "dXJjZXPKAiJHb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRcUmVzb3VyY2Vz6gIm", + "R29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpSZXNvdXJjZXNiBnByb3Rv", + "Mw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AppBiddingGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.KeywordMatchTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.RecommendationTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ShoppingAddProductsToCampaignRecommendationEnumReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.TargetCpaOptInRecommendationGoalReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AdReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Resources.AssetReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Parser, new[]{ "ResourceName", "Type", "Impact", "CampaignBudget", "Campaign", "AdGroup", "Dismissed", "Campaigns", "CampaignBudgetRecommendation", "ForecastingCampaignBudgetRecommendation", "KeywordRecommendation", "TextAdRecommendation", "TargetCpaOptInRecommendation", "MaximizeConversionsOptInRecommendation", "EnhancedCpcOptInRecommendation", "SearchPartnersOptInRecommendation", "MaximizeClicksOptInRecommendation", "OptimizeAdRotationRecommendation", "KeywordMatchTypeRecommendation", "MoveUnusedBudgetRecommendation", "TargetRoasOptInRecommendation", "ResponsiveSearchAdRecommendation", "MarginalRoiCampaignBudgetRecommendation", "UseBroadMatchKeywordRecommendation", "ResponsiveSearchAdAssetRecommendation", "UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation", "ResponsiveSearchAdImproveAdStrengthRecommendation", "DisplayExpansionOptInRecommendation", "UpgradeLocalCampaignToPerformanceMaxRecommendation", "RaiseTargetCpaBidTooLowRecommendation", "ForecastingSetTargetRoasRecommendation", "CalloutAssetRecommendation", "SitelinkAssetRecommendation", "CallAssetRecommendation", "ShoppingAddAgeGroupRecommendation", "ShoppingAddColorRecommendation", "ShoppingAddGenderRecommendation", "ShoppingAddGtinRecommendation", "ShoppingAddMoreIdentifiersRecommendation", "ShoppingAddSizeRecommendation", "ShoppingAddProductsToCampaignRecommendation", "ShoppingFixDisapprovedProductsRecommendation", "ShoppingTargetAllOffersRecommendation", "ShoppingFixSuspendedMerchantCenterAccountRecommendation", "ShoppingFixMerchantCenterAccountSuspensionWarningRecommendation", "ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation", "DynamicImageExtensionOptInRecommendation", "RaiseTargetCpaRecommendation", "LowerTargetRoasRecommendation" }, new[]{ "Recommendation", "CampaignBudget", "Campaign", "AdGroup", "Dismissed" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MerchantInfo), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MerchantInfo.Parser, new[]{ "Id", "Name", "MultiClient" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Parser, new[]{ "ResourceName", "Type", "Impact", "CampaignBudget", "Campaign", "AdGroup", "Dismissed", "Campaigns", "CampaignBudgetRecommendation", "ForecastingCampaignBudgetRecommendation", "KeywordRecommendation", "TextAdRecommendation", "TargetCpaOptInRecommendation", "MaximizeConversionsOptInRecommendation", "EnhancedCpcOptInRecommendation", "SearchPartnersOptInRecommendation", "MaximizeClicksOptInRecommendation", "OptimizeAdRotationRecommendation", "KeywordMatchTypeRecommendation", "MoveUnusedBudgetRecommendation", "TargetRoasOptInRecommendation", "ResponsiveSearchAdRecommendation", "MarginalRoiCampaignBudgetRecommendation", "UseBroadMatchKeywordRecommendation", "ResponsiveSearchAdAssetRecommendation", "UpgradeSmartShoppingCampaignToPerformanceMaxRecommendation", "ResponsiveSearchAdImproveAdStrengthRecommendation", "DisplayExpansionOptInRecommendation", "UpgradeLocalCampaignToPerformanceMaxRecommendation", "RaiseTargetCpaBidTooLowRecommendation", "ForecastingSetTargetRoasRecommendation", "CalloutAssetRecommendation", "SitelinkAssetRecommendation", "CallAssetRecommendation", "ShoppingAddAgeGroupRecommendation", "ShoppingAddColorRecommendation", "ShoppingAddGenderRecommendation", "ShoppingAddGtinRecommendation", "ShoppingAddMoreIdentifiersRecommendation", "ShoppingAddSizeRecommendation", "ShoppingAddProductsToCampaignRecommendation", "ShoppingFixDisapprovedProductsRecommendation", "ShoppingTargetAllOffersRecommendation", "ShoppingFixSuspendedMerchantCenterAccountRecommendation", "ShoppingFixMerchantCenterAccountSuspensionWarningRecommendation", "ShoppingMigrateRegularShoppingCampaignOffersToPerformanceMaxRecommendation", "DynamicImageExtensionOptInRecommendation", "RaiseTargetCpaRecommendation", "LowerTargetRoasRecommendation", "PerformanceMaxOptInRecommendation", "ImprovePerformanceMaxAdStrengthRecommendation", "MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation" }, new[]{ "Recommendation", "CampaignBudget", "Campaign", "AdGroup", "Dismissed" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MerchantInfo), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MerchantInfo.Parser, new[]{ "Id", "Name", "MultiClient" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.RecommendationImpact), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.RecommendationImpact.Parser, new[]{ "BaseMetrics", "PotentialMetrics" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.RecommendationMetrics), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.RecommendationMetrics.Parser, new[]{ "Impressions", "Clicks", "CostMicros", "Conversions", "VideoViews" }, new[]{ "Impressions", "Clicks", "CostMicros", "Conversions", "VideoViews" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudgetRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudgetRecommendation.Parser, new[]{ "CurrentBudgetAmountMicros", "RecommendedBudgetAmountMicros", "BudgetOptions" }, new[]{ "CurrentBudgetAmountMicros", "RecommendedBudgetAmountMicros" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudgetRecommendation.Types.CampaignBudgetRecommendationOption), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudgetRecommendation.Types.CampaignBudgetRecommendationOption.Parser, new[]{ "BudgetAmountMicros", "Impact" }, new[]{ "BudgetAmountMicros" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation.Parser, new[]{ "Keyword", "RecommendedCpcBidMicros" }, new[]{ "RecommendedCpcBidMicros" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation.Parser, new[]{ "Keyword", "SearchTerms", "RecommendedCpcBidMicros" }, new[]{ "RecommendedCpcBidMicros" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation.Types.SearchTerm), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation.Types.SearchTerm.Parser, new[]{ "Text", "EstimatedWeeklySearchCount" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.TextAdRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.TextAdRecommendation.Parser, new[]{ "Ad", "CreationDate", "AutoApplyDate" }, new[]{ "CreationDate", "AutoApplyDate" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.TargetCpaOptInRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.TargetCpaOptInRecommendation.Parser, new[]{ "Options", "RecommendedTargetCpaMicros" }, new[]{ "RecommendedTargetCpaMicros" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.TargetCpaOptInRecommendation.Types.TargetCpaOptInRecommendationOption), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.TargetCpaOptInRecommendation.Types.TargetCpaOptInRecommendationOption.Parser, new[]{ "Goal", "TargetCpaMicros", "RequiredCampaignBudgetAmountMicros", "Impact" }, new[]{ "TargetCpaMicros", "RequiredCampaignBudgetAmountMicros" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MaximizeConversionsOptInRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MaximizeConversionsOptInRecommendation.Parser, new[]{ "RecommendedBudgetAmountMicros" }, new[]{ "RecommendedBudgetAmountMicros" }, null, null, null), @@ -390,7 +410,10 @@ static RecommendationReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.RaiseTargetCpaRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.RaiseTargetCpaRecommendation.Parser, new[]{ "TargetAdjustment", "AppBiddingGoal" }, new[]{ "AppBiddingGoal" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.LowerTargetRoasRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.LowerTargetRoasRecommendation.Parser, new[]{ "TargetAdjustment" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.DynamicImageExtensionOptInRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.DynamicImageExtensionOptInRecommendation.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudget), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudget.Parser, new[]{ "CurrentAmountMicros", "RecommendedNewAmountMicros", "NewStartDate" }, null, null, null, null)}) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudget), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.CampaignBudget.Parser, new[]{ "CurrentAmountMicros", "RecommendedNewAmountMicros", "NewStartDate" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation.Parser, new[]{ "AssetGroup" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation), global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Parser, new[]{ "ApplyLink" }, null, null, null, null)}) })); } #endregion @@ -568,6 +591,15 @@ public Recommendation(Recommendation other) : this() { case RecommendationOneofCase.LowerTargetRoasRecommendation: LowerTargetRoasRecommendation = other.LowerTargetRoasRecommendation.Clone(); break; + case RecommendationOneofCase.PerformanceMaxOptInRecommendation: + PerformanceMaxOptInRecommendation = other.PerformanceMaxOptInRecommendation.Clone(); + break; + case RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation: + ImprovePerformanceMaxAdStrengthRecommendation = other.ImprovePerformanceMaxAdStrengthRecommendation.Clone(); + break; + case RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation: + MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = other.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.Clone(); + break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); @@ -676,17 +708,15 @@ public void ClearCampaignBudget() { /// MAXIMIZE_CONVERSIONS_OPT_IN, OPTIMIZE_AD_ROTATION, /// RESPONSIVE_SEARCH_AD, /// RESPONSIVE_SEARCH_AD_ASSET, - /// SEARCH_PARTNERS_OPT_IN, - /// DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION, TARGET_CPA_OPT_IN, - /// TARGET_ROAS_OPT_IN, TEXT_AD, - /// UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX , - /// RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS + /// SEARCH_PARTNERS_OPT_IN, DISPLAY_EXPANSION_OPT_IN, SITELINK_EXTENSION, + /// TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD, + /// UPGRADE_SMART_SHOPPING_CAMPAIGN_TO_PERFORMANCE_MAX, + /// RAISE_TARGET_CPA_BID_TOO_LOW, FORECASTING_SET_TARGET_ROAS, /// SHOPPING_ADD_AGE_GROUP, SHOPPING_ADD_COLOR, SHOPPING_ADD_GENDER, /// SHOPPING_ADD_SIZE, SHOPPING_ADD_GTIN, SHOPPING_ADD_MORE_IDENTIFIERS, /// SHOPPING_ADD_PRODUCTS_TO_CAMPAIGN, SHOPPING_FIX_DISAPPROVED_PRODUCTS, - /// SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX - /// DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, - /// LOWER_TARGET_ROAS + /// SHOPPING_MIGRATE_REGULAR_SHOPPING_CAMPAIGN_OFFERS_TO_PERFORMANCE_MAX, + /// DYNAMIC_IMAGE_EXTENSION_OPT_IN, RAISE_TARGET_CPA, LOWER_TARGET_ROAS, /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -1413,6 +1443,52 @@ public void ClearDismissed() { } } + /// Field number for the "performance_max_opt_in_recommendation" field. + public const int PerformanceMaxOptInRecommendationFieldNumber = 57; + /// + /// Output only. The Performance Max Opt In recommendation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation PerformanceMaxOptInRecommendation { + get { return recommendationCase_ == RecommendationOneofCase.PerformanceMaxOptInRecommendation ? (global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation) recommendation_ : null; } + set { + recommendation_ = value; + recommendationCase_ = value == null ? RecommendationOneofCase.None : RecommendationOneofCase.PerformanceMaxOptInRecommendation; + } + } + + /// Field number for the "improve_performance_max_ad_strength_recommendation" field. + public const int ImprovePerformanceMaxAdStrengthRecommendationFieldNumber = 58; + /// + /// Output only. The improve Performance Max ad strength recommendation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation ImprovePerformanceMaxAdStrengthRecommendation { + get { return recommendationCase_ == RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation ? (global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation) recommendation_ : null; } + set { + recommendation_ = value; + recommendationCase_ = value == null ? RecommendationOneofCase.None : RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation; + } + } + + /// Field number for the "migrate_dynamic_search_ads_campaign_to_performance_max_recommendation" field. + public const int MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendationFieldNumber = 59; + /// + /// Output only. The Dynamic Search Ads to Performance Max migration + /// recommendation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation { + get { return recommendationCase_ == RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation ? (global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) recommendation_ : null; } + set { + recommendation_ = value; + recommendationCase_ = value == null ? RecommendationOneofCase.None : RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation; + } + } + private object recommendation_; /// Enum of possible cases for the "recommendation" oneof. public enum RecommendationOneofCase { @@ -1458,6 +1534,9 @@ public enum RecommendationOneofCase { DynamicImageExtensionOptInRecommendation = 54, RaiseTargetCpaRecommendation = 55, LowerTargetRoasRecommendation = 56, + PerformanceMaxOptInRecommendation = 57, + ImprovePerformanceMaxAdStrengthRecommendation = 58, + MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = 59, } private RecommendationOneofCase recommendationCase_ = RecommendationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -1537,6 +1616,9 @@ public bool Equals(Recommendation other) { if (!object.Equals(DynamicImageExtensionOptInRecommendation, other.DynamicImageExtensionOptInRecommendation)) return false; if (!object.Equals(RaiseTargetCpaRecommendation, other.RaiseTargetCpaRecommendation)) return false; if (!object.Equals(LowerTargetRoasRecommendation, other.LowerTargetRoasRecommendation)) return false; + if (!object.Equals(PerformanceMaxOptInRecommendation, other.PerformanceMaxOptInRecommendation)) return false; + if (!object.Equals(ImprovePerformanceMaxAdStrengthRecommendation, other.ImprovePerformanceMaxAdStrengthRecommendation)) return false; + if (!object.Equals(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation, other.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation)) return false; if (RecommendationCase != other.RecommendationCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -1594,6 +1676,9 @@ public override int GetHashCode() { if (recommendationCase_ == RecommendationOneofCase.DynamicImageExtensionOptInRecommendation) hash ^= DynamicImageExtensionOptInRecommendation.GetHashCode(); if (recommendationCase_ == RecommendationOneofCase.RaiseTargetCpaRecommendation) hash ^= RaiseTargetCpaRecommendation.GetHashCode(); if (recommendationCase_ == RecommendationOneofCase.LowerTargetRoasRecommendation) hash ^= LowerTargetRoasRecommendation.GetHashCode(); + if (recommendationCase_ == RecommendationOneofCase.PerformanceMaxOptInRecommendation) hash ^= PerformanceMaxOptInRecommendation.GetHashCode(); + if (recommendationCase_ == RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation) hash ^= ImprovePerformanceMaxAdStrengthRecommendation.GetHashCode(); + if (recommendationCase_ == RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) hash ^= MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.GetHashCode(); hash ^= (int) recommendationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -1806,6 +1891,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(194, 3); output.WriteMessage(LowerTargetRoasRecommendation); } + if (recommendationCase_ == RecommendationOneofCase.PerformanceMaxOptInRecommendation) { + output.WriteRawTag(202, 3); + output.WriteMessage(PerformanceMaxOptInRecommendation); + } + if (recommendationCase_ == RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation) { + output.WriteRawTag(210, 3); + output.WriteMessage(ImprovePerformanceMaxAdStrengthRecommendation); + } + if (recommendationCase_ == RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) { + output.WriteRawTag(218, 3); + output.WriteMessage(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2009,6 +2106,18 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(194, 3); output.WriteMessage(LowerTargetRoasRecommendation); } + if (recommendationCase_ == RecommendationOneofCase.PerformanceMaxOptInRecommendation) { + output.WriteRawTag(202, 3); + output.WriteMessage(PerformanceMaxOptInRecommendation); + } + if (recommendationCase_ == RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation) { + output.WriteRawTag(210, 3); + output.WriteMessage(ImprovePerformanceMaxAdStrengthRecommendation); + } + if (recommendationCase_ == RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) { + output.WriteRawTag(218, 3); + output.WriteMessage(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2164,6 +2273,15 @@ public int CalculateSize() { if (recommendationCase_ == RecommendationOneofCase.LowerTargetRoasRecommendation) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(LowerTargetRoasRecommendation); } + if (recommendationCase_ == RecommendationOneofCase.PerformanceMaxOptInRecommendation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(PerformanceMaxOptInRecommendation); + } + if (recommendationCase_ == RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(ImprovePerformanceMaxAdStrengthRecommendation); + } + if (recommendationCase_ == RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2448,6 +2566,24 @@ public void MergeFrom(Recommendation other) { } LowerTargetRoasRecommendation.MergeFrom(other.LowerTargetRoasRecommendation); break; + case RecommendationOneofCase.PerformanceMaxOptInRecommendation: + if (PerformanceMaxOptInRecommendation == null) { + PerformanceMaxOptInRecommendation = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation(); + } + PerformanceMaxOptInRecommendation.MergeFrom(other.PerformanceMaxOptInRecommendation); + break; + case RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation: + if (ImprovePerformanceMaxAdStrengthRecommendation == null) { + ImprovePerformanceMaxAdStrengthRecommendation = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation(); + } + ImprovePerformanceMaxAdStrengthRecommendation.MergeFrom(other.ImprovePerformanceMaxAdStrengthRecommendation); + break; + case RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation: + if (MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation == null) { + MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(); + } + MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation.MergeFrom(other.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation); + break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); @@ -2869,6 +3005,33 @@ public void MergeFrom(pb::CodedInputStream input) { LowerTargetRoasRecommendation = subBuilder; break; } + case 458: { + global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation subBuilder = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation(); + if (recommendationCase_ == RecommendationOneofCase.PerformanceMaxOptInRecommendation) { + subBuilder.MergeFrom(PerformanceMaxOptInRecommendation); + } + input.ReadMessage(subBuilder); + PerformanceMaxOptInRecommendation = subBuilder; + break; + } + case 466: { + global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation subBuilder = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation(); + if (recommendationCase_ == RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation) { + subBuilder.MergeFrom(ImprovePerformanceMaxAdStrengthRecommendation); + } + input.ReadMessage(subBuilder); + ImprovePerformanceMaxAdStrengthRecommendation = subBuilder; + break; + } + case 474: { + global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation subBuilder = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(); + if (recommendationCase_ == RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) { + subBuilder.MergeFrom(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation); + } + input.ReadMessage(subBuilder); + MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = subBuilder; + break; + } } } #endif @@ -3288,6 +3451,33 @@ public void MergeFrom(pb::CodedInputStream input) { LowerTargetRoasRecommendation = subBuilder; break; } + case 458: { + global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation subBuilder = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.PerformanceMaxOptInRecommendation(); + if (recommendationCase_ == RecommendationOneofCase.PerformanceMaxOptInRecommendation) { + subBuilder.MergeFrom(PerformanceMaxOptInRecommendation); + } + input.ReadMessage(subBuilder); + PerformanceMaxOptInRecommendation = subBuilder; + break; + } + case 466: { + global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation subBuilder = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.ImprovePerformanceMaxAdStrengthRecommendation(); + if (recommendationCase_ == RecommendationOneofCase.ImprovePerformanceMaxAdStrengthRecommendation) { + subBuilder.MergeFrom(ImprovePerformanceMaxAdStrengthRecommendation); + } + input.ReadMessage(subBuilder); + ImprovePerformanceMaxAdStrengthRecommendation = subBuilder; + break; + } + case 474: { + global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation subBuilder = new global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(); + if (recommendationCase_ == RecommendationOneofCase.MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation) { + subBuilder.MergeFrom(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation); + } + input.ReadMessage(subBuilder); + MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation = subBuilder; + break; + } } } } @@ -4869,6 +5059,7 @@ public KeywordRecommendation() { public KeywordRecommendation(KeywordRecommendation other) : this() { _hasBits0 = other._hasBits0; keyword_ = other.keyword_ != null ? other.keyword_.Clone() : null; + searchTerms_ = other.searchTerms_.Clone(); recommendedCpcBidMicros_ = other.recommendedCpcBidMicros_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -4894,6 +5085,21 @@ public KeywordRecommendation Clone() { } } + /// Field number for the "search_terms" field. + public const int SearchTermsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_searchTerms_codec + = pb::FieldCodec.ForMessage(34, global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation.Types.SearchTerm.Parser); + private readonly pbc::RepeatedField searchTerms_ = new pbc::RepeatedField(); + /// + /// Output only. A list of search terms this keyword matches. The same search + /// term may be repeated for multiple keywords. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField SearchTerms { + get { return searchTerms_; } + } + /// Field number for the "recommended_cpc_bid_micros" field. public const int RecommendedCpcBidMicrosFieldNumber = 3; private readonly static long RecommendedCpcBidMicrosDefaultValue = 0L; @@ -4940,6 +5146,7 @@ public bool Equals(KeywordRecommendation other) { return true; } if (!object.Equals(Keyword, other.Keyword)) return false; + if(!searchTerms_.Equals(other.searchTerms_)) return false; if (RecommendedCpcBidMicros != other.RecommendedCpcBidMicros) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4949,6 +5156,7 @@ public bool Equals(KeywordRecommendation other) { public override int GetHashCode() { int hash = 1; if (keyword_ != null) hash ^= Keyword.GetHashCode(); + hash ^= searchTerms_.GetHashCode(); if (HasRecommendedCpcBidMicros) hash ^= RecommendedCpcBidMicros.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); @@ -4976,6 +5184,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteInt64(RecommendedCpcBidMicros); } + searchTerms_.WriteTo(output, _repeated_searchTerms_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4994,6 +5203,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(24); output.WriteInt64(RecommendedCpcBidMicros); } + searchTerms_.WriteTo(ref output, _repeated_searchTerms_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5007,6 +5217,7 @@ public int CalculateSize() { if (keyword_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Keyword); } + size += searchTerms_.CalculateSize(_repeated_searchTerms_codec); if (HasRecommendedCpcBidMicros) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(RecommendedCpcBidMicros); } @@ -5028,6 +5239,7 @@ public void MergeFrom(KeywordRecommendation other) { } Keyword.MergeFrom(other.Keyword); } + searchTerms_.Add(other.searchTerms_); if (other.HasRecommendedCpcBidMicros) { RecommendedCpcBidMicros = other.RecommendedCpcBidMicros; } @@ -5057,6 +5269,10 @@ public void MergeFrom(pb::CodedInputStream input) { RecommendedCpcBidMicros = input.ReadInt64(); break; } + case 34: { + searchTerms_.AddEntriesFrom(input, _repeated_searchTerms_codec); + break; + } } } #endif @@ -5083,138 +5299,386 @@ public void MergeFrom(pb::CodedInputStream input) { RecommendedCpcBidMicros = input.ReadInt64(); break; } + case 34: { + searchTerms_.AddEntriesFrom(ref input, _repeated_searchTerms_codec); + break; + } } } } #endif - } - - /// - /// The text ad recommendation. - /// - public sealed partial class TextAdRecommendation : pb::IMessage - #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage - #endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextAdRecommendation()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - + #region Nested types + /// Container for nested types declared in the KeywordRecommendation message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Descriptor.NestedTypes[5]; } - } + public static partial class Types { + /// + /// Information about a search term as related to a keyword recommendation. + /// + public sealed partial class SearchTerm : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchTerm()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Types.KeywordRecommendation.Descriptor.NestedTypes[0]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAdRecommendation() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchTerm() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAdRecommendation(TextAdRecommendation other) : this() { - ad_ = other.ad_ != null ? other.ad_.Clone() : null; - creationDate_ = other.creationDate_; - autoApplyDate_ = other.autoApplyDate_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TextAdRecommendation Clone() { - return new TextAdRecommendation(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchTerm(SearchTerm other) : this() { + text_ = other.text_; + estimatedWeeklySearchCount_ = other.estimatedWeeklySearchCount_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "ad" field. - public const int AdFieldNumber = 1; - private global::Google.Ads.GoogleAds.V14.Resources.Ad ad_; - /// - /// Output only. Recommended ad. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Google.Ads.GoogleAds.V14.Resources.Ad Ad { - get { return ad_; } - set { - ad_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SearchTerm Clone() { + return new SearchTerm(this); + } - /// Field number for the "creation_date" field. - public const int CreationDateFieldNumber = 4; - private readonly static string CreationDateDefaultValue = ""; + /// Field number for the "text" field. + public const int TextFieldNumber = 1; + private string text_ = ""; + /// + /// Output only. The text of the search term. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Text { + get { return text_; } + set { + text_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } - private string creationDate_; - /// - /// Output only. Creation date of the recommended ad. - /// YYYY-MM-DD format, for example, 2018-04-17. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CreationDate { - get { return creationDate_ ?? CreationDateDefaultValue; } - set { - creationDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "creation_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCreationDate { - get { return creationDate_ != null; } - } - /// Clears the value of the "creation_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCreationDate() { - creationDate_ = null; - } + /// Field number for the "estimated_weekly_search_count" field. + public const int EstimatedWeeklySearchCountFieldNumber = 2; + private long estimatedWeeklySearchCount_; + /// + /// Output only. Estimated number of historical weekly searches for this + /// search term. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long EstimatedWeeklySearchCount { + get { return estimatedWeeklySearchCount_; } + set { + estimatedWeeklySearchCount_ = value; + } + } - /// Field number for the "auto_apply_date" field. - public const int AutoApplyDateFieldNumber = 5; - private readonly static string AutoApplyDateDefaultValue = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SearchTerm); + } - private string autoApplyDate_; - /// - /// Output only. Date, if present, is the earliest when the recommendation - /// will be auto applied. YYYY-MM-DD format, for example, 2018-04-17. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string AutoApplyDate { - get { return autoApplyDate_ ?? AutoApplyDateDefaultValue; } - set { - autoApplyDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "auto_apply_date" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAutoApplyDate { - get { return autoApplyDate_ != null; } - } - /// Clears the value of the "auto_apply_date" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAutoApplyDate() { - autoApplyDate_ = null; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SearchTerm other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Text != other.Text) return false; + if (EstimatedWeeklySearchCount != other.EstimatedWeeklySearchCount) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (Text.Length != 0) hash ^= Text.GetHashCode(); + if (EstimatedWeeklySearchCount != 0L) hash ^= EstimatedWeeklySearchCount.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (Text.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Text); + } + if (EstimatedWeeklySearchCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(EstimatedWeeklySearchCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Text.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Text); + } + if (EstimatedWeeklySearchCount != 0L) { + output.WriteRawTag(16); + output.WriteInt64(EstimatedWeeklySearchCount); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (Text.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); + } + if (EstimatedWeeklySearchCount != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(EstimatedWeeklySearchCount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SearchTerm other) { + if (other == null) { + return; + } + if (other.Text.Length != 0) { + Text = other.Text; + } + if (other.EstimatedWeeklySearchCount != 0L) { + EstimatedWeeklySearchCount = other.EstimatedWeeklySearchCount; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + Text = input.ReadString(); + break; + } + case 16: { + EstimatedWeeklySearchCount = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Text = input.ReadString(); + break; + } + case 16: { + EstimatedWeeklySearchCount = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + /// + /// The text ad recommendation. + /// + public sealed partial class TextAdRecommendation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TextAdRecommendation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Descriptor.NestedTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextAdRecommendation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextAdRecommendation(TextAdRecommendation other) : this() { + ad_ = other.ad_ != null ? other.ad_.Clone() : null; + creationDate_ = other.creationDate_; + autoApplyDate_ = other.autoApplyDate_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TextAdRecommendation Clone() { + return new TextAdRecommendation(this); + } + + /// Field number for the "ad" field. + public const int AdFieldNumber = 1; + private global::Google.Ads.GoogleAds.V14.Resources.Ad ad_; + /// + /// Output only. Recommended ad. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Resources.Ad Ad { + get { return ad_; } + set { + ad_ = value; + } + } + + /// Field number for the "creation_date" field. + public const int CreationDateFieldNumber = 4; + private readonly static string CreationDateDefaultValue = ""; + + private string creationDate_; + /// + /// Output only. Creation date of the recommended ad. + /// YYYY-MM-DD format, for example, 2018-04-17. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CreationDate { + get { return creationDate_ ?? CreationDateDefaultValue; } + set { + creationDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "creation_date" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCreationDate { + get { return creationDate_ != null; } + } + /// Clears the value of the "creation_date" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCreationDate() { + creationDate_ = null; + } + + /// Field number for the "auto_apply_date" field. + public const int AutoApplyDateFieldNumber = 5; + private readonly static string AutoApplyDateDefaultValue = ""; + + private string autoApplyDate_; + /// + /// Output only. Date, if present, is the earliest when the recommendation + /// will be auto applied. YYYY-MM-DD format, for example, 2018-04-17. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AutoApplyDate { + get { return autoApplyDate_ ?? AutoApplyDateDefaultValue; } + set { + autoApplyDate_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "auto_apply_date" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAutoApplyDate { + get { return autoApplyDate_ != null; } + } + /// Clears the value of the "auto_apply_date" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAutoApplyDate() { + autoApplyDate_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TextAdRecommendation); @@ -13094,7 +13558,8 @@ public long RecommendedNewAmountMicros { /// /// Output only. The date when the new budget would start being used. /// This field will be set for the following recommendation types: - /// FORECASTING_SET_TARGET_ROAS. YYYY-MM-DD format, for example, 2018-04-17. + /// FORECASTING_SET_TARGET_ROAS + /// YYYY-MM-DD format, for example, 2018-04-17. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -13286,6 +13751,553 @@ public void MergeFrom(pb::CodedInputStream input) { } + /// + /// The Performance Max Opt In recommendation. + /// + public sealed partial class PerformanceMaxOptInRecommendation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PerformanceMaxOptInRecommendation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Descriptor.NestedTypes[38]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformanceMaxOptInRecommendation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformanceMaxOptInRecommendation(PerformanceMaxOptInRecommendation other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PerformanceMaxOptInRecommendation Clone() { + return new PerformanceMaxOptInRecommendation(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PerformanceMaxOptInRecommendation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PerformanceMaxOptInRecommendation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PerformanceMaxOptInRecommendation other) { + if (other == null) { + return; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + } + } + } + #endif + + } + + /// + /// Recommendation to improve the asset group strength of a Performance Max + /// campaign to an "Excellent" rating. + /// + public sealed partial class ImprovePerformanceMaxAdStrengthRecommendation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ImprovePerformanceMaxAdStrengthRecommendation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Descriptor.NestedTypes[39]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ImprovePerformanceMaxAdStrengthRecommendation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ImprovePerformanceMaxAdStrengthRecommendation(ImprovePerformanceMaxAdStrengthRecommendation other) : this() { + assetGroup_ = other.assetGroup_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ImprovePerformanceMaxAdStrengthRecommendation Clone() { + return new ImprovePerformanceMaxAdStrengthRecommendation(this); + } + + /// Field number for the "asset_group" field. + public const int AssetGroupFieldNumber = 1; + private string assetGroup_ = ""; + /// + /// Output only. The asset group resource name. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AssetGroup { + get { return assetGroup_; } + set { + assetGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ImprovePerformanceMaxAdStrengthRecommendation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ImprovePerformanceMaxAdStrengthRecommendation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AssetGroup != other.AssetGroup) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (AssetGroup.Length != 0) hash ^= AssetGroup.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (AssetGroup.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AssetGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (AssetGroup.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AssetGroup); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (AssetGroup.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetGroup); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ImprovePerformanceMaxAdStrengthRecommendation other) { + if (other == null) { + return; + } + if (other.AssetGroup.Length != 0) { + AssetGroup = other.AssetGroup; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + AssetGroup = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + AssetGroup = input.ReadString(); + break; + } + } + } + } + #endif + + } + + /// + /// The Dynamic Search Ads to Performance Max migration recommendation. + /// + public sealed partial class MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Google.Ads.GoogleAds.V14.Resources.Recommendation.Descriptor.NestedTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation other) : this() { + applyLink_ = other.applyLink_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation Clone() { + return new MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation(this); + } + + /// Field number for the "apply_link" field. + public const int ApplyLinkFieldNumber = 1; + private string applyLink_ = ""; + /// + /// Output only. A link to the Google Ads UI where the customer can manually + /// apply the recommendation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ApplyLink { + get { return applyLink_; } + set { + applyLink_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ApplyLink != other.ApplyLink) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ApplyLink.Length != 0) hash ^= ApplyLink.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ApplyLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplyLink); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (ApplyLink.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ApplyLink); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ApplyLink.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ApplyLink); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(MigrateDynamicSearchAdsCampaignToPerformanceMaxRecommendation other) { + if (other == null) { + return; + } + if (other.ApplyLink.Length != 0) { + ApplyLink = other.ApplyLink; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + ApplyLink = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + ApplyLink = input.ReadString(); + break; + } + } + } + } + #endif + + } + } #endregion diff --git a/Google.Ads.GoogleAds/src/V14/RecommendationService.g.cs b/Google.Ads.GoogleAds/src/V14/RecommendationService.g.cs index 0500966dc..526ab549f 100755 --- a/Google.Ads.GoogleAds/src/V14/RecommendationService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/RecommendationService.g.cs @@ -5199,7 +5199,6 @@ public void MergeFrom(pb::CodedInputStream input) { public static partial class Types { /// /// Scope to apply the assets to. - /// Next ID: 4 /// public enum ApplyScope { /// diff --git a/Google.Ads.GoogleAds/src/V14/RecommendationType.g.cs b/Google.Ads.GoogleAds/src/V14/RecommendationType.g.cs index a5415997b..67c52d0c5 100755 --- a/Google.Ads.GoogleAds/src/V14/RecommendationType.g.cs +++ b/Google.Ads.GoogleAds/src/V14/RecommendationType.g.cs @@ -26,7 +26,7 @@ static RecommendationTypeReflection() { string.Concat( "Cjhnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvcmVjb21tZW5kYXRp", "b25fdHlwZS5wcm90bxIeZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1z", - "IsYKChZSZWNvbW1lbmRhdGlvblR5cGVFbnVtIqsKChJSZWNvbW1lbmRhdGlv", + "IscLChZSZWNvbW1lbmRhdGlvblR5cGVFbnVtIqwLChJSZWNvbW1lbmRhdGlv", "blR5cGUSDwoLVU5TUEVDSUZJRUQQABILCgdVTktOT1dOEAESEwoPQ0FNUEFJ", "R05fQlVER0VUEAISCwoHS0VZV09SRBADEgsKB1RFWFRfQUQQBBIVChFUQVJH", "RVRfQ1BBX09QVF9JThAFEh8KG01BWElNSVpFX0NPTlZFUlNJT05TX09QVF9J", @@ -56,12 +56,15 @@ static RecommendationTypeReflection() { "QVRFX1JFR1VMQVJfU0hPUFBJTkdfQ0FNUEFJR05fT0ZGRVJTX1RPX1BFUkZP", "Uk1BTkNFX01BWBAqEiIKHkRZTkFNSUNfSU1BR0VfRVhURU5TSU9OX09QVF9J", "ThArEhQKEFJBSVNFX1RBUkdFVF9DUEEQLBIVChFMT1dFUl9UQVJHRVRfUk9B", - "UxAtQvEBCiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zQhdS", - "ZWNvbW1lbmRhdGlvblR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9n", - "ZW5wcm90by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zO2Vu", - "dW1zogIDR0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0LkVudW1zygIe", - "R29vZ2xlXEFkc1xHb29nbGVBZHNcVjE0XEVudW1z6gIiR29vZ2xlOjpBZHM6", - "Okdvb2dsZUFkczo6VjE0OjpFbnVtc2IGcHJvdG8z")); + "UxAtEhoKFlBFUkZPUk1BTkNFX01BWF9PUFRfSU4QLhInCiNJTVBST1ZFX1BF", + "UkZPUk1BTkNFX01BWF9BRF9TVFJFTkdUSBAvEjoKNk1JR1JBVEVfRFlOQU1J", + "Q19TRUFSQ0hfQURTX0NBTVBBSUdOX1RPX1BFUkZPUk1BTkNFX01BWBAwQvEB", + "CiJjb20uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zQhdSZWNvbW1l", + "bmRhdGlvblR5cGVQcm90b1ABWkNnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90", + "by9nb29nbGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zO2VudW1zogID", + "R0FBqgIeR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0LkVudW1zygIeR29vZ2xl", + "XEFkc1xHb29nbGVBZHNcVjE0XEVudW1z6gIiR29vZ2xlOjpBZHM6Okdvb2ds", + "ZUFkczo6VjE0OjpFbnVtc2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -441,6 +444,20 @@ public enum RecommendationType { /// Recommendation to lower Target ROAS. /// [pbr::OriginalName("LOWER_TARGET_ROAS")] LowerTargetRoas = 45, + /// + /// Recommendation to opt into Performance Max campaigns. + /// + [pbr::OriginalName("PERFORMANCE_MAX_OPT_IN")] PerformanceMaxOptIn = 46, + /// + /// Recommendation to improve the asset group strength of a Performance Max + /// campaign to an "Excellent" rating. + /// + [pbr::OriginalName("IMPROVE_PERFORMANCE_MAX_AD_STRENGTH")] ImprovePerformanceMaxAdStrength = 47, + /// + /// Recommendation to migrate Dynamic Search Ads to Performance Max + /// campaigns. + /// + [pbr::OriginalName("MIGRATE_DYNAMIC_SEARCH_ADS_CAMPAIGN_TO_PERFORMANCE_MAX")] MigrateDynamicSearchAdsCampaignToPerformanceMax = 48, } } diff --git a/Google.Ads.GoogleAds/src/V14/RequestError.g.cs b/Google.Ads.GoogleAds/src/V14/RequestError.g.cs index fdf16ab34..c4d4abd36 100755 --- a/Google.Ads.GoogleAds/src/V14/RequestError.g.cs +++ b/Google.Ads.GoogleAds/src/V14/RequestError.g.cs @@ -25,8 +25,8 @@ static RequestErrorReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjNnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL3JlcXVlc3RfZXJy", - "b3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMi1AYK", - "EFJlcXVlc3RFcnJvckVudW0ivwYKDFJlcXVlc3RFcnJvchIPCgtVTlNQRUNJ", + "b3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lcnJvcnMi8QYK", + "EFJlcXVlc3RFcnJvckVudW0i3AYKDFJlcXVlc3RFcnJvchIPCgtVTlNQRUNJ", "RklFRBAAEgsKB1VOS05PV04QARIZChVSRVNPVVJDRV9OQU1FX01JU1NJTkcQ", "AxIbChdSRVNPVVJDRV9OQU1FX01BTEZPUk1FRBAEEhMKD0JBRF9SRVNPVVJD", "RV9JRBAREhcKE0lOVkFMSURfQ1VTVE9NRVJfSUQQEBIWChJPUEVSQVRJT05f", @@ -44,13 +44,14 @@ static RequestErrorReflection() { "V19GT1JfVkFMSURBVEVfT05MWV9SRVFVRVNUUxAeEikKJUlOQ09OU0lTVEVO", "VF9SRVRVUk5fU1VNTUFSWV9ST1dfVkFMVUUQHxIwCixUT1RBTF9SRVNVTFRT", "X0NPVU5UX05PVF9PUklHSU5BTExZX1JFUVVFU1RFRBAgEhoKFlJQQ19ERUFE", - "TElORV9UT09fU0hPUlQQIRIXChNVTlNVUFBPUlRFRF9WRVJTSU9OECZC8QEK", - "I2NvbS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZXJyb3JzQhFSZXF1ZXN0", - "RXJyb3JQcm90b1ABWkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29n", - "bGVhcGlzL2Fkcy9nb29nbGVhZHMvdjE0L2Vycm9ycztlcnJvcnOiAgNHQUGq", - "Ah9Hb29nbGUuQWRzLkdvb2dsZUFkcy5WMTQuRXJyb3JzygIfR29vZ2xlXEFk", - "c1xHb29nbGVBZHNcVjE0XEVycm9yc+oCI0dvb2dsZTo6QWRzOjpHb29nbGVB", - "ZHM6OlYxNDo6RXJyb3JzYgZwcm90bzM=")); + "TElORV9UT09fU0hPUlQQIRIXChNVTlNVUFBPUlRFRF9WRVJTSU9OECYSGwoX", + "Q0xPVURfUFJPSkVDVF9OT1RfRk9VTkQQJ0LxAQojY29tLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5lcnJvcnNCEVJlcXVlc3RFcnJvclByb3RvUAFaRWdv", + "b2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvYWRzL2dvb2ds", + "ZWFkcy92MTQvZXJyb3JzO2Vycm9yc6ICA0dBQaoCH0dvb2dsZS5BZHMuR29v", + "Z2xlQWRzLlYxNC5FcnJvcnPKAh9Hb29nbGVcQWRzXEdvb2dsZUFkc1xWMTRc", + "RXJyb3Jz6gIjR29vZ2xlOjpBZHM6Okdvb2dsZUFkczo6VjE0OjpFcnJvcnNi", + "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -333,6 +334,10 @@ public enum RequestError { /// This API version has been sunset and is no longer supported. /// [pbr::OriginalName("UNSUPPORTED_VERSION")] UnsupportedVersion = 38, + /// + /// The Google Cloud project in the request was not found. + /// + [pbr::OriginalName("CLOUD_PROJECT_NOT_FOUND")] CloudProjectNotFound = 39, } } diff --git a/Google.Ads.GoogleAds/src/V14/ResourceNames.cs b/Google.Ads.GoogleAds/src/V14/ResourceNames.cs index 50a2f9b88..211548349 100644 --- a/Google.Ads.GoogleAds/src/V14/ResourceNames.cs +++ b/Google.Ads.GoogleAds/src/V14/ResourceNames.cs @@ -13,10 +13,7 @@ // limitations under the License. using Google.Ads.Gax.Util; -using Google.Ads.GoogleAds.Util; -using Google.Protobuf.Reflection; using System; -using System.Linq; using System.Text; using static Google.Ads.GoogleAds.V14.Enums.AssetFieldTypeEnum.Types; using static Google.Ads.GoogleAds.V14.Enums.ConversionActionCategoryEnum.Types; @@ -27,10 +24,12 @@ using static Google.Ads.GoogleAds.V14.Enums.ProductBiddingCategoryLevelEnum.Types; using static Google.Ads.GoogleAds.V14.Enums.SimulationModificationMethodEnum.Types; using static Google.Ads.GoogleAds.V14.Enums.SimulationTypeEnum.Types; +using static Google.Ads.GoogleAds.V14.Resources.CampaignSearchTermInsightName; +using static Google.Ads.GoogleAds.V14.Resources.CustomerSearchTermInsightName; #pragma warning disable 1591 -namespace Google.Ads.GoogleAds.V14.Errors +namespace Google.Ads.GoogleAds.V14.Resources { /// /// Helper class to generate resource names for various entities. @@ -369,6 +368,13 @@ public static string CampaignLabel(long customerId, long campaignId, long labelI return $"customers/{customerId}/campaignLabels/{campaignId}~{labelId}"; } + public static string CampaignSearchTermInsight(long customerId, long campaignId, + long clusterId) + { + return CampaignSearchTermInsightName.Format(customerId.ToString(), + campaignId.ToString(), clusterId.ToString()); + } + public static string CampaignSharedSet(long customerId, long campaignId, long sharedSetId) { return $"customers/{customerId}/campaignSharedSets/{campaignId}~{sharedSetId}"; @@ -515,6 +521,12 @@ public static string CustomerNegativeCriteria(long customerId, long criterionId) return $"customers/{customerId}/customerNegativeCriteria/{criterionId}"; } + public static string CustomerSearchTermInsight(long customerId, long clusterId) + { + return CustomerSearchTermInsightName.Format(customerId.ToString(), + clusterId.ToString()); + } + public static string CustomerUserAccess(long customerId, long userId) { return $"customers/{customerId}/customerUserAccesses/{userId}"; diff --git a/Google.Ads.GoogleAds/src/V12/InternalError.g.cs b/Google.Ads.GoogleAds/src/V14/SearchTermInsightError.g.cs similarity index 62% rename from Google.Ads.GoogleAds/src/V12/InternalError.g.cs rename to Google.Ads.GoogleAds/src/V14/SearchTermInsightError.g.cs index 4fe137e72..5bea6caad 100755 --- a/Google.Ads.GoogleAds/src/V12/InternalError.g.cs +++ b/Google.Ads.GoogleAds/src/V14/SearchTermInsightError.g.cs @@ -1,6 +1,6 @@ // // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/ads/googleads/v12/errors/internal_error.proto +// source: google/ads/googleads/v14/errors/search_term_insight_error.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code @@ -9,37 +9,41 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Google.Ads.GoogleAds.V12.Errors { +namespace Google.Ads.GoogleAds.V14.Errors { - /// Holder for reflection information generated from google/ads/googleads/v12/errors/internal_error.proto - public static partial class InternalErrorReflection { + /// Holder for reflection information generated from google/ads/googleads/v14/errors/search_term_insight_error.proto + public static partial class SearchTermInsightErrorReflection { #region Descriptor - /// File descriptor for google/ads/googleads/v12/errors/internal_error.proto + /// File descriptor for google/ads/googleads/v14/errors/search_term_insight_error.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; - static InternalErrorReflection() { + static SearchTermInsightErrorReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( - "CjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTIvZXJyb3JzL2ludGVybmFsX2Vy", - "cm9yLnByb3RvEh9nb29nbGUuYWRzLmdvb2dsZWFkcy52MTIuZXJyb3JzIqEB", - "ChFJbnRlcm5hbEVycm9yRW51bSKLAQoNSW50ZXJuYWxFcnJvchIPCgtVTlNQ", - "RUNJRklFRBAAEgsKB1VOS05PV04QARISCg5JTlRFUk5BTF9FUlJPUhACEhwK", - "GEVSUk9SX0NPREVfTk9UX1BVQkxJU0hFRBADEhMKD1RSQU5TSUVOVF9FUlJP", - "UhAEEhUKEURFQURMSU5FX0VYQ0VFREVEEAVC8gEKI2NvbS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTIuZXJyb3JzQhJJbnRlcm5hbEVycm9yUHJvdG9QAVpF", + "Cj9nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZXJyb3JzL3NlYXJjaF90ZXJt", + "X2luc2lnaHRfZXJyb3IucHJvdG8SH2dvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5lcnJvcnMiwQIKGlNlYXJjaFRlcm1JbnNpZ2h0RXJyb3JFbnVtIqICChZT", + "ZWFyY2hUZXJtSW5zaWdodEVycm9yEg8KC1VOU1BFQ0lGSUVEEAASCwoHVU5L", + "Tk9XThABEicKI0ZJTFRFUklOR19OT1RfQUxMT1dFRF9XSVRIX1NFR01FTlRT", + "EAISIwofTElNSVRfTk9UX0FMTE9XRURfV0lUSF9TRUdNRU5UUxADEiIKHk1J", + "U1NJTkdfRklFTERfSU5fU0VMRUNUX0NMQVVTRRAEEiYKIlJFUVVJUkVTX0ZJ", + "TFRFUl9CWV9TSU5HTEVfUkVTT1VSQ0UQBRIlCiFTT1JUSU5HX05PVF9BTExP", + "V0VEX1dJVEhfU0VHTUVOVFMQBhIpCiVTVU1NQVJZX1JPV19OT1RfQUxMT1dF", + "RF9XSVRIX1NFR01FTlRTEAdC+wEKI2NvbS5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZXJyb3JzQhtTZWFyY2hUZXJtSW5zaWdodEVycm9yUHJvdG9QAVpF", "Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9hZHMvZ29v", - "Z2xlYWRzL3YxMi9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5H", - "b29nbGVBZHMuVjEyLkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", - "MlxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTI6OkVycm9y", + "Z2xlYWRzL3YxNC9lcnJvcnM7ZXJyb3JzogIDR0FBqgIfR29vZ2xlLkFkcy5H", + "b29nbGVBZHMuVjE0LkVycm9yc8oCH0dvb2dsZVxBZHNcR29vZ2xlQWRzXFYx", + "NFxFcnJvcnPqAiNHb29nbGU6OkFkczo6R29vZ2xlQWRzOjpWMTQ6OkVycm9y", "c2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V12.Errors.InternalErrorEnum), global::Google.Ads.GoogleAds.V12.Errors.InternalErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V12.Errors.InternalErrorEnum.Types.InternalError) }, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorEnum), global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorEnum.Parser, null, null, new[]{ typeof(global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorEnum.Types.SearchTermInsightError) }, null, null) })); } #endregion @@ -47,23 +51,23 @@ static InternalErrorReflection() { } #region Messages /// - /// Container for enum describing possible internal errors. + /// Container for enum describing possible search term insight errors. /// - public sealed partial class InternalErrorEnum : pb::IMessage + public sealed partial class SearchTermInsightErrorEnum : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InternalErrorEnum()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SearchTermInsightErrorEnum()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::Google.Ads.GoogleAds.V12.Errors.InternalErrorReflection.Descriptor.MessageTypes[0]; } + get { return global::Google.Ads.GoogleAds.V14.Errors.SearchTermInsightErrorReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -74,7 +78,7 @@ public sealed partial class InternalErrorEnum : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InternalErrorEnum() { + public SearchTermInsightErrorEnum() { OnConstruction(); } @@ -82,25 +86,25 @@ public InternalErrorEnum() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InternalErrorEnum(InternalErrorEnum other) : this() { + public SearchTermInsightErrorEnum(SearchTermInsightErrorEnum other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public InternalErrorEnum Clone() { - return new InternalErrorEnum(this); + public SearchTermInsightErrorEnum Clone() { + return new SearchTermInsightErrorEnum(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as InternalErrorEnum); + return Equals(other as SearchTermInsightErrorEnum); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(InternalErrorEnum other) { + public bool Equals(SearchTermInsightErrorEnum other) { if (ReferenceEquals(other, null)) { return false; } @@ -160,7 +164,7 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(InternalErrorEnum other) { + public void MergeFrom(SearchTermInsightErrorEnum other) { if (other == null) { return; } @@ -200,16 +204,16 @@ public void MergeFrom(pb::CodedInputStream input) { #endif #region Nested types - /// Container for nested types declared in the InternalErrorEnum message type. + /// Container for nested types declared in the SearchTermInsightErrorEnum message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// - /// Enum describing possible internal errors. + /// Enum describing possible search term insight errors. /// - public enum InternalError { + public enum SearchTermInsightError { /// - /// Enum unspecified. + /// Name unspecified. /// [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0, /// @@ -217,23 +221,29 @@ public enum InternalError { /// [pbr::OriginalName("UNKNOWN")] Unknown = 1, /// - /// Google Ads API encountered unexpected internal error. + /// Search term insights cannot be filtered by metrics when segmenting. /// - [pbr::OriginalName("INTERNAL_ERROR")] InternalError = 2, + [pbr::OriginalName("FILTERING_NOT_ALLOWED_WITH_SEGMENTS")] FilteringNotAllowedWithSegments = 2, /// - /// The intended error code doesn't exist in specified API version. It will - /// be released in a future API version. + /// Search term insights cannot have a LIMIT when segmenting. /// - [pbr::OriginalName("ERROR_CODE_NOT_PUBLISHED")] ErrorCodeNotPublished = 3, + [pbr::OriginalName("LIMIT_NOT_ALLOWED_WITH_SEGMENTS")] LimitNotAllowedWithSegments = 3, /// - /// Google Ads API encountered an unexpected transient error. The user - /// should retry their request in these cases. + /// A selected field requires another field to be selected with it. /// - [pbr::OriginalName("TRANSIENT_ERROR")] TransientError = 4, + [pbr::OriginalName("MISSING_FIELD_IN_SELECT_CLAUSE")] MissingFieldInSelectClause = 4, /// - /// The request took longer than a deadline. + /// A selected field/resource requires filtering by a single resource. /// - [pbr::OriginalName("DEADLINE_EXCEEDED")] DeadlineExceeded = 5, + [pbr::OriginalName("REQUIRES_FILTER_BY_SINGLE_RESOURCE")] RequiresFilterBySingleResource = 5, + /// + /// Search term insights cannot be sorted when segmenting. + /// + [pbr::OriginalName("SORTING_NOT_ALLOWED_WITH_SEGMENTS")] SortingNotAllowedWithSegments = 6, + /// + /// Search term insights cannot have a summary row when segmenting. + /// + [pbr::OriginalName("SUMMARY_ROW_NOT_ALLOWED_WITH_SEGMENTS")] SummaryRowNotAllowedWithSegments = 7, } } diff --git a/Google.Ads.GoogleAds/src/V14/Segments.g.cs b/Google.Ads.GoogleAds/src/V14/Segments.g.cs index b0cf65dd5..27520f272 100755 --- a/Google.Ads.GoogleAds/src/V14/Segments.g.cs +++ b/Google.Ads.GoogleAds/src/V14/Segments.g.cs @@ -39,204 +39,215 @@ static SegmentsReflection() { "aW9uX2xhZ19idWNrZXQucHJvdG8aSGdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", "NC9lbnVtcy9jb252ZXJzaW9uX29yX2FkanVzdG1lbnRfbGFnX2J1Y2tldC5w", "cm90bxpMZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2NvbnZlcnNp", - "b25fdmFsdWVfcnVsZV9wcmltYXJ5X2RpbWVuc2lvbi5wcm90bxowZ29vZ2xl", - "L2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2RheV9vZl93ZWVrLnByb3RvGitn", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvZGV2aWNlLnByb3RvGj9n", - "b29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvZXh0ZXJuYWxfY29udmVy", - "c2lvbl9zb3VyY2UucHJvdG8aPmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9l", - "bnVtcy9ob3RlbF9kYXRlX3NlbGVjdGlvbl90eXBlLnByb3RvGjdnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTQvZW51bXMvaG90ZWxfcHJpY2VfYnVja2V0LnBy", - "b3RvGjRnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvaG90ZWxfcmF0", - "ZV90eXBlLnByb3RvGjJnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMv", - "bW9udGhfb2ZfeWVhci5wcm90bxo1Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", - "L2VudW1zL3BsYWNlaG9sZGVyX3R5cGUucHJvdG8aNGdvb2dsZS9hZHMvZ29v", - "Z2xlYWRzL3YxNC9lbnVtcy9wcm9kdWN0X2NoYW5uZWwucHJvdG8aQGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9wcm9kdWN0X2NoYW5uZWxfZXhj", - "bHVzaXZpdHkucHJvdG8aNmdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVt", - "cy9wcm9kdWN0X2NvbmRpdGlvbi5wcm90bxo4Z29vZ2xlL2Fkcy9nb29nbGVh", - "ZHMvdjE0L2VudW1zL3JlY29tbWVuZGF0aW9uX3R5cGUucHJvdG8aRGdvb2ds", - "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9zZWFyY2hfZW5naW5lX3Jlc3Vs", - "dHNfcGFnZV90eXBlLnByb3RvGjtnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", - "ZW51bXMvc2VhcmNoX3Rlcm1fbWF0Y2hfdHlwZS5wcm90bxpAZ29vZ2xlL2Fk", - "cy9nb29nbGVhZHMvdjE0L2VudW1zL3NrX2FkX25ldHdvcmtfYWRfZXZlbnRf", - "dHlwZS5wcm90bxpFZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL3Nr", - "X2FkX25ldHdvcmtfYXR0cmlidXRpb25fY3JlZGl0LnByb3RvGjxnb29nbGUv", - "YWRzL2dvb2dsZWFkcy92MTQvZW51bXMvc2tfYWRfbmV0d29ya191c2VyX3R5", - "cGUucHJvdG8aKWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9zbG90", - "LnByb3RvGhlnb29nbGUvYXBpL3Jlc291cmNlLnByb3RvIso1CghTZWdtZW50", - "cxIhChNhY3Rpdml0eV9hY2NvdW50X2lkGJQBIAEoA0gAiAEBEh0KD2FjdGl2", - "aXR5X3JhdGluZxiVASABKANIAYgBARIiChRleHRlcm5hbF9hY3Rpdml0eV9p", - "ZBiWASABKAlIAogBARJlChNhZF9kZXN0aW5hdGlvbl90eXBlGIgBIAEoDjJH", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5BZERlc3RpbmF0aW9u", - "VHlwZUVudW0uQWREZXN0aW5hdGlvblR5cGUSWAoPYWRfbmV0d29ya190eXBl", - "GAMgASgOMj8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkFkTmV0", - "d29ya1R5cGVFbnVtLkFkTmV0d29ya1R5cGUSJAoWYXVjdGlvbl9pbnNpZ2h0", - "X2RvbWFpbhiRASABKAlIA4gBARJtCiJidWRnZXRfY2FtcGFpZ25fYXNzb2Np", - "YXRpb25fc3RhdHVzGIYBIAEoCzJALmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", - "NC5jb21tb24uQnVkZ2V0Q2FtcGFpZ25Bc3NvY2lhdGlvblN0YXR1cxJLCgpj", - "bGlja190eXBlGBogASgOMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVu", - "dW1zLkNsaWNrVHlwZUVudW0uQ2xpY2tUeXBlEk4KEWNvbnZlcnNpb25fYWN0", - "aW9uGHEgASgJQi76QSsKKWdvb2dsZWFkcy5nb29nbGVhcGlzLmNvbS9Db252", - "ZXJzaW9uQWN0aW9uSASIAQESeQoaY29udmVyc2lvbl9hY3Rpb25fY2F0ZWdv", - "cnkYNSABKA4yVS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQ29u", - "dmVyc2lvbkFjdGlvbkNhdGVnb3J5RW51bS5Db252ZXJzaW9uQWN0aW9uQ2F0", - "ZWdvcnkSIwoWY29udmVyc2lvbl9hY3Rpb25fbmFtZRhyIAEoCUgFiAEBEiIK", - "FWNvbnZlcnNpb25fYWRqdXN0bWVudBhzIAEoCEgGiAEBEowBCiFjb252ZXJz", - "aW9uX2F0dHJpYnV0aW9uX2V2ZW50X3R5cGUYAiABKA4yYS5nb29nbGUuYWRz", - "Lmdvb2dsZWFkcy52MTQuZW51bXMuQ29udmVyc2lvbkF0dHJpYnV0aW9uRXZl", - "bnRUeXBlRW51bS5Db252ZXJzaW9uQXR0cmlidXRpb25FdmVudFR5cGUSagoV", - "Y29udmVyc2lvbl9sYWdfYnVja2V0GDIgASgOMksuZ29vZ2xlLmFkcy5nb29n", - "bGVhZHMudjE0LmVudW1zLkNvbnZlcnNpb25MYWdCdWNrZXRFbnVtLkNvbnZl", - "cnNpb25MYWdCdWNrZXQSkAEKI2NvbnZlcnNpb25fb3JfYWRqdXN0bWVudF9s", - "YWdfYnVja2V0GDMgASgOMmMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVu", - "dW1zLkNvbnZlcnNpb25PckFkanVzdG1lbnRMYWdCdWNrZXRFbnVtLkNvbnZl", - "cnNpb25PckFkanVzdG1lbnRMYWdCdWNrZXQSEQoEZGF0ZRhPIAEoCUgHiAEB", - "EkwKC2RheV9vZl93ZWVrGAUgASgOMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LmVudW1zLkRheU9mV2Vla0VudW0uRGF5T2ZXZWVrEkEKBmRldmljZRgB", - "IAEoDjIxLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5EZXZpY2VF", - "bnVtLkRldmljZRJ5ChpleHRlcm5hbF9jb252ZXJzaW9uX3NvdXJjZRg3IAEo", - "DjJVLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5FeHRlcm5hbENv", - "bnZlcnNpb25Tb3VyY2VFbnVtLkV4dGVybmFsQ29udmVyc2lvblNvdXJjZRIf", - "ChJnZW9fdGFyZ2V0X2FpcnBvcnQYdCABKAlICIgBARIeChFnZW9fdGFyZ2V0", - "X2NhbnRvbhh1IAEoCUgJiAEBEhwKD2dlb190YXJnZXRfY2l0eRh2IAEoCUgK", - "iAEBEh8KEmdlb190YXJnZXRfY291bnRyeRh3IAEoCUgLiAEBEh4KEWdlb190", - "YXJnZXRfY291bnR5GHggASgJSAyIAQESIAoTZ2VvX3RhcmdldF9kaXN0cmlj", - "dBh5IAEoCUgNiAEBEh0KEGdlb190YXJnZXRfbWV0cm8YeiABKAlIDogBARIu", - "CiFnZW9fdGFyZ2V0X21vc3Rfc3BlY2lmaWNfbG9jYXRpb24YeyABKAlID4gB", - "ARIjChZnZW9fdGFyZ2V0X3Bvc3RhbF9jb2RlGHwgASgJSBCIAQESIAoTZ2Vv", - "X3RhcmdldF9wcm92aW5jZRh9IAEoCUgRiAEBEh4KEWdlb190YXJnZXRfcmVn", - "aW9uGH4gASgJSBKIAQESHQoQZ2VvX3RhcmdldF9zdGF0ZRh/IAEoCUgTiAEB", - "EicKGWhvdGVsX2Jvb2tpbmdfd2luZG93X2RheXMYhwEgASgDSBSIAQESHAoP", - "aG90ZWxfY2VudGVyX2lkGFAgASgDSBWIAQESIAoTaG90ZWxfY2hlY2tfaW5f", - "ZGF0ZRhRIAEoCUgWiAEBElsKGmhvdGVsX2NoZWNrX2luX2RheV9vZl93ZWVr", - "GAkgASgOMjcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkRheU9m", - "V2Vla0VudW0uRGF5T2ZXZWVrEhcKCmhvdGVsX2NpdHkYUiABKAlIF4gBARIY", - "Cgtob3RlbF9jbGFzcxhTIAEoBUgYiAEBEhoKDWhvdGVsX2NvdW50cnkYVCAB", - "KAlIGYgBARJ0Chlob3RlbF9kYXRlX3NlbGVjdGlvbl90eXBlGA0gASgOMlEu", - "Z29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkhvdGVsRGF0ZVNlbGVj", - "dGlvblR5cGVFbnVtLkhvdGVsRGF0ZVNlbGVjdGlvblR5cGUSIQoUaG90ZWxf", - "bGVuZ3RoX29mX3N0YXkYVSABKAVIGogBARIfChJob3RlbF9yYXRlX3J1bGVf", - "aWQYViABKAlIG4gBARJYCg9ob3RlbF9yYXRlX3R5cGUYSiABKA4yPy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuSG90ZWxSYXRlVHlwZUVudW0u", - "SG90ZWxSYXRlVHlwZRJhChJob3RlbF9wcmljZV9idWNrZXQYTiABKA4yRS5n", - "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuSG90ZWxQcmljZUJ1Y2tl", - "dEVudW0uSG90ZWxQcmljZUJ1Y2tldBIYCgtob3RlbF9zdGF0ZRhXIAEoCUgc", - "iAEBEhEKBGhvdXIYWCABKAVIHYgBARIqCh1pbnRlcmFjdGlvbl9vbl90aGlz", - "X2V4dGVuc2lvbhhZIAEoCEgeiAEBEjkKB2tleXdvcmQYPSABKAsyKC5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLktleXdvcmQSEgoFbW9udGgY", - "WiABKAlIH4gBARJSCg1tb250aF9vZl95ZWFyGBIgASgOMjsuZ29vZ2xlLmFk", - "cy5nb29nbGVhZHMudjE0LmVudW1zLk1vbnRoT2ZZZWFyRW51bS5Nb250aE9m", - "WWVhchIdChBwYXJ0bmVyX2hvdGVsX2lkGFsgASgJSCCIAQESXQoQcGxhY2Vo", - "b2xkZXJfdHlwZRgUIAEoDjJDLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5l", - "bnVtcy5QbGFjZWhvbGRlclR5cGVFbnVtLlBsYWNlaG9sZGVyVHlwZRIjChVw", - "cm9kdWN0X2FnZ3JlZ2F0b3JfaWQYhAEgASgDSCGIAQESLAofcHJvZHVjdF9i", - "aWRkaW5nX2NhdGVnb3J5X2xldmVsMRhcIAEoCUgiiAEBEiwKH3Byb2R1Y3Rf", - "YmlkZGluZ19jYXRlZ29yeV9sZXZlbDIYXSABKAlII4gBARIsCh9wcm9kdWN0", - "X2JpZGRpbmdfY2F0ZWdvcnlfbGV2ZWwzGF4gASgJSCSIAQESLAofcHJvZHVj", - "dF9iaWRkaW5nX2NhdGVnb3J5X2xldmVsNBhfIAEoCUgliAEBEiwKH3Byb2R1", - "Y3RfYmlkZGluZ19jYXRlZ29yeV9sZXZlbDUYYCABKAlIJogBARIaCg1wcm9k", - "dWN0X2JyYW5kGGEgASgJSCeIAQESWgoPcHJvZHVjdF9jaGFubmVsGB4gASgO", - "MkEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlByb2R1Y3RDaGFu", - "bmVsRW51bS5Qcm9kdWN0Q2hhbm5lbBJ8Chtwcm9kdWN0X2NoYW5uZWxfZXhj", - "bHVzaXZpdHkYHyABKA4yVy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51", - "bXMuUHJvZHVjdENoYW5uZWxFeGNsdXNpdml0eUVudW0uUHJvZHVjdENoYW5u", - "ZWxFeGNsdXNpdml0eRJgChFwcm9kdWN0X2NvbmRpdGlvbhggIAEoDjJFLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Qcm9kdWN0Q29uZGl0aW9u", - "RW51bS5Qcm9kdWN0Q29uZGl0aW9uEhwKD3Byb2R1Y3RfY291bnRyeRhiIAEo", - "CUgoiAEBEiYKGXByb2R1Y3RfY3VzdG9tX2F0dHJpYnV0ZTAYYyABKAlIKYgB", - "ARImChlwcm9kdWN0X2N1c3RvbV9hdHRyaWJ1dGUxGGQgASgJSCqIAQESJgoZ", - "cHJvZHVjdF9jdXN0b21fYXR0cmlidXRlMhhlIAEoCUgriAEBEiYKGXByb2R1", - "Y3RfY3VzdG9tX2F0dHJpYnV0ZTMYZiABKAlILIgBARImChlwcm9kdWN0X2N1", - "c3RvbV9hdHRyaWJ1dGU0GGcgASgJSC2IAQESIAoScHJvZHVjdF9mZWVkX2xh", - "YmVsGJMBIAEoCUguiAEBEhwKD3Byb2R1Y3RfaXRlbV9pZBhoIAEoCUgviAEB", - "Eh0KEHByb2R1Y3RfbGFuZ3VhZ2UYaSABKAlIMIgBARIhChNwcm9kdWN0X21l", - "cmNoYW50X2lkGIUBIAEoA0gxiAEBEh0KEHByb2R1Y3Rfc3RvcmVfaWQYaiAB", - "KAlIMogBARIaCg1wcm9kdWN0X3RpdGxlGGsgASgJSDOIAQESHAoPcHJvZHVj", - "dF90eXBlX2wxGGwgASgJSDSIAQESHAoPcHJvZHVjdF90eXBlX2wyGG0gASgJ", - "SDWIAQESHAoPcHJvZHVjdF90eXBlX2wzGG4gASgJSDaIAQESHAoPcHJvZHVj", - "dF90eXBlX2w0GG8gASgJSDeIAQESHAoPcHJvZHVjdF90eXBlX2w1GHAgASgJ", - "SDiIAQESFQoHcXVhcnRlchiAASABKAlIOYgBARJnChNyZWNvbW1lbmRhdGlv", - "bl90eXBlGIwBIAEoDjJJLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVt", - "cy5SZWNvbW1lbmRhdGlvblR5cGVFbnVtLlJlY29tbWVuZGF0aW9uVHlwZRKE", - "AQofc2VhcmNoX2VuZ2luZV9yZXN1bHRzX3BhZ2VfdHlwZRhGIAEoDjJbLmdv", - "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5TZWFyY2hFbmdpbmVSZXN1", - "bHRzUGFnZVR5cGVFbnVtLlNlYXJjaEVuZ2luZVJlc3VsdHNQYWdlVHlwZRJr", - "ChZzZWFyY2hfdGVybV9tYXRjaF90eXBlGBYgASgOMksuZ29vZ2xlLmFkcy5n", - "b29nbGVhZHMudjE0LmVudW1zLlNlYXJjaFRlcm1NYXRjaFR5cGVFbnVtLlNl", - "YXJjaFRlcm1NYXRjaFR5cGUSOwoEc2xvdBgXIAEoDjItLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5lbnVtcy5TbG90RW51bS5TbG90Ep0BCidjb252ZXJz", - "aW9uX3ZhbHVlX3J1bGVfcHJpbWFyeV9kaW1lbnNpb24YigEgASgOMmsuZ29v", - "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkNvbnZlcnNpb25WYWx1ZVJ1", - "bGVQcmltYXJ5RGltZW5zaW9uRW51bS5Db252ZXJzaW9uVmFsdWVSdWxlUHJp", - "bWFyeURpbWVuc2lvbhIVCgd3ZWJwYWdlGIEBIAEoCUg6iAEBEhIKBHdlZWsY", - "ggEgASgJSDuIAQESEgoEeWVhchiDASABKAVIPIgBARIsCh5za19hZF9uZXR3", - "b3JrX2NvbnZlcnNpb25fdmFsdWUYiQEgASgDSD2IAQESbQoXc2tfYWRfbmV0", - "d29ya191c2VyX3R5cGUYjQEgASgOMksuZ29vZ2xlLmFkcy5nb29nbGVhZHMu", - "djE0LmVudW1zLlNrQWROZXR3b3JrVXNlclR5cGVFbnVtLlNrQWROZXR3b3Jr", - "VXNlclR5cGUSdwobc2tfYWRfbmV0d29ya19hZF9ldmVudF90eXBlGI4BIAEo", - "DjJRLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Ta0FkTmV0d29y", - "a0FkRXZlbnRUeXBlRW51bS5Ta0FkTmV0d29ya0FkRXZlbnRUeXBlEl0KGHNr", - "X2FkX25ldHdvcmtfc291cmNlX2FwcBiPASABKAsyNS5nb29nbGUuYWRzLmdv", - "b2dsZWFkcy52MTQuY29tbW9uLlNrQWROZXR3b3JrU291cmNlQXBwSD6IAQES", - "iAEKIHNrX2FkX25ldHdvcmtfYXR0cmlidXRpb25fY3JlZGl0GJABIAEoDjJd", - "Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Ta0FkTmV0d29ya0F0", - "dHJpYnV0aW9uQ3JlZGl0RW51bS5Ta0FkTmV0d29ya0F0dHJpYnV0aW9uQ3Jl", - "ZGl0El8KGGFzc2V0X2ludGVyYWN0aW9uX3RhcmdldBiLASABKAsyNy5nb29n", - "bGUuYWRzLmdvb2dsZWFkcy52MTQuY29tbW9uLkFzc2V0SW50ZXJhY3Rpb25U", - "YXJnZXRIP4gBAUIWChRfYWN0aXZpdHlfYWNjb3VudF9pZEISChBfYWN0aXZp", - "dHlfcmF0aW5nQhcKFV9leHRlcm5hbF9hY3Rpdml0eV9pZEIZChdfYXVjdGlv", - "bl9pbnNpZ2h0X2RvbWFpbkIUChJfY29udmVyc2lvbl9hY3Rpb25CGQoXX2Nv", - "bnZlcnNpb25fYWN0aW9uX25hbWVCGAoWX2NvbnZlcnNpb25fYWRqdXN0bWVu", - "dEIHCgVfZGF0ZUIVChNfZ2VvX3RhcmdldF9haXJwb3J0QhQKEl9nZW9fdGFy", - "Z2V0X2NhbnRvbkISChBfZ2VvX3RhcmdldF9jaXR5QhUKE19nZW9fdGFyZ2V0", - "X2NvdW50cnlCFAoSX2dlb190YXJnZXRfY291bnR5QhYKFF9nZW9fdGFyZ2V0", - "X2Rpc3RyaWN0QhMKEV9nZW9fdGFyZ2V0X21ldHJvQiQKIl9nZW9fdGFyZ2V0", - "X21vc3Rfc3BlY2lmaWNfbG9jYXRpb25CGQoXX2dlb190YXJnZXRfcG9zdGFs", - "X2NvZGVCFgoUX2dlb190YXJnZXRfcHJvdmluY2VCFAoSX2dlb190YXJnZXRf", - "cmVnaW9uQhMKEV9nZW9fdGFyZ2V0X3N0YXRlQhwKGl9ob3RlbF9ib29raW5n", - "X3dpbmRvd19kYXlzQhIKEF9ob3RlbF9jZW50ZXJfaWRCFgoUX2hvdGVsX2No", - "ZWNrX2luX2RhdGVCDQoLX2hvdGVsX2NpdHlCDgoMX2hvdGVsX2NsYXNzQhAK", - "Dl9ob3RlbF9jb3VudHJ5QhcKFV9ob3RlbF9sZW5ndGhfb2Zfc3RheUIVChNf", - "aG90ZWxfcmF0ZV9ydWxlX2lkQg4KDF9ob3RlbF9zdGF0ZUIHCgVfaG91ckIg", - "Ch5faW50ZXJhY3Rpb25fb25fdGhpc19leHRlbnNpb25CCAoGX21vbnRoQhMK", - "EV9wYXJ0bmVyX2hvdGVsX2lkQhgKFl9wcm9kdWN0X2FnZ3JlZ2F0b3JfaWRC", - "IgogX3Byb2R1Y3RfYmlkZGluZ19jYXRlZ29yeV9sZXZlbDFCIgogX3Byb2R1", - "Y3RfYmlkZGluZ19jYXRlZ29yeV9sZXZlbDJCIgogX3Byb2R1Y3RfYmlkZGlu", - "Z19jYXRlZ29yeV9sZXZlbDNCIgogX3Byb2R1Y3RfYmlkZGluZ19jYXRlZ29y", - "eV9sZXZlbDRCIgogX3Byb2R1Y3RfYmlkZGluZ19jYXRlZ29yeV9sZXZlbDVC", - "EAoOX3Byb2R1Y3RfYnJhbmRCEgoQX3Byb2R1Y3RfY291bnRyeUIcChpfcHJv", - "ZHVjdF9jdXN0b21fYXR0cmlidXRlMEIcChpfcHJvZHVjdF9jdXN0b21fYXR0", - "cmlidXRlMUIcChpfcHJvZHVjdF9jdXN0b21fYXR0cmlidXRlMkIcChpfcHJv", - "ZHVjdF9jdXN0b21fYXR0cmlidXRlM0IcChpfcHJvZHVjdF9jdXN0b21fYXR0", - "cmlidXRlNEIVChNfcHJvZHVjdF9mZWVkX2xhYmVsQhIKEF9wcm9kdWN0X2l0", - "ZW1faWRCEwoRX3Byb2R1Y3RfbGFuZ3VhZ2VCFgoUX3Byb2R1Y3RfbWVyY2hh", - "bnRfaWRCEwoRX3Byb2R1Y3Rfc3RvcmVfaWRCEAoOX3Byb2R1Y3RfdGl0bGVC", - "EgoQX3Byb2R1Y3RfdHlwZV9sMUISChBfcHJvZHVjdF90eXBlX2wyQhIKEF9w", - "cm9kdWN0X3R5cGVfbDNCEgoQX3Byb2R1Y3RfdHlwZV9sNEISChBfcHJvZHVj", - "dF90eXBlX2w1QgoKCF9xdWFydGVyQgoKCF93ZWJwYWdlQgcKBV93ZWVrQgcK", - "BV95ZWFyQiEKH19za19hZF9uZXR3b3JrX2NvbnZlcnNpb25fdmFsdWVCGwoZ", - "X3NrX2FkX25ldHdvcmtfc291cmNlX2FwcEIbChlfYXNzZXRfaW50ZXJhY3Rp", - "b25fdGFyZ2V0In0KB0tleXdvcmQSHwoSYWRfZ3JvdXBfY3JpdGVyaW9uGAMg", - "ASgJSACIAQESOgoEaW5mbxgCIAEoCzIsLmdvb2dsZS5hZHMuZ29vZ2xlYWRz", - "LnYxNC5jb21tb24uS2V5d29yZEluZm9CFQoTX2FkX2dyb3VwX2NyaXRlcmlv", - "biK6AQofQnVkZ2V0Q2FtcGFpZ25Bc3NvY2lhdGlvblN0YXR1cxIVCghjYW1w", - "YWlnbhgBIAEoCUgAiAEBEnMKBnN0YXR1cxgCIAEoDjJjLmdvb2dsZS5hZHMu", - "Z29vZ2xlYWRzLnYxNC5lbnVtcy5CdWRnZXRDYW1wYWlnbkFzc29jaWF0aW9u", - "U3RhdHVzRW51bS5CdWRnZXRDYW1wYWlnbkFzc29jaWF0aW9uU3RhdHVzQgsK", - "CV9jYW1wYWlnbiJKChZBc3NldEludGVyYWN0aW9uVGFyZ2V0Eg0KBWFzc2V0", - "GAEgASgJEiEKGWludGVyYWN0aW9uX29uX3RoaXNfYXNzZXQYAiABKAgiYAoU", - "U2tBZE5ldHdvcmtTb3VyY2VBcHASKAobc2tfYWRfbmV0d29ya19zb3VyY2Vf", - "YXBwX2lkGAEgASgJSACIAQFCHgocX3NrX2FkX25ldHdvcmtfc291cmNlX2Fw", - "cF9pZELtAQojY29tLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb25C", - "DVNlZ21lbnRzUHJvdG9QAVpFZ29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8v", - "Z29vZ2xlYXBpcy9hZHMvZ29vZ2xlYWRzL3YxNC9jb21tb247Y29tbW9uogID", - "R0FBqgIfR29vZ2xlLkFkcy5Hb29nbGVBZHMuVjE0LkNvbW1vbsoCH0dvb2ds", - "ZVxBZHNcR29vZ2xlQWRzXFYxNFxDb21tb27qAiNHb29nbGU6OkFkczo6R29v", - "Z2xlQWRzOjpWMTQ6OkNvbW1vbmIGcHJvdG8z")); + "b25fdmFsdWVfcnVsZV9wcmltYXJ5X2RpbWVuc2lvbi5wcm90bxpZZ29vZ2xl", + "L2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2NvbnZlcnRpbmdfdXNlcl9wcmlv", + "cl9lbmdhZ2VtZW50X3R5cGVfYW5kX2x0dl9idWNrZXQucHJvdG8aMGdvb2ds", + "ZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9kYXlfb2Zfd2Vlay5wcm90bxor", + "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2RldmljZS5wcm90bxo/", + "Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2V4dGVybmFsX2NvbnZl", + "cnNpb25fc291cmNlLnByb3RvGj5nb29nbGUvYWRzL2dvb2dsZWFkcy92MTQv", + "ZW51bXMvaG90ZWxfZGF0ZV9zZWxlY3Rpb25fdHlwZS5wcm90bxo3Z29vZ2xl", + "L2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2hvdGVsX3ByaWNlX2J1Y2tldC5w", + "cm90bxo0Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL2hvdGVsX3Jh", + "dGVfdHlwZS5wcm90bxoyZ29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0L2VudW1z", + "L21vbnRoX29mX3llYXIucHJvdG8aNWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3Yx", + "NC9lbnVtcy9wbGFjZWhvbGRlcl90eXBlLnByb3RvGjRnb29nbGUvYWRzL2dv", + "b2dsZWFkcy92MTQvZW51bXMvcHJvZHVjdF9jaGFubmVsLnByb3RvGkBnb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvcHJvZHVjdF9jaGFubmVsX2V4", + "Y2x1c2l2aXR5LnByb3RvGjZnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51", + "bXMvcHJvZHVjdF9jb25kaXRpb24ucHJvdG8aOGdvb2dsZS9hZHMvZ29vZ2xl", + "YWRzL3YxNC9lbnVtcy9yZWNvbW1lbmRhdGlvbl90eXBlLnByb3RvGkRnb29n", + "bGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvc2VhcmNoX2VuZ2luZV9yZXN1", + "bHRzX3BhZ2VfdHlwZS5wcm90bxo7Z29vZ2xlL2Fkcy9nb29nbGVhZHMvdjE0", + "L2VudW1zL3NlYXJjaF90ZXJtX21hdGNoX3R5cGUucHJvdG8aQGdvb2dsZS9h", + "ZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9za19hZF9uZXR3b3JrX2FkX2V2ZW50", + "X3R5cGUucHJvdG8aRWdvb2dsZS9hZHMvZ29vZ2xlYWRzL3YxNC9lbnVtcy9z", + "a19hZF9uZXR3b3JrX2F0dHJpYnV0aW9uX2NyZWRpdC5wcm90bxo8Z29vZ2xl", + "L2Fkcy9nb29nbGVhZHMvdjE0L2VudW1zL3NrX2FkX25ldHdvcmtfdXNlcl90", + "eXBlLnByb3RvGilnb29nbGUvYWRzL2dvb2dsZWFkcy92MTQvZW51bXMvc2xv", + "dC5wcm90bxoZZ29vZ2xlL2FwaS9yZXNvdXJjZS5wcm90byLOOAoIU2VnbWVu", + "dHMSIQoTYWN0aXZpdHlfYWNjb3VudF9pZBiUASABKANIAIgBARIdCg9hY3Rp", + "dml0eV9yYXRpbmcYlQEgASgDSAGIAQESIgoUZXh0ZXJuYWxfYWN0aXZpdHlf", + "aWQYlgEgASgJSAKIAQESZQoTYWRfZGVzdGluYXRpb25fdHlwZRiIASABKA4y", + "Ry5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQWREZXN0aW5hdGlv", + "blR5cGVFbnVtLkFkRGVzdGluYXRpb25UeXBlElgKD2FkX25ldHdvcmtfdHlw", + "ZRgDIAEoDjI/Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5BZE5l", + "dHdvcmtUeXBlRW51bS5BZE5ldHdvcmtUeXBlEhYKCGFkX2dyb3VwGJ4BIAEo", + "CUgDiAEBEhkKC2Fzc2V0X2dyb3VwGJ8BIAEoCUgEiAEBEiQKFmF1Y3Rpb25f", + "aW5zaWdodF9kb21haW4YkQEgASgJSAWIAQESbQoiYnVkZ2V0X2NhbXBhaWdu", + "X2Fzc29jaWF0aW9uX3N0YXR1cxiGASABKAsyQC5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuY29tbW9uLkJ1ZGdldENhbXBhaWduQXNzb2NpYXRpb25TdGF0", + "dXMSFgoIY2FtcGFpZ24YnQEgASgJSAaIAQESSwoKY2xpY2tfdHlwZRgaIAEo", + "DjI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5DbGlja1R5cGVF", + "bnVtLkNsaWNrVHlwZRJOChFjb252ZXJzaW9uX2FjdGlvbhhxIAEoCUIu+kEr", + "Cilnb29nbGVhZHMuZ29vZ2xlYXBpcy5jb20vQ29udmVyc2lvbkFjdGlvbkgH", + "iAEBEnkKGmNvbnZlcnNpb25fYWN0aW9uX2NhdGVnb3J5GDUgASgOMlUuZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkNvbnZlcnNpb25BY3Rpb25D", + "YXRlZ29yeUVudW0uQ29udmVyc2lvbkFjdGlvbkNhdGVnb3J5EiMKFmNvbnZl", + "cnNpb25fYWN0aW9uX25hbWUYciABKAlICIgBARIiChVjb252ZXJzaW9uX2Fk", + "anVzdG1lbnQYcyABKAhICYgBARKMAQohY29udmVyc2lvbl9hdHRyaWJ1dGlv", + "bl9ldmVudF90eXBlGAIgASgOMmEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0", + "LmVudW1zLkNvbnZlcnNpb25BdHRyaWJ1dGlvbkV2ZW50VHlwZUVudW0uQ29u", + "dmVyc2lvbkF0dHJpYnV0aW9uRXZlbnRUeXBlEmoKFWNvbnZlcnNpb25fbGFn", + "X2J1Y2tldBgyIAEoDjJLLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVt", + "cy5Db252ZXJzaW9uTGFnQnVja2V0RW51bS5Db252ZXJzaW9uTGFnQnVja2V0", + "EpABCiNjb252ZXJzaW9uX29yX2FkanVzdG1lbnRfbGFnX2J1Y2tldBgzIAEo", + "DjJjLmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5Db252ZXJzaW9u", + "T3JBZGp1c3RtZW50TGFnQnVja2V0RW51bS5Db252ZXJzaW9uT3JBZGp1c3Rt", + "ZW50TGFnQnVja2V0EhEKBGRhdGUYTyABKAlICogBARJMCgtkYXlfb2Zfd2Vl", + "axgFIAEoDjI3Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5EYXlP", + "ZldlZWtFbnVtLkRheU9mV2VlaxJBCgZkZXZpY2UYASABKA4yMS5nb29nbGUu", + "YWRzLmdvb2dsZWFkcy52MTQuZW51bXMuRGV2aWNlRW51bS5EZXZpY2USeQoa", + "ZXh0ZXJuYWxfY29udmVyc2lvbl9zb3VyY2UYNyABKA4yVS5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZW51bXMuRXh0ZXJuYWxDb252ZXJzaW9uU291cmNl", + "RW51bS5FeHRlcm5hbENvbnZlcnNpb25Tb3VyY2USHwoSZ2VvX3RhcmdldF9h", + "aXJwb3J0GHQgASgJSAuIAQESHgoRZ2VvX3RhcmdldF9jYW50b24YdSABKAlI", + "DIgBARIcCg9nZW9fdGFyZ2V0X2NpdHkYdiABKAlIDYgBARIfChJnZW9fdGFy", + "Z2V0X2NvdW50cnkYdyABKAlIDogBARIeChFnZW9fdGFyZ2V0X2NvdW50eRh4", + "IAEoCUgPiAEBEiAKE2dlb190YXJnZXRfZGlzdHJpY3QYeSABKAlIEIgBARId", + "ChBnZW9fdGFyZ2V0X21ldHJvGHogASgJSBGIAQESLgohZ2VvX3RhcmdldF9t", + "b3N0X3NwZWNpZmljX2xvY2F0aW9uGHsgASgJSBKIAQESIwoWZ2VvX3Rhcmdl", + "dF9wb3N0YWxfY29kZRh8IAEoCUgTiAEBEiAKE2dlb190YXJnZXRfcHJvdmlu", + "Y2UYfSABKAlIFIgBARIeChFnZW9fdGFyZ2V0X3JlZ2lvbhh+IAEoCUgViAEB", + "Eh0KEGdlb190YXJnZXRfc3RhdGUYfyABKAlIFogBARInChlob3RlbF9ib29r", + "aW5nX3dpbmRvd19kYXlzGIcBIAEoA0gXiAEBEhwKD2hvdGVsX2NlbnRlcl9p", + "ZBhQIAEoA0gYiAEBEiAKE2hvdGVsX2NoZWNrX2luX2RhdGUYUSABKAlIGYgB", + "ARJbChpob3RlbF9jaGVja19pbl9kYXlfb2Zfd2VlaxgJIAEoDjI3Lmdvb2ds", + "ZS5hZHMuZ29vZ2xlYWRzLnYxNC5lbnVtcy5EYXlPZldlZWtFbnVtLkRheU9m", + "V2VlaxIXCgpob3RlbF9jaXR5GFIgASgJSBqIAQESGAoLaG90ZWxfY2xhc3MY", + "UyABKAVIG4gBARIaCg1ob3RlbF9jb3VudHJ5GFQgASgJSByIAQESdAoZaG90", + "ZWxfZGF0ZV9zZWxlY3Rpb25fdHlwZRgNIAEoDjJRLmdvb2dsZS5hZHMuZ29v", + "Z2xlYWRzLnYxNC5lbnVtcy5Ib3RlbERhdGVTZWxlY3Rpb25UeXBlRW51bS5I", + "b3RlbERhdGVTZWxlY3Rpb25UeXBlEiEKFGhvdGVsX2xlbmd0aF9vZl9zdGF5", + "GFUgASgFSB2IAQESHwoSaG90ZWxfcmF0ZV9ydWxlX2lkGFYgASgJSB6IAQES", + "WAoPaG90ZWxfcmF0ZV90eXBlGEogASgOMj8uZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmVudW1zLkhvdGVsUmF0ZVR5cGVFbnVtLkhvdGVsUmF0ZVR5cGUS", + "YQoSaG90ZWxfcHJpY2VfYnVja2V0GE4gASgOMkUuZ29vZ2xlLmFkcy5nb29n", + "bGVhZHMudjE0LmVudW1zLkhvdGVsUHJpY2VCdWNrZXRFbnVtLkhvdGVsUHJp", + "Y2VCdWNrZXQSGAoLaG90ZWxfc3RhdGUYVyABKAlIH4gBARIRCgRob3VyGFgg", + "ASgFSCCIAQESKgodaW50ZXJhY3Rpb25fb25fdGhpc19leHRlbnNpb24YWSAB", + "KAhIIYgBARI5CgdrZXl3b3JkGD0gASgLMiguZ29vZ2xlLmFkcy5nb29nbGVh", + "ZHMudjE0LmNvbW1vbi5LZXl3b3JkEhIKBW1vbnRoGFogASgJSCKIAQESUgoN", + "bW9udGhfb2ZfeWVhchgSIAEoDjI7Lmdvb2dsZS5hZHMuZ29vZ2xlYWRzLnYx", + "NC5lbnVtcy5Nb250aE9mWWVhckVudW0uTW9udGhPZlllYXISHQoQcGFydG5l", + "cl9ob3RlbF9pZBhbIAEoCUgjiAEBEl0KEHBsYWNlaG9sZGVyX3R5cGUYFCAB", + "KA4yQy5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuUGxhY2Vob2xk", + "ZXJUeXBlRW51bS5QbGFjZWhvbGRlclR5cGUSIwoVcHJvZHVjdF9hZ2dyZWdh", + "dG9yX2lkGIQBIAEoA0gkiAEBEiwKH3Byb2R1Y3RfYmlkZGluZ19jYXRlZ29y", + "eV9sZXZlbDEYXCABKAlIJYgBARIsCh9wcm9kdWN0X2JpZGRpbmdfY2F0ZWdv", + "cnlfbGV2ZWwyGF0gASgJSCaIAQESLAofcHJvZHVjdF9iaWRkaW5nX2NhdGVn", + "b3J5X2xldmVsMxheIAEoCUgniAEBEiwKH3Byb2R1Y3RfYmlkZGluZ19jYXRl", + "Z29yeV9sZXZlbDQYXyABKAlIKIgBARIsCh9wcm9kdWN0X2JpZGRpbmdfY2F0", + "ZWdvcnlfbGV2ZWw1GGAgASgJSCmIAQESGgoNcHJvZHVjdF9icmFuZBhhIAEo", + "CUgqiAEBEloKD3Byb2R1Y3RfY2hhbm5lbBgeIAEoDjJBLmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5lbnVtcy5Qcm9kdWN0Q2hhbm5lbEVudW0uUHJvZHVj", + "dENoYW5uZWwSfAobcHJvZHVjdF9jaGFubmVsX2V4Y2x1c2l2aXR5GB8gASgO", + "MlcuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlByb2R1Y3RDaGFu", + "bmVsRXhjbHVzaXZpdHlFbnVtLlByb2R1Y3RDaGFubmVsRXhjbHVzaXZpdHkS", + "YAoRcHJvZHVjdF9jb25kaXRpb24YICABKA4yRS5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZW51bXMuUHJvZHVjdENvbmRpdGlvbkVudW0uUHJvZHVjdENv", + "bmRpdGlvbhIcCg9wcm9kdWN0X2NvdW50cnkYYiABKAlIK4gBARImChlwcm9k", + "dWN0X2N1c3RvbV9hdHRyaWJ1dGUwGGMgASgJSCyIAQESJgoZcHJvZHVjdF9j", + "dXN0b21fYXR0cmlidXRlMRhkIAEoCUgtiAEBEiYKGXByb2R1Y3RfY3VzdG9t", + "X2F0dHJpYnV0ZTIYZSABKAlILogBARImChlwcm9kdWN0X2N1c3RvbV9hdHRy", + "aWJ1dGUzGGYgASgJSC+IAQESJgoZcHJvZHVjdF9jdXN0b21fYXR0cmlidXRl", + "NBhnIAEoCUgwiAEBEiAKEnByb2R1Y3RfZmVlZF9sYWJlbBiTASABKAlIMYgB", + "ARIcCg9wcm9kdWN0X2l0ZW1faWQYaCABKAlIMogBARIdChBwcm9kdWN0X2xh", + "bmd1YWdlGGkgASgJSDOIAQESIQoTcHJvZHVjdF9tZXJjaGFudF9pZBiFASAB", + "KANINIgBARIdChBwcm9kdWN0X3N0b3JlX2lkGGogASgJSDWIAQESGgoNcHJv", + "ZHVjdF90aXRsZRhrIAEoCUg2iAEBEhwKD3Byb2R1Y3RfdHlwZV9sMRhsIAEo", + "CUg3iAEBEhwKD3Byb2R1Y3RfdHlwZV9sMhhtIAEoCUg4iAEBEhwKD3Byb2R1", + "Y3RfdHlwZV9sMxhuIAEoCUg5iAEBEhwKD3Byb2R1Y3RfdHlwZV9sNBhvIAEo", + "CUg6iAEBEhwKD3Byb2R1Y3RfdHlwZV9sNRhwIAEoCUg7iAEBEhUKB3F1YXJ0", + "ZXIYgAEgASgJSDyIAQESZwoTcmVjb21tZW5kYXRpb25fdHlwZRiMASABKA4y", + "SS5nb29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuUmVjb21tZW5kYXRp", + "b25UeXBlRW51bS5SZWNvbW1lbmRhdGlvblR5cGUShAEKH3NlYXJjaF9lbmdp", + "bmVfcmVzdWx0c19wYWdlX3R5cGUYRiABKA4yWy5nb29nbGUuYWRzLmdvb2ds", + "ZWFkcy52MTQuZW51bXMuU2VhcmNoRW5naW5lUmVzdWx0c1BhZ2VUeXBlRW51", + "bS5TZWFyY2hFbmdpbmVSZXN1bHRzUGFnZVR5cGUSIAoSc2VhcmNoX3N1YmNh", + "dGVnb3J5GJsBIAEoCUg9iAEBEhkKC3NlYXJjaF90ZXJtGJwBIAEoCUg+iAEB", + "EmsKFnNlYXJjaF90ZXJtX21hdGNoX3R5cGUYFiABKA4ySy5nb29nbGUuYWRz", + "Lmdvb2dsZWFkcy52MTQuZW51bXMuU2VhcmNoVGVybU1hdGNoVHlwZUVudW0u", + "U2VhcmNoVGVybU1hdGNoVHlwZRI7CgRzbG90GBcgASgOMi0uZ29vZ2xlLmFk", + "cy5nb29nbGVhZHMudjE0LmVudW1zLlNsb3RFbnVtLlNsb3QSnQEKJ2NvbnZl", + "cnNpb25fdmFsdWVfcnVsZV9wcmltYXJ5X2RpbWVuc2lvbhiKASABKA4yay5n", + "b29nbGUuYWRzLmdvb2dsZWFkcy52MTQuZW51bXMuQ29udmVyc2lvblZhbHVl", + "UnVsZVByaW1hcnlEaW1lbnNpb25FbnVtLkNvbnZlcnNpb25WYWx1ZVJ1bGVQ", + "cmltYXJ5RGltZW5zaW9uEhUKB3dlYnBhZ2UYgQEgASgJSD+IAQESEgoEd2Vl", + "axiCASABKAlIQIgBARISCgR5ZWFyGIMBIAEoBUhBiAEBEiwKHnNrX2FkX25l", + "dHdvcmtfY29udmVyc2lvbl92YWx1ZRiJASABKANIQogBARJtChdza19hZF9u", + "ZXR3b3JrX3VzZXJfdHlwZRiNASABKA4ySy5nb29nbGUuYWRzLmdvb2dsZWFk", + "cy52MTQuZW51bXMuU2tBZE5ldHdvcmtVc2VyVHlwZUVudW0uU2tBZE5ldHdv", + "cmtVc2VyVHlwZRJ3Chtza19hZF9uZXR3b3JrX2FkX2V2ZW50X3R5cGUYjgEg", + "ASgOMlEuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlNrQWROZXR3", + "b3JrQWRFdmVudFR5cGVFbnVtLlNrQWROZXR3b3JrQWRFdmVudFR5cGUSXQoY", + "c2tfYWRfbmV0d29ya19zb3VyY2VfYXBwGI8BIAEoCzI1Lmdvb2dsZS5hZHMu", + "Z29vZ2xlYWRzLnYxNC5jb21tb24uU2tBZE5ldHdvcmtTb3VyY2VBcHBIQ4gB", + "ARKIAQogc2tfYWRfbmV0d29ya19hdHRyaWJ1dGlvbl9jcmVkaXQYkAEgASgO", + "Ml0uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLlNrQWROZXR3b3Jr", + "QXR0cmlidXRpb25DcmVkaXRFbnVtLlNrQWROZXR3b3JrQXR0cmlidXRpb25D", + "cmVkaXQSXwoYYXNzZXRfaW50ZXJhY3Rpb25fdGFyZ2V0GIsBIAEoCzI3Lmdv", + "b2dsZS5hZHMuZ29vZ2xlYWRzLnYxNC5jb21tb24uQXNzZXRJbnRlcmFjdGlv", + "blRhcmdldEhEiAEBEqgBCh5uZXdfdmVyc3VzX3JldHVybmluZ19jdXN0b21l", + "cnMYoAEgASgOMn8uZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVudW1zLkNv", + "bnZlcnRpbmdVc2VyUHJpb3JFbmdhZ2VtZW50VHlwZUFuZEx0dkJ1Y2tldEVu", + "dW0uQ29udmVydGluZ1VzZXJQcmlvckVuZ2FnZW1lbnRUeXBlQW5kTHR2QnVj", + "a2V0QhYKFF9hY3Rpdml0eV9hY2NvdW50X2lkQhIKEF9hY3Rpdml0eV9yYXRp", + "bmdCFwoVX2V4dGVybmFsX2FjdGl2aXR5X2lkQgsKCV9hZF9ncm91cEIOCgxf", + "YXNzZXRfZ3JvdXBCGQoXX2F1Y3Rpb25faW5zaWdodF9kb21haW5CCwoJX2Nh", + "bXBhaWduQhQKEl9jb252ZXJzaW9uX2FjdGlvbkIZChdfY29udmVyc2lvbl9h", + "Y3Rpb25fbmFtZUIYChZfY29udmVyc2lvbl9hZGp1c3RtZW50QgcKBV9kYXRl", + "QhUKE19nZW9fdGFyZ2V0X2FpcnBvcnRCFAoSX2dlb190YXJnZXRfY2FudG9u", + "QhIKEF9nZW9fdGFyZ2V0X2NpdHlCFQoTX2dlb190YXJnZXRfY291bnRyeUIU", + "ChJfZ2VvX3RhcmdldF9jb3VudHlCFgoUX2dlb190YXJnZXRfZGlzdHJpY3RC", + "EwoRX2dlb190YXJnZXRfbWV0cm9CJAoiX2dlb190YXJnZXRfbW9zdF9zcGVj", + "aWZpY19sb2NhdGlvbkIZChdfZ2VvX3RhcmdldF9wb3N0YWxfY29kZUIWChRf", + "Z2VvX3RhcmdldF9wcm92aW5jZUIUChJfZ2VvX3RhcmdldF9yZWdpb25CEwoR", + "X2dlb190YXJnZXRfc3RhdGVCHAoaX2hvdGVsX2Jvb2tpbmdfd2luZG93X2Rh", + "eXNCEgoQX2hvdGVsX2NlbnRlcl9pZEIWChRfaG90ZWxfY2hlY2tfaW5fZGF0", + "ZUINCgtfaG90ZWxfY2l0eUIOCgxfaG90ZWxfY2xhc3NCEAoOX2hvdGVsX2Nv", + "dW50cnlCFwoVX2hvdGVsX2xlbmd0aF9vZl9zdGF5QhUKE19ob3RlbF9yYXRl", + "X3J1bGVfaWRCDgoMX2hvdGVsX3N0YXRlQgcKBV9ob3VyQiAKHl9pbnRlcmFj", + "dGlvbl9vbl90aGlzX2V4dGVuc2lvbkIICgZfbW9udGhCEwoRX3BhcnRuZXJf", + "aG90ZWxfaWRCGAoWX3Byb2R1Y3RfYWdncmVnYXRvcl9pZEIiCiBfcHJvZHVj", + "dF9iaWRkaW5nX2NhdGVnb3J5X2xldmVsMUIiCiBfcHJvZHVjdF9iaWRkaW5n", + "X2NhdGVnb3J5X2xldmVsMkIiCiBfcHJvZHVjdF9iaWRkaW5nX2NhdGVnb3J5", + "X2xldmVsM0IiCiBfcHJvZHVjdF9iaWRkaW5nX2NhdGVnb3J5X2xldmVsNEIi", + "CiBfcHJvZHVjdF9iaWRkaW5nX2NhdGVnb3J5X2xldmVsNUIQCg5fcHJvZHVj", + "dF9icmFuZEISChBfcHJvZHVjdF9jb3VudHJ5QhwKGl9wcm9kdWN0X2N1c3Rv", + "bV9hdHRyaWJ1dGUwQhwKGl9wcm9kdWN0X2N1c3RvbV9hdHRyaWJ1dGUxQhwK", + "Gl9wcm9kdWN0X2N1c3RvbV9hdHRyaWJ1dGUyQhwKGl9wcm9kdWN0X2N1c3Rv", + "bV9hdHRyaWJ1dGUzQhwKGl9wcm9kdWN0X2N1c3RvbV9hdHRyaWJ1dGU0QhUK", + "E19wcm9kdWN0X2ZlZWRfbGFiZWxCEgoQX3Byb2R1Y3RfaXRlbV9pZEITChFf", + "cHJvZHVjdF9sYW5ndWFnZUIWChRfcHJvZHVjdF9tZXJjaGFudF9pZEITChFf", + "cHJvZHVjdF9zdG9yZV9pZEIQCg5fcHJvZHVjdF90aXRsZUISChBfcHJvZHVj", + "dF90eXBlX2wxQhIKEF9wcm9kdWN0X3R5cGVfbDJCEgoQX3Byb2R1Y3RfdHlw", + "ZV9sM0ISChBfcHJvZHVjdF90eXBlX2w0QhIKEF9wcm9kdWN0X3R5cGVfbDVC", + "CgoIX3F1YXJ0ZXJCFQoTX3NlYXJjaF9zdWJjYXRlZ29yeUIOCgxfc2VhcmNo", + "X3Rlcm1CCgoIX3dlYnBhZ2VCBwoFX3dlZWtCBwoFX3llYXJCIQofX3NrX2Fk", + "X25ldHdvcmtfY29udmVyc2lvbl92YWx1ZUIbChlfc2tfYWRfbmV0d29ya19z", + "b3VyY2VfYXBwQhsKGV9hc3NldF9pbnRlcmFjdGlvbl90YXJnZXQifQoHS2V5", + "d29yZBIfChJhZF9ncm91cF9jcml0ZXJpb24YAyABKAlIAIgBARI6CgRpbmZv", + "GAIgASgLMiwuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbi5LZXl3", + "b3JkSW5mb0IVChNfYWRfZ3JvdXBfY3JpdGVyaW9uIroBCh9CdWRnZXRDYW1w", + "YWlnbkFzc29jaWF0aW9uU3RhdHVzEhUKCGNhbXBhaWduGAEgASgJSACIAQES", + "cwoGc3RhdHVzGAIgASgOMmMuZ29vZ2xlLmFkcy5nb29nbGVhZHMudjE0LmVu", + "dW1zLkJ1ZGdldENhbXBhaWduQXNzb2NpYXRpb25TdGF0dXNFbnVtLkJ1ZGdl", + "dENhbXBhaWduQXNzb2NpYXRpb25TdGF0dXNCCwoJX2NhbXBhaWduIkoKFkFz", + "c2V0SW50ZXJhY3Rpb25UYXJnZXQSDQoFYXNzZXQYASABKAkSIQoZaW50ZXJh", + "Y3Rpb25fb25fdGhpc19hc3NldBgCIAEoCCJgChRTa0FkTmV0d29ya1NvdXJj", + "ZUFwcBIoChtza19hZF9uZXR3b3JrX3NvdXJjZV9hcHBfaWQYASABKAlIAIgB", + "AUIeChxfc2tfYWRfbmV0d29ya19zb3VyY2VfYXBwX2lkQu0BCiNjb20uZ29v", + "Z2xlLmFkcy5nb29nbGVhZHMudjE0LmNvbW1vbkINU2VnbWVudHNQcm90b1AB", + "WkVnb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90by9nb29nbGVhcGlzL2Fkcy9n", + "b29nbGVhZHMvdjE0L2NvbW1vbjtjb21tb26iAgNHQUGqAh9Hb29nbGUuQWRz", + "Lkdvb2dsZUFkcy5WMTQuQ29tbW9uygIfR29vZ2xlXEFkc1xHb29nbGVBZHNc", + "VjE0XENvbW1vbuoCI0dvb2dsZTo6QWRzOjpHb29nbGVBZHM6OlYxNDo6Q29t", + "bW9uYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AdDestinationTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AdNetworkTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.BudgetCampaignAssociationStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ClickTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionActionCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionAttributionEventTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionLagBucketReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionOrAdjustmentLagBucketReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionValueRulePrimaryDimensionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.DayOfWeekReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ExternalConversionSourceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.HotelDateSelectionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.HotelPriceBucketReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.HotelRateTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.MonthOfYearReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductChannelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductChannelExclusivityReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductConditionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.RecommendationTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SearchEngineResultsPageTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SearchTermMatchTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SkAdNetworkAdEventTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SkAdNetworkAttributionCreditReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SkAdNetworkUserTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SlotReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::Google.Ads.GoogleAds.V14.Common.CriteriaReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AdDestinationTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.AdNetworkTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.BudgetCampaignAssociationStatusReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ClickTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionActionCategoryReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionAttributionEventTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionLagBucketReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionOrAdjustmentLagBucketReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConversionValueRulePrimaryDimensionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.DayOfWeekReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.DeviceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ExternalConversionSourceReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.HotelDateSelectionTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.HotelPriceBucketReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.HotelRateTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.MonthOfYearReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.PlaceholderTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductChannelReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductChannelExclusivityReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.ProductConditionReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.RecommendationTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SearchEngineResultsPageTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SearchTermMatchTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SkAdNetworkAdEventTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SkAdNetworkAttributionCreditReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SkAdNetworkUserTypeReflection.Descriptor, global::Google.Ads.GoogleAds.V14.Enums.SlotReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.Segments), global::Google.Ads.GoogleAds.V14.Common.Segments.Parser, new[]{ "ActivityAccountId", "ActivityRating", "ExternalActivityId", "AdDestinationType", "AdNetworkType", "AuctionInsightDomain", "BudgetCampaignAssociationStatus", "ClickType", "ConversionAction", "ConversionActionCategory", "ConversionActionName", "ConversionAdjustment", "ConversionAttributionEventType", "ConversionLagBucket", "ConversionOrAdjustmentLagBucket", "Date", "DayOfWeek", "Device", "ExternalConversionSource", "GeoTargetAirport", "GeoTargetCanton", "GeoTargetCity", "GeoTargetCountry", "GeoTargetCounty", "GeoTargetDistrict", "GeoTargetMetro", "GeoTargetMostSpecificLocation", "GeoTargetPostalCode", "GeoTargetProvince", "GeoTargetRegion", "GeoTargetState", "HotelBookingWindowDays", "HotelCenterId", "HotelCheckInDate", "HotelCheckInDayOfWeek", "HotelCity", "HotelClass", "HotelCountry", "HotelDateSelectionType", "HotelLengthOfStay", "HotelRateRuleId", "HotelRateType", "HotelPriceBucket", "HotelState", "Hour", "InteractionOnThisExtension", "Keyword", "Month", "MonthOfYear", "PartnerHotelId", "PlaceholderType", "ProductAggregatorId", "ProductBiddingCategoryLevel1", "ProductBiddingCategoryLevel2", "ProductBiddingCategoryLevel3", "ProductBiddingCategoryLevel4", "ProductBiddingCategoryLevel5", "ProductBrand", "ProductChannel", "ProductChannelExclusivity", "ProductCondition", "ProductCountry", "ProductCustomAttribute0", "ProductCustomAttribute1", "ProductCustomAttribute2", "ProductCustomAttribute3", "ProductCustomAttribute4", "ProductFeedLabel", "ProductItemId", "ProductLanguage", "ProductMerchantId", "ProductStoreId", "ProductTitle", "ProductTypeL1", "ProductTypeL2", "ProductTypeL3", "ProductTypeL4", "ProductTypeL5", "Quarter", "RecommendationType", "SearchEngineResultsPageType", "SearchTermMatchType", "Slot", "ConversionValueRulePrimaryDimension", "Webpage", "Week", "Year", "SkAdNetworkConversionValue", "SkAdNetworkUserType", "SkAdNetworkAdEventType", "SkAdNetworkSourceApp", "SkAdNetworkAttributionCredit", "AssetInteractionTarget" }, new[]{ "ActivityAccountId", "ActivityRating", "ExternalActivityId", "AuctionInsightDomain", "ConversionAction", "ConversionActionName", "ConversionAdjustment", "Date", "GeoTargetAirport", "GeoTargetCanton", "GeoTargetCity", "GeoTargetCountry", "GeoTargetCounty", "GeoTargetDistrict", "GeoTargetMetro", "GeoTargetMostSpecificLocation", "GeoTargetPostalCode", "GeoTargetProvince", "GeoTargetRegion", "GeoTargetState", "HotelBookingWindowDays", "HotelCenterId", "HotelCheckInDate", "HotelCity", "HotelClass", "HotelCountry", "HotelLengthOfStay", "HotelRateRuleId", "HotelState", "Hour", "InteractionOnThisExtension", "Month", "PartnerHotelId", "ProductAggregatorId", "ProductBiddingCategoryLevel1", "ProductBiddingCategoryLevel2", "ProductBiddingCategoryLevel3", "ProductBiddingCategoryLevel4", "ProductBiddingCategoryLevel5", "ProductBrand", "ProductCountry", "ProductCustomAttribute0", "ProductCustomAttribute1", "ProductCustomAttribute2", "ProductCustomAttribute3", "ProductCustomAttribute4", "ProductFeedLabel", "ProductItemId", "ProductLanguage", "ProductMerchantId", "ProductStoreId", "ProductTitle", "ProductTypeL1", "ProductTypeL2", "ProductTypeL3", "ProductTypeL4", "ProductTypeL5", "Quarter", "Webpage", "Week", "Year", "SkAdNetworkConversionValue", "SkAdNetworkSourceApp", "AssetInteractionTarget" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.Segments), global::Google.Ads.GoogleAds.V14.Common.Segments.Parser, new[]{ "ActivityAccountId", "ActivityRating", "ExternalActivityId", "AdDestinationType", "AdNetworkType", "AdGroup", "AssetGroup", "AuctionInsightDomain", "BudgetCampaignAssociationStatus", "Campaign", "ClickType", "ConversionAction", "ConversionActionCategory", "ConversionActionName", "ConversionAdjustment", "ConversionAttributionEventType", "ConversionLagBucket", "ConversionOrAdjustmentLagBucket", "Date", "DayOfWeek", "Device", "ExternalConversionSource", "GeoTargetAirport", "GeoTargetCanton", "GeoTargetCity", "GeoTargetCountry", "GeoTargetCounty", "GeoTargetDistrict", "GeoTargetMetro", "GeoTargetMostSpecificLocation", "GeoTargetPostalCode", "GeoTargetProvince", "GeoTargetRegion", "GeoTargetState", "HotelBookingWindowDays", "HotelCenterId", "HotelCheckInDate", "HotelCheckInDayOfWeek", "HotelCity", "HotelClass", "HotelCountry", "HotelDateSelectionType", "HotelLengthOfStay", "HotelRateRuleId", "HotelRateType", "HotelPriceBucket", "HotelState", "Hour", "InteractionOnThisExtension", "Keyword", "Month", "MonthOfYear", "PartnerHotelId", "PlaceholderType", "ProductAggregatorId", "ProductBiddingCategoryLevel1", "ProductBiddingCategoryLevel2", "ProductBiddingCategoryLevel3", "ProductBiddingCategoryLevel4", "ProductBiddingCategoryLevel5", "ProductBrand", "ProductChannel", "ProductChannelExclusivity", "ProductCondition", "ProductCountry", "ProductCustomAttribute0", "ProductCustomAttribute1", "ProductCustomAttribute2", "ProductCustomAttribute3", "ProductCustomAttribute4", "ProductFeedLabel", "ProductItemId", "ProductLanguage", "ProductMerchantId", "ProductStoreId", "ProductTitle", "ProductTypeL1", "ProductTypeL2", "ProductTypeL3", "ProductTypeL4", "ProductTypeL5", "Quarter", "RecommendationType", "SearchEngineResultsPageType", "SearchSubcategory", "SearchTerm", "SearchTermMatchType", "Slot", "ConversionValueRulePrimaryDimension", "Webpage", "Week", "Year", "SkAdNetworkConversionValue", "SkAdNetworkUserType", "SkAdNetworkAdEventType", "SkAdNetworkSourceApp", "SkAdNetworkAttributionCredit", "AssetInteractionTarget", "NewVersusReturningCustomers" }, new[]{ "ActivityAccountId", "ActivityRating", "ExternalActivityId", "AdGroup", "AssetGroup", "AuctionInsightDomain", "Campaign", "ConversionAction", "ConversionActionName", "ConversionAdjustment", "Date", "GeoTargetAirport", "GeoTargetCanton", "GeoTargetCity", "GeoTargetCountry", "GeoTargetCounty", "GeoTargetDistrict", "GeoTargetMetro", "GeoTargetMostSpecificLocation", "GeoTargetPostalCode", "GeoTargetProvince", "GeoTargetRegion", "GeoTargetState", "HotelBookingWindowDays", "HotelCenterId", "HotelCheckInDate", "HotelCity", "HotelClass", "HotelCountry", "HotelLengthOfStay", "HotelRateRuleId", "HotelState", "Hour", "InteractionOnThisExtension", "Month", "PartnerHotelId", "ProductAggregatorId", "ProductBiddingCategoryLevel1", "ProductBiddingCategoryLevel2", "ProductBiddingCategoryLevel3", "ProductBiddingCategoryLevel4", "ProductBiddingCategoryLevel5", "ProductBrand", "ProductCountry", "ProductCustomAttribute0", "ProductCustomAttribute1", "ProductCustomAttribute2", "ProductCustomAttribute3", "ProductCustomAttribute4", "ProductFeedLabel", "ProductItemId", "ProductLanguage", "ProductMerchantId", "ProductStoreId", "ProductTitle", "ProductTypeL1", "ProductTypeL2", "ProductTypeL3", "ProductTypeL4", "ProductTypeL5", "Quarter", "SearchSubcategory", "SearchTerm", "Webpage", "Week", "Year", "SkAdNetworkConversionValue", "SkAdNetworkSourceApp", "AssetInteractionTarget" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.Keyword), global::Google.Ads.GoogleAds.V14.Common.Keyword.Parser, new[]{ "AdGroupCriterion", "Info" }, new[]{ "AdGroupCriterion" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.BudgetCampaignAssociationStatus), global::Google.Ads.GoogleAds.V14.Common.BudgetCampaignAssociationStatus.Parser, new[]{ "Campaign", "Status" }, new[]{ "Campaign" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Ads.GoogleAds.V14.Common.AssetInteractionTarget), global::Google.Ads.GoogleAds.V14.Common.AssetInteractionTarget.Parser, new[]{ "Asset", "InteractionOnThisAsset" }, null, null, null, null), @@ -291,8 +302,11 @@ public Segments(Segments other) : this() { externalActivityId_ = other.externalActivityId_; adDestinationType_ = other.adDestinationType_; adNetworkType_ = other.adNetworkType_; + adGroup_ = other.adGroup_; + assetGroup_ = other.assetGroup_; auctionInsightDomain_ = other.auctionInsightDomain_; budgetCampaignAssociationStatus_ = other.budgetCampaignAssociationStatus_ != null ? other.budgetCampaignAssociationStatus_.Clone() : null; + campaign_ = other.campaign_; clickType_ = other.clickType_; conversionAction_ = other.conversionAction_; conversionActionCategory_ = other.conversionActionCategory_; @@ -367,6 +381,8 @@ public Segments(Segments other) : this() { quarter_ = other.quarter_; recommendationType_ = other.recommendationType_; searchEngineResultsPageType_ = other.searchEngineResultsPageType_; + searchSubcategory_ = other.searchSubcategory_; + searchTerm_ = other.searchTerm_; searchTermMatchType_ = other.searchTermMatchType_; slot_ = other.slot_; conversionValueRulePrimaryDimension_ = other.conversionValueRulePrimaryDimension_; @@ -379,6 +395,7 @@ public Segments(Segments other) : this() { skAdNetworkSourceApp_ = other.skAdNetworkSourceApp_ != null ? other.skAdNetworkSourceApp_.Clone() : null; skAdNetworkAttributionCredit_ = other.skAdNetworkAttributionCredit_; assetInteractionTarget_ = other.assetInteractionTarget_ != null ? other.assetInteractionTarget_.Clone() : null; + newVersusReturningCustomers_ = other.newVersusReturningCustomers_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -507,6 +524,64 @@ public void ClearExternalActivityId() { } } + /// Field number for the "ad_group" field. + public const int AdGroupFieldNumber = 158; + private readonly static string AdGroupDefaultValue = ""; + + private string adGroup_; + /// + /// Resource name of the ad group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AdGroup { + get { return adGroup_ ?? AdGroupDefaultValue; } + set { + adGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "ad_group" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAdGroup { + get { return adGroup_ != null; } + } + /// Clears the value of the "ad_group" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAdGroup() { + adGroup_ = null; + } + + /// Field number for the "asset_group" field. + public const int AssetGroupFieldNumber = 159; + private readonly static string AssetGroupDefaultValue = ""; + + private string assetGroup_; + /// + /// Resource name of the asset group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AssetGroup { + get { return assetGroup_ ?? AssetGroupDefaultValue; } + set { + assetGroup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "asset_group" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasAssetGroup { + get { return assetGroup_ != null; } + } + /// Clears the value of the "asset_group" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearAssetGroup() { + assetGroup_ = null; + } + /// Field number for the "auction_insight_domain" field. public const int AuctionInsightDomainFieldNumber = 145; private readonly static string AuctionInsightDomainDefaultValue = ""; @@ -551,6 +626,35 @@ public void ClearAuctionInsightDomain() { } } + /// Field number for the "campaign" field. + public const int CampaignFieldNumber = 157; + private readonly static string CampaignDefaultValue = ""; + + private string campaign_; + /// + /// Resource name of the campaign. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Campaign { + get { return campaign_ ?? CampaignDefaultValue; } + set { + campaign_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "campaign" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasCampaign { + get { return campaign_ != null; } + } + /// Clears the value of the "campaign" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearCampaign() { + campaign_ = null; + } + /// Field number for the "click_type" field. public const int ClickTypeFieldNumber = 26; private global::Google.Ads.GoogleAds.V14.Enums.ClickTypeEnum.Types.ClickType clickType_ = global::Google.Ads.GoogleAds.V14.Enums.ClickTypeEnum.Types.ClickType.Unspecified; @@ -2440,6 +2544,65 @@ public void ClearQuarter() { } } + /// Field number for the "search_subcategory" field. + public const int SearchSubcategoryFieldNumber = 155; + private readonly static string SearchSubcategoryDefaultValue = ""; + + private string searchSubcategory_; + /// + /// A search term subcategory. An empty string denotes the catch-all + /// subcategory for search terms that didn't fit into another subcategory. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SearchSubcategory { + get { return searchSubcategory_ ?? SearchSubcategoryDefaultValue; } + set { + searchSubcategory_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "search_subcategory" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSearchSubcategory { + get { return searchSubcategory_ != null; } + } + /// Clears the value of the "search_subcategory" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSearchSubcategory() { + searchSubcategory_ = null; + } + + /// Field number for the "search_term" field. + public const int SearchTermFieldNumber = 156; + private readonly static string SearchTermDefaultValue = ""; + + private string searchTerm_; + /// + /// A search term. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SearchTerm { + get { return searchTerm_ ?? SearchTermDefaultValue; } + set { + searchTerm_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "search_term" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool HasSearchTerm { + get { return searchTerm_ != null; } + } + /// Clears the value of the "search_term" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearSearchTerm() { + searchTerm_ = null; + } + /// Field number for the "search_term_match_type" field. public const int SearchTermMatchTypeFieldNumber = 22; private global::Google.Ads.GoogleAds.V14.Enums.SearchTermMatchTypeEnum.Types.SearchTermMatchType searchTermMatchType_ = global::Google.Ads.GoogleAds.V14.Enums.SearchTermMatchTypeEnum.Types.SearchTermMatchType.Unspecified; @@ -2698,6 +2861,23 @@ public void ClearSkAdNetworkConversionValue() { } } + /// Field number for the "new_versus_returning_customers" field. + public const int NewVersusReturningCustomersFieldNumber = 160; + private global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket newVersusReturningCustomers_ = global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket.Unspecified; + /// + /// This is for segmenting conversions by whether the user is a new customer + /// or a returning customer. This segmentation is typically used to measure + /// the impact of customer acquisition goal. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket NewVersusReturningCustomers { + get { return newVersusReturningCustomers_; } + set { + newVersusReturningCustomers_ = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -2718,8 +2898,11 @@ public bool Equals(Segments other) { if (ExternalActivityId != other.ExternalActivityId) return false; if (AdDestinationType != other.AdDestinationType) return false; if (AdNetworkType != other.AdNetworkType) return false; + if (AdGroup != other.AdGroup) return false; + if (AssetGroup != other.AssetGroup) return false; if (AuctionInsightDomain != other.AuctionInsightDomain) return false; if (!object.Equals(BudgetCampaignAssociationStatus, other.BudgetCampaignAssociationStatus)) return false; + if (Campaign != other.Campaign) return false; if (ClickType != other.ClickType) return false; if (ConversionAction != other.ConversionAction) return false; if (ConversionActionCategory != other.ConversionActionCategory) return false; @@ -2794,6 +2977,8 @@ public bool Equals(Segments other) { if (Quarter != other.Quarter) return false; if (RecommendationType != other.RecommendationType) return false; if (SearchEngineResultsPageType != other.SearchEngineResultsPageType) return false; + if (SearchSubcategory != other.SearchSubcategory) return false; + if (SearchTerm != other.SearchTerm) return false; if (SearchTermMatchType != other.SearchTermMatchType) return false; if (Slot != other.Slot) return false; if (ConversionValueRulePrimaryDimension != other.ConversionValueRulePrimaryDimension) return false; @@ -2806,6 +2991,7 @@ public bool Equals(Segments other) { if (!object.Equals(SkAdNetworkSourceApp, other.SkAdNetworkSourceApp)) return false; if (SkAdNetworkAttributionCredit != other.SkAdNetworkAttributionCredit) return false; if (!object.Equals(AssetInteractionTarget, other.AssetInteractionTarget)) return false; + if (NewVersusReturningCustomers != other.NewVersusReturningCustomers) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2818,8 +3004,11 @@ public override int GetHashCode() { if (HasExternalActivityId) hash ^= ExternalActivityId.GetHashCode(); if (AdDestinationType != global::Google.Ads.GoogleAds.V14.Enums.AdDestinationTypeEnum.Types.AdDestinationType.Unspecified) hash ^= AdDestinationType.GetHashCode(); if (AdNetworkType != global::Google.Ads.GoogleAds.V14.Enums.AdNetworkTypeEnum.Types.AdNetworkType.Unspecified) hash ^= AdNetworkType.GetHashCode(); + if (HasAdGroup) hash ^= AdGroup.GetHashCode(); + if (HasAssetGroup) hash ^= AssetGroup.GetHashCode(); if (HasAuctionInsightDomain) hash ^= AuctionInsightDomain.GetHashCode(); if (budgetCampaignAssociationStatus_ != null) hash ^= BudgetCampaignAssociationStatus.GetHashCode(); + if (HasCampaign) hash ^= Campaign.GetHashCode(); if (ClickType != global::Google.Ads.GoogleAds.V14.Enums.ClickTypeEnum.Types.ClickType.Unspecified) hash ^= ClickType.GetHashCode(); if (HasConversionAction) hash ^= ConversionAction.GetHashCode(); if (ConversionActionCategory != global::Google.Ads.GoogleAds.V14.Enums.ConversionActionCategoryEnum.Types.ConversionActionCategory.Unspecified) hash ^= ConversionActionCategory.GetHashCode(); @@ -2894,6 +3083,8 @@ public override int GetHashCode() { if (HasQuarter) hash ^= Quarter.GetHashCode(); if (RecommendationType != global::Google.Ads.GoogleAds.V14.Enums.RecommendationTypeEnum.Types.RecommendationType.Unspecified) hash ^= RecommendationType.GetHashCode(); if (SearchEngineResultsPageType != global::Google.Ads.GoogleAds.V14.Enums.SearchEngineResultsPageTypeEnum.Types.SearchEngineResultsPageType.Unspecified) hash ^= SearchEngineResultsPageType.GetHashCode(); + if (HasSearchSubcategory) hash ^= SearchSubcategory.GetHashCode(); + if (HasSearchTerm) hash ^= SearchTerm.GetHashCode(); if (SearchTermMatchType != global::Google.Ads.GoogleAds.V14.Enums.SearchTermMatchTypeEnum.Types.SearchTermMatchType.Unspecified) hash ^= SearchTermMatchType.GetHashCode(); if (Slot != global::Google.Ads.GoogleAds.V14.Enums.SlotEnum.Types.Slot.Unspecified) hash ^= Slot.GetHashCode(); if (ConversionValueRulePrimaryDimension != global::Google.Ads.GoogleAds.V14.Enums.ConversionValueRulePrimaryDimensionEnum.Types.ConversionValueRulePrimaryDimension.Unspecified) hash ^= ConversionValueRulePrimaryDimension.GetHashCode(); @@ -2906,6 +3097,7 @@ public override int GetHashCode() { if (skAdNetworkSourceApp_ != null) hash ^= SkAdNetworkSourceApp.GetHashCode(); if (SkAdNetworkAttributionCredit != global::Google.Ads.GoogleAds.V14.Enums.SkAdNetworkAttributionCreditEnum.Types.SkAdNetworkAttributionCredit.Unspecified) hash ^= SkAdNetworkAttributionCredit.GetHashCode(); if (assetInteractionTarget_ != null) hash ^= AssetInteractionTarget.GetHashCode(); + if (NewVersusReturningCustomers != global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket.Unspecified) hash ^= NewVersusReturningCustomers.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3296,6 +3488,30 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(178, 9); output.WriteString(ExternalActivityId); } + if (HasSearchSubcategory) { + output.WriteRawTag(218, 9); + output.WriteString(SearchSubcategory); + } + if (HasSearchTerm) { + output.WriteRawTag(226, 9); + output.WriteString(SearchTerm); + } + if (HasCampaign) { + output.WriteRawTag(234, 9); + output.WriteString(Campaign); + } + if (HasAdGroup) { + output.WriteRawTag(242, 9); + output.WriteString(AdGroup); + } + if (HasAssetGroup) { + output.WriteRawTag(250, 9); + output.WriteString(AssetGroup); + } + if (NewVersusReturningCustomers != global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket.Unspecified) { + output.WriteRawTag(128, 10); + output.WriteEnum((int) NewVersusReturningCustomers); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3678,6 +3894,30 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(178, 9); output.WriteString(ExternalActivityId); } + if (HasSearchSubcategory) { + output.WriteRawTag(218, 9); + output.WriteString(SearchSubcategory); + } + if (HasSearchTerm) { + output.WriteRawTag(226, 9); + output.WriteString(SearchTerm); + } + if (HasCampaign) { + output.WriteRawTag(234, 9); + output.WriteString(Campaign); + } + if (HasAdGroup) { + output.WriteRawTag(242, 9); + output.WriteString(AdGroup); + } + if (HasAssetGroup) { + output.WriteRawTag(250, 9); + output.WriteString(AssetGroup); + } + if (NewVersusReturningCustomers != global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket.Unspecified) { + output.WriteRawTag(128, 10); + output.WriteEnum((int) NewVersusReturningCustomers); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3703,12 +3943,21 @@ public int CalculateSize() { if (AdNetworkType != global::Google.Ads.GoogleAds.V14.Enums.AdNetworkTypeEnum.Types.AdNetworkType.Unspecified) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AdNetworkType); } + if (HasAdGroup) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AdGroup); + } + if (HasAssetGroup) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(AssetGroup); + } if (HasAuctionInsightDomain) { size += 2 + pb::CodedOutputStream.ComputeStringSize(AuctionInsightDomain); } if (budgetCampaignAssociationStatus_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(BudgetCampaignAssociationStatus); } + if (HasCampaign) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Campaign); + } if (ClickType != global::Google.Ads.GoogleAds.V14.Enums.ClickTypeEnum.Types.ClickType.Unspecified) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ClickType); } @@ -3931,6 +4180,12 @@ public int CalculateSize() { if (SearchEngineResultsPageType != global::Google.Ads.GoogleAds.V14.Enums.SearchEngineResultsPageTypeEnum.Types.SearchEngineResultsPageType.Unspecified) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SearchEngineResultsPageType); } + if (HasSearchSubcategory) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SearchSubcategory); + } + if (HasSearchTerm) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(SearchTerm); + } if (SearchTermMatchType != global::Google.Ads.GoogleAds.V14.Enums.SearchTermMatchTypeEnum.Types.SearchTermMatchType.Unspecified) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SearchTermMatchType); } @@ -3967,6 +4222,9 @@ public int CalculateSize() { if (assetInteractionTarget_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(AssetInteractionTarget); } + if (NewVersusReturningCustomers != global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket.Unspecified) { + size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) NewVersusReturningCustomers); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3994,6 +4252,12 @@ public void MergeFrom(Segments other) { if (other.AdNetworkType != global::Google.Ads.GoogleAds.V14.Enums.AdNetworkTypeEnum.Types.AdNetworkType.Unspecified) { AdNetworkType = other.AdNetworkType; } + if (other.HasAdGroup) { + AdGroup = other.AdGroup; + } + if (other.HasAssetGroup) { + AssetGroup = other.AssetGroup; + } if (other.HasAuctionInsightDomain) { AuctionInsightDomain = other.AuctionInsightDomain; } @@ -4003,6 +4267,9 @@ public void MergeFrom(Segments other) { } BudgetCampaignAssociationStatus.MergeFrom(other.BudgetCampaignAssociationStatus); } + if (other.HasCampaign) { + Campaign = other.Campaign; + } if (other.ClickType != global::Google.Ads.GoogleAds.V14.Enums.ClickTypeEnum.Types.ClickType.Unspecified) { ClickType = other.ClickType; } @@ -4228,6 +4495,12 @@ public void MergeFrom(Segments other) { if (other.SearchEngineResultsPageType != global::Google.Ads.GoogleAds.V14.Enums.SearchEngineResultsPageTypeEnum.Types.SearchEngineResultsPageType.Unspecified) { SearchEngineResultsPageType = other.SearchEngineResultsPageType; } + if (other.HasSearchSubcategory) { + SearchSubcategory = other.SearchSubcategory; + } + if (other.HasSearchTerm) { + SearchTerm = other.SearchTerm; + } if (other.SearchTermMatchType != global::Google.Ads.GoogleAds.V14.Enums.SearchTermMatchTypeEnum.Types.SearchTermMatchType.Unspecified) { SearchTermMatchType = other.SearchTermMatchType; } @@ -4270,6 +4543,9 @@ public void MergeFrom(Segments other) { } AssetInteractionTarget.MergeFrom(other.AssetInteractionTarget); } + if (other.NewVersusReturningCustomers != global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket.Unspecified) { + NewVersusReturningCustomers = other.NewVersusReturningCustomers; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4669,6 +4945,30 @@ public void MergeFrom(pb::CodedInputStream input) { ExternalActivityId = input.ReadString(); break; } + case 1242: { + SearchSubcategory = input.ReadString(); + break; + } + case 1250: { + SearchTerm = input.ReadString(); + break; + } + case 1258: { + Campaign = input.ReadString(); + break; + } + case 1266: { + AdGroup = input.ReadString(); + break; + } + case 1274: { + AssetGroup = input.ReadString(); + break; + } + case 1280: { + NewVersusReturningCustomers = (global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket) input.ReadEnum(); + break; + } } } #endif @@ -5068,6 +5368,30 @@ public void MergeFrom(pb::CodedInputStream input) { ExternalActivityId = input.ReadString(); break; } + case 1242: { + SearchSubcategory = input.ReadString(); + break; + } + case 1250: { + SearchTerm = input.ReadString(); + break; + } + case 1258: { + Campaign = input.ReadString(); + break; + } + case 1266: { + AdGroup = input.ReadString(); + break; + } + case 1274: { + AssetGroup = input.ReadString(); + break; + } + case 1280: { + NewVersusReturningCustomers = (global::Google.Ads.GoogleAds.V14.Enums.ConvertingUserPriorEngagementTypeAndLtvBucketEnum.Types.ConvertingUserPriorEngagementTypeAndLtvBucket) input.ReadEnum(); + break; + } } } } diff --git a/Google.Ads.GoogleAds/src/V14/ShoppingAddProductsToCampaignRecommendationEnum.g.cs b/Google.Ads.GoogleAds/src/V14/ShoppingAddProductsToCampaignRecommendationEnum.g.cs index 12e17cbf5..f0ac384ca 100755 --- a/Google.Ads.GoogleAds/src/V14/ShoppingAddProductsToCampaignRecommendationEnum.g.cs +++ b/Google.Ads.GoogleAds/src/V14/ShoppingAddProductsToCampaignRecommendationEnum.g.cs @@ -53,7 +53,6 @@ static ShoppingAddProductsToCampaignRecommendationEnumReflection() { /// /// Indicates the key issue that results in a shopping campaign targeting zero /// products. - /// Next Id: 5 /// public sealed partial class ShoppingAddProductsToCampaignRecommendationEnum : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/src/V14/SmartCampaignSettingService.g.cs b/Google.Ads.GoogleAds/src/V14/SmartCampaignSettingService.g.cs index 48d8c8942..b61cef43b 100755 --- a/Google.Ads.GoogleAds/src/V14/SmartCampaignSettingService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/SmartCampaignSettingService.g.cs @@ -1940,7 +1940,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Request message for - /// [SmartCampaignSettingService.MutateSmartCampaignSetting][]. + /// [SmartCampaignSettingService.MutateSmartCampaignSettings][google.ads.googleads.v14.services.SmartCampaignSettingService.MutateSmartCampaignSettings]. /// public sealed partial class MutateSmartCampaignSettingsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/src/V14/SmartCampaignSuggestService.g.cs b/Google.Ads.GoogleAds/src/V14/SmartCampaignSuggestService.g.cs index 299039ce9..9d2267dff 100755 --- a/Google.Ads.GoogleAds/src/V14/SmartCampaignSuggestService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/SmartCampaignSuggestService.g.cs @@ -130,7 +130,7 @@ static SmartCampaignSuggestServiceReflection() { #region Messages /// /// Request message for - /// [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. + /// [SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions][google.ads.googleads.v14.services.SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions]. /// public sealed partial class SuggestSmartCampaignBudgetOptionsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -1435,9 +1435,9 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Response message for - /// [SmartCampaignSuggestService.SuggestSmartCampaignBudgets][]. Depending on - /// whether the system could suggest the options, either all of the options or - /// none of them might be returned. + /// [SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions][google.ads.googleads.v14.services.SmartCampaignSuggestService.SuggestSmartCampaignBudgetOptions]. + /// Depending on whether the system could suggest the options, either all of the + /// options or none of them might be returned. /// public sealed partial class SuggestSmartCampaignBudgetOptionsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/src/V14/TravelAssetSuggestionService.g.cs b/Google.Ads.GoogleAds/src/V14/TravelAssetSuggestionService.g.cs index 06f044f1f..5138ba06e 100755 --- a/Google.Ads.GoogleAds/src/V14/TravelAssetSuggestionService.g.cs +++ b/Google.Ads.GoogleAds/src/V14/TravelAssetSuggestionService.g.cs @@ -83,7 +83,7 @@ static TravelAssetSuggestionServiceReflection() { #region Messages /// /// Request message for - /// [TravelSuggestAssetsService.SuggestTravelAssets][]. + /// [TravelAssetSuggestionService.SuggestTravelAssets][google.ads.googleads.v14.services.TravelAssetSuggestionService.SuggestTravelAssets]. /// public sealed partial class SuggestTravelAssetsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE @@ -352,7 +352,7 @@ public void MergeFrom(pb::CodedInputStream input) { /// /// Response message for - /// [TravelSuggestAssetsService.SuggestTravelAssets][]. + /// [TravelAssetSuggestionService.SuggestTravelAssets][google.ads.googleads.v14.services.TravelAssetSuggestionService.SuggestTravelAssets]. /// public sealed partial class SuggestTravelAssetsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE diff --git a/Google.Ads.GoogleAds/tests/Lib/GoogleAdsFailureExtensionTests.cs b/Google.Ads.GoogleAds/tests/Lib/GoogleAdsFailureExtensionTests.cs index 3f598f297..c40c79f23 100644 --- a/Google.Ads.GoogleAds/tests/Lib/GoogleAdsFailureExtensionTests.cs +++ b/Google.Ads.GoogleAds/tests/Lib/GoogleAdsFailureExtensionTests.cs @@ -23,7 +23,6 @@ namespace Google.Ads.GoogleAds.Tests.Lib /// /// UnitTests for extensions in GoogleAdsFailureExtensionsTests.cs. /// - [TestFixture("12")] [TestFixture("13")] [TestFixture("14")] internal class GoogleAdsFailureExtensionsTests diff --git a/Google.Ads.GoogleAds/tests/V12/AccountBudgetProposalServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AccountBudgetProposalServiceClientTest.g.cs deleted file mode 100755 index 3aa551fb0..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AccountBudgetProposalServiceClientTest.g.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAccountBudgetProposalServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAccountBudgetProposalRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountBudgetProposalRequest request = new MutateAccountBudgetProposalRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountBudgetProposalOperation(), - ValidateOnly = true, - }; - MutateAccountBudgetProposalResponse expectedResponse = new MutateAccountBudgetProposalResponse - { - Result = new MutateAccountBudgetProposalResult(), - }; - mockGrpcClient.Setup(x => x.MutateAccountBudgetProposal(request, moq::It.IsAny())).Returns(expectedResponse); - AccountBudgetProposalServiceClient client = new AccountBudgetProposalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountBudgetProposalResponse response = client.MutateAccountBudgetProposal(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAccountBudgetProposalRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountBudgetProposalRequest request = new MutateAccountBudgetProposalRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountBudgetProposalOperation(), - ValidateOnly = true, - }; - MutateAccountBudgetProposalResponse expectedResponse = new MutateAccountBudgetProposalResponse - { - Result = new MutateAccountBudgetProposalResult(), - }; - mockGrpcClient.Setup(x => x.MutateAccountBudgetProposalAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AccountBudgetProposalServiceClient client = new AccountBudgetProposalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountBudgetProposalResponse responseCallSettings = await client.MutateAccountBudgetProposalAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAccountBudgetProposalResponse responseCancellationToken = await client.MutateAccountBudgetProposalAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAccountBudgetProposal() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountBudgetProposalRequest request = new MutateAccountBudgetProposalRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountBudgetProposalOperation(), - }; - MutateAccountBudgetProposalResponse expectedResponse = new MutateAccountBudgetProposalResponse - { - Result = new MutateAccountBudgetProposalResult(), - }; - mockGrpcClient.Setup(x => x.MutateAccountBudgetProposal(request, moq::It.IsAny())).Returns(expectedResponse); - AccountBudgetProposalServiceClient client = new AccountBudgetProposalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountBudgetProposalResponse response = client.MutateAccountBudgetProposal(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAccountBudgetProposalAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountBudgetProposalRequest request = new MutateAccountBudgetProposalRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountBudgetProposalOperation(), - }; - MutateAccountBudgetProposalResponse expectedResponse = new MutateAccountBudgetProposalResponse - { - Result = new MutateAccountBudgetProposalResult(), - }; - mockGrpcClient.Setup(x => x.MutateAccountBudgetProposalAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AccountBudgetProposalServiceClient client = new AccountBudgetProposalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountBudgetProposalResponse responseCallSettings = await client.MutateAccountBudgetProposalAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAccountBudgetProposalResponse responseCancellationToken = await client.MutateAccountBudgetProposalAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AccountLinkServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AccountLinkServiceClientTest.g.cs deleted file mode 100755 index 1322eea20..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AccountLinkServiceClientTest.g.cs +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAccountLinkServiceClientTest - { - [Category("Autogenerated")][Test] - public void CreateAccountLinkRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateAccountLinkRequest request = new CreateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - AccountLink = new gagvr::AccountLink(), - }; - CreateAccountLinkResponse expectedResponse = new CreateAccountLinkResponse - { - ResourceNameAsAccountLinkName = gagvr::AccountLinkName.FromCustomerAccountLink("[CUSTOMER_ID]", "[ACCOUNT_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateAccountLink(request, moq::It.IsAny())).Returns(expectedResponse); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - CreateAccountLinkResponse response = client.CreateAccountLink(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task CreateAccountLinkRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateAccountLinkRequest request = new CreateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - AccountLink = new gagvr::AccountLink(), - }; - CreateAccountLinkResponse expectedResponse = new CreateAccountLinkResponse - { - ResourceNameAsAccountLinkName = gagvr::AccountLinkName.FromCustomerAccountLink("[CUSTOMER_ID]", "[ACCOUNT_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateAccountLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - CreateAccountLinkResponse responseCallSettings = await client.CreateAccountLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - CreateAccountLinkResponse responseCancellationToken = await client.CreateAccountLinkAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void CreateAccountLink() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateAccountLinkRequest request = new CreateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - AccountLink = new gagvr::AccountLink(), - }; - CreateAccountLinkResponse expectedResponse = new CreateAccountLinkResponse - { - ResourceNameAsAccountLinkName = gagvr::AccountLinkName.FromCustomerAccountLink("[CUSTOMER_ID]", "[ACCOUNT_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateAccountLink(request, moq::It.IsAny())).Returns(expectedResponse); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - CreateAccountLinkResponse response = client.CreateAccountLink(request.CustomerId, request.AccountLink); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task CreateAccountLinkAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateAccountLinkRequest request = new CreateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - AccountLink = new gagvr::AccountLink(), - }; - CreateAccountLinkResponse expectedResponse = new CreateAccountLinkResponse - { - ResourceNameAsAccountLinkName = gagvr::AccountLinkName.FromCustomerAccountLink("[CUSTOMER_ID]", "[ACCOUNT_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateAccountLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - CreateAccountLinkResponse responseCallSettings = await client.CreateAccountLinkAsync(request.CustomerId, request.AccountLink, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - CreateAccountLinkResponse responseCancellationToken = await client.CreateAccountLinkAsync(request.CustomerId, request.AccountLink, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAccountLinkRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountLinkRequest request = new MutateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountLinkOperation(), - PartialFailure = false, - ValidateOnly = true, - }; - MutateAccountLinkResponse expectedResponse = new MutateAccountLinkResponse - { - Result = new MutateAccountLinkResult(), - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAccountLink(request, moq::It.IsAny())).Returns(expectedResponse); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountLinkResponse response = client.MutateAccountLink(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAccountLinkRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountLinkRequest request = new MutateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountLinkOperation(), - PartialFailure = false, - ValidateOnly = true, - }; - MutateAccountLinkResponse expectedResponse = new MutateAccountLinkResponse - { - Result = new MutateAccountLinkResult(), - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAccountLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountLinkResponse responseCallSettings = await client.MutateAccountLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAccountLinkResponse responseCancellationToken = await client.MutateAccountLinkAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAccountLink() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountLinkRequest request = new MutateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountLinkOperation(), - }; - MutateAccountLinkResponse expectedResponse = new MutateAccountLinkResponse - { - Result = new MutateAccountLinkResult(), - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAccountLink(request, moq::It.IsAny())).Returns(expectedResponse); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountLinkResponse response = client.MutateAccountLink(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAccountLinkAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAccountLinkRequest request = new MutateAccountLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new AccountLinkOperation(), - }; - MutateAccountLinkResponse expectedResponse = new MutateAccountLinkResponse - { - Result = new MutateAccountLinkResult(), - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAccountLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AccountLinkServiceClient client = new AccountLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAccountLinkResponse responseCallSettings = await client.MutateAccountLinkAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAccountLinkResponse responseCancellationToken = await client.MutateAccountLinkAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupAdLabelServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupAdLabelServiceClientTest.g.cs deleted file mode 100755 index 17694bf16..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupAdLabelServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupAdLabelServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupAdLabelsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdLabelsRequest request = new MutateAdGroupAdLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupAdLabelsResponse expectedResponse = new MutateAdGroupAdLabelsResponse - { - Results = - { - new MutateAdGroupAdLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAdLabels(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAdLabelServiceClient client = new AdGroupAdLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdLabelsResponse response = client.MutateAdGroupAdLabels(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAdLabelsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdLabelsRequest request = new MutateAdGroupAdLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupAdLabelsResponse expectedResponse = new MutateAdGroupAdLabelsResponse - { - Results = - { - new MutateAdGroupAdLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAdLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAdLabelServiceClient client = new AdGroupAdLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdLabelsResponse responseCallSettings = await client.MutateAdGroupAdLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAdLabelsResponse responseCancellationToken = await client.MutateAdGroupAdLabelsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupAdLabels() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdLabelsRequest request = new MutateAdGroupAdLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdLabelOperation(), - }, - }; - MutateAdGroupAdLabelsResponse expectedResponse = new MutateAdGroupAdLabelsResponse - { - Results = - { - new MutateAdGroupAdLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAdLabels(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAdLabelServiceClient client = new AdGroupAdLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdLabelsResponse response = client.MutateAdGroupAdLabels(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAdLabelsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdLabelsRequest request = new MutateAdGroupAdLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdLabelOperation(), - }, - }; - MutateAdGroupAdLabelsResponse expectedResponse = new MutateAdGroupAdLabelsResponse - { - Results = - { - new MutateAdGroupAdLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAdLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAdLabelServiceClient client = new AdGroupAdLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdLabelsResponse responseCallSettings = await client.MutateAdGroupAdLabelsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAdLabelsResponse responseCancellationToken = await client.MutateAdGroupAdLabelsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupAdServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupAdServiceClientTest.g.cs deleted file mode 100755 index 42c10f897..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupAdServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupAdServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupAdsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdsRequest request = new MutateAdGroupAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupAdsResponse expectedResponse = new MutateAdGroupAdsResponse - { - Results = - { - new MutateAdGroupAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAds(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAdServiceClient client = new AdGroupAdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdsResponse response = client.MutateAdGroupAds(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAdsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdsRequest request = new MutateAdGroupAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupAdsResponse expectedResponse = new MutateAdGroupAdsResponse - { - Results = - { - new MutateAdGroupAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAdsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAdServiceClient client = new AdGroupAdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdsResponse responseCallSettings = await client.MutateAdGroupAdsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAdsResponse responseCancellationToken = await client.MutateAdGroupAdsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupAds() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdsRequest request = new MutateAdGroupAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdOperation(), - }, - }; - MutateAdGroupAdsResponse expectedResponse = new MutateAdGroupAdsResponse - { - Results = - { - new MutateAdGroupAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAds(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAdServiceClient client = new AdGroupAdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdsResponse response = client.MutateAdGroupAds(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAdsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAdsRequest request = new MutateAdGroupAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAdOperation(), - }, - }; - MutateAdGroupAdsResponse expectedResponse = new MutateAdGroupAdsResponse - { - Results = - { - new MutateAdGroupAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAdsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAdServiceClient client = new AdGroupAdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAdsResponse responseCallSettings = await client.MutateAdGroupAdsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAdsResponse responseCancellationToken = await client.MutateAdGroupAdsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupAssetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupAssetServiceClientTest.g.cs deleted file mode 100755 index 775a78d3c..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupAssetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupAssetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupAssetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetsRequest request = new MutateAdGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupAssetsResponse expectedResponse = new MutateAdGroupAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateAdGroupAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAssetServiceClient client = new AdGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetsResponse response = client.MutateAdGroupAssets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAssetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetsRequest request = new MutateAdGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupAssetsResponse expectedResponse = new MutateAdGroupAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateAdGroupAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAssetServiceClient client = new AdGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetsResponse responseCallSettings = await client.MutateAdGroupAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAssetsResponse responseCancellationToken = await client.MutateAdGroupAssetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupAssets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetsRequest request = new MutateAdGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetOperation(), - }, - }; - MutateAdGroupAssetsResponse expectedResponse = new MutateAdGroupAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateAdGroupAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAssetServiceClient client = new AdGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetsResponse response = client.MutateAdGroupAssets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAssetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetsRequest request = new MutateAdGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetOperation(), - }, - }; - MutateAdGroupAssetsResponse expectedResponse = new MutateAdGroupAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateAdGroupAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAssetServiceClient client = new AdGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetsResponse responseCallSettings = await client.MutateAdGroupAssetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAssetsResponse responseCancellationToken = await client.MutateAdGroupAssetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupAssetSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupAssetSetServiceClientTest.g.cs deleted file mode 100755 index 34b388aa9..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupAssetSetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupAssetSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupAssetSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetSetsRequest request = new MutateAdGroupAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupAssetSetsResponse expectedResponse = new MutateAdGroupAssetSetsResponse - { - Results = - { - new MutateAdGroupAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAssetSetServiceClient client = new AdGroupAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetSetsResponse response = client.MutateAdGroupAssetSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAssetSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetSetsRequest request = new MutateAdGroupAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupAssetSetsResponse expectedResponse = new MutateAdGroupAssetSetsResponse - { - Results = - { - new MutateAdGroupAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAssetSetServiceClient client = new AdGroupAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetSetsResponse responseCallSettings = await client.MutateAdGroupAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAssetSetsResponse responseCancellationToken = await client.MutateAdGroupAssetSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupAssetSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetSetsRequest request = new MutateAdGroupAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetSetOperation(), - }, - }; - MutateAdGroupAssetSetsResponse expectedResponse = new MutateAdGroupAssetSetsResponse - { - Results = - { - new MutateAdGroupAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupAssetSetServiceClient client = new AdGroupAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetSetsResponse response = client.MutateAdGroupAssetSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupAssetSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupAssetSetsRequest request = new MutateAdGroupAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupAssetSetOperation(), - }, - }; - MutateAdGroupAssetSetsResponse expectedResponse = new MutateAdGroupAssetSetsResponse - { - Results = - { - new MutateAdGroupAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupAssetSetServiceClient client = new AdGroupAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupAssetSetsResponse responseCallSettings = await client.MutateAdGroupAssetSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupAssetSetsResponse responseCancellationToken = await client.MutateAdGroupAssetSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupBidModifierServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupBidModifierServiceClientTest.g.cs deleted file mode 100755 index 200c77924..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupBidModifierServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupBidModifierServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupBidModifiersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupBidModifiersRequest request = new MutateAdGroupBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupBidModifierOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupBidModifiersResponse expectedResponse = new MutateAdGroupBidModifiersResponse - { - Results = - { - new MutateAdGroupBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupBidModifiers(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupBidModifierServiceClient client = new AdGroupBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupBidModifiersResponse response = client.MutateAdGroupBidModifiers(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupBidModifiersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupBidModifiersRequest request = new MutateAdGroupBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupBidModifierOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupBidModifiersResponse expectedResponse = new MutateAdGroupBidModifiersResponse - { - Results = - { - new MutateAdGroupBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupBidModifiersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupBidModifierServiceClient client = new AdGroupBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupBidModifiersResponse responseCallSettings = await client.MutateAdGroupBidModifiersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupBidModifiersResponse responseCancellationToken = await client.MutateAdGroupBidModifiersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupBidModifiers() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupBidModifiersRequest request = new MutateAdGroupBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupBidModifierOperation(), - }, - }; - MutateAdGroupBidModifiersResponse expectedResponse = new MutateAdGroupBidModifiersResponse - { - Results = - { - new MutateAdGroupBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupBidModifiers(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupBidModifierServiceClient client = new AdGroupBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupBidModifiersResponse response = client.MutateAdGroupBidModifiers(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupBidModifiersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupBidModifiersRequest request = new MutateAdGroupBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupBidModifierOperation(), - }, - }; - MutateAdGroupBidModifiersResponse expectedResponse = new MutateAdGroupBidModifiersResponse - { - Results = - { - new MutateAdGroupBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupBidModifiersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupBidModifierServiceClient client = new AdGroupBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupBidModifiersResponse responseCallSettings = await client.MutateAdGroupBidModifiersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupBidModifiersResponse responseCancellationToken = await client.MutateAdGroupBidModifiersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionCustomizerServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionCustomizerServiceClientTest.g.cs deleted file mode 100755 index f39402b34..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionCustomizerServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupCriterionCustomizerServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupCriterionCustomizersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionCustomizersRequest request = new MutateAdGroupCriterionCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupCriterionCustomizersResponse expectedResponse = new MutateAdGroupCriterionCustomizersResponse - { - Results = - { - new MutateAdGroupCriterionCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCriterionCustomizerServiceClient client = new AdGroupCriterionCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionCustomizersResponse response = client.MutateAdGroupCriterionCustomizers(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCriterionCustomizersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionCustomizersRequest request = new MutateAdGroupCriterionCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupCriterionCustomizersResponse expectedResponse = new MutateAdGroupCriterionCustomizersResponse - { - Results = - { - new MutateAdGroupCriterionCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCriterionCustomizerServiceClient client = new AdGroupCriterionCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionCustomizersResponse responseCallSettings = await client.MutateAdGroupCriterionCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCriterionCustomizersResponse responseCancellationToken = await client.MutateAdGroupCriterionCustomizersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupCriterionCustomizers() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionCustomizersRequest request = new MutateAdGroupCriterionCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionCustomizerOperation(), - }, - }; - MutateAdGroupCriterionCustomizersResponse expectedResponse = new MutateAdGroupCriterionCustomizersResponse - { - Results = - { - new MutateAdGroupCriterionCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCriterionCustomizerServiceClient client = new AdGroupCriterionCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionCustomizersResponse response = client.MutateAdGroupCriterionCustomizers(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCriterionCustomizersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionCustomizersRequest request = new MutateAdGroupCriterionCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionCustomizerOperation(), - }, - }; - MutateAdGroupCriterionCustomizersResponse expectedResponse = new MutateAdGroupCriterionCustomizersResponse - { - Results = - { - new MutateAdGroupCriterionCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCriterionCustomizerServiceClient client = new AdGroupCriterionCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionCustomizersResponse responseCallSettings = await client.MutateAdGroupCriterionCustomizersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCriterionCustomizersResponse responseCancellationToken = await client.MutateAdGroupCriterionCustomizersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionLabelServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionLabelServiceClientTest.g.cs deleted file mode 100755 index 575de62aa..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionLabelServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupCriterionLabelServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupCriterionLabelsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionLabelsRequest request = new MutateAdGroupCriterionLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupCriterionLabelsResponse expectedResponse = new MutateAdGroupCriterionLabelsResponse - { - Results = - { - new MutateAdGroupCriterionLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionLabels(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCriterionLabelServiceClient client = new AdGroupCriterionLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionLabelsResponse response = client.MutateAdGroupCriterionLabels(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCriterionLabelsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionLabelsRequest request = new MutateAdGroupCriterionLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupCriterionLabelsResponse expectedResponse = new MutateAdGroupCriterionLabelsResponse - { - Results = - { - new MutateAdGroupCriterionLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCriterionLabelServiceClient client = new AdGroupCriterionLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionLabelsResponse responseCallSettings = await client.MutateAdGroupCriterionLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCriterionLabelsResponse responseCancellationToken = await client.MutateAdGroupCriterionLabelsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupCriterionLabels() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionLabelsRequest request = new MutateAdGroupCriterionLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionLabelOperation(), - }, - }; - MutateAdGroupCriterionLabelsResponse expectedResponse = new MutateAdGroupCriterionLabelsResponse - { - Results = - { - new MutateAdGroupCriterionLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionLabels(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCriterionLabelServiceClient client = new AdGroupCriterionLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionLabelsResponse response = client.MutateAdGroupCriterionLabels(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCriterionLabelsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriterionLabelsRequest request = new MutateAdGroupCriterionLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionLabelOperation(), - }, - }; - MutateAdGroupCriterionLabelsResponse expectedResponse = new MutateAdGroupCriterionLabelsResponse - { - Results = - { - new MutateAdGroupCriterionLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriterionLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCriterionLabelServiceClient client = new AdGroupCriterionLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriterionLabelsResponse responseCallSettings = await client.MutateAdGroupCriterionLabelsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCriterionLabelsResponse responseCancellationToken = await client.MutateAdGroupCriterionLabelsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionServiceClientTest.g.cs deleted file mode 100755 index ad6c004f2..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupCriterionServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupCriterionServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupCriteriaRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriteriaRequest request = new MutateAdGroupCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupCriteriaResponse expectedResponse = new MutateAdGroupCriteriaResponse - { - Results = - { - new MutateAdGroupCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCriterionServiceClient client = new AdGroupCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriteriaResponse response = client.MutateAdGroupCriteria(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCriteriaRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriteriaRequest request = new MutateAdGroupCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupCriteriaResponse expectedResponse = new MutateAdGroupCriteriaResponse - { - Results = - { - new MutateAdGroupCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCriterionServiceClient client = new AdGroupCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriteriaResponse responseCallSettings = await client.MutateAdGroupCriteriaAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCriteriaResponse responseCancellationToken = await client.MutateAdGroupCriteriaAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupCriteria() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriteriaRequest request = new MutateAdGroupCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionOperation(), - }, - }; - MutateAdGroupCriteriaResponse expectedResponse = new MutateAdGroupCriteriaResponse - { - Results = - { - new MutateAdGroupCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCriterionServiceClient client = new AdGroupCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriteriaResponse response = client.MutateAdGroupCriteria(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCriteriaAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCriteriaRequest request = new MutateAdGroupCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCriterionOperation(), - }, - }; - MutateAdGroupCriteriaResponse expectedResponse = new MutateAdGroupCriteriaResponse - { - Results = - { - new MutateAdGroupCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCriterionServiceClient client = new AdGroupCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCriteriaResponse responseCallSettings = await client.MutateAdGroupCriteriaAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCriteriaResponse responseCancellationToken = await client.MutateAdGroupCriteriaAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupCustomizerServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupCustomizerServiceClientTest.g.cs deleted file mode 100755 index 750d15404..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupCustomizerServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupCustomizerServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupCustomizersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCustomizersRequest request = new MutateAdGroupCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupCustomizersResponse expectedResponse = new MutateAdGroupCustomizersResponse - { - Results = - { - new MutateAdGroupCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCustomizerServiceClient client = new AdGroupCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCustomizersResponse response = client.MutateAdGroupCustomizers(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCustomizersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCustomizersRequest request = new MutateAdGroupCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupCustomizersResponse expectedResponse = new MutateAdGroupCustomizersResponse - { - Results = - { - new MutateAdGroupCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCustomizerServiceClient client = new AdGroupCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCustomizersResponse responseCallSettings = await client.MutateAdGroupCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCustomizersResponse responseCancellationToken = await client.MutateAdGroupCustomizersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupCustomizers() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCustomizersRequest request = new MutateAdGroupCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCustomizerOperation(), - }, - }; - MutateAdGroupCustomizersResponse expectedResponse = new MutateAdGroupCustomizersResponse - { - Results = - { - new MutateAdGroupCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupCustomizerServiceClient client = new AdGroupCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCustomizersResponse response = client.MutateAdGroupCustomizers(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupCustomizersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupCustomizersRequest request = new MutateAdGroupCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupCustomizerOperation(), - }, - }; - MutateAdGroupCustomizersResponse expectedResponse = new MutateAdGroupCustomizersResponse - { - Results = - { - new MutateAdGroupCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupCustomizerServiceClient client = new AdGroupCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupCustomizersResponse responseCallSettings = await client.MutateAdGroupCustomizersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupCustomizersResponse responseCancellationToken = await client.MutateAdGroupCustomizersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupExtensionSettingServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupExtensionSettingServiceClientTest.g.cs deleted file mode 100755 index 588cf7bc6..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupExtensionSettingServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupExtensionSettingServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupExtensionSettingsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupExtensionSettingsRequest request = new MutateAdGroupExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupExtensionSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupExtensionSettingsResponse expectedResponse = new MutateAdGroupExtensionSettingsResponse - { - Results = - { - new MutateAdGroupExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupExtensionSettings(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupExtensionSettingServiceClient client = new AdGroupExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupExtensionSettingsResponse response = client.MutateAdGroupExtensionSettings(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupExtensionSettingsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupExtensionSettingsRequest request = new MutateAdGroupExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupExtensionSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupExtensionSettingsResponse expectedResponse = new MutateAdGroupExtensionSettingsResponse - { - Results = - { - new MutateAdGroupExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupExtensionSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupExtensionSettingServiceClient client = new AdGroupExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupExtensionSettingsResponse responseCallSettings = await client.MutateAdGroupExtensionSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupExtensionSettingsResponse responseCancellationToken = await client.MutateAdGroupExtensionSettingsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupExtensionSettings() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupExtensionSettingsRequest request = new MutateAdGroupExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupExtensionSettingOperation(), - }, - }; - MutateAdGroupExtensionSettingsResponse expectedResponse = new MutateAdGroupExtensionSettingsResponse - { - Results = - { - new MutateAdGroupExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupExtensionSettings(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupExtensionSettingServiceClient client = new AdGroupExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupExtensionSettingsResponse response = client.MutateAdGroupExtensionSettings(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupExtensionSettingsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupExtensionSettingsRequest request = new MutateAdGroupExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupExtensionSettingOperation(), - }, - }; - MutateAdGroupExtensionSettingsResponse expectedResponse = new MutateAdGroupExtensionSettingsResponse - { - Results = - { - new MutateAdGroupExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupExtensionSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupExtensionSettingServiceClient client = new AdGroupExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupExtensionSettingsResponse responseCallSettings = await client.MutateAdGroupExtensionSettingsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupExtensionSettingsResponse responseCancellationToken = await client.MutateAdGroupExtensionSettingsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupFeedServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupFeedServiceClientTest.g.cs deleted file mode 100755 index ed8830908..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupFeedServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupFeedServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupFeedsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupFeedsRequest request = new MutateAdGroupFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupFeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupFeedsResponse expectedResponse = new MutateAdGroupFeedsResponse - { - Results = - { - new MutateAdGroupFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupFeedServiceClient client = new AdGroupFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupFeedsResponse response = client.MutateAdGroupFeeds(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupFeedsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupFeedsRequest request = new MutateAdGroupFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupFeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupFeedsResponse expectedResponse = new MutateAdGroupFeedsResponse - { - Results = - { - new MutateAdGroupFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupFeedServiceClient client = new AdGroupFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupFeedsResponse responseCallSettings = await client.MutateAdGroupFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupFeedsResponse responseCancellationToken = await client.MutateAdGroupFeedsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupFeeds() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupFeedsRequest request = new MutateAdGroupFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupFeedOperation(), - }, - }; - MutateAdGroupFeedsResponse expectedResponse = new MutateAdGroupFeedsResponse - { - Results = - { - new MutateAdGroupFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupFeedServiceClient client = new AdGroupFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupFeedsResponse response = client.MutateAdGroupFeeds(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupFeedsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupFeedsRequest request = new MutateAdGroupFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupFeedOperation(), - }, - }; - MutateAdGroupFeedsResponse expectedResponse = new MutateAdGroupFeedsResponse - { - Results = - { - new MutateAdGroupFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupFeedServiceClient client = new AdGroupFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupFeedsResponse responseCallSettings = await client.MutateAdGroupFeedsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupFeedsResponse responseCancellationToken = await client.MutateAdGroupFeedsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupLabelServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupLabelServiceClientTest.g.cs deleted file mode 100755 index fcc6739a9..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupLabelServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupLabelServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupLabelsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupLabelsRequest request = new MutateAdGroupLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupLabelsResponse expectedResponse = new MutateAdGroupLabelsResponse - { - Results = - { - new MutateAdGroupLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupLabels(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupLabelServiceClient client = new AdGroupLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupLabelsResponse response = client.MutateAdGroupLabels(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupLabelsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupLabelsRequest request = new MutateAdGroupLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAdGroupLabelsResponse expectedResponse = new MutateAdGroupLabelsResponse - { - Results = - { - new MutateAdGroupLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupLabelServiceClient client = new AdGroupLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupLabelsResponse responseCallSettings = await client.MutateAdGroupLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupLabelsResponse responseCancellationToken = await client.MutateAdGroupLabelsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroupLabels() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupLabelsRequest request = new MutateAdGroupLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupLabelOperation(), - }, - }; - MutateAdGroupLabelsResponse expectedResponse = new MutateAdGroupLabelsResponse - { - Results = - { - new MutateAdGroupLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupLabels(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupLabelServiceClient client = new AdGroupLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupLabelsResponse response = client.MutateAdGroupLabels(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupLabelsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupLabelsRequest request = new MutateAdGroupLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupLabelOperation(), - }, - }; - MutateAdGroupLabelsResponse expectedResponse = new MutateAdGroupLabelsResponse - { - Results = - { - new MutateAdGroupLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupLabelServiceClient client = new AdGroupLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupLabelsResponse responseCallSettings = await client.MutateAdGroupLabelsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupLabelsResponse responseCancellationToken = await client.MutateAdGroupLabelsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdGroupServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdGroupServiceClientTest.g.cs deleted file mode 100755 index 97082af58..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdGroupServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdGroupServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdGroupsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupsRequest request = new MutateAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupsResponse expectedResponse = new MutateAdGroupsResponse - { - Results = - { - new MutateAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroups(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupServiceClient client = new AdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupsResponse response = client.MutateAdGroups(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupsRequest request = new MutateAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdGroupsResponse expectedResponse = new MutateAdGroupsResponse - { - Results = - { - new MutateAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupServiceClient client = new AdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupsResponse responseCallSettings = await client.MutateAdGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupsResponse responseCancellationToken = await client.MutateAdGroupsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdGroups() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupsRequest request = new MutateAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupOperation(), - }, - }; - MutateAdGroupsResponse expectedResponse = new MutateAdGroupsResponse - { - Results = - { - new MutateAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroups(request, moq::It.IsAny())).Returns(expectedResponse); - AdGroupServiceClient client = new AdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupsResponse response = client.MutateAdGroups(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdGroupsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdGroupsRequest request = new MutateAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdGroupOperation(), - }, - }; - MutateAdGroupsResponse expectedResponse = new MutateAdGroupsResponse - { - Results = - { - new MutateAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdGroupServiceClient client = new AdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdGroupsResponse responseCallSettings = await client.MutateAdGroupsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdGroupsResponse responseCancellationToken = await client.MutateAdGroupsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdParameterServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdParameterServiceClientTest.g.cs deleted file mode 100755 index 697134000..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdParameterServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdParameterServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAdParametersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdParametersRequest request = new MutateAdParametersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdParameterOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse - { - Results = - { - new MutateAdParameterResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdParameters(request, moq::It.IsAny())).Returns(expectedResponse); - AdParameterServiceClient client = new AdParameterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdParametersResponse response = client.MutateAdParameters(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdParametersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdParametersRequest request = new MutateAdParametersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdParameterOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse - { - Results = - { - new MutateAdParameterResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdParametersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdParameterServiceClient client = new AdParameterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdParametersResponse responseCallSettings = await client.MutateAdParametersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdParametersResponse responseCancellationToken = await client.MutateAdParametersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdParameters() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdParametersRequest request = new MutateAdParametersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdParameterOperation(), - }, - }; - MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse - { - Results = - { - new MutateAdParameterResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdParameters(request, moq::It.IsAny())).Returns(expectedResponse); - AdParameterServiceClient client = new AdParameterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdParametersResponse response = client.MutateAdParameters(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdParametersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdParametersRequest request = new MutateAdParametersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AdParameterOperation(), - }, - }; - MutateAdParametersResponse expectedResponse = new MutateAdParametersResponse - { - Results = - { - new MutateAdParameterResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdParametersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdParameterServiceClient client = new AdParameterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdParametersResponse responseCallSettings = await client.MutateAdParametersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdParametersResponse responseCancellationToken = await client.MutateAdParametersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AdServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AdServiceClientTest.g.cs deleted file mode 100755 index 1d9b09588..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AdServiceClientTest.g.cs +++ /dev/null @@ -1,573 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvc = Google.Ads.GoogleAds.V12.Common; -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAdServiceClientTest - { - [Category("Autogenerated")][Test] - public void GetAdRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetAdRequest request = new GetAdRequest - { - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - }; - gagvr::Ad expectedResponse = new gagvr::Ad - { - Type = gagve::AdTypeEnum.Types.AdType.DiscoveryMultiAssetAd, - TextAd = new gagvc::TextAdInfo(), - ExpandedTextAd = new gagvc::ExpandedTextAdInfo(), - UrlCustomParameters = - { - new gagvc::CustomParameter(), - }, - ExpandedDynamicSearchAd = new gagvc::ExpandedDynamicSearchAdInfo(), - HotelAd = new gagvc::HotelAdInfo(), - ShoppingSmartAd = new gagvc::ShoppingSmartAdInfo(), - ShoppingProductAd = new gagvc::ShoppingProductAdInfo(), - DevicePreference = gagve::DeviceEnum.Types.Device.Desktop, - ImageAd = new gagvc::ImageAdInfo(), - VideoAd = new gagvc::VideoAdInfo(), - ResponsiveSearchAd = new gagvc::ResponsiveSearchAdInfo(), - UrlCollections = - { - new gagvc::UrlCollection(), - }, - SystemManagedResourceSource = gagve::SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.AdVariations, - LegacyResponsiveDisplayAd = new gagvc::LegacyResponsiveDisplayAdInfo(), - AppAd = new gagvc::AppAdInfo(), - LegacyAppInstallAd = new gagvc::LegacyAppInstallAdInfo(), - ResponsiveDisplayAd = new gagvc::ResponsiveDisplayAdInfo(), - LocalAd = new gagvc::LocalAdInfo(), - DisplayUploadAd = new gagvc::DisplayUploadAdInfo(), - AppEngagementAd = new gagvc::AppEngagementAdInfo(), - FinalAppUrls = - { - new gagvc::FinalAppUrl(), - }, - ShoppingComparisonListingAd = new gagvc::ShoppingComparisonListingAdInfo(), - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - VideoResponsiveAd = new gagvc::VideoResponsiveAdInfo(), - Id = -6774108720365892680L, - FinalUrls = - { - "final_urls3ed0b71b", - }, - FinalMobileUrls = - { - "final_mobile_urlsf4131aa0", - }, - TrackingUrlTemplate = "tracking_url_template157f152a", - FinalUrlSuffix = "final_url_suffix046ed37a", - DisplayUrl = "display_url12de0d0c", - AddedByGoogleAds = true, - AdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - SmartCampaignAd = new gagvc::SmartCampaignAdInfo(), - CallAd = new gagvc::CallAdInfo(), - AppPreRegistrationAd = new gagvc::AppPreRegistrationAdInfo(), - DiscoveryMultiAssetAd = new gagvc::DiscoveryMultiAssetAdInfo(), - DiscoveryCarouselAd = new gagvc::DiscoveryCarouselAdInfo(), - }; - mockGrpcClient.Setup(x => x.GetAd(request, moq::It.IsAny())).Returns(expectedResponse); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::Ad response = client.GetAd(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetAdRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetAdRequest request = new GetAdRequest - { - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - }; - gagvr::Ad expectedResponse = new gagvr::Ad - { - Type = gagve::AdTypeEnum.Types.AdType.DiscoveryMultiAssetAd, - TextAd = new gagvc::TextAdInfo(), - ExpandedTextAd = new gagvc::ExpandedTextAdInfo(), - UrlCustomParameters = - { - new gagvc::CustomParameter(), - }, - ExpandedDynamicSearchAd = new gagvc::ExpandedDynamicSearchAdInfo(), - HotelAd = new gagvc::HotelAdInfo(), - ShoppingSmartAd = new gagvc::ShoppingSmartAdInfo(), - ShoppingProductAd = new gagvc::ShoppingProductAdInfo(), - DevicePreference = gagve::DeviceEnum.Types.Device.Desktop, - ImageAd = new gagvc::ImageAdInfo(), - VideoAd = new gagvc::VideoAdInfo(), - ResponsiveSearchAd = new gagvc::ResponsiveSearchAdInfo(), - UrlCollections = - { - new gagvc::UrlCollection(), - }, - SystemManagedResourceSource = gagve::SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.AdVariations, - LegacyResponsiveDisplayAd = new gagvc::LegacyResponsiveDisplayAdInfo(), - AppAd = new gagvc::AppAdInfo(), - LegacyAppInstallAd = new gagvc::LegacyAppInstallAdInfo(), - ResponsiveDisplayAd = new gagvc::ResponsiveDisplayAdInfo(), - LocalAd = new gagvc::LocalAdInfo(), - DisplayUploadAd = new gagvc::DisplayUploadAdInfo(), - AppEngagementAd = new gagvc::AppEngagementAdInfo(), - FinalAppUrls = - { - new gagvc::FinalAppUrl(), - }, - ShoppingComparisonListingAd = new gagvc::ShoppingComparisonListingAdInfo(), - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - VideoResponsiveAd = new gagvc::VideoResponsiveAdInfo(), - Id = -6774108720365892680L, - FinalUrls = - { - "final_urls3ed0b71b", - }, - FinalMobileUrls = - { - "final_mobile_urlsf4131aa0", - }, - TrackingUrlTemplate = "tracking_url_template157f152a", - FinalUrlSuffix = "final_url_suffix046ed37a", - DisplayUrl = "display_url12de0d0c", - AddedByGoogleAds = true, - AdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - SmartCampaignAd = new gagvc::SmartCampaignAdInfo(), - CallAd = new gagvc::CallAdInfo(), - AppPreRegistrationAd = new gagvc::AppPreRegistrationAdInfo(), - DiscoveryMultiAssetAd = new gagvc::DiscoveryMultiAssetAdInfo(), - DiscoveryCarouselAd = new gagvc::DiscoveryCarouselAdInfo(), - }; - mockGrpcClient.Setup(x => x.GetAdAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::Ad responseCallSettings = await client.GetAdAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::Ad responseCancellationToken = await client.GetAdAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GetAd() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetAdRequest request = new GetAdRequest - { - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - }; - gagvr::Ad expectedResponse = new gagvr::Ad - { - Type = gagve::AdTypeEnum.Types.AdType.DiscoveryMultiAssetAd, - TextAd = new gagvc::TextAdInfo(), - ExpandedTextAd = new gagvc::ExpandedTextAdInfo(), - UrlCustomParameters = - { - new gagvc::CustomParameter(), - }, - ExpandedDynamicSearchAd = new gagvc::ExpandedDynamicSearchAdInfo(), - HotelAd = new gagvc::HotelAdInfo(), - ShoppingSmartAd = new gagvc::ShoppingSmartAdInfo(), - ShoppingProductAd = new gagvc::ShoppingProductAdInfo(), - DevicePreference = gagve::DeviceEnum.Types.Device.Desktop, - ImageAd = new gagvc::ImageAdInfo(), - VideoAd = new gagvc::VideoAdInfo(), - ResponsiveSearchAd = new gagvc::ResponsiveSearchAdInfo(), - UrlCollections = - { - new gagvc::UrlCollection(), - }, - SystemManagedResourceSource = gagve::SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.AdVariations, - LegacyResponsiveDisplayAd = new gagvc::LegacyResponsiveDisplayAdInfo(), - AppAd = new gagvc::AppAdInfo(), - LegacyAppInstallAd = new gagvc::LegacyAppInstallAdInfo(), - ResponsiveDisplayAd = new gagvc::ResponsiveDisplayAdInfo(), - LocalAd = new gagvc::LocalAdInfo(), - DisplayUploadAd = new gagvc::DisplayUploadAdInfo(), - AppEngagementAd = new gagvc::AppEngagementAdInfo(), - FinalAppUrls = - { - new gagvc::FinalAppUrl(), - }, - ShoppingComparisonListingAd = new gagvc::ShoppingComparisonListingAdInfo(), - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - VideoResponsiveAd = new gagvc::VideoResponsiveAdInfo(), - Id = -6774108720365892680L, - FinalUrls = - { - "final_urls3ed0b71b", - }, - FinalMobileUrls = - { - "final_mobile_urlsf4131aa0", - }, - TrackingUrlTemplate = "tracking_url_template157f152a", - FinalUrlSuffix = "final_url_suffix046ed37a", - DisplayUrl = "display_url12de0d0c", - AddedByGoogleAds = true, - AdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - SmartCampaignAd = new gagvc::SmartCampaignAdInfo(), - CallAd = new gagvc::CallAdInfo(), - AppPreRegistrationAd = new gagvc::AppPreRegistrationAdInfo(), - DiscoveryMultiAssetAd = new gagvc::DiscoveryMultiAssetAdInfo(), - DiscoveryCarouselAd = new gagvc::DiscoveryCarouselAdInfo(), - }; - mockGrpcClient.Setup(x => x.GetAd(request, moq::It.IsAny())).Returns(expectedResponse); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::Ad response = client.GetAd(request.ResourceName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetAdAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetAdRequest request = new GetAdRequest - { - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - }; - gagvr::Ad expectedResponse = new gagvr::Ad - { - Type = gagve::AdTypeEnum.Types.AdType.DiscoveryMultiAssetAd, - TextAd = new gagvc::TextAdInfo(), - ExpandedTextAd = new gagvc::ExpandedTextAdInfo(), - UrlCustomParameters = - { - new gagvc::CustomParameter(), - }, - ExpandedDynamicSearchAd = new gagvc::ExpandedDynamicSearchAdInfo(), - HotelAd = new gagvc::HotelAdInfo(), - ShoppingSmartAd = new gagvc::ShoppingSmartAdInfo(), - ShoppingProductAd = new gagvc::ShoppingProductAdInfo(), - DevicePreference = gagve::DeviceEnum.Types.Device.Desktop, - ImageAd = new gagvc::ImageAdInfo(), - VideoAd = new gagvc::VideoAdInfo(), - ResponsiveSearchAd = new gagvc::ResponsiveSearchAdInfo(), - UrlCollections = - { - new gagvc::UrlCollection(), - }, - SystemManagedResourceSource = gagve::SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.AdVariations, - LegacyResponsiveDisplayAd = new gagvc::LegacyResponsiveDisplayAdInfo(), - AppAd = new gagvc::AppAdInfo(), - LegacyAppInstallAd = new gagvc::LegacyAppInstallAdInfo(), - ResponsiveDisplayAd = new gagvc::ResponsiveDisplayAdInfo(), - LocalAd = new gagvc::LocalAdInfo(), - DisplayUploadAd = new gagvc::DisplayUploadAdInfo(), - AppEngagementAd = new gagvc::AppEngagementAdInfo(), - FinalAppUrls = - { - new gagvc::FinalAppUrl(), - }, - ShoppingComparisonListingAd = new gagvc::ShoppingComparisonListingAdInfo(), - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - VideoResponsiveAd = new gagvc::VideoResponsiveAdInfo(), - Id = -6774108720365892680L, - FinalUrls = - { - "final_urls3ed0b71b", - }, - FinalMobileUrls = - { - "final_mobile_urlsf4131aa0", - }, - TrackingUrlTemplate = "tracking_url_template157f152a", - FinalUrlSuffix = "final_url_suffix046ed37a", - DisplayUrl = "display_url12de0d0c", - AddedByGoogleAds = true, - AdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - SmartCampaignAd = new gagvc::SmartCampaignAdInfo(), - CallAd = new gagvc::CallAdInfo(), - AppPreRegistrationAd = new gagvc::AppPreRegistrationAdInfo(), - DiscoveryMultiAssetAd = new gagvc::DiscoveryMultiAssetAdInfo(), - DiscoveryCarouselAd = new gagvc::DiscoveryCarouselAdInfo(), - }; - mockGrpcClient.Setup(x => x.GetAdAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::Ad responseCallSettings = await client.GetAdAsync(request.ResourceName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::Ad responseCancellationToken = await client.GetAdAsync(request.ResourceName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GetAdResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetAdRequest request = new GetAdRequest - { - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - }; - gagvr::Ad expectedResponse = new gagvr::Ad - { - Type = gagve::AdTypeEnum.Types.AdType.DiscoveryMultiAssetAd, - TextAd = new gagvc::TextAdInfo(), - ExpandedTextAd = new gagvc::ExpandedTextAdInfo(), - UrlCustomParameters = - { - new gagvc::CustomParameter(), - }, - ExpandedDynamicSearchAd = new gagvc::ExpandedDynamicSearchAdInfo(), - HotelAd = new gagvc::HotelAdInfo(), - ShoppingSmartAd = new gagvc::ShoppingSmartAdInfo(), - ShoppingProductAd = new gagvc::ShoppingProductAdInfo(), - DevicePreference = gagve::DeviceEnum.Types.Device.Desktop, - ImageAd = new gagvc::ImageAdInfo(), - VideoAd = new gagvc::VideoAdInfo(), - ResponsiveSearchAd = new gagvc::ResponsiveSearchAdInfo(), - UrlCollections = - { - new gagvc::UrlCollection(), - }, - SystemManagedResourceSource = gagve::SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.AdVariations, - LegacyResponsiveDisplayAd = new gagvc::LegacyResponsiveDisplayAdInfo(), - AppAd = new gagvc::AppAdInfo(), - LegacyAppInstallAd = new gagvc::LegacyAppInstallAdInfo(), - ResponsiveDisplayAd = new gagvc::ResponsiveDisplayAdInfo(), - LocalAd = new gagvc::LocalAdInfo(), - DisplayUploadAd = new gagvc::DisplayUploadAdInfo(), - AppEngagementAd = new gagvc::AppEngagementAdInfo(), - FinalAppUrls = - { - new gagvc::FinalAppUrl(), - }, - ShoppingComparisonListingAd = new gagvc::ShoppingComparisonListingAdInfo(), - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - VideoResponsiveAd = new gagvc::VideoResponsiveAdInfo(), - Id = -6774108720365892680L, - FinalUrls = - { - "final_urls3ed0b71b", - }, - FinalMobileUrls = - { - "final_mobile_urlsf4131aa0", - }, - TrackingUrlTemplate = "tracking_url_template157f152a", - FinalUrlSuffix = "final_url_suffix046ed37a", - DisplayUrl = "display_url12de0d0c", - AddedByGoogleAds = true, - AdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - SmartCampaignAd = new gagvc::SmartCampaignAdInfo(), - CallAd = new gagvc::CallAdInfo(), - AppPreRegistrationAd = new gagvc::AppPreRegistrationAdInfo(), - DiscoveryMultiAssetAd = new gagvc::DiscoveryMultiAssetAdInfo(), - DiscoveryCarouselAd = new gagvc::DiscoveryCarouselAdInfo(), - }; - mockGrpcClient.Setup(x => x.GetAd(request, moq::It.IsAny())).Returns(expectedResponse); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::Ad response = client.GetAd(request.ResourceNameAsAdName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetAdResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetAdRequest request = new GetAdRequest - { - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - }; - gagvr::Ad expectedResponse = new gagvr::Ad - { - Type = gagve::AdTypeEnum.Types.AdType.DiscoveryMultiAssetAd, - TextAd = new gagvc::TextAdInfo(), - ExpandedTextAd = new gagvc::ExpandedTextAdInfo(), - UrlCustomParameters = - { - new gagvc::CustomParameter(), - }, - ExpandedDynamicSearchAd = new gagvc::ExpandedDynamicSearchAdInfo(), - HotelAd = new gagvc::HotelAdInfo(), - ShoppingSmartAd = new gagvc::ShoppingSmartAdInfo(), - ShoppingProductAd = new gagvc::ShoppingProductAdInfo(), - DevicePreference = gagve::DeviceEnum.Types.Device.Desktop, - ImageAd = new gagvc::ImageAdInfo(), - VideoAd = new gagvc::VideoAdInfo(), - ResponsiveSearchAd = new gagvc::ResponsiveSearchAdInfo(), - UrlCollections = - { - new gagvc::UrlCollection(), - }, - SystemManagedResourceSource = gagve::SystemManagedResourceSourceEnum.Types.SystemManagedResourceSource.AdVariations, - LegacyResponsiveDisplayAd = new gagvc::LegacyResponsiveDisplayAdInfo(), - AppAd = new gagvc::AppAdInfo(), - LegacyAppInstallAd = new gagvc::LegacyAppInstallAdInfo(), - ResponsiveDisplayAd = new gagvc::ResponsiveDisplayAdInfo(), - LocalAd = new gagvc::LocalAdInfo(), - DisplayUploadAd = new gagvc::DisplayUploadAdInfo(), - AppEngagementAd = new gagvc::AppEngagementAdInfo(), - FinalAppUrls = - { - new gagvc::FinalAppUrl(), - }, - ShoppingComparisonListingAd = new gagvc::ShoppingComparisonListingAdInfo(), - ResourceNameAsAdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - VideoResponsiveAd = new gagvc::VideoResponsiveAdInfo(), - Id = -6774108720365892680L, - FinalUrls = - { - "final_urls3ed0b71b", - }, - FinalMobileUrls = - { - "final_mobile_urlsf4131aa0", - }, - TrackingUrlTemplate = "tracking_url_template157f152a", - FinalUrlSuffix = "final_url_suffix046ed37a", - DisplayUrl = "display_url12de0d0c", - AddedByGoogleAds = true, - AdName = gagvr::AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"), - SmartCampaignAd = new gagvc::SmartCampaignAdInfo(), - CallAd = new gagvc::CallAdInfo(), - AppPreRegistrationAd = new gagvc::AppPreRegistrationAdInfo(), - DiscoveryMultiAssetAd = new gagvc::DiscoveryMultiAssetAdInfo(), - DiscoveryCarouselAd = new gagvc::DiscoveryCarouselAdInfo(), - }; - mockGrpcClient.Setup(x => x.GetAdAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::Ad responseCallSettings = await client.GetAdAsync(request.ResourceNameAsAdName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::Ad responseCancellationToken = await client.GetAdAsync(request.ResourceNameAsAdName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAdsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdsRequest request = new MutateAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = { new AdOperation(), }, - ValidateOnly = true, - PartialFailure = false, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdsResponse expectedResponse = new MutateAdsResponse - { - Results = - { - new MutateAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAds(request, moq::It.IsAny())).Returns(expectedResponse); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdsResponse response = client.MutateAds(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdsRequest request = new MutateAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = { new AdOperation(), }, - ValidateOnly = true, - PartialFailure = false, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAdsResponse expectedResponse = new MutateAdsResponse - { - Results = - { - new MutateAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdsResponse responseCallSettings = await client.MutateAdsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdsResponse responseCancellationToken = await client.MutateAdsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAds() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdsRequest request = new MutateAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = { new AdOperation(), }, - }; - MutateAdsResponse expectedResponse = new MutateAdsResponse - { - Results = - { - new MutateAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAds(request, moq::It.IsAny())).Returns(expectedResponse); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdsResponse response = client.MutateAds(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAdsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAdsRequest request = new MutateAdsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = { new AdOperation(), }, - }; - MutateAdsResponse expectedResponse = new MutateAdsResponse - { - Results = - { - new MutateAdResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAdsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AdServiceClient client = new AdServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAdsResponse responseCallSettings = await client.MutateAdsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAdsResponse responseCancellationToken = await client.MutateAdsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AssetGroupAssetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AssetGroupAssetServiceClientTest.g.cs deleted file mode 100755 index df727f99f..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AssetGroupAssetServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAssetGroupAssetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAssetGroupAssetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupAssetsRequest request = new MutateAssetGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAssetGroupAssetsResponse expectedResponse = new MutateAssetGroupAssetsResponse - { - Results = - { - new MutateAssetGroupAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupAssetServiceClient client = new AssetGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupAssetsResponse response = client.MutateAssetGroupAssets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupAssetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupAssetsRequest request = new MutateAssetGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateAssetGroupAssetsResponse expectedResponse = new MutateAssetGroupAssetsResponse - { - Results = - { - new MutateAssetGroupAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupAssetServiceClient client = new AssetGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupAssetsResponse responseCallSettings = await client.MutateAssetGroupAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupAssetsResponse responseCancellationToken = await client.MutateAssetGroupAssetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAssetGroupAssets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupAssetsRequest request = new MutateAssetGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupAssetOperation(), - }, - }; - MutateAssetGroupAssetsResponse expectedResponse = new MutateAssetGroupAssetsResponse - { - Results = - { - new MutateAssetGroupAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupAssetServiceClient client = new AssetGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupAssetsResponse response = client.MutateAssetGroupAssets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupAssetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupAssetsRequest request = new MutateAssetGroupAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupAssetOperation(), - }, - }; - MutateAssetGroupAssetsResponse expectedResponse = new MutateAssetGroupAssetsResponse - { - Results = - { - new MutateAssetGroupAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupAssetServiceClient client = new AssetGroupAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupAssetsResponse responseCallSettings = await client.MutateAssetGroupAssetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupAssetsResponse responseCancellationToken = await client.MutateAssetGroupAssetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AssetGroupListingGroupFilterServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AssetGroupListingGroupFilterServiceClientTest.g.cs deleted file mode 100755 index 7f8359d71..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AssetGroupListingGroupFilterServiceClientTest.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAssetGroupListingGroupFilterServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAssetGroupListingGroupFiltersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupListingGroupFiltersRequest request = new MutateAssetGroupListingGroupFiltersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupListingGroupFilterOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetGroupListingGroupFiltersResponse expectedResponse = new MutateAssetGroupListingGroupFiltersResponse - { - Results = - { - new MutateAssetGroupListingGroupFilterResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupListingGroupFilters(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupListingGroupFilterServiceClient client = new AssetGroupListingGroupFilterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupListingGroupFiltersResponse response = client.MutateAssetGroupListingGroupFilters(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupListingGroupFiltersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupListingGroupFiltersRequest request = new MutateAssetGroupListingGroupFiltersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupListingGroupFilterOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetGroupListingGroupFiltersResponse expectedResponse = new MutateAssetGroupListingGroupFiltersResponse - { - Results = - { - new MutateAssetGroupListingGroupFilterResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupListingGroupFiltersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupListingGroupFilterServiceClient client = new AssetGroupListingGroupFilterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupListingGroupFiltersResponse responseCallSettings = await client.MutateAssetGroupListingGroupFiltersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupListingGroupFiltersResponse responseCancellationToken = await client.MutateAssetGroupListingGroupFiltersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAssetGroupListingGroupFilters() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupListingGroupFiltersRequest request = new MutateAssetGroupListingGroupFiltersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupListingGroupFilterOperation(), - }, - }; - MutateAssetGroupListingGroupFiltersResponse expectedResponse = new MutateAssetGroupListingGroupFiltersResponse - { - Results = - { - new MutateAssetGroupListingGroupFilterResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupListingGroupFilters(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupListingGroupFilterServiceClient client = new AssetGroupListingGroupFilterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupListingGroupFiltersResponse response = client.MutateAssetGroupListingGroupFilters(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupListingGroupFiltersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupListingGroupFiltersRequest request = new MutateAssetGroupListingGroupFiltersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupListingGroupFilterOperation(), - }, - }; - MutateAssetGroupListingGroupFiltersResponse expectedResponse = new MutateAssetGroupListingGroupFiltersResponse - { - Results = - { - new MutateAssetGroupListingGroupFilterResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupListingGroupFiltersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupListingGroupFilterServiceClient client = new AssetGroupListingGroupFilterServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupListingGroupFiltersResponse responseCallSettings = await client.MutateAssetGroupListingGroupFiltersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupListingGroupFiltersResponse responseCancellationToken = await client.MutateAssetGroupListingGroupFiltersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AssetGroupServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AssetGroupServiceClientTest.g.cs deleted file mode 100755 index c01f26704..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AssetGroupServiceClientTest.g.cs +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAssetGroupServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAssetGroupsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupsRequest request = new MutateAssetGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupOperation(), - }, - ValidateOnly = true, - }; - MutateAssetGroupsResponse expectedResponse = new MutateAssetGroupsResponse - { - Results = - { - new MutateAssetGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroups(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupServiceClient client = new AssetGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupsResponse response = client.MutateAssetGroups(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupsRequest request = new MutateAssetGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupOperation(), - }, - ValidateOnly = true, - }; - MutateAssetGroupsResponse expectedResponse = new MutateAssetGroupsResponse - { - Results = - { - new MutateAssetGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupServiceClient client = new AssetGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupsResponse responseCallSettings = await client.MutateAssetGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupsResponse responseCancellationToken = await client.MutateAssetGroupsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAssetGroups() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupsRequest request = new MutateAssetGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupOperation(), - }, - }; - MutateAssetGroupsResponse expectedResponse = new MutateAssetGroupsResponse - { - Results = - { - new MutateAssetGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroups(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupServiceClient client = new AssetGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupsResponse response = client.MutateAssetGroups(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupsRequest request = new MutateAssetGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupOperation(), - }, - }; - MutateAssetGroupsResponse expectedResponse = new MutateAssetGroupsResponse - { - Results = - { - new MutateAssetGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupServiceClient client = new AssetGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupsResponse responseCallSettings = await client.MutateAssetGroupsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupsResponse responseCancellationToken = await client.MutateAssetGroupsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AssetGroupSignalServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AssetGroupSignalServiceClientTest.g.cs deleted file mode 100755 index 0a0f8c9fc..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AssetGroupSignalServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAssetGroupSignalServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAssetGroupSignalsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupSignalsRequest request = new MutateAssetGroupSignalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupSignalOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetGroupSignalsResponse expectedResponse = new MutateAssetGroupSignalsResponse - { - Results = - { - new MutateAssetGroupSignalResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupSignals(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupSignalServiceClient client = new AssetGroupSignalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupSignalsResponse response = client.MutateAssetGroupSignals(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupSignalsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupSignalsRequest request = new MutateAssetGroupSignalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupSignalOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetGroupSignalsResponse expectedResponse = new MutateAssetGroupSignalsResponse - { - Results = - { - new MutateAssetGroupSignalResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupSignalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupSignalServiceClient client = new AssetGroupSignalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupSignalsResponse responseCallSettings = await client.MutateAssetGroupSignalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupSignalsResponse responseCancellationToken = await client.MutateAssetGroupSignalsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAssetGroupSignals() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupSignalsRequest request = new MutateAssetGroupSignalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupSignalOperation(), - }, - }; - MutateAssetGroupSignalsResponse expectedResponse = new MutateAssetGroupSignalsResponse - { - Results = - { - new MutateAssetGroupSignalResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupSignals(request, moq::It.IsAny())).Returns(expectedResponse); - AssetGroupSignalServiceClient client = new AssetGroupSignalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupSignalsResponse response = client.MutateAssetGroupSignals(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetGroupSignalsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetGroupSignalsRequest request = new MutateAssetGroupSignalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetGroupSignalOperation(), - }, - }; - MutateAssetGroupSignalsResponse expectedResponse = new MutateAssetGroupSignalsResponse - { - Results = - { - new MutateAssetGroupSignalResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetGroupSignalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetGroupSignalServiceClient client = new AssetGroupSignalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetGroupSignalsResponse responseCallSettings = await client.MutateAssetGroupSignalsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetGroupSignalsResponse responseCancellationToken = await client.MutateAssetGroupSignalsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AssetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AssetServiceClientTest.g.cs deleted file mode 100755 index 27ecd3710..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AssetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAssetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAssetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetsRequest request = new MutateAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetOperation(), - }, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - ValidateOnly = true, - PartialFailure = false, - }; - MutateAssetsResponse expectedResponse = new MutateAssetsResponse - { - Results = - { - new MutateAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetServiceClient client = new AssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetsResponse response = client.MutateAssets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetsRequest request = new MutateAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetOperation(), - }, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - ValidateOnly = true, - PartialFailure = false, - }; - MutateAssetsResponse expectedResponse = new MutateAssetsResponse - { - Results = - { - new MutateAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetServiceClient client = new AssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetsResponse responseCallSettings = await client.MutateAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetsResponse responseCancellationToken = await client.MutateAssetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAssets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetsRequest request = new MutateAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetOperation(), - }, - }; - MutateAssetsResponse expectedResponse = new MutateAssetsResponse - { - Results = - { - new MutateAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetServiceClient client = new AssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetsResponse response = client.MutateAssets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetsRequest request = new MutateAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetOperation(), - }, - }; - MutateAssetsResponse expectedResponse = new MutateAssetsResponse - { - Results = - { - new MutateAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetServiceClient client = new AssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetsResponse responseCallSettings = await client.MutateAssetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetsResponse responseCancellationToken = await client.MutateAssetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AssetSetAssetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AssetSetAssetServiceClientTest.g.cs deleted file mode 100755 index b928aa0e7..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AssetSetAssetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAssetSetAssetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAssetSetAssetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetAssetsRequest request = new MutateAssetSetAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetSetAssetsResponse expectedResponse = new MutateAssetSetAssetsResponse - { - Results = - { - new MutateAssetSetAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSetAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetSetAssetServiceClient client = new AssetSetAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetAssetsResponse response = client.MutateAssetSetAssets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetSetAssetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetAssetsRequest request = new MutateAssetSetAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetSetAssetsResponse expectedResponse = new MutateAssetSetAssetsResponse - { - Results = - { - new MutateAssetSetAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSetAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetSetAssetServiceClient client = new AssetSetAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetAssetsResponse responseCallSettings = await client.MutateAssetSetAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetSetAssetsResponse responseCancellationToken = await client.MutateAssetSetAssetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAssetSetAssets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetAssetsRequest request = new MutateAssetSetAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetAssetOperation(), - }, - }; - MutateAssetSetAssetsResponse expectedResponse = new MutateAssetSetAssetsResponse - { - Results = - { - new MutateAssetSetAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSetAssets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetSetAssetServiceClient client = new AssetSetAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetAssetsResponse response = client.MutateAssetSetAssets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetSetAssetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetAssetsRequest request = new MutateAssetSetAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetAssetOperation(), - }, - }; - MutateAssetSetAssetsResponse expectedResponse = new MutateAssetSetAssetsResponse - { - Results = - { - new MutateAssetSetAssetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSetAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetSetAssetServiceClient client = new AssetSetAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetAssetsResponse responseCallSettings = await client.MutateAssetSetAssetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetSetAssetsResponse responseCancellationToken = await client.MutateAssetSetAssetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AssetSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AssetSetServiceClientTest.g.cs deleted file mode 100755 index 66978fde8..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AssetSetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAssetSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAssetSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetsRequest request = new MutateAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetSetsResponse expectedResponse = new MutateAssetSetsResponse - { - Results = - { - new MutateAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetSetServiceClient client = new AssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetsResponse response = client.MutateAssetSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetsRequest request = new MutateAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAssetSetsResponse expectedResponse = new MutateAssetSetsResponse - { - Results = - { - new MutateAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetSetServiceClient client = new AssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetsResponse responseCallSettings = await client.MutateAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetSetsResponse responseCancellationToken = await client.MutateAssetSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAssetSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetsRequest request = new MutateAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetOperation(), - }, - }; - MutateAssetSetsResponse expectedResponse = new MutateAssetSetsResponse - { - Results = - { - new MutateAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - AssetSetServiceClient client = new AssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetsResponse response = client.MutateAssetSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAssetSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAssetSetsRequest request = new MutateAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AssetSetOperation(), - }, - }; - MutateAssetSetsResponse expectedResponse = new MutateAssetSetsResponse - { - Results = - { - new MutateAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AssetSetServiceClient client = new AssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAssetSetsResponse responseCallSettings = await client.MutateAssetSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAssetSetsResponse responseCancellationToken = await client.MutateAssetSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AudienceInsightsServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AudienceInsightsServiceClientTest.g.cs deleted file mode 100755 index e4e43d6b3..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AudienceInsightsServiceClientTest.g.cs +++ /dev/null @@ -1,401 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvc = Google.Ads.GoogleAds.V12.Common; -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAudienceInsightsServiceClientTest - { - [Category("Autogenerated")][Test] - public void GenerateInsightsFinderReportRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateInsightsFinderReportRequest request = new GenerateInsightsFinderReportRequest - { - CustomerId = "customer_id3b3724cb", - BaselineAudience = new BasicInsightsAudience(), - SpecificAudience = new BasicInsightsAudience(), - CustomerInsightsGroup = "customer_insights_groupee7d0741", - }; - GenerateInsightsFinderReportResponse expectedResponse = new GenerateInsightsFinderReportResponse - { - SavedReportUrl = "saved_report_url8574fd0f", - }; - mockGrpcClient.Setup(x => x.GenerateInsightsFinderReport(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateInsightsFinderReportResponse response = client.GenerateInsightsFinderReport(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateInsightsFinderReportRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateInsightsFinderReportRequest request = new GenerateInsightsFinderReportRequest - { - CustomerId = "customer_id3b3724cb", - BaselineAudience = new BasicInsightsAudience(), - SpecificAudience = new BasicInsightsAudience(), - CustomerInsightsGroup = "customer_insights_groupee7d0741", - }; - GenerateInsightsFinderReportResponse expectedResponse = new GenerateInsightsFinderReportResponse - { - SavedReportUrl = "saved_report_url8574fd0f", - }; - mockGrpcClient.Setup(x => x.GenerateInsightsFinderReportAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateInsightsFinderReportResponse responseCallSettings = await client.GenerateInsightsFinderReportAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateInsightsFinderReportResponse responseCancellationToken = await client.GenerateInsightsFinderReportAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateInsightsFinderReport() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateInsightsFinderReportRequest request = new GenerateInsightsFinderReportRequest - { - CustomerId = "customer_id3b3724cb", - BaselineAudience = new BasicInsightsAudience(), - SpecificAudience = new BasicInsightsAudience(), - }; - GenerateInsightsFinderReportResponse expectedResponse = new GenerateInsightsFinderReportResponse - { - SavedReportUrl = "saved_report_url8574fd0f", - }; - mockGrpcClient.Setup(x => x.GenerateInsightsFinderReport(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateInsightsFinderReportResponse response = client.GenerateInsightsFinderReport(request.CustomerId, request.BaselineAudience, request.SpecificAudience); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateInsightsFinderReportAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateInsightsFinderReportRequest request = new GenerateInsightsFinderReportRequest - { - CustomerId = "customer_id3b3724cb", - BaselineAudience = new BasicInsightsAudience(), - SpecificAudience = new BasicInsightsAudience(), - }; - GenerateInsightsFinderReportResponse expectedResponse = new GenerateInsightsFinderReportResponse - { - SavedReportUrl = "saved_report_url8574fd0f", - }; - mockGrpcClient.Setup(x => x.GenerateInsightsFinderReportAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateInsightsFinderReportResponse responseCallSettings = await client.GenerateInsightsFinderReportAsync(request.CustomerId, request.BaselineAudience, request.SpecificAudience, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateInsightsFinderReportResponse responseCancellationToken = await client.GenerateInsightsFinderReportAsync(request.CustomerId, request.BaselineAudience, request.SpecificAudience, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListAudienceInsightsAttributesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListAudienceInsightsAttributesRequest request = new ListAudienceInsightsAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - QueryText = "query_text3b0c4d80", - CustomerInsightsGroup = "customer_insights_groupee7d0741", - LocationCountryFilters = - { - new gagvc::LocationInfo(), - }, - }; - ListAudienceInsightsAttributesResponse expectedResponse = new ListAudienceInsightsAttributesResponse - { - Attributes = - { - new AudienceInsightsAttributeMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListAudienceInsightsAttributes(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - ListAudienceInsightsAttributesResponse response = client.ListAudienceInsightsAttributes(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListAudienceInsightsAttributesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListAudienceInsightsAttributesRequest request = new ListAudienceInsightsAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - QueryText = "query_text3b0c4d80", - CustomerInsightsGroup = "customer_insights_groupee7d0741", - LocationCountryFilters = - { - new gagvc::LocationInfo(), - }, - }; - ListAudienceInsightsAttributesResponse expectedResponse = new ListAudienceInsightsAttributesResponse - { - Attributes = - { - new AudienceInsightsAttributeMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListAudienceInsightsAttributesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - ListAudienceInsightsAttributesResponse responseCallSettings = await client.ListAudienceInsightsAttributesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListAudienceInsightsAttributesResponse responseCancellationToken = await client.ListAudienceInsightsAttributesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListAudienceInsightsAttributes() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListAudienceInsightsAttributesRequest request = new ListAudienceInsightsAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - QueryText = "query_text3b0c4d80", - }; - ListAudienceInsightsAttributesResponse expectedResponse = new ListAudienceInsightsAttributesResponse - { - Attributes = - { - new AudienceInsightsAttributeMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListAudienceInsightsAttributes(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - ListAudienceInsightsAttributesResponse response = client.ListAudienceInsightsAttributes(request.CustomerId, request.Dimensions, request.QueryText); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListAudienceInsightsAttributesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListAudienceInsightsAttributesRequest request = new ListAudienceInsightsAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - QueryText = "query_text3b0c4d80", - }; - ListAudienceInsightsAttributesResponse expectedResponse = new ListAudienceInsightsAttributesResponse - { - Attributes = - { - new AudienceInsightsAttributeMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListAudienceInsightsAttributesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - ListAudienceInsightsAttributesResponse responseCallSettings = await client.ListAudienceInsightsAttributesAsync(request.CustomerId, request.Dimensions, request.QueryText, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListAudienceInsightsAttributesResponse responseCancellationToken = await client.ListAudienceInsightsAttributesAsync(request.CustomerId, request.Dimensions, request.QueryText, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListInsightsEligibleDatesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListInsightsEligibleDatesRequest request = new ListInsightsEligibleDatesRequest { }; - ListInsightsEligibleDatesResponse expectedResponse = new ListInsightsEligibleDatesResponse - { - DataMonths = - { - "data_months737b24e8", - }, - }; - mockGrpcClient.Setup(x => x.ListInsightsEligibleDates(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - ListInsightsEligibleDatesResponse response = client.ListInsightsEligibleDates(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListInsightsEligibleDatesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListInsightsEligibleDatesRequest request = new ListInsightsEligibleDatesRequest { }; - ListInsightsEligibleDatesResponse expectedResponse = new ListInsightsEligibleDatesResponse - { - DataMonths = - { - "data_months737b24e8", - }, - }; - mockGrpcClient.Setup(x => x.ListInsightsEligibleDatesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - ListInsightsEligibleDatesResponse responseCallSettings = await client.ListInsightsEligibleDatesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListInsightsEligibleDatesResponse responseCancellationToken = await client.ListInsightsEligibleDatesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateAudienceCompositionInsightsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateAudienceCompositionInsightsRequest request = new GenerateAudienceCompositionInsightsRequest - { - CustomerId = "customer_id3b3724cb", - Audience = new InsightsAudience(), - DataMonth = "data_month47be152a", - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - CustomerInsightsGroup = "customer_insights_groupee7d0741", - }; - GenerateAudienceCompositionInsightsResponse expectedResponse = new GenerateAudienceCompositionInsightsResponse - { - Sections = - { - new AudienceCompositionSection(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateAudienceCompositionInsights(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateAudienceCompositionInsightsResponse response = client.GenerateAudienceCompositionInsights(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateAudienceCompositionInsightsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateAudienceCompositionInsightsRequest request = new GenerateAudienceCompositionInsightsRequest - { - CustomerId = "customer_id3b3724cb", - Audience = new InsightsAudience(), - DataMonth = "data_month47be152a", - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - CustomerInsightsGroup = "customer_insights_groupee7d0741", - }; - GenerateAudienceCompositionInsightsResponse expectedResponse = new GenerateAudienceCompositionInsightsResponse - { - Sections = - { - new AudienceCompositionSection(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateAudienceCompositionInsightsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateAudienceCompositionInsightsResponse responseCallSettings = await client.GenerateAudienceCompositionInsightsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateAudienceCompositionInsightsResponse responseCancellationToken = await client.GenerateAudienceCompositionInsightsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateAudienceCompositionInsights() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateAudienceCompositionInsightsRequest request = new GenerateAudienceCompositionInsightsRequest - { - CustomerId = "customer_id3b3724cb", - Audience = new InsightsAudience(), - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - }; - GenerateAudienceCompositionInsightsResponse expectedResponse = new GenerateAudienceCompositionInsightsResponse - { - Sections = - { - new AudienceCompositionSection(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateAudienceCompositionInsights(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateAudienceCompositionInsightsResponse response = client.GenerateAudienceCompositionInsights(request.CustomerId, request.Audience, request.Dimensions); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateAudienceCompositionInsightsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateAudienceCompositionInsightsRequest request = new GenerateAudienceCompositionInsightsRequest - { - CustomerId = "customer_id3b3724cb", - Audience = new InsightsAudience(), - Dimensions = - { - gagve::AudienceInsightsDimensionEnum.Types.AudienceInsightsDimension.AgeRange, - }, - }; - GenerateAudienceCompositionInsightsResponse expectedResponse = new GenerateAudienceCompositionInsightsResponse - { - Sections = - { - new AudienceCompositionSection(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateAudienceCompositionInsightsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceInsightsServiceClient client = new AudienceInsightsServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateAudienceCompositionInsightsResponse responseCallSettings = await client.GenerateAudienceCompositionInsightsAsync(request.CustomerId, request.Audience, request.Dimensions, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateAudienceCompositionInsightsResponse responseCancellationToken = await client.GenerateAudienceCompositionInsightsAsync(request.CustomerId, request.Audience, request.Dimensions, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/AudienceServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/AudienceServiceClientTest.g.cs deleted file mode 100755 index 104dfea93..000000000 --- a/Google.Ads.GoogleAds/tests/V12/AudienceServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedAudienceServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateAudiencesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAudiencesRequest request = new MutateAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AudienceOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAudiencesResponse expectedResponse = new MutateAudiencesResponse - { - Results = - { - new MutateAudienceResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAudiences(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceServiceClient client = new AudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAudiencesResponse response = client.MutateAudiences(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAudiencesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAudiencesRequest request = new MutateAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AudienceOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateAudiencesResponse expectedResponse = new MutateAudiencesResponse - { - Results = - { - new MutateAudienceResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAudiencesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceServiceClient client = new AudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAudiencesResponse responseCallSettings = await client.MutateAudiencesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAudiencesResponse responseCancellationToken = await client.MutateAudiencesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateAudiences() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAudiencesRequest request = new MutateAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AudienceOperation(), - }, - }; - MutateAudiencesResponse expectedResponse = new MutateAudiencesResponse - { - Results = - { - new MutateAudienceResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAudiences(request, moq::It.IsAny())).Returns(expectedResponse); - AudienceServiceClient client = new AudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAudiencesResponse response = client.MutateAudiences(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAudiencesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateAudiencesRequest request = new MutateAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new AudienceOperation(), - }, - }; - MutateAudiencesResponse expectedResponse = new MutateAudiencesResponse - { - Results = - { - new MutateAudienceResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAudiencesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - AudienceServiceClient client = new AudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateAudiencesResponse responseCallSettings = await client.MutateAudiencesAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateAudiencesResponse responseCancellationToken = await client.MutateAudiencesAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/BatchJobServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/BatchJobServiceClientTest.g.cs deleted file mode 100755 index efa360f3e..000000000 --- a/Google.Ads.GoogleAds/tests/V12/BatchJobServiceClientTest.g.cs +++ /dev/null @@ -1,387 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using lro = Google.LongRunning; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedBatchJobServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateBatchJobRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateBatchJobRequest request = new MutateBatchJobRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BatchJobOperation(), - }; - MutateBatchJobResponse expectedResponse = new MutateBatchJobResponse - { - Result = new MutateBatchJobResult(), - }; - mockGrpcClient.Setup(x => x.MutateBatchJob(request, moq::It.IsAny())).Returns(expectedResponse); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBatchJobResponse response = client.MutateBatchJob(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBatchJobRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateBatchJobRequest request = new MutateBatchJobRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BatchJobOperation(), - }; - MutateBatchJobResponse expectedResponse = new MutateBatchJobResponse - { - Result = new MutateBatchJobResult(), - }; - mockGrpcClient.Setup(x => x.MutateBatchJobAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBatchJobResponse responseCallSettings = await client.MutateBatchJobAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBatchJobResponse responseCancellationToken = await client.MutateBatchJobAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateBatchJob() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateBatchJobRequest request = new MutateBatchJobRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BatchJobOperation(), - }; - MutateBatchJobResponse expectedResponse = new MutateBatchJobResponse - { - Result = new MutateBatchJobResult(), - }; - mockGrpcClient.Setup(x => x.MutateBatchJob(request, moq::It.IsAny())).Returns(expectedResponse); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBatchJobResponse response = client.MutateBatchJob(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBatchJobAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateBatchJobRequest request = new MutateBatchJobRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BatchJobOperation(), - }; - MutateBatchJobResponse expectedResponse = new MutateBatchJobResponse - { - Result = new MutateBatchJobResult(), - }; - mockGrpcClient.Setup(x => x.MutateBatchJobAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBatchJobResponse responseCallSettings = await client.MutateBatchJobAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBatchJobResponse responseCancellationToken = await client.MutateBatchJobAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddBatchJobOperationsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - SequenceToken = "sequence_tokene6b46f6e", - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse response = client.AddBatchJobOperations(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddBatchJobOperationsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - SequenceToken = "sequence_tokene6b46f6e", - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse responseCallSettings = await client.AddBatchJobOperationsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddBatchJobOperationsResponse responseCancellationToken = await client.AddBatchJobOperationsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddBatchJobOperations1() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - SequenceToken = "sequence_tokene6b46f6e", - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse response = client.AddBatchJobOperations(request.ResourceName, request.SequenceToken, request.MutateOperations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddBatchJobOperations1Async() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - SequenceToken = "sequence_tokene6b46f6e", - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse responseCallSettings = await client.AddBatchJobOperationsAsync(request.ResourceName, request.SequenceToken, request.MutateOperations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddBatchJobOperationsResponse responseCancellationToken = await client.AddBatchJobOperationsAsync(request.ResourceName, request.SequenceToken, request.MutateOperations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddBatchJobOperations1ResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - SequenceToken = "sequence_tokene6b46f6e", - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse response = client.AddBatchJobOperations(request.ResourceNameAsBatchJobName, request.SequenceToken, request.MutateOperations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddBatchJobOperations1ResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - SequenceToken = "sequence_tokene6b46f6e", - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse responseCallSettings = await client.AddBatchJobOperationsAsync(request.ResourceNameAsBatchJobName, request.SequenceToken, request.MutateOperations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddBatchJobOperationsResponse responseCancellationToken = await client.AddBatchJobOperationsAsync(request.ResourceNameAsBatchJobName, request.SequenceToken, request.MutateOperations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddBatchJobOperations2() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse response = client.AddBatchJobOperations(request.ResourceName, request.MutateOperations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddBatchJobOperations2Async() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse responseCallSettings = await client.AddBatchJobOperationsAsync(request.ResourceName, request.MutateOperations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddBatchJobOperationsResponse responseCancellationToken = await client.AddBatchJobOperationsAsync(request.ResourceName, request.MutateOperations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddBatchJobOperations2ResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse response = client.AddBatchJobOperations(request.ResourceNameAsBatchJobName, request.MutateOperations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddBatchJobOperations2ResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddBatchJobOperationsRequest request = new AddBatchJobOperationsRequest - { - ResourceNameAsBatchJobName = gagvr::BatchJobName.FromCustomerBatchJob("[CUSTOMER_ID]", "[BATCH_JOB_ID]"), - MutateOperations = - { - new MutateOperation(), - }, - }; - AddBatchJobOperationsResponse expectedResponse = new AddBatchJobOperationsResponse - { - TotalOperations = -8188520186954789005L, - NextSequenceToken = "next_sequence_token160dabc7", - }; - mockGrpcClient.Setup(x => x.AddBatchJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BatchJobServiceClient client = new BatchJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddBatchJobOperationsResponse responseCallSettings = await client.AddBatchJobOperationsAsync(request.ResourceNameAsBatchJobName, request.MutateOperations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddBatchJobOperationsResponse responseCancellationToken = await client.AddBatchJobOperationsAsync(request.ResourceNameAsBatchJobName, request.MutateOperations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/BiddingDataExclusionServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/BiddingDataExclusionServiceClientTest.g.cs deleted file mode 100755 index a60e32a21..000000000 --- a/Google.Ads.GoogleAds/tests/V12/BiddingDataExclusionServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedBiddingDataExclusionServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateBiddingDataExclusionsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingDataExclusionsRequest request = new MutateBiddingDataExclusionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingDataExclusionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateBiddingDataExclusionsResponse expectedResponse = new MutateBiddingDataExclusionsResponse - { - Results = - { - new MutateBiddingDataExclusionsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingDataExclusions(request, moq::It.IsAny())).Returns(expectedResponse); - BiddingDataExclusionServiceClient client = new BiddingDataExclusionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingDataExclusionsResponse response = client.MutateBiddingDataExclusions(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBiddingDataExclusionsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingDataExclusionsRequest request = new MutateBiddingDataExclusionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingDataExclusionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateBiddingDataExclusionsResponse expectedResponse = new MutateBiddingDataExclusionsResponse - { - Results = - { - new MutateBiddingDataExclusionsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingDataExclusionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BiddingDataExclusionServiceClient client = new BiddingDataExclusionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingDataExclusionsResponse responseCallSettings = await client.MutateBiddingDataExclusionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBiddingDataExclusionsResponse responseCancellationToken = await client.MutateBiddingDataExclusionsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateBiddingDataExclusions() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingDataExclusionsRequest request = new MutateBiddingDataExclusionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingDataExclusionOperation(), - }, - }; - MutateBiddingDataExclusionsResponse expectedResponse = new MutateBiddingDataExclusionsResponse - { - Results = - { - new MutateBiddingDataExclusionsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingDataExclusions(request, moq::It.IsAny())).Returns(expectedResponse); - BiddingDataExclusionServiceClient client = new BiddingDataExclusionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingDataExclusionsResponse response = client.MutateBiddingDataExclusions(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBiddingDataExclusionsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingDataExclusionsRequest request = new MutateBiddingDataExclusionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingDataExclusionOperation(), - }, - }; - MutateBiddingDataExclusionsResponse expectedResponse = new MutateBiddingDataExclusionsResponse - { - Results = - { - new MutateBiddingDataExclusionsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingDataExclusionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BiddingDataExclusionServiceClient client = new BiddingDataExclusionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingDataExclusionsResponse responseCallSettings = await client.MutateBiddingDataExclusionsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBiddingDataExclusionsResponse responseCancellationToken = await client.MutateBiddingDataExclusionsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/BiddingSeasonalityAdjustmentServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/BiddingSeasonalityAdjustmentServiceClientTest.g.cs deleted file mode 100755 index f13a1dffd..000000000 --- a/Google.Ads.GoogleAds/tests/V12/BiddingSeasonalityAdjustmentServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedBiddingSeasonalityAdjustmentServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateBiddingSeasonalityAdjustmentsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingSeasonalityAdjustmentsRequest request = new MutateBiddingSeasonalityAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingSeasonalityAdjustmentOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateBiddingSeasonalityAdjustmentsResponse expectedResponse = new MutateBiddingSeasonalityAdjustmentsResponse - { - Results = - { - new MutateBiddingSeasonalityAdjustmentsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingSeasonalityAdjustments(request, moq::It.IsAny())).Returns(expectedResponse); - BiddingSeasonalityAdjustmentServiceClient client = new BiddingSeasonalityAdjustmentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingSeasonalityAdjustmentsResponse response = client.MutateBiddingSeasonalityAdjustments(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBiddingSeasonalityAdjustmentsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingSeasonalityAdjustmentsRequest request = new MutateBiddingSeasonalityAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingSeasonalityAdjustmentOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateBiddingSeasonalityAdjustmentsResponse expectedResponse = new MutateBiddingSeasonalityAdjustmentsResponse - { - Results = - { - new MutateBiddingSeasonalityAdjustmentsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingSeasonalityAdjustmentsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BiddingSeasonalityAdjustmentServiceClient client = new BiddingSeasonalityAdjustmentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingSeasonalityAdjustmentsResponse responseCallSettings = await client.MutateBiddingSeasonalityAdjustmentsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBiddingSeasonalityAdjustmentsResponse responseCancellationToken = await client.MutateBiddingSeasonalityAdjustmentsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateBiddingSeasonalityAdjustments() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingSeasonalityAdjustmentsRequest request = new MutateBiddingSeasonalityAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingSeasonalityAdjustmentOperation(), - }, - }; - MutateBiddingSeasonalityAdjustmentsResponse expectedResponse = new MutateBiddingSeasonalityAdjustmentsResponse - { - Results = - { - new MutateBiddingSeasonalityAdjustmentsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingSeasonalityAdjustments(request, moq::It.IsAny())).Returns(expectedResponse); - BiddingSeasonalityAdjustmentServiceClient client = new BiddingSeasonalityAdjustmentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingSeasonalityAdjustmentsResponse response = client.MutateBiddingSeasonalityAdjustments(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBiddingSeasonalityAdjustmentsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingSeasonalityAdjustmentsRequest request = new MutateBiddingSeasonalityAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingSeasonalityAdjustmentOperation(), - }, - }; - MutateBiddingSeasonalityAdjustmentsResponse expectedResponse = new MutateBiddingSeasonalityAdjustmentsResponse - { - Results = - { - new MutateBiddingSeasonalityAdjustmentsResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingSeasonalityAdjustmentsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BiddingSeasonalityAdjustmentServiceClient client = new BiddingSeasonalityAdjustmentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingSeasonalityAdjustmentsResponse responseCallSettings = await client.MutateBiddingSeasonalityAdjustmentsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBiddingSeasonalityAdjustmentsResponse responseCancellationToken = await client.MutateBiddingSeasonalityAdjustmentsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/BiddingStrategyServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/BiddingStrategyServiceClientTest.g.cs deleted file mode 100755 index c4a161bfb..000000000 --- a/Google.Ads.GoogleAds/tests/V12/BiddingStrategyServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedBiddingStrategyServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateBiddingStrategiesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingStrategiesRequest request = new MutateBiddingStrategiesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingStrategyOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateBiddingStrategiesResponse expectedResponse = new MutateBiddingStrategiesResponse - { - Results = - { - new MutateBiddingStrategyResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingStrategies(request, moq::It.IsAny())).Returns(expectedResponse); - BiddingStrategyServiceClient client = new BiddingStrategyServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingStrategiesResponse response = client.MutateBiddingStrategies(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBiddingStrategiesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingStrategiesRequest request = new MutateBiddingStrategiesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingStrategyOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateBiddingStrategiesResponse expectedResponse = new MutateBiddingStrategiesResponse - { - Results = - { - new MutateBiddingStrategyResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingStrategiesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BiddingStrategyServiceClient client = new BiddingStrategyServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingStrategiesResponse responseCallSettings = await client.MutateBiddingStrategiesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBiddingStrategiesResponse responseCancellationToken = await client.MutateBiddingStrategiesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateBiddingStrategies() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingStrategiesRequest request = new MutateBiddingStrategiesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingStrategyOperation(), - }, - }; - MutateBiddingStrategiesResponse expectedResponse = new MutateBiddingStrategiesResponse - { - Results = - { - new MutateBiddingStrategyResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingStrategies(request, moq::It.IsAny())).Returns(expectedResponse); - BiddingStrategyServiceClient client = new BiddingStrategyServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingStrategiesResponse response = client.MutateBiddingStrategies(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBiddingStrategiesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBiddingStrategiesRequest request = new MutateBiddingStrategiesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new BiddingStrategyOperation(), - }, - }; - MutateBiddingStrategiesResponse expectedResponse = new MutateBiddingStrategiesResponse - { - Results = - { - new MutateBiddingStrategyResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateBiddingStrategiesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BiddingStrategyServiceClient client = new BiddingStrategyServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBiddingStrategiesResponse responseCallSettings = await client.MutateBiddingStrategiesAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBiddingStrategiesResponse responseCancellationToken = await client.MutateBiddingStrategiesAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/BillingSetupServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/BillingSetupServiceClientTest.g.cs deleted file mode 100755 index 82551b0eb..000000000 --- a/Google.Ads.GoogleAds/tests/V12/BillingSetupServiceClientTest.g.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedBillingSetupServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateBillingSetupRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBillingSetupRequest request = new MutateBillingSetupRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BillingSetupOperation(), - }; - MutateBillingSetupResponse expectedResponse = new MutateBillingSetupResponse - { - Result = new MutateBillingSetupResult(), - }; - mockGrpcClient.Setup(x => x.MutateBillingSetup(request, moq::It.IsAny())).Returns(expectedResponse); - BillingSetupServiceClient client = new BillingSetupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBillingSetupResponse response = client.MutateBillingSetup(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBillingSetupRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBillingSetupRequest request = new MutateBillingSetupRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BillingSetupOperation(), - }; - MutateBillingSetupResponse expectedResponse = new MutateBillingSetupResponse - { - Result = new MutateBillingSetupResult(), - }; - mockGrpcClient.Setup(x => x.MutateBillingSetupAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BillingSetupServiceClient client = new BillingSetupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBillingSetupResponse responseCallSettings = await client.MutateBillingSetupAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBillingSetupResponse responseCancellationToken = await client.MutateBillingSetupAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateBillingSetup() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBillingSetupRequest request = new MutateBillingSetupRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BillingSetupOperation(), - }; - MutateBillingSetupResponse expectedResponse = new MutateBillingSetupResponse - { - Result = new MutateBillingSetupResult(), - }; - mockGrpcClient.Setup(x => x.MutateBillingSetup(request, moq::It.IsAny())).Returns(expectedResponse); - BillingSetupServiceClient client = new BillingSetupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBillingSetupResponse response = client.MutateBillingSetup(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateBillingSetupAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateBillingSetupRequest request = new MutateBillingSetupRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new BillingSetupOperation(), - }; - MutateBillingSetupResponse expectedResponse = new MutateBillingSetupResponse - { - Result = new MutateBillingSetupResult(), - }; - mockGrpcClient.Setup(x => x.MutateBillingSetupAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - BillingSetupServiceClient client = new BillingSetupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateBillingSetupResponse responseCallSettings = await client.MutateBillingSetupAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateBillingSetupResponse responseCancellationToken = await client.MutateBillingSetupAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignAssetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignAssetServiceClientTest.g.cs deleted file mode 100755 index 05e8b6be2..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignAssetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignAssetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignAssetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetsRequest request = new MutateCampaignAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignAssetsResponse expectedResponse = new MutateCampaignAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCampaignAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignAssetServiceClient client = new CampaignAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetsResponse response = client.MutateCampaignAssets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignAssetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetsRequest request = new MutateCampaignAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignAssetsResponse expectedResponse = new MutateCampaignAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCampaignAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignAssetServiceClient client = new CampaignAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetsResponse responseCallSettings = await client.MutateCampaignAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignAssetsResponse responseCancellationToken = await client.MutateCampaignAssetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignAssets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetsRequest request = new MutateCampaignAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetOperation(), - }, - }; - MutateCampaignAssetsResponse expectedResponse = new MutateCampaignAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCampaignAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignAssetServiceClient client = new CampaignAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetsResponse response = client.MutateCampaignAssets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignAssetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetsRequest request = new MutateCampaignAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetOperation(), - }, - }; - MutateCampaignAssetsResponse expectedResponse = new MutateCampaignAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCampaignAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignAssetServiceClient client = new CampaignAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetsResponse responseCallSettings = await client.MutateCampaignAssetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignAssetsResponse responseCancellationToken = await client.MutateCampaignAssetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignAssetSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignAssetSetServiceClientTest.g.cs deleted file mode 100755 index 998866ede..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignAssetSetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignAssetSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignAssetSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetSetsRequest request = new MutateCampaignAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignAssetSetsResponse expectedResponse = new MutateCampaignAssetSetsResponse - { - Results = - { - new MutateCampaignAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignAssetSetServiceClient client = new CampaignAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetSetsResponse response = client.MutateCampaignAssetSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignAssetSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetSetsRequest request = new MutateCampaignAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignAssetSetsResponse expectedResponse = new MutateCampaignAssetSetsResponse - { - Results = - { - new MutateCampaignAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignAssetSetServiceClient client = new CampaignAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetSetsResponse responseCallSettings = await client.MutateCampaignAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignAssetSetsResponse responseCancellationToken = await client.MutateCampaignAssetSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignAssetSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetSetsRequest request = new MutateCampaignAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetSetOperation(), - }, - }; - MutateCampaignAssetSetsResponse expectedResponse = new MutateCampaignAssetSetsResponse - { - Results = - { - new MutateCampaignAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignAssetSetServiceClient client = new CampaignAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetSetsResponse response = client.MutateCampaignAssetSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignAssetSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignAssetSetsRequest request = new MutateCampaignAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignAssetSetOperation(), - }, - }; - MutateCampaignAssetSetsResponse expectedResponse = new MutateCampaignAssetSetsResponse - { - Results = - { - new MutateCampaignAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignAssetSetServiceClient client = new CampaignAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignAssetSetsResponse responseCallSettings = await client.MutateCampaignAssetSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignAssetSetsResponse responseCancellationToken = await client.MutateCampaignAssetSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignBidModifierServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignBidModifierServiceClientTest.g.cs deleted file mode 100755 index 6874a7857..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignBidModifierServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignBidModifierServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignBidModifiersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBidModifiersRequest request = new MutateCampaignBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBidModifierOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignBidModifiersResponse expectedResponse = new MutateCampaignBidModifiersResponse - { - Results = - { - new MutateCampaignBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBidModifiers(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignBidModifierServiceClient client = new CampaignBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBidModifiersResponse response = client.MutateCampaignBidModifiers(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignBidModifiersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBidModifiersRequest request = new MutateCampaignBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBidModifierOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignBidModifiersResponse expectedResponse = new MutateCampaignBidModifiersResponse - { - Results = - { - new MutateCampaignBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBidModifiersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignBidModifierServiceClient client = new CampaignBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBidModifiersResponse responseCallSettings = await client.MutateCampaignBidModifiersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignBidModifiersResponse responseCancellationToken = await client.MutateCampaignBidModifiersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignBidModifiers() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBidModifiersRequest request = new MutateCampaignBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBidModifierOperation(), - }, - }; - MutateCampaignBidModifiersResponse expectedResponse = new MutateCampaignBidModifiersResponse - { - Results = - { - new MutateCampaignBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBidModifiers(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignBidModifierServiceClient client = new CampaignBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBidModifiersResponse response = client.MutateCampaignBidModifiers(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignBidModifiersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBidModifiersRequest request = new MutateCampaignBidModifiersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBidModifierOperation(), - }, - }; - MutateCampaignBidModifiersResponse expectedResponse = new MutateCampaignBidModifiersResponse - { - Results = - { - new MutateCampaignBidModifierResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBidModifiersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignBidModifierServiceClient client = new CampaignBidModifierServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBidModifiersResponse responseCallSettings = await client.MutateCampaignBidModifiersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignBidModifiersResponse responseCancellationToken = await client.MutateCampaignBidModifiersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignBudgetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignBudgetServiceClientTest.g.cs deleted file mode 100755 index 2087e9d8c..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignBudgetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignBudgetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignBudgetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBudgetsRequest request = new MutateCampaignBudgetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBudgetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignBudgetsResponse expectedResponse = new MutateCampaignBudgetsResponse - { - Results = - { - new MutateCampaignBudgetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBudgets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignBudgetServiceClient client = new CampaignBudgetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBudgetsResponse response = client.MutateCampaignBudgets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignBudgetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBudgetsRequest request = new MutateCampaignBudgetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBudgetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignBudgetsResponse expectedResponse = new MutateCampaignBudgetsResponse - { - Results = - { - new MutateCampaignBudgetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBudgetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignBudgetServiceClient client = new CampaignBudgetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBudgetsResponse responseCallSettings = await client.MutateCampaignBudgetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignBudgetsResponse responseCancellationToken = await client.MutateCampaignBudgetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignBudgets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBudgetsRequest request = new MutateCampaignBudgetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBudgetOperation(), - }, - }; - MutateCampaignBudgetsResponse expectedResponse = new MutateCampaignBudgetsResponse - { - Results = - { - new MutateCampaignBudgetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBudgets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignBudgetServiceClient client = new CampaignBudgetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBudgetsResponse response = client.MutateCampaignBudgets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignBudgetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignBudgetsRequest request = new MutateCampaignBudgetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignBudgetOperation(), - }, - }; - MutateCampaignBudgetsResponse expectedResponse = new MutateCampaignBudgetsResponse - { - Results = - { - new MutateCampaignBudgetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignBudgetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignBudgetServiceClient client = new CampaignBudgetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignBudgetsResponse responseCallSettings = await client.MutateCampaignBudgetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignBudgetsResponse responseCancellationToken = await client.MutateCampaignBudgetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignConversionGoalServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignConversionGoalServiceClientTest.g.cs deleted file mode 100755 index a0b3892d7..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignConversionGoalServiceClientTest.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignConversionGoalServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignConversionGoalsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignConversionGoalsRequest request = new MutateCampaignConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignConversionGoalOperation(), - }, - ValidateOnly = true, - }; - MutateCampaignConversionGoalsResponse expectedResponse = new MutateCampaignConversionGoalsResponse - { - Results = - { - new MutateCampaignConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignConversionGoals(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignConversionGoalServiceClient client = new CampaignConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignConversionGoalsResponse response = client.MutateCampaignConversionGoals(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignConversionGoalsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignConversionGoalsRequest request = new MutateCampaignConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignConversionGoalOperation(), - }, - ValidateOnly = true, - }; - MutateCampaignConversionGoalsResponse expectedResponse = new MutateCampaignConversionGoalsResponse - { - Results = - { - new MutateCampaignConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignConversionGoalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignConversionGoalServiceClient client = new CampaignConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignConversionGoalsResponse responseCallSettings = await client.MutateCampaignConversionGoalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignConversionGoalsResponse responseCancellationToken = await client.MutateCampaignConversionGoalsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignConversionGoals() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignConversionGoalsRequest request = new MutateCampaignConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignConversionGoalOperation(), - }, - }; - MutateCampaignConversionGoalsResponse expectedResponse = new MutateCampaignConversionGoalsResponse - { - Results = - { - new MutateCampaignConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignConversionGoals(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignConversionGoalServiceClient client = new CampaignConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignConversionGoalsResponse response = client.MutateCampaignConversionGoals(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignConversionGoalsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignConversionGoalsRequest request = new MutateCampaignConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignConversionGoalOperation(), - }, - }; - MutateCampaignConversionGoalsResponse expectedResponse = new MutateCampaignConversionGoalsResponse - { - Results = - { - new MutateCampaignConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCampaignConversionGoalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignConversionGoalServiceClient client = new CampaignConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignConversionGoalsResponse responseCallSettings = await client.MutateCampaignConversionGoalsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignConversionGoalsResponse responseCancellationToken = await client.MutateCampaignConversionGoalsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignCriterionServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignCriterionServiceClientTest.g.cs deleted file mode 100755 index 5985fa25e..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignCriterionServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignCriterionServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignCriteriaRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCriteriaRequest request = new MutateCampaignCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignCriteriaResponse expectedResponse = new MutateCampaignCriteriaResponse - { - Results = - { - new MutateCampaignCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignCriterionServiceClient client = new CampaignCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCriteriaResponse response = client.MutateCampaignCriteria(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignCriteriaRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCriteriaRequest request = new MutateCampaignCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignCriteriaResponse expectedResponse = new MutateCampaignCriteriaResponse - { - Results = - { - new MutateCampaignCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignCriterionServiceClient client = new CampaignCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCriteriaResponse responseCallSettings = await client.MutateCampaignCriteriaAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignCriteriaResponse responseCancellationToken = await client.MutateCampaignCriteriaAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignCriteria() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCriteriaRequest request = new MutateCampaignCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCriterionOperation(), - }, - }; - MutateCampaignCriteriaResponse expectedResponse = new MutateCampaignCriteriaResponse - { - Results = - { - new MutateCampaignCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignCriterionServiceClient client = new CampaignCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCriteriaResponse response = client.MutateCampaignCriteria(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignCriteriaAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCriteriaRequest request = new MutateCampaignCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCriterionOperation(), - }, - }; - MutateCampaignCriteriaResponse expectedResponse = new MutateCampaignCriteriaResponse - { - Results = - { - new MutateCampaignCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignCriterionServiceClient client = new CampaignCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCriteriaResponse responseCallSettings = await client.MutateCampaignCriteriaAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignCriteriaResponse responseCancellationToken = await client.MutateCampaignCriteriaAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignCustomizerServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignCustomizerServiceClientTest.g.cs deleted file mode 100755 index 3ffedcc07..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignCustomizerServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignCustomizerServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignCustomizersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCustomizersRequest request = new MutateCampaignCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignCustomizersResponse expectedResponse = new MutateCampaignCustomizersResponse - { - Results = - { - new MutateCampaignCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignCustomizerServiceClient client = new CampaignCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCustomizersResponse response = client.MutateCampaignCustomizers(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignCustomizersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCustomizersRequest request = new MutateCampaignCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignCustomizersResponse expectedResponse = new MutateCampaignCustomizersResponse - { - Results = - { - new MutateCampaignCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignCustomizerServiceClient client = new CampaignCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCustomizersResponse responseCallSettings = await client.MutateCampaignCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignCustomizersResponse responseCancellationToken = await client.MutateCampaignCustomizersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignCustomizers() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCustomizersRequest request = new MutateCampaignCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCustomizerOperation(), - }, - }; - MutateCampaignCustomizersResponse expectedResponse = new MutateCampaignCustomizersResponse - { - Results = - { - new MutateCampaignCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignCustomizerServiceClient client = new CampaignCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCustomizersResponse response = client.MutateCampaignCustomizers(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignCustomizersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignCustomizersRequest request = new MutateCampaignCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignCustomizerOperation(), - }, - }; - MutateCampaignCustomizersResponse expectedResponse = new MutateCampaignCustomizersResponse - { - Results = - { - new MutateCampaignCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignCustomizerServiceClient client = new CampaignCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignCustomizersResponse responseCallSettings = await client.MutateCampaignCustomizersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignCustomizersResponse responseCancellationToken = await client.MutateCampaignCustomizersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignDraftServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignDraftServiceClientTest.g.cs deleted file mode 100755 index 4be1176ee..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignDraftServiceClientTest.g.cs +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using lro = Google.LongRunning; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignDraftServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignDraftsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateCampaignDraftsRequest request = new MutateCampaignDraftsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignDraftOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignDraftsResponse expectedResponse = new MutateCampaignDraftsResponse - { - Results = - { - new MutateCampaignDraftResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignDrafts(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignDraftServiceClient client = new CampaignDraftServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignDraftsResponse response = client.MutateCampaignDrafts(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignDraftsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateCampaignDraftsRequest request = new MutateCampaignDraftsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignDraftOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignDraftsResponse expectedResponse = new MutateCampaignDraftsResponse - { - Results = - { - new MutateCampaignDraftResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignDraftsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignDraftServiceClient client = new CampaignDraftServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignDraftsResponse responseCallSettings = await client.MutateCampaignDraftsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignDraftsResponse responseCancellationToken = await client.MutateCampaignDraftsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignDrafts() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateCampaignDraftsRequest request = new MutateCampaignDraftsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignDraftOperation(), - }, - }; - MutateCampaignDraftsResponse expectedResponse = new MutateCampaignDraftsResponse - { - Results = - { - new MutateCampaignDraftResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignDrafts(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignDraftServiceClient client = new CampaignDraftServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignDraftsResponse response = client.MutateCampaignDrafts(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignDraftsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateCampaignDraftsRequest request = new MutateCampaignDraftsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignDraftOperation(), - }, - }; - MutateCampaignDraftsResponse expectedResponse = new MutateCampaignDraftsResponse - { - Results = - { - new MutateCampaignDraftResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignDraftsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignDraftServiceClient client = new CampaignDraftServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignDraftsResponse responseCallSettings = await client.MutateCampaignDraftsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignDraftsResponse responseCancellationToken = await client.MutateCampaignDraftsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignExtensionSettingServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignExtensionSettingServiceClientTest.g.cs deleted file mode 100755 index b1f77dfaa..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignExtensionSettingServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignExtensionSettingServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignExtensionSettingsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignExtensionSettingsRequest request = new MutateCampaignExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignExtensionSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignExtensionSettingsResponse expectedResponse = new MutateCampaignExtensionSettingsResponse - { - Results = - { - new MutateCampaignExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignExtensionSettings(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignExtensionSettingServiceClient client = new CampaignExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignExtensionSettingsResponse response = client.MutateCampaignExtensionSettings(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignExtensionSettingsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignExtensionSettingsRequest request = new MutateCampaignExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignExtensionSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignExtensionSettingsResponse expectedResponse = new MutateCampaignExtensionSettingsResponse - { - Results = - { - new MutateCampaignExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignExtensionSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignExtensionSettingServiceClient client = new CampaignExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignExtensionSettingsResponse responseCallSettings = await client.MutateCampaignExtensionSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignExtensionSettingsResponse responseCancellationToken = await client.MutateCampaignExtensionSettingsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignExtensionSettings() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignExtensionSettingsRequest request = new MutateCampaignExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignExtensionSettingOperation(), - }, - }; - MutateCampaignExtensionSettingsResponse expectedResponse = new MutateCampaignExtensionSettingsResponse - { - Results = - { - new MutateCampaignExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignExtensionSettings(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignExtensionSettingServiceClient client = new CampaignExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignExtensionSettingsResponse response = client.MutateCampaignExtensionSettings(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignExtensionSettingsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignExtensionSettingsRequest request = new MutateCampaignExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignExtensionSettingOperation(), - }, - }; - MutateCampaignExtensionSettingsResponse expectedResponse = new MutateCampaignExtensionSettingsResponse - { - Results = - { - new MutateCampaignExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignExtensionSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignExtensionSettingServiceClient client = new CampaignExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignExtensionSettingsResponse responseCallSettings = await client.MutateCampaignExtensionSettingsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignExtensionSettingsResponse responseCancellationToken = await client.MutateCampaignExtensionSettingsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignFeedServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignFeedServiceClientTest.g.cs deleted file mode 100755 index 4638eccf5..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignFeedServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignFeedServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignFeedsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignFeedsRequest request = new MutateCampaignFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignFeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignFeedsResponse expectedResponse = new MutateCampaignFeedsResponse - { - Results = - { - new MutateCampaignFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignFeedServiceClient client = new CampaignFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignFeedsResponse response = client.MutateCampaignFeeds(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignFeedsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignFeedsRequest request = new MutateCampaignFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignFeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignFeedsResponse expectedResponse = new MutateCampaignFeedsResponse - { - Results = - { - new MutateCampaignFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignFeedServiceClient client = new CampaignFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignFeedsResponse responseCallSettings = await client.MutateCampaignFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignFeedsResponse responseCancellationToken = await client.MutateCampaignFeedsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignFeeds() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignFeedsRequest request = new MutateCampaignFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignFeedOperation(), - }, - }; - MutateCampaignFeedsResponse expectedResponse = new MutateCampaignFeedsResponse - { - Results = - { - new MutateCampaignFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignFeedServiceClient client = new CampaignFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignFeedsResponse response = client.MutateCampaignFeeds(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignFeedsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignFeedsRequest request = new MutateCampaignFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignFeedOperation(), - }, - }; - MutateCampaignFeedsResponse expectedResponse = new MutateCampaignFeedsResponse - { - Results = - { - new MutateCampaignFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignFeedServiceClient client = new CampaignFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignFeedsResponse responseCallSettings = await client.MutateCampaignFeedsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignFeedsResponse responseCancellationToken = await client.MutateCampaignFeedsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignGroupServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignGroupServiceClientTest.g.cs deleted file mode 100755 index 20459ce70..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignGroupServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignGroupServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignGroupsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignGroupsRequest request = new MutateCampaignGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignGroupOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignGroupsResponse expectedResponse = new MutateCampaignGroupsResponse - { - Results = - { - new MutateCampaignGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignGroups(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignGroupServiceClient client = new CampaignGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignGroupsResponse response = client.MutateCampaignGroups(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignGroupsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignGroupsRequest request = new MutateCampaignGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignGroupOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignGroupsResponse expectedResponse = new MutateCampaignGroupsResponse - { - Results = - { - new MutateCampaignGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignGroupServiceClient client = new CampaignGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignGroupsResponse responseCallSettings = await client.MutateCampaignGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignGroupsResponse responseCancellationToken = await client.MutateCampaignGroupsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignGroups() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignGroupsRequest request = new MutateCampaignGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignGroupOperation(), - }, - }; - MutateCampaignGroupsResponse expectedResponse = new MutateCampaignGroupsResponse - { - Results = - { - new MutateCampaignGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignGroups(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignGroupServiceClient client = new CampaignGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignGroupsResponse response = client.MutateCampaignGroups(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignGroupsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignGroupsRequest request = new MutateCampaignGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignGroupOperation(), - }, - }; - MutateCampaignGroupsResponse expectedResponse = new MutateCampaignGroupsResponse - { - Results = - { - new MutateCampaignGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignGroupServiceClient client = new CampaignGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignGroupsResponse responseCallSettings = await client.MutateCampaignGroupsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignGroupsResponse responseCancellationToken = await client.MutateCampaignGroupsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignLabelServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignLabelServiceClientTest.g.cs deleted file mode 100755 index 69dfb98f5..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignLabelServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignLabelServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignLabelsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignLabelsRequest request = new MutateCampaignLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateCampaignLabelsResponse expectedResponse = new MutateCampaignLabelsResponse - { - Results = - { - new MutateCampaignLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignLabels(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignLabelServiceClient client = new CampaignLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignLabelsResponse response = client.MutateCampaignLabels(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignLabelsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignLabelsRequest request = new MutateCampaignLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateCampaignLabelsResponse expectedResponse = new MutateCampaignLabelsResponse - { - Results = - { - new MutateCampaignLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignLabelServiceClient client = new CampaignLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignLabelsResponse responseCallSettings = await client.MutateCampaignLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignLabelsResponse responseCancellationToken = await client.MutateCampaignLabelsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignLabels() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignLabelsRequest request = new MutateCampaignLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignLabelOperation(), - }, - }; - MutateCampaignLabelsResponse expectedResponse = new MutateCampaignLabelsResponse - { - Results = - { - new MutateCampaignLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignLabels(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignLabelServiceClient client = new CampaignLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignLabelsResponse response = client.MutateCampaignLabels(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignLabelsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignLabelsRequest request = new MutateCampaignLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignLabelOperation(), - }, - }; - MutateCampaignLabelsResponse expectedResponse = new MutateCampaignLabelsResponse - { - Results = - { - new MutateCampaignLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignLabelServiceClient client = new CampaignLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignLabelsResponse responseCallSettings = await client.MutateCampaignLabelsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignLabelsResponse responseCancellationToken = await client.MutateCampaignLabelsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignServiceClientTest.g.cs deleted file mode 100755 index 077153a7e..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignsRequest request = new MutateCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignsResponse expectedResponse = new MutateCampaignsResponse - { - Results = - { - new MutateCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaigns(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignServiceClient client = new CampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignsResponse response = client.MutateCampaigns(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignsRequest request = new MutateCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignsResponse expectedResponse = new MutateCampaignsResponse - { - Results = - { - new MutateCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignServiceClient client = new CampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignsResponse responseCallSettings = await client.MutateCampaignsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignsResponse responseCancellationToken = await client.MutateCampaignsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaigns() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignsRequest request = new MutateCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignOperation(), - }, - }; - MutateCampaignsResponse expectedResponse = new MutateCampaignsResponse - { - Results = - { - new MutateCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaigns(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignServiceClient client = new CampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignsResponse response = client.MutateCampaigns(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignsRequest request = new MutateCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignOperation(), - }, - }; - MutateCampaignsResponse expectedResponse = new MutateCampaignsResponse - { - Results = - { - new MutateCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignServiceClient client = new CampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignsResponse responseCallSettings = await client.MutateCampaignsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignsResponse responseCancellationToken = await client.MutateCampaignsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CampaignSharedSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CampaignSharedSetServiceClientTest.g.cs deleted file mode 100755 index 18a4c5a64..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CampaignSharedSetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCampaignSharedSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCampaignSharedSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignSharedSetsRequest request = new MutateCampaignSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignSharedSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignSharedSetsResponse expectedResponse = new MutateCampaignSharedSetsResponse - { - Results = - { - new MutateCampaignSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignSharedSets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignSharedSetServiceClient client = new CampaignSharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignSharedSetsResponse response = client.MutateCampaignSharedSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignSharedSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignSharedSetsRequest request = new MutateCampaignSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignSharedSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCampaignSharedSetsResponse expectedResponse = new MutateCampaignSharedSetsResponse - { - Results = - { - new MutateCampaignSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignSharedSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignSharedSetServiceClient client = new CampaignSharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignSharedSetsResponse responseCallSettings = await client.MutateCampaignSharedSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignSharedSetsResponse responseCancellationToken = await client.MutateCampaignSharedSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCampaignSharedSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignSharedSetsRequest request = new MutateCampaignSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignSharedSetOperation(), - }, - }; - MutateCampaignSharedSetsResponse expectedResponse = new MutateCampaignSharedSetsResponse - { - Results = - { - new MutateCampaignSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignSharedSets(request, moq::It.IsAny())).Returns(expectedResponse); - CampaignSharedSetServiceClient client = new CampaignSharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignSharedSetsResponse response = client.MutateCampaignSharedSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCampaignSharedSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCampaignSharedSetsRequest request = new MutateCampaignSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CampaignSharedSetOperation(), - }, - }; - MutateCampaignSharedSetsResponse expectedResponse = new MutateCampaignSharedSetsResponse - { - Results = - { - new MutateCampaignSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCampaignSharedSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CampaignSharedSetServiceClient client = new CampaignSharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCampaignSharedSetsResponse responseCallSettings = await client.MutateCampaignSharedSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCampaignSharedSetsResponse responseCancellationToken = await client.MutateCampaignSharedSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ConversionActionServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ConversionActionServiceClientTest.g.cs deleted file mode 100755 index ba77437ce..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ConversionActionServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedConversionActionServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateConversionActionsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionActionsRequest request = new MutateConversionActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionActionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateConversionActionsResponse expectedResponse = new MutateConversionActionsResponse - { - Results = - { - new MutateConversionActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionActions(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionActionServiceClient client = new ConversionActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionActionsResponse response = client.MutateConversionActions(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionActionsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionActionsRequest request = new MutateConversionActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionActionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateConversionActionsResponse expectedResponse = new MutateConversionActionsResponse - { - Results = - { - new MutateConversionActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionActionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionActionServiceClient client = new ConversionActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionActionsResponse responseCallSettings = await client.MutateConversionActionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionActionsResponse responseCancellationToken = await client.MutateConversionActionsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateConversionActions() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionActionsRequest request = new MutateConversionActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionActionOperation(), - }, - }; - MutateConversionActionsResponse expectedResponse = new MutateConversionActionsResponse - { - Results = - { - new MutateConversionActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionActions(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionActionServiceClient client = new ConversionActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionActionsResponse response = client.MutateConversionActions(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionActionsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionActionsRequest request = new MutateConversionActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionActionOperation(), - }, - }; - MutateConversionActionsResponse expectedResponse = new MutateConversionActionsResponse - { - Results = - { - new MutateConversionActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionActionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionActionServiceClient client = new ConversionActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionActionsResponse responseCallSettings = await client.MutateConversionActionsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionActionsResponse responseCancellationToken = await client.MutateConversionActionsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ConversionAdjustmentUploadServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ConversionAdjustmentUploadServiceClientTest.g.cs deleted file mode 100755 index 3efc5c088..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ConversionAdjustmentUploadServiceClientTest.g.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedConversionAdjustmentUploadServiceClientTest - { - [Category("Autogenerated")][Test] - public void UploadConversionAdjustmentsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadConversionAdjustmentsRequest request = new UploadConversionAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - ConversionAdjustments = - { - new ConversionAdjustment(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - UploadConversionAdjustmentsResponse expectedResponse = new UploadConversionAdjustmentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ConversionAdjustmentResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadConversionAdjustments(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionAdjustmentUploadServiceClient client = new ConversionAdjustmentUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadConversionAdjustmentsResponse response = client.UploadConversionAdjustments(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task UploadConversionAdjustmentsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadConversionAdjustmentsRequest request = new UploadConversionAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - ConversionAdjustments = - { - new ConversionAdjustment(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - UploadConversionAdjustmentsResponse expectedResponse = new UploadConversionAdjustmentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ConversionAdjustmentResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadConversionAdjustmentsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionAdjustmentUploadServiceClient client = new ConversionAdjustmentUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadConversionAdjustmentsResponse responseCallSettings = await client.UploadConversionAdjustmentsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - UploadConversionAdjustmentsResponse responseCancellationToken = await client.UploadConversionAdjustmentsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void UploadConversionAdjustments() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadConversionAdjustmentsRequest request = new UploadConversionAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - ConversionAdjustments = - { - new ConversionAdjustment(), - }, - PartialFailure = false, - }; - UploadConversionAdjustmentsResponse expectedResponse = new UploadConversionAdjustmentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ConversionAdjustmentResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadConversionAdjustments(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionAdjustmentUploadServiceClient client = new ConversionAdjustmentUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadConversionAdjustmentsResponse response = client.UploadConversionAdjustments(request.CustomerId, request.ConversionAdjustments, request.PartialFailure); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task UploadConversionAdjustmentsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadConversionAdjustmentsRequest request = new UploadConversionAdjustmentsRequest - { - CustomerId = "customer_id3b3724cb", - ConversionAdjustments = - { - new ConversionAdjustment(), - }, - PartialFailure = false, - }; - UploadConversionAdjustmentsResponse expectedResponse = new UploadConversionAdjustmentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ConversionAdjustmentResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadConversionAdjustmentsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionAdjustmentUploadServiceClient client = new ConversionAdjustmentUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadConversionAdjustmentsResponse responseCallSettings = await client.UploadConversionAdjustmentsAsync(request.CustomerId, request.ConversionAdjustments, request.PartialFailure, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - UploadConversionAdjustmentsResponse responseCancellationToken = await client.UploadConversionAdjustmentsAsync(request.CustomerId, request.ConversionAdjustments, request.PartialFailure, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ConversionCustomVariableServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ConversionCustomVariableServiceClientTest.g.cs deleted file mode 100755 index 2477ba899..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ConversionCustomVariableServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedConversionCustomVariableServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateConversionCustomVariablesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionCustomVariablesRequest request = new MutateConversionCustomVariablesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionCustomVariableOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateConversionCustomVariablesResponse expectedResponse = new MutateConversionCustomVariablesResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateConversionCustomVariableResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionCustomVariables(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionCustomVariableServiceClient client = new ConversionCustomVariableServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionCustomVariablesResponse response = client.MutateConversionCustomVariables(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionCustomVariablesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionCustomVariablesRequest request = new MutateConversionCustomVariablesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionCustomVariableOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateConversionCustomVariablesResponse expectedResponse = new MutateConversionCustomVariablesResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateConversionCustomVariableResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionCustomVariablesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionCustomVariableServiceClient client = new ConversionCustomVariableServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionCustomVariablesResponse responseCallSettings = await client.MutateConversionCustomVariablesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionCustomVariablesResponse responseCancellationToken = await client.MutateConversionCustomVariablesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateConversionCustomVariables() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionCustomVariablesRequest request = new MutateConversionCustomVariablesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionCustomVariableOperation(), - }, - }; - MutateConversionCustomVariablesResponse expectedResponse = new MutateConversionCustomVariablesResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateConversionCustomVariableResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionCustomVariables(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionCustomVariableServiceClient client = new ConversionCustomVariableServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionCustomVariablesResponse response = client.MutateConversionCustomVariables(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionCustomVariablesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionCustomVariablesRequest request = new MutateConversionCustomVariablesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionCustomVariableOperation(), - }, - }; - MutateConversionCustomVariablesResponse expectedResponse = new MutateConversionCustomVariablesResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateConversionCustomVariableResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionCustomVariablesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionCustomVariableServiceClient client = new ConversionCustomVariableServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionCustomVariablesResponse responseCallSettings = await client.MutateConversionCustomVariablesAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionCustomVariablesResponse responseCancellationToken = await client.MutateConversionCustomVariablesAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ConversionGoalCampaignConfigServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ConversionGoalCampaignConfigServiceClientTest.g.cs deleted file mode 100755 index cb14ea711..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ConversionGoalCampaignConfigServiceClientTest.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedConversionGoalCampaignConfigServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateConversionGoalCampaignConfigsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionGoalCampaignConfigsRequest request = new MutateConversionGoalCampaignConfigsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionGoalCampaignConfigOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateConversionGoalCampaignConfigsResponse expectedResponse = new MutateConversionGoalCampaignConfigsResponse - { - Results = - { - new MutateConversionGoalCampaignConfigResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionGoalCampaignConfigs(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionGoalCampaignConfigServiceClient client = new ConversionGoalCampaignConfigServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionGoalCampaignConfigsResponse response = client.MutateConversionGoalCampaignConfigs(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionGoalCampaignConfigsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionGoalCampaignConfigsRequest request = new MutateConversionGoalCampaignConfigsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionGoalCampaignConfigOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateConversionGoalCampaignConfigsResponse expectedResponse = new MutateConversionGoalCampaignConfigsResponse - { - Results = - { - new MutateConversionGoalCampaignConfigResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionGoalCampaignConfigsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionGoalCampaignConfigServiceClient client = new ConversionGoalCampaignConfigServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionGoalCampaignConfigsResponse responseCallSettings = await client.MutateConversionGoalCampaignConfigsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionGoalCampaignConfigsResponse responseCancellationToken = await client.MutateConversionGoalCampaignConfigsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateConversionGoalCampaignConfigs() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionGoalCampaignConfigsRequest request = new MutateConversionGoalCampaignConfigsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionGoalCampaignConfigOperation(), - }, - }; - MutateConversionGoalCampaignConfigsResponse expectedResponse = new MutateConversionGoalCampaignConfigsResponse - { - Results = - { - new MutateConversionGoalCampaignConfigResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionGoalCampaignConfigs(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionGoalCampaignConfigServiceClient client = new ConversionGoalCampaignConfigServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionGoalCampaignConfigsResponse response = client.MutateConversionGoalCampaignConfigs(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionGoalCampaignConfigsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionGoalCampaignConfigsRequest request = new MutateConversionGoalCampaignConfigsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionGoalCampaignConfigOperation(), - }, - }; - MutateConversionGoalCampaignConfigsResponse expectedResponse = new MutateConversionGoalCampaignConfigsResponse - { - Results = - { - new MutateConversionGoalCampaignConfigResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateConversionGoalCampaignConfigsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionGoalCampaignConfigServiceClient client = new ConversionGoalCampaignConfigServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionGoalCampaignConfigsResponse responseCallSettings = await client.MutateConversionGoalCampaignConfigsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionGoalCampaignConfigsResponse responseCancellationToken = await client.MutateConversionGoalCampaignConfigsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ConversionUploadServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ConversionUploadServiceClientTest.g.cs deleted file mode 100755 index 81b6145b4..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ConversionUploadServiceClientTest.g.cs +++ /dev/null @@ -1,270 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedConversionUploadServiceClientTest - { - [Category("Autogenerated")][Test] - public void UploadClickConversionsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadClickConversionsRequest request = new UploadClickConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new ClickConversion(), - }, - PartialFailure = false, - ValidateOnly = true, - DebugEnabled = true, - }; - UploadClickConversionsResponse expectedResponse = new UploadClickConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ClickConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadClickConversions(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadClickConversionsResponse response = client.UploadClickConversions(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task UploadClickConversionsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadClickConversionsRequest request = new UploadClickConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new ClickConversion(), - }, - PartialFailure = false, - ValidateOnly = true, - DebugEnabled = true, - }; - UploadClickConversionsResponse expectedResponse = new UploadClickConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ClickConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadClickConversionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadClickConversionsResponse responseCallSettings = await client.UploadClickConversionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - UploadClickConversionsResponse responseCancellationToken = await client.UploadClickConversionsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void UploadClickConversions() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadClickConversionsRequest request = new UploadClickConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new ClickConversion(), - }, - PartialFailure = false, - }; - UploadClickConversionsResponse expectedResponse = new UploadClickConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ClickConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadClickConversions(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadClickConversionsResponse response = client.UploadClickConversions(request.CustomerId, request.Conversions, request.PartialFailure); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task UploadClickConversionsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadClickConversionsRequest request = new UploadClickConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new ClickConversion(), - }, - PartialFailure = false, - }; - UploadClickConversionsResponse expectedResponse = new UploadClickConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new ClickConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadClickConversionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadClickConversionsResponse responseCallSettings = await client.UploadClickConversionsAsync(request.CustomerId, request.Conversions, request.PartialFailure, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - UploadClickConversionsResponse responseCancellationToken = await client.UploadClickConversionsAsync(request.CustomerId, request.Conversions, request.PartialFailure, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void UploadCallConversionsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadCallConversionsRequest request = new UploadCallConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new CallConversion(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - UploadCallConversionsResponse expectedResponse = new UploadCallConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new CallConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadCallConversions(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadCallConversionsResponse response = client.UploadCallConversions(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task UploadCallConversionsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadCallConversionsRequest request = new UploadCallConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new CallConversion(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - UploadCallConversionsResponse expectedResponse = new UploadCallConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new CallConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadCallConversionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadCallConversionsResponse responseCallSettings = await client.UploadCallConversionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - UploadCallConversionsResponse responseCancellationToken = await client.UploadCallConversionsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void UploadCallConversions() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadCallConversionsRequest request = new UploadCallConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new CallConversion(), - }, - PartialFailure = false, - }; - UploadCallConversionsResponse expectedResponse = new UploadCallConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new CallConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadCallConversions(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadCallConversionsResponse response = client.UploadCallConversions(request.CustomerId, request.Conversions, request.PartialFailure); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task UploadCallConversionsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadCallConversionsRequest request = new UploadCallConversionsRequest - { - CustomerId = "customer_id3b3724cb", - Conversions = - { - new CallConversion(), - }, - PartialFailure = false, - }; - UploadCallConversionsResponse expectedResponse = new UploadCallConversionsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new CallConversionResult(), - }, - }; - mockGrpcClient.Setup(x => x.UploadCallConversionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionUploadServiceClient client = new ConversionUploadServiceClientImpl(mockGrpcClient.Object, null, null); - UploadCallConversionsResponse responseCallSettings = await client.UploadCallConversionsAsync(request.CustomerId, request.Conversions, request.PartialFailure, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - UploadCallConversionsResponse responseCancellationToken = await client.UploadCallConversionsAsync(request.CustomerId, request.Conversions, request.PartialFailure, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ConversionValueRuleServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ConversionValueRuleServiceClientTest.g.cs deleted file mode 100755 index bd99125d6..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ConversionValueRuleServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedConversionValueRuleServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateConversionValueRulesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRulesRequest request = new MutateConversionValueRulesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - PartialFailure = false, - }; - MutateConversionValueRulesResponse expectedResponse = new MutateConversionValueRulesResponse - { - Results = - { - new MutateConversionValueRuleResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRules(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionValueRuleServiceClient client = new ConversionValueRuleServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRulesResponse response = client.MutateConversionValueRules(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionValueRulesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRulesRequest request = new MutateConversionValueRulesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - PartialFailure = false, - }; - MutateConversionValueRulesResponse expectedResponse = new MutateConversionValueRulesResponse - { - Results = - { - new MutateConversionValueRuleResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRulesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionValueRuleServiceClient client = new ConversionValueRuleServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRulesResponse responseCallSettings = await client.MutateConversionValueRulesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionValueRulesResponse responseCancellationToken = await client.MutateConversionValueRulesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateConversionValueRules() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRulesRequest request = new MutateConversionValueRulesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleOperation(), - }, - }; - MutateConversionValueRulesResponse expectedResponse = new MutateConversionValueRulesResponse - { - Results = - { - new MutateConversionValueRuleResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRules(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionValueRuleServiceClient client = new ConversionValueRuleServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRulesResponse response = client.MutateConversionValueRules(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionValueRulesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRulesRequest request = new MutateConversionValueRulesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleOperation(), - }, - }; - MutateConversionValueRulesResponse expectedResponse = new MutateConversionValueRulesResponse - { - Results = - { - new MutateConversionValueRuleResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRulesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionValueRuleServiceClient client = new ConversionValueRuleServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRulesResponse responseCallSettings = await client.MutateConversionValueRulesAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionValueRulesResponse responseCancellationToken = await client.MutateConversionValueRulesAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ConversionValueRuleSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ConversionValueRuleSetServiceClientTest.g.cs deleted file mode 100755 index 28b1d488c..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ConversionValueRuleSetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedConversionValueRuleSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateConversionValueRuleSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRuleSetsRequest request = new MutateConversionValueRuleSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleSetOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - PartialFailure = false, - }; - MutateConversionValueRuleSetsResponse expectedResponse = new MutateConversionValueRuleSetsResponse - { - Results = - { - new MutateConversionValueRuleSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRuleSets(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionValueRuleSetServiceClient client = new ConversionValueRuleSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRuleSetsResponse response = client.MutateConversionValueRuleSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionValueRuleSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRuleSetsRequest request = new MutateConversionValueRuleSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleSetOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - PartialFailure = false, - }; - MutateConversionValueRuleSetsResponse expectedResponse = new MutateConversionValueRuleSetsResponse - { - Results = - { - new MutateConversionValueRuleSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRuleSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionValueRuleSetServiceClient client = new ConversionValueRuleSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRuleSetsResponse responseCallSettings = await client.MutateConversionValueRuleSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionValueRuleSetsResponse responseCancellationToken = await client.MutateConversionValueRuleSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateConversionValueRuleSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRuleSetsRequest request = new MutateConversionValueRuleSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleSetOperation(), - }, - }; - MutateConversionValueRuleSetsResponse expectedResponse = new MutateConversionValueRuleSetsResponse - { - Results = - { - new MutateConversionValueRuleSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRuleSets(request, moq::It.IsAny())).Returns(expectedResponse); - ConversionValueRuleSetServiceClient client = new ConversionValueRuleSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRuleSetsResponse response = client.MutateConversionValueRuleSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateConversionValueRuleSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateConversionValueRuleSetsRequest request = new MutateConversionValueRuleSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ConversionValueRuleSetOperation(), - }, - }; - MutateConversionValueRuleSetsResponse expectedResponse = new MutateConversionValueRuleSetsResponse - { - Results = - { - new MutateConversionValueRuleSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateConversionValueRuleSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ConversionValueRuleSetServiceClient client = new ConversionValueRuleSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateConversionValueRuleSetsResponse responseCallSettings = await client.MutateConversionValueRuleSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateConversionValueRuleSetsResponse responseCancellationToken = await client.MutateConversionValueRuleSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomAudienceServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomAudienceServiceClientTest.g.cs deleted file mode 100755 index b61d33084..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomAudienceServiceClientTest.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomAudienceServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomAudiencesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomAudiencesRequest request = new MutateCustomAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomAudienceOperation(), - }, - ValidateOnly = true, - }; - MutateCustomAudiencesResponse expectedResponse = new MutateCustomAudiencesResponse - { - Results = - { - new MutateCustomAudienceResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomAudiences(request, moq::It.IsAny())).Returns(expectedResponse); - CustomAudienceServiceClient client = new CustomAudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomAudiencesResponse response = client.MutateCustomAudiences(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomAudiencesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomAudiencesRequest request = new MutateCustomAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomAudienceOperation(), - }, - ValidateOnly = true, - }; - MutateCustomAudiencesResponse expectedResponse = new MutateCustomAudiencesResponse - { - Results = - { - new MutateCustomAudienceResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomAudiencesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomAudienceServiceClient client = new CustomAudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomAudiencesResponse responseCallSettings = await client.MutateCustomAudiencesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomAudiencesResponse responseCancellationToken = await client.MutateCustomAudiencesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomAudiences() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomAudiencesRequest request = new MutateCustomAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomAudienceOperation(), - }, - }; - MutateCustomAudiencesResponse expectedResponse = new MutateCustomAudiencesResponse - { - Results = - { - new MutateCustomAudienceResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomAudiences(request, moq::It.IsAny())).Returns(expectedResponse); - CustomAudienceServiceClient client = new CustomAudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomAudiencesResponse response = client.MutateCustomAudiences(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomAudiencesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomAudiencesRequest request = new MutateCustomAudiencesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomAudienceOperation(), - }, - }; - MutateCustomAudiencesResponse expectedResponse = new MutateCustomAudiencesResponse - { - Results = - { - new MutateCustomAudienceResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomAudiencesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomAudienceServiceClient client = new CustomAudienceServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomAudiencesResponse responseCallSettings = await client.MutateCustomAudiencesAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomAudiencesResponse responseCancellationToken = await client.MutateCustomAudiencesAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomConversionGoalServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomConversionGoalServiceClientTest.g.cs deleted file mode 100755 index 3abb470cf..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomConversionGoalServiceClientTest.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomConversionGoalServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomConversionGoalsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomConversionGoalsRequest request = new MutateCustomConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomConversionGoalOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomConversionGoalsResponse expectedResponse = new MutateCustomConversionGoalsResponse - { - Results = - { - new MutateCustomConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomConversionGoals(request, moq::It.IsAny())).Returns(expectedResponse); - CustomConversionGoalServiceClient client = new CustomConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomConversionGoalsResponse response = client.MutateCustomConversionGoals(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomConversionGoalsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomConversionGoalsRequest request = new MutateCustomConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomConversionGoalOperation(), - }, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomConversionGoalsResponse expectedResponse = new MutateCustomConversionGoalsResponse - { - Results = - { - new MutateCustomConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomConversionGoalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomConversionGoalServiceClient client = new CustomConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomConversionGoalsResponse responseCallSettings = await client.MutateCustomConversionGoalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomConversionGoalsResponse responseCancellationToken = await client.MutateCustomConversionGoalsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomConversionGoals() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomConversionGoalsRequest request = new MutateCustomConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomConversionGoalOperation(), - }, - }; - MutateCustomConversionGoalsResponse expectedResponse = new MutateCustomConversionGoalsResponse - { - Results = - { - new MutateCustomConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomConversionGoals(request, moq::It.IsAny())).Returns(expectedResponse); - CustomConversionGoalServiceClient client = new CustomConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomConversionGoalsResponse response = client.MutateCustomConversionGoals(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomConversionGoalsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomConversionGoalsRequest request = new MutateCustomConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomConversionGoalOperation(), - }, - }; - MutateCustomConversionGoalsResponse expectedResponse = new MutateCustomConversionGoalsResponse - { - Results = - { - new MutateCustomConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomConversionGoalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomConversionGoalServiceClient client = new CustomConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomConversionGoalsResponse responseCallSettings = await client.MutateCustomConversionGoalsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomConversionGoalsResponse responseCancellationToken = await client.MutateCustomConversionGoalsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomInterestServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomInterestServiceClientTest.g.cs deleted file mode 100755 index f9dbb1975..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomInterestServiceClientTest.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomInterestServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomInterestsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomInterestsRequest request = new MutateCustomInterestsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomInterestOperation(), - }, - ValidateOnly = true, - }; - MutateCustomInterestsResponse expectedResponse = new MutateCustomInterestsResponse - { - Results = - { - new MutateCustomInterestResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomInterests(request, moq::It.IsAny())).Returns(expectedResponse); - CustomInterestServiceClient client = new CustomInterestServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomInterestsResponse response = client.MutateCustomInterests(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomInterestsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomInterestsRequest request = new MutateCustomInterestsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomInterestOperation(), - }, - ValidateOnly = true, - }; - MutateCustomInterestsResponse expectedResponse = new MutateCustomInterestsResponse - { - Results = - { - new MutateCustomInterestResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomInterestsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomInterestServiceClient client = new CustomInterestServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomInterestsResponse responseCallSettings = await client.MutateCustomInterestsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomInterestsResponse responseCancellationToken = await client.MutateCustomInterestsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomInterests() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomInterestsRequest request = new MutateCustomInterestsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomInterestOperation(), - }, - }; - MutateCustomInterestsResponse expectedResponse = new MutateCustomInterestsResponse - { - Results = - { - new MutateCustomInterestResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomInterests(request, moq::It.IsAny())).Returns(expectedResponse); - CustomInterestServiceClient client = new CustomInterestServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomInterestsResponse response = client.MutateCustomInterests(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomInterestsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomInterestsRequest request = new MutateCustomInterestsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomInterestOperation(), - }, - }; - MutateCustomInterestsResponse expectedResponse = new MutateCustomInterestsResponse - { - Results = - { - new MutateCustomInterestResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomInterestsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomInterestServiceClient client = new CustomInterestServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomInterestsResponse responseCallSettings = await client.MutateCustomInterestsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomInterestsResponse responseCancellationToken = await client.MutateCustomInterestsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerAssetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerAssetServiceClientTest.g.cs deleted file mode 100755 index 429de2bcb..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerAssetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerAssetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerAssetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetsRequest request = new MutateCustomerAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerAssetsResponse expectedResponse = new MutateCustomerAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCustomerAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssets(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerAssetServiceClient client = new CustomerAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetsResponse response = client.MutateCustomerAssets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerAssetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetsRequest request = new MutateCustomerAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerAssetsResponse expectedResponse = new MutateCustomerAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCustomerAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerAssetServiceClient client = new CustomerAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetsResponse responseCallSettings = await client.MutateCustomerAssetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerAssetsResponse responseCancellationToken = await client.MutateCustomerAssetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerAssets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetsRequest request = new MutateCustomerAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetOperation(), - }, - }; - MutateCustomerAssetsResponse expectedResponse = new MutateCustomerAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCustomerAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssets(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerAssetServiceClient client = new CustomerAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetsResponse response = client.MutateCustomerAssets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerAssetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetsRequest request = new MutateCustomerAssetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetOperation(), - }, - }; - MutateCustomerAssetsResponse expectedResponse = new MutateCustomerAssetsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateCustomerAssetResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerAssetServiceClient client = new CustomerAssetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetsResponse responseCallSettings = await client.MutateCustomerAssetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerAssetsResponse responseCancellationToken = await client.MutateCustomerAssetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerAssetSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerAssetSetServiceClientTest.g.cs deleted file mode 100755 index a310d041c..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerAssetSetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerAssetSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerAssetSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetSetsRequest request = new MutateCustomerAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerAssetSetsResponse expectedResponse = new MutateCustomerAssetSetsResponse - { - Results = - { - new MutateCustomerAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerAssetSetServiceClient client = new CustomerAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetSetsResponse response = client.MutateCustomerAssetSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerAssetSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetSetsRequest request = new MutateCustomerAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerAssetSetsResponse expectedResponse = new MutateCustomerAssetSetsResponse - { - Results = - { - new MutateCustomerAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerAssetSetServiceClient client = new CustomerAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetSetsResponse responseCallSettings = await client.MutateCustomerAssetSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerAssetSetsResponse responseCancellationToken = await client.MutateCustomerAssetSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerAssetSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetSetsRequest request = new MutateCustomerAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetSetOperation(), - }, - }; - MutateCustomerAssetSetsResponse expectedResponse = new MutateCustomerAssetSetsResponse - { - Results = - { - new MutateCustomerAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssetSets(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerAssetSetServiceClient client = new CustomerAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetSetsResponse response = client.MutateCustomerAssetSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerAssetSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerAssetSetsRequest request = new MutateCustomerAssetSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerAssetSetOperation(), - }, - }; - MutateCustomerAssetSetsResponse expectedResponse = new MutateCustomerAssetSetsResponse - { - Results = - { - new MutateCustomerAssetSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerAssetSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerAssetSetServiceClient client = new CustomerAssetSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerAssetSetsResponse responseCallSettings = await client.MutateCustomerAssetSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerAssetSetsResponse responseCancellationToken = await client.MutateCustomerAssetSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerClientLinkServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerClientLinkServiceClientTest.g.cs deleted file mode 100755 index 798c8aca8..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerClientLinkServiceClientTest.g.cs +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerClientLinkServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerClientLinkRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerClientLinkRequest request = new MutateCustomerClientLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerClientLinkOperation(), - ValidateOnly = true, - }; - MutateCustomerClientLinkResponse expectedResponse = new MutateCustomerClientLinkResponse - { - Result = new MutateCustomerClientLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerClientLink(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerClientLinkServiceClient client = new CustomerClientLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerClientLinkResponse response = client.MutateCustomerClientLink(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerClientLinkRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerClientLinkRequest request = new MutateCustomerClientLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerClientLinkOperation(), - ValidateOnly = true, - }; - MutateCustomerClientLinkResponse expectedResponse = new MutateCustomerClientLinkResponse - { - Result = new MutateCustomerClientLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerClientLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerClientLinkServiceClient client = new CustomerClientLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerClientLinkResponse responseCallSettings = await client.MutateCustomerClientLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerClientLinkResponse responseCancellationToken = await client.MutateCustomerClientLinkAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerClientLink() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerClientLinkRequest request = new MutateCustomerClientLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerClientLinkOperation(), - }; - MutateCustomerClientLinkResponse expectedResponse = new MutateCustomerClientLinkResponse - { - Result = new MutateCustomerClientLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerClientLink(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerClientLinkServiceClient client = new CustomerClientLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerClientLinkResponse response = client.MutateCustomerClientLink(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerClientLinkAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerClientLinkRequest request = new MutateCustomerClientLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerClientLinkOperation(), - }; - MutateCustomerClientLinkResponse expectedResponse = new MutateCustomerClientLinkResponse - { - Result = new MutateCustomerClientLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerClientLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerClientLinkServiceClient client = new CustomerClientLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerClientLinkResponse responseCallSettings = await client.MutateCustomerClientLinkAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerClientLinkResponse responseCancellationToken = await client.MutateCustomerClientLinkAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerConversionGoalServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerConversionGoalServiceClientTest.g.cs deleted file mode 100755 index ad2a08e41..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerConversionGoalServiceClientTest.g.cs +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerConversionGoalServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerConversionGoalsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerConversionGoalsRequest request = new MutateCustomerConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerConversionGoalOperation(), - }, - ValidateOnly = true, - }; - MutateCustomerConversionGoalsResponse expectedResponse = new MutateCustomerConversionGoalsResponse - { - Results = - { - new MutateCustomerConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerConversionGoals(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerConversionGoalServiceClient client = new CustomerConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerConversionGoalsResponse response = client.MutateCustomerConversionGoals(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerConversionGoalsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerConversionGoalsRequest request = new MutateCustomerConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerConversionGoalOperation(), - }, - ValidateOnly = true, - }; - MutateCustomerConversionGoalsResponse expectedResponse = new MutateCustomerConversionGoalsResponse - { - Results = - { - new MutateCustomerConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerConversionGoalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerConversionGoalServiceClient client = new CustomerConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerConversionGoalsResponse responseCallSettings = await client.MutateCustomerConversionGoalsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerConversionGoalsResponse responseCancellationToken = await client.MutateCustomerConversionGoalsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerConversionGoals() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerConversionGoalsRequest request = new MutateCustomerConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerConversionGoalOperation(), - }, - }; - MutateCustomerConversionGoalsResponse expectedResponse = new MutateCustomerConversionGoalsResponse - { - Results = - { - new MutateCustomerConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerConversionGoals(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerConversionGoalServiceClient client = new CustomerConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerConversionGoalsResponse response = client.MutateCustomerConversionGoals(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerConversionGoalsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerConversionGoalsRequest request = new MutateCustomerConversionGoalsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerConversionGoalOperation(), - }, - }; - MutateCustomerConversionGoalsResponse expectedResponse = new MutateCustomerConversionGoalsResponse - { - Results = - { - new MutateCustomerConversionGoalResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerConversionGoalsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerConversionGoalServiceClient client = new CustomerConversionGoalServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerConversionGoalsResponse responseCallSettings = await client.MutateCustomerConversionGoalsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerConversionGoalsResponse responseCancellationToken = await client.MutateCustomerConversionGoalsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerCustomizerServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerCustomizerServiceClientTest.g.cs deleted file mode 100755 index 2721576cf..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerCustomizerServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerCustomizerServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerCustomizersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerCustomizersRequest request = new MutateCustomerCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerCustomizersResponse expectedResponse = new MutateCustomerCustomizersResponse - { - Results = - { - new MutateCustomerCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerCustomizerServiceClient client = new CustomerCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerCustomizersResponse response = client.MutateCustomerCustomizers(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerCustomizersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerCustomizersRequest request = new MutateCustomerCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerCustomizerOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerCustomizersResponse expectedResponse = new MutateCustomerCustomizersResponse - { - Results = - { - new MutateCustomerCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerCustomizerServiceClient client = new CustomerCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerCustomizersResponse responseCallSettings = await client.MutateCustomerCustomizersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerCustomizersResponse responseCancellationToken = await client.MutateCustomerCustomizersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerCustomizers() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerCustomizersRequest request = new MutateCustomerCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerCustomizerOperation(), - }, - }; - MutateCustomerCustomizersResponse expectedResponse = new MutateCustomerCustomizersResponse - { - Results = - { - new MutateCustomerCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerCustomizers(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerCustomizerServiceClient client = new CustomerCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerCustomizersResponse response = client.MutateCustomerCustomizers(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerCustomizersAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerCustomizersRequest request = new MutateCustomerCustomizersRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerCustomizerOperation(), - }, - }; - MutateCustomerCustomizersResponse expectedResponse = new MutateCustomerCustomizersResponse - { - Results = - { - new MutateCustomerCustomizerResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerCustomizersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerCustomizerServiceClient client = new CustomerCustomizerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerCustomizersResponse responseCallSettings = await client.MutateCustomerCustomizersAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerCustomizersResponse responseCancellationToken = await client.MutateCustomerCustomizersAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerExtensionSettingServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerExtensionSettingServiceClientTest.g.cs deleted file mode 100755 index 7e05ca1ae..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerExtensionSettingServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerExtensionSettingServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerExtensionSettingsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerExtensionSettingsRequest request = new MutateCustomerExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerExtensionSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerExtensionSettingsResponse expectedResponse = new MutateCustomerExtensionSettingsResponse - { - Results = - { - new MutateCustomerExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerExtensionSettings(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerExtensionSettingServiceClient client = new CustomerExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerExtensionSettingsResponse response = client.MutateCustomerExtensionSettings(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerExtensionSettingsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerExtensionSettingsRequest request = new MutateCustomerExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerExtensionSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerExtensionSettingsResponse expectedResponse = new MutateCustomerExtensionSettingsResponse - { - Results = - { - new MutateCustomerExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerExtensionSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerExtensionSettingServiceClient client = new CustomerExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerExtensionSettingsResponse responseCallSettings = await client.MutateCustomerExtensionSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerExtensionSettingsResponse responseCancellationToken = await client.MutateCustomerExtensionSettingsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerExtensionSettings() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerExtensionSettingsRequest request = new MutateCustomerExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerExtensionSettingOperation(), - }, - }; - MutateCustomerExtensionSettingsResponse expectedResponse = new MutateCustomerExtensionSettingsResponse - { - Results = - { - new MutateCustomerExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerExtensionSettings(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerExtensionSettingServiceClient client = new CustomerExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerExtensionSettingsResponse response = client.MutateCustomerExtensionSettings(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerExtensionSettingsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerExtensionSettingsRequest request = new MutateCustomerExtensionSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerExtensionSettingOperation(), - }, - }; - MutateCustomerExtensionSettingsResponse expectedResponse = new MutateCustomerExtensionSettingsResponse - { - Results = - { - new MutateCustomerExtensionSettingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerExtensionSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerExtensionSettingServiceClient client = new CustomerExtensionSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerExtensionSettingsResponse responseCallSettings = await client.MutateCustomerExtensionSettingsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerExtensionSettingsResponse responseCancellationToken = await client.MutateCustomerExtensionSettingsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerFeedServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerFeedServiceClientTest.g.cs deleted file mode 100755 index d6bf1a854..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerFeedServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerFeedServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerFeedsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerFeedsRequest request = new MutateCustomerFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerFeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerFeedsResponse expectedResponse = new MutateCustomerFeedsResponse - { - Results = - { - new MutateCustomerFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerFeedServiceClient client = new CustomerFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerFeedsResponse response = client.MutateCustomerFeeds(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerFeedsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerFeedsRequest request = new MutateCustomerFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerFeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerFeedsResponse expectedResponse = new MutateCustomerFeedsResponse - { - Results = - { - new MutateCustomerFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerFeedServiceClient client = new CustomerFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerFeedsResponse responseCallSettings = await client.MutateCustomerFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerFeedsResponse responseCancellationToken = await client.MutateCustomerFeedsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerFeeds() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerFeedsRequest request = new MutateCustomerFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerFeedOperation(), - }, - }; - MutateCustomerFeedsResponse expectedResponse = new MutateCustomerFeedsResponse - { - Results = - { - new MutateCustomerFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerFeedServiceClient client = new CustomerFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerFeedsResponse response = client.MutateCustomerFeeds(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerFeedsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerFeedsRequest request = new MutateCustomerFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerFeedOperation(), - }, - }; - MutateCustomerFeedsResponse expectedResponse = new MutateCustomerFeedsResponse - { - Results = - { - new MutateCustomerFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerFeedServiceClient client = new CustomerFeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerFeedsResponse responseCallSettings = await client.MutateCustomerFeedsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerFeedsResponse responseCancellationToken = await client.MutateCustomerFeedsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerLabelServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerLabelServiceClientTest.g.cs deleted file mode 100755 index 8e2a7375c..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerLabelServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerLabelServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerLabelsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerLabelsRequest request = new MutateCustomerLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateCustomerLabelsResponse expectedResponse = new MutateCustomerLabelsResponse - { - Results = - { - new MutateCustomerLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerLabels(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerLabelServiceClient client = new CustomerLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerLabelsResponse response = client.MutateCustomerLabels(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerLabelsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerLabelsRequest request = new MutateCustomerLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerLabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateCustomerLabelsResponse expectedResponse = new MutateCustomerLabelsResponse - { - Results = - { - new MutateCustomerLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerLabelServiceClient client = new CustomerLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerLabelsResponse responseCallSettings = await client.MutateCustomerLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerLabelsResponse responseCancellationToken = await client.MutateCustomerLabelsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerLabels() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerLabelsRequest request = new MutateCustomerLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerLabelOperation(), - }, - }; - MutateCustomerLabelsResponse expectedResponse = new MutateCustomerLabelsResponse - { - Results = - { - new MutateCustomerLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerLabels(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerLabelServiceClient client = new CustomerLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerLabelsResponse response = client.MutateCustomerLabels(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerLabelsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerLabelsRequest request = new MutateCustomerLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerLabelOperation(), - }, - }; - MutateCustomerLabelsResponse expectedResponse = new MutateCustomerLabelsResponse - { - Results = - { - new MutateCustomerLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerLabelServiceClient client = new CustomerLabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerLabelsResponse responseCallSettings = await client.MutateCustomerLabelsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerLabelsResponse responseCancellationToken = await client.MutateCustomerLabelsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerManagerLinkServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerManagerLinkServiceClientTest.g.cs deleted file mode 100755 index 820f3f8ea..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerManagerLinkServiceClientTest.g.cs +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerManagerLinkServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerManagerLinkRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerManagerLinkOperation(), - }, - ValidateOnly = true, - }; - MutateCustomerManagerLinkResponse expectedResponse = new MutateCustomerManagerLinkResponse - { - Results = - { - new MutateCustomerManagerLinkResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerManagerLink(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerManagerLinkResponse response = client.MutateCustomerManagerLink(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerManagerLinkRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerManagerLinkOperation(), - }, - ValidateOnly = true, - }; - MutateCustomerManagerLinkResponse expectedResponse = new MutateCustomerManagerLinkResponse - { - Results = - { - new MutateCustomerManagerLinkResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerManagerLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerManagerLinkResponse responseCallSettings = await client.MutateCustomerManagerLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerManagerLinkResponse responseCancellationToken = await client.MutateCustomerManagerLinkAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerManagerLink() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerManagerLinkOperation(), - }, - }; - MutateCustomerManagerLinkResponse expectedResponse = new MutateCustomerManagerLinkResponse - { - Results = - { - new MutateCustomerManagerLinkResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerManagerLink(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerManagerLinkResponse response = client.MutateCustomerManagerLink(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerManagerLinkAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerManagerLinkRequest request = new MutateCustomerManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerManagerLinkOperation(), - }, - }; - MutateCustomerManagerLinkResponse expectedResponse = new MutateCustomerManagerLinkResponse - { - Results = - { - new MutateCustomerManagerLinkResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateCustomerManagerLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerManagerLinkResponse responseCallSettings = await client.MutateCustomerManagerLinkAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerManagerLinkResponse responseCancellationToken = await client.MutateCustomerManagerLinkAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MoveManagerLinkRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MoveManagerLinkRequest request = new MoveManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - PreviousCustomerManagerLink = "previous_customer_manager_linkb33a0aa8", - NewManager = "new_managerbf35b8c4", - ValidateOnly = true, - }; - MoveManagerLinkResponse expectedResponse = new MoveManagerLinkResponse - { - ResourceNameAsCustomerManagerLinkName = gagvr::CustomerManagerLinkName.FromCustomerManagerCustomerManagerLink("[CUSTOMER_ID]", "[MANAGER_CUSTOMER_ID]", "[MANAGER_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.MoveManagerLink(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MoveManagerLinkResponse response = client.MoveManagerLink(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MoveManagerLinkRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MoveManagerLinkRequest request = new MoveManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - PreviousCustomerManagerLink = "previous_customer_manager_linkb33a0aa8", - NewManager = "new_managerbf35b8c4", - ValidateOnly = true, - }; - MoveManagerLinkResponse expectedResponse = new MoveManagerLinkResponse - { - ResourceNameAsCustomerManagerLinkName = gagvr::CustomerManagerLinkName.FromCustomerManagerCustomerManagerLink("[CUSTOMER_ID]", "[MANAGER_CUSTOMER_ID]", "[MANAGER_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.MoveManagerLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MoveManagerLinkResponse responseCallSettings = await client.MoveManagerLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MoveManagerLinkResponse responseCancellationToken = await client.MoveManagerLinkAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MoveManagerLink() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MoveManagerLinkRequest request = new MoveManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - PreviousCustomerManagerLink = "previous_customer_manager_linkb33a0aa8", - NewManager = "new_managerbf35b8c4", - }; - MoveManagerLinkResponse expectedResponse = new MoveManagerLinkResponse - { - ResourceNameAsCustomerManagerLinkName = gagvr::CustomerManagerLinkName.FromCustomerManagerCustomerManagerLink("[CUSTOMER_ID]", "[MANAGER_CUSTOMER_ID]", "[MANAGER_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.MoveManagerLink(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MoveManagerLinkResponse response = client.MoveManagerLink(request.CustomerId, request.PreviousCustomerManagerLink, request.NewManager); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MoveManagerLinkAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MoveManagerLinkRequest request = new MoveManagerLinkRequest - { - CustomerId = "customer_id3b3724cb", - PreviousCustomerManagerLink = "previous_customer_manager_linkb33a0aa8", - NewManager = "new_managerbf35b8c4", - }; - MoveManagerLinkResponse expectedResponse = new MoveManagerLinkResponse - { - ResourceNameAsCustomerManagerLinkName = gagvr::CustomerManagerLinkName.FromCustomerManagerCustomerManagerLink("[CUSTOMER_ID]", "[MANAGER_CUSTOMER_ID]", "[MANAGER_LINK_ID]"), - }; - mockGrpcClient.Setup(x => x.MoveManagerLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerManagerLinkServiceClient client = new CustomerManagerLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MoveManagerLinkResponse responseCallSettings = await client.MoveManagerLinkAsync(request.CustomerId, request.PreviousCustomerManagerLink, request.NewManager, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MoveManagerLinkResponse responseCancellationToken = await client.MoveManagerLinkAsync(request.CustomerId, request.PreviousCustomerManagerLink, request.NewManager, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerNegativeCriterionServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerNegativeCriterionServiceClientTest.g.cs deleted file mode 100755 index f6b288994..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerNegativeCriterionServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerNegativeCriterionServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerNegativeCriteriaRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerNegativeCriteriaRequest request = new MutateCustomerNegativeCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerNegativeCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerNegativeCriteriaResponse expectedResponse = new MutateCustomerNegativeCriteriaResponse - { - Results = - { - new MutateCustomerNegativeCriteriaResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerNegativeCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerNegativeCriterionServiceClient client = new CustomerNegativeCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerNegativeCriteriaResponse response = client.MutateCustomerNegativeCriteria(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerNegativeCriteriaRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerNegativeCriteriaRequest request = new MutateCustomerNegativeCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerNegativeCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerNegativeCriteriaResponse expectedResponse = new MutateCustomerNegativeCriteriaResponse - { - Results = - { - new MutateCustomerNegativeCriteriaResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerNegativeCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerNegativeCriterionServiceClient client = new CustomerNegativeCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerNegativeCriteriaResponse responseCallSettings = await client.MutateCustomerNegativeCriteriaAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerNegativeCriteriaResponse responseCancellationToken = await client.MutateCustomerNegativeCriteriaAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerNegativeCriteria() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerNegativeCriteriaRequest request = new MutateCustomerNegativeCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerNegativeCriterionOperation(), - }, - }; - MutateCustomerNegativeCriteriaResponse expectedResponse = new MutateCustomerNegativeCriteriaResponse - { - Results = - { - new MutateCustomerNegativeCriteriaResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerNegativeCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerNegativeCriterionServiceClient client = new CustomerNegativeCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerNegativeCriteriaResponse response = client.MutateCustomerNegativeCriteria(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerNegativeCriteriaAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerNegativeCriteriaRequest request = new MutateCustomerNegativeCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomerNegativeCriterionOperation(), - }, - }; - MutateCustomerNegativeCriteriaResponse expectedResponse = new MutateCustomerNegativeCriteriaResponse - { - Results = - { - new MutateCustomerNegativeCriteriaResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerNegativeCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerNegativeCriterionServiceClient client = new CustomerNegativeCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerNegativeCriteriaResponse responseCallSettings = await client.MutateCustomerNegativeCriteriaAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerNegativeCriteriaResponse responseCancellationToken = await client.MutateCustomerNegativeCriteriaAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerServiceClientTest.g.cs deleted file mode 100755 index 468ad869f..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerServiceClientTest.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerRequest request = new MutateCustomerRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerOperation(), - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerResponse expectedResponse = new MutateCustomerResponse - { - Result = new MutateCustomerResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomer(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerResponse response = client.MutateCustomer(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerRequest request = new MutateCustomerRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerOperation(), - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomerResponse expectedResponse = new MutateCustomerResponse - { - Result = new MutateCustomerResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerResponse responseCallSettings = await client.MutateCustomerAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerResponse responseCancellationToken = await client.MutateCustomerAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomer() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerRequest request = new MutateCustomerRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerOperation(), - }; - MutateCustomerResponse expectedResponse = new MutateCustomerResponse - { - Result = new MutateCustomerResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomer(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerResponse response = client.MutateCustomer(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerRequest request = new MutateCustomerRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerOperation(), - }; - MutateCustomerResponse expectedResponse = new MutateCustomerResponse - { - Result = new MutateCustomerResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerResponse responseCallSettings = await client.MutateCustomerAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerResponse responseCancellationToken = await client.MutateCustomerAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListAccessibleCustomersRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListAccessibleCustomersRequest request = new ListAccessibleCustomersRequest { }; - ListAccessibleCustomersResponse expectedResponse = new ListAccessibleCustomersResponse - { - ResourceNames = - { - "resource_namese9b75273", - }, - }; - mockGrpcClient.Setup(x => x.ListAccessibleCustomers(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - ListAccessibleCustomersResponse response = client.ListAccessibleCustomers(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListAccessibleCustomersRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListAccessibleCustomersRequest request = new ListAccessibleCustomersRequest { }; - ListAccessibleCustomersResponse expectedResponse = new ListAccessibleCustomersResponse - { - ResourceNames = - { - "resource_namese9b75273", - }, - }; - mockGrpcClient.Setup(x => x.ListAccessibleCustomersAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - ListAccessibleCustomersResponse responseCallSettings = await client.ListAccessibleCustomersAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListAccessibleCustomersResponse responseCancellationToken = await client.ListAccessibleCustomersAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void CreateCustomerClientRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateCustomerClientRequest request = new CreateCustomerClientRequest - { - CustomerId = "customer_id3b3724cb", - CustomerClient = new gagvr::Customer(), - AccessRole = gagve::AccessRoleEnum.Types.AccessRole.Unspecified, - EmailAddress = "email_addressf3aae0b5", - ValidateOnly = true, - }; - CreateCustomerClientResponse expectedResponse = new CreateCustomerClientResponse - { - ResourceNameAsCustomerName = gagvr::CustomerName.FromCustomer("[CUSTOMER_ID]"), - InvitationLink = "invitation_linkd5742ce9", - }; - mockGrpcClient.Setup(x => x.CreateCustomerClient(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - CreateCustomerClientResponse response = client.CreateCustomerClient(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task CreateCustomerClientRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateCustomerClientRequest request = new CreateCustomerClientRequest - { - CustomerId = "customer_id3b3724cb", - CustomerClient = new gagvr::Customer(), - AccessRole = gagve::AccessRoleEnum.Types.AccessRole.Unspecified, - EmailAddress = "email_addressf3aae0b5", - ValidateOnly = true, - }; - CreateCustomerClientResponse expectedResponse = new CreateCustomerClientResponse - { - ResourceNameAsCustomerName = gagvr::CustomerName.FromCustomer("[CUSTOMER_ID]"), - InvitationLink = "invitation_linkd5742ce9", - }; - mockGrpcClient.Setup(x => x.CreateCustomerClientAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - CreateCustomerClientResponse responseCallSettings = await client.CreateCustomerClientAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - CreateCustomerClientResponse responseCancellationToken = await client.CreateCustomerClientAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void CreateCustomerClient() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateCustomerClientRequest request = new CreateCustomerClientRequest - { - CustomerId = "customer_id3b3724cb", - CustomerClient = new gagvr::Customer(), - }; - CreateCustomerClientResponse expectedResponse = new CreateCustomerClientResponse - { - ResourceNameAsCustomerName = gagvr::CustomerName.FromCustomer("[CUSTOMER_ID]"), - InvitationLink = "invitation_linkd5742ce9", - }; - mockGrpcClient.Setup(x => x.CreateCustomerClient(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - CreateCustomerClientResponse response = client.CreateCustomerClient(request.CustomerId, request.CustomerClient); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task CreateCustomerClientAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - CreateCustomerClientRequest request = new CreateCustomerClientRequest - { - CustomerId = "customer_id3b3724cb", - CustomerClient = new gagvr::Customer(), - }; - CreateCustomerClientResponse expectedResponse = new CreateCustomerClientResponse - { - ResourceNameAsCustomerName = gagvr::CustomerName.FromCustomer("[CUSTOMER_ID]"), - InvitationLink = "invitation_linkd5742ce9", - }; - mockGrpcClient.Setup(x => x.CreateCustomerClientAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerServiceClient client = new CustomerServiceClientImpl(mockGrpcClient.Object, null, null); - CreateCustomerClientResponse responseCallSettings = await client.CreateCustomerClientAsync(request.CustomerId, request.CustomerClient, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - CreateCustomerClientResponse responseCancellationToken = await client.CreateCustomerClientAsync(request.CustomerId, request.CustomerClient, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerUserAccessInvitationServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerUserAccessInvitationServiceClientTest.g.cs deleted file mode 100755 index e0048cc6d..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerUserAccessInvitationServiceClientTest.g.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerUserAccessInvitationServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerUserAccessInvitationRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessInvitationRequest request = new MutateCustomerUserAccessInvitationRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessInvitationOperation(), - }; - MutateCustomerUserAccessInvitationResponse expectedResponse = new MutateCustomerUserAccessInvitationResponse - { - Result = new MutateCustomerUserAccessInvitationResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccessInvitation(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerUserAccessInvitationServiceClient client = new CustomerUserAccessInvitationServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessInvitationResponse response = client.MutateCustomerUserAccessInvitation(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerUserAccessInvitationRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessInvitationRequest request = new MutateCustomerUserAccessInvitationRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessInvitationOperation(), - }; - MutateCustomerUserAccessInvitationResponse expectedResponse = new MutateCustomerUserAccessInvitationResponse - { - Result = new MutateCustomerUserAccessInvitationResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccessInvitationAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerUserAccessInvitationServiceClient client = new CustomerUserAccessInvitationServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessInvitationResponse responseCallSettings = await client.MutateCustomerUserAccessInvitationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerUserAccessInvitationResponse responseCancellationToken = await client.MutateCustomerUserAccessInvitationAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerUserAccessInvitation() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessInvitationRequest request = new MutateCustomerUserAccessInvitationRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessInvitationOperation(), - }; - MutateCustomerUserAccessInvitationResponse expectedResponse = new MutateCustomerUserAccessInvitationResponse - { - Result = new MutateCustomerUserAccessInvitationResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccessInvitation(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerUserAccessInvitationServiceClient client = new CustomerUserAccessInvitationServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessInvitationResponse response = client.MutateCustomerUserAccessInvitation(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerUserAccessInvitationAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessInvitationRequest request = new MutateCustomerUserAccessInvitationRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessInvitationOperation(), - }; - MutateCustomerUserAccessInvitationResponse expectedResponse = new MutateCustomerUserAccessInvitationResponse - { - Result = new MutateCustomerUserAccessInvitationResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccessInvitationAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerUserAccessInvitationServiceClient client = new CustomerUserAccessInvitationServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessInvitationResponse responseCallSettings = await client.MutateCustomerUserAccessInvitationAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerUserAccessInvitationResponse responseCancellationToken = await client.MutateCustomerUserAccessInvitationAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomerUserAccessServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomerUserAccessServiceClientTest.g.cs deleted file mode 100755 index b147213ce..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomerUserAccessServiceClientTest.g.cs +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomerUserAccessServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomerUserAccessRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessRequest request = new MutateCustomerUserAccessRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessOperation(), - }; - MutateCustomerUserAccessResponse expectedResponse = new MutateCustomerUserAccessResponse - { - Result = new MutateCustomerUserAccessResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccess(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerUserAccessServiceClient client = new CustomerUserAccessServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessResponse response = client.MutateCustomerUserAccess(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerUserAccessRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessRequest request = new MutateCustomerUserAccessRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessOperation(), - }; - MutateCustomerUserAccessResponse expectedResponse = new MutateCustomerUserAccessResponse - { - Result = new MutateCustomerUserAccessResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccessAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerUserAccessServiceClient client = new CustomerUserAccessServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessResponse responseCallSettings = await client.MutateCustomerUserAccessAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerUserAccessResponse responseCancellationToken = await client.MutateCustomerUserAccessAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomerUserAccess() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessRequest request = new MutateCustomerUserAccessRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessOperation(), - }; - MutateCustomerUserAccessResponse expectedResponse = new MutateCustomerUserAccessResponse - { - Result = new MutateCustomerUserAccessResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccess(request, moq::It.IsAny())).Returns(expectedResponse); - CustomerUserAccessServiceClient client = new CustomerUserAccessServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessResponse response = client.MutateCustomerUserAccess(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomerUserAccessAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomerUserAccessRequest request = new MutateCustomerUserAccessRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new CustomerUserAccessOperation(), - }; - MutateCustomerUserAccessResponse expectedResponse = new MutateCustomerUserAccessResponse - { - Result = new MutateCustomerUserAccessResult(), - }; - mockGrpcClient.Setup(x => x.MutateCustomerUserAccessAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomerUserAccessServiceClient client = new CustomerUserAccessServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomerUserAccessResponse responseCallSettings = await client.MutateCustomerUserAccessAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomerUserAccessResponse responseCancellationToken = await client.MutateCustomerUserAccessAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/CustomizerAttributeServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/CustomizerAttributeServiceClientTest.g.cs deleted file mode 100755 index 84ccf4315..000000000 --- a/Google.Ads.GoogleAds/tests/V12/CustomizerAttributeServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedCustomizerAttributeServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateCustomizerAttributesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomizerAttributesRequest request = new MutateCustomizerAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomizerAttributeOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomizerAttributesResponse expectedResponse = new MutateCustomizerAttributesResponse - { - Results = - { - new MutateCustomizerAttributeResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomizerAttributes(request, moq::It.IsAny())).Returns(expectedResponse); - CustomizerAttributeServiceClient client = new CustomizerAttributeServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomizerAttributesResponse response = client.MutateCustomizerAttributes(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomizerAttributesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomizerAttributesRequest request = new MutateCustomizerAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomizerAttributeOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateCustomizerAttributesResponse expectedResponse = new MutateCustomizerAttributesResponse - { - Results = - { - new MutateCustomizerAttributeResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomizerAttributesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomizerAttributeServiceClient client = new CustomizerAttributeServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomizerAttributesResponse responseCallSettings = await client.MutateCustomizerAttributesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomizerAttributesResponse responseCancellationToken = await client.MutateCustomizerAttributesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateCustomizerAttributes() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomizerAttributesRequest request = new MutateCustomizerAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomizerAttributeOperation(), - }, - }; - MutateCustomizerAttributesResponse expectedResponse = new MutateCustomizerAttributesResponse - { - Results = - { - new MutateCustomizerAttributeResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomizerAttributes(request, moq::It.IsAny())).Returns(expectedResponse); - CustomizerAttributeServiceClient client = new CustomizerAttributeServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomizerAttributesResponse response = client.MutateCustomizerAttributes(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateCustomizerAttributesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateCustomizerAttributesRequest request = new MutateCustomizerAttributesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new CustomizerAttributeOperation(), - }, - }; - MutateCustomizerAttributesResponse expectedResponse = new MutateCustomizerAttributesResponse - { - Results = - { - new MutateCustomizerAttributeResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateCustomizerAttributesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - CustomizerAttributeServiceClient client = new CustomizerAttributeServiceClientImpl(mockGrpcClient.Object, null, null); - MutateCustomizerAttributesResponse responseCallSettings = await client.MutateCustomizerAttributesAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateCustomizerAttributesResponse responseCancellationToken = await client.MutateCustomizerAttributesAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ExperimentArmServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ExperimentArmServiceClientTest.g.cs deleted file mode 100755 index 9ce1663c9..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ExperimentArmServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedExperimentArmServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateExperimentArmsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExperimentArmsRequest request = new MutateExperimentArmsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentArmOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateExperimentArmsResponse expectedResponse = new MutateExperimentArmsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentArmResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperimentArms(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentArmServiceClient client = new ExperimentArmServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentArmsResponse response = client.MutateExperimentArms(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateExperimentArmsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExperimentArmsRequest request = new MutateExperimentArmsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentArmOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateExperimentArmsResponse expectedResponse = new MutateExperimentArmsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentArmResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperimentArmsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentArmServiceClient client = new ExperimentArmServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentArmsResponse responseCallSettings = await client.MutateExperimentArmsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateExperimentArmsResponse responseCancellationToken = await client.MutateExperimentArmsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateExperimentArms() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExperimentArmsRequest request = new MutateExperimentArmsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentArmOperation(), - }, - }; - MutateExperimentArmsResponse expectedResponse = new MutateExperimentArmsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentArmResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperimentArms(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentArmServiceClient client = new ExperimentArmServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentArmsResponse response = client.MutateExperimentArms(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateExperimentArmsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExperimentArmsRequest request = new MutateExperimentArmsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentArmOperation(), - }, - }; - MutateExperimentArmsResponse expectedResponse = new MutateExperimentArmsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentArmResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperimentArmsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentArmServiceClient client = new ExperimentArmServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentArmsResponse responseCallSettings = await client.MutateExperimentArmsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateExperimentArmsResponse responseCancellationToken = await client.MutateExperimentArmsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ExperimentServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ExperimentServiceClientTest.g.cs deleted file mode 100755 index 097047ba3..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ExperimentServiceClientTest.g.cs +++ /dev/null @@ -1,381 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using lro = Google.LongRunning; -using wkt = Google.Protobuf.WellKnownTypes; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedExperimentServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateExperimentsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateExperimentsRequest request = new MutateExperimentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateExperimentsResponse expectedResponse = new MutateExperimentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperiments(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentsResponse response = client.MutateExperiments(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateExperimentsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateExperimentsRequest request = new MutateExperimentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateExperimentsResponse expectedResponse = new MutateExperimentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperimentsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentsResponse responseCallSettings = await client.MutateExperimentsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateExperimentsResponse responseCancellationToken = await client.MutateExperimentsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateExperiments() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateExperimentsRequest request = new MutateExperimentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentOperation(), - }, - }; - MutateExperimentsResponse expectedResponse = new MutateExperimentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperiments(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentsResponse response = client.MutateExperiments(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateExperimentsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - MutateExperimentsRequest request = new MutateExperimentsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExperimentOperation(), - }, - }; - MutateExperimentsResponse expectedResponse = new MutateExperimentsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateExperimentResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateExperimentsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExperimentsResponse responseCallSettings = await client.MutateExperimentsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateExperimentsResponse responseCancellationToken = await client.MutateExperimentsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void EndExperimentRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - EndExperimentRequest request = new EndExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - ValidateOnly = true, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.EndExperiment(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - client.EndExperiment(request); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task EndExperimentRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - EndExperimentRequest request = new EndExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - ValidateOnly = true, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.EndExperimentAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - await client.EndExperimentAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - await client.EndExperimentAsync(request, st::CancellationToken.None); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void EndExperiment() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - EndExperimentRequest request = new EndExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.EndExperiment(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - client.EndExperiment(request.Experiment); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task EndExperimentAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - EndExperimentRequest request = new EndExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.EndExperimentAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - await client.EndExperimentAsync(request.Experiment, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - await client.EndExperimentAsync(request.Experiment, st::CancellationToken.None); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void EndExperimentResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - EndExperimentRequest request = new EndExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.EndExperiment(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - client.EndExperiment(request.ExperimentAsExperimentName); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task EndExperimentResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - EndExperimentRequest request = new EndExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.EndExperimentAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - await client.EndExperimentAsync(request.ExperimentAsExperimentName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - await client.EndExperimentAsync(request.ExperimentAsExperimentName, st::CancellationToken.None); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GraduateExperimentRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - GraduateExperimentRequest request = new GraduateExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - CampaignBudgetMappings = - { - new CampaignBudgetMapping(), - }, - ValidateOnly = true, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.GraduateExperiment(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - client.GraduateExperiment(request); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GraduateExperimentRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - GraduateExperimentRequest request = new GraduateExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - CampaignBudgetMappings = - { - new CampaignBudgetMapping(), - }, - ValidateOnly = true, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.GraduateExperimentAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - await client.GraduateExperimentAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - await client.GraduateExperimentAsync(request, st::CancellationToken.None); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GraduateExperiment() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - GraduateExperimentRequest request = new GraduateExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - CampaignBudgetMappings = - { - new CampaignBudgetMapping(), - }, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.GraduateExperiment(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - client.GraduateExperiment(request.Experiment, request.CampaignBudgetMappings); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GraduateExperimentAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - GraduateExperimentRequest request = new GraduateExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - CampaignBudgetMappings = - { - new CampaignBudgetMapping(), - }, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.GraduateExperimentAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - await client.GraduateExperimentAsync(request.Experiment, request.CampaignBudgetMappings, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - await client.GraduateExperimentAsync(request.Experiment, request.CampaignBudgetMappings, st::CancellationToken.None); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GraduateExperimentResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - GraduateExperimentRequest request = new GraduateExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - CampaignBudgetMappings = - { - new CampaignBudgetMapping(), - }, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.GraduateExperiment(request, moq::It.IsAny())).Returns(expectedResponse); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - client.GraduateExperiment(request.ExperimentAsExperimentName, request.CampaignBudgetMappings); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GraduateExperimentResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - GraduateExperimentRequest request = new GraduateExperimentRequest - { - ExperimentAsExperimentName = gagvr::ExperimentName.FromCustomerTrial("[CUSTOMER_ID]", "[TRIAL_ID]"), - CampaignBudgetMappings = - { - new CampaignBudgetMapping(), - }, - }; - wkt::Empty expectedResponse = new wkt::Empty { }; - mockGrpcClient.Setup(x => x.GraduateExperimentAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExperimentServiceClient client = new ExperimentServiceClientImpl(mockGrpcClient.Object, null, null); - await client.GraduateExperimentAsync(request.ExperimentAsExperimentName, request.CampaignBudgetMappings, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - await client.GraduateExperimentAsync(request.ExperimentAsExperimentName, request.CampaignBudgetMappings, st::CancellationToken.None); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ExtensionFeedItemServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ExtensionFeedItemServiceClientTest.g.cs deleted file mode 100755 index 5d862eaa2..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ExtensionFeedItemServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedExtensionFeedItemServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateExtensionFeedItemsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExtensionFeedItemsRequest request = new MutateExtensionFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExtensionFeedItemOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateExtensionFeedItemsResponse expectedResponse = new MutateExtensionFeedItemsResponse - { - Results = - { - new MutateExtensionFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateExtensionFeedItems(request, moq::It.IsAny())).Returns(expectedResponse); - ExtensionFeedItemServiceClient client = new ExtensionFeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExtensionFeedItemsResponse response = client.MutateExtensionFeedItems(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateExtensionFeedItemsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExtensionFeedItemsRequest request = new MutateExtensionFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExtensionFeedItemOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateExtensionFeedItemsResponse expectedResponse = new MutateExtensionFeedItemsResponse - { - Results = - { - new MutateExtensionFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateExtensionFeedItemsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExtensionFeedItemServiceClient client = new ExtensionFeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExtensionFeedItemsResponse responseCallSettings = await client.MutateExtensionFeedItemsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateExtensionFeedItemsResponse responseCancellationToken = await client.MutateExtensionFeedItemsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateExtensionFeedItems() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExtensionFeedItemsRequest request = new MutateExtensionFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExtensionFeedItemOperation(), - }, - }; - MutateExtensionFeedItemsResponse expectedResponse = new MutateExtensionFeedItemsResponse - { - Results = - { - new MutateExtensionFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateExtensionFeedItems(request, moq::It.IsAny())).Returns(expectedResponse); - ExtensionFeedItemServiceClient client = new ExtensionFeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExtensionFeedItemsResponse response = client.MutateExtensionFeedItems(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateExtensionFeedItemsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateExtensionFeedItemsRequest request = new MutateExtensionFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ExtensionFeedItemOperation(), - }, - }; - MutateExtensionFeedItemsResponse expectedResponse = new MutateExtensionFeedItemsResponse - { - Results = - { - new MutateExtensionFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateExtensionFeedItemsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ExtensionFeedItemServiceClient client = new ExtensionFeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateExtensionFeedItemsResponse responseCallSettings = await client.MutateExtensionFeedItemsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateExtensionFeedItemsResponse responseCancellationToken = await client.MutateExtensionFeedItemsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/FeedItemServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/FeedItemServiceClientTest.g.cs deleted file mode 100755 index 081ce30e7..000000000 --- a/Google.Ads.GoogleAds/tests/V12/FeedItemServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedFeedItemServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateFeedItemsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemsRequest request = new MutateFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedItemsResponse expectedResponse = new MutateFeedItemsResponse - { - Results = - { - new MutateFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItems(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemServiceClient client = new FeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemsResponse response = client.MutateFeedItems(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemsRequest request = new MutateFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedItemsResponse expectedResponse = new MutateFeedItemsResponse - { - Results = - { - new MutateFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemServiceClient client = new FeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemsResponse responseCallSettings = await client.MutateFeedItemsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemsResponse responseCancellationToken = await client.MutateFeedItemsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateFeedItems() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemsRequest request = new MutateFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemOperation(), - }, - }; - MutateFeedItemsResponse expectedResponse = new MutateFeedItemsResponse - { - Results = - { - new MutateFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItems(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemServiceClient client = new FeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemsResponse response = client.MutateFeedItems(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemsRequest request = new MutateFeedItemsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemOperation(), - }, - }; - MutateFeedItemsResponse expectedResponse = new MutateFeedItemsResponse - { - Results = - { - new MutateFeedItemResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemServiceClient client = new FeedItemServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemsResponse responseCallSettings = await client.MutateFeedItemsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemsResponse responseCancellationToken = await client.MutateFeedItemsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/FeedItemSetLinkServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/FeedItemSetLinkServiceClientTest.g.cs deleted file mode 100755 index 7ad5b6073..000000000 --- a/Google.Ads.GoogleAds/tests/V12/FeedItemSetLinkServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedFeedItemSetLinkServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateFeedItemSetLinksRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetLinksRequest request = new MutateFeedItemSetLinksRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetLinkOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateFeedItemSetLinksResponse expectedResponse = new MutateFeedItemSetLinksResponse - { - Results = - { - new MutateFeedItemSetLinkResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSetLinks(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemSetLinkServiceClient client = new FeedItemSetLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetLinksResponse response = client.MutateFeedItemSetLinks(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemSetLinksRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetLinksRequest request = new MutateFeedItemSetLinksRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetLinkOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateFeedItemSetLinksResponse expectedResponse = new MutateFeedItemSetLinksResponse - { - Results = - { - new MutateFeedItemSetLinkResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSetLinksAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemSetLinkServiceClient client = new FeedItemSetLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetLinksResponse responseCallSettings = await client.MutateFeedItemSetLinksAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemSetLinksResponse responseCancellationToken = await client.MutateFeedItemSetLinksAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateFeedItemSetLinks() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetLinksRequest request = new MutateFeedItemSetLinksRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetLinkOperation(), - }, - }; - MutateFeedItemSetLinksResponse expectedResponse = new MutateFeedItemSetLinksResponse - { - Results = - { - new MutateFeedItemSetLinkResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSetLinks(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemSetLinkServiceClient client = new FeedItemSetLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetLinksResponse response = client.MutateFeedItemSetLinks(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemSetLinksAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetLinksRequest request = new MutateFeedItemSetLinksRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetLinkOperation(), - }, - }; - MutateFeedItemSetLinksResponse expectedResponse = new MutateFeedItemSetLinksResponse - { - Results = - { - new MutateFeedItemSetLinkResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSetLinksAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemSetLinkServiceClient client = new FeedItemSetLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetLinksResponse responseCallSettings = await client.MutateFeedItemSetLinksAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemSetLinksResponse responseCancellationToken = await client.MutateFeedItemSetLinksAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/FeedItemSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/FeedItemSetServiceClientTest.g.cs deleted file mode 100755 index c520600cb..000000000 --- a/Google.Ads.GoogleAds/tests/V12/FeedItemSetServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedFeedItemSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateFeedItemSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateFeedItemSetsResponse expectedResponse = new MutateFeedItemSetsResponse - { - Results = - { - new MutateFeedItemSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSets(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemSetServiceClient client = new FeedItemSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetsResponse response = client.MutateFeedItemSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateFeedItemSetsResponse expectedResponse = new MutateFeedItemSetsResponse - { - Results = - { - new MutateFeedItemSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemSetServiceClient client = new FeedItemSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetsResponse responseCallSettings = await client.MutateFeedItemSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemSetsResponse responseCancellationToken = await client.MutateFeedItemSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateFeedItemSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetOperation(), - }, - }; - MutateFeedItemSetsResponse expectedResponse = new MutateFeedItemSetsResponse - { - Results = - { - new MutateFeedItemSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSets(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemSetServiceClient client = new FeedItemSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetsResponse response = client.MutateFeedItemSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemSetOperation(), - }, - }; - MutateFeedItemSetsResponse expectedResponse = new MutateFeedItemSetsResponse - { - Results = - { - new MutateFeedItemSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemSetServiceClient client = new FeedItemSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemSetsResponse responseCallSettings = await client.MutateFeedItemSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemSetsResponse responseCancellationToken = await client.MutateFeedItemSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/FeedItemTargetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/FeedItemTargetServiceClientTest.g.cs deleted file mode 100755 index 0e6cbd15d..000000000 --- a/Google.Ads.GoogleAds/tests/V12/FeedItemTargetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedFeedItemTargetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateFeedItemTargetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemTargetsRequest request = new MutateFeedItemTargetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemTargetOperation(), - }, - ValidateOnly = true, - PartialFailure = false, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedItemTargetsResponse expectedResponse = new MutateFeedItemTargetsResponse - { - Results = - { - new MutateFeedItemTargetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemTargets(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemTargetServiceClient client = new FeedItemTargetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemTargetsResponse response = client.MutateFeedItemTargets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemTargetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemTargetsRequest request = new MutateFeedItemTargetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemTargetOperation(), - }, - ValidateOnly = true, - PartialFailure = false, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedItemTargetsResponse expectedResponse = new MutateFeedItemTargetsResponse - { - Results = - { - new MutateFeedItemTargetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemTargetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemTargetServiceClient client = new FeedItemTargetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemTargetsResponse responseCallSettings = await client.MutateFeedItemTargetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemTargetsResponse responseCancellationToken = await client.MutateFeedItemTargetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateFeedItemTargets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemTargetsRequest request = new MutateFeedItemTargetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemTargetOperation(), - }, - }; - MutateFeedItemTargetsResponse expectedResponse = new MutateFeedItemTargetsResponse - { - Results = - { - new MutateFeedItemTargetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemTargets(request, moq::It.IsAny())).Returns(expectedResponse); - FeedItemTargetServiceClient client = new FeedItemTargetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemTargetsResponse response = client.MutateFeedItemTargets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedItemTargetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedItemTargetsRequest request = new MutateFeedItemTargetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedItemTargetOperation(), - }, - }; - MutateFeedItemTargetsResponse expectedResponse = new MutateFeedItemTargetsResponse - { - Results = - { - new MutateFeedItemTargetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedItemTargetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedItemTargetServiceClient client = new FeedItemTargetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedItemTargetsResponse responseCallSettings = await client.MutateFeedItemTargetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedItemTargetsResponse responseCancellationToken = await client.MutateFeedItemTargetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/FeedMappingServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/FeedMappingServiceClientTest.g.cs deleted file mode 100755 index 32bcbbbe6..000000000 --- a/Google.Ads.GoogleAds/tests/V12/FeedMappingServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedFeedMappingServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateFeedMappingsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedMappingsRequest request = new MutateFeedMappingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedMappingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedMappingsResponse expectedResponse = new MutateFeedMappingsResponse - { - Results = - { - new MutateFeedMappingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedMappings(request, moq::It.IsAny())).Returns(expectedResponse); - FeedMappingServiceClient client = new FeedMappingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedMappingsResponse response = client.MutateFeedMappings(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedMappingsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedMappingsRequest request = new MutateFeedMappingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedMappingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedMappingsResponse expectedResponse = new MutateFeedMappingsResponse - { - Results = - { - new MutateFeedMappingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedMappingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedMappingServiceClient client = new FeedMappingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedMappingsResponse responseCallSettings = await client.MutateFeedMappingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedMappingsResponse responseCancellationToken = await client.MutateFeedMappingsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateFeedMappings() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedMappingsRequest request = new MutateFeedMappingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedMappingOperation(), - }, - }; - MutateFeedMappingsResponse expectedResponse = new MutateFeedMappingsResponse - { - Results = - { - new MutateFeedMappingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedMappings(request, moq::It.IsAny())).Returns(expectedResponse); - FeedMappingServiceClient client = new FeedMappingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedMappingsResponse response = client.MutateFeedMappings(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedMappingsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedMappingsRequest request = new MutateFeedMappingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedMappingOperation(), - }, - }; - MutateFeedMappingsResponse expectedResponse = new MutateFeedMappingsResponse - { - Results = - { - new MutateFeedMappingResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedMappingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedMappingServiceClient client = new FeedMappingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedMappingsResponse responseCallSettings = await client.MutateFeedMappingsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedMappingsResponse responseCancellationToken = await client.MutateFeedMappingsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/FeedServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/FeedServiceClientTest.g.cs deleted file mode 100755 index 3273a4f15..000000000 --- a/Google.Ads.GoogleAds/tests/V12/FeedServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedFeedServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateFeedsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedsRequest request = new MutateFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedsResponse expectedResponse = new MutateFeedsResponse - { - Results = - { - new MutateFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - FeedServiceClient client = new FeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedsResponse response = client.MutateFeeds(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedsRequest request = new MutateFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateFeedsResponse expectedResponse = new MutateFeedsResponse - { - Results = - { - new MutateFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedServiceClient client = new FeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedsResponse responseCallSettings = await client.MutateFeedsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedsResponse responseCancellationToken = await client.MutateFeedsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateFeeds() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedsRequest request = new MutateFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedOperation(), - }, - }; - MutateFeedsResponse expectedResponse = new MutateFeedsResponse - { - Results = - { - new MutateFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeeds(request, moq::It.IsAny())).Returns(expectedResponse); - FeedServiceClient client = new FeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedsResponse response = client.MutateFeeds(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateFeedsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateFeedsRequest request = new MutateFeedsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new FeedOperation(), - }, - }; - MutateFeedsResponse expectedResponse = new MutateFeedsResponse - { - Results = - { - new MutateFeedResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateFeedsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - FeedServiceClient client = new FeedServiceClientImpl(mockGrpcClient.Object, null, null); - MutateFeedsResponse responseCallSettings = await client.MutateFeedsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateFeedsResponse responseCancellationToken = await client.MutateFeedsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/GeoTargetConstantServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/GeoTargetConstantServiceClientTest.g.cs deleted file mode 100755 index 30da3adb0..000000000 --- a/Google.Ads.GoogleAds/tests/V12/GeoTargetConstantServiceClientTest.g.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedGeoTargetConstantServiceClientTest - { - [Category("Autogenerated")][Test] - public void SuggestGeoTargetConstantsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestGeoTargetConstantsRequest request = new SuggestGeoTargetConstantsRequest - { - LocationNames = new SuggestGeoTargetConstantsRequest.Types.LocationNames(), - GeoTargets = new SuggestGeoTargetConstantsRequest.Types.GeoTargets(), - Locale = "locale9e6d21fb", - CountryCode = "country_code8debec55", - }; - SuggestGeoTargetConstantsResponse expectedResponse = new SuggestGeoTargetConstantsResponse - { - GeoTargetConstantSuggestions = - { - new GeoTargetConstantSuggestion(), - }, - }; - mockGrpcClient.Setup(x => x.SuggestGeoTargetConstants(request, moq::It.IsAny())).Returns(expectedResponse); - GeoTargetConstantServiceClient client = new GeoTargetConstantServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestGeoTargetConstantsResponse response = client.SuggestGeoTargetConstants(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task SuggestGeoTargetConstantsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestGeoTargetConstantsRequest request = new SuggestGeoTargetConstantsRequest - { - LocationNames = new SuggestGeoTargetConstantsRequest.Types.LocationNames(), - GeoTargets = new SuggestGeoTargetConstantsRequest.Types.GeoTargets(), - Locale = "locale9e6d21fb", - CountryCode = "country_code8debec55", - }; - SuggestGeoTargetConstantsResponse expectedResponse = new SuggestGeoTargetConstantsResponse - { - GeoTargetConstantSuggestions = - { - new GeoTargetConstantSuggestion(), - }, - }; - mockGrpcClient.Setup(x => x.SuggestGeoTargetConstantsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - GeoTargetConstantServiceClient client = new GeoTargetConstantServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestGeoTargetConstantsResponse responseCallSettings = await client.SuggestGeoTargetConstantsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - SuggestGeoTargetConstantsResponse responseCancellationToken = await client.SuggestGeoTargetConstantsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/GoogleAdsFailureExtensionsTests.cs b/Google.Ads.GoogleAds/tests/V12/GoogleAdsFailureExtensionsTests.cs deleted file mode 100644 index 9dd36b1b4..000000000 --- a/Google.Ads.GoogleAds/tests/V12/GoogleAdsFailureExtensionsTests.cs +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -using Google.Ads.Gax.Lib; -using Google.Ads.GoogleAds.V12.Errors; -using Google.Ads.GoogleAds.V12.Services; -using Google.Protobuf.WellKnownTypes; -using NUnit.Framework; -using System.Linq; -using static Google.Ads.GoogleAds.V12.Errors.ErrorLocation.Types; - -namespace Google.Ads.GoogleAds.Tests.V12.Errors -{ - /// - /// UnitTests for extensions in GoogleAdsFailureExtensionsTests.cs. - /// - [TestFixture] - internal class GoogleAdsFailureExtensionsTests - { - private static readonly FieldPathElement OPERATIONS = new FieldPathElement() - { - FieldName = "operations", - }; - - private static readonly FieldPathElement OPERATIONS_WITH_INDEX = new FieldPathElement() - { - FieldName = "operations", - Index = 2 - }; - - private static readonly FieldPathElement CREATE = new FieldPathElement() - { - FieldName = "create", - }; - - private static readonly FieldPathElement NAME = new FieldPathElement() - { - FieldName = "name", - }; - - private static readonly FieldPathElement NAME_WITH_INDEX = new FieldPathElement() - { - FieldName = "name", - Index = 1 - }; - - private static readonly GoogleAdsError OPERATIONS_2_NAME = CreateError( - // operations[2].create.name - new FieldPathElement[] { OPERATIONS_WITH_INDEX, CREATE, NAME } - ); - - private static readonly GoogleAdsError OPERATIONS_NAME = CreateError( - // operations.create.name - new FieldPathElement[] { OPERATIONS, CREATE, NAME } - ); - - private static readonly GoogleAdsError OPERATIONS_2_NAME_INDEX = CreateError( - // operations[2].create.name - new FieldPathElement[] { OPERATIONS_WITH_INDEX, CREATE, NAME_WITH_INDEX } - ); - - /// - /// Check if GetErrorsByOperationIndex method can retrieve errors by specified index. - /// - [Test] - public void TestGetErrorsByOperationIndexWithErrors() - { - GoogleAdsFailure failure = new GoogleAdsFailure(); - failure.Errors.Add(OPERATIONS_2_NAME); - - // There are no errors for index = 0. - Assert.AreEqual(failure.GetErrorsByOperationIndex(0).ToList().Count, 0); - - // There is one error for index = 2. - Assert.AreEqual(failure.GetErrorsByOperationIndex(2).ToList().Count, 1); - } - - /// - /// Check if GetErrorsByOperationIndex method can retrieve errors when the GoogleAdsFailure - /// has no errors. - /// - [Test] - public void TestGetErrorsByOperationIndexWhenNoErrors() - { - GoogleAdsFailure failure = new GoogleAdsFailure(); - Assert.AreEqual(failure.GetErrorsByOperationIndex(0).ToList().Count, 0); - } - - /// - /// Check if GetErrorsByOperationIndex method can retrieve an empty list of errors when - /// errors don't have any Location field set. - /// - [Test] - public void TestGetErrorsByOperationIndexNoLocation() - { - GoogleAdsFailure failure = new GoogleAdsFailure(); - failure.Errors.Add(new GoogleAdsError()); - Assert.AreEqual(failure.GetErrorsByOperationIndex(0).ToList().Count, 0); - } - - /// - /// Check if GetErrorsByOperationIndex method can retrieve an empty list of errors when - /// operations don't have an index. - /// - [Test] - public void TestGetErrorsByOperationIndexNoOperationIndex() - { - GoogleAdsFailure failure = new GoogleAdsFailure(); - - failure.Errors.AddRange(new GoogleAdsError[] { OPERATIONS_NAME }); - Assert.AreEqual(failure.GetErrorsByOperationIndex(0).ToList().Count, 0); - } - - /// - /// Tests for property. - /// - [Test] - public void TestCombinedFieldPath() - { - Assert.AreEqual("operations[2].create.name", OPERATIONS_2_NAME.CombinedFieldPath); - Assert.AreEqual("operations.create.name", OPERATIONS_NAME.CombinedFieldPath); - Assert.AreEqual("operations[2].create.name[1]", - OPERATIONS_2_NAME_INDEX.CombinedFieldPath); - - // If the location is empty, you get back - Assert.IsEmpty(new GoogleAdsError().CombinedFieldPath); - } - - /// - /// Check if IsEmpty message evaluates to false for a non-empty message. - /// - [Test] - public void TestIsEmptyForNonEmptyMessage() - { - MutateAdGroupResult successResult = new MutateAdGroupResult() - { - ResourceName = "TEST", - }; - Assert.False(successResult.IsEmpty()); - } - - /// - /// Check if IsEmpty message evaluates to true for an empty message. - /// - [Test] - public void TestIsEmptyForEmptyMessage() - { - MutateAdGroupResult failedResult = new MutateAdGroupResult(); - Assert.True(failedResult.IsEmpty()); - } - - /// - /// Verify that PartialFailure property can correctly deserialize a GoogleAdsFailure object. - /// - [Test] - public void TestPartialFailureDeserialization() - { - GoogleAdsFailure failure = new GoogleAdsFailure(); - failure.Errors.Add(OPERATIONS_2_NAME); - MutateAdGroupsResponse failedResponse = new MutateAdGroupsResponse() - { - PartialFailureError = GetStatus(failure) - }; - - Assert.True(failedResponse.PartialFailure.Equals(failure)); - } - - /// - /// Tests for PartialFailure property of Response objects when there is no error. - /// - [Test] - public void TestPartialFailureWithNoErrors() - { - MutateAdGroupsResponse failedResponse = new MutateAdGroupsResponse() - { - PartialFailureError = null - }; - - Assert.Null(failedResponse.PartialFailure); - } - - /// - /// Wraps a in an Rpc.Status object. - /// - /// The failure. - /// The wrapped Rpc.Status. - private static Rpc.Status GetStatus(GoogleAdsFailure failure) - { - Rpc.Status status = new Rpc.Status(); - status.Details.Add(Any.Pack(failure)); - return status; - } - - /// - /// Creates a object for testing purposes. - /// - /// Name of the field. - /// Index of the operation. - /// A GoogleAdsError instance. - private static GoogleAdsError CreateError(FieldPathElement[] fieldPathElements) - { - GoogleAdsError error = new GoogleAdsError() - { - Location = new ErrorLocation() - { - } - }; - error.Location.FieldPathElements.AddRange(fieldPathElements); - return error; - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/GoogleAdsFieldServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/GoogleAdsFieldServiceClientTest.g.cs deleted file mode 100755 index 4cccd7a71..000000000 --- a/Google.Ads.GoogleAds/tests/V12/GoogleAdsFieldServiceClientTest.g.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedGoogleAdsFieldServiceClientTest - { - [Category("Autogenerated")][Test] - public void GetGoogleAdsFieldRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetGoogleAdsFieldRequest request = new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - }; - gagvr::GoogleAdsField expectedResponse = new gagvr::GoogleAdsField - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Category = gagve::GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Segment, - DataType = gagve::GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Message, - GoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Selectable = true, - Filterable = true, - Sortable = true, - SelectableWith = - { - "selectable_with6b2ad4c4", - }, - AttributeResources = - { - "attribute_resources3f8a5e5c", - }, - Metrics = { "metrics7cd659aa", }, - Segments = - { - "segments982d981f", - }, - EnumValues = - { - "enum_values30797dbe", - }, - TypeUrl = "type_urlfde5623b", - IsRepeated = false, - }; - mockGrpcClient.Setup(x => x.GetGoogleAdsField(request, moq::It.IsAny())).Returns(expectedResponse); - GoogleAdsFieldServiceClient client = new GoogleAdsFieldServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::GoogleAdsField response = client.GetGoogleAdsField(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetGoogleAdsFieldRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetGoogleAdsFieldRequest request = new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - }; - gagvr::GoogleAdsField expectedResponse = new gagvr::GoogleAdsField - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Category = gagve::GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Segment, - DataType = gagve::GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Message, - GoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Selectable = true, - Filterable = true, - Sortable = true, - SelectableWith = - { - "selectable_with6b2ad4c4", - }, - AttributeResources = - { - "attribute_resources3f8a5e5c", - }, - Metrics = { "metrics7cd659aa", }, - Segments = - { - "segments982d981f", - }, - EnumValues = - { - "enum_values30797dbe", - }, - TypeUrl = "type_urlfde5623b", - IsRepeated = false, - }; - mockGrpcClient.Setup(x => x.GetGoogleAdsFieldAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - GoogleAdsFieldServiceClient client = new GoogleAdsFieldServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::GoogleAdsField responseCallSettings = await client.GetGoogleAdsFieldAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::GoogleAdsField responseCancellationToken = await client.GetGoogleAdsFieldAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GetGoogleAdsField() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetGoogleAdsFieldRequest request = new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - }; - gagvr::GoogleAdsField expectedResponse = new gagvr::GoogleAdsField - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Category = gagve::GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Segment, - DataType = gagve::GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Message, - GoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Selectable = true, - Filterable = true, - Sortable = true, - SelectableWith = - { - "selectable_with6b2ad4c4", - }, - AttributeResources = - { - "attribute_resources3f8a5e5c", - }, - Metrics = { "metrics7cd659aa", }, - Segments = - { - "segments982d981f", - }, - EnumValues = - { - "enum_values30797dbe", - }, - TypeUrl = "type_urlfde5623b", - IsRepeated = false, - }; - mockGrpcClient.Setup(x => x.GetGoogleAdsField(request, moq::It.IsAny())).Returns(expectedResponse); - GoogleAdsFieldServiceClient client = new GoogleAdsFieldServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::GoogleAdsField response = client.GetGoogleAdsField(request.ResourceName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetGoogleAdsFieldAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetGoogleAdsFieldRequest request = new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - }; - gagvr::GoogleAdsField expectedResponse = new gagvr::GoogleAdsField - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Category = gagve::GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Segment, - DataType = gagve::GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Message, - GoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Selectable = true, - Filterable = true, - Sortable = true, - SelectableWith = - { - "selectable_with6b2ad4c4", - }, - AttributeResources = - { - "attribute_resources3f8a5e5c", - }, - Metrics = { "metrics7cd659aa", }, - Segments = - { - "segments982d981f", - }, - EnumValues = - { - "enum_values30797dbe", - }, - TypeUrl = "type_urlfde5623b", - IsRepeated = false, - }; - mockGrpcClient.Setup(x => x.GetGoogleAdsFieldAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - GoogleAdsFieldServiceClient client = new GoogleAdsFieldServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::GoogleAdsField responseCallSettings = await client.GetGoogleAdsFieldAsync(request.ResourceName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::GoogleAdsField responseCancellationToken = await client.GetGoogleAdsFieldAsync(request.ResourceName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GetGoogleAdsFieldResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetGoogleAdsFieldRequest request = new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - }; - gagvr::GoogleAdsField expectedResponse = new gagvr::GoogleAdsField - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Category = gagve::GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Segment, - DataType = gagve::GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Message, - GoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Selectable = true, - Filterable = true, - Sortable = true, - SelectableWith = - { - "selectable_with6b2ad4c4", - }, - AttributeResources = - { - "attribute_resources3f8a5e5c", - }, - Metrics = { "metrics7cd659aa", }, - Segments = - { - "segments982d981f", - }, - EnumValues = - { - "enum_values30797dbe", - }, - TypeUrl = "type_urlfde5623b", - IsRepeated = false, - }; - mockGrpcClient.Setup(x => x.GetGoogleAdsField(request, moq::It.IsAny())).Returns(expectedResponse); - GoogleAdsFieldServiceClient client = new GoogleAdsFieldServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::GoogleAdsField response = client.GetGoogleAdsField(request.ResourceNameAsGoogleAdsFieldName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetGoogleAdsFieldResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetGoogleAdsFieldRequest request = new GetGoogleAdsFieldRequest - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - }; - gagvr::GoogleAdsField expectedResponse = new gagvr::GoogleAdsField - { - ResourceNameAsGoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Category = gagve::GoogleAdsFieldCategoryEnum.Types.GoogleAdsFieldCategory.Segment, - DataType = gagve::GoogleAdsFieldDataTypeEnum.Types.GoogleAdsFieldDataType.Message, - GoogleAdsFieldName = gagvr::GoogleAdsFieldName.FromGoogleAdsField("[GOOGLE_ADS_FIELD]"), - Selectable = true, - Filterable = true, - Sortable = true, - SelectableWith = - { - "selectable_with6b2ad4c4", - }, - AttributeResources = - { - "attribute_resources3f8a5e5c", - }, - Metrics = { "metrics7cd659aa", }, - Segments = - { - "segments982d981f", - }, - EnumValues = - { - "enum_values30797dbe", - }, - TypeUrl = "type_urlfde5623b", - IsRepeated = false, - }; - mockGrpcClient.Setup(x => x.GetGoogleAdsFieldAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - GoogleAdsFieldServiceClient client = new GoogleAdsFieldServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::GoogleAdsField responseCallSettings = await client.GetGoogleAdsFieldAsync(request.ResourceNameAsGoogleAdsFieldName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::GoogleAdsField responseCancellationToken = await client.GetGoogleAdsFieldAsync(request.ResourceNameAsGoogleAdsFieldName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/GoogleAdsServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/GoogleAdsServiceClientTest.g.cs deleted file mode 100755 index ff1c31e4f..000000000 --- a/Google.Ads.GoogleAds/tests/V12/GoogleAdsServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedGoogleAdsServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateGoogleAdsRequest request = new MutateGoogleAdsRequest - { - CustomerId = "customer_id3b3724cb", - MutateOperations = - { - new MutateOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateGoogleAdsResponse expectedResponse = new MutateGoogleAdsResponse - { - MutateOperationResponses = - { - new MutateOperationResponse(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.Mutate(request, moq::It.IsAny())).Returns(expectedResponse); - GoogleAdsServiceClient client = new GoogleAdsServiceClientImpl(mockGrpcClient.Object, null, null); - MutateGoogleAdsResponse response = client.Mutate(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateGoogleAdsRequest request = new MutateGoogleAdsRequest - { - CustomerId = "customer_id3b3724cb", - MutateOperations = - { - new MutateOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateGoogleAdsResponse expectedResponse = new MutateGoogleAdsResponse - { - MutateOperationResponses = - { - new MutateOperationResponse(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - GoogleAdsServiceClient client = new GoogleAdsServiceClientImpl(mockGrpcClient.Object, null, null); - MutateGoogleAdsResponse responseCallSettings = await client.MutateAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateGoogleAdsResponse responseCancellationToken = await client.MutateAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void Mutate() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateGoogleAdsRequest request = new MutateGoogleAdsRequest - { - CustomerId = "customer_id3b3724cb", - MutateOperations = - { - new MutateOperation(), - }, - }; - MutateGoogleAdsResponse expectedResponse = new MutateGoogleAdsResponse - { - MutateOperationResponses = - { - new MutateOperationResponse(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.Mutate(request, moq::It.IsAny())).Returns(expectedResponse); - GoogleAdsServiceClient client = new GoogleAdsServiceClientImpl(mockGrpcClient.Object, null, null); - MutateGoogleAdsResponse response = client.Mutate(request.CustomerId, request.MutateOperations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateGoogleAdsRequest request = new MutateGoogleAdsRequest - { - CustomerId = "customer_id3b3724cb", - MutateOperations = - { - new MutateOperation(), - }, - }; - MutateGoogleAdsResponse expectedResponse = new MutateGoogleAdsResponse - { - MutateOperationResponses = - { - new MutateOperationResponse(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - GoogleAdsServiceClient client = new GoogleAdsServiceClientImpl(mockGrpcClient.Object, null, null); - MutateGoogleAdsResponse responseCallSettings = await client.MutateAsync(request.CustomerId, request.MutateOperations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateGoogleAdsResponse responseCancellationToken = await client.MutateAsync(request.CustomerId, request.MutateOperations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/InvoiceServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/InvoiceServiceClientTest.g.cs deleted file mode 100755 index c9f70ee87..000000000 --- a/Google.Ads.GoogleAds/tests/V12/InvoiceServiceClientTest.g.cs +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedInvoiceServiceClientTest - { - [Category("Autogenerated")][Test] - public void ListInvoicesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListInvoicesRequest request = new ListInvoicesRequest - { - CustomerId = "customer_id3b3724cb", - BillingSetup = "billing_setupa2c2701f", - IssueYear = "issue_yeara1ebdef1", - IssueMonth = gagve::MonthOfYearEnum.Types.MonthOfYear.January, - }; - ListInvoicesResponse expectedResponse = new ListInvoicesResponse - { - Invoices = - { - new gagvr::Invoice(), - }, - }; - mockGrpcClient.Setup(x => x.ListInvoices(request, moq::It.IsAny())).Returns(expectedResponse); - InvoiceServiceClient client = new InvoiceServiceClientImpl(mockGrpcClient.Object, null, null); - ListInvoicesResponse response = client.ListInvoices(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListInvoicesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListInvoicesRequest request = new ListInvoicesRequest - { - CustomerId = "customer_id3b3724cb", - BillingSetup = "billing_setupa2c2701f", - IssueYear = "issue_yeara1ebdef1", - IssueMonth = gagve::MonthOfYearEnum.Types.MonthOfYear.January, - }; - ListInvoicesResponse expectedResponse = new ListInvoicesResponse - { - Invoices = - { - new gagvr::Invoice(), - }, - }; - mockGrpcClient.Setup(x => x.ListInvoicesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - InvoiceServiceClient client = new InvoiceServiceClientImpl(mockGrpcClient.Object, null, null); - ListInvoicesResponse responseCallSettings = await client.ListInvoicesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListInvoicesResponse responseCancellationToken = await client.ListInvoicesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListInvoices() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListInvoicesRequest request = new ListInvoicesRequest - { - CustomerId = "customer_id3b3724cb", - BillingSetup = "billing_setupa2c2701f", - IssueYear = "issue_yeara1ebdef1", - IssueMonth = gagve::MonthOfYearEnum.Types.MonthOfYear.January, - }; - ListInvoicesResponse expectedResponse = new ListInvoicesResponse - { - Invoices = - { - new gagvr::Invoice(), - }, - }; - mockGrpcClient.Setup(x => x.ListInvoices(request, moq::It.IsAny())).Returns(expectedResponse); - InvoiceServiceClient client = new InvoiceServiceClientImpl(mockGrpcClient.Object, null, null); - ListInvoicesResponse response = client.ListInvoices(request.CustomerId, request.BillingSetup, request.IssueYear, request.IssueMonth); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListInvoicesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListInvoicesRequest request = new ListInvoicesRequest - { - CustomerId = "customer_id3b3724cb", - BillingSetup = "billing_setupa2c2701f", - IssueYear = "issue_yeara1ebdef1", - IssueMonth = gagve::MonthOfYearEnum.Types.MonthOfYear.January, - }; - ListInvoicesResponse expectedResponse = new ListInvoicesResponse - { - Invoices = - { - new gagvr::Invoice(), - }, - }; - mockGrpcClient.Setup(x => x.ListInvoicesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - InvoiceServiceClient client = new InvoiceServiceClientImpl(mockGrpcClient.Object, null, null); - ListInvoicesResponse responseCallSettings = await client.ListInvoicesAsync(request.CustomerId, request.BillingSetup, request.IssueYear, request.IssueMonth, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListInvoicesResponse responseCancellationToken = await client.ListInvoicesAsync(request.CustomerId, request.BillingSetup, request.IssueYear, request.IssueMonth, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/KeywordPlanAdGroupKeywordServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/KeywordPlanAdGroupKeywordServiceClientTest.g.cs deleted file mode 100755 index 056998817..000000000 --- a/Google.Ads.GoogleAds/tests/V12/KeywordPlanAdGroupKeywordServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedKeywordPlanAdGroupKeywordServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateKeywordPlanAdGroupKeywordsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupKeywordsRequest request = new MutateKeywordPlanAdGroupKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupKeywordOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanAdGroupKeywordsResponse expectedResponse = new MutateKeywordPlanAdGroupKeywordsResponse - { - Results = - { - new MutateKeywordPlanAdGroupKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroupKeywords(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanAdGroupKeywordServiceClient client = new KeywordPlanAdGroupKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupKeywordsResponse response = client.MutateKeywordPlanAdGroupKeywords(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanAdGroupKeywordsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupKeywordsRequest request = new MutateKeywordPlanAdGroupKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupKeywordOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanAdGroupKeywordsResponse expectedResponse = new MutateKeywordPlanAdGroupKeywordsResponse - { - Results = - { - new MutateKeywordPlanAdGroupKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroupKeywordsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanAdGroupKeywordServiceClient client = new KeywordPlanAdGroupKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupKeywordsResponse responseCallSettings = await client.MutateKeywordPlanAdGroupKeywordsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanAdGroupKeywordsResponse responseCancellationToken = await client.MutateKeywordPlanAdGroupKeywordsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateKeywordPlanAdGroupKeywords() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupKeywordsRequest request = new MutateKeywordPlanAdGroupKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupKeywordOperation(), - }, - }; - MutateKeywordPlanAdGroupKeywordsResponse expectedResponse = new MutateKeywordPlanAdGroupKeywordsResponse - { - Results = - { - new MutateKeywordPlanAdGroupKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroupKeywords(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanAdGroupKeywordServiceClient client = new KeywordPlanAdGroupKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupKeywordsResponse response = client.MutateKeywordPlanAdGroupKeywords(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanAdGroupKeywordsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupKeywordsRequest request = new MutateKeywordPlanAdGroupKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupKeywordOperation(), - }, - }; - MutateKeywordPlanAdGroupKeywordsResponse expectedResponse = new MutateKeywordPlanAdGroupKeywordsResponse - { - Results = - { - new MutateKeywordPlanAdGroupKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroupKeywordsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanAdGroupKeywordServiceClient client = new KeywordPlanAdGroupKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupKeywordsResponse responseCallSettings = await client.MutateKeywordPlanAdGroupKeywordsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanAdGroupKeywordsResponse responseCancellationToken = await client.MutateKeywordPlanAdGroupKeywordsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/KeywordPlanAdGroupServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/KeywordPlanAdGroupServiceClientTest.g.cs deleted file mode 100755 index c07369730..000000000 --- a/Google.Ads.GoogleAds/tests/V12/KeywordPlanAdGroupServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedKeywordPlanAdGroupServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateKeywordPlanAdGroupsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupsRequest request = new MutateKeywordPlanAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanAdGroupsResponse expectedResponse = new MutateKeywordPlanAdGroupsResponse - { - Results = - { - new MutateKeywordPlanAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroups(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanAdGroupServiceClient client = new KeywordPlanAdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupsResponse response = client.MutateKeywordPlanAdGroups(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanAdGroupsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupsRequest request = new MutateKeywordPlanAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanAdGroupsResponse expectedResponse = new MutateKeywordPlanAdGroupsResponse - { - Results = - { - new MutateKeywordPlanAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanAdGroupServiceClient client = new KeywordPlanAdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupsResponse responseCallSettings = await client.MutateKeywordPlanAdGroupsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanAdGroupsResponse responseCancellationToken = await client.MutateKeywordPlanAdGroupsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateKeywordPlanAdGroups() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupsRequest request = new MutateKeywordPlanAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupOperation(), - }, - }; - MutateKeywordPlanAdGroupsResponse expectedResponse = new MutateKeywordPlanAdGroupsResponse - { - Results = - { - new MutateKeywordPlanAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroups(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanAdGroupServiceClient client = new KeywordPlanAdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupsResponse response = client.MutateKeywordPlanAdGroups(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanAdGroupsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanAdGroupsRequest request = new MutateKeywordPlanAdGroupsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanAdGroupOperation(), - }, - }; - MutateKeywordPlanAdGroupsResponse expectedResponse = new MutateKeywordPlanAdGroupsResponse - { - Results = - { - new MutateKeywordPlanAdGroupResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanAdGroupsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanAdGroupServiceClient client = new KeywordPlanAdGroupServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanAdGroupsResponse responseCallSettings = await client.MutateKeywordPlanAdGroupsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanAdGroupsResponse responseCancellationToken = await client.MutateKeywordPlanAdGroupsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/KeywordPlanCampaignKeywordServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/KeywordPlanCampaignKeywordServiceClientTest.g.cs deleted file mode 100755 index 42731ad0f..000000000 --- a/Google.Ads.GoogleAds/tests/V12/KeywordPlanCampaignKeywordServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedKeywordPlanCampaignKeywordServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateKeywordPlanCampaignKeywordsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignKeywordsRequest request = new MutateKeywordPlanCampaignKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignKeywordOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanCampaignKeywordsResponse expectedResponse = new MutateKeywordPlanCampaignKeywordsResponse - { - Results = - { - new MutateKeywordPlanCampaignKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaignKeywords(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanCampaignKeywordServiceClient client = new KeywordPlanCampaignKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignKeywordsResponse response = client.MutateKeywordPlanCampaignKeywords(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanCampaignKeywordsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignKeywordsRequest request = new MutateKeywordPlanCampaignKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignKeywordOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanCampaignKeywordsResponse expectedResponse = new MutateKeywordPlanCampaignKeywordsResponse - { - Results = - { - new MutateKeywordPlanCampaignKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaignKeywordsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanCampaignKeywordServiceClient client = new KeywordPlanCampaignKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignKeywordsResponse responseCallSettings = await client.MutateKeywordPlanCampaignKeywordsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanCampaignKeywordsResponse responseCancellationToken = await client.MutateKeywordPlanCampaignKeywordsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateKeywordPlanCampaignKeywords() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignKeywordsRequest request = new MutateKeywordPlanCampaignKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignKeywordOperation(), - }, - }; - MutateKeywordPlanCampaignKeywordsResponse expectedResponse = new MutateKeywordPlanCampaignKeywordsResponse - { - Results = - { - new MutateKeywordPlanCampaignKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaignKeywords(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanCampaignKeywordServiceClient client = new KeywordPlanCampaignKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignKeywordsResponse response = client.MutateKeywordPlanCampaignKeywords(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanCampaignKeywordsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignKeywordsRequest request = new MutateKeywordPlanCampaignKeywordsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignKeywordOperation(), - }, - }; - MutateKeywordPlanCampaignKeywordsResponse expectedResponse = new MutateKeywordPlanCampaignKeywordsResponse - { - Results = - { - new MutateKeywordPlanCampaignKeywordResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaignKeywordsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanCampaignKeywordServiceClient client = new KeywordPlanCampaignKeywordServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignKeywordsResponse responseCallSettings = await client.MutateKeywordPlanCampaignKeywordsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanCampaignKeywordsResponse responseCancellationToken = await client.MutateKeywordPlanCampaignKeywordsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/KeywordPlanCampaignServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/KeywordPlanCampaignServiceClientTest.g.cs deleted file mode 100755 index 139dab045..000000000 --- a/Google.Ads.GoogleAds/tests/V12/KeywordPlanCampaignServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedKeywordPlanCampaignServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateKeywordPlanCampaignsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignsRequest request = new MutateKeywordPlanCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanCampaignsResponse expectedResponse = new MutateKeywordPlanCampaignsResponse - { - Results = - { - new MutateKeywordPlanCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaigns(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanCampaignServiceClient client = new KeywordPlanCampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignsResponse response = client.MutateKeywordPlanCampaigns(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanCampaignsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignsRequest request = new MutateKeywordPlanCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlanCampaignsResponse expectedResponse = new MutateKeywordPlanCampaignsResponse - { - Results = - { - new MutateKeywordPlanCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaignsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanCampaignServiceClient client = new KeywordPlanCampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignsResponse responseCallSettings = await client.MutateKeywordPlanCampaignsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanCampaignsResponse responseCancellationToken = await client.MutateKeywordPlanCampaignsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateKeywordPlanCampaigns() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignsRequest request = new MutateKeywordPlanCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignOperation(), - }, - }; - MutateKeywordPlanCampaignsResponse expectedResponse = new MutateKeywordPlanCampaignsResponse - { - Results = - { - new MutateKeywordPlanCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaigns(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanCampaignServiceClient client = new KeywordPlanCampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignsResponse response = client.MutateKeywordPlanCampaigns(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlanCampaignsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlanCampaignsRequest request = new MutateKeywordPlanCampaignsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanCampaignOperation(), - }, - }; - MutateKeywordPlanCampaignsResponse expectedResponse = new MutateKeywordPlanCampaignsResponse - { - Results = - { - new MutateKeywordPlanCampaignResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlanCampaignsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanCampaignServiceClient client = new KeywordPlanCampaignServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlanCampaignsResponse responseCallSettings = await client.MutateKeywordPlanCampaignsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlanCampaignsResponse responseCancellationToken = await client.MutateKeywordPlanCampaignsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/KeywordPlanIdeaServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/KeywordPlanIdeaServiceClientTest.g.cs deleted file mode 100755 index d82b466d2..000000000 --- a/Google.Ads.GoogleAds/tests/V12/KeywordPlanIdeaServiceClientTest.g.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvc = Google.Ads.GoogleAds.V12.Common; -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedKeywordPlanIdeaServiceClientTest - { - [Category("Autogenerated")][Test] - public void GenerateKeywordHistoricalMetricsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateKeywordHistoricalMetricsRequest request = new GenerateKeywordHistoricalMetricsRequest - { - CustomerId = "customer_id3b3724cb", - Keywords = - { - "keywordsc9b2ae59", - }, - HistoricalMetricsOptions = new gagvc::HistoricalMetricsOptions(), - Language = "language7dae1285", - IncludeAdultKeywords = false, - GeoTargetConstants = - { - "geo_target_constants2f692206", - }, - KeywordPlanNetwork = gagve::KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified, - AggregateMetrics = new gagvc::KeywordPlanAggregateMetrics(), - }; - GenerateKeywordHistoricalMetricsResponse expectedResponse = new GenerateKeywordHistoricalMetricsResponse - { - Results = - { - new GenerateKeywordHistoricalMetricsResult(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateKeywordHistoricalMetrics(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanIdeaServiceClient client = new KeywordPlanIdeaServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateKeywordHistoricalMetricsResponse response = client.GenerateKeywordHistoricalMetrics(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateKeywordHistoricalMetricsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateKeywordHistoricalMetricsRequest request = new GenerateKeywordHistoricalMetricsRequest - { - CustomerId = "customer_id3b3724cb", - Keywords = - { - "keywordsc9b2ae59", - }, - HistoricalMetricsOptions = new gagvc::HistoricalMetricsOptions(), - Language = "language7dae1285", - IncludeAdultKeywords = false, - GeoTargetConstants = - { - "geo_target_constants2f692206", - }, - KeywordPlanNetwork = gagve::KeywordPlanNetworkEnum.Types.KeywordPlanNetwork.Unspecified, - AggregateMetrics = new gagvc::KeywordPlanAggregateMetrics(), - }; - GenerateKeywordHistoricalMetricsResponse expectedResponse = new GenerateKeywordHistoricalMetricsResponse - { - Results = - { - new GenerateKeywordHistoricalMetricsResult(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateKeywordHistoricalMetricsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanIdeaServiceClient client = new KeywordPlanIdeaServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateKeywordHistoricalMetricsResponse responseCallSettings = await client.GenerateKeywordHistoricalMetricsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateKeywordHistoricalMetricsResponse responseCancellationToken = await client.GenerateKeywordHistoricalMetricsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateAdGroupThemesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateAdGroupThemesRequest request = new GenerateAdGroupThemesRequest - { - CustomerId = "customer_id3b3724cb", - Keywords = - { - "keywordsc9b2ae59", - }, - AdGroups = - { - "ad_groups044f0600", - }, - }; - GenerateAdGroupThemesResponse expectedResponse = new GenerateAdGroupThemesResponse - { - AdGroupKeywordSuggestions = - { - new AdGroupKeywordSuggestion(), - }, - UnusableAdGroups = - { - new UnusableAdGroup(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateAdGroupThemes(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanIdeaServiceClient client = new KeywordPlanIdeaServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateAdGroupThemesResponse response = client.GenerateAdGroupThemes(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateAdGroupThemesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateAdGroupThemesRequest request = new GenerateAdGroupThemesRequest - { - CustomerId = "customer_id3b3724cb", - Keywords = - { - "keywordsc9b2ae59", - }, - AdGroups = - { - "ad_groups044f0600", - }, - }; - GenerateAdGroupThemesResponse expectedResponse = new GenerateAdGroupThemesResponse - { - AdGroupKeywordSuggestions = - { - new AdGroupKeywordSuggestion(), - }, - UnusableAdGroups = - { - new UnusableAdGroup(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateAdGroupThemesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanIdeaServiceClient client = new KeywordPlanIdeaServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateAdGroupThemesResponse responseCallSettings = await client.GenerateAdGroupThemesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateAdGroupThemesResponse responseCancellationToken = await client.GenerateAdGroupThemesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/KeywordPlanServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/KeywordPlanServiceClientTest.g.cs deleted file mode 100755 index faef5632f..000000000 --- a/Google.Ads.GoogleAds/tests/V12/KeywordPlanServiceClientTest.g.cs +++ /dev/null @@ -1,760 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvc = Google.Ads.GoogleAds.V12.Common; -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedKeywordPlanServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateKeywordPlansRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlansRequest request = new MutateKeywordPlansRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlansResponse expectedResponse = new MutateKeywordPlansResponse - { - Results = - { - new MutateKeywordPlansResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlans(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlansResponse response = client.MutateKeywordPlans(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlansRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlansRequest request = new MutateKeywordPlansRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateKeywordPlansResponse expectedResponse = new MutateKeywordPlansResponse - { - Results = - { - new MutateKeywordPlansResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlansAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlansResponse responseCallSettings = await client.MutateKeywordPlansAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlansResponse responseCancellationToken = await client.MutateKeywordPlansAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateKeywordPlans() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlansRequest request = new MutateKeywordPlansRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanOperation(), - }, - }; - MutateKeywordPlansResponse expectedResponse = new MutateKeywordPlansResponse - { - Results = - { - new MutateKeywordPlansResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlans(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlansResponse response = client.MutateKeywordPlans(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateKeywordPlansAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateKeywordPlansRequest request = new MutateKeywordPlansRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new KeywordPlanOperation(), - }, - }; - MutateKeywordPlansResponse expectedResponse = new MutateKeywordPlansResponse - { - Results = - { - new MutateKeywordPlansResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateKeywordPlansAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - MutateKeywordPlansResponse responseCallSettings = await client.MutateKeywordPlansAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateKeywordPlansResponse responseCancellationToken = await client.MutateKeywordPlansAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastCurveRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastCurveRequest request = new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastCurveResponse expectedResponse = new GenerateForecastCurveResponse - { - CampaignForecastCurves = - { - new KeywordPlanCampaignForecastCurve(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastCurve(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastCurveResponse response = client.GenerateForecastCurve(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastCurveRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastCurveRequest request = new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastCurveResponse expectedResponse = new GenerateForecastCurveResponse - { - CampaignForecastCurves = - { - new KeywordPlanCampaignForecastCurve(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastCurveAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastCurveResponse responseCallSettings = await client.GenerateForecastCurveAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastCurveResponse responseCancellationToken = await client.GenerateForecastCurveAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastCurve() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastCurveRequest request = new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastCurveResponse expectedResponse = new GenerateForecastCurveResponse - { - CampaignForecastCurves = - { - new KeywordPlanCampaignForecastCurve(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastCurve(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastCurveResponse response = client.GenerateForecastCurve(request.KeywordPlan); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastCurveAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastCurveRequest request = new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastCurveResponse expectedResponse = new GenerateForecastCurveResponse - { - CampaignForecastCurves = - { - new KeywordPlanCampaignForecastCurve(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastCurveAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastCurveResponse responseCallSettings = await client.GenerateForecastCurveAsync(request.KeywordPlan, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastCurveResponse responseCancellationToken = await client.GenerateForecastCurveAsync(request.KeywordPlan, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastCurveResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastCurveRequest request = new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastCurveResponse expectedResponse = new GenerateForecastCurveResponse - { - CampaignForecastCurves = - { - new KeywordPlanCampaignForecastCurve(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastCurve(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastCurveResponse response = client.GenerateForecastCurve(request.KeywordPlanAsKeywordPlanName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastCurveResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastCurveRequest request = new GenerateForecastCurveRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastCurveResponse expectedResponse = new GenerateForecastCurveResponse - { - CampaignForecastCurves = - { - new KeywordPlanCampaignForecastCurve(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastCurveAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastCurveResponse responseCallSettings = await client.GenerateForecastCurveAsync(request.KeywordPlanAsKeywordPlanName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastCurveResponse responseCancellationToken = await client.GenerateForecastCurveAsync(request.KeywordPlanAsKeywordPlanName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastTimeSeriesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastTimeSeriesRequest request = new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastTimeSeriesResponse expectedResponse = new GenerateForecastTimeSeriesResponse - { - WeeklyTimeSeriesForecasts = - { - new KeywordPlanWeeklyTimeSeriesForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastTimeSeries(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastTimeSeriesResponse response = client.GenerateForecastTimeSeries(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastTimeSeriesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastTimeSeriesRequest request = new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastTimeSeriesResponse expectedResponse = new GenerateForecastTimeSeriesResponse - { - WeeklyTimeSeriesForecasts = - { - new KeywordPlanWeeklyTimeSeriesForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastTimeSeriesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastTimeSeriesResponse responseCallSettings = await client.GenerateForecastTimeSeriesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastTimeSeriesResponse responseCancellationToken = await client.GenerateForecastTimeSeriesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastTimeSeries() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastTimeSeriesRequest request = new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastTimeSeriesResponse expectedResponse = new GenerateForecastTimeSeriesResponse - { - WeeklyTimeSeriesForecasts = - { - new KeywordPlanWeeklyTimeSeriesForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastTimeSeries(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastTimeSeriesResponse response = client.GenerateForecastTimeSeries(request.KeywordPlan); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastTimeSeriesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastTimeSeriesRequest request = new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastTimeSeriesResponse expectedResponse = new GenerateForecastTimeSeriesResponse - { - WeeklyTimeSeriesForecasts = - { - new KeywordPlanWeeklyTimeSeriesForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastTimeSeriesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastTimeSeriesResponse responseCallSettings = await client.GenerateForecastTimeSeriesAsync(request.KeywordPlan, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastTimeSeriesResponse responseCancellationToken = await client.GenerateForecastTimeSeriesAsync(request.KeywordPlan, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastTimeSeriesResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastTimeSeriesRequest request = new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastTimeSeriesResponse expectedResponse = new GenerateForecastTimeSeriesResponse - { - WeeklyTimeSeriesForecasts = - { - new KeywordPlanWeeklyTimeSeriesForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastTimeSeries(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastTimeSeriesResponse response = client.GenerateForecastTimeSeries(request.KeywordPlanAsKeywordPlanName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastTimeSeriesResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastTimeSeriesRequest request = new GenerateForecastTimeSeriesRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastTimeSeriesResponse expectedResponse = new GenerateForecastTimeSeriesResponse - { - WeeklyTimeSeriesForecasts = - { - new KeywordPlanWeeklyTimeSeriesForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastTimeSeriesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastTimeSeriesResponse responseCallSettings = await client.GenerateForecastTimeSeriesAsync(request.KeywordPlanAsKeywordPlanName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastTimeSeriesResponse responseCancellationToken = await client.GenerateForecastTimeSeriesAsync(request.KeywordPlanAsKeywordPlanName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastMetricsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastMetricsRequest request = new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastMetricsResponse expectedResponse = new GenerateForecastMetricsResponse - { - CampaignForecasts = - { - new KeywordPlanCampaignForecast(), - }, - AdGroupForecasts = - { - new KeywordPlanAdGroupForecast(), - }, - KeywordForecasts = - { - new KeywordPlanKeywordForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastMetrics(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastMetricsResponse response = client.GenerateForecastMetrics(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastMetricsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastMetricsRequest request = new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastMetricsResponse expectedResponse = new GenerateForecastMetricsResponse - { - CampaignForecasts = - { - new KeywordPlanCampaignForecast(), - }, - AdGroupForecasts = - { - new KeywordPlanAdGroupForecast(), - }, - KeywordForecasts = - { - new KeywordPlanKeywordForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastMetricsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastMetricsResponse responseCallSettings = await client.GenerateForecastMetricsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastMetricsResponse responseCancellationToken = await client.GenerateForecastMetricsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastMetrics() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastMetricsRequest request = new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastMetricsResponse expectedResponse = new GenerateForecastMetricsResponse - { - CampaignForecasts = - { - new KeywordPlanCampaignForecast(), - }, - AdGroupForecasts = - { - new KeywordPlanAdGroupForecast(), - }, - KeywordForecasts = - { - new KeywordPlanKeywordForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastMetrics(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastMetricsResponse response = client.GenerateForecastMetrics(request.KeywordPlan); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastMetricsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastMetricsRequest request = new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastMetricsResponse expectedResponse = new GenerateForecastMetricsResponse - { - CampaignForecasts = - { - new KeywordPlanCampaignForecast(), - }, - AdGroupForecasts = - { - new KeywordPlanAdGroupForecast(), - }, - KeywordForecasts = - { - new KeywordPlanKeywordForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastMetricsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastMetricsResponse responseCallSettings = await client.GenerateForecastMetricsAsync(request.KeywordPlan, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastMetricsResponse responseCancellationToken = await client.GenerateForecastMetricsAsync(request.KeywordPlan, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateForecastMetricsResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastMetricsRequest request = new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastMetricsResponse expectedResponse = new GenerateForecastMetricsResponse - { - CampaignForecasts = - { - new KeywordPlanCampaignForecast(), - }, - AdGroupForecasts = - { - new KeywordPlanAdGroupForecast(), - }, - KeywordForecasts = - { - new KeywordPlanKeywordForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastMetrics(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastMetricsResponse response = client.GenerateForecastMetrics(request.KeywordPlanAsKeywordPlanName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateForecastMetricsResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateForecastMetricsRequest request = new GenerateForecastMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateForecastMetricsResponse expectedResponse = new GenerateForecastMetricsResponse - { - CampaignForecasts = - { - new KeywordPlanCampaignForecast(), - }, - AdGroupForecasts = - { - new KeywordPlanAdGroupForecast(), - }, - KeywordForecasts = - { - new KeywordPlanKeywordForecast(), - }, - }; - mockGrpcClient.Setup(x => x.GenerateForecastMetricsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateForecastMetricsResponse responseCallSettings = await client.GenerateForecastMetricsAsync(request.KeywordPlanAsKeywordPlanName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateForecastMetricsResponse responseCancellationToken = await client.GenerateForecastMetricsAsync(request.KeywordPlanAsKeywordPlanName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateHistoricalMetricsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateHistoricalMetricsRequest request = new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - AggregateMetrics = new gagvc::KeywordPlanAggregateMetrics(), - HistoricalMetricsOptions = new gagvc::HistoricalMetricsOptions(), - }; - GenerateHistoricalMetricsResponse expectedResponse = new GenerateHistoricalMetricsResponse - { - Metrics = - { - new KeywordPlanKeywordHistoricalMetrics(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateHistoricalMetrics(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateHistoricalMetricsResponse response = client.GenerateHistoricalMetrics(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateHistoricalMetricsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateHistoricalMetricsRequest request = new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - AggregateMetrics = new gagvc::KeywordPlanAggregateMetrics(), - HistoricalMetricsOptions = new gagvc::HistoricalMetricsOptions(), - }; - GenerateHistoricalMetricsResponse expectedResponse = new GenerateHistoricalMetricsResponse - { - Metrics = - { - new KeywordPlanKeywordHistoricalMetrics(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateHistoricalMetricsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateHistoricalMetricsResponse responseCallSettings = await client.GenerateHistoricalMetricsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateHistoricalMetricsResponse responseCancellationToken = await client.GenerateHistoricalMetricsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateHistoricalMetrics() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateHistoricalMetricsRequest request = new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateHistoricalMetricsResponse expectedResponse = new GenerateHistoricalMetricsResponse - { - Metrics = - { - new KeywordPlanKeywordHistoricalMetrics(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateHistoricalMetrics(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateHistoricalMetricsResponse response = client.GenerateHistoricalMetrics(request.KeywordPlan); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateHistoricalMetricsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateHistoricalMetricsRequest request = new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateHistoricalMetricsResponse expectedResponse = new GenerateHistoricalMetricsResponse - { - Metrics = - { - new KeywordPlanKeywordHistoricalMetrics(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateHistoricalMetricsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateHistoricalMetricsResponse responseCallSettings = await client.GenerateHistoricalMetricsAsync(request.KeywordPlan, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateHistoricalMetricsResponse responseCancellationToken = await client.GenerateHistoricalMetricsAsync(request.KeywordPlan, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateHistoricalMetricsResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateHistoricalMetricsRequest request = new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateHistoricalMetricsResponse expectedResponse = new GenerateHistoricalMetricsResponse - { - Metrics = - { - new KeywordPlanKeywordHistoricalMetrics(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateHistoricalMetrics(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateHistoricalMetricsResponse response = client.GenerateHistoricalMetrics(request.KeywordPlanAsKeywordPlanName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateHistoricalMetricsResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateHistoricalMetricsRequest request = new GenerateHistoricalMetricsRequest - { - KeywordPlanAsKeywordPlanName = gagvr::KeywordPlanName.FromCustomerKeywordPlan("[CUSTOMER_ID]", "[KEYWORD_PLAN_ID]"), - }; - GenerateHistoricalMetricsResponse expectedResponse = new GenerateHistoricalMetricsResponse - { - Metrics = - { - new KeywordPlanKeywordHistoricalMetrics(), - }, - AggregateMetricResults = new gagvc::KeywordPlanAggregateMetricResults(), - }; - mockGrpcClient.Setup(x => x.GenerateHistoricalMetricsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordPlanServiceClient client = new KeywordPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateHistoricalMetricsResponse responseCallSettings = await client.GenerateHistoricalMetricsAsync(request.KeywordPlanAsKeywordPlanName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateHistoricalMetricsResponse responseCancellationToken = await client.GenerateHistoricalMetricsAsync(request.KeywordPlanAsKeywordPlanName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/KeywordThemeConstantServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/KeywordThemeConstantServiceClientTest.g.cs deleted file mode 100755 index 87bbbe4c7..000000000 --- a/Google.Ads.GoogleAds/tests/V12/KeywordThemeConstantServiceClientTest.g.cs +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedKeywordThemeConstantServiceClientTest - { - [Category("Autogenerated")][Test] - public void SuggestKeywordThemeConstantsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestKeywordThemeConstantsRequest request = new SuggestKeywordThemeConstantsRequest - { - QueryText = "query_text3b0c4d80", - CountryCode = "country_code8debec55", - LanguageCode = "language_code2f6c7160", - }; - SuggestKeywordThemeConstantsResponse expectedResponse = new SuggestKeywordThemeConstantsResponse - { - KeywordThemeConstants = - { - new gagvr::KeywordThemeConstant(), - }, - }; - mockGrpcClient.Setup(x => x.SuggestKeywordThemeConstants(request, moq::It.IsAny())).Returns(expectedResponse); - KeywordThemeConstantServiceClient client = new KeywordThemeConstantServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestKeywordThemeConstantsResponse response = client.SuggestKeywordThemeConstants(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task SuggestKeywordThemeConstantsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestKeywordThemeConstantsRequest request = new SuggestKeywordThemeConstantsRequest - { - QueryText = "query_text3b0c4d80", - CountryCode = "country_code8debec55", - LanguageCode = "language_code2f6c7160", - }; - SuggestKeywordThemeConstantsResponse expectedResponse = new SuggestKeywordThemeConstantsResponse - { - KeywordThemeConstants = - { - new gagvr::KeywordThemeConstant(), - }, - }; - mockGrpcClient.Setup(x => x.SuggestKeywordThemeConstantsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - KeywordThemeConstantServiceClient client = new KeywordThemeConstantServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestKeywordThemeConstantsResponse responseCallSettings = await client.SuggestKeywordThemeConstantsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - SuggestKeywordThemeConstantsResponse responseCancellationToken = await client.SuggestKeywordThemeConstantsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/LabelServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/LabelServiceClientTest.g.cs deleted file mode 100755 index 39ac6b131..000000000 --- a/Google.Ads.GoogleAds/tests/V12/LabelServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedLabelServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateLabelsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateLabelsRequest request = new MutateLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new LabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateLabelsResponse expectedResponse = new MutateLabelsResponse - { - Results = - { - new MutateLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateLabels(request, moq::It.IsAny())).Returns(expectedResponse); - LabelServiceClient client = new LabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateLabelsResponse response = client.MutateLabels(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateLabelsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateLabelsRequest request = new MutateLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new LabelOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateLabelsResponse expectedResponse = new MutateLabelsResponse - { - Results = - { - new MutateLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - LabelServiceClient client = new LabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateLabelsResponse responseCallSettings = await client.MutateLabelsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateLabelsResponse responseCancellationToken = await client.MutateLabelsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateLabels() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateLabelsRequest request = new MutateLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new LabelOperation(), - }, - }; - MutateLabelsResponse expectedResponse = new MutateLabelsResponse - { - Results = - { - new MutateLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateLabels(request, moq::It.IsAny())).Returns(expectedResponse); - LabelServiceClient client = new LabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateLabelsResponse response = client.MutateLabels(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateLabelsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateLabelsRequest request = new MutateLabelsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new LabelOperation(), - }, - }; - MutateLabelsResponse expectedResponse = new MutateLabelsResponse - { - Results = - { - new MutateLabelResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateLabelsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - LabelServiceClient client = new LabelServiceClientImpl(mockGrpcClient.Object, null, null); - MutateLabelsResponse responseCallSettings = await client.MutateLabelsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateLabelsResponse responseCancellationToken = await client.MutateLabelsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/MediaFileServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/MediaFileServiceClientTest.g.cs deleted file mode 100755 index 6a30d6925..000000000 --- a/Google.Ads.GoogleAds/tests/V12/MediaFileServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedMediaFileServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateMediaFilesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMediaFilesRequest request = new MutateMediaFilesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new MediaFileOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateMediaFilesResponse expectedResponse = new MutateMediaFilesResponse - { - Results = - { - new MutateMediaFileResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateMediaFiles(request, moq::It.IsAny())).Returns(expectedResponse); - MediaFileServiceClient client = new MediaFileServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMediaFilesResponse response = client.MutateMediaFiles(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateMediaFilesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMediaFilesRequest request = new MutateMediaFilesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new MediaFileOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateMediaFilesResponse expectedResponse = new MutateMediaFilesResponse - { - Results = - { - new MutateMediaFileResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateMediaFilesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MediaFileServiceClient client = new MediaFileServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMediaFilesResponse responseCallSettings = await client.MutateMediaFilesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateMediaFilesResponse responseCancellationToken = await client.MutateMediaFilesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateMediaFiles() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMediaFilesRequest request = new MutateMediaFilesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new MediaFileOperation(), - }, - }; - MutateMediaFilesResponse expectedResponse = new MutateMediaFilesResponse - { - Results = - { - new MutateMediaFileResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateMediaFiles(request, moq::It.IsAny())).Returns(expectedResponse); - MediaFileServiceClient client = new MediaFileServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMediaFilesResponse response = client.MutateMediaFiles(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateMediaFilesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMediaFilesRequest request = new MutateMediaFilesRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new MediaFileOperation(), - }, - }; - MutateMediaFilesResponse expectedResponse = new MutateMediaFilesResponse - { - Results = - { - new MutateMediaFileResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateMediaFilesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MediaFileServiceClient client = new MediaFileServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMediaFilesResponse responseCallSettings = await client.MutateMediaFilesAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateMediaFilesResponse responseCancellationToken = await client.MutateMediaFilesAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/MerchantCenterLinkServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/MerchantCenterLinkServiceClientTest.g.cs deleted file mode 100755 index e9c1c89b0..000000000 --- a/Google.Ads.GoogleAds/tests/V12/MerchantCenterLinkServiceClientTest.g.cs +++ /dev/null @@ -1,349 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedMerchantCenterLinkServiceClientTest - { - [Category("Autogenerated")][Test] - public void ListMerchantCenterLinksRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListMerchantCenterLinksRequest request = new ListMerchantCenterLinksRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListMerchantCenterLinksResponse expectedResponse = new ListMerchantCenterLinksResponse - { - MerchantCenterLinks = - { - new gagvr::MerchantCenterLink(), - }, - }; - mockGrpcClient.Setup(x => x.ListMerchantCenterLinks(request, moq::It.IsAny())).Returns(expectedResponse); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - ListMerchantCenterLinksResponse response = client.ListMerchantCenterLinks(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListMerchantCenterLinksRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListMerchantCenterLinksRequest request = new ListMerchantCenterLinksRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListMerchantCenterLinksResponse expectedResponse = new ListMerchantCenterLinksResponse - { - MerchantCenterLinks = - { - new gagvr::MerchantCenterLink(), - }, - }; - mockGrpcClient.Setup(x => x.ListMerchantCenterLinksAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - ListMerchantCenterLinksResponse responseCallSettings = await client.ListMerchantCenterLinksAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListMerchantCenterLinksResponse responseCancellationToken = await client.ListMerchantCenterLinksAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListMerchantCenterLinks() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListMerchantCenterLinksRequest request = new ListMerchantCenterLinksRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListMerchantCenterLinksResponse expectedResponse = new ListMerchantCenterLinksResponse - { - MerchantCenterLinks = - { - new gagvr::MerchantCenterLink(), - }, - }; - mockGrpcClient.Setup(x => x.ListMerchantCenterLinks(request, moq::It.IsAny())).Returns(expectedResponse); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - ListMerchantCenterLinksResponse response = client.ListMerchantCenterLinks(request.CustomerId); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListMerchantCenterLinksAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListMerchantCenterLinksRequest request = new ListMerchantCenterLinksRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListMerchantCenterLinksResponse expectedResponse = new ListMerchantCenterLinksResponse - { - MerchantCenterLinks = - { - new gagvr::MerchantCenterLink(), - }, - }; - mockGrpcClient.Setup(x => x.ListMerchantCenterLinksAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - ListMerchantCenterLinksResponse responseCallSettings = await client.ListMerchantCenterLinksAsync(request.CustomerId, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListMerchantCenterLinksResponse responseCancellationToken = await client.ListMerchantCenterLinksAsync(request.CustomerId, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GetMerchantCenterLinkRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - }; - gagvr::MerchantCenterLink expectedResponse = new gagvr::MerchantCenterLink - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - Status = gagve::MerchantCenterLinkStatusEnum.Types.MerchantCenterLinkStatus.Enabled, - Id = -6774108720365892680L, - MerchantCenterAccountName = "merchant_center_account_name94680907", - }; - mockGrpcClient.Setup(x => x.GetMerchantCenterLink(request, moq::It.IsAny())).Returns(expectedResponse); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::MerchantCenterLink response = client.GetMerchantCenterLink(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetMerchantCenterLinkRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - }; - gagvr::MerchantCenterLink expectedResponse = new gagvr::MerchantCenterLink - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - Status = gagve::MerchantCenterLinkStatusEnum.Types.MerchantCenterLinkStatus.Enabled, - Id = -6774108720365892680L, - MerchantCenterAccountName = "merchant_center_account_name94680907", - }; - mockGrpcClient.Setup(x => x.GetMerchantCenterLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::MerchantCenterLink responseCallSettings = await client.GetMerchantCenterLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::MerchantCenterLink responseCancellationToken = await client.GetMerchantCenterLinkAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GetMerchantCenterLink() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - }; - gagvr::MerchantCenterLink expectedResponse = new gagvr::MerchantCenterLink - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - Status = gagve::MerchantCenterLinkStatusEnum.Types.MerchantCenterLinkStatus.Enabled, - Id = -6774108720365892680L, - MerchantCenterAccountName = "merchant_center_account_name94680907", - }; - mockGrpcClient.Setup(x => x.GetMerchantCenterLink(request, moq::It.IsAny())).Returns(expectedResponse); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::MerchantCenterLink response = client.GetMerchantCenterLink(request.ResourceName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetMerchantCenterLinkAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - }; - gagvr::MerchantCenterLink expectedResponse = new gagvr::MerchantCenterLink - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - Status = gagve::MerchantCenterLinkStatusEnum.Types.MerchantCenterLinkStatus.Enabled, - Id = -6774108720365892680L, - MerchantCenterAccountName = "merchant_center_account_name94680907", - }; - mockGrpcClient.Setup(x => x.GetMerchantCenterLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::MerchantCenterLink responseCallSettings = await client.GetMerchantCenterLinkAsync(request.ResourceName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::MerchantCenterLink responseCancellationToken = await client.GetMerchantCenterLinkAsync(request.ResourceName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GetMerchantCenterLinkResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - }; - gagvr::MerchantCenterLink expectedResponse = new gagvr::MerchantCenterLink - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - Status = gagve::MerchantCenterLinkStatusEnum.Types.MerchantCenterLinkStatus.Enabled, - Id = -6774108720365892680L, - MerchantCenterAccountName = "merchant_center_account_name94680907", - }; - mockGrpcClient.Setup(x => x.GetMerchantCenterLink(request, moq::It.IsAny())).Returns(expectedResponse); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::MerchantCenterLink response = client.GetMerchantCenterLink(request.ResourceNameAsMerchantCenterLinkName); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GetMerchantCenterLinkResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GetMerchantCenterLinkRequest request = new GetMerchantCenterLinkRequest - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - }; - gagvr::MerchantCenterLink expectedResponse = new gagvr::MerchantCenterLink - { - ResourceNameAsMerchantCenterLinkName = gagvr::MerchantCenterLinkName.FromCustomerMerchantCenter("[CUSTOMER_ID]", "[MERCHANT_CENTER_ID]"), - Status = gagve::MerchantCenterLinkStatusEnum.Types.MerchantCenterLinkStatus.Enabled, - Id = -6774108720365892680L, - MerchantCenterAccountName = "merchant_center_account_name94680907", - }; - mockGrpcClient.Setup(x => x.GetMerchantCenterLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - gagvr::MerchantCenterLink responseCallSettings = await client.GetMerchantCenterLinkAsync(request.ResourceNameAsMerchantCenterLinkName, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - gagvr::MerchantCenterLink responseCancellationToken = await client.GetMerchantCenterLinkAsync(request.ResourceNameAsMerchantCenterLinkName, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateMerchantCenterLinkRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new MerchantCenterLinkOperation(), - ValidateOnly = true, - }; - MutateMerchantCenterLinkResponse expectedResponse = new MutateMerchantCenterLinkResponse - { - Result = new MutateMerchantCenterLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateMerchantCenterLink(request, moq::It.IsAny())).Returns(expectedResponse); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMerchantCenterLinkResponse response = client.MutateMerchantCenterLink(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateMerchantCenterLinkRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new MerchantCenterLinkOperation(), - ValidateOnly = true, - }; - MutateMerchantCenterLinkResponse expectedResponse = new MutateMerchantCenterLinkResponse - { - Result = new MutateMerchantCenterLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateMerchantCenterLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMerchantCenterLinkResponse responseCallSettings = await client.MutateMerchantCenterLinkAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateMerchantCenterLinkResponse responseCancellationToken = await client.MutateMerchantCenterLinkAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateMerchantCenterLink() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new MerchantCenterLinkOperation(), - }; - MutateMerchantCenterLinkResponse expectedResponse = new MutateMerchantCenterLinkResponse - { - Result = new MutateMerchantCenterLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateMerchantCenterLink(request, moq::It.IsAny())).Returns(expectedResponse); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMerchantCenterLinkResponse response = client.MutateMerchantCenterLink(request.CustomerId, request.Operation); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateMerchantCenterLinkAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateMerchantCenterLinkRequest request = new MutateMerchantCenterLinkRequest - { - CustomerId = "customer_id3b3724cb", - Operation = new MerchantCenterLinkOperation(), - }; - MutateMerchantCenterLinkResponse expectedResponse = new MutateMerchantCenterLinkResponse - { - Result = new MutateMerchantCenterLinkResult(), - }; - mockGrpcClient.Setup(x => x.MutateMerchantCenterLinkAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - MerchantCenterLinkServiceClient client = new MerchantCenterLinkServiceClientImpl(mockGrpcClient.Object, null, null); - MutateMerchantCenterLinkResponse responseCallSettings = await client.MutateMerchantCenterLinkAsync(request.CustomerId, request.Operation, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateMerchantCenterLinkResponse responseCancellationToken = await client.MutateMerchantCenterLinkAsync(request.CustomerId, request.Operation, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/OfflineUserDataJobServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/OfflineUserDataJobServiceClientTest.g.cs deleted file mode 100755 index 06a2f2985..000000000 --- a/Google.Ads.GoogleAds/tests/V12/OfflineUserDataJobServiceClientTest.g.cs +++ /dev/null @@ -1,288 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using lro = Google.LongRunning; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedOfflineUserDataJobServiceClientTest - { - [Category("Autogenerated")][Test] - public void CreateOfflineUserDataJobRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest - { - CustomerId = "customer_id3b3724cb", - Job = new gagvr::OfflineUserDataJob(), - ValidateOnly = true, - EnableMatchRateRangePreview = false, - }; - CreateOfflineUserDataJobResponse expectedResponse = new CreateOfflineUserDataJobResponse - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateOfflineUserDataJob(request, moq::It.IsAny())).Returns(expectedResponse); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - CreateOfflineUserDataJobResponse response = client.CreateOfflineUserDataJob(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task CreateOfflineUserDataJobRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest - { - CustomerId = "customer_id3b3724cb", - Job = new gagvr::OfflineUserDataJob(), - ValidateOnly = true, - EnableMatchRateRangePreview = false, - }; - CreateOfflineUserDataJobResponse expectedResponse = new CreateOfflineUserDataJobResponse - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateOfflineUserDataJobAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - CreateOfflineUserDataJobResponse responseCallSettings = await client.CreateOfflineUserDataJobAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - CreateOfflineUserDataJobResponse responseCancellationToken = await client.CreateOfflineUserDataJobAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void CreateOfflineUserDataJob() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest - { - CustomerId = "customer_id3b3724cb", - Job = new gagvr::OfflineUserDataJob(), - }; - CreateOfflineUserDataJobResponse expectedResponse = new CreateOfflineUserDataJobResponse - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateOfflineUserDataJob(request, moq::It.IsAny())).Returns(expectedResponse); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - CreateOfflineUserDataJobResponse response = client.CreateOfflineUserDataJob(request.CustomerId, request.Job); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task CreateOfflineUserDataJobAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - CreateOfflineUserDataJobRequest request = new CreateOfflineUserDataJobRequest - { - CustomerId = "customer_id3b3724cb", - Job = new gagvr::OfflineUserDataJob(), - }; - CreateOfflineUserDataJobResponse expectedResponse = new CreateOfflineUserDataJobResponse - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - }; - mockGrpcClient.Setup(x => x.CreateOfflineUserDataJobAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - CreateOfflineUserDataJobResponse responseCallSettings = await client.CreateOfflineUserDataJobAsync(request.CustomerId, request.Job, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - CreateOfflineUserDataJobResponse responseCancellationToken = await client.CreateOfflineUserDataJobAsync(request.CustomerId, request.Job, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddOfflineUserDataJobOperationsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - Operations = - { - new OfflineUserDataJobOperation(), - }, - EnablePartialFailure = true, - ValidateOnly = true, - EnableWarnings = true, - }; - AddOfflineUserDataJobOperationsResponse expectedResponse = new AddOfflineUserDataJobOperationsResponse - { - PartialFailureError = new gr::Status(), - Warning = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.AddOfflineUserDataJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddOfflineUserDataJobOperationsResponse response = client.AddOfflineUserDataJobOperations(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddOfflineUserDataJobOperationsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - Operations = - { - new OfflineUserDataJobOperation(), - }, - EnablePartialFailure = true, - ValidateOnly = true, - EnableWarnings = true, - }; - AddOfflineUserDataJobOperationsResponse expectedResponse = new AddOfflineUserDataJobOperationsResponse - { - PartialFailureError = new gr::Status(), - Warning = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.AddOfflineUserDataJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddOfflineUserDataJobOperationsResponse responseCallSettings = await client.AddOfflineUserDataJobOperationsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddOfflineUserDataJobOperationsResponse responseCancellationToken = await client.AddOfflineUserDataJobOperationsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddOfflineUserDataJobOperations() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - Operations = - { - new OfflineUserDataJobOperation(), - }, - }; - AddOfflineUserDataJobOperationsResponse expectedResponse = new AddOfflineUserDataJobOperationsResponse - { - PartialFailureError = new gr::Status(), - Warning = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.AddOfflineUserDataJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddOfflineUserDataJobOperationsResponse response = client.AddOfflineUserDataJobOperations(request.ResourceName, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddOfflineUserDataJobOperationsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - Operations = - { - new OfflineUserDataJobOperation(), - }, - }; - AddOfflineUserDataJobOperationsResponse expectedResponse = new AddOfflineUserDataJobOperationsResponse - { - PartialFailureError = new gr::Status(), - Warning = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.AddOfflineUserDataJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddOfflineUserDataJobOperationsResponse responseCallSettings = await client.AddOfflineUserDataJobOperationsAsync(request.ResourceName, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddOfflineUserDataJobOperationsResponse responseCancellationToken = await client.AddOfflineUserDataJobOperationsAsync(request.ResourceName, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void AddOfflineUserDataJobOperationsResourceNames() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - Operations = - { - new OfflineUserDataJobOperation(), - }, - }; - AddOfflineUserDataJobOperationsResponse expectedResponse = new AddOfflineUserDataJobOperationsResponse - { - PartialFailureError = new gr::Status(), - Warning = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.AddOfflineUserDataJobOperations(request, moq::It.IsAny())).Returns(expectedResponse); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddOfflineUserDataJobOperationsResponse response = client.AddOfflineUserDataJobOperations(request.ResourceNameAsOfflineUserDataJobName, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task AddOfflineUserDataJobOperationsResourceNamesAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - mockGrpcClient.Setup(x => x.CreateOperationsClient()).Returns(new moq::Mock().Object); - AddOfflineUserDataJobOperationsRequest request = new AddOfflineUserDataJobOperationsRequest - { - ResourceNameAsOfflineUserDataJobName = gagvr::OfflineUserDataJobName.FromCustomerOfflineUserDataUpdate("[CUSTOMER_ID]", "[OFFLINE_USER_DATA_UPDATE_ID]"), - Operations = - { - new OfflineUserDataJobOperation(), - }, - }; - AddOfflineUserDataJobOperationsResponse expectedResponse = new AddOfflineUserDataJobOperationsResponse - { - PartialFailureError = new gr::Status(), - Warning = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.AddOfflineUserDataJobOperationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - OfflineUserDataJobServiceClient client = new OfflineUserDataJobServiceClientImpl(mockGrpcClient.Object, null, null); - AddOfflineUserDataJobOperationsResponse responseCallSettings = await client.AddOfflineUserDataJobOperationsAsync(request.ResourceNameAsOfflineUserDataJobName, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - AddOfflineUserDataJobOperationsResponse responseCancellationToken = await client.AddOfflineUserDataJobOperationsAsync(request.ResourceNameAsOfflineUserDataJobName, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/PaymentsAccountServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/PaymentsAccountServiceClientTest.g.cs deleted file mode 100755 index 68ea74bec..000000000 --- a/Google.Ads.GoogleAds/tests/V12/PaymentsAccountServiceClientTest.g.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedPaymentsAccountServiceClientTest - { - [Category("Autogenerated")][Test] - public void ListPaymentsAccountsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPaymentsAccountsRequest request = new ListPaymentsAccountsRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListPaymentsAccountsResponse expectedResponse = new ListPaymentsAccountsResponse - { - PaymentsAccounts = - { - new gagvr::PaymentsAccount(), - }, - }; - mockGrpcClient.Setup(x => x.ListPaymentsAccounts(request, moq::It.IsAny())).Returns(expectedResponse); - PaymentsAccountServiceClient client = new PaymentsAccountServiceClientImpl(mockGrpcClient.Object, null, null); - ListPaymentsAccountsResponse response = client.ListPaymentsAccounts(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListPaymentsAccountsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPaymentsAccountsRequest request = new ListPaymentsAccountsRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListPaymentsAccountsResponse expectedResponse = new ListPaymentsAccountsResponse - { - PaymentsAccounts = - { - new gagvr::PaymentsAccount(), - }, - }; - mockGrpcClient.Setup(x => x.ListPaymentsAccountsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - PaymentsAccountServiceClient client = new PaymentsAccountServiceClientImpl(mockGrpcClient.Object, null, null); - ListPaymentsAccountsResponse responseCallSettings = await client.ListPaymentsAccountsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListPaymentsAccountsResponse responseCancellationToken = await client.ListPaymentsAccountsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListPaymentsAccounts() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPaymentsAccountsRequest request = new ListPaymentsAccountsRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListPaymentsAccountsResponse expectedResponse = new ListPaymentsAccountsResponse - { - PaymentsAccounts = - { - new gagvr::PaymentsAccount(), - }, - }; - mockGrpcClient.Setup(x => x.ListPaymentsAccounts(request, moq::It.IsAny())).Returns(expectedResponse); - PaymentsAccountServiceClient client = new PaymentsAccountServiceClientImpl(mockGrpcClient.Object, null, null); - ListPaymentsAccountsResponse response = client.ListPaymentsAccounts(request.CustomerId); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListPaymentsAccountsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPaymentsAccountsRequest request = new ListPaymentsAccountsRequest - { - CustomerId = "customer_id3b3724cb", - }; - ListPaymentsAccountsResponse expectedResponse = new ListPaymentsAccountsResponse - { - PaymentsAccounts = - { - new gagvr::PaymentsAccount(), - }, - }; - mockGrpcClient.Setup(x => x.ListPaymentsAccountsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - PaymentsAccountServiceClient client = new PaymentsAccountServiceClientImpl(mockGrpcClient.Object, null, null); - ListPaymentsAccountsResponse responseCallSettings = await client.ListPaymentsAccountsAsync(request.CustomerId, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListPaymentsAccountsResponse responseCancellationToken = await client.ListPaymentsAccountsAsync(request.CustomerId, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ReachPlanServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ReachPlanServiceClientTest.g.cs deleted file mode 100755 index 2dd3d37cb..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ReachPlanServiceClientTest.g.cs +++ /dev/null @@ -1,283 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedReachPlanServiceClientTest - { - [Category("Autogenerated")][Test] - public void ListPlannableLocationsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPlannableLocationsRequest request = new ListPlannableLocationsRequest { }; - ListPlannableLocationsResponse expectedResponse = new ListPlannableLocationsResponse - { - PlannableLocations = - { - new PlannableLocation(), - }, - }; - mockGrpcClient.Setup(x => x.ListPlannableLocations(request, moq::It.IsAny())).Returns(expectedResponse); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - ListPlannableLocationsResponse response = client.ListPlannableLocations(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListPlannableLocationsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPlannableLocationsRequest request = new ListPlannableLocationsRequest { }; - ListPlannableLocationsResponse expectedResponse = new ListPlannableLocationsResponse - { - PlannableLocations = - { - new PlannableLocation(), - }, - }; - mockGrpcClient.Setup(x => x.ListPlannableLocationsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - ListPlannableLocationsResponse responseCallSettings = await client.ListPlannableLocationsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListPlannableLocationsResponse responseCancellationToken = await client.ListPlannableLocationsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListPlannableProductsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPlannableProductsRequest request = new ListPlannableProductsRequest - { - PlannableLocationId = "plannable_location_idbae428fa", - }; - ListPlannableProductsResponse expectedResponse = new ListPlannableProductsResponse - { - ProductMetadata = - { - new ProductMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListPlannableProducts(request, moq::It.IsAny())).Returns(expectedResponse); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - ListPlannableProductsResponse response = client.ListPlannableProducts(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListPlannableProductsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPlannableProductsRequest request = new ListPlannableProductsRequest - { - PlannableLocationId = "plannable_location_idbae428fa", - }; - ListPlannableProductsResponse expectedResponse = new ListPlannableProductsResponse - { - ProductMetadata = - { - new ProductMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListPlannableProductsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - ListPlannableProductsResponse responseCallSettings = await client.ListPlannableProductsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListPlannableProductsResponse responseCancellationToken = await client.ListPlannableProductsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ListPlannableProducts() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPlannableProductsRequest request = new ListPlannableProductsRequest - { - PlannableLocationId = "plannable_location_idbae428fa", - }; - ListPlannableProductsResponse expectedResponse = new ListPlannableProductsResponse - { - ProductMetadata = - { - new ProductMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListPlannableProducts(request, moq::It.IsAny())).Returns(expectedResponse); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - ListPlannableProductsResponse response = client.ListPlannableProducts(request.PlannableLocationId); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ListPlannableProductsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ListPlannableProductsRequest request = new ListPlannableProductsRequest - { - PlannableLocationId = "plannable_location_idbae428fa", - }; - ListPlannableProductsResponse expectedResponse = new ListPlannableProductsResponse - { - ProductMetadata = - { - new ProductMetadata(), - }, - }; - mockGrpcClient.Setup(x => x.ListPlannableProductsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - ListPlannableProductsResponse responseCallSettings = await client.ListPlannableProductsAsync(request.PlannableLocationId, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ListPlannableProductsResponse responseCancellationToken = await client.ListPlannableProductsAsync(request.PlannableLocationId, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateReachForecastRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateReachForecastRequest request = new GenerateReachForecastRequest - { - CustomerId = "customer_id3b3724cb", - CampaignDuration = new CampaignDuration(), - Targeting = new Targeting(), - PlannedProducts = - { - new PlannedProduct(), - }, - CookieFrequencyCapSetting = new FrequencyCap(), - CurrencyCode = "currency_code7f81e352", - CookieFrequencyCap = 1624044206, - MinEffectiveFrequency = -519821093, - EffectiveFrequencyLimit = new EffectiveFrequencyLimit(), - ForecastMetricOptions = new ForecastMetricOptions(), - CustomerReachGroup = "customer_reach_groupb748383b", - }; - GenerateReachForecastResponse expectedResponse = new GenerateReachForecastResponse - { - OnTargetAudienceMetrics = new OnTargetAudienceMetrics(), - ReachCurve = new ReachCurve(), - }; - mockGrpcClient.Setup(x => x.GenerateReachForecast(request, moq::It.IsAny())).Returns(expectedResponse); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateReachForecastResponse response = client.GenerateReachForecast(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateReachForecastRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateReachForecastRequest request = new GenerateReachForecastRequest - { - CustomerId = "customer_id3b3724cb", - CampaignDuration = new CampaignDuration(), - Targeting = new Targeting(), - PlannedProducts = - { - new PlannedProduct(), - }, - CookieFrequencyCapSetting = new FrequencyCap(), - CurrencyCode = "currency_code7f81e352", - CookieFrequencyCap = 1624044206, - MinEffectiveFrequency = -519821093, - EffectiveFrequencyLimit = new EffectiveFrequencyLimit(), - ForecastMetricOptions = new ForecastMetricOptions(), - CustomerReachGroup = "customer_reach_groupb748383b", - }; - GenerateReachForecastResponse expectedResponse = new GenerateReachForecastResponse - { - OnTargetAudienceMetrics = new OnTargetAudienceMetrics(), - ReachCurve = new ReachCurve(), - }; - mockGrpcClient.Setup(x => x.GenerateReachForecastAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateReachForecastResponse responseCallSettings = await client.GenerateReachForecastAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateReachForecastResponse responseCancellationToken = await client.GenerateReachForecastAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void GenerateReachForecast() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateReachForecastRequest request = new GenerateReachForecastRequest - { - CustomerId = "customer_id3b3724cb", - CampaignDuration = new CampaignDuration(), - PlannedProducts = - { - new PlannedProduct(), - }, - }; - GenerateReachForecastResponse expectedResponse = new GenerateReachForecastResponse - { - OnTargetAudienceMetrics = new OnTargetAudienceMetrics(), - ReachCurve = new ReachCurve(), - }; - mockGrpcClient.Setup(x => x.GenerateReachForecast(request, moq::It.IsAny())).Returns(expectedResponse); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateReachForecastResponse response = client.GenerateReachForecast(request.CustomerId, request.CampaignDuration, request.PlannedProducts); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task GenerateReachForecastAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - GenerateReachForecastRequest request = new GenerateReachForecastRequest - { - CustomerId = "customer_id3b3724cb", - CampaignDuration = new CampaignDuration(), - PlannedProducts = - { - new PlannedProduct(), - }, - }; - GenerateReachForecastResponse expectedResponse = new GenerateReachForecastResponse - { - OnTargetAudienceMetrics = new OnTargetAudienceMetrics(), - ReachCurve = new ReachCurve(), - }; - mockGrpcClient.Setup(x => x.GenerateReachForecastAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ReachPlanServiceClient client = new ReachPlanServiceClientImpl(mockGrpcClient.Object, null, null); - GenerateReachForecastResponse responseCallSettings = await client.GenerateReachForecastAsync(request.CustomerId, request.CampaignDuration, request.PlannedProducts, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - GenerateReachForecastResponse responseCancellationToken = await client.GenerateReachForecastAsync(request.CustomerId, request.CampaignDuration, request.PlannedProducts, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/RecommendationServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/RecommendationServiceClientTest.g.cs deleted file mode 100755 index b18c9038f..000000000 --- a/Google.Ads.GoogleAds/tests/V12/RecommendationServiceClientTest.g.cs +++ /dev/null @@ -1,260 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedRecommendationServiceClientTest - { - [Category("Autogenerated")][Test] - public void ApplyRecommendationRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ApplyRecommendationRequest request = new ApplyRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ApplyRecommendationOperation(), - }, - PartialFailure = false, - }; - ApplyRecommendationResponse expectedResponse = new ApplyRecommendationResponse - { - Results = - { - new ApplyRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.ApplyRecommendation(request, moq::It.IsAny())).Returns(expectedResponse); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - ApplyRecommendationResponse response = client.ApplyRecommendation(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ApplyRecommendationRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ApplyRecommendationRequest request = new ApplyRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ApplyRecommendationOperation(), - }, - PartialFailure = false, - }; - ApplyRecommendationResponse expectedResponse = new ApplyRecommendationResponse - { - Results = - { - new ApplyRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.ApplyRecommendationAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - ApplyRecommendationResponse responseCallSettings = await client.ApplyRecommendationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ApplyRecommendationResponse responseCancellationToken = await client.ApplyRecommendationAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void ApplyRecommendation() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ApplyRecommendationRequest request = new ApplyRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ApplyRecommendationOperation(), - }, - }; - ApplyRecommendationResponse expectedResponse = new ApplyRecommendationResponse - { - Results = - { - new ApplyRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.ApplyRecommendation(request, moq::It.IsAny())).Returns(expectedResponse); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - ApplyRecommendationResponse response = client.ApplyRecommendation(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task ApplyRecommendationAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - ApplyRecommendationRequest request = new ApplyRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new ApplyRecommendationOperation(), - }, - }; - ApplyRecommendationResponse expectedResponse = new ApplyRecommendationResponse - { - Results = - { - new ApplyRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.ApplyRecommendationAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - ApplyRecommendationResponse responseCallSettings = await client.ApplyRecommendationAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - ApplyRecommendationResponse responseCancellationToken = await client.ApplyRecommendationAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void DismissRecommendationRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - DismissRecommendationRequest request = new DismissRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - PartialFailure = false, - Operations = - { - new DismissRecommendationRequest.Types.DismissRecommendationOperation(), - }, - }; - DismissRecommendationResponse expectedResponse = new DismissRecommendationResponse - { - Results = - { - new DismissRecommendationResponse.Types.DismissRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.DismissRecommendation(request, moq::It.IsAny())).Returns(expectedResponse); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - DismissRecommendationResponse response = client.DismissRecommendation(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task DismissRecommendationRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - DismissRecommendationRequest request = new DismissRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - PartialFailure = false, - Operations = - { - new DismissRecommendationRequest.Types.DismissRecommendationOperation(), - }, - }; - DismissRecommendationResponse expectedResponse = new DismissRecommendationResponse - { - Results = - { - new DismissRecommendationResponse.Types.DismissRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.DismissRecommendationAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - DismissRecommendationResponse responseCallSettings = await client.DismissRecommendationAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - DismissRecommendationResponse responseCancellationToken = await client.DismissRecommendationAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void DismissRecommendation() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - DismissRecommendationRequest request = new DismissRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new DismissRecommendationRequest.Types.DismissRecommendationOperation(), - }, - }; - DismissRecommendationResponse expectedResponse = new DismissRecommendationResponse - { - Results = - { - new DismissRecommendationResponse.Types.DismissRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.DismissRecommendation(request, moq::It.IsAny())).Returns(expectedResponse); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - DismissRecommendationResponse response = client.DismissRecommendation(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task DismissRecommendationAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - DismissRecommendationRequest request = new DismissRecommendationRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new DismissRecommendationRequest.Types.DismissRecommendationOperation(), - }, - }; - DismissRecommendationResponse expectedResponse = new DismissRecommendationResponse - { - Results = - { - new DismissRecommendationResponse.Types.DismissRecommendationResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.DismissRecommendationAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - RecommendationServiceClient client = new RecommendationServiceClientImpl(mockGrpcClient.Object, null, null); - DismissRecommendationResponse responseCallSettings = await client.DismissRecommendationAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - DismissRecommendationResponse responseCancellationToken = await client.DismissRecommendationAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/RemarketingActionServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/RemarketingActionServiceClientTest.g.cs deleted file mode 100755 index 2e7f81d22..000000000 --- a/Google.Ads.GoogleAds/tests/V12/RemarketingActionServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedRemarketingActionServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateRemarketingActionsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateRemarketingActionsRequest request = new MutateRemarketingActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new RemarketingActionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateRemarketingActionsResponse expectedResponse = new MutateRemarketingActionsResponse - { - Results = - { - new MutateRemarketingActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateRemarketingActions(request, moq::It.IsAny())).Returns(expectedResponse); - RemarketingActionServiceClient client = new RemarketingActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateRemarketingActionsResponse response = client.MutateRemarketingActions(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateRemarketingActionsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateRemarketingActionsRequest request = new MutateRemarketingActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new RemarketingActionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateRemarketingActionsResponse expectedResponse = new MutateRemarketingActionsResponse - { - Results = - { - new MutateRemarketingActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateRemarketingActionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - RemarketingActionServiceClient client = new RemarketingActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateRemarketingActionsResponse responseCallSettings = await client.MutateRemarketingActionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateRemarketingActionsResponse responseCancellationToken = await client.MutateRemarketingActionsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateRemarketingActions() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateRemarketingActionsRequest request = new MutateRemarketingActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new RemarketingActionOperation(), - }, - }; - MutateRemarketingActionsResponse expectedResponse = new MutateRemarketingActionsResponse - { - Results = - { - new MutateRemarketingActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateRemarketingActions(request, moq::It.IsAny())).Returns(expectedResponse); - RemarketingActionServiceClient client = new RemarketingActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateRemarketingActionsResponse response = client.MutateRemarketingActions(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateRemarketingActionsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateRemarketingActionsRequest request = new MutateRemarketingActionsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new RemarketingActionOperation(), - }, - }; - MutateRemarketingActionsResponse expectedResponse = new MutateRemarketingActionsResponse - { - Results = - { - new MutateRemarketingActionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateRemarketingActionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - RemarketingActionServiceClient client = new RemarketingActionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateRemarketingActionsResponse responseCallSettings = await client.MutateRemarketingActionsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateRemarketingActionsResponse responseCancellationToken = await client.MutateRemarketingActionsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/SharedCriterionServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/SharedCriterionServiceClientTest.g.cs deleted file mode 100755 index 65db7c84b..000000000 --- a/Google.Ads.GoogleAds/tests/V12/SharedCriterionServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedSharedCriterionServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateSharedCriteriaRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateSharedCriteriaResponse expectedResponse = new MutateSharedCriteriaResponse - { - Results = - { - new MutateSharedCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - SharedCriterionServiceClient client = new SharedCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedCriteriaResponse response = client.MutateSharedCriteria(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateSharedCriteriaRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedCriterionOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateSharedCriteriaResponse expectedResponse = new MutateSharedCriteriaResponse - { - Results = - { - new MutateSharedCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SharedCriterionServiceClient client = new SharedCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedCriteriaResponse responseCallSettings = await client.MutateSharedCriteriaAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateSharedCriteriaResponse responseCancellationToken = await client.MutateSharedCriteriaAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateSharedCriteria() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedCriterionOperation(), - }, - }; - MutateSharedCriteriaResponse expectedResponse = new MutateSharedCriteriaResponse - { - Results = - { - new MutateSharedCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedCriteria(request, moq::It.IsAny())).Returns(expectedResponse); - SharedCriterionServiceClient client = new SharedCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedCriteriaResponse response = client.MutateSharedCriteria(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateSharedCriteriaAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedCriteriaRequest request = new MutateSharedCriteriaRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedCriterionOperation(), - }, - }; - MutateSharedCriteriaResponse expectedResponse = new MutateSharedCriteriaResponse - { - Results = - { - new MutateSharedCriterionResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedCriteriaAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SharedCriterionServiceClient client = new SharedCriterionServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedCriteriaResponse responseCallSettings = await client.MutateSharedCriteriaAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateSharedCriteriaResponse responseCancellationToken = await client.MutateSharedCriteriaAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/SharedSetServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/SharedSetServiceClientTest.g.cs deleted file mode 100755 index 4c8a9fdb3..000000000 --- a/Google.Ads.GoogleAds/tests/V12/SharedSetServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedSharedSetServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateSharedSetsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedSetsRequest request = new MutateSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateSharedSetsResponse expectedResponse = new MutateSharedSetsResponse - { - Results = - { - new MutateSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedSets(request, moq::It.IsAny())).Returns(expectedResponse); - SharedSetServiceClient client = new SharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedSetsResponse response = client.MutateSharedSets(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateSharedSetsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedSetsRequest request = new MutateSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedSetOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateSharedSetsResponse expectedResponse = new MutateSharedSetsResponse - { - Results = - { - new MutateSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SharedSetServiceClient client = new SharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedSetsResponse responseCallSettings = await client.MutateSharedSetsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateSharedSetsResponse responseCancellationToken = await client.MutateSharedSetsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateSharedSets() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedSetsRequest request = new MutateSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedSetOperation(), - }, - }; - MutateSharedSetsResponse expectedResponse = new MutateSharedSetsResponse - { - Results = - { - new MutateSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedSets(request, moq::It.IsAny())).Returns(expectedResponse); - SharedSetServiceClient client = new SharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedSetsResponse response = client.MutateSharedSets(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateSharedSetsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSharedSetsRequest request = new MutateSharedSetsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SharedSetOperation(), - }, - }; - MutateSharedSetsResponse expectedResponse = new MutateSharedSetsResponse - { - Results = - { - new MutateSharedSetResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateSharedSetsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SharedSetServiceClient client = new SharedSetServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSharedSetsResponse responseCallSettings = await client.MutateSharedSetsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateSharedSetsResponse responseCancellationToken = await client.MutateSharedSetsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/SmartCampaignSettingServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/SmartCampaignSettingServiceClientTest.g.cs deleted file mode 100755 index 2070660f7..000000000 --- a/Google.Ads.GoogleAds/tests/V12/SmartCampaignSettingServiceClientTest.g.cs +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagve = Google.Ads.GoogleAds.V12.Enums; -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedSmartCampaignSettingServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateSmartCampaignSettingsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSmartCampaignSettingsRequest request = new MutateSmartCampaignSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SmartCampaignSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateSmartCampaignSettingsResponse expectedResponse = new MutateSmartCampaignSettingsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateSmartCampaignSettingResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateSmartCampaignSettings(request, moq::It.IsAny())).Returns(expectedResponse); - SmartCampaignSettingServiceClient client = new SmartCampaignSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSmartCampaignSettingsResponse response = client.MutateSmartCampaignSettings(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateSmartCampaignSettingsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSmartCampaignSettingsRequest request = new MutateSmartCampaignSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SmartCampaignSettingOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - ResponseContentType = gagve::ResponseContentTypeEnum.Types.ResponseContentType.ResourceNameOnly, - }; - MutateSmartCampaignSettingsResponse expectedResponse = new MutateSmartCampaignSettingsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateSmartCampaignSettingResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateSmartCampaignSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SmartCampaignSettingServiceClient client = new SmartCampaignSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSmartCampaignSettingsResponse responseCallSettings = await client.MutateSmartCampaignSettingsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateSmartCampaignSettingsResponse responseCancellationToken = await client.MutateSmartCampaignSettingsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateSmartCampaignSettings() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSmartCampaignSettingsRequest request = new MutateSmartCampaignSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SmartCampaignSettingOperation(), - }, - }; - MutateSmartCampaignSettingsResponse expectedResponse = new MutateSmartCampaignSettingsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateSmartCampaignSettingResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateSmartCampaignSettings(request, moq::It.IsAny())).Returns(expectedResponse); - SmartCampaignSettingServiceClient client = new SmartCampaignSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSmartCampaignSettingsResponse response = client.MutateSmartCampaignSettings(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateSmartCampaignSettingsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateSmartCampaignSettingsRequest request = new MutateSmartCampaignSettingsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new SmartCampaignSettingOperation(), - }, - }; - MutateSmartCampaignSettingsResponse expectedResponse = new MutateSmartCampaignSettingsResponse - { - PartialFailureError = new gr::Status(), - Results = - { - new MutateSmartCampaignSettingResult(), - }, - }; - mockGrpcClient.Setup(x => x.MutateSmartCampaignSettingsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SmartCampaignSettingServiceClient client = new SmartCampaignSettingServiceClientImpl(mockGrpcClient.Object, null, null); - MutateSmartCampaignSettingsResponse responseCallSettings = await client.MutateSmartCampaignSettingsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateSmartCampaignSettingsResponse responseCancellationToken = await client.MutateSmartCampaignSettingsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/SmartCampaignSuggestServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/SmartCampaignSuggestServiceClientTest.g.cs deleted file mode 100755 index ab2bbcd5c..000000000 --- a/Google.Ads.GoogleAds/tests/V12/SmartCampaignSuggestServiceClientTest.g.cs +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvc = Google.Ads.GoogleAds.V12.Common; -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedSmartCampaignSuggestServiceClientTest - { - [Category("Autogenerated")][Test] - public void SuggestSmartCampaignBudgetOptionsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestSmartCampaignBudgetOptionsRequest request = new SuggestSmartCampaignBudgetOptionsRequest - { - CustomerId = "customer_id3b3724cb", - CampaignAsCampaignName = gagvr::CampaignName.FromCustomerCampaign("[CUSTOMER_ID]", "[CAMPAIGN_ID]"), - SuggestionInfo = new SmartCampaignSuggestionInfo(), - }; - SuggestSmartCampaignBudgetOptionsResponse expectedResponse = new SuggestSmartCampaignBudgetOptionsResponse - { - Low = new SuggestSmartCampaignBudgetOptionsResponse.Types.BudgetOption(), - Recommended = new SuggestSmartCampaignBudgetOptionsResponse.Types.BudgetOption(), - High = new SuggestSmartCampaignBudgetOptionsResponse.Types.BudgetOption(), - }; - mockGrpcClient.Setup(x => x.SuggestSmartCampaignBudgetOptions(request, moq::It.IsAny())).Returns(expectedResponse); - SmartCampaignSuggestServiceClient client = new SmartCampaignSuggestServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestSmartCampaignBudgetOptionsResponse response = client.SuggestSmartCampaignBudgetOptions(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task SuggestSmartCampaignBudgetOptionsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestSmartCampaignBudgetOptionsRequest request = new SuggestSmartCampaignBudgetOptionsRequest - { - CustomerId = "customer_id3b3724cb", - CampaignAsCampaignName = gagvr::CampaignName.FromCustomerCampaign("[CUSTOMER_ID]", "[CAMPAIGN_ID]"), - SuggestionInfo = new SmartCampaignSuggestionInfo(), - }; - SuggestSmartCampaignBudgetOptionsResponse expectedResponse = new SuggestSmartCampaignBudgetOptionsResponse - { - Low = new SuggestSmartCampaignBudgetOptionsResponse.Types.BudgetOption(), - Recommended = new SuggestSmartCampaignBudgetOptionsResponse.Types.BudgetOption(), - High = new SuggestSmartCampaignBudgetOptionsResponse.Types.BudgetOption(), - }; - mockGrpcClient.Setup(x => x.SuggestSmartCampaignBudgetOptionsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SmartCampaignSuggestServiceClient client = new SmartCampaignSuggestServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestSmartCampaignBudgetOptionsResponse responseCallSettings = await client.SuggestSmartCampaignBudgetOptionsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - SuggestSmartCampaignBudgetOptionsResponse responseCancellationToken = await client.SuggestSmartCampaignBudgetOptionsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void SuggestSmartCampaignAdRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestSmartCampaignAdRequest request = new SuggestSmartCampaignAdRequest - { - CustomerId = "customer_id3b3724cb", - SuggestionInfo = new SmartCampaignSuggestionInfo(), - }; - SuggestSmartCampaignAdResponse expectedResponse = new SuggestSmartCampaignAdResponse - { - AdInfo = new gagvc::SmartCampaignAdInfo(), - }; - mockGrpcClient.Setup(x => x.SuggestSmartCampaignAd(request, moq::It.IsAny())).Returns(expectedResponse); - SmartCampaignSuggestServiceClient client = new SmartCampaignSuggestServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestSmartCampaignAdResponse response = client.SuggestSmartCampaignAd(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task SuggestSmartCampaignAdRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestSmartCampaignAdRequest request = new SuggestSmartCampaignAdRequest - { - CustomerId = "customer_id3b3724cb", - SuggestionInfo = new SmartCampaignSuggestionInfo(), - }; - SuggestSmartCampaignAdResponse expectedResponse = new SuggestSmartCampaignAdResponse - { - AdInfo = new gagvc::SmartCampaignAdInfo(), - }; - mockGrpcClient.Setup(x => x.SuggestSmartCampaignAdAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SmartCampaignSuggestServiceClient client = new SmartCampaignSuggestServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestSmartCampaignAdResponse responseCallSettings = await client.SuggestSmartCampaignAdAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - SuggestSmartCampaignAdResponse responseCancellationToken = await client.SuggestSmartCampaignAdAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void SuggestKeywordThemesRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestKeywordThemesRequest request = new SuggestKeywordThemesRequest - { - CustomerId = "customer_id3b3724cb", - SuggestionInfo = new SmartCampaignSuggestionInfo(), - }; - SuggestKeywordThemesResponse expectedResponse = new SuggestKeywordThemesResponse - { - KeywordThemes = - { - new SuggestKeywordThemesResponse.Types.KeywordTheme(), - }, - }; - mockGrpcClient.Setup(x => x.SuggestKeywordThemes(request, moq::It.IsAny())).Returns(expectedResponse); - SmartCampaignSuggestServiceClient client = new SmartCampaignSuggestServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestKeywordThemesResponse response = client.SuggestKeywordThemes(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task SuggestKeywordThemesRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - SuggestKeywordThemesRequest request = new SuggestKeywordThemesRequest - { - CustomerId = "customer_id3b3724cb", - SuggestionInfo = new SmartCampaignSuggestionInfo(), - }; - SuggestKeywordThemesResponse expectedResponse = new SuggestKeywordThemesResponse - { - KeywordThemes = - { - new SuggestKeywordThemesResponse.Types.KeywordTheme(), - }, - }; - mockGrpcClient.Setup(x => x.SuggestKeywordThemesAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - SmartCampaignSuggestServiceClient client = new SmartCampaignSuggestServiceClientImpl(mockGrpcClient.Object, null, null); - SuggestKeywordThemesResponse responseCallSettings = await client.SuggestKeywordThemesAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - SuggestKeywordThemesResponse responseCancellationToken = await client.SuggestKeywordThemesAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/ThirdPartyAppAnalyticsLinkServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/ThirdPartyAppAnalyticsLinkServiceClientTest.g.cs deleted file mode 100755 index d551d28a3..000000000 --- a/Google.Ads.GoogleAds/tests/V12/ThirdPartyAppAnalyticsLinkServiceClientTest.g.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvr = Google.Ads.GoogleAds.V12.Resources; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedThirdPartyAppAnalyticsLinkServiceClientTest - { - [Category("Autogenerated")][Test] - public void RegenerateShareableLinkIdRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - RegenerateShareableLinkIdRequest request = new RegenerateShareableLinkIdRequest - { - ResourceNameAsThirdPartyAppAnalyticsLinkName = gagvr::ThirdPartyAppAnalyticsLinkName.FromCustomerCustomerLink("[CUSTOMER_ID]", "[CUSTOMER_LINK_ID]"), - }; - RegenerateShareableLinkIdResponse expectedResponse = new RegenerateShareableLinkIdResponse { }; - mockGrpcClient.Setup(x => x.RegenerateShareableLinkId(request, moq::It.IsAny())).Returns(expectedResponse); - ThirdPartyAppAnalyticsLinkServiceClient client = new ThirdPartyAppAnalyticsLinkServiceClientImpl(mockGrpcClient.Object, null, null); - RegenerateShareableLinkIdResponse response = client.RegenerateShareableLinkId(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task RegenerateShareableLinkIdRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - RegenerateShareableLinkIdRequest request = new RegenerateShareableLinkIdRequest - { - ResourceNameAsThirdPartyAppAnalyticsLinkName = gagvr::ThirdPartyAppAnalyticsLinkName.FromCustomerCustomerLink("[CUSTOMER_ID]", "[CUSTOMER_LINK_ID]"), - }; - RegenerateShareableLinkIdResponse expectedResponse = new RegenerateShareableLinkIdResponse { }; - mockGrpcClient.Setup(x => x.RegenerateShareableLinkIdAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - ThirdPartyAppAnalyticsLinkServiceClient client = new ThirdPartyAppAnalyticsLinkServiceClientImpl(mockGrpcClient.Object, null, null); - RegenerateShareableLinkIdResponse responseCallSettings = await client.RegenerateShareableLinkIdAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - RegenerateShareableLinkIdResponse responseCancellationToken = await client.RegenerateShareableLinkIdAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/UserDataServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/UserDataServiceClientTest.g.cs deleted file mode 100755 index 1db7977d0..000000000 --- a/Google.Ads.GoogleAds/tests/V12/UserDataServiceClientTest.g.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gagvc = Google.Ads.GoogleAds.V12.Common; -using gaxgrpc = Google.Api.Gax.Grpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedUserDataServiceClientTest - { - [Category("Autogenerated")][Test] - public void UploadUserDataRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadUserDataRequest request = new UploadUserDataRequest - { - CustomerId = "customer_id3b3724cb", - CustomerMatchUserListMetadata = new gagvc::CustomerMatchUserListMetadata(), - Operations = - { - new UserDataOperation(), - }, - }; - UploadUserDataResponse expectedResponse = new UploadUserDataResponse - { - UploadDateTime = "upload_date_time763e3ebd", - ReceivedOperationsCount = -816258212, - }; - mockGrpcClient.Setup(x => x.UploadUserData(request, moq::It.IsAny())).Returns(expectedResponse); - UserDataServiceClient client = new UserDataServiceClientImpl(mockGrpcClient.Object, null, null); - UploadUserDataResponse response = client.UploadUserData(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task UploadUserDataRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - UploadUserDataRequest request = new UploadUserDataRequest - { - CustomerId = "customer_id3b3724cb", - CustomerMatchUserListMetadata = new gagvc::CustomerMatchUserListMetadata(), - Operations = - { - new UserDataOperation(), - }, - }; - UploadUserDataResponse expectedResponse = new UploadUserDataResponse - { - UploadDateTime = "upload_date_time763e3ebd", - ReceivedOperationsCount = -816258212, - }; - mockGrpcClient.Setup(x => x.UploadUserDataAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - UserDataServiceClient client = new UserDataServiceClientImpl(mockGrpcClient.Object, null, null); - UploadUserDataResponse responseCallSettings = await client.UploadUserDataAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - UploadUserDataResponse responseCancellationToken = await client.UploadUserDataAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -} diff --git a/Google.Ads.GoogleAds/tests/V12/UserListServiceClientTest.g.cs b/Google.Ads.GoogleAds/tests/V12/UserListServiceClientTest.g.cs deleted file mode 100755 index 93a952112..000000000 --- a/Google.Ads.GoogleAds/tests/V12/UserListServiceClientTest.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2022 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! - -#pragma warning disable CS8981 -using gaxgrpc = Google.Api.Gax.Grpc; -using gr = Google.Rpc; -using grpccore = Grpc.Core; -using moq = Moq; -using st = System.Threading; -using stt = System.Threading.Tasks; -using NUnit.Framework; -using Google.Ads.GoogleAds.V12.Services; - -namespace Google.Ads.GoogleAds.Tests.V12.Services -{ - /// Generated unit tests. - public sealed class GeneratedUserListServiceClientTest - { - [Category("Autogenerated")][Test] - public void MutateUserListsRequestObject() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateUserListsRequest request = new MutateUserListsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new UserListOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateUserListsResponse expectedResponse = new MutateUserListsResponse - { - Results = - { - new MutateUserListResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateUserLists(request, moq::It.IsAny())).Returns(expectedResponse); - UserListServiceClient client = new UserListServiceClientImpl(mockGrpcClient.Object, null, null); - MutateUserListsResponse response = client.MutateUserLists(request); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateUserListsRequestObjectAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateUserListsRequest request = new MutateUserListsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new UserListOperation(), - }, - PartialFailure = false, - ValidateOnly = true, - }; - MutateUserListsResponse expectedResponse = new MutateUserListsResponse - { - Results = - { - new MutateUserListResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateUserListsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - UserListServiceClient client = new UserListServiceClientImpl(mockGrpcClient.Object, null, null); - MutateUserListsResponse responseCallSettings = await client.MutateUserListsAsync(request, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateUserListsResponse responseCancellationToken = await client.MutateUserListsAsync(request, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public void MutateUserLists() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateUserListsRequest request = new MutateUserListsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new UserListOperation(), - }, - }; - MutateUserListsResponse expectedResponse = new MutateUserListsResponse - { - Results = - { - new MutateUserListResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateUserLists(request, moq::It.IsAny())).Returns(expectedResponse); - UserListServiceClient client = new UserListServiceClientImpl(mockGrpcClient.Object, null, null); - MutateUserListsResponse response = client.MutateUserLists(request.CustomerId, request.Operations); - Assert.AreEqual(expectedResponse, response); - mockGrpcClient.VerifyAll(); - } - - [Category("Autogenerated")][Test] - public async stt::Task MutateUserListsAsync() - { - moq::Mock mockGrpcClient = new moq::Mock(moq::MockBehavior.Strict); - MutateUserListsRequest request = new MutateUserListsRequest - { - CustomerId = "customer_id3b3724cb", - Operations = - { - new UserListOperation(), - }, - }; - MutateUserListsResponse expectedResponse = new MutateUserListsResponse - { - Results = - { - new MutateUserListResult(), - }, - PartialFailureError = new gr::Status(), - }; - mockGrpcClient.Setup(x => x.MutateUserListsAsync(request, moq::It.IsAny())).Returns(new grpccore::AsyncUnaryCall(stt::Task.FromResult(expectedResponse), null, null, null, null)); - UserListServiceClient client = new UserListServiceClientImpl(mockGrpcClient.Object, null, null); - MutateUserListsResponse responseCallSettings = await client.MutateUserListsAsync(request.CustomerId, request.Operations, gaxgrpc::CallSettings.FromCancellationToken(st::CancellationToken.None)); - Assert.AreEqual(expectedResponse, responseCallSettings); - MutateUserListsResponse responseCancellationToken = await client.MutateUserListsAsync(request.CustomerId, request.Operations, st::CancellationToken.None); - Assert.AreEqual(expectedResponse, responseCancellationToken); - mockGrpcClient.VerifyAll(); - } - } -}